diff --git a/docs/0.0.js b/docs/0.0.js new file mode 100644 index 00000000..e733259a --- /dev/null +++ b/docs/0.0.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{918:function(e,n,t){"use strict";t.r(n),t.d(n,"conf",(function(){return i})),t.d(n,"language",(function(){return r}));var i={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*#pragma\\s+region\\b"),end:new RegExp("^\\s*#pragma\\s+endregion\\b")}}},r={defaultToken:"",tokenPostfix:".cpp",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.angle",open:"<",close:">"}],keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","for","friend","gcnew","generic","goto","if","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,"number.float"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/,"number.hex"],[/0[0-7']*[0-7](@integersuffix)/,"number.octal"],[/0[bB][0-1']*[0-1](@integersuffix)/,"number.binary"],[/\d[\d']*\d(@integersuffix)/,"number"],[/\d(@integersuffix)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@doccomment"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],doccomment:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],raw:[[/(.*)(\))(?:([^ ()\\\t"]*))(\")/,{cases:{"$3==$S2":["string.raw","string.raw.end","string.raw.end",{token:"string.raw.end",next:"@pop"}],"@default":["string.raw","string.raw","string.raw","string.raw"]}}],[/.*/,"string.raw"]],include:[[/(\s*)(<)([^<>]*)(>)/,["","keyword.directive.include.begin","string.include.identifier",{token:"keyword.directive.include.end",next:"@pop"}]],[/(\s*)(")([^"]*)(")/,["","keyword.directive.include.begin","string.include.identifier",{token:"keyword.directive.include.end",next:"@pop"}]]]}}}}]); \ No newline at end of file diff --git a/docs/1.1.js b/docs/1.1.js new file mode 100644 index 00000000..351cd24b --- /dev/null +++ b/docs/1.1.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{970:function(e,n,i){"use strict";i.r(n),i.d(n,"conf",(function(){return t})),i.d(n,"language",(function(){return r}));var t={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"],["begin","end"],["case","endcase"],["casex","endcase"],["casez","endcase"],["checker","endchecker"],["class","endclass"],["clocking","endclocking"],["config","endconfig"],["function","endfunction"],["generate","endgenerate"],["group","endgroup"],["interface","endinterface"],["module","endmodule"],["package","endpackage"],["primitive","endprimitive"],["program","endprogram"],["property","endproperty"],["specify","endspecify"],["sequence","endsequence"],["table","endtable"],["task","endtask"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{offSide:!1,markers:{start:new RegExp("^(?:\\s*|.*(?!\\/[\\/\\*])[^\\w])(?:begin|case(x|z)?|class|clocking|config|covergroup|function|generate|interface|module|package|primitive|property|program|sequence|specify|table|task)\\b"),end:new RegExp("^(?:\\s*|.*(?!\\/[\\/\\*])[^\\w])(?:end|endcase|endclass|endclocking|endconfig|endgroup|endfunction|endgenerate|endinterface|endmodule|endpackage|endprimitive|endproperty|endprogram|endsequence|endspecify|endtable|endtask)\\b")}}},r={defaultToken:"",tokenPostfix:".sv",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.angle",open:"<",close:">"}],keywords:["accept_on","alias","always","always_comb","always_ff","always_latch","and","assert","assign","assume","automatic","before","begin","bind","bins","binsof","bit","break","buf","bufif0","bufif1","byte","case","casex","casez","cell","chandle","checker","class","clocking","cmos","config","const","constraint","context","continue","cover","covergroup","coverpoint","cross","deassign","default","defparam","design","disable","dist","do","edge","else","end","endcase","endchecker","endclass","endclocking","endconfig","endfunction","endgenerate","endgroup","endinterface","endmodule","endpackage","endprimitive","endprogram","endproperty","endspecify","endsequence","endtable","endtask","enum","event","eventually","expect","export","extends","extern","final","first_match","for","force","foreach","forever","fork","forkjoin","function","generate","genvar","global","highz0","highz1","if","iff","ifnone","ignore_bins","illegal_bins","implements","implies","import","incdir","include","initial","inout","input","inside","instance","int","integer","interconnect","interface","intersect","join","join_any","join_none","large","let","liblist","library","local","localparam","logic","longint","macromodule","matches","medium","modport","module","nand","negedge","nettype","new","nexttime","nmos","nor","noshowcancelled","not","notif0","notif1","null","or","output","package","packed","parameter","pmos","posedge","primitive","priority","program","property","protected","pull0","pull1","pulldown","pullup","pulsestyle_ondetect","pulsestyle_onevent","pure","rand","randc","randcase","randsequence","rcmos","real","realtime","ref","reg","reject_on","release","repeat","restrict","return","rnmos","rpmos","rtran","rtranif0","rtranif1","s_always","s_eventually","s_nexttime","s_until","s_until_with","scalared","sequence","shortint","shortreal","showcancelled","signed","small","soft","solve","specify","specparam","static","string","strong","strong0","strong1","struct","super","supply0","supply1","sync_accept_on","sync_reject_on","table","tagged","task","this","throughout","time","timeprecision","timeunit","tran","tranif0","tranif1","tri","tri0","tri1","triand","trior","trireg","type","typedef","union","unique","unique0","unsigned","until","until_with","untyped","use","uwire","var","vectored","virtual","void","wait","wait_order","wand","weak","weak0","weak1","while","wildcard","wire","with","within","wor","xnor","xor"],builtin_gates:["and","nand","nor","or","xor","xnor","buf","not","bufif0","bufif1","notif1","notif0","cmos","nmos","pmos","rcmos","rnmos","rpmos","tran","tranif1","tranif0","rtran","rtranif1","rtranif0"],operators:["=","+=","-=","*=","/=","%=","&=","|=","^=","<<=",">>+","<<<=",">>>=","?",":","+","-","!","~","&","~&","|","~|","^","~^","^~","+","-","*","/","%","==","!=","===","!==","==?","!=?","&&","||","**","<","<=",">",">=","&","|","^",">>","<<",">>>","<<<","++","--","->","<->","inside","dist","::","+:","-:","*>","&&&","|->","|=>","#=#"],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],{include:"@numbers"},[/[;,.]/,"delimiter"],{include:"@strings"}],identifier_or_keyword:[[/@identifier/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}]],numbers:[[/\d+?[\d_]*(?:\.[\d_]+)?[eE][\-+]?\d+/,"number.float"],[/\d+?[\d_]*\.[\d_]+(?:\s*@timeunits)?/,"number.float"],[/(?:\d+?[\d_]*\s*)?'[sS]?[dD]\s*[0-9xXzZ?]+?[0-9xXzZ?_]*/,"number"],[/(?:\d+?[\d_]*\s*)?'[sS]?[bB]\s*[0-1xXzZ?]+?[0-1xXzZ?_]*/,"number.binary"],[/(?:\d+?[\d_]*\s*)?'[sS]?[oO]\s*[0-7xXzZ?]+?[0-7xXzZ?_]*/,"number.octal"],[/(?:\d+?[\d_]*\s*)?'[sS]?[hH]\s*[0-9a-fA-FxXzZ?]+?[0-9a-fA-FxXzZ?_]*/,"number.hex"],[/1step/,"number"],[/[\dxXzZ]+?[\dxXzZ_]*(?:\s*@timeunits)?/,"number"],[/'[01xXzZ]+/,"number"]],module_instance:[{include:"@whitespace"},[/(#?)(\()/,["",{token:"@brackets",next:"@port_connection"}]],[/@identifier\s*[;={}\[\],]/,{token:"@rematch",next:"@pop"}],[/@symbols|[;={}\[\],]/,{token:"@rematch",next:"@pop"}],[/@identifier/,"type"],[/;/,"delimiter","@pop"]],port_connection:[{include:"@identifier_or_keyword"},{include:"@whitespace"},[/@systemcall/,"variable.predefined"],{include:"@numbers"},{include:"@strings"},[/[,]/,"delimiter"],[/\(/,"@brackets","@port_connection"],[/\)/,"@brackets","@pop"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],strings:[[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],include:[[/(\s*)(")([\w*\/*]*)(.\w*)(")/,["","string.include.identifier","string.include.identifier","string.include.identifier",{token:"string.include.identifier",next:"@pop"}]],[/(\s*)(<)([\w*\/*]*)(.\w*)(>)/,["","string.include.identifier","string.include.identifier","string.include.identifier",{token:"string.include.identifier",next:"@pop"}]]]}}}}]); \ No newline at end of file diff --git a/docs/10.10.js b/docs/10.10.js new file mode 100644 index 00000000..a65070ae --- /dev/null +++ b/docs/10.10.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{914:function(e,s,o){"use strict";o.r(s),o.d(s,"conf",(function(){return n})),o.d(s,"language",(function(){return t}));var n={comments:{lineComment:"REM"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],folding:{markers:{start:new RegExp("^\\s*(::\\s*|REM\\s+)#region"),end:new RegExp("^\\s*(::\\s*|REM\\s+)#endregion")}}},t={defaultToken:"",ignoreCase:!0,tokenPostfix:".bat",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:/call|defined|echo|errorlevel|exist|for|goto|if|pause|set|shift|start|title|not|pushd|popd/,symbols:/[=>"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"}]},s={defaultToken:"",tokenPostfix:".cameligo",ignoreCase:!0,brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],keywords:["abs","begin","Bytes","Crypto","Current","else","end","failwith","false","fun","if","in","let","let%entry","let%init","List","list","Map","map","match","match%nat","mod","not","operation","Operation","of","Set","set","sender","source","String","then","true","type","with"],typeKeywords:["int","unit","string","tz"],operators:["=",">","<","<=",">=","<>",":",":=","and","mod","or","+","-","*","/","@","&","^","%","->","<-"],symbols:/[=><:@\^&|+\-*\/\^%]+/,tokenizer:{root:[[/[a-zA-Z_][\w]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\$[0-9a-fA-F]{1,16}/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'/,"string","@string"],[/'[^\\']'/,"string"],[/'/,"string.invalid"],[/\#\d+/,"string"]],comment:[[/[^\(\*]+/,"comment"],[/\*\)/,"comment","@pop"],[/\(\*/,"comment"]],string:[[/[^\\']+/,"string"],[/\\./,"string.escape.invalid"],[/'/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,"white"],[/\(\*/,"comment","@comment"],[/\/\/.*$/,"comment"]]}}}}]); \ No newline at end of file diff --git a/docs/12.12.js b/docs/12.12.js new file mode 100644 index 00000000..49955e38 --- /dev/null +++ b/docs/12.12.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[12],{916:function(e,t,n){"use strict";n.r(t),n.d(t,"conf",(function(){return r})),n.d(t,"language",(function(){return s}));var r={comments:{lineComment:";;"},brackets:[["[","]"],["(",")"],["{","}"]],autoClosingPairs:[{open:"[",close:"]"},{open:'"',close:'"'},{open:"(",close:")"},{open:"{",close:"}"}],surroundingPairs:[{open:"[",close:"]"},{open:'"',close:'"'},{open:"(",close:")"},{open:"{",close:"}"}]},s={defaultToken:"",ignoreCase:!0,tokenPostfix:".clj",brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"}],constants:["true","false","nil"],numbers:/^(?:[+\-]?\d+(?:(?:N|(?:[eE][+\-]?\d+))|(?:\.?\d*(?:M|(?:[eE][+\-]?\d+))?)|\/\d+|[xX][0-9a-fA-F]+|r[0-9a-zA-Z]+)?(?=[\\\[\]\s"#'(),;@^`{}~]|$))/,characters:/^(?:\\(?:backspace|formfeed|newline|return|space|tab|o[0-7]{3}|u[0-9A-Fa-f]{4}|x[0-9A-Fa-f]{4}|.)?(?=[\\\[\]\s"(),;@^`{}~]|$))/,escapes:/^\\(?:["'\\bfnrt]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,qualifiedSymbols:/^(?:(?:[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*(?:\.[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*\/)?(?:\/|[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*(?=[\\\[\]\s"(),;@^`{}~]|$))/,specialForms:[".","catch","def","do","if","monitor-enter","monitor-exit","new","quote","recur","set!","throw","try","var"],coreSymbols:["*","*'","*1","*2","*3","*agent*","*allow-unresolved-vars*","*assert*","*clojure-version*","*command-line-args*","*compile-files*","*compile-path*","*compiler-options*","*data-readers*","*default-data-reader-fn*","*e","*err*","*file*","*flush-on-newline*","*fn-loader*","*in*","*math-context*","*ns*","*out*","*print-dup*","*print-length*","*print-level*","*print-meta*","*print-namespace-maps*","*print-readably*","*read-eval*","*reader-resolver*","*source-path*","*suppress-read*","*unchecked-math*","*use-context-classloader*","*verbose-defrecords*","*warn-on-reflection*","+","+'","-","-'","->","->>","->ArrayChunk","->Eduction","->Vec","->VecNode","->VecSeq","-cache-protocol-fn","-reset-methods","..","/","<","<=","=","==",">",">=","EMPTY-NODE","Inst","StackTraceElement->vec","Throwable->map","accessor","aclone","add-classpath","add-watch","agent","agent-error","agent-errors","aget","alength","alias","all-ns","alter","alter-meta!","alter-var-root","amap","ancestors","and","any?","apply","areduce","array-map","as->","aset","aset-boolean","aset-byte","aset-char","aset-double","aset-float","aset-int","aset-long","aset-short","assert","assoc","assoc!","assoc-in","associative?","atom","await","await-for","await1","bases","bean","bigdec","bigint","biginteger","binding","bit-and","bit-and-not","bit-clear","bit-flip","bit-not","bit-or","bit-set","bit-shift-left","bit-shift-right","bit-test","bit-xor","boolean","boolean-array","boolean?","booleans","bound-fn","bound-fn*","bound?","bounded-count","butlast","byte","byte-array","bytes","bytes?","case","cast","cat","char","char-array","char-escape-string","char-name-string","char?","chars","chunk","chunk-append","chunk-buffer","chunk-cons","chunk-first","chunk-next","chunk-rest","chunked-seq?","class","class?","clear-agent-errors","clojure-version","coll?","comment","commute","comp","comparator","compare","compare-and-set!","compile","complement","completing","concat","cond","cond->","cond->>","condp","conj","conj!","cons","constantly","construct-proxy","contains?","count","counted?","create-ns","create-struct","cycle","dec","dec'","decimal?","declare","dedupe","default-data-readers","definline","definterface","defmacro","defmethod","defmulti","defn","defn-","defonce","defprotocol","defrecord","defstruct","deftype","delay","delay?","deliver","denominator","deref","derive","descendants","destructure","disj","disj!","dissoc","dissoc!","distinct","distinct?","doall","dorun","doseq","dosync","dotimes","doto","double","double-array","double?","doubles","drop","drop-last","drop-while","eduction","empty","empty?","ensure","ensure-reduced","enumeration-seq","error-handler","error-mode","eval","even?","every-pred","every?","ex-data","ex-info","extend","extend-protocol","extend-type","extenders","extends?","false?","ffirst","file-seq","filter","filterv","find","find-keyword","find-ns","find-protocol-impl","find-protocol-method","find-var","first","flatten","float","float-array","float?","floats","flush","fn","fn?","fnext","fnil","for","force","format","frequencies","future","future-call","future-cancel","future-cancelled?","future-done?","future?","gen-class","gen-interface","gensym","get","get-in","get-method","get-proxy-class","get-thread-bindings","get-validator","group-by","halt-when","hash","hash-combine","hash-map","hash-ordered-coll","hash-set","hash-unordered-coll","ident?","identical?","identity","if-let","if-not","if-some","ifn?","import","in-ns","inc","inc'","indexed?","init-proxy","inst-ms","inst-ms*","inst?","instance?","int","int-array","int?","integer?","interleave","intern","interpose","into","into-array","ints","io!","isa?","iterate","iterator-seq","juxt","keep","keep-indexed","key","keys","keyword","keyword?","last","lazy-cat","lazy-seq","let","letfn","line-seq","list","list*","list?","load","load-file","load-reader","load-string","loaded-libs","locking","long","long-array","longs","loop","macroexpand","macroexpand-1","make-array","make-hierarchy","map","map-entry?","map-indexed","map?","mapcat","mapv","max","max-key","memfn","memoize","merge","merge-with","meta","method-sig","methods","min","min-key","mix-collection-hash","mod","munge","name","namespace","namespace-munge","nat-int?","neg-int?","neg?","newline","next","nfirst","nil?","nnext","not","not-any?","not-empty","not-every?","not=","ns","ns-aliases","ns-imports","ns-interns","ns-map","ns-name","ns-publics","ns-refers","ns-resolve","ns-unalias","ns-unmap","nth","nthnext","nthrest","num","number?","numerator","object-array","odd?","or","parents","partial","partition","partition-all","partition-by","pcalls","peek","persistent!","pmap","pop","pop!","pop-thread-bindings","pos-int?","pos?","pr","pr-str","prefer-method","prefers","primitives-classnames","print","print-ctor","print-dup","print-method","print-simple","print-str","printf","println","println-str","prn","prn-str","promise","proxy","proxy-call-with-super","proxy-mappings","proxy-name","proxy-super","push-thread-bindings","pvalues","qualified-ident?","qualified-keyword?","qualified-symbol?","quot","rand","rand-int","rand-nth","random-sample","range","ratio?","rational?","rationalize","re-find","re-groups","re-matcher","re-matches","re-pattern","re-seq","read","read-line","read-string","reader-conditional","reader-conditional?","realized?","record?","reduce","reduce-kv","reduced","reduced?","reductions","ref","ref-history-count","ref-max-history","ref-min-history","ref-set","refer","refer-clojure","reify","release-pending-sends","rem","remove","remove-all-methods","remove-method","remove-ns","remove-watch","repeat","repeatedly","replace","replicate","require","reset!","reset-meta!","reset-vals!","resolve","rest","restart-agent","resultset-seq","reverse","reversible?","rseq","rsubseq","run!","satisfies?","second","select-keys","send","send-off","send-via","seq","seq?","seqable?","seque","sequence","sequential?","set","set-agent-send-executor!","set-agent-send-off-executor!","set-error-handler!","set-error-mode!","set-validator!","set?","short","short-array","shorts","shuffle","shutdown-agents","simple-ident?","simple-keyword?","simple-symbol?","slurp","some","some->","some->>","some-fn","some?","sort","sort-by","sorted-map","sorted-map-by","sorted-set","sorted-set-by","sorted?","special-symbol?","spit","split-at","split-with","str","string?","struct","struct-map","subs","subseq","subvec","supers","swap!","swap-vals!","symbol","symbol?","sync","tagged-literal","tagged-literal?","take","take-last","take-nth","take-while","test","the-ns","thread-bound?","time","to-array","to-array-2d","trampoline","transduce","transient","tree-seq","true?","type","unchecked-add","unchecked-add-int","unchecked-byte","unchecked-char","unchecked-dec","unchecked-dec-int","unchecked-divide-int","unchecked-double","unchecked-float","unchecked-inc","unchecked-inc-int","unchecked-int","unchecked-long","unchecked-multiply","unchecked-multiply-int","unchecked-negate","unchecked-negate-int","unchecked-remainder-int","unchecked-short","unchecked-subtract","unchecked-subtract-int","underive","unquote","unquote-splicing","unreduced","unsigned-bit-shift-right","update","update-in","update-proxy","uri?","use","uuid?","val","vals","var-get","var-set","var?","vary-meta","vec","vector","vector-of","vector?","volatile!","volatile?","vreset!","vswap!","when","when-first","when-let","when-not","when-some","while","with-bindings","with-bindings*","with-in-str","with-loading-context","with-local-vars","with-meta","with-open","with-out-str","with-precision","with-redefs","with-redefs-fn","xml-seq","zero?","zipmap"],tokenizer:{root:[{include:"@whitespace"},[/@numbers/,"number"],[/@characters/,"string"],{include:"@string"},[/[()\[\]{}]/,"@brackets"],[/\/#"(?:\.|(?:")|[^"\n])*"\/g/,"regexp"],[/[#'@^`~]/,"meta"],[/@qualifiedSymbols/,{cases:{"^:.+$":"constant","@specialForms":"keyword","@coreSymbols":"keyword","@constants":"constant","@default":"identifier"}}]],whitespace:[[/[\s,]+/,"white"],[/;.*$/,"comment"],[/\(comment\b/,"comment","@comment"]],comment:[[/\(/,"comment","@push"],[/\)/,"comment","@pop"],[/[^()]/,"comment"]],string:[[/"/,"string","@multiLineString"]],multiLineString:[[/"/,"string","@popall"],[/@escapes/,"string.escape"],[/./,"string"]]}}}}]); \ No newline at end of file diff --git a/docs/13.13.js b/docs/13.13.js new file mode 100644 index 00000000..0d887b6b --- /dev/null +++ b/docs/13.13.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[13],{917:function(e,n,r){"use strict";r.r(n),r.d(n,"conf",(function(){return t})),r.d(n,"language",(function(){return s}));var t={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\$\-\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{blockComment:["###","###"],lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},s={defaultToken:"",ignoreCase:!0,tokenPostfix:".coffee",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],regEx:/\/(?!\/\/)(?:[^\/\\]|\\.)*\/[igm]*/,keywords:["and","or","is","isnt","not","on","yes","@","no","off","true","false","null","this","new","delete","typeof","in","instanceof","return","throw","break","continue","debugger","if","else","switch","for","while","do","try","catch","finally","class","extends","super","undefined","then","unless","until","loop","of","by","when"],symbols:/[=>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],folding:{markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},s={defaultToken:"",tokenPostfix:".cs",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],keywords:["extern","alias","using","bool","decimal","sbyte","byte","short","ushort","int","uint","long","ulong","char","float","double","object","dynamic","string","assembly","is","as","ref","out","this","base","new","typeof","void","checked","unchecked","default","delegate","var","const","if","else","switch","case","while","do","for","foreach","in","break","continue","goto","return","throw","try","catch","finally","lock","yield","from","let","where","join","on","equals","into","orderby","ascending","descending","select","group","by","namespace","partial","class","field","event","method","param","property","public","protected","internal","private","abstract","sealed","static","struct","readonly","volatile","virtual","override","params","get","set","add","remove","operator","true","false","implicit","explicit","interface","enum","null","async","await","fixed","sizeof","stackalloc","unsafe","nameof","when"],namespaceFollows:["namespace","using"],parenFollows:["if","for","while","switch","foreach","using","catch","when"],operators:["=","??","||","&&","|","^","&","==","!=","<=",">=","<<","+","-","*","/","%","!","~","++","--","+=","-=","*=","/=","%=","&=","|=","^=","<<=",">>=",">>","=>"],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/[0-9_]*\.[0-9_]+([eE][\-+]?\d+)?[fFdD]?/,"number.float"],[/0[xX][0-9a-fA-F_]+/,"number.hex"],[/0[bB][01_]+/,"number.hex"],[/[0-9_]+/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,{token:"string.quote",next:"@string"}],[/\$\@"/,{token:"string.quote",next:"@litinterpstring"}],[/\@"/,{token:"string.quote",next:"@litstring"}],[/\$"/,{token:"string.quote",next:"@interpolatedstring"}],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],qualified:[[/[a-zA-Z_][\w]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],[/\./,"delimiter"],["","","@pop"]],namespace:[{include:"@whitespace"},[/[A-Z]\w*/,"namespace"],[/[\.=]/,"delimiter"],["","","@pop"]],comment:[[/[^\/*]+/,"comment"],["\\*/","comment","@pop"],[/[\/*]/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",next:"@pop"}]],litstring:[[/[^"]+/,"string"],[/""/,"string.escape"],[/"/,{token:"string.quote",next:"@pop"}]],litinterpstring:[[/[^"{]+/,"string"],[/""/,"string.escape"],[/{{/,"string.escape"],[/}}/,"string.escape"],[/{/,{token:"string.quote",next:"root.litinterpstring"}],[/"/,{token:"string.quote",next:"@pop"}]],interpolatedstring:[[/[^\\"{]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/{{/,"string.escape"],[/}}/,"string.escape"],[/{/,{token:"string.quote",next:"root.interpolatedstring"}],[/"/,{token:"string.quote",next:"@pop"}]],whitespace:[[/^[ \t\v\f]*#((r)|(load))(?=\s)/,"directive.csx"],[/^[ \t\v\f]*#\w.*$/,"namespace.cpp"],[/[ \t\v\f\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]]}}}}]); \ No newline at end of file diff --git a/docs/15.15.js b/docs/15.15.js new file mode 100644 index 00000000..a4c1289a --- /dev/null +++ b/docs/15.15.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[15],{920:function(t,r,e){"use strict";e.r(r),e.d(r,"conf",(function(){return s})),e.d(r,"language",(function(){return n}));var s={brackets:[],autoClosingPairs:[],surroundingPairs:[]},n={keywords:[],typeKeywords:[],tokenPostfix:".csp",operators:[],symbols:/[=>",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"},["([<>=\\+\\-\\*\\/\\^\\|\\~,])","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\n]+","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|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"]]}}}}]); \ No newline at end of file diff --git a/docs/17.17.js b/docs/17.17.js new file mode 100644 index 00000000..e5fe3284 --- /dev/null +++ b/docs/17.17.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[17],{922:function(e,n,t){"use strict";t.r(n),t.d(n,"conf",(function(){return o})),t.d(n,"language",(function(){return r}));var o={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:"(",close:")"},{open:'"',close:'"'},{open:"`",close:"`"}],folding:{markers:{start:/^\s*\s*#?region\b/,end:/^\s*\s*#?endregion\b/}}},r={defaultToken:"invalid",tokenPostfix:".dart",keywords:["abstract","dynamic","implements","show","as","else","import","static","assert","enum","in","super","async","export","interface","switch","await","extends","is","sync","break","external","library","this","case","factory","mixin","throw","catch","false","new","true","class","final","null","try","const","finally","on","typedef","continue","for","operator","var","covariant","Function","part","void","default","get","rethrow","while","deferred","hide","return","with","do","if","set","yield"],typeKeywords:["int","double","String","bool"],operators:["+","-","*","/","~/","%","++","--","==","!=",">","<",">=","<=","=","-=","/=","%=",">>=","^=","+=","*=","~/=","<<=","&=","!=","||","&&","&","|","^","~","<<",">>","!",">>>","??","?",":","|="],symbols:/[=>](?!@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"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/\/.*$/,"comment.doc"],[/\/\/.*$/,"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"],[/(\/)([gimsuy]*)/,[{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"],[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"],[/\$\w+/,"identifier"]],string_single:[[/[^\\'\$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"],[/\$\w+/,"identifier"]]}}}}]); \ No newline at end of file diff --git a/docs/18.18.js b/docs/18.18.js new file mode 100644 index 00000000..cc6194b5 --- /dev/null +++ b/docs/18.18.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[18],{923:function(e,n,o){"use strict";o.r(n),o.d(n,"conf",(function(){return s})),o.d(n,"language",(function(){return t}));var s={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},t={defaultToken:"",tokenPostfix:".dockerfile",variable:/\${?[\w]+}?/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},[/(ONBUILD)(\s+)/,["keyword",""]],[/(ENV)(\s+)([\w]+)/,["keyword","",{token:"variable",next:"@arguments"}]],[/(FROM|MAINTAINER|RUN|EXPOSE|ENV|ADD|ARG|VOLUME|LABEL|USER|WORKDIR|COPY|CMD|STOPSIGNAL|SHELL|HEALTHCHECK|ENTRYPOINT)/,{token:"keyword",next:"@arguments"}]],arguments:[{include:"@whitespace"},{include:"@strings"},[/(@variable)/,{cases:{"@eos":{token:"variable",next:"@popall"},"@default":"variable"}}],[/\\/,{cases:{"@eos":"","@default":""}}],[/./,{cases:{"@eos":{token:"",next:"@popall"},"@default":""}}]],whitespace:[[/\s+/,{cases:{"@eos":{token:"",next:"@popall"},"@default":""}}]],comment:[[/(^#.*$)/,"comment","@popall"]],strings:[[/\\'$/,"","@popall"],[/\\'/,""],[/'$/,"string","@popall"],[/'/,"string","@stringBody"],[/"$/,"string","@popall"],[/"/,"string","@dblStringBody"]],stringBody:[[/[^\\\$']/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/\\./,"string.escape"],[/'$/,"string","@popall"],[/'/,"string","@pop"],[/(@variable)/,"variable"],[/\\$/,"string"],[/$/,"string","@popall"]],dblStringBody:[[/[^\\\$"]/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/\\./,"string.escape"],[/"$/,"string","@popall"],[/"/,"string","@pop"],[/(@variable)/,"variable"],[/\\$/,"string"],[/$/,"string","@popall"]]}}}}]); \ No newline at end of file diff --git a/docs/19.19.js b/docs/19.19.js new file mode 100644 index 00000000..1e565396 --- /dev/null +++ b/docs/19.19.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[19],{924:function(e,n,t){"use strict";t.r(n),t.d(n,"conf",(function(){return s})),t.d(n,"language",(function(){return o}));var s={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*//\\s*#region\\b|^\\s*\\(\\*\\s*#region(.*)\\*\\)"),end:new RegExp("^\\s*//\\s*#endregion\\b|^\\s*\\(\\*\\s*#endregion\\s*\\*\\)")}}},o={defaultToken:"",tokenPostfix:".fs",keywords:["abstract","and","atomic","as","assert","asr","base","begin","break","checked","component","const","constraint","constructor","continue","class","default","delegate","do","done","downcast","downto","elif","else","end","exception","eager","event","external","extern","false","finally","for","fun","function","fixed","functor","global","if","in","include","inherit","inline","interface","internal","land","lor","lsl","lsr","lxor","lazy","let","match","member","mod","module","mutable","namespace","method","mixin","new","not","null","of","open","or","object","override","private","parallel","process","protected","pure","public","rec","return","static","sealed","struct","sig","then","to","true","tailcall","trait","try","type","upcast","use","val","void","virtual","volatile","when","while","with","yield"],symbols:/[=>\]/,"annotation"],[/^#(if|else|endif)/,"keyword"],[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,"delimiter"],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,"number.float"],[/0x[0-9a-fA-F]+LF/,"number.float"],[/0x[0-9a-fA-F]+(@integersuffix)/,"number.hex"],[/0b[0-1]+(@integersuffix)/,"number.bin"],[/\d+(@integersuffix)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"""/,"string",'@string."""'],[/"/,"string",'@string."'],[/\@"/,{token:"string.quote",next:"@litstring"}],[/'[^\\']'B?/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\(\*(?!\))/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^*(]+/,"comment"],[/\*\)/,"comment","@pop"],[/\*/,"comment"],[/\(\*\)/,"comment"],[/\(/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/("""|"B?)/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]],litstring:[[/[^"]+/,"string"],[/""/,"string.escape"],[/"/,{token:"string.quote",next:"@pop"}]]}}}}]); \ No newline at end of file diff --git a/docs/20.20.js b/docs/20.20.js new file mode 100644 index 00000000..2f502649 --- /dev/null +++ b/docs/20.20.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[20],{925:function(e,n,o){"use strict";o.r(n),o.d(n,"conf",(function(){return t})),o.d(n,"language",(function(){return s}));var t={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"`",close:"`",notIn:["string"]},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"`",close:"`"},{open:'"',close:'"'},{open:"'",close:"'"}]},s={defaultToken:"",tokenPostfix:".go",keywords:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var","bool","true","false","uint8","uint16","uint32","uint64","int8","int16","int32","int64","float32","float64","complex64","complex128","byte","rune","uint","int","uintptr","string","nil"],operators:["+","-","*","/","%","&","|","^","<<",">>","&^","+=","-=","*=","/=","%=","&=","|=","^=","<<=",">>=","&^=","&&","||","<-","++","--","==","<",">","=","!","!=","<=",">=",":=","...","(",")","","]","{","}",",",";",".",":"],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex"],[/0[0-7']*[0-7]/,"number.octal"],[/0[bB][0-1']*[0-1]/,"number.binary"],[/\d[\d']*/,"number"],[/\d/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/`/,"string","@rawstring"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@doccomment"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],doccomment:[[/[^\/*]+/,"comment.doc"],[/\/\*/,"comment.doc.invalid"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],rawstring:[[/[^\`]/,"string"],[/`/,"string","@pop"]]}}}}]); \ No newline at end of file diff --git a/docs/21.21.js b/docs/21.21.js new file mode 100644 index 00000000..43c6ce4b --- /dev/null +++ b/docs/21.21.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[21],{926:function(e,n,t){"use strict";t.r(n),t.d(n,"conf",(function(){return o})),t.d(n,"language",(function(){return s}));var o={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"""',close:'"""',notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"""',close:'"""'},{open:'"',close:'"'}],folding:{offSide:!0}},s={defaultToken:"invalid",tokenPostfix:".gql",keywords:["null","true","false","query","mutation","subscription","extend","schema","directive","scalar","type","interface","union","enum","input","implements","fragment","on"],typeKeywords:["Int","Float","String","Boolean","ID"],directiveLocations:["SCHEMA","SCALAR","OBJECT","FIELD_DEFINITION","ARGUMENT_DEFINITION","INTERFACE","UNION","ENUM","ENUM_VALUE","INPUT_OBJECT","INPUT_FIELD_DEFINITION","QUERY","MUTATION","SUBSCRIPTION","FIELD","FRAGMENT_DEFINITION","FRAGMENT_SPREAD","INLINE_FRAGMENT","VARIABLE_DEFINITION"],operators:["=","!","?",":","&","|"],symbols:/[=!?:&|]+/,escapes:/\\(?:["\\\/bfnrt]|u[0-9A-Fa-f]{4})/,tokenizer:{root:[[/[a-z_][\w$]*/,{cases:{"@keywords":"keyword","@default":"key.identifier"}}],[/[$][\w$]*/,{cases:{"@keywords":"keyword","@default":"argument.identifier"}}],[/[A-Z][\w\$]*/,{cases:{"@typeKeywords":"keyword","@default":"type.identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,{token:"annotation",log:"annotation token: $0"}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/"""/,{token:"string",next:"@mlstring",nextEmbedded:"markdown"}],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}]],mlstring:[[/[^"]+/,"string"],['"""',{token:"string",next:"@pop",nextEmbedded:"@pop"}]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/#.*$/,"comment"]]}}}}]); \ No newline at end of file diff --git a/docs/22.22.js b/docs/22.22.js new file mode 100644 index 00000000..e15be0d8 --- /dev/null +++ b/docs/22.22.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[22],{927:function(e,t,n){"use strict";n.r(t),n.d(t,"conf",(function(){return m})),n.d(t,"language",(function(){return i}));var a=n(212),r=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],m={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[["\x3c!--","--\x3e"],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp("<(?!(?:"+r.join("|")+"))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:a.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(?!(?:"+r.join("|")+"))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:a.languages.IndentAction.Indent}}]},i={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}}}}]); \ No newline at end of file diff --git a/docs/23.23.js b/docs/23.23.js new file mode 100644 index 00000000..b8b44827 --- /dev/null +++ b/docs/23.23.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[23],{928:function(e,t,s){"use strict";s.r(t),s.d(t,"conf",(function(){return o})),s.d(t,"language",(function(){return r}));var o={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}]},r={defaultToken:"",tokenPostfix:".hcl",keywords:["var","local","path","for_each","any","string","number","bool","true","false","null","if ","else ","endif ","for ","in","endfor"],operators:["=",">=","<=","==","!=","+","-","*","/","%","&&","||","!","<",">","?","...",":"],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\d[\d']*/,"number"],[/\d/,"number"],[/[;,.]/,"delimiter"],[/"/,"string","@string"],[/'/,"invalid"]],heredoc:[[/<<[-]*\s*["]?([\w\-]+)["]?/,{token:"string.heredoc.delimiter",next:"@heredocBody.$1"}]],heredocBody:[[/^([\w\-]+)$/,{cases:{"$1==$S2":[{token:"string.heredoc.delimiter",next:"@popall"}],"@default":"string.heredoc"}}],[/./,"string.heredoc"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"],[/#.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],string:[[/\$\{/,{token:"delimiter",next:"@stringExpression"}],[/[^\\"\$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@popall"]],stringInsideExpression:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],stringExpression:[[/\}/,{token:"delimiter",next:"@pop"}],[/"/,"string","@stringInsideExpression"],{include:"@terraform"}]}}}}]); \ No newline at end of file diff --git a/docs/24.24.js b/docs/24.24.js new file mode 100644 index 00000000..cd4b8228 --- /dev/null +++ b/docs/24.24.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[24],{929:function(e,t,n){"use strict";n.r(t),n.d(t,"conf",(function(){return o})),n.d(t,"language",(function(){return d}));var i=n(212),r=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],o={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["\x3c!--","--\x3e"]},brackets:[["\x3c!--","--\x3e"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp("<(?!(?:"+r.join("|")+"))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:i.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(?!(?:"+r.join("|")+"))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:i.languages.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*\x3c!--\\s*#region\\b.*--\x3e"),end:new RegExp("^\\s*\x3c!--\\s*#endregion\\b.*--\x3e")}}},d={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}}}}]); \ No newline at end of file diff --git a/docs/25.25.js b/docs/25.25.js new file mode 100644 index 00000000..a33e07a5 --- /dev/null +++ b/docs/25.25.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[25],{930:function(e,n,s){"use strict";s.r(n),s.d(n,"conf",(function(){return o})),s.d(n,"language",(function(){return t}));var o={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},t={defaultToken:"",tokenPostfix:".ini",escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/^\[[^\]]*\]/,"metatag"],[/(^\w+)(\s*)(\=)/,["key","","delimiter"]],{include:"@whitespace"},[/\d+/,"number"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string",'@string."'],[/'/,"string","@string.'"]],whitespace:[[/[ \t\r\n]+/,""],[/^\s*[#;].*$/,"comment"]],string:[[/[^\\"']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]]}}}}]); \ No newline at end of file diff --git a/docs/26.26.js b/docs/26.26.js new file mode 100644 index 00000000..727ca3ef --- /dev/null +++ b/docs/26.26.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[26],{931:function(e,t,o){"use strict";o.r(t),o.d(t,"conf",(function(){return n})),o.d(t,"language",(function(){return s}));var n={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],folding:{markers:{start:new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:))")}}},s={defaultToken:"",tokenPostfix:".java",keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,"annotation"],[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,"number.float"],[/0[xX](@hexdigits)[Ll]?/,"number.hex"],[/0(@octaldigits)[Ll]?/,"number.octal"],[/0[bB](@binarydigits)[Ll]?/,"number.binary"],[/(@digits)[fFdD]/,"number.float"],[/(@digits)[lL]?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@javadoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],javadoc:[[/[^\/*]+/,"comment.doc"],[/\/\*/,"comment.doc.invalid"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]]}}}}]); \ No newline at end of file diff --git a/docs/27.27.js b/docs/27.27.js new file mode 100644 index 00000000..286f930f --- /dev/null +++ b/docs/27.27.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[27],{933:function(e,t,r){"use strict";r.r(t),r.d(t,"conf",(function(){return n})),r.d(t,"language",(function(){return o}));var n={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},o={tokenPostfix:".julia",keywords:["begin","while","if","for","try","return","break","continue","function","macro","quote","let","local","global","const","do","struct","module","baremodule","using","import","export","end","else","elseif","catch","finally","mutable","primitive","abstract","type","in","isa","where","new"],types:["LinRange","LineNumberNode","LinearIndices","LoadError","MIME","Matrix","Method","MethodError","Missing","MissingException","Module","NTuple","NamedTuple","Nothing","Number","OrdinalRange","OutOfMemoryError","OverflowError","Pair","PartialQuickSort","PermutedDimsArray","Pipe","Ptr","QuoteNode","Rational","RawFD","ReadOnlyMemoryError","Real","ReentrantLock","Ref","Regex","RegexMatch","RoundingMode","SegmentationFault","Set","Signed","Some","StackOverflowError","StepRange","StepRangeLen","StridedArray","StridedMatrix","StridedVecOrMat","StridedVector","String","StringIndexError","SubArray","SubString","SubstitutionString","Symbol","SystemError","Task","Text","TextDisplay","Timer","Tuple","Type","TypeError","TypeVar","UInt","UInt128","UInt16","UInt32","UInt64","UInt8","UndefInitializer","AbstractArray","UndefKeywordError","AbstractChannel","UndefRefError","AbstractChar","UndefVarError","AbstractDict","Union","AbstractDisplay","UnionAll","AbstractFloat","UnitRange","AbstractIrrational","Unsigned","AbstractMatrix","AbstractRange","Val","AbstractSet","Vararg","AbstractString","VecElement","AbstractUnitRange","VecOrMat","AbstractVecOrMat","Vector","AbstractVector","VersionNumber","Any","WeakKeyDict","ArgumentError","WeakRef","Array","AssertionError","BigFloat","BigInt","BitArray","BitMatrix","BitSet","BitVector","Bool","BoundsError","CapturedException","CartesianIndex","CartesianIndices","Cchar","Cdouble","Cfloat","Channel","Char","Cint","Cintmax_t","Clong","Clonglong","Cmd","Colon","Complex","ComplexF16","ComplexF32","ComplexF64","CompositeException","Condition","Cptrdiff_t","Cshort","Csize_t","Cssize_t","Cstring","Cuchar","Cuint","Cuintmax_t","Culong","Culonglong","Cushort","Cvoid","Cwchar_t","Cwstring","DataType","DenseArray","DenseMatrix","DenseVecOrMat","DenseVector","Dict","DimensionMismatch","Dims","DivideError","DomainError","EOFError","Enum","ErrorException","Exception","ExponentialBackOff","Expr","Float16","Float32","Float64","Function","GlobalRef","HTML","IO","IOBuffer","IOContext","IOStream","IdDict","IndexCartesian","IndexLinear","IndexStyle","InexactError","InitError","Int","Int128","Int16","Int32","Int64","Int8","Integer","InterruptException","InvalidStateException","Irrational","KeyError"],keywordops:["<:",">:",":","=>","...",".","->","?"],allops:/[^\w\d\s()\[\]{}"'#]+/,constants:["true","false","nothing","missing","undef","Inf","pi","NaN","π","ℯ","ans","PROGRAM_FILE","ARGS","C_NULL","VERSION","DEPOT_PATH","LOAD_PATH"],operators:["!","!=","!==","%","&","*","+","-","/","//","<","<<","<=","==","===","=>",">",">=",">>",">>>","\\","^","|","|>","~","÷","∈","∉","∋","∌","∘","√","∛","∩","∪","≈","≉","≠","≡","≢","≤","≥","⊆","⊇","⊈","⊉","⊊","⊋","⊻"],brackets:[{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"}],ident:/π|ℯ|\b(?!\d)\w+\b/,escape:/(?:[abefnrstv\\"'\n\r]|[0-7]{1,3}|x[0-9A-Fa-f]{1,2}|u[0-9A-Fa-f]{4})/,escapes:/\\(?:C\-(@escape|.)|c(@escape|.)|@escape)/,tokenizer:{root:[[/(::)\s*|\b(isa)\s+/,"keyword","@typeanno"],[/\b(isa)(\s*\(@ident\s*,\s*)/,["keyword",{token:"",next:"@typeanno"}]],[/\b(type|struct)[ \t]+/,"keyword","@typeanno"],[/^\s*:@ident[!?]?/,"metatag"],[/(return)(\s*:@ident[!?]?)/,["keyword","metatag"]],[/(\(|\[|\{|@allops)(\s*:@ident[!?]?)/,["","metatag"]],[/:\(/,"metatag","@quote"],[/r"""/,"regexp.delim","@tregexp"],[/r"/,"regexp.delim","@sregexp"],[/raw"""/,"string.delim","@rtstring"],[/[bv]?"""/,"string.delim","@dtstring"],[/raw"/,"string.delim","@rsstring"],[/[bv]?"/,"string.delim","@dsstring"],[/(@ident)\{/,{cases:{"$1@types":{token:"type",next:"@gen"},"@default":{token:"type",next:"@gen"}}}],[/@ident[!?'']?(?=\.?\()/,{cases:{"@types":"type","@keywords":"keyword","@constants":"variable","@default":"keyword.flow"}}],[/@ident[!?']?/,{cases:{"@types":"type","@keywords":"keyword","@constants":"variable","@default":"identifier"}}],[/\$\w+/,"key"],[/\$\(/,"key","@paste"],[/@@ident/,"annotation"],{include:"@whitespace"},[/'(?:@escapes|.)'/,"string.character"],[/[()\[\]{}]/,"@brackets"],[/@allops/,{cases:{"@keywordops":"keyword","@operators":"operator"}}],[/[;,]/,"delimiter"],[/0[xX][0-9a-fA-F](_?[0-9a-fA-F])*/,"number.hex"],[/0[_oO][0-7](_?[0-7])*/,"number.octal"],[/0[bB][01](_?[01])*/,"number.binary"],[/[+\-]?\d+(\.\d+)?(im?|[eE][+\-]?\d+(\.\d+)?)?/,"number"]],typeanno:[[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*\{/,"type","@gen"],[/([a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*)(\s*<:\s*)/,["type","keyword"]],[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*/,"type","@pop"],["","","@pop"]],gen:[[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*\{/,"type","@push"],[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*/,"type"],[/<:/,"keyword"],[/(\})(\s*<:\s*)/,["type",{token:"keyword",next:"@pop"}]],[/\}/,"type","@pop"],{include:"@root"}],quote:[[/\$\(/,"key","@paste"],[/\(/,"@brackets","@paren"],[/\)/,"metatag","@pop"],{include:"@root"}],paste:[[/:\(/,"metatag","@quote"],[/\(/,"@brackets","@paren"],[/\)/,"key","@pop"],{include:"@root"}],paren:[[/\$\(/,"key","@paste"],[/:\(/,"metatag","@quote"],[/\(/,"@brackets","@push"],[/\)/,"@brackets","@pop"],{include:"@root"}],sregexp:[[/^.*/,"invalid"],[/[^\\"()\[\]{}]/,"regexp"],[/[()\[\]{}]/,"@brackets"],[/\\./,"operator.scss"],[/"[imsx]*/,"regexp.delim","@pop"]],tregexp:[[/[^\\"()\[\]{}]/,"regexp"],[/[()\[\]{}]/,"@brackets"],[/\\./,"operator.scss"],[/"(?!"")/,"string"],[/"""[imsx]*/,"regexp.delim","@pop"]],rsstring:[[/^.*/,"invalid"],[/[^\\"]/,"string"],[/\\./,"string.escape"],[/"/,"string.delim","@pop"]],rtstring:[[/[^\\"]/,"string"],[/\\./,"string.escape"],[/"(?!"")/,"string"],[/"""/,"string.delim","@pop"]],dsstring:[[/^.*/,"invalid"],[/[^\\"\$]/,"string"],[/\$/,"","@interpolated"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string.delim","@pop"]],dtstring:[[/[^\\"\$]/,"string"],[/\$/,"","@interpolated"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"(?!"")/,"string"],[/"""/,"string.delim","@pop"]],interpolated:[[/\(/,{token:"",switchTo:"@interpolated_compound"}],[/[a-zA-Z_]\w*/,"identifier"],["","","@pop"]],interpolated_compound:[[/\)/,"","@pop"],{include:"@root"}],whitespace:[[/[ \t\r\n]+/,""],[/#=/,"comment","@multi_comment"],[/#.*$/,"comment"]],multi_comment:[[/#=/,"comment","@push"],[/=#/,"comment","@pop"],[/=(?!#)|#(?!=)/,"comment"],[/[^#=]+/,"comment"]]}}}}]); \ No newline at end of file diff --git a/docs/28.28.js b/docs/28.28.js new file mode 100644 index 00000000..214f5ef2 --- /dev/null +++ b/docs/28.28.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[28],{934:function(e,n,t){"use strict";t.r(n),t.d(n,"conf",(function(){return i})),t.d(n,"language",(function(){return o}));var i={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],folding:{markers:{start:new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:))")}}},o={defaultToken:"",tokenPostfix:".kt",keywords:["as","as?","break","class","continue","do","else","false","for","fun","if","in","!in","interface","is","!is","null","object","package","return","super","this","throw","true","try","typealias","val","var","when","while","by","catch","constructor","delegate","dynamic","field","file","finally","get","import","init","param","property","receiver","set","setparam","where","actual","abstract","annotation","companion","const","crossinline","data","enum","expect","external","final","infix","inline","inner","internal","lateinit","noinline","open","operator","out","override","private","protected","public","reified","sealed","suspend","tailrec","vararg","field","it"],operators:["+","-","*","/","%","=","+=","-=","*=","/=","%=","++","--","&&","||","!","==","!=","===","!==",">","<","<=",">=","[","]","!!","?.","?:","::","..",":","?","->","@",";","$","_"],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,"annotation"],[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,"number.float"],[/0[xX](@hexdigits)[Ll]?/,"number.hex"],[/0(@octaldigits)[Ll]?/,"number.octal"],[/0[bB](@binarydigits)[Ll]?/,"number.binary"],[/(@digits)[fFdD]/,"number.float"],[/(@digits)[lL]?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"""/,"string","@multistring"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@javadoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\/\*/,"comment","@comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],javadoc:[[/[^\/*]+/,"comment.doc"],[/\/\*/,"comment.doc","@push"],[/\/\*/,"comment.doc.invalid"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],multistring:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"""/,"string","@pop"],[/./,"string"]]}}}}]); \ No newline at end of file diff --git a/docs/29.29.js b/docs/29.29.js new file mode 100644 index 00000000..5221f4c1 --- /dev/null +++ b/docs/29.29.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[29],{935:function(e,t,n){"use strict";n.r(t),n.d(t,"conf",(function(){return i})),n.d(t,"language",(function(){return r}));var i={wordPattern:/(#?-?\d*\.\d\w*%?)|([@#!.:]?[\w-?]+%?)|[@#!.]/g,comments:{blockComment:["/*","*/"],lineComment:"//"},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.*\\*\\/")}}},r={defaultToken:"",tokenPostfix:".less",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])))*",identifierPlus:"-?-?([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.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{root:[{include:"@nestedJSBegin"},["[ \\t\\r\\n]+",""],{include:"@comments"},{include:"@keyword"},{include:"@strings"},{include:"@numbers"},["[*_]?[a-zA-Z\\-\\s]+(?=:.*(;|(\\\\$)))","attribute.name","@attribute"],["url(\\-prefix)?\\(",{token:"tag",next:"@urldeclaration"}],["[{}()\\[\\]]","@brackets"],["[,:;]","delimiter"],["#@identifierPlus","tag.id"],["&","tag"],["\\.@identifierPlus(?=\\()","tag.class","@attribute"],["\\.@identifierPlus","tag.class"],["@identifierPlus","tag"],{include:"@operators"},["@(@identifier(?=[:,\\)]))","variable","@attribute"],["@(@identifier)","variable"],["@","key","@atRules"]],nestedJSBegin:[["``","delimiter.backtick"],["`",{token:"delimiter.backtick",next:"@nestedJSEnd",nextEmbedded:"text/javascript"}]],nestedJSEnd:[["`",{token:"delimiter.backtick",next:"@pop",nextEmbedded:"@pop"}]],operators:[["[<>=\\+\\-\\*\\/\\^\\|\\~]","operator"]],keyword:[["(@[\\s]*import|![\\s]*important|true|false|when|iscolor|isnumber|isstring|iskeyword|isurl|ispixel|ispercentage|isem|hue|saturation|lightness|alpha|lighten|darken|saturate|desaturate|fadein|fadeout|fade|spin|mix|round|ceil|floor|percentage)\\b","keyword"]],urldeclaration:[{include:"@strings"},["[^)\r\n]+","string"],["\\)",{token:"tag",next:"@pop"}]],attribute:[{include:"@nestedJSBegin"},{include:"@comments"},{include:"@strings"},{include:"@numbers"},{include:"@keyword"},["[a-zA-Z\\-]+(?=\\()","attribute.value","@attribute"],[">","operator","@pop"],["@identifier","attribute.value"],{include:"@operators"},["@(@identifier)","variable"],["[)\\}]","@brackets","@pop"],["[{}()\\[\\]>]","@brackets"],["[;]","delimiter","@pop"],["[,=:]","delimiter"],["\\s",""],[".","attribute.value"]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[".","comment"]],numbers:[["(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?",{token:"attribute.value.number",next:"@units"}],["#[0-9a-fA-F_]+(?!\\w)","attribute.value.hex"]],units:[["(em|ex|ch|rem|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?","attribute.value.unit","@pop"]],strings:[['~?"',{token:"string.delimiter",next:"@stringsEndDoubleQuote"}],["~?'",{token:"string.delimiter",next:"@stringsEndQuote"}]],stringsEndDoubleQuote:[['\\\\"',"string"],['"',{token:"string.delimiter",next:"@popall"}],[".","string"]],stringsEndQuote:[["\\\\'","string"],["'",{token:"string.delimiter",next:"@popall"}],[".","string"]],atRules:[{include:"@comments"},{include:"@strings"},["[()]","delimiter"],["[\\{;]","delimiter","@pop"],[".","key"]]}}}}]); \ No newline at end of file diff --git a/docs/3.3.js b/docs/3.3.js new file mode 100644 index 00000000..8a4b078b --- /dev/null +++ b/docs/3.3.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[3,66],{908:function(e,n,t){"use strict";t.r(n),t.d(n,"conf",(function(){return i})),t.d(n,"language",(function(){return r}));var o=t(212),i={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:o.languages.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:o.languages.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:o.languages.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:o.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")}}},r={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","package","private","protected","public","readonly","require","global","return","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:/[=>](?!@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"],[/(\/)([gimsuy]*)/,[{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"}]}}},932:function(e,n,t){"use strict";t.r(n),t.d(n,"conf",(function(){return i})),t.d(n,"language",(function(){return r}));var o=t(908),i=o.conf,r={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","super","switch","symbol","this","throw","true","try","typeof","undefined","var","void","while","with","yield","async","await","of"],typeKeywords:[],operators:o.language.operators,symbols:o.language.symbols,escapes:o.language.escapes,digits:o.language.digits,octaldigits:o.language.octaldigits,binarydigits:o.language.binarydigits,hexdigits:o.language.hexdigits,regexpctl:o.language.regexpctl,regexpesc:o.language.regexpesc,tokenizer:o.language.tokenizer}}}]); \ No newline at end of file diff --git a/docs/30.30.js b/docs/30.30.js new file mode 100644 index 00000000..b0bda23a --- /dev/null +++ b/docs/30.30.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[30],{936:function(e,t,i){"use strict";i.r(t),i.d(t,"conf",(function(){return o})),i.d(t,"language",(function(){return n}));var o={comments:{lineComment:"COMMENT"},brackets:[["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:":",close:"."}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"`",close:"`"},{open:'"',close:'"'},{open:"'",close:"'"},{open:":",close:"."}],folding:{markers:{start:new RegExp("^\\s*(::\\s*|COMMENT\\s+)#region"),end:new RegExp("^\\s*(::\\s*|COMMENT\\s+)#endregion")}}},n={tokenPostfix:".lexon",ignoreCase:!0,keywords:["lexon","lex","clause","terms","contracts","may","pay","pays","appoints","into","to"],typeKeywords:["amount","person","key","time","date","asset","text"],operators:["less","greater","equal","le","gt","or","and","add","added","subtract","subtracted","multiply","multiplied","times","divide","divided","is","be","certified"],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,"delimiter"],[/\d*\.\d*\.\d*/,"number.semver"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"]],quoted_identifier:[[/[^\\"]+/,"identifier"],[/"/,{token:"identifier.quote",bracket:"@close",next:"@pop"}]],space_identifier_until_period:[[":","delimiter"],[" ",{token:"white",next:"@identifier_rest"}]],identifier_until_period:[{include:"@whitespace"},[":",{token:"delimiter",next:"@identifier_rest"}],[/[^\\.]+/,"identifier"],[/\./,{token:"delimiter",bracket:"@close",next:"@pop"}]],identifier_rest:[[/[^\\.]+/,"identifier"],[/\./,{token:"delimiter",bracket:"@close",next:"@pop"}]],semver:[{include:"@whitespace"},[":","delimiter"],[/\d*\.\d*\.\d*/,{token:"number.semver",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,"white"]]}}}}]); \ No newline at end of file diff --git a/docs/31.31.js b/docs/31.31.js new file mode 100644 index 00000000..b831a6c7 --- /dev/null +++ b/docs/31.31.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[31],{937:function(e,n,o){"use strict";o.r(n),o.d(n,"conf",(function(){return t})),o.d(n,"language",(function(){return s}));var t={comments:{lineComment:"--",blockComment:["--[[","]]"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},s={defaultToken:"",tokenPostfix:".lua",keywords:["and","break","do","else","elseif","end","false","for","function","goto","if","in","local","nil","not","or","repeat","return","then","true","until","while"],brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"}],operators:["+","-","*","/","%","^","#","==","~=","<=",">=","<",">","=",";",":",",",".","..","..."],symbols:/[=>",notIn:["string"]}],surroundingPairs:[{open:"(",close:")"},{open:"[",close:"]"},{open:"`",close:"`"}],folding:{markers:{start:new RegExp("^\\s*\x3c!--\\s*#?region\\b.*--\x3e"),end:new RegExp("^\\s*\x3c!--\\s*#?endregion\\b.*--\x3e")}}},o={defaultToken:"",tokenPostfix:".md",control:/[\\`*_\[\]{}()#+\-\.!]/,noncontrol:/[^\\`*_\[\]{}()#+\-\.!]/,escapes:/\\(?:@control)/,jsescapes:/\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,empty:["area","base","basefont","br","col","frame","hr","img","input","isindex","link","meta","param"],tokenizer:{root:[[/^\s*\|/,"@rematch","@table_header"],[/^(\s{0,3})(#+)((?:[^\\#]|@escapes)+)((?:#+)?)/,["white","keyword","keyword","keyword"]],[/^\s*(=+|\-+)\s*$/,"keyword"],[/^\s*((\*[ ]?)+)\s*$/,"meta.separator"],[/^\s*>+/,"comment"],[/^\s*([\*\-+:]|\d+\.)\s/,"keyword"],[/^(\t|[ ]{4})[^ ].*$/,"string"],[/^\s*~~~\s*((?:\w|[\/\-#])+)?\s*$/,{token:"string",next:"@codeblock"}],[/^\s*```\s*((?:\w|[\/\-#])+).*$/,{token:"string",next:"@codeblockgh",nextEmbedded:"$1"}],[/^\s*```\s*$/,{token:"string",next:"@codeblock"}],{include:"@linecontent"}],table_header:[{include:"@table_common"},[/[^\|]+/,"keyword.table.header"]],table_body:[{include:"@table_common"},{include:"@linecontent"}],table_common:[[/\s*[\-:]+\s*/,{token:"keyword",switchTo:"table_body"}],[/^\s*\|/,"keyword.table.left"],[/^\s*[^\|]/,"@rematch","@pop"],[/^\s*$/,"@rematch","@pop"],[/\|/,{cases:{"@eos":"keyword.table.right","@default":"keyword.table.middle"}}]],codeblock:[[/^\s*~~~\s*$/,{token:"string",next:"@pop"}],[/^\s*```\s*$/,{token:"string",next:"@pop"}],[/.*$/,"variable.source"]],codeblockgh:[[/```\s*$/,{token:"variable.source",next:"@pop",nextEmbedded:"@pop"}],[/[^`]+/,"variable.source"]],linecontent:[[/&\w+;/,"string.escape"],[/@escapes/,"escape"],[/\b__([^\\_]|@escapes|_(?!_))+__\b/,"strong"],[/\*\*([^\\*]|@escapes|\*(?!\*))+\*\*/,"strong"],[/\b_[^_]+_\b/,"emphasis"],[/\*([^\\*]|@escapes)+\*/,"emphasis"],[/`([^\\`]|@escapes)+`/,"variable"],[/\{+[^}]+\}+/,"string.target"],[/(!?\[)((?:[^\]\\]|@escapes)*)(\]\([^\)]+\))/,["string.link","","string.link"]],[/(!?\[)((?:[^\]\\]|@escapes)*)(\])/,"string.link"],{include:"html"}],html:[[/<(\w+)\/>/,"tag"],[/<(\w+)/,{cases:{"@empty":{token:"tag",next:"@tag.$1"},"@default":{token:"tag",next:"@tag.$1"}}}],[/<\/(\w+)\s*>/,{token:"tag"}],[//,"comment","@pop"],[//,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],phpInSimpleState:[[/<\?((php)|=)?/,"metatag.php"],[/\?>/,{token:"metatag.php",switchTo:"@$S2.$S3"}],{include:"phpRoot"}],phpInEmbeddedState:[[/<\?((php)|=)?/,"metatag.php"],[/\?>/,{token:"metatag.php",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"phpRoot"}],phpRoot:[[/[a-zA-Z_]\w*/,{cases:{"@phpKeywords":{token:"keyword.php"},"@phpCompileTimeConstants":{token:"constant.php"},"@default":"identifier.php"}}],[/[$a-zA-Z_]\w*/,{cases:{"@phpPreDefinedVariables":{token:"variable.predefined.php"},"@default":"variable.php"}}],[/[{}]/,"delimiter.bracket.php"],[/[\[\]]/,"delimiter.array.php"],[/[()]/,"delimiter.parenthesis.php"],[/[ \t\r\n]+/],[/(#|\/\/)$/,"comment.php"],[/(#|\/\/)/,"comment.php","@phpLineComment"],[/\/\*/,"comment.php","@phpComment"],[/"/,"string.php","@phpDoubleQuoteString"],[/'/,"string.php","@phpSingleQuoteString"],[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,\@]/,"delimiter.php"],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float.php"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float.php"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex.php"],[/0[0-7']*[0-7]/,"number.octal.php"],[/0[bB][0-1']*[0-1]/,"number.binary.php"],[/\d[\d']*/,"number.php"],[/\d/,"number.php"]],phpComment:[[/\*\//,"comment.php","@pop"],[/[^*]+/,"comment.php"],[/./,"comment.php"]],phpLineComment:[[/\?>/,{token:"@rematch",next:"@pop"}],[/.$/,"comment.php","@pop"],[/[^?]+$/,"comment.php","@pop"],[/[^?]+/,"comment.php"],[/./,"comment.php"]],phpDoubleQuoteString:[[/[^\\"]+/,"string.php"],[/@escapes/,"string.escape.php"],[/\\./,"string.escape.invalid.php"],[/"/,"string.php","@pop"]],phpSingleQuoteString:[[/[^\\']+/,"string.php"],[/@escapes/,"string.escape.php"],[/\\./,"string.escape.invalid.php"],[/'/,"string.php","@pop"]]},phpKeywords:["abstract","and","array","as","break","callable","case","catch","cfunction","class","clone","const","continue","declare","default","do","else","elseif","enddeclare","endfor","endforeach","endif","endswitch","endwhile","extends","false","final","for","foreach","function","global","goto","if","implements","interface","instanceof","insteadof","namespace","new","null","object","old_function","or","private","protected","public","resource","static","switch","throw","trait","try","true","use","var","while","xor","die","echo","empty","exit","eval","include","include_once","isset","list","require","require_once","return","print","unset","yield","__construct"],phpCompileTimeConstants:["__CLASS__","__DIR__","__FILE__","__LINE__","__NAMESPACE__","__METHOD__","__FUNCTION__","__TRAIT__"],phpPreDefinedVariables:["$GLOBALS","$_SERVER","$_GET","$_POST","$_FILES","$_REQUEST","$_SESSION","$_ENV","$_COOKIE","$php_errormsg","$HTTP_RAW_POST_DATA","$http_response_header","$argc","$argv"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/}}}]); \ No newline at end of file diff --git a/docs/42.42.js b/docs/42.42.js new file mode 100644 index 00000000..c0be60fd --- /dev/null +++ b/docs/42.42.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[42],{948:function(e,t,n){"use strict";n.r(t),n.d(t,"conf",(function(){return i})),n.d(t,"language",(function(){return o}));var i={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]}]},o={tokenPostfix:".pats",defaultToken:"invalid",keywords:["abstype","abst0ype","absprop","absview","absvtype","absviewtype","absvt0ype","absviewt0ype","as","and","assume","begin","classdec","datasort","datatype","dataprop","dataview","datavtype","dataviewtype","do","end","extern","extype","extvar","exception","fn","fnx","fun","prfn","prfun","praxi","castfn","if","then","else","ifcase","in","infix","infixl","infixr","prefix","postfix","implmnt","implement","primplmnt","primplement","import","let","local","macdef","macrodef","nonfix","symelim","symintr","overload","of","op","rec","sif","scase","sortdef","sta","stacst","stadef","static","staload","dynload","try","tkindef","typedef","propdef","viewdef","vtypedef","viewtypedef","prval","var","prvar","when","where","with","withtype","withprop","withview","withvtype","withviewtype"],keywords_dlr:["$delay","$ldelay","$arrpsz","$arrptrsize","$d2ctype","$effmask","$effmask_ntm","$effmask_exn","$effmask_ref","$effmask_wrt","$effmask_all","$extern","$extkind","$extype","$extype_struct","$extval","$extfcall","$extmcall","$literal","$myfilename","$mylocation","$myfunction","$lst","$lst_t","$lst_vt","$list","$list_t","$list_vt","$rec","$rec_t","$rec_vt","$record","$record_t","$record_vt","$tup","$tup_t","$tup_vt","$tuple","$tuple_t","$tuple_vt","$break","$continue","$raise","$showtype","$vcopyenv_v","$vcopyenv_vt","$tempenver","$solver_assert","$solver_verify"],keywords_srp:["#if","#ifdef","#ifndef","#then","#elif","#elifdef","#elifndef","#else","#endif","#error","#prerr","#print","#assert","#undef","#define","#include","#require","#pragma","#codegen2","#codegen3"],irregular_keyword_list:["val+","val-","val","case+","case-","case","addr@","addr","fold@","free@","fix@","fix","lam@","lam","llam@","llam","viewt@ype+","viewt@ype-","viewt@ype","viewtype+","viewtype-","viewtype","view+","view-","view@","view","type+","type-","type","vtype+","vtype-","vtype","vt@ype+","vt@ype-","vt@ype","viewt@ype+","viewt@ype-","viewt@ype","viewtype+","viewtype-","viewtype","prop+","prop-","prop","type+","type-","type","t@ype","t@ype+","t@ype-","abst@ype","abstype","absviewt@ype","absvt@ype","for*","for","while*","while"],keywords_types:["bool","double","byte","int","short","char","void","unit","long","float","string","strptr"],keywords_effects:["0","fun","clo","prf","funclo","cloptr","cloref","ref","ntm","1"],operators:["@","!","|","`",":","$",".","=","#","~","..","...","=>","=<>","=/=>","=>>","=/=>>","<",">","><",".<",">.",".<>.","->","-<>"],brackets:[{open:",(",close:")",token:"delimiter.parenthesis"},{open:"`(",close:")",token:"delimiter.parenthesis"},{open:"%(",close:")",token:"delimiter.parenthesis"},{open:"'(",close:")",token:"delimiter.parenthesis"},{open:"'{",close:"}",token:"delimiter.parenthesis"},{open:"@(",close:")",token:"delimiter.parenthesis"},{open:"@{",close:"}",token:"delimiter.brace"},{open:"@[",close:"]",token:"delimiter.square"},{open:"#[",close:"]",token:"delimiter.square"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],symbols:/[=>]/,digit:/[0-9]/,digitseq0:/@digit*/,xdigit:/[0-9A-Za-z]/,xdigitseq0:/@xdigit*/,INTSP:/[lLuU]/,FLOATSP:/[fFlL]/,fexponent:/[eE][+-]?[0-9]+/,fexponent_bin:/[pP][+-]?[0-9]+/,deciexp:/\.[0-9]*@fexponent?/,hexiexp:/\.[0-9a-zA-Z]*@fexponent_bin?/,irregular_keywords:/val[+-]?|case[+-]?|addr\@?|fold\@|free\@|fix\@?|lam\@?|llam\@?|prop[+-]?|type[+-]?|view[+-@]?|viewt@?ype[+-]?|t@?ype[+-]?|v(iew)?t@?ype[+-]?|abst@?ype|absv(iew)?t@?ype|for\*?|while\*?/,ESCHAR:/[ntvbrfa\\\?'"\(\[\{]/,start:"root",tokenizer:{root:[{regex:/[ \t\r\n]+/,action:{token:""}},{regex:/\(\*\)/,action:{token:"invalid"}},{regex:/\(\*/,action:{token:"comment",next:"lexing_COMMENT_block_ml"}},{regex:/\(/,action:"@brackets"},{regex:/\)/,action:"@brackets"},{regex:/\[/,action:"@brackets"},{regex:/\]/,action:"@brackets"},{regex:/\{/,action:"@brackets"},{regex:/\}/,action:"@brackets"},{regex:/,\(/,action:"@brackets"},{regex:/,/,action:{token:"delimiter.comma"}},{regex:/;/,action:{token:"delimiter.semicolon"}},{regex:/@\(/,action:"@brackets"},{regex:/@\[/,action:"@brackets"},{regex:/@\{/,action:"@brackets"},{regex:/:/,action:{token:"@rematch",next:"@pop"}}],lexing_EXTCODE:[{regex:/^%}/,action:{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}},{regex:/[^%]+/,action:""}],lexing_DQUOTE:[{regex:/"/,action:{token:"string.quote",next:"@pop"}},{regex:/(\{\$)(@IDENTFST@IDENTRST*)(\})/,action:[{token:"string.escape"},{token:"identifier"},{token:"string.escape"}]},{regex:/\\$/,action:{token:"string.escape"}},{regex:/\\(@ESCHAR|[xX]@xdigit+|@digit+)/,action:{token:"string.escape"}},{regex:/[^\\"]+/,action:{token:"string"}}]}}}}]); \ No newline at end of file diff --git a/docs/43.43.js b/docs/43.43.js new file mode 100644 index 00000000..4af28bb0 --- /dev/null +++ b/docs/43.43.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[43],{949:function(e,t,a){"use strict";a.r(t),a.d(t,"conf",(function(){return n})),a.d(t,"language",(function(){return i}));var n={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["[","]"],["(",")"],["{","}"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment","identifier"]},{open:"[",close:"]",notIn:["string","comment","identifier"]},{open:"(",close:")",notIn:["string","comment","identifier"]},{open:"{",close:"}",notIn:["string","comment","identifier"]}]},i={defaultToken:"",tokenPostfix:".pq",ignoreCase:!1,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"{",close:"}",token:"delimiter.brackets"},{open:"(",close:")",token:"delimiter.parenthesis"}],operatorKeywords:["and","not","or"],keywords:["as","each","else","error","false","if","in","is","let","meta","otherwise","section","shared","then","true","try","type"],constructors:["#binary","#date","#datetime","#datetimezone","#duration","#table","#time"],constants:["#infinity","#nan","#sections","#shared"],typeKeywords:["action","any","anynonnull","none","null","logical","number","time","date","datetime","datetimezone","duration","text","binary","list","record","table","function"],builtinFunctions:["Access.Database","Action.Return","Action.Sequence","Action.Try","ActiveDirectory.Domains","AdoDotNet.DataSource","AdoDotNet.Query","AdobeAnalytics.Cubes","AnalysisServices.Database","AnalysisServices.Databases","AzureStorage.BlobContents","AzureStorage.Blobs","AzureStorage.Tables","Binary.Buffer","Binary.Combine","Binary.Compress","Binary.Decompress","Binary.End","Binary.From","Binary.FromList","Binary.FromText","Binary.InferContentType","Binary.Length","Binary.ToList","Binary.ToText","BinaryFormat.7BitEncodedSignedInteger","BinaryFormat.7BitEncodedUnsignedInteger","BinaryFormat.Binary","BinaryFormat.Byte","BinaryFormat.ByteOrder","BinaryFormat.Choice","BinaryFormat.Decimal","BinaryFormat.Double","BinaryFormat.Group","BinaryFormat.Length","BinaryFormat.List","BinaryFormat.Null","BinaryFormat.Record","BinaryFormat.SignedInteger16","BinaryFormat.SignedInteger32","BinaryFormat.SignedInteger64","BinaryFormat.Single","BinaryFormat.Text","BinaryFormat.Transform","BinaryFormat.UnsignedInteger16","BinaryFormat.UnsignedInteger32","BinaryFormat.UnsignedInteger64","Byte.From","Character.FromNumber","Character.ToNumber","Combiner.CombineTextByDelimiter","Combiner.CombineTextByEachDelimiter","Combiner.CombineTextByLengths","Combiner.CombineTextByPositions","Combiner.CombineTextByRanges","Comparer.Equals","Comparer.FromCulture","Comparer.Ordinal","Comparer.OrdinalIgnoreCase","Csv.Document","Cube.AddAndExpandDimensionColumn","Cube.AddMeasureColumn","Cube.ApplyParameter","Cube.AttributeMemberId","Cube.AttributeMemberProperty","Cube.CollapseAndRemoveColumns","Cube.Dimensions","Cube.DisplayFolders","Cube.Measures","Cube.Parameters","Cube.Properties","Cube.PropertyKey","Cube.ReplaceDimensions","Cube.Transform","Currency.From","DB2.Database","Date.AddDays","Date.AddMonths","Date.AddQuarters","Date.AddWeeks","Date.AddYears","Date.Day","Date.DayOfWeek","Date.DayOfWeekName","Date.DayOfYear","Date.DaysInMonth","Date.EndOfDay","Date.EndOfMonth","Date.EndOfQuarter","Date.EndOfWeek","Date.EndOfYear","Date.From","Date.FromText","Date.IsInCurrentDay","Date.IsInCurrentMonth","Date.IsInCurrentQuarter","Date.IsInCurrentWeek","Date.IsInCurrentYear","Date.IsInNextDay","Date.IsInNextMonth","Date.IsInNextNDays","Date.IsInNextNMonths","Date.IsInNextNQuarters","Date.IsInNextNWeeks","Date.IsInNextNYears","Date.IsInNextQuarter","Date.IsInNextWeek","Date.IsInNextYear","Date.IsInPreviousDay","Date.IsInPreviousMonth","Date.IsInPreviousNDays","Date.IsInPreviousNMonths","Date.IsInPreviousNQuarters","Date.IsInPreviousNWeeks","Date.IsInPreviousNYears","Date.IsInPreviousQuarter","Date.IsInPreviousWeek","Date.IsInPreviousYear","Date.IsInYearToDate","Date.IsLeapYear","Date.Month","Date.MonthName","Date.QuarterOfYear","Date.StartOfDay","Date.StartOfMonth","Date.StartOfQuarter","Date.StartOfWeek","Date.StartOfYear","Date.ToRecord","Date.ToText","Date.WeekOfMonth","Date.WeekOfYear","Date.Year","DateTime.AddZone","DateTime.Date","DateTime.FixedLocalNow","DateTime.From","DateTime.FromFileTime","DateTime.FromText","DateTime.IsInCurrentHour","DateTime.IsInCurrentMinute","DateTime.IsInCurrentSecond","DateTime.IsInNextHour","DateTime.IsInNextMinute","DateTime.IsInNextNHours","DateTime.IsInNextNMinutes","DateTime.IsInNextNSeconds","DateTime.IsInNextSecond","DateTime.IsInPreviousHour","DateTime.IsInPreviousMinute","DateTime.IsInPreviousNHours","DateTime.IsInPreviousNMinutes","DateTime.IsInPreviousNSeconds","DateTime.IsInPreviousSecond","DateTime.LocalNow","DateTime.Time","DateTime.ToRecord","DateTime.ToText","DateTimeZone.FixedLocalNow","DateTimeZone.FixedUtcNow","DateTimeZone.From","DateTimeZone.FromFileTime","DateTimeZone.FromText","DateTimeZone.LocalNow","DateTimeZone.RemoveZone","DateTimeZone.SwitchZone","DateTimeZone.ToLocal","DateTimeZone.ToRecord","DateTimeZone.ToText","DateTimeZone.ToUtc","DateTimeZone.UtcNow","DateTimeZone.ZoneHours","DateTimeZone.ZoneMinutes","Decimal.From","Diagnostics.ActivityId","Diagnostics.Trace","DirectQueryCapabilities.From","Double.From","Duration.Days","Duration.From","Duration.FromText","Duration.Hours","Duration.Minutes","Duration.Seconds","Duration.ToRecord","Duration.ToText","Duration.TotalDays","Duration.TotalHours","Duration.TotalMinutes","Duration.TotalSeconds","Embedded.Value","Error.Record","Excel.CurrentWorkbook","Excel.Workbook","Exchange.Contents","Expression.Constant","Expression.Evaluate","Expression.Identifier","Facebook.Graph","File.Contents","Folder.Contents","Folder.Files","Function.From","Function.Invoke","Function.InvokeAfter","Function.IsDataSource","GoogleAnalytics.Accounts","Guid.From","HdInsight.Containers","HdInsight.Contents","HdInsight.Files","Hdfs.Contents","Hdfs.Files","Informix.Database","Int16.From","Int32.From","Int64.From","Int8.From","ItemExpression.From","Json.Document","Json.FromValue","Lines.FromBinary","Lines.FromText","Lines.ToBinary","Lines.ToText","List.Accumulate","List.AllTrue","List.Alternate","List.AnyTrue","List.Average","List.Buffer","List.Combine","List.Contains","List.ContainsAll","List.ContainsAny","List.Count","List.Covariance","List.DateTimeZones","List.DateTimes","List.Dates","List.Difference","List.Distinct","List.Durations","List.FindText","List.First","List.FirstN","List.Generate","List.InsertRange","List.Intersect","List.IsDistinct","List.IsEmpty","List.Last","List.LastN","List.MatchesAll","List.MatchesAny","List.Max","List.MaxN","List.Median","List.Min","List.MinN","List.Mode","List.Modes","List.NonNullCount","List.Numbers","List.PositionOf","List.PositionOfAny","List.Positions","List.Product","List.Random","List.Range","List.RemoveFirstN","List.RemoveItems","List.RemoveLastN","List.RemoveMatchingItems","List.RemoveNulls","List.RemoveRange","List.Repeat","List.ReplaceMatchingItems","List.ReplaceRange","List.ReplaceValue","List.Reverse","List.Select","List.Single","List.SingleOrDefault","List.Skip","List.Sort","List.StandardDeviation","List.Sum","List.Times","List.Transform","List.TransformMany","List.Union","List.Zip","Logical.From","Logical.FromText","Logical.ToText","MQ.Queue","MySQL.Database","Number.Abs","Number.Acos","Number.Asin","Number.Atan","Number.Atan2","Number.BitwiseAnd","Number.BitwiseNot","Number.BitwiseOr","Number.BitwiseShiftLeft","Number.BitwiseShiftRight","Number.BitwiseXor","Number.Combinations","Number.Cos","Number.Cosh","Number.Exp","Number.Factorial","Number.From","Number.FromText","Number.IntegerDivide","Number.IsEven","Number.IsNaN","Number.IsOdd","Number.Ln","Number.Log","Number.Log10","Number.Mod","Number.Permutations","Number.Power","Number.Random","Number.RandomBetween","Number.Round","Number.RoundAwayFromZero","Number.RoundDown","Number.RoundTowardZero","Number.RoundUp","Number.Sign","Number.Sin","Number.Sinh","Number.Sqrt","Number.Tan","Number.Tanh","Number.ToText","OData.Feed","Odbc.DataSource","Odbc.Query","OleDb.DataSource","OleDb.Query","Oracle.Database","Percentage.From","PostgreSQL.Database","RData.FromBinary","Record.AddField","Record.Combine","Record.Field","Record.FieldCount","Record.FieldNames","Record.FieldOrDefault","Record.FieldValues","Record.FromList","Record.FromTable","Record.HasFields","Record.RemoveFields","Record.RenameFields","Record.ReorderFields","Record.SelectFields","Record.ToList","Record.ToTable","Record.TransformFields","Replacer.ReplaceText","Replacer.ReplaceValue","RowExpression.Column","RowExpression.From","Salesforce.Data","Salesforce.Reports","SapBusinessWarehouse.Cubes","SapHana.Database","SharePoint.Contents","SharePoint.Files","SharePoint.Tables","Single.From","Soda.Feed","Splitter.SplitByNothing","Splitter.SplitTextByAnyDelimiter","Splitter.SplitTextByDelimiter","Splitter.SplitTextByEachDelimiter","Splitter.SplitTextByLengths","Splitter.SplitTextByPositions","Splitter.SplitTextByRanges","Splitter.SplitTextByRepeatedLengths","Splitter.SplitTextByWhitespace","Sql.Database","Sql.Databases","SqlExpression.SchemaFrom","SqlExpression.ToExpression","Sybase.Database","Table.AddColumn","Table.AddIndexColumn","Table.AddJoinColumn","Table.AddKey","Table.AggregateTableColumn","Table.AlternateRows","Table.Buffer","Table.Column","Table.ColumnCount","Table.ColumnNames","Table.ColumnsOfType","Table.Combine","Table.CombineColumns","Table.Contains","Table.ContainsAll","Table.ContainsAny","Table.DemoteHeaders","Table.Distinct","Table.DuplicateColumn","Table.ExpandListColumn","Table.ExpandRecordColumn","Table.ExpandTableColumn","Table.FillDown","Table.FillUp","Table.FilterWithDataTable","Table.FindText","Table.First","Table.FirstN","Table.FirstValue","Table.FromColumns","Table.FromList","Table.FromPartitions","Table.FromRecords","Table.FromRows","Table.FromValue","Table.Group","Table.HasColumns","Table.InsertRows","Table.IsDistinct","Table.IsEmpty","Table.Join","Table.Keys","Table.Last","Table.LastN","Table.MatchesAllRows","Table.MatchesAnyRows","Table.Max","Table.MaxN","Table.Min","Table.MinN","Table.NestedJoin","Table.Partition","Table.PartitionValues","Table.Pivot","Table.PositionOf","Table.PositionOfAny","Table.PrefixColumns","Table.Profile","Table.PromoteHeaders","Table.Range","Table.RemoveColumns","Table.RemoveFirstN","Table.RemoveLastN","Table.RemoveMatchingRows","Table.RemoveRows","Table.RemoveRowsWithErrors","Table.RenameColumns","Table.ReorderColumns","Table.Repeat","Table.ReplaceErrorValues","Table.ReplaceKeys","Table.ReplaceMatchingRows","Table.ReplaceRelationshipIdentity","Table.ReplaceRows","Table.ReplaceValue","Table.ReverseRows","Table.RowCount","Table.Schema","Table.SelectColumns","Table.SelectRows","Table.SelectRowsWithErrors","Table.SingleRow","Table.Skip","Table.Sort","Table.SplitColumn","Table.ToColumns","Table.ToList","Table.ToRecords","Table.ToRows","Table.TransformColumnNames","Table.TransformColumnTypes","Table.TransformColumns","Table.TransformRows","Table.Transpose","Table.Unpivot","Table.UnpivotOtherColumns","Table.View","Table.ViewFunction","TableAction.DeleteRows","TableAction.InsertRows","TableAction.UpdateRows","Tables.GetRelationships","Teradata.Database","Text.AfterDelimiter","Text.At","Text.BeforeDelimiter","Text.BetweenDelimiters","Text.Clean","Text.Combine","Text.Contains","Text.End","Text.EndsWith","Text.Format","Text.From","Text.FromBinary","Text.Insert","Text.Length","Text.Lower","Text.Middle","Text.NewGuid","Text.PadEnd","Text.PadStart","Text.PositionOf","Text.PositionOfAny","Text.Proper","Text.Range","Text.Remove","Text.RemoveRange","Text.Repeat","Text.Replace","Text.ReplaceRange","Text.Select","Text.Split","Text.SplitAny","Text.Start","Text.StartsWith","Text.ToBinary","Text.ToList","Text.Trim","Text.TrimEnd","Text.TrimStart","Text.Upper","Time.EndOfHour","Time.From","Time.FromText","Time.Hour","Time.Minute","Time.Second","Time.StartOfHour","Time.ToRecord","Time.ToText","Type.AddTableKey","Type.ClosedRecord","Type.Facets","Type.ForFunction","Type.ForRecord","Type.FunctionParameters","Type.FunctionRequiredParameters","Type.FunctionReturn","Type.Is","Type.IsNullable","Type.IsOpenRecord","Type.ListItem","Type.NonNullable","Type.OpenRecord","Type.RecordFields","Type.ReplaceFacets","Type.ReplaceTableKeys","Type.TableColumn","Type.TableKeys","Type.TableRow","Type.TableSchema","Type.Union","Uri.BuildQueryString","Uri.Combine","Uri.EscapeDataString","Uri.Parts","Value.Add","Value.As","Value.Compare","Value.Divide","Value.Equals","Value.Firewall","Value.FromText","Value.Is","Value.Metadata","Value.Multiply","Value.NativeQuery","Value.NullableEquals","Value.RemoveMetadata","Value.ReplaceMetadata","Value.ReplaceType","Value.Subtract","Value.Type","ValueAction.NativeStatement","ValueAction.Replace","Variable.Value","Web.Contents","Web.Page","WebAction.Request","Xml.Document","Xml.Tables"],builtinConstants:["BinaryEncoding.Base64","BinaryEncoding.Hex","BinaryOccurrence.Optional","BinaryOccurrence.Repeating","BinaryOccurrence.Required","ByteOrder.BigEndian","ByteOrder.LittleEndian","Compression.Deflate","Compression.GZip","CsvStyle.QuoteAfterDelimiter","CsvStyle.QuoteAlways","Culture.Current","Day.Friday","Day.Monday","Day.Saturday","Day.Sunday","Day.Thursday","Day.Tuesday","Day.Wednesday","ExtraValues.Error","ExtraValues.Ignore","ExtraValues.List","GroupKind.Global","GroupKind.Local","JoinAlgorithm.Dynamic","JoinAlgorithm.LeftHash","JoinAlgorithm.LeftIndex","JoinAlgorithm.PairwiseHash","JoinAlgorithm.RightHash","JoinAlgorithm.RightIndex","JoinAlgorithm.SortMerge","JoinKind.FullOuter","JoinKind.Inner","JoinKind.LeftAnti","JoinKind.LeftOuter","JoinKind.RightAnti","JoinKind.RightOuter","JoinSide.Left","JoinSide.Right","MissingField.Error","MissingField.Ignore","MissingField.UseNull","Number.E","Number.Epsilon","Number.NaN","Number.NegativeInfinity","Number.PI","Number.PositiveInfinity","Occurrence.All","Occurrence.First","Occurrence.Last","Occurrence.Optional","Occurrence.Repeating","Occurrence.Required","Order.Ascending","Order.Descending","Precision.Decimal","Precision.Double","QuoteStyle.Csv","QuoteStyle.None","RelativePosition.FromEnd","RelativePosition.FromStart","RoundingMode.AwayFromZero","RoundingMode.Down","RoundingMode.ToEven","RoundingMode.TowardZero","RoundingMode.Up","SapHanaDistribution.All","SapHanaDistribution.Connection","SapHanaDistribution.Off","SapHanaDistribution.Statement","SapHanaRangeOperator.Equals","SapHanaRangeOperator.GreaterThan","SapHanaRangeOperator.GreaterThanOrEquals","SapHanaRangeOperator.LessThan","SapHanaRangeOperator.LessThanOrEquals","SapHanaRangeOperator.NotEquals","TextEncoding.Ascii","TextEncoding.BigEndianUnicode","TextEncoding.Unicode","TextEncoding.Utf16","TextEncoding.Utf8","TextEncoding.Windows","TraceLevel.Critical","TraceLevel.Error","TraceLevel.Information","TraceLevel.Verbose","TraceLevel.Warning","WebMethod.Delete","WebMethod.Get","WebMethod.Head","WebMethod.Patch","WebMethod.Post","WebMethod.Put"],builtinTypes:["Action.Type","Any.Type","Binary.Type","BinaryEncoding.Type","BinaryOccurrence.Type","Byte.Type","ByteOrder.Type","Character.Type","Compression.Type","CsvStyle.Type","Currency.Type","Date.Type","DateTime.Type","DateTimeZone.Type","Day.Type","Decimal.Type","Double.Type","Duration.Type","ExtraValues.Type","Function.Type","GroupKind.Type","Guid.Type","Int16.Type","Int32.Type","Int64.Type","Int8.Type","JoinAlgorithm.Type","JoinKind.Type","JoinSide.Type","List.Type","Logical.Type","MissingField.Type","None.Type","Null.Type","Number.Type","Occurrence.Type","Order.Type","Password.Type","Percentage.Type","Precision.Type","QuoteStyle.Type","Record.Type","RelativePosition.Type","RoundingMode.Type","SapHanaDistribution.Type","SapHanaRangeOperator.Type","Single.Type","Table.Type","Text.Type","TextEncoding.Type","Time.Type","TraceLevel.Type","Type.Type","Uri.Type","WebMethod.Type"],tokenizer:{root:[[/#"[\w \.]+"/,"identifier.quote"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/\d+([eE][\-+]?\d+)?/,"number"],[/(#?[a-z]+)\b/,{cases:{"@typeKeywords":"type","@keywords":"keyword","@constants":"constant","@constructors":"constructor","@operatorKeywords":"operators","@default":"identifier"}}],[/\b([A-Z][a-zA-Z0-9]+\.Type)\b/,{cases:{"@builtinTypes":"type","@default":"identifier"}}],[/\b([A-Z][a-zA-Z0-9]+\.[A-Z][a-zA-Z0-9]+)\b/,{cases:{"@builtinFunctions":"keyword.function","@builtinConstants":"constant","@default":"identifier"}}],[/\b([a-zA-Z_][\w\.]*)\b/,"identifier"],{include:"@whitespace"},{include:"@comments"},{include:"@strings"},[/[{}()\[\]]/,"@brackets"],[/([=\+<>\-\*&@\?\/!])|([<>]=)|(<>)|(=>)|(\.\.\.)|(\.\.)/,"operators"],[/[,;]/,"delimiter"]],whitespace:[[/\s+/,"white"]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[".","comment"]],strings:[['"',"string","@string"]],string:[['""',"string.escape"],['"',"string","@pop"],[".","string"]]}}}}]); \ No newline at end of file diff --git a/docs/44.44.js b/docs/44.44.js new file mode 100644 index 00000000..3f60c259 --- /dev/null +++ b/docs/44.44.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[44],{950:function(e,n,s){"use strict";s.r(n),s.d(n,"conf",(function(){return t})),s.d(n,"language",(function(){return o}));var t={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"#",blockComment:["<#","#>"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},o={defaultToken:"",ignoreCase:!0,tokenPostfix:".ps1",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"}],keywords:["begin","break","catch","class","continue","data","define","do","dynamicparam","else","elseif","end","exit","filter","finally","for","foreach","from","function","if","in","param","process","return","switch","throw","trap","try","until","using","var","while","workflow","parallel","sequence","inlinescript","configuration"],helpKeywords:/SYNOPSIS|DESCRIPTION|PARAMETER|EXAMPLE|INPUTS|OUTPUTS|NOTES|LINK|COMPONENT|ROLE|FUNCTIONALITY|FORWARDHELPTARGETNAME|FORWARDHELPCATEGORY|REMOTEHELPRUNSPACE|EXTERNALHELP/,symbols:/[=>/,"comment","@pop"],[/(\.)(@helpKeywords)(?!\w)/,{token:"comment.keyword.$2"}],[/[\.#]/,"comment"]]}}}}]); \ No newline at end of file diff --git a/docs/45.45.js b/docs/45.45.js new file mode 100644 index 00000000..718a19e4 --- /dev/null +++ b/docs/45.45.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[45],{951:function(e,t,n){"use strict";n.r(t),n.d(t,"conf",(function(){return o})),n.d(t,"language",(function(){return a}));var o={comments:{lineComment:"//"},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"]}],folding:{offSide:!0}},a={defaultToken:"",tokenPostfix:".pug",ignoreCase:!0,brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"}],keywords:["append","block","case","default","doctype","each","else","extends","for","if","in","include","mixin","typeof","unless","var","when"],tags:["a","abbr","acronym","address","area","article","aside","audio","b","base","basefont","bdi","bdo","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","datalist","dd","del","details","dfn","div","dl","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","keygen","kbd","label","li","link","map","mark","menu","meta","meter","nav","noframes","noscript","object","ol","optgroup","option","output","p","param","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strike","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","tracks","tt","u","ul","video","wbr"],symbols:/[\+\-\*\%\&\|\!\=\/\.\,\:]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/^(\s*)([a-zA-Z_-][\w-]*)/,{cases:{"$2@tags":{cases:{"@eos":["","tag"],"@default":["",{token:"tag",next:"@tag.$1"}]}},"$2@keywords":["",{token:"keyword.$2"}],"@default":["",""]}}],[/^(\s*)(#[a-zA-Z_-][\w-]*)/,{cases:{"@eos":["","tag.id"],"@default":["",{token:"tag.id",next:"@tag.$1"}]}}],[/^(\s*)(\.[a-zA-Z_-][\w-]*)/,{cases:{"@eos":["","tag.class"],"@default":["",{token:"tag.class",next:"@tag.$1"}]}}],[/^(\s*)(\|.*)$/,""],{include:"@whitespace"},[/[a-zA-Z_$][\w$]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":""}}],[/[{}()\[\]]/,"@brackets"],[/@symbols/,"delimiter"],[/\d+\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\d+/,"number"],[/"/,"string",'@string."'],[/'/,"string","@string.'"]],tag:[[/(\.)(\s*$)/,[{token:"delimiter",next:"@blockText.$S2."},""]],[/\s+/,{token:"",next:"@simpleText"}],[/#[a-zA-Z_-][\w-]*/,{cases:{"@eos":{token:"tag.id",next:"@pop"},"@default":"tag.id"}}],[/\.[a-zA-Z_-][\w-]*/,{cases:{"@eos":{token:"tag.class",next:"@pop"},"@default":"tag.class"}}],[/\(/,{token:"delimiter.parenthesis",next:"@attributeList"}]],simpleText:[[/[^#]+$/,{token:"",next:"@popall"}],[/[^#]+/,{token:""}],[/(#{)([^}]*)(})/,{cases:{"@eos":["interpolation.delimiter","interpolation",{token:"interpolation.delimiter",next:"@popall"}],"@default":["interpolation.delimiter","interpolation","interpolation.delimiter"]}}],[/#$/,{token:"",next:"@popall"}],[/#/,""]],attributeList:[[/\s+/,""],[/(\w+)(\s*=\s*)("|')/,["attribute.name","delimiter",{token:"attribute.value",next:"@value.$3"}]],[/\w+/,"attribute.name"],[/,/,{cases:{"@eos":{token:"attribute.delimiter",next:"@popall"},"@default":"attribute.delimiter"}}],[/\)$/,{token:"delimiter.parenthesis",next:"@popall"}],[/\)/,{token:"delimiter.parenthesis",next:"@pop"}]],whitespace:[[/^(\s*)(\/\/.*)$/,{token:"comment",next:"@blockText.$1.comment"}],[/[ \t\r\n]+/,""],[//,{token:"comment",next:"@pop"}],[//,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],razorInSimpleState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3"}]],razorInEmbeddedState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],razorBlockCommentTopLevel:[[/\*@/,"@rematch","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorBlockComment:[[/\*@/,"comment.cs","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorRootTopLevel:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/[})]/,"@rematch","@pop"],{include:"razorCommon"}],razorRoot:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/\}/,"delimiter.bracket.cs","@pop"],[/\)/,"delimiter.parenthesis.cs","@pop"],{include:"razorCommon"}],razorCommon:[[/[a-zA-Z_]\w*/,{cases:{"@razorKeywords":{token:"keyword.cs"},"@default":"identifier.cs"}}],[/[\[\]]/,"delimiter.array.cs"],[/[ \t\r\n]+/],[/\/\/.*$/,"comment.cs"],[/@\*/,"comment.cs","@razorBlockComment"],[/"([^"]*)"/,"string.cs"],[/'([^']*)'/,"string.cs"],[/(<)(\w+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(\w+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<\/)(\w+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,]/,"delimiter.cs"],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float.cs"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float.cs"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex.cs"],[/0[0-7']*[0-7]/,"number.octal.cs"],[/0[bB][0-1']*[0-1]/,"number.binary.cs"],[/\d[\d']*/,"number.cs"],[/\d/,"number.cs"]]},razorKeywords:["abstract","as","async","await","base","bool","break","by","byte","case","catch","char","checked","class","const","continue","decimal","default","delegate","do","double","descending","explicit","event","extern","else","enum","false","finally","fixed","float","for","foreach","from","goto","group","if","implicit","in","int","interface","internal","into","is","lock","long","nameof","new","null","namespace","object","operator","out","override","orderby","params","private","protected","public","readonly","ref","return","switch","struct","sbyte","sealed","short","sizeof","stackalloc","static","string","select","this","throw","true","try","typeof","uint","ulong","unchecked","unsafe","ushort","using","var","virtual","volatile","void","when","while","where","yield","model","inject"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/}}}]); \ No newline at end of file diff --git a/docs/49.49.js b/docs/49.49.js new file mode 100644 index 00000000..b5764316 --- /dev/null +++ b/docs/49.49.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[49],{955:function(E,S,e){"use strict";e.r(S),e.d(S,"conf",(function(){return T})),e.d(S,"language",(function(){return R}));var T={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},R={defaultToken:"",tokenPostfix:".redis",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["APPEND","AUTH","BGREWRITEAOF","BGSAVE","BITCOUNT","BITFIELD","BITOP","BITPOS","BLPOP","BRPOP","BRPOPLPUSH","CLIENT","KILL","LIST","GETNAME","PAUSE","REPLY","SETNAME","CLUSTER","ADDSLOTS","COUNT-FAILURE-REPORTS","COUNTKEYSINSLOT","DELSLOTS","FAILOVER","FORGET","GETKEYSINSLOT","INFO","KEYSLOT","MEET","NODES","REPLICATE","RESET","SAVECONFIG","SET-CONFIG-EPOCH","SETSLOT","SLAVES","SLOTS","COMMAND","COUNT","GETKEYS","CONFIG","GET","REWRITE","SET","RESETSTAT","DBSIZE","DEBUG","OBJECT","SEGFAULT","DECR","DECRBY","DEL","DISCARD","DUMP","ECHO","EVAL","EVALSHA","EXEC","EXISTS","EXPIRE","EXPIREAT","FLUSHALL","FLUSHDB","GEOADD","GEOHASH","GEOPOS","GEODIST","GEORADIUS","GEORADIUSBYMEMBER","GETBIT","GETRANGE","GETSET","HDEL","HEXISTS","HGET","HGETALL","HINCRBY","HINCRBYFLOAT","HKEYS","HLEN","HMGET","HMSET","HSET","HSETNX","HSTRLEN","HVALS","INCR","INCRBY","INCRBYFLOAT","KEYS","LASTSAVE","LINDEX","LINSERT","LLEN","LPOP","LPUSH","LPUSHX","LRANGE","LREM","LSET","LTRIM","MGET","MIGRATE","MONITOR","MOVE","MSET","MSETNX","MULTI","PERSIST","PEXPIRE","PEXPIREAT","PFADD","PFCOUNT","PFMERGE","PING","PSETEX","PSUBSCRIBE","PUBSUB","PTTL","PUBLISH","PUNSUBSCRIBE","QUIT","RANDOMKEY","READONLY","READWRITE","RENAME","RENAMENX","RESTORE","ROLE","RPOP","RPOPLPUSH","RPUSH","RPUSHX","SADD","SAVE","SCARD","SCRIPT","FLUSH","LOAD","SDIFF","SDIFFSTORE","SELECT","SETBIT","SETEX","SETNX","SETRANGE","SHUTDOWN","SINTER","SINTERSTORE","SISMEMBER","SLAVEOF","SLOWLOG","SMEMBERS","SMOVE","SORT","SPOP","SRANDMEMBER","SREM","STRLEN","SUBSCRIBE","SUNION","SUNIONSTORE","SWAPDB","SYNC","TIME","TOUCH","TTL","TYPE","UNSUBSCRIBE","UNLINK","UNWATCH","WAIT","WATCH","ZADD","ZCARD","ZCOUNT","ZINCRBY","ZINTERSTORE","ZLEXCOUNT","ZRANGE","ZRANGEBYLEX","ZREVRANGEBYLEX","ZRANGEBYSCORE","ZRANK","ZREM","ZREMRANGEBYLEX","ZREMRANGEBYRANK","ZREMRANGEBYSCORE","ZREVRANGE","ZREVRANGEBYSCORE","ZREVRANK","ZSCORE","ZUNIONSTORE","SCAN","SSCAN","HSCAN","ZSCAN"],operators:[],builtinFunctions:[],builtinVariables:[],pseudoColumns:[],tokenizer:{root:[{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@keywords":"keyword","@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/'/,{token:"string",next:"@string"}],[/"/,{token:"string.double",next:"@stringDouble"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],stringDouble:[[/[^"]+/,"string.double"],[/""/,"string.double"],[/"/,{token:"string.double",next:"@pop"}]],scopes:[]}}}}]); \ No newline at end of file diff --git a/docs/5.5.js b/docs/5.5.js new file mode 100644 index 00000000..20933d70 --- /dev/null +++ b/docs/5.5.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{905:function(e,t,n){"use strict";n.r(t);var i,r,a,o,s,l,c,h,d,u,p,m,f,g,b,_,w,v,y,T,k,S=n(201),x=function(){function e(e){var t=this;this._defaults=e,this._worker=null,this._idleCheckInterval=setInterval((function(){return t._checkIfIdle()}),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange((function(){return t._stopWorker()}))}return e.prototype._stopWorker=function(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null},e.prototype.dispose=function(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()},e.prototype._checkIfIdle=function(){this._worker&&(Date.now()-this._lastUsedTime>12e4&&this._stopWorker())},e.prototype._getClient=function(){return this._lastUsedTime=Date.now(),this._client||(this._worker=S.editor.createWebWorker({moduleId:"vs/language/html/htmlWorker",createData:{languageSettings:this._defaults.options,languageId:this._defaults.languageId},label:this._defaults.languageId}),this._client=this._worker.getProxy()),this._client},e.prototype.getLanguageServiceWorker=function(){for(var e,t=this,n=[],i=0;i0&&(r.arguments=n),r},e.is=function(e){var t=e;return re.defined(t)&&re.string(t.title)&&re.string(t.command)}}(b||(b={})),function(e){e.replace=function(e,t){return{range:e,newText:t}},e.insert=function(e,t){return{range:{start:e,end:e},newText:t}},e.del=function(e){return{range:e,newText:""}},e.is=function(e){var t=e;return re.objectLiteral(t)&&re.string(t.newText)&&r.is(t.range)}}(_||(_={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){var t=e;return re.defined(t)&&A.is(t.textDocument)&&Array.isArray(t.edits)}}(w||(w={})),function(e){e.create=function(e,t){var n={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(n.options=t),n},e.is=function(e){var t=e;return t&&"create"===t.kind&&re.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||re.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||re.boolean(t.options.ignoreIfExists)))}}(v||(v={})),function(e){e.create=function(e,t,n){var i={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(i.options=n),i},e.is=function(e){var t=e;return t&&"rename"===t.kind&&re.string(t.oldUri)&&re.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||re.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||re.boolean(t.options.ignoreIfExists)))}}(y||(y={})),function(e){e.create=function(e,t){var n={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(n.options=t),n},e.is=function(e){var t=e;return t&&"delete"===t.kind&&re.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||re.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||re.boolean(t.options.ignoreIfNotExists)))}}(T||(T={})),function(e){e.is=function(e){var t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((function(e){return re.string(e.kind)?v.is(e)||y.is(e)||T.is(e):w.is(e)})))}}(k||(k={}));var E,A,R,z,I,H,C,U,W,D,P,O,q,N,F,j,B,G,V,K,J,Y,X,$,Q,Z,ee,te,ne=function(){function e(e){this.edits=e}return e.prototype.insert=function(e,t){this.edits.push(_.insert(e,t))},e.prototype.replace=function(e,t){this.edits.push(_.replace(e,t))},e.prototype.delete=function(e){this.edits.push(_.del(e))},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e}();!function(){function e(e){var t=this;this._textEditChanges=Object.create(null),e&&(this._workspaceEdit=e,e.documentChanges?e.documentChanges.forEach((function(e){if(w.is(e)){var n=new ne(e.edits);t._textEditChanges[e.textDocument.uri]=n}})):e.changes&&Object.keys(e.changes).forEach((function(n){var i=new ne(e.changes[n]);t._textEditChanges[n]=i})))}Object.defineProperty(e.prototype,"edit",{get:function(){return void 0===this._workspaceEdit?{documentChanges:[]}:this._workspaceEdit},enumerable:!0,configurable:!0}),e.prototype.getTextEditChange=function(e){if(A.is(e)){if(this._workspaceEdit||(this._workspaceEdit={documentChanges:[]}),!this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var t=e;if(!(i=this._textEditChanges[t.uri])){var n={textDocument:t,edits:r=[]};this._workspaceEdit.documentChanges.push(n),i=new ne(r),this._textEditChanges[t.uri]=i}return i}if(this._workspaceEdit||(this._workspaceEdit={changes:Object.create(null)}),!this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var i;if(!(i=this._textEditChanges[e])){var r=[];this._workspaceEdit.changes[e]=r,i=new ne(r),this._textEditChanges[e]=i}return i},e.prototype.createFile=function(e,t){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(v.create(e,t))},e.prototype.renameFile=function(e,t,n){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(y.create(e,t,n))},e.prototype.deleteFile=function(e,t){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(T.create(e,t))},e.prototype.checkDocumentChanges=function(){if(!this._workspaceEdit||!this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.")}}();!function(e){e.create=function(e){return{uri:e}},e.is=function(e){var t=e;return re.defined(t)&&re.string(t.uri)}}(E||(E={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return re.defined(t)&&re.string(t.uri)&&(null===t.version||re.number(t.version))}}(A||(A={})),function(e){e.create=function(e,t,n,i){return{uri:e,languageId:t,version:n,text:i}},e.is=function(e){var t=e;return re.defined(t)&&re.string(t.uri)&&re.string(t.languageId)&&re.number(t.version)&&re.string(t.text)}}(R||(R={})),function(e){e.PlainText="plaintext",e.Markdown="markdown"}(z||(z={})),function(e){e.is=function(t){var n=t;return n===e.PlainText||n===e.Markdown}}(z||(z={})),function(e){e.is=function(e){var t=e;return re.objectLiteral(e)&&z.is(t.kind)&&re.string(t.value)}}(I||(I={})),function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25}(H||(H={})),function(e){e.PlainText=1,e.Snippet=2}(C||(C={})),function(e){e.Deprecated=1}(U||(U={})),function(e){e.create=function(e,t,n){return{newText:e,insert:t,replace:n}},e.is=function(e){var t=e;return t&&re.string(t.newText)&&r.is(t.insert)&&r.is(t.replace)}}(W||(W={})),function(e){e.create=function(e){return{label:e}}}(D||(D={})),function(e){e.create=function(e,t){return{items:e||[],isIncomplete:!!t}}}(P||(P={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},e.is=function(e){var t=e;return re.string(t)||re.objectLiteral(t)&&re.string(t.language)&&re.string(t.value)}}(O||(O={})),function(e){e.is=function(e){var t=e;return!!t&&re.objectLiteral(t)&&(I.is(t.contents)||O.is(t.contents)||re.typedArray(t.contents,O.is))&&(void 0===e.range||r.is(e.range))}}(q||(q={})),function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e}}}(N||(N={})),function(e){e.create=function(e,t){for(var n=[],i=2;i=0;a--){var o=i[a],s=e.offsetAt(o.range.start),l=e.offsetAt(o.range.end);if(!(l<=r))throw new Error("Overlapping edit");n=n.substring(0,s)+o.newText+n.substring(l,n.length),r=s}return n}}(ie||(ie={}));var re,ae=function(){function e(e,t,n,i){this._uri=e,this._languageId=t,this._version=n,this._content=i,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!0,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,n=!0,i=0;i0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return i.create(0,e);for(;ne?r=a:n=a+1}var o=n-1;return i.create(o,e-t[o])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],i=e.line+1e?i=r:n=r+1}var a=n-1;return{line:a,character:e-t[a]}},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],i=e.line+1n.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function me(e){var t=pe(e.range);return t!==e.range?{newText:e.newText,range:t}:e}!function(e){e.create=function(e,t,n,i){return new de(e,t,n,i)},e.update=function(e,t,n){if(e instanceof de)return e.update(t,n),e;throw new Error("TextDocument.update: document must be created by TextDocument.create")},e.applyEdits=function(e,t){for(var n=e.getText(),i=0,r=[],a=0,o=function e(t,n){if(t.length<=1)return t;var i=t.length/2|0,r=t.slice(0,i),a=t.slice(i);e(r,n),e(a,n);var o=0,s=0,l=0;for(;oi&&r.push(n.substring(i,l)),s.newText.length&&r.push(s.newText),i=e.offsetAt(s.range.end)}return r.push(n.substr(i)),r.join("")}}(oe||(oe={})),function(e){e[e.StartCommentTag=0]="StartCommentTag",e[e.Comment=1]="Comment",e[e.EndCommentTag=2]="EndCommentTag",e[e.StartTagOpen=3]="StartTagOpen",e[e.StartTagClose=4]="StartTagClose",e[e.StartTagSelfClose=5]="StartTagSelfClose",e[e.StartTag=6]="StartTag",e[e.EndTagOpen=7]="EndTagOpen",e[e.EndTagClose=8]="EndTagClose",e[e.EndTag=9]="EndTag",e[e.DelimiterAssign=10]="DelimiterAssign",e[e.AttributeName=11]="AttributeName",e[e.AttributeValue=12]="AttributeValue",e[e.StartDoctypeTag=13]="StartDoctypeTag",e[e.Doctype=14]="Doctype",e[e.EndDoctypeTag=15]="EndDoctypeTag",e[e.Content=16]="Content",e[e.Whitespace=17]="Whitespace",e[e.Unknown=18]="Unknown",e[e.Script=19]="Script",e[e.Styles=20]="Styles",e[e.EOS=21]="EOS"}(se||(se={})),function(e){e[e.WithinContent=0]="WithinContent",e[e.AfterOpeningStartTag=1]="AfterOpeningStartTag",e[e.AfterOpeningEndTag=2]="AfterOpeningEndTag",e[e.WithinDoctype=3]="WithinDoctype",e[e.WithinTag=4]="WithinTag",e[e.WithinEndTag=5]="WithinEndTag",e[e.WithinComment=6]="WithinComment",e[e.WithinScriptContent=7]="WithinScriptContent",e[e.WithinStyleContent=8]="WithinStyleContent",e[e.AfterAttributeName=9]="AfterAttributeName",e[e.BeforeAttributeValue=10]="BeforeAttributeValue"}(le||(le={})),(ce||(ce={})).LATEST={textDocument:{completion:{completionItem:{documentationFormat:[z.Markdown,z.PlainText]}},hover:{contentFormat:[z.Markdown,z.PlainText]}}},function(e){e[e.Unknown=0]="Unknown",e[e.File=1]="File",e[e.Directory=2]="Directory",e[e.SymbolicLink=64]="SymbolicLink"}(he||(he={}));var fe=L(),ge=function(){function e(e,t){this.source=e,this.len=e.length,this.position=t}return e.prototype.eos=function(){return this.len<=this.position},e.prototype.getSource=function(){return this.source},e.prototype.pos=function(){return this.position},e.prototype.goBackTo=function(e){this.position=e},e.prototype.goBack=function(e){this.position-=e},e.prototype.advance=function(e){this.position+=e},e.prototype.goToEnd=function(){this.position=this.source.length},e.prototype.nextChar=function(){return this.source.charCodeAt(this.position++)||0},e.prototype.peekChar=function(e){return void 0===e&&(e=0),this.source.charCodeAt(this.position+e)||0},e.prototype.advanceIfChar=function(e){return e===this.source.charCodeAt(this.position)&&(this.position++,!0)},e.prototype.advanceIfChars=function(e){var t;if(this.position+e.length>this.source.length)return!1;for(t=0;t0},e.prototype.advanceWhileChar=function(e){for(var t=this.position;this.position0?(h=le.WithinEndTag,m(n,se.EndTag)):c.skipWhitespace()?m(n,se.Whitespace,fe("error.unexpectedWhitespace","Tag name must directly follow the open bracket.")):(h=le.WithinEndTag,c.advanceUntilChar(ve),n0?(a=!1,h=le.WithinTag,m(n,se.StartTag)):c.skipWhitespace()?m(n,se.Whitespace,fe("error.unexpectedWhitespace","Tag name must directly follow the open bracket.")):(h=le.WithinTag,c.advanceUntilChar(ve),n0?(h=le.AfterAttributeName,a=!1,m(n,se.AttributeName)):c.advanceIfChars([ye,ve])?(h=le.WithinContent,m(n,se.StartTagSelfClose)):c.advanceIfChar(ve)?(h="script"===o?l&&Re[l]?le.WithinContent:le.WithinScriptContent:"style"===o?le.WithinStyleContent:le.WithinContent,m(n,se.StartTagClose)):i&&c.peekChar()===we?(h=le.WithinContent,m(n,se.StartTagClose,fe("error.closingBracketMissing","Closing bracket missing."))):(c.advance(1),m(n,se.Unknown,fe("error.unexpectedCharacterInTag","Unexpected character in tag.")));case le.AfterAttributeName:return c.skipWhitespace()?(a=!0,m(n,se.Whitespace)):c.advanceIfChar(Te)?(h=le.BeforeAttributeValue,m(n,se.DelimiterAssign)):(h=le.WithinTag,e());case le.BeforeAttributeValue:if(c.skipWhitespace())return m(n,se.Whitespace);var r=c.advanceIfRegExp(/^[^\s"'`=<>]+/);if(r.length>0)return c.peekChar()===ve&&c.peekChar(-1)===ye&&(c.goBack(1),r=r.substr(0,r.length-1)),"type"===s&&(l=r),h=le.WithinTag,a=!1,m(n,se.AttributeValue);var d=c.peekChar();return d===Se||d===ke?(c.advance(1),c.advanceUntilChar(d)&&c.advance(1),"type"===s&&(l=c.getSource().substring(n+1,c.pos()-1)),h=le.WithinTag,a=!1,m(n,se.AttributeValue)):(h=le.WithinTag,a=!1,e());case le.WithinScriptContent:for(var u=1;!c.eos();){var f=c.advanceIfRegExp(/|<\/?script\s*\/?>?/i);if(0===f.length)return c.goToEnd(),m(n,se.Script);if("\x3c!--"===f)1===u&&(u=2);else if("--\x3e"===f)u=1;else if("/"!==f[1])2===u&&(u=3);else{if(3!==u){c.goBack(f.length);break}u=2}}return h=le.WithinContent,n0))return a;r=a-1}}return-(i+1)}(He,e.toLowerCase(),(function(e,t){return e.localeCompare(t)}))>=0}!function(){function e(e,t,n,i){this.start=e,this.end=t,this.children=n,this.parent=i,this.closed=!1}Object.defineProperty(e.prototype,"attributeNames",{get:function(){return this.attributes?Object.keys(this.attributes):[]},enumerable:!1,configurable:!0}),e.prototype.isSameTag=function(e){return void 0===this.tag?void 0===e:void 0!==e&&this.tag.length===e.length&&this.tag.toLowerCase()===e},Object.defineProperty(e.prototype,"firstChild",{get:function(){return this.children[0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastChild",{get:function(){return this.children.length?this.children[this.children.length-1]:void 0},enumerable:!1,configurable:!0}),e.prototype.findNodeBefore=function(e){var t=Ie(this.children,(function(t){return e<=t.start}))-1;if(t>=0){var n=this.children[t];if(e>n.start){if(e=0){var n=this.children[t];if(e>n.start&&e<=n.end)return n.findNodeAt(e)}return this}}();var Ue={"Aacute;":"Á",Aacute:"Á","aacute;":"á",aacute:"á","Abreve;":"Ă","abreve;":"ă","ac;":"∾","acd;":"∿","acE;":"∾̳","Acirc;":"Â",Acirc:"Â","acirc;":"â",acirc:"â","acute;":"´",acute:"´","Acy;":"А","acy;":"а","AElig;":"Æ",AElig:"Æ","aelig;":"æ",aelig:"æ","af;":"⁡","Afr;":"𝔄","afr;":"𝔞","Agrave;":"À",Agrave:"À","agrave;":"à",agrave:"à","alefsym;":"ℵ","aleph;":"ℵ","Alpha;":"Α","alpha;":"α","Amacr;":"Ā","amacr;":"ā","amalg;":"⨿","AMP;":"&",AMP:"&","amp;":"&",amp:"&","And;":"⩓","and;":"∧","andand;":"⩕","andd;":"⩜","andslope;":"⩘","andv;":"⩚","ang;":"∠","ange;":"⦤","angle;":"∠","angmsd;":"∡","angmsdaa;":"⦨","angmsdab;":"⦩","angmsdac;":"⦪","angmsdad;":"⦫","angmsdae;":"⦬","angmsdaf;":"⦭","angmsdag;":"⦮","angmsdah;":"⦯","angrt;":"∟","angrtvb;":"⊾","angrtvbd;":"⦝","angsph;":"∢","angst;":"Å","angzarr;":"⍼","Aogon;":"Ą","aogon;":"ą","Aopf;":"𝔸","aopf;":"𝕒","ap;":"≈","apacir;":"⩯","apE;":"⩰","ape;":"≊","apid;":"≋","apos;":"'","ApplyFunction;":"⁡","approx;":"≈","approxeq;":"≊","Aring;":"Å",Aring:"Å","aring;":"å",aring:"å","Ascr;":"𝒜","ascr;":"𝒶","Assign;":"≔","ast;":"*","asymp;":"≈","asympeq;":"≍","Atilde;":"Ã",Atilde:"Ã","atilde;":"ã",atilde:"ã","Auml;":"Ä",Auml:"Ä","auml;":"ä",auml:"ä","awconint;":"∳","awint;":"⨑","backcong;":"≌","backepsilon;":"϶","backprime;":"‵","backsim;":"∽","backsimeq;":"⋍","Backslash;":"∖","Barv;":"⫧","barvee;":"⊽","Barwed;":"⌆","barwed;":"⌅","barwedge;":"⌅","bbrk;":"⎵","bbrktbrk;":"⎶","bcong;":"≌","Bcy;":"Б","bcy;":"б","bdquo;":"„","becaus;":"∵","Because;":"∵","because;":"∵","bemptyv;":"⦰","bepsi;":"϶","bernou;":"ℬ","Bernoullis;":"ℬ","Beta;":"Β","beta;":"β","beth;":"ℶ","between;":"≬","Bfr;":"𝔅","bfr;":"𝔟","bigcap;":"⋂","bigcirc;":"◯","bigcup;":"⋃","bigodot;":"⨀","bigoplus;":"⨁","bigotimes;":"⨂","bigsqcup;":"⨆","bigstar;":"★","bigtriangledown;":"▽","bigtriangleup;":"△","biguplus;":"⨄","bigvee;":"⋁","bigwedge;":"⋀","bkarow;":"⤍","blacklozenge;":"⧫","blacksquare;":"▪","blacktriangle;":"▴","blacktriangledown;":"▾","blacktriangleleft;":"◂","blacktriangleright;":"▸","blank;":"␣","blk12;":"▒","blk14;":"░","blk34;":"▓","block;":"█","bne;":"=⃥","bnequiv;":"≡⃥","bNot;":"⫭","bnot;":"⌐","Bopf;":"𝔹","bopf;":"𝕓","bot;":"⊥","bottom;":"⊥","bowtie;":"⋈","boxbox;":"⧉","boxDL;":"╗","boxDl;":"╖","boxdL;":"╕","boxdl;":"┐","boxDR;":"╔","boxDr;":"╓","boxdR;":"╒","boxdr;":"┌","boxH;":"═","boxh;":"─","boxHD;":"╦","boxHd;":"╤","boxhD;":"╥","boxhd;":"┬","boxHU;":"╩","boxHu;":"╧","boxhU;":"╨","boxhu;":"┴","boxminus;":"⊟","boxplus;":"⊞","boxtimes;":"⊠","boxUL;":"╝","boxUl;":"╜","boxuL;":"╛","boxul;":"┘","boxUR;":"╚","boxUr;":"╙","boxuR;":"╘","boxur;":"└","boxV;":"║","boxv;":"│","boxVH;":"╬","boxVh;":"╫","boxvH;":"╪","boxvh;":"┼","boxVL;":"╣","boxVl;":"╢","boxvL;":"╡","boxvl;":"┤","boxVR;":"╠","boxVr;":"╟","boxvR;":"╞","boxvr;":"├","bprime;":"‵","Breve;":"˘","breve;":"˘","brvbar;":"¦",brvbar:"¦","Bscr;":"ℬ","bscr;":"𝒷","bsemi;":"⁏","bsim;":"∽","bsime;":"⋍","bsol;":"\\","bsolb;":"⧅","bsolhsub;":"⟈","bull;":"•","bullet;":"•","bump;":"≎","bumpE;":"⪮","bumpe;":"≏","Bumpeq;":"≎","bumpeq;":"≏","Cacute;":"Ć","cacute;":"ć","Cap;":"⋒","cap;":"∩","capand;":"⩄","capbrcup;":"⩉","capcap;":"⩋","capcup;":"⩇","capdot;":"⩀","CapitalDifferentialD;":"ⅅ","caps;":"∩︀","caret;":"⁁","caron;":"ˇ","Cayleys;":"ℭ","ccaps;":"⩍","Ccaron;":"Č","ccaron;":"č","Ccedil;":"Ç",Ccedil:"Ç","ccedil;":"ç",ccedil:"ç","Ccirc;":"Ĉ","ccirc;":"ĉ","Cconint;":"∰","ccups;":"⩌","ccupssm;":"⩐","Cdot;":"Ċ","cdot;":"ċ","cedil;":"¸",cedil:"¸","Cedilla;":"¸","cemptyv;":"⦲","cent;":"¢",cent:"¢","CenterDot;":"·","centerdot;":"·","Cfr;":"ℭ","cfr;":"𝔠","CHcy;":"Ч","chcy;":"ч","check;":"✓","checkmark;":"✓","Chi;":"Χ","chi;":"χ","cir;":"○","circ;":"ˆ","circeq;":"≗","circlearrowleft;":"↺","circlearrowright;":"↻","circledast;":"⊛","circledcirc;":"⊚","circleddash;":"⊝","CircleDot;":"⊙","circledR;":"®","circledS;":"Ⓢ","CircleMinus;":"⊖","CirclePlus;":"⊕","CircleTimes;":"⊗","cirE;":"⧃","cire;":"≗","cirfnint;":"⨐","cirmid;":"⫯","cirscir;":"⧂","ClockwiseContourIntegral;":"∲","CloseCurlyDoubleQuote;":"”","CloseCurlyQuote;":"’","clubs;":"♣","clubsuit;":"♣","Colon;":"∷","colon;":":","Colone;":"⩴","colone;":"≔","coloneq;":"≔","comma;":",","commat;":"@","comp;":"∁","compfn;":"∘","complement;":"∁","complexes;":"ℂ","cong;":"≅","congdot;":"⩭","Congruent;":"≡","Conint;":"∯","conint;":"∮","ContourIntegral;":"∮","Copf;":"ℂ","copf;":"𝕔","coprod;":"∐","Coproduct;":"∐","COPY;":"©",COPY:"©","copy;":"©",copy:"©","copysr;":"℗","CounterClockwiseContourIntegral;":"∳","crarr;":"↵","Cross;":"⨯","cross;":"✗","Cscr;":"𝒞","cscr;":"𝒸","csub;":"⫏","csube;":"⫑","csup;":"⫐","csupe;":"⫒","ctdot;":"⋯","cudarrl;":"⤸","cudarrr;":"⤵","cuepr;":"⋞","cuesc;":"⋟","cularr;":"↶","cularrp;":"⤽","Cup;":"⋓","cup;":"∪","cupbrcap;":"⩈","CupCap;":"≍","cupcap;":"⩆","cupcup;":"⩊","cupdot;":"⊍","cupor;":"⩅","cups;":"∪︀","curarr;":"↷","curarrm;":"⤼","curlyeqprec;":"⋞","curlyeqsucc;":"⋟","curlyvee;":"⋎","curlywedge;":"⋏","curren;":"¤",curren:"¤","curvearrowleft;":"↶","curvearrowright;":"↷","cuvee;":"⋎","cuwed;":"⋏","cwconint;":"∲","cwint;":"∱","cylcty;":"⌭","Dagger;":"‡","dagger;":"†","daleth;":"ℸ","Darr;":"↡","dArr;":"⇓","darr;":"↓","dash;":"‐","Dashv;":"⫤","dashv;":"⊣","dbkarow;":"⤏","dblac;":"˝","Dcaron;":"Ď","dcaron;":"ď","Dcy;":"Д","dcy;":"д","DD;":"ⅅ","dd;":"ⅆ","ddagger;":"‡","ddarr;":"⇊","DDotrahd;":"⤑","ddotseq;":"⩷","deg;":"°",deg:"°","Del;":"∇","Delta;":"Δ","delta;":"δ","demptyv;":"⦱","dfisht;":"⥿","Dfr;":"𝔇","dfr;":"𝔡","dHar;":"⥥","dharl;":"⇃","dharr;":"⇂","DiacriticalAcute;":"´","DiacriticalDot;":"˙","DiacriticalDoubleAcute;":"˝","DiacriticalGrave;":"`","DiacriticalTilde;":"˜","diam;":"⋄","Diamond;":"⋄","diamond;":"⋄","diamondsuit;":"♦","diams;":"♦","die;":"¨","DifferentialD;":"ⅆ","digamma;":"ϝ","disin;":"⋲","div;":"÷","divide;":"÷",divide:"÷","divideontimes;":"⋇","divonx;":"⋇","DJcy;":"Ђ","djcy;":"ђ","dlcorn;":"⌞","dlcrop;":"⌍","dollar;":"$","Dopf;":"𝔻","dopf;":"𝕕","Dot;":"¨","dot;":"˙","DotDot;":"⃜","doteq;":"≐","doteqdot;":"≑","DotEqual;":"≐","dotminus;":"∸","dotplus;":"∔","dotsquare;":"⊡","doublebarwedge;":"⌆","DoubleContourIntegral;":"∯","DoubleDot;":"¨","DoubleDownArrow;":"⇓","DoubleLeftArrow;":"⇐","DoubleLeftRightArrow;":"⇔","DoubleLeftTee;":"⫤","DoubleLongLeftArrow;":"⟸","DoubleLongLeftRightArrow;":"⟺","DoubleLongRightArrow;":"⟹","DoubleRightArrow;":"⇒","DoubleRightTee;":"⊨","DoubleUpArrow;":"⇑","DoubleUpDownArrow;":"⇕","DoubleVerticalBar;":"∥","DownArrow;":"↓","Downarrow;":"⇓","downarrow;":"↓","DownArrowBar;":"⤓","DownArrowUpArrow;":"⇵","DownBreve;":"̑","downdownarrows;":"⇊","downharpoonleft;":"⇃","downharpoonright;":"⇂","DownLeftRightVector;":"⥐","DownLeftTeeVector;":"⥞","DownLeftVector;":"↽","DownLeftVectorBar;":"⥖","DownRightTeeVector;":"⥟","DownRightVector;":"⇁","DownRightVectorBar;":"⥗","DownTee;":"⊤","DownTeeArrow;":"↧","drbkarow;":"⤐","drcorn;":"⌟","drcrop;":"⌌","Dscr;":"𝒟","dscr;":"𝒹","DScy;":"Ѕ","dscy;":"ѕ","dsol;":"⧶","Dstrok;":"Đ","dstrok;":"đ","dtdot;":"⋱","dtri;":"▿","dtrif;":"▾","duarr;":"⇵","duhar;":"⥯","dwangle;":"⦦","DZcy;":"Џ","dzcy;":"џ","dzigrarr;":"⟿","Eacute;":"É",Eacute:"É","eacute;":"é",eacute:"é","easter;":"⩮","Ecaron;":"Ě","ecaron;":"ě","ecir;":"≖","Ecirc;":"Ê",Ecirc:"Ê","ecirc;":"ê",ecirc:"ê","ecolon;":"≕","Ecy;":"Э","ecy;":"э","eDDot;":"⩷","Edot;":"Ė","eDot;":"≑","edot;":"ė","ee;":"ⅇ","efDot;":"≒","Efr;":"𝔈","efr;":"𝔢","eg;":"⪚","Egrave;":"È",Egrave:"È","egrave;":"è",egrave:"è","egs;":"⪖","egsdot;":"⪘","el;":"⪙","Element;":"∈","elinters;":"⏧","ell;":"ℓ","els;":"⪕","elsdot;":"⪗","Emacr;":"Ē","emacr;":"ē","empty;":"∅","emptyset;":"∅","EmptySmallSquare;":"◻","emptyv;":"∅","EmptyVerySmallSquare;":"▫","emsp;":" ","emsp13;":" ","emsp14;":" ","ENG;":"Ŋ","eng;":"ŋ","ensp;":" ","Eogon;":"Ę","eogon;":"ę","Eopf;":"𝔼","eopf;":"𝕖","epar;":"⋕","eparsl;":"⧣","eplus;":"⩱","epsi;":"ε","Epsilon;":"Ε","epsilon;":"ε","epsiv;":"ϵ","eqcirc;":"≖","eqcolon;":"≕","eqsim;":"≂","eqslantgtr;":"⪖","eqslantless;":"⪕","Equal;":"⩵","equals;":"=","EqualTilde;":"≂","equest;":"≟","Equilibrium;":"⇌","equiv;":"≡","equivDD;":"⩸","eqvparsl;":"⧥","erarr;":"⥱","erDot;":"≓","Escr;":"ℰ","escr;":"ℯ","esdot;":"≐","Esim;":"⩳","esim;":"≂","Eta;":"Η","eta;":"η","ETH;":"Ð",ETH:"Ð","eth;":"ð",eth:"ð","Euml;":"Ë",Euml:"Ë","euml;":"ë",euml:"ë","euro;":"€","excl;":"!","exist;":"∃","Exists;":"∃","expectation;":"ℰ","ExponentialE;":"ⅇ","exponentiale;":"ⅇ","fallingdotseq;":"≒","Fcy;":"Ф","fcy;":"ф","female;":"♀","ffilig;":"ffi","fflig;":"ff","ffllig;":"ffl","Ffr;":"𝔉","ffr;":"𝔣","filig;":"fi","FilledSmallSquare;":"◼","FilledVerySmallSquare;":"▪","fjlig;":"fj","flat;":"♭","fllig;":"fl","fltns;":"▱","fnof;":"ƒ","Fopf;":"𝔽","fopf;":"𝕗","ForAll;":"∀","forall;":"∀","fork;":"⋔","forkv;":"⫙","Fouriertrf;":"ℱ","fpartint;":"⨍","frac12;":"½",frac12:"½","frac13;":"⅓","frac14;":"¼",frac14:"¼","frac15;":"⅕","frac16;":"⅙","frac18;":"⅛","frac23;":"⅔","frac25;":"⅖","frac34;":"¾",frac34:"¾","frac35;":"⅗","frac38;":"⅜","frac45;":"⅘","frac56;":"⅚","frac58;":"⅝","frac78;":"⅞","frasl;":"⁄","frown;":"⌢","Fscr;":"ℱ","fscr;":"𝒻","gacute;":"ǵ","Gamma;":"Γ","gamma;":"γ","Gammad;":"Ϝ","gammad;":"ϝ","gap;":"⪆","Gbreve;":"Ğ","gbreve;":"ğ","Gcedil;":"Ģ","Gcirc;":"Ĝ","gcirc;":"ĝ","Gcy;":"Г","gcy;":"г","Gdot;":"Ġ","gdot;":"ġ","gE;":"≧","ge;":"≥","gEl;":"⪌","gel;":"⋛","geq;":"≥","geqq;":"≧","geqslant;":"⩾","ges;":"⩾","gescc;":"⪩","gesdot;":"⪀","gesdoto;":"⪂","gesdotol;":"⪄","gesl;":"⋛︀","gesles;":"⪔","Gfr;":"𝔊","gfr;":"𝔤","Gg;":"⋙","gg;":"≫","ggg;":"⋙","gimel;":"ℷ","GJcy;":"Ѓ","gjcy;":"ѓ","gl;":"≷","gla;":"⪥","glE;":"⪒","glj;":"⪤","gnap;":"⪊","gnapprox;":"⪊","gnE;":"≩","gne;":"⪈","gneq;":"⪈","gneqq;":"≩","gnsim;":"⋧","Gopf;":"𝔾","gopf;":"𝕘","grave;":"`","GreaterEqual;":"≥","GreaterEqualLess;":"⋛","GreaterFullEqual;":"≧","GreaterGreater;":"⪢","GreaterLess;":"≷","GreaterSlantEqual;":"⩾","GreaterTilde;":"≳","Gscr;":"𝒢","gscr;":"ℊ","gsim;":"≳","gsime;":"⪎","gsiml;":"⪐","GT;":">",GT:">","Gt;":"≫","gt;":">",gt:">","gtcc;":"⪧","gtcir;":"⩺","gtdot;":"⋗","gtlPar;":"⦕","gtquest;":"⩼","gtrapprox;":"⪆","gtrarr;":"⥸","gtrdot;":"⋗","gtreqless;":"⋛","gtreqqless;":"⪌","gtrless;":"≷","gtrsim;":"≳","gvertneqq;":"≩︀","gvnE;":"≩︀","Hacek;":"ˇ","hairsp;":" ","half;":"½","hamilt;":"ℋ","HARDcy;":"Ъ","hardcy;":"ъ","hArr;":"⇔","harr;":"↔","harrcir;":"⥈","harrw;":"↭","Hat;":"^","hbar;":"ℏ","Hcirc;":"Ĥ","hcirc;":"ĥ","hearts;":"♥","heartsuit;":"♥","hellip;":"…","hercon;":"⊹","Hfr;":"ℌ","hfr;":"𝔥","HilbertSpace;":"ℋ","hksearow;":"⤥","hkswarow;":"⤦","hoarr;":"⇿","homtht;":"∻","hookleftarrow;":"↩","hookrightarrow;":"↪","Hopf;":"ℍ","hopf;":"𝕙","horbar;":"―","HorizontalLine;":"─","Hscr;":"ℋ","hscr;":"𝒽","hslash;":"ℏ","Hstrok;":"Ħ","hstrok;":"ħ","HumpDownHump;":"≎","HumpEqual;":"≏","hybull;":"⁃","hyphen;":"‐","Iacute;":"Í",Iacute:"Í","iacute;":"í",iacute:"í","ic;":"⁣","Icirc;":"Î",Icirc:"Î","icirc;":"î",icirc:"î","Icy;":"И","icy;":"и","Idot;":"İ","IEcy;":"Е","iecy;":"е","iexcl;":"¡",iexcl:"¡","iff;":"⇔","Ifr;":"ℑ","ifr;":"𝔦","Igrave;":"Ì",Igrave:"Ì","igrave;":"ì",igrave:"ì","ii;":"ⅈ","iiiint;":"⨌","iiint;":"∭","iinfin;":"⧜","iiota;":"℩","IJlig;":"IJ","ijlig;":"ij","Im;":"ℑ","Imacr;":"Ī","imacr;":"ī","image;":"ℑ","ImaginaryI;":"ⅈ","imagline;":"ℐ","imagpart;":"ℑ","imath;":"ı","imof;":"⊷","imped;":"Ƶ","Implies;":"⇒","in;":"∈","incare;":"℅","infin;":"∞","infintie;":"⧝","inodot;":"ı","Int;":"∬","int;":"∫","intcal;":"⊺","integers;":"ℤ","Integral;":"∫","intercal;":"⊺","Intersection;":"⋂","intlarhk;":"⨗","intprod;":"⨼","InvisibleComma;":"⁣","InvisibleTimes;":"⁢","IOcy;":"Ё","iocy;":"ё","Iogon;":"Į","iogon;":"į","Iopf;":"𝕀","iopf;":"𝕚","Iota;":"Ι","iota;":"ι","iprod;":"⨼","iquest;":"¿",iquest:"¿","Iscr;":"ℐ","iscr;":"𝒾","isin;":"∈","isindot;":"⋵","isinE;":"⋹","isins;":"⋴","isinsv;":"⋳","isinv;":"∈","it;":"⁢","Itilde;":"Ĩ","itilde;":"ĩ","Iukcy;":"І","iukcy;":"і","Iuml;":"Ï",Iuml:"Ï","iuml;":"ï",iuml:"ï","Jcirc;":"Ĵ","jcirc;":"ĵ","Jcy;":"Й","jcy;":"й","Jfr;":"𝔍","jfr;":"𝔧","jmath;":"ȷ","Jopf;":"𝕁","jopf;":"𝕛","Jscr;":"𝒥","jscr;":"𝒿","Jsercy;":"Ј","jsercy;":"ј","Jukcy;":"Є","jukcy;":"є","Kappa;":"Κ","kappa;":"κ","kappav;":"ϰ","Kcedil;":"Ķ","kcedil;":"ķ","Kcy;":"К","kcy;":"к","Kfr;":"𝔎","kfr;":"𝔨","kgreen;":"ĸ","KHcy;":"Х","khcy;":"х","KJcy;":"Ќ","kjcy;":"ќ","Kopf;":"𝕂","kopf;":"𝕜","Kscr;":"𝒦","kscr;":"𝓀","lAarr;":"⇚","Lacute;":"Ĺ","lacute;":"ĺ","laemptyv;":"⦴","lagran;":"ℒ","Lambda;":"Λ","lambda;":"λ","Lang;":"⟪","lang;":"⟨","langd;":"⦑","langle;":"⟨","lap;":"⪅","Laplacetrf;":"ℒ","laquo;":"«",laquo:"«","Larr;":"↞","lArr;":"⇐","larr;":"←","larrb;":"⇤","larrbfs;":"⤟","larrfs;":"⤝","larrhk;":"↩","larrlp;":"↫","larrpl;":"⤹","larrsim;":"⥳","larrtl;":"↢","lat;":"⪫","lAtail;":"⤛","latail;":"⤙","late;":"⪭","lates;":"⪭︀","lBarr;":"⤎","lbarr;":"⤌","lbbrk;":"❲","lbrace;":"{","lbrack;":"[","lbrke;":"⦋","lbrksld;":"⦏","lbrkslu;":"⦍","Lcaron;":"Ľ","lcaron;":"ľ","Lcedil;":"Ļ","lcedil;":"ļ","lceil;":"⌈","lcub;":"{","Lcy;":"Л","lcy;":"л","ldca;":"⤶","ldquo;":"“","ldquor;":"„","ldrdhar;":"⥧","ldrushar;":"⥋","ldsh;":"↲","lE;":"≦","le;":"≤","LeftAngleBracket;":"⟨","LeftArrow;":"←","Leftarrow;":"⇐","leftarrow;":"←","LeftArrowBar;":"⇤","LeftArrowRightArrow;":"⇆","leftarrowtail;":"↢","LeftCeiling;":"⌈","LeftDoubleBracket;":"⟦","LeftDownTeeVector;":"⥡","LeftDownVector;":"⇃","LeftDownVectorBar;":"⥙","LeftFloor;":"⌊","leftharpoondown;":"↽","leftharpoonup;":"↼","leftleftarrows;":"⇇","LeftRightArrow;":"↔","Leftrightarrow;":"⇔","leftrightarrow;":"↔","leftrightarrows;":"⇆","leftrightharpoons;":"⇋","leftrightsquigarrow;":"↭","LeftRightVector;":"⥎","LeftTee;":"⊣","LeftTeeArrow;":"↤","LeftTeeVector;":"⥚","leftthreetimes;":"⋋","LeftTriangle;":"⊲","LeftTriangleBar;":"⧏","LeftTriangleEqual;":"⊴","LeftUpDownVector;":"⥑","LeftUpTeeVector;":"⥠","LeftUpVector;":"↿","LeftUpVectorBar;":"⥘","LeftVector;":"↼","LeftVectorBar;":"⥒","lEg;":"⪋","leg;":"⋚","leq;":"≤","leqq;":"≦","leqslant;":"⩽","les;":"⩽","lescc;":"⪨","lesdot;":"⩿","lesdoto;":"⪁","lesdotor;":"⪃","lesg;":"⋚︀","lesges;":"⪓","lessapprox;":"⪅","lessdot;":"⋖","lesseqgtr;":"⋚","lesseqqgtr;":"⪋","LessEqualGreater;":"⋚","LessFullEqual;":"≦","LessGreater;":"≶","lessgtr;":"≶","LessLess;":"⪡","lesssim;":"≲","LessSlantEqual;":"⩽","LessTilde;":"≲","lfisht;":"⥼","lfloor;":"⌊","Lfr;":"𝔏","lfr;":"𝔩","lg;":"≶","lgE;":"⪑","lHar;":"⥢","lhard;":"↽","lharu;":"↼","lharul;":"⥪","lhblk;":"▄","LJcy;":"Љ","ljcy;":"љ","Ll;":"⋘","ll;":"≪","llarr;":"⇇","llcorner;":"⌞","Lleftarrow;":"⇚","llhard;":"⥫","lltri;":"◺","Lmidot;":"Ŀ","lmidot;":"ŀ","lmoust;":"⎰","lmoustache;":"⎰","lnap;":"⪉","lnapprox;":"⪉","lnE;":"≨","lne;":"⪇","lneq;":"⪇","lneqq;":"≨","lnsim;":"⋦","loang;":"⟬","loarr;":"⇽","lobrk;":"⟦","LongLeftArrow;":"⟵","Longleftarrow;":"⟸","longleftarrow;":"⟵","LongLeftRightArrow;":"⟷","Longleftrightarrow;":"⟺","longleftrightarrow;":"⟷","longmapsto;":"⟼","LongRightArrow;":"⟶","Longrightarrow;":"⟹","longrightarrow;":"⟶","looparrowleft;":"↫","looparrowright;":"↬","lopar;":"⦅","Lopf;":"𝕃","lopf;":"𝕝","loplus;":"⨭","lotimes;":"⨴","lowast;":"∗","lowbar;":"_","LowerLeftArrow;":"↙","LowerRightArrow;":"↘","loz;":"◊","lozenge;":"◊","lozf;":"⧫","lpar;":"(","lparlt;":"⦓","lrarr;":"⇆","lrcorner;":"⌟","lrhar;":"⇋","lrhard;":"⥭","lrm;":"‎","lrtri;":"⊿","lsaquo;":"‹","Lscr;":"ℒ","lscr;":"𝓁","Lsh;":"↰","lsh;":"↰","lsim;":"≲","lsime;":"⪍","lsimg;":"⪏","lsqb;":"[","lsquo;":"‘","lsquor;":"‚","Lstrok;":"Ł","lstrok;":"ł","LT;":"<",LT:"<","Lt;":"≪","lt;":"<",lt:"<","ltcc;":"⪦","ltcir;":"⩹","ltdot;":"⋖","lthree;":"⋋","ltimes;":"⋉","ltlarr;":"⥶","ltquest;":"⩻","ltri;":"◃","ltrie;":"⊴","ltrif;":"◂","ltrPar;":"⦖","lurdshar;":"⥊","luruhar;":"⥦","lvertneqq;":"≨︀","lvnE;":"≨︀","macr;":"¯",macr:"¯","male;":"♂","malt;":"✠","maltese;":"✠","Map;":"⤅","map;":"↦","mapsto;":"↦","mapstodown;":"↧","mapstoleft;":"↤","mapstoup;":"↥","marker;":"▮","mcomma;":"⨩","Mcy;":"М","mcy;":"м","mdash;":"—","mDDot;":"∺","measuredangle;":"∡","MediumSpace;":" ","Mellintrf;":"ℳ","Mfr;":"𝔐","mfr;":"𝔪","mho;":"℧","micro;":"µ",micro:"µ","mid;":"∣","midast;":"*","midcir;":"⫰","middot;":"·",middot:"·","minus;":"−","minusb;":"⊟","minusd;":"∸","minusdu;":"⨪","MinusPlus;":"∓","mlcp;":"⫛","mldr;":"…","mnplus;":"∓","models;":"⊧","Mopf;":"𝕄","mopf;":"𝕞","mp;":"∓","Mscr;":"ℳ","mscr;":"𝓂","mstpos;":"∾","Mu;":"Μ","mu;":"μ","multimap;":"⊸","mumap;":"⊸","nabla;":"∇","Nacute;":"Ń","nacute;":"ń","nang;":"∠⃒","nap;":"≉","napE;":"⩰̸","napid;":"≋̸","napos;":"ʼn","napprox;":"≉","natur;":"♮","natural;":"♮","naturals;":"ℕ","nbsp;":" ",nbsp:" ","nbump;":"≎̸","nbumpe;":"≏̸","ncap;":"⩃","Ncaron;":"Ň","ncaron;":"ň","Ncedil;":"Ņ","ncedil;":"ņ","ncong;":"≇","ncongdot;":"⩭̸","ncup;":"⩂","Ncy;":"Н","ncy;":"н","ndash;":"–","ne;":"≠","nearhk;":"⤤","neArr;":"⇗","nearr;":"↗","nearrow;":"↗","nedot;":"≐̸","NegativeMediumSpace;":"​","NegativeThickSpace;":"​","NegativeThinSpace;":"​","NegativeVeryThinSpace;":"​","nequiv;":"≢","nesear;":"⤨","nesim;":"≂̸","NestedGreaterGreater;":"≫","NestedLessLess;":"≪","NewLine;":"\n","nexist;":"∄","nexists;":"∄","Nfr;":"𝔑","nfr;":"𝔫","ngE;":"≧̸","nge;":"≱","ngeq;":"≱","ngeqq;":"≧̸","ngeqslant;":"⩾̸","nges;":"⩾̸","nGg;":"⋙̸","ngsim;":"≵","nGt;":"≫⃒","ngt;":"≯","ngtr;":"≯","nGtv;":"≫̸","nhArr;":"⇎","nharr;":"↮","nhpar;":"⫲","ni;":"∋","nis;":"⋼","nisd;":"⋺","niv;":"∋","NJcy;":"Њ","njcy;":"њ","nlArr;":"⇍","nlarr;":"↚","nldr;":"‥","nlE;":"≦̸","nle;":"≰","nLeftarrow;":"⇍","nleftarrow;":"↚","nLeftrightarrow;":"⇎","nleftrightarrow;":"↮","nleq;":"≰","nleqq;":"≦̸","nleqslant;":"⩽̸","nles;":"⩽̸","nless;":"≮","nLl;":"⋘̸","nlsim;":"≴","nLt;":"≪⃒","nlt;":"≮","nltri;":"⋪","nltrie;":"⋬","nLtv;":"≪̸","nmid;":"∤","NoBreak;":"⁠","NonBreakingSpace;":" ","Nopf;":"ℕ","nopf;":"𝕟","Not;":"⫬","not;":"¬",not:"¬","NotCongruent;":"≢","NotCupCap;":"≭","NotDoubleVerticalBar;":"∦","NotElement;":"∉","NotEqual;":"≠","NotEqualTilde;":"≂̸","NotExists;":"∄","NotGreater;":"≯","NotGreaterEqual;":"≱","NotGreaterFullEqual;":"≧̸","NotGreaterGreater;":"≫̸","NotGreaterLess;":"≹","NotGreaterSlantEqual;":"⩾̸","NotGreaterTilde;":"≵","NotHumpDownHump;":"≎̸","NotHumpEqual;":"≏̸","notin;":"∉","notindot;":"⋵̸","notinE;":"⋹̸","notinva;":"∉","notinvb;":"⋷","notinvc;":"⋶","NotLeftTriangle;":"⋪","NotLeftTriangleBar;":"⧏̸","NotLeftTriangleEqual;":"⋬","NotLess;":"≮","NotLessEqual;":"≰","NotLessGreater;":"≸","NotLessLess;":"≪̸","NotLessSlantEqual;":"⩽̸","NotLessTilde;":"≴","NotNestedGreaterGreater;":"⪢̸","NotNestedLessLess;":"⪡̸","notni;":"∌","notniva;":"∌","notnivb;":"⋾","notnivc;":"⋽","NotPrecedes;":"⊀","NotPrecedesEqual;":"⪯̸","NotPrecedesSlantEqual;":"⋠","NotReverseElement;":"∌","NotRightTriangle;":"⋫","NotRightTriangleBar;":"⧐̸","NotRightTriangleEqual;":"⋭","NotSquareSubset;":"⊏̸","NotSquareSubsetEqual;":"⋢","NotSquareSuperset;":"⊐̸","NotSquareSupersetEqual;":"⋣","NotSubset;":"⊂⃒","NotSubsetEqual;":"⊈","NotSucceeds;":"⊁","NotSucceedsEqual;":"⪰̸","NotSucceedsSlantEqual;":"⋡","NotSucceedsTilde;":"≿̸","NotSuperset;":"⊃⃒","NotSupersetEqual;":"⊉","NotTilde;":"≁","NotTildeEqual;":"≄","NotTildeFullEqual;":"≇","NotTildeTilde;":"≉","NotVerticalBar;":"∤","npar;":"∦","nparallel;":"∦","nparsl;":"⫽⃥","npart;":"∂̸","npolint;":"⨔","npr;":"⊀","nprcue;":"⋠","npre;":"⪯̸","nprec;":"⊀","npreceq;":"⪯̸","nrArr;":"⇏","nrarr;":"↛","nrarrc;":"⤳̸","nrarrw;":"↝̸","nRightarrow;":"⇏","nrightarrow;":"↛","nrtri;":"⋫","nrtrie;":"⋭","nsc;":"⊁","nsccue;":"⋡","nsce;":"⪰̸","Nscr;":"𝒩","nscr;":"𝓃","nshortmid;":"∤","nshortparallel;":"∦","nsim;":"≁","nsime;":"≄","nsimeq;":"≄","nsmid;":"∤","nspar;":"∦","nsqsube;":"⋢","nsqsupe;":"⋣","nsub;":"⊄","nsubE;":"⫅̸","nsube;":"⊈","nsubset;":"⊂⃒","nsubseteq;":"⊈","nsubseteqq;":"⫅̸","nsucc;":"⊁","nsucceq;":"⪰̸","nsup;":"⊅","nsupE;":"⫆̸","nsupe;":"⊉","nsupset;":"⊃⃒","nsupseteq;":"⊉","nsupseteqq;":"⫆̸","ntgl;":"≹","Ntilde;":"Ñ",Ntilde:"Ñ","ntilde;":"ñ",ntilde:"ñ","ntlg;":"≸","ntriangleleft;":"⋪","ntrianglelefteq;":"⋬","ntriangleright;":"⋫","ntrianglerighteq;":"⋭","Nu;":"Ν","nu;":"ν","num;":"#","numero;":"№","numsp;":" ","nvap;":"≍⃒","nVDash;":"⊯","nVdash;":"⊮","nvDash;":"⊭","nvdash;":"⊬","nvge;":"≥⃒","nvgt;":">⃒","nvHarr;":"⤄","nvinfin;":"⧞","nvlArr;":"⤂","nvle;":"≤⃒","nvlt;":"<⃒","nvltrie;":"⊴⃒","nvrArr;":"⤃","nvrtrie;":"⊵⃒","nvsim;":"∼⃒","nwarhk;":"⤣","nwArr;":"⇖","nwarr;":"↖","nwarrow;":"↖","nwnear;":"⤧","Oacute;":"Ó",Oacute:"Ó","oacute;":"ó",oacute:"ó","oast;":"⊛","ocir;":"⊚","Ocirc;":"Ô",Ocirc:"Ô","ocirc;":"ô",ocirc:"ô","Ocy;":"О","ocy;":"о","odash;":"⊝","Odblac;":"Ő","odblac;":"ő","odiv;":"⨸","odot;":"⊙","odsold;":"⦼","OElig;":"Œ","oelig;":"œ","ofcir;":"⦿","Ofr;":"𝔒","ofr;":"𝔬","ogon;":"˛","Ograve;":"Ò",Ograve:"Ò","ograve;":"ò",ograve:"ò","ogt;":"⧁","ohbar;":"⦵","ohm;":"Ω","oint;":"∮","olarr;":"↺","olcir;":"⦾","olcross;":"⦻","oline;":"‾","olt;":"⧀","Omacr;":"Ō","omacr;":"ō","Omega;":"Ω","omega;":"ω","Omicron;":"Ο","omicron;":"ο","omid;":"⦶","ominus;":"⊖","Oopf;":"𝕆","oopf;":"𝕠","opar;":"⦷","OpenCurlyDoubleQuote;":"“","OpenCurlyQuote;":"‘","operp;":"⦹","oplus;":"⊕","Or;":"⩔","or;":"∨","orarr;":"↻","ord;":"⩝","order;":"ℴ","orderof;":"ℴ","ordf;":"ª",ordf:"ª","ordm;":"º",ordm:"º","origof;":"⊶","oror;":"⩖","orslope;":"⩗","orv;":"⩛","oS;":"Ⓢ","Oscr;":"𝒪","oscr;":"ℴ","Oslash;":"Ø",Oslash:"Ø","oslash;":"ø",oslash:"ø","osol;":"⊘","Otilde;":"Õ",Otilde:"Õ","otilde;":"õ",otilde:"õ","Otimes;":"⨷","otimes;":"⊗","otimesas;":"⨶","Ouml;":"Ö",Ouml:"Ö","ouml;":"ö",ouml:"ö","ovbar;":"⌽","OverBar;":"‾","OverBrace;":"⏞","OverBracket;":"⎴","OverParenthesis;":"⏜","par;":"∥","para;":"¶",para:"¶","parallel;":"∥","parsim;":"⫳","parsl;":"⫽","part;":"∂","PartialD;":"∂","Pcy;":"П","pcy;":"п","percnt;":"%","period;":".","permil;":"‰","perp;":"⊥","pertenk;":"‱","Pfr;":"𝔓","pfr;":"𝔭","Phi;":"Φ","phi;":"φ","phiv;":"ϕ","phmmat;":"ℳ","phone;":"☎","Pi;":"Π","pi;":"π","pitchfork;":"⋔","piv;":"ϖ","planck;":"ℏ","planckh;":"ℎ","plankv;":"ℏ","plus;":"+","plusacir;":"⨣","plusb;":"⊞","pluscir;":"⨢","plusdo;":"∔","plusdu;":"⨥","pluse;":"⩲","PlusMinus;":"±","plusmn;":"±",plusmn:"±","plussim;":"⨦","plustwo;":"⨧","pm;":"±","Poincareplane;":"ℌ","pointint;":"⨕","Popf;":"ℙ","popf;":"𝕡","pound;":"£",pound:"£","Pr;":"⪻","pr;":"≺","prap;":"⪷","prcue;":"≼","prE;":"⪳","pre;":"⪯","prec;":"≺","precapprox;":"⪷","preccurlyeq;":"≼","Precedes;":"≺","PrecedesEqual;":"⪯","PrecedesSlantEqual;":"≼","PrecedesTilde;":"≾","preceq;":"⪯","precnapprox;":"⪹","precneqq;":"⪵","precnsim;":"⋨","precsim;":"≾","Prime;":"″","prime;":"′","primes;":"ℙ","prnap;":"⪹","prnE;":"⪵","prnsim;":"⋨","prod;":"∏","Product;":"∏","profalar;":"⌮","profline;":"⌒","profsurf;":"⌓","prop;":"∝","Proportion;":"∷","Proportional;":"∝","propto;":"∝","prsim;":"≾","prurel;":"⊰","Pscr;":"𝒫","pscr;":"𝓅","Psi;":"Ψ","psi;":"ψ","puncsp;":" ","Qfr;":"𝔔","qfr;":"𝔮","qint;":"⨌","Qopf;":"ℚ","qopf;":"𝕢","qprime;":"⁗","Qscr;":"𝒬","qscr;":"𝓆","quaternions;":"ℍ","quatint;":"⨖","quest;":"?","questeq;":"≟","QUOT;":'"',QUOT:'"',"quot;":'"',quot:'"',"rAarr;":"⇛","race;":"∽̱","Racute;":"Ŕ","racute;":"ŕ","radic;":"√","raemptyv;":"⦳","Rang;":"⟫","rang;":"⟩","rangd;":"⦒","range;":"⦥","rangle;":"⟩","raquo;":"»",raquo:"»","Rarr;":"↠","rArr;":"⇒","rarr;":"→","rarrap;":"⥵","rarrb;":"⇥","rarrbfs;":"⤠","rarrc;":"⤳","rarrfs;":"⤞","rarrhk;":"↪","rarrlp;":"↬","rarrpl;":"⥅","rarrsim;":"⥴","Rarrtl;":"⤖","rarrtl;":"↣","rarrw;":"↝","rAtail;":"⤜","ratail;":"⤚","ratio;":"∶","rationals;":"ℚ","RBarr;":"⤐","rBarr;":"⤏","rbarr;":"⤍","rbbrk;":"❳","rbrace;":"}","rbrack;":"]","rbrke;":"⦌","rbrksld;":"⦎","rbrkslu;":"⦐","Rcaron;":"Ř","rcaron;":"ř","Rcedil;":"Ŗ","rcedil;":"ŗ","rceil;":"⌉","rcub;":"}","Rcy;":"Р","rcy;":"р","rdca;":"⤷","rdldhar;":"⥩","rdquo;":"”","rdquor;":"”","rdsh;":"↳","Re;":"ℜ","real;":"ℜ","realine;":"ℛ","realpart;":"ℜ","reals;":"ℝ","rect;":"▭","REG;":"®",REG:"®","reg;":"®",reg:"®","ReverseElement;":"∋","ReverseEquilibrium;":"⇋","ReverseUpEquilibrium;":"⥯","rfisht;":"⥽","rfloor;":"⌋","Rfr;":"ℜ","rfr;":"𝔯","rHar;":"⥤","rhard;":"⇁","rharu;":"⇀","rharul;":"⥬","Rho;":"Ρ","rho;":"ρ","rhov;":"ϱ","RightAngleBracket;":"⟩","RightArrow;":"→","Rightarrow;":"⇒","rightarrow;":"→","RightArrowBar;":"⇥","RightArrowLeftArrow;":"⇄","rightarrowtail;":"↣","RightCeiling;":"⌉","RightDoubleBracket;":"⟧","RightDownTeeVector;":"⥝","RightDownVector;":"⇂","RightDownVectorBar;":"⥕","RightFloor;":"⌋","rightharpoondown;":"⇁","rightharpoonup;":"⇀","rightleftarrows;":"⇄","rightleftharpoons;":"⇌","rightrightarrows;":"⇉","rightsquigarrow;":"↝","RightTee;":"⊢","RightTeeArrow;":"↦","RightTeeVector;":"⥛","rightthreetimes;":"⋌","RightTriangle;":"⊳","RightTriangleBar;":"⧐","RightTriangleEqual;":"⊵","RightUpDownVector;":"⥏","RightUpTeeVector;":"⥜","RightUpVector;":"↾","RightUpVectorBar;":"⥔","RightVector;":"⇀","RightVectorBar;":"⥓","ring;":"˚","risingdotseq;":"≓","rlarr;":"⇄","rlhar;":"⇌","rlm;":"‏","rmoust;":"⎱","rmoustache;":"⎱","rnmid;":"⫮","roang;":"⟭","roarr;":"⇾","robrk;":"⟧","ropar;":"⦆","Ropf;":"ℝ","ropf;":"𝕣","roplus;":"⨮","rotimes;":"⨵","RoundImplies;":"⥰","rpar;":")","rpargt;":"⦔","rppolint;":"⨒","rrarr;":"⇉","Rrightarrow;":"⇛","rsaquo;":"›","Rscr;":"ℛ","rscr;":"𝓇","Rsh;":"↱","rsh;":"↱","rsqb;":"]","rsquo;":"’","rsquor;":"’","rthree;":"⋌","rtimes;":"⋊","rtri;":"▹","rtrie;":"⊵","rtrif;":"▸","rtriltri;":"⧎","RuleDelayed;":"⧴","ruluhar;":"⥨","rx;":"℞","Sacute;":"Ś","sacute;":"ś","sbquo;":"‚","Sc;":"⪼","sc;":"≻","scap;":"⪸","Scaron;":"Š","scaron;":"š","sccue;":"≽","scE;":"⪴","sce;":"⪰","Scedil;":"Ş","scedil;":"ş","Scirc;":"Ŝ","scirc;":"ŝ","scnap;":"⪺","scnE;":"⪶","scnsim;":"⋩","scpolint;":"⨓","scsim;":"≿","Scy;":"С","scy;":"с","sdot;":"⋅","sdotb;":"⊡","sdote;":"⩦","searhk;":"⤥","seArr;":"⇘","searr;":"↘","searrow;":"↘","sect;":"§",sect:"§","semi;":";","seswar;":"⤩","setminus;":"∖","setmn;":"∖","sext;":"✶","Sfr;":"𝔖","sfr;":"𝔰","sfrown;":"⌢","sharp;":"♯","SHCHcy;":"Щ","shchcy;":"щ","SHcy;":"Ш","shcy;":"ш","ShortDownArrow;":"↓","ShortLeftArrow;":"←","shortmid;":"∣","shortparallel;":"∥","ShortRightArrow;":"→","ShortUpArrow;":"↑","shy;":"­",shy:"­","Sigma;":"Σ","sigma;":"σ","sigmaf;":"ς","sigmav;":"ς","sim;":"∼","simdot;":"⩪","sime;":"≃","simeq;":"≃","simg;":"⪞","simgE;":"⪠","siml;":"⪝","simlE;":"⪟","simne;":"≆","simplus;":"⨤","simrarr;":"⥲","slarr;":"←","SmallCircle;":"∘","smallsetminus;":"∖","smashp;":"⨳","smeparsl;":"⧤","smid;":"∣","smile;":"⌣","smt;":"⪪","smte;":"⪬","smtes;":"⪬︀","SOFTcy;":"Ь","softcy;":"ь","sol;":"/","solb;":"⧄","solbar;":"⌿","Sopf;":"𝕊","sopf;":"𝕤","spades;":"♠","spadesuit;":"♠","spar;":"∥","sqcap;":"⊓","sqcaps;":"⊓︀","sqcup;":"⊔","sqcups;":"⊔︀","Sqrt;":"√","sqsub;":"⊏","sqsube;":"⊑","sqsubset;":"⊏","sqsubseteq;":"⊑","sqsup;":"⊐","sqsupe;":"⊒","sqsupset;":"⊐","sqsupseteq;":"⊒","squ;":"□","Square;":"□","square;":"□","SquareIntersection;":"⊓","SquareSubset;":"⊏","SquareSubsetEqual;":"⊑","SquareSuperset;":"⊐","SquareSupersetEqual;":"⊒","SquareUnion;":"⊔","squarf;":"▪","squf;":"▪","srarr;":"→","Sscr;":"𝒮","sscr;":"𝓈","ssetmn;":"∖","ssmile;":"⌣","sstarf;":"⋆","Star;":"⋆","star;":"☆","starf;":"★","straightepsilon;":"ϵ","straightphi;":"ϕ","strns;":"¯","Sub;":"⋐","sub;":"⊂","subdot;":"⪽","subE;":"⫅","sube;":"⊆","subedot;":"⫃","submult;":"⫁","subnE;":"⫋","subne;":"⊊","subplus;":"⪿","subrarr;":"⥹","Subset;":"⋐","subset;":"⊂","subseteq;":"⊆","subseteqq;":"⫅","SubsetEqual;":"⊆","subsetneq;":"⊊","subsetneqq;":"⫋","subsim;":"⫇","subsub;":"⫕","subsup;":"⫓","succ;":"≻","succapprox;":"⪸","succcurlyeq;":"≽","Succeeds;":"≻","SucceedsEqual;":"⪰","SucceedsSlantEqual;":"≽","SucceedsTilde;":"≿","succeq;":"⪰","succnapprox;":"⪺","succneqq;":"⪶","succnsim;":"⋩","succsim;":"≿","SuchThat;":"∋","Sum;":"∑","sum;":"∑","sung;":"♪","Sup;":"⋑","sup;":"⊃","sup1;":"¹",sup1:"¹","sup2;":"²",sup2:"²","sup3;":"³",sup3:"³","supdot;":"⪾","supdsub;":"⫘","supE;":"⫆","supe;":"⊇","supedot;":"⫄","Superset;":"⊃","SupersetEqual;":"⊇","suphsol;":"⟉","suphsub;":"⫗","suplarr;":"⥻","supmult;":"⫂","supnE;":"⫌","supne;":"⊋","supplus;":"⫀","Supset;":"⋑","supset;":"⊃","supseteq;":"⊇","supseteqq;":"⫆","supsetneq;":"⊋","supsetneqq;":"⫌","supsim;":"⫈","supsub;":"⫔","supsup;":"⫖","swarhk;":"⤦","swArr;":"⇙","swarr;":"↙","swarrow;":"↙","swnwar;":"⤪","szlig;":"ß",szlig:"ß","Tab;":"\t","target;":"⌖","Tau;":"Τ","tau;":"τ","tbrk;":"⎴","Tcaron;":"Ť","tcaron;":"ť","Tcedil;":"Ţ","tcedil;":"ţ","Tcy;":"Т","tcy;":"т","tdot;":"⃛","telrec;":"⌕","Tfr;":"𝔗","tfr;":"𝔱","there4;":"∴","Therefore;":"∴","therefore;":"∴","Theta;":"Θ","theta;":"θ","thetasym;":"ϑ","thetav;":"ϑ","thickapprox;":"≈","thicksim;":"∼","ThickSpace;":"  ","thinsp;":" ","ThinSpace;":" ","thkap;":"≈","thksim;":"∼","THORN;":"Þ",THORN:"Þ","thorn;":"þ",thorn:"þ","Tilde;":"∼","tilde;":"˜","TildeEqual;":"≃","TildeFullEqual;":"≅","TildeTilde;":"≈","times;":"×",times:"×","timesb;":"⊠","timesbar;":"⨱","timesd;":"⨰","tint;":"∭","toea;":"⤨","top;":"⊤","topbot;":"⌶","topcir;":"⫱","Topf;":"𝕋","topf;":"𝕥","topfork;":"⫚","tosa;":"⤩","tprime;":"‴","TRADE;":"™","trade;":"™","triangle;":"▵","triangledown;":"▿","triangleleft;":"◃","trianglelefteq;":"⊴","triangleq;":"≜","triangleright;":"▹","trianglerighteq;":"⊵","tridot;":"◬","trie;":"≜","triminus;":"⨺","TripleDot;":"⃛","triplus;":"⨹","trisb;":"⧍","tritime;":"⨻","trpezium;":"⏢","Tscr;":"𝒯","tscr;":"𝓉","TScy;":"Ц","tscy;":"ц","TSHcy;":"Ћ","tshcy;":"ћ","Tstrok;":"Ŧ","tstrok;":"ŧ","twixt;":"≬","twoheadleftarrow;":"↞","twoheadrightarrow;":"↠","Uacute;":"Ú",Uacute:"Ú","uacute;":"ú",uacute:"ú","Uarr;":"↟","uArr;":"⇑","uarr;":"↑","Uarrocir;":"⥉","Ubrcy;":"Ў","ubrcy;":"ў","Ubreve;":"Ŭ","ubreve;":"ŭ","Ucirc;":"Û",Ucirc:"Û","ucirc;":"û",ucirc:"û","Ucy;":"У","ucy;":"у","udarr;":"⇅","Udblac;":"Ű","udblac;":"ű","udhar;":"⥮","ufisht;":"⥾","Ufr;":"𝔘","ufr;":"𝔲","Ugrave;":"Ù",Ugrave:"Ù","ugrave;":"ù",ugrave:"ù","uHar;":"⥣","uharl;":"↿","uharr;":"↾","uhblk;":"▀","ulcorn;":"⌜","ulcorner;":"⌜","ulcrop;":"⌏","ultri;":"◸","Umacr;":"Ū","umacr;":"ū","uml;":"¨",uml:"¨","UnderBar;":"_","UnderBrace;":"⏟","UnderBracket;":"⎵","UnderParenthesis;":"⏝","Union;":"⋃","UnionPlus;":"⊎","Uogon;":"Ų","uogon;":"ų","Uopf;":"𝕌","uopf;":"𝕦","UpArrow;":"↑","Uparrow;":"⇑","uparrow;":"↑","UpArrowBar;":"⤒","UpArrowDownArrow;":"⇅","UpDownArrow;":"↕","Updownarrow;":"⇕","updownarrow;":"↕","UpEquilibrium;":"⥮","upharpoonleft;":"↿","upharpoonright;":"↾","uplus;":"⊎","UpperLeftArrow;":"↖","UpperRightArrow;":"↗","Upsi;":"ϒ","upsi;":"υ","upsih;":"ϒ","Upsilon;":"Υ","upsilon;":"υ","UpTee;":"⊥","UpTeeArrow;":"↥","upuparrows;":"⇈","urcorn;":"⌝","urcorner;":"⌝","urcrop;":"⌎","Uring;":"Ů","uring;":"ů","urtri;":"◹","Uscr;":"𝒰","uscr;":"𝓊","utdot;":"⋰","Utilde;":"Ũ","utilde;":"ũ","utri;":"▵","utrif;":"▴","uuarr;":"⇈","Uuml;":"Ü",Uuml:"Ü","uuml;":"ü",uuml:"ü","uwangle;":"⦧","vangrt;":"⦜","varepsilon;":"ϵ","varkappa;":"ϰ","varnothing;":"∅","varphi;":"ϕ","varpi;":"ϖ","varpropto;":"∝","vArr;":"⇕","varr;":"↕","varrho;":"ϱ","varsigma;":"ς","varsubsetneq;":"⊊︀","varsubsetneqq;":"⫋︀","varsupsetneq;":"⊋︀","varsupsetneqq;":"⫌︀","vartheta;":"ϑ","vartriangleleft;":"⊲","vartriangleright;":"⊳","Vbar;":"⫫","vBar;":"⫨","vBarv;":"⫩","Vcy;":"В","vcy;":"в","VDash;":"⊫","Vdash;":"⊩","vDash;":"⊨","vdash;":"⊢","Vdashl;":"⫦","Vee;":"⋁","vee;":"∨","veebar;":"⊻","veeeq;":"≚","vellip;":"⋮","Verbar;":"‖","verbar;":"|","Vert;":"‖","vert;":"|","VerticalBar;":"∣","VerticalLine;":"|","VerticalSeparator;":"❘","VerticalTilde;":"≀","VeryThinSpace;":" ","Vfr;":"𝔙","vfr;":"𝔳","vltri;":"⊲","vnsub;":"⊂⃒","vnsup;":"⊃⃒","Vopf;":"𝕍","vopf;":"𝕧","vprop;":"∝","vrtri;":"⊳","Vscr;":"𝒱","vscr;":"𝓋","vsubnE;":"⫋︀","vsubne;":"⊊︀","vsupnE;":"⫌︀","vsupne;":"⊋︀","Vvdash;":"⊪","vzigzag;":"⦚","Wcirc;":"Ŵ","wcirc;":"ŵ","wedbar;":"⩟","Wedge;":"⋀","wedge;":"∧","wedgeq;":"≙","weierp;":"℘","Wfr;":"𝔚","wfr;":"𝔴","Wopf;":"𝕎","wopf;":"𝕨","wp;":"℘","wr;":"≀","wreath;":"≀","Wscr;":"𝒲","wscr;":"𝓌","xcap;":"⋂","xcirc;":"◯","xcup;":"⋃","xdtri;":"▽","Xfr;":"𝔛","xfr;":"𝔵","xhArr;":"⟺","xharr;":"⟷","Xi;":"Ξ","xi;":"ξ","xlArr;":"⟸","xlarr;":"⟵","xmap;":"⟼","xnis;":"⋻","xodot;":"⨀","Xopf;":"𝕏","xopf;":"𝕩","xoplus;":"⨁","xotime;":"⨂","xrArr;":"⟹","xrarr;":"⟶","Xscr;":"𝒳","xscr;":"𝓍","xsqcup;":"⨆","xuplus;":"⨄","xutri;":"△","xvee;":"⋁","xwedge;":"⋀","Yacute;":"Ý",Yacute:"Ý","yacute;":"ý",yacute:"ý","YAcy;":"Я","yacy;":"я","Ycirc;":"Ŷ","ycirc;":"ŷ","Ycy;":"Ы","ycy;":"ы","yen;":"¥",yen:"¥","Yfr;":"𝔜","yfr;":"𝔶","YIcy;":"Ї","yicy;":"ї","Yopf;":"𝕐","yopf;":"𝕪","Yscr;":"𝒴","yscr;":"𝓎","YUcy;":"Ю","yucy;":"ю","Yuml;":"Ÿ","yuml;":"ÿ",yuml:"ÿ","Zacute;":"Ź","zacute;":"ź","Zcaron;":"Ž","zcaron;":"ž","Zcy;":"З","zcy;":"з","Zdot;":"Ż","zdot;":"ż","zeetrf;":"ℨ","ZeroWidthSpace;":"​","Zeta;":"Ζ","zeta;":"ζ","Zfr;":"ℨ","zfr;":"𝔷","ZHcy;":"Ж","zhcy;":"ж","zigrarr;":"⇝","Zopf;":"ℤ","zopf;":"𝕫","Zscr;":"𝒵","zscr;":"𝓏","zwj;":"‍","zwnj;":"‌"};function We(e,t){if(e.length0&&(n.value+="\n\n",n.value+=t?e.references.map((function(e){return"["+e.name+"]("+e.url+")"})).join(" | "):e.references.map((function(e){return e.name+": "+e.url})).join("\n")),""!==n.value)return n}var Ke=function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function o(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}l((i=i.apply(e,t||[])).next())}))},Je=function(e,t){var n,i,r,a,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(r=2&a[0]?i.return:a[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,a[1])).done)return r;switch(i=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,i=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]0&&r[r.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]d&&(t=d),{start:e.positionAt(t),end:e.positionAt(n)}}function b(e,t){var n=g(e,t);return l.forEach((function(e){e.provideTags().forEach((function(e){o.items.push({label:e.name,kind:H.Property,documentation:Ve(e,c),textEdit:_.replace(n,e.name),insertTextFormat:C.PlainText})}))})),o}function w(e){for(var t=e;t>0;){var n=h.charAt(t-1);if("\n\r".indexOf(n)>=0)return h.substring(t,e);if(!it(n))return null;t--}return h.substring(0,e)}function v(e,t,n){void 0===n&&(n=d);var i=g(e,n),r=rt(h,n,le.WithinEndTag,se.EndTagClose)?"":">",a=u;for(t&&(a=a.parent);a;){var s=a.tag;if(s&&(!a.closed||a.endTagStart&&a.endTagStart>d)){var p={label:"/"+s,kind:H.Property,filterText:"/"+s,textEdit:_.replace(i,"/"+s+r),insertTextFormat:C.PlainText},m=w(a.start),f=w(e-1);if(null!==m&&null!==f&&m!==f){var b=m+"",kind:H.Property,filterText:"",textEdit:_.insert(i,"$0"),insertTextFormat:C.Snippet})}return o}function T(e,t){return b(e,t),v(e,!0,t),o}function k(e,t){void 0===t&&(t=d);for(var i=d;in&&d<=i&&(m=h[n],/^["']*$/.test(m))){var b=n+1,w=i;i>n&&h[i-1]===h[n]&&w--;var v=function(e,t,n){for(;t>n&&!it(e[t-1]);)t--;return t}(h,d,b),y=function(e,t,n){for(;t=b&&d<=w?h.substring(b,d):"",a=!1}else r=g(n,i),u=h.substring(n,d),a=!0;if(s.length>0)for(var T=f.toLowerCase(),k=p.toLowerCase(),S=g(n,i),x=0,M=s;x=0&&je(h,s);)s--,l--;if(s>=0&&"&"===h[s]){var c=r.create(i.create(t.line,l-1),t);for(var u in Ue)if(n=";",a=void 0,(a=(e=u).length-n.length)>0?e.lastIndexOf(n)===a:0===a&&e===n){var p="&"+u;o.items.push({label:p,kind:H.Keyword,documentation:nt("entity.propose","Character entity representing '"+Ue[u]+"'"),textEdit:_.replace(c,p),insertTextFormat:C.PlainText})}}return o}for(var E,A=m.scan();A!==se.EOS&&m.getTokenOffset()<=d;){switch(A){case se.StartTagOpen:if(m.getTokenEnd()===d){var R=x(se.StartTag);return 0===t.line&&(E=void 0,E=g(d,R),o.items.push({label:"!DOCTYPE",kind:H.Property,documentation:"A preamble for an HTML document.",textEdit:_.replace(E,"!DOCTYPE html>"),insertTextFormat:C.PlainText})),T(d,R)}break;case se.StartTag:if(m.getTokenOffset()<=d&&d<=m.getTokenEnd())return b(m.getTokenOffset(),m.getTokenEnd());f=m.getTokenText();break;case se.AttributeName:if(m.getTokenOffset()<=d&&d<=m.getTokenEnd())return k(m.getTokenOffset(),m.getTokenEnd());p=m.getTokenText();break;case se.DelimiterAssign:if(m.getTokenEnd()===d){R=x(se.AttributeValue);return S(d,R)}break;case se.AttributeValue:if(m.getTokenOffset()<=d&&d<=m.getTokenEnd())return S(m.getTokenOffset(),m.getTokenEnd());break;case se.Whitespace:if(d<=m.getTokenEnd())switch(m.getScannerState()){case le.AfterOpeningStartTag:return T(m.getTokenOffset(),x(se.StartTag));case le.WithinTag:case le.AfterAttributeName:return k(m.getTokenEnd());case le.BeforeAttributeValue:return S(m.getTokenEnd());case le.AfterOpeningEndTag:return v(m.getTokenOffset()-1,!1);case le.WithinContent:return M()}break;case se.EndTagOpen:if(d<=m.getTokenEnd())return v(m.getTokenOffset()+1,!1,x(se.EndTag));break;case se.EndTag:if(d<=m.getTokenEnd())for(var z=m.getTokenOffset()-1;z>=0;){var I=h.charAt(z);if("/"===I)return v(z,!1,m.getTokenEnd());if(!it(I))break;z--}break;case se.StartTagClose:if(d<=m.getTokenEnd()&&f)return y(m.getTokenEnd(),f);break;case se.Content:if(d<=m.getTokenEnd())return M();break;default:if(d<=m.getTokenEnd())return o}A=m.scan()}return o},e.prototype.doTagComplete=function(e,t,n){var i=e.offsetAt(t);if(i<=0)return null;var r=e.getText().charAt(i-1);if(">"===r){if((o=n.findNodeBefore(i))&&o.tag&&!Ce(o.tag)&&o.starti))for(var a=(s=ze(e.getText(),o.start)).scan();a!==se.EOS&&s.getTokenEnd()<=i;){if(a===se.StartTagClose&&s.getTokenEnd()===i)return"$0";a=s.scan()}}else if("/"===r){for(var o=n.findNodeBefore(i);o&&o.closed;)o=o.parent;if(o&&o.tag){var s;for(a=(s=ze(e.getText(),o.start)).scan();a!==se.EOS&&s.getTokenEnd()<=i;){if(a===se.EndTagOpen&&s.getTokenEnd()===i)return o.tag+">";a=s.scan()}}}return null},e.prototype.convertCompletionList=function(e){return this.doesSupportMarkdown()||e.items.forEach((function(e){e.documentation&&"string"!=typeof e.documentation&&(e.documentation={kind:"plaintext",value:e.documentation.value})})),e},e.prototype.doesSupportMarkdown=function(){var e,t,n;if(!Be(this.supportsMarkdown)){if(!Be(this.lsOptions.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;var i=null===(n=null===(t=null===(e=this.lsOptions.clientCapabilities.textDocument)||void 0===e?void 0:e.completion)||void 0===t?void 0:t.completionItem)||void 0===n?void 0:n.documentationFormat;this.supportsMarkdown=Array.isArray(i)&&-1!==i.indexOf(z.Markdown)}return this.supportsMarkdown}}();function it(e){return/^\s*$/.test(e)}function rt(e,t,n,i){for(var r=ze(e,t,n),a=r.scan();a===se.Whitespace;)a=r.scan();return a===i}!function(){function e(e,t){this.lsOptions=e,this.dataManager=t}e.prototype.doHover=function(e,t,n){var i=this.convertContents.bind(this),r=this.doesSupportMarkdown(),a=e.offsetAt(t),o=n.findNodeAt(a);if(!o||!o.tag)return null;var s=this.dataManager.getDataProviders().filter((function(t){return t.isApplicable(e.languageId)}));function l(e,t,n){for(var a=function(n){var a=null;if(n.provideTags().forEach((function(n){if(n.name.toLowerCase()===e.toLowerCase()){var i=Ve(n,r);i||(i={kind:r?"markdown":"plaintext",value:""}),a={contents:i,range:t}}})),a)return a.contents=i(a.contents),{value:a}},o=0,l=s;o=o.endTagStart){var h=c(se.EndTag,o.endTagStart);return h?l(o.tag,h):null}var d=c(se.StartTag,o.start);if(d)return l(o.tag,d);var u=c(se.AttributeName,o.start);if(u)return function(e,t,n){for(var a=function(a){var o=null;if(a.provideAttributes(e).forEach((function(e){if(t===e.name&&e.description){var i=Ve(e,r);o=i?{contents:i,range:n}:null}})),o)return o.contents=i(o.contents),{value:o}},o=0,l=s;o0&&(t=new Array(e.indent_level+1).join(this.__indent_string)),this.__base_string=t,this.__base_string_length=t.length}function a(e,t){this.__indent_cache=new r(e,t),this.raw=!1,this._end_with_newline=e.end_with_newline,this.indent_size=e.indent_size,this.wrap_line_length=e.wrap_line_length,this.indent_empty_lines=e.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new i(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}i.prototype.clone_empty=function(){var e=new i(this.__parent);return e.set_indent(this.__indent_count,this.__alignment_count),e},i.prototype.item=function(e){return e<0?this.__items[this.__items.length+e]:this.__items[e]},i.prototype.has_match=function(e){for(var t=this.__items.length-1;t>=0;t--)if(this.__items[t].match(e))return!0;return!1},i.prototype.set_indent=function(e,t){this.is_empty()&&(this.__indent_count=e||0,this.__alignment_count=t||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},i.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},i.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},i.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var e=this.__parent.current_line;return e.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),e.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),e.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===e.__items[0]&&(e.__items.splice(0,1),e.__character_count-=1),!0}return!1},i.prototype.is_empty=function(){return 0===this.__items.length},i.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},i.prototype.push=function(e){this.__items.push(e);var t=e.lastIndexOf("\n");-1!==t?this.__character_count=e.length-t:this.__character_count+=e.length},i.prototype.pop=function(){var e=null;return this.is_empty()||(e=this.__items.pop(),this.__character_count-=e.length),e},i.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},i.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},i.prototype.trim=function(){for(;" "===this.last();)this.__items.pop(),this.__character_count-=1},i.prototype.toString=function(){var e="";return this.is_empty()?this.__parent.indent_empty_lines&&(e=this.__parent.get_indent_string(this.__indent_count)):(e=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),e+=this.__items.join("")),e},r.prototype.get_indent_size=function(e,t){var n=this.__base_string_length;return t=t||0,e<0&&(n=0),n+=e*this.__indent_size,n+=t},r.prototype.get_indent_string=function(e,t){var n=this.__base_string;return t=t||0,e<0&&(e=0,n=""),t+=e*this.__indent_size,this.__ensure_cache(t),n+=this.__cache[t]},r.prototype.__ensure_cache=function(e){for(;e>=this.__cache.length;)this.__add_column()},r.prototype.__add_column=function(){var e=this.__cache.length,t=0,n="";this.__indent_size&&e>=this.__indent_size&&(e-=(t=Math.floor(e/this.__indent_size))*this.__indent_size,n=new Array(t+1).join(this.__indent_string)),e&&(n+=new Array(e+1).join(" ")),this.__cache.push(n)},a.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},a.prototype.get_line_number=function(){return this.__lines.length},a.prototype.get_indent_string=function(e,t){return this.__indent_cache.get_indent_string(e,t)},a.prototype.get_indent_size=function(e,t){return this.__indent_cache.get_indent_size(e,t)},a.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},a.prototype.add_new_line=function(e){return!(this.is_empty()||!e&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},a.prototype.get_code=function(e){this.trim(!0);var t=this.current_line.pop();t&&("\n"===t[t.length-1]&&(t=t.replace(/\n+$/g,"")),this.current_line.push(t)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join("\n");return"\n"!==e&&(n=n.replace(/[\n]/g,e)),n},a.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},a.prototype.set_indent=function(e,t){return e=e||0,t=t||0,this.next_line.set_indent(e,t),this.__lines.length>1?(this.current_line.set_indent(e,t),!0):(this.current_line.set_indent(),!1)},a.prototype.add_raw_token=function(e){for(var t=0;t1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},a.prototype.just_added_newline=function(){return this.current_line.is_empty()},a.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},a.prototype.ensure_empty_line_above=function(e,t){for(var n=this.__lines.length-2;n>=0;){var r=this.__lines[n];if(r.is_empty())break;if(0!==r.item(0).indexOf(e)&&r.item(-1)!==t){this.__lines.splice(n+1,0,new i(this)),this.previous_line=this.__lines[this.__lines.length-2];break}n--}},e.exports.Output=a},,,,function(e,t,n){function i(e,t){this.raw_options=r(e,t),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs","\t"===this.indent_char),this.indent_with_tabs&&(this.indent_char="\t",1===this.indent_size&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php"],["auto"])}function r(e,t){var n,i={};for(n in e=a(e))n!==t&&(i[n]=e[n]);if(t&&e[t])for(n in e[t])i[n]=e[t][n];return i}function a(e){var t,n={};for(t in e){n[t.replace(/-/g,"_")]=e[t]}return n}i.prototype._get_array=function(e,t){var n=this.raw_options[e],i=t||[];return"object"==typeof n?null!==n&&"function"==typeof n.concat&&(i=n.concat()):"string"==typeof n&&(i=n.split(/[^a-zA-Z0-9_\/\-]+/)),i},i.prototype._get_boolean=function(e,t){var n=this.raw_options[e];return void 0===n?!!t:!!n},i.prototype._get_characters=function(e,t){var n=this.raw_options[e],i=t||"";return"string"==typeof n&&(i=n.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),i},i.prototype._get_number=function(e,t){var n=this.raw_options[e];t=parseInt(t,10),isNaN(t)&&(t=0);var i=parseInt(n,10);return isNaN(i)&&(i=t),i},i.prototype._get_selection=function(e,t,n){var i=this._get_selection_list(e,t,n);if(1!==i.length)throw new Error("Invalid Option Value: The option '"+e+"' can only be one of the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return i[0]},i.prototype._get_selection_list=function(e,t,n){if(!t||0===t.length)throw new Error("Selection list cannot be empty.");if(n=n||[t[0]],!this._is_valid_selection(n,t))throw new Error("Invalid Default Value!");var i=this._get_array(e,n);if(!this._is_valid_selection(i,t))throw new Error("Invalid Option Value: The option '"+e+"' can contain only the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return i},i.prototype._is_valid_selection=function(e,t){return e.length&&t.length&&!e.some((function(e){return-1===t.indexOf(e)}))},e.exports.Options=i,e.exports.normalizeOpts=a,e.exports.mergeOpts=r},,function(e,t,n){var i=RegExp.prototype.hasOwnProperty("sticky");function r(e){this.__input=e||"",this.__input_length=this.__input.length,this.__position=0}r.prototype.restart=function(){this.__position=0},r.prototype.back=function(){this.__position>0&&(this.__position-=1)},r.prototype.hasNext=function(){return this.__position=0&&e=0&&t=e.length&&this.__input.substring(t-e.length,t).toLowerCase()===e},e.exports.InputScanner=r},,,,,function(e,t,n){function i(e,t){e="string"==typeof e?e:e.source,t="string"==typeof t?t:t.source,this.__directives_block_pattern=new RegExp(e+/ beautify( \w+[:]\w+)+ /.source+t,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(e+/\sbeautify\signore:end\s/.source+t,"g")}i.prototype.get_directives=function(e){if(!e.match(this.__directives_block_pattern))return null;var t={};this.__directive_pattern.lastIndex=0;for(var n=this.__directive_pattern.exec(e);n;)t[n[1]]=n[2],n=this.__directive_pattern.exec(e);return t},i.prototype.readIgnored=function(e){return e.readUntilAfter(this.__directives_end_ignore_pattern)},e.exports.Directives=i},,function(e,t,n){var i=n(16).Beautifier,r=n(17).Options;e.exports=function(e,t){return new i(e,t).beautify()},e.exports.defaultOptions=function(){return new r}},function(e,t,n){var i=n(17).Options,r=n(2).Output,a=n(8).InputScanner,o=new(0,n(13).Directives)(/\/\*/,/\*\//),s=/\r\n|[\r\n]/,l=/\r\n|[\r\n]/g,c=/\s/,h=/(?:\s|\n)+/g,d=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,u=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function p(e,t){this._source_text=e||"",this._options=new i(t),this._ch=null,this._input=null,this.NESTED_AT_RULE={"@page":!0,"@font-face":!0,"@keyframes":!0,"@media":!0,"@supports":!0,"@document":!0},this.CONDITIONAL_GROUP_RULE={"@media":!0,"@supports":!0,"@document":!0}}p.prototype.eatString=function(e){var t="";for(this._ch=this._input.next();this._ch;){if(t+=this._ch,"\\"===this._ch)t+=this._input.next();else if(-1!==e.indexOf(this._ch)||"\n"===this._ch)break;this._ch=this._input.next()}return t},p.prototype.eatWhitespace=function(e){for(var t=c.test(this._input.peek()),n=!0;c.test(this._input.peek());)this._ch=this._input.next(),e&&"\n"===this._ch&&(this._options.preserve_newlines||n)&&(n=!1,this._output.add_new_line(!0));return t},p.prototype.foundNestedPseudoClass=function(){for(var e=0,t=1,n=this._input.peek(t);n;){if("{"===n)return!0;if("("===n)e+=1;else if(")"===n){if(0===e)return!1;e-=1}else if(";"===n||"}"===n)return!1;t++,n=this._input.peek(t)}return!1},p.prototype.print_string=function(e){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(e)},p.prototype.preserveSingleSpace=function(e){e&&(this._output.space_before_token=!0)},p.prototype.indent=function(){this._indentLevel++},p.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},p.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._source_text,t=this._options.eol;"auto"===t&&(t="\n",e&&s.test(e||"")&&(t=e.match(s)[0]));var n=(e=e.replace(l,"\n")).match(/^[\t ]*/)[0];this._output=new r(this._options,n),this._input=new a(e),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var i,p,m=0,f=!1,g=!1,b=!1,_=!1,w=!1,v=this._ch;i=""!==this._input.read(h),p=v,this._ch=this._input.next(),"\\"===this._ch&&this._input.hasNext()&&(this._ch+=this._input.next()),v=this._ch,this._ch;)if("/"===this._ch&&"*"===this._input.peek()){this._output.add_new_line(),this._input.back();var y=this._input.read(d),T=o.get_directives(y);T&&"start"===T.ignore&&(y+=o.readIgnored(this._input)),this.print_string(y),this.eatWhitespace(!0),this._output.add_new_line()}else if("/"===this._ch&&"/"===this._input.peek())this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(u)),this.eatWhitespace(!0);else if("@"===this._ch)if(this.preserveSingleSpace(i),"{"===this._input.peek())this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var k=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);k.match(/[ :]$/)&&(k=this.eatString(": ").replace(/\s$/,""),this.print_string(k),this._output.space_before_token=!0),"extend"===(k=k.replace(/\s$/,""))?_=!0:"import"===k&&(w=!0),k in this.NESTED_AT_RULE?(this._nestedLevel+=1,k in this.CONDITIONAL_GROUP_RULE&&(b=!0)):f||0!==m||-1===k.indexOf(":")||(g=!0,this.indent())}else"#"===this._ch&&"{"===this._input.peek()?(this.preserveSingleSpace(i),this.print_string(this._ch+this.eatString("}"))):"{"===this._ch?(g&&(g=!1,this.outdent()),this.indent(),this._output.space_before_token=!0,this.print_string(this._ch),b?(b=!1,f=this._indentLevel>this._nestedLevel):f=this._indentLevel>=this._nestedLevel,this._options.newline_between_rules&&f&&this._output.previous_line&&"{"!==this._output.previous_line.item(-1)&&this._output.ensure_empty_line_above("/",","),this.eatWhitespace(!0),this._output.add_new_line()):"}"===this._ch?(this.outdent(),this._output.add_new_line(),"{"===p&&this._output.trim(!0),w=!1,_=!1,g&&(this.outdent(),g=!1),this.print_string(this._ch),f=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&"}"!==this._input.peek()&&this._output.add_new_line(!0)):":"===this._ch?!f&&!b||this._input.lookBack("&")||this.foundNestedPseudoClass()||this._input.lookBack("(")||_||0!==m?(this._input.lookBack(" ")&&(this._output.space_before_token=!0),":"===this._input.peek()?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":")):(this.print_string(":"),g||(g=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):'"'===this._ch||"'"===this._ch?(this.preserveSingleSpace(i),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)):";"===this._ch?0===m?(g&&(this.outdent(),g=!1),_=!1,w=!1,this.print_string(this._ch),this.eatWhitespace(!0),"/"!==this._input.peek()&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0):"("===this._ch?this._input.lookBack("url")?(this.print_string(this._ch),this.eatWhitespace(),m++,this.indent(),this._ch=this._input.next(),")"===this._ch||'"'===this._ch||"'"===this._ch?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),m&&(m--,this.outdent()))):(this.preserveSingleSpace(i),this.print_string(this._ch),this.eatWhitespace(),m++,this.indent()):")"===this._ch?(m&&(m--,this.outdent()),this.print_string(this._ch)):","===this._ch?(this.print_string(this._ch),this.eatWhitespace(!0),!this._options.selector_separator_newline||g||0!==m||w?this._output.space_before_token=!0:this._output.add_new_line()):">"!==this._ch&&"+"!==this._ch&&"~"!==this._ch||g||0!==m?"]"===this._ch?this.print_string(this._ch):"["===this._ch?(this.preserveSingleSpace(i),this.print_string(this._ch)):"="===this._ch?(this.eatWhitespace(),this.print_string("="),c.test(this._ch)&&(this._ch="")):"!"!==this._ch||this._input.lookBack("\\")?(this.preserveSingleSpace(i),this.print_string(this._ch)):(this.print_string(" "),this.print_string(this._ch)):this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&c.test(this._ch)&&(this._ch=""));return this._output.get_code(t)},e.exports.Beautifier=p},function(e,t,n){var i=n(6).Options;function r(e){i.call(this,e,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var t=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||t}r.prototype=new i,e.exports.Options=r}]),function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=18)}([,,function(e,t,n){function i(e){this.__parent=e,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}function r(e,t){this.__cache=[""],this.__indent_size=e.indent_size,this.__indent_string=e.indent_char,e.indent_with_tabs||(this.__indent_string=new Array(e.indent_size+1).join(e.indent_char)),t=t||"",e.indent_level>0&&(t=new Array(e.indent_level+1).join(this.__indent_string)),this.__base_string=t,this.__base_string_length=t.length}function a(e,t){this.__indent_cache=new r(e,t),this.raw=!1,this._end_with_newline=e.end_with_newline,this.indent_size=e.indent_size,this.wrap_line_length=e.wrap_line_length,this.indent_empty_lines=e.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new i(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}i.prototype.clone_empty=function(){var e=new i(this.__parent);return e.set_indent(this.__indent_count,this.__alignment_count),e},i.prototype.item=function(e){return e<0?this.__items[this.__items.length+e]:this.__items[e]},i.prototype.has_match=function(e){for(var t=this.__items.length-1;t>=0;t--)if(this.__items[t].match(e))return!0;return!1},i.prototype.set_indent=function(e,t){this.is_empty()&&(this.__indent_count=e||0,this.__alignment_count=t||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},i.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},i.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},i.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var e=this.__parent.current_line;return e.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),e.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),e.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===e.__items[0]&&(e.__items.splice(0,1),e.__character_count-=1),!0}return!1},i.prototype.is_empty=function(){return 0===this.__items.length},i.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},i.prototype.push=function(e){this.__items.push(e);var t=e.lastIndexOf("\n");-1!==t?this.__character_count=e.length-t:this.__character_count+=e.length},i.prototype.pop=function(){var e=null;return this.is_empty()||(e=this.__items.pop(),this.__character_count-=e.length),e},i.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},i.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},i.prototype.trim=function(){for(;" "===this.last();)this.__items.pop(),this.__character_count-=1},i.prototype.toString=function(){var e="";return this.is_empty()?this.__parent.indent_empty_lines&&(e=this.__parent.get_indent_string(this.__indent_count)):(e=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),e+=this.__items.join("")),e},r.prototype.get_indent_size=function(e,t){var n=this.__base_string_length;return t=t||0,e<0&&(n=0),n+=e*this.__indent_size,n+=t},r.prototype.get_indent_string=function(e,t){var n=this.__base_string;return t=t||0,e<0&&(e=0,n=""),t+=e*this.__indent_size,this.__ensure_cache(t),n+=this.__cache[t]},r.prototype.__ensure_cache=function(e){for(;e>=this.__cache.length;)this.__add_column()},r.prototype.__add_column=function(){var e=this.__cache.length,t=0,n="";this.__indent_size&&e>=this.__indent_size&&(e-=(t=Math.floor(e/this.__indent_size))*this.__indent_size,n=new Array(t+1).join(this.__indent_string)),e&&(n+=new Array(e+1).join(" ")),this.__cache.push(n)},a.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},a.prototype.get_line_number=function(){return this.__lines.length},a.prototype.get_indent_string=function(e,t){return this.__indent_cache.get_indent_string(e,t)},a.prototype.get_indent_size=function(e,t){return this.__indent_cache.get_indent_size(e,t)},a.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},a.prototype.add_new_line=function(e){return!(this.is_empty()||!e&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},a.prototype.get_code=function(e){this.trim(!0);var t=this.current_line.pop();t&&("\n"===t[t.length-1]&&(t=t.replace(/\n+$/g,"")),this.current_line.push(t)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join("\n");return"\n"!==e&&(n=n.replace(/[\n]/g,e)),n},a.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},a.prototype.set_indent=function(e,t){return e=e||0,t=t||0,this.next_line.set_indent(e,t),this.__lines.length>1?(this.current_line.set_indent(e,t),!0):(this.current_line.set_indent(),!1)},a.prototype.add_raw_token=function(e){for(var t=0;t1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},a.prototype.just_added_newline=function(){return this.current_line.is_empty()},a.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},a.prototype.ensure_empty_line_above=function(e,t){for(var n=this.__lines.length-2;n>=0;){var r=this.__lines[n];if(r.is_empty())break;if(0!==r.item(0).indexOf(e)&&r.item(-1)!==t){this.__lines.splice(n+1,0,new i(this)),this.previous_line=this.__lines[this.__lines.length-2];break}n--}},e.exports.Output=a},function(e,t,n){e.exports.Token=function(e,t,n,i){this.type=e,this.text=t,this.comments_before=null,this.newlines=n||0,this.whitespace_before=i||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}},,,function(e,t,n){function i(e,t){this.raw_options=r(e,t),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs","\t"===this.indent_char),this.indent_with_tabs&&(this.indent_char="\t",1===this.indent_size&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php"],["auto"])}function r(e,t){var n,i={};for(n in e=a(e))n!==t&&(i[n]=e[n]);if(t&&e[t])for(n in e[t])i[n]=e[t][n];return i}function a(e){var t,n={};for(t in e){n[t.replace(/-/g,"_")]=e[t]}return n}i.prototype._get_array=function(e,t){var n=this.raw_options[e],i=t||[];return"object"==typeof n?null!==n&&"function"==typeof n.concat&&(i=n.concat()):"string"==typeof n&&(i=n.split(/[^a-zA-Z0-9_\/\-]+/)),i},i.prototype._get_boolean=function(e,t){var n=this.raw_options[e];return void 0===n?!!t:!!n},i.prototype._get_characters=function(e,t){var n=this.raw_options[e],i=t||"";return"string"==typeof n&&(i=n.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),i},i.prototype._get_number=function(e,t){var n=this.raw_options[e];t=parseInt(t,10),isNaN(t)&&(t=0);var i=parseInt(n,10);return isNaN(i)&&(i=t),i},i.prototype._get_selection=function(e,t,n){var i=this._get_selection_list(e,t,n);if(1!==i.length)throw new Error("Invalid Option Value: The option '"+e+"' can only be one of the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return i[0]},i.prototype._get_selection_list=function(e,t,n){if(!t||0===t.length)throw new Error("Selection list cannot be empty.");if(n=n||[t[0]],!this._is_valid_selection(n,t))throw new Error("Invalid Default Value!");var i=this._get_array(e,n);if(!this._is_valid_selection(i,t))throw new Error("Invalid Option Value: The option '"+e+"' can contain only the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return i},i.prototype._is_valid_selection=function(e,t){return e.length&&t.length&&!e.some((function(e){return-1===t.indexOf(e)}))},e.exports.Options=i,e.exports.normalizeOpts=a,e.exports.mergeOpts=r},,function(e,t,n){var i=RegExp.prototype.hasOwnProperty("sticky");function r(e){this.__input=e||"",this.__input_length=this.__input.length,this.__position=0}r.prototype.restart=function(){this.__position=0},r.prototype.back=function(){this.__position>0&&(this.__position-=1)},r.prototype.hasNext=function(){return this.__position=0&&e=0&&t=e.length&&this.__input.substring(t-e.length,t).toLowerCase()===e},e.exports.InputScanner=r},function(e,t,n){var i=n(8).InputScanner,r=n(3).Token,a=n(10).TokenStream,o=n(11).WhitespacePattern,s={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},l=function(e,t){this._input=new i(e),this._options=t||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new o(this._input)};l.prototype.tokenize=function(){var e;this._input.restart(),this.__tokens=new a,this._reset();for(var t=new r(s.START,""),n=null,i=[],o=new a;t.type!==s.EOF;){for(e=this._get_next_token(t,n);this._is_comment(e);)o.add(e),e=this._get_next_token(t,n);o.isEmpty()||(e.comments_before=o,o=new a),e.parent=n,this._is_opening(e)?(i.push(n),n=e):n&&this._is_closing(e,n)&&(e.opened=n,n.closed=e,n=i.pop(),e.parent=n),e.previous=t,t.next=e,this.__tokens.add(e),t=e}return this.__tokens},l.prototype._is_first_token=function(){return this.__tokens.isEmpty()},l.prototype._reset=function(){},l.prototype._get_next_token=function(e,t){this._readWhitespace();var n=this._input.read(/.+/g);return n?this._create_token(s.RAW,n):this._create_token(s.EOF,"")},l.prototype._is_comment=function(e){return!1},l.prototype._is_opening=function(e){return!1},l.prototype._is_closing=function(e,t){return!1},l.prototype._create_token=function(e,t){return new r(e,t,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token)},l.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},e.exports.Tokenizer=l,e.exports.TOKEN=s},function(e,t,n){function i(e){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=e}i.prototype.restart=function(){this.__position=0},i.prototype.isEmpty=function(){return 0===this.__tokens_length},i.prototype.hasNext=function(){return this.__position=0&&e/),erb:n.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:n.starting_with(/{%/).until_after(/%}/),django_value:n.starting_with(/{{/).until_after(/}}/),django_comment:n.starting_with(/{#/).until_after(/#}/)}}a.prototype=new i,a.prototype._create=function(){return new a(this._input,this)},a.prototype._update=function(){this.__set_templated_pattern()},a.prototype.disable=function(e){var t=this._create();return t._disabled[e]=!0,t._update(),t},a.prototype.read_options=function(e){var t=this._create();for(var n in r)t._disabled[n]=-1===e.templating.indexOf(n);return t._update(),t},a.prototype.exclude=function(e){var t=this._create();return t._excluded[e]=!0,t._update(),t},a.prototype.read=function(){var e="";e=this._match_pattern?this._input.read(this._starting_pattern):this._input.read(this._starting_pattern,this.__template_pattern);for(var t=this._read_template();t;)this._match_pattern?t+=this._input.read(this._match_pattern):t+=this._input.readUntil(this.__template_pattern),e+=t,t=this._read_template();return this._until_after&&(e+=this._input.readUntilAfter(this._until_pattern)),e},a.prototype.__set_templated_pattern=function(){var e=[];this._disabled.php||e.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||e.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||e.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(e.push(this.__patterns.django._starting_pattern.source),e.push(this.__patterns.django_value._starting_pattern.source),e.push(this.__patterns.django_comment._starting_pattern.source)),this._until_pattern&&e.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+e.join("|")+")")},a.prototype._read_template=function(){var e="",t=this._input.peek();if("<"===t){var n=this._input.peek(1);this._disabled.php||this._excluded.php||"?"!==n||(e=e||this.__patterns.php.read()),this._disabled.erb||this._excluded.erb||"%"!==n||(e=e||this.__patterns.erb.read())}else"{"===t&&(this._disabled.handlebars||this._excluded.handlebars||(e=(e=(e=e||this.__patterns.handlebars_comment.read())||this.__patterns.handlebars_unescaped.read())||this.__patterns.handlebars.read()),this._disabled.django||(this._excluded.django||this._excluded.handlebars||(e=e||this.__patterns.django_value.read()),this._excluded.django||(e=(e=e||this.__patterns.django_comment.read())||this.__patterns.django.read())));return e},e.exports.TemplatablePattern=a},,,,function(e,t,n){var i=n(19).Beautifier,r=n(20).Options;e.exports=function(e,t,n,r){return new i(e,t,n,r).beautify()},e.exports.defaultOptions=function(){return new r}},function(e,t,n){var i=n(20).Options,r=n(2).Output,a=n(21).Tokenizer,o=n(21).TOKEN,s=/\r\n|[\r\n]/,l=/\r\n|[\r\n]/g,c=function(e,t){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=e.max_preserve_newlines,this.preserve_newlines=e.preserve_newlines,this._output=new r(e,t)};c.prototype.current_line_has_match=function(e){return this._output.current_line.has_match(e)},c.prototype.set_space_before_token=function(e,t){this._output.space_before_token=e,this._output.non_breaking_space=t},c.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},c.prototype.add_raw_token=function(e){this._output.add_raw_token(e)},c.prototype.print_preserved_newlines=function(e){var t=0;e.type!==o.TEXT&&e.previous.type!==o.TEXT&&(t=e.newlines?1:0),this.preserve_newlines&&(t=e.newlines0);return 0!==t},c.prototype.traverse_whitespace=function(e){return!(!e.whitespace_before&&!e.newlines)&&(this.print_preserved_newlines(e)||(this._output.space_before_token=!0),!0)},c.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},c.prototype.print_newline=function(e){this._output.add_new_line(e)},c.prototype.print_token=function(e){e.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(e.text))},c.prototype.indent=function(){this.indent_level++},c.prototype.get_full_indent=function(e){return(e=this.indent_level+(e||0))<1?"":this._output.get_indent_string(e)};var h=function(e,t){var n=null,i=null;return t.closed?("script"===e?n="text/javascript":"style"===e&&(n="text/css"),(n=function(e){for(var t=null,n=e.next;n.type!==o.EOF&&e.closed!==n;){if(n.type===o.ATTRIBUTE&&"type"===n.text){n.next&&n.next.type===o.EQUALS&&n.next.next&&n.next.next.type===o.VALUE&&(t=n.next.next.text);break}n=n.next}return t}(t)||n).search("text/css")>-1?i="css":n.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?i="javascript":n.search(/(text|application|dojo)\/(x-)?(html)/)>-1?i="html":n.search(/test\/null/)>-1&&(i="null"),i):null};function d(e,t){return-1!==t.indexOf(e)}function u(e,t,n){this.parent=e||null,this.tag=t?t.tag_name:"",this.indent_level=n||0,this.parser_token=t||null}function p(e){this._printer=e,this._current_frame=null}function m(e,t,n,r){this._source_text=e||"",t=t||{},this._js_beautify=n,this._css_beautify=r,this._tag_stack=null;var a=new i(t,"html");this._options=a,this._is_wrap_attributes_force="force"===this._options.wrap_attributes.substr(0,"force".length),this._is_wrap_attributes_force_expand_multiline="force-expand-multiline"===this._options.wrap_attributes,this._is_wrap_attributes_force_aligned="force-aligned"===this._options.wrap_attributes,this._is_wrap_attributes_aligned_multiple="aligned-multiple"===this._options.wrap_attributes,this._is_wrap_attributes_preserve="preserve"===this._options.wrap_attributes.substr(0,"preserve".length),this._is_wrap_attributes_preserve_aligned="preserve-aligned"===this._options.wrap_attributes}p.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},p.prototype.record_tag=function(e){var t=new u(this._current_frame,e,this._printer.indent_level);this._current_frame=t},p.prototype._try_pop_frame=function(e){var t=null;return e&&(t=e.parser_token,this._printer.indent_level=e.indent_level,this._current_frame=e.parent),t},p.prototype._get_frame=function(e,t){for(var n=this._current_frame;n&&-1===e.indexOf(n.tag);){if(t&&-1!==t.indexOf(n.tag)){n=null;break}n=n.parent}return n},p.prototype.try_pop=function(e,t){var n=this._get_frame([e],t);return this._try_pop_frame(n)},p.prototype.indent_to_tag=function(e){var t=this._get_frame(e);t&&(this._printer.indent_level=t.indent_level)},m.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._source_text,t=this._options.eol;"auto"===this._options.eol&&(t="\n",e&&s.test(e)&&(t=e.match(s)[0]));var n=(e=e.replace(l,"\n")).match(/^[\t ]*/)[0],i={text:"",type:""},r=new f,h=new c(this._options,n),d=new a(e,this._options).tokenize();this._tag_stack=new p(h);for(var u=null,m=d.next();m.type!==o.EOF;)m.type===o.TAG_OPEN||m.type===o.COMMENT?r=u=this._handle_tag_open(h,m,r,i):m.type===o.ATTRIBUTE||m.type===o.EQUALS||m.type===o.VALUE||m.type===o.TEXT&&!r.tag_complete?u=this._handle_inside_tag(h,m,r,d):m.type===o.TAG_CLOSE?u=this._handle_tag_close(h,m,r):m.type===o.TEXT?u=this._handle_text(h,m,r):h.add_raw_token(m),i=u,m=d.next();return h._output.get_code(t)},m.prototype._handle_tag_close=function(e,t,n){var i={text:t.text,type:t.type};return e.alignment_size=0,n.tag_complete=!0,e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),n.is_unformatted?e.add_raw_token(t):("<"===n.tag_start_char&&(e.set_space_before_token("/"===t.text[0],!0),this._is_wrap_attributes_force_expand_multiline&&n.has_wrapped_attrs&&e.print_newline(!1)),e.print_token(t)),!n.indent_content||n.is_unformatted||n.is_content_unformatted||(e.indent(),n.indent_content=!1),n.is_inline_element||n.is_unformatted||n.is_content_unformatted||e.set_wrap_point(),i},m.prototype._handle_inside_tag=function(e,t,n,i){var r=n.has_wrapped_attrs,a={text:t.text,type:t.type};if(e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),n.is_unformatted)e.add_raw_token(t);else if("{"===n.tag_start_char&&t.type===o.TEXT)e.print_preserved_newlines(t)?(t.newlines=0,e.add_raw_token(t)):e.print_token(t);else{if(t.type===o.ATTRIBUTE?(e.set_space_before_token(!0),n.attr_count+=1):t.type===o.EQUALS?e.set_space_before_token(!1):t.type===o.VALUE&&t.previous.type===o.EQUALS&&e.set_space_before_token(!1),t.type===o.ATTRIBUTE&&"<"===n.tag_start_char&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(e.traverse_whitespace(t),r=r||0!==t.newlines),this._is_wrap_attributes_force)){var s=n.attr_count>1;if(this._is_wrap_attributes_force_expand_multiline&&1===n.attr_count){var l,c=!0,h=0;do{if((l=i.peek(h)).type===o.ATTRIBUTE){c=!1;break}h+=1}while(h<4&&l.type!==o.EOF&&l.type!==o.TAG_CLOSE);s=!c}s&&(e.print_newline(!1),r=!0)}e.print_token(t),r=r||e.previous_token_wrapped(),n.has_wrapped_attrs=r}return a},m.prototype._handle_text=function(e,t,n){var i={text:t.text,type:"TK_CONTENT"};return n.custom_beautifier_name?this._print_custom_beatifier_text(e,t,n):n.is_unformatted||n.is_content_unformatted?e.add_raw_token(t):(e.traverse_whitespace(t),e.print_token(t)),i},m.prototype._print_custom_beatifier_text=function(e,t,n){var i=this;if(""!==t.text){var r,a=t.text,o=1,s="",l="";"javascript"===n.custom_beautifier_name&&"function"==typeof this._js_beautify?r=this._js_beautify:"css"===n.custom_beautifier_name&&"function"==typeof this._css_beautify?r=this._css_beautify:"html"===n.custom_beautifier_name&&(r=function(e,t){return new m(e,t,i._js_beautify,i._css_beautify).beautify()}),"keep"===this._options.indent_scripts?o=0:"separate"===this._options.indent_scripts&&(o=-e.indent_level);var c=e.get_full_indent(o);if(a=a.replace(/\n[ \t]*$/,""),"html"!==n.custom_beautifier_name&&"<"===a[0]&&a.match(/^(|]]>)$/.exec(a);if(!h)return void e.add_raw_token(t);s=c+h[1]+"\n",a=h[4],h[5]&&(l=c+h[5]),a=a.replace(/\n[ \t]*$/,""),(h[2]||-1!==h[3].indexOf("\n"))&&(h=h[3].match(/[ \t]+$/))&&(t.whitespace_before=h[0])}if(a)if(r){var d=function(){this.eol="\n"};d.prototype=this._options.raw_options,a=r(c+a,new d)}else{var u=t.whitespace_before;u&&(a=a.replace(new RegExp("\n("+u+")?","g"),"\n")),a=c+a.replace(/\n/g,"\n"+c)}s&&(a=a?s+a+"\n"+l:s+l),e.print_newline(!1),a&&(t.text=a,t.whitespace_before="",t.newlines=0,e.add_raw_token(t),e.print_newline(!0))}},m.prototype._handle_tag_open=function(e,t,n,i){var r=this._get_tag_open_token(t);return(n.is_unformatted||n.is_content_unformatted)&&t.type===o.TAG_OPEN&&0===t.text.indexOf("]*)/),this.tag_check=n?n[1]:""):(n=t.text.match(/^{{(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=n?n[1]:"","{{#>"===t.text&&">"===this.tag_check&&null!==t.next&&(this.tag_check=t.next.text)),this.tag_check=this.tag_check.toLowerCase(),t.type===o.COMMENT&&(this.tag_complete=!0),this.is_start_tag="/"!==this.tag_check.charAt(0),this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||t.closed&&"/>"===t.closed.text,this.is_end_tag=this.is_end_tag||"{"===this.tag_start_char&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(2)))):this.tag_complete=!0};m.prototype._get_tag_open_token=function(e){var t=new f(this._tag_stack.get_parser_token(),e);return t.alignment_size=this._options.wrap_attributes_indent_size,t.is_end_tag=t.is_end_tag||d(t.tag_check,this._options.void_elements),t.is_empty_element=t.tag_complete||t.is_start_tag&&t.is_end_tag,t.is_unformatted=!t.tag_complete&&d(t.tag_check,this._options.unformatted),t.is_content_unformatted=!t.is_empty_element&&d(t.tag_check,this._options.content_unformatted),t.is_inline_element=d(t.tag_name,this._options.inline)||"{"===t.tag_start_char,t},m.prototype._set_tag_position=function(e,t,n,i,r){if(n.is_empty_element||(n.is_end_tag?n.start_tag_token=this._tag_stack.try_pop(n.tag_name):(this._do_optional_end_element(n)&&(n.is_inline_element||(n.parent&&(n.parent.multiline_content=!0),e.print_newline(!1))),this._tag_stack.record_tag(n),"script"!==n.tag_name&&"style"!==n.tag_name||n.is_unformatted||n.is_content_unformatted||(n.custom_beautifier_name=h(n.tag_check,t)))),d(n.tag_check,this._options.extra_liners)&&(e.print_newline(!1),e._output.just_added_blankline()||e.print_newline(!0)),n.is_empty_element){if("{"===n.tag_start_char&&"else"===n.tag_check)this._tag_stack.indent_to_tag(["if","unless","each"]),n.indent_content=!0,e.current_line_has_match(/{{#if/)||e.print_newline(!1);"!--"===n.tag_name&&r.type===o.TAG_CLOSE&&i.is_end_tag&&-1===n.text.indexOf("\n")||n.is_inline_element||n.is_unformatted||e.print_newline(!1)}else n.is_unformatted||n.is_content_unformatted?n.is_inline_element||n.is_unformatted||e.print_newline(!1):n.is_end_tag?(n.start_tag_token&&n.start_tag_token.multiline_content||!(n.is_inline_element||i.is_inline_element||r.type===o.TAG_CLOSE&&n.start_tag_token===i||"TK_CONTENT"===r.type))&&e.print_newline(!1):(n.indent_content=!n.custom_beautifier_name,"<"===n.tag_start_char&&("html"===n.tag_name?n.indent_content=this._options.indent_inner_html:"head"===n.tag_name?n.indent_content=this._options.indent_head_inner_html:"body"===n.tag_name&&(n.indent_content=this._options.indent_body_inner_html)),n.is_inline_element||"TK_CONTENT"===r.type||(n.parent&&(n.parent.multiline_content=!0),e.print_newline(!1)))};var g=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","nav","ol","p","pre","section","table","ul"],b=["a","audio","del","ins","map","noscript","video"];m.prototype._do_optional_end_element=function(e){var t=null;if(!e.is_empty_element&&e.is_start_tag&&e.parent){if("body"===e.tag_name)t=t||this._tag_stack.try_pop("head");else if("li"===e.tag_name)t=t||this._tag_stack.try_pop("li",["ol","ul"]);else if("dd"===e.tag_name||"dt"===e.tag_name)t=(t=t||this._tag_stack.try_pop("dt",["dl"]))||this._tag_stack.try_pop("dd",["dl"]);else if("p"===e.parent.tag_name&&-1!==g.indexOf(e.tag_name)){var n=e.parent.parent;n&&-1!==b.indexOf(n.tag_name)||(t=t||this._tag_stack.try_pop("p"))}else"rp"===e.tag_name||"rt"===e.tag_name?t=(t=t||this._tag_stack.try_pop("rt",["ruby","rtc"]))||this._tag_stack.try_pop("rp",["ruby","rtc"]):"optgroup"===e.tag_name?t=t||this._tag_stack.try_pop("optgroup",["select"]):"option"===e.tag_name?t=t||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):"colgroup"===e.tag_name?t=t||this._tag_stack.try_pop("caption",["table"]):"thead"===e.tag_name?t=(t=t||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]):"tbody"===e.tag_name||"tfoot"===e.tag_name?t=(t=(t=(t=t||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]))||this._tag_stack.try_pop("thead",["table"]))||this._tag_stack.try_pop("tbody",["table"]):"tr"===e.tag_name?t=(t=(t=t||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]))||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"]):"th"!==e.tag_name&&"td"!==e.tag_name||(t=(t=t||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]))||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return e.parent=this._tag_stack.get_parser_token(),t}},e.exports.Beautifier=m},function(e,t,n){var i=n(6).Options;function r(e){i.call(this,e,"html"),1===this.templating.length&&"auto"===this.templating[0]&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}r.prototype=new i,e.exports.Options=r},function(e,t,n){var i=n(9).Tokenizer,r=n(9).TOKEN,a=n(13).Directives,o=n(14).TemplatablePattern,s=n(12).Pattern,l={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:r.START,RAW:r.RAW,EOF:r.EOF},c=new a(/<\!--/,/-->/),h=function(e,t){i.call(this,e,t),this._current_tag_name="";var n=new o(this._input).read_options(this._options),r=new s(this._input);if(this.__patterns={word:n.until(/[\n\r\t <]/),single_quote:n.until_after(/'/),double_quote:n.until_after(/"/),attribute:n.until(/[\n\r\t =>]|\/>/),element_name:n.until(/[\n\r\t >\/]/),handlebars_comment:r.starting_with(/{{!--/).until_after(/--}}/),handlebars:r.starting_with(/{{/).until_after(/}}/),handlebars_open:r.until(/[\n\r\t }]/),handlebars_raw_close:r.until(/}}/),comment:r.starting_with(//),cdata:r.starting_with(//),conditional_comment:r.starting_with(//),processing:r.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var a=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=r.matching(a).until_after(a)}};(h.prototype=new i)._is_comment=function(e){return!1},h.prototype._is_opening=function(e){return e.type===l.TAG_OPEN},h.prototype._is_closing=function(e,t){return e.type===l.TAG_CLOSE&&t&&((">"===e.text||"/>"===e.text)&&"<"===t.text[0]||"}}"===e.text&&"{"===t.text[0]&&"{"===t.text[1])},h.prototype._reset=function(){this._current_tag_name=""},h.prototype._get_next_token=function(e,t){var n=null;this._readWhitespace();var i=this._input.peek();return null===i?this._create_token(l.EOF,""):n=(n=(n=(n=(n=(n=(n=(n=(n=n||this._read_open_handlebars(i,t))||this._read_attribute(i,e,t))||this._read_raw_content(i,e,t))||this._read_close(i,t))||this._read_content_word(i))||this._read_comment_or_cdata(i))||this._read_processing(i))||this._read_open(i,t))||this._create_token(l.UNKNOWN,this._input.next())},h.prototype._read_comment_or_cdata=function(e){var t=null,n=null,i=null;"<"===e&&("!"===this._input.peek(1)&&((n=this.__patterns.comment.read())?(i=c.get_directives(n))&&"start"===i.ignore&&(n+=c.readIgnored(this._input)):n=this.__patterns.cdata.read()),n&&((t=this._create_token(l.COMMENT,n)).directives=i));return t},h.prototype._read_processing=function(e){var t=null,n=null;if("<"===e){var i=this._input.peek(1);"!"!==i&&"?"!==i||(n=(n=this.__patterns.conditional_comment.read())||this.__patterns.processing.read()),n&&((t=this._create_token(l.COMMENT,n)).directives=null)}return t},h.prototype._read_open=function(e,t){var n=null,i=null;return t||"<"===e&&(n=this._input.next(),"/"===this._input.peek()&&(n+=this._input.next()),n+=this.__patterns.element_name.read(),i=this._create_token(l.TAG_OPEN,n)),i},h.prototype._read_open_handlebars=function(e,t){var n=null,i=null;return t||this._options.indent_handlebars&&"{"===e&&"{"===this._input.peek(1)&&("!"===this._input.peek(2)?(n=(n=this.__patterns.handlebars_comment.read())||this.__patterns.handlebars.read(),i=this._create_token(l.COMMENT,n)):(n=this.__patterns.handlebars_open.read(),i=this._create_token(l.TAG_OPEN,n))),i},h.prototype._read_close=function(e,t){var n=null,i=null;return t&&("<"===t.text[0]&&(">"===e||"/"===e&&">"===this._input.peek(1))?(n=this._input.next(),"/"===e&&(n+=this._input.next()),i=this._create_token(l.TAG_CLOSE,n)):"{"===t.text[0]&&"}"===e&&"}"===this._input.peek(1)&&(this._input.next(),this._input.next(),i=this._create_token(l.TAG_CLOSE,"}}"))),i},h.prototype._read_attribute=function(e,t,n){var i=null,r="";if(n&&"<"===n.text[0])if("="===e)i=this._create_token(l.EQUALS,this._input.next());else if('"'===e||"'"===e){var a=this._input.next();a+='"'===e?this.__patterns.double_quote.read():this.__patterns.single_quote.read(),i=this._create_token(l.VALUE,a)}else(r=this.__patterns.attribute.read())&&(i=t.type===l.EQUALS?this._create_token(l.VALUE,r):this._create_token(l.ATTRIBUTE,r));return i},h.prototype._is_content_unformatted=function(e){return-1===this._options.void_elements.indexOf(e)&&(-1!==this._options.content_unformatted.indexOf(e)||-1!==this._options.unformatted.indexOf(e))},h.prototype._read_raw_content=function(e,t,n){var i="";if(n&&"{"===n.text[0])i=this.__patterns.handlebars_raw_close.read();else if(t.type===l.TAG_CLOSE&&"<"===t.opened.text[0]){var r=t.opened.text.substr(1).toLowerCase();if("script"===r||"style"===r){var a=this._read_comment_or_cdata(e);if(a)return a.type=l.TEXT,a;i=this._input.readUntil(new RegExp("","ig"))}else this._is_content_unformatted(r)&&(i=this._input.readUntil(new RegExp("","ig")))}return i?this._create_token(l.TEXT,i):null},h.prototype._read_content_word=function(e){var t="";if(this._options.unformatted_content_delimiter&&e===this._options.unformatted_content_delimiter[0]&&(t=this.__patterns.unformatted_content_delimiter.read()),t||(t=this.__patterns.word.read()),t)return this._create_token(l.TEXT,t)},e.exports.Tokenizer=h,e.exports.TOKEN=l}]);n(910);var at={version:1.1,tags:[{name:"html",description:{kind:"markdown",value:"The html element represents the root of an HTML document."},attributes:[{name:"manifest",description:{kind:"markdown",value:"Specifies the URI of a resource manifest indicating resources that should be cached locally. See [Using the application cache](https://developer.mozilla.org/en-US/docs/Web/HTML/Using_the_application_cache) for details."}},{name:"version",description:'Specifies the version of the HTML [Document Type Definition](https://developer.mozilla.org/en-US/docs/Glossary/DTD "Document Type Definition: In HTML, the doctype is the required "" preamble found at the top of all documents. Its sole purpose is to prevent a browser from switching into so-called “quirks mode” when rendering a document; that is, the "" doctype ensures that the browser makes a best-effort attempt at following the relevant specifications, rather than using a different rendering mode that is incompatible with some specifications.") that governs the current document. This attribute is not needed, because it is redundant with the version information in the document type declaration.'},{name:"xmlns",description:'Specifies the XML Namespace of the document. Default value is `"http://www.w3.org/1999/xhtml"`. This is required in documents parsed with XML parsers, and optional in text/html documents.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/html"}]},{name:"head",description:{kind:"markdown",value:"The head element represents a collection of metadata for the Document."},attributes:[{name:"profile",description:"The URIs of one or more metadata profiles, separated by white space."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/head"}]},{name:"title",description:{kind:"markdown",value:"The title element represents the document's title or name. Authors should use titles that identify their documents even when they are used out of context, for example in a user's history or bookmarks, or in search results. The document's title is often different from its first heading, since the first heading does not have to stand alone when taken out of context."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/title"}]},{name:"base",description:{kind:"markdown",value:"The base element allows authors to specify the document base URL for the purposes of resolving relative URLs, and the name of the default browsing context for the purposes of following hyperlinks. The element does not represent any content beyond this information."},attributes:[{name:"href",description:{kind:"markdown",value:"The base URL to be used throughout the document for relative URL addresses. If this attribute is specified, this element must come before any other elements with attributes whose values are URLs. Absolute and relative URLs are allowed."}},{name:"target",description:{kind:"markdown",value:"A name or keyword indicating the default location to display the result when hyperlinks or forms cause navigation, for elements that do not have an explicit target reference. It is a name of, or keyword for, a _browsing context_ (for example: tab, window, or inline frame). The following keywords have special meanings:\n\n* `_self`: Load the result into the same browsing context as the current one. This value is the default if the attribute is not specified.\n* `_blank`: Load the result into a new unnamed browsing context.\n* `_parent`: Load the result into the parent browsing context of the current one. If there is no parent, this option behaves the same way as `_self`.\n* `_top`: Load the result into the top-level browsing context (that is, the browsing context that is an ancestor of the current one, and has no parent). If there is no parent, this option behaves the same way as `_self`.\n\nIf this attribute is specified, this element must come before any other elements with attributes whose values are URLs."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/base"}]},{name:"link",description:{kind:"markdown",value:"The link element allows authors to link their document to other resources."},attributes:[{name:"href",description:{kind:"markdown",value:'This attribute specifies the [URL](https://developer.mozilla.org/en-US/docs/Glossary/URL "URL: Uniform Resource Locator (URL) is a text string specifying where a resource can be found on the Internet.") of the linked resource. A URL can be absolute or relative.'}},{name:"crossorigin",valueSet:"xo",description:{kind:"markdown",value:'This enumerated attribute indicates whether [CORS](https://developer.mozilla.org/en-US/docs/Glossary/CORS "CORS: CORS (Cross-Origin Resource Sharing) is a system, consisting of transmitting HTTP headers, that determines whether browsers block frontend JavaScript code from accessing responses for cross-origin requests.") must be used when fetching the resource. [CORS-enabled images](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_Enabled_Image) can be reused in the [``](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas "Use the HTML element with either the canvas scripting API or the WebGL API to draw graphics and animations.") element without being _tainted_. The allowed values are:\n\n`anonymous`\n\nA cross-origin request (i.e. with an [`Origin`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin "The Origin request header indicates where a fetch originates from. It doesn\'t include any path information, but only the server name. It is sent with CORS requests, as well as with POST requests. It is similar to the Referer header, but, unlike this header, it doesn\'t disclose the whole path.") HTTP header) is performed, but no credential is sent (i.e. no cookie, X.509 certificate, or HTTP Basic authentication). If the server does not give credentials to the origin site (by not setting the [`Access-Control-Allow-Origin`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin "The Access-Control-Allow-Origin response header indicates whether the response can be shared with requesting code from the given origin.") HTTP header) the image will be tainted and its usage restricted.\n\n`use-credentials`\n\nA cross-origin request (i.e. with an `Origin` HTTP header) is performed along with a credential sent (i.e. a cookie, certificate, and/or HTTP Basic authentication is performed). If the server does not give credentials to the origin site (through [`Access-Control-Allow-Credentials`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Credentials "The Access-Control-Allow-Credentials response header tells browsers whether to expose the response to frontend JavaScript code when the request\'s credentials mode (Request.credentials) is "include".") HTTP header), the resource will be _tainted_ and its usage restricted.\n\nIf the attribute is not present, the resource is fetched without a [CORS](https://developer.mozilla.org/en-US/docs/Glossary/CORS "CORS: CORS (Cross-Origin Resource Sharing) is a system, consisting of transmitting HTTP headers, that determines whether browsers block frontend JavaScript code from accessing responses for cross-origin requests.") request (i.e. without sending the `Origin` HTTP header), preventing its non-tainted usage. If invalid, it is handled as if the enumerated keyword **anonymous** was used. See [CORS settings attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes) for additional information.'}},{name:"rel",description:{kind:"markdown",value:"This attribute names a relationship of the linked document to the current document. The attribute must be a space-separated list of the [link types values](https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types)."}},{name:"media",description:{kind:"markdown",value:"This attribute specifies the media that the linked resource applies to. Its value must be a media type / [media query](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries). This attribute is mainly useful when linking to external stylesheets — it allows the user agent to pick the best adapted one for the device it runs on.\n\n**Notes:**\n\n* In HTML 4, this can only be a simple white-space-separated list of media description literals, i.e., [media types and groups](https://developer.mozilla.org/en-US/docs/Web/CSS/@media), where defined and allowed as values for this attribute, such as `print`, `screen`, `aural`, `braille`. HTML5 extended this to any kind of [media queries](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries), which are a superset of the allowed values of HTML 4.\n* Browsers not supporting [CSS3 Media Queries](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries) won't necessarily recognize the adequate link; do not forget to set fallback links, the restricted set of media queries defined in HTML 4."}},{name:"hreflang",description:{kind:"markdown",value:"This attribute indicates the language of the linked resource. It is purely advisory. Allowed values are determined by [BCP47](https://www.ietf.org/rfc/bcp/bcp47.txt). Use this attribute only if the [`href`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href) attribute is present."}},{name:"type",description:{kind:"markdown",value:'This attribute is used to define the type of the content linked to. The value of the attribute should be a MIME type such as **text/html**, **text/css**, and so on. The common use of this attribute is to define the type of stylesheet being referenced (such as **text/css**), but given that CSS is the only stylesheet language used on the web, not only is it possible to omit the `type` attribute, but is actually now recommended practice. It is also used on `rel="preload"` link types, to make sure the browser only downloads file types that it supports.'}},{name:"sizes",description:{kind:"markdown",value:"This attribute defines the sizes of the icons for visual media contained in the resource. It must be present only if the [`rel`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-rel) contains a value of `icon` or a non-standard type such as Apple's `apple-touch-icon`. It may have the following values:\n\n* `any`, meaning that the icon can be scaled to any size as it is in a vector format, like `image/svg+xml`.\n* a white-space separated list of sizes, each in the format `__x__` or `__X__`. Each of these sizes must be contained in the resource.\n\n**Note:** Most icon formats are only able to store one single icon; therefore most of the time the [`sizes`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-sizes) contains only one entry. MS's ICO format does, as well as Apple's ICNS. ICO is more ubiquitous; you should definitely use it."}},{name:"as",description:'This attribute is only used when `rel="preload"` or `rel="prefetch"` has been set on the `` element. It specifies the type of content being loaded by the ``, which is necessary for content prioritization, request matching, application of correct [content security policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), and setting of correct [`Accept`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept "The Accept request HTTP header advertises which content types, expressed as MIME types, the client is able to understand. Using content negotiation, the server then selects one of the proposals, uses it and informs the client of its choice with the Content-Type response header. Browsers set adequate values for this header depending on the context where the request is done: when fetching a CSS stylesheet a different value is set for the request than when fetching an image, video or a script.") request header.'},{name:"importance",description:"Indicates the relative importance of the resource. Priority hints are delegated using the values:"},{name:"importance",description:'**`auto`**: Indicates **no preference**. The browser may use its own heuristics to decide the priority of the resource.\n\n**`high`**: Indicates to the browser that the resource is of **high** priority.\n\n**`low`**: Indicates to the browser that the resource is of **low** priority.\n\n**Note:** The `importance` attribute may only be used for the `` element if `rel="preload"` or `rel="prefetch"` is present.'},{name:"integrity",description:"Contains inline metadata — a base64-encoded cryptographic hash of the resource (file) you’re telling the browser to fetch. The browser can use this to verify that the fetched resource has been delivered free of unexpected manipulation. See [Subresource Integrity](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity)."},{name:"referrerpolicy",description:'A string indicating which referrer to use when fetching the resource:\n\n* `no-referrer` means that the [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will not be sent.\n* `no-referrer-when-downgrade` means that no [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will be sent when navigating to an origin without TLS (HTTPS). This is a user agent’s default behavior, if no policy is otherwise specified.\n* `origin` means that the referrer will be the origin of the page, which is roughly the scheme, the host, and the port.\n* `origin-when-cross-origin` means that navigating to other origins will be limited to the scheme, the host, and the port, while navigating on the same origin will include the referrer\'s path.\n* `unsafe-url` means that the referrer will include the origin and the path (but not the fragment, password, or username). This case is unsafe because it can leak origins and paths from TLS-protected resources to insecure origins.'},{name:"title",description:'The `title` attribute has special semantics on the `` element. When used on a `` it defines a [preferred or an alternate stylesheet](https://developer.mozilla.org/en-US/docs/Web/CSS/Alternative_style_sheets). Incorrectly using it may [cause the stylesheet to be ignored](https://developer.mozilla.org/en-US/docs/Correctly_Using_Titles_With_External_Stylesheets).'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/link"}]},{name:"meta",description:{kind:"markdown",value:"The meta element represents various kinds of metadata that cannot be expressed using the title, base, link, style, and script elements."},attributes:[{name:"name",description:{kind:"markdown",value:'This attribute defines the name of a piece of document-level metadata. It should not be set if one of the attributes [`itemprop`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-itemprop), [`http-equiv`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-http-equiv) or [`charset`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-charset) is also set.\n\nThis metadata name is associated with the value contained by the [`content`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-content) attribute. The possible values for the name attribute are:\n\n* `application-name` which defines the name of the application running in the web page.\n \n **Note:**\n \n * Browsers may use this to identify the application. It is different from the [``](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/title "The HTML Title element (<title>) defines the document\'s title that is shown in a browser\'s title bar or a page\'s tab.") element, which usually contain the application name, but may also contain information like the document name or a status.\n * Simple web pages shouldn\'t define an application-name.\n \n* `author` which defines the name of the document\'s author.\n* `description` which contains a short and accurate summary of the content of the page. Several browsers, like Firefox and Opera, use this as the default description of bookmarked pages.\n* `generator` which contains the identifier of the software that generated the page.\n* `keywords` which contains words relevant to the page\'s content separated by commas.\n* `referrer` which controls the [`Referer` HTTP header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer) attached to requests sent from the document:\n \n Values for the `content` attribute of `<meta name="referrer">`\n \n `no-referrer`\n \n Do not send a HTTP `Referrer` header.\n \n `origin`\n \n Send the [origin](https://developer.mozilla.org/en-US/docs/Glossary/Origin) of the document.\n \n `no-referrer-when-downgrade`\n \n Send the [origin](https://developer.mozilla.org/en-US/docs/Glossary/Origin) as a referrer to URLs as secure as the current page, (https→https), but does not send a referrer to less secure URLs (https→http). This is the default behaviour.\n \n `origin-when-cross-origin`\n \n Send the full URL (stripped of parameters) for same-origin requests, but only send the [origin](https://developer.mozilla.org/en-US/docs/Glossary/Origin) for other cases.\n \n `same-origin`\n \n A referrer will be sent for [same-site origins](https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy), but cross-origin requests will contain no referrer information.\n \n `strict-origin`\n \n Only send the origin of the document as the referrer to a-priori as-much-secure destination (HTTPS->HTTPS), but don\'t send it to a less secure destination (HTTPS->HTTP).\n \n `strict-origin-when-cross-origin`\n \n Send a full URL when performing a same-origin request, only send the origin of the document to a-priori as-much-secure destination (HTTPS->HTTPS), and send no header to a less secure destination (HTTPS->HTTP).\n \n `unsafe-URL`\n \n Send the full URL (stripped of parameters) for same-origin or cross-origin requests.\n \n **Notes:**\n \n * Some browsers support the deprecated values of `always`, `default`, and `never` for referrer.\n * Dynamically inserting `<meta name="referrer">` (with [`document.write`](https://developer.mozilla.org/en-US/docs/Web/API/Document/write) or [`appendChild`](https://developer.mozilla.org/en-US/docs/Web/API/Node/appendChild)) makes the referrer behaviour unpredictable.\n * When several conflicting policies are defined, the no-referrer policy is applied.\n \n\nThis attribute may also have a value taken from the extended list defined on [WHATWG Wiki MetaExtensions page](https://wiki.whatwg.org/wiki/MetaExtensions). Although none have been formally accepted yet, a few commonly used names are:\n\n* `creator` which defines the name of the creator of the document, such as an organization or institution. If there are more than one, several [`<meta>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta "The HTML <meta> element represents metadata that cannot be represented by other HTML meta-related elements, like <base>, <link>, <script>, <style> or <title>.") elements should be used.\n* `googlebot`, a synonym of `robots`, is only followed by Googlebot (the indexing crawler for Google).\n* `publisher` which defines the name of the document\'s publisher.\n* `robots` which defines the behaviour that cooperative crawlers, or "robots", should use with the page. It is a comma-separated list of the values below:\n \n Values for the content of `<meta name="robots">`\n \n Value\n \n Description\n \n Used by\n \n `index`\n \n Allows the robot to index the page (default).\n \n All\n \n `noindex`\n \n Requests the robot to not index the page.\n \n All\n \n `follow`\n \n Allows the robot to follow the links on the page (default).\n \n All\n \n `nofollow`\n \n Requests the robot to not follow the links on the page.\n \n All\n \n `none`\n \n Equivalent to `noindex, nofollow`\n \n [Google](https://support.google.com/webmasters/answer/79812)\n \n `noodp`\n \n Prevents using the [Open Directory Project](https://www.dmoz.org/) description, if any, as the page description in search engine results.\n \n [Google](https://support.google.com/webmasters/answer/35624#nodmoz), [Yahoo](https://help.yahoo.com/kb/search-for-desktop/meta-tags-robotstxt-yahoo-search-sln2213.html#cont5), [Bing](https://www.bing.com/webmaster/help/which-robots-metatags-does-bing-support-5198d240)\n \n `noarchive`\n \n Requests the search engine not to cache the page content.\n \n [Google](https://developers.google.com/webmasters/control-crawl-index/docs/robots_meta_tag#valid-indexing--serving-directives), [Yahoo](https://help.yahoo.com/kb/search-for-desktop/SLN2213.html), [Bing](https://www.bing.com/webmaster/help/which-robots-metatags-does-bing-support-5198d240)\n \n `nosnippet`\n \n Prevents displaying any description of the page in search engine results.\n \n [Google](https://developers.google.com/webmasters/control-crawl-index/docs/robots_meta_tag#valid-indexing--serving-directives), [Bing](https://www.bing.com/webmaster/help/which-robots-metatags-does-bing-support-5198d240)\n \n `noimageindex`\n \n Requests this page not to appear as the referring page of an indexed image.\n \n [Google](https://developers.google.com/webmasters/control-crawl-index/docs/robots_meta_tag#valid-indexing--serving-directives)\n \n `nocache`\n \n Synonym of `noarchive`.\n \n [Bing](https://www.bing.com/webmaster/help/which-robots-metatags-does-bing-support-5198d240)\n \n **Notes:**\n \n * Only cooperative robots follow these rules. Do not expect to prevent e-mail harvesters with them.\n * The robot still needs to access the page in order to read these rules. To prevent bandwidth consumption, use a _[robots.txt](https://developer.mozilla.org/en-US/docs/Glossary/robots.txt "robots.txt: Robots.txt is a file which is usually placed in the root of any website. It decides whether crawlers are permitted or forbidden access to the web site.")_ file.\n * If you want to remove a page, `noindex` will work, but only after the robot visits the page again. Ensure that the `robots.txt` file is not preventing revisits.\n * Some values are mutually exclusive, like `index` and `noindex`, or `follow` and `nofollow`. In these cases the robot\'s behaviour is undefined and may vary between them.\n * Some crawler robots, like Google, Yahoo and Bing, support the same values for the HTTP header `X-Robots-Tag`; this allows non-HTML documents like images to use these rules.\n \n* `slurp`, is a synonym of `robots`, but only for Slurp - the crawler for Yahoo Search.\n* `viewport`, which gives hints about the size of the initial size of the [viewport](https://developer.mozilla.org/en-US/docs/Glossary/viewport "viewport: A viewport represents a polygonal (normally rectangular) area in computer graphics that is currently being viewed. In web browser terms, it refers to the part of the document you\'re viewing which is currently visible in its window (or the screen, if the document is being viewed in full screen mode). Content outside the viewport is not visible onscreen until scrolled into view."). Used by mobile devices only.\n \n Values for the content of `<meta name="viewport">`\n \n Value\n \n Possible subvalues\n \n Description\n \n `width`\n \n A positive integer number, or the text `device-width`\n \n Defines the pixel width of the viewport that you want the web site to be rendered at.\n \n `height`\n \n A positive integer, or the text `device-height`\n \n Defines the height of the viewport. Not used by any browser.\n \n `initial-scale`\n \n A positive number between `0.0` and `10.0`\n \n Defines the ratio between the device width (`device-width` in portrait mode or `device-height` in landscape mode) and the viewport size.\n \n `maximum-scale`\n \n A positive number between `0.0` and `10.0`\n \n Defines the maximum amount to zoom in. It must be greater or equal to the `minimum-scale` or the behaviour is undefined. Browser settings can ignore this rule and iOS10+ ignores it by default.\n \n `minimum-scale`\n \n A positive number between `0.0` and `10.0`\n \n Defines the minimum zoom level. It must be smaller or equal to the `maximum-scale` or the behaviour is undefined. Browser settings can ignore this rule and iOS10+ ignores it by default.\n \n `user-scalable`\n \n `yes` or `no`\n \n If set to `no`, the user is not able to zoom in the webpage. The default is `yes`. Browser settings can ignore this rule, and iOS10+ ignores it by default.\n \n Specification\n \n Status\n \n Comment\n \n [CSS Device Adaptation \n The definition of \'<meta name="viewport">\' in that specification.](https://drafts.csswg.org/css-device-adapt/#viewport-meta)\n \n Working Draft\n \n Non-normatively describes the Viewport META element\n \n See also: [`@viewport`](https://developer.mozilla.org/en-US/docs/Web/CSS/@viewport "The @viewport CSS at-rule lets you configure the viewport through which the document is viewed. It\'s primarily used for mobile devices, but is also used by desktop browsers that support features like "snap to edge" (such as Microsoft Edge).")\n \n **Notes:**\n \n * Though unstandardized, this declaration is respected by most mobile browsers due to de-facto dominance.\n * The default values may vary between devices and browsers.\n * To learn about this declaration in Firefox for Mobile, see [this article](https://developer.mozilla.org/en-US/docs/Mobile/Viewport_meta_tag "Mobile/Viewport meta tag").'}},{name:"http-equiv",description:{kind:"markdown",value:'Defines a pragma directive. The attribute is named `**http-equiv**(alent)` because all the allowed values are names of particular HTTP headers:\n\n* `"content-language"` \n Defines the default language of the page. It can be overridden by the [lang](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/lang) attribute on any element.\n \n **Warning:** Do not use this value, as it is obsolete. Prefer the `lang` attribute on the [`<html>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/html "The HTML <html> element represents the root (top-level element) of an HTML document, so it is also referred to as the root element. All other elements must be descendants of this element.") element.\n \n* `"content-security-policy"` \n Allows page authors to define a [content policy](https://developer.mozilla.org/en-US/docs/Web/Security/CSP/CSP_policy_directives) for the current page. Content policies mostly specify allowed server origins and script endpoints which help guard against cross-site scripting attacks.\n* `"content-type"` \n Defines the [MIME type](https://developer.mozilla.org/en-US/docs/Glossary/MIME_type) of the document, followed by its character encoding. It follows the same syntax as the HTTP `content-type` entity-header field, but as it is inside a HTML page, most values other than `text/html` are impossible. Therefore the valid syntax for its `content` is the string \'`text/html`\' followed by a character set with the following syntax: \'`; charset=_IANAcharset_`\', where `IANAcharset` is the _preferred MIME name_ for a character set as [defined by the IANA.](https://www.iana.org/assignments/character-sets)\n \n **Warning:** Do not use this value, as it is obsolete. Use the [`charset`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-charset) attribute on the [`<meta>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta "The HTML <meta> element represents metadata that cannot be represented by other HTML meta-related elements, like <base>, <link>, <script>, <style> or <title>.") element.\n \n **Note:** As [`<meta>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta "The HTML <meta> element represents metadata that cannot be represented by other HTML meta-related elements, like <base>, <link>, <script>, <style> or <title>.") can\'t change documents\' types in XHTML or HTML5\'s XHTML serialization, never set the MIME type to an XHTML MIME type with `<meta>`.\n \n* `"refresh"` \n This instruction specifies:\n * The number of seconds until the page should be reloaded - only if the [`content`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-content) attribute contains a positive integer.\n * The number of seconds until the page should redirect to another - only if the [`content`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-content) attribute contains a positive integer followed by the string \'`;url=`\', and a valid URL.\n* `"set-cookie"` \n Defines a [cookie](https://developer.mozilla.org/en-US/docs/cookie) for the page. Its content must follow the syntax defined in the [IETF HTTP Cookie Specification](https://tools.ietf.org/html/draft-ietf-httpstate-cookie-14).\n \n **Warning:** Do not use this instruction, as it is obsolete. Use the HTTP header [`Set-Cookie`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie) instead.'}},{name:"content",description:{kind:"markdown",value:"This attribute contains the value for the [`http-equiv`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-http-equiv) or [`name`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-name) attribute, depending on which is used."}},{name:"charset",description:{kind:"markdown",value:'This attribute declares the page\'s character encoding. It must contain a [standard IANA MIME name for character encodings](https://www.iana.org/assignments/character-sets). Although the standard doesn\'t request a specific encoding, it suggests:\n\n* Authors are encouraged to use [`UTF-8`](https://developer.mozilla.org/en-US/docs/Glossary/UTF-8).\n* Authors should not use ASCII-incompatible encodings to avoid security risk: browsers not supporting them may interpret harmful content as HTML. This happens with the `JIS_C6226-1983`, `JIS_X0212-1990`, `HZ-GB-2312`, `JOHAB`, the ISO-2022 family and the EBCDIC family.\n\n**Note:** ASCII-incompatible encodings are those that don\'t map the 8-bit code points `0x20` to `0x7E` to the `0x0020` to `0x007E` Unicode code points)\n\n* Authors **must not** use `CESU-8`, `UTF-7`, `BOCU-1` and/or `SCSU` as [cross-site scripting](https://developer.mozilla.org/en-US/docs/Glossary/Cross-site_scripting) attacks with these encodings have been demonstrated.\n* Authors should not use `UTF-32` because not all HTML5 encoding algorithms can distinguish it from `UTF-16`.\n\n**Notes:**\n\n* The declared character encoding must match the one the page was saved with to avoid garbled characters and security holes.\n* The [`<meta>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta "The HTML <meta> element represents metadata that cannot be represented by other HTML meta-related elements, like <base>, <link>, <script>, <style> or <title>.") element declaring the encoding must be inside the [`<head>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/head "The HTML <head> element provides general information (metadata) about the document, including its title and links to its scripts and style sheets.") element and **within the first 1024 bytes** of the HTML as some browsers only look at those bytes before choosing an encoding.\n* This [`<meta>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta "The HTML <meta> element represents metadata that cannot be represented by other HTML meta-related elements, like <base>, <link>, <script>, <style> or <title>.") element is only one part of the [algorithm to determine a page\'s character set](https://www.whatwg.org/specs/web-apps/current-work/multipage/parsing.html#encoding-sniffing-algorithm "Algorithm charset page"). The [`Content-Type` header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type) and any [Byte-Order Marks](https://developer.mozilla.org/en-US/docs/Glossary/Byte-Order_Mark "The definition of that term (Byte-Order Marks) has not been written yet; please consider contributing it!") override this element.\n* It is strongly recommended to define the character encoding. If a page\'s encoding is undefined, cross-scripting techniques are possible, such as the [`UTF-7` fallback cross-scripting technique](https://code.google.com/p/doctype-mirror/wiki/ArticleUtf7).\n* The [`<meta>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta "The HTML <meta> element represents metadata that cannot be represented by other HTML meta-related elements, like <base>, <link>, <script>, <style> or <title>.") element with a `charset` attribute is a synonym for the pre-HTML5 `<meta http-equiv="Content-Type" content="text/html; charset=_IANAcharset_">`, where _`IANAcharset`_ contains the value of the equivalent [`charset`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-charset) attribute. This syntax is still allowed, although no longer recommended.'}},{name:"scheme",description:"This attribute defines the scheme in which metadata is described. A scheme is a context leading to the correct interpretations of the [`content`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-content) value, like a format.\n\n**Warning:** Do not use this value, as it is obsolete. There is no replacement as there was no real usage for it."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/meta"}]},{name:"style",description:{kind:"markdown",value:"The style element allows authors to embed style information in their documents. The style element is one of several inputs to the styling processing model. The element does not represent content for the user."},attributes:[{name:"media",description:{kind:"markdown",value:"This attribute defines which media the style should be applied to. Its value is a [media query](https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Media_queries), which defaults to `all` if the attribute is missing."}},{name:"nonce",description:{kind:"markdown",value:"A cryptographic nonce (number used once) used to whitelist inline styles in a [style-src Content-Security-Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/style-src). The server must generate a unique nonce value each time it transmits a policy. It is critical to provide a nonce that cannot be guessed as bypassing a resource’s policy is otherwise trivial."}},{name:"type",description:{kind:"markdown",value:"This attribute defines the styling language as a MIME type (charset should not be specified). This attribute is optional and defaults to `text/css` if it is not specified — there is very little reason to include this in modern web documents."}},{name:"scoped",valueSet:"v"},{name:"title",description:"This attribute specifies [alternative style sheet](https://developer.mozilla.org/en-US/docs/Web/CSS/Alternative_style_sheets) sets."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/style"}]},{name:"body",description:{kind:"markdown",value:"The body element represents the content of the document."},attributes:[{name:"onafterprint",description:{kind:"markdown",value:"Function to call after the user has printed the document."}},{name:"onbeforeprint",description:{kind:"markdown",value:"Function to call when the user requests printing of the document."}},{name:"onbeforeunload",description:{kind:"markdown",value:"Function to call when the document is about to be unloaded."}},{name:"onhashchange",description:{kind:"markdown",value:"Function to call when the fragment identifier part (starting with the hash (`'#'`) character) of the document's current address has changed."}},{name:"onlanguagechange",description:{kind:"markdown",value:"Function to call when the preferred languages changed."}},{name:"onmessage",description:{kind:"markdown",value:"Function to call when the document has received a message."}},{name:"onoffline",description:{kind:"markdown",value:"Function to call when network communication has failed."}},{name:"ononline",description:{kind:"markdown",value:"Function to call when network communication has been restored."}},{name:"onpagehide"},{name:"onpageshow"},{name:"onpopstate",description:{kind:"markdown",value:"Function to call when the user has navigated session history."}},{name:"onstorage",description:{kind:"markdown",value:"Function to call when the storage area has changed."}},{name:"onunload",description:{kind:"markdown",value:"Function to call when the document is going away."}},{name:"alink",description:'Color of text for hyperlinks when selected. _This method is non-conforming, use CSS [`color`](https://developer.mozilla.org/en-US/docs/Web/CSS/color "The color CSS property sets the foreground color value of an element\'s text and text decorations, and sets the currentcolor value.") property in conjunction with the [`:active`](https://developer.mozilla.org/en-US/docs/Web/CSS/:active "The :active CSS pseudo-class represents an element (such as a button) that is being activated by the user.") pseudo-class instead._'},{name:"background",description:'URI of a image to use as a background. _This method is non-conforming, use CSS [`background`](https://developer.mozilla.org/en-US/docs/Web/CSS/background "The background shorthand CSS property sets all background style properties at once, such as color, image, origin and size, or repeat method.") property on the element instead._'},{name:"bgcolor",description:'Background color for the document. _This method is non-conforming, use CSS [`background-color`](https://developer.mozilla.org/en-US/docs/Web/CSS/background-color "The background-color CSS property sets the background color of an element.") property on the element instead._'},{name:"bottommargin",description:'The margin of the bottom of the body. _This method is non-conforming, use CSS [`margin-bottom`](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-bottom "The margin-bottom CSS property sets the margin area on the bottom of an element. A positive value places it farther from its neighbors, while a negative value places it closer.") property on the element instead._'},{name:"leftmargin",description:'The margin of the left of the body. _This method is non-conforming, use CSS [`margin-left`](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-left "The margin-left CSS property sets the margin area on the left side of an element. A positive value places it farther from its neighbors, while a negative value places it closer.") property on the element instead._'},{name:"link",description:'Color of text for unvisited hypertext links. _This method is non-conforming, use CSS [`color`](https://developer.mozilla.org/en-US/docs/Web/CSS/color "The color CSS property sets the foreground color value of an element\'s text and text decorations, and sets the currentcolor value.") property in conjunction with the [`:link`](https://developer.mozilla.org/en-US/docs/Web/CSS/:link "The :link CSS pseudo-class represents an element that has not yet been visited. It matches every unvisited <a>, <area>, or <link> element that has an href attribute.") pseudo-class instead._'},{name:"onblur",description:"Function to call when the document loses focus."},{name:"onerror",description:"Function to call when the document fails to load properly."},{name:"onfocus",description:"Function to call when the document receives focus."},{name:"onload",description:"Function to call when the document has finished loading."},{name:"onredo",description:"Function to call when the user has moved forward in undo transaction history."},{name:"onresize",description:"Function to call when the document has been resized."},{name:"onundo",description:"Function to call when the user has moved backward in undo transaction history."},{name:"rightmargin",description:'The margin of the right of the body. _This method is non-conforming, use CSS [`margin-right`](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-right "The margin-right CSS property sets the margin area on the right side of an element. A positive value places it farther from its neighbors, while a negative value places it closer.") property on the element instead._'},{name:"text",description:'Foreground color of text. _This method is non-conforming, use CSS [`color`](https://developer.mozilla.org/en-US/docs/Web/CSS/color "The color CSS property sets the foreground color value of an element\'s text and text decorations, and sets the currentcolor value.") property on the element instead._'},{name:"topmargin",description:'The margin of the top of the body. _This method is non-conforming, use CSS [`margin-top`](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-top "The margin-top CSS property sets the margin area on the top of an element. A positive value places it farther from its neighbors, while a negative value places it closer.") property on the element instead._'},{name:"vlink",description:'Color of text for visited hypertext links. _This method is non-conforming, use CSS [`color`](https://developer.mozilla.org/en-US/docs/Web/CSS/color "The color CSS property sets the foreground color value of an element\'s text and text decorations, and sets the currentcolor value.") property in conjunction with the [`:visited`](https://developer.mozilla.org/en-US/docs/Web/CSS/:visited "The :visited CSS pseudo-class represents links that the user has already visited. For privacy reasons, the styles that can be modified using this selector are very limited.") pseudo-class instead._'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/body"}]},{name:"article",description:{kind:"markdown",value:"The article element represents a complete, or self-contained, composition in a document, page, application, or site and that is, in principle, independently distributable or reusable, e.g. in syndication. This could be a forum post, a magazine or newspaper article, a blog entry, a user-submitted comment, an interactive widget or gadget, or any other independent item of content. Each article should be identified, typically by including a heading (h1–h6 element) as a child of the article element."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/article"}]},{name:"section",description:{kind:"markdown",value:"The section element represents a generic section of a document or application. A section, in this context, is a thematic grouping of content. Each section should be identified, typically by including a heading ( h1- h6 element) as a child of the section element."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/section"}]},{name:"nav",description:{kind:"markdown",value:"The nav element represents a section of a page that links to other pages or to parts within the page: a section with navigation links."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/nav"}]},{name:"aside",description:{kind:"markdown",value:"The aside element represents a section of a page that consists of content that is tangentially related to the content around the aside element, and which could be considered separate from that content. Such sections are often represented as sidebars in printed typography."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/aside"}]},{name:"h1",description:{kind:"markdown",value:"The h1 element represents a section heading."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/Heading_Elements"}]},{name:"h2",description:{kind:"markdown",value:"The h2 element represents a section heading."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/Heading_Elements"}]},{name:"h3",description:{kind:"markdown",value:"The h3 element represents a section heading."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/Heading_Elements"}]},{name:"h4",description:{kind:"markdown",value:"The h4 element represents a section heading."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/Heading_Elements"}]},{name:"h5",description:{kind:"markdown",value:"The h5 element represents a section heading."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/Heading_Elements"}]},{name:"h6",description:{kind:"markdown",value:"The h6 element represents a section heading."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/Heading_Elements"}]},{name:"header",description:{kind:"markdown",value:"The header element represents introductory content for its nearest ancestor sectioning content or sectioning root element. A header typically contains a group of introductory or navigational aids. When the nearest ancestor sectioning content or sectioning root element is the body element, then it applies to the whole page."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/header"}]},{name:"footer",description:{kind:"markdown",value:"The footer element represents a footer for its nearest ancestor sectioning content or sectioning root element. A footer typically contains information about its section such as who wrote it, links to related documents, copyright data, and the like."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/footer"}]},{name:"address",description:{kind:"markdown",value:"The address element represents the contact information for its nearest article or body element ancestor. If that is the body element, then the contact information applies to the document as a whole."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/address"}]},{name:"p",description:{kind:"markdown",value:"The p element represents a paragraph."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/p"}]},{name:"hr",description:{kind:"markdown",value:"The hr element represents a paragraph-level thematic break, e.g. a scene change in a story, or a transition to another topic within a section of a reference book."},attributes:[{name:"align",description:"Sets the alignment of the rule on the page. If no value is specified, the default value is `left`."},{name:"color",description:"Sets the color of the rule through color name or hexadecimal value."},{name:"noshade",description:"Sets the rule to have no shading."},{name:"size",description:"Sets the height, in pixels, of the rule."},{name:"width",description:"Sets the length of the rule on the page through a pixel or percentage value."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/hr"}]},{name:"pre",description:{kind:"markdown",value:"The pre element represents a block of preformatted text, in which structure is represented by typographic conventions rather than by elements."},attributes:[{name:"cols",description:'Contains the _preferred_ count of characters that a line should have. It was a non-standard synonym of [`width`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/pre#attr-width). To achieve such an effect, use CSS [`width`](https://developer.mozilla.org/en-US/docs/Web/CSS/width "The width CSS property sets an element\'s width. By default it sets the width of the content area, but if box-sizing is set to border-box, it sets the width of the border area.") instead.'},{name:"width",description:'Contains the _preferred_ count of characters that a line should have. Though technically still implemented, this attribute has no visual effect; to achieve such an effect, use CSS [`width`](https://developer.mozilla.org/en-US/docs/Web/CSS/width "The width CSS property sets an element\'s width. By default it sets the width of the content area, but if box-sizing is set to border-box, it sets the width of the border area.") instead.'},{name:"wrap",description:'Is a _hint_ indicating how the overflow must happen. In modern browser this hint is ignored and no visual effect results in its present; to achieve such an effect, use CSS [`white-space`](https://developer.mozilla.org/en-US/docs/Web/CSS/white-space "The white-space CSS property sets how white space inside an element is handled.") instead.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/pre"}]},{name:"blockquote",description:{kind:"markdown",value:"The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a footer or cite element, and optionally with in-line changes such as annotations and abbreviations."},attributes:[{name:"cite",description:{kind:"markdown",value:"A URL that designates a source document or message for the information quoted. This attribute is intended to point to information explaining the context or the reference for the quote."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/blockquote"}]},{name:"ol",description:{kind:"markdown",value:"The ol element represents a list of items, where the items have been intentionally ordered, such that changing the order would change the meaning of the document."},attributes:[{name:"reversed",valueSet:"v",description:{kind:"markdown",value:"This Boolean attribute specifies that the items of the list are specified in reversed order."}},{name:"start",description:{kind:"markdown",value:'This integer attribute specifies the start value for numbering the individual list items. Although the ordering type of list elements might be Roman numerals, such as XXXI, or letters, the value of start is always represented as a number. To start numbering elements from the letter "C", use `<ol start="3">`.\n\n**Note**: This attribute was deprecated in HTML4, but reintroduced in HTML5.'}},{name:"type",valueSet:"lt",description:{kind:"markdown",value:"Indicates the numbering type:\n\n* `'a'` indicates lowercase letters,\n* `'A'` indicates uppercase letters,\n* `'i'` indicates lowercase Roman numerals,\n* `'I'` indicates uppercase Roman numerals,\n* and `'1'` indicates numbers (default).\n\nThe type set is used for the entire list unless a different [`type`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/li#attr-type) attribute is used within an enclosed [`<li>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/li \"The HTML <li> element is used to represent an item in a list. It must be contained in a parent element: an ordered list (<ol>), an unordered list (<ul>), or a menu (<menu>). In menus and unordered lists, list items are usually displayed using bullet points. In ordered lists, they are usually displayed with an ascending counter on the left, such as a number or letter.\") element.\n\n**Note:** This attribute was deprecated in HTML4, but reintroduced in HTML5.\n\nUnless the value of the list number matters (e.g. in legal or technical documents where items are to be referenced by their number/letter), the CSS [`list-style-type`](https://developer.mozilla.org/en-US/docs/Web/CSS/list-style-type \"The list-style-type CSS property sets the marker (such as a disc, character, or custom counter style) of a list item element.\") property should be used instead."}},{name:"compact",description:'This Boolean attribute hints that the list should be rendered in a compact style. The interpretation of this attribute depends on the user agent and it doesn\'t work in all browsers.\n\n**Warning:** Do not use this attribute, as it has been deprecated: the [`<ol>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ol "The HTML <ol> element represents an ordered list of items, typically rendered as a numbered list.") element should be styled using [CSS](https://developer.mozilla.org/en-US/docs/CSS). To give an effect similar to the `compact` attribute, the [CSS](https://developer.mozilla.org/en-US/docs/CSS) property [`line-height`](https://developer.mozilla.org/en-US/docs/Web/CSS/line-height "The line-height CSS property sets the amount of space used for lines, such as in text. On block-level elements, it specifies the minimum height of line boxes within the element. On non-replaced inline elements, it specifies the height that is used to calculate line box height.") can be used with a value of `80%`.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/ol"}]},{name:"ul",description:{kind:"markdown",value:"The ul element represents a list of items, where the order of the items is not important — that is, where changing the order would not materially change the meaning of the document."},attributes:[{name:"compact",description:'This Boolean attribute hints that the list should be rendered in a compact style. The interpretation of this attribute depends on the user agent and it doesn\'t work in all browsers.\n\n**Usage note: **Do not use this attribute, as it has been deprecated: the [`<ul>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ul "The HTML <ul> element represents an unordered list of items, typically rendered as a bulleted list.") element should be styled using [CSS](https://developer.mozilla.org/en-US/docs/CSS). To give a similar effect as the `compact` attribute, the [CSS](https://developer.mozilla.org/en-US/docs/CSS) property [line-height](https://developer.mozilla.org/en-US/docs/CSS/line-height) can be used with a value of `80%`.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/ul"}]},{name:"li",description:{kind:"markdown",value:"The li element represents a list item. If its parent element is an ol, ul, or menu element, then the element is an item of the parent element's list, as defined for those elements. Otherwise, the list item has no defined list-related relationship to any other li element."},attributes:[{name:"value",description:{kind:"markdown",value:'This integer attribute indicates the current ordinal value of the list item as defined by the [`<ol>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ol "The HTML <ol> element represents an ordered list of items, typically rendered as a numbered list.") element. The only allowed value for this attribute is a number, even if the list is displayed with Roman numerals or letters. List items that follow this one continue numbering from the value set. The **value** attribute has no meaning for unordered lists ([`<ul>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ul "The HTML <ul> element represents an unordered list of items, typically rendered as a bulleted list.")) or for menus ([`<menu>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/menu "The HTML <menu> element represents a group of commands that a user can perform or activate. This includes both list menus, which might appear across the top of a screen, as well as context menus, such as those that might appear underneath a button after it has been clicked.")).\n\n**Note**: This attribute was deprecated in HTML4, but reintroduced in HTML5.\n\n**Note:** Prior to Gecko 9.0, negative values were incorrectly converted to 0. Starting in Gecko 9.0 all integer values are correctly parsed.'}},{name:"type",description:'This character attribute indicates the numbering type:\n\n* `a`: lowercase letters\n* `A`: uppercase letters\n* `i`: lowercase Roman numerals\n* `I`: uppercase Roman numerals\n* `1`: numbers\n\nThis type overrides the one used by its parent [`<ol>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ol "The HTML <ol> element represents an ordered list of items, typically rendered as a numbered list.") element, if any.\n\n**Usage note:** This attribute has been deprecated: use the CSS [`list-style-type`](https://developer.mozilla.org/en-US/docs/Web/CSS/list-style-type "The list-style-type CSS property sets the marker (such as a disc, character, or custom counter style) of a list item element.") property instead.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/li"}]},{name:"dl",description:{kind:"markdown",value:"The dl element represents an association list consisting of zero or more name-value groups (a description list). A name-value group consists of one or more names (dt elements) followed by one or more values (dd elements), ignoring any nodes other than dt and dd elements. Within a single dl element, there should not be more than one dt element for each name."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/dl"}]},{name:"dt",description:{kind:"markdown",value:"The dt element represents the term, or name, part of a term-description group in a description list (dl element)."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/dt"}]},{name:"dd",description:{kind:"markdown",value:"The dd element represents the description, definition, or value, part of a term-description group in a description list (dl element)."},attributes:[{name:"nowrap",description:"If the value of this attribute is set to `yes`, the definition text will not wrap. The default value is `no`."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/dd"}]},{name:"figure",description:{kind:"markdown",value:"The figure element represents some flow content, optionally with a caption, that is self-contained (like a complete sentence) and is typically referenced as a single unit from the main flow of the document."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/figure"}]},{name:"figcaption",description:{kind:"markdown",value:"The figcaption element represents a caption or legend for the rest of the contents of the figcaption element's parent figure element, if any."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/figcaption"}]},{name:"main",description:{kind:"markdown",value:"The main element represents the main content of the body of a document or application. The main content area consists of content that is directly related to or expands upon the central topic of a document or central functionality of an application."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/main"}]},{name:"div",description:{kind:"markdown",value:"The div element has no special meaning at all. It represents its children. It can be used with the class, lang, and title attributes to mark up semantics common to a group of consecutive elements."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/div"}]},{name:"a",description:{kind:"markdown",value:"If the a element has an href attribute, then it represents a hyperlink (a hypertext anchor) labeled by its contents."},attributes:[{name:"href",description:{kind:"markdown",value:"Contains a URL or a URL fragment that the hyperlink points to."}},{name:"target",description:{kind:"markdown",value:'Specifies where to display the linked URL. It is a name of, or keyword for, a _browsing context_: a tab, window, or `<iframe>`. The following keywords have special meanings:\n\n* `_self`: Load the URL into the same browsing context as the current one. This is the default behavior.\n* `_blank`: Load the URL into a new browsing context. This is usually a tab, but users can configure browsers to use new windows instead.\n* `_parent`: Load the URL into the parent browsing context of the current one. If there is no parent, this behaves the same way as `_self`.\n* `_top`: Load the URL into the top-level browsing context (that is, the "highest" browsing context that is an ancestor of the current one, and has no parent). If there is no parent, this behaves the same way as `_self`.\n\n**Note:** When using `target`, consider adding `rel="noreferrer"` to avoid exploitation of the `window.opener` API.\n\n**Note:** Linking to another page using `target="_blank"` will run the new page on the same process as your page. If the new page is executing expensive JS, your page\'s performance may suffer. To avoid this use `rel="noopener"`.'}},{name:"download",description:{kind:"markdown",value:"This attribute instructs browsers to download a URL instead of navigating to it, so the user will be prompted to save it as a local file. If the attribute has a value, it is used as the pre-filled file name in the Save prompt (the user can still change the file name if they want). There are no restrictions on allowed values, though `/` and `\\` are converted to underscores. Most file systems limit some punctuation in file names, and browsers will adjust the suggested name accordingly.\n\n**Notes:**\n\n* This attribute only works for [same-origin URLs](https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy).\n* Although HTTP(s) URLs need to be in the same-origin, [`blob:` URLs](https://developer.mozilla.org/en-US/docs/Web/API/URL.createObjectURL) and [`data:` URLs](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs) are allowed so that content generated by JavaScript, such as pictures created in an image-editor Web app, can be downloaded.\n* If the HTTP header [`Content-Disposition:`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition) gives a different filename than this attribute, the HTTP header takes priority over this attribute.\n* If `Content-Disposition:` is set to `inline`, Firefox prioritizes `Content-Disposition`, like the filename case, while Chrome prioritizes the `download` attribute."}},{name:"ping",description:{kind:"markdown",value:'Contains a space-separated list of URLs to which, when the hyperlink is followed, [`POST`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST "The HTTP POST method sends data to the server. The type of the body of the request is indicated by the Content-Type header.") requests with the body `PING` will be sent by the browser (in the background). Typically used for tracking.'}},{name:"rel",description:{kind:"markdown",value:"Specifies the relationship of the target object to the link object. The value is a space-separated list of [link types](https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types)."}},{name:"hreflang",description:{kind:"markdown",value:'This attribute indicates the human language of the linked resource. It is purely advisory, with no built-in functionality. Allowed values are determined by [BCP47](https://www.ietf.org/rfc/bcp/bcp47.txt "Tags for Identifying Languages").'}},{name:"type",description:{kind:"markdown",value:'Specifies the media type in the form of a [MIME type](https://developer.mozilla.org/en-US/docs/Glossary/MIME_type "MIME type: A MIME type (now properly called "media type", but also sometimes "content type") is a string sent along with a file indicating the type of the file (describing the content format, for example, a sound file might be labeled audio/ogg, or an image file image/png).") for the linked URL. It is purely advisory, with no built-in functionality.'}},{name:"referrerpolicy",description:"Indicates which [referrer](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer) to send when fetching the URL:\n\n* `'no-referrer'` means the `Referer:` header will not be sent.\n* `'no-referrer-when-downgrade'` means no `Referer:` header will be sent when navigating to an origin without HTTPS. This is the default behavior.\n* `'origin'` means the referrer will be the [origin](https://developer.mozilla.org/en-US/docs/Glossary/Origin) of the page, not including information after the domain.\n* `'origin-when-cross-origin'` meaning that navigations to other origins will be limited to the scheme, the host and the port, while navigations on the same origin will include the referrer's path.\n* `'strict-origin-when-cross-origin'`\n* `'unsafe-url'` means the referrer will include the origin and path, but not the fragment, password, or username. This is unsafe because it can leak data from secure URLs to insecure ones."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/a"}]},{name:"em",description:{kind:"markdown",value:"The em element represents stress emphasis of its contents."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/em"}]},{name:"strong",description:{kind:"markdown",value:"The strong element represents strong importance, seriousness, or urgency for its contents."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/strong"}]},{name:"small",description:{kind:"markdown",value:"The small element represents side comments such as small print."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/small"}]},{name:"s",description:{kind:"markdown",value:"The s element represents contents that are no longer accurate or no longer relevant."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/s"}]},{name:"cite",description:{kind:"markdown",value:"The cite element represents a reference to a creative work. It must include the title of the work or the name of the author(person, people or organization) or an URL reference, or a reference in abbreviated form as per the conventions used for the addition of citation metadata."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/cite"}]},{name:"q",description:{kind:"markdown",value:"The q element represents some phrasing content quoted from another source."},attributes:[{name:"cite",description:{kind:"markdown",value:"The value of this attribute is a URL that designates a source document or message for the information quoted. This attribute is intended to point to information explaining the context or the reference for the quote."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/q"}]},{name:"dfn",description:{kind:"markdown",value:"The dfn element represents the defining instance of a term. The paragraph, description list group, or section that is the nearest ancestor of the dfn element must also contain the definition(s) for the term given by the dfn element."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/dfn"}]},{name:"abbr",description:{kind:"markdown",value:"The abbr element represents an abbreviation or acronym, optionally with its expansion. The title attribute may be used to provide an expansion of the abbreviation. The attribute, if specified, must contain an expansion of the abbreviation, and nothing else."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/abbr"}]},{name:"ruby",description:{kind:"markdown",value:"The ruby element allows one or more spans of phrasing content to be marked with ruby annotations. Ruby annotations are short runs of text presented alongside base text, primarily used in East Asian typography as a guide for pronunciation or to include other annotations. In Japanese, this form of typography is also known as furigana. Ruby text can appear on either side, and sometimes both sides, of the base text, and it is possible to control its position using CSS. A more complete introduction to ruby can be found in the Use Cases & Exploratory Approaches for Ruby Markup document as well as in CSS Ruby Module Level 1. [RUBY-UC] [CSSRUBY]"},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/ruby"}]},{name:"rb",description:{kind:"markdown",value:"The rb element marks the base text component of a ruby annotation. When it is the child of a ruby element, it doesn't represent anything itself, but its parent ruby element uses it as part of determining what it represents."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/rb"}]},{name:"rt",description:{kind:"markdown",value:"The rt element marks the ruby text component of a ruby annotation. When it is the child of a ruby element or of an rtc element that is itself the child of a ruby element, it doesn't represent anything itself, but its ancestor ruby element uses it as part of determining what it represents."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/rt"}]},{name:"rp",description:{kind:"markdown",value:"The rp element is used to provide fallback text to be shown by user agents that don't support ruby annotations. One widespread convention is to provide parentheses around the ruby text component of a ruby annotation."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/rp"}]},{name:"time",description:{kind:"markdown",value:"The time element represents its contents, along with a machine-readable form of those contents in the datetime attribute. The kind of content is limited to various kinds of dates, times, time-zone offsets, and durations, as described below."},attributes:[{name:"datetime",description:{kind:"markdown",value:"This attribute indicates the time and/or date of the element and must be in one of the formats described below."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/time"}]},{name:"code",description:{kind:"markdown",value:"The code element represents a fragment of computer code. This could be an XML element name, a file name, a computer program, or any other string that a computer would recognize."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/code"}]},{name:"var",description:{kind:"markdown",value:"The var element represents a variable. This could be an actual variable in a mathematical expression or programming context, an identifier representing a constant, a symbol identifying a physical quantity, a function parameter, or just be a term used as a placeholder in prose."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/var"}]},{name:"samp",description:{kind:"markdown",value:"The samp element represents sample or quoted output from another program or computing system."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/samp"}]},{name:"kbd",description:{kind:"markdown",value:"The kbd element represents user input (typically keyboard input, although it may also be used to represent other input, such as voice commands)."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/kbd"}]},{name:"sub",description:{kind:"markdown",value:"The sub element represents a subscript."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/sub"}]},{name:"sup",description:{kind:"markdown",value:"The sup element represents a superscript."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/sup"}]},{name:"i",description:{kind:"markdown",value:"The i element represents a span of text in an alternate voice or mood, or otherwise offset from the normal prose in a manner indicating a different quality of text, such as a taxonomic designation, a technical term, an idiomatic phrase from another language, transliteration, a thought, or a ship name in Western texts."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/i"}]},{name:"b",description:{kind:"markdown",value:"The b element represents a span of text to which attention is being drawn for utilitarian purposes without conveying any extra importance and with no implication of an alternate voice or mood, such as key words in a document abstract, product names in a review, actionable words in interactive text-driven software, or an article lede."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/b"}]},{name:"u",description:{kind:"markdown",value:"The u element represents a span of text with an unarticulated, though explicitly rendered, non-textual annotation, such as labeling the text as being a proper name in Chinese text (a Chinese proper name mark), or labeling the text as being misspelt."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/u"}]},{name:"mark",description:{kind:"markdown",value:"The mark element represents a run of text in one document marked or highlighted for reference purposes, due to its relevance in another context. When used in a quotation or other block of text referred to from the prose, it indicates a highlight that was not originally present but which has been added to bring the reader's attention to a part of the text that might not have been considered important by the original author when the block was originally written, but which is now under previously unexpected scrutiny. When used in the main prose of a document, it indicates a part of the document that has been highlighted due to its likely relevance to the user's current activity."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/mark"}]},{name:"bdi",description:{kind:"markdown",value:"The bdi element represents a span of text that is to be isolated from its surroundings for the purposes of bidirectional text formatting. [BIDI]"},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/bdi"}]},{name:"bdo",description:{kind:"markdown",value:"The bdo element represents explicit text directionality formatting control for its children. It allows authors to override the Unicode bidirectional algorithm by explicitly specifying a direction override. [BIDI]"},attributes:[{name:"dir",description:"The direction in which text should be rendered in this element's contents. Possible values are:\n\n* `ltr`: Indicates that the text should go in a left-to-right direction.\n* `rtl`: Indicates that the text should go in a right-to-left direction."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/bdo"}]},{name:"span",description:{kind:"markdown",value:"The span element doesn't mean anything on its own, but can be useful when used together with the global attributes, e.g. class, lang, or dir. It represents its children."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/span"}]},{name:"br",description:{kind:"markdown",value:"The br element represents a line break."},attributes:[{name:"clear",description:"Indicates where to begin the next line after the break."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/br"}]},{name:"wbr",description:{kind:"markdown",value:"The wbr element represents a line break opportunity."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/wbr"}]},{name:"ins",description:{kind:"markdown",value:"The ins element represents an addition to the document."},attributes:[{name:"cite",description:"This attribute defines the URI of a resource that explains the change, such as a link to meeting minutes or a ticket in a troubleshooting system."},{name:"datetime",description:'This attribute indicates the time and date of the change and must be a valid date with an optional time string. If the value cannot be parsed as a date with an optional time string, the element does not have an associated time stamp. For the format of the string without a time, see [Format of a valid date string](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats#Format_of_a_valid_date_string "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article.") in [Date and time formats used in HTML](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article."). The format of the string if it includes both date and time is covered in [Format of a valid local date and time string](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats#Format_of_a_valid_local_date_and_time_string "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article.") in [Date and time formats used in HTML](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article.").'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/ins"}]},{name:"del",description:{kind:"markdown",value:"The del element represents a removal from the document."},attributes:[{name:"cite",description:{kind:"markdown",value:"A URI for a resource that explains the change (for example, meeting minutes)."}},{name:"datetime",description:{kind:"markdown",value:'This attribute indicates the time and date of the change and must be a valid date string with an optional time. If the value cannot be parsed as a date with an optional time string, the element does not have an associated time stamp. For the format of the string without a time, see [Format of a valid date string](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats#Format_of_a_valid_date_string "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article.") in [Date and time formats used in HTML](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article."). The format of the string if it includes both date and time is covered in [Format of a valid local date and time string](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats#Format_of_a_valid_local_date_and_time_string "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article.") in [Date and time formats used in HTML](https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats "Certain HTML elements use date and/or time values. The formats of the strings that specify these are described in this article.").'}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/del"}]},{name:"picture",description:{kind:"markdown",value:"The picture element is a container which provides multiple sources to its contained img element to allow authors to declaratively control or give hints to the user agent about which image resource to use, based on the screen pixel density, viewport size, image format, and other factors. It represents its children."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/picture"}]},{name:"img",description:{kind:"markdown",value:"An img element represents an image."},attributes:[{name:"alt",description:{kind:"markdown",value:'This attribute defines an alternative text description of the image.\n\n**Note:** Browsers do not always display the image referenced by the element. This is the case for non-graphical browsers (including those used by people with visual impairments), if the user chooses not to display images, or if the browser cannot display the image because it is invalid or an [unsupported type](#Supported_image_formats). In these cases, the browser may replace the image with the text defined in this element\'s `alt` attribute. You should, for these reasons and others, provide a useful value for `alt` whenever possible.\n\n**Note:** Omitting this attribute altogether indicates that the image is a key part of the content, and no textual equivalent is available. Setting this attribute to an empty string (`alt=""`) indicates that this image is _not_ a key part of the content (decorative), and that non-visual browsers may omit it from rendering.'}},{name:"src",description:{kind:"markdown",value:"The image URL. This attribute is mandatory for the `<img>` element. On browsers supporting `srcset`, `src` is treated like a candidate image with a pixel density descriptor `1x` unless an image with this pixel density descriptor is already defined in `srcset,` or unless `srcset` contains '`w`' descriptors."}},{name:"srcset",description:{kind:"markdown",value:"A list of one or more strings separated by commas indicating a set of possible image sources for the user agent to use. Each string is composed of:\n\n1. a URL to an image,\n2. optionally, whitespace followed by one of:\n * A width descriptor, or a positive integer directly followed by '`w`'. The width descriptor is divided by the source size given in the `sizes` attribute to calculate the effective pixel density.\n * A pixel density descriptor, which is a positive floating point number directly followed by '`x`'.\n\nIf no descriptor is specified, the source is assigned the default descriptor: `1x`.\n\nIt is incorrect to mix width descriptors and pixel density descriptors in the same `srcset` attribute. Duplicate descriptors (for instance, two sources in the same `srcset` which are both described with '`2x`') are also invalid.\n\nThe user agent selects any one of the available sources at its discretion. This provides them with significant leeway to tailor their selection based on things like user preferences or bandwidth conditions. See our [Responsive images](https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images) tutorial for an example."}},{name:"crossorigin",valueSet:"xo",description:{kind:"markdown",value:'This enumerated attribute indicates if the fetching of the related image must be done using CORS or not. [CORS-enabled images](https://developer.mozilla.org/en-US/docs/CORS_Enabled_Image) can be reused in the [`<canvas>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas "Use the HTML <canvas> element with either the canvas scripting API or the WebGL API to draw graphics and animations.") element without being "[tainted](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image#What_is_a_tainted_canvas)." The allowed values are:'}},{name:"usemap",description:{kind:"markdown",value:'The partial URL (starting with \'#\') of an [image map](https://developer.mozilla.org/en-US/docs/HTML/Element/map) associated with the element.\n\n**Note:** You cannot use this attribute if the `<img>` element is a descendant of an [`<a>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a "The HTML <a> element (or anchor element) creates a hyperlink to other web pages, files, locations within the same page, email addresses, or any other URL.") or [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") element.'}},{name:"ismap",valueSet:"v",description:{kind:"markdown",value:'This Boolean attribute indicates that the image is part of a server-side map. If so, the precise coordinates of a click are sent to the server.\n\n**Note:** This attribute is allowed only if the `<img>` element is a descendant of an [`<a>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a "The HTML <a> element (or anchor element) creates a hyperlink to other web pages, files, locations within the same page, email addresses, or any other URL.") element with a valid [`href`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href) attribute.'}},{name:"width",description:{kind:"markdown",value:"The intrinsic width of the image in pixels."}},{name:"height",description:{kind:"markdown",value:"The intrinsic height of the image in pixels."}},{name:"decoding",description:"Provides an image decoding hint to the browser. The allowed values are:"},{name:"decoding",description:"`sync`\n\nDecode the image synchronously for atomic presentation with other content.\n\n`async`\n\nDecode the image asynchronously to reduce delay in presenting other content.\n\n`auto`\n\nDefault mode, which indicates no preference for the decoding mode. The browser decides what is best for the user."},{name:"importance",description:"Indicates the relative importance of the resource. Priority hints are delegated using the values:"},{name:"importance",description:"`auto`: Indicates **no preference**. The browser may use its own heuristics to decide the priority of the image.\n\n`high`: Indicates to the browser that the image is of **high** priority.\n\n`low`: Indicates to the browser that the image is of **low** priority."},{name:"intrinsicsize",description:"This attribute tells the browser to ignore the actual intrinsic size of the image and pretend it’s the size specified in the attribute. Specifically, the image would raster at these dimensions and `naturalWidth`/`naturalHeight` on images would return the values specified in this attribute. [Explainer](https://github.com/ojanvafai/intrinsicsize-attribute), [examples](https://googlechrome.github.io/samples/intrinsic-size/index.html)"},{name:"referrerpolicy",description:"A string indicating which referrer to use when fetching the resource:\n\n* `no-referrer:` The [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer \"The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.\") header will not be sent.\n* `no-referrer-when-downgrade:` No `Referer` header will be sent when navigating to an origin without TLS (HTTPS). This is a user agent’s default behavior if no policy is otherwise specified.\n* `origin:` The `Referer` header will include the page of origin's scheme, the host, and the port.\n* `origin-when-cross-origin:` Navigating to other origins will limit the included referral data to the scheme, the host and the port, while navigating from the same origin will include the referrer's full path.\n* `unsafe-url:` The `Referer` header will include the origin and the path, but not the fragment, password, or username. This case is unsafe because it can leak origins and paths from TLS-protected resources to insecure origins."},{name:"sizes",description:"A list of one or more strings separated by commas indicating a set of source sizes. Each source size consists of:\n\n1. a media condition. This must be omitted for the last item.\n2. a source size value.\n\nSource size values specify the intended display size of the image. User agents use the current source size to select one of the sources supplied by the `srcset` attribute, when those sources are described using width ('`w`') descriptors. The selected source size affects the intrinsic size of the image (the image’s display size if no CSS styling is applied). If the `srcset` attribute is absent, or contains no values with a width (`w`) descriptor, then the `sizes` attribute has no effect."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/img"}]},{name:"iframe",description:{kind:"markdown",value:"The iframe element represents a nested browsing context."},attributes:[{name:"src",description:{kind:"markdown",value:'The URL of the page to embed. Use a value of `about:blank` to embed an empty page that conforms to the [same-origin policy](https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy#Inherited_origins). Also note that programatically removing an `<iframe>`\'s src attribute (e.g. via [`Element.removeAttribute()`](https://developer.mozilla.org/en-US/docs/Web/API/Element/removeAttribute "The Element method removeAttribute() removes the attribute with the specified name from the element.")) causes `about:blank` to be loaded in the frame in Firefox (from version 65), Chromium-based browsers, and Safari/iOS.'}},{name:"srcdoc",description:{kind:"markdown",value:"Inline HTML to embed, overriding the `src` attribute. If a browser does not support the `srcdoc` attribute, it will fall back to the URL in the `src` attribute."}},{name:"name",description:{kind:"markdown",value:'A targetable name for the embedded browsing context. This can be used in the `target` attribute of the [`<a>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a "The HTML <a> element (or anchor element) creates a hyperlink to other web pages, files, locations within the same page, email addresses, or any other URL."), [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server."), or [`<base>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base "The HTML <base> element specifies the base URL to use for all relative URLs contained within a document. There can be only one <base> element in a document.") elements; the `formtarget` attribute of the [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") or [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") elements; or the `windowName` parameter in the [`window.open()`](https://developer.mozilla.org/en-US/docs/Web/API/Window/open "The Window interface\'s open() method loads the specified resource into the browsing context (window, <iframe> or tab) with the specified name. If the name doesn\'t exist, then a new window is opened and the specified resource is loaded into its browsing context.") method.'}},{name:"sandbox",valueSet:"sb",description:{kind:"markdown",value:'Applies extra restrictions to the content in the frame. The value of the attribute can either be empty to apply all restrictions, or space-separated tokens to lift particular restrictions:\n\n* `allow-forms`: Allows the resource to submit forms. If this keyword is not used, form submission is blocked.\n* `allow-modals`: Lets the resource [open modal windows](https://html.spec.whatwg.org/multipage/origin.html#sandboxed-modals-flag).\n* `allow-orientation-lock`: Lets the resource [lock the screen orientation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/lockOrientation).\n* `allow-pointer-lock`: Lets the resource use the [Pointer Lock API](https://developer.mozilla.org/en-US/docs/WebAPI/Pointer_Lock).\n* `allow-popups`: Allows popups (such as `window.open()`, `target="_blank"`, or `showModalDialog()`). If this keyword is not used, the popup will silently fail to open.\n* `allow-popups-to-escape-sandbox`: Lets the sandboxed document open new windows without those windows inheriting the sandboxing. For example, this can safely sandbox an advertisement without forcing the same restrictions upon the page the ad links to.\n* `allow-presentation`: Lets the resource start a [presentation session](https://developer.mozilla.org/en-US/docs/Web/API/PresentationRequest).\n* `allow-same-origin`: If this token is not used, the resource is treated as being from a special origin that always fails the [same-origin policy](https://developer.mozilla.org/en-US/docs/Glossary/same-origin_policy "same-origin policy: The same-origin policy is a critical security mechanism that restricts how a document or script loaded from one origin can interact with a resource from another origin.").\n* `allow-scripts`: Lets the resource run scripts (but not create popup windows).\n* `allow-storage-access-by-user-activation` : Lets the resource request access to the parent\'s storage capabilities with the [Storage Access API](https://developer.mozilla.org/en-US/docs/Web/API/Storage_Access_API).\n* `allow-top-navigation`: Lets the resource navigate the top-level browsing context (the one named `_top`).\n* `allow-top-navigation-by-user-activation`: Lets the resource navigate the top-level browsing context, but only if initiated by a user gesture.\n\n**Notes about sandboxing:**\n\n* When the embedded document has the same origin as the embedding page, it is **strongly discouraged** to use both `allow-scripts` and `allow-same-origin`, as that lets the embedded document remove the `sandbox` attribute — making it no more secure than not using the `sandbox` attribute at all.\n* Sandboxing is useless if the attacker can display content outside a sandboxed `iframe` — such as if the viewer opens the frame in a new tab. Such content should be also served from a _separate origin_ to limit potential damage.\n* The `sandbox` attribute is unsupported in Internet Explorer 9 and earlier.'}},{name:"seamless",valueSet:"v"},{name:"allowfullscreen",valueSet:"v",description:{kind:"markdown",value:'Set to `true` if the `<iframe>` can activate fullscreen mode by calling the [`requestFullscreen()`](https://developer.mozilla.org/en-US/docs/Web/API/Element/requestFullscreen "The Element.requestFullscreen() method issues an asynchronous request to make the element be displayed in full-screen mode.") method.'}},{name:"width",description:{kind:"markdown",value:"The width of the frame in CSS pixels. Default is `300`."}},{name:"height",description:{kind:"markdown",value:"The height of the frame in CSS pixels. Default is `150`."}},{name:"allow",description:"Specifies a [feature policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/Feature_Policy) for the `<iframe>`."},{name:"allowpaymentrequest",description:"Set to `true` if a cross-origin `<iframe>` should be allowed to invoke the [Payment Request API](https://developer.mozilla.org/en-US/docs/Web/API/Payment_Request_API)."},{name:"allowpaymentrequest",description:'This attribute is considered a legacy attribute and redefined as `allow="payment"`.'},{name:"csp",description:'A [Content Security Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP) enforced for the embedded resource. See [`HTMLIFrameElement.csp`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/csp "The csp property of the HTMLIFrameElement interface specifies the Content Security Policy that an embedded document must agree to enforce upon itself.") for details.'},{name:"importance",description:"The download priority of the resource in the `<iframe>`'s `src` attribute. Allowed values:\n\n`auto` (default)\n\nNo preference. The browser uses its own heuristics to decide the priority of the resource.\n\n`high`\n\nThe resource should be downloaded before other lower-priority page resources.\n\n`low`\n\nThe resource should be downloaded after other higher-priority page resources."},{name:"referrerpolicy",description:'Indicates which [referrer](https://developer.mozilla.org/en-US/docs/Web/API/Document/referrer) to send when fetching the frame\'s resource:\n\n* `no-referrer`: The [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will not be sent.\n* `no-referrer-when-downgrade` (default): The [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will not be sent to [origin](https://developer.mozilla.org/en-US/docs/Glossary/origin "origin: Web content\'s origin is defined by the scheme (protocol), host (domain), and port of the URL used to access it. Two objects have the same origin only when the scheme, host, and port all match.")s without [TLS](https://developer.mozilla.org/en-US/docs/Glossary/TLS "TLS: Transport Layer Security (TLS), previously known as Secure Sockets Layer (SSL), is a protocol used by applications to communicate securely across a network, preventing tampering with and eavesdropping on email, web browsing, messaging, and other protocols.") ([HTTPS](https://developer.mozilla.org/en-US/docs/Glossary/HTTPS "HTTPS: HTTPS (HTTP Secure) is an encrypted version of the HTTP protocol. It usually uses SSL or TLS to encrypt all communication between a client and a server. This secure connection allows clients to safely exchange sensitive data with a server, for example for banking activities or online shopping.")).\n* `origin`: The sent referrer will be limited to the origin of the referring page: its [scheme](https://developer.mozilla.org/en-US/docs/Archive/Mozilla/URIScheme), [host](https://developer.mozilla.org/en-US/docs/Glossary/host "host: A host is a device connected to the Internet (or a local network). Some hosts called servers offer additional services like serving webpages or storing files and emails."), and [port](https://developer.mozilla.org/en-US/docs/Glossary/port "port: For a computer connected to a network with an IP address, a port is a communication endpoint. Ports are designated by numbers, and below 1024 each port is associated by default with a specific protocol.").\n* `origin-when-cross-origin`: The referrer sent to other origins will be limited to the scheme, the host, and the port. Navigations on the same origin will still include the path.\n* `same-origin`: A referrer will be sent for [same origin](https://developer.mozilla.org/en-US/docs/Glossary/Same-origin_policy "same origin: The same-origin policy is a critical security mechanism that restricts how a document or script loaded from one origin can interact with a resource from another origin."), but cross-origin requests will contain no referrer information.\n* `strict-origin`: Only send the origin of the document as the referrer when the protocol security level stays the same (HTTPS→HTTPS), but don\'t send it to a less secure destination (HTTPS→HTTP).\n* `strict-origin-when-cross-origin`: Send a full URL when performing a same-origin request, only send the origin when the protocol security level stays the same (HTTPS→HTTPS), and send no header to a less secure destination (HTTPS→HTTP).\n* `unsafe-url`: The referrer will include the origin _and_ the path (but not the [fragment](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/hash), [password](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/password), or [username](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/username)). **This value is unsafe**, because it leaks origins and paths from TLS-protected resources to insecure origins.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/iframe"}]},{name:"embed",description:{kind:"markdown",value:"The embed element provides an integration point for an external (typically non-HTML) application or interactive content."},attributes:[{name:"src",description:{kind:"markdown",value:"The URL of the resource being embedded."}},{name:"type",description:{kind:"markdown",value:"The MIME type to use to select the plug-in to instantiate."}},{name:"width",description:{kind:"markdown",value:"The displayed width of the resource, in [CSS pixels](https://drafts.csswg.org/css-values/#px). This must be an absolute value; percentages are _not_ allowed."}},{name:"height",description:{kind:"markdown",value:"The displayed height of the resource, in [CSS pixels](https://drafts.csswg.org/css-values/#px). This must be an absolute value; percentages are _not_ allowed."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/embed"}]},{name:"object",description:{kind:"markdown",value:"The object element can represent an external resource, which, depending on the type of the resource, will either be treated as an image, as a nested browsing context, or as an external resource to be processed by a plugin."},attributes:[{name:"data",description:{kind:"markdown",value:"The address of the resource as a valid URL. At least one of **data** and **type** must be defined."}},{name:"type",description:{kind:"markdown",value:"The [content type](https://developer.mozilla.org/en-US/docs/Glossary/Content_type) of the resource specified by **data**. At least one of **data** and **type** must be defined."}},{name:"typemustmatch",valueSet:"v",description:{kind:"markdown",value:"This Boolean attribute indicates if the **type** attribute and the actual [content type](https://developer.mozilla.org/en-US/docs/Glossary/Content_type) of the resource must match to be used."}},{name:"name",description:{kind:"markdown",value:"The name of valid browsing context (HTML5), or the name of the control (HTML 4)."}},{name:"usemap",description:{kind:"markdown",value:"A hash-name reference to a [`<map>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/map \"The HTML <map> element is used with <area> elements to define an image map (a clickable link area).\") element; that is a '#' followed by the value of a [`name`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/map#attr-name) of a map element."}},{name:"form",description:{kind:"markdown",value:'The form element, if any, that the object element is associated with (its _form owner_). The value of the attribute must be an ID of a [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") element in the same document.'}},{name:"width",description:{kind:"markdown",value:"The width of the display resource, in [CSS pixels](https://drafts.csswg.org/css-values/#px). -- (Absolute values only. [NO percentages](https://html.spec.whatwg.org/multipage/embedded-content.html#dimension-attributes))"}},{name:"height",description:{kind:"markdown",value:"The height of the displayed resource, in [CSS pixels](https://drafts.csswg.org/css-values/#px). -- (Absolute values only. [NO percentages](https://html.spec.whatwg.org/multipage/embedded-content.html#dimension-attributes))"}},{name:"archive",description:"A space-separated list of URIs for archives of resources for the object."},{name:"border",description:"The width of a border around the control, in pixels."},{name:"classid",description:"The URI of the object's implementation. It can be used together with, or in place of, the **data** attribute."},{name:"codebase",description:"The base path used to resolve relative URIs specified by **classid**, **data**, or **archive**. If not specified, the default is the base URI of the current document."},{name:"codetype",description:"The content type of the data specified by **classid**."},{name:"declare",description:"The presence of this Boolean attribute makes this element a declaration only. The object must be instantiated by a subsequent `<object>` element. In HTML5, repeat the <object> element completely each that that the resource is reused."},{name:"standby",description:"A message that the browser can show while loading the object's implementation and data."},{name:"tabindex",description:"The position of the element in the tabbing navigation order for the current document."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/object"}]},{name:"param",description:{kind:"markdown",value:"The param element defines parameters for plugins invoked by object elements. It does not represent anything on its own."},attributes:[{name:"name",description:{kind:"markdown",value:"Name of the parameter."}},{name:"value",description:{kind:"markdown",value:"Specifies the value of the parameter."}},{name:"type",description:'Only used if the `valuetype` is set to "ref". Specifies the MIME type of values found at the URI specified by value.'},{name:"valuetype",description:'Specifies the type of the `value` attribute. Possible values are:\n\n* data: Default value. The value is passed to the object\'s implementation as a string.\n* ref: The value is a URI to a resource where run-time values are stored.\n* object: An ID of another [`<object>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/object "The HTML <object> element represents an external resource, which can be treated as an image, a nested browsing context, or a resource to be handled by a plugin.") in the same document.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/param"}]},{name:"video",description:{kind:"markdown",value:"A video element is used for playing videos or movies, and audio files with captions."},attributes:[{name:"src"},{name:"crossorigin",valueSet:"xo"},{name:"poster"},{name:"preload",valueSet:"pl"},{name:"autoplay",valueSet:"v",description:{kind:"markdown",value:"A Boolean attribute; if specified, the video automatically begins to play back as soon as it can do so without stopping to finish loading the data."}},{name:"mediagroup"},{name:"loop",valueSet:"v"},{name:"muted",valueSet:"v"},{name:"controls",valueSet:"v"},{name:"width"},{name:"height"}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/video"}]},{name:"audio",description:{kind:"markdown",value:"An audio element represents a sound or audio stream."},attributes:[{name:"src",description:{kind:"markdown",value:'The URL of the audio to embed. This is subject to [HTTP access controls](https://developer.mozilla.org/en-US/docs/HTTP_access_control). This is optional; you may instead use the [`<source>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source "The HTML <source> element specifies multiple media resources for the <picture>, the <audio> element, or the <video> element.") element within the audio block to specify the audio to embed.'}},{name:"crossorigin",valueSet:"xo",description:{kind:"markdown",value:'This enumerated attribute indicates whether to use CORS to fetch the related image. [CORS-enabled resources](https://developer.mozilla.org/en-US/docs/CORS_Enabled_Image) can be reused in the [`<canvas>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas "Use the HTML <canvas> element with either the canvas scripting API or the WebGL API to draw graphics and animations.") element without being _tainted_. The allowed values are:\n\nanonymous\n\nSends a cross-origin request without a credential. In other words, it sends the `Origin:` HTTP header without a cookie, X.509 certificate, or performing HTTP Basic authentication. If the server does not give credentials to the origin site (by not setting the `Access-Control-Allow-Origin:` HTTP header), the image will be _tainted_, and its usage restricted.\n\nuse-credentials\n\nSends a cross-origin request with a credential. In other words, it sends the `Origin:` HTTP header with a cookie, a certificate, or performing HTTP Basic authentication. If the server does not give credentials to the origin site (through `Access-Control-Allow-Credentials:` HTTP header), the image will be _tainted_ and its usage restricted.\n\nWhen not present, the resource is fetched without a CORS request (i.e. without sending the `Origin:` HTTP header), preventing its non-tainted used in [`<canvas>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas "Use the HTML <canvas> element with either the canvas scripting API or the WebGL API to draw graphics and animations.") elements. If invalid, it is handled as if the enumerated keyword **anonymous** was used. See [CORS settings attributes](https://developer.mozilla.org/en-US/docs/HTML/CORS_settings_attributes) for additional information.'}},{name:"preload",valueSet:"pl",description:{kind:"markdown",value:"This enumerated attribute is intended to provide a hint to the browser about what the author thinks will lead to the best user experience. It may have one of the following values:\n\n* `none`: Indicates that the audio should not be preloaded.\n* `metadata`: Indicates that only audio metadata (e.g. length) is fetched.\n* `auto`: Indicates that the whole audio file can be downloaded, even if the user is not expected to use it.\n* _empty string_: A synonym of the `auto` value.\n\nIf not set, `preload`'s default value is browser-defined (i.e. each browser may have its own default value). The spec advises it to be set to `metadata`.\n\n**Usage notes:**\n\n* The `autoplay` attribute has precedence over `preload`. If `autoplay` is specified, the browser would obviously need to start downloading the audio for playback.\n* The browser is not forced by the specification to follow the value of this attribute; it is a mere hint."}},{name:"autoplay",valueSet:"v",description:{kind:"markdown",value:"A Boolean attribute: if specified, the audio will automatically begin playback as soon as it can do so, without waiting for the entire audio file to finish downloading.\n\n**Note**: Sites that automatically play audio (or videos with an audio track) can be an unpleasant experience for users, so should be avoided when possible. If you must offer autoplay functionality, you should make it opt-in (requiring a user to specifically enable it). However, this can be useful when creating media elements whose source will be set at a later time, under user control."}},{name:"mediagroup"},{name:"loop",valueSet:"v",description:{kind:"markdown",value:"A Boolean attribute: if specified, the audio player will automatically seek back to the start upon reaching the end of the audio."}},{name:"muted",valueSet:"v",description:{kind:"markdown",value:"A Boolean attribute that indicates whether the audio will be initially silenced. Its default value is `false`."}},{name:"controls",valueSet:"v",description:{kind:"markdown",value:"If this attribute is present, the browser will offer controls to allow the user to control audio playback, including volume, seeking, and pause/resume playback."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/audio"}]},{name:"source",description:{kind:"markdown",value:"The source element allows authors to specify multiple alternative media resources for media elements. It does not represent anything on its own."},attributes:[{name:"src",description:{kind:"markdown",value:'Required for [`<audio>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio "The HTML <audio> element is used to embed sound content in documents. It may contain one or more audio sources, represented using the src attribute or the <source> element: the browser will choose the most suitable one. It can also be the destination for streamed media, using a MediaStream.") and [`<video>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video "The HTML Video element (<video>) embeds a media player which supports video playback into the document."), address of the media resource. The value of this attribute is ignored when the `<source>` element is placed inside a [`<picture>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture "The HTML <picture> element contains zero or more <source> elements and one <img> element to provide versions of an image for different display/device scenarios.") element.'}},{name:"type",description:{kind:"markdown",value:"The MIME-type of the resource, optionally with a `codecs` parameter. See [RFC 4281](https://tools.ietf.org/html/rfc4281) for information about how to specify codecs."}},{name:"sizes",description:'Is a list of source sizes that describes the final rendered width of the image represented by the source. Each source size consists of a comma-separated list of media condition-length pairs. This information is used by the browser to determine, before laying the page out, which image defined in [`srcset`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source#attr-srcset) to use. \nThe `sizes` attribute has an effect only when the [`<source>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source "The HTML <source> element specifies multiple media resources for the <picture>, the <audio> element, or the <video> element.") element is the direct child of a [`<picture>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture "The HTML <picture> element contains zero or more <source> elements and one <img> element to provide versions of an image for different display/device scenarios.") element.'},{name:"srcset",description:"A list of one or more strings separated by commas indicating a set of possible images represented by the source for the browser to use. Each string is composed of:\n\n1. one URL to an image,\n2. a width descriptor, that is a positive integer directly followed by `'w'`. The default value, if missing, is the infinity.\n3. a pixel density descriptor, that is a positive floating number directly followed by `'x'`. The default value, if missing, is `1x`.\n\nEach string in the list must have at least a width descriptor or a pixel density descriptor to be valid. Among the list, there must be only one string containing the same tuple of width descriptor and pixel density descriptor. \nThe browser chooses the most adequate image to display at a given point of time. \nThe `srcset` attribute has an effect only when the [`<source>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source \"The HTML <source> element specifies multiple media resources for the <picture>, the <audio> element, or the <video> element.\") element is the direct child of a [`<picture>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture \"The HTML <picture> element contains zero or more <source> elements and one <img> element to provide versions of an image for different display/device scenarios.\") element."},{name:"media",description:'[Media query](https://developer.mozilla.org/en-US/docs/CSS/Media_queries) of the resource\'s intended media; this should be used only in a [`<picture>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture "The HTML <picture> element contains zero or more <source> elements and one <img> element to provide versions of an image for different display/device scenarios.") element.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/source"}]},{name:"track",description:{kind:"markdown",value:"The track element allows authors to specify explicit external timed text tracks for media elements. It does not represent anything on its own."},attributes:[{name:"default",valueSet:"v",description:{kind:"markdown",value:"This attribute indicates that the track should be enabled unless the user's preferences indicate that another track is more appropriate. This may only be used on one `track` element per media element."}},{name:"kind",valueSet:"tk",description:{kind:"markdown",value:"How the text track is meant to be used. If omitted the default kind is `subtitles`. If the attribute is not present, it will use the `subtitles`. If the attribute contains an invalid value, it will use `metadata`. (Versions of Chrome earlier than 52 treated an invalid value as `subtitles`.) The following keywords are allowed:\n\n* `subtitles`\n * Subtitles provide translation of content that cannot be understood by the viewer. For example dialogue or text that is not English in an English language film.\n * Subtitles may contain additional content, usually extra background information. For example the text at the beginning of the Star Wars films, or the date, time, and location of a scene.\n* `captions`\n * Closed captions provide a transcription and possibly a translation of audio.\n * It may include important non-verbal information such as music cues or sound effects. It may indicate the cue's source (e.g. music, text, character).\n * Suitable for users who are deaf or when the sound is muted.\n* `descriptions`\n * Textual description of the video content.\n * Suitable for users who are blind or where the video cannot be seen.\n* `chapters`\n * Chapter titles are intended to be used when the user is navigating the media resource.\n* `metadata`\n * Tracks used by scripts. Not visible to the user."}},{name:"label",description:{kind:"markdown",value:"A user-readable title of the text track which is used by the browser when listing available text tracks."}},{name:"src",description:{kind:"markdown",value:'Address of the track (`.vtt` file). Must be a valid URL. This attribute must be specified and its URL value must have the same origin as the document — unless the [`<audio>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio "The HTML <audio> element is used to embed sound content in documents. It may contain one or more audio sources, represented using the src attribute or the <source> element: the browser will choose the most suitable one. It can also be the destination for streamed media, using a MediaStream.") or [`<video>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video "The HTML Video element (<video>) embeds a media player which supports video playback into the document.") parent element of the `track` element has a [`crossorigin`](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes) attribute.'}},{name:"srclang",description:{kind:"markdown",value:"Language of the track text data. It must be a valid [BCP 47](https://r12a.github.io/app-subtags/) language tag. If the `kind` attribute is set to `subtitles,` then `srclang` must be defined."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/track"}]},{name:"map",description:{kind:"markdown",value:"The map element, in conjunction with an img element and any area element descendants, defines an image map. The element represents its children."},attributes:[{name:"name",description:{kind:"markdown",value:"The name attribute gives the map a name so that it can be referenced. The attribute must be present and must have a non-empty value with no space characters. The value of the name attribute must not be a compatibility-caseless match for the value of the name attribute of another map element in the same document. If the id attribute is also specified, both attributes must have the same value."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/map"}]},{name:"area",description:{kind:"markdown",value:"The area element represents either a hyperlink with some text and a corresponding area on an image map, or a dead area on an image map."},attributes:[{name:"alt"},{name:"coords"},{name:"shape",valueSet:"sh"},{name:"href"},{name:"target"},{name:"download"},{name:"ping"},{name:"rel"},{name:"hreflang"},{name:"type"},{name:"accesskey",description:"Specifies a keyboard navigation accelerator for the element. Pressing ALT or a similar key in association with the specified character selects the form control correlated with that key sequence. Page designers are forewarned to avoid key sequences already bound to browsers. This attribute is global since HTML5."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/area"}]},{name:"table",description:{kind:"markdown",value:"The table element represents data with more than one dimension, in the form of a table."},attributes:[{name:"border"},{name:"align",description:'This enumerated attribute indicates how the table must be aligned inside the containing document. It may have the following values:\n\n* left: the table is displayed on the left side of the document;\n* center: the table is displayed in the center of the document;\n* right: the table is displayed on the right side of the document.\n\n**Usage Note**\n\n* **Do not use this attribute**, as it has been deprecated. The [`<table>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/table "The HTML <table> element represents tabular data — that is, information presented in a two-dimensional table comprised of rows and columns of cells containing data.") element should be styled using [CSS](https://developer.mozilla.org/en-US/docs/CSS). Set [`margin-left`](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-left "The margin-left CSS property sets the margin area on the left side of an element. A positive value places it farther from its neighbors, while a negative value places it closer.") and [`margin-right`](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-right "The margin-right CSS property sets the margin area on the right side of an element. A positive value places it farther from its neighbors, while a negative value places it closer.") to `auto` or [`margin`](https://developer.mozilla.org/en-US/docs/Web/CSS/margin "The margin CSS property sets the margin area on all four sides of an element. It is a shorthand for margin-top, margin-right, margin-bottom, and margin-left.") to `0 auto` to achieve an effect that is similar to the align attribute.\n* Prior to Firefox 4, Firefox also supported the `middle`, `absmiddle`, and `abscenter` values as synonyms of `center`, in quirks mode only.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/table"}]},{name:"caption",description:{kind:"markdown",value:"The caption element represents the title of the table that is its parent, if it has a parent and that is a table element."},attributes:[{name:"align",description:'This enumerated attribute indicates how the caption must be aligned with respect to the table. It may have one of the following values:\n\n`left`\n\nThe caption is displayed to the left of the table.\n\n`top`\n\nThe caption is displayed above the table.\n\n`right`\n\nThe caption is displayed to the right of the table.\n\n`bottom`\n\nThe caption is displayed below the table.\n\n**Usage note:** Do not use this attribute, as it has been deprecated. The [`<caption>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/caption "The HTML Table Caption element (<caption>) specifies the caption (or title) of a table, and if used is always the first child of a <table>.") element should be styled using the [CSS](https://developer.mozilla.org/en-US/docs/CSS) properties [`caption-side`](https://developer.mozilla.org/en-US/docs/Web/CSS/caption-side "The caption-side CSS property puts the content of a table\'s <caption> on the specified side. The values are relative to the writing-mode of the table.") and [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.").'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/caption"}]},{name:"colgroup",description:{kind:"markdown",value:"The colgroup element represents a group of one or more columns in the table that is its parent, if it has a parent and that is a table element."},attributes:[{name:"span"},{name:"align",description:'This enumerated attribute specifies how horizontal alignment of each column cell content will be handled. Possible values are:\n\n* `left`, aligning the content to the left of the cell\n* `center`, centering the content in the cell\n* `right`, aligning the content to the right of the cell\n* `justify`, inserting spaces into the textual content so that the content is justified in the cell\n* `char`, aligning the textual content on a special character with a minimal offset, defined by the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col#attr-charoff) attributes Unimplemented (see [bug 2212](https://bugzilla.mozilla.org/show_bug.cgi?id=2212 "character alignment not implemented (align=char, charoff=, text-align:<string>)")).\n\nIf this attribute is not set, the `left` value is assumed. The descendant [`<col>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col "The HTML <col> element defines a column within a table and is used for defining common semantics on all common cells. It is generally found within a <colgroup> element.") elements may override this value using their own [`align`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col#attr-align) attribute.\n\n**Note:** Do not use this attribute as it is obsolete (not supported) in the latest standard.\n\n* To achieve the same effect as the `left`, `center`, `right` or `justify` values:\n * Do not try to set the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property on a selector giving a [`<colgroup>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/colgroup "The HTML <colgroup> element defines a group of columns within a table.") element. Because [`<td>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td "The HTML <td> element defines a cell of a table that contains data. It participates in the table model.") elements are not descendant of the [`<colgroup>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/colgroup "The HTML <colgroup> element defines a group of columns within a table.") element, they won\'t inherit it.\n * If the table doesn\'t use a [`colspan`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td#attr-colspan) attribute, use one `td:nth-child(an+b)` CSS selector per column, where a is the total number of the columns in the table and b is the ordinal position of this column in the table. Only after this selector the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property can be used.\n * If the table does use a [`colspan`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td#attr-colspan) attribute, the effect can be achieved by combining adequate CSS attribute selectors like `[colspan=n]`, though this is not trivial.\n* To achieve the same effect as the `char` value, in CSS3, you can use the value of the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/colgroup#attr-char) as the value of the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property Unimplemented.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/colgroup"}]},{name:"col",description:{kind:"markdown",value:"If a col element has a parent and that is a colgroup element that itself has a parent that is a table element, then the col element represents one or more columns in the column group represented by that colgroup."},attributes:[{name:"span"},{name:"align",description:'This enumerated attribute specifies how horizontal alignment of each column cell content will be handled. Possible values are:\n\n* `left`, aligning the content to the left of the cell\n* `center`, centering the content in the cell\n* `right`, aligning the content to the right of the cell\n* `justify`, inserting spaces into the textual content so that the content is justified in the cell\n* `char`, aligning the textual content on a special character with a minimal offset, defined by the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col#attr-charoff) attributes Unimplemented (see [bug 2212](https://bugzilla.mozilla.org/show_bug.cgi?id=2212 "character alignment not implemented (align=char, charoff=, text-align:<string>)")).\n\nIf this attribute is not set, its value is inherited from the [`align`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/colgroup#attr-align) of the [`<colgroup>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/colgroup "The HTML <colgroup> element defines a group of columns within a table.") element this `<col>` element belongs too. If there are none, the `left` value is assumed.\n\n**Note:** Do not use this attribute as it is obsolete (not supported) in the latest standard.\n\n* To achieve the same effect as the `left`, `center`, `right` or `justify` values:\n * Do not try to set the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property on a selector giving a [`<col>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col "The HTML <col> element defines a column within a table and is used for defining common semantics on all common cells. It is generally found within a <colgroup> element.") element. Because [`<td>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td "The HTML <td> element defines a cell of a table that contains data. It participates in the table model.") elements are not descendant of the [`<col>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col "The HTML <col> element defines a column within a table and is used for defining common semantics on all common cells. It is generally found within a <colgroup> element.") element, they won\'t inherit it.\n * If the table doesn\'t use a [`colspan`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td#attr-colspan) attribute, use the `td:nth-child(an+b)` CSS selector. Set `a` to zero and `b` to the position of the column in the table, e.g. `td:nth-child(2) { text-align: right; }` to right-align the second column.\n * If the table does use a [`colspan`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td#attr-colspan) attribute, the effect can be achieved by combining adequate CSS attribute selectors like `[colspan=n]`, though this is not trivial.\n* To achieve the same effect as the `char` value, in CSS3, you can use the value of the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col#attr-char) as the value of the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property Unimplemented.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/col"}]},{name:"tbody",description:{kind:"markdown",value:"The tbody element represents a block of rows that consist of a body of data for the parent table element, if the tbody element has a parent and it is a table."},attributes:[{name:"align",description:'This enumerated attribute specifies how horizontal alignment of each cell content will be handled. Possible values are:\n\n* `left`, aligning the content to the left of the cell\n* `center`, centering the content in the cell\n* `right`, aligning the content to the right of the cell\n* `justify`, inserting spaces into the textual content so that the content is justified in the cell\n* `char`, aligning the textual content on a special character with a minimal offset, defined by the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody#attr-charoff) attributes.\n\nIf this attribute is not set, the `left` value is assumed.\n\n**Note:** Do not use this attribute as it is obsolete (not supported) in the latest standard.\n\n* To achieve the same effect as the `left`, `center`, `right` or `justify` values, use the CSS [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property on it.\n* To achieve the same effect as the `char` value, in CSS3, you can use the value of the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody#attr-char) as the value of the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property Unimplemented.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/tbody"}]},{name:"thead",description:{kind:"markdown",value:"The thead element represents the block of rows that consist of the column labels (headers) for the parent table element, if the thead element has a parent and it is a table."},attributes:[{name:"align",description:'This enumerated attribute specifies how horizontal alignment of each cell content will be handled. Possible values are:\n\n* `left`, aligning the content to the left of the cell\n* `center`, centering the content in the cell\n* `right`, aligning the content to the right of the cell\n* `justify`, inserting spaces into the textual content so that the content is justified in the cell\n* `char`, aligning the textual content on a special character with a minimal offset, defined by the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/thead#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/thead#attr-charoff) attributes Unimplemented (see [bug 2212](https://bugzilla.mozilla.org/show_bug.cgi?id=2212 "character alignment not implemented (align=char, charoff=, text-align:<string>)")).\n\nIf this attribute is not set, the `left` value is assumed.\n\n**Note:** Do not use this attribute as it is obsolete (not supported) in the latest standard.\n\n* To achieve the same effect as the `left`, `center`, `right` or `justify` values, use the CSS [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property on it.\n* To achieve the same effect as the `char` value, in CSS3, you can use the value of the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/thead#attr-char) as the value of the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property Unimplemented.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/thead"}]},{name:"tfoot",description:{kind:"markdown",value:"The tfoot element represents the block of rows that consist of the column summaries (footers) for the parent table element, if the tfoot element has a parent and it is a table."},attributes:[{name:"align",description:'This enumerated attribute specifies how horizontal alignment of each cell content will be handled. Possible values are:\n\n* `left`, aligning the content to the left of the cell\n* `center`, centering the content in the cell\n* `right`, aligning the content to the right of the cell\n* `justify`, inserting spaces into the textual content so that the content is justified in the cell\n* `char`, aligning the textual content on a special character with a minimal offset, defined by the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody#attr-charoff) attributes Unimplemented (see [bug 2212](https://bugzilla.mozilla.org/show_bug.cgi?id=2212 "character alignment not implemented (align=char, charoff=, text-align:<string>)")).\n\nIf this attribute is not set, the `left` value is assumed.\n\n**Note:** Do not use this attribute as it is obsolete (not supported) in the latest standard.\n\n* To achieve the same effect as the `left`, `center`, `right` or `justify` values, use the CSS [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property on it.\n* To achieve the same effect as the `char` value, in CSS3, you can use the value of the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tfoot#attr-char) as the value of the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property Unimplemented.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/tfoot"}]},{name:"tr",description:{kind:"markdown",value:"The tr element represents a row of cells in a table."},attributes:[{name:"align",description:'A [`DOMString`](https://developer.mozilla.org/en-US/docs/Web/API/DOMString "DOMString is a UTF-16 String. As JavaScript already uses such strings, DOMString is mapped directly to a String.") which specifies how the cell\'s context should be aligned horizontally within the cells in the row; this is shorthand for using `align` on every cell in the row individually. Possible values are:\n\n`left`\n\nAlign the content of each cell at its left edge.\n\n`center`\n\nCenter the contents of each cell between their left and right edges.\n\n`right`\n\nAlign the content of each cell at its right edge.\n\n`justify`\n\nWiden whitespaces within the text of each cell so that the text fills the full width of each cell (full justification).\n\n`char`\n\nAlign each cell in the row on a specific character (such that each row in the column that is configured this way will horizontally align its cells on that character). This uses the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tr#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tr#attr-charoff) to establish the alignment character (typically "." or "," when aligning numerical data) and the number of characters that should follow the alignment character. This alignment type was never widely supported.\n\nIf no value is expressly set for `align`, the parent node\'s value is inherited.\n\nInstead of using the obsolete `align` attribute, you should instead use the CSS [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property to establish `left`, `center`, `right`, or `justify` alignment for the row\'s cells. To apply character-based alignment, set the CSS [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property to the alignment character (such as `"."` or `","`).'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/tr"}]},{name:"td",description:{kind:"markdown",value:"The td element represents a data cell in a table."},attributes:[{name:"colspan"},{name:"rowspan"},{name:"headers"},{name:"abbr",description:"This attribute contains a short abbreviated description of the cell's content. Some user-agents, such as speech readers, may present this description before the content itself.\n\n**Note:** Do not use this attribute as it is obsolete in the latest standard. Alternatively, you can put the abbreviated description inside the cell and place the long content in the **title** attribute."},{name:"align",description:'This enumerated attribute specifies how the cell content\'s horizontal alignment will be handled. Possible values are:\n\n* `left`: The content is aligned to the left of the cell.\n* `center`: The content is centered in the cell.\n* `right`: The content is aligned to the right of the cell.\n* `justify` (with text only): The content is stretched out inside the cell so that it covers its entire width.\n* `char` (with text only): The content is aligned to a character inside the `<th>` element with minimal offset. This character is defined by the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td#attr-charoff) attributes Unimplemented (see [bug 2212](https://bugzilla.mozilla.org/show_bug.cgi?id=2212 "character alignment not implemented (align=char, charoff=, text-align:<string>)")).\n\nThe default value when this attribute is not specified is `left`.\n\n**Note:** Do not use this attribute as it is obsolete in the latest standard.\n\n* To achieve the same effect as the `left`, `center`, `right` or `justify` values, apply the CSS [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property to the element.\n* To achieve the same effect as the `char` value, give the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property the same value you would use for the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td#attr-char). Unimplemented in CSS3.'},{name:"axis",description:"This attribute contains a list of space-separated strings. Each string is the `id` of a group of cells that this header applies to.\n\n**Note:** Do not use this attribute as it is obsolete in the latest standard."},{name:"bgcolor",description:'This attribute defines the background color of each cell in a column. It consists of a 6-digit hexadecimal code as defined in [sRGB](https://www.w3.org/Graphics/Color/sRGB) and is prefixed by \'#\'. This attribute may be used with one of sixteen predefined color strings:\n\n \n\n`black` = "#000000"\n\n \n\n`green` = "#008000"\n\n \n\n`silver` = "#C0C0C0"\n\n \n\n`lime` = "#00FF00"\n\n \n\n`gray` = "#808080"\n\n \n\n`olive` = "#808000"\n\n \n\n`white` = "#FFFFFF"\n\n \n\n`yellow` = "#FFFF00"\n\n \n\n`maroon` = "#800000"\n\n \n\n`navy` = "#000080"\n\n \n\n`red` = "#FF0000"\n\n \n\n`blue` = "#0000FF"\n\n \n\n`purple` = "#800080"\n\n \n\n`teal` = "#008080"\n\n \n\n`fuchsia` = "#FF00FF"\n\n \n\n`aqua` = "#00FFFF"\n\n**Note:** Do not use this attribute, as it is non-standard and only implemented in some versions of Microsoft Internet Explorer: The [`<td>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td "The HTML <td> element defines a cell of a table that contains data. It participates in the table model.") element should be styled using [CSS](https://developer.mozilla.org/en-US/docs/CSS). To create a similar effect use the [`background-color`](https://developer.mozilla.org/en-US/docs/Web/CSS/background-color "The background-color CSS property sets the background color of an element.") property in [CSS](https://developer.mozilla.org/en-US/docs/CSS) instead.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/td"}]},{name:"th",description:{kind:"markdown",value:"The th element represents a header cell in a table."},attributes:[{name:"colspan"},{name:"rowspan"},{name:"headers"},{name:"scope",valueSet:"s"},{name:"sorted"},{name:"abbr",description:{kind:"markdown",value:"This attribute contains a short abbreviated description of the cell's content. Some user-agents, such as speech readers, may present this description before the content itself."}},{name:"align",description:'This enumerated attribute specifies how the cell content\'s horizontal alignment will be handled. Possible values are:\n\n* `left`: The content is aligned to the left of the cell.\n* `center`: The content is centered in the cell.\n* `right`: The content is aligned to the right of the cell.\n* `justify` (with text only): The content is stretched out inside the cell so that it covers its entire width.\n* `char` (with text only): The content is aligned to a character inside the `<th>` element with minimal offset. This character is defined by the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th#attr-char) and [`charoff`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th#attr-charoff) attributes.\n\nThe default value when this attribute is not specified is `left`.\n\n**Note:** Do not use this attribute as it is obsolete in the latest standard.\n\n* To achieve the same effect as the `left`, `center`, `right` or `justify` values, apply the CSS [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property to the element.\n* To achieve the same effect as the `char` value, give the [`text-align`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align "The text-align CSS property sets the horizontal alignment of an inline or table-cell box. This means it works like vertical-align but in the horizontal direction.") property the same value you would use for the [`char`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th#attr-char). Unimplemented in CSS3.'},{name:"axis",description:"This attribute contains a list of space-separated strings. Each string is the `id` of a group of cells that this header applies to.\n\n**Note:** Do not use this attribute as it is obsolete in the latest standard: use the [`scope`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th#attr-scope) attribute instead."},{name:"bgcolor",description:'This attribute defines the background color of each cell in a column. It consists of a 6-digit hexadecimal code as defined in [sRGB](https://www.w3.org/Graphics/Color/sRGB) and is prefixed by \'#\'. This attribute may be used with one of sixteen predefined color strings:\n\n \n\n`black` = "#000000"\n\n \n\n`green` = "#008000"\n\n \n\n`silver` = "#C0C0C0"\n\n \n\n`lime` = "#00FF00"\n\n \n\n`gray` = "#808080"\n\n \n\n`olive` = "#808000"\n\n \n\n`white` = "#FFFFFF"\n\n \n\n`yellow` = "#FFFF00"\n\n \n\n`maroon` = "#800000"\n\n \n\n`navy` = "#000080"\n\n \n\n`red` = "#FF0000"\n\n \n\n`blue` = "#0000FF"\n\n \n\n`purple` = "#800080"\n\n \n\n`teal` = "#008080"\n\n \n\n`fuchsia` = "#FF00FF"\n\n \n\n`aqua` = "#00FFFF"\n\n**Note:** Do not use this attribute, as it is non-standard and only implemented in some versions of Microsoft Internet Explorer: The [`<th>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th "The HTML <th> element defines a cell as header of a group of table cells. The exact nature of this group is defined by the scope and headers attributes.") element should be styled using [CSS](https://developer.mozilla.org/en-US/docs/Web/CSS). To create a similar effect use the [`background-color`](https://developer.mozilla.org/en-US/docs/Web/CSS/background-color "The background-color CSS property sets the background color of an element.") property in [CSS](https://developer.mozilla.org/en-US/docs/Web/CSS) instead.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/th"}]},{name:"form",description:{kind:"markdown",value:"The form element represents a collection of form-associated elements, some of which can represent editable values that can be submitted to a server for processing."},attributes:[{name:"accept-charset",description:{kind:"markdown",value:'A space- or comma-delimited list of character encodings that the server accepts. The browser uses them in the order in which they are listed. The default value, the reserved string `"UNKNOWN"`, indicates the same encoding as that of the document containing the form element. \nIn previous versions of HTML, the different character encodings could be delimited by spaces or commas. In HTML5, only spaces are allowed as delimiters.'}},{name:"action",description:{kind:"markdown",value:'The URI of a program that processes the form information. This value can be overridden by a [`formaction`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-formaction) attribute on a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") or [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element.'}},{name:"autocomplete",valueSet:"o",description:{kind:"markdown",value:"Indicates whether input elements can by default have their values automatically completed by the browser. This setting can be overridden by an `autocomplete` attribute on an element belonging to the form. Possible values are:\n\n* `off`: The user must explicitly enter a value into each field for every use, or the document provides its own auto-completion method; the browser does not automatically complete entries.\n* `on`: The browser can automatically complete values based on values that the user has previously entered in the form.\n\nFor most modern browsers (including Firefox 38+, Google Chrome 34+, IE 11+) setting the autocomplete attribute will not prevent a browser's password manager from asking the user if they want to store login fields (username and password), if the user permits the storage the browser will autofill the login the next time the user visits the page. See [The autocomplete attribute and login fields](https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion#The_autocomplete_attribute_and_login_fields)."}},{name:"enctype",valueSet:"et",description:{kind:"markdown",value:'When the value of the `method` attribute is `post`, enctype is the [MIME type](https://en.wikipedia.org/wiki/Mime_type) of content that is used to submit the form to the server. Possible values are:\n\n* `application/x-www-form-urlencoded`: The default value if the attribute is not specified.\n* `multipart/form-data`: The value used for an [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element with the `type` attribute set to "file".\n* `text/plain`: (HTML5)\n\nThis value can be overridden by a [`formenctype`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-formenctype) attribute on a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") or [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element.'}},{name:"method",valueSet:"m",description:{kind:"markdown",value:'The [HTTP](https://developer.mozilla.org/en-US/docs/Web/HTTP) method that the browser uses to submit the form. Possible values are:\n\n* `post`: Corresponds to the HTTP [POST method](https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.5) ; form data are included in the body of the form and sent to the server.\n* `get`: Corresponds to the HTTP [GET method](https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.3); form data are appended to the `action` attribute URI with a \'?\' as separator, and the resulting URI is sent to the server. Use this method when the form has no side-effects and contains only ASCII characters.\n* `dialog`: Use when the form is inside a [`<dialog>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog "The HTML <dialog> element represents a dialog box or other interactive component, such as an inspector or window.") element to close the dialog when submitted.\n\nThis value can be overridden by a [`formmethod`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-formmethod) attribute on a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") or [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element.'}},{name:"name",description:{kind:"markdown",value:"The name of the form. In HTML 4, its use is deprecated (`id` should be used instead). It must be unique among the forms in a document and not just an empty string in HTML 5."}},{name:"novalidate",valueSet:"v",description:{kind:"markdown",value:'This Boolean attribute indicates that the form is not to be validated when submitted. If this attribute is not specified (and therefore the form is validated), this default setting can be overridden by a [`formnovalidate`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-formnovalidate) attribute on a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") or [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element belonging to the form.'}},{name:"target",description:{kind:"markdown",value:'A name or keyword indicating where to display the response that is received after submitting the form. In HTML 4, this is the name/keyword for a frame. In HTML5, it is a name/keyword for a _browsing context_ (for example, tab, window, or inline frame). The following keywords have special meanings:\n\n* `_self`: Load the response into the same HTML 4 frame (or HTML5 browsing context) as the current one. This value is the default if the attribute is not specified.\n* `_blank`: Load the response into a new unnamed HTML 4 window or HTML5 browsing context.\n* `_parent`: Load the response into the HTML 4 frameset parent of the current frame, or HTML5 parent browsing context of the current one. If there is no parent, this option behaves the same way as `_self`.\n* `_top`: HTML 4: Load the response into the full original window, and cancel all other frames. HTML5: Load the response into the top-level browsing context (i.e., the browsing context that is an ancestor of the current one, and has no parent). If there is no parent, this option behaves the same way as `_self`.\n* _iframename_: The response is displayed in a named [`<iframe>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe "The HTML Inline Frame element (<iframe>) represents a nested browsing context, embedding another HTML page into the current one.").\n\nHTML5: This value can be overridden by a [`formtarget`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-formtarget) attribute on a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") or [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element.'}},{name:"accept",description:'A comma-separated list of content types that the server accepts.\n\n**Usage note:** This attribute has been removed in HTML5 and should no longer be used. Instead, use the [`accept`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-accept) attribute of the specific [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element.'},{name:"autocapitalize",description:"This is a nonstandard attribute used by iOS Safari Mobile which controls whether and how the text value for textual form control descendants should be automatically capitalized as it is entered/edited by the user. If the `autocapitalize` attribute is specified on an individual form control descendant, it trumps the form-wide `autocapitalize` setting. The non-deprecated values are available in iOS 5 and later. The default value is `sentences`. Possible values are:\n\n* `none`: Completely disables automatic capitalization\n* `sentences`: Automatically capitalize the first letter of sentences.\n* `words`: Automatically capitalize the first letter of words.\n* `characters`: Automatically capitalize all characters.\n* `on`: Deprecated since iOS 5.\n* `off`: Deprecated since iOS 5."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/form"}]},{name:"label",description:{kind:"markdown",value:"The label element represents a caption in a user interface. The caption can be associated with a specific form control, known as the label element's labeled control, either using the for attribute, or by putting the form control inside the label element itself."},attributes:[{name:"form",description:{kind:"markdown",value:'The [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") element with which the label is associated (its _form owner_). If specified, the value of the attribute is the `id` of a [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") element in the same document. This lets you place label elements anywhere within a document, not just as descendants of their form elements.'}},{name:"for",description:{kind:"markdown",value:"The [`id`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-id) of a [labelable](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Form_labelable) form-related element in the same document as the `<label>` element. The first element in the document with an `id` matching the value of the `for` attribute is the _labeled control_ for this label element, if it is a labelable element. If it is not labelable then the `for` attribute has no effect. If there are other elements which also match the `id` value, later in the document, they are not considered.\n\n**Note**: A `<label>` element can have both a `for` attribute and a contained control element, as long as the `for` attribute points to the contained control element."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/label"}]},{name:"input",description:{kind:"markdown",value:"The input element represents a typed data field, usually with a form control to allow the user to edit the data."},attributes:[{name:"accept"},{name:"alt"},{name:"autocomplete",valueSet:"inputautocomplete"},{name:"autofocus",valueSet:"v"},{name:"checked",valueSet:"v"},{name:"dirname"},{name:"disabled",valueSet:"v"},{name:"form"},{name:"formaction"},{name:"formenctype",valueSet:"et"},{name:"formmethod",valueSet:"fm"},{name:"formnovalidate",valueSet:"v"},{name:"formtarget"},{name:"height"},{name:"inputmode",valueSet:"im"},{name:"list"},{name:"max"},{name:"maxlength"},{name:"min"},{name:"minlength"},{name:"multiple",valueSet:"v"},{name:"name"},{name:"pattern"},{name:"placeholder"},{name:"readonly",valueSet:"v"},{name:"required",valueSet:"v"},{name:"size"},{name:"src"},{name:"step"},{name:"type",valueSet:"t"},{name:"value"},{name:"width"}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/input"}]},{name:"button",description:{kind:"markdown",value:"The button element represents a button labeled by its contents."},attributes:[{name:"autofocus",valueSet:"v",description:{kind:"markdown",value:"This Boolean attribute lets you specify that the button should have input focus when the page loads, unless the user overrides it, for example by typing in a different control. Only one form-associated element in a document can have this attribute specified."}},{name:"disabled",valueSet:"v",description:{kind:"markdown",value:'This Boolean attribute indicates that the user cannot interact with the button. If this attribute is not specified, the button inherits its setting from the containing element, for example [`<fieldset>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/fieldset "The HTML <fieldset> element is used to group several controls as well as labels (<label>) within a web form."); if there is no containing element with the **disabled** attribute set, then the button is enabled.\n\nFirefox will, unlike other browsers, by default, [persist the dynamic disabled state](https://stackoverflow.com/questions/5985839/bug-with-firefox-disabled-attribute-of-input-not-resetting-when-refreshing) of a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") across page loads. Use the [`autocomplete`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-autocomplete) attribute to control this feature.'}},{name:"form",description:{kind:"markdown",value:'The form element that the button is associated with (its _form owner_). The value of the attribute must be the **id** attribute of a [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") element in the same document. If this attribute is not specified, the `<button>` element will be associated to an ancestor [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") element, if one exists. This attribute enables you to associate `<button>` elements to [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") elements anywhere within a document, not just as descendants of [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") elements.'}},{name:"formaction",description:{kind:"markdown",value:"The URI of a program that processes the information submitted by the button. If specified, it overrides the [`action`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-action) attribute of the button's form owner."}},{name:"formenctype",valueSet:"et",description:{kind:"markdown",value:'If the button is a submit button, this attribute specifies the type of content that is used to submit the form to the server. Possible values are:\n\n* `application/x-www-form-urlencoded`: The default value if the attribute is not specified.\n* `multipart/form-data`: Use this value if you are using an [`<input>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") element with the [`type`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-type) attribute set to `file`.\n* `text/plain`\n\nIf this attribute is specified, it overrides the [`enctype`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-enctype) attribute of the button\'s form owner.'}},{name:"formmethod",valueSet:"fm",description:{kind:"markdown",value:"If the button is a submit button, this attribute specifies the HTTP method that the browser uses to submit the form. Possible values are:\n\n* `post`: The data from the form are included in the body of the form and sent to the server.\n* `get`: The data from the form are appended to the **form** attribute URI, with a '?' as a separator, and the resulting URI is sent to the server. Use this method when the form has no side-effects and contains only ASCII characters.\n\nIf specified, this attribute overrides the [`method`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-method) attribute of the button's form owner."}},{name:"formnovalidate",valueSet:"v",description:{kind:"markdown",value:"If the button is a submit button, this Boolean attribute specifies that the form is not to be validated when it is submitted. If this attribute is specified, it overrides the [`novalidate`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-novalidate) attribute of the button's form owner."}},{name:"formtarget",description:{kind:"markdown",value:"If the button is a submit button, this attribute is a name or keyword indicating where to display the response that is received after submitting the form. This is a name of, or keyword for, a _browsing context_ (for example, tab, window, or inline frame). If this attribute is specified, it overrides the [`target`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-target) attribute of the button's form owner. The following keywords have special meanings:\n\n* `_self`: Load the response into the same browsing context as the current one. This value is the default if the attribute is not specified.\n* `_blank`: Load the response into a new unnamed browsing context.\n* `_parent`: Load the response into the parent browsing context of the current one. If there is no parent, this option behaves the same way as `_self`.\n* `_top`: Load the response into the top-level browsing context (that is, the browsing context that is an ancestor of the current one, and has no parent). If there is no parent, this option behaves the same way as `_self`."}},{name:"name",description:{kind:"markdown",value:"The name of the button, which is submitted with the form data."}},{name:"type",valueSet:"bt",description:{kind:"markdown",value:"The type of the button. Possible values are:\n\n* `submit`: The button submits the form data to the server. This is the default if the attribute is not specified, or if the attribute is dynamically changed to an empty or invalid value.\n* `reset`: The button resets all the controls to their initial values.\n* `button`: The button has no default behavior. It can have client-side scripts associated with the element's events, which are triggered when the events occur."}},{name:"value",description:{kind:"markdown",value:"The initial value of the button. It defines the value associated with the button which is submitted with the form data. This value is passed to the server in params when the form is submitted."}},{name:"autocomplete",description:'The use of this attribute on a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") is nonstandard and Firefox-specific. By default, unlike other browsers, [Firefox persists the dynamic disabled state](https://stackoverflow.com/questions/5985839/bug-with-firefox-disabled-attribute-of-input-not-resetting-when-refreshing) of a [`<button>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button "The HTML <button> element represents a clickable button, which can be used in forms or anywhere in a document that needs simple, standard button functionality.") across page loads. Setting the value of this attribute to `off` (i.e. `autocomplete="off"`) disables this feature. See [bug 654072](https://bugzilla.mozilla.org/show_bug.cgi?id=654072 "if disabled state is changed with javascript, the normal state doesn\'t return after refreshing the page").'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/button"}]},{name:"select",description:{kind:"markdown",value:"The select element represents a control for selecting amongst a set of options."},attributes:[{name:"autocomplete",valueSet:"inputautocomplete",description:{kind:"markdown",value:'A [`DOMString`](https://developer.mozilla.org/en-US/docs/Web/API/DOMString "DOMString is a UTF-16 String. As JavaScript already uses such strings, DOMString is mapped directly to a String.") providing a hint for a [user agent\'s](https://developer.mozilla.org/en-US/docs/Glossary/user_agent "user agent\'s: A user agent is a computer program representing a person, for example, a browser in a Web context.") autocomplete feature. See [The HTML autocomplete attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) for a complete list of values and details on how to use autocomplete.'}},{name:"autofocus",valueSet:"v",description:{kind:"markdown",value:"This Boolean attribute lets you specify that a form control should have input focus when the page loads. Only one form element in a document can have the `autofocus` attribute."}},{name:"disabled",valueSet:"v",description:{kind:"markdown",value:"This Boolean attribute indicates that the user cannot interact with the control. If this attribute is not specified, the control inherits its setting from the containing element, for example `fieldset`; if there is no containing element with the `disabled` attribute set, then the control is enabled."}},{name:"form",description:{kind:"markdown",value:'This attribute lets you specify the form element to which the select element is associated (that is, its "form owner"). If this attribute is specified, its value must be the same as the `id` of a form element in the same document. This enables you to place select elements anywhere within a document, not just as descendants of their form elements.'}},{name:"multiple",valueSet:"v",description:{kind:"markdown",value:"This Boolean attribute indicates that multiple options can be selected in the list. If it is not specified, then only one option can be selected at a time. When `multiple` is specified, most browsers will show a scrolling list box instead of a single line dropdown."}},{name:"name",description:{kind:"markdown",value:"This attribute is used to specify the name of the control."}},{name:"required",valueSet:"v",description:{kind:"markdown",value:"A Boolean attribute indicating that an option with a non-empty string value must be selected."}},{name:"size",description:{kind:"markdown",value:"If the control is presented as a scrolling list box (e.g. when `multiple` is specified), this attribute represents the number of rows in the list that should be visible at one time. Browsers are not required to present a select element as a scrolled list box. The default value is 0.\n\n**Note:** According to the HTML5 specification, the default value for size should be 1; however, in practice, this has been found to break some web sites, and no other browser currently does that, so Mozilla has opted to continue to return 0 for the time being with Firefox."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/select"}]},{name:"datalist",description:{kind:"markdown",value:"The datalist element represents a set of option elements that represent predefined options for other controls. In the rendering, the datalist element represents nothing and it, along with its children, should be hidden."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/datalist"}]},{name:"optgroup",description:{kind:"markdown",value:"The optgroup element represents a group of option elements with a common label."},attributes:[{name:"disabled",valueSet:"v",description:{kind:"markdown",value:"If this Boolean attribute is set, none of the items in this option group is selectable. Often browsers grey out such control and it won't receive any browsing events, like mouse clicks or focus-related ones."}},{name:"label",description:{kind:"markdown",value:"The name of the group of options, which the browser can use when labeling the options in the user interface. This attribute is mandatory if this element is used."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/optgroup"}]},{name:"option",description:{kind:"markdown",value:"The option element represents an option in a select element or as part of a list of suggestions in a datalist element."},attributes:[{name:"disabled",valueSet:"v",description:{kind:"markdown",value:'If this Boolean attribute is set, this option is not checkable. Often browsers grey out such control and it won\'t receive any browsing event, like mouse clicks or focus-related ones. If this attribute is not set, the element can still be disabled if one of its ancestors is a disabled [`<optgroup>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/optgroup "The HTML <optgroup> element creates a grouping of options within a <select> element.") element.'}},{name:"label",description:{kind:"markdown",value:"This attribute is text for the label indicating the meaning of the option. If the `label` attribute isn't defined, its value is that of the element text content."}},{name:"selected",valueSet:"v",description:{kind:"markdown",value:'If present, this Boolean attribute indicates that the option is initially selected. If the `<option>` element is the descendant of a [`<select>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select "The HTML <select> element represents a control that provides a menu of options") element whose [`multiple`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select#attr-multiple) attribute is not set, only one single `<option>` of this [`<select>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select "The HTML <select> element represents a control that provides a menu of options") element may have the `selected` attribute.'}},{name:"value",description:{kind:"markdown",value:"The content of this attribute represents the value to be submitted with the form, should this option be selected. If this attribute is omitted, the value is taken from the text content of the option element."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/option"}]},{name:"textarea",description:{kind:"markdown",value:"The textarea element represents a multiline plain text edit control for the element's raw value. The contents of the control represent the control's default value."},attributes:[{name:"autocomplete",valueSet:"inputautocomplete",description:{kind:"markdown",value:'This attribute indicates whether the value of the control can be automatically completed by the browser. Possible values are:\n\n* `off`: The user must explicitly enter a value into this field for every use, or the document provides its own auto-completion method; the browser does not automatically complete the entry.\n* `on`: The browser can automatically complete the value based on values that the user has entered during previous uses.\n\nIf the `autocomplete` attribute is not specified on a `<textarea>` element, then the browser uses the `autocomplete` attribute value of the `<textarea>` element\'s form owner. The form owner is either the [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") element that this `<textarea>` element is a descendant of or the form element whose `id` is specified by the `form` attribute of the input element. For more information, see the [`autocomplete`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-autocomplete) attribute in [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.").'}},{name:"autofocus",valueSet:"v",description:{kind:"markdown",value:"This Boolean attribute lets you specify that a form control should have input focus when the page loads. Only one form-associated element in a document can have this attribute specified."}},{name:"cols",description:{kind:"markdown",value:"The visible width of the text control, in average character widths. If it is specified, it must be a positive integer. If it is not specified, the default value is `20`."}},{name:"dirname"},{name:"disabled",valueSet:"v",description:{kind:"markdown",value:'This Boolean attribute indicates that the user cannot interact with the control. If this attribute is not specified, the control inherits its setting from the containing element, for example [`<fieldset>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/fieldset "The HTML <fieldset> element is used to group several controls as well as labels (<label>) within a web form."); if there is no containing element when the `disabled` attribute is set, the control is enabled.'}},{name:"form",description:{kind:"markdown",value:'The form element that the `<textarea>` element is associated with (its "form owner"). The value of the attribute must be the `id` of a form element in the same document. If this attribute is not specified, the `<textarea>` element must be a descendant of a form element. This attribute enables you to place `<textarea>` elements anywhere within a document, not just as descendants of form elements.'}},{name:"inputmode",valueSet:"im"},{name:"maxlength",description:{kind:"markdown",value:"The maximum number of characters (unicode code points) that the user can enter. If this value isn't specified, the user can enter an unlimited number of characters."}},{name:"minlength",description:{kind:"markdown",value:"The minimum number of characters (unicode code points) required that the user should enter."}},{name:"name",description:{kind:"markdown",value:"The name of the control."}},{name:"placeholder",description:{kind:"markdown",value:'A hint to the user of what can be entered in the control. Carriage returns or line-feeds within the placeholder text must be treated as line breaks when rendering the hint.\n\n**Note:** Placeholders should only be used to show an example of the type of data that should be entered into a form; they are _not_ a substitute for a proper [`<label>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/label "The HTML <label> element represents a caption for an item in a user interface.") element tied to the input. See [Labels and placeholders](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Labels_and_placeholders "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") in [<input>: The Input (Form Input) element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") for a full explanation.'}},{name:"readonly",valueSet:"v",description:{kind:"markdown",value:"This Boolean attribute indicates that the user cannot modify the value of the control. Unlike the `disabled` attribute, the `readonly` attribute does not prevent the user from clicking or selecting in the control. The value of a read-only control is still submitted with the form."}},{name:"required",valueSet:"v",description:{kind:"markdown",value:"This attribute specifies that the user must fill in a value before submitting a form."}},{name:"rows",description:{kind:"markdown",value:"The number of visible text lines for the control."}},{name:"wrap",valueSet:"w",description:{kind:"markdown",value:"Indicates how the control wraps text. Possible values are:\n\n* `hard`: The browser automatically inserts line breaks (CR+LF) so that each line has no more than the width of the control; the `cols` attribute must also be specified for this to take effect.\n* `soft`: The browser ensures that all line breaks in the value consist of a CR+LF pair, but does not insert any additional line breaks.\n* `off` : Like `soft` but changes appearance to `white-space: pre` so line segments exceeding `cols` are not wrapped and the `<textarea>` becomes horizontally scrollable.\n\nIf this attribute is not specified, `soft` is its default value."}},{name:"autocapitalize",description:"This is a non-standard attribute supported by WebKit on iOS (therefore nearly all browsers running on iOS, including Safari, Firefox, and Chrome), which controls whether and how the text value should be automatically capitalized as it is entered/edited by the user. The non-deprecated values are available in iOS 5 and later. Possible values are:\n\n* `none`: Completely disables automatic capitalization.\n* `sentences`: Automatically capitalize the first letter of sentences.\n* `words`: Automatically capitalize the first letter of words.\n* `characters`: Automatically capitalize all characters.\n* `on`: Deprecated since iOS 5.\n* `off`: Deprecated since iOS 5."},{name:"spellcheck",description:"Specifies whether the `<textarea>` is subject to spell checking by the underlying browser/OS. the value can be:\n\n* `true`: Indicates that the element needs to have its spelling and grammar checked.\n* `default` : Indicates that the element is to act according to a default behavior, possibly based on the parent element's own `spellcheck` value.\n* `false` : Indicates that the element should not be spell checked."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/textarea"}]},{name:"output",description:{kind:"markdown",value:"The output element represents the result of a calculation performed by the application, or the result of a user action."},attributes:[{name:"for",description:{kind:"markdown",value:"A space-separated list of other elements’ [`id`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id)s, indicating that those elements contributed input values to (or otherwise affected) the calculation."}},{name:"form",description:{kind:"markdown",value:'The [form element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form) that this element is associated with (its "form owner"). The value of the attribute must be an `id` of a form element in the same document. If this attribute is not specified, the output element must be a descendant of a form element. This attribute enables you to place output elements anywhere within a document, not just as descendants of their form elements.'}},{name:"name",description:{kind:"markdown",value:'The name of the element, exposed in the [`HTMLFormElement`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement "The HTMLFormElement interface represents a <form> element in the DOM; it allows access to and in some cases modification of aspects of the form, as well as access to its component elements.") API.'}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/output"}]},{name:"progress",description:{kind:"markdown",value:"The progress element represents the completion progress of a task. The progress is either indeterminate, indicating that progress is being made but that it is not clear how much more work remains to be done before the task is complete (e.g. because the task is waiting for a remote host to respond), or the progress is a number in the range zero to a maximum, giving the fraction of work that has so far been completed."},attributes:[{name:"value",description:{kind:"markdown",value:"This attribute specifies how much of the task that has been completed. It must be a valid floating point number between 0 and `max`, or between 0 and 1 if `max` is omitted. If there is no `value` attribute, the progress bar is indeterminate; this indicates that an activity is ongoing with no indication of how long it is expected to take."}},{name:"max",description:{kind:"markdown",value:"This attribute describes how much work the task indicated by the `progress` element requires. The `max` attribute, if present, must have a value greater than zero and be a valid floating point number. The default value is 1."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/progress"}]},{name:"meter",description:{kind:"markdown",value:"The meter element represents a scalar measurement within a known range, or a fractional value; for example disk usage, the relevance of a query result, or the fraction of a voting population to have selected a particular candidate."},attributes:[{name:"value",description:{kind:"markdown",value:"The current numeric value. This must be between the minimum and maximum values (`min` attribute and `max` attribute) if they are specified. If unspecified or malformed, the value is 0. If specified, but not within the range given by the `min` attribute and `max` attribute, the value is equal to the nearest end of the range.\n\n**Usage note:** Unless the `value` attribute is between `0` and `1` (inclusive), the `min` and `max` attributes should define the range so that the `value` attribute's value is within it."}},{name:"min",description:{kind:"markdown",value:"The lower numeric bound of the measured range. This must be less than the maximum value (`max` attribute), if specified. If unspecified, the minimum value is 0."}},{name:"max",description:{kind:"markdown",value:"The upper numeric bound of the measured range. This must be greater than the minimum value (`min` attribute), if specified. If unspecified, the maximum value is 1."}},{name:"low",description:{kind:"markdown",value:"The upper numeric bound of the low end of the measured range. This must be greater than the minimum value (`min` attribute), and it also must be less than the high value and maximum value (`high` attribute and `max` attribute, respectively), if any are specified. If unspecified, or if less than the minimum value, the `low` value is equal to the minimum value."}},{name:"high",description:{kind:"markdown",value:"The lower numeric bound of the high end of the measured range. This must be less than the maximum value (`max` attribute), and it also must be greater than the low value and minimum value (`low` attribute and **min** attribute, respectively), if any are specified. If unspecified, or if greater than the maximum value, the `high` value is equal to the maximum value."}},{name:"optimum",description:{kind:"markdown",value:"This attribute indicates the optimal numeric value. It must be within the range (as defined by the `min` attribute and `max` attribute). When used with the `low` attribute and `high` attribute, it gives an indication where along the range is considered preferable. For example, if it is between the `min` attribute and the `low` attribute, then the lower range is considered preferred."}},{name:"form",description:"This attribute associates the element with a `form` element that has ownership of the `meter` element. For example, a `meter` might be displaying a range corresponding to an `input` element of `type` _number_. This attribute is only used if the `meter` element is being used as a form-associated element; even then, it may be omitted if the element appears as a descendant of a `form` element."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/meter"}]},{name:"fieldset",description:{kind:"markdown",value:"The fieldset element represents a set of form controls optionally grouped under a common name."},attributes:[{name:"disabled",valueSet:"v",description:{kind:"markdown",value:"If this Boolean attribute is set, all form controls that are descendants of the `<fieldset>`, are disabled, meaning they are not editable and won't be submitted along with the `<form>`. They won't receive any browsing events, like mouse clicks or focus-related events. By default browsers display such controls grayed out. Note that form elements inside the [`<legend>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/legend \"The HTML <legend> element represents a caption for the content of its parent <fieldset>.\") element won't be disabled."}},{name:"form",description:{kind:"markdown",value:'This attribute takes the value of the `id` attribute of a [`<form>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form "The HTML <form> element represents a document section that contains interactive controls for submitting information to a web server.") element you want the `<fieldset>` to be part of, even if it is not inside the form.'}},{name:"name",description:{kind:"markdown",value:'The name associated with the group.\n\n**Note**: The caption for the fieldset is given by the first [`<legend>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/legend "The HTML <legend> element represents a caption for the content of its parent <fieldset>.") element nested inside it.'}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/fieldset"}]},{name:"legend",description:{kind:"markdown",value:"The legend element represents a caption for the rest of the contents of the legend element's parent fieldset element, if any."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/legend"}]},{name:"details",description:{kind:"markdown",value:"The details element represents a disclosure widget from which the user can obtain additional information or controls."},attributes:[{name:"open",valueSet:"v",description:{kind:"markdown",value:"This Boolean attribute indicates whether or not the details — that is, the contents of the `<details>` element — are currently visible. The default, `false`, means the details are not visible."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/details"}]},{name:"summary",description:{kind:"markdown",value:"The summary element represents a summary, caption, or legend for the rest of the contents of the summary element's parent details element, if any."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/summary"}]},{name:"dialog",description:{kind:"markdown",value:"The dialog element represents a part of an application that a user interacts with to perform a task, for example a dialog box, inspector, or window."},attributes:[{name:"open",description:"Indicates that the dialog is active and available for interaction. When the `open` attribute is not set, the dialog shouldn't be shown to the user."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/dialog"}]},{name:"script",description:{kind:"markdown",value:"The script element allows authors to include dynamic script and data blocks in their documents. The element does not represent content for the user."},attributes:[{name:"src",description:{kind:"markdown",value:"This attribute specifies the URI of an external script; this can be used as an alternative to embedding a script directly within a document.\n\nIf a `script` element has a `src` attribute specified, it should not have a script embedded inside its tags."}},{name:"type",description:{kind:"markdown",value:'This attribute indicates the type of script represented. The value of this attribute will be in one of the following categories:\n\n* **Omitted or a JavaScript MIME type:** For HTML5-compliant browsers this indicates the script is JavaScript. HTML5 specification urges authors to omit the attribute rather than provide a redundant MIME type. In earlier browsers, this identified the scripting language of the embedded or imported (via the `src` attribute) code. JavaScript MIME types are [listed in the specification](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types#JavaScript_types).\n* **`module`:** For HTML5-compliant browsers the code is treated as a JavaScript module. The processing of the script contents is not affected by the `charset` and `defer` attributes. For information on using `module`, see [ES6 in Depth: Modules](https://hacks.mozilla.org/2015/08/es6-in-depth-modules/). Code may behave differently when the `module` keyword is used.\n* **Any other value:** The embedded content is treated as a data block which won\'t be processed by the browser. Developers must use a valid MIME type that is not a JavaScript MIME type to denote data blocks. The `src` attribute will be ignored.\n\n**Note:** in Firefox you could specify the version of JavaScript contained in a `<script>` element by including a non-standard `version` parameter inside the `type` attribute — for example `type="text/javascript;version=1.8"`. This has been removed in Firefox 59 (see [bug 1428745](https://bugzilla.mozilla.org/show_bug.cgi?id=1428745 "FIXED: Remove support for version parameter from script loader")).'}},{name:"charset"},{name:"async",valueSet:"v",description:{kind:"markdown",value:'This is a Boolean attribute indicating that the browser should, if possible, load the script asynchronously.\n\nThis attribute must not be used if the `src` attribute is absent (i.e. for inline scripts). If it is included in this case it will have no effect.\n\nBrowsers usually assume the worst case scenario and load scripts synchronously, (i.e. `async="false"`) during HTML parsing.\n\nDynamically inserted scripts (using [`document.createElement()`](https://developer.mozilla.org/en-US/docs/Web/API/Document/createElement "In an HTML document, the document.createElement() method creates the HTML element specified by tagName, or an HTMLUnknownElement if tagName isn\'t recognized.")) load asynchronously by default, so to turn on synchronous loading (i.e. scripts load in the order they were inserted) set `async="false"`.\n\nSee [Browser compatibility](#Browser_compatibility) for notes on browser support. See also [Async scripts for asm.js](https://developer.mozilla.org/en-US/docs/Games/Techniques/Async_scripts).'}},{name:"defer",valueSet:"v",description:{kind:"markdown",value:'This Boolean attribute is set to indicate to a browser that the script is meant to be executed after the document has been parsed, but before firing [`DOMContentLoaded`](https://developer.mozilla.org/en-US/docs/Web/Events/DOMContentLoaded "/en-US/docs/Web/Events/DOMContentLoaded").\n\nScripts with the `defer` attribute will prevent the `DOMContentLoaded` event from firing until the script has loaded and finished evaluating.\n\nThis attribute must not be used if the `src` attribute is absent (i.e. for inline scripts), in this case it would have no effect.\n\nTo achieve a similar effect for dynamically inserted scripts use `async="false"` instead. Scripts with the `defer` attribute will execute in the order in which they appear in the document.'}},{name:"crossorigin",valueSet:"xo",description:{kind:"markdown",value:'Normal `script` elements pass minimal information to the [`window.onerror`](https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onerror "The onerror property of the GlobalEventHandlers mixin is an EventHandler that processes error events.") for scripts which do not pass the standard [CORS](https://developer.mozilla.org/en-US/docs/Glossary/CORS "CORS: CORS (Cross-Origin Resource Sharing) is a system, consisting of transmitting HTTP headers, that determines whether browsers block frontend JavaScript code from accessing responses for cross-origin requests.") checks. To allow error logging for sites which use a separate domain for static media, use this attribute. See [CORS settings attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes) for a more descriptive explanation of its valid arguments.'}},{name:"nonce",description:{kind:"markdown",value:"A cryptographic nonce (number used once) to whitelist inline scripts in a [script-src Content-Security-Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/script-src). The server must generate a unique nonce value each time it transmits a policy. It is critical to provide a nonce that cannot be guessed as bypassing a resource's policy is otherwise trivial."}},{name:"integrity",description:"This attribute contains inline metadata that a user agent can use to verify that a fetched resource has been delivered free of unexpected manipulation. See [Subresource Integrity](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity)."},{name:"nomodule",description:"This Boolean attribute is set to indicate that the script should not be executed in browsers that support [ES2015 modules](https://hacks.mozilla.org/2015/08/es6-in-depth-modules/) — in effect, this can be used to serve fallback scripts to older browsers that do not support modular JavaScript code."},{name:"referrerpolicy",description:'Indicates which [referrer](https://developer.mozilla.org/en-US/docs/Web/API/Document/referrer) to send when fetching the script, or resources fetched by the script:\n\n* `no-referrer`: The [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will not be sent.\n* `no-referrer-when-downgrade` (default): The [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will not be sent to [origin](https://developer.mozilla.org/en-US/docs/Glossary/origin "origin: Web content\'s origin is defined by the scheme (protocol), host (domain), and port of the URL used to access it. Two objects have the same origin only when the scheme, host, and port all match.")s without [TLS](https://developer.mozilla.org/en-US/docs/Glossary/TLS "TLS: Transport Layer Security (TLS), previously known as Secure Sockets Layer (SSL), is a protocol used by applications to communicate securely across a network, preventing tampering with and eavesdropping on email, web browsing, messaging, and other protocols.") ([HTTPS](https://developer.mozilla.org/en-US/docs/Glossary/HTTPS "HTTPS: HTTPS (HTTP Secure) is an encrypted version of the HTTP protocol. It usually uses SSL or TLS to encrypt all communication between a client and a server. This secure connection allows clients to safely exchange sensitive data with a server, for example for banking activities or online shopping.")).\n* `origin`: The sent referrer will be limited to the origin of the referring page: its [scheme](https://developer.mozilla.org/en-US/docs/Archive/Mozilla/URIScheme), [host](https://developer.mozilla.org/en-US/docs/Glossary/host "host: A host is a device connected to the Internet (or a local network). Some hosts called servers offer additional services like serving webpages or storing files and emails."), and [port](https://developer.mozilla.org/en-US/docs/Glossary/port "port: For a computer connected to a network with an IP address, a port is a communication endpoint. Ports are designated by numbers, and below 1024 each port is associated by default with a specific protocol.").\n* `origin-when-cross-origin`: The referrer sent to other origins will be limited to the scheme, the host, and the port. Navigations on the same origin will still include the path.\n* `same-origin`: A referrer will be sent for [same origin](https://developer.mozilla.org/en-US/docs/Glossary/Same-origin_policy "same origin: The same-origin policy is a critical security mechanism that restricts how a document or script loaded from one origin can interact with a resource from another origin."), but cross-origin requests will contain no referrer information.\n* `strict-origin`: Only send the origin of the document as the referrer when the protocol security level stays the same (e.g. HTTPS→HTTPS), but don\'t send it to a less secure destination (e.g. HTTPS→HTTP).\n* `strict-origin-when-cross-origin`: Send a full URL when performing a same-origin request, but only send the origin when the protocol security level stays the same (e.g.HTTPS→HTTPS), and send no header to a less secure destination (e.g. HTTPS→HTTP).\n* `unsafe-url`: The referrer will include the origin _and_ the path (but not the [fragment](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/hash), [password](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/password), or [username](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/username)). **This value is unsafe**, because it leaks origins and paths from TLS-protected resources to insecure origins.\n\n**Note**: An empty string value (`""`) is both the default value, and a fallback value if `referrerpolicy` is not supported. If `referrerpolicy` is not explicitly specified on the `<script>` element, it will adopt a higher-level referrer policy, i.e. one set on the whole document or domain. If a higher-level policy is not available, the empty string is treated as being equivalent to `no-referrer-when-downgrade`.'},{name:"text",description:"Like the `textContent` attribute, this attribute sets the text content of the element. Unlike the `textContent` attribute, however, this attribute is evaluated as executable code after the node is inserted into the DOM."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/script"}]},{name:"noscript",description:{kind:"markdown",value:"The noscript element represents nothing if scripting is enabled, and represents its children if scripting is disabled. It is used to present different markup to user agents that support scripting and those that don't support scripting, by affecting how the document is parsed."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/noscript"}]},{name:"template",description:{kind:"markdown",value:"The template element is used to declare fragments of HTML that can be cloned and inserted in the document by script."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/template"}]},{name:"canvas",description:{kind:"markdown",value:"The canvas element provides scripts with a resolution-dependent bitmap canvas, which can be used for rendering graphs, game graphics, art, or other visual images on the fly."},attributes:[{name:"width",description:{kind:"markdown",value:"The width of the coordinate space in CSS pixels. Defaults to 300."}},{name:"height",description:{kind:"markdown",value:"The height of the coordinate space in CSS pixels. Defaults to 150."}},{name:"moz-opaque",description:"Lets the canvas know whether or not translucency will be a factor. If the canvas knows there's no translucency, painting performance can be optimized. This is only supported by Mozilla-based browsers; use the standardized [`canvas.getContext('2d', { alpha: false })`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/getContext \"The HTMLCanvasElement.getContext() method returns a drawing context on the canvas, or null if the context identifier is not supported.\") instead."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/canvas"}]}],globalAttributes:[{name:"accesskey",description:{kind:"markdown",value:"Provides a hint for generating a keyboard shortcut for the current element. This attribute consists of a space-separated list of characters. The browser should use the first one that exists on the computer keyboard layout."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/accesskey"}]},{name:"autocapitalize",description:{kind:"markdown",value:"Controls whether and how text input is automatically capitalized as it is entered/edited by the user. It can have the following values:\n\n* `off` or `none`, no autocapitalization is applied (all letters default to lowercase)\n* `on` or `sentences`, the first letter of each sentence defaults to a capital letter; all other letters default to lowercase\n* `words`, the first letter of each word defaults to a capital letter; all other letters default to lowercase\n* `characters`, all letters should default to uppercase"},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/autocapitalize"}]},{name:"class",description:{kind:"markdown",value:'A space-separated list of the classes of the element. Classes allows CSS and JavaScript to select and access specific elements via the [class selectors](/en-US/docs/Web/CSS/Class_selectors) or functions like the method [`Document.getElementsByClassName()`](/en-US/docs/Web/API/Document/getElementsByClassName "returns an array-like object of all child elements which have all of the given class names.").'},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/class"}]},{name:"contenteditable",description:{kind:"markdown",value:"An enumerated attribute indicating if the element should be editable by the user. If so, the browser modifies its widget to allow editing. The attribute must take one of the following values:\n\n* `true` or the _empty string_, which indicates that the element must be editable;\n* `false`, which indicates that the element must not be editable."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/contenteditable"}]},{name:"contextmenu",description:{kind:"markdown",value:'The `[**id**](#attr-id)` of a [`<menu>`](/en-US/docs/Web/HTML/Element/menu "The HTML <menu> element represents a group of commands that a user can perform or activate. This includes both list menus, which might appear across the top of a screen, as well as context menus, such as those that might appear underneath a button after it has been clicked.") to use as the contextual menu for this element.'},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/contextmenu"}]},{name:"dir",description:{kind:"markdown",value:"An enumerated attribute indicating the directionality of the element's text. It can have the following values:\n\n* `ltr`, which means _left to right_ and is to be used for languages that are written from the left to the right (like English);\n* `rtl`, which means _right to left_ and is to be used for languages that are written from the right to the left (like Arabic);\n* `auto`, which lets the user agent decide. It uses a basic algorithm as it parses the characters inside the element until it finds a character with a strong directionality, then it applies that directionality to the whole element."},valueSet:"d",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/dir"}]},{name:"draggable",description:{kind:"markdown",value:"An enumerated attribute indicating whether the element can be dragged, using the [Drag and Drop API](/en-us/docs/DragDrop/Drag_and_Drop). It can have the following values:\n\n* `true`, which indicates that the element may be dragged\n* `false`, which indicates that the element may not be dragged."},valueSet:"b",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/draggable"}]},{name:"dropzone",description:{kind:"markdown",value:"An enumerated attribute indicating what types of content can be dropped on an element, using the [Drag and Drop API](/en-US/docs/DragDrop/Drag_and_Drop). It can have the following values:\n\n* `copy`, which indicates that dropping will create a copy of the element that was dragged\n* `move`, which indicates that the element that was dragged will be moved to this new location.\n* `link`, will create a link to the dragged data."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/dropzone"}]},{name:"exportparts",description:{kind:"markdown",value:"Used to transitively export shadow parts from a nested shadow tree into a containing light tree."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/exportparts"}]},{name:"hidden",description:{kind:"markdown",value:"A Boolean attribute indicates that the element is not yet, or is no longer, _relevant_. For example, it can be used to hide elements of the page that can't be used until the login process has been completed. The browser won't render such elements. This attribute must not be used to hide content that could legitimately be shown."},valueSet:"v",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/hidden"}]},{name:"id",description:{kind:"markdown",value:"Defines a unique identifier (ID) which must be unique in the whole document. Its purpose is to identify the element when linking (using a fragment identifier), scripting, or styling (with CSS)."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/id"}]},{name:"inputmode",description:{kind:"markdown",value:'Provides a hint to browsers as to the type of virtual keyboard configuration to use when editing this element or its contents. Used primarily on [`<input>`](/en-US/docs/Web/HTML/Element/input "The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent.") elements, but is usable on any element while in `[contenteditable](/en-US/docs/Web/HTML/Global_attributes#attr-contenteditable)` mode.'},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/inputmode"}]},{name:"is",description:{kind:"markdown",value:"Allows you to specify that a standard HTML element should behave like a registered custom built-in element (see [Using custom elements](/en-US/docs/Web/Web_Components/Using_custom_elements) for more details)."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/is"}]},{name:"itemid",description:{kind:"markdown",value:"The unique, global identifier of an item."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/itemid"}]},{name:"itemprop",description:{kind:"markdown",value:"Used to add properties to an item. Every HTML element may have an `itemprop` attribute specified, where an `itemprop` consists of a name and value pair."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/itemprop"}]},{name:"itemref",description:{kind:"markdown",value:"Properties that are not descendants of an element with the `itemscope` attribute can be associated with the item using an `itemref`. It provides a list of element ids (not `itemid`s) with additional properties elsewhere in the document."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/itemref"}]},{name:"itemscope",description:{kind:"markdown",value:"`itemscope` (usually) works along with `[itemtype](/en-US/docs/Web/HTML/Global_attributes#attr-itemtype)` to specify that the HTML contained in a block is about a particular item. `itemscope` creates the Item and defines the scope of the `itemtype` associated with it. `itemtype` is a valid URL of a vocabulary (such as [schema.org](https://schema.org/)) that describes the item and its properties context."},valueSet:"v",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/itemscope"}]},{name:"itemtype",description:{kind:"markdown",value:"Specifies the URL of the vocabulary that will be used to define `itemprop`s (item properties) in the data structure. `[itemscope](/en-US/docs/Web/HTML/Global_attributes#attr-itemscope)` is used to set the scope of where in the data structure the vocabulary set by `itemtype` will be active."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/itemtype"}]},{name:"lang",description:{kind:"markdown",value:"Helps define the language of an element: the language that non-editable elements are in, or the language that editable elements should be written in by the user. The attribute contains one “language tag” (made of hyphen-separated “language subtags”) in the format defined in [_Tags for Identifying Languages (BCP47)_](https://www.ietf.org/rfc/bcp/bcp47.txt). [**xml:lang**](#attr-xml:lang) has priority over it."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/lang"}]},{name:"part",description:{kind:"markdown",value:'A space-separated list of the part names of the element. Part names allows CSS to select and style specific elements in a shadow tree via the [`::part`](/en-US/docs/Web/CSS/::part "The ::part CSS pseudo-element represents any element within a shadow tree that has a matching part attribute.") pseudo-element.'},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/part"}]},{name:"role",valueSet:"roles"},{name:"slot",description:{kind:"markdown",value:"Assigns a slot in a [shadow DOM](/en-US/docs/Web/Web_Components/Shadow_DOM) shadow tree to an element: An element with a `slot` attribute is assigned to the slot created by the [`<slot>`](/en-US/docs/Web/HTML/Element/slot \"The HTML <slot> element—part of the Web Components technology suite—is a placeholder inside a web component that you can fill with your own markup, which lets you create separate DOM trees and present them together.\") element whose `[name](/en-US/docs/Web/HTML/Element/slot#attr-name)` attribute's value matches that `slot` attribute's value."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/slot"}]},{name:"spellcheck",description:{kind:"markdown",value:"An enumerated attribute defines whether the element may be checked for spelling errors. It may have the following values:\n\n* `true`, which indicates that the element should be, if possible, checked for spelling errors;\n* `false`, which indicates that the element should not be checked for spelling errors."},valueSet:"b",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/spellcheck"}]},{name:"style",description:{kind:"markdown",value:'Contains [CSS](/en-US/docs/Web/CSS) styling declarations to be applied to the element. Note that it is recommended for styles to be defined in a separate file or files. This attribute and the [`<style>`](/en-US/docs/Web/HTML/Element/style "The HTML <style> element contains style information for a document, or part of a document.") element have mainly the purpose of allowing for quick styling, for example for testing purposes.'},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/style"}]},{name:"tabindex",description:{kind:"markdown",value:"An integer attribute indicating if the element can take input focus (is _focusable_), if it should participate to sequential keyboard navigation, and if so, at what position. It can take several values:\n\n* a _negative value_ means that the element should be focusable, but should not be reachable via sequential keyboard navigation;\n* `0` means that the element should be focusable and reachable via sequential keyboard navigation, but its relative order is defined by the platform convention;\n* a _positive value_ means that the element should be focusable and reachable via sequential keyboard navigation; the order in which the elements are focused is the increasing value of the [**tabindex**](#attr-tabindex). If several elements share the same tabindex, their relative order follows their relative positions in the document."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/tabindex"}]},{name:"title",description:{kind:"markdown",value:"Contains a text representing advisory information related to the element it belongs to. Such information can typically, but not necessarily, be presented to the user as a tooltip."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/title"}]},{name:"translate",description:{kind:"markdown",value:"An enumerated attribute that is used to specify whether an element's attribute values and the values of its [`Text`](/en-US/docs/Web/API/Text \"The Text interface represents the textual content of Element or Attr. If an element has no markup within its content, it has a single child implementing Text that contains the element's text. However, if the element contains markup, it is parsed into information items and Text nodes that form its children.\") node children are to be translated when the page is localized, or whether to leave them unchanged. It can have the following values:\n\n* empty string and `yes`, which indicates that the element will be translated.\n* `no`, which indicates that the element will not be translated."},valueSet:"y",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/translate"}]},{name:"onabort",description:{kind:"markdown",value:"The loading of a resource has been aborted."}},{name:"onblur",description:{kind:"markdown",value:"An element has lost focus (does not bubble)."}},{name:"oncanplay",description:{kind:"markdown",value:"The user agent can play the media, but estimates that not enough data has been loaded to play the media up to its end without having to stop for further buffering of content."}},{name:"oncanplaythrough",description:{kind:"markdown",value:"The user agent can play the media up to its end without having to stop for further buffering of content."}},{name:"onchange",description:{kind:"markdown",value:"The change event is fired for <input>, <select>, and <textarea> elements when a change to the element's value is committed by the user."}},{name:"onclick",description:{kind:"markdown",value:"A pointing device button has been pressed and released on an element."}},{name:"oncontextmenu",description:{kind:"markdown",value:"The right button of the mouse is clicked (before the context menu is displayed)."}},{name:"ondblclick",description:{kind:"markdown",value:"A pointing device button is clicked twice on an element."}},{name:"ondrag",description:{kind:"markdown",value:"An element or text selection is being dragged (every 350ms)."}},{name:"ondragend",description:{kind:"markdown",value:"A drag operation is being ended (by releasing a mouse button or hitting the escape key)."}},{name:"ondragenter",description:{kind:"markdown",value:"A dragged element or text selection enters a valid drop target."}},{name:"ondragleave",description:{kind:"markdown",value:"A dragged element or text selection leaves a valid drop target."}},{name:"ondragover",description:{kind:"markdown",value:"An element or text selection is being dragged over a valid drop target (every 350ms)."}},{name:"ondragstart",description:{kind:"markdown",value:"The user starts dragging an element or text selection."}},{name:"ondrop",description:{kind:"markdown",value:"An element is dropped on a valid drop target."}},{name:"ondurationchange",description:{kind:"markdown",value:"The duration attribute has been updated."}},{name:"onemptied",description:{kind:"markdown",value:"The media has become empty; for example, this event is sent if the media has already been loaded (or partially loaded), and the load() method is called to reload it."}},{name:"onended",description:{kind:"markdown",value:"Playback has stopped because the end of the media was reached."}},{name:"onerror",description:{kind:"markdown",value:"A resource failed to load."}},{name:"onfocus",description:{kind:"markdown",value:"An element has received focus (does not bubble)."}},{name:"onformchange"},{name:"onforminput"},{name:"oninput",description:{kind:"markdown",value:"The value of an element changes or the content of an element with the attribute contenteditable is modified."}},{name:"oninvalid",description:{kind:"markdown",value:"A submittable element has been checked and doesn't satisfy its constraints."}},{name:"onkeydown",description:{kind:"markdown",value:"A key is pressed down."}},{name:"onkeypress",description:{kind:"markdown",value:"A key is pressed down and that key normally produces a character value (use input instead)."}},{name:"onkeyup",description:{kind:"markdown",value:"A key is released."}},{name:"onload",description:{kind:"markdown",value:"A resource and its dependent resources have finished loading."}},{name:"onloadeddata",description:{kind:"markdown",value:"The first frame of the media has finished loading."}},{name:"onloadedmetadata",description:{kind:"markdown",value:"The metadata has been loaded."}},{name:"onloadstart",description:{kind:"markdown",value:"Progress has begun."}},{name:"onmousedown",description:{kind:"markdown",value:"A pointing device button (usually a mouse) is pressed on an element."}},{name:"onmousemove",description:{kind:"markdown",value:"A pointing device is moved over an element."}},{name:"onmouseout",description:{kind:"markdown",value:"A pointing device is moved off the element that has the listener attached or off one of its children."}},{name:"onmouseover",description:{kind:"markdown",value:"A pointing device is moved onto the element that has the listener attached or onto one of its children."}},{name:"onmouseup",description:{kind:"markdown",value:"A pointing device button is released over an element."}},{name:"onmousewheel"},{name:"onpause",description:{kind:"markdown",value:"Playback has been paused."}},{name:"onplay",description:{kind:"markdown",value:"Playback has begun."}},{name:"onplaying",description:{kind:"markdown",value:"Playback is ready to start after having been paused or delayed due to lack of data."}},{name:"onprogress",description:{kind:"markdown",value:"In progress."}},{name:"onratechange",description:{kind:"markdown",value:"The playback rate has changed."}},{name:"onreset",description:{kind:"markdown",value:"A form is reset."}},{name:"onresize",description:{kind:"markdown",value:"The document view has been resized."}},{name:"onreadystatechange",description:{kind:"markdown",value:"The readyState attribute of a document has changed."}},{name:"onscroll",description:{kind:"markdown",value:"The document view or an element has been scrolled."}},{name:"onseeked",description:{kind:"markdown",value:"A seek operation completed."}},{name:"onseeking",description:{kind:"markdown",value:"A seek operation began."}},{name:"onselect",description:{kind:"markdown",value:"Some text is being selected."}},{name:"onshow",description:{kind:"markdown",value:"A contextmenu event was fired on/bubbled to an element that has a contextmenu attribute"}},{name:"onstalled",description:{kind:"markdown",value:"The user agent is trying to fetch media data, but data is unexpectedly not forthcoming."}},{name:"onsubmit",description:{kind:"markdown",value:"A form is submitted."}},{name:"onsuspend",description:{kind:"markdown",value:"Media data loading has been suspended."}},{name:"ontimeupdate",description:{kind:"markdown",value:"The time indicated by the currentTime attribute has been updated."}},{name:"onvolumechange",description:{kind:"markdown",value:"The volume has changed."}},{name:"onwaiting",description:{kind:"markdown",value:"Playback has stopped because of a temporary lack of data."}},{name:"aria-activedescendant",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-activedescendant"}],description:{kind:"markdown",value:"Identifies the currently active element when DOM focus is on a [`composite`](https://www.w3.org/TR/wai-aria-1.1/#composite) widget, [`textbox`](https://www.w3.org/TR/wai-aria-1.1/#textbox), [`group`](https://www.w3.org/TR/wai-aria-1.1/#group), or [`application`](https://www.w3.org/TR/wai-aria-1.1/#application)."}},{name:"aria-atomic",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-atomic"}],description:{kind:"markdown",value:"Indicates whether [assistive technologies](https://www.w3.org/TR/wai-aria-1.1/#dfn-assistive-technology) will present all, or only parts of, the changed region based on the change notifications defined by the [`aria-relevant`](https://www.w3.org/TR/wai-aria-1.1/#aria-relevant) attribute."}},{name:"aria-autocomplete",valueSet:"autocomplete",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-autocomplete"}],description:{kind:"markdown",value:"Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be presented if they are made."}},{name:"aria-busy",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-busy"}],description:{kind:"markdown",value:"Indicates an element is being modified and that assistive technologies _MAY_ want to wait until the modifications are complete before exposing them to the user."}},{name:"aria-checked",valueSet:"tristate",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-checked"}],description:{kind:"markdown",value:'Indicates the current "checked" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) of checkboxes, radio buttons, and other [widgets](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget). See related [`aria-pressed`](https://www.w3.org/TR/wai-aria-1.1/#aria-pressed) and [`aria-selected`](https://www.w3.org/TR/wai-aria-1.1/#aria-selected).'}},{name:"aria-colcount",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-colcount"}],description:{kind:"markdown",value:"Defines the total number of columns in a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-colindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-colindex)."}},{name:"aria-colindex",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-colindex"}],description:{kind:"markdown",value:"Defines an [element's](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) column index or position with respect to the total number of columns within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-colcount`](https://www.w3.org/TR/wai-aria-1.1/#aria-colcount) and [`aria-colspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-colspan)."}},{name:"aria-colspan",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-colspan"}],description:{kind:"markdown",value:"Defines the number of columns spanned by a cell or gridcell within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-colindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-colindex) and [`aria-rowspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowspan)."}},{name:"aria-controls",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-controls"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) whose contents or presence are controlled by the current element. See related [`aria-owns`](https://www.w3.org/TR/wai-aria-1.1/#aria-owns)."}},{name:"aria-current",valueSet:"current",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-current"}],description:{kind:"markdown",value:"Indicates the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) that represents the current item within a container or set of related elements."}},{name:"aria-describedat",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-describedat"}]},{name:"aria-describedby",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-describedby"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) that describes the [object](https://www.w3.org/TR/wai-aria-1.1/#dfn-object). See related [`aria-labelledby`](https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby)."}},{name:"aria-disabled",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-disabled"}],description:{kind:"markdown",value:"Indicates that the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is [perceivable](https://www.w3.org/TR/wai-aria-1.1/#dfn-perceivable) but disabled, so it is not editable or otherwise [operable](https://www.w3.org/TR/wai-aria-1.1/#dfn-operable). See related [`aria-hidden`](https://www.w3.org/TR/wai-aria-1.1/#aria-hidden) and [`aria-readonly`](https://www.w3.org/TR/wai-aria-1.1/#aria-readonly)."}},{name:"aria-dropeffect",valueSet:"dropeffect",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-dropeffect"}],description:{kind:"markdown",value:"\\[Deprecated in ARIA 1.1\\] Indicates what functions can be performed when a dragged object is released on the drop target."}},{name:"aria-errormessage",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-errormessage"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) that provides an error message for the [object](https://www.w3.org/TR/wai-aria-1.1/#dfn-object). See related [`aria-invalid`](https://www.w3.org/TR/wai-aria-1.1/#aria-invalid) and [`aria-describedby`](https://www.w3.org/TR/wai-aria-1.1/#aria-describedby)."}},{name:"aria-expanded",valueSet:"u",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-expanded"}],description:{kind:"markdown",value:"Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed."}},{name:"aria-flowto",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-flowto"}],description:{kind:"markdown",value:"Identifies the next [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) in an alternate reading order of content which, at the user's discretion, allows assistive technology to override the general default of reading in document source order."}},{name:"aria-grabbed",valueSet:"u",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-grabbed"}],description:{kind:"markdown",value:'\\[Deprecated in ARIA 1.1\\] Indicates an element\'s "grabbed" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) in a drag-and-drop operation.'}},{name:"aria-haspopup",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-haspopup"}],description:{kind:"markdown",value:"Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element)."}},{name:"aria-hidden",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-hidden"}],description:{kind:"markdown",value:"Indicates whether the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is exposed to an accessibility API. See related [`aria-disabled`](https://www.w3.org/TR/wai-aria-1.1/#aria-disabled)."}},{name:"aria-invalid",valueSet:"invalid",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-invalid"}],description:{kind:"markdown",value:"Indicates the entered value does not conform to the format expected by the application. See related [`aria-errormessage`](https://www.w3.org/TR/wai-aria-1.1/#aria-errormessage)."}},{name:"aria-kbdshortcuts",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-kbdshortcuts"}]},{name:"aria-label",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-label"}],description:{kind:"markdown",value:"Defines a string value that labels the current element. See related [`aria-labelledby`](https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby)."}},{name:"aria-labelledby",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) that labels the current element. See related [`aria-describedby`](https://www.w3.org/TR/wai-aria-1.1/#aria-describedby)."}},{name:"aria-level",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-level"}],description:{kind:"markdown",value:"Defines the hierarchical level of an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) within a structure."}},{name:"aria-live",valueSet:"live",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-live"}],description:{kind:"markdown",value:"Indicates that an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) will be updated, and describes the types of updates the [user agents](https://www.w3.org/TR/wai-aria-1.1/#dfn-user-agent), [assistive technologies](https://www.w3.org/TR/wai-aria-1.1/#dfn-assistive-technology), and user can expect from the [live region](https://www.w3.org/TR/wai-aria-1.1/#dfn-live-region)."}},{name:"aria-modal",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-modal"}],description:{kind:"markdown",value:"Indicates whether an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is modal when displayed."}},{name:"aria-multiline",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-multiline"}],description:{kind:"markdown",value:"Indicates whether a text box accepts multiple lines of input or only a single line."}},{name:"aria-multiselectable",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-multiselectable"}],description:{kind:"markdown",value:"Indicates that the user may select more than one item from the current selectable descendants."}},{name:"aria-orientation",valueSet:"orientation",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-orientation"}],description:{kind:"markdown",value:"Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous."}},{name:"aria-owns",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-owns"}],description:{kind:"markdown",value:"Identifies an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) in order to define a visual, functional, or contextual parent/child [relationship](https://www.w3.org/TR/wai-aria-1.1/#dfn-relationship) between DOM elements where the DOM hierarchy cannot be used to represent the relationship. See related [`aria-controls`](https://www.w3.org/TR/wai-aria-1.1/#aria-controls)."}},{name:"aria-placeholder",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-placeholder"}],description:{kind:"markdown",value:"Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value. A hint could be a sample value or a brief description of the expected format."}},{name:"aria-posinset",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-posinset"}],description:{kind:"markdown",value:"Defines an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element)'s number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. See related [`aria-setsize`](https://www.w3.org/TR/wai-aria-1.1/#aria-setsize)."}},{name:"aria-pressed",valueSet:"tristate",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-pressed"}],description:{kind:"markdown",value:'Indicates the current "pressed" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) of toggle buttons. See related [`aria-checked`](https://www.w3.org/TR/wai-aria-1.1/#aria-checked) and [`aria-selected`](https://www.w3.org/TR/wai-aria-1.1/#aria-selected).'}},{name:"aria-readonly",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-readonly"}],description:{kind:"markdown",value:"Indicates that the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is not editable, but is otherwise [operable](https://www.w3.org/TR/wai-aria-1.1/#dfn-operable). See related [`aria-disabled`](https://www.w3.org/TR/wai-aria-1.1/#aria-disabled)."}},{name:"aria-relevant",valueSet:"relevant",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-relevant"}],description:{kind:"markdown",value:"Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified. See related [`aria-atomic`](https://www.w3.org/TR/wai-aria-1.1/#aria-atomic)."}},{name:"aria-required",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-required"}],description:{kind:"markdown",value:"Indicates that user input is required on the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) before a form may be submitted."}},{name:"aria-roledescription",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-roledescription"}],description:{kind:"markdown",value:"Defines a human-readable, author-localized description for the [role](https://www.w3.org/TR/wai-aria-1.1/#dfn-role) of an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element)."}},{name:"aria-rowcount",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-rowcount"}],description:{kind:"markdown",value:"Defines the total number of rows in a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-rowindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowindex)."}},{name:"aria-rowindex",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-rowindex"}],description:{kind:"markdown",value:"Defines an [element's](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) row index or position with respect to the total number of rows within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-rowcount`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowcount) and [`aria-rowspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowspan)."}},{name:"aria-rowspan",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-rowspan"}],description:{kind:"markdown",value:"Defines the number of rows spanned by a cell or gridcell within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-rowindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowindex) and [`aria-colspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-colspan)."}},{name:"aria-selected",valueSet:"u",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-selected"}],description:{kind:"markdown",value:'Indicates the current "selected" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) of various [widgets](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget). See related [`aria-checked`](https://www.w3.org/TR/wai-aria-1.1/#aria-checked) and [`aria-pressed`](https://www.w3.org/TR/wai-aria-1.1/#aria-pressed).'}},{name:"aria-setsize",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-setsize"}],description:{kind:"markdown",value:"Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. See related [`aria-posinset`](https://www.w3.org/TR/wai-aria-1.1/#aria-posinset)."}},{name:"aria-sort",valueSet:"sort",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-sort"}],description:{kind:"markdown",value:"Indicates if items in a table or grid are sorted in ascending or descending order."}},{name:"aria-valuemax",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuemax"}],description:{kind:"markdown",value:"Defines the maximum allowed value for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget)."}},{name:"aria-valuemin",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuemin"}],description:{kind:"markdown",value:"Defines the minimum allowed value for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget)."}},{name:"aria-valuenow",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuenow"}],description:{kind:"markdown",value:"Defines the current value for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget). See related [`aria-valuetext`](https://www.w3.org/TR/wai-aria-1.1/#aria-valuetext)."}},{name:"aria-valuetext",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuetext"}],description:{kind:"markdown",value:"Defines the human readable text alternative of [`aria-valuenow`](https://www.w3.org/TR/wai-aria-1.1/#aria-valuenow) for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget)."}},{name:"aria-details",description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) that provides a detailed, extended description for the [object](https://www.w3.org/TR/wai-aria-1.1/#dfn-object). See related [`aria-describedby`](https://www.w3.org/TR/wai-aria-1.1/#aria-describedby)."}},{name:"aria-keyshortcuts",description:{kind:"markdown",value:"Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element."}}],valueSets:[{name:"b",values:[{name:"true"},{name:"false"}]},{name:"u",values:[{name:"true"},{name:"false"},{name:"undefined"}]},{name:"o",values:[{name:"on"},{name:"off"}]},{name:"y",values:[{name:"yes"},{name:"no"}]},{name:"w",values:[{name:"soft"},{name:"hard"}]},{name:"d",values:[{name:"ltr"},{name:"rtl"},{name:"auto"}]},{name:"m",values:[{name:"GET",description:{kind:"markdown",value:"Corresponds to the HTTP [GET method](https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.3); form data are appended to the `action` attribute URI with a '?' as separator, and the resulting URI is sent to the server. Use this method when the form has no side-effects and contains only ASCII characters."}},{name:"POST",description:{kind:"markdown",value:"Corresponds to the HTTP [POST method](https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.5); form data are included in the body of the form and sent to the server."}},{name:"dialog",description:{kind:"markdown",value:"Use when the form is inside a [`<dialog>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog) element to close the dialog when submitted."}}]},{name:"fm",values:[{name:"GET"},{name:"POST"}]},{name:"s",values:[{name:"row"},{name:"col"},{name:"rowgroup"},{name:"colgroup"}]},{name:"t",values:[{name:"hidden"},{name:"text"},{name:"search"},{name:"tel"},{name:"url"},{name:"email"},{name:"password"},{name:"datetime"},{name:"date"},{name:"month"},{name:"week"},{name:"time"},{name:"datetime-local"},{name:"number"},{name:"range"},{name:"color"},{name:"checkbox"},{name:"radio"},{name:"file"},{name:"submit"},{name:"image"},{name:"reset"},{name:"button"}]},{name:"im",values:[{name:"verbatim"},{name:"latin"},{name:"latin-name"},{name:"latin-prose"},{name:"full-width-latin"},{name:"kana"},{name:"kana-name"},{name:"katakana"},{name:"numeric"},{name:"tel"},{name:"email"},{name:"url"}]},{name:"bt",values:[{name:"button"},{name:"submit"},{name:"reset"},{name:"menu"}]},{name:"lt",values:[{name:"1"},{name:"a"},{name:"A"},{name:"i"},{name:"I"}]},{name:"mt",values:[{name:"context"},{name:"toolbar"}]},{name:"mit",values:[{name:"command"},{name:"checkbox"},{name:"radio"}]},{name:"et",values:[{name:"application/x-www-form-urlencoded"},{name:"multipart/form-data"},{name:"text/plain"}]},{name:"tk",values:[{name:"subtitles"},{name:"captions"},{name:"descriptions"},{name:"chapters"},{name:"metadata"}]},{name:"pl",values:[{name:"none"},{name:"metadata"},{name:"auto"}]},{name:"sh",values:[{name:"circle"},{name:"default"},{name:"poly"},{name:"rect"}]},{name:"xo",values:[{name:"anonymous"},{name:"use-credentials"}]},{name:"sb",values:[{name:"allow-forms"},{name:"allow-modals"},{name:"allow-pointer-lock"},{name:"allow-popups"},{name:"allow-popups-to-escape-sandbox"},{name:"allow-same-origin"},{name:"allow-scripts"},{name:"allow-top-navigation"}]},{name:"tristate",values:[{name:"true"},{name:"false"},{name:"mixed"},{name:"undefined"}]},{name:"inputautocomplete",values:[{name:"additional-name"},{name:"address-level1"},{name:"address-level2"},{name:"address-level3"},{name:"address-level4"},{name:"address-line1"},{name:"address-line2"},{name:"address-line3"},{name:"bday"},{name:"bday-year"},{name:"bday-day"},{name:"bday-month"},{name:"billing"},{name:"cc-additional-name"},{name:"cc-csc"},{name:"cc-exp"},{name:"cc-exp-month"},{name:"cc-exp-year"},{name:"cc-family-name"},{name:"cc-given-name"},{name:"cc-name"},{name:"cc-number"},{name:"cc-type"},{name:"country"},{name:"country-name"},{name:"current-password"},{name:"email"},{name:"family-name"},{name:"fax"},{name:"given-name"},{name:"home"},{name:"honorific-prefix"},{name:"honorific-suffix"},{name:"impp"},{name:"language"},{name:"mobile"},{name:"name"},{name:"new-password"},{name:"nickname"},{name:"organization"},{name:"organization-title"},{name:"pager"},{name:"photo"},{name:"postal-code"},{name:"sex"},{name:"shipping"},{name:"street-address"},{name:"tel-area-code"},{name:"tel"},{name:"tel-country-code"},{name:"tel-extension"},{name:"tel-local"},{name:"tel-local-prefix"},{name:"tel-local-suffix"},{name:"tel-national"},{name:"transaction-amount"},{name:"transaction-currency"},{name:"url"},{name:"username"},{name:"work"}]},{name:"autocomplete",values:[{name:"inline"},{name:"list"},{name:"both"},{name:"none"}]},{name:"current",values:[{name:"page"},{name:"step"},{name:"location"},{name:"date"},{name:"time"},{name:"true"},{name:"false"}]},{name:"dropeffect",values:[{name:"copy"},{name:"move"},{name:"link"},{name:"execute"},{name:"popup"},{name:"none"}]},{name:"invalid",values:[{name:"grammar"},{name:"false"},{name:"spelling"},{name:"true"}]},{name:"live",values:[{name:"off"},{name:"polite"},{name:"assertive"}]},{name:"orientation",values:[{name:"vertical"},{name:"horizontal"},{name:"undefined"}]},{name:"relevant",values:[{name:"additions"},{name:"removals"},{name:"text"},{name:"all"},{name:"additions text"}]},{name:"sort",values:[{name:"ascending"},{name:"descending"},{name:"none"},{name:"other"}]},{name:"roles",values:[{name:"alert"},{name:"alertdialog"},{name:"button"},{name:"checkbox"},{name:"dialog"},{name:"gridcell"},{name:"link"},{name:"log"},{name:"marquee"},{name:"menuitem"},{name:"menuitemcheckbox"},{name:"menuitemradio"},{name:"option"},{name:"progressbar"},{name:"radio"},{name:"scrollbar"},{name:"searchbox"},{name:"slider"},{name:"spinbutton"},{name:"status"},{name:"switch"},{name:"tab"},{name:"tabpanel"},{name:"textbox"},{name:"timer"},{name:"tooltip"},{name:"treeitem"},{name:"combobox"},{name:"grid"},{name:"listbox"},{name:"menu"},{name:"menubar"},{name:"radiogroup"},{name:"tablist"},{name:"tree"},{name:"treegrid"},{name:"application"},{name:"article"},{name:"cell"},{name:"columnheader"},{name:"definition"},{name:"directory"},{name:"document"},{name:"feed"},{name:"figure"},{name:"group"},{name:"heading"},{name:"img"},{name:"list"},{name:"listitem"},{name:"math"},{name:"none"},{name:"note"},{name:"presentation"},{name:"region"},{name:"row"},{name:"rowgroup"},{name:"rowheader"},{name:"separator"},{name:"table"},{name:"term"},{name:"text"},{name:"toolbar"},{name:"banner"},{name:"complementary"},{name:"contentinfo"},{name:"form"},{name:"main"},{name:"navigation"},{name:"region"},{name:"search"},{name:"doc-abstract"},{name:"doc-acknowledgments"},{name:"doc-afterword"},{name:"doc-appendix"},{name:"doc-backlink"},{name:"doc-biblioentry"},{name:"doc-bibliography"},{name:"doc-biblioref"},{name:"doc-chapter"},{name:"doc-colophon"},{name:"doc-conclusion"},{name:"doc-cover"},{name:"doc-credit"},{name:"doc-credits"},{name:"doc-dedication"},{name:"doc-endnote"},{name:"doc-endnotes"},{name:"doc-epigraph"},{name:"doc-epilogue"},{name:"doc-errata"},{name:"doc-example"},{name:"doc-footnote"},{name:"doc-foreword"},{name:"doc-glossary"},{name:"doc-glossref"},{name:"doc-index"},{name:"doc-introduction"},{name:"doc-noteref"},{name:"doc-notice"},{name:"doc-pagebreak"},{name:"doc-pagelist"},{name:"doc-part"},{name:"doc-preface"},{name:"doc-prologue"},{name:"doc-pullquote"},{name:"doc-qna"},{name:"doc-subtitle"},{name:"doc-tip"},{name:"doc-toc"}]},{name:"metanames",values:[{name:"application-name"},{name:"author"},{name:"description"},{name:"format-detection"},{name:"generator"},{name:"keywords"},{name:"publisher"},{name:"referrer"},{name:"robots"},{name:"theme-color"},{name:"viewport"}]}]};!function(){function e(e){this.dataProviders=[],this.setDataProviders(!1!==e.useDefaultDataProvider,e.customDataProviders||[])}e.prototype.setDataProviders=function(e,t){var n;this.dataProviders=[],e&&this.dataProviders.push(new Ge("html5",at)),(n=this.dataProviders).push.apply(n,t)},e.prototype.getDataProviders=function(){return this.dataProviders}}();var ot=function(){function e(e,t,n){var i=this;this._languageId=e,this._worker=t,this._disposables=[],this._listener=Object.create(null);var r=function(e){var t,n=e.getModeId();n===i._languageId&&(i._listener[e.uri.toString()]=e.onDidChangeContent((function(){clearTimeout(t),t=setTimeout((function(){return i._doValidate(e.uri,n)}),500)})),i._doValidate(e.uri,n))},a=function(e){S.editor.setModelMarkers(e,i._languageId,[]);var t=e.uri.toString(),n=i._listener[t];n&&(n.dispose(),delete i._listener[t])};this._disposables.push(S.editor.onDidCreateModel(r)),this._disposables.push(S.editor.onWillDisposeModel((function(e){a(e)}))),this._disposables.push(S.editor.onDidChangeModelLanguage((function(e){a(e.model),r(e.model)}))),this._disposables.push(n.onDidChange((function(e){S.editor.getModels().forEach((function(e){e.getModeId()===i._languageId&&(a(e),r(e))}))}))),this._disposables.push({dispose:function(){for(var e in i._listener)i._listener[e].dispose()}}),S.editor.getModels().forEach(r)}return e.prototype.dispose=function(){this._disposables.forEach((function(e){return e&&e.dispose()})),this._disposables=[]},e.prototype._doValidate=function(e,t){this._worker(e).then((function(n){return n.doValidation(e.toString()).then((function(n){var i=n.map((function(e){return n="number"==typeof(t=e).code?String(t.code):t.code,{severity:st(t.severity),startLineNumber:t.range.start.line+1,startColumn:t.range.start.character+1,endLineNumber:t.range.end.line+1,endColumn:t.range.end.character+1,message:t.message,code:n,source:t.source};var t,n}));S.editor.setModelMarkers(S.editor.getModel(e),t,i)}))})).then(void 0,(function(e){console.error(e)}))},e}();function st(e){switch(e){case p.Error:return S.MarkerSeverity.Error;case p.Warning:return S.MarkerSeverity.Warning;case p.Information:return S.MarkerSeverity.Info;case p.Hint:return S.MarkerSeverity.Hint;default:return S.MarkerSeverity.Info}}function lt(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function ct(e){if(e)return new S.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function ht(e){var t=S.languages.CompletionItemKind;switch(e){case H.Text:return t.Text;case H.Method:return t.Method;case H.Function:return t.Function;case H.Constructor:return t.Constructor;case H.Field:return t.Field;case H.Variable:return t.Variable;case H.Class:return t.Class;case H.Interface:return t.Interface;case H.Module:return t.Module;case H.Property:return t.Property;case H.Unit:return t.Unit;case H.Value:return t.Value;case H.Enum:return t.Enum;case H.Keyword:return t.Keyword;case H.Snippet:return t.Snippet;case H.Color:return t.Color;case H.File:return t.File;case H.Reference:return t.Reference}return t.Property}function dt(e){if(e)return{range:ct(e.range),text:e.newText}}var ut=function(){function e(e){this._worker=e}return Object.defineProperty(e.prototype,"triggerCharacters",{get:function(){return[".",":","<",'"',"=","/"]},enumerable:!1,configurable:!0}),e.prototype.provideCompletionItems=function(e,t,n,i){var r=e.uri;return this._worker(r).then((function(e){return e.doComplete(r.toString(),lt(t))})).then((function(n){if(n){var i=e.getWordUntilPosition(t),r=new S.Range(t.lineNumber,i.startColumn,t.lineNumber,i.endColumn),a=n.items.map((function(e){var t,n={label:e.label,insertText:e.insertText||e.label,sortText:e.sortText,filterText:e.filterText,documentation:e.documentation,detail:e.detail,range:r,kind:ht(e.kind)};return e.textEdit&&(void 0!==(t=e.textEdit).insert&&void 0!==t.replace?n.range={insert:ct(e.textEdit.insert),replace:ct(e.textEdit.replace)}:n.range=ct(e.textEdit.range),n.insertText=e.textEdit.newText),e.additionalTextEdits&&(n.additionalTextEdits=e.additionalTextEdits.map(dt)),e.insertTextFormat===C.Snippet&&(n.insertTextRules=S.languages.CompletionItemInsertTextRule.InsertAsSnippet),n}));return{isIncomplete:n.isIncomplete,suggestions:a}}}))},e}();function pt(e){return"string"==typeof e?{value:e}:(t=e)&&"object"==typeof t&&"string"==typeof t.kind?"plaintext"===e.kind?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+"\n"+e.value+"\n```\n"};var t}function mt(e){if(e)return Array.isArray(e)?e.map(pt):[pt(e)]}var ft=function(){function e(e){this._worker=e}return e.prototype.provideHover=function(e,t,n){var i=e.uri;return this._worker(i).then((function(e){return e.doHover(i.toString(),lt(t))})).then((function(e){if(e)return{range:ct(e.range),contents:mt(e.contents)}}))},e}();function gt(e){var t=S.languages.DocumentHighlightKind;switch(e){case j.Read:return t.Read;case j.Write:return t.Write;case j.Text:return t.Text}return t.Text}var bt=function(){function e(e){this._worker=e}return e.prototype.provideDocumentHighlights=function(e,t,n){var i=e.uri;return this._worker(i).then((function(e){return e.findDocumentHighlights(i.toString(),lt(t))})).then((function(e){if(e)return e.map((function(e){return{range:ct(e.range),kind:gt(e.kind)}}))}))},e}();function _t(e){var t=S.languages.SymbolKind;switch(e){case G.File:return t.Array;case G.Module:return t.Module;case G.Namespace:return t.Namespace;case G.Package:return t.Package;case G.Class:return t.Class;case G.Method:return t.Method;case G.Property:return t.Property;case G.Field:return t.Field;case G.Constructor:return t.Constructor;case G.Enum:return t.Enum;case G.Interface:return t.Interface;case G.Function:return t.Function;case G.Variable:return t.Variable;case G.Constant:return t.Constant;case G.String:return t.String;case G.Number:return t.Number;case G.Boolean:return t.Boolean;case G.Array:return t.Array}return t.Function}var wt=function(){function e(e){this._worker=e}return e.prototype.provideDocumentSymbols=function(e,t){var n=e.uri;return this._worker(n).then((function(e){return e.findDocumentSymbols(n.toString())})).then((function(e){if(e)return e.map((function(e){return{name:e.name,detail:"",containerName:e.containerName,kind:_t(e.kind),tags:[],range:ct(e.location.range),selectionRange:ct(e.location.range)}}))}))},e}(),vt=function(){function e(e){this._worker=e}return e.prototype.provideLinks=function(e,t){var n=e.uri;return this._worker(n).then((function(e){return e.findDocumentLinks(n.toString())})).then((function(e){if(e)return{links:e.map((function(e){return{range:ct(e.range),url:e.target}}))}}))},e}();function yt(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var Tt=function(){function e(e){this._worker=e}return e.prototype.provideDocumentFormattingEdits=function(e,t,n){var i=e.uri;return this._worker(i).then((function(e){return e.format(i.toString(),null,yt(t)).then((function(e){if(e&&0!==e.length)return e.map(dt)}))}))},e}(),kt=function(){function e(e){this._worker=e}return e.prototype.provideDocumentRangeFormattingEdits=function(e,t,n,i){var r=e.uri;return this._worker(r).then((function(e){return e.format(r.toString(),function(e){if(e)return{start:lt(e.getStartPosition()),end:lt(e.getEndPosition())}}(t),yt(n)).then((function(e){if(e&&0!==e.length)return e.map(dt)}))}))},e}(),St=function(){function e(e){this._worker=e}return e.prototype.provideRenameEdits=function(e,t,n,i){var r=e.uri;return this._worker(r).then((function(e){return e.doRename(r.toString(),lt(t),n)})).then((function(e){return function(e){if(!e||!e.changes)return;var t=[];for(var n in e.changes)for(var i=S.Uri.parse(n),r=0,a=e.changes[n];r<a.length;r++){var o=a[r];t.push({resource:i,edit:{range:ct(o.range),text:o.newText}})}return{edits:t}}(e)}))},e}();var xt=function(){function e(e){this._worker=e}return e.prototype.provideFoldingRanges=function(e,t,n){var i=e.uri;return this._worker(i).then((function(e){return e.getFoldingRanges(i.toString(),t)})).then((function(e){if(e)return e.map((function(e){var t={start:e.startLine+1,end:e.endLine+1};return void 0!==e.kind&&(t.kind=function(e){switch(e){case h.Comment:return S.languages.FoldingRangeKind.Comment;case h.Imports:return S.languages.FoldingRangeKind.Imports;case h.Region:return S.languages.FoldingRangeKind.Region}}(e.kind)),t}))}))},e}();var Mt=function(){function e(e){this._worker=e}return e.prototype.provideSelectionRanges=function(e,t,n){var i=e.uri;return this._worker(i).then((function(e){return e.getSelectionRanges(i.toString(),t.map(lt))})).then((function(e){if(e)return e.map((function(e){for(var t=[];e;)t.push({range:ct(e.range)}),e=e.parent;return t}))}))},e}();function Lt(e){var t=new x(e),n=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.getLanguageServiceWorker.apply(t,e)},i=e.languageId;S.languages.registerCompletionItemProvider(i,new ut(n)),S.languages.registerHoverProvider(i,new ft(n)),S.languages.registerDocumentHighlightProvider(i,new bt(n)),S.languages.registerLinkProvider(i,new vt(n)),S.languages.registerFoldingRangeProvider(i,new xt(n)),S.languages.registerDocumentSymbolProvider(i,new wt(n)),S.languages.registerSelectionRangeProvider(i,new Mt(n)),S.languages.registerRenameProvider(i,new St(n)),"html"===i&&(S.languages.registerDocumentFormattingEditProvider(i,new Tt(n)),S.languages.registerDocumentRangeFormattingEditProvider(i,new kt(n)),new ot(i,n,e))}function Et(e){var t=[],n=[],i=new x(e);t.push(i);var r,a,o=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.getLanguageServiceWorker.apply(i,e)};return r=e.languageId,a=e.modeConfiguration,Rt(n),a.completionItems&&n.push(S.languages.registerCompletionItemProvider(r,new ut(o))),a.hovers&&n.push(S.languages.registerHoverProvider(r,new ft(o))),a.documentHighlights&&n.push(S.languages.registerDocumentHighlightProvider(r,new bt(o))),a.links&&n.push(S.languages.registerLinkProvider(r,new vt(o))),a.documentSymbols&&n.push(S.languages.registerDocumentSymbolProvider(r,new wt(o))),a.rename&&n.push(S.languages.registerRenameProvider(r,new St(o))),a.foldingRanges&&n.push(S.languages.registerFoldingRangeProvider(r,new xt(o))),a.selectionRanges&&n.push(S.languages.registerSelectionRangeProvider(r,new Mt(o))),a.documentFormattingEdits&&n.push(S.languages.registerDocumentFormattingEditProvider(r,new Tt(o))),a.documentRangeFormattingEdits&&n.push(S.languages.registerDocumentRangeFormattingEditProvider(r,new kt(o))),a.diagnostics&&n.push(new ot(r,o,e)),t.push(At(n)),At(t)}function At(e){return{dispose:function(){return Rt(e)}}}function Rt(e){for(;e.length;)e.pop().dispose()}n.d(t,"setupMode1",(function(){return Lt})),n.d(t,"setupMode",(function(){return Et}))},910:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return m}));var i,r,a,o=(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});if("object"==typeof e)a="win32"===e.platform;else if("object"==typeof navigator){var s=navigator.userAgent;a=s.indexOf("Windows")>=0}var l=/^\w[\w\d+.-]*$/,c=/^\//,h=/^\/\//;var d="",u="/",p=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,m=function(){function e(e,t,n,i,r,a){void 0===a&&(a=!1),"object"==typeof e?(this.scheme=e.scheme||d,this.authority=e.authority||d,this.path=e.path||d,this.query=e.query||d,this.fragment=e.fragment||d):(this.scheme=function(e,t){return e||t?e:"file"}(e,a),this.authority=t||d,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==u&&(t=u+t):t=u}return t}(this.scheme,n||d),this.query=i||d,this.fragment=r||d,function(e,t){if(!e.scheme&&t)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+e.authority+'", path: "'+e.path+'", query: "'+e.query+'", fragment: "'+e.fragment+'"}');if(e.scheme&&!l.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!c.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(h.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,a))}return e.isUri=function(t){return t instanceof e||!!t&&("string"==typeof t.authority&&"string"==typeof t.fragment&&"string"==typeof t.path&&"string"==typeof t.query&&"string"==typeof t.scheme&&"function"==typeof t.fsPath&&"function"==typeof t.with&&"function"==typeof t.toString)},Object.defineProperty(e.prototype,"fsPath",{get:function(){return v(this,!1)},enumerable:!0,configurable:!0}),e.prototype.with=function(e){if(!e)return this;var t=e.scheme,n=e.authority,i=e.path,r=e.query,a=e.fragment;return void 0===t?t=this.scheme:null===t&&(t=d),void 0===n?n=this.authority:null===n&&(n=d),void 0===i?i=this.path:null===i&&(i=d),void 0===r?r=this.query:null===r&&(r=d),void 0===a?a=this.fragment:null===a&&(a=d),t===this.scheme&&n===this.authority&&i===this.path&&r===this.query&&a===this.fragment?this:new g(t,n,i,r,a)},e.parse=function(e,t){void 0===t&&(t=!1);var n=p.exec(e);return n?new g(n[2]||d,k(n[4]||d),k(n[5]||d),k(n[7]||d),k(n[9]||d),t):new g(d,d,d,d,d)},e.file=function(e){var t=d;if(a&&(e=e.replace(/\\/g,u)),e[0]===u&&e[1]===u){var n=e.indexOf(u,2);-1===n?(t=e.substring(2),e=u):(t=e.substring(2,n),e=e.substring(n)||u)}return new g("file",t,e,d,d)},e.from=function(e){return new g(e.scheme,e.authority,e.path,e.query,e.fragment)},e.prototype.toString=function(e){return void 0===e&&(e=!1),y(this,e)},e.prototype.toJSON=function(){return this},e.revive=function(t){if(t){if(t instanceof e)return t;var n=new g(t);return n._formatted=t.external,n._fsPath=t._sep===f?t.fsPath:null,n}return t},e}(),f=a?1:void 0,g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._formatted=null,t._fsPath=null,t}return o(t,e),Object.defineProperty(t.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=v(this,!1)),this._fsPath},enumerable:!0,configurable:!0}),t.prototype.toString=function(e){return void 0===e&&(e=!1),e?y(this,!0):(this._formatted||(this._formatted=y(this,!1)),this._formatted)},t.prototype.toJSON=function(){var e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=f),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e},t}(m),b=((r={})[58]="%3A",r[47]="%2F",r[63]="%3F",r[35]="%23",r[91]="%5B",r[93]="%5D",r[64]="%40",r[33]="%21",r[36]="%24",r[38]="%26",r[39]="%27",r[40]="%28",r[41]="%29",r[42]="%2A",r[43]="%2B",r[44]="%2C",r[59]="%3B",r[61]="%3D",r[32]="%20",r);function _(e,t){for(var n=void 0,i=-1,r=0;r<e.length;r++){var a=e.charCodeAt(r);if(a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||45===a||46===a||95===a||126===a||t&&47===a)-1!==i&&(n+=encodeURIComponent(e.substring(i,r)),i=-1),void 0!==n&&(n+=e.charAt(r));else{void 0===n&&(n=e.substr(0,r));var o=b[a];void 0!==o?(-1!==i&&(n+=encodeURIComponent(e.substring(i,r)),i=-1),n+=o):-1===i&&(i=r)}}return-1!==i&&(n+=encodeURIComponent(e.substring(i))),void 0!==n?n:e}function w(e){for(var t=void 0,n=0;n<e.length;n++){var i=e.charCodeAt(n);35===i||63===i?(void 0===t&&(t=e.substr(0,n)),t+=b[i]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function v(e,t){var n;return n=e.authority&&e.path.length>1&&"file"===e.scheme?"//"+e.authority+e.path:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,a&&(n=n.replace(/\//g,"\\")),n}function y(e,t){var n=t?w:_,i="",r=e.scheme,a=e.authority,o=e.path,s=e.query,l=e.fragment;if(r&&(i+=r,i+=":"),(a||"file"===r)&&(i+=u,i+=u),a){var c=a.indexOf("@");if(-1!==c){var h=a.substr(0,c);a=a.substr(c+1),-1===(c=h.indexOf(":"))?i+=n(h,!1):(i+=n(h.substr(0,c),!1),i+=":",i+=n(h.substr(c+1),!1)),i+="@"}-1===(c=(a=a.toLowerCase()).indexOf(":"))?i+=n(a,!1):(i+=n(a.substr(0,c),!1),i+=a.substr(c))}if(o){if(o.length>=3&&47===o.charCodeAt(0)&&58===o.charCodeAt(2))(d=o.charCodeAt(1))>=65&&d<=90&&(o="/"+String.fromCharCode(d+32)+":"+o.substr(3));else if(o.length>=2&&58===o.charCodeAt(1)){var d;(d=o.charCodeAt(0))>=65&&d<=90&&(o=String.fromCharCode(d+32)+":"+o.substr(2))}i+=n(o,!0)}return s&&(i+="?",i+=n(s,!1)),l&&(i+="#",i+=t?l:_(l,!1)),i}var T=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function k(e){return e.match(T)?e.replace(T,(function(e){return function e(t){try{return decodeURIComponent(t)}catch(n){return t.length>3?t.substr(0,3)+e(t.substr(3)):t}}(e)})):e}}).call(this,n(343))}}]); \ No newline at end of file diff --git a/docs/50.50.js b/docs/50.50.js new file mode 100644 index 00000000..77a08e1a --- /dev/null +++ b/docs/50.50.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[50],{956:function(e,_,t){"use strict";t.r(_),t.d(_,"conf",(function(){return r})),t.d(_,"language",(function(){return i}));var r={comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},i={defaultToken:"",tokenPostfix:".sql",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["AES128","AES256","ALL","ALLOWOVERWRITE","ANALYSE","ANALYZE","AND","ANY","ARRAY","AS","ASC","AUTHORIZATION","BACKUP","BETWEEN","BINARY","BLANKSASNULL","BOTH","BYTEDICT","BZIP2","CASE","CAST","CHECK","COLLATE","COLUMN","CONSTRAINT","CREATE","CREDENTIALS","CROSS","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURRENT_USER_ID","DEFAULT","DEFERRABLE","DEFLATE","DEFRAG","DELTA","DELTA32K","DESC","DISABLE","DISTINCT","DO","ELSE","EMPTYASNULL","ENABLE","ENCODE","ENCRYPT","ENCRYPTION","END","EXCEPT","EXPLICIT","FALSE","FOR","FOREIGN","FREEZE","FROM","FULL","GLOBALDICT256","GLOBALDICT64K","GRANT","GROUP","GZIP","HAVING","IDENTITY","IGNORE","ILIKE","IN","INITIALLY","INNER","INTERSECT","INTO","IS","ISNULL","JOIN","LEADING","LEFT","LIKE","LIMIT","LOCALTIME","LOCALTIMESTAMP","LUN","LUNS","LZO","LZOP","MINUS","MOSTLY13","MOSTLY32","MOSTLY8","NATURAL","NEW","NOT","NOTNULL","NULL","NULLS","OFF","OFFLINE","OFFSET","OID","OLD","ON","ONLY","OPEN","OR","ORDER","OUTER","OVERLAPS","PARALLEL","PARTITION","PERCENT","PERMISSIONS","PLACING","PRIMARY","RAW","READRATIO","RECOVER","REFERENCES","RESPECT","REJECTLOG","RESORT","RESTORE","RIGHT","SELECT","SESSION_USER","SIMILAR","SNAPSHOT","SOME","SYSDATE","SYSTEM","TABLE","TAG","TDES","TEXT255","TEXT32K","THEN","TIMESTAMP","TO","TOP","TRAILING","TRUE","TRUNCATECOLUMNS","UNION","UNIQUE","USER","USING","VERBOSE","WALLET","WHEN","WHERE","WITH","WITHOUT"],operators:["AND","BETWEEN","IN","LIKE","NOT","OR","IS","NULL","INTERSECT","UNION","INNER","JOIN","LEFT","OUTER","RIGHT"],builtinFunctions:["current_schema","current_schemas","has_database_privilege","has_schema_privilege","has_table_privilege","age","current_time","current_timestamp","localtime","isfinite","now","ascii","get_bit","get_byte","set_bit","set_byte","to_ascii","approximate percentile_disc","avg","count","listagg","max","median","min","percentile_cont","stddev_samp","stddev_pop","sum","var_samp","var_pop","bit_and","bit_or","bool_and","bool_or","cume_dist","first_value","lag","last_value","lead","nth_value","ratio_to_report","dense_rank","ntile","percent_rank","rank","row_number","case","coalesce","decode","greatest","least","nvl","nvl2","nullif","add_months","at time zone","convert_timezone","current_date","date_cmp","date_cmp_timestamp","date_cmp_timestamptz","date_part_year","dateadd","datediff","date_part","date_trunc","extract","getdate","interval_cmp","last_day","months_between","next_day","sysdate","timeofday","timestamp_cmp","timestamp_cmp_date","timestamp_cmp_timestamptz","timestamptz_cmp","timestamptz_cmp_date","timestamptz_cmp_timestamp","timezone","to_timestamp","trunc","abs","acos","asin","atan","atan2","cbrt","ceil","ceiling","checksum","cos","cot","degrees","dexp","dlog1","dlog10","exp","floor","ln","log","mod","pi","power","radians","random","round","sin","sign","sqrt","tan","to_hex","bpcharcmp","btrim","bttext_pattern_cmp","char_length","character_length","charindex","chr","concat","crc32","func_sha1","initcap","left and rights","len","length","lower","lpad and rpads","ltrim","md5","octet_length","position","quote_ident","quote_literal","regexp_count","regexp_instr","regexp_replace","regexp_substr","repeat","replace","replicate","reverse","rtrim","split_part","strpos","strtol","substring","textlen","translate","trim","upper","cast","convert","to_char","to_date","to_number","json_array_length","json_extract_array_element_text","json_extract_path_text","current_setting","pg_cancel_backend","pg_terminate_backend","set_config","current_database","current_user","current_user_id","pg_backend_pid","pg_last_copy_count","pg_last_copy_id","pg_last_query_id","pg_last_unload_count","session_user","slice_num","user","version","abbrev","acosd","any","area","array_agg","array_append","array_cat","array_dims","array_fill","array_length","array_lower","array_ndims","array_position","array_positions","array_prepend","array_remove","array_replace","array_to_json","array_to_string","array_to_tsvector","array_upper","asind","atan2d","atand","bit","bit_length","bound_box","box","brin_summarize_new_values","broadcast","cardinality","center","circle","clock_timestamp","col_description","concat_ws","convert_from","convert_to","corr","cosd","cotd","covar_pop","covar_samp","current_catalog","current_query","current_role","currval","cursor_to_xml","diameter","div","encode","enum_first","enum_last","enum_range","every","family","format","format_type","generate_series","generate_subscripts","get_current_ts_config","gin_clean_pending_list","grouping","has_any_column_privilege","has_column_privilege","has_foreign_data_wrapper_privilege","has_function_privilege","has_language_privilege","has_sequence_privilege","has_server_privilege","has_tablespace_privilege","has_type_privilege","height","host","hostmask","inet_client_addr","inet_client_port","inet_merge","inet_same_family","inet_server_addr","inet_server_port","isclosed","isempty","isopen","json_agg","json_object","json_object_agg","json_populate_record","json_populate_recordset","json_to_record","json_to_recordset","jsonb_agg","jsonb_object_agg","justify_days","justify_hours","justify_interval","lastval","left","line","localtimestamp","lower_inc","lower_inf","lpad","lseg","make_date","make_interval","make_time","make_timestamp","make_timestamptz","masklen","mode","netmask","network","nextval","npoints","num_nonnulls","num_nulls","numnode","obj_description","overlay","parse_ident","path","pclose","percentile_disc","pg_advisory_lock","pg_advisory_lock_shared","pg_advisory_unlock","pg_advisory_unlock_all","pg_advisory_unlock_shared","pg_advisory_xact_lock","pg_advisory_xact_lock_shared","pg_backup_start_time","pg_blocking_pids","pg_client_encoding","pg_collation_is_visible","pg_column_size","pg_conf_load_time","pg_control_checkpoint","pg_control_init","pg_control_recovery","pg_control_system","pg_conversion_is_visible","pg_create_logical_replication_slot","pg_create_physical_replication_slot","pg_create_restore_point","pg_current_xlog_flush_location","pg_current_xlog_insert_location","pg_current_xlog_location","pg_database_size","pg_describe_object","pg_drop_replication_slot","pg_export_snapshot","pg_filenode_relation","pg_function_is_visible","pg_get_constraintdef","pg_get_expr","pg_get_function_arguments","pg_get_function_identity_arguments","pg_get_function_result","pg_get_functiondef","pg_get_indexdef","pg_get_keywords","pg_get_object_address","pg_get_owned_sequence","pg_get_ruledef","pg_get_serial_sequence","pg_get_triggerdef","pg_get_userbyid","pg_get_viewdef","pg_has_role","pg_identify_object","pg_identify_object_as_address","pg_index_column_has_property","pg_index_has_property","pg_indexam_has_property","pg_indexes_size","pg_is_in_backup","pg_is_in_recovery","pg_is_other_temp_schema","pg_is_xlog_replay_paused","pg_last_committed_xact","pg_last_xact_replay_timestamp","pg_last_xlog_receive_location","pg_last_xlog_replay_location","pg_listening_channels","pg_logical_emit_message","pg_logical_slot_get_binary_changes","pg_logical_slot_get_changes","pg_logical_slot_peek_binary_changes","pg_logical_slot_peek_changes","pg_ls_dir","pg_my_temp_schema","pg_notification_queue_usage","pg_opclass_is_visible","pg_operator_is_visible","pg_opfamily_is_visible","pg_options_to_table","pg_postmaster_start_time","pg_read_binary_file","pg_read_file","pg_relation_filenode","pg_relation_filepath","pg_relation_size","pg_reload_conf","pg_replication_origin_create","pg_replication_origin_drop","pg_replication_origin_oid","pg_replication_origin_progress","pg_replication_origin_session_is_setup","pg_replication_origin_session_progress","pg_replication_origin_session_reset","pg_replication_origin_session_setup","pg_replication_origin_xact_reset","pg_replication_origin_xact_setup","pg_rotate_logfile","pg_size_bytes","pg_size_pretty","pg_sleep","pg_sleep_for","pg_sleep_until","pg_start_backup","pg_stat_file","pg_stop_backup","pg_switch_xlog","pg_table_is_visible","pg_table_size","pg_tablespace_databases","pg_tablespace_location","pg_tablespace_size","pg_total_relation_size","pg_trigger_depth","pg_try_advisory_lock","pg_try_advisory_lock_shared","pg_try_advisory_xact_lock","pg_try_advisory_xact_lock_shared","pg_ts_config_is_visible","pg_ts_dict_is_visible","pg_ts_parser_is_visible","pg_ts_template_is_visible","pg_type_is_visible","pg_typeof","pg_xact_commit_timestamp","pg_xlog_location_diff","pg_xlog_replay_pause","pg_xlog_replay_resume","pg_xlogfile_name","pg_xlogfile_name_offset","phraseto_tsquery","plainto_tsquery","point","polygon","popen","pqserverversion","query_to_xml","querytree","quote_nullable","radius","range_merge","regexp_matches","regexp_split_to_array","regexp_split_to_table","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","right","row_security_active","row_to_json","rpad","scale","set_masklen","setseed","setval","setweight","shobj_description","sind","sprintf","statement_timestamp","stddev","string_agg","string_to_array","strip","substr","table_to_xml","table_to_xml_and_xmlschema","tand","text","to_json","to_regclass","to_regnamespace","to_regoper","to_regoperator","to_regproc","to_regprocedure","to_regrole","to_regtype","to_tsquery","to_tsvector","transaction_timestamp","ts_debug","ts_delete","ts_filter","ts_headline","ts_lexize","ts_parse","ts_rank","ts_rank_cd","ts_rewrite","ts_stat","ts_token_type","tsquery_phrase","tsvector_to_array","tsvector_update_trigger","tsvector_update_trigger_column","txid_current","txid_current_snapshot","txid_snapshot_xip","txid_snapshot_xmax","txid_snapshot_xmin","txid_visible_in_snapshot","unnest","upper_inc","upper_inf","variance","width","width_bucket","xml_is_well_formed","xml_is_well_formed_content","xml_is_well_formed_document","xmlagg","xmlcomment","xmlconcat","xmlelement","xmlexists","xmlforest","xmlparse","xmlpi","xmlroot","xmlserialize","xpath","xpath_exists"],builtinVariables:[],pseudoColumns:[],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@keywords":"keyword","@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/'/,{token:"string",next:"@string"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/"/,{token:"identifier.quote",next:"@quotedIdentifier"}]],quotedIdentifier:[[/[^"]+/,"identifier"],[/""/,"identifier"],[/"/,{token:"identifier.quote",next:"@pop"}]],scopes:[]}}}}]); \ No newline at end of file diff --git a/docs/51.51.js b/docs/51.51.js new file mode 100644 index 00000000..567b17e3 --- /dev/null +++ b/docs/51.51.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[51],{957:function(e,n,s){"use strict";s.r(n),s.d(n,"conf",(function(){return i})),s.d(n,"language",(function(){return t}));var i={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">",notIn:["string"]}],surroundingPairs:[{open:"(",close:")"},{open:"[",close:"]"},{open:"`",close:"`"}],folding:{markers:{start:new RegExp("^\\s*\x3c!--\\s*#?region\\b.*--\x3e"),end:new RegExp("^\\s*\x3c!--\\s*#?endregion\\b.*--\x3e")}}},t={defaultToken:"",tokenPostfix:".rst",control:/[\\`*_\[\]{}()#+\-\.!]/,escapes:/\\(?:@control)/,empty:["area","base","basefont","br","col","frame","hr","img","input","isindex","link","meta","param"],alphanumerics:/[A-Za-z0-9]/,alphanumericsplus:/[A-Za-z0-9-_+:.]/,simpleRefNameWithoutBq:/(?:@alphanumerics@alphanumericsplus*@alphanumerics)+|(?:@alphanumerics+)/,simpleRefName:/(?:`@simpleRefNameWithoutBq`|@simpleRefNameWithoutBq)/,phrase:/@simpleRefName(?:\s@simpleRefName)*/,citationName:/[A-Za-z][A-Za-z0-9-_.]*/,blockLiteralStart:/(?:[!"#$%&'()*+,-./:;<=>?@\[\]^_`{|}~]|[\s])/,precedingChars:/(?:[ -:/'"<([{])/,followingChars:/(?:[ -.,:;!?/'")\]}>]|$)/,punctuation:/(=|-|~|`|#|"|\^|\+|\*|:|\.|'|_|\+)/,tokenizer:{root:[[/^(@punctuation{3,}$){1,1}?/,"keyword"],[/^\s*([\*\-+‣•]|[a-zA-Z0-9]+\.|\([a-zA-Z0-9]+\)|[a-zA-Z0-9]+\))\s/,"keyword"],[/([ ]::)\s*$/,"keyword","@blankLineOfLiteralBlocks"],[/(::)\s*$/,"keyword","@blankLineOfLiteralBlocks"],{include:"@tables"},{include:"@explicitMarkupBlocks"},{include:"@inlineMarkup"}],explicitMarkupBlocks:[{include:"@citations"},{include:"@footnotes"},[/^(\.\.\s)(@simpleRefName)(::\s)(.*)$/,[{token:"",next:"subsequentLines"},"keyword","",""]],[/^(\.\.)(\s+)(_)(@simpleRefName)(:)(\s+)(.*)/,[{token:"",next:"hyperlinks"},"","","string.link","","","string.link"]],[/^((?:(?:\.\.)(?:\s+))?)(__)(:)(\s+)(.*)/,[{token:"",next:"subsequentLines"},"","","","string.link"]],[/^(__\s+)(.+)/,["","string.link"]],[/^(\.\.)( \|)([^| ]+[^|]*[^| ]*)(\| )(@simpleRefName)(:: .*)/,[{token:"",next:"subsequentLines"},"","string.link","","keyword",""],"@rawBlocks"],[/(\|)([^| ]+[^|]*[^| ]*)(\|_{0,2})/,["","string.link",""]],[/^(\.\.)([ ].*)$/,[{token:"",next:"@comments"},"comment"]]],inlineMarkup:[{include:"@citationsReference"},{include:"@footnotesReference"},[/(@simpleRefName)(_{1,2})/,["string.link",""]],[/(`)([^<`]+\s+)(<)(.*)(>)(`)(_)/,["","string.link","","string.link","","",""]],[/\*\*([^\\*]|\*(?!\*))+\*\*/,"strong"],[/\*[^*]+\*/,"emphasis"],[/(``)((?:[^`]|\`(?!`))+)(``)/,["","keyword",""]],[/(__\s+)(.+)/,["","keyword"]],[/(:)((?:@simpleRefNameWithoutBq)?)(:`)([^`]+)(`)/,["","keyword","","",""]],[/(`)([^`]+)(`:)((?:@simpleRefNameWithoutBq)?)(:)/,["","","","keyword",""]],[/(`)([^`]+)(`)/,""],[/(_`)(@phrase)(`)/,["","string.link",""]]],citations:[[/^(\.\.\s+\[)((?:@citationName))(\]\s+)(.*)/,[{token:"",next:"@subsequentLines"},"string.link","",""]]],citationsReference:[[/(\[)(@citationName)(\]_)/,["","string.link",""]]],footnotes:[[/^(\.\.\s+\[)((?:[0-9]+))(\]\s+.*)/,[{token:"",next:"@subsequentLines"},"string.link",""]],[/^(\.\.\s+\[)((?:#@simpleRefName?))(\]\s+)(.*)/,[{token:"",next:"@subsequentLines"},"string.link","",""]],[/^(\.\.\s+\[)((?:\*))(\]\s+)(.*)/,[{token:"",next:"@subsequentLines"},"string.link","",""]]],footnotesReference:[[/(\[)([0-9]+)(\])(_)/,["","string.link","",""]],[/(\[)(#@simpleRefName?)(\])(_)/,["","string.link","",""]],[/(\[)(\*)(\])(_)/,["","string.link","",""]]],blankLineOfLiteralBlocks:[[/^$/,"","@subsequentLinesOfLiteralBlocks"],[/^.*$/,"","@pop"]],subsequentLinesOfLiteralBlocks:[[/(@blockLiteralStart+)(.*)/,["keyword",""]],[/^(?!blockLiteralStart)/,"","@popall"]],subsequentLines:[[/^[\s]+.*/,""],[/^(?!\s)/,"","@pop"]],hyperlinks:[[/^[\s]+.*/,"string.link"],[/^(?!\s)/,"","@pop"]],comments:[[/^[\s]+.*/,"comment"],[/^(?!\s)/,"","@pop"]],tables:[[/\+-[+-]+/,"keyword"],[/\+=[+=]+/,"keyword"]]}}}}]); \ No newline at end of file diff --git a/docs/52.52.js b/docs/52.52.js new file mode 100644 index 00000000..fbc74976 --- /dev/null +++ b/docs/52.52.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[52],{958:function(e,n,t){"use strict";t.r(n),t.d(n,"conf",(function(){return r})),t.d(n,"language",(function(){return o}));var r={comments:{lineComment:"#",blockComment:["=begin","=end"]},brackets:[["(",")"],["{","}"],["[","]"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],indentationRules:{increaseIndentPattern:new RegExp("^\\s*((begin|class|(private|protected)\\s+def|def|else|elsif|ensure|for|if|module|rescue|unless|until|when|while|case)|([^#]*\\sdo\\b)|([^#]*=\\s*(case|if|unless)))\\b([^#\\{;]|(\"|'|/).*\\4)*(#.*)?$"),decreaseIndentPattern:new RegExp("^\\s*([}\\]]([,)]?\\s*(#|$)|\\.[a-zA-Z_]\\w*\\b)|(end|rescue|ensure|else|elsif|when)\\b)")}},o={tokenPostfix:".ruby",keywords:["__LINE__","__ENCODING__","__FILE__","BEGIN","END","alias","and","begin","break","case","class","def","defined?","do","else","elsif","end","ensure","for","false","if","in","module","next","nil","not","or","redo","rescue","retry","return","self","super","then","true","undef","unless","until","when","while","yield"],keywordops:["::","..","...","?",":","=>"],builtins:["require","public","private","include","extend","attr_reader","protected","private_class_method","protected_class_method","new"],declarations:["module","class","def","case","do","begin","for","if","while","until","unless"],linedecls:["def","case","do","begin","for","if","while","until","unless"],operators:["^","&","|","<=>","==","===","!~","=~",">",">=","<","<=","<<",">>","+","-","*","/","%","**","~","+@","-@","[]","[]=","`","+=","-=","*=","**=","/=","^=","%=","<<=",">>=","&=","&&=","||=","|="],brackets:[{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"}],symbols:/[=><!~?:&|+\-*\/\^%\.]+/,escape:/(?:[abefnrstv\\"'\n\r]|[0-7]{1,3}|x[0-9A-Fa-f]{1,2}|u[0-9A-Fa-f]{4})/,escapes:/\\(?:C\-(@escape|.)|c(@escape|.)|@escape)/,decpart:/\d(_?\d)*/,decimal:/0|@decpart/,delim:/[^a-zA-Z0-9\s\n\r]/,heredelim:/(?:\w+|'[^']*'|"[^"]*"|`[^`]*`)/,regexpctl:/[(){}\[\]\$\^|\-*+?\.]/,regexpesc:/\\(?:[AzZbBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})?/,tokenizer:{root:[[/^(\s*)([a-z_]\w*[!?=]?)/,["white",{cases:{"for|until|while":{token:"keyword.$2",next:"@dodecl.$2"},"@declarations":{token:"keyword.$2",next:"@root.$2"},end:{token:"keyword.$S2",next:"@pop"},"@keywords":"keyword","@builtins":"predefined","@default":"identifier"}}]],[/[a-z_]\w*[!?=]?/,{cases:{"if|unless|while|until":{token:"keyword.$0x",next:"@modifier.$0x"},for:{token:"keyword.$2",next:"@dodecl.$2"},"@linedecls":{token:"keyword.$0",next:"@root.$0"},end:{token:"keyword.$S2",next:"@pop"},"@keywords":"keyword","@builtins":"predefined","@default":"identifier"}}],[/[A-Z][\w]*[!?=]?/,"constructor.identifier"],[/\$[\w]*/,"global.constant"],[/@[\w]*/,"namespace.instance.identifier"],[/@@[\w]*/,"namespace.class.identifier"],[/<<[-~](@heredelim).*/,{token:"string.heredoc.delimiter",next:"@heredoc.$1"}],[/[ \t\r\n]+<<(@heredelim).*/,{token:"string.heredoc.delimiter",next:"@heredoc.$1"}],[/^<<(@heredelim).*/,{token:"string.heredoc.delimiter",next:"@heredoc.$1"}],{include:"@whitespace"},[/"/,{token:"string.d.delim",next:'@dstring.d."'}],[/'/,{token:"string.sq.delim",next:"@sstring.sq"}],[/%([rsqxwW]|Q?)/,{token:"@rematch",next:"pstring"}],[/`/,{token:"string.x.delim",next:"@dstring.x.`"}],[/:(\w|[$@])\w*[!?=]?/,"string.s"],[/:"/,{token:"string.s.delim",next:'@dstring.s."'}],[/:'/,{token:"string.s.delim",next:"@sstring.s"}],[/\/(?=(\\\/|[^\/\n])+\/)/,{token:"regexp.delim",next:"@regexp"}],[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@keywordops":"keyword","@operators":"operator","@default":""}}],[/[;,]/,"delimiter"],[/0[xX][0-9a-fA-F](_?[0-9a-fA-F])*/,"number.hex"],[/0[_oO][0-7](_?[0-7])*/,"number.octal"],[/0[bB][01](_?[01])*/,"number.binary"],[/0[dD]@decpart/,"number"],[/@decimal((\.@decpart)?([eE][\-+]?@decpart)?)/,{cases:{$1:"number.float","@default":"number"}}]],dodecl:[[/^/,{token:"",switchTo:"@root.$S2"}],[/[a-z_]\w*[!?=]?/,{cases:{end:{token:"keyword.$S2",next:"@pop"},do:{token:"keyword",switchTo:"@root.$S2"},"@linedecls":{token:"@rematch",switchTo:"@root.$S2"},"@keywords":"keyword","@builtins":"predefined","@default":"identifier"}}],{include:"@root"}],modifier:[[/^/,"","@pop"],[/[a-z_]\w*[!?=]?/,{cases:{end:{token:"keyword.$S2",next:"@pop"},"then|else|elsif|do":{token:"keyword",switchTo:"@root.$S2"},"@linedecls":{token:"@rematch",switchTo:"@root.$S2"},"@keywords":"keyword","@builtins":"predefined","@default":"identifier"}}],{include:"@root"}],sstring:[[/[^\\']+/,"string.$S2"],[/\\\\|\\'|\\$/,"string.$S2.escape"],[/\\./,"string.$S2.invalid"],[/'/,{token:"string.$S2.delim",next:"@pop"}]],dstring:[[/[^\\`"#]+/,"string.$S2"],[/#/,"string.$S2.escape","@interpolated"],[/\\$/,"string.$S2.escape"],[/@escapes/,"string.$S2.escape"],[/\\./,"string.$S2.escape.invalid"],[/[`"]/,{cases:{"$#==$S3":{token:"string.$S2.delim",next:"@pop"},"@default":"string.$S2"}}]],heredoc:[[/^(\s*)(@heredelim)$/,{cases:{"$2==$S2":["string.heredoc",{token:"string.heredoc.delimiter",next:"@pop"}],"@default":["string.heredoc","string.heredoc"]}}],[/.*/,"string.heredoc"]],interpolated:[[/\$\w*/,"global.constant","@pop"],[/@\w*/,"namespace.class.identifier","@pop"],[/@@\w*/,"namespace.instance.identifier","@pop"],[/[{]/,{token:"string.escape.curly",switchTo:"@interpolated_compound"}],["","","@pop"]],interpolated_compound:[[/[}]/,{token:"string.escape.curly",next:"@pop"}],{include:"@root"}],pregexp:[{include:"@whitespace"},[/[^\(\{\[\\]/,{cases:{"$#==$S3":{token:"regexp.delim",next:"@pop"},"$#==$S2":{token:"regexp.delim",next:"@push"},"~[)}\\]]":"@brackets.regexp.escape.control","~@regexpctl":"regexp.escape.control","@default":"regexp"}}],{include:"@regexcontrol"}],regexp:[{include:"@regexcontrol"},[/[^\\\/]/,"regexp"],["/[ixmp]*",{token:"regexp.delim"},"@pop"]],regexcontrol:[[/(\{)(\d+(?:,\d*)?)(\})/,["@brackets.regexp.escape.control","regexp.escape.control","@brackets.regexp.escape.control"]],[/(\[)(\^?)/,["@brackets.regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?[:=!])/,["@brackets.regexp.escape.control","regexp.escape.control"]],[/\(\?#/,{token:"regexp.escape.control",next:"@regexpcomment"}],[/[()]/,"@brackets.regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/\\$/,"regexp.escape"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/#/,"regexp.escape","@interpolated"]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/\\$/,"regexp.escape"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,"@brackets.regexp.escape.control","@pop"]],regexpcomment:[[/[^)]+/,"comment"],[/\)/,{token:"regexp.escape.control",next:"@pop"}]],pstring:[[/%([qws])\(/,{token:"string.$1.delim",switchTo:"@qstring.$1.(.)"}],[/%([qws])\[/,{token:"string.$1.delim",switchTo:"@qstring.$1.[.]"}],[/%([qws])\{/,{token:"string.$1.delim",switchTo:"@qstring.$1.{.}"}],[/%([qws])</,{token:"string.$1.delim",switchTo:"@qstring.$1.<.>"}],[/%([qws])(@delim)/,{token:"string.$1.delim",switchTo:"@qstring.$1.$2.$2"}],[/%r\(/,{token:"regexp.delim",switchTo:"@pregexp.(.)"}],[/%r\[/,{token:"regexp.delim",switchTo:"@pregexp.[.]"}],[/%r\{/,{token:"regexp.delim",switchTo:"@pregexp.{.}"}],[/%r</,{token:"regexp.delim",switchTo:"@pregexp.<.>"}],[/%r(@delim)/,{token:"regexp.delim",switchTo:"@pregexp.$1.$1"}],[/%(x|W|Q?)\(/,{token:"string.$1.delim",switchTo:"@qqstring.$1.(.)"}],[/%(x|W|Q?)\[/,{token:"string.$1.delim",switchTo:"@qqstring.$1.[.]"}],[/%(x|W|Q?)\{/,{token:"string.$1.delim",switchTo:"@qqstring.$1.{.}"}],[/%(x|W|Q?)</,{token:"string.$1.delim",switchTo:"@qqstring.$1.<.>"}],[/%(x|W|Q?)(@delim)/,{token:"string.$1.delim",switchTo:"@qqstring.$1.$2.$2"}],[/%([rqwsxW]|Q?)./,{token:"invalid",next:"@pop"}],[/./,{token:"invalid",next:"@pop"}]],qstring:[[/\\$/,"string.$S2.escape"],[/\\./,"string.$S2.escape"],[/./,{cases:{"$#==$S4":{token:"string.$S2.delim",next:"@pop"},"$#==$S3":{token:"string.$S2.delim",next:"@push"},"@default":"string.$S2"}}]],qqstring:[[/#/,"string.$S2.escape","@interpolated"],{include:"@qstring"}],whitespace:[[/[ \t\r\n]+/,""],[/^\s*=begin\b/,"comment","@comment"],[/#.*$/,"comment"]],comment:[[/[^=]+/,"comment"],[/^\s*=begin\b/,"comment.invalid"],[/^\s*=end\b.*/,"comment","@pop"],[/[=]/,"comment"]]}}}}]); \ No newline at end of file diff --git a/docs/53.53.js b/docs/53.53.js new file mode 100644 index 00000000..773bbb39 --- /dev/null +++ b/docs/53.53.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[53],{959:function(e,t,o){"use strict";o.r(t),o.d(t,"conf",(function(){return n})),o.d(t,"language",(function(){return s}));var n={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*#pragma\\s+region\\b"),end:new RegExp("^\\s*#pragma\\s+endregion\\b")}}},s={tokenPostfix:".rust",defaultToken:"invalid",keywords:["as","box","break","const","continue","crate","else","enum","extern","false","fn","for","if","impl","in","let","loop","match","mod","move","mut","pub","ref","return","self","static","struct","super","trait","true","type","unsafe","use","where","while","catch","default","union","static","abstract","alignof","become","do","final","macro","offsetof","override","priv","proc","pure","sizeof","typeof","unsized","virtual","yield"],typeKeywords:["Self","m32","m64","m128","f80","f16","f128","int","uint","float","char","bool","u8","u16","u32","u64","f32","f64","i8","i16","i32","i64","str","Option","Either","c_float","c_double","c_void","FILE","fpos_t","DIR","dirent","c_char","c_schar","c_uchar","c_short","c_ushort","c_int","c_uint","c_long","c_ulong","size_t","ptrdiff_t","clock_t","time_t","c_longlong","c_ulonglong","intptr_t","uintptr_t","off_t","dev_t","ino_t","pid_t","mode_t","ssize_t"],constants:["true","false","Some","None","Left","Right","Ok","Err"],supportConstants:["EXIT_FAILURE","EXIT_SUCCESS","RAND_MAX","EOF","SEEK_SET","SEEK_CUR","SEEK_END","_IOFBF","_IONBF","_IOLBF","BUFSIZ","FOPEN_MAX","FILENAME_MAX","L_tmpnam","TMP_MAX","O_RDONLY","O_WRONLY","O_RDWR","O_APPEND","O_CREAT","O_EXCL","O_TRUNC","S_IFIFO","S_IFCHR","S_IFBLK","S_IFDIR","S_IFREG","S_IFMT","S_IEXEC","S_IWRITE","S_IREAD","S_IRWXU","S_IXUSR","S_IWUSR","S_IRUSR","F_OK","R_OK","W_OK","X_OK","STDIN_FILENO","STDOUT_FILENO","STDERR_FILENO"],supportMacros:["format!","print!","println!","panic!","format_args!","unreachable!","write!","writeln!"],operators:["!","!=","%","%=","&","&=","&&","*","*=","+","+=","-","-=","->",".","..","...","/","/=",":",";","<<","<<=","<","<=","=","==","=>",">",">=",">>",">>=","@","^","^=","|","|=","||","_","?","#"],escapes:/\\([nrt0\"''\\]|x\h{2}|u\{\h{1,6}\})/,delimiters:/[,]/,symbols:/[\#\!\%\&\*\+\-\.\/\:\;\<\=\>\@\^\|_\?]+/,intSuffixes:/[iu](8|16|32|64|128|size)/,floatSuffixes:/f(32|64)/,tokenizer:{root:[[/[a-zA-Z][a-zA-Z0-9_]*!?|_[a-zA-Z0-9_]+/,{cases:{"@typeKeywords":"keyword.type","@keywords":"keyword","@supportConstants":"keyword","@supportMacros":"keyword","@constants":"keyword","@default":"identifier"}}],[/\$/,"identifier"],[/'[a-zA-Z_][a-zA-Z0-9_]*(?=[^\'])/,"identifier"],[/'\S'/,"string.byteliteral"],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}],{include:"@numbers"},{include:"@whitespace"},[/@delimiters/,{cases:{"@keywords":"keyword","@default":"delimiter"}}],[/[{}()\[\]<>]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}]],whitespace:[[/[ \t\r\n]+/,"white"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\/\*/,"comment","@push"],["\\*/","comment","@pop"],[/[\/*]/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],numbers:[[/(0o[0-7_]+)(@intSuffixes)?/,{token:"number"}],[/(0b[0-1_]+)(@intSuffixes)?/,{token:"number"}],[/[\d][\d_]*(\.[\d][\d_]*)?[eE][+-][\d_]+(@floatSuffixes)?/,{token:"number"}],[/\b(\d\.?[\d_]*)(@floatSuffixes)?\b/,{token:"number"}],[/(0x[\da-fA-F]+)_?(@intSuffixes)?/,{token:"number"}],[/[\d][\d_]*(@intSuffixes?)?/,{token:"number"}]]}}}}]); \ No newline at end of file diff --git a/docs/54.54.js b/docs/54.54.js new file mode 100644 index 00000000..d5550e52 --- /dev/null +++ b/docs/54.54.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[54],{960:function(e,n,o){"use strict";o.r(n),o.d(n,"conf",(function(){return t})),o.d(n,"language",(function(){return r}));var t={comments:{lineComment:"'"},brackets:[["(",")"],["[","]"],["If","EndIf"],["While","EndWhile"],["For","EndFor"],["Sub","EndSub"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]}]},r={defaultToken:"",tokenPostfix:".sb",ignoreCase:!0,brackets:[{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"keyword.tag-if",open:"If",close:"EndIf"},{token:"keyword.tag-while",open:"While",close:"EndWhile"},{token:"keyword.tag-for",open:"For",close:"EndFor"},{token:"keyword.tag-sub",open:"Sub",close:"EndSub"}],keywords:["Else","ElseIf","EndFor","EndIf","EndSub","EndWhile","For","Goto","If","Step","Sub","Then","To","While"],tagwords:["If","Sub","While","For"],operators:[">","<","<>","<=",">=","And","Or","+","-","*","/","="],identifier:/[a-zA-Z_][\w]*/,symbols:/[=><:+\-*\/%\.,]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[{include:"@whitespace"},[/(@identifier)(?=[.])/,"type"],[/@identifier/,{cases:{"@keywords":{token:"keyword.$0"},"@operators":"operator","@default":"variable.name"}}],[/([.])(@identifier)/,{cases:{$2:["delimiter","type.member"],"@default":""}}],[/\d*\.\d+/,"number.float"],[/\d+/,"number"],[/[()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":"delimiter"}}],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"]],whitespace:[[/[ \t\r\n]+/,""],[/(\').*$/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"C?/,"string","@pop"]]}}}}]); \ No newline at end of file diff --git a/docs/55.55.js b/docs/55.55.js new file mode 100644 index 00000000..1b7a98f9 --- /dev/null +++ b/docs/55.55.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[55],{961:function(e,t,o){"use strict";o.r(t),o.d(t,"conf",(function(){return r})),o.d(t,"language",(function(){return n}));var r={wordPattern:/(unary_[@~!#%^&*()\-=+\\|:<>\/?]+)|([a-zA-Z_$][\w$]*?_=)|(`[^`]+`)|([a-zA-Z_$][\w$]*)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"),end:new RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")}}},n={tokenPostfix:".scala",keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],softKeywords:["as","export","extension","end","derives","on"],constants:["true","false","null","this","super"],modifiers:["abstract","final","implicit","lazy","override","private","protected","sealed"],softModifiers:["inline","opaque","open","transparent","using"],name:/(?:[a-z_$][\w$]*|`[^`]+`)/,type:/(?:[A-Z][\w$]*)/,symbols:/[=><!~?:&|+\-*\/^\\%@#]+/,digits:/\d+(_+\d+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,escapes:/\\(?:[btnfr\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,fstring_conv:/[bBhHsScCdoxXeEfgGaAt]|[Tn](?:[HIklMSLNpzZsQ]|[BbhAaCYyjmde]|[RTrDFC])/,tokenizer:{root:[[/\braw"""/,{token:"string.quote",bracket:"@open",next:"@rawstringt"}],[/\braw"/,{token:"string.quote",bracket:"@open",next:"@rawstring"}],[/\bs"""/,{token:"string.quote",bracket:"@open",next:"@sstringt"}],[/\bs"/,{token:"string.quote",bracket:"@open",next:"@sstring"}],[/\bf""""/,{token:"string.quote",bracket:"@open",next:"@fstringt"}],[/\bf"/,{token:"string.quote",bracket:"@open",next:"@fstring"}],[/"""/,{token:"string.quote",bracket:"@open",next:"@stringt"}],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}],[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/,"number.float","@allowMethod"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,"number.float","@allowMethod"],[/0[xX](@hexdigits)[Ll]?/,"number.hex","@allowMethod"],[/(@digits)[fFdD]/,"number.float","@allowMethod"],[/(@digits)[lL]?/,"number","@allowMethod"],[/\b_\*/,"key"],[/\b(_)\b/,"keyword","@allowMethod"],[/\bimport\b/,"keyword","@import"],[/\b(case)([ \t]+)(class)\b/,["keyword.modifier","white","keyword"]],[/\bcase\b/,"keyword","@case"],[/\bva[lr]\b/,"keyword","@vardef"],[/\b(def)([ \t]+)((?:unary_)?@symbols|@name(?:_=)|@name)/,["keyword","white","identifier"]],[/@name(?=[ \t]*:(?!:))/,"variable"],[/(\.)(@name|@symbols)/,["operator",{token:"@rematch",next:"@allowMethod"}]],[/([{(])(\s*)(@name(?=\s*=>))/,["@brackets","white","variable"]],[/@name/,{cases:{"@keywords":"keyword","@softKeywords":"keyword","@modifiers":"keyword.modifier","@softModifiers":"keyword.modifier","@constants":{token:"constant",next:"@allowMethod"},"@default":{token:"identifier",next:"@allowMethod"}}}],[/@type/,"type","@allowMethod"],{include:"@whitespace"},[/@[a-zA-Z_$][\w$]*(?:\.[a-zA-Z_$][\w$]*)*/,"annotation"],[/[{(]/,"@brackets"],[/[})]/,"@brackets","@allowMethod"],[/\[/,"operator.square"],[/](?!\s*(?:va[rl]|def|type)\b)/,"operator.square","@allowMethod"],[/]/,"operator.square"],[/([=-]>|<-|>:|<:|:>|<%)(?=[\s\w()[\]{},\."'`])/,"keyword"],[/@symbols/,"operator"],[/[;,\.]/,"delimiter"],[/'[a-zA-Z$][\w$]*(?!')/,"attribute.name"],[/'[^\\']'/,"string","@allowMethod"],[/(')(@escapes)(')/,["string","string.escape",{token:"string",next:"@allowMethod"}]],[/'/,"string.invalid"]],import:[[/;/,"delimiter","@pop"],[/^|$/,"","@pop"],[/[ \t]+/,"white"],[/[\n\r]+/,"white","@pop"],[/\/\*/,"comment","@comment"],[/@name|@type/,"type"],[/[(){}]/,"@brackets"],[/[[\]]/,"operator.square"],[/[\.,]/,"delimiter"]],allowMethod:[[/^|$/,"","@pop"],[/[ \t]+/,"white"],[/[\n\r]+/,"white","@pop"],[/\/\*/,"comment","@comment"],[/(?==>[\s\w([{])/,"keyword","@pop"],[/(@name|@symbols)(?=[ \t]*[[({"'`]|[ \t]+(?:[+-]?\.?\d|\w))/,{cases:{"@keywords":{token:"keyword",next:"@pop"},"->|<-|>:|<:|<%":{token:"keyword",next:"@pop"},"@default":{token:"@rematch",next:"@pop"}}}],["","","@pop"]],comment:[[/[^\/*]+/,"comment"],[/\/\*/,"comment","@push"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],case:[[/\b_\*/,"key"],[/\b(_|true|false|null|this|super)\b/,"keyword","@allowMethod"],[/\bif\b|=>/,"keyword","@pop"],[/`[^`]+`/,"identifier","@allowMethod"],[/@name/,"variable","@allowMethod"],[/:::?|\||@(?![a-z_$])/,"keyword"],{include:"@root"}],vardef:[[/\b_\*/,"key"],[/\b(_|true|false|null|this|super)\b/,"keyword"],[/@name/,"variable"],[/:::?|\||@(?![a-z_$])/,"keyword"],[/=|:(?!:)/,"operator","@pop"],[/$/,"white","@pop"],{include:"@root"}],string:[[/[^\\"\n\r]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}]],stringt:[[/[^\\"\n\r]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"(?=""")/,"string"],[/"""/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/"/,"string"]],fstring:[[/@escapes/,"string.escape"],[/"/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/\$\$/,"string"],[/(\$)([a-z_]\w*)/,["operator","identifier"]],[/\$\{/,"operator","@interp"],[/%%/,"string"],[/(%)([\-#+ 0,(])(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,["metatag","keyword.modifier","number","metatag"]],[/(%)(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,["metatag","number","metatag"]],[/(%)([\-#+ 0,(])(@fstring_conv)/,["metatag","keyword.modifier","metatag"]],[/(%)(@fstring_conv)/,["metatag","metatag"]],[/./,"string"]],fstringt:[[/@escapes/,"string.escape"],[/"(?=""")/,"string"],[/"""/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/\$\$/,"string"],[/(\$)([a-z_]\w*)/,["operator","identifier"]],[/\$\{/,"operator","@interp"],[/%%/,"string"],[/(%)([\-#+ 0,(])(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,["metatag","keyword.modifier","number","metatag"]],[/(%)(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,["metatag","number","metatag"]],[/(%)([\-#+ 0,(])(@fstring_conv)/,["metatag","keyword.modifier","metatag"]],[/(%)(@fstring_conv)/,["metatag","metatag"]],[/./,"string"]],sstring:[[/@escapes/,"string.escape"],[/"/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/\$\$/,"string"],[/(\$)([a-z_]\w*)/,["operator","identifier"]],[/\$\{/,"operator","@interp"],[/./,"string"]],sstringt:[[/@escapes/,"string.escape"],[/"(?=""")/,"string"],[/"""/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/\$\$/,"string"],[/(\$)([a-z_]\w*)/,["operator","identifier"]],[/\$\{/,"operator","@interp"],[/./,"string"]],interp:[[/{/,"operator","@push"],[/}/,"operator","@pop"],{include:"@root"}],rawstring:[[/[^"]/,"string"],[/"/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}]],rawstringt:[[/[^"]/,"string"],[/"(?=""")/,"string"],[/"""/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/"/,"string"]],whitespace:[[/[ \t\r\n]+/,"white"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]]}}}}]); \ No newline at end of file diff --git a/docs/56.56.js b/docs/56.56.js new file mode 100644 index 00000000..620d7202 --- /dev/null +++ b/docs/56.56.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[56],{962:function(e,n,o){"use strict";o.r(n),o.d(n,"conf",(function(){return t})),o.d(n,"language",(function(){return s}));var t={comments:{lineComment:";",blockComment:["#|","|#"]},brackets:[["(",")"],["{","}"],["[","]"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}]},s={defaultToken:"",ignoreCase:!0,tokenPostfix:".scheme",brackets:[{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"}],keywords:["case","do","let","loop","if","else","when","cons","car","cdr","cond","lambda","lambda*","syntax-rules","format","set!","quote","eval","append","list","list?","member?","load"],constants:["#t","#f"],operators:["eq?","eqv?","equal?","and","or","not","null?"],tokenizer:{root:[[/#[xXoObB][0-9a-fA-F]+/,"number.hex"],[/[+-]?\d+(?:(?:\.\d*)?(?:[eE][+-]?\d+)?)?/,"number.float"],[/(?:\b(?:(define|define-syntax|define-macro))\b)(\s+)((?:\w|\-|\!|\?)*)/,["keyword","white","variable"]],{include:"@whitespace"},{include:"@strings"},[/[a-zA-Z_#][a-zA-Z0-9_\-\?\!\*]*/,{cases:{"@keywords":"keyword","@constants":"constant","@operators":"operators","@default":"identifier"}}]],comment:[[/[^\|#]+/,"comment"],[/#\|/,"comment","@push"],[/\|#/,"comment","@pop"],[/[\|#]/,"comment"]],whitespace:[[/[ \t\r\n]+/,"white"],[/#\|/,"comment","@comment"],[/;.*$/,"comment"]],strings:[[/"$/,"string","@popall"],[/"(?=.)/,"string","@multiLineString"]],multiLineString:[[/[^\\"]+$/,"string","@popall"],[/[^\\"]+/,"string"],[/\\./,"string.escape"],[/"/,"string","@popall"],[/\\$/,"string"]]}}}}]); \ No newline at end of file diff --git a/docs/57.57.js b/docs/57.57.js new file mode 100644 index 00000000..137e2f26 --- /dev/null +++ b/docs/57.57.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[57],{963:function(e,t,n){"use strict";n.r(t),n.d(t,"conf",(function(){return o})),n.d(t,"language",(function(){return i}));var o={wordPattern:/(#?-?\d*\.\d\w*%?)|([@$#!.:]?[\w-?]+%?)|[@#!.]/g,comments:{blockComment:["/*","*/"],lineComment:"//"},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.*\\*\\/")}}},i={defaultToken:"",tokenPostfix:".scss",ws:"[ \t\n\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.curly"},{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:"@variabledeclaration"},{include:"@warndebug"},["[@](include)",{token:"keyword",next:"@includedeclaration"}],["[@](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"}],["[@](function)",{token:"keyword",next:"@functiondeclaration"}],["[@](mixin)",{token:"keyword",next:"@mixindeclaration"}],["url(\\-prefix)?\\(",{token:"meta",next:"@urldeclaration"}],{include:"@controlstatement"},{include:"@selectorname"},["[&\\*]","tag"],["[>\\+,]","delimiter"],["\\[",{token:"delimiter.bracket",next:"@selectorattribute"}],["{",{token:"delimiter.curly",next:"@selectorbody"}]],selectorbody:[["[*_]?@identifier@ws:(?=(\\s|\\d|[^{;}]*[;}]))","attribute.name","@rulevalue"],{include:"@selector"},["[@](extend)",{token:"keyword",next:"@extendbody"}],["[@](return)",{token:"keyword",next:"@declarationbody"}],["}",{token:"delimiter.curly",next:"@pop"}]],selectorname:[["#{",{token:"meta",next:"@variableinterpolation"}],["(\\.|#(?=[^{])|%|(@identifier)|:)+","tag"]],selectorattribute:[{include:"@term"},["]",{token:"delimiter.bracket",next:"@pop"}]],term:[{include:"@comments"},["url(\\-prefix)?\\(",{token:"meta",next:"@urldeclaration"}],{include:"@functioninvocation"},{include:"@numbers"},{include:"@strings"},{include:"@variablereference"},["(and\\b|or\\b|not\\b)","operator"],{include:"@name"},["([<>=\\+\\-\\*\\/\\^\\|\\~,])","operator"],[",","delimiter"],["!default","literal"],["\\(",{token:"delimiter.parenthesis",next:"@parenthizedterm"}]],rulevalue:[{include:"@term"},["!important","literal"],[";","delimiter","@pop"],["{",{token:"delimiter.curly",switchTo:"@nestedproperty"}],["(?=})",{token:"",next:"@pop"}]],nestedproperty:[["[*_]?@identifier@ws:","attribute.name","@rulevalue"],{include:"@comments"},["}",{token:"delimiter.curly",next:"@pop"}]],warndebug:[["[@](warn|debug)",{token:"keyword",next:"@declarationbody"}]],import:[["[@](import)",{token:"keyword",next:"@declarationbody"}]],variabledeclaration:[["\\$@identifier@ws:","variable.decl","@declarationbody"]],urldeclaration:[{include:"@strings"},["[^)\r\n]+","string"],["\\)",{token:"meta",next:"@pop"}]],parenthizedterm:[{include:"@term"},["\\)",{token:"delimiter.parenthesis",next:"@pop"}]],declarationbody:[{include:"@term"},[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],extendbody:[{include:"@selectorname"},["!optional","literal"],[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],variablereference:[["\\$@identifier","variable.ref"],["\\.\\.\\.","operator"],["#{",{token:"meta",next:"@variableinterpolation"}]],variableinterpolation:[{include:"@variablereference"},["}",{token:"meta",next:"@pop"}]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[".","comment"]],name:[["@identifier","attribute.value"]],numbers:[["(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?",{token:"number",next:"@units"}],["#[0-9a-fA-F_]+(?!\\w)","number.hex"]],units:[["(em|ex|ch|rem|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?","number","@pop"]],functiondeclaration:[["@identifier@ws\\(",{token:"meta",next:"@parameterdeclaration"}],["{",{token:"delimiter.curly",switchTo:"@functionbody"}]],mixindeclaration:[["@identifier@ws\\(",{token:"meta",next:"@parameterdeclaration"}],["@identifier","meta"],["{",{token:"delimiter.curly",switchTo:"@selectorbody"}]],parameterdeclaration:[["\\$@identifier@ws:","variable.decl"],["\\.\\.\\.","operator"],[",","delimiter"],{include:"@term"},["\\)",{token:"meta",next:"@pop"}]],includedeclaration:[{include:"@functioninvocation"},["@identifier","meta"],[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}],["{",{token:"delimiter.curly",switchTo:"@selectorbody"}]],keyframedeclaration:[["@identifier","meta"],["{",{token:"delimiter.curly",switchTo:"@keyframebody"}]],keyframebody:[{include:"@term"},["{",{token:"delimiter.curly",next:"@selectorbody"}],["}",{token:"delimiter.curly",next:"@pop"}]],controlstatement:[["[@](if|else|for|while|each|media)",{token:"keyword.flow",next:"@controlstatementdeclaration"}]],controlstatementdeclaration:[["(in|from|through|if|to)\\b",{token:"keyword.flow"}],{include:"@term"},["{",{token:"delimiter.curly",switchTo:"@selectorbody"}]],functionbody:[["[@](return)",{token:"keyword"}],{include:"@variabledeclaration"},{include:"@term"},{include:"@controlstatement"},[";","delimiter"],["}",{token:"delimiter.curly",next:"@pop"}]],functioninvocation:[["@identifier\\(",{token:"meta",next:"@functionarguments"}]],functionarguments:[["\\$@identifier@ws:","attribute.name"],["[,]","delimiter"],{include:"@term"},["\\)",{token:"meta",next:"@pop"}]],strings:[['~?"',{token:"string.delimiter",next:"@stringenddoublequote"}],["~?'",{token:"string.delimiter",next:"@stringendquote"}]],stringenddoublequote:[["\\\\.","string"],['"',{token:"string.delimiter",next:"@pop"}],[".","string"]],stringendquote:[["\\\\.","string"],["'",{token:"string.delimiter",next:"@pop"}],[".","string"]]}}}}]); \ No newline at end of file diff --git a/docs/58.58.js b/docs/58.58.js new file mode 100644 index 00000000..9e47a767 --- /dev/null +++ b/docs/58.58.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[58],{964:function(e,r,o){"use strict";o.r(r),o.d(r,"conf",(function(){return i})),o.d(r,"language",(function(){return t}));var i={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}]},t={defaultToken:"",ignoreCase:!0,tokenPostfix:".shell",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["if","then","do","else","elif","while","until","for","in","esac","fi","fin","fil","done","exit","set","unset","export","function"],builtins:["ab","awk","bash","beep","cat","cc","cd","chown","chmod","chroot","clear","cp","curl","cut","diff","echo","find","gawk","gcc","get","git","grep","hg","kill","killall","ln","ls","make","mkdir","openssl","mv","nc","node","npm","ping","ps","restart","rm","rmdir","sed","service","sh","shopt","shred","source","sort","sleep","ssh","start","stop","su","sudo","svn","tee","telnet","top","touch","vi","vim","wall","wc","wget","who","write","yes","zsh"],symbols:/[=><!~?&|+\-*\/\^;\.,]+/,tokenizer:{root:[{include:"@whitespace"},[/[a-zA-Z]\w*/,{cases:{"@keywords":"keyword","@builtins":"type.identifier","@default":""}}],{include:"@strings"},{include:"@parameters"},{include:"@heredoc"},[/[{}\[\]()]/,"@brackets"],[/-+\w+/,"attribute.name"],[/@symbols/,"delimiter"],{include:"@numbers"},[/[,;]/,"delimiter"]],whitespace:[[/\s+/,"white"],[/(^#!.*$)/,"metatag"],[/(^#.*$)/,"comment"]],numbers:[[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/,"number.hex"],[/\d+/,"number"]],strings:[[/'/,"string","@stringBody"],[/"/,"string","@dblStringBody"]],stringBody:[[/'/,"string","@popall"],[/./,"string"]],dblStringBody:[[/"/,"string","@popall"],[/./,"string"]],heredoc:[[/(<<[-<]?)(\s*)(['"`]?)([\w\-]+)(['"`]?)/,["constants","white","string.heredoc.delimiter","string.heredoc","string.heredoc.delimiter"]]],parameters:[[/\$\d+/,"variable.predefined"],[/\$\w+/,"variable"],[/\$[*@#?\-$!0_]/,"variable"],[/\$'/,"variable","@parameterBodyQuote"],[/\$"/,"variable","@parameterBodyDoubleQuote"],[/\$\(/,"variable","@parameterBodyParen"],[/\$\{/,"variable","@parameterBodyCurlyBrace"]],parameterBodyQuote:[[/[^#:%*@\-!_']+/,"variable"],[/[#:%*@\-!_]/,"delimiter"],[/[']/,"variable","@pop"]],parameterBodyDoubleQuote:[[/[^#:%*@\-!_"]+/,"variable"],[/[#:%*@\-!_]/,"delimiter"],[/["]/,"variable","@pop"]],parameterBodyParen:[[/[^#:%*@\-!_)]+/,"variable"],[/[#:%*@\-!_]/,"delimiter"],[/[)]/,"variable","@pop"]],parameterBodyCurlyBrace:[[/[^#:%*@\-!_}]+/,"variable"],[/[#:%*@\-!_]/,"delimiter"],[/[}]/,"variable","@pop"]]}}}}]); \ No newline at end of file diff --git a/docs/59.59.js b/docs/59.59.js new file mode 100644 index 00000000..eac44599 --- /dev/null +++ b/docs/59.59.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[59],{965:function(x,e,i){"use strict";i.r(e),i.d(e,"conf",(function(){return d})),i.d(e,"language",(function(){return f}));var d={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]}]},f={defaultToken:"",tokenPostfix:".sol",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.angle",open:"<",close:">"}],keywords:["pragma","solidity","contract","library","using","struct","function","modifier","constructor","address","string","bool","Int","Uint","Byte","Fixed","Ufixed","int","int8","int16","int24","int32","int40","int48","int56","int64","int72","int80","int88","int96","int104","int112","int120","int128","int136","int144","int152","int160","int168","int176","int184","int192","int200","int208","int216","int224","int232","int240","int248","int256","uint","uint8","uint16","uint24","uint32","uint40","uint48","uint56","uint64","uint72","uint80","uint88","uint96","uint104","uint112","uint120","uint128","uint136","uint144","uint152","uint160","uint168","uint176","uint184","uint192","uint200","uint208","uint216","uint224","uint232","uint240","uint248","uint256","byte","bytes","bytes1","bytes2","bytes3","bytes4","bytes5","bytes6","bytes7","bytes8","bytes9","bytes10","bytes11","bytes12","bytes13","bytes14","bytes15","bytes16","bytes17","bytes18","bytes19","bytes20","bytes21","bytes22","bytes23","bytes24","bytes25","bytes26","bytes27","bytes28","bytes29","bytes30","bytes31","bytes32","fixed","fixed0x8","fixed0x16","fixed0x24","fixed0x32","fixed0x40","fixed0x48","fixed0x56","fixed0x64","fixed0x72","fixed0x80","fixed0x88","fixed0x96","fixed0x104","fixed0x112","fixed0x120","fixed0x128","fixed0x136","fixed0x144","fixed0x152","fixed0x160","fixed0x168","fixed0x176","fixed0x184","fixed0x192","fixed0x200","fixed0x208","fixed0x216","fixed0x224","fixed0x232","fixed0x240","fixed0x248","fixed0x256","fixed8x8","fixed8x16","fixed8x24","fixed8x32","fixed8x40","fixed8x48","fixed8x56","fixed8x64","fixed8x72","fixed8x80","fixed8x88","fixed8x96","fixed8x104","fixed8x112","fixed8x120","fixed8x128","fixed8x136","fixed8x144","fixed8x152","fixed8x160","fixed8x168","fixed8x176","fixed8x184","fixed8x192","fixed8x200","fixed8x208","fixed8x216","fixed8x224","fixed8x232","fixed8x240","fixed8x248","fixed16x8","fixed16x16","fixed16x24","fixed16x32","fixed16x40","fixed16x48","fixed16x56","fixed16x64","fixed16x72","fixed16x80","fixed16x88","fixed16x96","fixed16x104","fixed16x112","fixed16x120","fixed16x128","fixed16x136","fixed16x144","fixed16x152","fixed16x160","fixed16x168","fixed16x176","fixed16x184","fixed16x192","fixed16x200","fixed16x208","fixed16x216","fixed16x224","fixed16x232","fixed16x240","fixed24x8","fixed24x16","fixed24x24","fixed24x32","fixed24x40","fixed24x48","fixed24x56","fixed24x64","fixed24x72","fixed24x80","fixed24x88","fixed24x96","fixed24x104","fixed24x112","fixed24x120","fixed24x128","fixed24x136","fixed24x144","fixed24x152","fixed24x160","fixed24x168","fixed24x176","fixed24x184","fixed24x192","fixed24x200","fixed24x208","fixed24x216","fixed24x224","fixed24x232","fixed32x8","fixed32x16","fixed32x24","fixed32x32","fixed32x40","fixed32x48","fixed32x56","fixed32x64","fixed32x72","fixed32x80","fixed32x88","fixed32x96","fixed32x104","fixed32x112","fixed32x120","fixed32x128","fixed32x136","fixed32x144","fixed32x152","fixed32x160","fixed32x168","fixed32x176","fixed32x184","fixed32x192","fixed32x200","fixed32x208","fixed32x216","fixed32x224","fixed40x8","fixed40x16","fixed40x24","fixed40x32","fixed40x40","fixed40x48","fixed40x56","fixed40x64","fixed40x72","fixed40x80","fixed40x88","fixed40x96","fixed40x104","fixed40x112","fixed40x120","fixed40x128","fixed40x136","fixed40x144","fixed40x152","fixed40x160","fixed40x168","fixed40x176","fixed40x184","fixed40x192","fixed40x200","fixed40x208","fixed40x216","fixed48x8","fixed48x16","fixed48x24","fixed48x32","fixed48x40","fixed48x48","fixed48x56","fixed48x64","fixed48x72","fixed48x80","fixed48x88","fixed48x96","fixed48x104","fixed48x112","fixed48x120","fixed48x128","fixed48x136","fixed48x144","fixed48x152","fixed48x160","fixed48x168","fixed48x176","fixed48x184","fixed48x192","fixed48x200","fixed48x208","fixed56x8","fixed56x16","fixed56x24","fixed56x32","fixed56x40","fixed56x48","fixed56x56","fixed56x64","fixed56x72","fixed56x80","fixed56x88","fixed56x96","fixed56x104","fixed56x112","fixed56x120","fixed56x128","fixed56x136","fixed56x144","fixed56x152","fixed56x160","fixed56x168","fixed56x176","fixed56x184","fixed56x192","fixed56x200","fixed64x8","fixed64x16","fixed64x24","fixed64x32","fixed64x40","fixed64x48","fixed64x56","fixed64x64","fixed64x72","fixed64x80","fixed64x88","fixed64x96","fixed64x104","fixed64x112","fixed64x120","fixed64x128","fixed64x136","fixed64x144","fixed64x152","fixed64x160","fixed64x168","fixed64x176","fixed64x184","fixed64x192","fixed72x8","fixed72x16","fixed72x24","fixed72x32","fixed72x40","fixed72x48","fixed72x56","fixed72x64","fixed72x72","fixed72x80","fixed72x88","fixed72x96","fixed72x104","fixed72x112","fixed72x120","fixed72x128","fixed72x136","fixed72x144","fixed72x152","fixed72x160","fixed72x168","fixed72x176","fixed72x184","fixed80x8","fixed80x16","fixed80x24","fixed80x32","fixed80x40","fixed80x48","fixed80x56","fixed80x64","fixed80x72","fixed80x80","fixed80x88","fixed80x96","fixed80x104","fixed80x112","fixed80x120","fixed80x128","fixed80x136","fixed80x144","fixed80x152","fixed80x160","fixed80x168","fixed80x176","fixed88x8","fixed88x16","fixed88x24","fixed88x32","fixed88x40","fixed88x48","fixed88x56","fixed88x64","fixed88x72","fixed88x80","fixed88x88","fixed88x96","fixed88x104","fixed88x112","fixed88x120","fixed88x128","fixed88x136","fixed88x144","fixed88x152","fixed88x160","fixed88x168","fixed96x8","fixed96x16","fixed96x24","fixed96x32","fixed96x40","fixed96x48","fixed96x56","fixed96x64","fixed96x72","fixed96x80","fixed96x88","fixed96x96","fixed96x104","fixed96x112","fixed96x120","fixed96x128","fixed96x136","fixed96x144","fixed96x152","fixed96x160","fixed104x8","fixed104x16","fixed104x24","fixed104x32","fixed104x40","fixed104x48","fixed104x56","fixed104x64","fixed104x72","fixed104x80","fixed104x88","fixed104x96","fixed104x104","fixed104x112","fixed104x120","fixed104x128","fixed104x136","fixed104x144","fixed104x152","fixed112x8","fixed112x16","fixed112x24","fixed112x32","fixed112x40","fixed112x48","fixed112x56","fixed112x64","fixed112x72","fixed112x80","fixed112x88","fixed112x96","fixed112x104","fixed112x112","fixed112x120","fixed112x128","fixed112x136","fixed112x144","fixed120x8","fixed120x16","fixed120x24","fixed120x32","fixed120x40","fixed120x48","fixed120x56","fixed120x64","fixed120x72","fixed120x80","fixed120x88","fixed120x96","fixed120x104","fixed120x112","fixed120x120","fixed120x128","fixed120x136","fixed128x8","fixed128x16","fixed128x24","fixed128x32","fixed128x40","fixed128x48","fixed128x56","fixed128x64","fixed128x72","fixed128x80","fixed128x88","fixed128x96","fixed128x104","fixed128x112","fixed128x120","fixed128x128","fixed136x8","fixed136x16","fixed136x24","fixed136x32","fixed136x40","fixed136x48","fixed136x56","fixed136x64","fixed136x72","fixed136x80","fixed136x88","fixed136x96","fixed136x104","fixed136x112","fixed136x120","fixed144x8","fixed144x16","fixed144x24","fixed144x32","fixed144x40","fixed144x48","fixed144x56","fixed144x64","fixed144x72","fixed144x80","fixed144x88","fixed144x96","fixed144x104","fixed144x112","fixed152x8","fixed152x16","fixed152x24","fixed152x32","fixed152x40","fixed152x48","fixed152x56","fixed152x64","fixed152x72","fixed152x80","fixed152x88","fixed152x96","fixed152x104","fixed160x8","fixed160x16","fixed160x24","fixed160x32","fixed160x40","fixed160x48","fixed160x56","fixed160x64","fixed160x72","fixed160x80","fixed160x88","fixed160x96","fixed168x8","fixed168x16","fixed168x24","fixed168x32","fixed168x40","fixed168x48","fixed168x56","fixed168x64","fixed168x72","fixed168x80","fixed168x88","fixed176x8","fixed176x16","fixed176x24","fixed176x32","fixed176x40","fixed176x48","fixed176x56","fixed176x64","fixed176x72","fixed176x80","fixed184x8","fixed184x16","fixed184x24","fixed184x32","fixed184x40","fixed184x48","fixed184x56","fixed184x64","fixed184x72","fixed192x8","fixed192x16","fixed192x24","fixed192x32","fixed192x40","fixed192x48","fixed192x56","fixed192x64","fixed200x8","fixed200x16","fixed200x24","fixed200x32","fixed200x40","fixed200x48","fixed200x56","fixed208x8","fixed208x16","fixed208x24","fixed208x32","fixed208x40","fixed208x48","fixed216x8","fixed216x16","fixed216x24","fixed216x32","fixed216x40","fixed224x8","fixed224x16","fixed224x24","fixed224x32","fixed232x8","fixed232x16","fixed232x24","fixed240x8","fixed240x16","fixed248x8","ufixed","ufixed0x8","ufixed0x16","ufixed0x24","ufixed0x32","ufixed0x40","ufixed0x48","ufixed0x56","ufixed0x64","ufixed0x72","ufixed0x80","ufixed0x88","ufixed0x96","ufixed0x104","ufixed0x112","ufixed0x120","ufixed0x128","ufixed0x136","ufixed0x144","ufixed0x152","ufixed0x160","ufixed0x168","ufixed0x176","ufixed0x184","ufixed0x192","ufixed0x200","ufixed0x208","ufixed0x216","ufixed0x224","ufixed0x232","ufixed0x240","ufixed0x248","ufixed0x256","ufixed8x8","ufixed8x16","ufixed8x24","ufixed8x32","ufixed8x40","ufixed8x48","ufixed8x56","ufixed8x64","ufixed8x72","ufixed8x80","ufixed8x88","ufixed8x96","ufixed8x104","ufixed8x112","ufixed8x120","ufixed8x128","ufixed8x136","ufixed8x144","ufixed8x152","ufixed8x160","ufixed8x168","ufixed8x176","ufixed8x184","ufixed8x192","ufixed8x200","ufixed8x208","ufixed8x216","ufixed8x224","ufixed8x232","ufixed8x240","ufixed8x248","ufixed16x8","ufixed16x16","ufixed16x24","ufixed16x32","ufixed16x40","ufixed16x48","ufixed16x56","ufixed16x64","ufixed16x72","ufixed16x80","ufixed16x88","ufixed16x96","ufixed16x104","ufixed16x112","ufixed16x120","ufixed16x128","ufixed16x136","ufixed16x144","ufixed16x152","ufixed16x160","ufixed16x168","ufixed16x176","ufixed16x184","ufixed16x192","ufixed16x200","ufixed16x208","ufixed16x216","ufixed16x224","ufixed16x232","ufixed16x240","ufixed24x8","ufixed24x16","ufixed24x24","ufixed24x32","ufixed24x40","ufixed24x48","ufixed24x56","ufixed24x64","ufixed24x72","ufixed24x80","ufixed24x88","ufixed24x96","ufixed24x104","ufixed24x112","ufixed24x120","ufixed24x128","ufixed24x136","ufixed24x144","ufixed24x152","ufixed24x160","ufixed24x168","ufixed24x176","ufixed24x184","ufixed24x192","ufixed24x200","ufixed24x208","ufixed24x216","ufixed24x224","ufixed24x232","ufixed32x8","ufixed32x16","ufixed32x24","ufixed32x32","ufixed32x40","ufixed32x48","ufixed32x56","ufixed32x64","ufixed32x72","ufixed32x80","ufixed32x88","ufixed32x96","ufixed32x104","ufixed32x112","ufixed32x120","ufixed32x128","ufixed32x136","ufixed32x144","ufixed32x152","ufixed32x160","ufixed32x168","ufixed32x176","ufixed32x184","ufixed32x192","ufixed32x200","ufixed32x208","ufixed32x216","ufixed32x224","ufixed40x8","ufixed40x16","ufixed40x24","ufixed40x32","ufixed40x40","ufixed40x48","ufixed40x56","ufixed40x64","ufixed40x72","ufixed40x80","ufixed40x88","ufixed40x96","ufixed40x104","ufixed40x112","ufixed40x120","ufixed40x128","ufixed40x136","ufixed40x144","ufixed40x152","ufixed40x160","ufixed40x168","ufixed40x176","ufixed40x184","ufixed40x192","ufixed40x200","ufixed40x208","ufixed40x216","ufixed48x8","ufixed48x16","ufixed48x24","ufixed48x32","ufixed48x40","ufixed48x48","ufixed48x56","ufixed48x64","ufixed48x72","ufixed48x80","ufixed48x88","ufixed48x96","ufixed48x104","ufixed48x112","ufixed48x120","ufixed48x128","ufixed48x136","ufixed48x144","ufixed48x152","ufixed48x160","ufixed48x168","ufixed48x176","ufixed48x184","ufixed48x192","ufixed48x200","ufixed48x208","ufixed56x8","ufixed56x16","ufixed56x24","ufixed56x32","ufixed56x40","ufixed56x48","ufixed56x56","ufixed56x64","ufixed56x72","ufixed56x80","ufixed56x88","ufixed56x96","ufixed56x104","ufixed56x112","ufixed56x120","ufixed56x128","ufixed56x136","ufixed56x144","ufixed56x152","ufixed56x160","ufixed56x168","ufixed56x176","ufixed56x184","ufixed56x192","ufixed56x200","ufixed64x8","ufixed64x16","ufixed64x24","ufixed64x32","ufixed64x40","ufixed64x48","ufixed64x56","ufixed64x64","ufixed64x72","ufixed64x80","ufixed64x88","ufixed64x96","ufixed64x104","ufixed64x112","ufixed64x120","ufixed64x128","ufixed64x136","ufixed64x144","ufixed64x152","ufixed64x160","ufixed64x168","ufixed64x176","ufixed64x184","ufixed64x192","ufixed72x8","ufixed72x16","ufixed72x24","ufixed72x32","ufixed72x40","ufixed72x48","ufixed72x56","ufixed72x64","ufixed72x72","ufixed72x80","ufixed72x88","ufixed72x96","ufixed72x104","ufixed72x112","ufixed72x120","ufixed72x128","ufixed72x136","ufixed72x144","ufixed72x152","ufixed72x160","ufixed72x168","ufixed72x176","ufixed72x184","ufixed80x8","ufixed80x16","ufixed80x24","ufixed80x32","ufixed80x40","ufixed80x48","ufixed80x56","ufixed80x64","ufixed80x72","ufixed80x80","ufixed80x88","ufixed80x96","ufixed80x104","ufixed80x112","ufixed80x120","ufixed80x128","ufixed80x136","ufixed80x144","ufixed80x152","ufixed80x160","ufixed80x168","ufixed80x176","ufixed88x8","ufixed88x16","ufixed88x24","ufixed88x32","ufixed88x40","ufixed88x48","ufixed88x56","ufixed88x64","ufixed88x72","ufixed88x80","ufixed88x88","ufixed88x96","ufixed88x104","ufixed88x112","ufixed88x120","ufixed88x128","ufixed88x136","ufixed88x144","ufixed88x152","ufixed88x160","ufixed88x168","ufixed96x8","ufixed96x16","ufixed96x24","ufixed96x32","ufixed96x40","ufixed96x48","ufixed96x56","ufixed96x64","ufixed96x72","ufixed96x80","ufixed96x88","ufixed96x96","ufixed96x104","ufixed96x112","ufixed96x120","ufixed96x128","ufixed96x136","ufixed96x144","ufixed96x152","ufixed96x160","ufixed104x8","ufixed104x16","ufixed104x24","ufixed104x32","ufixed104x40","ufixed104x48","ufixed104x56","ufixed104x64","ufixed104x72","ufixed104x80","ufixed104x88","ufixed104x96","ufixed104x104","ufixed104x112","ufixed104x120","ufixed104x128","ufixed104x136","ufixed104x144","ufixed104x152","ufixed112x8","ufixed112x16","ufixed112x24","ufixed112x32","ufixed112x40","ufixed112x48","ufixed112x56","ufixed112x64","ufixed112x72","ufixed112x80","ufixed112x88","ufixed112x96","ufixed112x104","ufixed112x112","ufixed112x120","ufixed112x128","ufixed112x136","ufixed112x144","ufixed120x8","ufixed120x16","ufixed120x24","ufixed120x32","ufixed120x40","ufixed120x48","ufixed120x56","ufixed120x64","ufixed120x72","ufixed120x80","ufixed120x88","ufixed120x96","ufixed120x104","ufixed120x112","ufixed120x120","ufixed120x128","ufixed120x136","ufixed128x8","ufixed128x16","ufixed128x24","ufixed128x32","ufixed128x40","ufixed128x48","ufixed128x56","ufixed128x64","ufixed128x72","ufixed128x80","ufixed128x88","ufixed128x96","ufixed128x104","ufixed128x112","ufixed128x120","ufixed128x128","ufixed136x8","ufixed136x16","ufixed136x24","ufixed136x32","ufixed136x40","ufixed136x48","ufixed136x56","ufixed136x64","ufixed136x72","ufixed136x80","ufixed136x88","ufixed136x96","ufixed136x104","ufixed136x112","ufixed136x120","ufixed144x8","ufixed144x16","ufixed144x24","ufixed144x32","ufixed144x40","ufixed144x48","ufixed144x56","ufixed144x64","ufixed144x72","ufixed144x80","ufixed144x88","ufixed144x96","ufixed144x104","ufixed144x112","ufixed152x8","ufixed152x16","ufixed152x24","ufixed152x32","ufixed152x40","ufixed152x48","ufixed152x56","ufixed152x64","ufixed152x72","ufixed152x80","ufixed152x88","ufixed152x96","ufixed152x104","ufixed160x8","ufixed160x16","ufixed160x24","ufixed160x32","ufixed160x40","ufixed160x48","ufixed160x56","ufixed160x64","ufixed160x72","ufixed160x80","ufixed160x88","ufixed160x96","ufixed168x8","ufixed168x16","ufixed168x24","ufixed168x32","ufixed168x40","ufixed168x48","ufixed168x56","ufixed168x64","ufixed168x72","ufixed168x80","ufixed168x88","ufixed176x8","ufixed176x16","ufixed176x24","ufixed176x32","ufixed176x40","ufixed176x48","ufixed176x56","ufixed176x64","ufixed176x72","ufixed176x80","ufixed184x8","ufixed184x16","ufixed184x24","ufixed184x32","ufixed184x40","ufixed184x48","ufixed184x56","ufixed184x64","ufixed184x72","ufixed192x8","ufixed192x16","ufixed192x24","ufixed192x32","ufixed192x40","ufixed192x48","ufixed192x56","ufixed192x64","ufixed200x8","ufixed200x16","ufixed200x24","ufixed200x32","ufixed200x40","ufixed200x48","ufixed200x56","ufixed208x8","ufixed208x16","ufixed208x24","ufixed208x32","ufixed208x40","ufixed208x48","ufixed216x8","ufixed216x16","ufixed216x24","ufixed216x32","ufixed216x40","ufixed224x8","ufixed224x16","ufixed224x24","ufixed224x32","ufixed232x8","ufixed232x16","ufixed232x24","ufixed240x8","ufixed240x16","ufixed248x8","event","enum","let","mapping","private","public","external","inherited","payable","true","false","var","import","constant","if","else","for","else","for","while","do","break","continue","throw","returns","return","suicide","new","is","this","super"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,integersuffix:/(ll|LL|u|U|l|L)?(ll|LL|u|U|l|L)?/,floatsuffix:/[fFlL]?/,tokenizer:{root:[[/[a-zA-Z_]\w*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/\[\[.*\]\]/,"annotation"],[/^\s*#\w+/,"keyword"],[/int\d*/,"keyword"],[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,"number.float"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/,"number.hex"],[/0[0-7']*[0-7](@integersuffix)/,"number.octal"],[/0[bB][0-1']*[0-1](@integersuffix)/,"number.binary"],[/\d[\d']*\d(@integersuffix)/,"number"],[/\d(@integersuffix)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@doccomment"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],doccomment:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]]}}}}]); \ No newline at end of file diff --git a/docs/6.6.js b/docs/6.6.js new file mode 100644 index 00000000..2c6edd04 --- /dev/null +++ b/docs/6.6.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{906:function(e,t,r){"use strict";r.r(t);var n,i=r(224),o=function(){function e(e){var t=this;this._defaults=e,this._worker=null,this._idleCheckInterval=setInterval((function(){return t._checkIfIdle()}),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange((function(){return t._stopWorker()}))}return e.prototype._stopWorker=function(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null},e.prototype.dispose=function(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()},e.prototype._checkIfIdle=function(){this._worker&&(Date.now()-this._lastUsedTime>12e4&&this._stopWorker())},e.prototype._getClient=function(){return this._lastUsedTime=Date.now(),this._client||(this._worker=i.editor.createWebWorker({moduleId:"vs/language/json/jsonWorker",label:this._defaults.languageId,createData:{languageSettings:this._defaults.diagnosticsOptions,languageId:this._defaults.languageId,enableSchemaRequest:this._defaults.diagnosticsOptions.enableSchemaRequest}}),this._client=this._worker.getProxy()),this._client},e.prototype.getLanguageServiceWorker=function(){for(var e,t=this,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return this._getClient().then((function(t){e=t})).then((function(e){return t._worker.withSyncedResources(r)})).then((function(t){return e}))},e}();function a(e,t){void 0===t&&(t=!1);var r=e.length,n=0,i="",o=0,a=16,l=0,f=0,h=0,p=0,d=0;function m(t,r){for(var i=0,o=0;i<t||!r;){var a=e.charCodeAt(n);if(a>=48&&a<=57)o=16*o+a-48;else if(a>=65&&a<=70)o=16*o+a-65+10;else{if(!(a>=97&&a<=102))break;o=16*o+a-97+10}n++,i++}return i<t&&(o=-1),o}function g(){if(i="",d=0,o=n,f=l,p=h,n>=r)return o=r,a=17;var t=e.charCodeAt(n);if(s(t)){do{n++,i+=String.fromCharCode(t),t=e.charCodeAt(n)}while(s(t));return a=15}if(u(t))return n++,i+=String.fromCharCode(t),13===t&&10===e.charCodeAt(n)&&(n++,i+="\n"),l++,h=n,a=14;switch(t){case 123:return n++,a=1;case 125:return n++,a=2;case 91:return n++,a=3;case 93:return n++,a=4;case 58:return n++,a=6;case 44:return n++,a=5;case 34:return n++,i=function(){for(var t="",i=n;;){if(n>=r){t+=e.substring(i,n),d=2;break}var o=e.charCodeAt(n);if(34===o){t+=e.substring(i,n),n++;break}if(92!==o){if(o>=0&&o<=31){if(u(o)){t+=e.substring(i,n),d=2;break}d=6}n++}else{if(t+=e.substring(i,n),++n>=r){d=2;break}switch(e.charCodeAt(n++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:var a=m(4,!0);a>=0?t+=String.fromCharCode(a):d=4;break;default:d=5}i=n}}return t}(),a=10;case 47:var g=n-1;if(47===e.charCodeAt(n+1)){for(n+=2;n<r&&!u(e.charCodeAt(n));)n++;return i=e.substring(g,n),a=12}if(42===e.charCodeAt(n+1)){n+=2;for(var y=r-1,b=!1;n<y;){var x=e.charCodeAt(n);if(42===x&&47===e.charCodeAt(n+1)){n+=2,b=!0;break}n++,u(x)&&(13===x&&10===e.charCodeAt(n)&&n++,l++,h=n)}return b||(n++,d=1),i=e.substring(g,n),a=13}return i+=String.fromCharCode(t),n++,a=16;case 45:if(i+=String.fromCharCode(t),++n===r||!c(e.charCodeAt(n)))return a=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return i+=function(){var t=n;if(48===e.charCodeAt(n))n++;else for(n++;n<e.length&&c(e.charCodeAt(n));)n++;if(n<e.length&&46===e.charCodeAt(n)){if(!(++n<e.length&&c(e.charCodeAt(n))))return d=3,e.substring(t,n);for(n++;n<e.length&&c(e.charCodeAt(n));)n++}var r=n;if(n<e.length&&(69===e.charCodeAt(n)||101===e.charCodeAt(n)))if((++n<e.length&&43===e.charCodeAt(n)||45===e.charCodeAt(n))&&n++,n<e.length&&c(e.charCodeAt(n))){for(n++;n<e.length&&c(e.charCodeAt(n));)n++;r=n}else d=3;return e.substring(t,r)}(),a=11;default:for(;n<r&&v(t);)n++,t=e.charCodeAt(n);if(o!==n){switch(i=e.substring(o,n)){case"true":return a=8;case"false":return a=9;case"null":return a=7}return a=16}return i+=String.fromCharCode(t),n++,a=16}}function v(e){if(s(e)||u(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){n=e,i="",o=0,a=16,d=0},getPosition:function(){return n},scan:t?function(){var e;do{e=g()}while(e>=12&&e<=15);return e}:g,getToken:function(){return a},getTokenValue:function(){return i},getTokenOffset:function(){return o},getTokenLength:function(){return n-o},getTokenStartLine:function(){return f},getTokenStartCharacter:function(){return o-p},getTokenError:function(){return d}}}function s(e){return 32===e||9===e||11===e||12===e||160===e||5760===e||e>=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function u(e){return 10===e||13===e||8232===e||8233===e}function c(e){return e>=48&&e<=57}function l(e,t,r){void 0===r&&(r=n.DEFAULT);var i=a(e,!1);function o(e){return e?function(){return e(i.getTokenOffset(),i.getTokenLength(),i.getTokenStartLine(),i.getTokenStartCharacter())}:function(){return!0}}function s(e){return e?function(t){return e(t,i.getTokenOffset(),i.getTokenLength(),i.getTokenStartLine(),i.getTokenStartCharacter())}:function(){return!0}}var u=o(t.onObjectBegin),c=s(t.onObjectProperty),l=o(t.onObjectEnd),f=o(t.onArrayBegin),h=o(t.onArrayEnd),p=s(t.onLiteralValue),d=s(t.onSeparator),m=o(t.onComment),g=s(t.onError),v=r&&r.disallowComments,y=r&&r.allowTrailingComma;function b(){for(;;){var e=i.scan();switch(i.getTokenError()){case 4:x(14);break;case 5:x(15);break;case 3:x(13);break;case 1:v||x(11);break;case 2:x(12);break;case 6:x(16)}switch(e){case 12:case 13:v?x(10):m();break;case 16:x(1);break;case 15:case 14:break;default:return e}}}function x(e,t,r){if(void 0===t&&(t=[]),void 0===r&&(r=[]),g(e),t.length+r.length>0)for(var n=i.getToken();17!==n;){if(-1!==t.indexOf(n)){b();break}if(-1!==r.indexOf(n))break;n=b()}}function S(e){var t=i.getTokenValue();return e?p(t):c(t),b(),!0}function k(){switch(i.getToken()){case 3:return function(){f(),b();for(var e=!1;4!==i.getToken()&&17!==i.getToken();){if(5===i.getToken()){if(e||x(4,[],[]),d(","),b(),4===i.getToken()&&y)break}else e&&x(6,[],[]);k()||x(4,[],[4,5]),e=!0}return h(),4!==i.getToken()?x(8,[4],[]):b(),!0}();case 1:return function(){u(),b();for(var e=!1;2!==i.getToken()&&17!==i.getToken();){if(5===i.getToken()){if(e||x(4,[],[]),d(","),b(),2===i.getToken()&&y)break}else e&&x(6,[],[]);(10!==i.getToken()?(x(3,[],[2,5]),0):(S(!1),6===i.getToken()?(d(":"),b(),k()||x(4,[],[2,5])):x(5,[],[2,5]),1))||x(4,[],[2,5]),e=!0}return l(),2!==i.getToken()?x(7,[2],[]):b(),!0}();case 10:return S(!0);default:return function(){switch(i.getToken()){case 11:var e=0;try{"number"!=typeof(e=JSON.parse(i.getTokenValue()))&&(x(2),e=0)}catch(e){x(2)}p(e);break;case 7:p(null);break;case 8:p(!0);break;case 9:p(!1);break;default:return!1}return b(),!0}()}}return b(),17===i.getToken()?!!r.allowEmptyContent||(x(4,[],[]),!1):k()?(17!==i.getToken()&&x(9,[],[]),!0):(x(4,[],[]),!1)}!function(e){e.DEFAULT={allowTrailingComma:!1}}(n||(n={}));var f,h,p,d,m,g,v,y,b,x,S,k,C,w,A,I,T,E,O,j,M=a,P=function(e,t,r){void 0===t&&(t=[]),void 0===r&&(r=n.DEFAULT);var i=null,o=[],a=[];function s(e){Array.isArray(o)?o.push(e):null!==i&&(o[i]=e)}return l(e,{onObjectBegin:function(){var e={};s(e),a.push(o),o=e,i=null},onObjectProperty:function(e){i=e},onObjectEnd:function(){o=a.pop()},onArrayBegin:function(){var e=[];s(e),a.push(o),o=e,i=null},onArrayEnd:function(){o=a.pop()},onLiteralValue:s,onError:function(e,r,n){t.push({error:e,offset:r,length:n})}},r),o[0]},_=function e(t,r,n){if(void 0===n&&(n=!1),function(e,t,r){return void 0===r&&(r=!1),t>=e.offset&&t<e.offset+e.length||r&&t===e.offset+e.length}(t,r,n)){var i=t.children;if(Array.isArray(i))for(var o=0;o<i.length&&i[o].offset<=r;o++){var a=e(i[o],r,n);if(a)return a}return t}},F=function e(t){if(!t.parent||!t.parent.children)return[];var r=e(t.parent);if("property"===t.parent.type){var n=t.parent.children[0].value;r.push(n)}else if("array"===t.parent.type){var i=t.parent.children.indexOf(t);-1!==i&&r.push(i)}return r},V=function e(t){switch(t.type){case"array":return t.children.map(e);case"object":for(var r=Object.create(null),n=0,i=t.children;n<i.length;n++){var o=i[n],a=o.children[1];a&&(r[o.children[0].value]=e(a))}return r;case"null":case"string":case"number":case"boolean":return t.value;default:return}};function N(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(typeof e!=typeof t)return!1;if("object"!=typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;var r,n;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(r=0;r<e.length;r++)if(!N(e[r],t[r]))return!1}else{var i=[];for(n in e)i.push(n);i.sort();var o=[];for(n in t)o.push(n);if(o.sort(),!N(i,o))return!1;for(r=0;r<i.length;r++)if(!N(e[i[r]],t[i[r]]))return!1}return!0}function R(e){return"number"==typeof e}function $(e){return void 0!==e}function L(e){return"boolean"==typeof e}!function(e){e.create=function(e,t){return{line:e,character:t}},e.is=function(e){var t=e;return me.objectLiteral(t)&&me.number(t.line)&&me.number(t.character)}}(f||(f={})),function(e){e.create=function(e,t,r,n){if(me.number(e)&&me.number(t)&&me.number(r)&&me.number(n))return{start:f.create(e,t),end:f.create(r,n)};if(f.is(e)&&f.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments["+e+", "+t+", "+r+", "+n+"]")},e.is=function(e){var t=e;return me.objectLiteral(t)&&f.is(t.start)&&f.is(t.end)}}(h||(h={})),function(e){e.create=function(e,t){return{uri:e,range:t}},e.is=function(e){var t=e;return me.defined(t)&&h.is(t.range)&&(me.string(t.uri)||me.undefined(t.uri))}}(p||(p={})),function(e){e.create=function(e,t,r,n){return{targetUri:e,targetRange:t,targetSelectionRange:r,originSelectionRange:n}},e.is=function(e){var t=e;return me.defined(t)&&h.is(t.targetRange)&&me.string(t.targetUri)&&(h.is(t.targetSelectionRange)||me.undefined(t.targetSelectionRange))&&(h.is(t.originSelectionRange)||me.undefined(t.originSelectionRange))}}(d||(d={})),function(e){e.create=function(e,t,r,n){return{red:e,green:t,blue:r,alpha:n}},e.is=function(e){var t=e;return me.number(t.red)&&me.number(t.green)&&me.number(t.blue)&&me.number(t.alpha)}}(m||(m={})),function(e){e.create=function(e,t){return{range:e,color:t}},e.is=function(e){var t=e;return h.is(t.range)&&m.is(t.color)}}(g||(g={})),function(e){e.create=function(e,t,r){return{label:e,textEdit:t,additionalTextEdits:r}},e.is=function(e){var t=e;return me.string(t.label)&&(me.undefined(t.textEdit)||A.is(t))&&(me.undefined(t.additionalTextEdits)||me.typedArray(t.additionalTextEdits,A.is))}}(v||(v={})),function(e){e.Comment="comment",e.Imports="imports",e.Region="region"}(y||(y={})),function(e){e.create=function(e,t,r,n,i){var o={startLine:e,endLine:t};return me.defined(r)&&(o.startCharacter=r),me.defined(n)&&(o.endCharacter=n),me.defined(i)&&(o.kind=i),o},e.is=function(e){var t=e;return me.number(t.startLine)&&me.number(t.startLine)&&(me.undefined(t.startCharacter)||me.number(t.startCharacter))&&(me.undefined(t.endCharacter)||me.number(t.endCharacter))&&(me.undefined(t.kind)||me.string(t.kind))}}(b||(b={})),function(e){e.create=function(e,t){return{location:e,message:t}},e.is=function(e){var t=e;return me.defined(t)&&p.is(t.location)&&me.string(t.message)}}(x||(x={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4}(S||(S={})),function(e){e.Unnecessary=1,e.Deprecated=2}(k||(k={})),function(e){e.create=function(e,t,r,n,i,o){var a={range:e,message:t};return me.defined(r)&&(a.severity=r),me.defined(n)&&(a.code=n),me.defined(i)&&(a.source=i),me.defined(o)&&(a.relatedInformation=o),a},e.is=function(e){var t=e;return me.defined(t)&&h.is(t.range)&&me.string(t.message)&&(me.number(t.severity)||me.undefined(t.severity))&&(me.number(t.code)||me.string(t.code)||me.undefined(t.code))&&(me.string(t.source)||me.undefined(t.source))&&(me.undefined(t.relatedInformation)||me.typedArray(t.relatedInformation,x.is))}}(C||(C={})),function(e){e.create=function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i={title:e,command:t};return me.defined(r)&&r.length>0&&(i.arguments=r),i},e.is=function(e){var t=e;return me.defined(t)&&me.string(t.title)&&me.string(t.command)}}(w||(w={})),function(e){e.replace=function(e,t){return{range:e,newText:t}},e.insert=function(e,t){return{range:{start:e,end:e},newText:t}},e.del=function(e){return{range:e,newText:""}},e.is=function(e){var t=e;return me.objectLiteral(t)&&me.string(t.newText)&&h.is(t.range)}}(A||(A={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){var t=e;return me.defined(t)&&W.is(t.textDocument)&&Array.isArray(t.edits)}}(I||(I={})),function(e){e.create=function(e,t){var r={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),r},e.is=function(e){var t=e;return t&&"create"===t.kind&&me.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||me.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||me.boolean(t.options.ignoreIfExists)))}}(T||(T={})),function(e){e.create=function(e,t,r){var n={kind:"rename",oldUri:e,newUri:t};return void 0===r||void 0===r.overwrite&&void 0===r.ignoreIfExists||(n.options=r),n},e.is=function(e){var t=e;return t&&"rename"===t.kind&&me.string(t.oldUri)&&me.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||me.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||me.boolean(t.options.ignoreIfExists)))}}(E||(E={})),function(e){e.create=function(e,t){var r={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),r},e.is=function(e){var t=e;return t&&"delete"===t.kind&&me.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||me.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||me.boolean(t.options.ignoreIfNotExists)))}}(O||(O={})),function(e){e.is=function(e){var t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((function(e){return me.string(e.kind)?T.is(e)||E.is(e)||O.is(e):I.is(e)})))}}(j||(j={}));var D,W,U,q,B,K,J,H,z,G,Z,X,Q,Y,ee,te,re,ne,ie,oe,ae,se,ue,ce,le,fe,he,pe=function(){function e(e){this.edits=e}return e.prototype.insert=function(e,t){this.edits.push(A.insert(e,t))},e.prototype.replace=function(e,t){this.edits.push(A.replace(e,t))},e.prototype.delete=function(e){this.edits.push(A.del(e))},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e}();!function(){function e(e){var t=this;this._textEditChanges=Object.create(null),e&&(this._workspaceEdit=e,e.documentChanges?e.documentChanges.forEach((function(e){if(I.is(e)){var r=new pe(e.edits);t._textEditChanges[e.textDocument.uri]=r}})):e.changes&&Object.keys(e.changes).forEach((function(r){var n=new pe(e.changes[r]);t._textEditChanges[r]=n})))}Object.defineProperty(e.prototype,"edit",{get:function(){return this._workspaceEdit},enumerable:!0,configurable:!0}),e.prototype.getTextEditChange=function(e){if(W.is(e)){if(this._workspaceEdit||(this._workspaceEdit={documentChanges:[]}),!this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var t=e;if(!(n=this._textEditChanges[t.uri])){var r={textDocument:t,edits:i=[]};this._workspaceEdit.documentChanges.push(r),n=new pe(i),this._textEditChanges[t.uri]=n}return n}if(this._workspaceEdit||(this._workspaceEdit={changes:Object.create(null)}),!this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var n;if(!(n=this._textEditChanges[e])){var i=[];this._workspaceEdit.changes[e]=i,n=new pe(i),this._textEditChanges[e]=n}return n},e.prototype.createFile=function(e,t){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(T.create(e,t))},e.prototype.renameFile=function(e,t,r){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(E.create(e,t,r))},e.prototype.deleteFile=function(e,t){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(O.create(e,t))},e.prototype.checkDocumentChanges=function(){if(!this._workspaceEdit||!this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.")}}();!function(e){e.create=function(e){return{uri:e}},e.is=function(e){var t=e;return me.defined(t)&&me.string(t.uri)}}(D||(D={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return me.defined(t)&&me.string(t.uri)&&(null===t.version||me.number(t.version))}}(W||(W={})),function(e){e.create=function(e,t,r,n){return{uri:e,languageId:t,version:r,text:n}},e.is=function(e){var t=e;return me.defined(t)&&me.string(t.uri)&&me.string(t.languageId)&&me.number(t.version)&&me.string(t.text)}}(U||(U={})),function(e){e.PlainText="plaintext",e.Markdown="markdown"}(q||(q={})),function(e){e.is=function(t){var r=t;return r===e.PlainText||r===e.Markdown}}(q||(q={})),function(e){e.is=function(e){var t=e;return me.objectLiteral(e)&&q.is(t.kind)&&me.string(t.value)}}(B||(B={})),function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25}(K||(K={})),function(e){e.PlainText=1,e.Snippet=2}(J||(J={})),function(e){e.Deprecated=1}(H||(H={})),function(e){e.create=function(e){return{label:e}}}(z||(z={})),function(e){e.create=function(e,t){return{items:e||[],isIncomplete:!!t}}}(G||(G={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},e.is=function(e){var t=e;return me.string(t)||me.objectLiteral(t)&&me.string(t.language)&&me.string(t.value)}}(Z||(Z={})),function(e){e.is=function(e){var t=e;return!!t&&me.objectLiteral(t)&&(B.is(t.contents)||Z.is(t.contents)||me.typedArray(t.contents,Z.is))&&(void 0===e.range||h.is(e.range))}}(X||(X={})),function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e}}}(Q||(Q={})),function(e){e.create=function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i={label:e};return me.defined(t)&&(i.documentation=t),me.defined(r)?i.parameters=r:i.parameters=[],i}}(Y||(Y={})),function(e){e.Text=1,e.Read=2,e.Write=3}(ee||(ee={})),function(e){e.create=function(e,t){var r={range:e};return me.number(t)&&(r.kind=t),r}}(te||(te={})),function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26}(re||(re={})),function(e){e.Deprecated=1}(ne||(ne={})),function(e){e.create=function(e,t,r,n,i){var o={name:e,kind:t,location:{uri:n,range:r}};return i&&(o.containerName=i),o}}(ie||(ie={})),function(e){e.create=function(e,t,r,n,i,o){var a={name:e,detail:t,kind:r,range:n,selectionRange:i};return void 0!==o&&(a.children=o),a},e.is=function(e){var t=e;return t&&me.string(t.name)&&me.number(t.kind)&&h.is(t.range)&&h.is(t.selectionRange)&&(void 0===t.detail||me.string(t.detail))&&(void 0===t.deprecated||me.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))}}(oe||(oe={})),function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"}(ae||(ae={})),function(e){e.create=function(e,t){var r={diagnostics:e};return null!=t&&(r.only=t),r},e.is=function(e){var t=e;return me.defined(t)&&me.typedArray(t.diagnostics,C.is)&&(void 0===t.only||me.typedArray(t.only,me.string))}}(se||(se={})),function(e){e.create=function(e,t,r){var n={title:e};return w.is(t)?n.command=t:n.edit=t,void 0!==r&&(n.kind=r),n},e.is=function(e){var t=e;return t&&me.string(t.title)&&(void 0===t.diagnostics||me.typedArray(t.diagnostics,C.is))&&(void 0===t.kind||me.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||w.is(t.command))&&(void 0===t.isPreferred||me.boolean(t.isPreferred))&&(void 0===t.edit||j.is(t.edit))}}(ue||(ue={})),function(e){e.create=function(e,t){var r={range:e};return me.defined(t)&&(r.data=t),r},e.is=function(e){var t=e;return me.defined(t)&&h.is(t.range)&&(me.undefined(t.command)||w.is(t.command))}}(ce||(ce={})),function(e){e.create=function(e,t){return{tabSize:e,insertSpaces:t}},e.is=function(e){var t=e;return me.defined(t)&&me.number(t.tabSize)&&me.boolean(t.insertSpaces)}}(le||(le={})),function(e){e.create=function(e,t,r){return{range:e,target:t,data:r}},e.is=function(e){var t=e;return me.defined(t)&&h.is(t.range)&&(me.undefined(t.target)||me.string(t.target))}}(fe||(fe={})),function(e){e.create=function(e,t){return{range:e,parent:t}},e.is=function(t){var r=t;return void 0!==r&&h.is(r.range)&&(void 0===r.parent||e.is(r.parent))}}(he||(he={}));var de;!function(e){e.create=function(e,t,r,n){return new ge(e,t,r,n)},e.is=function(e){var t=e;return!!(me.defined(t)&&me.string(t.uri)&&(me.undefined(t.languageId)||me.string(t.languageId))&&me.number(t.lineCount)&&me.func(t.getText)&&me.func(t.positionAt)&&me.func(t.offsetAt))},e.applyEdits=function(e,t){for(var r=e.getText(),n=function e(t,r){if(t.length<=1)return t;var n=t.length/2|0,i=t.slice(0,n),o=t.slice(n);e(i,r),e(o,r);var a=0,s=0,u=0;for(;a<i.length&&s<o.length;){var c=r(i[a],o[s]);t[u++]=c<=0?i[a++]:o[s++]}for(;a<i.length;)t[u++]=i[a++];for(;s<o.length;)t[u++]=o[s++];return t}(t,(function(e,t){var r=e.range.start.line-t.range.start.line;return 0===r?e.range.start.character-t.range.start.character:r})),i=r.length,o=n.length-1;o>=0;o--){var a=n[o],s=e.offsetAt(a.range.start),u=e.offsetAt(a.range.end);if(!(u<=i))throw new Error("Overlapping edit");r=r.substring(0,s)+a.newText+r.substring(u,r.length),i=s}return r}}(de||(de={}));var me,ge=function(){function e(e,t,r,n){this._uri=e,this._languageId=t,this._version=r,this._content=n,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!0,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),r=this.offsetAt(e.end);return this._content.substring(t,r)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,r=!0,n=0;n<t.length;n++){r&&(e.push(n),r=!1);var i=t.charAt(n);r="\r"===i||"\n"===i,"\r"===i&&n+1<t.length&&"\n"===t.charAt(n+1)&&n++}r&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),r=0,n=t.length;if(0===n)return f.create(0,e);for(;r<n;){var i=Math.floor((r+n)/2);t[i]>e?n=i:r=i+1}var o=r-1;return f.create(o,e-t[o])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var r=t[e.line],n=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(r+e.character,n),r)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!0,configurable:!0}),e}();!function(e){var t=Object.prototype.toString;e.defined=function(e){return void 0!==e},e.undefined=function(e){return void 0===e},e.boolean=function(e){return!0===e||!1===e},e.string=function(e){return"[object String]"===t.call(e)},e.number=function(e){return"[object Number]"===t.call(e)},e.func=function(e){return"[object Function]"===t.call(e)},e.objectLiteral=function(e){return null!==e&&"object"==typeof e},e.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)}}(me||(me={}));var ve,ye,be,xe=function(){function e(e,t,r,n){this._uri=e,this._languageId=t,this._version=r,this._content=n,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!0,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),r=this.offsetAt(e.end);return this._content.substring(t,r)}return this._content},e.prototype.update=function(t,r){for(var n=0,i=t;n<i.length;n++){var o=i[n];if(e.isIncremental(o)){var a=ke(o.range),s=this.offsetAt(a.start),u=this.offsetAt(a.end);this._content=this._content.substring(0,s)+o.text+this._content.substring(u,this._content.length);var c=Math.max(a.start.line,0),l=Math.max(a.end.line,0),f=this._lineOffsets,h=Se(o.text,!1,s);if(l-c===h.length)for(var p=0,d=h.length;p<d;p++)f[p+c+1]=h[p];else h.length<1e4?f.splice.apply(f,[c+1,l-c].concat(h)):this._lineOffsets=f=f.slice(0,c+1).concat(h,f.slice(l+1));var m=o.text.length-(u-s);if(0!==m)for(p=c+1+h.length,d=f.length;p<d;p++)f[p]=f[p]+m}else{if(!e.isFull(o))throw new Error("Unknown change event received");this._content=o.text,this._lineOffsets=void 0}}this._version=r},e.prototype.getLineOffsets=function(){return void 0===this._lineOffsets&&(this._lineOffsets=Se(this._content,!0)),this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),r=0,n=t.length;if(0===n)return{line:0,character:e};for(;r<n;){var i=Math.floor((r+n)/2);t[i]>e?n=i:r=i+1}var o=r-1;return{line:o,character:e-t[o]}},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var r=t[e.line],n=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(r+e.character,n),r)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!0,configurable:!0}),e.isIncremental=function(e){var t=e;return null!=t&&"string"==typeof t.text&&void 0!==t.range&&(void 0===t.rangeLength||"number"==typeof t.rangeLength)},e.isFull=function(e){var t=e;return null!=t&&"string"==typeof t.text&&void 0===t.range&&void 0===t.rangeLength},e}();function Se(e,t,r){void 0===r&&(r=0);for(var n=t?[r]:[],i=0;i<e.length;i++){var o=e.charCodeAt(i);13!==o&&10!==o||(13===o&&i+1<e.length&&10===e.charCodeAt(i+1)&&i++,n.push(r+i+1))}return n}function ke(e){var t=e.start,r=e.end;return t.line>r.line||t.line===r.line&&t.character>r.character?{start:r,end:t}:e}function Ce(e){var t=ke(e.range);return t!==e.range?{newText:e.newText,range:t}:e}function we(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(e,t){return 0===t.length?e:e.replace(/\{(\d+)\}/g,(function(e,r){var n=r[0];return void 0!==t[n]?t[n]:e}))}(t,r)}function Ae(e){return we}!function(e){e.create=function(e,t,r,n){return new xe(e,t,r,n)},e.update=function(e,t,r){if(e instanceof xe)return e.update(t,r),e;throw new Error("TextDocument.update: document must be created by TextDocument.create")},e.applyEdits=function(e,t){for(var r=e.getText(),n=0,i=[],o=0,a=function e(t,r){if(t.length<=1)return t;var n=t.length/2|0,i=t.slice(0,n),o=t.slice(n);e(i,r),e(o,r);var a=0,s=0,u=0;for(;a<i.length&&s<o.length;){var c=r(i[a],o[s]);t[u++]=c<=0?i[a++]:o[s++]}for(;a<i.length;)t[u++]=i[a++];for(;s<o.length;)t[u++]=o[s++];return t}(t.map(Ce),(function(e,t){var r=e.range.start.line-t.range.start.line;return 0===r?e.range.start.character-t.range.start.character:r}));o<a.length;o++){var s=a[o],u=e.offsetAt(s.range.start);if(u<n)throw new Error("Overlapping edit");u>n&&i.push(r.substring(n,u)),s.newText.length&&i.push(s.newText),n=e.offsetAt(s.range.end)}return i.push(r.substr(n)),i.join("")}}(ve||(ve={})),function(e){e[e.Undefined=0]="Undefined",e[e.EnumValueMismatch=1]="EnumValueMismatch",e[e.UnexpectedEndOfComment=257]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=258]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=259]="UnexpectedEndOfNumber",e[e.InvalidUnicode=260]="InvalidUnicode",e[e.InvalidEscapeCharacter=261]="InvalidEscapeCharacter",e[e.InvalidCharacter=262]="InvalidCharacter",e[e.PropertyExpected=513]="PropertyExpected",e[e.CommaExpected=514]="CommaExpected",e[e.ColonExpected=515]="ColonExpected",e[e.ValueExpected=516]="ValueExpected",e[e.CommaOrCloseBacketExpected=517]="CommaOrCloseBacketExpected",e[e.CommaOrCloseBraceExpected=518]="CommaOrCloseBraceExpected",e[e.TrailingComma=519]="TrailingComma",e[e.DuplicateKey=520]="DuplicateKey",e[e.CommentNotPermitted=521]="CommentNotPermitted",e[e.SchemaResolveError=768]="SchemaResolveError"}(ye||(ye={})),(be||(be={})).LATEST={textDocument:{completion:{completionItem:{documentationFormat:[q.Markdown,q.PlainText],commitCharactersSupport:!0}}}};var Ie,Te,Ee=(Ie=function(e,t){return(Ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}Ie(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),Oe=Ae(),je={"color-hex":{errorMessage:Oe("colorHexFormatWarning","Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA."),pattern:/^#([0-9A-Fa-f]{3,4}|([0-9A-Fa-f]{2}){3,4})$/},"date-time":{errorMessage:Oe("dateTimeFormatWarning","String is not a RFC3339 date-time."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},date:{errorMessage:Oe("dateFormatWarning","String is not a RFC3339 date."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/i},time:{errorMessage:Oe("timeFormatWarning","String is not a RFC3339 time."),pattern:/^([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},email:{errorMessage:Oe("emailFormatWarning","String is not an e-mail address."),pattern:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/}},Me=function(){function e(e,t,r){void 0===r&&(r=0),this.offset=t,this.length=r,this.parent=e}return Object.defineProperty(e.prototype,"children",{get:function(){return[]},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")},e}();(function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.type="null",n.value=null,n}Ee(t,e)})(Me),function(e){function t(t,r,n){var i=e.call(this,t,n)||this;return i.type="boolean",i.value=r,i}Ee(t,e)}(Me),function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.type="array",n.items=[],n}Ee(t,e),Object.defineProperty(t.prototype,"children",{get:function(){return this.items},enumerable:!1,configurable:!0})}(Me),function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.type="number",n.isInteger=!0,n.value=Number.NaN,n}Ee(t,e)}(Me),function(e){function t(t,r,n){var i=e.call(this,t,r,n)||this;return i.type="string",i.value="",i}Ee(t,e)}(Me),function(e){function t(t,r,n){var i=e.call(this,t,r)||this;return i.type="property",i.colonOffset=-1,i.keyNode=n,i}Ee(t,e),Object.defineProperty(t.prototype,"children",{get:function(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]},enumerable:!1,configurable:!0})}(Me),function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.type="object",n.properties=[],n}Ee(t,e),Object.defineProperty(t.prototype,"children",{get:function(){return this.properties},enumerable:!1,configurable:!0})}(Me);function Pe(e){return L(e)?e?{}:{not:{}}:e}!function(e){e[e.Key=0]="Key",e[e.Enum=1]="Enum"}(Te||(Te={}));var _e=function(){function e(e,t){void 0===e&&(e=-1),this.focusOffset=e,this.exclude=t,this.schemas=[]}return e.prototype.add=function(e){this.schemas.push(e)},e.prototype.merge=function(e){Array.prototype.push.apply(this.schemas,e.schemas)},e.prototype.include=function(e){return(-1===this.focusOffset||$e(e,this.focusOffset))&&e!==this.exclude},e.prototype.newSub=function(){return new e(-1,this.exclude)},e}(),Fe=function(){function e(){}return Object.defineProperty(e.prototype,"schemas",{get:function(){return[]},enumerable:!1,configurable:!0}),e.prototype.add=function(e){},e.prototype.merge=function(e){},e.prototype.include=function(e){return!0},e.prototype.newSub=function(){return this},e.instance=new e,e}(),Ve=function(){function e(){this.problems=[],this.propertiesMatches=0,this.propertiesValueMatches=0,this.primaryValueMatches=0,this.enumValueMatch=!1,this.enumValues=void 0}return e.prototype.hasProblems=function(){return!!this.problems.length},e.prototype.mergeAll=function(e){for(var t=0,r=e;t<r.length;t++){var n=r[t];this.merge(n)}},e.prototype.merge=function(e){this.problems=this.problems.concat(e.problems)},e.prototype.mergeEnumValues=function(e){if(!this.enumValueMatch&&!e.enumValueMatch&&this.enumValues&&e.enumValues){this.enumValues=this.enumValues.concat(e.enumValues);for(var t=0,r=this.problems;t<r.length;t++){var n=r[t];n.code===ye.EnumValueMismatch&&(n.message=Oe("enumWarning","Value is not accepted. Valid values: {0}.",this.enumValues.map((function(e){return JSON.stringify(e)})).join(", ")))}}},e.prototype.mergePropertyMatch=function(e){this.merge(e),this.propertiesMatches++,(e.enumValueMatch||!e.hasProblems()&&e.propertiesMatches)&&this.propertiesValueMatches++,e.enumValueMatch&&e.enumValues&&1===e.enumValues.length&&this.primaryValueMatches++},e.prototype.compare=function(e){var t=this.hasProblems();return t!==e.hasProblems()?t?-1:1:this.enumValueMatch!==e.enumValueMatch?e.enumValueMatch?-1:1:this.primaryValueMatches!==e.primaryValueMatches?this.primaryValueMatches-e.primaryValueMatches:this.propertiesValueMatches!==e.propertiesValueMatches?this.propertiesValueMatches-e.propertiesValueMatches:this.propertiesMatches-e.propertiesMatches},e}();function Ne(e){return V(e)}function Re(e){return F(e)}function $e(e,t,r){return void 0===r&&(r=!1),t>=e.offset&&t<e.offset+e.length||r&&t===e.offset+e.length}!function(){function e(e,t,r){void 0===t&&(t=[]),void 0===r&&(r=[]),this.root=e,this.syntaxErrors=t,this.comments=r}e.prototype.getNodeFromOffset=function(e,t){if(void 0===t&&(t=!1),this.root)return _(this.root,e,t)},e.prototype.visit=function(e){if(this.root){var t=function(r){var n=e(r),i=r.children;if(Array.isArray(i))for(var o=0;o<i.length&&n;o++)n=t(i[o]);return n};t(this.root)}},e.prototype.validate=function(e,t){if(this.root&&t){var r=new Ve;return Le(this.root,t,r,Fe.instance),r.problems.map((function(t){var r=h.create(e.positionAt(t.location.offset),e.positionAt(t.location.offset+t.location.length));return C.create(r,t.message,t.severity,t.code)}))}},e.prototype.getMatchingSchemas=function(e,t,r){void 0===t&&(t=-1);var n=new _e(t,r);return this.root&&e&&Le(this.root,e,new Ve,n),n.schemas}}();function Le(e,t,r,n){if(e&&n.include(e)){var i=e;switch(i.type){case"object":!function(e,t,r,n){for(var i=Object.create(null),o=[],a=0,s=e.properties;a<s.length;a++){var u=(y=s[a]).keyNode.value;i[u]=y.valueNode,o.push(u)}if(Array.isArray(t.required))for(var c=0,l=t.required;c<l.length;c++){var f=l[c];if(!i[f]){var h=e.parent&&"property"===e.parent.type&&e.parent.keyNode,p=h?{offset:h.offset,length:h.length}:{offset:e.offset,length:1};r.problems.push({location:p,severity:S.Warning,message:Oe("MissingRequiredPropWarning",'Missing property "{0}".',f)})}}var d=function(e){for(var t=o.indexOf(e);t>=0;)o.splice(t,1),t=o.indexOf(e)};if(t.properties)for(var m=0,g=Object.keys(t.properties);m<g.length;m++){f=g[m];d(f);var v=t.properties[f];if(M=i[f])if(L(v))if(v)r.propertiesMatches++,r.propertiesValueMatches++;else{var y=M.parent;r.problems.push({location:{offset:y.keyNode.offset,length:y.keyNode.length},severity:S.Warning,message:t.errorMessage||Oe("DisallowedExtraPropWarning","Property {0} is not allowed.",f)})}else{var b=new Ve;Le(M,v,b,n),r.mergePropertyMatch(b)}}if(t.patternProperties)for(var x=0,k=Object.keys(t.patternProperties);x<k.length;x++)for(var C=k[x],w=new RegExp(C),A=0,I=o.slice(0);A<I.length;A++){f=I[A];if(w.test(f))if(d(f),M=i[f])if(L(v=t.patternProperties[C]))if(v)r.propertiesMatches++,r.propertiesValueMatches++;else{y=M.parent;r.problems.push({location:{offset:y.keyNode.offset,length:y.keyNode.length},severity:S.Warning,message:t.errorMessage||Oe("DisallowedExtraPropWarning","Property {0} is not allowed.",f)})}else{b=new Ve;Le(M,v,b,n),r.mergePropertyMatch(b)}}if("object"==typeof t.additionalProperties)for(var T=0,E=o;T<E.length;T++){f=E[T];if(M=i[f]){b=new Ve;Le(M,t.additionalProperties,b,n),r.mergePropertyMatch(b)}}else if(!1===t.additionalProperties&&o.length>0)for(var O=0,j=o;O<j.length;O++){var M;f=j[O];if(M=i[f]){y=M.parent;r.problems.push({location:{offset:y.keyNode.offset,length:y.keyNode.length},severity:S.Warning,message:t.errorMessage||Oe("DisallowedExtraPropWarning","Property {0} is not allowed.",f)})}}R(t.maxProperties)&&e.properties.length>t.maxProperties&&r.problems.push({location:{offset:e.offset,length:e.length},severity:S.Warning,message:Oe("MaxPropWarning","Object has more properties than limit of {0}.",t.maxProperties)});R(t.minProperties)&&e.properties.length<t.minProperties&&r.problems.push({location:{offset:e.offset,length:e.length},severity:S.Warning,message:Oe("MinPropWarning","Object has fewer properties than the required number of {0}",t.minProperties)});if(t.dependencies)for(var P=0,_=Object.keys(t.dependencies);P<_.length;P++){u=_[P];if(i[u]){var F=t.dependencies[u];if(Array.isArray(F))for(var V=0,N=F;V<N.length;V++){var $=N[V];i[$]?r.propertiesValueMatches++:r.problems.push({location:{offset:e.offset,length:e.length},severity:S.Warning,message:Oe("RequiredDependentPropWarning","Object is missing property {0} required by property {1}.",$,u)})}else if(v=Pe(F)){b=new Ve;Le(e,v,b,n),r.mergePropertyMatch(b)}}}var D=Pe(t.propertyNames);if(D)for(var W=0,U=e.properties;W<U.length;W++){var q=U[W];(u=q.keyNode)&&Le(u,D,r,Fe.instance)}}(i,t,r,n);break;case"array":!function(e,t,r,n){if(Array.isArray(t.items)){for(var i=t.items,o=0;o<i.length;o++){var a=Pe(i[o]),s=new Ve;(h=e.items[o])?(Le(h,a,s,n),r.mergePropertyMatch(s)):e.items.length>=i.length&&r.propertiesValueMatches++}if(e.items.length>i.length)if("object"==typeof t.additionalItems)for(var u=i.length;u<e.items.length;u++){s=new Ve;Le(e.items[u],t.additionalItems,s,n),r.mergePropertyMatch(s)}else!1===t.additionalItems&&r.problems.push({location:{offset:e.offset,length:e.length},severity:S.Warning,message:Oe("additionalItemsWarning","Array has too many items according to schema. Expected {0} or fewer.",i.length)})}else{var c=Pe(t.items);if(c)for(var l=0,f=e.items;l<f.length;l++){var h=f[l];s=new Ve;Le(h,c,s,n),r.mergePropertyMatch(s)}}var p=Pe(t.contains);if(p){e.items.some((function(e){var t=new Ve;return Le(e,p,t,Fe.instance),!t.hasProblems()}))||r.problems.push({location:{offset:e.offset,length:e.length},severity:S.Warning,message:t.errorMessage||Oe("requiredItemMissingWarning","Array does not contain required item.")})}R(t.minItems)&&e.items.length<t.minItems&&r.problems.push({location:{offset:e.offset,length:e.length},severity:S.Warning,message:Oe("minItemsWarning","Array has too few items. Expected {0} or more.",t.minItems)});R(t.maxItems)&&e.items.length>t.maxItems&&r.problems.push({location:{offset:e.offset,length:e.length},severity:S.Warning,message:Oe("maxItemsWarning","Array has too many items. Expected {0} or fewer.",t.maxItems)});if(!0===t.uniqueItems){var d=Ne(e);d.some((function(e,t){return t!==d.lastIndexOf(e)}))&&r.problems.push({location:{offset:e.offset,length:e.length},severity:S.Warning,message:Oe("uniqueItemsWarning","Array has duplicate items.")})}}(i,t,r,n);break;case"string":!function(e,t,r,n){R(t.minLength)&&e.value.length<t.minLength&&r.problems.push({location:{offset:e.offset,length:e.length},severity:S.Warning,message:Oe("minLengthWarning","String is shorter than the minimum length of {0}.",t.minLength)});R(t.maxLength)&&e.value.length>t.maxLength&&r.problems.push({location:{offset:e.offset,length:e.length},severity:S.Warning,message:Oe("maxLengthWarning","String is longer than the maximum length of {0}.",t.maxLength)});if(i=t.pattern,"string"==typeof i){new RegExp(t.pattern).test(e.value)||r.problems.push({location:{offset:e.offset,length:e.length},severity:S.Warning,message:t.patternErrorMessage||t.errorMessage||Oe("patternWarning",'String does not match the pattern of "{0}".',t.pattern)})}var i;if(t.format)switch(t.format){case"uri":case"uri-reference":var o=void 0;if(e.value){var a=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(e.value);a?a[2]||"uri"!==t.format||(o=Oe("uriSchemeMissing","URI with a scheme is expected.")):o=Oe("uriMissing","URI is expected.")}else o=Oe("uriEmpty","URI expected.");o&&r.problems.push({location:{offset:e.offset,length:e.length},severity:S.Warning,message:t.patternErrorMessage||t.errorMessage||Oe("uriFormatWarning","String is not a URI: {0}",o)});break;case"color-hex":case"date-time":case"date":case"time":case"email":var s=je[t.format];e.value&&s.pattern.exec(e.value)||r.problems.push({location:{offset:e.offset,length:e.length},severity:S.Warning,message:t.patternErrorMessage||t.errorMessage||s.errorMessage})}}(i,t,r);break;case"number":!function(e,t,r,n){var i=e.value;function o(e){var t,r=/^(-?\d+)(?:\.(\d+))?(?:e([-+]\d+))?$/.exec(e.toString());return r&&{value:Number(r[1]+(r[2]||"")),multiplier:((null===(t=r[2])||void 0===t?void 0:t.length)||0)-(parseInt(r[3])||0)}}if(R(t.multipleOf)){var a=-1;if(Number.isInteger(t.multipleOf))a=i%t.multipleOf;else{var s=o(t.multipleOf),u=o(i);if(s&&u){var c=Math.pow(10,Math.abs(u.multiplier-s.multiplier));u.multiplier<s.multiplier?u.value*=c:s.value*=c,a=u.value%s.value}}0!==a&&r.problems.push({location:{offset:e.offset,length:e.length},severity:S.Warning,message:Oe("multipleOfWarning","Value is not divisible by {0}.",t.multipleOf)})}function l(e,t){return R(t)?t:L(t)&&t?e:void 0}function f(e,t){if(!L(t)||!t)return e}var h=l(t.minimum,t.exclusiveMinimum);R(h)&&i<=h&&r.problems.push({location:{offset:e.offset,length:e.length},severity:S.Warning,message:Oe("exclusiveMinimumWarning","Value is below the exclusive minimum of {0}.",h)});var p=l(t.maximum,t.exclusiveMaximum);R(p)&&i>=p&&r.problems.push({location:{offset:e.offset,length:e.length},severity:S.Warning,message:Oe("exclusiveMaximumWarning","Value is above the exclusive maximum of {0}.",p)});var d=f(t.minimum,t.exclusiveMinimum);R(d)&&i<d&&r.problems.push({location:{offset:e.offset,length:e.length},severity:S.Warning,message:Oe("minimumWarning","Value is below the minimum of {0}.",d)});var m=f(t.maximum,t.exclusiveMaximum);R(m)&&i>m&&r.problems.push({location:{offset:e.offset,length:e.length},severity:S.Warning,message:Oe("maximumWarning","Value is above the maximum of {0}.",m)})}(i,t,r);break;case"property":return Le(i.valueNode,t,r,n)}!function(){function e(e){return i.type===e||"integer"===e&&"number"===i.type&&i.isInteger}Array.isArray(t.type)?t.type.some(e)||r.problems.push({location:{offset:i.offset,length:i.length},severity:S.Warning,message:t.errorMessage||Oe("typeArrayMismatchWarning","Incorrect type. Expected one of {0}.",t.type.join(", "))}):t.type&&(e(t.type)||r.problems.push({location:{offset:i.offset,length:i.length},severity:S.Warning,message:t.errorMessage||Oe("typeMismatchWarning",'Incorrect type. Expected "{0}".',t.type)}));if(Array.isArray(t.allOf))for(var o=0,a=t.allOf;o<a.length;o++){var s=a[o];Le(i,Pe(s),r,n)}var u=Pe(t.not);if(u){var c=new Ve,l=n.newSub();Le(i,u,c,l),c.hasProblems()||r.problems.push({location:{offset:i.offset,length:i.length},severity:S.Warning,message:Oe("notSchemaWarning","Matches a schema that is not allowed.")});for(var f=0,h=l.schemas;f<h.length;f++){var p=h[f];p.inverted=!p.inverted,n.add(p)}}var d=function(e,t){for(var o=[],a=void 0,s=0,u=e;s<u.length;s++){var c=Pe(u[s]),l=new Ve,f=n.newSub();if(Le(i,c,l,f),l.hasProblems()||o.push(c),a)if(t||l.hasProblems()||a.validationResult.hasProblems()){var h=l.compare(a.validationResult);h>0?a={schema:c,validationResult:l,matchingSchemas:f}:0===h&&(a.matchingSchemas.merge(f),a.validationResult.mergeEnumValues(l))}else a.matchingSchemas.merge(f),a.validationResult.propertiesMatches+=l.propertiesMatches,a.validationResult.propertiesValueMatches+=l.propertiesValueMatches;else a={schema:c,validationResult:l,matchingSchemas:f}}return o.length>1&&t&&r.problems.push({location:{offset:i.offset,length:1},severity:S.Warning,message:Oe("oneOfWarning","Matches multiple schemas when only one must validate.")}),a&&(r.merge(a.validationResult),r.propertiesMatches+=a.validationResult.propertiesMatches,r.propertiesValueMatches+=a.validationResult.propertiesValueMatches,n.merge(a.matchingSchemas)),o.length};Array.isArray(t.anyOf)&&d(t.anyOf,!1);Array.isArray(t.oneOf)&&d(t.oneOf,!0);var m=function(e){var t=new Ve,o=n.newSub();Le(i,Pe(e),t,o),r.merge(t),r.propertiesMatches+=t.propertiesMatches,r.propertiesValueMatches+=t.propertiesValueMatches,n.merge(o)},g=Pe(t.if);g&&function(e,t,r){var o=Pe(e),a=new Ve,s=n.newSub();Le(i,o,a,s),n.merge(s),a.hasProblems()?r&&m(r):t&&m(t)}(g,Pe(t.then),Pe(t.else));if(Array.isArray(t.enum)){for(var v=Ne(i),y=!1,b=0,x=t.enum;b<x.length;b++){var k=x[b];if(N(v,k)){y=!0;break}}r.enumValues=t.enum,r.enumValueMatch=y,y||r.problems.push({location:{offset:i.offset,length:i.length},severity:S.Warning,code:ye.EnumValueMismatch,message:t.errorMessage||Oe("enumWarning","Value is not accepted. Valid values: {0}.",t.enum.map((function(e){return JSON.stringify(e)})).join(", "))})}if($(t.const)){N(v=Ne(i),t.const)?r.enumValueMatch=!0:(r.problems.push({location:{offset:i.offset,length:i.length},severity:S.Warning,code:ye.EnumValueMismatch,message:t.errorMessage||Oe("constWarning","Value must be {0}.",JSON.stringify(t.const))}),r.enumValueMatch=!1),r.enumValues=[t.const]}t.deprecationMessage&&i.parent&&r.problems.push({location:{offset:i.parent.offset,length:i.parent.length},severity:S.Warning,message:t.deprecationMessage})}(),n.add({node:i,schema:t})}}function De(e,t){var r=e.length-t.length;return r>0?e.lastIndexOf(t)===r:0===r&&e===t}function We(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}var Ue=Ae();(function(){function e(e,t,r,n){void 0===t&&(t=[]),void 0===r&&(r=Promise),void 0===n&&(n={}),this.schemaService=e,this.contributions=t,this.promiseConstructor=r,this.clientCapabilities=n}e.prototype.doResolve=function(e){for(var t=this.contributions.length-1;t>=0;t--){var r=this.contributions[t].resolveCompletion;if(r){var n=r(e);if(n)return n}}return this.promiseConstructor.resolve(e)},e.prototype.doComplete=function(e,t,r){var n=this,i={items:[],isIncomplete:!1},o=e.getText(),a=e.offsetAt(t),s=r.getNodeFromOffset(a,!0);if(this.isInComment(e,s?s.offset:0,a))return Promise.resolve(i);if(s&&a===s.offset+s.length&&a>0){var u=o[a-1];("object"===s.type&&"}"===u||"array"===s.type&&"]"===u)&&(s=s.parent)}var c,l=this.getCurrentWord(e,a);if(!s||"string"!==s.type&&"number"!==s.type&&"boolean"!==s.type&&"null"!==s.type){var f=a-l.length;f>0&&'"'===o[f-1]&&f--,c=h.create(e.positionAt(f),t)}else c=h.create(e.positionAt(s.offset),e.positionAt(s.offset+s.length));var p={},d={add:function(e){var t=e.label,r=p[t];if(r)r.documentation||(r.documentation=e.documentation);else{if((t=t.replace(/[\n]/g,"↵")).length>60){var n=t.substr(0,57).trim()+"...";p[n]||(t=n)}c&&void 0!==e.insertText&&(e.textEdit=A.replace(c,e.insertText)),e.label=t,p[t]=e,i.items.push(e)}},setAsIncomplete:function(){i.isIncomplete=!0},error:function(e){console.error(e)},log:function(e){console.log(e)},getNumberOfProposals:function(){return i.items.length}};return this.schemaService.getSchemaForResource(e.uri,r).then((function(t){var u=[],f=!0,h="",m=void 0;if(s&&"string"===s.type){var g=s.parent;g&&"property"===g.type&&g.keyNode===s&&(f=!g.valueNode,m=g,h=o.substr(s.offset+1,s.length-2),g&&(s=g.parent))}if(s&&"object"===s.type){if(s.offset===a)return i;s.properties.forEach((function(e){m&&m===e||(p[e.keyNode.value]=z.create("__"))}));var v="";f&&(v=n.evaluateSeparatorAfter(e,e.offsetAt(c.end))),t?n.getPropertyCompletions(t,r,s,f,v,d):n.getSchemaLessPropertyCompletions(r,s,h,d);var y=Re(s);n.contributions.forEach((function(t){var r=t.collectPropertyCompletions(e.uri,y,l,f,""===v,d);r&&u.push(r)})),!t&&l.length>0&&'"'!==o.charAt(a-l.length-1)&&(d.add({kind:K.Property,label:n.getLabelForValue(l),insertText:n.getInsertTextForProperty(l,void 0,!1,v),insertTextFormat:J.Snippet,documentation:""}),d.setAsIncomplete())}var b={};return t?n.getValueCompletions(t,r,s,a,e,d,b):n.getSchemaLessValueCompletions(r,s,a,e,d),n.contributions.length>0&&n.getContributedValueCompletions(r,s,a,e,d,u),n.promiseConstructor.all(u).then((function(){if(0===d.getNumberOfProposals()){var t=a;!s||"string"!==s.type&&"number"!==s.type&&"boolean"!==s.type&&"null"!==s.type||(t=s.offset+s.length);var r=n.evaluateSeparatorAfter(e,t);n.addFillerValueCompletions(b,r,d)}return i}))}))},e.prototype.getPropertyCompletions=function(e,t,r,n,i,o){var a=this;t.getMatchingSchemas(e.schema,r.offset).forEach((function(e){if(e.node===r&&!e.inverted){var t=e.schema.properties;t&&Object.keys(t).forEach((function(e){var r=t[e];if("object"==typeof r&&!r.deprecationMessage&&!r.doNotSuggest){var s={kind:K.Property,label:e,insertText:a.getInsertTextForProperty(e,r,n,i),insertTextFormat:J.Snippet,filterText:a.getFilterTextForValue(e),documentation:a.fromMarkup(r.markdownDescription)||r.description||""};void 0!==r.suggestSortText&&(s.sortText=r.suggestSortText),s.insertText&&De(s.insertText,"$1"+i)&&(s.command={title:"Suggest",command:"editor.action.triggerSuggest"}),o.add(s)}}));var s=e.schema.propertyNames;if("object"==typeof s&&!s.deprecationMessage&&!s.doNotSuggest){var u=function(e,t){void 0===t&&(t=void 0);var r={kind:K.Property,label:e,insertText:a.getInsertTextForProperty(e,void 0,n,i),insertTextFormat:J.Snippet,filterText:a.getFilterTextForValue(e),documentation:t||a.fromMarkup(s.markdownDescription)||s.description||""};void 0!==s.suggestSortText&&(r.sortText=s.suggestSortText),r.insertText&&De(r.insertText,"$1"+i)&&(r.command={title:"Suggest",command:"editor.action.triggerSuggest"}),o.add(r)};if(s.enum)for(var c=0;c<s.enum.length;c++){var l=void 0;s.markdownEnumDescriptions&&c<s.markdownEnumDescriptions.length?l=a.fromMarkup(s.markdownEnumDescriptions[c]):s.enumDescriptions&&c<s.enumDescriptions.length&&(l=s.enumDescriptions[c]),u(s.enum[c],l)}s.const&&u(s.const)}}}))},e.prototype.getSchemaLessPropertyCompletions=function(e,t,r,n){var i=this,o=function(e){e.properties.forEach((function(e){var t=e.keyNode.value;n.add({kind:K.Property,label:t,insertText:i.getInsertTextForValue(t,""),insertTextFormat:J.Snippet,filterText:i.getFilterTextForValue(t),documentation:""})}))};if(t.parent)if("property"===t.parent.type){var a=t.parent.keyNode.value;e.visit((function(e){return"property"===e.type&&e!==t.parent&&e.keyNode.value===a&&e.valueNode&&"object"===e.valueNode.type&&o(e.valueNode),!0}))}else"array"===t.parent.type&&t.parent.items.forEach((function(e){"object"===e.type&&e!==t&&o(e)}));else"object"===t.type&&n.add({kind:K.Property,label:"$schema",insertText:this.getInsertTextForProperty("$schema",void 0,!0,""),insertTextFormat:J.Snippet,documentation:"",filterText:this.getFilterTextForValue("$schema")})},e.prototype.getSchemaLessValueCompletions=function(e,t,r,n,i){var o=this,a=r;if(!t||"string"!==t.type&&"number"!==t.type&&"boolean"!==t.type&&"null"!==t.type||(a=t.offset+t.length,t=t.parent),!t)return i.add({kind:this.getSuggestionKind("object"),label:"Empty object",insertText:this.getInsertTextForValue({},""),insertTextFormat:J.Snippet,documentation:""}),void i.add({kind:this.getSuggestionKind("array"),label:"Empty array",insertText:this.getInsertTextForValue([],""),insertTextFormat:J.Snippet,documentation:""});var s=this.evaluateSeparatorAfter(n,a),u=function(e){e.parent&&!$e(e.parent,r,!0)&&i.add({kind:o.getSuggestionKind(e.type),label:o.getLabelTextForMatchingNode(e,n),insertText:o.getInsertTextForMatchingNode(e,n,s),insertTextFormat:J.Snippet,documentation:""}),"boolean"===e.type&&o.addBooleanValueCompletion(!e.value,s,i)};if("property"===t.type&&r>(t.colonOffset||0)){var c=t.valueNode;if(c&&(r>c.offset+c.length||"object"===c.type||"array"===c.type))return;var l=t.keyNode.value;e.visit((function(e){return"property"===e.type&&e.keyNode.value===l&&e.valueNode&&u(e.valueNode),!0})),"$schema"===l&&t.parent&&!t.parent.parent&&this.addDollarSchemaCompletions(s,i)}if("array"===t.type)if(t.parent&&"property"===t.parent.type){var f=t.parent.keyNode.value;e.visit((function(e){return"property"===e.type&&e.keyNode.value===f&&e.valueNode&&"array"===e.valueNode.type&&e.valueNode.items.forEach(u),!0}))}else t.items.forEach(u)},e.prototype.getValueCompletions=function(e,t,r,n,i,o,a){var s=n,u=void 0,c=void 0;if(!r||"string"!==r.type&&"number"!==r.type&&"boolean"!==r.type&&"null"!==r.type||(s=r.offset+r.length,c=r,r=r.parent),r){if("property"===r.type&&n>(r.colonOffset||0)){var l=r.valueNode;if(l&&n>l.offset+l.length)return;u=r.keyNode.value,r=r.parent}if(r&&(void 0!==u||"array"===r.type)){for(var f=this.evaluateSeparatorAfter(i,s),h=0,p=t.getMatchingSchemas(e.schema,r.offset,c);h<p.length;h++){var d=p[h];if(d.node===r&&!d.inverted&&d.schema){if("array"===r.type&&d.schema.items)if(Array.isArray(d.schema.items)){var m=this.findItemAtOffset(r,i,n);m<d.schema.items.length&&this.addSchemaValueCompletions(d.schema.items[m],f,o,a)}else this.addSchemaValueCompletions(d.schema.items,f,o,a);if(void 0!==u){var g=!1;if(d.schema.properties)(x=d.schema.properties[u])&&(g=!0,this.addSchemaValueCompletions(x,f,o,a));if(d.schema.patternProperties&&!g)for(var v=0,y=Object.keys(d.schema.patternProperties);v<y.length;v++){var b=y[v];if(new RegExp(b).test(u)){g=!0;var x=d.schema.patternProperties[b];this.addSchemaValueCompletions(x,f,o,a)}}if(d.schema.additionalProperties&&!g){x=d.schema.additionalProperties;this.addSchemaValueCompletions(x,f,o,a)}}}}"$schema"!==u||r.parent||this.addDollarSchemaCompletions(f,o),a.boolean&&(this.addBooleanValueCompletion(!0,f,o),this.addBooleanValueCompletion(!1,f,o)),a.null&&this.addNullValueCompletion(f,o)}}else this.addSchemaValueCompletions(e.schema,"",o,a)},e.prototype.getContributedValueCompletions=function(e,t,r,n,i,o){if(t){if("string"!==t.type&&"number"!==t.type&&"boolean"!==t.type&&"null"!==t.type||(t=t.parent),t&&"property"===t.type&&r>(t.colonOffset||0)){var a=t.keyNode.value,s=t.valueNode;if((!s||r<=s.offset+s.length)&&t.parent){var u=Re(t.parent);this.contributions.forEach((function(e){var t=e.collectValueCompletions(n.uri,u,a,i);t&&o.push(t)}))}}}else this.contributions.forEach((function(e){var t=e.collectDefaultCompletions(n.uri,i);t&&o.push(t)}))},e.prototype.addSchemaValueCompletions=function(e,t,r,n){var i=this;"object"==typeof e&&(this.addEnumValueCompletions(e,t,r),this.addDefaultValueCompletions(e,t,r),this.collectTypes(e,n),Array.isArray(e.allOf)&&e.allOf.forEach((function(e){return i.addSchemaValueCompletions(e,t,r,n)})),Array.isArray(e.anyOf)&&e.anyOf.forEach((function(e){return i.addSchemaValueCompletions(e,t,r,n)})),Array.isArray(e.oneOf)&&e.oneOf.forEach((function(e){return i.addSchemaValueCompletions(e,t,r,n)})))},e.prototype.addDefaultValueCompletions=function(e,t,r,n){var i=this;void 0===n&&(n=0);var o=!1;if($(e.default)){for(var a=e.type,s=e.default,u=n;u>0;u--)s=[s],a="array";r.add({kind:this.getSuggestionKind(a),label:this.getLabelForValue(s),insertText:this.getInsertTextForValue(s,t),insertTextFormat:J.Snippet,detail:Ue("json.suggest.default","Default value")}),o=!0}Array.isArray(e.examples)&&e.examples.forEach((function(a){for(var s=e.type,u=a,c=n;c>0;c--)u=[u],s="array";r.add({kind:i.getSuggestionKind(s),label:i.getLabelForValue(u),insertText:i.getInsertTextForValue(u,t),insertTextFormat:J.Snippet}),o=!0})),Array.isArray(e.defaultSnippets)&&e.defaultSnippets.forEach((function(a){var s,u,c=e.type,l=a.body,f=a.label;if($(l)){e.type;for(var h=n;h>0;h--)l=[l],"array";s=i.getInsertTextForSnippetValue(l,t),u=i.getFilterTextForSnippetValue(l),f=f||i.getLabelForSnippetValue(l)}else{if("string"!=typeof a.bodyText)return;var p="",d="",m="";for(h=n;h>0;h--)p=p+m+"[\n",d=d+"\n"+m+"]",m+="\t",c="array";s=p+m+a.bodyText.split("\n").join("\n"+m)+d+t,f=f||s,u=s.replace(/[\n]/g,"")}r.add({kind:i.getSuggestionKind(c),label:f,documentation:i.fromMarkup(a.markdownDescription)||a.description,insertText:s,insertTextFormat:J.Snippet,filterText:u}),o=!0})),!o&&"object"==typeof e.items&&!Array.isArray(e.items)&&n<5&&this.addDefaultValueCompletions(e.items,t,r,n+1)},e.prototype.addEnumValueCompletions=function(e,t,r){if($(e.const)&&r.add({kind:this.getSuggestionKind(e.type),label:this.getLabelForValue(e.const),insertText:this.getInsertTextForValue(e.const,t),insertTextFormat:J.Snippet,documentation:this.fromMarkup(e.markdownDescription)||e.description}),Array.isArray(e.enum))for(var n=0,i=e.enum.length;n<i;n++){var o=e.enum[n],a=this.fromMarkup(e.markdownDescription)||e.description;e.markdownEnumDescriptions&&n<e.markdownEnumDescriptions.length&&this.doesSupportMarkdown()?a=this.fromMarkup(e.markdownEnumDescriptions[n]):e.enumDescriptions&&n<e.enumDescriptions.length&&(a=e.enumDescriptions[n]),r.add({kind:this.getSuggestionKind(e.type),label:this.getLabelForValue(o),insertText:this.getInsertTextForValue(o,t),insertTextFormat:J.Snippet,documentation:a})}},e.prototype.collectTypes=function(e,t){if(!Array.isArray(e.enum)&&!$(e.const)){var r=e.type;Array.isArray(r)?r.forEach((function(e){return t[e]=!0})):r&&(t[r]=!0)}},e.prototype.addFillerValueCompletions=function(e,t,r){e.object&&r.add({kind:this.getSuggestionKind("object"),label:"{}",insertText:this.getInsertTextForGuessedValue({},t),insertTextFormat:J.Snippet,detail:Ue("defaults.object","New object"),documentation:""}),e.array&&r.add({kind:this.getSuggestionKind("array"),label:"[]",insertText:this.getInsertTextForGuessedValue([],t),insertTextFormat:J.Snippet,detail:Ue("defaults.array","New array"),documentation:""})},e.prototype.addBooleanValueCompletion=function(e,t,r){r.add({kind:this.getSuggestionKind("boolean"),label:e?"true":"false",insertText:this.getInsertTextForValue(e,t),insertTextFormat:J.Snippet,documentation:""})},e.prototype.addNullValueCompletion=function(e,t){t.add({kind:this.getSuggestionKind("null"),label:"null",insertText:"null"+e,insertTextFormat:J.Snippet,documentation:""})},e.prototype.addDollarSchemaCompletions=function(e,t){var r=this;this.schemaService.getRegisteredSchemaIds((function(e){return"http"===e||"https"===e})).forEach((function(n){return t.add({kind:K.Module,label:r.getLabelForValue(n),filterText:r.getFilterTextForValue(n),insertText:r.getInsertTextForValue(n,e),insertTextFormat:J.Snippet,documentation:""})}))},e.prototype.getLabelForValue=function(e){return JSON.stringify(e)},e.prototype.getFilterTextForValue=function(e){return JSON.stringify(e)},e.prototype.getFilterTextForSnippetValue=function(e){return JSON.stringify(e).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")},e.prototype.getLabelForSnippetValue=function(e){return JSON.stringify(e).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")},e.prototype.getInsertTextForPlainText=function(e){return e.replace(/[\\\$\}]/g,"\\$&")},e.prototype.getInsertTextForValue=function(e,t){var r=JSON.stringify(e,null,"\t");return"{}"===r?"{$1}"+t:"[]"===r?"[$1]"+t:this.getInsertTextForPlainText(r+t)},e.prototype.getInsertTextForSnippetValue=function(e,t){return function e(t,r,n){if(null!==t&&"object"==typeof t){var i=r+"\t";if(Array.isArray(t)){if(0===t.length)return"[]";for(var o="[\n",a=0;a<t.length;a++)o+=i+e(t[a],i,n),a<t.length-1&&(o+=","),o+="\n";return o+=r+"]"}var s=Object.keys(t);if(0===s.length)return"{}";for(o="{\n",a=0;a<s.length;a++){var u=s[a];o+=i+JSON.stringify(u)+": "+e(t[u],i,n),a<s.length-1&&(o+=","),o+="\n"}return o+=r+"}"}return n(t)}(e,"",(function(e){return"string"==typeof e&&"^"===e[0]?e.substr(1):JSON.stringify(e)}))+t},e.prototype.getInsertTextForGuessedValue=function(e,t){switch(typeof e){case"object":return null===e?"${1:null}"+t:this.getInsertTextForValue(e,t);case"string":var r=JSON.stringify(e);return r=r.substr(1,r.length-2),'"${1:'+(r=this.getInsertTextForPlainText(r))+'}"'+t;case"number":case"boolean":return"${1:"+JSON.stringify(e)+"}"+t}return this.getInsertTextForValue(e,t)},e.prototype.getSuggestionKind=function(e){if(Array.isArray(e)){var t=e;e=t.length>0?t[0]:void 0}if(!e)return K.Value;switch(e){case"string":return K.Value;case"object":return K.Module;case"property":return K.Property;default:return K.Value}},e.prototype.getLabelTextForMatchingNode=function(e,t){switch(e.type){case"array":return"[]";case"object":return"{}";default:return t.getText().substr(e.offset,e.length)}},e.prototype.getInsertTextForMatchingNode=function(e,t,r){switch(e.type){case"array":return this.getInsertTextForValue([],r);case"object":return this.getInsertTextForValue({},r);default:var n=t.getText().substr(e.offset,e.length)+r;return this.getInsertTextForPlainText(n)}},e.prototype.getInsertTextForProperty=function(e,t,r,n){var i=this.getInsertTextForValue(e,"");if(!r)return i;var o,a=i+": ",s=0;if(t){if(Array.isArray(t.defaultSnippets)){if(1===t.defaultSnippets.length){var u=t.defaultSnippets[0].body;$(u)&&(o=this.getInsertTextForSnippetValue(u,""))}s+=t.defaultSnippets.length}if(t.enum&&(o||1!==t.enum.length||(o=this.getInsertTextForGuessedValue(t.enum[0],"")),s+=t.enum.length),$(t.default)&&(o||(o=this.getInsertTextForGuessedValue(t.default,"")),s++),Array.isArray(t.examples)&&t.examples.length&&(o||(o=this.getInsertTextForGuessedValue(t.examples[0],"")),s+=t.examples.length),0===s){var c=Array.isArray(t.type)?t.type[0]:t.type;switch(c||(t.properties?c="object":t.items&&(c="array")),c){case"boolean":o="$1";break;case"string":o='"$1"';break;case"object":o="{$1}";break;case"array":o="[$1]";break;case"number":case"integer":o="${1:0}";break;case"null":o="${1:null}";break;default:return i}}}return(!o||s>1)&&(o="$1"),a+o+n},e.prototype.getCurrentWord=function(e,t){for(var r=t-1,n=e.getText();r>=0&&-1===' \t\n\r\v":{[,]}'.indexOf(n.charAt(r));)r--;return n.substring(r+1,t)},e.prototype.evaluateSeparatorAfter=function(e,t){var r=M(e.getText(),!0);switch(r.setPosition(t),r.scan()){case 5:case 2:case 4:case 17:return"";default:return","}},e.prototype.findItemAtOffset=function(e,t,r){for(var n=M(t.getText(),!0),i=e.items,o=i.length-1;o>=0;o--){var a=i[o];if(r>a.offset+a.length)return n.setPosition(a.offset+a.length),5===n.scan()&&r>=n.getTokenOffset()+n.getTokenLength()?o+1:o;if(r>=a.offset)return o}return 0},e.prototype.isInComment=function(e,t,r){var n=M(e.getText(),!1);n.setPosition(t);for(var i=n.scan();17!==i&&n.getTokenOffset()+n.getTokenLength()<r;)i=n.scan();return(12===i||13===i)&&n.getTokenOffset()<=r},e.prototype.fromMarkup=function(e){if(e&&this.doesSupportMarkdown())return{kind:q.Markdown,value:e}},e.prototype.doesSupportMarkdown=function(){if(!$(this.supportsMarkdown)){var e=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsMarkdown=e&&e.completionItem&&Array.isArray(e.completionItem.documentationFormat)&&-1!==e.completionItem.documentationFormat.indexOf(q.Markdown)}return this.supportsMarkdown},e.prototype.doesSupportsCommitCharacters=function(){if(!$(this.supportsCommitCharacters)){var e=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsCommitCharacters=e&&e.completionItem&&!!e.completionItem.commitCharactersSupport}return this.supportsCommitCharacters}})(),function(){function e(e,t,r){void 0===t&&(t=[]),this.schemaService=e,this.contributions=t,this.promise=r||Promise}e.prototype.doHover=function(e,t,r){var n=e.offsetAt(t),i=r.getNodeFromOffset(n);if(!i||("object"===i.type||"array"===i.type)&&n>i.offset+1&&n<i.offset+i.length-1)return this.promise.resolve(null);var o=i;if("string"===i.type){var a=i.parent;if(a&&"property"===a.type&&a.keyNode===i&&!(i=a.valueNode))return this.promise.resolve(null)}for(var s=h.create(e.positionAt(o.offset),e.positionAt(o.offset+o.length)),u=function(e){return{contents:e,range:s}},c=Re(i),l=this.contributions.length-1;l>=0;l--){var f=this.contributions[l].getInfoContribution(e.uri,c);if(f)return f.then((function(e){return u(e)}))}return this.schemaService.getSchemaForResource(e.uri,r).then((function(e){if(e&&i){var t=r.getMatchingSchemas(e.schema,i.offset),n=void 0,o=void 0,a=void 0,s=void 0;t.every((function(e){if(e.node===i&&!e.inverted&&e.schema&&(n=n||e.schema.title,o=o||e.schema.markdownDescription||qe(e.schema.description),e.schema.enum)){var t=e.schema.enum.indexOf(Ne(i));e.schema.markdownEnumDescriptions?a=e.schema.markdownEnumDescriptions[t]:e.schema.enumDescriptions&&(a=qe(e.schema.enumDescriptions[t])),a&&"string"!=typeof(s=e.schema.enum[t])&&(s=JSON.stringify(s))}return!0}));var c="";return n&&(c=qe(n)),o&&(c.length>0&&(c+="\n\n"),c+=o),a&&(c.length>0&&(c+="\n\n"),c+="`"+function(e){if(-1!==e.indexOf("`"))return"`` "+e+" ``";return e}(s)+"`: "+a),u([c])}return null}))}}();function qe(e){if(e)return e.replace(/([^\n\r])(\r?\n)([^\n\r])/gm,"$1\n\n$3").replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}var Be=r(909),Ke=Ae(),Je=function(){function e(e,t){this.patternRegExps=[],this.isInclude=[];try{for(var r=0,n=e;r<n.length;r++){var i=n[r],o="!"!==i[0];o||(i=i.substring(1)),this.patternRegExps.push(new RegExp(We(i)+"$")),this.isInclude.push(o)}this.uris=t}catch(e){this.patternRegExps.length=0,this.isInclude.length=0,this.uris=[]}}return e.prototype.matchesPattern=function(e){for(var t=!1,r=0;r<this.patternRegExps.length;r++){this.patternRegExps[r].test(e)&&(t=this.isInclude[r])}return t},e.prototype.getURIs=function(){return this.uris},e}(),He=function(){function e(e,t,r){this.service=e,this.url=t,this.dependencies={},r&&(this.unresolvedSchema=this.service.promise.resolve(new ze(r)))}return e.prototype.getUnresolvedSchema=function(){return this.unresolvedSchema||(this.unresolvedSchema=this.service.loadSchema(this.url)),this.unresolvedSchema},e.prototype.getResolvedSchema=function(){var e=this;return this.resolvedSchema||(this.resolvedSchema=this.getUnresolvedSchema().then((function(t){return e.service.resolveSchemaContent(t,e.url,e.dependencies)}))),this.resolvedSchema},e.prototype.clearSchema=function(){this.resolvedSchema=void 0,this.unresolvedSchema=void 0,this.dependencies={}},e}(),ze=function(e,t){void 0===t&&(t=[]),this.schema=e,this.errors=t},Ge=function(){function e(e,t){void 0===t&&(t=[]),this.schema=e,this.errors=t}return e.prototype.getSection=function(e){var t=this.getSectionRecursive(e,this.schema);if(t)return Pe(t)},e.prototype.getSectionRecursive=function(e,t){if(!t||"boolean"==typeof t||0===e.length)return t;var r=e.shift();if(t.properties&&(t.properties[r],1))return this.getSectionRecursive(e,t.properties[r]);if(t.patternProperties)for(var n=0,i=Object.keys(t.patternProperties);n<i.length;n++){var o=i[n];if(new RegExp(o).test(r))return this.getSectionRecursive(e,t.patternProperties[o])}else{if("object"==typeof t.additionalProperties)return this.getSectionRecursive(e,t.additionalProperties);if(r.match("[0-9]+"))if(Array.isArray(t.items)){var a=parseInt(r,10);if(!isNaN(a)&&t.items[a])return this.getSectionRecursive(e,t.items[a])}else if(t.items)return this.getSectionRecursive(e,t.items)}},e}(),Ze=(function(){function e(e,t,r){this.contextService=t,this.requestService=e,this.promiseConstructor=r||Promise,this.callOnDispose=[],this.contributionSchemas={},this.contributionAssociations=[],this.schemasById={},this.filePatternAssociations=[],this.registeredSchemasIds={}}e.prototype.getRegisteredSchemaIds=function(e){return Object.keys(this.registeredSchemasIds).filter((function(t){var r=Be.a.parse(t).scheme;return"schemaservice"!==r&&(!e||e(r))}))},Object.defineProperty(e.prototype,"promise",{get:function(){return this.promiseConstructor},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){for(;this.callOnDispose.length>0;)this.callOnDispose.pop()()},e.prototype.onResourceChange=function(e){for(var t=this,r=!1,n=[e=Xe(e)],i=Object.keys(this.schemasById).map((function(e){return t.schemasById[e]}));n.length;)for(var o=n.pop(),a=0;a<i.length;a++){var s=i[a];s&&(s.url===o||s.dependencies[o])&&(s.url!==o&&n.push(s.url),s.clearSchema(),i[a]=void 0,r=!0)}return r},e.prototype.setSchemaContributions=function(e){if(e.schemas){var t=e.schemas;for(var r in t){var n=Xe(r);this.contributionSchemas[n]=this.addSchemaHandle(n,t[r])}}if(Array.isArray(e.schemaAssociations))for(var i=0,o=e.schemaAssociations;i<o.length;i++){var a=o[i],s=a.uris.map(Xe),u=this.addFilePatternAssociation(a.pattern,s);this.contributionAssociations.push(u)}},e.prototype.addSchemaHandle=function(e,t){var r=new He(this,e,t);return this.schemasById[e]=r,r},e.prototype.getOrAddSchemaHandle=function(e,t){return this.schemasById[e]||this.addSchemaHandle(e,t)},e.prototype.addFilePatternAssociation=function(e,t){var r=new Je(e,t);return this.filePatternAssociations.push(r),r},e.prototype.registerExternalSchema=function(e,t,r){var n=Xe(e);return this.registeredSchemasIds[n]=!0,this.cachedSchemaForResource=void 0,t&&this.addFilePatternAssociation(t,[e]),r?this.addSchemaHandle(n,r):this.getOrAddSchemaHandle(n)},e.prototype.clearExternalSchemas=function(){for(var e in this.schemasById={},this.filePatternAssociations=[],this.registeredSchemasIds={},this.cachedSchemaForResource=void 0,this.contributionSchemas)this.schemasById[e]=this.contributionSchemas[e],this.registeredSchemasIds[e]=!0;for(var t=0,r=this.contributionAssociations;t<r.length;t++){var n=r[t];this.filePatternAssociations.push(n)}},e.prototype.getResolvedSchema=function(e){var t=Xe(e),r=this.schemasById[t];return r?r.getResolvedSchema():this.promise.resolve(void 0)},e.prototype.loadSchema=function(e){if(!this.requestService){var t=Ke("json.schema.norequestservice","Unable to load schema from '{0}'. No schema request service available",Qe(e));return this.promise.resolve(new ze({},[t]))}return this.requestService(e).then((function(t){if(!t){var r=Ke("json.schema.nocontent","Unable to load schema from '{0}': No content.",Qe(e));return new ze({},[r])}var n,i=[];n=P(t,i);var o=i.length?[Ke("json.schema.invalidFormat","Unable to parse content from '{0}': Parse error at offset {1}.",Qe(e),i[0].offset)]:[];return new ze(n,o)}),(function(t){var r=t.toString(),n=t.toString().split("Error: ");return n.length>1&&(r=n[1]),De(r,".")&&(r=r.substr(0,r.length-1)),new ze({},[Ke("json.schema.nocontent","Unable to load schema from '{0}': {1}.",Qe(e),r)])}))},e.prototype.resolveSchemaContent=function(e,t,r){var n=this,i=e.errors.slice(0),o=e.schema;if(o.$schema){var a=Xe(o.$schema);if("http://json-schema.org/draft-03/schema"===a)return this.promise.resolve(new Ge({},[Ke("json.schema.draft03.notsupported","Draft-03 schemas are not supported.")]));"https://json-schema.org/draft/2019-09/schema"===a&&i.push(Ke("json.schema.draft201909.notsupported","Draft 2019-09 schemas are not yet fully supported."))}var s=this.contextService,u=function(e,t,r,n){var o=n?decodeURIComponent(n):void 0,a=function(e,t){if(!t)return e;var r=e;return"/"===t[0]&&(t=t.substr(1)),t.split("/").some((function(e){return!(r=r[e])})),r}(t,o);if(a)for(var s in a)a.hasOwnProperty(s)&&!e.hasOwnProperty(s)&&(e[s]=a[s]);else i.push(Ke("json.schema.invalidref","$ref '{0}' in '{1}' can not be resolved.",o,r))},c=function(e,t,r,o,a){s&&!/^\w+:\/\/.*/.test(t)&&(t=s.resolveRelativePath(t,o)),t=Xe(t);var c=n.getOrAddSchemaHandle(t);return c.getUnresolvedSchema().then((function(n){if(a[t]=!0,n.errors.length){var o=r?t+"#"+r:t;i.push(Ke("json.schema.problemloadingref","Problems loading reference '{0}': {1}",o,n.errors[0]))}return u(e,n.schema,t,r),l(e,n.schema,t,c.dependencies)}))},l=function(e,t,r,i){if(!e||"object"!=typeof e)return Promise.resolve(null);for(var o=[e],a=[],s=[],l=function(e){for(var n=[];e.$ref;){var a=e.$ref,l=a.split("#",2);if(delete e.$ref,l[0].length>0)return void s.push(c(e,l[0],l[1],r,i));-1===n.indexOf(a)&&(u(e,t,r,l[1]),n.push(a))}!function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e;r<n.length;r++){var i=n[r];"object"==typeof i&&o.push(i)}}(e.items,e.additionalItems,e.additionalProperties,e.not,e.contains,e.propertyNames,e.if,e.then,e.else),function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e;r<n.length;r++){var i=n[r];if("object"==typeof i)for(var a in i){var s=a,u=i[s];"object"==typeof u&&o.push(u)}}}(e.definitions,e.properties,e.patternProperties,e.dependencies),function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e;r<n.length;r++){var i=n[r];if(Array.isArray(i))for(var a=0,s=i;a<s.length;a++){var u=s[a];"object"==typeof u&&o.push(u)}}}(e.anyOf,e.allOf,e.oneOf,e.items)};o.length;){var f=o.pop();a.indexOf(f)>=0||(a.push(f),l(f))}return n.promise.all(s)};return l(o,o,t,r).then((function(e){return new Ge(o,i)}))},e.prototype.getSchemaForResource=function(e,t){if(t&&t.root&&"object"===t.root.type){var r=t.root.properties.filter((function(e){return"$schema"===e.keyNode.value&&e.valueNode&&"string"===e.valueNode.type}));if(r.length>0){var n=r[0].valueNode;if(n&&"string"===n.type){var i=Ne(n);if(i&&function(e,t){if(e.length<t.length)return!1;for(var r=0;r<t.length;r++)if(e[r]!==t[r])return!1;return!0}(i,".")&&this.contextService&&(i=this.contextService.resolveRelativePath(i,e)),i){var o=Xe(i);return this.getOrAddSchemaHandle(o).getResolvedSchema()}}}}if(this.cachedSchemaForResource&&this.cachedSchemaForResource.resource===e)return this.cachedSchemaForResource.resolvedSchema;for(var a=Object.create(null),s=[],u=0,c=this.filePatternAssociations;u<c.length;u++){var l=c[u];if(l.matchesPattern(e))for(var f=0,h=l.getURIs();f<h.length;f++){var p=h[f];a[p]||(s.push(p),a[p]=!0)}}var d=s.length>0?this.createCombinedSchema(e,s).getResolvedSchema():this.promise.resolve(void 0);return this.cachedSchemaForResource={resource:e,resolvedSchema:d},d},e.prototype.createCombinedSchema=function(e,t){if(1===t.length)return this.getOrAddSchemaHandle(t[0]);var r="schemaservice://combinedSchema/"+encodeURIComponent(e),n={allOf:t.map((function(e){return{$ref:e}}))};return this.addSchemaHandle(r,n)},e.prototype.getMatchingSchemas=function(e,t,r){if(r){var n=r.id||"schemaservice://untitled/matchingSchemas/"+Ze++;return this.resolveSchemaContent(new ze(r),n,{}).then((function(e){return t.getMatchingSchemas(e.schema).filter((function(e){return!e.inverted}))}))}return this.getSchemaForResource(e.uri,t).then((function(e){return e?t.getMatchingSchemas(e.schema).filter((function(e){return!e.inverted})):[]}))}}(),0);function Xe(e){try{return Be.a.parse(e).toString()}catch(t){return e}}function Qe(e){try{var t=Be.a.parse(e);if("file"===t.scheme)return t.fsPath}catch(e){}return e}var Ye=Ae(),et=(function(){function e(e,t){this.jsonSchemaService=e,this.promise=t,this.validationEnabled=!0}e.prototype.configure=function(e){e&&(this.validationEnabled=e.validate,this.commentSeverity=e.allowComments?void 0:S.Error)},e.prototype.doValidation=function(e,t,r,n){var i=this;if(!this.validationEnabled)return this.promise.resolve([]);var o=[],a={},s=function(e){var t=e.range.start.line+" "+e.range.start.character+" "+e.message;a[t]||(a[t]=!0,o.push(e))},u=function(n){var a=r?tt(r.trailingCommas):S.Error,u=r?tt(r.comments):i.commentSeverity;if(n){if(n.errors.length&&t.root){var c=t.root,l="object"===c.type?c.properties[0]:void 0;if(l&&"$schema"===l.keyNode.value){var f=l.valueNode||l,p=h.create(e.positionAt(f.offset),e.positionAt(f.offset+f.length));s(C.create(p,n.errors[0],S.Warning,ye.SchemaResolveError))}else{p=h.create(e.positionAt(c.offset),e.positionAt(c.offset+1));s(C.create(p,n.errors[0],S.Warning,ye.SchemaResolveError))}}else{var d=t.validate(e,n.schema);d&&d.forEach(s)}(function e(t){if(t&&"object"==typeof t){if(L(t.allowComments))return t.allowComments;if(t.allOf)for(var r=0,n=t.allOf;r<n.length;r++){var i=n[r],o=e(i);if(L(o))return o}}return})(n.schema)&&(u=void 0),function e(t){if(t&&"object"==typeof t){if(L(t.allowTrailingCommas))return t.allowTrailingCommas;var r=t;if(L(r.allowsTrailingCommas))return r.allowsTrailingCommas;if(t.allOf)for(var n=0,i=t.allOf;n<i.length;n++){var o=i[n],a=e(o);if(L(a))return a}}return}(n.schema)&&(a=void 0)}for(var m=0,g=t.syntaxErrors;m<g.length;m++){var v=g[m];if(v.code===ye.TrailingComma){if("number"!=typeof a)continue;v.severity=a}s(v)}if("number"==typeof u){var y=Ye("InvalidCommentToken","Comments are not permitted in JSON.");t.comments.forEach((function(e){s(C.create(e,y,u,ye.CommentNotPermitted))}))}return o};if(n){var c=n.id||"schemaservice://untitled/"+et++;return this.jsonSchemaService.resolveSchemaContent(new ze(n),c,{}).then((function(e){return u(e)}))}return this.jsonSchemaService.getSchemaForResource(e.uri,t).then((function(e){return u(e)}))}}(),0);function tt(e){switch(e){case"error":return S.Error;case"warning":return S.Warning;case"ignore":return}}var rt=48,nt=57,it=65,ot=97,at=102;function st(e){return e<rt?0:e<=nt?e-rt:(e<ot&&(e+=ot-it),e>=ot&&e<=at?e-ot+10:0)}function ut(e){if("#"===e[0])switch(e.length){case 4:return{red:17*st(e.charCodeAt(1))/255,green:17*st(e.charCodeAt(2))/255,blue:17*st(e.charCodeAt(3))/255,alpha:1};case 5:return{red:17*st(e.charCodeAt(1))/255,green:17*st(e.charCodeAt(2))/255,blue:17*st(e.charCodeAt(3))/255,alpha:17*st(e.charCodeAt(4))/255};case 7:return{red:(16*st(e.charCodeAt(1))+st(e.charCodeAt(2)))/255,green:(16*st(e.charCodeAt(3))+st(e.charCodeAt(4)))/255,blue:(16*st(e.charCodeAt(5))+st(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:(16*st(e.charCodeAt(1))+st(e.charCodeAt(2)))/255,green:(16*st(e.charCodeAt(3))+st(e.charCodeAt(4)))/255,blue:(16*st(e.charCodeAt(5))+st(e.charCodeAt(6)))/255,alpha:(16*st(e.charCodeAt(7))+st(e.charCodeAt(8)))/255}}}!function(){function e(e){this.schemaService=e}e.prototype.findDocumentSymbols=function(e,t,r){var n=this;void 0===r&&(r={resultLimit:Number.MAX_VALUE});var i=t.root;if(!i)return[];var o=r.resultLimit||Number.MAX_VALUE,a=e.uri;if(("vscode://defaultsettings/keybindings.json"===a||De(a.toLowerCase(),"/user/keybindings.json"))&&"array"===i.type){for(var s=[],u=0,c=i.items;u<c.length;u++){var l=c[u];if("object"===l.type)for(var f=0,h=l.properties;f<h.length;f++){var d=h[f];if("key"===d.keyNode.value&&d.valueNode){var m=p.create(e.uri,ct(e,l));if(s.push({name:Ne(d.valueNode),kind:re.Function,location:m}),--o<=0)return r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(a),s}}}return s}for(var g=[{node:i,containerName:""}],v=0,y=!1,b=[],x=function(t,r){"array"===t.type?t.items.forEach((function(e){e&&g.push({node:e,containerName:r})})):"object"===t.type&&t.properties.forEach((function(t){var i=t.valueNode;if(i)if(o>0){o--;var a=p.create(e.uri,ct(e,t)),s=r?r+"."+t.keyNode.value:t.keyNode.value;b.push({name:n.getKeyLabel(t),kind:n.getSymbolKind(i.type),location:a,containerName:r}),g.push({node:i,containerName:s})}else y=!0}))};v<g.length;){var S=g[v++];x(S.node,S.containerName)}return y&&r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(a),b},e.prototype.findDocumentSymbols2=function(e,t,r){var n=this;void 0===r&&(r={resultLimit:Number.MAX_VALUE});var i=t.root;if(!i)return[];var o=r.resultLimit||Number.MAX_VALUE,a=e.uri;if(("vscode://defaultsettings/keybindings.json"===a||De(a.toLowerCase(),"/user/keybindings.json"))&&"array"===i.type){for(var s=[],u=0,c=i.items;u<c.length;u++){var l=c[u];if("object"===l.type)for(var f=0,h=l.properties;f<h.length;f++){var p=h[f];if("key"===p.keyNode.value&&p.valueNode){var d=ct(e,l),m=ct(e,p.keyNode);if(s.push({name:Ne(p.valueNode),kind:re.Function,range:d,selectionRange:m}),--o<=0)return r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(a),s}}}return s}for(var g=[],v=[{node:i,result:g}],y=0,b=!1,x=function(t,r){"array"===t.type?t.items.forEach((function(t,i){if(t)if(o>0){o--;var a=ct(e,t),s=a,u={name:String(i),kind:n.getSymbolKind(t.type),range:a,selectionRange:s,children:[]};r.push(u),v.push({result:u.children,node:t})}else b=!0})):"object"===t.type&&t.properties.forEach((function(t){var i=t.valueNode;if(i)if(o>0){o--;var a=ct(e,t),s=ct(e,t.keyNode),u={name:n.getKeyLabel(t),kind:n.getSymbolKind(i.type),range:a,selectionRange:s,children:[]};r.push(u),v.push({result:u.children,node:i})}else b=!0}))};y<v.length;){var S=v[y++];x(S.node,S.result)}return b&&r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(a),g},e.prototype.getSymbolKind=function(e){switch(e){case"object":return re.Module;case"string":return re.String;case"number":return re.Number;case"array":return re.Array;case"boolean":return re.Boolean;default:return re.Variable}},e.prototype.getKeyLabel=function(e){var t=e.keyNode.value;return t&&(t=t.replace(/[\n]/g,"↵")),t&&t.trim()?t:'"'+t+'"'},e.prototype.findDocumentColors=function(e,t,r){return this.schemaService.getSchemaForResource(e.uri,t).then((function(n){var i=[];if(n)for(var o=r&&"number"==typeof r.resultLimit?r.resultLimit:Number.MAX_VALUE,a={},s=0,u=t.getMatchingSchemas(n.schema);s<u.length;s++){var c=u[s];if(!c.inverted&&c.schema&&("color"===c.schema.format||"color-hex"===c.schema.format)&&c.node&&"string"===c.node.type){var l=String(c.node.offset);if(!a[l]){var f=ut(Ne(c.node));if(f){var h=ct(e,c.node);i.push({color:f,range:h})}if(a[l]=!0,--o<=0)return r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(e.uri),i}}}return i}))},e.prototype.getColorPresentations=function(e,t,r,n){var i,o=[],a=Math.round(255*r.red),s=Math.round(255*r.green),u=Math.round(255*r.blue);function c(e){var t=e.toString(16);return 2!==t.length?"0"+t:t}return i=1===r.alpha?"#"+c(a)+c(s)+c(u):"#"+c(a)+c(s)+c(u)+c(Math.round(255*r.alpha)),o.push({label:i,textEdit:A.replace(n,JSON.stringify(i))}),o}}();function ct(e,t){return h.create(e.positionAt(t.offset),e.positionAt(t.offset+t.length))}var lt=Ae(),ft={schemaAssociations:[],schemas:{"http://json-schema.org/schema#":{$ref:"http://json-schema.org/draft-07/schema#"},"http://json-schema.org/draft-04/schema#":{title:lt("schema.json","Describes a JSON file using a schema. See json-schema.org for more info."),$schema:"http://json-schema.org/draft-04/schema#",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{type:"string",enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},type:"object",properties:{id:{type:"string",format:"uri"},$schema:{type:"string",format:"uri"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minLength:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minItems:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},uniqueItems:{type:"boolean",default:!1},maxProperties:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minProperties:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},required:{allOf:[{$ref:"#/definitions/stringArray"}]},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{anyOf:[{type:"string",enum:["date-time","uri","email","hostname","ipv4","ipv6","regex"]},{type:"string"}]},allOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},anyOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},oneOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},not:{allOf:[{$ref:"#"}]}},dependencies:{exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},default:{}},"http://json-schema.org/draft-07/schema#":{title:lt("schema.json","Describes a JSON file using a schema. See json-schema.org for more info."),definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}}},ht={id:lt("schema.json.id","A unique identifier for the schema."),$schema:lt("schema.json.$schema","The schema to verify this document against."),title:lt("schema.json.title","A descriptive title of the element."),description:lt("schema.json.description","A long description of the element. Used in hover menus and suggestions."),default:lt("schema.json.default","A default value. Used by suggestions."),multipleOf:lt("schema.json.multipleOf","A number that should cleanly divide the current value (i.e. have no remainder)."),maximum:lt("schema.json.maximum","The maximum numerical value, inclusive by default."),exclusiveMaximum:lt("schema.json.exclusiveMaximum","Makes the maximum property exclusive."),minimum:lt("schema.json.minimum","The minimum numerical value, inclusive by default."),exclusiveMinimum:lt("schema.json.exclusiveMininum","Makes the minimum property exclusive."),maxLength:lt("schema.json.maxLength","The maximum length of a string."),minLength:lt("schema.json.minLength","The minimum length of a string."),pattern:lt("schema.json.pattern","A regular expression to match the string against. It is not implicitly anchored."),additionalItems:lt("schema.json.additionalItems","For arrays, only when items is set as an array. If it is a schema, then this schema validates items after the ones specified by the items array. If it is false, then additional items will cause validation to fail."),items:lt("schema.json.items","For arrays. Can either be a schema to validate every element against or an array of schemas to validate each item against in order (the first schema will validate the first element, the second schema will validate the second element, and so on."),maxItems:lt("schema.json.maxItems","The maximum number of items that can be inside an array. Inclusive."),minItems:lt("schema.json.minItems","The minimum number of items that can be inside an array. Inclusive."),uniqueItems:lt("schema.json.uniqueItems","If all of the items in the array must be unique. Defaults to false."),maxProperties:lt("schema.json.maxProperties","The maximum number of properties an object can have. Inclusive."),minProperties:lt("schema.json.minProperties","The minimum number of properties an object can have. Inclusive."),required:lt("schema.json.required","An array of strings that lists the names of all properties required on this object."),additionalProperties:lt("schema.json.additionalProperties","Either a schema or a boolean. If a schema, then used to validate all properties not matched by 'properties' or 'patternProperties'. If false, then any properties not matched by either will cause this schema to fail."),definitions:lt("schema.json.definitions","Not used for validation. Place subschemas here that you wish to reference inline with $ref."),properties:lt("schema.json.properties","A map of property names to schemas for each property."),patternProperties:lt("schema.json.patternProperties","A map of regular expressions on property names to schemas for matching properties."),dependencies:lt("schema.json.dependencies","A map of property names to either an array of property names or a schema. An array of property names means the property named in the key depends on the properties in the array being present in the object in order to be valid. If the value is a schema, then the schema is only applied to the object if the property in the key exists on the object."),enum:lt("schema.json.enum","The set of literal values that are valid."),type:lt("schema.json.type","Either a string of one of the basic schema types (number, integer, null, array, object, boolean, string) or an array of strings specifying a subset of those types."),format:lt("schema.json.format","Describes the format expected for the value."),allOf:lt("schema.json.allOf","An array of schemas, all of which must match."),anyOf:lt("schema.json.anyOf","An array of schemas, where at least one must match."),oneOf:lt("schema.json.oneOf","An array of schemas, exactly one of which must match."),not:lt("schema.json.not","A schema which must not match."),$id:lt("schema.json.$id","A unique identifier for the schema."),$ref:lt("schema.json.$ref","Reference a definition hosted on any location."),$comment:lt("schema.json.$comment","Comments from schema authors to readers or maintainers of the schema."),readOnly:lt("schema.json.readOnly","Indicates that the value of the instance is managed exclusively by the owning authority."),examples:lt("schema.json.examples","Sample JSON values associated with a particular schema, for the purpose of illustrating usage."),contains:lt("schema.json.contains",'An array instance is valid against "contains" if at least one of its elements is valid against the given schema.'),propertyNames:lt("schema.json.propertyNames","If the instance is an object, this keyword validates if every property name in the instance validates against the provided schema."),const:lt("schema.json.const","An instance validates successfully against this keyword if its value is equal to the value of the keyword."),contentMediaType:lt("schema.json.contentMediaType","Describes the media type of a string property."),contentEncoding:lt("schema.json.contentEncoding","Describes the content encoding of a string property."),if:lt("schema.json.if",'The validation outcome of the "if" subschema controls which of the "then" or "else" keywords are evaluated.'),then:lt("schema.json.then",'The "if" subschema is used for validation when the "if" subschema succeeds.'),else:lt("schema.json.else",'The "else" subschema is used for validation when the "if" subschema fails.')};for(var pt in ft.schemas){var dt=ft.schemas[pt];for(var mt in dt.properties){var gt=dt.properties[mt];"boolean"==typeof gt&&(gt=dt.properties[mt]={});var vt=ht[mt];vt?gt.description=vt:console.log(mt+": localize('schema.json."+mt+'\', "")')}}var yt=function(){function e(e,t,r){var n=this;this._languageId=e,this._worker=t,this._disposables=[],this._listener=Object.create(null);var o=function(e){var t,r=e.getModeId();r===n._languageId&&(n._listener[e.uri.toString()]=e.onDidChangeContent((function(){clearTimeout(t),t=setTimeout((function(){return n._doValidate(e.uri,r)}),500)})),n._doValidate(e.uri,r))},a=function(e){i.editor.setModelMarkers(e,n._languageId,[]);var t=e.uri.toString(),r=n._listener[t];r&&(r.dispose(),delete n._listener[t])};this._disposables.push(i.editor.onDidCreateModel(o)),this._disposables.push(i.editor.onWillDisposeModel((function(e){a(e),n._resetSchema(e.uri)}))),this._disposables.push(i.editor.onDidChangeModelLanguage((function(e){a(e.model),o(e.model),n._resetSchema(e.model.uri)}))),this._disposables.push(r.onDidChange((function(e){i.editor.getModels().forEach((function(e){e.getModeId()===n._languageId&&(a(e),o(e))}))}))),this._disposables.push({dispose:function(){for(var e in i.editor.getModels().forEach(a),n._listener)n._listener[e].dispose()}}),i.editor.getModels().forEach(o)}return e.prototype.dispose=function(){this._disposables.forEach((function(e){return e&&e.dispose()})),this._disposables=[]},e.prototype._resetSchema=function(e){this._worker().then((function(t){t.resetSchema(e.toString())}))},e.prototype._doValidate=function(e,t){this._worker(e).then((function(r){return r.doValidation(e.toString()).then((function(r){var n=r.map((function(e){return r="number"==typeof(t=e).code?String(t.code):t.code,{severity:bt(t.severity),startLineNumber:t.range.start.line+1,startColumn:t.range.start.character+1,endLineNumber:t.range.end.line+1,endColumn:t.range.end.character+1,message:t.message,code:r,source:t.source};var t,r})),o=i.editor.getModel(e);o&&o.getModeId()===t&&i.editor.setModelMarkers(o,t,n)}))})).then(void 0,(function(e){console.error(e)}))},e}();function bt(e){switch(e){case S.Error:return i.MarkerSeverity.Error;case S.Warning:return i.MarkerSeverity.Warning;case S.Information:return i.MarkerSeverity.Info;case S.Hint:return i.MarkerSeverity.Hint;default:return i.MarkerSeverity.Info}}function xt(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function St(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function kt(e){if(e)return new i.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function Ct(e){var t=i.languages.CompletionItemKind;switch(e){case K.Text:return t.Text;case K.Method:return t.Method;case K.Function:return t.Function;case K.Constructor:return t.Constructor;case K.Field:return t.Field;case K.Variable:return t.Variable;case K.Class:return t.Class;case K.Interface:return t.Interface;case K.Module:return t.Module;case K.Property:return t.Property;case K.Unit:return t.Unit;case K.Value:return t.Value;case K.Enum:return t.Enum;case K.Keyword:return t.Keyword;case K.Snippet:return t.Snippet;case K.Color:return t.Color;case K.File:return t.File;case K.Reference:return t.Reference}return t.Property}function wt(e){if(e)return{range:kt(e.range),text:e.newText}}var At=function(){function e(e){this._worker=e}return Object.defineProperty(e.prototype,"triggerCharacters",{get:function(){return[" ",":"]},enumerable:!1,configurable:!0}),e.prototype.provideCompletionItems=function(e,t,r,n){var o=e.uri;return this._worker(o).then((function(e){return e.doComplete(o.toString(),xt(t))})).then((function(r){if(r){var n=e.getWordUntilPosition(t),o=new i.Range(t.lineNumber,n.startColumn,t.lineNumber,n.endColumn),a=r.items.map((function(e){var t,r={label:e.label,insertText:e.insertText||e.label,sortText:e.sortText,filterText:e.filterText,documentation:e.documentation,detail:e.detail,range:o,kind:Ct(e.kind)};return e.textEdit&&(void 0!==(t=e.textEdit).insert&&void 0!==t.replace?r.range={insert:kt(e.textEdit.insert),replace:kt(e.textEdit.replace)}:r.range=kt(e.textEdit.range),r.insertText=e.textEdit.newText),e.additionalTextEdits&&(r.additionalTextEdits=e.additionalTextEdits.map(wt)),e.insertTextFormat===J.Snippet&&(r.insertTextRules=i.languages.CompletionItemInsertTextRule.InsertAsSnippet),r}));return{isIncomplete:r.isIncomplete,suggestions:a}}}))},e}();function It(e){return"string"==typeof e?{value:e}:(t=e)&&"object"==typeof t&&"string"==typeof t.kind?"plaintext"===e.kind?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+"\n"+e.value+"\n```\n"};var t}function Tt(e){if(e)return Array.isArray(e)?e.map(It):[It(e)]}var Et=function(){function e(e){this._worker=e}return e.prototype.provideHover=function(e,t,r){var n=e.uri;return this._worker(n).then((function(e){return e.doHover(n.toString(),xt(t))})).then((function(e){if(e)return{range:kt(e.range),contents:Tt(e.contents)}}))},e}();function Ot(e){var t=i.languages.SymbolKind;switch(e){case re.File:return t.Array;case re.Module:return t.Module;case re.Namespace:return t.Namespace;case re.Package:return t.Package;case re.Class:return t.Class;case re.Method:return t.Method;case re.Property:return t.Property;case re.Field:return t.Field;case re.Constructor:return t.Constructor;case re.Enum:return t.Enum;case re.Interface:return t.Interface;case re.Function:return t.Function;case re.Variable:return t.Variable;case re.Constant:return t.Constant;case re.String:return t.String;case re.Number:return t.Number;case re.Boolean:return t.Boolean;case re.Array:return t.Array}return t.Function}var jt=function(){function e(e){this._worker=e}return e.prototype.provideDocumentSymbols=function(e,t){var r=e.uri;return this._worker(r).then((function(e){return e.findDocumentSymbols(r.toString())})).then((function(e){if(e)return e.map((function(e){return{name:e.name,detail:"",containerName:e.containerName,kind:Ot(e.kind),range:kt(e.location.range),selectionRange:kt(e.location.range),tags:[]}}))}))},e}();function Mt(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var Pt=function(){function e(e){this._worker=e}return e.prototype.provideDocumentFormattingEdits=function(e,t,r){var n=e.uri;return this._worker(n).then((function(e){return e.format(n.toString(),null,Mt(t)).then((function(e){if(e&&0!==e.length)return e.map(wt)}))}))},e}(),_t=function(){function e(e){this._worker=e}return e.prototype.provideDocumentRangeFormattingEdits=function(e,t,r,n){var i=e.uri;return this._worker(i).then((function(e){return e.format(i.toString(),St(t),Mt(r)).then((function(e){if(e&&0!==e.length)return e.map(wt)}))}))},e}(),Ft=function(){function e(e){this._worker=e}return e.prototype.provideDocumentColors=function(e,t){var r=e.uri;return this._worker(r).then((function(e){return e.findDocumentColors(r.toString())})).then((function(e){if(e)return e.map((function(e){return{color:e.color,range:kt(e.range)}}))}))},e.prototype.provideColorPresentations=function(e,t,r){var n=e.uri;return this._worker(n).then((function(e){return e.getColorPresentations(n.toString(),t.color,St(t.range))})).then((function(e){if(e)return e.map((function(e){var t={label:e.label};return e.textEdit&&(t.textEdit=wt(e.textEdit)),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(wt)),t}))}))},e}(),Vt=function(){function e(e){this._worker=e}return e.prototype.provideFoldingRanges=function(e,t,r){var n=e.uri;return this._worker(n).then((function(e){return e.getFoldingRanges(n.toString(),t)})).then((function(e){if(e)return e.map((function(e){var t={start:e.startLine+1,end:e.endLine+1};return void 0!==e.kind&&(t.kind=function(e){switch(e){case y.Comment:return i.languages.FoldingRangeKind.Comment;case y.Imports:return i.languages.FoldingRangeKind.Imports;case y.Region:return i.languages.FoldingRangeKind.Region}return}(e.kind)),t}))}))},e}();var Nt=function(){function e(e){this._worker=e}return e.prototype.provideSelectionRanges=function(e,t,r){var n=e.uri;return this._worker(n).then((function(e){return e.getSelectionRanges(n.toString(),t.map(xt))})).then((function(e){if(e)return e.map((function(e){for(var t=[];e;)t.push({range:kt(e.range)}),e=e.parent;return t}))}))},e}();function Rt(e){return{getInitialState:function(){return new Zt(null,null,!1,null)},tokenize:function(t,r,n,i){return function(e,t,r,n,i){void 0===n&&(n=0);var o=0,a=!1;switch(r.scanError){case 2:t='"'+t,o=1;break;case 1:t="/*"+t,o=2}var s=M(t),u=r.lastWasColon,c=r.parents,l={tokens:[],endState:r.clone()};for(;;){var f=n+s.getPosition(),h="",p=s.scan();if(17===p)break;if(f===n+s.getPosition())throw new Error("Scanner did not advance, next 3 characters are: "+t.substr(s.getPosition(),3));switch(a&&(f-=o),a=o>0,p){case 1:c=Gt.push(c,0),h=$t,u=!1;break;case 2:c=Gt.pop(c),h=$t,u=!1;break;case 3:c=Gt.push(c,1),h=Lt,u=!1;break;case 4:c=Gt.pop(c),h=Lt,u=!1;break;case 6:h=Dt,u=!0;break;case 5:h=Wt,u=!1;break;case 8:case 9:h=Ut,u=!1;break;case 7:h=qt,u=!1;break;case 10:var d=1===(c?c.type:0);h=u||d?Bt:Jt,u=!1;break;case 11:h=Kt,u=!1}if(e)switch(p){case 12:h=zt;break;case 13:h=Ht}l.endState=new Zt(r.getStateData(),s.getTokenError(),u,c),l.tokens.push({startIndex:f,scopes:h})}return l}(e,t,r,n)}}}var $t="delimiter.bracket.json",Lt="delimiter.array.json",Dt="delimiter.colon.json",Wt="delimiter.comma.json",Ut="keyword.json",qt="keyword.json",Bt="string.value.json",Kt="number.json",Jt="string.key.json",Ht="comment.block.json",zt="comment.line.json",Gt=function(){function e(e,t){this.parent=e,this.type=t}return e.pop=function(e){return e?e.parent:null},e.push=function(t,r){return new e(t,r)},e.equals=function(e,t){if(!e&&!t)return!0;if(!e||!t)return!1;for(;e&&t;){if(e===t)return!0;if(e.type!==t.type)return!1;e=e.parent,t=t.parent}return!0},e}(),Zt=function(){function e(e,t,r,n){this._state=e,this.scanError=t,this.lastWasColon=r,this.parents=n}return e.prototype.clone=function(){return new e(this._state,this.scanError,this.lastWasColon,this.parents)},e.prototype.equals=function(t){return t===this||!!(t&&t instanceof e)&&(this.scanError===t.scanError&&this.lastWasColon===t.lastWasColon&&Gt.equals(this.parents,t.parents))},e.prototype.getStateData=function(){return this._state},e.prototype.setStateData=function(e){this._state=e},e}();function Xt(e){var t=[],r=[],n=new o(e);t.push(n);var a=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.getLanguageServiceWorker.apply(n,e)};function s(){var t=e.languageId,n=e.modeConfiguration;Yt(r),n.documentFormattingEdits&&r.push(i.languages.registerDocumentFormattingEditProvider(t,new Pt(a))),n.documentRangeFormattingEdits&&r.push(i.languages.registerDocumentRangeFormattingEditProvider(t,new _t(a))),n.completionItems&&r.push(i.languages.registerCompletionItemProvider(t,new At(a))),n.hovers&&r.push(i.languages.registerHoverProvider(t,new Et(a))),n.documentSymbols&&r.push(i.languages.registerDocumentSymbolProvider(t,new jt(a))),n.tokens&&r.push(i.languages.setTokensProvider(t,Rt(!0))),n.colors&&r.push(i.languages.registerColorProvider(t,new Ft(a))),n.foldingRanges&&r.push(i.languages.registerFoldingRangeProvider(t,new Vt(a))),n.diagnostics&&r.push(new yt(t,a,e)),n.selectionRanges&&r.push(i.languages.registerSelectionRangeProvider(t,new Nt(a)))}s(),t.push(i.languages.setLanguageConfiguration(e.languageId,er));var u=e.modeConfiguration;return e.onDidChange((function(e){e.modeConfiguration!==u&&(u=e.modeConfiguration,s())})),t.push(Qt(r)),Qt(t)}function Qt(e){return{dispose:function(){return Yt(e)}}}function Yt(e){for(;e.length;)e.pop().dispose()}r.d(t,"setupMode",(function(){return Xt}));var er={wordPattern:/(-?\d*\.\d\w*)|([^\[\{\]\}\:\"\,\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string"]},{open:"[",close:"]",notIn:["string"]},{open:'"',close:'"',notIn:["string"]}]}},909:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return d}));var n,i,o,a=(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});if("object"==typeof e)o="win32"===e.platform;else if("object"==typeof navigator){var s=navigator.userAgent;o=s.indexOf("Windows")>=0}var u=/^\w[\w\d+.-]*$/,c=/^\//,l=/^\/\//;var f="",h="/",p=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,d=function(){function e(e,t,r,n,i,o){void 0===o&&(o=!1),"object"==typeof e?(this.scheme=e.scheme||f,this.authority=e.authority||f,this.path=e.path||f,this.query=e.query||f,this.fragment=e.fragment||f):(this.scheme=function(e,t){return e||t?e:"file"}(e,o),this.authority=t||f,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==h&&(t=h+t):t=h}return t}(this.scheme,r||f),this.query=n||f,this.fragment=i||f,function(e,t){if(!e.scheme&&t)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+e.authority+'", path: "'+e.path+'", query: "'+e.query+'", fragment: "'+e.fragment+'"}');if(e.scheme&&!u.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!c.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(l.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,o))}return e.isUri=function(t){return t instanceof e||!!t&&("string"==typeof t.authority&&"string"==typeof t.fragment&&"string"==typeof t.path&&"string"==typeof t.query&&"string"==typeof t.scheme&&"function"==typeof t.fsPath&&"function"==typeof t.with&&"function"==typeof t.toString)},Object.defineProperty(e.prototype,"fsPath",{get:function(){return x(this,!1)},enumerable:!0,configurable:!0}),e.prototype.with=function(e){if(!e)return this;var t=e.scheme,r=e.authority,n=e.path,i=e.query,o=e.fragment;return void 0===t?t=this.scheme:null===t&&(t=f),void 0===r?r=this.authority:null===r&&(r=f),void 0===n?n=this.path:null===n&&(n=f),void 0===i?i=this.query:null===i&&(i=f),void 0===o?o=this.fragment:null===o&&(o=f),t===this.scheme&&r===this.authority&&n===this.path&&i===this.query&&o===this.fragment?this:new g(t,r,n,i,o)},e.parse=function(e,t){void 0===t&&(t=!1);var r=p.exec(e);return r?new g(r[2]||f,C(r[4]||f),C(r[5]||f),C(r[7]||f),C(r[9]||f),t):new g(f,f,f,f,f)},e.file=function(e){var t=f;if(o&&(e=e.replace(/\\/g,h)),e[0]===h&&e[1]===h){var r=e.indexOf(h,2);-1===r?(t=e.substring(2),e=h):(t=e.substring(2,r),e=e.substring(r)||h)}return new g("file",t,e,f,f)},e.from=function(e){return new g(e.scheme,e.authority,e.path,e.query,e.fragment)},e.prototype.toString=function(e){return void 0===e&&(e=!1),S(this,e)},e.prototype.toJSON=function(){return this},e.revive=function(t){if(t){if(t instanceof e)return t;var r=new g(t);return r._formatted=t.external,r._fsPath=t._sep===m?t.fsPath:null,r}return t},e}(),m=o?1:void 0,g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._formatted=null,t._fsPath=null,t}return a(t,e),Object.defineProperty(t.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=x(this,!1)),this._fsPath},enumerable:!0,configurable:!0}),t.prototype.toString=function(e){return void 0===e&&(e=!1),e?S(this,!0):(this._formatted||(this._formatted=S(this,!1)),this._formatted)},t.prototype.toJSON=function(){var e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=m),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e},t}(d),v=((i={})[58]="%3A",i[47]="%2F",i[63]="%3F",i[35]="%23",i[91]="%5B",i[93]="%5D",i[64]="%40",i[33]="%21",i[36]="%24",i[38]="%26",i[39]="%27",i[40]="%28",i[41]="%29",i[42]="%2A",i[43]="%2B",i[44]="%2C",i[59]="%3B",i[61]="%3D",i[32]="%20",i);function y(e,t){for(var r=void 0,n=-1,i=0;i<e.length;i++){var o=e.charCodeAt(i);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o)-1!==n&&(r+=encodeURIComponent(e.substring(n,i)),n=-1),void 0!==r&&(r+=e.charAt(i));else{void 0===r&&(r=e.substr(0,i));var a=v[o];void 0!==a?(-1!==n&&(r+=encodeURIComponent(e.substring(n,i)),n=-1),r+=a):-1===n&&(n=i)}}return-1!==n&&(r+=encodeURIComponent(e.substring(n))),void 0!==r?r:e}function b(e){for(var t=void 0,r=0;r<e.length;r++){var n=e.charCodeAt(r);35===n||63===n?(void 0===t&&(t=e.substr(0,r)),t+=v[n]):void 0!==t&&(t+=e[r])}return void 0!==t?t:e}function x(e,t){var r;return r=e.authority&&e.path.length>1&&"file"===e.scheme?"//"+e.authority+e.path:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,o&&(r=r.replace(/\//g,"\\")),r}function S(e,t){var r=t?b:y,n="",i=e.scheme,o=e.authority,a=e.path,s=e.query,u=e.fragment;if(i&&(n+=i,n+=":"),(o||"file"===i)&&(n+=h,n+=h),o){var c=o.indexOf("@");if(-1!==c){var l=o.substr(0,c);o=o.substr(c+1),-1===(c=l.indexOf(":"))?n+=r(l,!1):(n+=r(l.substr(0,c),!1),n+=":",n+=r(l.substr(c+1),!1)),n+="@"}-1===(c=(o=o.toLowerCase()).indexOf(":"))?n+=r(o,!1):(n+=r(o.substr(0,c),!1),n+=o.substr(c))}if(a){if(a.length>=3&&47===a.charCodeAt(0)&&58===a.charCodeAt(2))(f=a.charCodeAt(1))>=65&&f<=90&&(a="/"+String.fromCharCode(f+32)+":"+a.substr(3));else if(a.length>=2&&58===a.charCodeAt(1)){var f;(f=a.charCodeAt(0))>=65&&f<=90&&(a=String.fromCharCode(f+32)+":"+a.substr(2))}n+=r(a,!0)}return s&&(n+="?",n+=r(s,!1)),u&&(n+="#",n+=t?u:y(u,!1)),n}var k=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function C(e){return e.match(k)?e.replace(k,(function(e){return function e(t){try{return decodeURIComponent(t)}catch(r){return t.length>3?t.substr(0,3)+e(t.substr(3)):t}}(e)})):e}}).call(this,r(343))}}]); \ No newline at end of file diff --git a/docs/60.60.js b/docs/60.60.js new file mode 100644 index 00000000..6445812f --- /dev/null +++ b/docs/60.60.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[60],{966:function(e,t,n){"use strict";n.r(t),n.d(t,"conf",(function(){return o})),n.d(t,"language",(function(){return s}));var o={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]}]},s={defaultToken:"",tokenPostfix:".aes",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.angle",open:"<",close:">"}],keywords:["contract","library","entrypoint","function","stateful","state","hash","signature","tuple","list","address","string","bool","int","record","datatype","type","option","oracle","oracle_query","Call","Bits","Bytes","Oracle","String","Crypto","Address","Auth","Chain","None","Some","bits","bytes","event","let","map","private","public","true","false","var","if","else","throw"],operators:["=",">","<","!","~","?","::",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,integersuffix:/(ll|LL|u|U|l|L)?(ll|LL|u|U|l|L)?/,floatsuffix:/[fFlL]?/,tokenizer:{root:[[/[a-zA-Z_]\w*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/\[\[.*\]\]/,"annotation"],[/^\s*#\w+/,"keyword"],[/int\d*/,"keyword"],[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,"number.float"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/,"number.hex"],[/0[0-7']*[0-7](@integersuffix)/,"number.octal"],[/0[bB][0-1']*[0-1](@integersuffix)/,"number.binary"],[/\d[\d']*\d(@integersuffix)/,"number"],[/\d(@integersuffix)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@doccomment"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],doccomment:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]]}}}}]); \ No newline at end of file diff --git a/docs/61.61.js b/docs/61.61.js new file mode 100644 index 00000000..c354967f --- /dev/null +++ b/docs/61.61.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[61],{967:function(E,T,R){"use strict";R.r(T),R.d(T,"conf",(function(){return A})),R.d(T,"language",(function(){return I}));var A={comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},I={defaultToken:"",tokenPostfix:".sql",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["ABORT_AFTER_WAIT","ABSENT","ABSOLUTE","ACCENT_SENSITIVITY","ACTION","ACTIVATION","ACTIVE","ADD","ADDRESS","ADMIN","AES","AES_128","AES_192","AES_256","AFFINITY","AFTER","AGGREGATE","ALGORITHM","ALL_CONSTRAINTS","ALL_ERRORMSGS","ALL_INDEXES","ALL_LEVELS","ALL_SPARSE_COLUMNS","ALLOW_CONNECTIONS","ALLOW_MULTIPLE_EVENT_LOSS","ALLOW_PAGE_LOCKS","ALLOW_ROW_LOCKS","ALLOW_SINGLE_EVENT_LOSS","ALLOW_SNAPSHOT_ISOLATION","ALLOWED","ALTER","ANONYMOUS","ANSI_DEFAULTS","ANSI_NULL_DEFAULT","ANSI_NULL_DFLT_OFF","ANSI_NULL_DFLT_ON","ANSI_NULLS","ANSI_PADDING","ANSI_WARNINGS","APPEND","APPLICATION","APPLICATION_LOG","ARITHABORT","ARITHIGNORE","AS","ASC","ASSEMBLY","ASYMMETRIC","ASYNCHRONOUS_COMMIT","AT","ATOMIC","ATTACH","ATTACH_REBUILD_LOG","AUDIT","AUDIT_GUID","AUTHENTICATION","AUTHORIZATION","AUTO","AUTO_CLEANUP","AUTO_CLOSE","AUTO_CREATE_STATISTICS","AUTO_SHRINK","AUTO_UPDATE_STATISTICS","AUTO_UPDATE_STATISTICS_ASYNC","AUTOMATED_BACKUP_PREFERENCE","AUTOMATIC","AVAILABILITY","AVAILABILITY_MODE","BACKUP","BACKUP_PRIORITY","BASE64","BATCHSIZE","BEGIN","BEGIN_DIALOG","BIGINT","BINARY","BINDING","BIT","BLOCKERS","BLOCKSIZE","BOUNDING_BOX","BREAK","BROKER","BROKER_INSTANCE","BROWSE","BUCKET_COUNT","BUFFER","BUFFERCOUNT","BULK","BULK_LOGGED","BY","CACHE","CALL","CALLED","CALLER","CAP_CPU_PERCENT","CASCADE","CASE","CATALOG","CATCH","CELLS_PER_OBJECT","CERTIFICATE","CHANGE_RETENTION","CHANGE_TRACKING","CHANGES","CHAR","CHARACTER","CHECK","CHECK_CONSTRAINTS","CHECK_EXPIRATION","CHECK_POLICY","CHECKALLOC","CHECKCATALOG","CHECKCONSTRAINTS","CHECKDB","CHECKFILEGROUP","CHECKIDENT","CHECKPOINT","CHECKTABLE","CLASSIFIER_FUNCTION","CLEANTABLE","CLEANUP","CLEAR","CLOSE","CLUSTER","CLUSTERED","CODEPAGE","COLLATE","COLLECTION","COLUMN","COLUMN_SET","COLUMNS","COLUMNSTORE","COLUMNSTORE_ARCHIVE","COMMIT","COMMITTED","COMPATIBILITY_LEVEL","COMPRESSION","COMPUTE","CONCAT","CONCAT_NULL_YIELDS_NULL","CONFIGURATION","CONNECT","CONSTRAINT","CONTAINMENT","CONTENT","CONTEXT","CONTINUE","CONTINUE_AFTER_ERROR","CONTRACT","CONTRACT_NAME","CONTROL","CONVERSATION","COOKIE","COPY_ONLY","COUNTER","CPU","CREATE","CREATE_NEW","CREATION_DISPOSITION","CREDENTIAL","CRYPTOGRAPHIC","CUBE","CURRENT","CURRENT_DATE","CURSOR","CURSOR_CLOSE_ON_COMMIT","CURSOR_DEFAULT","CYCLE","DATA","DATA_COMPRESSION","DATA_PURITY","DATABASE","DATABASE_DEFAULT","DATABASE_MIRRORING","DATABASE_SNAPSHOT","DATAFILETYPE","DATE","DATE_CORRELATION_OPTIMIZATION","DATEFIRST","DATEFORMAT","DATETIME","DATETIME2","DATETIMEOFFSET","DAY","DAYOFYEAR","DAYS","DB_CHAINING","DBCC","DBREINDEX","DDL_DATABASE_LEVEL_EVENTS","DEADLOCK_PRIORITY","DEALLOCATE","DEC","DECIMAL","DECLARE","DECRYPTION","DEFAULT","DEFAULT_DATABASE","DEFAULT_FULLTEXT_LANGUAGE","DEFAULT_LANGUAGE","DEFAULT_SCHEMA","DEFINITION","DELAY","DELAYED_DURABILITY","DELETE","DELETED","DENSITY_VECTOR","DENY","DEPENDENTS","DES","DESC","DESCRIPTION","DESX","DHCP","DIAGNOSTICS","DIALOG","DIFFERENTIAL","DIRECTORY_NAME","DISABLE","DISABLE_BROKER","DISABLED","DISK","DISTINCT","DISTRIBUTED","DOCUMENT","DOUBLE","DROP","DROP_EXISTING","DROPCLEANBUFFERS","DUMP","DURABILITY","DYNAMIC","EDITION","ELEMENTS","ELSE","EMERGENCY","EMPTY","EMPTYFILE","ENABLE","ENABLE_BROKER","ENABLED","ENCRYPTION","END","ENDPOINT","ENDPOINT_URL","ERRLVL","ERROR","ERROR_BROKER_CONVERSATIONS","ERRORFILE","ESCAPE","ESTIMATEONLY","EVENT","EVENT_RETENTION_MODE","EXEC","EXECUTABLE","EXECUTE","EXIT","EXPAND","EXPIREDATE","EXPIRY_DATE","EXPLICIT","EXTENDED_LOGICAL_CHECKS","EXTENSION","EXTERNAL","EXTERNAL_ACCESS","FAIL_OPERATION","FAILOVER","FAILOVER_MODE","FAILURE_CONDITION_LEVEL","FALSE","FAN_IN","FAST","FAST_FORWARD","FETCH","FIELDTERMINATOR","FILE","FILEGROUP","FILEGROWTH","FILELISTONLY","FILENAME","FILEPATH","FILESTREAM","FILESTREAM_ON","FILETABLE_COLLATE_FILENAME","FILETABLE_DIRECTORY","FILETABLE_FULLPATH_UNIQUE_CONSTRAINT_NAME","FILETABLE_NAMESPACE","FILETABLE_PRIMARY_KEY_CONSTRAINT_NAME","FILETABLE_STREAMID_UNIQUE_CONSTRAINT_NAME","FILLFACTOR","FILTERING","FIRE_TRIGGERS","FIRST","FIRSTROW","FLOAT","FMTONLY","FOLLOWING","FOR","FORCE","FORCE_FAILOVER_ALLOW_DATA_LOSS","FORCE_SERVICE_ALLOW_DATA_LOSS","FORCED","FORCEPLAN","FORCESCAN","FORCESEEK","FOREIGN","FORMATFILE","FORMSOF","FORWARD_ONLY","FREE","FREEPROCCACHE","FREESESSIONCACHE","FREESYSTEMCACHE","FROM","FULL","FULLSCAN","FULLTEXT","FUNCTION","GB","GEOGRAPHY_AUTO_GRID","GEOGRAPHY_GRID","GEOMETRY_AUTO_GRID","GEOMETRY_GRID","GET","GLOBAL","GO","GOTO","GOVERNOR","GRANT","GRIDS","GROUP","GROUP_MAX_REQUESTS","HADR","HASH","HASHED","HAVING","HEADERONLY","HEALTH_CHECK_TIMEOUT","HELP","HIERARCHYID","HIGH","HINT","HISTOGRAM","HOLDLOCK","HONOR_BROKER_PRIORITY","HOUR","HOURS","IDENTITY","IDENTITY_INSERT","IDENTITY_VALUE","IDENTITYCOL","IF","IGNORE_CONSTRAINTS","IGNORE_DUP_KEY","IGNORE_NONCLUSTERED_COLUMNSTORE_INDEX","IGNORE_TRIGGERS","IMAGE","IMMEDIATE","IMPERSONATE","IMPLICIT_TRANSACTIONS","IMPORTANCE","INCLUDE","INCREMENT","INCREMENTAL","INDEX","INDEXDEFRAG","INFINITE","INFLECTIONAL","INIT","INITIATOR","INPUT","INPUTBUFFER","INSENSITIVE","INSERT","INSERTED","INSTEAD","INT","INTEGER","INTO","IO","IP","ISABOUT","ISOLATION","JOB","KB","KEEP","KEEP_CDC","KEEP_NULLS","KEEP_REPLICATION","KEEPDEFAULTS","KEEPFIXED","KEEPIDENTITY","KEEPNULLS","KERBEROS","KEY","KEY_SOURCE","KEYS","KEYSET","KILL","KILOBYTES_PER_BATCH","LABELONLY","LANGUAGE","LAST","LASTROW","LEVEL","LEVEL_1","LEVEL_2","LEVEL_3","LEVEL_4","LIFETIME","LIMIT","LINENO","LIST","LISTENER","LISTENER_IP","LISTENER_PORT","LOAD","LOADHISTORY","LOB_COMPACTION","LOCAL","LOCAL_SERVICE_NAME","LOCK_ESCALATION","LOCK_TIMEOUT","LOGIN","LOGSPACE","LOOP","LOW","MANUAL","MARK","MARK_IN_USE_FOR_REMOVAL","MASTER","MAX_CPU_PERCENT","MAX_DISPATCH_LATENCY","MAX_DOP","MAX_DURATION","MAX_EVENT_SIZE","MAX_FILES","MAX_IOPS_PER_VOLUME","MAX_MEMORY","MAX_MEMORY_PERCENT","MAX_QUEUE_READERS","MAX_ROLLOVER_FILES","MAX_SIZE","MAXDOP","MAXERRORS","MAXLENGTH","MAXRECURSION","MAXSIZE","MAXTRANSFERSIZE","MAXVALUE","MB","MEDIADESCRIPTION","MEDIANAME","MEDIAPASSWORD","MEDIUM","MEMBER","MEMORY_OPTIMIZED","MEMORY_OPTIMIZED_DATA","MEMORY_OPTIMIZED_ELEVATE_TO_SNAPSHOT","MEMORY_PARTITION_MODE","MERGE","MESSAGE","MESSAGE_FORWARD_SIZE","MESSAGE_FORWARDING","MICROSECOND","MILLISECOND","MIN_CPU_PERCENT","MIN_IOPS_PER_VOLUME","MIN_MEMORY_PERCENT","MINUTE","MINUTES","MINVALUE","MIRROR","MIRROR_ADDRESS","MODIFY","MONEY","MONTH","MOVE","MULTI_USER","MUST_CHANGE","NAME","NANOSECOND","NATIONAL","NATIVE_COMPILATION","NCHAR","NEGOTIATE","NESTED_TRIGGERS","NEW_ACCOUNT","NEW_BROKER","NEW_PASSWORD","NEWNAME","NEXT","NO","NO_BROWSETABLE","NO_CHECKSUM","NO_COMPRESSION","NO_EVENT_LOSS","NO_INFOMSGS","NO_TRUNCATE","NO_WAIT","NOCHECK","NOCOUNT","NOEXEC","NOEXPAND","NOFORMAT","NOINDEX","NOINIT","NOLOCK","NON","NON_TRANSACTED_ACCESS","NONCLUSTERED","NONE","NORECOMPUTE","NORECOVERY","NORESEED","NORESET","NOREWIND","NORMAL","NOSKIP","NOTIFICATION","NOTRUNCATE","NOUNLOAD","NOWAIT","NTEXT","NTLM","NUMANODE","NUMERIC","NUMERIC_ROUNDABORT","NVARCHAR","OBJECT","OF","OFF","OFFLINE","OFFSET","OFFSETS","OLD_ACCOUNT","OLD_PASSWORD","ON","ON_FAILURE","ONLINE","ONLY","OPEN","OPEN_EXISTING","OPENTRAN","OPTIMISTIC","OPTIMIZE","OPTION","ORDER","OUT","OUTPUT","OUTPUTBUFFER","OVER","OVERRIDE","OWNER","OWNERSHIP","PAD_INDEX","PAGE","PAGE_VERIFY","PAGECOUNT","PAGLOCK","PARAMETERIZATION","PARSEONLY","PARTIAL","PARTITION","PARTITIONS","PARTNER","PASSWORD","PATH","PER_CPU","PER_NODE","PERCENT","PERMISSION_SET","PERSISTED","PHYSICAL_ONLY","PLAN","POISON_MESSAGE_HANDLING","POOL","POPULATION","PORT","PRECEDING","PRECISION","PRIMARY","PRIMARY_ROLE","PRINT","PRIOR","PRIORITY","PRIORITY_LEVEL","PRIVATE","PRIVILEGES","PROC","PROCCACHE","PROCEDURE","PROCEDURE_NAME","PROCESS","PROFILE","PROPERTY","PROPERTY_DESCRIPTION","PROPERTY_INT_ID","PROPERTY_SET_GUID","PROVIDER","PROVIDER_KEY_NAME","PUBLIC","PUT","QUARTER","QUERY","QUERY_GOVERNOR_COST_LIMIT","QUEUE","QUEUE_DELAY","QUOTED_IDENTIFIER","RAISERROR","RANGE","RAW","RC2","RC4","RC4_128","READ","READ_COMMITTED_SNAPSHOT","READ_ONLY","READ_ONLY_ROUTING_LIST","READ_ONLY_ROUTING_URL","READ_WRITE","READ_WRITE_FILEGROUPS","READCOMMITTED","READCOMMITTEDLOCK","READONLY","READPAST","READTEXT","READUNCOMMITTED","READWRITE","REAL","REBUILD","RECEIVE","RECOMPILE","RECONFIGURE","RECOVERY","RECURSIVE","RECURSIVE_TRIGGERS","REFERENCES","REGENERATE","RELATED_CONVERSATION","RELATED_CONVERSATION_GROUP","RELATIVE","REMOTE","REMOTE_PROC_TRANSACTIONS","REMOTE_SERVICE_NAME","REMOVE","REORGANIZE","REPAIR_ALLOW_DATA_LOSS","REPAIR_FAST","REPAIR_REBUILD","REPEATABLE","REPEATABLEREAD","REPLICA","REPLICATION","REQUEST_MAX_CPU_TIME_SEC","REQUEST_MAX_MEMORY_GRANT_PERCENT","REQUEST_MEMORY_GRANT_TIMEOUT_SEC","REQUIRED","RESAMPLE","RESEED","RESERVE_DISK_SPACE","RESET","RESOURCE","RESTART","RESTORE","RESTRICT","RESTRICTED_USER","RESULT","RESUME","RETAINDAYS","RETENTION","RETURN","RETURNS","REVERT","REVOKE","REWIND","REWINDONLY","ROBUST","ROLE","ROLLBACK","ROLLUP","ROOT","ROUTE","ROW","ROWCOUNT","ROWGUIDCOL","ROWLOCK","ROWS","ROWS_PER_BATCH","ROWTERMINATOR","ROWVERSION","RSA_1024","RSA_2048","RSA_512","RULE","SAFE","SAFETY","SAMPLE","SAVE","SCHEDULER","SCHEMA","SCHEMA_AND_DATA","SCHEMA_ONLY","SCHEMABINDING","SCHEME","SCROLL","SCROLL_LOCKS","SEARCH","SECOND","SECONDARY","SECONDARY_ONLY","SECONDARY_ROLE","SECONDS","SECRET","SECURITY_LOG","SECURITYAUDIT","SELECT","SELECTIVE","SELF","SEND","SENT","SEQUENCE","SERIALIZABLE","SERVER","SERVICE","SERVICE_BROKER","SERVICE_NAME","SESSION","SESSION_TIMEOUT","SET","SETS","SETUSER","SHOW_STATISTICS","SHOWCONTIG","SHOWPLAN","SHOWPLAN_ALL","SHOWPLAN_TEXT","SHOWPLAN_XML","SHRINKDATABASE","SHRINKFILE","SHUTDOWN","SID","SIGNATURE","SIMPLE","SINGLE_BLOB","SINGLE_CLOB","SINGLE_NCLOB","SINGLE_USER","SINGLETON","SIZE","SKIP","SMALLDATETIME","SMALLINT","SMALLMONEY","SNAPSHOT","SORT_IN_TEMPDB","SOURCE","SPARSE","SPATIAL","SPATIAL_WINDOW_MAX_CELLS","SPECIFICATION","SPLIT","SQL","SQL_VARIANT","SQLPERF","STANDBY","START","START_DATE","STARTED","STARTUP_STATE","STAT_HEADER","STATE","STATEMENT","STATIC","STATISTICAL_SEMANTICS","STATISTICS","STATISTICS_INCREMENTAL","STATISTICS_NORECOMPUTE","STATS","STATS_STREAM","STATUS","STATUSONLY","STOP","STOP_ON_ERROR","STOPAT","STOPATMARK","STOPBEFOREMARK","STOPLIST","STOPPED","SUBJECT","SUBSCRIPTION","SUPPORTED","SUSPEND","SWITCH","SYMMETRIC","SYNCHRONOUS_COMMIT","SYNONYM","SYSNAME","SYSTEM","TABLE","TABLERESULTS","TABLESAMPLE","TABLOCK","TABLOCKX","TAKE","TAPE","TARGET","TARGET_RECOVERY_TIME","TB","TCP","TEXT","TEXTIMAGE_ON","TEXTSIZE","THEN","THESAURUS","THROW","TIES","TIME","TIMEOUT","TIMER","TIMESTAMP","TINYINT","TO","TOP","TORN_PAGE_DETECTION","TRACEOFF","TRACEON","TRACESTATUS","TRACK_CAUSALITY","TRACK_COLUMNS_UPDATED","TRAN","TRANSACTION","TRANSFER","TRANSFORM_NOISE_WORDS","TRIGGER","TRIPLE_DES","TRIPLE_DES_3KEY","TRUE","TRUNCATE","TRUNCATEONLY","TRUSTWORTHY","TRY","TSQL","TWO_DIGIT_YEAR_CUTOFF","TYPE","TYPE_WARNING","UNBOUNDED","UNCHECKED","UNCOMMITTED","UNDEFINED","UNIQUE","UNIQUEIDENTIFIER","UNKNOWN","UNLIMITED","UNLOAD","UNSAFE","UPDATE","UPDATETEXT","UPDATEUSAGE","UPDLOCK","URL","USE","USED","USER","USEROPTIONS","USING","VALID_XML","VALIDATION","VALUE","VALUES","VARBINARY","VARCHAR","VARYING","VERIFYONLY","VERSION","VIEW","VIEW_METADATA","VIEWS","VISIBILITY","WAIT_AT_LOW_PRIORITY","WAITFOR","WEEK","WEIGHT","WELL_FORMED_XML","WHEN","WHERE","WHILE","WINDOWS","WITH","WITHIN","WITHOUT","WITNESS","WORK","WORKLOAD","WRITETEXT","XACT_ABORT","XLOCK","XMAX","XMIN","XML","XMLDATA","XMLNAMESPACES","XMLSCHEMA","XQUERY","XSINIL","YEAR","YMAX","YMIN"],operators:["ALL","AND","ANY","BETWEEN","EXISTS","IN","LIKE","NOT","OR","SOME","EXCEPT","INTERSECT","UNION","APPLY","CROSS","FULL","INNER","JOIN","LEFT","OUTER","RIGHT","CONTAINS","FREETEXT","IS","NULL","PIVOT","UNPIVOT","MATCHED"],builtinFunctions:["AVG","CHECKSUM_AGG","COUNT","COUNT_BIG","GROUPING","GROUPING_ID","MAX","MIN","SUM","STDEV","STDEVP","VAR","VARP","CUME_DIST","FIRST_VALUE","LAG","LAST_VALUE","LEAD","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","COLLATE","COLLATIONPROPERTY","TERTIARY_WEIGHTS","FEDERATION_FILTERING_VALUE","CAST","CONVERT","PARSE","TRY_CAST","TRY_CONVERT","TRY_PARSE","ASYMKEY_ID","ASYMKEYPROPERTY","CERTPROPERTY","CERT_ID","CRYPT_GEN_RANDOM","DECRYPTBYASYMKEY","DECRYPTBYCERT","DECRYPTBYKEY","DECRYPTBYKEYAUTOASYMKEY","DECRYPTBYKEYAUTOCERT","DECRYPTBYPASSPHRASE","ENCRYPTBYASYMKEY","ENCRYPTBYCERT","ENCRYPTBYKEY","ENCRYPTBYPASSPHRASE","HASHBYTES","IS_OBJECTSIGNED","KEY_GUID","KEY_ID","KEY_NAME","SIGNBYASYMKEY","SIGNBYCERT","SYMKEYPROPERTY","VERIFYSIGNEDBYCERT","VERIFYSIGNEDBYASYMKEY","CURSOR_STATUS","DATALENGTH","IDENT_CURRENT","IDENT_INCR","IDENT_SEED","IDENTITY","SQL_VARIANT_PROPERTY","CURRENT_TIMESTAMP","DATEADD","DATEDIFF","DATEFROMPARTS","DATENAME","DATEPART","DATETIME2FROMPARTS","DATETIMEFROMPARTS","DATETIMEOFFSETFROMPARTS","DAY","EOMONTH","GETDATE","GETUTCDATE","ISDATE","MONTH","SMALLDATETIMEFROMPARTS","SWITCHOFFSET","SYSDATETIME","SYSDATETIMEOFFSET","SYSUTCDATETIME","TIMEFROMPARTS","TODATETIMEOFFSET","YEAR","CHOOSE","COALESCE","IIF","NULLIF","ABS","ACOS","ASIN","ATAN","ATN2","CEILING","COS","COT","DEGREES","EXP","FLOOR","LOG","LOG10","PI","POWER","RADIANS","RAND","ROUND","SIGN","SIN","SQRT","SQUARE","TAN","APP_NAME","APPLOCK_MODE","APPLOCK_TEST","ASSEMBLYPROPERTY","COL_LENGTH","COL_NAME","COLUMNPROPERTY","DATABASE_PRINCIPAL_ID","DATABASEPROPERTYEX","DB_ID","DB_NAME","FILE_ID","FILE_IDEX","FILE_NAME","FILEGROUP_ID","FILEGROUP_NAME","FILEGROUPPROPERTY","FILEPROPERTY","FULLTEXTCATALOGPROPERTY","FULLTEXTSERVICEPROPERTY","INDEX_COL","INDEXKEY_PROPERTY","INDEXPROPERTY","OBJECT_DEFINITION","OBJECT_ID","OBJECT_NAME","OBJECT_SCHEMA_NAME","OBJECTPROPERTY","OBJECTPROPERTYEX","ORIGINAL_DB_NAME","PARSENAME","SCHEMA_ID","SCHEMA_NAME","SCOPE_IDENTITY","SERVERPROPERTY","STATS_DATE","TYPE_ID","TYPE_NAME","TYPEPROPERTY","DENSE_RANK","NTILE","RANK","ROW_NUMBER","PUBLISHINGSERVERNAME","OPENDATASOURCE","OPENQUERY","OPENROWSET","OPENXML","CERTENCODED","CERTPRIVATEKEY","CURRENT_USER","HAS_DBACCESS","HAS_PERMS_BY_NAME","IS_MEMBER","IS_ROLEMEMBER","IS_SRVROLEMEMBER","LOGINPROPERTY","ORIGINAL_LOGIN","PERMISSIONS","PWDENCRYPT","PWDCOMPARE","SESSION_USER","SESSIONPROPERTY","SUSER_ID","SUSER_NAME","SUSER_SID","SUSER_SNAME","SYSTEM_USER","USER","USER_ID","USER_NAME","ASCII","CHAR","CHARINDEX","CONCAT","DIFFERENCE","FORMAT","LEFT","LEN","LOWER","LTRIM","NCHAR","PATINDEX","QUOTENAME","REPLACE","REPLICATE","REVERSE","RIGHT","RTRIM","SOUNDEX","SPACE","STR","STUFF","SUBSTRING","UNICODE","UPPER","BINARY_CHECKSUM","CHECKSUM","CONNECTIONPROPERTY","CONTEXT_INFO","CURRENT_REQUEST_ID","ERROR_LINE","ERROR_NUMBER","ERROR_MESSAGE","ERROR_PROCEDURE","ERROR_SEVERITY","ERROR_STATE","FORMATMESSAGE","GETANSINULL","GET_FILESTREAM_TRANSACTION_CONTEXT","HOST_ID","HOST_NAME","ISNULL","ISNUMERIC","MIN_ACTIVE_ROWVERSION","NEWID","NEWSEQUENTIALID","ROWCOUNT_BIG","XACT_STATE","TEXTPTR","TEXTVALID","COLUMNS_UPDATED","EVENTDATA","TRIGGER_NESTLEVEL","UPDATE","CHANGETABLE","CHANGE_TRACKING_CONTEXT","CHANGE_TRACKING_CURRENT_VERSION","CHANGE_TRACKING_IS_COLUMN_IN_MASK","CHANGE_TRACKING_MIN_VALID_VERSION","CONTAINSTABLE","FREETEXTTABLE","SEMANTICKEYPHRASETABLE","SEMANTICSIMILARITYDETAILSTABLE","SEMANTICSIMILARITYTABLE","FILETABLEROOTPATH","GETFILENAMESPACEPATH","GETPATHLOCATOR","PATHNAME","GET_TRANSMISSION_STATUS"],builtinVariables:["@@DATEFIRST","@@DBTS","@@LANGID","@@LANGUAGE","@@LOCK_TIMEOUT","@@MAX_CONNECTIONS","@@MAX_PRECISION","@@NESTLEVEL","@@OPTIONS","@@REMSERVER","@@SERVERNAME","@@SERVICENAME","@@SPID","@@TEXTSIZE","@@VERSION","@@CURSOR_ROWS","@@FETCH_STATUS","@@DATEFIRST","@@PROCID","@@ERROR","@@IDENTITY","@@ROWCOUNT","@@TRANCOUNT","@@CONNECTIONS","@@CPU_BUSY","@@IDLE","@@IO_BUSY","@@PACKET_ERRORS","@@PACK_RECEIVED","@@PACK_SENT","@@TIMETICKS","@@TOTAL_ERRORS","@@TOTAL_READ","@@TOTAL_WRITE"],pseudoColumns:["$ACTION","$IDENTITY","$ROWGUID","$PARTITION"],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@keywords":"keyword","@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/N'/,{token:"string",next:"@string"}],[/'/,{token:"string",next:"@string"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/\[/,{token:"identifier.quote",next:"@bracketedIdentifier"}],[/"/,{token:"identifier.quote",next:"@quotedIdentifier"}]],bracketedIdentifier:[[/[^\]]+/,"identifier"],[/]]/,"identifier"],[/]/,{token:"identifier.quote",next:"@pop"}]],quotedIdentifier:[[/[^"]+/,"identifier"],[/""/,"identifier"],[/"/,{token:"identifier.quote",next:"@pop"}]],scopes:[[/BEGIN\s+(DISTRIBUTED\s+)?TRAN(SACTION)?\b/i,"keyword"],[/BEGIN\s+TRY\b/i,{token:"keyword.try"}],[/END\s+TRY\b/i,{token:"keyword.try"}],[/BEGIN\s+CATCH\b/i,{token:"keyword.catch"}],[/END\s+CATCH\b/i,{token:"keyword.catch"}],[/(BEGIN|CASE)\b/i,{token:"keyword.block"}],[/END\b/i,{token:"keyword.block"}],[/WHEN\b/i,{token:"keyword.choice"}],[/THEN\b/i,{token:"keyword.choice"}]]}}}}]); \ No newline at end of file diff --git a/docs/62.62.js b/docs/62.62.js new file mode 100644 index 00000000..49b45715 --- /dev/null +++ b/docs/62.62.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[62],{968:function(e,n,o){"use strict";o.r(n),o.d(n,"conf",(function(){return t})),o.d(n,"language",(function(){return r}));var t={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"],["var","end_var"],["var_input","end_var"],["var_output","end_var"],["var_in_out","end_var"],["var_temp","end_var"],["var_global","end_var"],["var_access","end_var"],["var_external","end_var"],["type","end_type"],["struct","end_struct"],["program","end_program"],["function","end_function"],["function_block","end_function_block"],["action","end_action"],["step","end_step"],["initial_step","end_step"],["transaction","end_transaction"],["configuration","end_configuration"],["tcp","end_tcp"],["recource","end_recource"],["channel","end_channel"],["library","end_library"],["folder","end_folder"],["binaries","end_binaries"],["includes","end_includes"],["sources","end_sources"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"},{open:"/*",close:"*/"},{open:"'",close:"'",notIn:["string_sq"]},{open:'"',close:'"',notIn:["string_dq"]},{open:"var_input",close:"end_var"},{open:"var_output",close:"end_var"},{open:"var_in_out",close:"end_var"},{open:"var_temp",close:"end_var"},{open:"var_global",close:"end_var"},{open:"var_access",close:"end_var"},{open:"var_external",close:"end_var"},{open:"type",close:"end_type"},{open:"struct",close:"end_struct"},{open:"program",close:"end_program"},{open:"function",close:"end_function"},{open:"function_block",close:"end_function_block"},{open:"action",close:"end_action"},{open:"step",close:"end_step"},{open:"initial_step",close:"end_step"},{open:"transaction",close:"end_transaction"},{open:"configuration",close:"end_configuration"},{open:"tcp",close:"end_tcp"},{open:"recource",close:"end_recource"},{open:"channel",close:"end_channel"},{open:"library",close:"end_library"},{open:"folder",close:"end_folder"},{open:"binaries",close:"end_binaries"},{open:"includes",close:"end_includes"},{open:"sources",close:"end_sources"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"var",close:"end_var"},{open:"var_input",close:"end_var"},{open:"var_output",close:"end_var"},{open:"var_in_out",close:"end_var"},{open:"var_temp",close:"end_var"},{open:"var_global",close:"end_var"},{open:"var_access",close:"end_var"},{open:"var_external",close:"end_var"},{open:"type",close:"end_type"},{open:"struct",close:"end_struct"},{open:"program",close:"end_program"},{open:"function",close:"end_function"},{open:"function_block",close:"end_function_block"},{open:"action",close:"end_action"},{open:"step",close:"end_step"},{open:"initial_step",close:"end_step"},{open:"transaction",close:"end_transaction"},{open:"configuration",close:"end_configuration"},{open:"tcp",close:"end_tcp"},{open:"recource",close:"end_recource"},{open:"channel",close:"end_channel"},{open:"library",close:"end_library"},{open:"folder",close:"end_folder"},{open:"binaries",close:"end_binaries"},{open:"includes",close:"end_includes"},{open:"sources",close:"end_sources"}],folding:{markers:{start:new RegExp("^\\s*#pragma\\s+region\\b"),end:new RegExp("^\\s*#pragma\\s+endregion\\b")}}},r={defaultToken:"",tokenPostfix:".st",ignoreCase:!0,brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["if","end_if","elsif","else","case","of","to","__try","__catch","__finally","do","with","by","while","repeat","end_while","end_repeat","end_case","for","end_for","task","retain","non_retain","constant","with","at","exit","return","interval","priority","address","port","on_channel","then","iec","file","uses","version","packagetype","displayname","copyright","summary","vendor","common_source","from","extends"],constant:["false","true","null"],defineKeywords:["var","var_input","var_output","var_in_out","var_temp","var_global","var_access","var_external","end_var","type","end_type","struct","end_struct","program","end_program","function","end_function","function_block","end_function_block","interface","end_interface","method","end_method","property","end_property","namespace","end_namespace","configuration","end_configuration","tcp","end_tcp","resource","end_resource","channel","end_channel","library","end_library","folder","end_folder","binaries","end_binaries","includes","end_includes","sources","end_sources","action","end_action","step","initial_step","end_step","transaction","end_transaction"],typeKeywords:["int","sint","dint","lint","usint","uint","udint","ulint","real","lreal","time","date","time_of_day","date_and_time","string","bool","byte","word","dword","array","pointer","lword"],operators:["=",">","<",":",":=","<=",">=","<>","&","+","-","*","**","MOD","^","or","and","not","xor","abs","acos","asin","atan","cos","exp","expt","ln","log","sin","sqrt","tan","sel","max","min","limit","mux","shl","shr","rol","ror","indexof","sizeof","adr","adrinst","bitadr","is_valid","ref","ref_to"],builtinVariables:[],builtinFunctions:["sr","rs","tp","ton","tof","eq","ge","le","lt","ne","round","trunc","ctd","сtu","ctud","r_trig","f_trig","move","concat","delete","find","insert","left","len","replace","right","rtc"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/(\.\.)/,"delimiter"],[/\b(16#[0-9A-Fa-f\_]*)+\b/,"number.hex"],[/\b(2#[01\_]+)+\b/,"number.binary"],[/\b(8#[0-9\_]*)+\b/,"number.octal"],[/\b\d*\.\d+([eE][\-+]?\d+)?\b/,"number.float"],[/\b(L?REAL)#[0-9\_\.e]+\b/,"number.float"],[/\b(BYTE|(?:D|L)?WORD|U?(?:S|D|L)?INT)#[0-9\_]+\b/,"number"],[/\d+/,"number"],[/\b(T|DT|TOD)#[0-9:-_shmyd]+\b/,"tag"],[/\%(I|Q|M)(X|B|W|D|L)[0-9\.]+/,"tag"],[/\%(I|Q|M)[0-9\.]*/,"tag"],[/\b[A-Za-z]{1,6}#[0-9]+\b/,"tag"],[/\b(TO_|CTU_|CTD_|CTUD_|MUX_|SEL_)[A_Za-z]+\b/,"predefined"],[/\b[A_Za-z]+(_TO_)[A_Za-z]+\b/,"predefined"],[/[;]/,"delimiter"],[/[.]/,{token:"delimiter",next:"@params"}],[/[a-zA-Z_]\w*/,{cases:{"@operators":"operators","@keywords":"keyword","@typeKeywords":"type","@defineKeywords":"variable","@constant":"constant","@builtinVariables":"predefined","@builtinFunctions":"predefined","@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,{token:"string.quote",bracket:"@open",next:"@string_dq"}],[/'/,{token:"string.quote",bracket:"@open",next:"@string_sq"}],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],params:[[/\b[A-Za-z0-9_]+\b(?=\()/,{token:"identifier",next:"@pop"}],[/\b[A-Za-z0-9_]+\b/,"variable.name","@pop"]],comment:[[/[^\/*]+/,"comment"],[/\/\*/,"comment","@push"],["\\*/","comment","@pop"],[/[\/*]/,"comment"]],comment2:[[/[^\(*]+/,"comment"],[/\(\*/,"comment","@push"],["\\*\\)","comment","@pop"],[/[\(*]/,"comment"]],whitespace:[[/[ \t\r\n]+/,"white"],[/\/\/.*$/,"comment"],[/\/\*/,"comment","@comment"],[/\(\*/,"comment","@comment2"]],string_dq:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],string_sq:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,{token:"string.quote",bracket:"@close",next:"@pop"}]]}}}}]); \ No newline at end of file diff --git a/docs/63.63.js b/docs/63.63.js new file mode 100644 index 00000000..6c90ce26 --- /dev/null +++ b/docs/63.63.js @@ -0,0 +1,5 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[63],{969:function(e,t,o){"use strict";o.r(t),o.d(t,"conf",(function(){return n})),o.d(t,"language",(function(){return i})); +/*!--------------------------------------------------------------------------------------------- + * Copyright (C) David Owens II, owensd.io. All rights reserved. + *--------------------------------------------------------------------------------------------*/ +var n={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}]},i={defaultToken:"",tokenPostfix:".swift",identifier:/[a-zA-Z_][\w$]*/,attributes:["@autoclosure","@noescape","@noreturn","@NSApplicationMain","@NSCopying","@NSManaged","@objc","@UIApplicationMain","@noreturn","@availability","@IBAction","@IBDesignable","@IBInspectable","@IBOutlet"],accessmodifiers:["public","private","internal"],keywords:["__COLUMN__","__FILE__","__FUNCTION__","__LINE__","as","as!","as?","associativity","break","case","catch","class","continue","convenience","default","deinit","didSet","do","dynamic","dynamicType","else","enum","extension","fallthrough","final","for","func","get","guard","if","import","in","infix","init","inout","internal","is","lazy","left","let","mutating","nil","none","nonmutating","operator","optional","override","postfix","precedence","prefix","private","protocol","Protocol","public","repeat","required","return","right","self","Self","set","static","struct","subscript","super","switch","throw","throws","try","try!","Type","typealias","unowned","var","weak","where","while","willSet","FALSE","TRUE"],symbols:/[=(){}\[\].,:;@#\_&\-<>`?!+*\\\/]/,operatorstart:/[\/=\-+!*%<>&|^~?\u00A1-\u00A7\u00A9\u00AB\u00AC\u00AE\u00B0-\u00B1\u00B6\u00BB\u00BF\u00D7\u00F7\u2016-\u2017\u2020-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u23FF\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3030]/,operatorend:/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE00-\uFE0F\uFE20-\uFE2F\uE0100-\uE01EF]/,operators:/(@operatorstart)((@operatorstart)|(@operatorend))*/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},{include:"@attribute"},{include:"@literal"},{include:"@keyword"},{include:"@invokedmethod"},{include:"@symbol"}],whitespace:[[/\s+/,"white"],[/"""/,"string.quote","@endDblDocString"]],endDblDocString:[[/[^"]+/,"string"],[/\\"/,"string"],[/"""/,"string.quote","@popall"],[/"/,"string"]],symbol:[[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/[.]/,"delimiter"],[/@operators/,"operator"],[/@symbols/,"operator"]],comment:[[/\/\/\/.*$/,"comment.doc"],[/\/\*\*/,"comment.doc","@commentdocbody"],[/\/\/.*$/,"comment"],[/\/\*/,"comment","@commentbody"]],commentdocbody:[[/\/\*/,"comment","@commentbody"],[/\*\//,"comment.doc","@pop"],[/\:[a-zA-Z]+\:/,"comment.doc.param"],[/./,"comment.doc"]],commentbody:[[/\/\*/,"comment","@commentbody"],[/\*\//,"comment","@pop"],[/./,"comment"]],attribute:[[/\@@identifier/,{cases:{"@attributes":"keyword.control","@default":""}}]],literal:[[/"/,{token:"string.quote",next:"@stringlit"}],[/0[b]([01]_?)+/,"number.binary"],[/0[o]([0-7]_?)+/,"number.octal"],[/0[x]([0-9a-fA-F]_?)+([pP][\-+](\d_?)+)?/,"number.hex"],[/(\d_?)*\.(\d_?)+([eE][\-+]?(\d_?)+)?/,"number.float"],[/(\d_?)+/,"number"]],stringlit:[[/\\\(/,{token:"operator",next:"@interpolatedexpression"}],[/@escapes/,"string"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",next:"@pop"}],[/./,"string"]],interpolatedexpression:[[/\(/,{token:"operator",next:"@interpolatedexpression"}],[/\)/,{token:"operator",next:"@pop"}],{include:"@literal"},{include:"@keyword"},{include:"@symbol"}],keyword:[[/`/,{token:"operator",next:"@escapedkeyword"}],[/@identifier/,{cases:{"@keywords":"keyword","[A-Z][a-zA-Z0-9$]*":"type.identifier","@default":"identifier"}}]],escapedkeyword:[[/`/,{token:"operator",next:"@pop"}],[/./,"identifier"]],invokedmethod:[[/([.])(@identifier)/,{cases:{$2:["delimeter","type.identifier"],"@default":""}}]]}}}}]); \ No newline at end of file diff --git a/docs/64.64.js b/docs/64.64.js new file mode 100644 index 00000000..71551120 --- /dev/null +++ b/docs/64.64.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[64],{971:function(e,t,n){"use strict";n.r(t),n.d(t,"conf",(function(){return o})),n.d(t,"language",(function(){return s}));var o={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},s={tokenPostfix:".tcl",specialFunctions:["set","unset","rename","variable","proc","coroutine","foreach","incr","append","lappend","linsert","lreplace"],mainFunctions:["if","then","elseif","else","case","switch","while","for","break","continue","return","package","namespace","catch","exit","eval","expr","uplevel","upvar"],builtinFunctions:["file","info","concat","join","lindex","list","llength","lrange","lsearch","lsort","split","array","parray","binary","format","regexp","regsub","scan","string","subst","dict","cd","clock","exec","glob","pid","pwd","close","eof","fblocked","fconfigure","fcopy","fileevent","flush","gets","open","puts","read","seek","socket","tell","interp","after","auto_execok","auto_load","auto_mkindex","auto_reset","bgerror","error","global","history","load","source","time","trace","unknown","unset","update","vwait","winfo","wm","bind","event","pack","place","grid","font","bell","clipboard","destroy","focus","grab","lower","option","raise","selection","send","tk","tkwait","tk_bisque","tk_focusNext","tk_focusPrev","tk_focusFollowsMouse","tk_popup","tk_setPalette"],symbols:/[=><!~?:&|+\-*\/\^%]+/,brackets:[{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"}],escapes:/\\(?:[abfnrtv\\"'\[\]\{\};\$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,variables:/(?:\$+(?:(?:\:\:?)?[a-zA-Z_]\w*)+)/,tokenizer:{root:[[/[a-zA-Z_]\w*/,{cases:{"@specialFunctions":{token:"keyword.flow",next:"@specialFunc"},"@mainFunctions":"keyword","@builtinFunctions":"variable","@default":"operator.scss"}}],[/\s+\-+(?!\d|\.)\w*|{\*}/,"metatag"],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/@symbols/,"operator"],[/\$+(?:\:\:)?\{/,{token:"identifier",next:"@nestedVariable"}],[/@variables/,"type.identifier"],[/\.(?!\d|\.)[\w\-]*/,"operator.sql"],[/\d+(\.\d+)?/,"number"],[/\d+/,"number"],[/;/,"delimiter"],[/"/,{token:"string.quote",bracket:"@open",next:"@dstring"}],[/'/,{token:"string.quote",bracket:"@open",next:"@sstring"}]],dstring:[[/\[/,{token:"@brackets",next:"@nestedCall"}],[/\$+(?:\:\:)?\{/,{token:"identifier",next:"@nestedVariable"}],[/@variables/,"type.identifier"],[/[^\\$\[\]"]+/,"string"],[/@escapes/,"string.escape"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],sstring:[[/\[/,{token:"@brackets",next:"@nestedCall"}],[/\$+(?:\:\:)?\{/,{token:"identifier",next:"@nestedVariable"}],[/@variables/,"type.identifier"],[/[^\\$\[\]']+/,"string"],[/@escapes/,"string.escape"],[/'/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,"white"],[/#.*\\$/,{token:"comment",next:"@newlineComment"}],[/#.*(?!\\)$/,"comment"]],newlineComment:[[/.*\\$/,"comment"],[/.*(?!\\)$/,{token:"comment",next:"@pop"}]],nestedVariable:[[/[^\{\}\$]+/,"type.identifier"],[/\}/,{token:"identifier",next:"@pop"}]],nestedCall:[[/\[/,{token:"@brackets",next:"@nestedCall"}],[/\]/,{token:"@brackets",next:"@pop"}],{include:"root"}],specialFunc:[[/"/,{token:"string",next:"@dstring"}],[/'/,{token:"string",next:"@sstring"}],[/\S+/,{token:"type",next:"@pop"}]]}}}}]); \ No newline at end of file diff --git a/docs/65.65.js b/docs/65.65.js new file mode 100644 index 00000000..5e26b218 --- /dev/null +++ b/docs/65.65.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[65],{972:function(t,e,i){"use strict";i.r(e),i.d(e,"conf",(function(){return r})),i.d(e,"language",(function(){return m}));var r={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{#","#}"]},brackets:[["{#","#}"],["{%","%}"],["{{","}}"],["(",")"],["[","]"],["\x3c!--","--\x3e"],["<",">"]],autoClosingPairs:[{open:"{# ",close:" #}"},{open:"{% ",close:" %}"},{open:"{{ ",close:" }}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}]},m={defaultToken:"",tokenPostfix:"",ignoreCase:!0,keywords:["apply","autoescape","block","deprecated","do","embed","extends","flush","for","from","if","import","include","macro","sandbox","set","use","verbatim","with","endapply","endautoescape","endblock","endembed","endfor","endif","endmacro","endsandbox","endset","endwith","true","false"],tokenizer:{root:[[/\s+/],[/{#/,"comment.twig","@commentState"],[/{%[-~]?/,"delimiter.twig","@blockState"],[/{{[-~]?/,"delimiter.twig","@variableState"],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@comment"],[/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/,["delimiter.html","tag.html","","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/[^<]+/]],commentState:[[/#}/,"comment.twig","@pop"],[/./,"comment.twig"]],blockState:[[/[-~]?%}/,"delimiter.twig","@pop"],[/\s+/],[/(verbatim)(\s*)([-~]?%})/,["keyword.twig","",{token:"delimiter.twig",next:"@rawDataState"}]],{include:"expression"}],rawDataState:[[/({%[-~]?)(\s*)(endverbatim)(\s*)([-~]?%})/,["delimiter.twig","","keyword.twig","",{token:"delimiter.twig",next:"@popall"}]],[/./,"string.twig"]],variableState:[[/[-~]?}}/,"delimiter.twig","@pop"],{include:"expression"}],stringState:[[/"/,"string.twig","@pop"],[/#{\s*/,"string.twig","@interpolationState"],[/[^#"\\]*(?:(?:\\.|#(?!\{))[^#"\\]*)*/,"string.twig"]],interpolationState:[[/}/,"string.twig","@pop"],{include:"expression"}],expression:[[/\s+/],[/\+|-|\/{1,2}|%|\*{1,2}/,"operators.twig"],[/(and|or|not|b-and|b-xor|b-or)(\s+)/,["operators.twig",""]],[/==|!=|<|>|>=|<=/,"operators.twig"],[/(starts with|ends with|matches)(\s+)/,["operators.twig",""]],[/(in)(\s+)/,["operators.twig",""]],[/(is)(\s+)/,["operators.twig",""]],[/\||~|:|\.{1,2}|\?{1,2}/,"operators.twig"],[/[^\W\d][\w]*/,{cases:{"@keywords":"keyword.twig","@default":"variable.twig"}}],[/\d+(\.\d+)?/,"number.twig"],[/\(|\)|\[|\]|{|}|,/,"delimiter.twig"],[/"([^#"\\]*(?:\\.[^#"\\]*)*)"|\'([^\'\\]*(?:\\.[^\'\\]*)*)\'/,"string.twig"],[/"/,"string.twig","@stringState"],[/=>/,"operators.twig"],[/=/,"operators.twig"]],doctype:[[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name.html","@scriptAfterType"],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter.html","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value.html",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value.html",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name.html","@styleAfterType"],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/>/,{token:"delimiter.html",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter.html","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value.html",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value.html",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}}}}]); \ No newline at end of file diff --git a/docs/66.66.js b/docs/66.66.js new file mode 100644 index 00000000..d4334076 --- /dev/null +++ b/docs/66.66.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[66],{908:function(e,n,t){"use strict";t.r(n),t.d(n,"conf",(function(){return r})),t.d(n,"language",(function(){return i}));var o=t(212),r={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:o.languages.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:o.languages.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:o.languages.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:o.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")}}},i={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","package","private","protected","public","readonly","require","global","return","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"},[/\/(?=([^\\\/]|\\.)+\/([gimsuy]*)(\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"],[/(\/)([gimsuy]*)/,[{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"}]}}}}]); \ No newline at end of file diff --git a/docs/67.67.js b/docs/67.67.js new file mode 100644 index 00000000..d78f274a --- /dev/null +++ b/docs/67.67.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[67],{973:function(e,n,t){"use strict";t.r(n),t.d(n,"conf",(function(){return o})),t.d(n,"language",(function(){return r}));var o={comments:{lineComment:"'",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"],["addhandler","end addhandler"],["class","end class"],["enum","end enum"],["event","end event"],["function","end function"],["get","end get"],["if","end if"],["interface","end interface"],["module","end module"],["namespace","end namespace"],["operator","end operator"],["property","end property"],["raiseevent","end raiseevent"],["removehandler","end removehandler"],["select","end select"],["set","end set"],["structure","end structure"],["sub","end sub"],["synclock","end synclock"],["try","end try"],["while","end while"],["with","end with"],["using","end using"],["do","loop"],["for","next"]],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"]}],folding:{markers:{start:new RegExp("^\\s*#Region\\b"),end:new RegExp("^\\s*#End Region\\b")}}},r={defaultToken:"",tokenPostfix:".vb",ignoreCase:!0,brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.angle",open:"<",close:">"},{token:"keyword.tag-addhandler",open:"addhandler",close:"end addhandler"},{token:"keyword.tag-class",open:"class",close:"end class"},{token:"keyword.tag-enum",open:"enum",close:"end enum"},{token:"keyword.tag-event",open:"event",close:"end event"},{token:"keyword.tag-function",open:"function",close:"end function"},{token:"keyword.tag-get",open:"get",close:"end get"},{token:"keyword.tag-if",open:"if",close:"end if"},{token:"keyword.tag-interface",open:"interface",close:"end interface"},{token:"keyword.tag-module",open:"module",close:"end module"},{token:"keyword.tag-namespace",open:"namespace",close:"end namespace"},{token:"keyword.tag-operator",open:"operator",close:"end operator"},{token:"keyword.tag-property",open:"property",close:"end property"},{token:"keyword.tag-raiseevent",open:"raiseevent",close:"end raiseevent"},{token:"keyword.tag-removehandler",open:"removehandler",close:"end removehandler"},{token:"keyword.tag-select",open:"select",close:"end select"},{token:"keyword.tag-set",open:"set",close:"end set"},{token:"keyword.tag-structure",open:"structure",close:"end structure"},{token:"keyword.tag-sub",open:"sub",close:"end sub"},{token:"keyword.tag-synclock",open:"synclock",close:"end synclock"},{token:"keyword.tag-try",open:"try",close:"end try"},{token:"keyword.tag-while",open:"while",close:"end while"},{token:"keyword.tag-with",open:"with",close:"end with"},{token:"keyword.tag-using",open:"using",close:"end using"},{token:"keyword.tag-do",open:"do",close:"loop"},{token:"keyword.tag-for",open:"for",close:"next"}],keywords:["AddHandler","AddressOf","Alias","And","AndAlso","As","Async","Boolean","ByRef","Byte","ByVal","Call","Case","Catch","CBool","CByte","CChar","CDate","CDbl","CDec","Char","CInt","Class","CLng","CObj","Const","Continue","CSByte","CShort","CSng","CStr","CType","CUInt","CULng","CUShort","Date","Decimal","Declare","Default","Delegate","Dim","DirectCast","Do","Double","Each","Else","ElseIf","End","EndIf","Enum","Erase","Error","Event","Exit","False","Finally","For","Friend","Function","Get","GetType","GetXMLNamespace","Global","GoSub","GoTo","Handles","If","Implements","Imports","In","Inherits","Integer","Interface","Is","IsNot","Let","Lib","Like","Long","Loop","Me","Mod","Module","MustInherit","MustOverride","MyBase","MyClass","NameOf","Namespace","Narrowing","New","Next","Not","Nothing","NotInheritable","NotOverridable","Object","Of","On","Operator","Option","Optional","Or","OrElse","Out","Overloads","Overridable","Overrides","ParamArray","Partial","Private","Property","Protected","Public","RaiseEvent","ReadOnly","ReDim","RemoveHandler","Resume","Return","SByte","Select","Set","Shadows","Shared","Short","Single","Static","Step","Stop","String","Structure","Sub","SyncLock","Then","Throw","To","True","Try","TryCast","TypeOf","UInteger","ULong","UShort","Using","Variant","Wend","When","While","Widening","With","WithEvents","WriteOnly","Xor"],tagwords:["If","Sub","Select","Try","Class","Enum","Function","Get","Interface","Module","Namespace","Operator","Set","Structure","Using","While","With","Do","Loop","For","Next","Property","Continue","AddHandler","RemoveHandler","Event","RaiseEvent","SyncLock"],symbols:/[=><!~?;\.,:&|+\-*\/\^%]+/,integersuffix:/U?[DI%L&S@]?/,floatsuffix:/[R#F!]?/,tokenizer:{root:[{include:"@whitespace"},[/next(?!\w)/,{token:"keyword.tag-for"}],[/loop(?!\w)/,{token:"keyword.tag-do"}],[/end\s+(?!for|do)(addhandler|class|enum|event|function|get|if|interface|module|namespace|operator|property|raiseevent|removehandler|select|set|structure|sub|synclock|try|while|with|using)/,{token:"keyword.tag-$1"}],[/[a-zA-Z_]\w*/,{cases:{"@tagwords":{token:"keyword.tag-$0"},"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],[/^\s*#\w+/,"keyword"],[/\d*\d+e([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+(e[\-+]?\d+)?(@floatsuffix)/,"number.float"],[/&H[0-9a-f]+(@integersuffix)/,"number.hex"],[/&0[0-7]+(@integersuffix)/,"number.octal"],[/\d+(@integersuffix)/,"number"],[/#.*#/,"number"],[/[{}()\[\]]/,"@brackets"],[/@symbols/,"delimiter"],[/["\u201c\u201d]/,{token:"string.quote",next:"@string"}]],whitespace:[[/[ \t\r\n]+/,""],[/(\'|REM(?!\w)).*$/,"comment"]],string:[[/[^"\u201c\u201d]+/,"string"],[/["\u201c\u201d]{2}/,"string.escape"],[/["\u201c\u201d]C?/,{token:"string.quote",next:"@pop"}]]}}}}]); \ No newline at end of file diff --git a/docs/68.68.js b/docs/68.68.js new file mode 100644 index 00000000..9c9f6c77 --- /dev/null +++ b/docs/68.68.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[68],{974:function(e,t,n){"use strict";n.r(t),n.d(t,"conf",(function(){return a})),n.d(t,"language",(function(){return o}));var a={comments:{blockComment:["\x3c!--","--\x3e"]},brackets:[["<",">"]],autoClosingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],surroundingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}]},o={defaultToken:"",tokenPostfix:".xml",ignoreCase:!0,qualifiedName:/(?:[\w\.\-]+:)?[\w\.\-]+/,tokenizer:{root:[[/[^<&]+/,""],{include:"@whitespace"},[/(<)(@qualifiedName)/,[{token:"delimiter"},{token:"tag",next:"@tag"}]],[/(<\/)(@qualifiedName)(\s*)(>)/,[{token:"delimiter"},{token:"tag"},"",{token:"delimiter"}]],[/(<\?)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/(<\!)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/<\!\[CDATA\[/,{token:"delimiter.cdata",next:"@cdata"}],[/&\w+;/,"string.escape"]],cdata:[[/[^\]]+/,""],[/\]\]>/,{token:"delimiter.cdata",next:"@pop"}],[/\]/,""]],tag:[[/[ \t\r\n]+/,""],[/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/,["attribute.name","","attribute.value"]],[/@qualifiedName/,"attribute.name"],[/\?>/,{token:"delimiter",next:"@pop"}],[/(\/)(>)/,[{token:"tag"},{token:"delimiter",next:"@pop"}]],[/>/,{token:"delimiter",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/<!--/,{token:"comment",next:"@comment"}]],comment:[[/[^<\-]+/,"comment.content"],[/-->/,{token:"comment",next:"@pop"}],[/<!--/,"comment.content.invalid"],[/[<\-]/,"comment.content"]]}}}}]); \ No newline at end of file diff --git a/docs/69.69.js b/docs/69.69.js new file mode 100644 index 00000000..bb63a932 --- /dev/null +++ b/docs/69.69.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[69],{975:function(e,n,t){"use strict";t.r(n),t.d(n,"conf",(function(){return r})),t.d(n,"language",(function(){return o}));var r={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{offSide:!0}},o={tokenPostfix:".yaml",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["true","True","TRUE","false","False","FALSE","null","Null","Null","~"],numberInteger:/(?:0|[+-]?[0-9]+)/,numberFloat:/(?:0|[+-]?[0-9]+)(?:\.[0-9]+)?(?:e[-+][1-9][0-9]*)?/,numberOctal:/0o[0-7]+/,numberHex:/0x[0-9a-fA-F]+/,numberInfinity:/[+-]?\.(?:inf|Inf|INF)/,numberNaN:/\.(?:nan|Nan|NAN)/,numberDate:/\d{4}-\d\d-\d\d([Tt ]\d\d:\d\d:\d\d(\.\d+)?(( ?[+-]\d\d?(:\d\d)?)|Z)?)?/,escapes:/\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},[/%[^ ]+.*$/,"meta.directive"],[/---/,"operators.directivesEnd"],[/\.{3}/,"operators.documentEnd"],[/[-?:](?= )/,"operators"],{include:"@anchor"},{include:"@tagHandle"},{include:"@flowCollections"},{include:"@blockStyle"},[/@numberInteger(?![ \t]*\S+)/,"number"],[/@numberFloat(?![ \t]*\S+)/,"number.float"],[/@numberOctal(?![ \t]*\S+)/,"number.octal"],[/@numberHex(?![ \t]*\S+)/,"number.hex"],[/@numberInfinity(?![ \t]*\S+)/,"number.infinity"],[/@numberNaN(?![ \t]*\S+)/,"number.nan"],[/@numberDate(?![ \t]*\S+)/,"number.date"],[/(".*?"|'.*?'|.*?)([ \t]*)(:)( |$)/,["type","white","operators","white"]],{include:"@flowScalars"},[/.+$/,{cases:{"@keywords":"keyword","@default":"string"}}]],object:[{include:"@whitespace"},{include:"@comment"},[/\}/,"@brackets","@pop"],[/,/,"delimiter.comma"],[/:(?= )/,"operators"],[/(?:".*?"|'.*?'|[^,\{\[]+?)(?=: )/,"type"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\},]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],array:[{include:"@whitespace"},{include:"@comment"},[/\]/,"@brackets","@pop"],[/,/,"delimiter.comma"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\],]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],multiString:[[/^( +).+$/,"string","@multiStringContinued.$1"]],multiStringContinued:[[/^( *).+$/,{cases:{"$1==$S2":"string","@default":{token:"@rematch",next:"@popall"}}}]],whitespace:[[/[ \t\r\n]+/,"white"]],comment:[[/#.*$/,"comment"]],flowCollections:[[/\[/,"@brackets","@array"],[/\{/,"@brackets","@object"]],flowScalars:[[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'[^']*'/,"string"],[/"/,"string","@doubleQuotedString"]],doubleQuotedString:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],blockStyle:[[/[>|][0-9]*[+-]?$/,"operators","@multiString"]],flowNumber:[[/@numberInteger(?=[ \t]*[,\]\}])/,"number"],[/@numberFloat(?=[ \t]*[,\]\}])/,"number.float"],[/@numberOctal(?=[ \t]*[,\]\}])/,"number.octal"],[/@numberHex(?=[ \t]*[,\]\}])/,"number.hex"],[/@numberInfinity(?=[ \t]*[,\]\}])/,"number.infinity"],[/@numberNaN(?=[ \t]*[,\]\}])/,"number.nan"],[/@numberDate(?=[ \t]*[,\]\}])/,"number.date"]],tagHandle:[[/\![^ ]*/,"tag"]],anchor:[[/[&*][^ ]+/,"namespace"]]}}}}]); \ No newline at end of file diff --git a/docs/7.7.js b/docs/7.7.js new file mode 100644 index 00000000..08e59453 --- /dev/null +++ b/docs/7.7.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{911:function(e,n,t){"use strict";t.r(n),t.d(n,"conf",(function(){return i})),t.d(n,"language",(function(){return o}));var i={comments:{lineComment:"*"},brackets:[["[","]"],["(",")"]]},o={defaultToken:"invalid",ignoreCase:!0,tokenPostfix:".abap",keywords:["abap-source","abbreviated","abstract","accept","accepting","according","activation","actual","add","add-corresponding","adjacent","after","alias","aliases","align","all","allocate","alpha","analysis","analyzer","append","appendage","appending","application","archive","area","arithmetic","as","ascending","aspect","assert","assign","assigned","assigning","association","asynchronous","at","attributes","authority","authority-check","avg","back","background","backup","backward","badi","base","before","begin","big","binary","bintohex","bit","black","blank","blanks","blob","block","blocks","blue","bound","boundaries","bounds","boxed","break-point","buffer","by","bypassing","byte","byte-order","call","calling","case","cast","casting","catch","center","centered","chain","chain-input","chain-request","change","changing","channels","character","char-to-hex","check","checkbox","ci_","circular","class","class-coding","class-data","class-events","class-methods","class-pool","cleanup","clear","client","clob","clock","close","coalesce","code","coding","col_background","col_group","col_heading","col_key","col_negative","col_normal","col_positive","col_total","collect","color","column","columns","comment","comments","commit","common","communication","comparing","component","components","compression","compute","concat","concat_with_space","concatenate","cond","condition","connect","connection","constants","context","contexts","continue","control","controls","conv","conversion","convert","copies","copy","corresponding","country","cover","cpi","create","creating","critical","currency","currency_conversion","current","cursor","cursor-selection","customer","customer-function","dangerous","data","database","datainfo","dataset","date","dats_add_days","dats_add_months","dats_days_between","dats_is_valid","daylight","dd/mm/yy","dd/mm/yyyy","ddmmyy","deallocate","decimal_shift","decimals","declarations","deep","default","deferred","define","defining","definition","delete","deleting","demand","department","descending","describe","destination","detail","dialog","directory","disconnect","display","display-mode","distinct","divide","divide-corresponding","division","do","dummy","duplicate","duplicates","duration","during","dynamic","dynpro","edit","editor-call","else","elseif","empty","enabled","enabling","encoding","end","endat","endcase","endcatch","endchain","endclass","enddo","endenhancement","end-enhancement-section","endexec","endform","endfunction","endian","endif","ending","endinterface","end-lines","endloop","endmethod","endmodule","end-of-definition","end-of-editing","end-of-file","end-of-page","end-of-selection","endon","endprovide","endselect","end-test-injection","end-test-seam","endtry","endwhile","endwith","engineering","enhancement","enhancement-point","enhancements","enhancement-section","entries","entry","enum","environment","errormessage","errors","escaping","event","events","exact","except","exception","exceptions","exception-table","exclude","excluding","exec","execute","exists","exit","exit-command","expand","expanding","expiration","explicit","exponent","export","exporting","extend","extended","extension","extract","fail","fetch","field","field-groups","fields","field-symbol","field-symbols","file","filter","filters","filter-table","final","first","first-line","fixed-point","fkeq","fkge","flush","font","for","form","format","forward","found","frame","frames","free","friends","from","function","functionality","function-pool","further","gaps","generate","get","giving","gkeq","gkge","global","grant","green","group","groups","handle","handler","harmless","hashed","having","hdb","header","headers","heading","head-lines","help-id","help-request","hextobin","hide","high","hint","hold","hotspot","icon","id","identification","identifier","ids","if","ignore","ignoring","immediately","implementation","implementations","implemented","implicit","import","importing","inactive","incl","include","includes","including","increment","index","index-line","infotypes","inheriting","init","initial","initialization","inner","inout","input","instance","instances","instr","intensified","interface","interface-pool","interfaces","internal","intervals","into","inverse","inverted-date","is","iso","job","join","keep","keeping","kernel","key","keys","keywords","kind","language","last","late","layout","leading","leave","left","left-justified","leftplus","leftspace","legacy","length","let","level","levels","like","line","line-count","linefeed","line-selection","line-size","list","listbox","list-processing","little","llang","load","load-of-program","lob","local","locale","locator","logfile","logical","log-point","long","loop","low","lower","lpad","lpi","ltrim","mail","main","major-id","mapping","margin","mark","mask","matchcode","max","maximum","medium","members","memory","mesh","message","message-id","messages","messaging","method","methods","min","minimum","minor-id","mm/dd/yy","mm/dd/yyyy","mmddyy","mode","modif","modifier","modify","module","move","move-corresponding","multiply","multiply-corresponding","name","nametab","native","nested","nesting","new","new-line","new-page","new-section","next","no","node","nodes","no-display","no-extension","no-gap","no-gaps","no-grouping","no-heading","non-unicode","non-unique","no-scrolling","no-sign","no-title","no-topofpage","no-zero","null","number","object","objects","obligatory","occurrence","occurrences","occurs","of","off","offset","ole","on","only","open","option","optional","options","order","other","others","out","outer","output","output-length","overflow","overlay","pack","package","pad","padding","page","pages","parameter","parameters","parameter-table","part","partially","pattern","percentage","perform","performing","person","pf1","pf10","pf11","pf12","pf13","pf14","pf15","pf2","pf3","pf4","pf5","pf6","pf7","pf8","pf9","pf-status","pink","places","pool","pos_high","pos_low","position","pragmas","precompiled","preferred","preserving","primary","print","print-control","priority","private","procedure","process","program","property","protected","provide","public","push","pushbutton","put","queue-only","quickinfo","radiobutton","raise","raising","range","ranges","read","reader","read-only","receive","received","receiver","receiving","red","redefinition","reduce","reduced","ref","reference","refresh","regex","reject","remote","renaming","replacement","replacing","report","request","requested","reserve","reset","resolution","respecting","responsible","result","results","resumable","resume","retry","return","returncode","returning","returns","right","right-justified","rightplus","rightspace","risk","rmc_communication_failure","rmc_invalid_status","rmc_system_failure","role","rollback","rows","rpad","rtrim","run","sap","sap-spool","saving","scale_preserving","scale_preserving_scientific","scan","scientific","scientific_with_leading_zero","scroll","scroll-boundary","scrolling","search","secondary","seconds","section","select","selection","selections","selection-screen","selection-set","selection-sets","selection-table","select-options","send","separate","separated","set","shared","shift","short","shortdump-id","sign_as_postfix","single","size","skip","skipping","smart","some","sort","sortable","sorted","source","specified","split","spool","spots","sql","sqlscript","stable","stamp","standard","starting","start-of-editing","start-of-selection","state","statement","statements","static","statics","statusinfo","step-loop","stop","structure","structures","style","subkey","submatches","submit","subroutine","subscreen","subtract","subtract-corresponding","suffix","sum","summary","summing","supplied","supply","suppress","switch","switchstates","symbol","syncpoints","syntax","syntax-check","syntax-trace","system-call","system-exceptions","system-exit","tab","tabbed","tables","tableview","tabstrip","target","task","tasks","test","testing","test-injection","test-seam","text","textpool","then","throw","time","times","timestamp","timezone","tims_is_valid","title","titlebar","title-lines","to","tokenization","tokens","top-lines","top-of-page","trace-file","trace-table","trailing","transaction","transfer","transformation","transporting","trmac","truncate","truncation","try","tstmp_add_seconds","tstmp_current_utctimestamp","tstmp_is_valid","tstmp_seconds_between","type","type-pool","type-pools","types","uline","unassign","under","unicode","union","unique","unit_conversion","unix","unpack","until","unwind","up","update","upper","user","user-command","using","utf-8","valid","value","value-request","values","vary","varying","verification-message","version","via","view","visible","wait","warning","when","whenever","where","while","width","window","windows","with","with-heading","without","with-title","word","work","write","writer","xml","xsd","yellow","yes","yymmdd","zero","zone","abs","acos","asin","atan","bit-set","boolc","boolx","ceil","char_off","charlen","cmax","cmin","concat_lines_of","condense","contains","contains_any_not_of","contains_any_of","cos","cosh","count","count_any_not_of","count_any_of","dbmaxlen","distance","escape","exp","find","find_any_not_of","find_any_of","find_end","floor","frac","from_mixed","insert","ipow","line_exists","line_index","lines","log","log10","match","matches","nmax","nmin","numofchar","repeat","replace","rescale","reverse","round","segment","shift_left","shift_right","sign","sin","sinh","sqrt","strlen","substring","substring_after","substring_before","substring_from","substring_to","tan","tanh","to_lower","to_mixed","to_upper","translate","trunc","utclong_add","utclong_current","utclong_diff","xsdbool","xstrlen"],typeKeywords:["b","c","d","decfloat16","decfloat34","f","i","int8","n","p","s","string","t","utclong","x","xstring","any","clike","csequence","decfloat","numeric","simple","xsequence","table","hashed","index","sorted","standard","accp","char","clnt","cuky","curr","dats","dec","df16_dec","df16_raw","df34_dec","df34_raw","fltp","int1","int2","int4","lang","lchr","lraw","numc","quan","raw","rawstring","sstring","tims","unit","df16_scl","df34_scl","prec","varc","abap_bool","space","me","syst","sy","screen"],operators:[" +"," -","/","*","**","div","mod","=","#","@","&","&&","bit-and","bit-not","bit-or","bit-xor","m","o","z","and","equiv","not","or"," < "," > ","<=",">=","<>","><","=<","=>","between","bt","byte-ca","byte-cn","byte-co","byte-cs","byte-na","byte-ns","ca","cn","co","cp","cs","eq","ge","gt","in","le","lt","na","nb","ne","np","ns"],symbols:/[=><!~?&+\-*\/\^%#@]+/,tokenizer:{root:[[/[a-z_$][\w-$]*/,{cases:{"@typeKeywords":"keyword","@keywords":"keyword","@operators":"operator","@default":"identifier"}}],[/<[\w]+>/,"identifier"],{include:"@whitespace"},[/[:,.]/,"delimiter"],[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}],[/'/,{token:"string",bracket:"@open",next:"@stringquote"}],[/`/,{token:"string",bracket:"@open",next:"@stringping"}],[/\|/,{token:"string",bracket:"@open",next:"@stringtemplate"}],[/\d+/,"number"]],stringtemplate:[[/[^\\\|]+/,"string"],[/\\\|/,"string"],[/\|/,{token:"string",bracket:"@close",next:"@pop"}]],stringping:[[/[^\\`]+/,"string"],[/`/,{token:"string",bracket:"@close",next:"@pop"}]],stringquote:[[/[^\\']+/,"string"],[/'/,{token:"string",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/^\*.*$/,"comment"],[/\".*$/,"comment"]]}}}}]); \ No newline at end of file diff --git a/docs/70.70.js b/docs/70.70.js new file mode 100644 index 00000000..2f240a66 --- /dev/null +++ b/docs/70.70.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[70],{976:function(e,t,n){"use strict";n.r(t);var r,i,o=n(199),s=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},a=function(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},u=function(){function e(e,t){var n=this;this._modeId=e,this._defaults=t,this._worker=null,this._client=null,this._configChangeListener=this._defaults.onDidChange((function(){return n._stopWorker()})),this._updateExtraLibsToken=0,this._extraLibsChangeListener=this._defaults.onDidExtraLibsChange((function(){return n._updateExtraLibs()}))}return e.prototype._stopWorker=function(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null},e.prototype.dispose=function(){this._configChangeListener.dispose(),this._extraLibsChangeListener.dispose(),this._stopWorker()},e.prototype._updateExtraLibs=function(){return s(this,void 0,void 0,(function(){var e,t;return a(this,(function(n){switch(n.label){case 0:return this._worker?(e=++this._updateExtraLibsToken,[4,this._worker.getProxy()]):[2];case 1:return t=n.sent(),this._updateExtraLibsToken!==e?[2]:(t.updateExtraLibs(this._defaults.getExtraLibs()),[2])}}))}))},e.prototype._getClient=function(){var e=this;if(!this._client){this._worker=o.editor.createWebWorker({moduleId:"vs/language/typescript/tsWorker",label:this._modeId,keepIdleModels:!0,createData:{compilerOptions:this._defaults.getCompilerOptions(),extraLibs:this._defaults.getExtraLibs(),customWorkerPath:this._defaults.workerOptions.customWorkerPath}});var t=this._worker.getProxy();this._defaults.getEagerModelSync()&&(t=t.then((function(t){return e._worker?e._worker.withSyncedResources(o.editor.getModels().filter((function(t){return t.getModeId()===e._modeId})).map((function(e){return e.uri}))):t}))),this._client=t}return this._client},e.prototype.getLanguageServiceWorker=function(){for(var e,t=this,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return this._getClient().then((function(t){e=t})).then((function(e){if(t._worker)return t._worker.withSyncedResources(n)})).then((function(t){return e}))},e}(),l={"lib.d.ts":!0,"lib.dom.d.ts":!0,"lib.dom.iterable.d.ts":!0,"lib.es2015.collection.d.ts":!0,"lib.es2015.core.d.ts":!0,"lib.es2015.d.ts":!0,"lib.es2015.generator.d.ts":!0,"lib.es2015.iterable.d.ts":!0,"lib.es2015.promise.d.ts":!0,"lib.es2015.proxy.d.ts":!0,"lib.es2015.reflect.d.ts":!0,"lib.es2015.symbol.d.ts":!0,"lib.es2015.symbol.wellknown.d.ts":!0,"lib.es2016.array.include.d.ts":!0,"lib.es2016.d.ts":!0,"lib.es2016.full.d.ts":!0,"lib.es2017.d.ts":!0,"lib.es2017.full.d.ts":!0,"lib.es2017.intl.d.ts":!0,"lib.es2017.object.d.ts":!0,"lib.es2017.sharedmemory.d.ts":!0,"lib.es2017.string.d.ts":!0,"lib.es2017.typedarrays.d.ts":!0,"lib.es2018.asyncgenerator.d.ts":!0,"lib.es2018.asynciterable.d.ts":!0,"lib.es2018.d.ts":!0,"lib.es2018.full.d.ts":!0,"lib.es2018.intl.d.ts":!0,"lib.es2018.promise.d.ts":!0,"lib.es2018.regexp.d.ts":!0,"lib.es2019.array.d.ts":!0,"lib.es2019.d.ts":!0,"lib.es2019.full.d.ts":!0,"lib.es2019.object.d.ts":!0,"lib.es2019.string.d.ts":!0,"lib.es2019.symbol.d.ts":!0,"lib.es2020.bigint.d.ts":!0,"lib.es2020.d.ts":!0,"lib.es2020.full.d.ts":!0,"lib.es2020.intl.d.ts":!0,"lib.es2020.promise.d.ts":!0,"lib.es2020.string.d.ts":!0,"lib.es2020.symbol.wellknown.d.ts":!0,"lib.es5.d.ts":!0,"lib.es6.d.ts":!0,"lib.esnext.d.ts":!0,"lib.esnext.full.d.ts":!0,"lib.esnext.intl.d.ts":!0,"lib.esnext.promise.d.ts":!0,"lib.esnext.string.d.ts":!0,"lib.scripthost.d.ts":!0,"lib.webworker.d.ts":!0,"lib.webworker.importscripts.d.ts":!0},c=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},p=function(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};function f(e,t,n){if(void 0===n&&(n=0),"string"==typeof e)return e;if(void 0===e)return"";var r="";if(n){r+=t;for(var i=0;i<n;i++)r+=" "}if(r+=e.messageText,n++,e.next)for(var o=0,s=e.next;o<s.length;o++){r+=f(s[o],t,n)}return r}function g(e){return e?e.map((function(e){return e.text})).join(""):""}!function(e){e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart"}(i||(i={}));var h,m=function(){function e(e){this._worker=e}return e.prototype._textSpanToRange=function(e,t){var n=e.getPositionAt(t.start),r=e.getPositionAt(t.start+t.length);return{startLineNumber:n.lineNumber,startColumn:n.column,endLineNumber:r.lineNumber,endColumn:r.column}},e}(),b=function(){function e(e){this._worker=e,this._libFiles={},this._hasFetchedLibFiles=!1,this._fetchLibFilesPromise=null}return e.prototype.isLibFile=function(e){return!!e&&(0===e.path.indexOf("/lib.")&&!!l[e.path.slice(1)])},e.prototype.getOrCreateModel=function(e){var t=o.editor.getModel(e);return t||(this.isLibFile(e)&&this._hasFetchedLibFiles?o.editor.createModel(this._libFiles[e.path.slice(1)],"javascript",e):null)},e.prototype._containsLibFile=function(e){for(var t=0,n=e;t<n.length;t++){var r=n[t];if(this.isLibFile(r))return!0}return!1},e.prototype.fetchLibFilesIfNecessary=function(e){return d(this,void 0,void 0,(function(){return p(this,(function(t){switch(t.label){case 0:return this._containsLibFile(e)?[4,this._fetchLibFiles()]:[2];case 1:return t.sent(),[2]}}))}))},e.prototype._fetchLibFiles=function(){var e=this;return this._fetchLibFilesPromise||(this._fetchLibFilesPromise=this._worker().then((function(e){return e.getLibFiles()})).then((function(t){e._hasFetchedLibFiles=!0,e._libFiles=t}))),this._fetchLibFilesPromise},e}();!function(e){e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message"}(h||(h={}));var v=function(e){function t(t,n,r,i){var s=e.call(this,i)||this;s._libFiles=t,s._defaults=n,s._selector=r,s._disposables=[],s._listener=Object.create(null);var a=function(e){if(e.getModeId()===r){var t,n=e.onDidChangeContent((function(){clearTimeout(t),t=setTimeout((function(){return s._doValidate(e)}),500)}));s._listener[e.uri.toString()]={dispose:function(){n.dispose(),clearTimeout(t)}},s._doValidate(e)}},u=function(e){o.editor.setModelMarkers(e,s._selector,[]);var t=e.uri.toString();s._listener[t]&&(s._listener[t].dispose(),delete s._listener[t])};s._disposables.push(o.editor.onDidCreateModel(a)),s._disposables.push(o.editor.onWillDisposeModel(u)),s._disposables.push(o.editor.onDidChangeModelLanguage((function(e){u(e.model),a(e.model)}))),s._disposables.push({dispose:function(){for(var e=0,t=o.editor.getModels();e<t.length;e++){var n=t[e];u(n)}}});var l=function(){for(var e=0,t=o.editor.getModels();e<t.length;e++){var n=t[e];u(n),a(n)}};return s._disposables.push(s._defaults.onDidChange(l)),s._disposables.push(s._defaults.onDidExtraLibsChange(l)),o.editor.getModels().forEach(a),s}return c(t,e),t.prototype.dispose=function(){this._disposables.forEach((function(e){return e&&e.dispose()})),this._disposables=[]},t.prototype._doValidate=function(e){return d(this,void 0,void 0,(function(){var t,n,r,i,s,a,u,l,c,d=this;return p(this,(function(p){switch(p.label){case 0:return[4,this._worker(e.uri)];case 1:return t=p.sent(),e.isDisposed()?[2]:(n=[],r=this._defaults.getDiagnosticsOptions(),i=r.noSyntaxValidation,s=r.noSemanticValidation,a=r.noSuggestionDiagnostics,i||n.push(t.getSyntacticDiagnostics(e.uri.toString())),s||n.push(t.getSemanticDiagnostics(e.uri.toString())),a||n.push(t.getSuggestionDiagnostics(e.uri.toString())),[4,Promise.all(n)]);case 2:return!(u=p.sent())||e.isDisposed()?[2]:(l=u.reduce((function(e,t){return t.concat(e)}),[]).filter((function(e){return-1===(d._defaults.getDiagnosticsOptions().diagnosticCodesToIgnore||[]).indexOf(e.code)})),c=l.map((function(e){return e.relatedInformation||[]})).reduce((function(e,t){return t.concat(e)}),[]).map((function(e){return e.file?o.Uri.parse(e.file.fileName):null})),[4,this._libFiles.fetchLibFilesIfNecessary(c)]);case 3:return p.sent(),e.isDisposed()?[2]:(o.editor.setModelMarkers(e,this._selector,l.map((function(t){return d._convertDiagnostics(e,t)}))),[2])}}))}))},t.prototype._convertDiagnostics=function(e,t){var n=t.start||0,r=t.length||1,i=e.getPositionAt(n),s=i.lineNumber,a=i.column,u=e.getPositionAt(n+r),l=u.lineNumber,c=u.column,d=[];return t.reportsUnnecessary&&d.push(o.MarkerTag.Unnecessary),t.reportsDeprecated&&d.push(o.MarkerTag.Deprecated),{severity:this._tsDiagnosticCategoryToMarkerSeverity(t.category),startLineNumber:s,startColumn:a,endLineNumber:l,endColumn:c,message:f(t.messageText,"\n"),code:t.code.toString(),tags:d,relatedInformation:this._convertRelatedInformation(e,t.relatedInformation)}},t.prototype._convertRelatedInformation=function(e,t){var n=this;if(t){var r=[];return t.forEach((function(t){var i=e;if(t.file){var s=o.Uri.parse(t.file.fileName);i=n._libFiles.getOrCreateModel(s)}if(i){var a=t.start||0,u=t.length||1,l=i.getPositionAt(a),c=l.lineNumber,d=l.column,p=i.getPositionAt(a+u),g=p.lineNumber,h=p.column;r.push({resource:i.uri,startLineNumber:c,startColumn:d,endLineNumber:g,endColumn:h,message:f(t.messageText,"\n")})}})),r}},t.prototype._tsDiagnosticCategoryToMarkerSeverity=function(e){switch(e){case h.Error:return o.MarkerSeverity.Error;case h.Message:return o.MarkerSeverity.Info;case h.Warning:return o.MarkerSeverity.Warning;case h.Suggestion:return o.MarkerSeverity.Hint}return o.MarkerSeverity.Info},t}(m),y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),Object.defineProperty(t.prototype,"triggerCharacters",{get:function(){return["."]},enumerable:!1,configurable:!0}),t.prototype.provideCompletionItems=function(e,n,r,i){return d(this,void 0,void 0,(function(){var r,i,s,a,u;return p(this,(function(l){switch(l.label){case 0:return r=e.getWordUntilPosition(n),i=new o.Range(n.lineNumber,r.startColumn,n.lineNumber,r.endColumn),s=e.uri,a=e.getOffsetAt(n),[4,this._worker(s)];case 1:return[4,l.sent().getCompletionsAtPosition(s.toString(),a)];case 2:return!(u=l.sent())||e.isDisposed()?[2]:[2,{suggestions:u.entries.map((function(r){var u,l=i;if(r.replacementSpan){var c=e.getPositionAt(r.replacementSpan.start),d=e.getPositionAt(r.replacementSpan.start+r.replacementSpan.length);l=new o.Range(c.lineNumber,c.column,d.lineNumber,d.column)}var p=[];return-1!==(null===(u=r.kindModifiers)||void 0===u?void 0:u.indexOf("deprecated"))&&p.push(o.languages.CompletionItemTag.Deprecated),{uri:s,position:n,offset:a,range:l,label:r.name,insertText:r.name,sortText:r.sortText,kind:t.convertKind(r.kind),tags:p}}))}]}}))}))},t.prototype.resolveCompletionItem=function(e,n){return d(this,void 0,void 0,(function(){var n,r,i,o,s;return p(this,(function(a){switch(a.label){case 0:return r=(n=e).uri,i=n.position,o=n.offset,[4,this._worker(r)];case 1:return[4,a.sent().getCompletionEntryDetails(r.toString(),o,n.label)];case 2:return(s=a.sent())?[2,{uri:r,position:i,label:s.name,kind:t.convertKind(s.kind),detail:g(s.displayParts),documentation:{value:t.createDocumentationString(s)}}]:[2,n]}}))}))},t.convertKind=function(e){switch(e){case I.primitiveType:case I.keyword:return o.languages.CompletionItemKind.Keyword;case I.variable:case I.localVariable:return o.languages.CompletionItemKind.Variable;case I.memberVariable:case I.memberGetAccessor:case I.memberSetAccessor:return o.languages.CompletionItemKind.Field;case I.function:case I.memberFunction:case I.constructSignature:case I.callSignature:case I.indexSignature:return o.languages.CompletionItemKind.Function;case I.enum:return o.languages.CompletionItemKind.Enum;case I.module:return o.languages.CompletionItemKind.Module;case I.class:return o.languages.CompletionItemKind.Class;case I.interface:return o.languages.CompletionItemKind.Interface;case I.warning:return o.languages.CompletionItemKind.File}return o.languages.CompletionItemKind.Property},t.createDocumentationString=function(e){var t=g(e.documentation);if(e.tags)for(var n=0,r=e.tags;n<r.length;n++){t+="\n\n"+_(r[n])}return t},t}(m);function _(e){var t="*@"+e.name+"*";if("param"===e.name&&e.text){var n=e.text.split(" "),r=n[0],i=n.slice(1);t+="`"+r+"`",i.length>0&&(t+=" — "+i.join(" "))}else e.text&&(t+=" — "+e.text);return t}var w=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.signatureHelpTriggerCharacters=["(",","],t}return c(t,e),t.prototype.provideSignatureHelp=function(e,t,n){return d(this,void 0,void 0,(function(){var n,r,i,o;return p(this,(function(s){switch(s.label){case 0:return n=e.uri,r=e.getOffsetAt(t),[4,this._worker(n)];case 1:return[4,s.sent().getSignatureHelpItems(n.toString(),r)];case 2:return!(i=s.sent())||e.isDisposed()?[2]:(o={activeSignature:i.selectedItemIndex,activeParameter:i.argumentIndex,signatures:[]},i.items.forEach((function(e){var t={label:"",parameters:[]};t.documentation={value:g(e.documentation)},t.label+=g(e.prefixDisplayParts),e.parameters.forEach((function(n,r,i){var o=g(n.displayParts),s={label:o,documentation:{value:g(n.documentation)}};t.label+=o,t.parameters.push(s),r<i.length-1&&(t.label+=g(e.separatorDisplayParts))})),t.label+=g(e.suffixDisplayParts),o.signatures.push(t)})),[2,{value:o,dispose:function(){}}])}}))}))},t}(m),S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.provideHover=function(e,t,n){return d(this,void 0,void 0,(function(){var n,r,i,o,s,a;return p(this,(function(u){switch(u.label){case 0:return n=e.uri,r=e.getOffsetAt(t),[4,this._worker(n)];case 1:return[4,u.sent().getQuickInfoAtPosition(n.toString(),r)];case 2:return!(i=u.sent())||e.isDisposed()?[2]:(o=g(i.documentation),s=i.tags?i.tags.map((function(e){return _(e)})).join(" \n\n"):"",a=g(i.displayParts),[2,{range:this._textSpanToRange(e,i.textSpan),contents:[{value:"```typescript\n"+a+"\n```\n"},{value:o+(s?"\n\n"+s:"")}]}])}}))}))},t}(m),k=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.provideDocumentHighlights=function(e,t,n){return d(this,void 0,void 0,(function(){var n,r,i,s=this;return p(this,(function(a){switch(a.label){case 0:return n=e.uri,r=e.getOffsetAt(t),[4,this._worker(n)];case 1:return[4,a.sent().getOccurrencesAtPosition(n.toString(),r)];case 2:return!(i=a.sent())||e.isDisposed()?[2]:[2,i.map((function(t){return{range:s._textSpanToRange(e,t.textSpan),kind:t.isWriteAccess?o.languages.DocumentHighlightKind.Write:o.languages.DocumentHighlightKind.Text}}))]}}))}))},t}(m),x=function(e){function t(t,n){var r=e.call(this,n)||this;return r._libFiles=t,r}return c(t,e),t.prototype.provideDefinition=function(e,t,n){return d(this,void 0,void 0,(function(){var n,r,i,s,a,u,l,c,d;return p(this,(function(p){switch(p.label){case 0:return n=e.uri,r=e.getOffsetAt(t),[4,this._worker(n)];case 1:return[4,p.sent().getDefinitionAtPosition(n.toString(),r)];case 2:return!(i=p.sent())||e.isDisposed()?[2]:[4,this._libFiles.fetchLibFilesIfNecessary(i.map((function(e){return o.Uri.parse(e.fileName)})))];case 3:if(p.sent(),e.isDisposed())return[2];for(s=[],a=0,u=i;a<u.length;a++)l=u[a],c=o.Uri.parse(l.fileName),(d=this._libFiles.getOrCreateModel(c))&&s.push({uri:c,range:this._textSpanToRange(d,l.textSpan)});return[2,s]}}))}))},t}(m),C=function(e){function t(t,n){var r=e.call(this,n)||this;return r._libFiles=t,r}return c(t,e),t.prototype.provideReferences=function(e,t,n,r){return d(this,void 0,void 0,(function(){var n,r,i,s,a,u,l,c,d;return p(this,(function(p){switch(p.label){case 0:return n=e.uri,r=e.getOffsetAt(t),[4,this._worker(n)];case 1:return[4,p.sent().getReferencesAtPosition(n.toString(),r)];case 2:return!(i=p.sent())||e.isDisposed()?[2]:[4,this._libFiles.fetchLibFilesIfNecessary(i.map((function(e){return o.Uri.parse(e.fileName)})))];case 3:if(p.sent(),e.isDisposed())return[2];for(s=[],a=0,u=i;a<u.length;a++)l=u[a],c=o.Uri.parse(l.fileName),(d=this._libFiles.getOrCreateModel(c))&&s.push({uri:c,range:this._textSpanToRange(d,l.textSpan)});return[2,s]}}))}))},t}(m),F=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.provideDocumentSymbols=function(e,t){return d(this,void 0,void 0,(function(){var t,n,r,i,s=this;return p(this,(function(a){switch(a.label){case 0:return t=e.uri,[4,this._worker(t)];case 1:return[4,a.sent().getNavigationBarItems(t.toString())];case 2:return!(n=a.sent())||e.isDisposed()?[2]:(r=function(t,n,i){var a={name:n.text,detail:"",kind:P[n.kind]||o.languages.SymbolKind.Variable,range:s._textSpanToRange(e,n.spans[0]),selectionRange:s._textSpanToRange(e,n.spans[0]),tags:[],containerName:i};if(n.childItems&&n.childItems.length>0)for(var u=0,l=n.childItems;u<l.length;u++){var c=l[u];r(t,c,a.name)}t.push(a)},i=[],n.forEach((function(e){return r(i,e)})),[2,i])}}))}))},t}(m),I=function(){function e(){}return e.unknown="",e.keyword="keyword",e.script="script",e.module="module",e.class="class",e.interface="interface",e.type="type",e.enum="enum",e.variable="var",e.localVariable="local var",e.function="function",e.localFunction="local function",e.memberFunction="method",e.memberGetAccessor="getter",e.memberSetAccessor="setter",e.memberVariable="property",e.constructorImplementation="constructor",e.callSignature="call",e.indexSignature="index",e.constructSignature="construct",e.parameter="parameter",e.typeParameter="type parameter",e.primitiveType="primitive type",e.label="label",e.alias="alias",e.const="const",e.let="let",e.warning="warning",e}(),P=Object.create(null);P[I.module]=o.languages.SymbolKind.Module,P[I.class]=o.languages.SymbolKind.Class,P[I.enum]=o.languages.SymbolKind.Enum,P[I.interface]=o.languages.SymbolKind.Interface,P[I.memberFunction]=o.languages.SymbolKind.Method,P[I.memberVariable]=o.languages.SymbolKind.Property,P[I.memberGetAccessor]=o.languages.SymbolKind.Property,P[I.memberSetAccessor]=o.languages.SymbolKind.Property,P[I.variable]=o.languages.SymbolKind.Variable,P[I.const]=o.languages.SymbolKind.Variable,P[I.localVariable]=o.languages.SymbolKind.Variable,P[I.variable]=o.languages.SymbolKind.Variable,P[I.function]=o.languages.SymbolKind.Function,P[I.localFunction]=o.languages.SymbolKind.Function;var D,A,L=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t._convertOptions=function(e){return{ConvertTabsToSpaces:e.insertSpaces,TabSize:e.tabSize,IndentSize:e.tabSize,IndentStyle:i.Smart,NewLineCharacter:"\n",InsertSpaceAfterCommaDelimiter:!0,InsertSpaceAfterSemicolonInForStatements:!0,InsertSpaceBeforeAndAfterBinaryOperators:!0,InsertSpaceAfterKeywordsInControlFlowStatements:!0,InsertSpaceAfterFunctionKeywordForAnonymousFunctions:!0,InsertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,InsertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,InsertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,PlaceOpenBraceOnNewLineForControlBlocks:!1,PlaceOpenBraceOnNewLineForFunctions:!1}},t.prototype._convertTextChanges=function(e,t){return{text:t.newText,range:this._textSpanToRange(e,t.span)}},t}(m),T=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.provideDocumentRangeFormattingEdits=function(e,t,n,r){return d(this,void 0,void 0,(function(){var r,i,o,s,a=this;return p(this,(function(u){switch(u.label){case 0:return r=e.uri,i=e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn}),o=e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn}),[4,this._worker(r)];case 1:return[4,u.sent().getFormattingEditsForRange(r.toString(),i,o,L._convertOptions(n))];case 2:return!(s=u.sent())||e.isDisposed()?[2]:[2,s.map((function(t){return a._convertTextChanges(e,t)}))]}}))}))},t}(L),O=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),Object.defineProperty(t.prototype,"autoFormatTriggerCharacters",{get:function(){return[";","}","\n"]},enumerable:!1,configurable:!0}),t.prototype.provideOnTypeFormattingEdits=function(e,t,n,r,i){return d(this,void 0,void 0,(function(){var i,o,s,a=this;return p(this,(function(u){switch(u.label){case 0:return i=e.uri,o=e.getOffsetAt(t),[4,this._worker(i)];case 1:return[4,u.sent().getFormattingEditsAfterKeystroke(i.toString(),o,n,L._convertOptions(r))];case 2:return!(s=u.sent())||e.isDisposed()?[2]:[2,s.map((function(t){return a._convertTextChanges(e,t)}))]}}))}))},t}(L),N=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.provideCodeActions=function(e,t,n,r){return d(this,void 0,void 0,(function(){var r,i,o,s,a,u,l=this;return p(this,(function(c){switch(c.label){case 0:return r=e.uri,i=e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn}),o=e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn}),s=L._convertOptions(e.getOptions()),a=n.markers.filter((function(e){return e.code})).map((function(e){return e.code})).map(Number),[4,this._worker(r)];case 1:return[4,c.sent().getCodeFixesAtPosition(r.toString(),i,o,a,s)];case 2:return!(u=c.sent())||e.isDisposed()?[2,{actions:[],dispose:function(){}}]:[2,{actions:u.filter((function(e){return 0===e.changes.filter((function(e){return e.isNewFile})).length})).map((function(t){return l._tsCodeFixActionToMonacoCodeAction(e,n,t)})),dispose:function(){}}]}}))}))},t.prototype._tsCodeFixActionToMonacoCodeAction=function(e,t,n){for(var r=[],i=0,o=n.changes;i<o.length;i++)for(var s=0,a=o[i].textChanges;s<a.length;s++){var u=a[s];r.push({resource:e.uri,edit:{range:this._textSpanToRange(e,u.span),text:u.newText}})}return{title:n.description,edit:{edits:r},diagnostics:t.markers,kind:"quickfix"}},t}(L),M=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.provideRenameEdits=function(e,t,n,r){return d(this,void 0,void 0,(function(){var r,i,s,a,u,l,c,d,f,g;return p(this,(function(p){switch(p.label){case 0:return r=e.uri,i=r.toString(),s=e.getOffsetAt(t),[4,this._worker(r)];case 1:return[4,(a=p.sent()).getRenameInfo(i,s,{allowRenameOfImportPath:!1})];case 2:if(!1===(u=p.sent()).canRename)return[2,{edits:[],rejectReason:u.localizedErrorMessage}];if(void 0!==u.fileToRename)throw new Error("Renaming files is not supported.");return[4,a.findRenameLocations(i,s,!1,!1,!1)];case 3:if(!(l=p.sent())||e.isDisposed())return[2];for(c=[],d=0,f=l;d<f.length;d++)g=f[d],c.push({resource:o.Uri.parse(g.fileName),edit:{range:this._textSpanToRange(e,g.textSpan),text:n}});return[2,{edits:c}]}}))}))},t}(m);function E(e){A=V(e,"typescript")}function K(e){D=V(e,"javascript")}function R(){return new Promise((function(e,t){if(!D)return t("JavaScript not registered!");e(D)}))}function W(){return new Promise((function(e,t){if(!A)return t("TypeScript not registered!");e(A)}))}function V(e,t){var n=new u(t,e),r=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.getLanguageServiceWorker.apply(n,e)},i=new b(r);return o.languages.registerCompletionItemProvider(t,new y(r)),o.languages.registerSignatureHelpProvider(t,new w(r)),o.languages.registerHoverProvider(t,new S(r)),o.languages.registerDocumentHighlightProvider(t,new k(r)),o.languages.registerDefinitionProvider(t,new x(i,r)),o.languages.registerReferenceProvider(t,new C(i,r)),o.languages.registerDocumentSymbolProvider(t,new F(r)),o.languages.registerDocumentRangeFormattingEditProvider(t,new T(r)),o.languages.registerOnTypeFormattingEditProvider(t,new O(r)),o.languages.registerCodeActionProvider(t,new N(r)),o.languages.registerRenameProvider(t,new M(r)),new v(i,e,t,r),r}n.d(t,"setupTypeScript",(function(){return E})),n.d(t,"setupJavaScript",(function(){return K})),n.d(t,"getJavaScriptWorker",(function(){return R})),n.d(t,"getTypeScriptWorker",(function(){return W}))}}]); \ No newline at end of file diff --git a/docs/8.8.js b/docs/8.8.js new file mode 100644 index 00000000..bd93ff57 --- /dev/null +++ b/docs/8.8.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{912:function(e,t,n){"use strict";n.r(t),n.d(t,"conf",(function(){return o})),n.d(t,"language",(function(){return i}));var o={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],folding:{markers:{start:new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"),end:new RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")}}},s=[];["abstract","activate","and","any","array","as","asc","assert","autonomous","begin","bigdecimal","blob","boolean","break","bulk","by","case","cast","catch","char","class","collect","commit","const","continue","convertcurrency","decimal","default","delete","desc","do","double","else","end","enum","exception","exit","export","extends","false","final","finally","float","for","from","future","get","global","goto","group","having","hint","if","implements","import","in","inner","insert","instanceof","int","interface","into","join","last_90_days","last_month","last_n_days","last_week","like","limit","list","long","loop","map","merge","native","new","next_90_days","next_month","next_n_days","next_week","not","null","nulls","number","object","of","on","or","outer","override","package","parallel","pragma","private","protected","public","retrieve","return","returning","rollback","savepoint","search","select","set","short","sort","stat","static","strictfp","super","switch","synchronized","system","testmethod","then","this","this_month","this_week","throw","throws","today","tolabel","tomorrow","transaction","transient","trigger","true","try","type","undelete","update","upsert","using","virtual","void","volatile","webservice","when","where","while","yesterday"].forEach((function(e){s.push(e),s.push(e.toUpperCase()),s.push(function(e){return e.charAt(0).toUpperCase()+e.substr(1)}(e))}));var i={defaultToken:"",tokenPostfix:".apex",keywords:s,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]+)*/,tokenizer:{root:[[/[a-z_$][\w$]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],[/[A-Z][\w\$]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"type.identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,"annotation"],[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)[fFdD]/,"number.float"],[/(@digits)[lL]?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string",'@string."'],[/'/,"string","@string.'"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@apexdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],apexdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]]}}}}]); \ No newline at end of file diff --git a/docs/9.9.js b/docs/9.9.js new file mode 100644 index 00000000..e213b510 --- /dev/null +++ b/docs/9.9.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[9],{913:function(e,t,n){"use strict";n.r(t),n.d(t,"conf",(function(){return o})),n.d(t,"language",(function(){return s}));var o={comments:{lineComment:"#"}},s={defaultToken:"keyword",ignoreCase:!0,tokenPostfix:".azcli",str:/[^#\s]/,tokenizer:{root:[{include:"@comment"},[/\s-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":{token:"key.identifier",next:"@type"}}}],[/^-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":{token:"key.identifier",next:"@type"}}}]],type:[{include:"@comment"},[/-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":"key.identifier"}}],[/@str+\s*/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}]],comment:[[/#.*$/,{cases:{"@eos":{token:"comment",next:"@popall"}}}]]}}}}]); \ No newline at end of file diff --git a/docs/bundle.css b/docs/bundle.css index 527b836b..52093383 100644 --- a/docs/bundle.css +++ b/docs/bundle.css @@ -4,6 +4,278 @@ * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ +.monaco-editor .accessibilityHelpWidget { + padding: 10px; + vertical-align: middle; + overflow: scroll; +} +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +.monaco-aria-container { + position: absolute; /* try to hide from window but not from screen readers */ + left:-999em; +} +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +.monaco-editor .selection-anchor { + background-color: #007ACC; + width: 2px !important; +} + +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +.monaco-editor .bracket-match { + box-sizing: border-box; +} + +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +.monaco-editor .monaco-editor-overlaymessage { + padding-bottom: 8px; + z-index: 10000; +} + +@keyframes fadeIn { + from { opacity: 0; } + to { opacity: 1; } +} +.monaco-editor .monaco-editor-overlaymessage.fadeIn { + animation: fadeIn 150ms ease-out; +} + +@keyframes fadeOut { + from { opacity: 1; } + to { opacity: 0; } +} +.monaco-editor .monaco-editor-overlaymessage.fadeOut { + animation: fadeOut 100ms ease-out; +} + +.monaco-editor .monaco-editor-overlaymessage .message { + padding: 1px 4px; +} + +.monaco-editor .monaco-editor-overlaymessage .anchor { + width: 0 !important; + height: 0 !important; + border-color: transparent; + border-style: solid; + z-index: 1000; + border-width: 8px; + position: absolute; +} + +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +.monaco-editor .lightbulb-glyph, +.monaco-editor .codicon-lightbulb { + display: flex; + align-items: center; + justify-content: center; + height: 16px; + width: 20px; + padding-left: 2px; +} + +.monaco-editor .lightbulb-glyph:hover, +.monaco-editor .codicon-lightbulb:hover { + cursor: pointer; + /* transform: scale(1.3, 1.3); */ +} + +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +.monaco-editor .codelens-decoration { + overflow: hidden; + display: inline-block; + text-overflow: ellipsis; +} + +.monaco-editor .codelens-decoration > span, +.monaco-editor .codelens-decoration > a { + user-select: none; + -webkit-user-select: none; + -ms-user-select: none; + white-space: nowrap; + vertical-align: sub; +} + +.monaco-editor .codelens-decoration > a { + text-decoration: none; +} + +.monaco-editor .codelens-decoration > a:hover { + cursor: pointer; +} + +.monaco-editor .codelens-decoration .codicon { + vertical-align: middle; + color: currentColor !important; +} + +.monaco-editor .codelens-decoration > a:hover .codicon::before { + cursor: pointer; +} + +@keyframes fadein { + 0% { opacity: 0; visibility: visible;} + 100% { opacity: 1; } +} + +.monaco-editor .codelens-decoration.fadein { + animation: fadein 0.1s linear; +} + +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +.monaco-action-bar { + text-align: right; + white-space: nowrap; +} + +.monaco-action-bar .actions-container { + display: flex; + margin: 0 auto; + padding: 0; + width: 100%; + justify-content: flex-end; +} + +.monaco-action-bar.vertical .actions-container { + display: inline-block; +} + +.monaco-action-bar.reverse .actions-container { + flex-direction: row-reverse; +} + +.monaco-action-bar .action-item { + cursor: pointer; + display: inline-block; + transition: transform 50ms ease; + position: relative; /* DO NOT REMOVE - this is the key to preventing the ghosting icon bug in Chrome 42 */ +} + +.monaco-action-bar .action-item.disabled { + cursor: default; +} + +.monaco-action-bar.animated .action-item.active { + transform: scale(1.272019649, 1.272019649); /* 1.272019649 = √φ */ +} + +.monaco-action-bar .action-item .icon, +.monaco-action-bar .action-item .codicon { + display: inline-block; +} + +.monaco-action-bar .action-item .codicon { + display: flex; + align-items: center; +} + +.monaco-action-bar .action-label { + font-size: 11px; + margin-right: 4px; +} + +.monaco-action-bar .action-item.disabled .action-label, +.monaco-action-bar .action-item.disabled .action-label:hover { + opacity: 0.4; +} + +/* Vertical actions */ + +.monaco-action-bar.vertical { + text-align: left; +} + +.monaco-action-bar.vertical .action-item { + display: block; +} + +.monaco-action-bar.vertical .action-label.separator { + display: block; + border-bottom: 1px solid #bbb; + padding-top: 1px; + margin-left: .8em; + margin-right: .8em; +} + +.monaco-action-bar.animated.vertical .action-item.active { + transform: translate(5px, 0); +} + +.secondary-actions .monaco-action-bar .action-label { + margin-left: 6px; +} + +/* Action Items */ +.monaco-action-bar .action-item.select-container { + overflow: hidden; /* somehow the dropdown overflows its container, we prevent it here to not push */ + flex: 1; + max-width: 170px; + min-width: 60px; + display: flex; + align-items: center; + justify-content: center; + margin-right: 10px; +} + +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +.monaco-editor.vs .dnd-target { + border-right: 2px dotted black; + color: white; /* opposite of black */ +} +.monaco-editor.vs-dark .dnd-target { + border-right: 2px dotted #AEAFAD; + color: #51504f; /* opposite of #AEAFAD */ +} +.monaco-editor.hc-black .dnd-target { + border-right: 2px dotted #fff; + color: #000; /* opposite of #fff */ +} + +.monaco-editor.mouse-default .view-lines, +.monaco-editor.vs-dark.mac.mouse-default .view-lines, +.monaco-editor.hc-black.mac.mouse-default .view-lines { + cursor: default; +} +.monaco-editor.mouse-copy .view-lines, +.monaco-editor.vs-dark.mac.mouse-copy .view-lines, +.monaco-editor.hc-black.mac.mouse-copy .view-lines { + cursor: copy; +} +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + .monaco-custom-checkbox { margin-left: 2px; float: left; @@ -14,19 +286,10 @@ height: 20px; border: 1px solid transparent; padding: 1px; - - -webkit-box-sizing: border-box; - -o-box-sizing: border-box; - -moz-box-sizing: border-box; - -ms-box-sizing: border-box; - box-sizing: border-box; - - -webkit-user-select: none; - -khtml-user-select: none; - -moz-user-select: none; - -o-user-select: none; - -ms-user-select: none; + box-sizing: border-box; user-select: none; + -webkit-user-select: none; + -ms-user-select: none; } .monaco-custom-checkbox:hover, @@ -54,12 +317,9 @@ background-size: 16px !important; } -.monaco-custom-checkbox.monaco-simple-checkbox.checked { - background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNSAzLjc2MzQ1TDUuODA2ODcgMTEuOTM1MUw1LjA4NTg0IDExLjg5MjdMMSA3LjI5NjE0TDEuNzYzNDUgNi42MTc1Mkw1LjUwOTk3IDEwLjgzMjRMMTQuMzIxNCAzTDE1IDMuNzYzNDVaIiBmaWxsPSIjNDI0MjQyIi8+Cjwvc3ZnPgo=") center center no-repeat; -} - -.monaco-custom-checkbox.monaco-simple-checkbox.checked { - background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNSAzLjc2MzQ1TDUuODA2ODcgMTEuOTM1MUw1LjA4NTg0IDExLjg5MjdMMSA3LjI5NjE0TDEuNzYzNDUgNi42MTc1Mkw1LjUwOTk3IDEwLjgzMjRMMTQuMzIxNCAzTDE1IDMuNzYzNDVaIiBmaWxsPSIjQzVDNUM1Ii8+Cjwvc3ZnPgo=") center center no-repeat; +/* hide check when unchecked */ +.monaco-custom-checkbox.monaco-simple-checkbox.unchecked:not(.checked)::before { + visibility: hidden;; } /*--------------------------------------------------------------------------------------------- @@ -67,99 +327,21 @@ * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ -.vs .monaco-custom-checkbox.monaco-case-sensitive { - background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik03LjQ5NSA5LjA1Mkw4LjM4NiAxMS40MDJIOS40NzdMNi4yMzcgM0g1LjIxN0wyIDExLjQwMkgzLjA5NUwzLjkzMyA5LjA1Mkg3LjQ5NVpNNS44MTEgNC40NTNMNS44NTUgNC41ODhMNy4xNzMgOC4xNjJINC4yNTVMNS41NjIgNC41ODhMNS42MDYgNC40NTNMNS42NDQgNC4yOTdMNS42NzYgNC4xNDVMNS42OTcgNC4wMTlINS43Mkw1Ljc0NCA0LjE0NUw1Ljc3MyA0LjI5N0w1LjgxMSA0LjQ1M1pNMTMuNzk1IDEwLjQ2NFYxMS40SDE0Ljc1NVY3LjQ5OEMxNC43NTUgNi43NzkgMTQuNTc1IDYuMjI2IDE0LjIxNiA1LjgzN0MxMy44NTcgNS40NDggMTMuMzI3IDUuMjU0IDEyLjYyOCA1LjI1NEMxMi40MjkgNS4yNTQgMTIuMjI3IDUuMjczIDEyLjAyMiA1LjMxQzExLjgxNyA1LjM0NyAxMS42MjIgNS4zOTQgMTEuNDM5IDUuNDUxQzExLjI1NiA1LjUwOCAxMS4wOTEgNS41NjkgMTAuOTQ0IDUuNjM2QzEwLjc5NyA1LjcwMyAxMC42ODMgNS43NjUgMTAuNjAxIDUuODI0VjYuODA4QzEwLjg2NyA2LjU3OCAxMS4xNjcgNi4zOTcgMTEuNTA1IDYuMjY4QzExLjg0MyA2LjEzOSAxMi4xOTQgNi4wNzUgMTIuNTU3IDYuMDc1QzEyLjc0NSA2LjA3NSAxMi45MTUgNi4xMDMgMTMuMDcgNi4xNkMxMy4yMjUgNi4yMTcgMTMuMzU3IDYuMzA2IDEzLjQ2NiA2LjQyN0MxMy41NzUgNi41NDggMTMuNjU5IDYuNzA2IDEzLjcxOCA2Ljg5OUMxMy43NzcgNy4wOTIgMTMuODA2IDcuMzI2IDEzLjgwNiA3LjU5OUwxMS45OTUgNy44NTFDMTEuNjUxIDcuODk4IDExLjM1NSA3Ljk3NyAxMS4xMDcgOC4wODhDMTAuODU5IDguMTk5IDEwLjY1NCA4LjMzOSAxMC40OTIgOC41MDdDMTAuMzMgOC42NzUgMTAuMjEgOC44NjggMTAuMTMyIDkuMDg3QzEwLjA1NCA5LjMwNiAxMC4wMTUgOS41NDYgMTAuMDE1IDkuODA4QzEwLjAxNSAxMC4wNTQgMTAuMDU3IDEwLjI4MyAxMC4xMzkgMTAuNDk2QzEwLjIyMSAxMC43MDkgMTAuMzQyIDEwLjg5MyAxMC41MDIgMTEuMDQ3QzEwLjY2MiAxMS4yMDEgMTAuODYyIDExLjMyMyAxMS4xIDExLjQxM0MxMS4zMzggMTEuNTAzIDExLjYxMyAxMS41NDggMTEuOTI2IDExLjU0OEMxMi4zMjggMTEuNTQ4IDEyLjY4NiAxMS40NTYgMTMuMDAxIDExLjI3QzEzLjMxNiAxMS4wODQgMTMuNTczIDEwLjgxNiAxMy43NzIgMTAuNDY0SDEzLjc5NVpNMTEuNjY3IDguNzIxQzExLjg0MyA4LjY1NyAxMi4wNjggOC42MDcgMTIuMzQxIDguNTcyTDEzLjgwNiA4LjM2N1Y4Ljk3NkMxMy44MDYgOS4yMjIgMTMuNzY1IDkuNDUxIDEzLjY4MyA5LjY2NEMxMy42MDEgOS44NzcgMTMuNDg2IDEwLjA2MyAxMy4zNCAxMC4yMjFDMTMuMTk0IDEwLjM3OSAxMy4wMTkgMTAuNTAzIDEyLjgxNiAxMC41OTNDMTIuNjEzIDEwLjY4MyAxMi4zOSAxMC43MjggMTIuMTQ4IDEwLjcyOEMxMS45NjEgMTAuNzI4IDExLjc5NSAxMC43MDMgMTEuNjUzIDEwLjY1MkMxMS41MTEgMTAuNjAxIDExLjM5MiAxMC41MyAxMS4yOTYgMTAuNDQxQzExLjIgMTAuMzUyIDExLjEyNyAxMC4yNDcgMTEuMDc2IDEwLjEyNUMxMS4wMjUgMTAuMDAzIDExIDkuODczIDExIDkuNzMyQzExIDkuNTY4IDExLjAxOCA5LjQyMSAxMS4wNTUgOS4yOTJDMTEuMDkyIDkuMTYzIDExLjE2IDkuMDUxIDExLjI1NyA4Ljk1OEMxMS4zNTQgOC44NjUgMTEuNDkxIDguNzg1IDExLjY2NyA4LjcyMVoiIGZpbGw9IiM0MjQyNDIiLz4KPC9zdmc+Cg==") center center no-repeat; -} - -.vs-dark .monaco-custom-checkbox.monaco-case-sensitive { - background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik03LjQ5NSA5LjA1Mkw4LjM4NiAxMS40MDJIOS40NzdMNi4yMzcgM0g1LjIxN0wyIDExLjQwMkgzLjA5NUwzLjkzMyA5LjA1Mkg3LjQ5NVpNNS44MTEgNC40NTNMNS44NTUgNC41ODhMNy4xNzMgOC4xNjJINC4yNTVMNS41NjIgNC41ODhMNS42MDYgNC40NTNMNS42NDQgNC4yOTdMNS42NzYgNC4xNDVMNS42OTcgNC4wMTlINS43Mkw1Ljc0NCA0LjE0NUw1Ljc3MyA0LjI5N0w1LjgxMSA0LjQ1M1pNMTMuNzk1IDEwLjQ2NFYxMS40SDE0Ljc1NVY3LjQ5OEMxNC43NTUgNi43NzkgMTQuNTc1IDYuMjI2IDE0LjIxNiA1LjgzN0MxMy44NTcgNS40NDggMTMuMzI3IDUuMjU0IDEyLjYyOCA1LjI1NEMxMi40MjkgNS4yNTQgMTIuMjI3IDUuMjczIDEyLjAyMiA1LjMxQzExLjgxNyA1LjM0NyAxMS42MjIgNS4zOTQgMTEuNDM5IDUuNDUxQzExLjI1NiA1LjUwOCAxMS4wOTEgNS41NjkgMTAuOTQ0IDUuNjM2QzEwLjc5NyA1LjcwMyAxMC42ODMgNS43NjUgMTAuNjAxIDUuODI0VjYuODA4QzEwLjg2NyA2LjU3OCAxMS4xNjcgNi4zOTcgMTEuNTA1IDYuMjY4QzExLjg0MyA2LjEzOSAxMi4xOTQgNi4wNzUgMTIuNTU3IDYuMDc1QzEyLjc0NSA2LjA3NSAxMi45MTUgNi4xMDMgMTMuMDcgNi4xNkMxMy4yMjUgNi4yMTcgMTMuMzU3IDYuMzA2IDEzLjQ2NiA2LjQyN0MxMy41NzUgNi41NDggMTMuNjU5IDYuNzA2IDEzLjcxOCA2Ljg5OUMxMy43NzcgNy4wOTIgMTMuODA2IDcuMzI2IDEzLjgwNiA3LjU5OUwxMS45OTUgNy44NTFDMTEuNjUxIDcuODk4IDExLjM1NSA3Ljk3NyAxMS4xMDcgOC4wODhDMTAuODU5IDguMTk5IDEwLjY1NCA4LjMzOSAxMC40OTIgOC41MDdDMTAuMzMgOC42NzUgMTAuMjEgOC44NjggMTAuMTMyIDkuMDg3QzEwLjA1NCA5LjMwNiAxMC4wMTUgOS41NDYgMTAuMDE1IDkuODA4QzEwLjAxNSAxMC4wNTQgMTAuMDU3IDEwLjI4MyAxMC4xMzkgMTAuNDk2QzEwLjIyMSAxMC43MDkgMTAuMzQyIDEwLjg5MyAxMC41MDIgMTEuMDQ3QzEwLjY2MiAxMS4yMDEgMTAuODYyIDExLjMyMyAxMS4xIDExLjQxM0MxMS4zMzggMTEuNTAzIDExLjYxMyAxMS41NDggMTEuOTI2IDExLjU0OEMxMi4zMjggMTEuNTQ4IDEyLjY4NiAxMS40NTYgMTMuMDAxIDExLjI3QzEzLjMxNiAxMS4wODQgMTMuNTczIDEwLjgxNiAxMy43NzIgMTAuNDY0SDEzLjc5NVpNMTEuNjY3IDguNzIxQzExLjg0MyA4LjY1NyAxMi4wNjggOC42MDcgMTIuMzQxIDguNTcyTDEzLjgwNiA4LjM2N1Y4Ljk3NkMxMy44MDYgOS4yMjIgMTMuNzY1IDkuNDUxIDEzLjY4MyA5LjY2NEMxMy42MDEgOS44NzcgMTMuNDg2IDEwLjA2MyAxMy4zNCAxMC4yMjFDMTMuMTk0IDEwLjM3OSAxMy4wMTkgMTAuNTAzIDEyLjgxNiAxMC41OTNDMTIuNjEzIDEwLjY4MyAxMi4zOSAxMC43MjggMTIuMTQ4IDEwLjcyOEMxMS45NjEgMTAuNzI4IDExLjc5NSAxMC43MDMgMTEuNjUzIDEwLjY1MkMxMS41MTEgMTAuNjAxIDExLjM5MiAxMC41MyAxMS4yOTYgMTAuNDQxQzExLjIgMTAuMzUyIDExLjEyNyAxMC4yNDcgMTEuMDc2IDEwLjEyNUMxMS4wMjUgMTAuMDAzIDExIDkuODczIDExIDkuNzMyQzExIDkuNTY4IDExLjAxOCA5LjQyMSAxMS4wNTUgOS4yOTJDMTEuMDkyIDkuMTYzIDExLjE2IDkuMDUxIDExLjI1NyA4Ljk1OEMxMS4zNTQgOC44NjUgMTEuNDkxIDguNzg1IDExLjY2NyA4LjcyMVoiIGZpbGw9IiNDNUM1QzUiLz4KPC9zdmc+Cg==") center center no-repeat; -} - -.hc-black .monaco-custom-checkbox.monaco-case-sensitive, -.hc-black .monaco-custom-checkbox.monaco-case-sensitive:hover { - background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik03LjQ5NSA5LjA1Mkw4LjM4NiAxMS40MDJIOS40NzdMNi4yMzcgM0g1LjIxN0wyIDExLjQwMkgzLjA5NUwzLjkzMyA5LjA1Mkg3LjQ5NVpNNS44MTEgNC40NTNMNS44NTUgNC41ODhMNy4xNzMgOC4xNjJINC4yNTVMNS41NjIgNC41ODhMNS42MDYgNC40NTNMNS42NDQgNC4yOTdMNS42NzYgNC4xNDVMNS42OTcgNC4wMTlINS43Mkw1Ljc0NCA0LjE0NUw1Ljc3MyA0LjI5N0w1LjgxMSA0LjQ1M1pNMTMuNzk1IDEwLjQ2NFYxMS40SDE0Ljc1NVY3LjQ5OEMxNC43NTUgNi43NzkgMTQuNTc1IDYuMjI2IDE0LjIxNiA1LjgzN0MxMy44NTcgNS40NDggMTMuMzI3IDUuMjU0IDEyLjYyOCA1LjI1NEMxMi40MjkgNS4yNTQgMTIuMjI3IDUuMjczIDEyLjAyMiA1LjMxQzExLjgxNyA1LjM0NyAxMS42MjIgNS4zOTQgMTEuNDM5IDUuNDUxQzExLjI1NiA1LjUwOCAxMS4wOTEgNS41NjkgMTAuOTQ0IDUuNjM2QzEwLjc5NyA1LjcwMyAxMC42ODMgNS43NjUgMTAuNjAxIDUuODI0VjYuODA4QzEwLjg2NyA2LjU3OCAxMS4xNjcgNi4zOTcgMTEuNTA1IDYuMjY4QzExLjg0MyA2LjEzOSAxMi4xOTQgNi4wNzUgMTIuNTU3IDYuMDc1QzEyLjc0NSA2LjA3NSAxMi45MTUgNi4xMDMgMTMuMDcgNi4xNkMxMy4yMjUgNi4yMTcgMTMuMzU3IDYuMzA2IDEzLjQ2NiA2LjQyN0MxMy41NzUgNi41NDggMTMuNjU5IDYuNzA2IDEzLjcxOCA2Ljg5OUMxMy43NzcgNy4wOTIgMTMuODA2IDcuMzI2IDEzLjgwNiA3LjU5OUwxMS45OTUgNy44NTFDMTEuNjUxIDcuODk4IDExLjM1NSA3Ljk3NyAxMS4xMDcgOC4wODhDMTAuODU5IDguMTk5IDEwLjY1NCA4LjMzOSAxMC40OTIgOC41MDdDMTAuMzMgOC42NzUgMTAuMjEgOC44NjggMTAuMTMyIDkuMDg3QzEwLjA1NCA5LjMwNiAxMC4wMTUgOS41NDYgMTAuMDE1IDkuODA4QzEwLjAxNSAxMC4wNTQgMTAuMDU3IDEwLjI4MyAxMC4xMzkgMTAuNDk2QzEwLjIyMSAxMC43MDkgMTAuMzQyIDEwLjg5MyAxMC41MDIgMTEuMDQ3QzEwLjY2MiAxMS4yMDEgMTAuODYyIDExLjMyMyAxMS4xIDExLjQxM0MxMS4zMzggMTEuNTAzIDExLjYxMyAxMS41NDggMTEuOTI2IDExLjU0OEMxMi4zMjggMTEuNTQ4IDEyLjY4NiAxMS40NTYgMTMuMDAxIDExLjI3QzEzLjMxNiAxMS4wODQgMTMuNTczIDEwLjgxNiAxMy43NzIgMTAuNDY0SDEzLjc5NVpNMTEuNjY3IDguNzIxQzExLjg0MyA4LjY1NyAxMi4wNjggOC42MDcgMTIuMzQxIDguNTcyTDEzLjgwNiA4LjM2N1Y4Ljk3NkMxMy44MDYgOS4yMjIgMTMuNzY1IDkuNDUxIDEzLjY4MyA5LjY2NEMxMy42MDEgOS44NzcgMTMuNDg2IDEwLjA2MyAxMy4zNCAxMC4yMjFDMTMuMTk0IDEwLjM3OSAxMy4wMTkgMTAuNTAzIDEyLjgxNiAxMC41OTNDMTIuNjEzIDEwLjY4MyAxMi4zOSAxMC43MjggMTIuMTQ4IDEwLjcyOEMxMS45NjEgMTAuNzI4IDExLjc5NSAxMC43MDMgMTEuNjUzIDEwLjY1MkMxMS41MTEgMTAuNjAxIDExLjM5MiAxMC41MyAxMS4yOTYgMTAuNDQxQzExLjIgMTAuMzUyIDExLjEyNyAxMC4yNDcgMTEuMDc2IDEwLjEyNUMxMS4wMjUgMTAuMDAzIDExIDkuODczIDExIDkuNzMyQzExIDkuNTY4IDExLjAxOCA5LjQyMSAxMS4wNTUgOS4yOTJDMTEuMDkyIDkuMTYzIDExLjE2IDkuMDUxIDExLjI1NyA4Ljk1OEMxMS4zNTQgOC44NjUgMTEuNDkxIDguNzg1IDExLjY2NyA4LjcyMVoiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo=") center center no-repeat; -} - -.vs .monaco-custom-checkbox.monaco-preserve-case { - background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTguNTM0MzcgMTIuNDY3M0g3LjQzNjFMNi41Mzg1OSAxMC4wOTM2SDIuOTQ4NTRMMi4xMDQxOCAxMi40NjczSDFMNC4yNDc1NyA0SDUuMjc0OTlMOC41MzQzNyAxMi40NjczWk02LjIxMzgzIDkuMjAyMDJMNC44ODUyOCA1LjU5NDI2QzQuODQxOTggNS40NzYxNyA0Ljc5ODY4IDUuMjg3MjIgNC43NTUzOCA1LjAyNzQxSDQuNzMxNzZDNC42OTIzOSA1LjI2NzU0IDQuNjQ3MTMgNS40NTY0OSA0LjU5NTk1IDUuNTk0MjZMMy4yNzkyMSA5LjIwMjAySDYuMjEzODNaIiBmaWxsPSIjNDI0MjQyIi8+CjxwYXRoIGQ9Ik05Ljc4NjE3IDEyLjQ2NzNWNEgxMi4xOTUzQzEyLjkyNzUgNCAxMy41MDgxIDQuMTc5MTEgMTMuOTM3MiA0LjUzNzMzQzE0LjM2NjIgNC44OTU1NCAxNC41ODA4IDUuMzYyMDEgMTQuNTgwOCA1LjkzNjc0QzE0LjU4MDggNi40MTY5OCAxNC40NTA5IDYuODM0MjUgMTQuMTkxMSA3LjE4ODUzQzEzLjkzMTMgNy41NDI4MSAxMy41NzMgNy43OTQ3NCAxMy4xMTY0IDcuOTQ0MzNWNy45Njc5NUMxMy42ODcyIDguMDM0ODcgMTQuMTQzOCA4LjI1MTM3IDE0LjQ4NjMgOC42MTc0NkMxNC44Mjg4IDguOTc5NjEgMTUgOS40NTE5OSAxNSAxMC4wMzQ2QzE1IDEwLjc1ODkgMTQuNzQwMiAxMS4zNDU0IDE0LjIyMDYgMTEuNzk0MkMxMy43MDEgMTIuMjQyOSAxMy4wNDU2IDEyLjQ2NzMgMTIuMjU0MyAxMi40NjczSDkuNzg2MTdaTTEwLjc3ODIgNC44OTc1MVY3LjYzMTM4SDExLjc5MzhDMTIuMzM3IDcuNjMxMzggMTIuNzY0MSA3LjUwMTQ4IDEzLjA3NTEgNy4yNDE2N0MxMy4zODYxIDYuOTc3OTMgMTMuNTQxNSA2LjYwNzkgMTMuNTQxNSA2LjEzMTU5QzEzLjU0MTUgNS4zMDg4NyAxMy4wMDAzIDQuODk3NTEgMTEuOTE3OCA0Ljg5NzUxSDEwLjc3ODJaTTEwLjc3ODIgOC41MjI5OVYxMS41Njk4SDEyLjEyNDRDMTIuNzA3IDExLjU2OTggMTMuMTU3NyAxMS40MzIgMTMuNDc2NiAxMS4xNTY1QzEzLjc5OTQgMTAuODgwOSAxMy45NjA4IDEwLjUwMyAxMy45NjA4IDEwLjAyMjhDMTMuOTYwOCA5LjAyMjkyIDEzLjI3OTggOC41MjI5OSAxMS45MTc4IDguNTIyOTlIMTAuNzc4MloiIGZpbGw9IiM0MjQyNDIiLz4KPC9zdmc+Cg==") center center no-repeat; -} - -.vs-dark .monaco-custom-checkbox.monaco-preserve-case { - background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTguNTM0MzcgMTIuNDY3M0g3LjQzNjFMNi41Mzg1OSAxMC4wOTM2SDIuOTQ4NTRMMi4xMDQxOCAxMi40NjczSDFMNC4yNDc1NyA0SDUuMjc0OTlMOC41MzQzNyAxMi40NjczWk02LjIxMzgzIDkuMjAyMDJMNC44ODUyOCA1LjU5NDI2QzQuODQxOTggNS40NzYxNyA0Ljc5ODY4IDUuMjg3MjIgNC43NTUzOCA1LjAyNzQxSDQuNzMxNzZDNC42OTIzOSA1LjI2NzU0IDQuNjQ3MTMgNS40NTY0OSA0LjU5NTk1IDUuNTk0MjZMMy4yNzkyMSA5LjIwMjAySDYuMjEzODNaIiBmaWxsPSIjQzVDNUM1Ii8+CjxwYXRoIGQ9Ik05Ljc4NjE3IDEyLjQ2NzNWNEgxMi4xOTUzQzEyLjkyNzUgNCAxMy41MDgxIDQuMTc5MTEgMTMuOTM3MiA0LjUzNzMzQzE0LjM2NjIgNC44OTU1NCAxNC41ODA4IDUuMzYyMDEgMTQuNTgwOCA1LjkzNjc0QzE0LjU4MDggNi40MTY5OCAxNC40NTA5IDYuODM0MjUgMTQuMTkxMSA3LjE4ODUzQzEzLjkzMTMgNy41NDI4MSAxMy41NzMgNy43OTQ3NCAxMy4xMTY0IDcuOTQ0MzNWNy45Njc5NUMxMy42ODcyIDguMDM0ODcgMTQuMTQzOCA4LjI1MTM3IDE0LjQ4NjMgOC42MTc0NkMxNC44Mjg4IDguOTc5NjEgMTUgOS40NTE5OSAxNSAxMC4wMzQ2QzE1IDEwLjc1ODkgMTQuNzQwMiAxMS4zNDU0IDE0LjIyMDYgMTEuNzk0MkMxMy43MDEgMTIuMjQyOSAxMy4wNDU2IDEyLjQ2NzMgMTIuMjU0MyAxMi40NjczSDkuNzg2MTdaTTEwLjc3ODIgNC44OTc1MVY3LjYzMTM4SDExLjc5MzhDMTIuMzM3IDcuNjMxMzggMTIuNzY0MSA3LjUwMTQ4IDEzLjA3NTEgNy4yNDE2N0MxMy4zODYxIDYuOTc3OTMgMTMuNTQxNSA2LjYwNzkgMTMuNTQxNSA2LjEzMTU5QzEzLjU0MTUgNS4zMDg4NyAxMy4wMDAzIDQuODk3NTEgMTEuOTE3OCA0Ljg5NzUxSDEwLjc3ODJaTTEwLjc3ODIgOC41MjI5OVYxMS41Njk4SDEyLjEyNDRDMTIuNzA3IDExLjU2OTggMTMuMTU3NyAxMS40MzIgMTMuNDc2NiAxMS4xNTY1QzEzLjc5OTQgMTAuODgwOSAxMy45NjA4IDEwLjUwMyAxMy45NjA4IDEwLjAyMjhDMTMuOTYwOCA5LjAyMjkyIDEzLjI3OTggOC41MjI5OSAxMS45MTc4IDguNTIyOTlIMTAuNzc4MloiIGZpbGw9IiNDNUM1QzUiLz4KPC9zdmc+Cg==") center center no-repeat; -} - -.hc-black .monaco-custom-checkbox.monaco-preserve-case, -.hc-black .monaco-custom-checkbox.monaco-preserve-case:hover { - background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTguNTM0MzcgMTIuNDY3M0g3LjQzNjFMNi41Mzg1OSAxMC4wOTM2SDIuOTQ4NTRMMi4xMDQxOCAxMi40NjczSDFMNC4yNDc1NyA0SDUuMjc0OTlMOC41MzQzNyAxMi40NjczWk02LjIxMzgzIDkuMjAyMDJMNC44ODUyOCA1LjU5NDI2QzQuODQxOTggNS40NzYxNyA0Ljc5ODY4IDUuMjg3MjIgNC43NTUzOCA1LjAyNzQxSDQuNzMxNzZDNC42OTIzOSA1LjI2NzU0IDQuNjQ3MTMgNS40NTY0OSA0LjU5NTk1IDUuNTk0MjZMMy4yNzkyMSA5LjIwMjAySDYuMjEzODNaIiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBkPSJNOS43ODYxNyAxMi40NjczVjRIMTIuMTk1M0MxMi45Mjc1IDQgMTMuNTA4MSA0LjE3OTExIDEzLjkzNzIgNC41MzczM0MxNC4zNjYyIDQuODk1NTQgMTQuNTgwOCA1LjM2MjAxIDE0LjU4MDggNS45MzY3NEMxNC41ODA4IDYuNDE2OTggMTQuNDUwOSA2LjgzNDI1IDE0LjE5MTEgNy4xODg1M0MxMy45MzEzIDcuNTQyODEgMTMuNTczIDcuNzk0NzQgMTMuMTE2NCA3Ljk0NDMzVjcuOTY3OTVDMTMuNjg3MiA4LjAzNDg3IDE0LjE0MzggOC4yNTEzNyAxNC40ODYzIDguNjE3NDZDMTQuODI4OCA4Ljk3OTYxIDE1IDkuNDUxOTkgMTUgMTAuMDM0NkMxNSAxMC43NTg5IDE0Ljc0MDIgMTEuMzQ1NCAxNC4yMjA2IDExLjc5NDJDMTMuNzAxIDEyLjI0MjkgMTMuMDQ1NiAxMi40NjczIDEyLjI1NDMgMTIuNDY3M0g5Ljc4NjE3Wk0xMC43NzgyIDQuODk3NTFWNy42MzEzOEgxMS43OTM4QzEyLjMzNyA3LjYzMTM4IDEyLjc2NDEgNy41MDE0OCAxMy4wNzUxIDcuMjQxNjdDMTMuMzg2MSA2Ljk3NzkzIDEzLjU0MTUgNi42MDc5IDEzLjU0MTUgNi4xMzE1OUMxMy41NDE1IDUuMzA4ODcgMTMuMDAwMyA0Ljg5NzUxIDExLjkxNzggNC44OTc1MUgxMC43NzgyWk0xMC43NzgyIDguNTIyOTlWMTEuNTY5OEgxMi4xMjQ0QzEyLjcwNyAxMS41Njk4IDEzLjE1NzcgMTEuNDMyIDEzLjQ3NjYgMTEuMTU2NUMxMy43OTk0IDEwLjg4MDkgMTMuOTYwOCAxMC41MDMgMTMuOTYwOCAxMC4wMjI4QzEzLjk2MDggOS4wMjI5MiAxMy4yNzk4IDguNTIyOTkgMTEuOTE3OCA4LjUyMjk5SDEwLjc3ODJaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K") center center no-repeat; -} - -.vs .monaco-custom-checkbox.monaco-whole-word { - background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xIDJIMTVWM0gxVjJaTTE0IDRIMTNWMTJIMTRWNFpNMTEuMjcyIDguMzg3QzExLjE5NCA4LjA4OCAxMS4wNzMgNy44MjUgMTAuOTEyIDcuNjAxQzEwLjc1MSA3LjM3NyAxMC41NDcgNy4yIDEwLjMwMyA3LjA3MUMxMC4wNTkgNi45NDIgOS43NjkgNi44NzggOS40MzcgNi44NzhDOS4yMzkgNi44NzggOS4wNTcgNi45MDIgOC44OSA2Ljk1MUM4LjcyNSA3IDguNTc0IDcuMDY4IDguNDM3IDcuMTU2QzguMzAxIDcuMjQ0IDguMTggNy4zNSA4LjA3MiA3LjQ3NEw3Ljg5MyA3LjczMlY0LjU3OEg3VjEySDcuODkzVjExLjQyNUw4LjAxOSAxMS42QzguMTA2IDExLjcwMiA4LjIwOCAxMS43OSA4LjMyMyAxMS44NjlDOC40NCAxMS45NDcgOC41NzIgMTIuMDA5IDguNzIxIDEyLjA1NUM4Ljg3IDEyLjEwMSA5LjAzNSAxMi4xMjMgOS4yMTkgMTIuMTIzQzkuNTcyIDEyLjEyMyA5Ljg4NSAxMi4wNTIgMTAuMTU2IDExLjkxMUMxMC40MjggMTEuNzY4IDEwLjY1NSAxMS41NzMgMTAuODM4IDExLjMyNUMxMS4wMjEgMTEuMDc1IDExLjE1OSAxMC43ODIgMTEuMjUyIDEwLjQ0NkMxMS4zNDUgMTAuMTA4IDExLjM5MiA5Ljc0MyAxMS4zOTIgOS4zNDlDMTEuMzkxIDkuMDA3IDExLjM1MiA4LjY4NiAxMS4yNzIgOC4zODdaTTkuNzkzIDcuNzhDOS45NDQgNy44NTEgMTAuMDc1IDcuOTU2IDEwLjE4MyA4LjA5NEMxMC4yOTIgOC4yMzQgMTAuMzc3IDguNDA3IDEwLjQzOCA4LjYxMUMxMC40ODkgOC43ODUgMTAuNTIgOC45ODIgMTAuNTI3IDkuMTk4TDEwLjUyIDkuMzIzQzEwLjUyIDkuNjUgMTAuNDg3IDkuOTQzIDEwLjQyIDEwLjE5MkMxMC4zNTMgMTAuNDM4IDEwLjI1OSAxMC42NDUgMTAuMTQyIDEwLjgwNkMxMC4wMjUgMTAuOTY4IDkuODgyIDExLjA5MSA5LjcyMSAxMS4xNzJDOS4zOTkgMTEuMzM0IDguOTYxIDExLjMzOCA4LjY1MiAxMS4xODdDOC40OTkgMTEuMTEyIDguMzY2IDExLjAxMiA4LjI1OSAxMC44OTFDOC4xNzQgMTAuNzk1IDguMTAzIDEwLjY3NSA4LjA0MSAxMC41MjRDOC4wNDEgMTAuNTI0IDcuODYyIDEwLjA3NyA3Ljg2MiA5LjU3N0M3Ljg2MiA5LjA3NyA4LjA0MSA4LjU3NSA4LjA0MSA4LjU3NUM4LjEwMyA4LjM5OCA4LjE3NyA4LjI1NyA4LjI2NSA4LjE0NUM4LjM3OSA4LjAwMiA4LjUyMSA3Ljg4NiA4LjY4OSA3LjhDOC44NTcgNy43MTQgOS4wNTQgNy42NzEgOS4yNzYgNy42NzFDOS40NjYgNy42NzEgOS42NCA3LjcwOCA5Ljc5MyA3Ljc4Wk0xNSAxM0gxVjE0SDE1VjEzWk0yLjgxMyAxMEwyLjA4NSAxMi4wMzFIMUwxLjAyNSAxMS45NTlMMy40NjYgNC44NzMwNUg0LjQwN0w2Ljg5MiAxMi4wMzFINS44MUw1LjAzMiAxMEgyLjgxM1pNMy45MzQgNi40MjIwNUgzLjkxMkwzLjAwNyA5LjE3NTA1SDQuODQ4TDMuOTM0IDYuNDIyMDVaIiBmaWxsPSIjNDI0MjQyIi8+Cjwvc3ZnPgo=") center center no-repeat; -} - -.vs-dark .monaco-custom-checkbox.monaco-whole-word { - background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xIDJIMTVWM0gxVjJaTTE0IDRIMTNWMTJIMTRWNFpNMTEuMjcyIDguMzg3QzExLjE5NCA4LjA4OCAxMS4wNzMgNy44MjUgMTAuOTEyIDcuNjAxQzEwLjc1MSA3LjM3NyAxMC41NDcgNy4yIDEwLjMwMyA3LjA3MUMxMC4wNTkgNi45NDIgOS43NjkgNi44NzggOS40MzcgNi44NzhDOS4yMzkgNi44NzggOS4wNTcgNi45MDIgOC44OSA2Ljk1MUM4LjcyNSA3IDguNTc0IDcuMDY4IDguNDM3IDcuMTU2QzguMzAxIDcuMjQ0IDguMTggNy4zNSA4LjA3MiA3LjQ3NEw3Ljg5MyA3LjczMlY0LjU3OEg3VjEySDcuODkzVjExLjQyNUw4LjAxOSAxMS42QzguMTA2IDExLjcwMiA4LjIwOCAxMS43OSA4LjMyMyAxMS44NjlDOC40NCAxMS45NDcgOC41NzIgMTIuMDA5IDguNzIxIDEyLjA1NUM4Ljg3IDEyLjEwMSA5LjAzNSAxMi4xMjMgOS4yMTkgMTIuMTIzQzkuNTcyIDEyLjEyMyA5Ljg4NSAxMi4wNTIgMTAuMTU2IDExLjkxMUMxMC40MjggMTEuNzY4IDEwLjY1NSAxMS41NzMgMTAuODM4IDExLjMyNUMxMS4wMjEgMTEuMDc1IDExLjE1OSAxMC43ODIgMTEuMjUyIDEwLjQ0NkMxMS4zNDUgMTAuMTA4IDExLjM5MiA5Ljc0MyAxMS4zOTIgOS4zNDlDMTEuMzkxIDkuMDA3IDExLjM1MiA4LjY4NiAxMS4yNzIgOC4zODdaTTkuNzkzIDcuNzhDOS45NDQgNy44NTEgMTAuMDc1IDcuOTU2IDEwLjE4MyA4LjA5NEMxMC4yOTIgOC4yMzQgMTAuMzc3IDguNDA3IDEwLjQzOCA4LjYxMUMxMC40ODkgOC43ODUgMTAuNTIgOC45ODIgMTAuNTI3IDkuMTk4TDEwLjUyIDkuMzIzQzEwLjUyIDkuNjUgMTAuNDg3IDkuOTQzIDEwLjQyIDEwLjE5MkMxMC4zNTMgMTAuNDM4IDEwLjI1OSAxMC42NDUgMTAuMTQyIDEwLjgwNkMxMC4wMjUgMTAuOTY4IDkuODgyIDExLjA5MSA5LjcyMSAxMS4xNzJDOS4zOTkgMTEuMzM0IDguOTYxIDExLjMzOCA4LjY1MiAxMS4xODdDOC40OTkgMTEuMTEyIDguMzY2IDExLjAxMiA4LjI1OSAxMC44OTFDOC4xNzQgMTAuNzk1IDguMTAzIDEwLjY3NSA4LjA0MSAxMC41MjRDOC4wNDEgMTAuNTI0IDcuODYyIDEwLjA3NyA3Ljg2MiA5LjU3N0M3Ljg2MiA5LjA3NyA4LjA0MSA4LjU3NSA4LjA0MSA4LjU3NUM4LjEwMyA4LjM5OCA4LjE3NyA4LjI1NyA4LjI2NSA4LjE0NUM4LjM3OSA4LjAwMiA4LjUyMSA3Ljg4NiA4LjY4OSA3LjhDOC44NTcgNy43MTQgOS4wNTQgNy42NzEgOS4yNzYgNy42NzFDOS40NjYgNy42NzEgOS42NCA3LjcwOCA5Ljc5MyA3Ljc4Wk0xNSAxM0gxVjE0SDE1VjEzWk0yLjgxMyAxMEwyLjA4NSAxMi4wMzFIMUwxLjAyNSAxMS45NTlMMy40NjYgNC44NzMwNUg0LjQwN0w2Ljg5MiAxMi4wMzFINS44MUw1LjAzMiAxMEgyLjgxM1pNMy45MzQgNi40MjIwNUgzLjkxMkwzLjAwNyA5LjE3NTA1SDQuODQ4TDMuOTM0IDYuNDIyMDVaIiBmaWxsPSIjQzVDNUM1Ii8+Cjwvc3ZnPgo=") center center no-repeat; -} - -.hc-black .monaco-custom-checkbox.monaco-whole-word, -.hc-black .monaco-custom-checkbox.monaco-whole-word:hover { - background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xIDJIMTVWM0gxVjJaTTE0IDRIMTNWMTJIMTRWNFpNMTEuMjcyIDguMzg3QzExLjE5NCA4LjA4OCAxMS4wNzMgNy44MjUgMTAuOTEyIDcuNjAxQzEwLjc1MSA3LjM3NyAxMC41NDcgNy4yIDEwLjMwMyA3LjA3MUMxMC4wNTkgNi45NDIgOS43NjkgNi44NzggOS40MzcgNi44NzhDOS4yMzkgNi44NzggOS4wNTcgNi45MDIgOC44OSA2Ljk1MUM4LjcyNSA3IDguNTc0IDcuMDY4IDguNDM3IDcuMTU2QzguMzAxIDcuMjQ0IDguMTggNy4zNSA4LjA3MiA3LjQ3NEw3Ljg5MyA3LjczMlY0LjU3OEg3VjEySDcuODkzVjExLjQyNUw4LjAxOSAxMS42QzguMTA2IDExLjcwMiA4LjIwOCAxMS43OSA4LjMyMyAxMS44NjlDOC40NCAxMS45NDcgOC41NzIgMTIuMDA5IDguNzIxIDEyLjA1NUM4Ljg3IDEyLjEwMSA5LjAzNSAxMi4xMjMgOS4yMTkgMTIuMTIzQzkuNTcyIDEyLjEyMyA5Ljg4NSAxMi4wNTIgMTAuMTU2IDExLjkxMUMxMC40MjggMTEuNzY4IDEwLjY1NSAxMS41NzMgMTAuODM4IDExLjMyNUMxMS4wMjEgMTEuMDc1IDExLjE1OSAxMC43ODIgMTEuMjUyIDEwLjQ0NkMxMS4zNDUgMTAuMTA4IDExLjM5MiA5Ljc0MyAxMS4zOTIgOS4zNDlDMTEuMzkxIDkuMDA3IDExLjM1MiA4LjY4NiAxMS4yNzIgOC4zODdaTTkuNzkzIDcuNzhDOS45NDQgNy44NTEgMTAuMDc1IDcuOTU2IDEwLjE4MyA4LjA5NEMxMC4yOTIgOC4yMzQgMTAuMzc3IDguNDA3IDEwLjQzOCA4LjYxMUMxMC40ODkgOC43ODUgMTAuNTIgOC45ODIgMTAuNTI3IDkuMTk4TDEwLjUyIDkuMzIzQzEwLjUyIDkuNjUgMTAuNDg3IDkuOTQzIDEwLjQyIDEwLjE5MkMxMC4zNTMgMTAuNDM4IDEwLjI1OSAxMC42NDUgMTAuMTQyIDEwLjgwNkMxMC4wMjUgMTAuOTY4IDkuODgyIDExLjA5MSA5LjcyMSAxMS4xNzJDOS4zOTkgMTEuMzM0IDguOTYxIDExLjMzOCA4LjY1MiAxMS4xODdDOC40OTkgMTEuMTEyIDguMzY2IDExLjAxMiA4LjI1OSAxMC44OTFDOC4xNzQgMTAuNzk1IDguMTAzIDEwLjY3NSA4LjA0MSAxMC41MjRDOC4wNDEgMTAuNTI0IDcuODYyIDEwLjA3NyA3Ljg2MiA5LjU3N0M3Ljg2MiA5LjA3NyA4LjA0MSA4LjU3NSA4LjA0MSA4LjU3NUM4LjEwMyA4LjM5OCA4LjE3NyA4LjI1NyA4LjI2NSA4LjE0NUM4LjM3OSA4LjAwMiA4LjUyMSA3Ljg4NiA4LjY4OSA3LjhDOC44NTcgNy43MTQgOS4wNTQgNy42NzEgOS4yNzYgNy42NzFDOS40NjYgNy42NzEgOS42NCA3LjcwOCA5Ljc5MyA3Ljc4Wk0xNSAxM0gxVjE0SDE1VjEzWk0yLjgxMyAxMEwyLjA4NSAxMi4wMzFIMUwxLjAyNSAxMS45NTlMMy40NjYgNC44NzMwNUg0LjQwN0w2Ljg5MiAxMi4wMzFINS44MUw1LjAzMiAxMEgyLjgxM1pNMy45MzQgNi40MjIwNUgzLjkxMkwzLjAwNyA5LjE3NTA1SDQuODQ4TDMuOTM0IDYuNDIyMDVaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K") center center no-repeat; -} - -.vs .monaco-custom-checkbox.monaco-regex { - background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4wMTIyIDJIMTAuOTg3OVY1LjExMzQ2TDEzLjU0ODkgMy41NTYwOUwxNC4wMzQgNC40NDA5NUwxMS40NzAyIDZMMTQuMDM0IDcuNTU5MDVMMTMuNTQ4OSA4LjQ0MzkxTDEwLjk4NzkgNi44ODY1NFYxMEgxMC4wMTIyVjYuODg2NTRMNy40NTExNCA4LjQ0MzkxTDYuOTY2MDYgNy41NTkwNUw5LjUyOTkgNkw2Ljk2NjA2IDQuNDQwOTVMNy40NTExNCAzLjU1NjA5TDEwLjAxMjIgNS4xMTM0NlYyWk0yIDEwSDZWMTRIMlYxMFoiIGZpbGw9IiM0MjQyNDIiLz4KPC9zdmc+Cg==") center center no-repeat; -} - -.vs-dark .monaco-custom-checkbox.monaco-regex { - background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4wMTIyIDJIMTAuOTg3OVY1LjExMzQ2TDEzLjU0ODkgMy41NTYwOUwxNC4wMzQgNC40NDA5NUwxMS40NzAyIDZMMTQuMDM0IDcuNTU5MDVMMTMuNTQ4OSA4LjQ0MzkxTDEwLjk4NzkgNi44ODY1NFYxMEgxMC4wMTIyVjYuODg2NTRMNy40NTExNCA4LjQ0MzkxTDYuOTY2MDYgNy41NTkwNUw5LjUyOTkgNkw2Ljk2NjA2IDQuNDQwOTVMNy40NTExNCAzLjU1NjA5TDEwLjAxMjIgNS4xMTM0NlYyWk0yIDEwSDZWMTRIMlYxMFoiIGZpbGw9IiNDNUM1QzUiLz4KPC9zdmc+Cg==") center center no-repeat; -} - -.hc-black .monaco-custom-checkbox.monaco-regex, -.hc-black .monaco-custom-checkbox.monaco-regex:hover { - background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4wMTIyIDJIMTAuOTg3OVY1LjExMzQ2TDEzLjU0ODkgMy41NTYwOUwxNC4wMzQgNC40NDA5NUwxMS40NzAyIDZMMTQuMDM0IDcuNTU5MDVMMTMuNTQ4OSA4LjQ0MzkxTDEwLjk4NzkgNi44ODY1NFYxMEgxMC4wMTIyVjYuODg2NTRMNy40NTExNCA4LjQ0MzkxTDYuOTY2MDYgNy41NTkwNUw5LjUyOTkgNkw2Ljk2NjA2IDQuNDQwOTVMNy40NTExNCAzLjU1NjA5TDEwLjAxMjIgNS4xMTM0NlYyWk0yIDEwSDZWMTRIMlYxMFoiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo=") center center no-repeat; -} - -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -/* Checkbox */ - -.monaco-checkbox .label { - width: 12px; - height: 12px; - border: 1px solid black; - background-color: transparent; - display: inline-block; -} - -.monaco-checkbox .checkbox { - position: absolute; - overflow: hidden; - clip: rect(0 0 0 0); - height: 1px; - width: 1px; - margin: -1px; - padding: 0; - border: 0; -} - -.monaco-checkbox .checkbox:checked + .label { - background-color: black; -} - /* Find widget */ .monaco-editor .find-widget { position: absolute; - z-index: 10; - top: -44px; + z-index: 50; height: 33px; overflow: hidden; line-height: 19px; - transition: top 200ms linear; + transition: transform 200ms linear; padding: 0 4px; box-sizing: border-box; + transform: translateY(calc(-100% - 10px)); /* shadow (10px) */ +} + +.monaco-editor .find-widget textarea { + margin: 0px; } .monaco-editor .find-widget.hiddenEditor { @@ -167,30 +349,12 @@ } /* Find widget when replace is toggled on */ -.monaco-editor .find-widget.replaceToggled { - top: -74px; /* find input height + replace input height + shadow (10px) */ -} .monaco-editor .find-widget.replaceToggled > .replace-part { display: flex; - display: -webkit-flex; } -.monaco-editor .find-widget.visible, -.monaco-editor .find-widget.replaceToggled.visible { - top: 0; -} - -/* Multiple line find widget */ - -.monaco-editor .find-widget.multipleline { - top: unset; - bottom: 10px; -} - -.monaco-editor .find-widget.multipleline.visible, -.monaco-editor .find-widget.multipleline.replaceToggled.visible { - top: 0px; - bottom: unset; +.monaco-editor .find-widget.visible { + transform: translateY(0); } .monaco-editor .find-widget .monaco-inputbox.synthetic-focus { @@ -200,7 +364,6 @@ .monaco-editor .find-widget .monaco-inputbox .input { background-color: transparent; - /* Style to compensate for //winjs */ min-height: 0; } @@ -213,7 +376,6 @@ margin: 4px 0 0 17px; font-size: 12px; display: flex; - display: -webkit-flex; } .monaco-editor .find-widget > .find-part .monaco-inputbox, @@ -249,7 +411,6 @@ .monaco-editor .find-widget .monaco-findInput { vertical-align: middle; display: flex; - display: -webkit-flex; flex:1; } @@ -265,7 +426,6 @@ .monaco-editor .find-widget .matchesCount { display: flex; - display: -webkit-flex; flex: initial; margin: 0 0 0 3px; padding: 2px 0 0 2px; @@ -277,20 +437,17 @@ } .monaco-editor .find-widget .button { - min-width: 20px; width: 20px; height: 20px; display: flex; - display: -webkit-flex; flex: initial; margin-left: 3px; background-position: center center; background-repeat: no-repeat; cursor: pointer; -} - -.monaco-editor .find-widget .button:not(.disabled):hover { - background-color: rgba(0, 0, 0, 0.1); + display: flex; + align-items: center; + justify-content: center; } .monaco-editor .find-widget .button.left { @@ -307,89 +464,21 @@ .monaco-editor .find-widget .button.toggle { position: absolute; top: 0; - left: 0; + left: 3px; width: 18px; height: 100%; - -webkit-box-sizing: border-box; - -o-box-sizing: border-box; - -moz-box-sizing: border-box; - -ms-box-sizing: border-box; - box-sizing: border-box; + box-sizing: border-box; } .monaco-editor .find-widget .button.toggle.disabled { display: none; } -.monaco-editor .find-widget .previous { - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMy44NTM1IDYuMjkyODRMOC44NTM1NiAxLjI5Mjg1SDguMTQ2NDVMMy4xNDY0NSA2LjI5Mjg0TDMuODUzNTYgNi45OTk5NUw4IDIuODUzNTFWMTUuMDYwNkg5VjIuODUzNTFMMTMuMTQ2NCA2Ljk5OTk1TDEzLjg1MzUgNi4yOTI4NFoiIGZpbGw9IiM0MjQyNDIiLz4KPC9zdmc+Cg=="); -} - -.monaco-editor .find-widget .next { - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0zLjE0NjQ2IDkuNzY3ODNMOC4xNDY0NCAxNC43Njc4TDguODUzNTUgMTQuNzY3OEwxMy44NTM1IDkuNzY3ODNMMTMuMTQ2NCA5LjA2MDcyTDkgMTMuMjA3Mkw5IDEuMDAwMDZMOCAxLjAwMDA2TDggMTMuMjA3MkwzLjg1MzU2IDkuMDYwNzJMMy4xNDY0NiA5Ljc2NzgzWiIgZmlsbD0iIzQyNDI0MiIvPgo8L3N2Zz4K"); -} - .monaco-editor .find-widget .disabled { opacity: 0.3; cursor: default; } -.monaco-editor .find-widget .monaco-checkbox { - width: 20px; - height: 20px; - display: inline-block; - vertical-align: middle; - margin-left: 3px; -} - -.monaco-editor .find-widget .monaco-checkbox .label { - content: ''; - display: inline-block; - background-repeat: no-repeat; - background-position: center; - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEgMTJMMSAxMUgxMFYxMkgxWk0xIDdIMTVWOEgxTDEgN1pNMTIgM1Y0SDFMMSAzSDEyWiIgZmlsbD0iIzQyNDI0MiIvPgo8L3N2Zz4K"); - width: 20px; - height: 20px; - border: none; -} - -.monaco-editor .find-widget .monaco-checkbox .checkbox:disabled + .label { - opacity: 0.3; - cursor: default; -} - -.monaco-editor .find-widget .monaco-checkbox .checkbox:not(:disabled) + .label { - cursor: pointer; -} - -.monaco-editor .find-widget .monaco-checkbox .checkbox:not(:disabled):hover:before + .label { - background-color: #DDD; -} - -.monaco-editor .find-widget .monaco-checkbox .checkbox:checked + .label { - background-color: rgba(100, 100, 100, 0.2); -} - -.monaco-editor .find-widget .close-fw { - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04IDguNzA3MTRMMTEuNjQ2NCAxMi4zNTM2TDEyLjM1MzYgMTEuNjQ2NUw4LjcwNzExIDguMDAwMDRMMTIuMzUzNiA0LjM1MzU5TDExLjY0NjQgMy42NDY0OEw4IDcuMjkyOTNMNC4zNTM1NSAzLjY0NjQ4TDMuNjQ2NDUgNC4zNTM1OUw3LjI5Mjg5IDguMDAwMDRMMy42NDY0NSAxMS42NDY1TDQuMzUzNTUgMTIuMzUzNkw4IDguNzA3MTRaIiBmaWxsPSIjNDI0MjQyIi8+Cjwvc3ZnPgo="); -} - -.monaco-editor .find-widget .expand { - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik03Ljk3NjAzIDEwLjA3MTlMMTIuMzMzMyA1LjcxNDZMMTIuOTUyMSA2LjMzMzMyTDguMjg1MzkgMTFMNy42NjY2NyAxMUwzIDYuMzMzMzJMMy42MTg3MiA1LjcxNDZMNy45NzYwMyAxMC4wNzE5WiIgZmlsbD0iIzQyNDI0MiIvPgo8L3N2Zz4K"); -} - -.monaco-editor .find-widget .collapse { - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4wNzE5IDguMDAwMDVMNS43MTQ2MSAxMi4zNTc0TDYuMzMzMzMgMTIuOTc2MUwxMSA4LjMwOTQxVjcuNjkwNjlMNi4zMzMzMyAzLjAyNDAyTDUuNzE0NjEgMy42NDI3NEwxMC4wNzE5IDguMDAwMDVaIiBmaWxsPSIjNDI0MjQyIi8+Cjwvc3ZnPgo="); -} - -.monaco-editor .find-widget .replace { - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0zLjIyMSAzLjczOUw1LjQ4MiA2LjAwOEw3LjcgMy43ODRMNyAzLjA4NEw1Ljk4OCA0LjA5MUw1Ljk4IDIuNDkxQzUuOTc5MDkgMi4zNTU2NyA2LjAzMDY4IDIuMjI1MjUgNi4xMjM5MiAyLjEyNzE2QzYuMjE3MTYgMi4wMjkwOCA2LjM0NDggMS45NzA5NSA2LjQ4IDEuOTY1SDhWMUg2LjQ4QzYuMjg0OTYgMS4wMDAyNiA2LjA5MTg5IDEuMDM5MDIgNS45MTE4NiAxLjExNDA1QzUuNzMxODMgMS4xODkwOCA1LjU2ODM4IDEuMjk4OTIgNS40MzA4OCAxLjQzNzI1QzUuMjkzMzggMS41NzU1OCA1LjE4NDU1IDEuNzM5NjkgNS4xMTA2MSAxLjkyMDE4QzUuMDM2NjcgMi4xMDA2NiA0Ljk5OTA4IDIuMjkzOTYgNSAyLjQ4OVY0LjFMMy45MjcgMy4wMzNMMy4yMjEgMy43MzlaTTkuODkwMTQgNS41MzI3N0g5LjkwMTQxQzEwLjA4MzYgNS44NDQyNiAxMC4zNTIxIDYgMTAuNzA3IDZDMTEuMDk5NSA2IDExLjQxMzEgNS44MzIzNiAxMS42NDc5IDUuNDk3MDhDMTEuODgyNiA1LjE2MTggMTIgNC43MTcyOCAxMiA0LjE2MzUzQzEyIDMuNjUzMDQgMTEuODk5NSAzLjI1MDcgMTEuNjk4NiAyLjk1NjUyQzExLjQ5NzcgMi42NjIzNCAxMS4yMTEzIDIuNTE1MjUgMTAuODM5NCAyLjUxNTI1QzEwLjQzMzggMi41MTUyNSAxMC4xMjExIDIuNzA4ODUgOS45MDE0MSAzLjA5NjA0SDkuODkwMTRWMUg5VjUuOTE4ODhIOS44OTAxNFY1LjUzMjc3Wk05Ljg3NjA2IDQuNDcxNzdWNC4xMzEwOEM5Ljg3NjA2IDMuODg0NDkgOS45MzQyNyAzLjY4NDQgMTAuMDUwNyAzLjUzMDgyQzEwLjE2OSAzLjM3NzI0IDEwLjMxNzQgMy4zMDA0NSAxMC40OTU4IDMuMzAwNDVDMTAuNjg1NCAzLjMwMDQ1IDEwLjgzMSAzLjM3ODMzIDEwLjkzMjQgMy41MzQwN0MxMS4wMzU3IDMuNjg3NjUgMTEuMDg3MyAzLjkwMTggMTEuMDg3MyA0LjE3NjUxQzExLjA4NzMgNC41MDc0NiAxMS4wMzEgNC43NjM3OSAxMC45MTgzIDQuOTQ1NDlDMTAuODA3NSA1LjEyNTAzIDEwLjY1MDcgNS4yMTQ4IDEwLjQ0NzkgNS4yMTQ4QzEwLjI4MDggNS4yMTQ4IDEwLjE0MzcgNS4xNDQ0OSAxMC4wMzY2IDUuMDAzODlDOS45Mjk1OCA0Ljg2MzI5IDkuODc2MDYgNC42ODU5MiA5Ljg3NjA2IDQuNDcxNzdaTTkgMTIuNzY5MUM4Ljc0NDMyIDEyLjkyMyA4LjM3NTE1IDEzIDcuODkyNDcgMTNDNy4zMjg1NSAxMyA2Ljg3MjE2IDEyLjgyMjUgNi41MjMzIDEyLjQ2NzRDNi4xNzQ0MyAxMi4xMTI0IDYgMTEuNjU0MyA2IDExLjA5MzFDNiAxMC40NDUxIDYuMTg2MzggOS45MzQ4NCA2LjU1OTE0IDkuNTYyNEM2LjkzNDI5IDkuMTg3NDcgNy40MzQ4OSA5LjAwMDAxIDguMDYwOTMgOS4wMDAwMUM4LjQ5MzQzIDkuMDAwMDEgOC44MDY0NSA5LjA1OTYgOSA5LjE3ODc4VjEwLjE3NjlDOC43NjM0NCA5Ljk5MzE5IDguNDk5NCA5LjkwMTMyIDguMjA3ODkgOS45MDEzMkM3Ljg4MjkyIDkuOTAxMzIgNy42MjQ4NSAxMC4wMDA2IDcuNDMzNjkgMTAuMTk5M0M3LjI0NDkyIDEwLjM5NTQgNy4xNTA1NCAxMC42NjczIDcuMTUwNTQgMTEuMDE0OUM3LjE1MDU0IDExLjM1MjYgNy4yNDEzNCAxMS42MTgzIDcuNDIyOTQgMTEuODExOUM3LjYwNDU0IDEyLjAwMzEgNy44NTQyNCAxMi4wOTg3IDguMTcyMDQgMTIuMDk4N0M4LjQ1NCAxMi4wOTg3IDguNzI5OTkgMTIuMDA2OCA5IDExLjgyMzFWMTIuNzY5MVpNNCA3TDMgOFYxNEw0IDE1SDExTDEyIDE0VjhMMTEgN0g0Wk00IDhINUgxMEgxMVY5VjEzVjE0SDEwSDVINFYxM1Y5VjhaIiBmaWxsPSIjNDI0MjQyIi8+Cjwvc3ZnPgo="); -} - -.monaco-editor .find-widget .replace-all { - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMS42MDA5IDIuNjc2ODNDMTEuNzQ3NCAyLjM2NzA4IDExLjk1NTkgMi4yMTIyIDEyLjIyNjMgMi4yMTIyQzEyLjQ3NDIgMi4yMTIyIDEyLjY2NTEgMi4zMjk4NyAxMi43OTkxIDIuNTY1MjJDMTIuOTMzIDIuODAwNTYgMTMgMy4xMjI0MyAxMyAzLjUzMDgyQzEzIDMuOTczODMgMTIuOTIxOCA0LjMyOTQ0IDEyLjc2NTMgNC41OTc2NkMxMi42MDg4IDQuODY1ODkgMTIuMzk5NyA1IDEyLjEzOCA1QzExLjkwMTQgNSAxMS43MjI0IDQuODc1NDEgMTEuNjAwOSA0LjYyNjIySDExLjU5MzRWNC45MzUxMUgxMVYxSDExLjU5MzRWMi42NzY4M0gxMS42MDA5Wk0xMS41ODQgMy43Nzc0MkMxMS41ODQgMy45NDg3MyAxMS42MTk3IDQuMDkwNjMgMTEuNjkxMSA0LjIwMzExQzExLjc2MjQgNC4zMTU2IDExLjg1MzggNC4zNzE4NCAxMS45NjUzIDQuMzcxODRDMTIuMTAwNSA0LjM3MTg0IDEyLjIwNSA0LjMwMDAyIDEyLjI3ODkgNC4xNTYzOUMxMi4zNTQgNC4wMTEwMyAxMi4zOTE1IDMuODA1OTcgMTIuMzkxNSAzLjU0MTIxQzEyLjM5MTUgMy4zMjE0NCAxMi4zNTcxIDMuMTUwMTIgMTIuMjg4MyAzLjAyNzI2QzEyLjIyMDcgMi45MDI2NiAxMi4xMjM2IDIuODQwMzYgMTEuOTk3MiAyLjg0MDM2QzExLjg3ODIgMi44NDAzNiAxMS43NzkzIDIuOTAxOCAxMS43MDA1IDMuMDI0NjZDMTEuNjIyOCAzLjE0NzUyIDExLjU4NCAzLjMwNzU5IDExLjU4NCAzLjUwNDg3VjMuNzc3NDJaTTQuMTE5NjkgNy42OTVMMiA1LjU2NzgxTDIuNjYxODggNC45MDU5NEwzLjY2NzgxIDUuOTA2MjVWNC4zOTU5NEMzLjY2Njk1IDQuMjEzMDkgMy43MDIxOSA0LjAzMTg3IDMuNzcxNSAzLjg2MjY2QzMuODQwODIgMy42OTM0NiAzLjk0Mjg2IDMuNTM5NjEgNC4wNzE3NiAzLjQwOTkyQzQuMjAwNjYgMy4yODAyMyA0LjM1MzkgMy4xNzcyNyA0LjUyMjY4IDMuMTA2OTJDNC42OTE0NiAzLjAzNjU4IDQuODcyNDYgMy4wMDAyNCA1LjA1NTMxIDNINy4zOTkwNlYzLjkwNDY5SDUuMDU1MzFDNC45Mjg1NiAzLjkxMDI2IDQuODA4OSAzLjk2NDc2IDQuNzIxNDkgNC4wNTY3MkM0LjYzNDA4IDQuMTQ4NjggNC41ODU3MSA0LjI3MDk0IDQuNTg2NTYgNC4zOTc4MUw0LjU5NDA2IDUuODk3ODFMNS41NDI4MSA0Ljk1Mzc1TDYuMTk5MDYgNS42MUw0LjExOTY5IDcuNjk1Wk05LjM1NTYgNC45MzAxN0gxMFYzLjIyMDY3QzEwIDIuNDA2ODkgOS42ODUzNCAyIDkuMDU2MDMgMkM4LjkyMDk4IDIgOC43NzA4MyAyLjAyNDIxIDguNjA1NiAyLjA3MjYzQzguNDQxODEgMi4xMjEwNCA4LjMxMjUgMi4xNzY5MSA4LjIxNzY3IDIuMjQwMjJWMi45MDUwM0M4LjQ1NDc0IDIuNzAyMDUgOC43MDQ3NCAyLjYwMDU2IDguOTY3NjcgMi42MDA1NkM5LjIyOTE3IDIuNjAwNTYgOS4zNTk5MSAyLjc1Njk4IDkuMzU5OTEgMy4wNjk4M0w4Ljc2MDc4IDMuMTczMThDOC4yNTM1OSAzLjI1ODg1IDggMy41NzkxNCA4IDQuMTM0MDhDOCA0LjM5NjY1IDguMDYxMDYgNC42MDcwOCA4LjE4MzE5IDQuNzY1MzZDOC4zMDY3NSA0LjkyMTc5IDguNDc1NTcgNSA4LjY4OTY2IDVDOC45Nzk4OSA1IDkuMTk4OTkgNC44Mzk4NSA5LjM0Njk4IDQuNTE5NTVIOS4zNTU2VjQuOTMwMTdaTTkuMzU5OTEgMy41NzU0MlYzLjc2ODE2QzkuMzU5OTEgMy45NDMyIDkuMzE5NjggNC4wODg0NSA5LjIzOTIyIDQuMjAzOTFDOS4xNTg3NiA0LjMxNzUgOS4wNTQ2IDQuMzc0MyA4LjkyNjcyIDQuMzc0M0M4LjgzNDc3IDQuMzc0MyA4Ljc2MTQ5IDQuMzQyNjQgOC43MDY5IDQuMjc5MzNDOC42NTM3NCA0LjIxNDE1IDguNjI3MTYgNC4xMzEyOCA4LjYyNzE2IDQuMDMwNzNDOC42MjcxNiAzLjgwOTEyIDguNzM3NzkgMy42Nzk3IDguOTU5MDUgMy42NDI0Nkw5LjM1OTkxIDMuNTc1NDJaTTcgMTIuOTMwMkg2LjM1NTZWMTIuNTE5Nkg2LjM0Njk4QzYuMTk4OTkgMTIuODM5OSA1Ljk3OTg5IDEzIDUuNjg5NjYgMTNDNS40NzU1NyAxMyA1LjMwNjc1IDEyLjkyMTggNS4xODMxOSAxMi43NjU0QzUuMDYxMDYgMTIuNjA3MSA1IDEyLjM5NjYgNSAxMi4xMzQxQzUgMTEuNTc5MSA1LjI1MzU5IDExLjI1ODggNS43NjA3OCAxMS4xNzMyTDYuMzU5OTEgMTEuMDY5OEM2LjM1OTkxIDEwLjc1NyA2LjIyOTE3IDEwLjYwMDYgNS45Njc2NyAxMC42MDA2QzUuNzA0NzQgMTAuNjAwNiA1LjQ1NDc0IDEwLjcwMiA1LjIxNzY3IDEwLjkwNVYxMC4yNDAyQzUuMzEyNSAxMC4xNzY5IDUuNDQxODEgMTAuMTIxIDUuNjA1NiAxMC4wNzI2QzUuNzcwODMgMTAuMDI0MiA1LjkyMDk4IDEwIDYuMDU2MDMgMTBDNi42ODUzNCAxMCA3IDEwLjQwNjkgNyAxMS4yMjA3VjEyLjkzMDJaTTYuMzU5OTEgMTEuNzY4MlYxMS41NzU0TDUuOTU5MDUgMTEuNjQyNUM1LjczNzc5IDExLjY3OTcgNS42MjcxNiAxMS44MDkxIDUuNjI3MTYgMTIuMDMwN0M1LjYyNzE2IDEyLjEzMTMgNS42NTM3NCAxMi4yMTQyIDUuNzA2OSAxMi4yNzkzQzUuNzYxNDkgMTIuMzQyNiA1LjgzNDc3IDEyLjM3NDMgNS45MjY3MiAxMi4zNzQzQzYuMDU0NiAxMi4zNzQzIDYuMTU4NzYgMTIuMzE3NSA2LjIzOTIyIDEyLjIwMzlDNi4zMTk2OCAxMi4wODg1IDYuMzU5OTEgMTEuOTQzMiA2LjM1OTkxIDExLjc2ODJaTTkuMjYxNjUgMTNDOS41ODM0MyAxMyA5LjgyOTU1IDEyLjk0MjMgMTAgMTIuODI2OFYxMi4xMTczQzkuODE5OTkgMTIuMjU1MSA5LjYzNiAxMi4zMjQgOS40NDgwMyAxMi4zMjRDOS4yMzYxNiAxMi4zMjQgOS4wNjk2OSAxMi4yNTIzIDguOTQ4NjMgMTIuMTA4OUM4LjgyNzU2IDExLjk2MzcgOC43NjcwMiAxMS43NjQ0IDguNzY3MDIgMTEuNTExMkM4Ljc2NzAyIDExLjI1MDUgOC44Mjk5NSAxMS4wNDY2IDguOTU1NzkgMTAuODk5NEM5LjA4MzIzIDEwLjc1MDUgOS4yNTUyOCAxMC42NzYgOS40NzE5MiAxMC42NzZDOS42NjYyNyAxMC42NzYgOS44NDIyOSAxMC43NDQ5IDEwIDEwLjg4MjdWMTAuMTM0MUM5Ljg3MDk3IDEwLjA0NDcgOS42NjIyOSAxMCA5LjM3Mzk1IDEwQzguOTU2NTkgMTAgOC42MjI4NiAxMC4xNDA2IDguMzcyNzYgMTAuNDIxOEM4LjEyNDI1IDEwLjcwMTEgOCAxMS4wODM4IDggMTEuNTY5OEM4IDExLjk5MDcgOC4xMTYyOSAxMi4zMzQzIDguMzQ4ODcgMTIuNjAwNkM4LjU4MTQ0IDEyLjg2NjkgOC44ODU3IDEzIDkuMjYxNjUgMTNaTTIgOUwzIDhIMTJMMTMgOVYxNEwxMiAxNUgzTDIgMTRWOVpNMyA5VjE0SDEyVjlIM1pNNiA3TDcgNkgxNEwxNSA3VjEyTDE0IDEzVjEyVjdIN0g2WiIgZmlsbD0iIzQyNDI0MiIvPgo8L3N2Zz4K"); -} - .monaco-editor .find-widget > .replace-part { display: none; } @@ -397,7 +486,6 @@ .monaco-editor .find-widget > .replace-part > .monaco-findInput { position: relative; display: flex; - display: -webkit-flex; vertical-align: middle; flex: auto; flex-grow: 0; @@ -411,8 +499,7 @@ } /* REDUCED */ -.monaco-editor .find-widget.reduced-find-widget .matchesCount, -.monaco-editor .find-widget.reduced-find-widget .monaco-checkbox { +.monaco-editor .find-widget.reduced-find-widget .matchesCount { display:none; } @@ -435,68 +522,12 @@ } .monaco-editor .findMatch { - -webkit-animation-duration: 0; - -webkit-animation-name: inherit !important; - -moz-animation-duration: 0; - -moz-animation-name: inherit !important; - -ms-animation-duration: 0; - -ms-animation-name: inherit !important; animation-duration: 0; animation-name: inherit !important; } .monaco-editor .find-widget .monaco-sash { - width: 2px !important; - margin-left: -4px; -} - -.monaco-editor.hc-black .find-widget .previous, -.monaco-editor.vs-dark .find-widget .previous { - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMy44NTM1IDYuMjkyODRMOC44NTM1NiAxLjI5Mjg1SDguMTQ2NDVMMy4xNDY0NSA2LjI5Mjg0TDMuODUzNTYgNi45OTk5NUw4IDIuODUzNTFWMTUuMDYwNkg5VjIuODUzNTFMMTMuMTQ2NCA2Ljk5OTk1TDEzLjg1MzUgNi4yOTI4NFoiIGZpbGw9IiNDNUM1QzUiLz4KPC9zdmc+Cg=="); -} - -.monaco-editor.hc-black .find-widget .next, -.monaco-editor.vs-dark .find-widget .next { - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0zLjE0NjQ2IDkuNzY3ODNMOC4xNDY0NCAxNC43Njc4TDguODUzNTUgMTQuNzY3OEwxMy44NTM1IDkuNzY3ODNMMTMuMTQ2NCA5LjA2MDcyTDkgMTMuMjA3Mkw5IDEuMDAwMDZMOCAxLjAwMDA2TDggMTMuMjA3MkwzLjg1MzU2IDkuMDYwNzJMMy4xNDY0NiA5Ljc2NzgzWiIgZmlsbD0iI0M1QzVDNSIvPgo8L3N2Zz4K"); -} - -.monaco-editor.hc-black .find-widget .monaco-checkbox .label, -.monaco-editor.vs-dark .find-widget .monaco-checkbox .label { - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEgMTJMMSAxMUgxMFYxMkgxWk0xIDdIMTVWOEgxTDEgN1pNMTIgM1Y0SDFMMSAzSDEyWiIgZmlsbD0iI0M1QzVDNSIvPgo8L3N2Zz4K"); -} - -.monaco-editor.vs-dark .find-widget .monaco-checkbox .checkbox:not(:disabled):hover:before + .label { - background-color: rgba(255, 255, 255, 0.1); -} - -.monaco-editor.hc-black .find-widget .close-fw, -.monaco-editor.vs-dark .find-widget .close-fw { - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04IDguNzA3MTRMMTEuNjQ2NCAxMi4zNTM2TDEyLjM1MzYgMTEuNjQ2NUw4LjcwNzExIDguMDAwMDRMMTIuMzUzNiA0LjM1MzU5TDExLjY0NjQgMy42NDY0OEw4IDcuMjkyOTNMNC4zNTM1NSAzLjY0NjQ4TDMuNjQ2NDUgNC4zNTM1OUw3LjI5Mjg5IDguMDAwMDRMMy42NDY0NSAxMS42NDY1TDQuMzUzNTUgMTIuMzUzNkw4IDguNzA3MTRaIiBmaWxsPSIjQzVDNUM1Ii8+Cjwvc3ZnPgo="); -} - -.monaco-editor.hc-black .find-widget .replace, -.monaco-editor.vs-dark .find-widget .replace { - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0zLjIyMSAzLjczOUw1LjQ4MiA2LjAwOEw3LjcgMy43ODRMNyAzLjA4NEw1Ljk4OCA0LjA5MUw1Ljk4IDIuNDkxQzUuOTc5MDkgMi4zNTU2NyA2LjAzMDY4IDIuMjI1MjUgNi4xMjM5MiAyLjEyNzE2QzYuMjE3MTYgMi4wMjkwOCA2LjM0NDggMS45NzA5NSA2LjQ4IDEuOTY1SDhWMUg2LjQ4QzYuMjg0OTYgMS4wMDAyNiA2LjA5MTg5IDEuMDM5MDIgNS45MTE4NiAxLjExNDA1QzUuNzMxODMgMS4xODkwOCA1LjU2ODM4IDEuMjk4OTIgNS40MzA4OCAxLjQzNzI1QzUuMjkzMzggMS41NzU1OCA1LjE4NDU1IDEuNzM5NjkgNS4xMTA2MSAxLjkyMDE4QzUuMDM2NjcgMi4xMDA2NiA0Ljk5OTA4IDIuMjkzOTYgNSAyLjQ4OVY0LjFMMy45MjcgMy4wMzNMMy4yMjEgMy43MzlaTTkuODkwMTQgNS41MzI3N0g5LjkwMTQxQzEwLjA4MzYgNS44NDQyNiAxMC4zNTIxIDYgMTAuNzA3IDZDMTEuMDk5NSA2IDExLjQxMzEgNS44MzIzNiAxMS42NDc5IDUuNDk3MDhDMTEuODgyNiA1LjE2MTggMTIgNC43MTcyOCAxMiA0LjE2MzUzQzEyIDMuNjUzMDQgMTEuODk5NSAzLjI1MDcgMTEuNjk4NiAyLjk1NjUyQzExLjQ5NzcgMi42NjIzNCAxMS4yMTEzIDIuNTE1MjUgMTAuODM5NCAyLjUxNTI1QzEwLjQzMzggMi41MTUyNSAxMC4xMjExIDIuNzA4ODUgOS45MDE0MSAzLjA5NjA0SDkuODkwMTRWMUg5VjUuOTE4ODhIOS44OTAxNFY1LjUzMjc3Wk05Ljg3NjA2IDQuNDcxNzdWNC4xMzEwOEM5Ljg3NjA2IDMuODg0NDkgOS45MzQyNyAzLjY4NDQgMTAuMDUwNyAzLjUzMDgyQzEwLjE2OSAzLjM3NzI0IDEwLjMxNzQgMy4zMDA0NSAxMC40OTU4IDMuMzAwNDVDMTAuNjg1NCAzLjMwMDQ1IDEwLjgzMSAzLjM3ODMzIDEwLjkzMjQgMy41MzQwN0MxMS4wMzU3IDMuNjg3NjUgMTEuMDg3MyAzLjkwMTggMTEuMDg3MyA0LjE3NjUxQzExLjA4NzMgNC41MDc0NiAxMS4wMzEgNC43NjM3OSAxMC45MTgzIDQuOTQ1NDlDMTAuODA3NSA1LjEyNTAzIDEwLjY1MDcgNS4yMTQ4IDEwLjQ0NzkgNS4yMTQ4QzEwLjI4MDggNS4yMTQ4IDEwLjE0MzcgNS4xNDQ0OSAxMC4wMzY2IDUuMDAzODlDOS45Mjk1OCA0Ljg2MzI5IDkuODc2MDYgNC42ODU5MiA5Ljg3NjA2IDQuNDcxNzdaTTkgMTIuNzY5MUM4Ljc0NDMzIDEyLjkyMyA4LjM3NTE1IDEzIDcuODkyNDcgMTNDNy4zMjg1NSAxMyA2Ljg3MjE2IDEyLjgyMjUgNi41MjMzIDEyLjQ2NzRDNi4xNzQ0MyAxMi4xMTI0IDYgMTEuNjU0MyA2IDExLjA5MzFDNiAxMC40NDUxIDYuMTg2MzggOS45MzQ4NCA2LjU1OTE0IDkuNTYyNEM2LjkzNDI5IDkuMTg3NDcgNy40MzQ4OSA5LjAwMDAxIDguMDYwOTMgOS4wMDAwMUM4LjQ5MzQzIDkuMDAwMDEgOC44MDY0NSA5LjA1OTYgOSA5LjE3ODc4VjEwLjE3NjlDOC43NjM0NCA5Ljk5MzE5IDguNDk5NCA5LjkwMTMyIDguMjA3ODkgOS45MDEzMkM3Ljg4MjkyIDkuOTAxMzIgNy42MjQ4NSAxMC4wMDA2IDcuNDMzNjkgMTAuMTk5M0M3LjI0NDkyIDEwLjM5NTQgNy4xNTA1NCAxMC42NjczIDcuMTUwNTQgMTEuMDE0OUM3LjE1MDU0IDExLjM1MjYgNy4yNDEzNCAxMS42MTgzIDcuNDIyOTQgMTEuODExOUM3LjYwNDU0IDEyLjAwMzEgNy44NTQyNCAxMi4wOTg3IDguMTcyMDQgMTIuMDk4N0M4LjQ1NCAxMi4wOTg3IDguNzI5OTkgMTIuMDA2OCA5IDExLjgyMzFWMTIuNzY5MVpNNCA3TDMgOFYxNEw0IDE1SDExTDEyIDE0VjhMMTEgN0g0Wk00IDhINUgxMEgxMVY5VjEzVjE0SDEwSDVINFYxM1Y5VjhaIiBmaWxsPSIjQzVDNUM1Ii8+Cjwvc3ZnPgo="); -} - -.monaco-editor.hc-black .find-widget .replace-all, -.monaco-editor.vs-dark .find-widget .replace-all { - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMS42MDA5IDIuNjc2ODNDMTEuNzQ3NCAyLjM2NzA4IDExLjk1NTkgMi4yMTIyIDEyLjIyNjMgMi4yMTIyQzEyLjQ3NDIgMi4yMTIyIDEyLjY2NTEgMi4zMjk4NyAxMi43OTkxIDIuNTY1MjJDMTIuOTMzIDIuODAwNTYgMTMgMy4xMjI0MyAxMyAzLjUzMDgyQzEzIDMuOTczODMgMTIuOTIxOCA0LjMyOTQ0IDEyLjc2NTMgNC41OTc2NkMxMi42MDg4IDQuODY1ODkgMTIuMzk5NyA1IDEyLjEzOCA1QzExLjkwMTQgNSAxMS43MjI0IDQuODc1NDEgMTEuNjAwOSA0LjYyNjIySDExLjU5MzRWNC45MzUxMUgxMVYxSDExLjU5MzRWMi42NzY4M0gxMS42MDA5Wk0xMS41ODQgMy43Nzc0MkMxMS41ODQgMy45NDg3MyAxMS42MTk3IDQuMDkwNjMgMTEuNjkxMSA0LjIwMzExQzExLjc2MjQgNC4zMTU2IDExLjg1MzggNC4zNzE4NCAxMS45NjUzIDQuMzcxODRDMTIuMTAwNSA0LjM3MTg0IDEyLjIwNSA0LjMwMDAyIDEyLjI3ODkgNC4xNTYzOUMxMi4zNTQgNC4wMTEwMyAxMi4zOTE1IDMuODA1OTcgMTIuMzkxNSAzLjU0MTIxQzEyLjM5MTUgMy4zMjE0NCAxMi4zNTcxIDMuMTUwMTIgMTIuMjg4MyAzLjAyNzI2QzEyLjIyMDcgMi45MDI2NiAxMi4xMjM2IDIuODQwMzYgMTEuOTk3MiAyLjg0MDM2QzExLjg3ODIgMi44NDAzNiAxMS43NzkzIDIuOTAxOCAxMS43MDA1IDMuMDI0NjZDMTEuNjIyOCAzLjE0NzUyIDExLjU4NCAzLjMwNzU5IDExLjU4NCAzLjUwNDg3VjMuNzc3NDJaTTQuMTE5NjkgNy42OTVMMiA1LjU2NzgxTDIuNjYxODggNC45MDU5NEwzLjY2NzgxIDUuOTA2MjVWNC4zOTU5NEMzLjY2Njk1IDQuMjEzMDkgMy43MDIxOSA0LjAzMTg3IDMuNzcxNSAzLjg2MjY2QzMuODQwODIgMy42OTM0NiAzLjk0Mjg2IDMuNTM5NjEgNC4wNzE3NiAzLjQwOTkyQzQuMjAwNjYgMy4yODAyMyA0LjM1MzkgMy4xNzcyNyA0LjUyMjY4IDMuMTA2OTJDNC42OTE0NiAzLjAzNjU4IDQuODcyNDYgMy4wMDAyNCA1LjA1NTMxIDNINy4zOTkwNlYzLjkwNDY5SDUuMDU1MzFDNC45Mjg1NiAzLjkxMDI2IDQuODA4OSAzLjk2NDc2IDQuNzIxNDkgNC4wNTY3MkM0LjYzNDA4IDQuMTQ4NjggNC41ODU3MSA0LjI3MDk0IDQuNTg2NTYgNC4zOTc4MUw0LjU5NDA2IDUuODk3ODFMNS41NDI4MSA0Ljk1Mzc1TDYuMTk5MDYgNS42MUw0LjExOTY5IDcuNjk1Wk05LjM1NTYgNC45MzAxN0gxMFYzLjIyMDY3QzEwIDIuNDA2ODkgOS42ODUzNCAyIDkuMDU2MDMgMkM4LjkyMDk4IDIgOC43NzA4MyAyLjAyNDIxIDguNjA1NiAyLjA3MjYzQzguNDQxODEgMi4xMjEwNCA4LjMxMjUgMi4xNzY5MSA4LjIxNzY3IDIuMjQwMjJWMi45MDUwM0M4LjQ1NDc0IDIuNzAyMDUgOC43MDQ3NCAyLjYwMDU2IDguOTY3NjcgMi42MDA1NkM5LjIyOTE3IDIuNjAwNTYgOS4zNTk5MSAyLjc1Njk4IDkuMzU5OTEgMy4wNjk4M0w4Ljc2MDc4IDMuMTczMThDOC4yNTM1OSAzLjI1ODg1IDggMy41NzkxNCA4IDQuMTM0MDhDOCA0LjM5NjY1IDguMDYxMDYgNC42MDcwOCA4LjE4MzE5IDQuNzY1MzZDOC4zMDY3NSA0LjkyMTc5IDguNDc1NTcgNSA4LjY4OTY2IDVDOC45Nzk4OSA1IDkuMTk4OTkgNC44Mzk4NSA5LjM0Njk4IDQuNTE5NTVIOS4zNTU2VjQuOTMwMTdaTTkuMzU5OTEgMy41NzU0MlYzLjc2ODE2QzkuMzU5OTEgMy45NDMyIDkuMzE5NjggNC4wODg0NSA5LjIzOTIyIDQuMjAzOTFDOS4xNTg3NiA0LjMxNzUgOS4wNTQ2IDQuMzc0MyA4LjkyNjcyIDQuMzc0M0M4LjgzNDc3IDQuMzc0MyA4Ljc2MTQ5IDQuMzQyNjQgOC43MDY5IDQuMjc5MzNDOC42NTM3NCA0LjIxNDE1IDguNjI3MTYgNC4xMzEyOCA4LjYyNzE2IDQuMDMwNzNDOC42MjcxNiAzLjgwOTEyIDguNzM3NzkgMy42Nzk3IDguOTU5MDUgMy42NDI0Nkw5LjM1OTkxIDMuNTc1NDJaTTcgMTIuOTMwMkg2LjM1NTZWMTIuNTE5Nkg2LjM0Njk4QzYuMTk4OTkgMTIuODM5OSA1Ljk3OTg5IDEzIDUuNjg5NjYgMTNDNS40NzU1NyAxMyA1LjMwNjc1IDEyLjkyMTggNS4xODMxOSAxMi43NjU0QzUuMDYxMDYgMTIuNjA3MSA1IDEyLjM5NjYgNSAxMi4xMzQxQzUgMTEuNTc5MSA1LjI1MzU5IDExLjI1ODggNS43NjA3OCAxMS4xNzMyTDYuMzU5OTEgMTEuMDY5OEM2LjM1OTkxIDEwLjc1NyA2LjIyOTE3IDEwLjYwMDYgNS45Njc2NyAxMC42MDA2QzUuNzA0NzQgMTAuNjAwNiA1LjQ1NDc0IDEwLjcwMiA1LjIxNzY3IDEwLjkwNVYxMC4yNDAyQzUuMzEyNSAxMC4xNzY5IDUuNDQxODEgMTAuMTIxIDUuNjA1NiAxMC4wNzI2QzUuNzcwODMgMTAuMDI0MiA1LjkyMDk4IDEwIDYuMDU2MDMgMTBDNi42ODUzNCAxMCA3IDEwLjQwNjkgNyAxMS4yMjA3VjEyLjkzMDJaTTYuMzU5OTEgMTEuNzY4MlYxMS41NzU0TDUuOTU5MDUgMTEuNjQyNUM1LjczNzc5IDExLjY3OTcgNS42MjcxNiAxMS44MDkxIDUuNjI3MTYgMTIuMDMwN0M1LjYyNzE2IDEyLjEzMTMgNS42NTM3NCAxMi4yMTQyIDUuNzA2OSAxMi4yNzkzQzUuNzYxNDkgMTIuMzQyNiA1LjgzNDc3IDEyLjM3NDMgNS45MjY3MiAxMi4zNzQzQzYuMDU0NiAxMi4zNzQzIDYuMTU4NzYgMTIuMzE3NSA2LjIzOTIyIDEyLjIwMzlDNi4zMTk2OCAxMi4wODg1IDYuMzU5OTEgMTEuOTQzMiA2LjM1OTkxIDExLjc2ODJaTTkuMjYxNjUgMTNDOS41ODM0MyAxMyA5LjgyOTU1IDEyLjk0MjMgMTAgMTIuODI2OFYxMi4xMTczQzkuODE5OTkgMTIuMjU1MSA5LjYzNiAxMi4zMjQgOS40NDgwMyAxMi4zMjRDOS4yMzYxNiAxMi4zMjQgOS4wNjk2OSAxMi4yNTIzIDguOTQ4NjMgMTIuMTA4OUM4LjgyNzU2IDExLjk2MzcgOC43NjcwMiAxMS43NjQ0IDguNzY3MDIgMTEuNTExMkM4Ljc2NzAyIDExLjI1MDUgOC44Mjk5NSAxMS4wNDY2IDguOTU1NzkgMTAuODk5NEM5LjA4MzIzIDEwLjc1MDUgOS4yNTUyOCAxMC42NzYgOS40NzE5MiAxMC42NzZDOS42NjYyNyAxMC42NzYgOS44NDIyOSAxMC43NDQ5IDEwIDEwLjg4MjdWMTAuMTM0MUM5Ljg3MDk3IDEwLjA0NDcgOS42NjIyOSAxMCA5LjM3Mzk1IDEwQzguOTU2NTkgMTAgOC42MjI4NiAxMC4xNDA2IDguMzcyNzYgMTAuNDIxOEM4LjEyNDI1IDEwLjcwMTEgOCAxMS4wODM4IDggMTEuNTY5OEM4IDExLjk5MDcgOC4xMTYyOSAxMi4zMzQzIDguMzQ4ODcgMTIuNjAwNkM4LjU4MTQ0IDEyLjg2NjkgOC44ODU3IDEzIDkuMjYxNjUgMTNaTTIgOUwzIDhIMTJMMTMgOVYxNEwxMiAxNUgzTDIgMTRWOVpNMyA5VjE0SDEyVjlIM1pNNiA3TDcgNkgxNEwxNSA3VjEyTDE0IDEzVjEyVjdIN0g2WiIgZmlsbD0iI0M1QzVDNSIvPgo8L3N2Zz4K"); -} - -.monaco-editor.hc-black .find-widget .expand, -.monaco-editor.vs-dark .find-widget .expand { - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik03Ljk3NjAzIDEwLjA3MTlMMTIuMzMzMyA1LjcxNDZMMTIuOTUyMSA2LjMzMzMyTDguMjg1MzkgMTFMNy42NjY2NyAxMUwzIDYuMzMzMzJMMy42MTg3MiA1LjcxNDZMNy45NzYwMyAxMC4wNzE5WiIgZmlsbD0iI0M1QzVDNSIvPgo8L3N2Zz4K"); -} - -.monaco-editor.hc-black .find-widget .collapse, -.monaco-editor.vs-dark .find-widget .collapse { - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4wNzE5IDguMDAwMDVMNS43MTQ2MSAxMi4zNTc0TDYuMzMzMzMgMTIuOTc2MUwxMSA4LjMwOTQxVjcuNjkwNjlMNi4zMzMzMyAzLjAyNDAyTDUuNzE0NjEgMy42NDI3NEwxMC4wNzE5IDguMDAwMDVaIiBmaWxsPSIjQzVDNUM1Ii8+Cjwvc3ZnPgo="); -} - -.monaco-editor.hc-black .find-widget .button:not(.disabled):hover, -.monaco-editor.vs-dark .find-widget .button:not(.disabled):hover { - background-color: rgba(255, 255, 255, 0.1); + left: 0 !important; } .monaco-editor.hc-black .find-widget .button:before { @@ -505,19 +536,6 @@ left: 2px; } -.monaco-editor.hc-black .find-widget .monaco-checkbox .checkbox:checked + .label { - background-color: rgba(255, 255, 255, 0.1); -} - -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -.monaco-aria-container { - position: absolute; /* try to hide from window but not from screen readers */ - left:-999em; -} /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. @@ -533,13 +551,6 @@ pointer-events: none; } -.monaco-sash.vertical { - cursor: ew-resize; - top: 0; - width: 4px; - height: 100%; -} - .monaco-sash.mac.vertical { cursor: col-resize; } @@ -552,13 +563,6 @@ cursor: w-resize; } -.monaco-sash.horizontal { - cursor: ns-resize; - left: 0; - width: 100%; - height: 4px; -} - .monaco-sash.mac.horizontal { cursor: row-resize; } @@ -571,52 +575,11 @@ cursor: n-resize; } -.monaco-sash:not(.disabled).orthogonal-start::before, -.monaco-sash:not(.disabled).orthogonal-end::after { - content: ' '; - height: 8px; - width: 8px; - z-index: 100; - display: block; - cursor: all-scroll; - position: absolute; -} - -.monaco-sash.orthogonal-start.vertical::before { - left: -2px; - top: -4px; -} - -.monaco-sash.orthogonal-end.vertical::after { - left: -2px; - bottom: -4px; -} - -.monaco-sash.orthogonal-start.horizontal::before { - top: -2px; - left: -4px; -} - -.monaco-sash.orthogonal-end.horizontal::after { - top: -2px; - right: -4px; -} - .monaco-sash.disabled { cursor: default !important; pointer-events: none !important; } -/** Touch **/ - -.monaco-sash.touch.vertical { - width: 20px; -} - -.monaco-sash.touch.horizontal { - height: 20px; -} - /** Debug **/ .monaco-sash.debug { @@ -631,6 +594,7 @@ .monaco-sash.debug:not(.disabled).orthogonal-end::after { background: red; } + /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. @@ -705,12 +669,7 @@ position: relative; display: block; padding: 0; - -webkit-box-sizing: border-box; - -o-box-sizing: border-box; - -moz-box-sizing: border-box; - -ms-box-sizing: border-box; - box-sizing: border-box; - line-height: auto !important; + box-sizing: border-box; /* Customizable */ font-size: inherit; @@ -735,11 +694,7 @@ .monaco-inputbox > .wrapper > .input { display: inline-block; - -webkit-box-sizing: border-box; - -o-box-sizing: border-box; - -moz-box-sizing: border-box; - -ms-box-sizing: border-box; - box-sizing: border-box; + box-sizing: border-box; width: 100%; height: 100%; line-height: inherit; @@ -756,14 +711,17 @@ .monaco-inputbox > .wrapper > textarea.input { display: block; - -ms-overflow-style: none; /* IE 10+ */ - overflow: -moz-scrollbars-none; /* Firefox */ - scrollbar-width: none; /* Firefox ^64 */ + -ms-overflow-style: none; /* IE 10+: hide scrollbars */ + scrollbar-width: none; /* Firefox: hide scrollbars */ outline: none; } .monaco-inputbox > .wrapper > textarea.input::-webkit-scrollbar { - display: none; + display: none; /* Chrome + Safari: hide scrollbar */ +} + +.monaco-inputbox > .wrapper > textarea.input.empty { + white-space: nowrap; } .monaco-inputbox > .wrapper > .mirror { @@ -772,11 +730,7 @@ width: 100%; top: 0; left: 0; - -webkit-box-sizing: border-box; - -o-box-sizing: border-box; - -moz-box-sizing: border-box; - -ms-box-sizing: border-box; - box-sizing: border-box; + box-sizing: border-box; white-space: pre-wrap; visibility: hidden; word-wrap: break-word; @@ -793,11 +747,7 @@ overflow: hidden; text-align: left; width: 100%; - -webkit-box-sizing: border-box; - -o-box-sizing: border-box; - -moz-box-sizing: border-box; - -ms-box-sizing: border-box; - box-sizing: border-box; + box-sizing: border-box; padding: 0.4em; font-size: 12px; line-height: 17px; @@ -817,148 +767,21 @@ margin-left: 2px; } -.monaco-inputbox .monaco-action-bar .action-item .icon { +.monaco-inputbox .monaco-action-bar .action-item .codicon { background-repeat: no-repeat; width: 16px; height: 16px; } -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -.monaco-action-bar { - text-align: right; - overflow: hidden; - white-space: nowrap; -} - -.monaco-action-bar .actions-container { - display: flex; - margin: 0 auto; - padding: 0; - width: 100%; - justify-content: flex-end; -} - -.monaco-action-bar.vertical .actions-container { - display: inline-block; -} - -.monaco-action-bar.reverse .actions-container { - flex-direction: row-reverse; -} - -.monaco-action-bar .action-item { - cursor: pointer; - display: inline-block; - transition: transform 50ms ease; - position: relative; /* DO NOT REMOVE - this is the key to preventing the ghosting icon bug in Chrome 42 */ -} - -.monaco-action-bar .action-item.disabled { - cursor: default; -} - -.monaco-action-bar.animated .action-item.active { - transform: scale(1.272019649, 1.272019649); /* 1.272019649 = √φ */ -} - -.monaco-action-bar .action-item .icon { - display: inline-block; -} - -.monaco-action-bar .action-label { - font-size: 11px; - margin-right: 4px; -} - -.monaco-action-bar .action-label.octicon { - font-size: 15px; - line-height: 35px; - text-align: center; -} - -.monaco-action-bar .action-item.disabled .action-label, -.monaco-action-bar .action-item.disabled .action-label:hover { - opacity: 0.4; -} - -/* Vertical actions */ - -.monaco-action-bar.vertical { - text-align: left; -} - -.monaco-action-bar.vertical .action-item { - display: block; -} - -.monaco-action-bar.vertical .action-label.separator { - display: block; - border-bottom: 1px solid #bbb; - padding-top: 1px; - margin-left: .8em; - margin-right: .8em; -} - -.monaco-action-bar.animated.vertical .action-item.active { - transform: translate(5px, 0); -} - -.secondary-actions .monaco-action-bar .action-label { - margin-left: 6px; -} - -/* Action Items */ -.monaco-action-bar .action-item.select-container { - overflow: hidden; /* somehow the dropdown overflows its container, we prevent it here to not push */ - flex: 1; - max-width: 170px; - min-width: 60px; - display: flex; - align-items: center; - justify-content: center; -} /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ /* Arrows */ -.monaco-scrollable-element > .scrollbar > .up-arrow { - background: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTEgMTEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0ibTkuNDgwNDYsOC45NjE1bDEuMjYsLTEuMjZsLTUuMDQsLTUuMDRsLTUuNDYsNS4wNGwxLjI2LDEuMjZsNC4yLC0zLjc4bDMuNzgsMy43OHoiIGZpbGw9IiM0MjQyNDIiLz48L3N2Zz4="); +.monaco-scrollable-element > .scrollbar > .scra { cursor: pointer; -} -.monaco-scrollable-element > .scrollbar > .down-arrow { - background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMSAxMSI+PHBhdGggdHJhbnNmb3JtPSJyb3RhdGUoLTE4MCA1LjQ5MDQ1OTkxODk3NTgzLDUuODExNTAwMDcyNDc5MjQ4KSIgZmlsbD0iIzQyNDI0MiIgZD0ibTkuNDgwNDYsOC45NjE1bDEuMjYsLTEuMjZsLTUuMDQsLTUuMDRsLTUuNDYsNS4wNGwxLjI2LDEuMjZsNC4yLC0zLjc4bDMuNzgsMy43OHoiLz48L3N2Zz4="); - cursor: pointer; -} -.monaco-scrollable-element > .scrollbar > .left-arrow { - background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMSAxMSI+PHBhdGggdHJhbnNmb3JtPSJyb3RhdGUoLTkwIDUuNDkwNDU5OTE4OTc1ODMxLDUuNDMxMzgyMTc5MjYwMjU0KSIgZmlsbD0iIzQyNDI0MiIgZD0ibTkuNDgwNDYsOC41ODEzOGwxLjI2LC0xLjI2bC01LjA0LC01LjA0bC01LjQ2LDUuMDRsMS4yNiwxLjI2bDQuMiwtMy43OGwzLjc4LDMuNzh6Ii8+PC9zdmc+"); - cursor: pointer; -} -.monaco-scrollable-element > .scrollbar > .right-arrow { - background: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTEgMTEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggdHJhbnNmb3JtPSJyb3RhdGUoOTAgNS42MTcxNjUwODg2NTM1NjQ1LDUuNTU4MDg5NzMzMTIzNzgpICIgZmlsbD0iIzQyNDI0MiIgZD0ibTkuNjA3MTcsOC43MDgwOWwxLjI2LC0xLjI2bC01LjA0LC01LjA0bC01LjQ2LDUuMDRsMS4yNiwxLjI2bDQuMiwtMy43OGwzLjc4LDMuNzh6Ii8+PC9zdmc+"); - cursor: pointer; -} - -.hc-black .monaco-scrollable-element > .scrollbar > .up-arrow, -.vs-dark .monaco-scrollable-element > .scrollbar > .up-arrow { - background: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTEgMTEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0ibTkuNDgwNDYsOC45NjE1bDEuMjYsLTEuMjZsLTUuMDQsLTUuMDRsLTUuNDYsNS4wNGwxLjI2LDEuMjZsNC4yLC0zLjc4bDMuNzgsMy43OHoiIGZpbGw9IiNFOEU4RTgiLz48L3N2Zz4="); -} -.hc-black .monaco-scrollable-element > .scrollbar > .down-arrow, -.vs-dark .monaco-scrollable-element > .scrollbar > .down-arrow { - background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMSAxMSI+PHBhdGggdHJhbnNmb3JtPSJyb3RhdGUoLTE4MCA1LjQ5MDQ1OTkxODk3NTgzLDUuODExNTAwMDcyNDc5MjQ4KSIgZmlsbD0iI0U4RThFOCIgZD0ibTkuNDgwNDYsOC45NjE1bDEuMjYsLTEuMjZsLTUuMDQsLTUuMDRsLTUuNDYsNS4wNGwxLjI2LDEuMjZsNC4yLC0zLjc4bDMuNzgsMy43OHoiLz48L3N2Zz4="); -} -.hc-black .monaco-scrollable-element > .scrollbar > .left-arrow, -.vs-dark .monaco-scrollable-element > .scrollbar > .left-arrow { - background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMSAxMSI+PHBhdGggdHJhbnNmb3JtPSJyb3RhdGUoLTkwIDUuNDkwNDU5OTE4OTc1ODMxLDUuNDMxMzgyMTc5MjYwMjU0KSIgZmlsbD0iI0U4RThFOCIgZD0ibTkuNDgwNDYsOC41ODEzOGwxLjI2LC0xLjI2bC01LjA0LC01LjA0bC01LjQ2LDUuMDRsMS4yNiwxLjI2bDQuMiwtMy43OGwzLjc4LDMuNzh6Ii8+PC9zdmc+"); -} -.hc-black .monaco-scrollable-element > .scrollbar > .right-arrow, -.vs-dark .monaco-scrollable-element > .scrollbar > .right-arrow { - background: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTEgMTEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggdHJhbnNmb3JtPSJyb3RhdGUoOTAgNS42MTcxNjUwODg2NTM1NjQ1LDUuNTU4MDg5NzMzMTIzNzgpICIgZmlsbD0iI0U4RThFOCIgZD0ibTkuNjA3MTcsOC43MDgwOWwxLjI2LC0xLjI2bC01LjA0LC01LjA0bC01LjQ2LDUuMDRsMS4yNiwxLjI2bDQuMiwtMy43OGwzLjc4LDMuNzh6Ii8+PC9zdmc+"); + font-size: 11px !important; } .monaco-scrollable-element > .visible { @@ -1061,262 +884,194 @@ .hc-black .monaco-scrollable-element .shadow.top.left { box-shadow: none; } + /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ - -/* Default standalone editor font */ -.monaco-editor { - font-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "HelveticaNeue-Light", "Ubuntu", "Droid Sans", sans-serif; +.monaco-editor .margin-view-overlays .codicon-folding-expanded, +.monaco-editor .margin-view-overlays .codicon-folding-collapsed { + cursor: pointer; + opacity: 0; + transition: opacity 0.5s; + display: flex; + align-items: center; + justify-content: center; + font-size: 140%; + margin-left: 2px; } -.monaco-menu .monaco-action-bar.vertical .action-item .action-menu-item:focus .action-label { - stroke-width: 1.2px; +.monaco-editor .margin-view-overlays:hover .codicon, +.monaco-editor .margin-view-overlays .codicon.codicon-folding-collapsed, +.monaco-editor .margin-view-overlays .codicon.alwaysShowFoldIcons { + opacity: 1; } -.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label, -.monaco-editor.hc-black .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label { - stroke-width: 1.2px; +.monaco-editor .inline-folded:after { + color: grey; + margin: 0.1em 0.2em 0 0.2em; + content: "⋯"; + display: inline; + line-height: 1em; + cursor: pointer; } -.monaco-editor-hover p { +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +/* marker zone */ + +.monaco-editor .peekview-widget .head .peekview-title .severity-icon { + display: inline-block; + vertical-align: text-top; + margin-right: 4px; +} + +.monaco-editor .marker-widget { + text-overflow: ellipsis; + white-space: nowrap; +} + +.monaco-editor .marker-widget > .stale { + opacity: 0.6; + font-style: italic; +} + +.monaco-editor .marker-widget .title { + display: inline-block; + padding-right: 5px; +} + +.monaco-editor .marker-widget .descriptioncontainer { + position: absolute; + white-space: pre; + user-select: text; + -webkit-user-select: text; + -ms-user-select: text; + padding: 8px 12px 0 20px; +} + +.monaco-editor .marker-widget .descriptioncontainer .message { + display: flex; + flex-direction: column; +} + +.monaco-editor .marker-widget .descriptioncontainer .message .details { + padding-left: 6px; +} + +.monaco-editor .marker-widget .descriptioncontainer .message .source, +.monaco-editor .marker-widget .descriptioncontainer .message span.code { + opacity: 0.6; +} + +.monaco-editor .marker-widget .descriptioncontainer .message a.code-link { + opacity: 0.6; + color: inherit; +} +.monaco-editor .marker-widget .descriptioncontainer .message a.code-link:before { + content: '('; +} +.monaco-editor .marker-widget .descriptioncontainer .message a.code-link:after { + content: ')'; +} +.monaco-editor .marker-widget .descriptioncontainer .message a.code-link > span { + text-decoration: underline; + /** Hack to force underline to show **/ + border-bottom: 1px solid transparent; + text-underline-position: under; +} + +.monaco-editor .marker-widget .descriptioncontainer .filename { + cursor: pointer; +} + +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +.monaco-editor .peekview-widget .head { + box-sizing: border-box; + display: flex; +} + +.monaco-editor .peekview-widget .head .peekview-title { + display: flex; + align-items: center; + font-size: 13px; + margin-left: 20px; + cursor: pointer; + min-width: 0; +} + +.monaco-editor .peekview-widget .head .peekview-title .dirname:not(:empty) { + font-size: 0.9em; + margin-left: 0.5em; +} + +.monaco-editor .peekview-widget .head .peekview-title .meta { + white-space: nowrap; +} + +.monaco-editor .peekview-widget .head .peekview-title .dirname { + white-space: nowrap; +} + +.monaco-editor .peekview-widget .head .peekview-title .filename { + overflow: hidden; + text-overflow: ellipsis; +} + +.monaco-editor .peekview-widget .head .peekview-title .meta:not(:empty)::before { + content: '-'; + padding: 0 0.3em; +} + +.monaco-editor .peekview-widget .head .peekview-actions { + flex: 1; + text-align: right; + padding-right: 2px; +} + +.monaco-editor .peekview-widget .head .peekview-actions > .monaco-action-bar { + display: inline-block; +} + +.monaco-editor .peekview-widget .head .peekview-actions > .monaco-action-bar, +.monaco-editor .peekview-widget .head .peekview-actions > .monaco-action-bar > .actions-container { + height: 100%; +} + +.monaco-editor .peekview-widget .head .peekview-actions > .monaco-action-bar .action-item { + margin-left: 4px; +} + +.monaco-editor .peekview-widget .head .peekview-actions > .monaco-action-bar .action-label { + width: 16px; + height: 100%; + margin: 0; + line-height: inherit; + background-repeat: no-repeat; + background-position: center center; +} + +.monaco-editor .peekview-widget .head .peekview-actions > .monaco-action-bar .action-label.codicon { margin: 0; } -/* The hc-black theme is already high contrast optimized */ -.monaco-editor.hc-black { - -ms-high-contrast-adjust: none; -} -/* In case the browser goes into high contrast mode and the editor is not configured with the hc-black theme */ -@media screen and (-ms-high-contrast:active) { - - /* current line highlight */ - .monaco-editor.vs .view-overlays .current-line, - .monaco-editor.vs-dark .view-overlays .current-line { - border-color: windowtext !important; - border-left: 0; - border-right: 0; - } - - /* view cursors */ - .monaco-editor.vs .cursor, - .monaco-editor.vs-dark .cursor { - background-color: windowtext !important; - } - /* dnd target */ - .monaco-editor.vs .dnd-target, - .monaco-editor.vs-dark .dnd-target { - border-color: windowtext !important; - } - - /* selected text background */ - .monaco-editor.vs .selected-text, - .monaco-editor.vs-dark .selected-text { - background-color: highlight !important; - } - - /* allow the text to have a transparent background. */ - .monaco-editor.vs .view-line, - .monaco-editor.vs-dark .view-line { - -ms-high-contrast-adjust: none; - } - - /* text color */ - .monaco-editor.vs .view-line span, - .monaco-editor.vs-dark .view-line span { - color: windowtext !important; - } - /* selected text color */ - .monaco-editor.vs .view-line span.inline-selected-text, - .monaco-editor.vs-dark .view-line span.inline-selected-text { - color: highlighttext !important; - } - - /* allow decorations */ - .monaco-editor.vs .view-overlays, - .monaco-editor.vs-dark .view-overlays { - -ms-high-contrast-adjust: none; - } - - /* various decorations */ - .monaco-editor.vs .selectionHighlight, - .monaco-editor.vs-dark .selectionHighlight, - .monaco-editor.vs .wordHighlight, - .monaco-editor.vs-dark .wordHighlight, - .monaco-editor.vs .wordHighlightStrong, - .monaco-editor.vs-dark .wordHighlightStrong, - .monaco-editor.vs .reference-decoration, - .monaco-editor.vs-dark .reference-decoration { - border: 2px dotted highlight !important; - background: transparent !important; - box-sizing: border-box; - } - .monaco-editor.vs .rangeHighlight, - .monaco-editor.vs-dark .rangeHighlight { - background: transparent !important; - border: 1px dotted activeborder !important; - box-sizing: border-box; - } - .monaco-editor.vs .bracket-match, - .monaco-editor.vs-dark .bracket-match { - border-color: windowtext !important; - background: transparent !important; - } - - /* find widget */ - .monaco-editor.vs .findMatch, - .monaco-editor.vs-dark .findMatch, - .monaco-editor.vs .currentFindMatch, - .monaco-editor.vs-dark .currentFindMatch { - border: 2px dotted activeborder !important; - background: transparent !important; - box-sizing: border-box; - } - .monaco-editor.vs .find-widget, - .monaco-editor.vs-dark .find-widget { - border: 1px solid windowtext; - } - - /* list - used by suggest widget */ - .monaco-editor.vs .monaco-list .monaco-list-row, - .monaco-editor.vs-dark .monaco-list .monaco-list-row { - -ms-high-contrast-adjust: none; - color: windowtext !important; - } - .monaco-editor.vs .monaco-list .monaco-list-row.focused, - .monaco-editor.vs-dark .monaco-list .monaco-list-row.focused { - color: highlighttext !important; - background-color: highlight !important; - } - .monaco-editor.vs .monaco-list .monaco-list-row:hover, - .monaco-editor.vs-dark .monaco-list .monaco-list-row:hover { - background: transparent !important; - border: 1px solid highlight; - box-sizing: border-box; - } - - /* tree */ - .monaco-editor.vs .monaco-tree .monaco-tree-row, - .monaco-editor.vs-dark .monaco-tree .monaco-tree-row { - -ms-high-contrast-adjust: none; - color: windowtext !important; - } - .monaco-editor.vs .monaco-tree .monaco-tree-row.selected, - .monaco-editor.vs-dark .monaco-tree .monaco-tree-row.selected, - .monaco-editor.vs .monaco-tree .monaco-tree-row.focused, - .monaco-editor.vs-dark .monaco-tree .monaco-tree-row.focused { - color: highlighttext !important; - background-color: highlight !important; - } - .monaco-editor.vs .monaco-tree .monaco-tree-row:hover, - .monaco-editor.vs-dark .monaco-tree .monaco-tree-row:hover { - background: transparent !important; - border: 1px solid highlight; - box-sizing: border-box; - } - - /* scrollbars */ - .monaco-editor.vs .monaco-scrollable-element > .scrollbar, - .monaco-editor.vs-dark .monaco-scrollable-element > .scrollbar { - -ms-high-contrast-adjust: none; - background: background !important; - border: 1px solid windowtext; - box-sizing: border-box; - } - .monaco-editor.vs .monaco-scrollable-element > .scrollbar > .slider, - .monaco-editor.vs-dark .monaco-scrollable-element > .scrollbar > .slider { - background: windowtext !important; - } - .monaco-editor.vs .monaco-scrollable-element > .scrollbar > .slider:hover, - .monaco-editor.vs-dark .monaco-scrollable-element > .scrollbar > .slider:hover { - background: highlight !important; - } - .monaco-editor.vs .monaco-scrollable-element > .scrollbar > .slider.active, - .monaco-editor.vs-dark .monaco-scrollable-element > .scrollbar > .slider.active { - background: highlight !important; - } - - /* overview ruler */ - .monaco-editor.vs .decorationsOverviewRuler, - .monaco-editor.vs-dark .decorationsOverviewRuler { - opacity: 0; - } - - /* minimap */ - .monaco-editor.vs .minimap, - .monaco-editor.vs-dark .minimap { - display: none; - } - - /* squiggles */ - .monaco-editor.vs .squiggly-d-error, - .monaco-editor.vs-dark .squiggly-d-error { - background: transparent !important; - border-bottom: 4px double #E47777; - } - .monaco-editor.vs .squiggly-c-warning, - .monaco-editor.vs-dark .squiggly-c-warning { - border-bottom: 4px double #71B771; - } - .monaco-editor.vs .squiggly-b-info, - .monaco-editor.vs-dark .squiggly-b-info { - border-bottom: 4px double #71B771; - } - .monaco-editor.vs .squiggly-a-hint, - .monaco-editor.vs-dark .squiggly-a-hint { - border-bottom: 4px double #6c6c6c; - } - - /* contextmenu */ - .monaco-editor.vs .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label, - .monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label { - -ms-high-contrast-adjust: none; - color: highlighttext !important; - background-color: highlight !important; - } - .monaco-editor.vs .monaco-menu .monaco-action-bar.vertical .action-menu-item:hover .action-label, - .monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:hover .action-label { - -ms-high-contrast-adjust: none; - background: transparent !important; - border: 1px solid highlight; - box-sizing: border-box; - } - - /* diff editor */ - .monaco-diff-editor.vs .diffOverviewRuler, - .monaco-diff-editor.vs-dark .diffOverviewRuler { - display: none; - } - .monaco-editor.vs .line-insert, - .monaco-editor.vs-dark .line-insert, - .monaco-editor.vs .line-delete, - .monaco-editor.vs-dark .line-delete { - background: transparent !important; - border: 1px solid highlight !important; - box-sizing: border-box; - } - .monaco-editor.vs .char-insert, - .monaco-editor.vs-dark .char-insert, - .monaco-editor.vs .char-delete, - .monaco-editor.vs-dark .char-delete { - background: transparent !important; - } +.monaco-editor .peekview-widget > .body { + border-top: 1px solid; + position: relative; } -/*.monaco-editor.vs [tabindex="0"]:focus { - outline: 1px solid rgba(0, 122, 204, 0.4); - outline-offset: -1px; - opacity: 1 !important; +.monaco-editor .peekview-widget .head .peekview-title .codicon { + margin-right: 4px; } -.monaco-editor.vs-dark [tabindex="0"]:focus { - outline: 1px solid rgba(14, 99, 156, 0.6); - outline-offset: -1px; - opacity: 1 !important; -}*/ - /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. @@ -1340,12 +1095,6 @@ position: relative; overflow: visible; -webkit-text-size-adjust: 100%; - -webkit-font-feature-settings: "liga" off, "calt" off; - font-feature-settings: "liga" off, "calt" off; -} -.monaco-editor.enable-ligatures { - -webkit-font-feature-settings: "liga" on, "calt" on; - font-feature-settings: "liga" on, "calt" on; } /* -------------------- Misc -------------------- */ @@ -1366,16 +1115,6 @@ } */ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -.monaco-editor .vs-whitespace { - display:inline-block; -} - - /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. @@ -1417,6 +1156,7 @@ *--------------------------------------------------------------------------------------------*/ .monaco-editor .margin-view-overlays .line-numbers { + font-variant-numeric: tabular-nums; position: absolute; text-align: right; display: inline-block; @@ -1432,24 +1172,25 @@ width: 100%; } -.monaco-editor .margin-view-overlays .line-numbers { - cursor: -webkit-image-set( - url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNSIgaGVpZ2h0PSIyNSIgeD0iMHB4IiB5PSIwcHgiIHZpZXdCb3g9IjAgMCAxNSAyNSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTUgMjU7Ij48cG9seWdvbiBzdHlsZT0iZmlsbDojRkZGRkZGO3N0cm9rZTojMDAwMDAwIiBwb2ludHM9IjE0LjUsMS4yIDEuOSwxMy44IDcsMTMuOCAzLjIsMjEuNSA2LjMsMjIuNSAxMC4xLDE0LjkgMTQuNSwxOCIvPjwvc3ZnPg==") 1x, - url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMzAiIGhlaWdodD0iNTAiIHZpZXdCb3g9IjAgMCAzMCA1MCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMzAgNTA7Ij48cG9seWdvbiBzdHlsZT0iZmlsbDojRkZGRkZGO3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDoyOyIgcG9pbnRzPSIyOSwyLjQgMy44LDI3LjYgMTQsMjcuNiA2LjQsNDMgMTIuNiw0NSAyMC4yLDI5LjggMjksMzYiLz48L3N2Zz4K") 2x - ) 30 0, default; -} - -.monaco-editor.mac .margin-view-overlays .line-numbers { - cursor: -webkit-image-set( - url("data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2aWV3Qm94PSIwIDAgMTMgMTkiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDEzIDE5OyIgd2lkdGg9IjEzIiBoZWlnaHQ9IjE5Ij48c3R5bGUgdHlwZT0idGV4dC9jc3MiPi5zdDB7c3Ryb2tlOiNGRkZGRkY7c3Ryb2tlLW1pdGVybGltaXQ6MTA7fTwvc3R5bGU+PHRpdGxlPmZsaXBwZWQtY3Vyc29yLW1hYzwvdGl0bGU+PHBhdGggY2xhc3M9InN0MCIgZD0iTTUuMywxNi42bDEuNi00LjdIMi4xTDEyLjUsMS4ydjE0LjRMOS43LDEzbC0xLjYsNC42Yy0wLjIsMC41LTAuOCwwLjgtMS4zLDAuNkw2LDE3LjkgQzUuNCwxNy43LDUuMSwxNy4yLDUuMywxNi42eiIvPjwvc3ZnPgo=") 1x, - url("data:image/svg+xml;base64,CjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmlld0JveD0iMCAwIDI2IDM4IiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAyNiAzODsiIHdpZHRoPSIyNiIgaGVpZ2h0PSIzOCI+PHN0eWxlIHR5cGU9InRleHQvY3NzIj4uc3Qwe3N0cm9rZTojRkZGRkZGO3N0cm9rZS1taXRlcmxpbWl0OjEwO308L3N0eWxlPgk8dGl0bGU+ZmxpcHBlZC1jdXJzb3ItbWFjPC90aXRsZT48cGF0aCBjbGFzcz0ic3QwIiBkPSJNMTAuNiwzMy4ybDMuMi05LjRINC4yTDI1LDIuNHYyOC44TDE5LjQsMjZsLTMuMiw5LjJjLTAuNCwxLTEuNiwxLjYtMi42LDEuMkwxMiwzNS44IEMxMC44LDM1LjQsMTAuMiwzNC40LDEwLjYsMzMuMnoiLz48L3N2Zz4K") 2x - ) 24 3, default; -} - .monaco-editor .margin-view-overlays .line-numbers.lh-odd { margin-top: 1px; } +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +.monaco-mouse-cursor-text { + cursor: text; +} + +/* The following selector looks a bit funny, but that is needed to cover all the workbench and the editor!! */ +.vs-dark .mac .monaco-mouse-cursor-text, .hc-black .mac .monaco-mouse-cursor-text, +.vs-dark.mac .monaco-mouse-cursor-text, .hc-black.mac .monaco-mouse-cursor-text { + cursor: -webkit-image-set(url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAAL0lEQVQoz2NgCD3x//9/BhBYBWdhgFVAiVW4JBFKGIa4AqD0//9D3pt4I4tAdAMAHTQ/j5Zom30AAAAASUVORK5CYII=) 1x, url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAQAAADZc7J/AAAAz0lEQVRIx2NgYGBY/R8I/vx5eelX3n82IJ9FxGf6tksvf/8FiTMQAcAGQMDvSwu09abffY8QYSAScNk45G198eX//yev73/4///701eh//kZSARckrNBRvz//+8+6ZohwCzjGNjdgQxkAg7B9WADeBjIBqtJCbhRA0YNoIkBSNmaPEMoNmA0FkYNoFKhapJ6FGyAH3nauaSmPfwI0v/3OukVi0CIZ+F25KrtYcx/CTIy0e+rC7R1Z4KMICVTQQ14feVXIbR695u14+Ir4gwAAD49E54wc1kWAAAAAElFTkSuQmCC) 2x) 5 8, text; +} + /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. @@ -1462,10 +1203,6 @@ top: 0; box-sizing: border-box; } -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ .monaco-editor .margin-view-overlays .current-line { display: block; @@ -1478,6 +1215,7 @@ .monaco-editor .margin-view-overlays .current-line.current-line-margin.current-line-margin-both { border-right: 0; } + /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. @@ -1506,6 +1244,9 @@ */ .monaco-editor .margin-view-overlays .cgmr { position: absolute; + display: flex; + align-items: center; + justify-content: center; } /*--------------------------------------------------------------------------------------------- @@ -1543,35 +1284,31 @@ .monaco-editor.no-user-select .lines-content, .monaco-editor.no-user-select .view-line, .monaco-editor.no-user-select .view-lines { + user-select: none; -webkit-user-select: none; -ms-user-select: none; - -khtml-user-select: none; - -moz-user-select: none; - -o-user-select: none; - user-select: none; } .monaco-editor .view-lines { - cursor: text; white-space: nowrap; } -.monaco-editor.vs-dark.mac .view-lines, -.monaco-editor.hc-black.mac .view-lines { - cursor: -webkit-image-set(url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAAL0lEQVQoz2NgCD3x//9/BhBYBWdhgFVAiVW4JBFKGIa4AqD0//9D3pt4I4tAdAMAHTQ/j5Zom30AAAAASUVORK5CYII=) 1x, url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAQAAADZc7J/AAAAz0lEQVRIx2NgYGBY/R8I/vx5eelX3n82IJ9FxGf6tksvf/8FiTMQAcAGQMDvSwu09abffY8QYSAScNk45G198eX//yev73/4///701eh//kZSARckrNBRvz//+8+6ZohwCzjGNjdgQxkAg7B9WADeBjIBqtJCbhRA0YNoIkBSNmaPEMoNmA0FkYNoFKhapJ6FGyAH3nauaSmPfwI0v/3OukVi0CIZ+F25KrtYcx/CTIy0e+rC7R1Z4KMICVTQQ14feVXIbR695u14+Ir4gwAAD49E54wc1kWAAAAAElFTkSuQmCC) 2x) 5 8, text; -} - .monaco-editor .view-line { position: absolute; width: 100%; } +.monaco-editor .mtkz { + display: inline-block; +} + /* TODO@tokenization bootstrap fix */ /*.monaco-editor .view-line > span > span { float: none; min-height: inherit; margin-left: inherit; }*/ + /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. @@ -1696,13 +1433,12 @@ .monaco-editor .cursors-layer > .cursor { position: absolute; - cursor: text; overflow: hidden; } /* -- smooth-caret-animation -- */ .monaco-editor .cursors-layer.cursor-smooth-caret-animation > .cursor { - transition: 80ms; + transition: all 80ms; } /* -- block-outline-style -- */ @@ -1773,416 +1509,209 @@ .cursor-expand > .cursor { animation: monaco-cursor-expand 0.5s ease-in-out 0s 20 alternate; } + /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ -/* ---------- DiffEditor ---------- */ - -.monaco-diff-editor .diffOverview { - z-index: 9; -} - -/* colors not externalized: using transparancy on background */ -.monaco-diff-editor.vs .diffOverview { background: rgba(0, 0, 0, 0.03); } -.monaco-diff-editor.vs-dark .diffOverview { background: rgba(255, 255, 255, 0.01); } - -.monaco-diff-editor .diffViewport { - box-shadow: inset 0px 0px 1px 0px #B9B9B9; - background: rgba(0, 0, 0, 0.10); -} - -.monaco-diff-editor.vs-dark .diffViewport, -.monaco-diff-editor.hc-black .diffViewport { - background: rgba(255, 255, 255, 0.10); -} -.monaco-scrollable-element.modified-in-monaco-diff-editor.vs .scrollbar { background: rgba(0,0,0,0); } -.monaco-scrollable-element.modified-in-monaco-diff-editor.vs-dark .scrollbar { background: rgba(0,0,0,0); } -.monaco-scrollable-element.modified-in-monaco-diff-editor.hc-black .scrollbar { background: none; } - -.monaco-scrollable-element.modified-in-monaco-diff-editor .slider { +.monaco-editor .zone-widget { + position: absolute; z-index: 10; } -.modified-in-monaco-diff-editor .slider.active { background: rgba(171, 171, 171, .4); } -.modified-in-monaco-diff-editor.hc-black .slider.active { background: none; } -/* ---------- Diff ---------- */ -.monaco-editor .insert-sign, -.monaco-diff-editor .insert-sign, -.monaco-editor .delete-sign, -.monaco-diff-editor .delete-sign { - background-size: 60%; - opacity: 0.7; - background-repeat: no-repeat; - background-position: 75% center; - background-size: 11px 11px; -} -.monaco-editor.hc-black .insert-sign, -.monaco-diff-editor.hc-black .insert-sign, -.monaco-editor.hc-black .delete-sign, -.monaco-diff-editor.hc-black .delete-sign { - opacity: 1; -} -.monaco-editor .insert-sign, -.monaco-diff-editor .insert-sign { - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE0IDdWOEg4VjE0SDdWOEgxVjdIN1YxSDhWN0gxNFoiIGZpbGw9IiM0MjQyNDIiLz4KPC9zdmc+Cg=="); -} -.monaco-editor .delete-sign, -.monaco-diff-editor .delete-sign { - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE1IDhIMVY3SDE1VjhaIiBmaWxsPSIjNDI0MjQyIi8+Cjwvc3ZnPgo="); -} - -.monaco-editor.vs-dark .insert-sign, -.monaco-diff-editor.vs-dark .insert-sign, -.monaco-editor.hc-black .insert-sign, -.monaco-diff-editor.hc-black .insert-sign { - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE0IDdWOEg4VjE0SDdWOEgxVjdIN1YxSDhWN0gxNFoiIGZpbGw9IiNDNUM1QzUiLz4KPC9zdmc+Cg=="); -} -.monaco-editor.vs-dark .delete-sign, -.monaco-diff-editor.vs-dark .delete-sign, -.monaco-editor.hc-black .delete-sign, -.monaco-diff-editor.hc-black .delete-sign { - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE1IDhIMVY3SDE1VjhaIiBmaWxsPSIjQzVDNUM1Ii8+Cjwvc3ZnPgo="); -} - -.monaco-editor .inline-deleted-margin-view-zone { - text-align: right; -} -.monaco-editor .inline-added-margin-view-zone { - text-align: right; -} - -.monaco-editor .diagonal-fill { - background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAADgkQYQAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjEwMPRyoQAAAChJREFUKFNjOH/+fAMDDgCSu3Dhwn9c8gwwBTgNGR4KQP4HhQOhsAIAZCBTkhtqePcAAAAASUVORK5CYII="); -} -.monaco-editor.vs-dark .diagonal-fill { - opacity: 0.2; -} -.monaco-editor.hc-black .diagonal-fill { - background: none; -} - -/* ---------- Inline Diff ---------- */ - -.monaco-editor .view-zones .view-lines .view-line span { - display: inline-block; -} - -.monaco-editor .margin-view-zones .inline-deleted-margin-view-zone .lightbulb-glyph { - background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMS42NzA4IDguNjU4MDZDMTEuMzMxOSA4Ljk5MTYgMTEuMDcxNiA5LjM2Mjc4IDEwLjg4ODYgOS43NzE3MkMxMC43MTA1IDEwLjE3OTIgMTAuNjIxIDEwLjYyMTkgMTAuNjIxIDExLjEwMDlWMTIuNzAxMkMxMC42MjEgMTIuODgwNyAxMC41ODcyIDEzLjA1MDMgMTAuNTE4OSAxMy4yMDkxQzEwLjQ1MTMgMTMuMzY2MSAxMC4zNTg2IDEzLjUwMzggMTAuMjQwNyAxMy42MjEzQzEwLjEyMjggMTMuNzM4OCA5Ljk4NDY0IDEzLjgzMTEgOS44MjcyMyAxMy44OTg0QzkuNjY4MDYgMTMuOTY2MyA5LjQ5ODA2IDE0IDkuMzE4MjMgMTRINy43MTIwNUM3LjUzMjIzIDE0IDcuMzYyMjMgMTMuOTY2MyA3LjIwMzA2IDEzLjg5ODRDNy4wNDU2NCAxMy44MzExIDYuOTA3NTMgMTMuNzM4OCA2Ljc4OTYxIDEzLjYyMTNDNi42NzE2OCAxMy41MDM4IDYuNTc4OTUgMTMuMzY2MSA2LjUxMTQxIDEzLjIwOTFDNi40NDMxMSAxMy4wNTAzIDYuNDA5MjcgMTIuODgwNyA2LjQwOTI3IDEyLjcwMTJWMTEuMTAwOUM2LjQwOTI3IDEwLjYyMiA2LjMxNzcyIDEwLjE3OTUgNi4xMzU1MyA5Ljc3MjA5QzUuOTU2ODMgOS4zNjMzNiA1LjY5ODMyIDguOTkxNTYgNS4zNTk1MyA4LjY1ODA2QzQuOTI0NjggOC4yMjkwMyA0LjU4ODk2IDcuNzUwMDMgNC4zNTM2MSA3LjIyMTM0QzQuMTE3NTYgNi42OTEwNyA0IDYuMTE2NzIgNCA1LjQ5OTUzQzQgNS4wODY2NCA0LjA1MzQyIDQuNjg4MDIgNC4xNjA0OCA0LjMwMzk3QzQuMjY3MjggMy45MjA4OSA0LjQxOTA3IDMuNTYyODYgNC42MTU5NSAzLjIzMDE4QzQuODEyNTcgMi44OTM3NyA1LjA0Nzc3IDIuNTg5MTEgNS4zMjE0NiAyLjMxNjQxQzUuNTk1MDMgMi4wNDM4MyA1Ljg5ODU4IDEuODA5NTMgNi4yMzE5NSAxLjYxMzY0QzYuNTY5NzkgMS40MTc2NCA2LjkzMTQ2IDEuMjY2MiA3LjMxNTc4IDEuMTU5ODNDNy43MDEwNiAxLjA1MzIgOC4xMDA5NCAxIDguNTE1MTQgMUM4LjkyOTM0IDEgOS4zMjkyMyAxLjA1MzIgOS43MTQ1MSAxLjE1OTgzQzEwLjA5ODggMS4yNjYyIDEwLjQ1OCAxLjQxNzM5IDEwLjc5MTggMS42MTM1MUMxMS4xMjk0IDEuODA5MzggMTEuNDM1MSAyLjA0MzcgMTEuNzA4OCAyLjMxNjQxQzExLjk4MjUgMi41ODkxIDEyLjIxNzcgMi44OTM3NiAxMi40MTQzIDMuMjMwMTZDMTIuNjExMiAzLjU2Mjg1IDEyLjc2MyAzLjkyMDg4IDEyLjg2OTggNC4zMDM5N0MxMi45NzY5IDQuNjg4MDIgMTMuMDMwMyA1LjA4NjY0IDEzLjAzMDMgNS40OTk1M0MxMy4wMzAzIDYuMTE2NzIgMTIuOTEyNyA2LjY5MTA3IDEyLjY3NjcgNy4yMjEzNEMxMi40NDEzIDcuNzUwMDMgMTIuMTA1NiA4LjIyOTAzIDExLjY3MDggOC42NTgwNlpNOS42MjE2MiAxMC41SDcuNDA4NjdWMTIuNzAxMkM3LjQwODY3IDEyLjc4MjMgNy40MzcyIDEyLjg1MTIgNy40OTg4OCAxMi45MTI3QzcuNTYwNTggMTIuOTc0MSA3LjYzMDA3IDEzLjAwMjggNy43MTIwNSAxMy4wMDI4SDkuMzE4MjNDOS40MDAyMiAxMy4wMDI4IDkuNDY5NzEgMTIuOTc0MSA5LjUzMTQgMTIuOTEyN0M5LjU5MzA5IDEyLjg1MTIgOS42MjE2MiAxMi43ODIzIDkuNjIxNjIgMTIuNzAxMlYxMC41WiIgZmlsbD0iIzQyNDI0MiIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTExLjY3MDggOC42NTgwNkMxMS4zMzE5IDguOTkxNiAxMS4wNzE2IDkuMzYyNzggMTAuODg4NiA5Ljc3MTcyQzEwLjcxMDUgMTAuMTc5MiAxMC42MjEgMTAuNjIxOSAxMC42MjEgMTEuMTAwOVYxMi43MDEyQzEwLjYyMSAxMi44ODA3IDEwLjU4NzIgMTMuMDUwMyAxMC41MTg5IDEzLjIwOTFDMTAuNDUxMyAxMy4zNjYxIDEwLjM1ODYgMTMuNTAzOCAxMC4yNDA3IDEzLjYyMTNDMTAuMTIyOCAxMy43Mzg4IDkuOTg0NjQgMTMuODMxMSA5LjgyNzIzIDEzLjg5ODRDOS42NjgwNiAxMy45NjYzIDkuNDk4MDYgMTQgOS4zMTgyMyAxNEg3LjcxMjA1QzcuNTMyMjMgMTQgNy4zNjIyMyAxMy45NjYzIDcuMjAzMDYgMTMuODk4NEM3LjA0NTY0IDEzLjgzMTEgNi45MDc1MyAxMy43Mzg4IDYuNzg5NjEgMTMuNjIxM0M2LjY3MTY4IDEzLjUwMzggNi41Nzg5NSAxMy4zNjYxIDYuNTExNDEgMTMuMjA5MUM2LjQ0MzExIDEzLjA1MDMgNi40MDkyNyAxMi44ODA3IDYuNDA5MjcgMTIuNzAxMlYxMS4xMDA5QzYuNDA5MjcgMTAuNjIyIDYuMzE3NzIgMTAuMTc5NSA2LjEzNTUzIDkuNzcyMDlDNS45NTY4MyA5LjM2MzM2IDUuNjk4MzIgOC45OTE1NiA1LjM1OTUzIDguNjU4MDZDNC45MjQ2OCA4LjIyOTAzIDQuNTg4OTYgNy43NTAwMyA0LjM1MzYxIDcuMjIxMzRDNC4xMTc1NiA2LjY5MTA3IDQgNi4xMTY3MiA0IDUuNDk5NTNDNCA1LjA4NjY0IDQuMDUzNDIgNC42ODgwMiA0LjE2MDQ4IDQuMzAzOTdDNC4yNjcyOCAzLjkyMDg5IDQuNDE5MDcgMy41NjI4NiA0LjYxNTk1IDMuMjMwMThDNC44MTI1NyAyLjg5Mzc3IDUuMDQ3NzcgMi41ODkxMSA1LjMyMTQ2IDIuMzE2NDFDNS41OTUwMyAyLjA0MzgzIDUuODk4NTggMS44MDk1MyA2LjIzMTk1IDEuNjEzNjRDNi41Njk3OSAxLjQxNzY0IDYuOTMxNDYgMS4yNjYyIDcuMzE1NzggMS4xNTk4M0M3LjcwMTA2IDEuMDUzMiA4LjEwMDk0IDEgOC41MTUxNCAxQzguOTI5MzQgMSA5LjMyOTIzIDEuMDUzMiA5LjcxNDUxIDEuMTU5ODNDMTAuMDk4OCAxLjI2NjIgMTAuNDU4IDEuNDE3MzkgMTAuNzkxOCAxLjYxMzUxQzExLjEyOTQgMS44MDkzOCAxMS40MzUxIDIuMDQzNyAxMS43MDg4IDIuMzE2NDFDMTEuOTgyNSAyLjU4OTEgMTIuMjE3NyAyLjg5Mzc2IDEyLjQxNDMgMy4yMzAxNkMxMi42MTEyIDMuNTYyODUgMTIuNzYzIDMuOTIwODggMTIuODY5OCA0LjMwMzk3QzEyLjk3NjkgNC42ODgwMiAxMy4wMzAzIDUuMDg2NjQgMTMuMDMwMyA1LjQ5OTUzQzEzLjAzMDMgNi4xMTY3MiAxMi45MTI3IDYuNjkxMDcgMTIuNjc2NyA3LjIyMTM0QzEyLjQ0MTMgNy43NTAwMyAxMi4xMDU2IDguMjI5MDMgMTEuNjcwOCA4LjY1ODA2Wk05LjYyMTYyIDEwLjVINy40MDg2N1YxMi43MDEyQzcuNDA4NjcgMTIuNzgyMyA3LjQzNzIgMTIuODUxMiA3LjQ5ODg4IDEyLjkxMjdDNy41NjA1OCAxMi45NzQxIDcuNjMwMDcgMTMuMDAyOCA3LjcxMjA1IDEzLjAwMjhIOS4zMTgyM0M5LjQwMDIyIDEzLjAwMjggOS40Njk3MSAxMi45NzQxIDkuNTMxNCAxMi45MTI3QzkuNTkzMDkgMTIuODUxMiA5LjYyMTYyIDEyLjc4MjMgOS42MjE2MiAxMi43MDEyVjEwLjVaIiBmaWxsPSIjNDI0MjQyIi8+Cjwvc3ZnPgo=") center center no-repeat; -} - -.monaco-editor.vs-dark .margin-view-zones .inline-deleted-margin-view-zone .lightbulb-glyph, -.monaco-editor.hc-dark .margin-view-zones .inline-deleted-margin-view-zone .lightbulb-glyph { - background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMS42NzA4IDguNjU4MDZDMTEuMzMxOSA4Ljk5MTYgMTEuMDcxNiA5LjM2Mjc4IDEwLjg4ODYgOS43NzE3MkMxMC43MTA1IDEwLjE3OTIgMTAuNjIxIDEwLjYyMTkgMTAuNjIxIDExLjEwMDlWMTIuNzAxMkMxMC42MjEgMTIuODgwNyAxMC41ODcyIDEzLjA1MDMgMTAuNTE4OSAxMy4yMDkxQzEwLjQ1MTMgMTMuMzY2MSAxMC4zNTg2IDEzLjUwMzggMTAuMjQwNyAxMy42MjEzQzEwLjEyMjggMTMuNzM4OCA5Ljk4NDY0IDEzLjgzMTEgOS44MjcyMyAxMy44OTg0QzkuNjY4MDYgMTMuOTY2MyA5LjQ5ODA2IDE0IDkuMzE4MjMgMTRINy43MTIwNUM3LjUzMjIzIDE0IDcuMzYyMjMgMTMuOTY2MyA3LjIwMzA2IDEzLjg5ODRDNy4wNDU2NCAxMy44MzExIDYuOTA3NTMgMTMuNzM4OCA2Ljc4OTYxIDEzLjYyMTNDNi42NzE2OCAxMy41MDM4IDYuNTc4OTUgMTMuMzY2MSA2LjUxMTQxIDEzLjIwOTFDNi40NDMxMSAxMy4wNTAzIDYuNDA5MjcgMTIuODgwNyA2LjQwOTI3IDEyLjcwMTJWMTEuMTAwOUM2LjQwOTI3IDEwLjYyMiA2LjMxNzcyIDEwLjE3OTUgNi4xMzU1MyA5Ljc3MjA5QzUuOTU2ODMgOS4zNjMzNiA1LjY5ODMyIDguOTkxNTYgNS4zNTk1MyA4LjY1ODA2QzQuOTI0NjggOC4yMjkwMyA0LjU4ODk2IDcuNzUwMDMgNC4zNTM2MSA3LjIyMTM0QzQuMTE3NTYgNi42OTEwNyA0IDYuMTE2NzIgNCA1LjQ5OTUzQzQgNS4wODY2NCA0LjA1MzQyIDQuNjg4MDIgNC4xNjA0OCA0LjMwMzk3QzQuMjY3MjggMy45MjA4OSA0LjQxOTA3IDMuNTYyODYgNC42MTU5NSAzLjIzMDE4QzQuODEyNTcgMi44OTM3NyA1LjA0Nzc3IDIuNTg5MTEgNS4zMjE0NiAyLjMxNjQxQzUuNTk1MDMgMi4wNDM4MyA1Ljg5ODU4IDEuODA5NTMgNi4yMzE5NSAxLjYxMzY0QzYuNTY5NzkgMS40MTc2NCA2LjkzMTQ2IDEuMjY2MiA3LjMxNTc4IDEuMTU5ODNDNy43MDEwNiAxLjA1MzIgOC4xMDA5NCAxIDguNTE1MTQgMUM4LjkyOTM0IDEgOS4zMjkyMyAxLjA1MzIgOS43MTQ1MSAxLjE1OTgzQzEwLjA5ODggMS4yNjYyIDEwLjQ1OCAxLjQxNzM5IDEwLjc5MTggMS42MTM1MUMxMS4xMjk0IDEuODA5MzggMTEuNDM1MSAyLjA0MzcgMTEuNzA4OCAyLjMxNjQxQzExLjk4MjUgMi41ODkxIDEyLjIxNzcgMi44OTM3NiAxMi40MTQzIDMuMjMwMTZDMTIuNjExMiAzLjU2Mjg1IDEyLjc2MyAzLjkyMDg4IDEyLjg2OTggNC4zMDM5N0MxMi45NzY5IDQuNjg4MDIgMTMuMDMwMyA1LjA4NjY0IDEzLjAzMDMgNS40OTk1M0MxMy4wMzAzIDYuMTE2NzIgMTIuOTEyNyA2LjY5MTA3IDEyLjY3NjcgNy4yMjEzNEMxMi40NDEzIDcuNzUwMDMgMTIuMTA1NiA4LjIyOTAzIDExLjY3MDggOC42NTgwNlpNOS42MjE2MiAxMC41SDcuNDA4NjdWMTIuNzAxMkM3LjQwODY3IDEyLjc4MjMgNy40MzcyIDEyLjg1MTIgNy40OTg4OCAxMi45MTI3QzcuNTYwNTggMTIuOTc0MSA3LjYzMDA3IDEzLjAwMjggNy43MTIwNSAxMy4wMDI4SDkuMzE4MjNDOS40MDAyMiAxMy4wMDI4IDkuNDY5NzEgMTIuOTc0MSA5LjUzMTQgMTIuOTEyN0M5LjU5MzA5IDEyLjg1MTIgOS42MjE2MiAxMi43ODIzIDkuNjIxNjIgMTIuNzAxMlYxMC41WiIgZmlsbD0iI0MyQzJDMiIvPgo8L3N2Zz4K") center center no-repeat; -} - -.monaco-editor .margin-view-zones .lightbulb-glyph:hover { - cursor: pointer; -} - -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -.monaco-diff-editor .diff-review-line-number { - text-align: right; - display: inline-block; -} - -.monaco-diff-editor .diff-review { - position: absolute; - -webkit-user-select: none; - -ms-user-select: none; - -khtml-user-select: none; - -moz-user-select: none; - -o-user-select: none; - user-select: none; -} - -.monaco-diff-editor .diff-review-summary { - padding-left: 10px; -} - -.monaco-diff-editor .diff-review-shadow { - position: absolute; -} - -.monaco-diff-editor .diff-review-row { - white-space: pre; -} - -.monaco-diff-editor .diff-review-table { - display: table; - min-width: 100%; -} - -.monaco-diff-editor .diff-review-row { - display: table-row; - width: 100%; -} - -.monaco-diff-editor .diff-review-cell { - display: table-cell; -} - -.monaco-diff-editor .diff-review-spacer { - display: inline-block; - width: 10px; -} - -.monaco-diff-editor .diff-review-actions { - display: inline-block; - position: absolute; - right: 10px; - top: 2px; -} - -.monaco-diff-editor .diff-review-actions .action-label { - width: 16px; - height: 16px; - margin: 2px 0; -} -.monaco-diff-editor .action-label.icon.close-diff-review { - background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04LjAwMDAxIDguNzA3MTFMMTEuNjQ2NSAxMi4zNTM2TDEyLjM1MzYgMTEuNjQ2NUw4LjcwNzExIDguMDAwMDFMMTIuMzUzNiA0LjM1MzU2TDExLjY0NjUgMy42NDY0NUw4LjAwMDAxIDcuMjkyOUw0LjM1MzU2IDMuNjQ2NDVMMy42NDY0NSA0LjM1MzU2TDcuMjkyOSA4LjAwMDAxTDMuNjQ2NDUgMTEuNjQ2NUw0LjM1MzU2IDEyLjM1MzZMOC4wMDAwMSA4LjcwNzExWiIgZmlsbD0iIzQyNDI0MiIvPgo8L3N2Zz4K") center center no-repeat; -} -.monaco-diff-editor.hc-black .action-label.icon.close-diff-review, -.monaco-diff-editor.vs-dark .action-label.icon.close-diff-review { - background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04LjAwMDAxIDguNzA3MTFMMTEuNjQ2NSAxMi4zNTM2TDEyLjM1MzYgMTEuNjQ2NUw4LjcwNzExIDguMDAwMDFMMTIuMzUzNiA0LjM1MzU2TDExLjY0NjUgMy42NDY0NUw4LjAwMDAxIDcuMjkyOUw0LjM1MzU2IDMuNjQ2NDVMMy42NDY0NSA0LjM1MzU2TDcuMjkyOSA4LjAwMDAxTDMuNjQ2NDUgMTEuNjQ2NUw0LjM1MzU2IDEyLjM1MzZMOC4wMDAwMSA4LjcwNzExWiIgZmlsbD0iI0M1QzVDNSIvPgo8L3N2Zz4K") center center no-repeat; -} -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -.context-view .monaco-menu { - min-width: 130px; -} - -.context-view-block { - position: fixed; - left:0; - top:0; - z-index: -1; - width: 100%; - height: 100%; -} -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -.monaco-menu .monaco-action-bar.vertical { - margin-left: 0; - overflow: visible; -} - -.monaco-menu .monaco-action-bar.vertical .actions-container { - display: block; -} - -.monaco-menu .monaco-action-bar.vertical .action-item { - padding: 0; - transform: none; - display: -ms-flexbox; - display: flex; -} - -.monaco-menu .monaco-action-bar.vertical .action-item.active { - transform: none; -} - -.monaco-menu .monaco-action-bar.vertical .action-menu-item { - -ms-flex: 1 1 auto; - flex: 1 1 auto; - display: -ms-flexbox; - display: flex; - height: 2em; - align-items: center; +.monaco-editor .zone-widget .zone-widget-container { + border-top-style: solid; + border-bottom-style: solid; + border-top-width: 0; + border-bottom-width: 0; position: relative; } -.monaco-menu .monaco-action-bar.vertical .action-label { - -ms-flex: 1 1 auto; - flex: 1 1 auto; - text-decoration: none; - padding: 0 1em; - background: none; - font-size: 12px; - line-height: 1; -} - -.monaco-menu .monaco-action-bar.vertical .keybinding, -.monaco-menu .monaco-action-bar.vertical .submenu-indicator { - display: inline-block; - -ms-flex: 2 1 auto; - flex: 2 1 auto; - padding: 0 1em; - text-align: right; - font-size: 12px; - line-height: 1; -} - -.monaco-menu .monaco-action-bar.vertical .submenu-indicator { - height: 100%; - -webkit-mask: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQuNTIwNTEgMTIuMzY0M0w5Ljg3NzkzIDdMNC41MjA1MSAxLjYzNTc0Mkw1LjEzNTc0IDEuMDIwNTA3OEwxMS4xMjIxIDdMNS4xMzU3NCAxMi45Nzk1TDQuNTIwNTEgMTIuMzY0M1oiIGZpbGw9ImJsYWNrIi8+Cjwvc3ZnPgo=") no-repeat 90% 50%/13px 13px; - mask: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQuNTIwNTEgMTIuMzY0M0w5Ljg3NzkzIDdMNC41MjA1MSAxLjYzNTc0Mkw1LjEzNTc0IDEuMDIwNTA3OEwxMS4xMjIxIDdMNS4xMzU3NCAxMi45Nzk1TDQuNTIwNTEgMTIuMzY0M1oiIGZpbGw9ImJsYWNrIi8+Cjwvc3ZnPgo=") no-repeat 90% 50%/13px 13px; -} - -.monaco-menu .monaco-action-bar.vertical .action-item.disabled .keybinding, -.monaco-menu .monaco-action-bar.vertical .action-item.disabled .submenu-indicator { - opacity: 0.4; -} - -.monaco-menu .monaco-action-bar.vertical .action-label:not(.separator) { - display: inline-block; - -webkit-box-sizing: border-box; - -o-box-sizing: border-box; - -moz-box-sizing: border-box; - -ms-box-sizing: border-box; - box-sizing: border-box; - margin: 0; -} - -.monaco-menu .monaco-action-bar.vertical .action-item { - position: static; - overflow: visible; -} - - -.monaco-menu .monaco-action-bar.vertical .action-item .monaco-submenu { - position: absolute; -} - -.monaco-menu .monaco-action-bar.vertical .action-label.separator { - padding: 0.5em 0 0 0; - margin-bottom: 0.5em; - width: 100%; -} - -.monaco-menu .monaco-action-bar.vertical .action-label.separator.text { - padding: 0.7em 1em 0.1em 1em; - font-weight: bold; - opacity: 1; -} - -.monaco-menu .monaco-action-bar.vertical .action-label:hover { - color: inherit; -} - -.monaco-menu .monaco-action-bar.vertical .menu-item-check { - position: absolute; - visibility: hidden; - -webkit-mask: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC40MzE1IDMuMzIzMkw1Ljk2MTUxIDEzLjMyMzJMNS4xNzA4IDEzLjI4NzRMMS44MjA4IDguNTE3NEwyLjYzOTE1IDcuOTQyNjhMNS42MTY5NyAxMi4xODI3TDEzLjY2ODQgMi42NzY4OEwxNC40MzE1IDMuMzIzMloiIGZpbGw9IiNDNUM1QzUiLz4KPC9zdmc+Cg==") no-repeat 50% 56%/15px 15px; - mask: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC40MzE1IDMuMzIzMkw1Ljk2MTUxIDEzLjMyMzJMNS4xNzA4IDEzLjI4NzRMMS44MjA4IDguNTE3NEwyLjYzOTE1IDcuOTQyNjhMNS42MTY5NyAxMi4xODI3TDEzLjY2ODQgMi42NzY4OEwxNC40MzE1IDMuMzIzMloiIGZpbGw9IiNDNUM1QzUiLz4KPC9zdmc+Cg==") no-repeat 50% 56%/15px 15px; - width: 1em; - height: 100%; -} - -.monaco-menu .monaco-action-bar.vertical .action-menu-item.checked .menu-item-check { - visibility: visible; -} - -/* Context Menu */ - -.context-view.monaco-menu-container { - outline: 0; - border: none; - -webkit-animation: fadeIn 0.083s linear; - -o-animation: fadeIn 0.083s linear; - -moz-animation: fadeIn 0.083s linear; - -ms-animation: fadeIn 0.083s linear; - animation: fadeIn 0.083s linear; -} - -.context-view.monaco-menu-container :focus, -.context-view.monaco-menu-container .monaco-action-bar.vertical:focus, -.context-view.monaco-menu-container .monaco-action-bar.vertical :focus { - outline: 0; -} - -.monaco-menu .monaco-action-bar.vertical .action-item { - border: thin solid transparent; /* prevents jumping behaviour on hover or focus */ -} - - -/* High Contrast Theming */ -.hc-black .context-view.monaco-menu-container { - box-shadow: none; -} - -.hc-black .monaco-menu .monaco-action-bar.vertical .action-item.focused { - background: none; -} - -/* Menubar styles */ - -.menubar { - display: flex; - flex-shrink: 1; - box-sizing: border-box; - height: 30px; - overflow: hidden; - flex-wrap: wrap; -} - -.fullscreen .menubar { - margin: 0px; - padding: 0px 5px; -} - -.menubar > .menubar-menu-button { - align-items: center; - box-sizing: border-box; - padding: 0px 8px; - cursor: default; - -webkit-app-region: no-drag; - zoom: 1; - white-space: nowrap; - outline: 0; -} - -.menubar .menubar-menu-items-holder { - position: absolute; - left: 0px; - opacity: 1; - z-index: 2000; -} - -.menubar .menubar-menu-items-holder.monaco-menu-container { - outline: 0; - border: none; -} - -.menubar .menubar-menu-items-holder.monaco-menu-container :focus { - outline: 0; -} - -.menubar .toolbar-toggle-more { - background-position: center; - background-repeat: no-repeat; - background-size: 14px; - width: 20px; - height: 100%; -} - -.menubar .toolbar-toggle-more { - display: inline-block; - padding: 0; - -webkit-mask: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQgOEM0IDguMTk3NzggMy45NDEzNSA4LjM5MTEyIDMuODMxNDcgOC41NTU1N0MzLjcyMTU5IDguNzIwMDIgMy41NjU0MSA4Ljg0ODE5IDMuMzgyNjggOC45MjM4OEMzLjE5OTk2IDguOTk5NTcgMi45OTg4OSA5LjAxOTM3IDIuODA0OTEgOC45ODA3OUMyLjYxMDkzIDguOTQyMiAyLjQzMjc1IDguODQ2OTYgMi4yOTI4OSA4LjcwNzExQzIuMTUzMDQgOC41NjcyNSAyLjA1NzggOC4zODkwNyAyLjAxOTIyIDguMTk1MDlDMS45ODA2MyA4LjAwMTExIDIuMDAwNDMgNy44MDAwNCAyLjA3NjEyIDcuNjE3MzJDMi4xNTE4MSA3LjQzNDU5IDIuMjc5OTggNy4yNzg0MSAyLjQ0NDQzIDcuMTY4NTNDMi42MDg4OCA3LjA1ODY1IDIuODAyMjIgNyAzIDdDMy4yNjUyMiA3IDMuNTE5NTcgNy4xMDUzNiAzLjcwNzExIDcuMjkyODlDMy44OTQ2NCA3LjQ4MDQzIDQgNy43MzQ3OCA0IDhaIiBmaWxsPSIjQzVDNUM1Ii8+CjxwYXRoIGQ9Ik05IDhDOSA4LjE5Nzc4IDguOTQxMzUgOC4zOTExMiA4LjgzMTQ3IDguNTU1NTdDOC43MjE1OSA4LjcyMDAyIDguNTY1NDEgOC44NDgxOSA4LjM4MjY4IDguOTIzODhDOC4xOTk5NiA4Ljk5OTU3IDcuOTk4ODkgOS4wMTkzNyA3LjgwNDkxIDguOTgwNzlDNy42MTA5MyA4Ljk0MjIgNy40MzI3NSA4Ljg0Njk2IDcuMjkyODkgOC43MDcxMUM3LjE1MzA0IDguNTY3MjUgNy4wNTc4IDguMzg5MDcgNy4wMTkyMiA4LjE5NTA5QzYuOTgwNjMgOC4wMDExMSA3LjAwMDQzIDcuODAwMDQgNy4wNzYxMiA3LjYxNzMyQzcuMTUxODEgNy40MzQ1OSA3LjI3OTk4IDcuMjc4NDEgNy40NDQ0MyA3LjE2ODUzQzcuNjA4ODggNy4wNTg2NSA3LjgwMjIyIDcgOCA3QzguMjY1MjIgNyA4LjUxOTU3IDcuMTA1MzYgOC43MDcxMSA3LjI5Mjg5QzguODk0NjQgNy40ODA0MyA5IDcuNzM0NzggOSA4WiIgZmlsbD0iI0M1QzVDNSIvPgo8cGF0aCBkPSJNMTQgOEMxNCA4LjE5Nzc4IDEzLjk0MTQgOC4zOTExMiAxMy44MzE1IDguNTU1NTdDMTMuNzIxNiA4LjcyMDAyIDEzLjU2NTQgOC44NDgxOSAxMy4zODI3IDguOTIzODhDMTMuMiA4Ljk5OTU3IDEyLjk5ODkgOS4wMTkzNyAxMi44MDQ5IDguOTgwNzlDMTIuNjEwOSA4Ljk0MjIgMTIuNDMyNyA4Ljg0Njk2IDEyLjI5MjkgOC43MDcxMUMxMi4xNTMgOC41NjcyNSAxMi4wNTc4IDguMzg5MDcgMTIuMDE5MiA4LjE5NTA5QzExLjk4MDYgOC4wMDExMSAxMi4wMDA0IDcuODAwMDQgMTIuMDc2MSA3LjYxNzMyQzEyLjE1MTggNy40MzQ1OSAxMi4yOCA3LjI3ODQxIDEyLjQ0NDQgNy4xNjg1M0MxMi42MDg5IDcuMDU4NjUgMTIuODAyMiA3IDEzIDdDMTMuMjY1MiA3IDEzLjUxOTYgNy4xMDUzNiAxMy43MDcxIDcuMjkyODlDMTMuODk0NiA3LjQ4MDQzIDE0IDcuNzM0NzggMTQgOFoiIGZpbGw9IiNDNUM1QzUiLz4KPC9zdmc+Cg==") no-repeat 50% 55%/14px 14px; - mask: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQgOEM0IDguMTk3NzggMy45NDEzNSA4LjM5MTEyIDMuODMxNDcgOC41NTU1N0MzLjcyMTU5IDguNzIwMDIgMy41NjU0MSA4Ljg0ODE5IDMuMzgyNjggOC45MjM4OEMzLjE5OTk2IDguOTk5NTcgMi45OTg4OSA5LjAxOTM3IDIuODA0OTEgOC45ODA3OUMyLjYxMDkzIDguOTQyMiAyLjQzMjc1IDguODQ2OTYgMi4yOTI4OSA4LjcwNzExQzIuMTUzMDQgOC41NjcyNSAyLjA1NzggOC4zODkwNyAyLjAxOTIyIDguMTk1MDlDMS45ODA2MyA4LjAwMTExIDIuMDAwNDMgNy44MDAwNCAyLjA3NjEyIDcuNjE3MzJDMi4xNTE4MSA3LjQzNDU5IDIuMjc5OTggNy4yNzg0MSAyLjQ0NDQzIDcuMTY4NTNDMi42MDg4OCA3LjA1ODY1IDIuODAyMjIgNyAzIDdDMy4yNjUyMiA3IDMuNTE5NTcgNy4xMDUzNiAzLjcwNzExIDcuMjkyODlDMy44OTQ2NCA3LjQ4MDQzIDQgNy43MzQ3OCA0IDhaIiBmaWxsPSIjQzVDNUM1Ii8+CjxwYXRoIGQ9Ik05IDhDOSA4LjE5Nzc4IDguOTQxMzUgOC4zOTExMiA4LjgzMTQ3IDguNTU1NTdDOC43MjE1OSA4LjcyMDAyIDguNTY1NDEgOC44NDgxOSA4LjM4MjY4IDguOTIzODhDOC4xOTk5NiA4Ljk5OTU3IDcuOTk4ODkgOS4wMTkzNyA3LjgwNDkxIDguOTgwNzlDNy42MTA5MyA4Ljk0MjIgNy40MzI3NSA4Ljg0Njk2IDcuMjkyODkgOC43MDcxMUM3LjE1MzA0IDguNTY3MjUgNy4wNTc4IDguMzg5MDcgNy4wMTkyMiA4LjE5NTA5QzYuOTgwNjMgOC4wMDExMSA3LjAwMDQzIDcuODAwMDQgNy4wNzYxMiA3LjYxNzMyQzcuMTUxODEgNy40MzQ1OSA3LjI3OTk4IDcuMjc4NDEgNy40NDQ0MyA3LjE2ODUzQzcuNjA4ODggNy4wNTg2NSA3LjgwMjIyIDcgOCA3QzguMjY1MjIgNyA4LjUxOTU3IDcuMTA1MzYgOC43MDcxMSA3LjI5Mjg5QzguODk0NjQgNy40ODA0MyA5IDcuNzM0NzggOSA4WiIgZmlsbD0iI0M1QzVDNSIvPgo8cGF0aCBkPSJNMTQgOEMxNCA4LjE5Nzc4IDEzLjk0MTQgOC4zOTExMiAxMy44MzE1IDguNTU1NTdDMTMuNzIxNiA4LjcyMDAyIDEzLjU2NTQgOC44NDgxOSAxMy4zODI3IDguOTIzODhDMTMuMiA4Ljk5OTU3IDEyLjk5ODkgOS4wMTkzNyAxMi44MDQ5IDguOTgwNzlDMTIuNjEwOSA4Ljk0MjIgMTIuNDMyNyA4Ljg0Njk2IDEyLjI5MjkgOC43MDcxMUMxMi4xNTMgOC41NjcyNSAxMi4wNTc4IDguMzg5MDcgMTIuMDE5MiA4LjE5NTA5QzExLjk4MDYgOC4wMDExMSAxMi4wMDA0IDcuODAwMDQgMTIuMDc2MSA3LjYxNzMyQzEyLjE1MTggNy40MzQ1OSAxMi4yOCA3LjI3ODQxIDEyLjQ0NDQgNy4xNjg1M0MxMi42MDg5IDcuMDU4NjUgMTIuODAyMiA3IDEzIDdDMTMuMjY1MiA3IDEzLjUxOTYgNy4xMDUzNiAxMy43MDcxIDcuMjkyODlDMTMuODk0NiA3LjQ4MDQzIDE0IDcuNzM0NzggMTQgOFoiIGZpbGw9IiNDNUM1QzUiLz4KPC9zdmc+Cg==") no-repeat 50% 55%/14px 14px; -} /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ -.context-view { - position: absolute; - z-index: 2000; +.monaco-dropdown { + height: 100%; + padding: 0; } + +.monaco-dropdown > .dropdown-label { + cursor: pointer; + height: 100%; +} + +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +/* -- zone widget */ +.monaco-editor .zone-widget .zone-widget-container.reference-zone-widget { + border-top-width: 1px; + border-bottom-width: 1px; +} + +.monaco-editor .reference-zone-widget .inline { + display: inline-block; + vertical-align: top; +} + +.monaco-editor .reference-zone-widget .messages { + height: 100%; + width: 100%; + text-align: center; + padding: 3em 0; +} + +.monaco-editor .reference-zone-widget .ref-tree { + line-height: 23px; +} + +.monaco-editor .reference-zone-widget .ref-tree .reference { + text-overflow: ellipsis; + overflow: hidden; +} + +.monaco-editor .reference-zone-widget .ref-tree .reference-file { + display: inline-flex; + width: 100%; + height: 100%; +} + +.monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .selected .reference-file { + color: inherit !important; +} + +.monaco-editor .reference-zone-widget .ref-tree .reference-file .count { + margin-right: 12px; + margin-left: auto; +} + +/* High Contrast Theming */ + +.monaco-editor.hc-black .reference-zone-widget .ref-tree .reference-file { + font-weight: bold; +} + +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +/* ---------- Icon label ---------- */ + +.monaco-icon-label { + display: flex; /* required for icons support :before rule */ + overflow: hidden; + text-overflow: ellipsis; +} + +.monaco-icon-label::before { + + /* svg icons rendered as background image */ + background-size: 16px; + background-position: left center; + background-repeat: no-repeat; + padding-right: 6px; + width: 16px; + height: 22px; + line-height: inherit !important; + display: inline-block; + + /* fonts icons */ + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + vertical-align: top; + + flex-shrink: 0; /* fix for https://github.com/Microsoft/vscode/issues/13787 */ +} + +.monaco-icon-label > .monaco-icon-label-container { + min-width: 0; + overflow: hidden; + text-overflow: ellipsis; + flex: 1; +} + +.monaco-icon-label > .monaco-icon-label-container > .monaco-icon-name-container > .label-name { + color: inherit; + white-space: pre; /* enable to show labels that include multiple whitespaces */ +} + +.monaco-icon-label > .monaco-icon-label-container > .monaco-icon-name-container > .label-name > .label-separator { + margin: 0 2px; + opacity: 0.5; +} + +.monaco-icon-label > .monaco-icon-label-container > .monaco-icon-description-container > .label-description { + opacity: .7; + margin-left: 0.5em; + font-size: 0.9em; + white-space: pre; /* enable to show labels that include multiple whitespaces */ +} + +.vs .monaco-icon-label > .monaco-icon-label-container > .monaco-icon-description-container > .label-description { + opacity: .95; +} + +.monaco-icon-label.italic > .monaco-icon-label-container > .monaco-icon-name-container > .label-name, +.monaco-icon-label.italic > .monaco-icon-description-container > .label-description { + font-style: italic; +} + +.monaco-icon-label.strikethrough > .monaco-icon-label-container > .monaco-icon-name-container > .label-name, +.monaco-icon-label.strikethrough > .monaco-icon-description-container > .label-description { + text-decoration: line-through; +} + +.monaco-icon-label::after { + opacity: 0.75; + font-size: 90%; + font-weight: 600; + padding: 0 16px 0 5px; + text-align: center; +} + +/* make sure selection color wins when a label is being selected */ +.monaco-list:focus .selected .monaco-icon-label, /* list */ +.monaco-list:focus .selected .monaco-icon-label::after +{ + color: inherit !important; +} + +.monaco-list-row.focused.selected .label-description, +.monaco-list-row.selected .label-description { + opacity: .8; +} + +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +.monaco-count-badge { + padding: 3px 6px; + border-radius: 11px; + font-size: 11px; + min-width: 18px; + min-height: 18px; + line-height: 11px; + font-weight: normal; + text-align: center; + display: inline-block; + box-sizing: border-box; +} + +.monaco-count-badge.long { + padding: 2px 3px; + border-radius: 2px; + min-height: auto; + line-height: normal; +} + /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. @@ -2196,12 +1725,9 @@ } .monaco-list.mouse-support { - -webkit-user-select: none; - -khtml-user-select: none; - -moz-user-select: -moz-none; - -ms-user-select: none; - -o-user-select: none; user-select: none; + -webkit-user-select: none; + -ms-user-select: none; } .monaco-list > .monaco-scrollable-element { @@ -2221,10 +1747,7 @@ .monaco-list-row { position: absolute; - -moz-box-sizing: border-box; - -o-box-sizing: border-box; - -ms-box-sizing: border-box; - box-sizing: border-box; + box-sizing: border-box; overflow: hidden; width: 100%; } @@ -2244,6 +1767,10 @@ outline: 0 !important; } +.monaco-list:focus .monaco-list-row.selected .codicon { + color: inherit; +} + /* Dnd */ .monaco-drag-image { display: inline-block; @@ -2300,54 +1827,24 @@ } .monaco-list-type-filter > .controls > * { + border: none; box-sizing: border-box; + -webkit-appearance: none; + -moz-appearance: none; + background: none; width: 16px; height: 16px; - margin: 0 0 0 2px; flex-shrink: 0; + margin: 0; + padding: 0; + display: flex; + align-items: center; + justify-content: center; + cursor: pointer; } .monaco-list-type-filter > .controls > .filter { - -webkit-appearance: none; - width: 16px; - height: 16px; - background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEgMTJMMSAxMUgxMFYxMkgxWk0xIDdIMTVWOEgxTDEgN1pNMTIgM1Y0SDFMMSAzSDEyWiIgZmlsbD0iIzQyNDI0MiIvPgo8L3N2Zz4K"); - background-position: 50% 50%; - cursor: pointer; -} - -.monaco-list-type-filter > .controls > .filter:checked { - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTYgMTJWMTFIMTBWMTJINlpNNCA3SDEyVjhINFY3Wk0xNCAzVjRIMlYzSDE0WiIgZmlsbD0iIzQyNDI0MiIvPgo8L3N2Zz4K"); -} - -.vs-dark .monaco-list-type-filter > .controls > .filter { - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEgMTJMMSAxMUgxMFYxMkgxWk0xIDdIMTVWOEgxTDEgN1pNMTIgM1Y0SDFMMSAzSDEyWiIgZmlsbD0iI0M1QzVDNSIvPgo8L3N2Zz4K"); -} - -.vs-dark .monaco-list-type-filter > .controls > .filter:checked { - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTYgMTJWMTFIMTBWMTJINlpNNCA3SDEyVjhINFY3Wk0xNCAzVjRIMlYzSDE0WiIgZmlsbD0iI0M1QzVDNSIvPgo8L3N2Zz4K"); -} - -.hc-black .monaco-list-type-filter > .controls > .filter { - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEgMTJMMSAxMUgxMFYxMkgxWk0xIDdIMTVWOEgxTDEgN1pNMTIgM1Y0SDFMMSAzSDEyWiIgZmlsbD0iI0M1QzVDNSIvPgo8L3N2Zz4K"); -} - -.hc-black .monaco-list-type-filter > .controls > .filter:checked { - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTYgMTJWMTFIMTBWMTJINlpNNCA3SDEyVjhINFY3Wk0xNCAzVjRIMlYzSDE0WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg=="); -} - -.monaco-list-type-filter > .controls > .clear { - border: none; - background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04LjAwMDAxIDguNzA3MTRMMTEuNjQ2NSAxMi4zNTM2TDEyLjM1MzYgMTEuNjQ2NUw4LjcwNzExIDguMDAwMDRMMTIuMzUzNiA0LjM1MzU5TDExLjY0NjUgMy42NDY0OEw4LjAwMDAxIDcuMjkyOTNMNC4zNTM1NiAzLjY0NjQ4TDMuNjQ2NDUgNC4zNTM1OUw3LjI5MjkgOC4wMDAwNEwzLjY0NjQ1IDExLjY0NjVMNC4zNTM1NiAxMi4zNTM2TDguMDAwMDEgOC43MDcxNFoiIGZpbGw9IiM0MjQyNDIiLz4KPC9zdmc+Cg=="); - cursor: pointer; -} - -.vs-dark .monaco-list-type-filter > .controls > .clear { - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04LjAwMDAxIDguNzA3MTRMMTEuNjQ2NSAxMi4zNTM2TDEyLjM1MzYgMTEuNjQ2NUw4LjcwNzExIDguMDAwMDRMMTIuMzUzNiA0LjM1MzU5TDExLjY0NjUgMy42NDY0OEw4LjAwMDAxIDcuMjkyOTNMNC4zNTM1NiAzLjY0NjQ4TDMuNjQ2NDUgNC4zNTM1OUw3LjI5MjkgOC4wMDAwNEwzLjY0NjQ1IDExLjY0NjVMNC4zNTM1NiAxMi4zNTM2TDguMDAwMDEgOC43MDcxNFoiIGZpbGw9IiNDNUM1QzUiLz4KPC9zdmc+Cg=="); -} - -.hc-black .monaco-list-type-filter > .controls > .clear { - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04LjAwMDAxIDguNzA3MTRMMTEuNjQ2NSAxMi4zNTM2TDEyLjM1MzYgMTEuNjQ2NUw4LjcwNzExIDguMDAwMDRMMTIuMzUzNiA0LjM1MzU5TDExLjY0NjUgMy42NDY0OEw4LjAwMDAxIDcuMjkyOTNMNC4zNTM1NiAzLjY0NjQ4TDMuNjQ2NDUgNC4zNTM1OUw3LjI5MjkgOC4wMDAwNEwzLjY0NjQ1IDExLjY0NjVMNC4zNTM1NiAxMi4zNTM2TDguMDAwMDEgOC43MDcxNFoiIGZpbGw9IiNDNUM1QzUiLz4KPC9zdmc+Cg=="); + margin-left: 4px; } .monaco-list-type-filter-message { @@ -2377,6 +1874,7 @@ .monaco-list-type-filter.dragging { cursor: grabbing; } + /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. @@ -2393,7 +1891,7 @@ height: 100%; position: absolute; top: 0; - left: 18px; + left: 16px; pointer-events: none; } @@ -2420,9 +1918,14 @@ .monaco-tl-twistie { font-size: 10px; text-align: right; - margin-right: 6px; + padding-right: 6px; flex-shrink: 0; width: 16px; + display: flex !important; + align-items: center; + justify-content: center; + color: inherit !important; + transform: translateX(3px); } .monaco-tl-contents { @@ -2430,45 +1933,1964 @@ overflow: hidden; } -.monaco-tl-twistie.collapsible { - background-size: 16px; - background-position: 3px 50%; +.monaco-tl-twistie.collapsed::before { + transform: rotate(-90deg); +} + +.monaco-tl-twistie.codicon-tree-item-loading::before { + /* Use steps to throttle FPS to reduce CPU usage */ + animation: codicon-spin 1.25s steps(30) infinite; +} + +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +.monaco-split-view2 { + position: relative; + width: 100%; + height: 100%; +} + +.monaco-split-view2 > .sash-container { + position: absolute; + width: 100%; + height: 100%; + pointer-events: none; +} + +.monaco-split-view2 > .sash-container > .monaco-sash { + pointer-events: initial; +} + +.monaco-split-view2 > .split-view-container { + width: 100%; + height: 100%; + white-space: nowrap; + position: relative; +} + +.monaco-split-view2 > .split-view-container > .split-view-view { + white-space: initial; + position: absolute; +} + +.monaco-split-view2 > .split-view-container > .split-view-view:not(.visible) { + display: none; +} + +.monaco-split-view2.vertical > .split-view-container > .split-view-view { + width: 100%; +} + +.monaco-split-view2.horizontal > .split-view-container > .split-view-view { + height: 100%; +} + +.monaco-split-view2.separator-border > .split-view-container > .split-view-view:not(:first-child)::before { + content: ' '; + position: absolute; + top: 0; + left: 0; + z-index: 5; + pointer-events: none; + background-color: var(--separator-border); +} + +.monaco-split-view2.separator-border.horizontal > .split-view-container > .split-view-view:not(:first-child)::before { + height: 100%; + width: 1px; +} + +.monaco-split-view2.separator-border.vertical > .split-view-container > .split-view-view:not(:first-child)::before { + height: 1px; + width: 100%; +} + +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +.monaco-editor .goto-definition-link { + text-decoration: underline; + cursor: pointer; +} +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +.colorpicker-widget { + height: 190px; + user-select: none; + -webkit-user-select: none; + -ms-user-select: none; +} + +.monaco-editor .colorpicker-hover:focus { + outline: none; +} + + +/* Header */ + +.colorpicker-header { + display: flex; + height: 24px; + position: relative; + background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII="); + background-size: 9px 9px; + image-rendering: pixelated; +} + +.colorpicker-header .picked-color { + width: 216px; + text-align: center; + line-height: 24px; + cursor: pointer; + color: white; + flex: 1; + text-align: center; +} + +.colorpicker-header .picked-color.light { + color: black; +} + +.colorpicker-header .original-color { + width: 74px; + z-index: inherit; + cursor: pointer; +} + + +/* Body */ + +.colorpicker-body { + display: flex; + padding: 8px; + position: relative; +} + +.colorpicker-body .saturation-wrap { + overflow: hidden; + height: 150px; + position: relative; + min-width: 220px; + flex: 1; +} + +.colorpicker-body .saturation-box { + height: 150px; + position: absolute; +} + +.colorpicker-body .saturation-selection { + width: 9px; + height: 9px; + margin: -5px 0 0 -5px; + border: 1px solid rgb(255, 255, 255); + border-radius: 100%; + box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.8); + position: absolute; +} + +.colorpicker-body .strip { + width: 25px; + height: 150px; +} + +.colorpicker-body .hue-strip { + position: relative; + margin-left: 8px; + cursor: grab; + background: linear-gradient(to bottom, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%); +} + +.colorpicker-body .opacity-strip { + position: relative; + margin-left: 8px; + cursor: grab; + background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII="); + background-size: 9px 9px; + image-rendering: pixelated; +} + +.colorpicker-body .strip.grabbing { + cursor: grabbing; +} + +.colorpicker-body .slider { + position: absolute; + top: 0; + left: -2px; + width: calc(100% + 4px); + height: 4px; + box-sizing: border-box; + border: 1px solid rgba(255, 255, 255, 0.71); + box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.85); +} + +.colorpicker-body .strip .overlay { + height: 150px; + pointer-events: none; +} + +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +.monaco-hover { + cursor: default; + position: absolute; + overflow: hidden; + z-index: 50; + user-select: text; + -webkit-user-select: text; + -ms-user-select: text; + box-sizing: initial; + animation: fadein 100ms linear; + line-height: 1.5em; +} + +.monaco-hover.hidden { + display: none; +} + +.monaco-hover .hover-contents { + padding: 4px 8px; +} + +.monaco-hover .markdown-hover > .hover-contents:not(.code-hover-contents) { + max-width: 500px; + word-wrap: break-word; +} + +.monaco-hover .markdown-hover > .hover-contents:not(.code-hover-contents) hr { + /* This is a strange rule but it avoids https://github.com/microsoft/vscode/issues/96795, just 100vw on its own caused the actual hover width to increase */ + min-width: calc(100% + 100vw); +} + +.monaco-hover p, +.monaco-hover .code, +.monaco-hover ul { + margin: 8px 0; +} + +.monaco-hover code { + font-family: var(--monaco-monospace-font); +} + +.monaco-hover hr { + margin-top: 4px; + margin-bottom: -4px; + margin-left: -10px; + margin-right: -10px; + height: 1px; +} + +.monaco-hover p:first-child, +.monaco-hover .code:first-child, +.monaco-hover ul:first-child { + margin-top: 0; +} + +.monaco-hover p:last-child, +.monaco-hover .code:last-child, +.monaco-hover ul:last-child { + margin-bottom: 0; +} + +/* MarkupContent Layout */ +.monaco-hover ul { + padding-left: 20px; +} +.monaco-hover ol { + padding-left: 20px; +} + +.monaco-hover li > p { + margin-bottom: 0; +} + +.monaco-hover li > ul { + margin-top: 0; +} + +.monaco-hover code { + border-radius: 3px; + padding: 0 0.4em; +} + +.monaco-hover .monaco-tokenized-source { + white-space: pre-wrap; + word-break: break-all; +} + +.monaco-hover .hover-row.status-bar { + font-size: 12px; + line-height: 22px; +} + +.monaco-hover .hover-row.status-bar .actions { + display: flex; + padding: 0px 8px; +} + +.monaco-hover .hover-row.status-bar .actions .action-container { + margin-right: 16px; + cursor: pointer; +} + +.monaco-hover .hover-row.status-bar .actions .action-container .action .icon { + padding-right: 4px; +} + +.monaco-hover .markdown-hover .hover-contents .codicon { + color: inherit; + font-size: inherit; + vertical-align: middle; +} + +.monaco-hover .hover-contents a.code-link:before { + content: '('; +} +.monaco-hover .hover-contents a.code-link:after { + content: ')'; +} + +.monaco-hover .hover-contents a.code-link { + color: inherit; +} +.monaco-hover .hover-contents a.code-link > span { + text-decoration: underline; + /** Hack to force underline to show **/ + border-bottom: 1px solid transparent; + text-underline-position: under; +} + +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +.monaco-editor .iPadShowKeyboard { + width: 58px; + min-width: 0; + height: 36px; + min-height: 0; + margin: 0; + padding: 0; + position: absolute; + resize: none; + overflow: hidden; + background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCA1MyAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNDguMDM2NCA0LjAxMDQySDQuMDA3NzlMNC4wMDc3OSAzMi4wMjg2SDQ4LjAzNjRWNC4wMTA0MlpNNC4wMDc3OSAwLjAwNzgxMjVDMS43OTcyMSAwLjAwNzgxMjUgMC4wMDUxODc5OSAxLjc5OTg0IDAuMDA1MTg3OTkgNC4wMTA0MlYzMi4wMjg2QzAuMDA1MTg3OTkgMzQuMjM5MiAxLjc5NzIxIDM2LjAzMTIgNC4wMDc3OSAzNi4wMzEySDQ4LjAzNjRDNTAuMjQ3IDM2LjAzMTIgNTIuMDM5IDM0LjIzOTIgNTIuMDM5IDMyLjAyODZWNC4wMTA0MkM1Mi4wMzkgMS43OTk4NCA1MC4yNDcgMC4wMDc4MTI1IDQ4LjAzNjQgMC4wMDc4MTI1SDQuMDA3NzlaTTguMDEwNDIgOC4wMTMwMkgxMi4wMTNWMTIuMDE1Nkg4LjAxMDQyVjguMDEzMDJaTTIwLjAxODIgOC4wMTMwMkgxNi4wMTU2VjEyLjAxNTZIMjAuMDE4MlY4LjAxMzAyWk0yNC4wMjA4IDguMDEzMDJIMjguMDIzNFYxMi4wMTU2SDI0LjAyMDhWOC4wMTMwMlpNMzYuMDI4NiA4LjAxMzAySDMyLjAyNlYxMi4wMTU2SDM2LjAyODZWOC4wMTMwMlpNNDAuMDMxMiA4LjAxMzAySDQ0LjAzMzlWMTIuMDE1Nkg0MC4wMzEyVjguMDEzMDJaTTE2LjAxNTYgMTYuMDE4Mkg4LjAxMDQyVjIwLjAyMDhIMTYuMDE1NlYxNi4wMTgyWk0yMC4wMTgyIDE2LjAxODJIMjQuMDIwOFYyMC4wMjA4SDIwLjAxODJWMTYuMDE4MlpNMzIuMDI2IDE2LjAxODJIMjguMDIzNFYyMC4wMjA4SDMyLjAyNlYxNi4wMTgyWk00NC4wMzM5IDE2LjAxODJWMjAuMDIwOEgzNi4wMjg2VjE2LjAxODJINDQuMDMzOVpNMTIuMDEzIDI0LjAyMzRIOC4wMTA0MlYyOC4wMjZIMTIuMDEzVjI0LjAyMzRaTTE2LjAxNTYgMjQuMDIzNEgzNi4wMjg2VjI4LjAyNkgxNi4wMTU2VjI0LjAyMzRaTTQ0LjAzMzkgMjQuMDIzNEg0MC4wMzEyVjI4LjAyNkg0NC4wMzM5VjI0LjAyMzRaIiBmaWxsPSIjNDI0MjQyIi8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDAiPgo8cmVjdCB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==") center center no-repeat; + border: 4px solid #F6F6F6; + border-radius: 4px; +} + +.monaco-editor.vs-dark .iPadShowKeyboard { + background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCA1MyAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNDguMDM2NCA0LjAxMDQySDQuMDA3NzlMNC4wMDc3OSAzMi4wMjg2SDQ4LjAzNjRWNC4wMTA0MlpNNC4wMDc3OSAwLjAwNzgxMjVDMS43OTcyMSAwLjAwNzgxMjUgMC4wMDUxODc5OSAxLjc5OTg0IDAuMDA1MTg3OTkgNC4wMTA0MlYzMi4wMjg2QzAuMDA1MTg3OTkgMzQuMjM5MiAxLjc5NzIxIDM2LjAzMTIgNC4wMDc3OSAzNi4wMzEySDQ4LjAzNjRDNTAuMjQ3IDM2LjAzMTIgNTIuMDM5IDM0LjIzOTIgNTIuMDM5IDMyLjAyODZWNC4wMTA0MkM1Mi4wMzkgMS43OTk4NCA1MC4yNDcgMC4wMDc4MTI1IDQ4LjAzNjQgMC4wMDc4MTI1SDQuMDA3NzlaTTguMDEwNDIgOC4wMTMwMkgxMi4wMTNWMTIuMDE1Nkg4LjAxMDQyVjguMDEzMDJaTTIwLjAxODIgOC4wMTMwMkgxNi4wMTU2VjEyLjAxNTZIMjAuMDE4MlY4LjAxMzAyWk0yNC4wMjA4IDguMDEzMDJIMjguMDIzNFYxMi4wMTU2SDI0LjAyMDhWOC4wMTMwMlpNMzYuMDI4NiA4LjAxMzAySDMyLjAyNlYxMi4wMTU2SDM2LjAyODZWOC4wMTMwMlpNNDAuMDMxMiA4LjAxMzAySDQ0LjAzMzlWMTIuMDE1Nkg0MC4wMzEyVjguMDEzMDJaTTE2LjAxNTYgMTYuMDE4Mkg4LjAxMDQyVjIwLjAyMDhIMTYuMDE1NlYxNi4wMTgyWk0yMC4wMTgyIDE2LjAxODJIMjQuMDIwOFYyMC4wMjA4SDIwLjAxODJWMTYuMDE4MlpNMzIuMDI2IDE2LjAxODJIMjguMDIzNFYyMC4wMjA4SDMyLjAyNlYxNi4wMTgyWk00NC4wMzM5IDE2LjAxODJWMjAuMDIwOEgzNi4wMjg2VjE2LjAxODJINDQuMDMzOVpNMTIuMDEzIDI0LjAyMzRIOC4wMTA0MlYyOC4wMjZIMTIuMDEzVjI0LjAyMzRaTTE2LjAxNTYgMjQuMDIzNEgzNi4wMjg2VjI4LjAyNkgxNi4wMTU2VjI0LjAyMzRaTTQ0LjAzMzkgMjQuMDIzNEg0MC4wMzEyVjI4LjAyNkg0NC4wMzM5VjI0LjAyMzRaIiBmaWxsPSIjQzVDNUM1Ii8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDAiPgo8cmVjdCB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==") center center no-repeat; + border: 4px solid #252526; +} +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +.monaco-editor .tokens-inspect-widget { + z-index: 50; + user-select: text; + -webkit-user-select: text; + -ms-user-select: text; + padding: 10px; +} + +.tokens-inspect-separator { + height: 1px; + border: 0; +} + +.monaco-editor .tokens-inspect-widget .tm-token { + font-family: var(--monaco-monospace-font); +} + +.monaco-editor .tokens-inspect-widget .tm-token-length { + font-weight: normal; + font-size: 60%; + float: right; +} + +.monaco-editor .tokens-inspect-widget .tm-metadata-table { + width: 100%; +} + +.monaco-editor .tokens-inspect-widget .tm-metadata-value { + font-family: var(--monaco-monospace-font); + text-align: right; +} + +.monaco-editor .tokens-inspect-widget .tm-token-type { + font-family: var(--monaco-monospace-font); +} + +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +.monaco-editor .detected-link, +.monaco-editor .detected-link-active { + text-decoration: underline; + text-underline-position: under; +} + +.monaco-editor .detected-link-active { + cursor: pointer; +} + +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +.monaco-editor .on-type-rename-decoration { + border-left: 1px solid transparent; + /* So border can be transparent */ + background-clip: padding-box; +} + +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +.monaco-editor .parameter-hints-widget { + z-index: 10; + display: flex; + flex-direction: column; + line-height: 1.5em; +} + +.monaco-editor .parameter-hints-widget > .wrapper { + max-width: 440px; + display: flex; + flex-direction: row; +} + +.monaco-editor .parameter-hints-widget.multiple { + min-height: 3.3em; + padding: 0; +} + +.monaco-editor .parameter-hints-widget.visible { + transition: left .05s ease-in-out; +} + +.monaco-editor .parameter-hints-widget p, +.monaco-editor .parameter-hints-widget ul { + margin: 8px 0; +} + +.monaco-editor .parameter-hints-widget .monaco-scrollable-element, +.monaco-editor .parameter-hints-widget .body { + display: flex; + flex: 1; + flex-direction: column; + min-height: 100%; +} + +.monaco-editor .parameter-hints-widget .signature { + padding: 4px 5px; +} + +.monaco-editor .parameter-hints-widget .docs { + padding: 0 10px 0 5px; + white-space: pre-wrap; +} + +.monaco-editor .parameter-hints-widget .docs.empty { + display: none; +} + +.monaco-editor .parameter-hints-widget .docs .markdown-docs { + white-space: initial; +} + +.monaco-editor .parameter-hints-widget .docs .markdown-docs code { + font-family: var(--monaco-monospace-font); +} + +.monaco-editor .parameter-hints-widget .docs .code { + white-space: pre-wrap; +} + +.monaco-editor .parameter-hints-widget .docs code { + border-radius: 3px; + padding: 0 0.4em; +} + +.monaco-editor .parameter-hints-widget .controls { + display: none; + flex-direction: column; + align-items: center; + min-width: 22px; + justify-content: flex-end; +} + +.monaco-editor .parameter-hints-widget.multiple .controls { + display: flex; + padding: 0 2px; +} + +.monaco-editor .parameter-hints-widget.multiple .button { + width: 16px; + height: 16px; background-repeat: no-repeat; - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik03Ljk3NjAzIDEwLjA3MTlMMTIuMzMzMyA1LjcxNDYxTDEyLjk1MjEgNi4zMzMzM0w4LjI4NTM5IDExTDcuNjY2NjcgMTFMMyA2LjMzMzMzTDMuNjE4NzIgNS43MTQ2MUw3Ljk3NjAzIDEwLjA3MTlaIiBmaWxsPSIjNDI0MjQyIi8+Cjwvc3ZnPgo="); + cursor: pointer; } -.monaco-tl-twistie.collapsible.collapsed:not(.loading) { +.monaco-editor .parameter-hints-widget .button.previous { + bottom: 24px; +} + +.monaco-editor .parameter-hints-widget .overloads { + text-align: center; + height: 12px; + line-height: 12px; + opacity: 0.5; + font-family: var(--monaco-monospace-font); +} + +.monaco-editor .parameter-hints-widget .signature .parameter.active { + font-weight: bold; + text-decoration: underline; +} + +.monaco-editor .parameter-hints-widget .documentation-parameter > .parameter { + font-weight: bold; + margin-right: 0.5em; +} + +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +.monaco-editor .rename-box { + z-index: 100; + color: inherit; +} + +.monaco-editor .rename-box.preview { + padding: 3px 3px 0 3px; +} + +.monaco-editor .rename-box .rename-input { + padding: 3px; + width: calc(100% - 6px); +} + +.monaco-editor .rename-box .rename-label { + display: none; + opacity: .8; +} + +.monaco-editor .rename-box.preview .rename-label { + display: inherit; +} + +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +.monaco-editor .snippet-placeholder { + min-width: 2px; + outline-style: solid; + outline-width: 1px; +} + +.monaco-editor .finish-snippet-placeholder { + outline-style: solid; + outline-width: 1px; +} + +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +/* Suggest widget*/ +.monaco-editor .suggest-widget { + z-index: 40; +} + +/** Initial widths **/ + +.monaco-editor .suggest-widget { + width: 430px; +} + +.monaco-editor .suggest-widget > .message, +.monaco-editor .suggest-widget > .tree, +.monaco-editor .suggest-widget > .details { + width: 100%; + border-style: solid; + border-width: 1px; + box-sizing: border-box; +} + +.monaco-editor.hc-black .suggest-widget > .message, +.monaco-editor.hc-black .suggest-widget > .tree, +.monaco-editor.hc-black .suggest-widget > .details { + border-width: 2px; +} + +/** Adjust width when docs are expanded to the side **/ +.monaco-editor .suggest-widget.docs-side { + width: 660px; +} + +.monaco-editor .suggest-widget.docs-side > .tree, +.monaco-editor .suggest-widget.docs-side > .details { + width: 50%; + float: left; +} + +.monaco-editor .suggest-widget.docs-side.list-right > .tree, +.monaco-editor .suggest-widget.docs-side.list-right > .details { + float: right; +} + +/* MarkupContent Layout */ +.monaco-editor .suggest-widget > .details ul { + padding-left: 20px; +} +.monaco-editor .suggest-widget > .details ol { + padding-left: 20px; +} + +.monaco-editor .suggest-widget > .details p code { + font-family: var(--monaco-monospace-font); +} + +/* Styles for Message element for when widget is loading or is empty */ +.monaco-editor .suggest-widget > .message { + padding-left: 22px; +} + +/** Styles for the list element **/ +.monaco-editor .suggest-widget > .tree { + height: 100%; +} + +.monaco-editor .suggest-widget .monaco-list { + user-select: none; + -webkit-user-select: none; + -ms-user-select: none; +} + +/** Styles for each row in the list element **/ + +.monaco-editor .suggest-widget .monaco-list .monaco-list-row { + display: flex; + -mox-box-sizing: border-box; + box-sizing: border-box; + padding-right: 10px; + background-repeat: no-repeat; + background-position: 2px 2px; + white-space: nowrap; + cursor: pointer; + touch-action: none; +} + +.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents { + flex: 1; + height: 100%; + overflow: hidden; + padding-left: 2px; +} + +.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main { + display: flex; + overflow: hidden; + text-overflow: ellipsis; + white-space: pre; + justify-content: space-between; +} + +.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .left, +.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right { + display: flex; +} + +.monaco-editor .suggest-widget:not(.frozen) .monaco-highlighted-label .highlight { + font-weight: bold; +} + +/** Status Bar **/ + +.monaco-editor .suggest-widget > .suggest-status-bar { + visibility: hidden; + + position: absolute; + left: 0; + + box-sizing: border-box; + + display: flex; + flex-flow: row nowrap; + justify-content: space-between; + + width: 100%; + + font-size: 80%; + + border-left-width: 1px; + border-left-style: solid; + border-right-width: 1px; + border-right-style: solid; + border-bottom-width: 1px; + border-bottom-style: solid; + + padding: 0 8px 0 4px; +} + +.monaco-editor .suggest-widget.list-right.docs-side > .suggest-status-bar { + left: auto; + right: 0; +} +.monaco-editor .suggest-widget.docs-side > .suggest-status-bar { + width: 50%; +} + +/** ReadMore Icon styles **/ + +.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .header > .codicon-close, +.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right > .readMore::before { + color: inherit; + opacity: 1; + font-size: 14px; + cursor: pointer; +} + +.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .header > .codicon-close { + position: absolute; + top: 2px; + right: 2px; +} + +.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .header > .codicon-close:hover, +.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right > .readMore:hover { + opacity: 1; +} + +/** signature, qualifier, type/details opacity **/ +.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .left > .signature-label, +.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .left > .qualifier-label, +.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right > .details-label { + opacity: 0.7; +} + +.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .left > .signature-label { + overflow: hidden; + text-overflow: ellipsis; +} + +.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .left > .qualifier-label { + margin-left: 4px; + opacity: 0.4; + font-size: 90%; + text-overflow: ellipsis; + overflow: hidden; + line-height: 17px; + align-self: center; +} + +/** Type Info and icon next to the label in the focused completion item **/ + +.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right > .details-label { + margin-left: 0.8em; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right > .details-label > .monaco-tokenized-source { + display: inline; +} + +/** Details: if using CompletionItem#details, show on focus **/ + +.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right > .details-label, +.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row.focused > .contents > .main > .right > .details-label { + display: none; +} + +.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused > .contents > .main > .right > .details-label { + display: inline; +} + +/** Details: if using CompletionItemLabel#details, always show **/ + +.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.string-label) > .contents > .main > .right > .details-label, +.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row.focused:not(.string-label) > .contents > .main > .right > .details-label { + display: inline; +} + +/** Ellipsis on hover **/ +.monaco-editor .suggest-widget:not(.docs-side) .monaco-list .monaco-list-row:hover > .contents > .main > .right.can-expand-details > .details-label { + width: calc(100% - 26px); +} + +.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .left { + flex-shrink: 1; + flex-grow: 1; + overflow: hidden; +} +.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .left > .monaco-icon-label { + flex-shrink: 0; +} +.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.string-label) > .contents > .main > .left > .monaco-icon-label { + max-width: 100%; +} +.monaco-editor .suggest-widget .monaco-list .monaco-list-row.string-label > .contents > .main > .left > .monaco-icon-label { + flex-shrink: 1; +} +.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right { + overflow: hidden; + margin-left: 16px; + flex-shrink: 0; + max-width: 45%; +} + +.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right > .readMore { display: inline-block; - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4wNzE5IDcuOTk5OTlMNS43MTQ2MSAxMi4zNTczTDYuMzMzMzMgMTIuOTc2TDExIDguMzA5MzVWNy42OTA2M0w2LjMzMzMzIDMuMDIzOTZMNS43MTQ2MSAzLjY0MjY4TDEwLjA3MTkgNy45OTk5OVoiIGZpbGw9IiM0MjQyNDIiLz4KPC9zdmc+Cg=="); + position: absolute; + right: 10px; + width: 18px; + height: 18px; + visibility: hidden; } -.vs-dark .monaco-tl-twistie.collapsible:not(.loading) { - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik03Ljk3NjAzIDEwLjA3MTlMMTIuMzMzMyA1LjcxNDYxTDEyLjk1MjEgNi4zMzMzM0w4LjI4NTM5IDExTDcuNjY2NjcgMTFMMyA2LjMzMzMzTDMuNjE4NzIgNS43MTQ2MUw3Ljk3NjAzIDEwLjA3MTlaIiBmaWxsPSIjQzVDNUM1Ii8+Cjwvc3ZnPgo="); +/** Do NOT display ReadMore when docs is side/below **/ +.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row > .contents > .main > .right > .readMore, +.monaco-editor .suggest-widget.docs-below .monaco-list .monaco-list-row > .contents > .main > .right > .readMore { + display: none !important; } -.vs-dark .monaco-tl-twistie.collapsible.collapsed:not(.loading) { - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4wNzE5IDcuOTk5OTlMNS43MTQ2MSAxMi4zNTczTDYuMzMzMzMgMTIuOTc2TDExIDguMzA5MzVWNy42OTA2NEw2LjMzMzMzIDMuMDIzOTdMNS43MTQ2MSAzLjY0MjY5TDEwLjA3MTkgNy45OTk5OVoiIGZpbGw9IiNDNUM1QzUiLz4KPC9zdmc+Cg=="); +/** Do NOT display ReadMore when using plain CompletionItemLabel (details/documentation might not be resolved) **/ +.monaco-editor .suggest-widget .monaco-list .monaco-list-row.string-label > .contents > .main > .right > .readMore { + display: none; +} +/** Focused item can show ReadMore, but can't when docs is side/below **/ +.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused.string-label > .contents > .main > .right > .readMore { + display: inline-block; } -.hc-black .monaco-tl-twistie.collapsible:not(.loading) { - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik03Ljk3NjAzIDEwLjA3MTlMMTIuMzMzMyA1LjcxNDYxTDEyLjk1MjEgNi4zMzMzM0w4LjI4NTM5IDExTDcuNjY2NjcgMTFMMyA2LjMzMzMzTDMuNjE4NzIgNS43MTQ2MUw3Ljk3NjAzIDEwLjA3MTlaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K"); +.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row > .contents > .main > .right > .readMore, +.monaco-editor .suggest-widget.docs-below .monaco-list .monaco-list-row > .contents > .main > .right > .readMore { + display: none; } -.hc-black .monaco-tl-twistie.collapsible.collapsed:not(.loading) { - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4wNzE5IDcuOTk5OTlMNS43MTQ2MSAxMi4zNTczTDYuMzMzMzMgMTIuOTc2TDExIDguMzA5MzVWNy42OTA2M0w2LjMzMzMzIDMuMDIzOTZMNS43MTQ2MSAzLjY0MjY4TDEwLjA3MTkgNy45OTk5OVoiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo="); +.monaco-editor .suggest-widget .monaco-list .monaco-list-row:hover > .contents > .main > .right > .readMore { + visibility: visible; } -.monaco-tl-twistie.loading { - background-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJyBzdGFuZGFsb25lPSdubycgPz4KPHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZlcnNpb249JzEuMScgd2lkdGg9JzEwcHgnIGhlaWdodD0nMTBweCc+Cgk8c3R5bGU+CiAgICBjaXJjbGUgewogICAgICBhbmltYXRpb246IGJhbGwgMC42cyBsaW5lYXIgaW5maW5pdGU7CiAgICB9CgogICAgY2lyY2xlOm50aC1jaGlsZCgyKSB7IGFuaW1hdGlvbi1kZWxheTogMC4wNzVzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDMpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjE1czsgfQogICAgY2lyY2xlOm50aC1jaGlsZCg0KSB7IGFuaW1hdGlvbi1kZWxheTogMC4yMjVzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDUpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjNzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDYpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjM3NXM7IH0KICAgIGNpcmNsZTpudGgtY2hpbGQoNykgeyBhbmltYXRpb24tZGVsYXk6IDAuNDVzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDgpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjUyNXM7IH0KCiAgICBAa2V5ZnJhbWVzIGJhbGwgewogICAgICBmcm9tIHsgb3BhY2l0eTogMTsgfQogICAgICB0byB7IG9wYWNpdHk6IDAuMzsgfQogICAgfQoJPC9zdHlsZT4KCTxnPgoJCTxjaXJjbGUgY3g9JzUnIGN5PScxJyByPScxJyBzdHlsZT0nb3BhY2l0eTowLjM7JyAvPgoJCTxjaXJjbGUgY3g9JzcuODI4NCcgY3k9JzIuMTcxNicgcj0nMScgc3R5bGU9J29wYWNpdHk6MC4zOycgLz4KCQk8Y2lyY2xlIGN4PSc5JyBjeT0nNScgcj0nMScgc3R5bGU9J29wYWNpdHk6MC4zOycgLz4KCQk8Y2lyY2xlIGN4PSc3LjgyODQnIGN5PSc3LjgyODQnIHI9JzEnIHN0eWxlPSdvcGFjaXR5OjAuMzsnIC8+CgkJPGNpcmNsZSBjeD0nNScgY3k9JzknIHI9JzEnIHN0eWxlPSdvcGFjaXR5OjAuMzsnIC8+CgkJPGNpcmNsZSBjeD0nMi4xNzE2JyBjeT0nNy44Mjg0JyByPScxJyBzdHlsZT0nb3BhY2l0eTowLjM7JyAvPgoJCTxjaXJjbGUgY3g9JzEnIGN5PSc1JyByPScxJyBzdHlsZT0nb3BhY2l0eTowLjM7JyAvPgoJCTxjaXJjbGUgY3g9JzIuMTcxNicgY3k9JzIuMTcxNicgcj0nMScgc3R5bGU9J29wYWNpdHk6MC4zOycgLz4KCTwvZz4KPC9zdmc+Cg=="); - background-position: 0 center; +/** Styles for each row in the list **/ + +.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label.deprecated { + opacity: 0.66; + text-decoration: unset; +} +.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label.deprecated > .monaco-icon-label-container > .monaco-icon-name-container { + text-decoration: line-through; } -.vs-dark .monaco-tl-twistie.loading { - background-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJyBzdGFuZGFsb25lPSdubycgPz4KPHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZlcnNpb249JzEuMScgd2lkdGg9JzEwcHgnIGhlaWdodD0nMTBweCc+Cgk8c3R5bGU+CiAgICBjaXJjbGUgewogICAgICBhbmltYXRpb246IGJhbGwgMC42cyBsaW5lYXIgaW5maW5pdGU7CiAgICB9CgogICAgY2lyY2xlOm50aC1jaGlsZCgyKSB7IGFuaW1hdGlvbi1kZWxheTogMC4wNzVzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDMpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjE1czsgfQogICAgY2lyY2xlOm50aC1jaGlsZCg0KSB7IGFuaW1hdGlvbi1kZWxheTogMC4yMjVzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDUpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjNzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDYpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjM3NXM7IH0KICAgIGNpcmNsZTpudGgtY2hpbGQoNykgeyBhbmltYXRpb24tZGVsYXk6IDAuNDVzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDgpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjUyNXM7IH0KCiAgICBAa2V5ZnJhbWVzIGJhbGwgewogICAgICBmcm9tIHsgb3BhY2l0eTogMTsgfQogICAgICB0byB7IG9wYWNpdHk6IDAuMzsgfQogICAgfQoJPC9zdHlsZT4KCTxnIHN0eWxlPSJmaWxsOmdyZXk7Ij4KCQk8Y2lyY2xlIGN4PSc1JyBjeT0nMScgcj0nMScgc3R5bGU9J29wYWNpdHk6MC4zOycgLz4KCQk8Y2lyY2xlIGN4PSc3LjgyODQnIGN5PScyLjE3MTYnIHI9JzEnIHN0eWxlPSdvcGFjaXR5OjAuMzsnIC8+CgkJPGNpcmNsZSBjeD0nOScgY3k9JzUnIHI9JzEnIHN0eWxlPSdvcGFjaXR5OjAuMzsnIC8+CgkJPGNpcmNsZSBjeD0nNy44Mjg0JyBjeT0nNy44Mjg0JyByPScxJyBzdHlsZT0nb3BhY2l0eTowLjM7JyAvPgoJCTxjaXJjbGUgY3g9JzUnIGN5PSc5JyByPScxJyBzdHlsZT0nb3BhY2l0eTowLjM7JyAvPgoJCTxjaXJjbGUgY3g9JzIuMTcxNicgY3k9JzcuODI4NCcgcj0nMScgc3R5bGU9J29wYWNpdHk6MC4zOycgLz4KCQk8Y2lyY2xlIGN4PScxJyBjeT0nNScgcj0nMScgc3R5bGU9J29wYWNpdHk6MC4zOycgLz4KCQk8Y2lyY2xlIGN4PScyLjE3MTYnIGN5PScyLjE3MTYnIHI9JzEnIHN0eWxlPSdvcGFjaXR5OjAuMzsnIC8+Cgk8L2c+Cjwvc3ZnPgo="); +.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label::before { + height: 100%; } -.hc-black .monaco-tl-twistie.loading { - background-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJyBzdGFuZGFsb25lPSdubycgPz4KPHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZlcnNpb249JzEuMScgd2lkdGg9JzEwcHgnIGhlaWdodD0nMTBweCc+Cgk8c3R5bGU+CiAgICBjaXJjbGUgewogICAgICBhbmltYXRpb246IGJhbGwgMC42cyBsaW5lYXIgaW5maW5pdGU7CiAgICB9CgogICAgY2lyY2xlOm50aC1jaGlsZCgyKSB7IGFuaW1hdGlvbi1kZWxheTogMC4wNzVzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDMpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjE1czsgfQogICAgY2lyY2xlOm50aC1jaGlsZCg0KSB7IGFuaW1hdGlvbi1kZWxheTogMC4yMjVzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDUpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjNzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDYpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjM3NXM7IH0KICAgIGNpcmNsZTpudGgtY2hpbGQoNykgeyBhbmltYXRpb24tZGVsYXk6IDAuNDVzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDgpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjUyNXM7IH0KCiAgICBAa2V5ZnJhbWVzIGJhbGwgewogICAgICBmcm9tIHsgb3BhY2l0eTogMTsgfQogICAgICB0byB7IG9wYWNpdHk6IDAuMzsgfQogICAgfQoJPC9zdHlsZT4KCTxnIHN0eWxlPSJmaWxsOndoaXRlOyI+CgkJPGNpcmNsZSBjeD0nNScgY3k9JzEnIHI9JzEnIHN0eWxlPSdvcGFjaXR5OjAuMzsnIC8+CgkJPGNpcmNsZSBjeD0nNy44Mjg0JyBjeT0nMi4xNzE2JyByPScxJyBzdHlsZT0nb3BhY2l0eTowLjM7JyAvPgoJCTxjaXJjbGUgY3g9JzknIGN5PSc1JyByPScxJyBzdHlsZT0nb3BhY2l0eTowLjM7JyAvPgoJCTxjaXJjbGUgY3g9JzcuODI4NCcgY3k9JzcuODI4NCcgcj0nMScgc3R5bGU9J29wYWNpdHk6MC4zOycgLz4KCQk8Y2lyY2xlIGN4PSc1JyBjeT0nOScgcj0nMScgc3R5bGU9J29wYWNpdHk6MC4zOycgLz4KCQk8Y2lyY2xlIGN4PScyLjE3MTYnIGN5PSc3LjgyODQnIHI9JzEnIHN0eWxlPSdvcGFjaXR5OjAuMzsnIC8+CgkJPGNpcmNsZSBjeD0nMScgY3k9JzUnIHI9JzEnIHN0eWxlPSdvcGFjaXR5OjAuMzsnIC8+CgkJPGNpcmNsZSBjeD0nMi4xNzE2JyBjeT0nMi4xNzE2JyByPScxJyBzdHlsZT0nb3BhY2l0eTowLjM7JyAvPgoJPC9nPgo8L3N2Zz4K"); +.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon { + display: block; + height: 16px; + width: 16px; + margin-left: 2px; + background-repeat: no-repeat; + background-size: 80%; + background-position: center; +} + +.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.hide { + display: none; +} + +.monaco-editor .suggest-widget .monaco-list .monaco-list-row .suggest-icon { + display: flex; + align-items: center; + margin-right: 4px; +} + +.monaco-editor .suggest-widget.no-icons .monaco-list .monaco-list-row .icon, +.monaco-editor .suggest-widget.no-icons .monaco-list .monaco-list-row .suggest-icon::before { + display: none; +} + +.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.customcolor .colorspan { + margin: 0 0 0 0.3em; + border: 0.1em solid #000; + width: 0.7em; + height: 0.7em; + display: inline-block; +} + +/** Styles for the docs of the completion item in focus **/ +.monaco-editor .suggest-widget .details { + display: flex; + flex-direction: column; + cursor: default; +} + +.monaco-editor .suggest-widget .details.no-docs { + display: none; +} + +.monaco-editor .suggest-widget.docs-below .details { + border-top-width: 0; +} + +.monaco-editor .suggest-widget .details > .monaco-scrollable-element { + flex: 1; +} + +.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body { + position: absolute; + box-sizing: border-box; + height: 100%; + width: 100%; +} + +.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .header > .type { + flex: 2; + overflow: hidden; + text-overflow: ellipsis; + opacity: 0.7; + word-break: break-all; + margin: 0 24px 0 0; + padding: 4px 0 12px 5px; +} + +.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .docs { + margin: 0; + padding: 4px 5px; + white-space: pre-wrap; +} + +.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .docs.markdown-docs { + padding: 0; + white-space: initial; + min-height: calc(1rem + 8px); +} + +.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .docs.markdown-docs > div, +.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .docs.markdown-docs > span:not(:empty) { + padding: 4px 5px; +} + +.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .docs.markdown-docs > div > p:first-child { + margin-top: 0; +} + +.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .docs.markdown-docs > div > p:last-child { + margin-bottom: 0; +} + +.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .docs .code { + white-space: pre-wrap; + word-wrap: break-word; +} + +.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > .docs.markdown-docs .codicon { + vertical-align: sub; +} + +.monaco-editor .suggest-widget .details > .monaco-scrollable-element > .body > p:empty { + display: none; +} + +.monaco-editor .suggest-widget .details code { + border-radius: 3px; + padding: 0 0.4em; +} + + +/* replace/insert decorations */ + +.monaco-editor .suggest-insert-unexpected { + font-style: italic; +} + + +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar { + visibility: visible; +} +.monaco-editor .suggest-widget.with-status-bar > .tree { + margin-bottom: 18px; +} + +.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-label { + min-height: 18px; + opacity: 0.5; + color: inherit; +} + +.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-item:not(:last-of-type) .action-label { + margin-right: 0; +} + +.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-item:not(:last-of-type) .action-label::after { + content: ', '; + margin-right: 0.3em; +} + +.monaco-editor .suggest-widget.with-status-bar .monaco-list .monaco-list-row > .contents > .main > .right > .readMore, +.monaco-editor .suggest-widget.with-status-bar .monaco-list .monaco-list-row.focused.string-label > .contents > .main > .right > .readMore { + display: none; +} + +.monaco-editor .suggest-widget.with-status-bar:not(.docs-side) .monaco-list .monaco-list-row:hover > .contents > .main > .right.can-expand-details > .details-label { + width: 100%; +} + +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +@font-face { + font-family: "codicon"; + src: url([object Module]) format("truetype"); +} + +.codicon[class*='codicon-'] { + font: normal normal normal 16px/1 codicon; + display: inline-block; + text-decoration: none; + text-rendering: auto; + text-align: center; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + user-select: none; + -webkit-user-select: none; + -ms-user-select: none; +} + +/* icon rules are dynamically created in codiconStyles */ + +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +.codicon-wrench-subaction { + opacity: 0.5; +} + +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +@keyframes codicon-spin { + 100% { + transform:rotate(360deg); + } +} + +.codicon-animation-spin { + /* Use steps to throttle FPS to reduce CPU usage */ + animation: codicon-spin 1.5s steps(30) infinite; +} + +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +.monaco-list .monaco-list-row.focused.selected .outline-element .monaco-highlighted-label, +.monaco-list .monaco-list-row.focused.selected .outline-element-decoration { + /* make sure selection color wins when a label is being selected */ + color: inherit !important; +} + +.monaco-list .outline-element { + display: flex; + flex: 1; + flex-flow: row nowrap; + align-items: center; +} + +.monaco-list .outline-element .monaco-highlighted-label { + color: var(--outline-element-color); +} + +.monaco-list .outline-element .outline-element-decoration { + opacity: 0.75; + font-size: 90%; + font-weight: 600; + padding: 0 12px 0 5px; + margin-left: auto; + text-align: center; + color: var(--outline-element-color); +} + +.monaco-list .outline-element .outline-element-decoration.bubble { + font-family: codicon; + font-size: 14px; + opacity: 0.4; +} + +.monaco-list .outline-element .outline-element-icon { + margin-right: 4px; +} + +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +.monaco-icon-label.deprecated { + text-decoration: line-through; + opacity: 0.66; +} + +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + + +/* Default standalone editor fonts */ +.monaco-editor { + font-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "HelveticaNeue-Light", system-ui, "Ubuntu", "Droid Sans", sans-serif; + --monaco-monospace-font: "SF Mono", Monaco, Menlo, Consolas, "Ubuntu Mono", "Liberation Mono", "DejaVu Sans Mono", "Courier New", monospace; +} + +.monaco-menu .monaco-action-bar.vertical .action-item .action-menu-item:focus .action-label { + stroke-width: 1.2px; +} + +.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label, +.monaco-editor.hc-black .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label { + stroke-width: 1.2px; +} + +.monaco-hover p { + margin: 0; +} + +/* The hc-black theme is already high contrast optimized */ +.monaco-editor.hc-black { + -ms-high-contrast-adjust: none; +} +/* In case the browser goes into high contrast mode and the editor is not configured with the hc-black theme */ +@media screen and (-ms-high-contrast:active) { + + /* current line highlight */ + .monaco-editor.vs .view-overlays .current-line, + .monaco-editor.vs-dark .view-overlays .current-line { + border-color: windowtext !important; + border-left: 0; + border-right: 0; + } + + /* view cursors */ + .monaco-editor.vs .cursor, + .monaco-editor.vs-dark .cursor { + background-color: windowtext !important; + } + /* dnd target */ + .monaco-editor.vs .dnd-target, + .monaco-editor.vs-dark .dnd-target { + border-color: windowtext !important; + } + + /* selected text background */ + .monaco-editor.vs .selected-text, + .monaco-editor.vs-dark .selected-text { + background-color: highlight !important; + } + + /* allow the text to have a transparent background. */ + .monaco-editor.vs .view-line, + .monaco-editor.vs-dark .view-line { + -ms-high-contrast-adjust: none; + } + + /* text color */ + .monaco-editor.vs .view-line span, + .monaco-editor.vs-dark .view-line span { + color: windowtext !important; + } + /* selected text color */ + .monaco-editor.vs .view-line span.inline-selected-text, + .monaco-editor.vs-dark .view-line span.inline-selected-text { + color: highlighttext !important; + } + + /* allow decorations */ + .monaco-editor.vs .view-overlays, + .monaco-editor.vs-dark .view-overlays { + -ms-high-contrast-adjust: none; + } + + /* various decorations */ + .monaco-editor.vs .selectionHighlight, + .monaco-editor.vs-dark .selectionHighlight, + .monaco-editor.vs .wordHighlight, + .monaco-editor.vs-dark .wordHighlight, + .monaco-editor.vs .wordHighlightStrong, + .monaco-editor.vs-dark .wordHighlightStrong, + .monaco-editor.vs .reference-decoration, + .monaco-editor.vs-dark .reference-decoration { + border: 2px dotted highlight !important; + background: transparent !important; + box-sizing: border-box; + } + .monaco-editor.vs .rangeHighlight, + .monaco-editor.vs-dark .rangeHighlight { + background: transparent !important; + border: 1px dotted activeborder !important; + box-sizing: border-box; + } + .monaco-editor.vs .bracket-match, + .monaco-editor.vs-dark .bracket-match { + border-color: windowtext !important; + background: transparent !important; + } + + /* find widget */ + .monaco-editor.vs .findMatch, + .monaco-editor.vs-dark .findMatch, + .monaco-editor.vs .currentFindMatch, + .monaco-editor.vs-dark .currentFindMatch { + border: 2px dotted activeborder !important; + background: transparent !important; + box-sizing: border-box; + } + .monaco-editor.vs .find-widget, + .monaco-editor.vs-dark .find-widget { + border: 1px solid windowtext; + } + + /* list - used by suggest widget */ + .monaco-editor.vs .monaco-list .monaco-list-row, + .monaco-editor.vs-dark .monaco-list .monaco-list-row { + -ms-high-contrast-adjust: none; + color: windowtext !important; + } + .monaco-editor.vs .monaco-list .monaco-list-row.focused, + .monaco-editor.vs-dark .monaco-list .monaco-list-row.focused { + color: highlighttext !important; + background-color: highlight !important; + } + .monaco-editor.vs .monaco-list .monaco-list-row:hover, + .monaco-editor.vs-dark .monaco-list .monaco-list-row:hover { + background: transparent !important; + border: 1px solid highlight; + box-sizing: border-box; + } + + /* scrollbars */ + .monaco-editor.vs .monaco-scrollable-element > .scrollbar, + .monaco-editor.vs-dark .monaco-scrollable-element > .scrollbar { + -ms-high-contrast-adjust: none; + background: background !important; + border: 1px solid windowtext; + box-sizing: border-box; + } + .monaco-editor.vs .monaco-scrollable-element > .scrollbar > .slider, + .monaco-editor.vs-dark .monaco-scrollable-element > .scrollbar > .slider { + background: windowtext !important; + } + .monaco-editor.vs .monaco-scrollable-element > .scrollbar > .slider:hover, + .monaco-editor.vs-dark .monaco-scrollable-element > .scrollbar > .slider:hover { + background: highlight !important; + } + .monaco-editor.vs .monaco-scrollable-element > .scrollbar > .slider.active, + .monaco-editor.vs-dark .monaco-scrollable-element > .scrollbar > .slider.active { + background: highlight !important; + } + + /* overview ruler */ + .monaco-editor.vs .decorationsOverviewRuler, + .monaco-editor.vs-dark .decorationsOverviewRuler { + opacity: 0; + } + + /* minimap */ + .monaco-editor.vs .minimap, + .monaco-editor.vs-dark .minimap { + display: none; + } + + /* squiggles */ + .monaco-editor.vs .squiggly-d-error, + .monaco-editor.vs-dark .squiggly-d-error { + background: transparent !important; + border-bottom: 4px double #E47777; + } + .monaco-editor.vs .squiggly-c-warning, + .monaco-editor.vs-dark .squiggly-c-warning { + border-bottom: 4px double #71B771; + } + .monaco-editor.vs .squiggly-b-info, + .monaco-editor.vs-dark .squiggly-b-info { + border-bottom: 4px double #71B771; + } + .monaco-editor.vs .squiggly-a-hint, + .monaco-editor.vs-dark .squiggly-a-hint { + border-bottom: 4px double #6c6c6c; + } + + /* contextmenu */ + .monaco-editor.vs .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label, + .monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label { + -ms-high-contrast-adjust: none; + color: highlighttext !important; + background-color: highlight !important; + } + .monaco-editor.vs .monaco-menu .monaco-action-bar.vertical .action-menu-item:hover .action-label, + .monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:hover .action-label { + -ms-high-contrast-adjust: none; + background: transparent !important; + border: 1px solid highlight; + box-sizing: border-box; + } + + /* diff editor */ + .monaco-diff-editor.vs .diffOverviewRuler, + .monaco-diff-editor.vs-dark .diffOverviewRuler { + display: none; + } + .monaco-editor.vs .line-insert, + .monaco-editor.vs-dark .line-insert, + .monaco-editor.vs .line-delete, + .monaco-editor.vs-dark .line-delete { + background: transparent !important; + border: 1px solid highlight !important; + box-sizing: border-box; + } + .monaco-editor.vs .char-insert, + .monaco-editor.vs-dark .char-insert, + .monaco-editor.vs .char-delete, + .monaco-editor.vs-dark .char-delete { + background: transparent !important; + } +} + +/*.monaco-editor.vs [tabindex="0"]:focus { + outline: 1px solid rgba(0, 122, 204, 0.4); + outline-offset: -1px; + opacity: 1 !important; +} + +.monaco-editor.vs-dark [tabindex="0"]:focus { + outline: 1px solid rgba(14, 99, 156, 0.6); + outline-offset: -1px; + opacity: 1 !important; +}*/ + +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +/* ---------- DiffEditor ---------- */ + +.monaco-diff-editor .diffOverview { + z-index: 9; +} + +.monaco-diff-editor .diffOverview .diffViewport { + z-index: 10; +} + +/* colors not externalized: using transparancy on background */ +.monaco-diff-editor.vs .diffOverview { background: rgba(0, 0, 0, 0.03); } +.monaco-diff-editor.vs-dark .diffOverview { background: rgba(255, 255, 255, 0.01); } + +.monaco-scrollable-element.modified-in-monaco-diff-editor.vs .scrollbar { background: rgba(0,0,0,0); } +.monaco-scrollable-element.modified-in-monaco-diff-editor.vs-dark .scrollbar { background: rgba(0,0,0,0); } +.monaco-scrollable-element.modified-in-monaco-diff-editor.hc-black .scrollbar { background: none; } + +.monaco-scrollable-element.modified-in-monaco-diff-editor .slider { + z-index: 10; +} +.modified-in-monaco-diff-editor .slider.active { background: rgba(171, 171, 171, .4); } +.modified-in-monaco-diff-editor.hc-black .slider.active { background: none; } + +/* ---------- Diff ---------- */ + +.monaco-editor .insert-sign, +.monaco-diff-editor .insert-sign, +.monaco-editor .delete-sign, +.monaco-diff-editor .delete-sign { + font-size: 11px !important; + opacity: 0.7 !important; + display: flex !important; + align-items: center; +} +.monaco-editor.hc-black .insert-sign, +.monaco-diff-editor.hc-black .insert-sign, +.monaco-editor.hc-black .delete-sign, +.monaco-diff-editor.hc-black .delete-sign { + opacity: 1; +} + +.monaco-editor .inline-deleted-margin-view-zone { + text-align: right; +} +.monaco-editor .inline-added-margin-view-zone { + text-align: right; +} + +/* ---------- Inline Diff ---------- */ + +.monaco-editor .view-zones .view-lines .view-line span { + display: inline-block; +} + +.monaco-editor .margin-view-zones .lightbulb-glyph:hover { + cursor: pointer; +} + +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +.monaco-diff-editor .diff-review-line-number { + text-align: right; + display: inline-block; +} + +.monaco-diff-editor .diff-review { + position: absolute; + user-select: none; + -webkit-user-select: none; + -ms-user-select: none; +} + +.monaco-diff-editor .diff-review-summary { + padding-left: 10px; +} + +.monaco-diff-editor .diff-review-shadow { + position: absolute; +} + +.monaco-diff-editor .diff-review-row { + white-space: pre; +} + +.monaco-diff-editor .diff-review-table { + display: table; + min-width: 100%; +} + +.monaco-diff-editor .diff-review-row { + display: table-row; + width: 100%; +} + +.monaco-diff-editor .diff-review-spacer { + display: inline-block; + width: 10px; + vertical-align: middle; +} + +.monaco-diff-editor .diff-review-spacer > .codicon { + font-size: 9px !important; +} + +.monaco-diff-editor .diff-review-actions { + display: inline-block; + position: absolute; + right: 10px; + top: 2px; +} + +.monaco-diff-editor .diff-review-actions .action-label { + width: 16px; + height: 16px; + margin: 2px 0; +} + +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +.context-view .monaco-menu { + min-width: 130px; +} + + +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +.context-view { + position: absolute; + z-index: 2500; +} + +.context-view.fixed { + all: initial; + font-family: inherit; + font-size: 13px; + position: fixed; + z-index: 2500; + color: inherit; +} + +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +.quick-input-widget { + font-size: 13px; +} + +.quick-input-widget .monaco-highlighted-label .highlight, +.quick-input-widget .monaco-highlighted-label .highlight { + color: #0066BF; +} + +.vs-dark .quick-input-widget .monaco-highlighted-label .highlight, +.vs-dark .quick-input-widget .monaco-highlighted-label .highlight { + color: #0097fb; +} + +.hc-black .quick-input-widget .monaco-highlighted-label .highlight, +.hc-black .quick-input-widget .monaco-highlighted-label .highlight { + color: #F38518; +} + +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +.quick-input-widget { + position: absolute; + width: 600px; + z-index: 2000; + padding-bottom: 6px; + left: 50%; + margin-left: -300px; +} + +.quick-input-titlebar { + display: flex; +} + +.quick-input-left-action-bar { + display: flex; + margin-left: 4px; + flex: 1; +} + +.quick-input-left-action-bar.monaco-action-bar .actions-container { + justify-content: flex-start; +} + +.quick-input-title { + padding: 3px 0px; + text-align: center; +} + +.quick-input-right-action-bar { + display: flex; + margin-right: 4px; + flex: 1; +} + +.quick-input-titlebar .monaco-action-bar .action-label.codicon { + margin: 0; + width: 19px; + height: 100%; + background-position: center; + background-repeat: no-repeat; +} + +.quick-input-description { + margin: 6px; +} + +.quick-input-header { + display: flex; + padding: 6px 6px 0px 6px; + margin-bottom: -2px; +} + +.quick-input-widget.hidden-input .quick-input-header { + /* reduce margins and paddings when input box hidden */ + padding: 0; + margin-bottom: 0; +} + +.quick-input-and-message { + display: flex; + flex-direction: column; + flex-grow: 1; + position: relative; +} + +.quick-input-check-all { + align-self: center; + margin: 0; +} + +.quick-input-filter { + flex-grow: 1; + display: flex; + position: relative; +} + +.quick-input-box { + flex-grow: 1; +} + +.quick-input-widget.show-checkboxes .quick-input-box, +.quick-input-widget.show-checkboxes .quick-input-message { + margin-left: 5px; +} + +.quick-input-visible-count { + position: absolute; + left: -10000px; +} + +.quick-input-count { + align-self: center; + position: absolute; + right: 4px; + display: flex; + align-items: center; +} + +.quick-input-count .monaco-count-badge { + vertical-align: middle; + padding: 2px 4px; + border-radius: 2px; + min-height: auto; + line-height: normal; +} + +.quick-input-action { + margin-left: 6px; +} + +.quick-input-action .monaco-text-button { + font-size: 11px; + padding: 0 6px; + display: flex; + height: 100%; + align-items: center; +} + +.quick-input-message { + margin-top: -1px; + padding: 5px 5px 2px 5px; +} + +.quick-input-progress.monaco-progress-container { + position: relative; +} + +.quick-input-progress.monaco-progress-container, +.quick-input-progress.monaco-progress-container .progress-bit { + height: 2px; +} + +.quick-input-list { + line-height: 22px; + margin-top: 6px; +} + +.quick-input-widget.hidden-input .quick-input-list { + margin-top: 0; /* reduce margins when input box hidden */ +} + +.quick-input-list .monaco-list { + overflow: hidden; + max-height: calc(20 * 22px); +} + +.quick-input-list .quick-input-list-entry { + box-sizing: border-box; + overflow: hidden; + display: flex; + height: 100%; + padding: 0 6px; +} + +.quick-input-list .quick-input-list-entry.quick-input-list-separator-border { + border-top-width: 1px; + border-top-style: solid; +} + +.quick-input-list .monaco-list-row:first-child .quick-input-list-entry.quick-input-list-separator-border { + border-top-style: none; +} + +.quick-input-list .quick-input-list-label { + overflow: hidden; + display: flex; + height: 100%; + flex: 1; +} + +.quick-input-list .quick-input-list-checkbox { + align-self: center; + margin: 0; +} + +.quick-input-list .quick-input-list-rows { + overflow: hidden; + text-overflow: ellipsis; + display: flex; + flex-direction: column; + height: 100%; + flex: 1; + margin-left: 5px; +} + +.quick-input-widget.show-checkboxes .quick-input-list .quick-input-list-rows { + margin-left: 10px; +} + +.quick-input-widget .quick-input-list .quick-input-list-checkbox { + display: none; +} +.quick-input-widget.show-checkboxes .quick-input-list .quick-input-list-checkbox { + display: inline; +} + +.quick-input-list .quick-input-list-rows > .quick-input-list-row { + display: flex; + align-items: center; +} + +.quick-input-list .quick-input-list-rows > .quick-input-list-row .monaco-icon-label, +.quick-input-list .quick-input-list-rows > .quick-input-list-row .monaco-icon-label .monaco-icon-label-container > .monaco-icon-name-container { + flex: 1; /* make sure the icon label grows within the row */ +} + +.quick-input-list .quick-input-list-rows > .quick-input-list-row .codicon[class*='codicon-'] { + vertical-align: sub; +} + +.quick-input-list .quick-input-list-rows .monaco-highlighted-label span { + opacity: 1; +} + +.quick-input-list .quick-input-list-entry .quick-input-list-entry-keybinding { + margin-right: 8px; /* separate from the separator label or scrollbar if any */ +} + +.quick-input-list .quick-input-list-label-meta { + opacity: 0.7; + line-height: normal; + text-overflow: ellipsis; + overflow: hidden; +} + +.quick-input-list .monaco-highlighted-label .highlight { + font-weight: bold; +} + +.quick-input-list .quick-input-list-entry .quick-input-list-separator { + margin-right: 8px; /* separate from keybindings or actions */ +} + +.quick-input-list .quick-input-list-entry-action-bar { + display: flex; + flex: 0; + overflow: visible; +} + +.quick-input-list .quick-input-list-entry-action-bar .action-label { + /* + * By default, actions in the quick input action bar are hidden + * until hovered over them or selected. + */ + display: none; +} + +.quick-input-list .quick-input-list-entry-action-bar .action-label.codicon { + margin: 0; + height: 100%; + padding: 0 2px; + vertical-align: middle; +} + +.quick-input-list .quick-input-list-entry-action-bar { + margin-top: 1px; +} + +.quick-input-list .quick-input-list-entry-action-bar { + margin-right: 4px; /* separate from scrollbar */ +} + +.quick-input-list .quick-input-list-entry-action-bar .action-label.codicon { + margin-right: 4px; /* separate actions */ +} + +.quick-input-list .quick-input-list-entry .quick-input-list-entry-action-bar .action-label.always-visible, +.quick-input-list .quick-input-list-entry:hover .quick-input-list-entry-action-bar .action-label, +.quick-input-list .monaco-list-row.focused .quick-input-list-entry-action-bar .action-label { + display: flex; +} + +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +.monaco-keybinding { + display: flex; + align-items: center; + line-height: 10px; +} + +.monaco-keybinding > .monaco-keybinding-key { + display: inline-block; + border: solid 1px rgba(204, 204, 204, 0.4); + border-bottom-color: rgba(187, 187, 187, 0.4); + border-radius: 3px; + box-shadow: inset 0 -1px 0 rgba(187, 187, 187, 0.4); + background-color: rgba(221, 221, 221, 0.4); + vertical-align: middle; + color: #555; + font-size: 11px; + padding: 3px 5px; + margin: 0 2px; +} + +.monaco-keybinding > .monaco-keybinding-key:first-child { + margin-left: 0; +} + +.monaco-keybinding > .monaco-keybinding-key:last-child { + margin-right: 0; +} + +.hc-black .monaco-keybinding > .monaco-keybinding-key, +.vs-dark .monaco-keybinding > .monaco-keybinding-key { + background-color: rgba(128, 128, 128, 0.17); + color: #ccc; + border: solid 1px rgba(51, 51, 51, 0.6); + border-bottom-color: rgba(68, 68, 68, 0.6); + box-shadow: inset 0 -1px 0 rgba(68, 68, 68, 0.6); +} + +.monaco-keybinding > .monaco-keybinding-key-separator { + display: inline-block; +} + +.monaco-keybinding > .monaco-keybinding-key-chord-separator { + width: 6px; +} +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +.monaco-progress-container { + width: 100%; + height: 5px; + overflow: hidden; /* keep progress bit in bounds */ +} + +.monaco-progress-container .progress-bit { + width: 2%; + height: 5px; + position: absolute; + left: 0; + display: none; +} + +.monaco-progress-container.active .progress-bit { + display: inherit; +} + +.monaco-progress-container.discrete .progress-bit { + left: 0; + transition: width 100ms linear; +} + +.monaco-progress-container.discrete.done .progress-bit { + width: 100%; +} + +.monaco-progress-container.infinite .progress-bit { + animation-name: progress; + animation-duration: 4s; + animation-iteration-count: infinite; + animation-timing-function: linear; + transform: translate3d(0px, 0px, 0px); +} + +/** + * The progress bit has a width: 2% (1/50) of the parent container. The animation moves it from 0% to 100% of + * that container. Since translateX is relative to the progress bit size, we have to multiple it with + * its relative size to the parent container: + * 50%: 50 * 50 = 2500% + * 100%: 50 * 100 - 50 (do not overflow): 4950% + */ +@keyframes progress { from { transform: translateX(0%) scaleX(1) } 50% { transform: translateX(2500%) scaleX(3) } to { transform: translateX(4950%) scaleX(1) } } + +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +.monaco-text-button { + box-sizing: border-box; + display: flex; + width: 100%; + padding: 4px; + text-align: center; + cursor: pointer; + outline-offset: 2px !important; + justify-content: center; + align-items: center; +} + +.monaco-text-button:hover { + text-decoration: none !important; +} + +.monaco-button.disabled { + opacity: 0.4; + cursor: default; +} + +.monaco-button > .codicon { + margin: 0 0.2em; + color: inherit !important; } #editor.svelte-129q4vv{width:100%;height:400px;max-height:300px;flex:1} diff --git a/docs/bundle.js b/docs/bundle.js index 8542cd80..66cbbc55 100644 --- a/docs/bundle.js +++ b/docs/bundle.js @@ -1,4 +1,4 @@ -!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=319)}([function(e,t,n){(function(e){e.exports=function(){"use strict";var t,r;function i(){return t.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function s(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function a(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function l(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function c(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function d(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function h(e,t){for(var n in t)d(t,n)&&(e[n]=t[n]);return d(t,"toString")&&(e.toString=t.toString),d(t,"valueOf")&&(e.valueOf=t.valueOf),e}function f(e,t,n,r){return At(e,t,n,r,!0).utc()}function p(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function g(e){if(null==e._isValid){var t=p(e),n=r.call(t.parsedDateParts,(function(e){return null!=e})),i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function m(e){var t=f(NaN);return null!=e?h(p(t),e):p(t).userInvalidated=!0,t}r=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};var _=i.momentProperties=[];function y(e,t){var n,r,i;if(a(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),a(t._i)||(e._i=t._i),a(t._f)||(e._f=t._f),a(t._l)||(e._l=t._l),a(t._strict)||(e._strict=t._strict),a(t._tzm)||(e._tzm=t._tzm),a(t._isUTC)||(e._isUTC=t._isUTC),a(t._offset)||(e._offset=t._offset),a(t._pf)||(e._pf=p(t)),a(t._locale)||(e._locale=t._locale),_.length>0)for(n=0;n<_.length;n++)a(i=t[r=_[n]])||(e[r]=i);return e}var v=!1;function b(e){y(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===v&&(v=!0,i.updateOffset(this),v=!1)}function w(e){return e instanceof b||null!=e&&null!=e._isAMomentObject}function C(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function S(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=C(t)),n}function x(e,t,n){var r,i=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),s=0;for(r=0;r<i;r++)(n&&e[r]!==t[r]||!n&&S(e[r])!==S(t[r]))&&s++;return s+o}function L(e){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function k(e,t){var n=!0;return h((function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,e),n){for(var r,o=[],s=0;s<arguments.length;s++){if(r="","object"==typeof arguments[s]){for(var a in r+="\n["+s+"] ",arguments[0])r+=a+": "+arguments[0][a]+", ";r=r.slice(0,-2)}else r=arguments[s];o.push(r)}L(e+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var M,D={};function E(e,t){null!=i.deprecationHandler&&i.deprecationHandler(e,t),D[e]||(L(t),D[e]=!0)}function T(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function N(e,t){var n,r=h({},e);for(n in t)d(t,n)&&(s(e[n])&&s(t[n])?(r[n]={},h(r[n],e[n]),h(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)d(e,n)&&!d(t,n)&&s(e[n])&&(r[n]=h({},r[n]));return r}function O(e){null!=e&&this.set(e)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,M=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)d(e,t)&&n.push(t);return n};var A={};function I(e,t){var n=e.toLowerCase();A[n]=A[n+"s"]=A[t]=e}function P(e){return"string"==typeof e?A[e]||A[e.toLowerCase()]:void 0}function R(e){var t,n,r={};for(n in e)d(e,n)&&(t=P(n))&&(r[t]=e[n]);return r}var F={};function Y(e,t){F[e]=t}function j(e,t,n){var r=""+Math.abs(e),i=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var B=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,W=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,H={},V={};function z(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(V[e]=i),t&&(V[t[0]]=function(){return j(i.apply(this,arguments),t[1],t[2])}),n&&(V[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function U(e,t){return e.isValid()?(t=q(t,e.localeData()),H[t]=H[t]||function(e){var t,n,r,i=e.match(B);for(t=0,n=i.length;t<n;t++)V[i[t]]?i[t]=V[i[t]]:i[t]=(r=i[t]).match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"");return function(t){var r,o="";for(r=0;r<n;r++)o+=T(i[r])?i[r].call(t,e):i[r];return o}}(t),H[t](e)):e.localeData().invalidDate()}function q(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(W.lastIndex=0;n>=0&&W.test(e);)e=e.replace(W,r),W.lastIndex=0,n-=1;return e}var K=/\d/,G=/\d\d/,$=/\d{3}/,Z=/\d{4}/,X=/[+-]?\d{6}/,J=/\d\d?/,Q=/\d\d\d\d?/,ee=/\d\d\d\d\d\d?/,te=/\d{1,3}/,ne=/\d{1,4}/,re=/[+-]?\d{1,6}/,ie=/\d+/,oe=/[+-]?\d+/,se=/Z|[+-]\d\d:?\d\d/gi,ae=/Z|[+-]\d\d(?::?\d\d)?/gi,ue=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,le={};function ce(e,t,n){le[e]=T(t)?t:function(e,r){return e&&n?n:t}}function de(e,t){return d(le,e)?le[e](t._strict,t._locale):new RegExp(he(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,i){return t||n||r||i}))))}function he(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var fe={};function pe(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),u(t)&&(r=function(e,n){n[t]=S(e)}),n=0;n<e.length;n++)fe[e[n]]=r}function ge(e,t){pe(e,(function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)}))}function me(e,t,n){null!=t&&d(fe,e)&&fe[e](t,n._a,n,e)}var _e=0,ye=1,ve=2,be=3,we=4,Ce=5,Se=6,xe=7,Le=8;function ke(e){return Me(e)?366:365}function Me(e){return e%4==0&&e%100!=0||e%400==0}z("Y",0,0,(function(){var e=this.year();return e<=9999?""+e:"+"+e})),z(0,["YY",2],0,(function(){return this.year()%100})),z(0,["YYYY",4],0,"year"),z(0,["YYYYY",5],0,"year"),z(0,["YYYYYY",6,!0],0,"year"),I("year","y"),Y("year",1),ce("Y",oe),ce("YY",J,G),ce("YYYY",ne,Z),ce("YYYYY",re,X),ce("YYYYYY",re,X),pe(["YYYYY","YYYYYY"],_e),pe("YYYY",(function(e,t){t[_e]=2===e.length?i.parseTwoDigitYear(e):S(e)})),pe("YY",(function(e,t){t[_e]=i.parseTwoDigitYear(e)})),pe("Y",(function(e,t){t[_e]=parseInt(e,10)})),i.parseTwoDigitYear=function(e){return S(e)+(S(e)>68?1900:2e3)};var De,Ee=Te("FullYear",!0);function Te(e,t){return function(n){return null!=n?(Oe(this,e,n),i.updateOffset(this,t),this):Ne(this,e)}}function Ne(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Oe(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&Me(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Ae(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Ae(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?Me(e)?29:28:31-r%7%2}De=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},z("M",["MM",2],"Mo",(function(){return this.month()+1})),z("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),z("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),I("month","M"),Y("month",8),ce("M",J),ce("MM",J,G),ce("MMM",(function(e,t){return t.monthsShortRegex(e)})),ce("MMMM",(function(e,t){return t.monthsRegex(e)})),pe(["M","MM"],(function(e,t){t[ye]=S(e)-1})),pe(["MMM","MMMM"],(function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);null!=i?t[ye]=i:p(n).invalidMonth=e}));var Ie=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Pe="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Re="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Fe(e,t,n){var r,i,o,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=f([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=De.call(this._shortMonthsParse,s))?i:null:-1!==(i=De.call(this._longMonthsParse,s))?i:null:"MMM"===t?-1!==(i=De.call(this._shortMonthsParse,s))?i:-1!==(i=De.call(this._longMonthsParse,s))?i:null:-1!==(i=De.call(this._longMonthsParse,s))?i:-1!==(i=De.call(this._shortMonthsParse,s))?i:null}function Ye(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=S(t);else if(!u(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Ae(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function je(e){return null!=e?(Ye(this,e),i.updateOffset(this,!0),this):Ne(this,"Month")}var Be=ue,We=ue;function He(){function e(e,t){return t.length-e.length}var t,n,r=[],i=[],o=[];for(t=0;t<12;t++)n=f([2e3,t]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(r.sort(e),i.sort(e),o.sort(e),t=0;t<12;t++)r[t]=he(r[t]),i[t]=he(i[t]);for(t=0;t<24;t++)o[t]=he(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Ve(e,t,n,r,i,o,s){var a;return e<100&&e>=0?(a=new Date(e+400,t,n,r,i,o,s),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,n,r,i,o,s),a}function ze(e){var t;if(e<100&&e>=0){var n=Array.prototype.slice.call(arguments);n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)}else t=new Date(Date.UTC.apply(null,arguments));return t}function Ue(e,t,n){var r=7+t-n;return-(7+ze(e,0,r).getUTCDay()-t)%7+r-1}function qe(e,t,n,r,i){var o,s,a=1+7*(t-1)+(7+n-r)%7+Ue(e,r,i);return a<=0?s=ke(o=e-1)+a:a>ke(e)?(o=e+1,s=a-ke(e)):(o=e,s=a),{year:o,dayOfYear:s}}function Ke(e,t,n){var r,i,o=Ue(e.year(),t,n),s=Math.floor((e.dayOfYear()-o-1)/7)+1;return s<1?r=s+Ge(i=e.year()-1,t,n):s>Ge(e.year(),t,n)?(r=s-Ge(e.year(),t,n),i=e.year()+1):(i=e.year(),r=s),{week:r,year:i}}function Ge(e,t,n){var r=Ue(e,t,n),i=Ue(e+1,t,n);return(ke(e)-r+i)/7}function $e(e,t){return e.slice(t,7).concat(e.slice(0,t))}z("w",["ww",2],"wo","week"),z("W",["WW",2],"Wo","isoWeek"),I("week","w"),I("isoWeek","W"),Y("week",5),Y("isoWeek",5),ce("w",J),ce("ww",J,G),ce("W",J),ce("WW",J,G),ge(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=S(e)})),z("d",0,"do","day"),z("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),z("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),z("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),z("e",0,0,"weekday"),z("E",0,0,"isoWeekday"),I("day","d"),I("weekday","e"),I("isoWeekday","E"),Y("day",11),Y("weekday",11),Y("isoWeekday",11),ce("d",J),ce("e",J),ce("E",J),ce("dd",(function(e,t){return t.weekdaysMinRegex(e)})),ce("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),ce("dddd",(function(e,t){return t.weekdaysRegex(e)})),ge(["dd","ddd","dddd"],(function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:p(n).invalidWeekday=e})),ge(["d","e","E"],(function(e,t,n,r){t[r]=S(e)}));var Ze="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Xe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Je="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function Qe(e,t,n){var r,i,o,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=f([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=De.call(this._weekdaysParse,s))?i:null:"ddd"===t?-1!==(i=De.call(this._shortWeekdaysParse,s))?i:null:-1!==(i=De.call(this._minWeekdaysParse,s))?i:null:"dddd"===t?-1!==(i=De.call(this._weekdaysParse,s))?i:-1!==(i=De.call(this._shortWeekdaysParse,s))?i:-1!==(i=De.call(this._minWeekdaysParse,s))?i:null:"ddd"===t?-1!==(i=De.call(this._shortWeekdaysParse,s))?i:-1!==(i=De.call(this._weekdaysParse,s))?i:-1!==(i=De.call(this._minWeekdaysParse,s))?i:null:-1!==(i=De.call(this._minWeekdaysParse,s))?i:-1!==(i=De.call(this._weekdaysParse,s))?i:-1!==(i=De.call(this._shortWeekdaysParse,s))?i:null}var et=ue,tt=ue,nt=ue;function rt(){function e(e,t){return t.length-e.length}var t,n,r,i,o,s=[],a=[],u=[],l=[];for(t=0;t<7;t++)n=f([2e3,1]).day(t),r=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),o=this.weekdays(n,""),s.push(r),a.push(i),u.push(o),l.push(r),l.push(i),l.push(o);for(s.sort(e),a.sort(e),u.sort(e),l.sort(e),t=0;t<7;t++)a[t]=he(a[t]),u[t]=he(u[t]),l[t]=he(l[t]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function it(){return this.hours()%12||12}function ot(e,t){z(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function st(e,t){return t._meridiemParse}z("H",["HH",2],0,"hour"),z("h",["hh",2],0,it),z("k",["kk",2],0,(function(){return this.hours()||24})),z("hmm",0,0,(function(){return""+it.apply(this)+j(this.minutes(),2)})),z("hmmss",0,0,(function(){return""+it.apply(this)+j(this.minutes(),2)+j(this.seconds(),2)})),z("Hmm",0,0,(function(){return""+this.hours()+j(this.minutes(),2)})),z("Hmmss",0,0,(function(){return""+this.hours()+j(this.minutes(),2)+j(this.seconds(),2)})),ot("a",!0),ot("A",!1),I("hour","h"),Y("hour",13),ce("a",st),ce("A",st),ce("H",J),ce("h",J),ce("k",J),ce("HH",J,G),ce("hh",J,G),ce("kk",J,G),ce("hmm",Q),ce("hmmss",ee),ce("Hmm",Q),ce("Hmmss",ee),pe(["H","HH"],be),pe(["k","kk"],(function(e,t,n){var r=S(e);t[be]=24===r?0:r})),pe(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),pe(["h","hh"],(function(e,t,n){t[be]=S(e),p(n).bigHour=!0})),pe("hmm",(function(e,t,n){var r=e.length-2;t[be]=S(e.substr(0,r)),t[we]=S(e.substr(r)),p(n).bigHour=!0})),pe("hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[be]=S(e.substr(0,r)),t[we]=S(e.substr(r,2)),t[Ce]=S(e.substr(i)),p(n).bigHour=!0})),pe("Hmm",(function(e,t,n){var r=e.length-2;t[be]=S(e.substr(0,r)),t[we]=S(e.substr(r))})),pe("Hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[be]=S(e.substr(0,r)),t[we]=S(e.substr(r,2)),t[Ce]=S(e.substr(i))}));var at,ut=Te("Hours",!0),lt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Pe,monthsShort:Re,week:{dow:0,doy:6},weekdays:Ze,weekdaysMin:Je,weekdaysShort:Xe,meridiemParse:/[ap]\.?m?\.?/i},ct={},dt={};function ht(e){return e?e.toLowerCase().replace("_","-"):e}function ft(t){var r=null;if(!ct[t]&&void 0!==e&&e&&e.exports)try{r=at._abbr,n(611)("./"+t),pt(r)}catch(e){}return ct[t]}function pt(e,t){var n;return e&&((n=a(t)?mt(e):gt(e,t))?at=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),at._abbr}function gt(e,t){if(null!==t){var n,r=lt;if(t.abbr=e,null!=ct[e])E("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=ct[e]._config;else if(null!=t.parentLocale)if(null!=ct[t.parentLocale])r=ct[t.parentLocale]._config;else{if(null==(n=ft(t.parentLocale)))return dt[t.parentLocale]||(dt[t.parentLocale]=[]),dt[t.parentLocale].push({name:e,config:t}),null;r=n._config}return ct[e]=new O(N(r,t)),dt[e]&&dt[e].forEach((function(e){gt(e.name,e.config)})),pt(e),ct[e]}return delete ct[e],null}function mt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return at;if(!o(e)){if(t=ft(e))return t;e=[e]}return function(e){for(var t,n,r,i,o=0;o<e.length;){for(t=(i=ht(e[o]).split("-")).length,n=(n=ht(e[o+1]))?n.split("-"):null;t>0;){if(r=ft(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&x(i,n,!0)>=t-1)break;t--}o++}return at}(e)}function _t(e){var t,n=e._a;return n&&-2===p(e).overflow&&(t=n[ye]<0||n[ye]>11?ye:n[ve]<1||n[ve]>Ae(n[_e],n[ye])?ve:n[be]<0||n[be]>24||24===n[be]&&(0!==n[we]||0!==n[Ce]||0!==n[Se])?be:n[we]<0||n[we]>59?we:n[Ce]<0||n[Ce]>59?Ce:n[Se]<0||n[Se]>999?Se:-1,p(e)._overflowDayOfYear&&(t<_e||t>ve)&&(t=ve),p(e)._overflowWeeks&&-1===t&&(t=xe),p(e)._overflowWeekday&&-1===t&&(t=Le),p(e).overflow=t),e}function yt(e,t,n){return null!=e?e:null!=t?t:n}function vt(e){var t,n,r,o,s,a=[];if(!e._d){for(r=function(e){var t=new Date(i.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[ve]&&null==e._a[ye]&&function(e){var t,n,r,i,o,s,a,u;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)o=1,s=4,n=yt(t.GG,e._a[_e],Ke(It(),1,4).year),r=yt(t.W,1),((i=yt(t.E,1))<1||i>7)&&(u=!0);else{o=e._locale._week.dow,s=e._locale._week.doy;var l=Ke(It(),o,s);n=yt(t.gg,e._a[_e],l.year),r=yt(t.w,l.week),null!=t.d?((i=t.d)<0||i>6)&&(u=!0):null!=t.e?(i=t.e+o,(t.e<0||t.e>6)&&(u=!0)):i=o}r<1||r>Ge(n,o,s)?p(e)._overflowWeeks=!0:null!=u?p(e)._overflowWeekday=!0:(a=qe(n,r,i,o,s),e._a[_e]=a.year,e._dayOfYear=a.dayOfYear)}(e),null!=e._dayOfYear&&(s=yt(e._a[_e],r[_e]),(e._dayOfYear>ke(s)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),n=ze(s,0,e._dayOfYear),e._a[ye]=n.getUTCMonth(),e._a[ve]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=r[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[be]&&0===e._a[we]&&0===e._a[Ce]&&0===e._a[Se]&&(e._nextDay=!0,e._a[be]=0),e._d=(e._useUTC?ze:Ve).apply(null,a),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[be]=24),e._w&&void 0!==e._w.d&&e._w.d!==o&&(p(e).weekdayMismatch=!0)}}var bt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,wt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ct=/Z|[+-]\d\d(?::?\d\d)?/,St=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],xt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Lt=/^\/?Date\((\-?\d+)/i;function kt(e){var t,n,r,i,o,s,a=e._i,u=bt.exec(a)||wt.exec(a);if(u){for(p(e).iso=!0,t=0,n=St.length;t<n;t++)if(St[t][1].exec(u[1])){i=St[t][0],r=!1!==St[t][2];break}if(null==i)return void(e._isValid=!1);if(u[3]){for(t=0,n=xt.length;t<n;t++)if(xt[t][1].exec(u[3])){o=(u[2]||" ")+xt[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(u[4]){if(!Ct.exec(u[4]))return void(e._isValid=!1);s="Z"}e._f=i+(o||"")+(s||""),Nt(e)}else e._isValid=!1}var Mt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;function Dt(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}var Et={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Tt(e){var t,n,r,i,o,s,a,u=Mt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(u){var l=(t=u[4],n=u[3],r=u[2],i=u[5],o=u[6],s=u[7],a=[Dt(t),Re.indexOf(n),parseInt(r,10),parseInt(i,10),parseInt(o,10)],s&&a.push(parseInt(s,10)),a);if(!function(e,t,n){return!e||Xe.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(p(n).weekdayMismatch=!0,n._isValid=!1,!1)}(u[1],l,e))return;e._a=l,e._tzm=function(e,t,n){if(e)return Et[e];if(t)return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}(u[8],u[9],u[10]),e._d=ze.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),p(e).rfc2822=!0}else e._isValid=!1}function Nt(e){if(e._f!==i.ISO_8601)if(e._f!==i.RFC_2822){e._a=[],p(e).empty=!0;var t,n,r,o,s,a=""+e._i,u=a.length,l=0;for(r=q(e._f,e._locale).match(B)||[],t=0;t<r.length;t++)o=r[t],(n=(a.match(de(o,e))||[])[0])&&((s=a.substr(0,a.indexOf(n))).length>0&&p(e).unusedInput.push(s),a=a.slice(a.indexOf(n)+n.length),l+=n.length),V[o]?(n?p(e).empty=!1:p(e).unusedTokens.push(o),me(o,n,e)):e._strict&&!n&&p(e).unusedTokens.push(o);p(e).charsLeftOver=u-l,a.length>0&&p(e).unusedInput.push(a),e._a[be]<=12&&!0===p(e).bigHour&&e._a[be]>0&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[be]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[be],e._meridiem),vt(e),_t(e)}else Tt(e);else kt(e)}function Ot(e){var t=e._i,n=e._f;return e._locale=e._locale||mt(e._l),null===t||void 0===n&&""===t?m({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new b(_t(t)):(l(t)?e._d=t:o(n)?function(e){var t,n,r,i,o;if(0===e._f.length)return p(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<e._f.length;i++)o=0,t=y({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Nt(t),g(t)&&(o+=p(t).charsLeftOver,o+=10*p(t).unusedTokens.length,p(t).score=o,(null==r||o<r)&&(r=o,n=t));h(e,n||t)}(e):n?Nt(e):function(e){var t=e._i;a(t)?e._d=new Date(i.now()):l(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=Lt.exec(e._i);null===t?(kt(e),!1===e._isValid&&(delete e._isValid,Tt(e),!1===e._isValid&&(delete e._isValid,i.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):o(t)?(e._a=c(t.slice(0),(function(e){return parseInt(e,10)})),vt(e)):s(t)?function(e){if(!e._d){var t=R(e._i);e._a=c([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),vt(e)}}(e):u(t)?e._d=new Date(t):i.createFromInputFallback(e)}(e),g(e)||(e._d=null),e))}function At(e,t,n,r,i){var a,u={};return!0!==n&&!1!==n||(r=n,n=void 0),(s(e)&&function(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0}(e)||o(e)&&0===e.length)&&(e=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=i,u._l=n,u._i=e,u._f=t,u._strict=r,(a=new b(_t(Ot(u))))._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function It(e,t,n,r){return At(e,t,n,r,!1)}i.createFromInputFallback=k("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),i.ISO_8601=function(){},i.RFC_2822=function(){};var Pt=k("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=It.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:m()})),Rt=k("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=It.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:m()}));function Ft(e,t){var n,r;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return It();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var Yt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function jt(e){var t=R(e),n=t.year||0,r=t.quarter||0,i=t.month||0,o=t.week||t.isoWeek||0,s=t.day||0,a=t.hour||0,u=t.minute||0,l=t.second||0,c=t.millisecond||0;this._isValid=function(e){for(var t in e)if(-1===De.call(Yt,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,r=0;r<Yt.length;++r)if(e[Yt[r]]){if(n)return!1;parseFloat(e[Yt[r]])!==S(e[Yt[r]])&&(n=!0)}return!0}(t),this._milliseconds=+c+1e3*l+6e4*u+1e3*a*60*60,this._days=+s+7*o,this._months=+i+3*r+12*n,this._data={},this._locale=mt(),this._bubble()}function Bt(e){return e instanceof jt}function Wt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Ht(e,t){z(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+j(~~(e/60),2)+t+j(~~e%60,2)}))}Ht("Z",":"),Ht("ZZ",""),ce("Z",ae),ce("ZZ",ae),pe(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=zt(ae,e)}));var Vt=/([\+\-]|\d\d)/gi;function zt(e,t){var n=(t||"").match(e);if(null===n)return null;var r=((n[n.length-1]||[])+"").match(Vt)||["-",0,0],i=60*r[1]+S(r[2]);return 0===i?0:"+"===r[0]?i:-i}function Ut(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(w(e)||l(e)?e.valueOf():It(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),i.updateOffset(n,!1),n):It(e).local()}function qt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Kt(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var Gt=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,$t=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Zt(e,t){var n,r,i,o,s,a,l=e,c=null;return Bt(e)?l={ms:e._milliseconds,d:e._days,M:e._months}:u(e)?(l={},t?l[t]=e:l.milliseconds=e):(c=Gt.exec(e))?(n="-"===c[1]?-1:1,l={y:0,d:S(c[ve])*n,h:S(c[be])*n,m:S(c[we])*n,s:S(c[Ce])*n,ms:S(Wt(1e3*c[Se]))*n}):(c=$t.exec(e))?(n="-"===c[1]?-1:1,l={y:Xt(c[2],n),M:Xt(c[3],n),w:Xt(c[4],n),d:Xt(c[5],n),h:Xt(c[6],n),m:Xt(c[7],n),s:Xt(c[8],n)}):null==l?l={}:"object"==typeof l&&("from"in l||"to"in l)&&(o=It(l.from),s=It(l.to),i=o.isValid()&&s.isValid()?(s=Ut(s,o),o.isBefore(s)?a=Jt(o,s):((a=Jt(s,o)).milliseconds=-a.milliseconds,a.months=-a.months),a):{milliseconds:0,months:0},(l={}).ms=i.milliseconds,l.M=i.months),r=new jt(l),Bt(e)&&d(e,"_locale")&&(r._locale=e._locale),r}function Xt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Jt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Qt(e,t){return function(n,r){var i;return null===r||isNaN(+r)||(E(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),en(this,Zt(n="string"==typeof n?+n:n,r),e),this}}function en(e,t,n,r){var o=t._milliseconds,s=Wt(t._days),a=Wt(t._months);e.isValid()&&(r=null==r||r,a&&Ye(e,Ne(e,"Month")+a*n),s&&Oe(e,"Date",Ne(e,"Date")+s*n),o&&e._d.setTime(e._d.valueOf()+o*n),r&&i.updateOffset(e,s||a))}Zt.fn=jt.prototype,Zt.invalid=function(){return Zt(NaN)};var tn=Qt(1,"add"),nn=Qt(-1,"subtract");function rn(e,t){var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function on(e){var t;return void 0===e?this._locale._abbr:(null!=(t=mt(e))&&(this._locale=t),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var sn=k("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function an(){return this._locale}var un=1e3,ln=60*un,cn=60*ln,dn=3506328*cn;function hn(e,t){return(e%t+t)%t}function fn(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-dn:new Date(e,t,n).valueOf()}function pn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-dn:Date.UTC(e,t,n)}function gn(e,t){z(0,[e,e.length],0,t)}function mn(e,t,n,r,i){var o;return null==e?Ke(this,r,i).year:(t>(o=Ge(e,r,i))&&(t=o),_n.call(this,e,t,n,r,i))}function _n(e,t,n,r,i){var o=qe(e,t,n,r,i),s=ze(o.year,0,o.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}z(0,["gg",2],0,(function(){return this.weekYear()%100})),z(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),gn("gggg","weekYear"),gn("ggggg","weekYear"),gn("GGGG","isoWeekYear"),gn("GGGGG","isoWeekYear"),I("weekYear","gg"),I("isoWeekYear","GG"),Y("weekYear",1),Y("isoWeekYear",1),ce("G",oe),ce("g",oe),ce("GG",J,G),ce("gg",J,G),ce("GGGG",ne,Z),ce("gggg",ne,Z),ce("GGGGG",re,X),ce("ggggg",re,X),ge(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=S(e)})),ge(["gg","GG"],(function(e,t,n,r){t[r]=i.parseTwoDigitYear(e)})),z("Q",0,"Qo","quarter"),I("quarter","Q"),Y("quarter",7),ce("Q",K),pe("Q",(function(e,t){t[ye]=3*(S(e)-1)})),z("D",["DD",2],"Do","date"),I("date","D"),Y("date",9),ce("D",J),ce("DD",J,G),ce("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),pe(["D","DD"],ve),pe("Do",(function(e,t){t[ve]=S(e.match(J)[0])}));var yn=Te("Date",!0);z("DDD",["DDDD",3],"DDDo","dayOfYear"),I("dayOfYear","DDD"),Y("dayOfYear",4),ce("DDD",te),ce("DDDD",$),pe(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=S(e)})),z("m",["mm",2],0,"minute"),I("minute","m"),Y("minute",14),ce("m",J),ce("mm",J,G),pe(["m","mm"],we);var vn=Te("Minutes",!1);z("s",["ss",2],0,"second"),I("second","s"),Y("second",15),ce("s",J),ce("ss",J,G),pe(["s","ss"],Ce);var bn,wn=Te("Seconds",!1);for(z("S",0,0,(function(){return~~(this.millisecond()/100)})),z(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),z(0,["SSS",3],0,"millisecond"),z(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),z(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),z(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),z(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),z(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),z(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),I("millisecond","ms"),Y("millisecond",16),ce("S",te,K),ce("SS",te,G),ce("SSS",te,$),bn="SSSS";bn.length<=9;bn+="S")ce(bn,ie);function Cn(e,t){t[Se]=S(1e3*("0."+e))}for(bn="S";bn.length<=9;bn+="S")pe(bn,Cn);var Sn=Te("Milliseconds",!1);z("z",0,0,"zoneAbbr"),z("zz",0,0,"zoneName");var xn=b.prototype;function Ln(e){return e}xn.add=tn,xn.calendar=function(e,t){var n=e||It(),r=Ut(n,this).startOf("day"),o=i.calendarFormat(this,r)||"sameElse",s=t&&(T(t[o])?t[o].call(this,n):t[o]);return this.format(s||this.localeData().calendar(o,this,It(n)))},xn.clone=function(){return new b(this)},xn.diff=function(e,t,n){var r,i,o;if(!this.isValid())return NaN;if(!(r=Ut(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=P(t)){case"year":o=rn(this,r)/12;break;case"month":o=rn(this,r);break;case"quarter":o=rn(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:C(o)},xn.endOf=function(e){var t;if(void 0===(e=P(e))||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?pn:fn;switch(e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=cn-hn(t+(this._isUTC?0:this.utcOffset()*ln),cn)-1;break;case"minute":t=this._d.valueOf(),t+=ln-hn(t,ln)-1;break;case"second":t=this._d.valueOf(),t+=un-hn(t,un)-1}return this._d.setTime(t),i.updateOffset(this,!0),this},xn.format=function(e){e||(e=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var t=U(this,e);return this.localeData().postformat(t)},xn.from=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||It(e).isValid())?Zt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},xn.fromNow=function(e){return this.from(It(),e)},xn.to=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||It(e).isValid())?Zt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},xn.toNow=function(e){return this.to(It(),e)},xn.get=function(e){return T(this[e=P(e)])?this[e]():this},xn.invalidAt=function(){return p(this).overflow},xn.isAfter=function(e,t){var n=w(e)?e:It(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=P(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},xn.isBefore=function(e,t){var n=w(e)?e:It(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=P(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},xn.isBetween=function(e,t,n,r){var i=w(e)?e:It(e),o=w(t)?t:It(t);return!!(this.isValid()&&i.isValid()&&o.isValid())&&("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(o,n):!this.isAfter(o,n))},xn.isSame=function(e,t){var n,r=w(e)?e:It(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=P(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},xn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},xn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},xn.isValid=function(){return g(this)},xn.lang=sn,xn.locale=on,xn.localeData=an,xn.max=Rt,xn.min=Pt,xn.parsingFlags=function(){return h({},p(this))},xn.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t=[];for(var n in e)t.push({unit:n,priority:F[n]});return t.sort((function(e,t){return e.priority-t.priority})),t}(e=R(e)),r=0;r<n.length;r++)this[n[r].unit](e[n[r].unit]);else if(T(this[e=P(e)]))return this[e](t);return this},xn.startOf=function(e){var t;if(void 0===(e=P(e))||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?pn:fn;switch(e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=hn(t+(this._isUTC?0:this.utcOffset()*ln),cn);break;case"minute":t=this._d.valueOf(),t-=hn(t,ln);break;case"second":t=this._d.valueOf(),t-=hn(t,un)}return this._d.setTime(t),i.updateOffset(this,!0),this},xn.subtract=nn,xn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},xn.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},xn.toDate=function(){return new Date(this.valueOf())},xn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?U(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):T(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",U(n,"Z")):U(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},xn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=t+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+i)},xn.toJSON=function(){return this.isValid()?this.toISOString():null},xn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},xn.unix=function(){return Math.floor(this.valueOf()/1e3)},xn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},xn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},xn.year=Ee,xn.isLeapYear=function(){return Me(this.year())},xn.weekYear=function(e){return mn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},xn.isoWeekYear=function(e){return mn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},xn.quarter=xn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},xn.month=je,xn.daysInMonth=function(){return Ae(this.year(),this.month())},xn.week=xn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},xn.isoWeek=xn.isoWeeks=function(e){var t=Ke(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},xn.weeksInYear=function(){var e=this.localeData()._week;return Ge(this.year(),e.dow,e.doy)},xn.isoWeeksInYear=function(){return Ge(this.year(),1,4)},xn.date=yn,xn.day=xn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},xn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},xn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},xn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},xn.hour=xn.hours=ut,xn.minute=xn.minutes=vn,xn.second=xn.seconds=wn,xn.millisecond=xn.milliseconds=Sn,xn.utcOffset=function(e,t,n){var r,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=zt(ae,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=qt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==e&&(!t||this._changeInProgress?en(this,Zt(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:qt(this)},xn.utc=function(e){return this.utcOffset(0,e)},xn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(qt(this),"m")),this},xn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=zt(se,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},xn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?It(e).utcOffset():0,(this.utcOffset()-e)%60==0)},xn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},xn.isLocal=function(){return!!this.isValid()&&!this._isUTC},xn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},xn.isUtc=Kt,xn.isUTC=Kt,xn.zoneAbbr=function(){return this._isUTC?"UTC":""},xn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},xn.dates=k("dates accessor is deprecated. Use date instead.",yn),xn.months=k("months accessor is deprecated. Use month instead",je),xn.years=k("years accessor is deprecated. Use year instead",Ee),xn.zone=k("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),xn.isDSTShifted=k("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!a(this._isDSTShifted))return this._isDSTShifted;var e={};if(y(e,this),(e=Ot(e))._a){var t=e._isUTC?f(e._a):It(e._a);this._isDSTShifted=this.isValid()&&x(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}));var kn=O.prototype;function Mn(e,t,n,r){var i=mt(),o=f().set(r,t);return i[n](o,e)}function Dn(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return Mn(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=Mn(e,r,n,"month");return i}function En(e,t,n,r){"boolean"==typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var i,o=mt(),s=e?o._week.dow:0;if(null!=n)return Mn(t,(n+s)%7,r,"day");var a=[];for(i=0;i<7;i++)a[i]=Mn(t,(i+s)%7,r,"day");return a}kn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return T(r)?r.call(t,n):r},kn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,(function(e){return e.slice(1)})),this._longDateFormat[e])},kn.invalidDate=function(){return this._invalidDate},kn.ordinal=function(e){return this._ordinal.replace("%d",e)},kn.preparse=Ln,kn.postformat=Ln,kn.relativeTime=function(e,t,n,r){var i=this._relativeTime[n];return T(i)?i(e,t,n,r):i.replace(/%d/i,e)},kn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return T(n)?n(t):n.replace(/%s/i,t)},kn.set=function(e){var t,n;for(n in e)T(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},kn.months=function(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ie).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone},kn.monthsShort=function(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ie.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},kn.monthsParse=function(e,t,n){var r,i,o;if(this._monthsParseExact)return Fe.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=f([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},kn.monthsRegex=function(e){return this._monthsParseExact?(d(this,"_monthsRegex")||He.call(this),e?this._monthsStrictRegex:this._monthsRegex):(d(this,"_monthsRegex")||(this._monthsRegex=We),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},kn.monthsShortRegex=function(e){return this._monthsParseExact?(d(this,"_monthsRegex")||He.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(d(this,"_monthsShortRegex")||(this._monthsShortRegex=Be),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},kn.week=function(e){return Ke(e,this._week.dow,this._week.doy).week},kn.firstDayOfYear=function(){return this._week.doy},kn.firstDayOfWeek=function(){return this._week.dow},kn.weekdays=function(e,t){var n=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?$e(n,this._week.dow):e?n[e.day()]:n},kn.weekdaysMin=function(e){return!0===e?$e(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},kn.weekdaysShort=function(e){return!0===e?$e(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},kn.weekdaysParse=function(e,t,n){var r,i,o;if(this._weekdaysParseExact)return Qe.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=f([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},kn.weekdaysRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||rt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(d(this,"_weekdaysRegex")||(this._weekdaysRegex=et),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},kn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||rt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(d(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=tt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},kn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||rt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(d(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=nt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},kn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},kn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},pt("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===S(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),i.lang=k("moment.lang is deprecated. Use moment.locale instead.",pt),i.langData=k("moment.langData is deprecated. Use moment.localeData instead.",mt);var Tn=Math.abs;function Nn(e,t,n,r){var i=Zt(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function On(e){return e<0?Math.floor(e):Math.ceil(e)}function An(e){return 4800*e/146097}function In(e){return 146097*e/4800}function Pn(e){return function(){return this.as(e)}}var Rn=Pn("ms"),Fn=Pn("s"),Yn=Pn("m"),jn=Pn("h"),Bn=Pn("d"),Wn=Pn("w"),Hn=Pn("M"),Vn=Pn("Q"),zn=Pn("y");function Un(e){return function(){return this.isValid()?this._data[e]:NaN}}var qn=Un("milliseconds"),Kn=Un("seconds"),Gn=Un("minutes"),$n=Un("hours"),Zn=Un("days"),Xn=Un("months"),Jn=Un("years"),Qn=Math.round,er={ss:44,s:45,m:45,h:22,d:26,M:11};function tr(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}var nr=Math.abs;function rr(e){return(e>0)-(e<0)||+e}function ir(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=nr(this._milliseconds)/1e3,r=nr(this._days),i=nr(this._months);e=C(n/60),t=C(e/60),n%=60,e%=60;var o=C(i/12),s=i%=12,a=r,u=t,l=e,c=n?n.toFixed(3).replace(/\.?0+$/,""):"",d=this.asSeconds();if(!d)return"P0D";var h=d<0?"-":"",f=rr(this._months)!==rr(d)?"-":"",p=rr(this._days)!==rr(d)?"-":"",g=rr(this._milliseconds)!==rr(d)?"-":"";return h+"P"+(o?f+o+"Y":"")+(s?f+s+"M":"")+(a?p+a+"D":"")+(u||l||c?"T":"")+(u?g+u+"H":"")+(l?g+l+"M":"")+(c?g+c+"S":"")}var or=jt.prototype;return or.isValid=function(){return this._isValid},or.abs=function(){var e=this._data;return this._milliseconds=Tn(this._milliseconds),this._days=Tn(this._days),this._months=Tn(this._months),e.milliseconds=Tn(e.milliseconds),e.seconds=Tn(e.seconds),e.minutes=Tn(e.minutes),e.hours=Tn(e.hours),e.months=Tn(e.months),e.years=Tn(e.years),this},or.add=function(e,t){return Nn(this,e,t,1)},or.subtract=function(e,t){return Nn(this,e,t,-1)},or.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=P(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+An(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(In(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},or.asMilliseconds=Rn,or.asSeconds=Fn,or.asMinutes=Yn,or.asHours=jn,or.asDays=Bn,or.asWeeks=Wn,or.asMonths=Hn,or.asQuarters=Vn,or.asYears=zn,or.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*S(this._months/12):NaN},or._bubble=function(){var e,t,n,r,i,o=this._milliseconds,s=this._days,a=this._months,u=this._data;return o>=0&&s>=0&&a>=0||o<=0&&s<=0&&a<=0||(o+=864e5*On(In(a)+s),s=0,a=0),u.milliseconds=o%1e3,e=C(o/1e3),u.seconds=e%60,t=C(e/60),u.minutes=t%60,n=C(t/60),u.hours=n%24,s+=C(n/24),i=C(An(s)),a+=i,s-=On(In(i)),r=C(a/12),a%=12,u.days=s,u.months=a,u.years=r,this},or.clone=function(){return Zt(this)},or.get=function(e){return e=P(e),this.isValid()?this[e+"s"]():NaN},or.milliseconds=qn,or.seconds=Kn,or.minutes=Gn,or.hours=$n,or.days=Zn,or.weeks=function(){return C(this.days()/7)},or.months=Xn,or.years=Jn,or.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=function(e,t,n){var r=Zt(e).abs(),i=Qn(r.as("s")),o=Qn(r.as("m")),s=Qn(r.as("h")),a=Qn(r.as("d")),u=Qn(r.as("M")),l=Qn(r.as("y")),c=i<=er.ss&&["s",i]||i<er.s&&["ss",i]||o<=1&&["m"]||o<er.m&&["mm",o]||s<=1&&["h"]||s<er.h&&["hh",s]||a<=1&&["d"]||a<er.d&&["dd",a]||u<=1&&["M"]||u<er.M&&["MM",u]||l<=1&&["y"]||["yy",l];return c[2]=t,c[3]=+e>0,c[4]=n,tr.apply(null,c)}(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},or.toISOString=ir,or.toString=ir,or.toJSON=ir,or.locale=on,or.localeData=an,or.toIsoString=k("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ir),or.lang=sn,z("X",0,0,"unix"),z("x",0,0,"valueOf"),ce("x",oe),ce("X",/[+-]?\d+(\.\d{1,3})?/),pe("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))})),pe("x",(function(e,t,n){n._d=new Date(S(e))})),i.version="2.24.0",t=It,i.fn=xn,i.min=function(){return Ft("isBefore",[].slice.call(arguments,0))},i.max=function(){return Ft("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=f,i.unix=function(e){return It(1e3*e)},i.months=function(e,t){return Dn(e,t,"months")},i.isDate=l,i.locale=pt,i.invalid=m,i.duration=Zt,i.isMoment=w,i.weekdays=function(e,t,n){return En(e,t,n,"weekdays")},i.parseZone=function(){return It.apply(null,arguments).parseZone()},i.localeData=mt,i.isDuration=Bt,i.monthsShort=function(e,t){return Dn(e,t,"monthsShort")},i.weekdaysMin=function(e,t,n){return En(e,t,n,"weekdaysMin")},i.defineLocale=gt,i.updateLocale=function(e,t){if(null!=t){var n,r,i=lt;null!=(r=ft(e))&&(i=r._config),t=N(i,t),(n=new O(t)).parentLocale=ct[e],ct[e]=n,pt(e)}else null!=ct[e]&&(null!=ct[e].parentLocale?ct[e]=ct[e].parentLocale:null!=ct[e]&&delete ct[e]);return ct[e]},i.locales=function(){return M(ct)},i.weekdaysShort=function(e,t,n){return En(e,t,n,"weekdaysShort")},i.normalizeUnits=P,i.relativeTimeRounding=function(e){return void 0===e?Qn:"function"==typeof e&&(Qn=e,!0)},i.relativeTimeThreshold=function(e,t){return void 0!==er[e]&&(void 0===t?er[e]:(er[e]=t,"s"===e&&(er.ss=t-1),!0))},i.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},i.prototype=xn,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i}()}).call(this,n(40)(e))},function(e,t,n){"use strict";(function(e,r){n.d(t,"g",(function(){return p})),n.d(t,"d",(function(){return g})),n.d(t,"c",(function(){return m})),n.d(t,"e",(function(){return _})),n.d(t,"f",(function(){return y})),n.d(t,"b",(function(){return v})),n.d(t,"h",(function(){return w})),n.d(t,"a",(function(){return C}));var i=!1,o=!1,s=!1,a=!1,u=!1,l=void 0,c=void 0!==e&&void 0!==e.versions&&void 0!==e.versions.electron&&"renderer"===e.type;if("object"!=typeof navigator||c){if("object"==typeof e){i="win32"===e.platform,o="darwin"===e.platform,s="linux"===e.platform,"en","en";var d=e.env.VSCODE_NLS_CONFIG;if(d)try{var h=JSON.parse(d),f=h.availableLanguages["*"];h.locale,f||"en",h._translationsConfigFile}catch(e){}a=!0}}else i=(l=navigator.userAgent).indexOf("Windows")>=0,o=l.indexOf("Macintosh")>=0,s=l.indexOf("Linux")>=0,u=!0,navigator.language;var p=i,g=o,m=s,_=a,y=u,v="object"==typeof self?self:"object"==typeof r?r:{},b=null;function w(t){return null===b&&(b=v.setImmediate?v.setImmediate.bind(v):void 0!==e&&"function"==typeof e.nextTick?e.nextTick.bind(e):v.setTimeout.bind(v)),b(t)}var C=o?2:i?1:3}).call(this,n(72),n(30))},function(e,t,n){var r;try{r={cloneDeep:n(148),constant:n(42),defaults:n(90),each:n(43),filter:n(59),find:n(149),flatten:n(91),forEach:n(83),forIn:n(151),has:n(45),isUndefined:n(62),last:n(152),map:n(63),mapValues:n(153),max:n(154),merge:n(155),min:n(159),minBy:n(161),now:n(162),pick:n(93),range:n(94),reduce:n(64),sortBy:n(163),uniqueId:n(95),values:n(66),zipObject:n(164)}}catch(e){}r||(r=window._),e.exports=r},function(e,t,n){var r;try{r={cloneDeep:n(148),constant:n(42),defaults:n(90),each:n(43),filter:n(59),find:n(149),flatten:n(91),forEach:n(83),forIn:n(151),has:n(45),isUndefined:n(62),last:n(152),map:n(63),mapValues:n(153),max:n(154),merge:n(155),min:n(159),minBy:n(161),now:n(162),pick:n(93),range:n(94),reduce:n(64),sortBy:n(163),uniqueId:n(95),values:n(66),zipObject:n(164)}}catch(e){}r||(r=window._),e.exports=r},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){"use strict";var r=n(2),i=n(13).Graph;function o(e,t,n,i){var o;do{o=r.uniqueId(i)}while(e.hasNode(o));return n.dummy=t,e.setNode(o,n),o}function s(e){return r.max(r.map(e.nodes(),(function(t){var n=e.node(t).rank;if(!r.isUndefined(n))return n})))}e.exports={addDummyNode:o,simplify:function(e){var t=(new i).setGraph(e.graph());return r.forEach(e.nodes(),(function(n){t.setNode(n,e.node(n))})),r.forEach(e.edges(),(function(n){var r=t.edge(n.v,n.w)||{weight:0,minlen:1},i=e.edge(n);t.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})})),t},asNonCompoundGraph:function(e){var t=new i({multigraph:e.isMultigraph()}).setGraph(e.graph());return r.forEach(e.nodes(),(function(n){e.children(n).length||t.setNode(n,e.node(n))})),r.forEach(e.edges(),(function(n){t.setEdge(n,e.edge(n))})),t},successorWeights:function(e){var t=r.map(e.nodes(),(function(t){var n={};return r.forEach(e.outEdges(t),(function(t){n[t.w]=(n[t.w]||0)+e.edge(t).weight})),n}));return r.zipObject(e.nodes(),t)},predecessorWeights:function(e){var t=r.map(e.nodes(),(function(t){var n={};return r.forEach(e.inEdges(t),(function(t){n[t.v]=(n[t.v]||0)+e.edge(t).weight})),n}));return r.zipObject(e.nodes(),t)},intersectRect:function(e,t){var n,r,i=e.x,o=e.y,s=t.x-i,a=t.y-o,u=e.width/2,l=e.height/2;if(!s&&!a)throw new Error("Not possible to find intersection inside of the rectangle");Math.abs(a)*u>Math.abs(s)*l?(a<0&&(l=-l),n=l*s/a,r=l):(s<0&&(u=-u),n=u,r=u*a/s);return{x:i+n,y:o+r}},buildLayerMatrix:function(e){var t=r.map(r.range(s(e)+1),(function(){return[]}));return r.forEach(e.nodes(),(function(n){var i=e.node(n),o=i.rank;r.isUndefined(o)||(t[o][i.order]=n)})),t},normalizeRanks:function(e){var t=r.min(r.map(e.nodes(),(function(t){return e.node(t).rank})));r.forEach(e.nodes(),(function(n){var i=e.node(n);r.has(i,"rank")&&(i.rank-=t)}))},removeEmptyRanks:function(e){var t=r.min(r.map(e.nodes(),(function(t){return e.node(t).rank}))),n=[];r.forEach(e.nodes(),(function(r){var i=e.node(r).rank-t;n[i]||(n[i]=[]),n[i].push(r)}));var i=0,o=e.graph().nodeRankFactor;r.forEach(n,(function(t,n){r.isUndefined(t)&&n%o!=0?--i:i&&r.forEach(t,(function(t){e.node(t).rank+=i}))}))},addBorderNode:function(e,t,n,r){var i={width:0,height:0};arguments.length>=4&&(i.rank=n,i.order=r);return o(e,"border",i,t)},maxRank:s,partition:function(e,t){var n={lhs:[],rhs:[]};return r.forEach(e,(function(e){t(e)?n.lhs.push(e):n.rhs.push(e)})),n},time:function(e,t){var n=r.now();try{return t()}finally{console.log(e+" time: "+(r.now()-n)+"ms")}},notime:function(e,t){return t()}}},function(e,t,n){"use strict";var r=n(3),i=n(15).Graph;function o(e,t,n,i){var o;do{o=r.uniqueId(i)}while(e.hasNode(o));return n.dummy=t,e.setNode(o,n),o}function s(e){return r.max(r.map(e.nodes(),(function(t){var n=e.node(t).rank;if(!r.isUndefined(n))return n})))}e.exports={addDummyNode:o,simplify:function(e){var t=(new i).setGraph(e.graph());return r.forEach(e.nodes(),(function(n){t.setNode(n,e.node(n))})),r.forEach(e.edges(),(function(n){var r=t.edge(n.v,n.w)||{weight:0,minlen:1},i=e.edge(n);t.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})})),t},asNonCompoundGraph:function(e){var t=new i({multigraph:e.isMultigraph()}).setGraph(e.graph());return r.forEach(e.nodes(),(function(n){e.children(n).length||t.setNode(n,e.node(n))})),r.forEach(e.edges(),(function(n){t.setEdge(n,e.edge(n))})),t},successorWeights:function(e){var t=r.map(e.nodes(),(function(t){var n={};return r.forEach(e.outEdges(t),(function(t){n[t.w]=(n[t.w]||0)+e.edge(t).weight})),n}));return r.zipObject(e.nodes(),t)},predecessorWeights:function(e){var t=r.map(e.nodes(),(function(t){var n={};return r.forEach(e.inEdges(t),(function(t){n[t.v]=(n[t.v]||0)+e.edge(t).weight})),n}));return r.zipObject(e.nodes(),t)},intersectRect:function(e,t){var n,r,i=e.x,o=e.y,s=t.x-i,a=t.y-o,u=e.width/2,l=e.height/2;if(!s&&!a)throw new Error("Not possible to find intersection inside of the rectangle");Math.abs(a)*u>Math.abs(s)*l?(a<0&&(l=-l),n=l*s/a,r=l):(s<0&&(u=-u),n=u,r=u*a/s);return{x:i+n,y:o+r}},buildLayerMatrix:function(e){var t=r.map(r.range(s(e)+1),(function(){return[]}));return r.forEach(e.nodes(),(function(n){var i=e.node(n),o=i.rank;r.isUndefined(o)||(t[o][i.order]=n)})),t},normalizeRanks:function(e){var t=r.min(r.map(e.nodes(),(function(t){return e.node(t).rank})));r.forEach(e.nodes(),(function(n){var i=e.node(n);r.has(i,"rank")&&(i.rank-=t)}))},removeEmptyRanks:function(e){var t=r.min(r.map(e.nodes(),(function(t){return e.node(t).rank}))),n=[];r.forEach(e.nodes(),(function(r){var i=e.node(r).rank-t;n[i]||(n[i]=[]),n[i].push(r)}));var i=0,o=e.graph().nodeRankFactor;r.forEach(n,(function(t,n){r.isUndefined(t)&&n%o!=0?--i:i&&r.forEach(t,(function(t){e.node(t).rank+=i}))}))},addBorderNode:function(e,t,n,r){var i={width:0,height:0};arguments.length>=4&&(i.rank=n,i.order=r);return o(e,"border",i,t)},maxRank:s,partition:function(e,t){var n={lhs:[],rhs:[]};return r.forEach(e,(function(e){t(e)?n.lhs.push(e):n.rhs.push(e)})),n},time:function(e,t){var n=r.now();try{return t()}finally{console.log(e+" time: "+(r.now()-n)+"ms")}},notime:function(e,t){return t()}}},function(e,t,n){var r;try{r={clone:n(104),constant:n(42),each:n(43),filter:n(59),has:n(45),isArray:n(4),isEmpty:n(134),isFunction:n(25),isUndefined:n(62),keys:n(19),map:n(63),reduce:n(64),size:n(136),transform:n(137),union:n(138),values:n(66)}}catch(e){}r||(r=window._),e.exports=r},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r;try{r={clone:n(104),constant:n(42),each:n(43),filter:n(59),has:n(45),isArray:n(4),isEmpty:n(134),isFunction:n(25),isUndefined:n(62),keys:n(19),map:n(63),reduce:n(64),size:n(136),transform:n(137),union:n(138),values:n(66)}}catch(e){}r||(r=window._),e.exports=r},function(e,t,n){var r=n(37);e.exports={isSubgraph:function(e,t){return!!e.children(t).length},edgeToId:function(e){return o(e.v)+":"+o(e.w)+":"+o(e.name)},applyStyle:function(e,t){t&&e.attr("style",t)},applyClass:function(e,t,n){t&&e.attr("class",t).attr("class",n+" "+e.attr("class"))},applyTransition:function(e,t){var n=t.graph();if(r.isPlainObject(n)){var i=n.transition;if(r.isFunction(i))return i(e)}return e}};var i=/:/g;function o(e){return e?String(e).replace(i,"\\:"):""}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(578),i=n(579),o=n(580),s={channel:r.default,lang:i.default,unit:o.default};t.default=s},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return a}));var r=n(1),i=void 0===e?{cwd:function(){return"/"},env:Object.create(null),get platform(){return r.g?"win32":r.d?"darwin":"linux"},nextTick:function(e){return Object(r.h)(e)}}:e,o=i.cwd,s=i.env,a=i.platform}).call(this,n(72))},function(e,t,n){var r;try{r=n(103)}catch(e){}r||(r=window.graphlib),e.exports=r},function(e,t,n){var r=n(106),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},function(e,t,n){var r;try{r=n(166)}catch(e){}r||(r=window.graphlib),e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(99),i=n(179),o=n(584),s=n(585),a=n(586),u={format:{keyword:o.default,hex:i.default,rgb:s.default,rgba:s.default,hsl:a.default,hsla:a.default},parse:function(e){if("string"!=typeof e)return e;var t=i.default.parse(e)||s.default.parse(e)||a.default.parse(e)||o.default.parse(e);if(t)return t;throw new Error('Unsupported color format: "'+e+'"')},stringify:function(e){return!e.changed&&e.color?e.color:e.type.is(r.TYPE.HSL)||void 0===e.data.r?a.default.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?s.default.stringify(e):i.default.stringify(e)}};t.default=u},function(module,exports,__webpack_require__){(function(global){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;!function(e,t){module.exports=t(e)}("undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==global?global:this,(function(global){"use strict";global=global||{};var _Base64=global.Base64,version="2.5.1",buffer;if(module.exports)try{buffer=eval("require('buffer').Buffer")}catch(e){buffer=void 0}var b64chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b64tab=function(e){for(var t={},n=0,r=e.length;n<r;n++)t[e.charAt(n)]=n;return t}(b64chars),fromCharCode=String.fromCharCode,cb_utob=function(e){if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?fromCharCode(192|t>>>6)+fromCharCode(128|63&t):fromCharCode(224|t>>>12&15)+fromCharCode(128|t>>>6&63)+fromCharCode(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return fromCharCode(240|t>>>18&7)+fromCharCode(128|t>>>12&63)+fromCharCode(128|t>>>6&63)+fromCharCode(128|63&t)},re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,utob=function(e){return e.replace(re_utob,cb_utob)},cb_encode=function(e){var t=[0,2,1][e.length%3],n=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0);return[b64chars.charAt(n>>>18),b64chars.charAt(n>>>12&63),t>=2?"=":b64chars.charAt(n>>>6&63),t>=1?"=":b64chars.charAt(63&n)].join("")},btoa=global.btoa?function(e){return global.btoa(e)}:function(e){return e.replace(/[\s\S]{1,3}/g,cb_encode)},_encode=buffer?buffer.from&&Uint8Array&&buffer.from!==Uint8Array.from?function(e){return(e.constructor===buffer.constructor?e:buffer.from(e)).toString("base64")}:function(e){return(e.constructor===buffer.constructor?e:new buffer(e)).toString("base64")}:function(e){return btoa(utob(e))},encode=function(e,t){return t?_encode(String(e)).replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"})).replace(/=/g,""):_encode(String(e))},encodeURI=function(e){return encode(e,!0)},re_btou=new RegExp(["[À-ß][€-¿]","[à-ï][€-¿]{2}","[ð-÷][€-¿]{3}"].join("|"),"g"),cb_btou=function(e){switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return fromCharCode(55296+(t>>>10))+fromCharCode(56320+(1023&t));case 3:return fromCharCode((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return fromCharCode((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},btou=function(e){return e.replace(re_btou,cb_btou)},cb_decode=function(e){var t=e.length,n=t%4,r=(t>0?b64tab[e.charAt(0)]<<18:0)|(t>1?b64tab[e.charAt(1)]<<12:0)|(t>2?b64tab[e.charAt(2)]<<6:0)|(t>3?b64tab[e.charAt(3)]:0),i=[fromCharCode(r>>>16),fromCharCode(r>>>8&255),fromCharCode(255&r)];return i.length-=[0,0,2,1][n],i.join("")},_atob=global.atob?function(e){return global.atob(e)}:function(e){return e.replace(/\S{1,4}/g,cb_decode)},atob=function(e){return _atob(String(e).replace(/[^A-Za-z0-9\+\/]/g,""))},_decode=buffer?buffer.from&&Uint8Array&&buffer.from!==Uint8Array.from?function(e){return(e.constructor===buffer.constructor?e:buffer.from(e,"base64")).toString()}:function(e){return(e.constructor===buffer.constructor?e:new buffer(e,"base64")).toString()}:function(e){return btou(_atob(e))},decode=function(e){return _decode(String(e).replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})).replace(/[^A-Za-z0-9\+\/]/g,""))},noConflict=function(){var e=global.Base64;return global.Base64=_Base64,e};if(global.Base64={VERSION:version,atob:atob,btoa:btoa,fromBase64:decode,toBase64:encode,utob:utob,encode:encode,encodeURI:encodeURI,btou:btou,decode:decode,noConflict:noConflict,__buffer__:buffer},"function"==typeof Object.defineProperty){var noEnum=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}};global.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",noEnum((function(){return decode(this)}))),Object.defineProperty(String.prototype,"toBase64",noEnum((function(e){return encode(this,e)}))),Object.defineProperty(String.prototype,"toBase64URI",noEnum((function(){return encode(this,!0)})))}}return global.Meteor&&(Base64=global.Base64),module.exports?module.exports.Base64=global.Base64:(__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return global.Base64}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)),{Base64:global.Base64}}))}).call(this,__webpack_require__(30))},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){var r=n(109),i=n(79),o=n(20);e.exports=function(e){return o(e)?r(e):i(e)}},function(e,t,n){var r=n(25),i=n(77);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},function(e,t,n){var r=n(426),i=n(436),o=n(27),s=n(4),a=n(443);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?s(e)?i(e[0],e[1]):r(e):a(e)}},function(e,t,n){var r;if(!r)try{r=n(316)}catch(e){}r||(r=window.d3),e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(11),i=n(16);t.default=function(e,t){return r.default.lang.round(i.default.parse(e)[t])}},function(e,t,n){var r=n(381),i=n(386);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},function(e,t,n){var r=n(26),i=n(8),o="[object AsyncFunction]",s="[object Function]",a="[object GeneratorFunction]",u="[object Proxy]";e.exports=function(e){if(!i(e))return!1;var t=r(e);return t==s||t==a||t==o||t==u}},function(e,t,n){var r=n(32),i=n(382),o=n(383),s="[object Null]",a="[object Undefined]",u=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?a:s:u&&u in Object(e)?i(e):o(e)}},function(e,t){e.exports=function(e){return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(11),i=n(16);t.default=function(e,t,n){var o=i.default.parse(e),s=o[t],a=r.default.channel.clamp[t](s+n);return s!==a&&(o[t]=a),i.default.stringify(o)}},function(e,t,n){var r;"undefined"!=typeof self&&self,r=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/mermaid.js")}({"./node_modules/node-libs-browser/mock/empty.js": +!function(e){function t(t){for(var n,r,o=t[0],s=t[1],a=0,c=[];a<o.length;a++)r=o[a],Object.prototype.hasOwnProperty.call(i,r)&&i[r]&&c.push(i[r][0]),i[r]=0;for(n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n]);for(l&&l(t);c.length;)c.shift()()}var n={},i={2:0};function r(t){if(n[t])return n[t].exports;var i=n[t]={i:t,l:!1,exports:{}};return e[t].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.e=function(e){var t=[],n=i[e];if(0!==n)if(n)t.push(n[2]);else{var o=new Promise((function(t,r){n=i[e]=[t,r]}));t.push(n[2]=o);var s,a=document.createElement("script");a.charset="utf-8",a.timeout=120,r.nc&&a.setAttribute("nonce",r.nc),a.src=function(e){return r.p+""+({}[e]||e)+"."+e+".js"}(e);var l=new Error;s=function(t){a.onerror=a.onload=null,clearTimeout(c);var n=i[e];if(0!==n){if(n){var r=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;l.message="Loading chunk "+e+" failed.\n("+r+": "+o+")",l.name="ChunkLoadError",l.type=r,l.request=o,n[1](l)}i[e]=void 0}};var c=setTimeout((function(){s({type:"timeout",target:a})}),12e4);a.onerror=a.onload=s,document.head.appendChild(a)}return Promise.all(t)},r.m=e,r.c=n,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r.oe=function(e){throw console.error(e),e};var o=window.webpackJsonp=window.webpackJsonp||[],s=o.push.bind(o);o.push=t,o=o.slice();for(var a=0;a<o.length;a++)t(o[a]);var l=s;r(r.s=567)}([function(e,t,n){"use strict";function i(e,t,...n){return function(e,t){let n;return n=0===t.length?e:e.replace(/\{(\d+)\}/g,(function(e,n){const i=n[0];return void 0!==t[i]?t[i]:e}))}(t,n)}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";n.d(t,"s",(function(){return p})),n.d(t,"S",(function(){return m})),n.d(t,"N",(function(){return _})),n.d(t,"I",(function(){return v})),n.d(t,"e",(function(){return y})),n.d(t,"f",(function(){return w})),n.d(t,"Q",(function(){return C})),n.d(t,"R",(function(){return S})),n.d(t,"ab",(function(){return k})),n.d(t,"i",(function(){return L})),n.d(t,"n",(function(){return D})),n.d(t,"m",(function(){return E})),n.d(t,"g",(function(){return T})),n.d(t,"h",(function(){return O})),n.d(t,"j",(function(){return N})),n.d(t,"k",(function(){return I})),n.d(t,"W",(function(){return A})),n.d(t,"Y",(function(){return R})),n.d(t,"l",(function(){return H})),n.d(t,"z",(function(){return Y})),n.d(t,"y",(function(){return V})),n.d(t,"F",(function(){return $})),n.d(t,"C",(function(){return q})),n.d(t,"d",(function(){return K})),n.d(t,"H",(function(){return G})),n.d(t,"B",(function(){return Z})),n.d(t,"A",(function(){return J})),n.d(t,"G",(function(){return X})),n.d(t,"L",(function(){return Q})),n.d(t,"w",(function(){return ee})),n.d(t,"J",(function(){return te})),n.d(t,"O",(function(){return ie})),n.d(t,"E",(function(){return re})),n.d(t,"x",(function(){return oe})),n.d(t,"v",(function(){return se})),n.d(t,"u",(function(){return ce})),n.d(t,"P",(function(){return de})),n.d(t,"M",(function(){return ue})),n.d(t,"c",(function(){return he})),n.d(t,"b",(function(){return fe})),n.d(t,"X",(function(){return ge})),n.d(t,"V",(function(){return pe})),n.d(t,"bb",(function(){return _e})),n.d(t,"p",(function(){return be})),n.d(t,"U",(function(){return ye})),n.d(t,"a",(function(){return Se})),n.d(t,"Z",(function(){return ke})),n.d(t,"K",(function(){return xe})),n.d(t,"T",(function(){return Le})),n.d(t,"D",(function(){return Me})),n.d(t,"t",(function(){return De})),n.d(t,"cb",(function(){return Ee})),n.d(t,"o",(function(){return Te})),n.d(t,"r",(function(){return Oe})),n.d(t,"q",(function(){return Ne}));var i=n(30),r=n(34),o=n(56),s=n(59),a=n(19),l=n(15),c=n(6),d=n(2),u=n(12),h=n(14),f=n(35),g=n(136);function p(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function m(e){e.parentNode&&e.parentNode.removeChild(e)}function _(e){for(;e;){if(e===document.body)return!0;e=e.parentNode||e.host}return!1}const b=new class{hasClass(e,t){return Boolean(t)&&e.classList&&e.classList.contains(t)}addClasses(e,...t){t.forEach(t=>t.split(" ").forEach(t=>this.addClass(e,t)))}addClass(e,t){t&&e.classList&&e.classList.add(t)}removeClass(e,t){t&&e.classList&&e.classList.remove(t)}removeClasses(e,...t){t.forEach(t=>t.split(" ").forEach(t=>this.removeClass(e,t)))}toggleClass(e,t,n){e.classList&&e.classList.toggle(t,n)}},v=b.hasClass.bind(b),y=b.addClass.bind(b),w=b.addClasses.bind(b),C=b.removeClass.bind(b),S=b.removeClasses.bind(b),k=b.toggleClass.bind(b);class x{constructor(e,t,n,i){this._node=e,this._type=t,this._handler=n,this._options=i||!1,this._node.addEventListener(this._type,this._handler,this._options)}dispose(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null)}}function L(e,t,n,i){return new x(e,t,n,i)}function M(e){return function(t){return e(new s.a(t))}}let D=function(e,t,n,i){let r=n;return"click"===t||"mousedown"===t?r=M(n):"keydown"!==t&&"keypress"!==t&&"keyup"!==t||(r=function(e){return function(t){return e(new o.a(t))}}(n)),L(e,t,r,i)},E=function(e,t,n){return T(e,M(t),n)};function T(e,t,n){return L(e,u.c&&g.a.pointerEvents?he.POINTER_DOWN:he.MOUSE_DOWN,t,n)}function O(e,t,n){return L(e,u.c&&g.a.pointerEvents?he.POINTER_UP:he.MOUSE_UP,t,n)}function N(e,t){return L(e,"mouseout",n=>{let i=n.relatedTarget;for(;i&&i!==e;)i=i.parentNode;i!==e&&t(n)})}function I(e,t){return L(e,"pointerout",n=>{let i=n.relatedTarget;for(;i&&i!==e;)i=i.parentNode;i!==e&&t(n)})}let A,R,P=null;class j{constructor(e,t=0){this._runner=e,this.priority=t,this._canceled=!1}dispose(){this._canceled=!0}execute(){if(!this._canceled)try{this._runner()}catch(e){Object(l.e)(e)}}static sort(e,t){return t.priority-e.priority}}!function(){let e=[],t=null,n=!1,i=!1,r=()=>{for(n=!1,t=e,e=[],i=!0;t.length>0;){t.sort(j.sort),t.shift().execute()}i=!1};R=(t,i=0)=>{let o=new j(t,i);return e.push(o),n||(n=!0,function(e){if(!P){const e=e=>setTimeout(()=>e((new Date).getTime()),0);P=self.requestAnimationFrame||self.msRequestAnimationFrame||self.webkitRequestAnimationFrame||self.mozRequestAnimationFrame||self.oRequestAnimationFrame||e}P.call(self,e)}(r)),o},A=(e,n)=>{if(i){let i=new j(e,n);return t.push(i),i}return R(e,n)}}();const F=16,B=function(e,t){return t};class W extends d.a{constructor(e,t,n,i=B,r=F){super();let o=null,s=0,l=this._register(new a.e),c=()=>{s=(new Date).getTime(),n(o),o=null};this._register(L(e,t,e=>{o=i(o,e);let t=(new Date).getTime()-s;t>=r?(l.cancel(),c()):l.setIfNotSet(c,r-t)}))}}function H(e,t,n,i,r){return new W(e,t,n,i,r)}function Y(e){return document.defaultView.getComputedStyle(e,null)}function V(e){if(e!==document.body)return new U(e.clientWidth,e.clientHeight);if(u.c&&window.visualViewport){const e=window.visualViewport.width,t=window.visualViewport.height-(i.k?24:0);return new U(e,t)}if(window.innerWidth&&window.innerHeight)return new U(window.innerWidth,window.innerHeight);if(document.body&&document.body.clientWidth&&document.body.clientHeight)return new U(document.body.clientWidth,document.body.clientHeight);if(document.documentElement&&document.documentElement.clientWidth&&document.documentElement.clientHeight)return new U(document.documentElement.clientWidth,document.documentElement.clientHeight);throw new Error("Unable to figure out browser width and height")}class z{static convertToPixels(e,t){return parseFloat(t)||0}static getDimension(e,t,n){let i=Y(e),r="0";return i&&(r=i.getPropertyValue?i.getPropertyValue(t):i.getAttribute(n)),z.convertToPixels(e,r)}static getBorderLeftWidth(e){return z.getDimension(e,"border-left-width","borderLeftWidth")}static getBorderRightWidth(e){return z.getDimension(e,"border-right-width","borderRightWidth")}static getBorderTopWidth(e){return z.getDimension(e,"border-top-width","borderTopWidth")}static getBorderBottomWidth(e){return z.getDimension(e,"border-bottom-width","borderBottomWidth")}static getPaddingLeft(e){return z.getDimension(e,"padding-left","paddingLeft")}static getPaddingRight(e){return z.getDimension(e,"padding-right","paddingRight")}static getPaddingTop(e){return z.getDimension(e,"padding-top","paddingTop")}static getPaddingBottom(e){return z.getDimension(e,"padding-bottom","paddingBottom")}static getMarginLeft(e){return z.getDimension(e,"margin-left","marginLeft")}static getMarginTop(e){return z.getDimension(e,"margin-top","marginTop")}static getMarginRight(e){return z.getDimension(e,"margin-right","marginRight")}static getMarginBottom(e){return z.getDimension(e,"margin-bottom","marginBottom")}}class U{constructor(e,t){this.width=e,this.height=t}}function $(e){let t=e.offsetParent,n=e.offsetTop,i=e.offsetLeft;for(;null!==(e=e.parentNode)&&e!==document.body&&e!==document.documentElement;){n-=e.scrollTop;const r=ne(e)?null:Y(e);r&&(i-="rtl"!==r.direction?e.scrollLeft:-e.scrollLeft),e===t&&(i+=z.getBorderLeftWidth(e),n+=z.getBorderTopWidth(e),n+=e.offsetTop,i+=e.offsetLeft,t=e.offsetParent)}return{left:i,top:n}}function q(e){let t=e.getBoundingClientRect();return{left:t.left+K.scrollX,top:t.top+K.scrollY,width:t.width,height:t.height}}const K=new class{get scrollX(){return"number"==typeof window.scrollX?window.scrollX:document.body.scrollLeft+document.documentElement.scrollLeft}get scrollY(){return"number"==typeof window.scrollY?window.scrollY:document.body.scrollTop+document.documentElement.scrollTop}};function G(e){let t=z.getMarginLeft(e)+z.getMarginRight(e);return e.offsetWidth+t}function Z(e){let t=z.getBorderLeftWidth(e)+z.getBorderRightWidth(e),n=z.getPaddingLeft(e)+z.getPaddingRight(e);return e.offsetWidth-t-n}function J(e){let t=z.getBorderTopWidth(e)+z.getBorderBottomWidth(e),n=z.getPaddingTop(e)+z.getPaddingBottom(e);return e.offsetHeight-t-n}function X(e){let t=z.getMarginTop(e)+z.getMarginBottom(e);return e.offsetHeight+t}function Q(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function ee(e,t,n){for(;e&&e.nodeType===e.ELEMENT_NODE;){if(v(e,t))return e;if(n)if("string"==typeof n){if(v(e,n))return null}else if(e===n)return null;e=e.parentNode}return null}function te(e,t,n){return!!ee(e,t,n)}function ne(e){return e&&!!e.host&&!!e.mode}function ie(e){return!!re(e)}function re(e){for(;e.parentNode;){if(e===document.body)return null;e=e.parentNode}return ne(e)?e:null}function oe(){let e=document.activeElement;for(;null==e?void 0:e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function se(e=document.getElementsByTagName("head")[0]){let t=document.createElement("style");return t.type="text/css",t.media="screen",e.appendChild(t),t}let ae=null;function le(){return ae||(ae=se()),ae}function ce(e,t,n=le()){n&&t&&n.sheet.insertRule(e+"{"+t+"}",0)}function de(e,t=le()){if(!t)return;let n=function(e){return e&&e.sheet&&e.sheet.rules?e.sheet.rules:e&&e.sheet&&e.sheet.cssRules?e.sheet.cssRules:[]}(t),i=[];for(let t=0;t<n.length;t++){-1!==n[t].selectorText.indexOf(e)&&i.push(t)}for(let e=i.length-1;e>=0;e--)t.sheet.deleteRule(i[e])}function ue(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&1===e.nodeType&&"string"==typeof e.nodeName}const he={CLICK:"click",AUXCLICK:"auxclick",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",MOUSE_WHEEL:i.f?"mousewheel":"wheel",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",BEFORE_UNLOAD:"beforeunload",UNLOAD:"unload",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",FULLSCREEN_CHANGE:"fullscreenchange",WK_FULLSCREEN_CHANGE:"webkitfullscreenchange",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:i.l?"webkitAnimationStart":"animationstart",ANIMATION_END:i.l?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:i.l?"webkitAnimationIteration":"animationiteration"},fe={stop:function(e,t){e.preventDefault?e.preventDefault():e.returnValue=!1,t&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0)}};function ge(e){let t=[];for(let n=0;e&&e.nodeType===e.ELEMENT_NODE;n++)t[n]=e.scrollTop,e=e.parentNode;return t}function pe(e,t){for(let n=0;e&&e.nodeType===e.ELEMENT_NODE;n++)e.scrollTop!==t[n]&&(e.scrollTop=t[n]),e=e.parentNode}class me extends d.a{constructor(e){super(),this._onDidFocus=this._register(new c.a),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new c.a),this.onDidBlur=this._onDidBlur.event;let t=Q(document.activeElement,e),n=!1;const i=()=>{n=!1,t||(t=!0,this._onDidFocus.fire())},o=()=>{t&&(n=!0,window.setTimeout(()=>{n&&(n=!1,t=!1,this._onDidBlur.fire())},0))};this._refreshStateHandler=()=>{Q(document.activeElement,e)!==t&&(t?o():i())},this._register(Object(r.a)(e,he.FOCUS,!0)(i)),this._register(Object(r.a)(e,he.BLUR,!0)(o))}}function _e(e){return new me(e)}function be(e,...t){return t.forEach(t=>e.appendChild(t)),t[t.length-1]}const ve=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/;function ye(e,...t){e.innerText="",Object(h.d)(t).forEach(t=>{t instanceof Node?e.appendChild(t):e.appendChild(document.createTextNode(t))})}var we;function Ce(e,t,n,...i){let r=ve.exec(t);if(!r)throw new Error("Bad use of emmet");n=Object.assign({},n||{});let o,s=r[1]||"div";return o=e!==we.HTML?document.createElementNS(e,s):document.createElement(s),r[3]&&(o.id=r[3]),r[4]&&(o.className=r[4].replace(/\./g," ").trim()),Object.keys(n).forEach(e=>{const t=n[e];void 0!==t&&(/^on\w+$/.test(e)?o[e]=t:"selected"===e?t&&o.setAttribute(e,"true"):o.setAttribute(e,t))}),Object(h.d)(i).forEach(e=>{e instanceof Node?o.appendChild(e):o.appendChild(document.createTextNode(e))}),o}function Se(e,t,...n){return Ce(we.HTML,e,t,...n)}function ke(...e){for(let t of e)t.style.display="",t.removeAttribute("aria-hidden")}function xe(...e){for(let t of e)t.style.display="none",t.setAttribute("aria-hidden","true")}function Le(e){if(e&&e.hasAttribute("tabIndex")){if(document.activeElement===e){let t=function(e,t){for(;e&&e.nodeType===e.ELEMENT_NODE;){if(e instanceof HTMLElement&&e.hasAttribute(t))return e;e=e.parentNode}return null}(e.parentElement,"tabIndex");t&&t.focus()}e.removeAttribute("tabindex")}}function Me(e){return Array.prototype.slice.call(document.getElementsByTagName(e),0)}function De(e){const t=window.devicePixelRatio*e;return Math.max(1,Math.floor(t))/window.devicePixelRatio}function Ee(e){if(u.g||i.g)window.open(e);else{let t=window.open();t&&(t.opener=null,t.location.href=e)}}function Te(e){const t=()=>{e(),n=R(t)};let n=R(t);return Object(d.h)(()=>n.dispose())}function Oe(e){return e&&f.b.vscodeRemote===e.scheme?f.a.rewrite(e):e}function Ne(e){return e?`url('${Oe(e).toString(!0).replace(/'/g,"%27")}')`:"url('')"}!function(e){e.HTML="http://www.w3.org/1999/xhtml",e.SVG="http://www.w3.org/2000/svg"}(we||(we={})),Se.SVG=function(e,t,...n){return Ce(we.SVG,e,t,...n)},f.a.setPreferredWebSchema(/^https:/.test(window.location.href)?"https":"http")},function(e,t,n){"use strict";n.d(t,"g",(function(){return c})),n.d(t,"f",(function(){return d})),n.d(t,"e",(function(){return u})),n.d(t,"h",(function(){return h})),n.d(t,"b",(function(){return f})),n.d(t,"a",(function(){return g})),n.d(t,"d",(function(){return p})),n.d(t,"c",(function(){return m}));var i=n(38);const r=!1,o="__is_disposable_tracked__";function s(e){if(r&&e&&e!==g.None)try{e[o]=!0}catch(e){}}function a(e){if(!r)return e;const t=new Error("Potentially leaked disposable").stack;return setTimeout(()=>{e[o]||console.log(t)},3e3),e}class l extends Error{constructor(e){super(`Encounter errors while disposing of store. Errors: [${e.join(", ")}]`),this.errors=e}}function c(e){return"function"==typeof e.dispose&&0===e.dispose.length}function d(e){if(i.a.is(e)){let t=[];for(const n of e)if(n){s(n);try{n.dispose()}catch(e){t.push(e)}}if(1===t.length)throw t[0];if(t.length>1)throw new l(t);return Array.isArray(e)?[]:e}if(e)return s(e),e.dispose(),e}function u(...e){return e.forEach(s),a({dispose:()=>d(e)})}function h(e){const t=a({dispose:()=>{s(t),e()}});return t}class f{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(s(this),this._isDisposed=!0,this.clear())}clear(){try{d(this._toDispose.values())}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return s(e),this._isDisposed?f.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}}f.DISABLE_DISPOSED_WARNING=!1;class g{constructor(){this._store=new f,a(this)}dispose(){s(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}g.None=Object.freeze({dispose(){}});class p{constructor(){this._isDisposed=!1,a(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){this._isDisposed||e===this._value||(this._value&&this._value.dispose(),e&&s(e),this._value=e)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,s(this),this._value&&this._value.dispose(),this._value=void 0}}class m{constructor(e){this.object=e}dispose(){}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n(10);class r{constructor(e,t,n,i){e>n||e===n&&t>i?(this.startLineNumber=n,this.startColumn=i,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=i)}isEmpty(){return r.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return r.containsPosition(this,e)}static containsPosition(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber)&&(!(t.lineNumber===e.startLineNumber&&t.column<e.startColumn)&&!(t.lineNumber===e.endLineNumber&&t.column>e.endColumn))}containsRange(e){return r.containsRange(this,e)}static containsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber)&&(!(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumn<e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>e.endColumn)))}strictContainsRange(e){return r.strictContainsRange(this,e)}static strictContainsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber)&&(!(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)))}plusRange(e){return r.plusRange(this,e)}static plusRange(e,t){let n,i,o,s;return t.startLineNumber<e.startLineNumber?(n=t.startLineNumber,i=t.startColumn):t.startLineNumber===e.startLineNumber?(n=t.startLineNumber,i=Math.min(t.startColumn,e.startColumn)):(n=e.startLineNumber,i=e.startColumn),t.endLineNumber>e.endLineNumber?(o=t.endLineNumber,s=t.endColumn):t.endLineNumber===e.endLineNumber?(o=t.endLineNumber,s=Math.max(t.endColumn,e.endColumn)):(o=e.endLineNumber,s=e.endColumn),new r(n,i,o,s)}intersectRanges(e){return r.intersectRanges(this,e)}static intersectRanges(e,t){let n=e.startLineNumber,i=e.startColumn,o=e.endLineNumber,s=e.endColumn,a=t.startLineNumber,l=t.startColumn,c=t.endLineNumber,d=t.endColumn;return n<a?(n=a,i=l):n===a&&(i=Math.max(i,l)),o>c?(o=c,s=d):o===c&&(s=Math.min(s,d)),n>o?null:n===o&&i>s?null:new r(n,i,o,s)}equalsRange(e){return r.equalsRange(this,e)}static equalsRange(e,t){return!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return r.getEndPosition(this)}static getEndPosition(e){return new i.a(e.endLineNumber,e.endColumn)}getStartPosition(){return r.getStartPosition(this)}static getStartPosition(e){return new i.a(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new r(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new r(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return r.collapseToStart(this)}static collapseToStart(e){return new r(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}static fromPositions(e,t=e){return new r(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new r(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"==typeof e.startLineNumber&&"number"==typeof e.startColumn&&"number"==typeof e.endLineNumber&&"number"==typeof e.endColumn}static areIntersectingOrTouching(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<t.startColumn)&&!(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<e.startColumn)}static areIntersecting(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<=t.startColumn)&&!(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<=e.startColumn)}static compareRangesUsingStarts(e,t){if(e&&t){const n=0|e.startLineNumber,i=0|t.startLineNumber;if(n===i){const n=0|e.startColumn,i=0|t.startColumn;if(n===i){const n=0|e.endLineNumber,i=0|t.endLineNumber;if(n===i){return(0|e.endColumn)-(0|t.endColumn)}return n-i}return n-i}return n-i}return(e?1:0)-(t?1:0)}static compareRangesUsingEnds(e,t){return e.endLineNumber===t.endLineNumber?e.endColumn===t.endColumn?e.startLineNumber===t.startLineNumber?e.startColumn-t.startColumn:e.startLineNumber-t.startLineNumber:e.endColumn-t.endColumn:e.endLineNumber-t.endLineNumber}static spansMultipleLines(e){return e.endLineNumber>e.startLineNumber}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return b})),n.d(t,"e",(function(){return v})),n.d(t,"c",(function(){return w})),n.d(t,"b",(function(){return C})),n.d(t,"f",(function(){return S})),n.d(t,"o",(function(){return k})),n.d(t,"j",(function(){return x})),n.d(t,"p",(function(){return L})),n.d(t,"q",(function(){return M})),n.d(t,"l",(function(){return D})),n.d(t,"k",(function(){return E})),n.d(t,"r",(function(){return T})),n.d(t,"n",(function(){return O})),n.d(t,"m",(function(){return N})),n.d(t,"d",(function(){return i})),n.d(t,"i",(function(){return R})),n.d(t,"g",(function(){return P})),n.d(t,"h",(function(){return j}));var i,r=n(0),o=n(15),s=n(24),a=n(33),l=n(10),c=n(54),d=n(110),u=n(25),h=n(28),f=n(9),g=n(80),p=n(46),m=n(108),_=n(20);class b{constructor(e){this.id=e.id,this.precondition=e.precondition,this._kbOpts=e.kbOpts,this._menuOpts=e.menuOpts,this._description=e.description}register(){if(Array.isArray(this._menuOpts)?this._menuOpts.forEach(this._registerMenuItem,this):this._menuOpts&&this._registerMenuItem(this._menuOpts),this._kbOpts){let e=this._kbOpts.kbExpr;this.precondition&&(e=e?f.a.and(e,this.precondition):this.precondition),g.a.registerCommandAndKeybindingRule({id:this.id,handler:(e,t)=>this.runCommand(e,t),weight:this._kbOpts.weight,args:this._kbOpts.args,when:e,primary:this._kbOpts.primary,secondary:this._kbOpts.secondary,win:this._kbOpts.win,linux:this._kbOpts.linux,mac:this._kbOpts.mac,description:this._description})}else h.a.registerCommand({id:this.id,handler:(e,t)=>this.runCommand(e,t),description:this._description})}_registerMenuItem(e){u.d.appendMenuItem(e.menuId,{group:e.group,command:{id:this.id,title:e.title,icon:e.icon},when:e.when,order:e.order})}}class v extends b{constructor(){super(...arguments),this._implementations=[]}addImplementation(e,t){return this._implementations.push([e,t]),this._implementations.sort((e,t)=>t[0]-e[0]),{dispose:()=>{for(let e=0;e<this._implementations.length;e++)if(this._implementations[e][1]===t)return void this._implementations.splice(e,1)}}}runCommand(e,t){for(const n of this._implementations)if(n[1](e,t))return}}class y extends b{constructor(e,t){super(t),this.command=e}runCommand(e,t){return this.command.runCommand(e,t)}}class w extends b{static bindToContribution(e){return class extends w{constructor(e){super(e),this._callback=e.handler}runEditorCommand(t,n,i){e(n)&&this._callback(e(n),i)}}}runCommand(e,t){const n=e.get(a.a),i=n.getFocusedCodeEditor()||n.getActiveCodeEditor();if(i)return i.invokeWithinContext(e=>{if(e.get(f.b).contextMatchesRules(Object(_.n)(this.precondition)))return this.runEditorCommand(e,i,t)})}}class C extends w{constructor(e){super(C.convertOptions(e)),this.label=e.label,this.alias=e.alias}static convertOptions(e){let t;function n(t){return t.menuId||(t.menuId=u.b.EditorContext),t.title||(t.title=e.label),t.when=f.a.and(e.precondition,t.when),t}return t=Array.isArray(e.menuOpts)?e.menuOpts:e.menuOpts?[e.menuOpts]:[],Array.isArray(e.contextMenuOpts)?t.push(...e.contextMenuOpts.map(n)):e.contextMenuOpts&&t.push(n(e.contextMenuOpts)),e.menuOpts=t,e}runEditorCommand(e,t,n){return this.reportTelemetry(e,t),this.run(e,t,n||{})}reportTelemetry(e,t){e.get(m.a).publicLog2("editorActionInvoked",{name:this.label,id:this.id})}}class S extends C{constructor(e){super(e),this._implementations=[]}runEditorCommand(e,t,n){this.reportTelemetry(e,t);for(const t of this._implementations)if(t[1](e,n))return;return this.run(e,t,n||{})}}function k(e,t){h.a.registerCommand(e,(e,n)=>t(e,n||{}))}function x(e,t){k(e,(function(e,n){const{resource:i,position:r}=n;if(!(i instanceof s.a))throw Object(o.b)("resource");if(!l.a.isIPosition(r))throw Object(o.b)("position");const a=e.get(c.a).getModel(i);if(a){const e=l.a.lift(r);return t(a,e,n)}return e.get(d.a).createModelReference(i).then(e=>new Promise((i,o)=>{try{i(t(e.object.textEditorModel,l.a.lift(r),n))}catch(e){o(e)}}).finally(()=>{e.dispose()}))}))}function L(e,t){h.a.registerCommand(e,(function(e,...n){const[i,r]=n;Object(_.b)(s.a.isUri(i)),Object(_.b)(l.a.isIPosition(r));const o=e.get(c.a).getModel(i);if(o){const e=l.a.lift(r);return t(o,e,...n.slice(2))}return e.get(d.a).createModelReference(i).then(e=>new Promise((i,o)=>{try{i(t(e.object.textEditorModel,l.a.lift(r),n.slice(2)))}catch(e){o(e)}}).finally(()=>{e.dispose()}))}))}function M(e,t){h.a.registerCommand(e,(function(e,...n){const[i]=n;Object(_.b)(s.a.isUri(i));const r=e.get(c.a).getModel(i);return r?t(r,...n.slice(1)):e.get(d.a).createModelReference(i).then(e=>new Promise((i,r)=>{try{i(t(e.object.textEditorModel,n.slice(1)))}catch(e){r(e)}}).finally(()=>{e.dispose()}))}))}function D(e){return I.INSTANCE.registerEditorCommand(e),e}function E(e){const t=new e;return I.INSTANCE.registerEditorAction(t),t}function T(e){return I.INSTANCE.registerEditorAction(e),e}function O(e){I.INSTANCE.registerEditorAction(e)}function N(e,t){I.INSTANCE.registerEditorContribution(e,t)}!function(e){e.getEditorCommand=function(e){return I.INSTANCE.getEditorCommand(e)},e.getEditorActions=function(){return I.INSTANCE.getEditorActions()},e.getEditorContributions=function(){return I.INSTANCE.getEditorContributions()},e.getSomeEditorContributions=function(e){return I.INSTANCE.getEditorContributions().filter(t=>e.indexOf(t.id)>=0)},e.getDiffEditorContributions=function(){return I.INSTANCE.getDiffEditorContributions()}}(i||(i={}));class I{constructor(){this.editorContributions=[],this.diffEditorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null)}registerEditorContribution(e,t){this.editorContributions.push({id:e,ctor:t})}getEditorContributions(){return this.editorContributions.slice(0)}getDiffEditorContributions(){return this.diffEditorContributions.slice(0)}registerEditorAction(e){e.register(),this.editorActions.push(e)}getEditorActions(){return this.editorActions.slice(0)}registerEditorCommand(e){e.register(),this.editorCommands[e.id]=e}getEditorCommand(e){return this.editorCommands[e]||null}}function A(e){return e.register(),e}I.INSTANCE=new I,p.a.add("editor.contributions",I.INSTANCE);const R=A(new v({id:"undo",precondition:void 0,kbOpts:{weight:0,primary:2104},menuOpts:[{menuId:u.b.MenubarEditMenu,group:"1_do",title:r.a({key:"miUndo",comment:["&& denotes a mnemonic"]},"&&Undo"),order:1},{menuId:u.b.CommandPalette,group:"",title:r.a("undo","Undo"),order:1}]}));A(new y(R,{id:"default:undo",precondition:void 0}));const P=A(new v({id:"redo",precondition:void 0,kbOpts:{weight:0,primary:2103,secondary:[3128],mac:{primary:3128}},menuOpts:[{menuId:u.b.MenubarEditMenu,group:"1_do",title:r.a({key:"miRedo",comment:["&& denotes a mnemonic"]},"&&Redo"),order:2},{menuId:u.b.CommandPalette,group:"",title:r.a("redo","Redo"),order:1}]}));A(new y(P,{id:"default:redo",precondition:void 0}));const j=A(new v({id:"editor.action.selectAll",precondition:void 0,kbOpts:{weight:0,kbExpr:null,primary:2079},menuOpts:[{menuId:u.b.MenubarSelectionMenu,group:"1_basic",title:r.a({key:"miSelectAll",comment:["&& denotes a mnemonic"]},"&&Select All"),order:1},{menuId:u.b.CommandPalette,group:"",title:r.a("selectAll","Select All"),order:1}]}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"gc",(function(){return u})),n.d(t,"ab",(function(){return h})),n.d(t,"Y",(function(){return f})),n.d(t,"bb",(function(){return g})),n.d(t,"Z",(function(){return p})),n.d(t,"h",(function(){return m})),n.d(t,"b",(function(){return _})),n.d(t,"rc",(function(){return b})),n.d(t,"qc",(function(){return v})),n.d(t,"uc",(function(){return y})),n.d(t,"fb",(function(){return w})),n.d(t,"hb",(function(){return C})),n.d(t,"gb",(function(){return S})),n.d(t,"db",(function(){return k})),n.d(t,"cb",(function(){return x})),n.d(t,"eb",(function(){return L})),n.d(t,"lb",(function(){return M})),n.d(t,"nb",(function(){return D})),n.d(t,"mb",(function(){return E})),n.d(t,"ob",(function(){return T})),n.d(t,"qb",(function(){return O})),n.d(t,"pb",(function(){return N})),n.d(t,"ib",(function(){return I})),n.d(t,"kb",(function(){return A})),n.d(t,"jb",(function(){return R})),n.d(t,"f",(function(){return F})),n.d(t,"e",(function(){return B})),n.d(t,"g",(function(){return W})),n.d(t,"c",(function(){return H})),n.d(t,"d",(function(){return Y})),n.d(t,"ic",(function(){return V})),n.d(t,"kc",(function(){return z})),n.d(t,"lc",(function(){return U})),n.d(t,"jc",(function(){return $})),n.d(t,"cc",(function(){return q})),n.d(t,"u",(function(){return K})),n.d(t,"t",(function(){return G})),n.d(t,"T",(function(){return Z})),n.d(t,"S",(function(){return J})),n.d(t,"L",(function(){return X})),n.d(t,"K",(function(){return Q})),n.d(t,"D",(function(){return ee})),n.d(t,"C",(function(){return te})),n.d(t,"s",(function(){return ne})),n.d(t,"B",(function(){return ie})),n.d(t,"U",(function(){return re})),n.d(t,"W",(function(){return oe})),n.d(t,"V",(function(){return se})),n.d(t,"X",(function(){return ae})),n.d(t,"dc",(function(){return le})),n.d(t,"ec",(function(){return ce})),n.d(t,"fc",(function(){return de})),n.d(t,"Yb",(function(){return ue})),n.d(t,"Xb",(function(){return he})),n.d(t,"O",(function(){return fe})),n.d(t,"P",(function(){return ge})),n.d(t,"J",(function(){return pe})),n.d(t,"Q",(function(){return me})),n.d(t,"R",(function(){return _e})),n.d(t,"v",(function(){return be})),n.d(t,"x",(function(){return ve})),n.d(t,"z",(function(){return ye})),n.d(t,"w",(function(){return we})),n.d(t,"y",(function(){return Ce})),n.d(t,"A",(function(){return Se})),n.d(t,"H",(function(){return ke})),n.d(t,"E",(function(){return xe})),n.d(t,"G",(function(){return Le})),n.d(t,"F",(function(){return Me})),n.d(t,"I",(function(){return De})),n.d(t,"r",(function(){return Ee})),n.d(t,"N",(function(){return Te})),n.d(t,"M",(function(){return Oe})),n.d(t,"j",(function(){return Ne})),n.d(t,"k",(function(){return Ie})),n.d(t,"n",(function(){return Ae})),n.d(t,"p",(function(){return Re})),n.d(t,"o",(function(){return Pe})),n.d(t,"q",(function(){return je})),n.d(t,"l",(function(){return Fe})),n.d(t,"m",(function(){return Be})),n.d(t,"xb",(function(){return We})),n.d(t,"yb",(function(){return He})),n.d(t,"rb",(function(){return Ye})),n.d(t,"sb",(function(){return Ve})),n.d(t,"Db",(function(){return ze})),n.d(t,"Eb",(function(){return Ue})),n.d(t,"Cb",(function(){return $e})),n.d(t,"Ab",(function(){return qe})),n.d(t,"Bb",(function(){return Ke})),n.d(t,"tb",(function(){return Ge})),n.d(t,"zb",(function(){return Ze})),n.d(t,"ub",(function(){return Je})),n.d(t,"wb",(function(){return Xe})),n.d(t,"vb",(function(){return Qe})),n.d(t,"tc",(function(){return et})),n.d(t,"Gb",(function(){return tt})),n.d(t,"Hb",(function(){return nt})),n.d(t,"Fb",(function(){return it})),n.d(t,"Kb",(function(){return rt})),n.d(t,"Ib",(function(){return ot})),n.d(t,"Jb",(function(){return st})),n.d(t,"Lb",(function(){return at})),n.d(t,"oc",(function(){return lt})),n.d(t,"pc",(function(){return ct})),n.d(t,"mc",(function(){return dt})),n.d(t,"nc",(function(){return ut})),n.d(t,"Vb",(function(){return ht})),n.d(t,"Wb",(function(){return ft})),n.d(t,"Ob",(function(){return gt})),n.d(t,"Pb",(function(){return pt})),n.d(t,"Nb",(function(){return mt})),n.d(t,"Tb",(function(){return _t})),n.d(t,"Mb",(function(){return bt})),n.d(t,"Rb",(function(){return vt})),n.d(t,"Sb",(function(){return yt})),n.d(t,"Qb",(function(){return wt})),n.d(t,"Zb",(function(){return Ct})),n.d(t,"bc",(function(){return St})),n.d(t,"ac",(function(){return kt})),n.d(t,"i",(function(){return xt})),n.d(t,"sc",(function(){return Mt})),n.d(t,"Ub",(function(){return Dt})),n.d(t,"hc",(function(){return Tt}));var i=n(46),r=n(13),o=n(6),s=n(0),a=n(264),l=n(19);const c={ColorContribution:"base.contributions.colors"};const d=new class{constructor(){this._onDidChangeSchema=new o.a,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}registerColor(e,t,n,i=!1,r){let o={id:e,description:n,defaults:t,needsTransparency:i,deprecationMessage:r};this.colorsById[e]=o;let s={type:"string",description:n,format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return r&&(s.deprecationMessage=r),this.colorSchema.properties[e]=s,this.colorReferenceSchema.enum.push(e),this.colorReferenceSchema.enumDescriptions.push(n),this._onDidChangeSchema.fire(),e}resolveDefaultColor(e,t){const n=this.colorsById[e];if(n&&n.defaults){return Tt(n.defaults[t.type],t)}}getColorSchema(){return this.colorSchema}toString(){return Object.keys(this.colorsById).sort((e,t)=>{let n=-1===e.indexOf(".")?0:1,i=-1===t.indexOf(".")?0:1;return n!==i?n-i:e.localeCompare(t)}).map(e=>`- \`${e}\`: ${this.colorsById[e].description}`).join("\n")}};function u(e,t,n,i,r){return d.registerColor(e,t,n,i,r)}i.a.add(c.ColorContribution,d);const h=u("foreground",{dark:"#CCCCCC",light:"#616161",hc:"#FFFFFF"},s.a("foreground","Overall foreground color. This color is only used if not overridden by a component.")),f=u("errorForeground",{dark:"#F48771",light:"#A1260D",hc:"#F48771"},s.a("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component.")),g=u("icon.foreground",{dark:"#C5C5C5",light:"#424242",hc:"#FFFFFF"},s.a("iconForeground","The default color for icons in the workbench.")),p=u("focusBorder",{dark:"#007FD4",light:"#0090F1",hc:"#F38518"},s.a("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),m=u("contrastBorder",{light:null,dark:null,hc:"#6FC3DF"},s.a("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),_=u("contrastActiveBorder",{light:null,dark:null,hc:p},s.a("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast.")),b=u("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hc:"#3794FF"},s.a("textLinkForeground","Foreground color for links in text.")),v=u("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hc:r.a.black},s.a("textCodeBlockBackground","Background color for code blocks in text.")),y=u("widget.shadow",{dark:"#000000",light:"#A8A8A8",hc:null},s.a("widgetShadow","Shadow color of widgets such as find/replace inside the editor.")),w=u("input.background",{dark:"#3C3C3C",light:r.a.white,hc:r.a.black},s.a("inputBoxBackground","Input box background.")),C=u("input.foreground",{dark:h,light:h,hc:h},s.a("inputBoxForeground","Input box foreground.")),S=u("input.border",{dark:null,light:null,hc:m},s.a("inputBoxBorder","Input box border.")),k=u("inputOption.activeBorder",{dark:"#007ACC00",light:"#007ACC00",hc:m},s.a("inputBoxActiveOptionBorder","Border color of activated options in input fields.")),x=u("inputOption.activeBackground",{dark:Mt(p,.4),light:Mt(p,.2),hc:r.a.transparent},s.a("inputOption.activeBackground","Background color of activated options in input fields.")),L=u("inputOption.activeForeground",{dark:r.a.white,light:r.a.black,hc:null},s.a("inputOption.activeForeground","Foreground color of activated options in input fields.")),M=u("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hc:r.a.black},s.a("inputValidationInfoBackground","Input validation background color for information severity.")),D=u("inputValidation.infoForeground",{dark:null,light:null,hc:null},s.a("inputValidationInfoForeground","Input validation foreground color for information severity.")),E=u("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hc:m},s.a("inputValidationInfoBorder","Input validation border color for information severity.")),T=u("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hc:r.a.black},s.a("inputValidationWarningBackground","Input validation background color for warning severity.")),O=u("inputValidation.warningForeground",{dark:null,light:null,hc:null},s.a("inputValidationWarningForeground","Input validation foreground color for warning severity.")),N=u("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hc:m},s.a("inputValidationWarningBorder","Input validation border color for warning severity.")),I=u("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hc:r.a.black},s.a("inputValidationErrorBackground","Input validation background color for error severity.")),A=u("inputValidation.errorForeground",{dark:null,light:null,hc:null},s.a("inputValidationErrorForeground","Input validation foreground color for error severity.")),R=u("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hc:m},s.a("inputValidationErrorBorder","Input validation border color for error severity.")),P=u("dropdown.background",{dark:"#3C3C3C",light:r.a.white,hc:r.a.black},s.a("dropdownBackground","Dropdown background.")),j=u("dropdown.foreground",{dark:"#F0F0F0",light:null,hc:r.a.white},s.a("dropdownForeground","Dropdown foreground.")),F=u("button.foreground",{dark:r.a.white,light:r.a.white,hc:r.a.white},s.a("buttonForeground","Button foreground color.")),B=u("button.background",{dark:"#0E639C",light:"#007ACC",hc:null},s.a("buttonBackground","Button background color.")),W=u("button.hoverBackground",{dark:Lt(B,.2),light:xt(B,.2),hc:null},s.a("buttonHoverBackground","Button background color when hovering.")),H=u("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hc:r.a.black},s.a("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count.")),Y=u("badge.foreground",{dark:r.a.white,light:"#333",hc:r.a.white},s.a("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),V=u("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hc:null},s.a("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled.")),z=u("scrollbarSlider.background",{dark:r.a.fromHex("#797979").transparent(.4),light:r.a.fromHex("#646464").transparent(.4),hc:Mt(m,.6)},s.a("scrollbarSliderBackground","Scrollbar slider background color.")),U=u("scrollbarSlider.hoverBackground",{dark:r.a.fromHex("#646464").transparent(.7),light:r.a.fromHex("#646464").transparent(.7),hc:Mt(m,.8)},s.a("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),$=u("scrollbarSlider.activeBackground",{dark:r.a.fromHex("#BFBFBF").transparent(.4),light:r.a.fromHex("#000000").transparent(.6),hc:m},s.a("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),q=u("progressBar.background",{dark:r.a.fromHex("#0E70C0"),light:r.a.fromHex("#0E70C0"),hc:m},s.a("progressBarBackground","Background color of the progress bar that can show for long running operations.")),K=u("editorError.foreground",{dark:"#F48771",light:"#E51400",hc:null},s.a("editorError.foreground","Foreground color of error squigglies in the editor.")),G=u("editorError.border",{dark:null,light:null,hc:r.a.fromHex("#E47777").transparent(.8)},s.a("errorBorder","Border color of error boxes in the editor.")),Z=u("editorWarning.foreground",{dark:"#CCA700",light:"#E9A700",hc:null},s.a("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),J=u("editorWarning.border",{dark:null,light:null,hc:r.a.fromHex("#FFCC00").transparent(.8)},s.a("warningBorder","Border color of warning boxes in the editor.")),X=u("editorInfo.foreground",{dark:"#75BEFF",light:"#75BEFF",hc:null},s.a("editorInfo.foreground","Foreground color of info squigglies in the editor.")),Q=u("editorInfo.border",{dark:null,light:null,hc:r.a.fromHex("#75BEFF").transparent(.8)},s.a("infoBorder","Border color of info boxes in the editor.")),ee=u("editorHint.foreground",{dark:r.a.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hc:null},s.a("editorHint.foreground","Foreground color of hint squigglies in the editor.")),te=u("editorHint.border",{dark:null,light:null,hc:r.a.fromHex("#eeeeee").transparent(.8)},s.a("hintBorder","Border color of hint boxes in the editor.")),ne=u("editor.background",{light:"#fffffe",dark:"#1E1E1E",hc:r.a.black},s.a("editorBackground","Editor background color.")),ie=u("editor.foreground",{light:"#333333",dark:"#BBBBBB",hc:r.a.white},s.a("editorForeground","Editor default foreground color.")),re=u("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hc:"#0C141F"},s.a("editorWidgetBackground","Background color of editor widgets, such as find/replace.")),oe=u("editorWidget.foreground",{dark:h,light:h,hc:h},s.a("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),se=u("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hc:m},s.a("editorWidgetBorder","Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.")),ae=u("editorWidget.resizeBorder",{light:null,dark:null,hc:null},s.a("editorWidgetResizeBorder","Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),le=u("quickInput.background",{dark:re,light:re,hc:re},s.a("pickerBackground","Quick picker background color. The quick picker widget is the container for pickers like the command palette.")),ce=u("quickInput.foreground",{dark:oe,light:oe,hc:oe},s.a("pickerForeground","Quick picker foreground color. The quick picker widget is the container for pickers like the command palette.")),de=u("quickInputTitle.background",{dark:new r.a(new r.c(255,255,255,.105)),light:new r.a(new r.c(0,0,0,.06)),hc:"#000000"},s.a("pickerTitleBackground","Quick picker title background color. The quick picker widget is the container for pickers like the command palette.")),ue=u("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hc:r.a.white},s.a("pickerGroupForeground","Quick picker color for grouping labels.")),he=u("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hc:r.a.white},s.a("pickerGroupBorder","Quick picker color for grouping borders.")),fe=u("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hc:"#f3f518"},s.a("editorSelectionBackground","Color of the editor selection.")),ge=u("editor.selectionForeground",{light:null,dark:null,hc:"#000000"},s.a("editorSelectionForeground","Color of the selected text for high contrast.")),pe=u("editor.inactiveSelectionBackground",{light:Mt(fe,.5),dark:Mt(fe,.5),hc:Mt(fe,.5)},s.a("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),me=u("editor.selectionHighlightBackground",{light:Et(fe,ne,.3,.6),dark:Et(fe,ne,.3,.6),hc:null},s.a("editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0),_e=u("editor.selectionHighlightBorder",{light:null,dark:null,hc:_},s.a("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),be=u("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hc:null},s.a("editorFindMatch","Color of the current search match.")),ve=u("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hc:null},s.a("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0),ye=u("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hc:null},s.a("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),we=u("editor.findMatchBorder",{light:null,dark:null,hc:_},s.a("editorFindMatchBorder","Border color of the current search match.")),Ce=u("editor.findMatchHighlightBorder",{light:null,dark:null,hc:_},s.a("findMatchHighlightBorder","Border color of the other search matches.")),Se=u("editor.findRangeHighlightBorder",{dark:null,light:null,hc:Mt(_,.4)},s.a("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),ke=u("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hc:"#ADD6FF26"},s.a("hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0),xe=u("editorHoverWidget.background",{light:re,dark:re,hc:re},s.a("hoverBackground","Background color of the editor hover.")),Le=u("editorHoverWidget.foreground",{light:oe,dark:oe,hc:oe},s.a("hoverForeground","Foreground color of the editor hover.")),Me=u("editorHoverWidget.border",{light:se,dark:se,hc:se},s.a("hoverBorder","Border color of the editor hover.")),De=u("editorHoverWidget.statusBarBackground",{dark:Lt(xe,.2),light:xt(xe,.05),hc:re},s.a("statusBarBackground","Background color of the editor hover status bar.")),Ee=u("editorLink.activeForeground",{dark:"#4E94CE",light:r.a.blue,hc:r.a.cyan},s.a("activeLinkForeground","Color of active links.")),Te=u("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hc:"#FFCC00"},s.a("editorLightBulbForeground","The color used for the lightbulb actions icon.")),Oe=u("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},s.a("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon.")),Ne=new r.a(new r.c(155,185,85,.2)),Ie=new r.a(new r.c(255,0,0,.2)),Ae=u("diffEditor.insertedTextBackground",{dark:Ne,light:Ne,hc:null},s.a("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),Re=u("diffEditor.removedTextBackground",{dark:Ie,light:Ie,hc:null},s.a("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),Pe=u("diffEditor.insertedTextBorder",{dark:null,light:null,hc:"#33ff2eff"},s.a("diffEditorInsertedOutline","Outline color for the text that got inserted.")),je=u("diffEditor.removedTextBorder",{dark:null,light:null,hc:"#FF008F"},s.a("diffEditorRemovedOutline","Outline color for text that got removed.")),Fe=u("diffEditor.border",{dark:null,light:null,hc:m},s.a("diffEditorBorder","Border color between the two text editors.")),Be=u("diffEditor.diagonalFill",{dark:"#cccccc33",light:"#22222233",hc:null},s.a("diffDiagonalFill","Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views.")),We=u("list.focusBackground",{dark:"#062F4A",light:"#D6EBFF",hc:null},s.a("listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),He=u("list.focusForeground",{dark:null,light:null,hc:null},s.a("listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Ye=u("list.activeSelectionBackground",{dark:"#094771",light:"#0074E8",hc:null},s.a("listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Ve=u("list.activeSelectionForeground",{dark:r.a.white,light:r.a.white,hc:null},s.a("listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),ze=u("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hc:null},s.a("listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),Ue=u("list.inactiveSelectionForeground",{dark:null,light:null,hc:null},s.a("listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),$e=u("list.inactiveFocusBackground",{dark:null,light:null,hc:null},s.a("listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),qe=u("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hc:null},s.a("listHoverBackground","List/Tree background when hovering over items using the mouse.")),Ke=u("list.hoverForeground",{dark:null,light:null,hc:null},s.a("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),Ge=u("list.dropBackground",{dark:We,light:We,hc:null},s.a("listDropBackground","List/Tree drag and drop background when moving items around using the mouse.")),Ze=u("list.highlightForeground",{dark:"#0097fb",light:"#0066BF",hc:p},s.a("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")),Je=u("listFilterWidget.background",{light:"#efc1ad",dark:"#653723",hc:r.a.black},s.a("listFilterWidgetBackground","Background color of the type filter widget in lists and trees.")),Xe=u("listFilterWidget.outline",{dark:r.a.transparent,light:r.a.transparent,hc:"#f38518"},s.a("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),Qe=u("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hc:m},s.a("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),et=u("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hc:"#a9a9a9"},s.a("treeIndentGuidesStroke","Tree stroke color for the indentation guides.")),tt=u("menu.border",{dark:null,light:null,hc:m},s.a("menuBorder","Border color of menus.")),nt=u("menu.foreground",{dark:j,light:h,hc:j},s.a("menuForeground","Foreground color of menu items.")),it=u("menu.background",{dark:P,light:P,hc:P},s.a("menuBackground","Background color of menu items.")),rt=u("menu.selectionForeground",{dark:Ve,light:Ve,hc:Ve},s.a("menuSelectionForeground","Foreground color of the selected menu item in menus.")),ot=u("menu.selectionBackground",{dark:Ye,light:Ye,hc:Ye},s.a("menuSelectionBackground","Background color of the selected menu item in menus.")),st=u("menu.selectionBorder",{dark:null,light:null,hc:_},s.a("menuSelectionBorder","Border color of the selected menu item in menus.")),at=u("menu.separatorBackground",{dark:"#BBBBBB",light:"#888888",hc:m},s.a("menuSeparatorBackground","Color of a separator menu item in menus.")),lt=u("editor.snippetTabstopHighlightBackground",{dark:new r.a(new r.c(124,124,124,.3)),light:new r.a(new r.c(10,50,100,.2)),hc:new r.a(new r.c(124,124,124,.3))},s.a("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),ct=u("editor.snippetTabstopHighlightBorder",{dark:null,light:null,hc:null},s.a("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),dt=u("editor.snippetFinalTabstopHighlightBackground",{dark:null,light:null,hc:null},s.a("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),ut=u("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new r.a(new r.c(10,50,100,.5)),hc:"#525252"},s.a("snippetFinalTabstopHighlightBorder","Highlight border color of the final tabstop of a snippet.")),ht=u("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hc:"#AB5A00"},s.a("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0),ft=u("editorOverviewRuler.selectionHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hc:"#A0A0A0CC"},s.a("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),gt=u("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hc:"#AB5A00"},s.a("minimapFindMatchHighlight","Minimap marker color for find matches."),!0),pt=u("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hc:"#ffffff"},s.a("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),mt=u("minimap.errorHighlight",{dark:new r.a(new r.c(255,18,18,.7)),light:new r.a(new r.c(255,18,18,.7)),hc:new r.a(new r.c(255,50,50,1))},s.a("minimapError","Minimap marker color for errors.")),_t=u("minimap.warningHighlight",{dark:Z,light:Z,hc:J},s.a("overviewRuleWarning","Minimap marker color for warnings.")),bt=u("minimap.background",{dark:null,light:null,hc:null},s.a("minimapBackground","Minimap background color.")),vt=u("minimapSlider.background",{light:Mt(z,.5),dark:Mt(z,.5),hc:Mt(z,.5)},s.a("minimapSliderBackground","Minimap slider background color.")),yt=u("minimapSlider.hoverBackground",{light:Mt(U,.5),dark:Mt(U,.5),hc:Mt(U,.5)},s.a("minimapSliderHoverBackground","Minimap slider background color when hovering.")),wt=u("minimapSlider.activeBackground",{light:Mt($,.5),dark:Mt($,.5),hc:Mt($,.5)},s.a("minimapSliderActiveBackground","Minimap slider background color when clicked on.")),Ct=u("problemsErrorIcon.foreground",{dark:K,light:K,hc:K},s.a("problemsErrorIconForeground","The color used for the problems error icon.")),St=u("problemsWarningIcon.foreground",{dark:Z,light:Z,hc:Z},s.a("problemsWarningIconForeground","The color used for the problems warning icon.")),kt=u("problemsInfoIcon.foreground",{dark:X,light:X,hc:X},s.a("problemsInfoIconForeground","The color used for the problems info icon."));function xt(e,t){return n=>{let i=Tt(e,n);if(i)return i.darken(t)}}function Lt(e,t){return n=>{let i=Tt(e,n);if(i)return i.lighten(t)}}function Mt(e,t){return n=>{let i=Tt(e,n);if(i)return i.transparent(t)}}function Dt(...e){return t=>{for(let n of e){let e=Tt(n,t);if(e)return e}}}function Et(e,t,n,i){return o=>{let s=Tt(e,o);if(s){let e=Tt(t,o);return e?s.isDarkerThan(e)?r.a.getLighterColor(s,e,n).transparent(i):r.a.getDarkerColor(s,e,n).transparent(i):s.transparent(n*i)}}}function Tt(e,t){if(null!==e)return"string"==typeof e?"#"===e[0]?r.a.fromHex(e):t.getColor(e):e instanceof r.a?e:"function"==typeof e?e(t):void 0}let Ot=i.a.as(a.a.JSONContribution);Ot.registerSchema("vscode://schemas/workbench-colors",d.getColorSchema());const Nt=new l.d(()=>Ot.notifySchemaChanged("vscode://schemas/workbench-colors"),200);d.onDidChangeSchema(()=>{Nt.isScheduled()||Nt.schedule()})},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return c})),n.d(t,"d",(function(){return d})),n.d(t,"c",(function(){return u})),n.d(t,"e",(function(){return h}));var i,r=n(15),o=n(2),s=n(84);!function(e){function t(e){return(t,n=null,i)=>{let r,o=!1;return r=e(e=>{if(!o)return r?r.dispose():o=!0,t.call(n,e)},null,i),o&&r.dispose(),r}}function n(e,t){return a((n,i=null,r)=>e(e=>n.call(i,t(e)),null,r))}function i(e,t){return a((n,i=null,r)=>e(e=>{t(e),n.call(i,e)},null,r))}function r(e,t){return a((n,i=null,r)=>e(e=>t(e)&&n.call(i,e),null,r))}function s(e,t,i){let r=i;return n(e,e=>r=t(r,e))}function a(e){let t;const n=new c({onFirstListenerAdd(){t=e(n.fire,n)},onLastListenerRemove(){t.dispose()}});return n.event}function l(e,t,n=100,i=!1,r){let o,s=void 0,a=void 0,l=0;const d=new c({leakWarningThreshold:r,onFirstListenerAdd(){o=e(e=>{l++,s=t(s,e),i&&!a&&(d.fire(s),s=void 0),clearTimeout(a),a=setTimeout(()=>{const e=s;s=void 0,a=void 0,(!i||l>1)&&d.fire(e),l=0},n)})},onLastListenerRemove(){o.dispose()}});return d.event}function d(e){let t,n=!0;return r(e,e=>{const i=n||e!==t;return n=!1,t=e,i})}e.None=()=>o.a.None,e.once=t,e.map=n,e.forEach=i,e.filter=r,e.signal=function(e){return e},e.any=function(...e){return(t,n=null,i)=>Object(o.e)(...e.map(e=>e(e=>t.call(n,e),null,i)))},e.reduce=s,e.snapshot=a,e.debounce=l,e.stopwatch=function(e){const i=(new Date).getTime();return n(t(e),e=>(new Date).getTime()-i)},e.latch=d,e.buffer=function(e,t=!1,n=[]){let i=n.slice(),r=e(e=>{i?i.push(e):s.fire(e)});const o=()=>{i&&i.forEach(e=>s.fire(e)),i=null},s=new c({onFirstListenerAdd(){r||(r=e(e=>s.fire(e)))},onFirstListenerDidAdd(){i&&(t?setTimeout(o):o())},onLastListenerRemove(){r&&r.dispose(),r=null}});return s.event};class u{constructor(e){this.event=e}map(e){return new u(n(this.event,e))}forEach(e){return new u(i(this.event,e))}filter(e){return new u(r(this.event,e))}reduce(e,t){return new u(s(this.event,e,t))}latch(){return new u(d(this.event))}debounce(e,t=100,n=!1,i){return new u(l(this.event,e,t,n,i))}on(e,t,n){return this.event(e,t,n)}once(e,n,i){return t(this.event)(e,n,i)}}e.chain=function(e){return new u(e)},e.fromNodeEventEmitter=function(e,t,n=(e=>e)){const i=(...e)=>r.fire(n(...e)),r=new c({onFirstListenerAdd:()=>e.on(t,i),onLastListenerRemove:()=>e.removeListener(t,i)});return r.event},e.fromDOMEventEmitter=function(e,t,n=(e=>e)){const i=(...e)=>r.fire(n(...e)),r=new c({onFirstListenerAdd:()=>e.addEventListener(t,i),onLastListenerRemove:()=>e.removeEventListener(t,i)});return r.event},e.fromPromise=function(e){const t=new c;let n=!1;return e.then(void 0,()=>null).then(()=>{n?t.fire(void 0):setTimeout(()=>t.fire(void 0),0)}),n=!0,t.event},e.toPromise=function(e){return new Promise(n=>t(e)(n))}}(i||(i={}));let a=-1;class l{constructor(e,t=Math.random().toString(18).slice(2,5)){this.customThreshold=e,this.name=t,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(e){let t=a;if("number"==typeof this.customThreshold&&(t=this.customThreshold),t<=0||e<t)return;this._stacks||(this._stacks=new Map);const n=(new Error).stack.split("\n").slice(3).join("\n"),i=this._stacks.get(n)||0;if(this._stacks.set(n,i+1),this._warnCountdown-=1,this._warnCountdown<=0){let n;this._warnCountdown=.5*t;let i=0;for(const[e,t]of this._stacks)(!n||i<t)&&(n=e,i=t);console.warn(`[${this.name}] potential listener LEAK detected, having ${e} listeners already. MOST frequent listener (${i}):`),console.warn(n)}return()=>{const e=this._stacks.get(n)||0;this._stacks.set(n,e-1)}}}class c{constructor(e){this._disposed=!1,this._options=e,this._leakageMon=a>0?new l(this._options&&this._options.leakWarningThreshold):void 0}get event(){return this._event||(this._event=(e,t,n)=>{this._listeners||(this._listeners=new s.a);const i=this._listeners.isEmpty();i&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const r=this._listeners.push(t?[e,t]:e);let a,l;return i&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,e,t),this._leakageMon&&(a=this._leakageMon.check(this._listeners.size)),l={dispose:()=>{if(a&&a(),l.dispose=c._noop,!this._disposed&&(r(),this._options&&this._options.onLastListenerRemove)){this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)}}},n instanceof o.b?n.add(l):Array.isArray(n)&&n.push(l),l}),this._event}fire(e){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new s.a);for(let t of this._listeners)this._deliveryQueue.push([t,e]);for(;this._deliveryQueue.size>0;){const[e,t]=this._deliveryQueue.shift();try{"function"==typeof e?e.call(void 0,t):e[0].call(e[1],t)}catch(e){Object(r.e)(e)}}}}dispose(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0}}c._noop=function(){};class d extends c{constructor(e){super(e),this._isPaused=0,this._eventQueue=new s.a,this._mergeFn=e&&e.merge}pause(){this._isPaused++}resume(){if(0!==this._isPaused&&0==--this._isPaused)if(this._mergeFn){const e=this._eventQueue.toArray();this._eventQueue.clear(),super.fire(this._mergeFn(e))}else for(;!this._isPaused&&0!==this._eventQueue.size;)super.fire(this._eventQueue.shift())}fire(e){this._listeners&&(0!==this._isPaused?this._eventQueue.push(e):super.fire(e))}}class u{constructor(){this.buffers=[]}wrapEvent(e){return(t,n,i)=>e(e=>{const i=this.buffers[this.buffers.length-1];i?i.push(()=>t.call(n,e)):t.call(n,e)},void 0,i)}bufferEvents(e){const t=[];this.buffers.push(t);const n=e();return this.buffers.pop(),t.forEach(e=>e()),n}}class h{constructor(){this.listening=!1,this.inputEvent=i.None,this.inputEventListener=o.a.None,this.emitter=new c({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i,r=n(9);!function(e){e.editorSimpleInput=new r.c("editorSimpleInput",!1),e.editorTextFocus=new r.c("editorTextFocus",!1),e.focus=new r.c("editorFocus",!1),e.textInputFocus=new r.c("textInputFocus",!1),e.readOnly=new r.c("editorReadonly",!1),e.columnSelection=new r.c("editorColumnSelection",!1),e.writable=e.readOnly.toNegated(),e.hasNonEmptySelection=new r.c("editorHasSelection",!1),e.hasOnlyEmptySelection=e.hasNonEmptySelection.toNegated(),e.hasMultipleSelections=new r.c("editorHasMultipleSelections",!1),e.hasSingleSelection=e.hasMultipleSelections.toNegated(),e.tabMovesFocus=new r.c("editorTabMovesFocus",!1),e.tabDoesNotMoveFocus=e.tabMovesFocus.toNegated(),e.isInWalkThroughSnippet=new r.c("isInEmbeddedEditor",!1),e.canUndo=new r.c("canUndo",!1),e.canRedo=new r.c("canRedo",!1),e.hoverVisible=new r.c("editorHoverVisible",!1),e.inCompositeEditor=new r.c("inCompositeEditor",void 0),e.notInCompositeEditor=e.inCompositeEditor.toNegated(),e.languageId=new r.c("editorLangId",""),e.hasCompletionItemProvider=new r.c("editorHasCompletionItemProvider",!1),e.hasCodeActionsProvider=new r.c("editorHasCodeActionsProvider",!1),e.hasCodeLensProvider=new r.c("editorHasCodeLensProvider",!1),e.hasDefinitionProvider=new r.c("editorHasDefinitionProvider",!1),e.hasDeclarationProvider=new r.c("editorHasDeclarationProvider",!1),e.hasImplementationProvider=new r.c("editorHasImplementationProvider",!1),e.hasTypeDefinitionProvider=new r.c("editorHasTypeDefinitionProvider",!1),e.hasHoverProvider=new r.c("editorHasHoverProvider",!1),e.hasDocumentHighlightProvider=new r.c("editorHasDocumentHighlightProvider",!1),e.hasDocumentSymbolProvider=new r.c("editorHasDocumentSymbolProvider",!1),e.hasReferenceProvider=new r.c("editorHasReferenceProvider",!1),e.hasRenameProvider=new r.c("editorHasRenameProvider",!1),e.hasSignatureHelpProvider=new r.c("editorHasSignatureHelpProvider",!1),e.hasDocumentFormattingProvider=new r.c("editorHasDocumentFormattingProvider",!1),e.hasDocumentSelectionFormattingProvider=new r.c("editorHasDocumentSelectionFormattingProvider",!1),e.hasMultipleDocumentFormattingProvider=new r.c("editorHasMultipleDocumentFormattingProvider",!1),e.hasMultipleDocumentSelectionFormattingProvider=new r.c("editorHasMultipleDocumentSelectionFormattingProvider",!1)}(i||(i={}))},function(e,t,n){"use strict";function i(e){return!e||"string"!=typeof e||0===e.trim().length}function r(e,t,n="0"){const i=""+e,r=[i];for(let e=i.length;e<t;e++)r.push(n);return r.reverse().join("")}n.d(t,"D",(function(){return i})),n.d(t,"M",(function(){return r})),n.d(t,"x",(function(){return s})),n.d(t,"u",(function(){return a})),n.d(t,"v",(function(){return l})),n.d(t,"W",(function(){return c})),n.d(t,"K",(function(){return d})),n.d(t,"Q",(function(){return u})),n.d(t,"p",(function(){return h})),n.d(t,"V",(function(){return f})),n.d(t,"S",(function(){return g})),n.d(t,"s",(function(){return p})),n.d(t,"q",(function(){return m})),n.d(t,"P",(function(){return _})),n.d(t,"O",(function(){return b})),n.d(t,"w",(function(){return v})),n.d(t,"z",(function(){return y})),n.d(t,"J",(function(){return w})),n.d(t,"f",(function(){return C})),n.d(t,"h",(function(){return S})),n.d(t,"g",(function(){return k})),n.d(t,"i",(function(){return x})),n.d(t,"H",(function(){return L})),n.d(t,"I",(function(){return M})),n.d(t,"t",(function(){return E})),n.d(t,"T",(function(){return O})),n.d(t,"d",(function(){return N})),n.d(t,"e",(function(){return I})),n.d(t,"F",(function(){return A})),n.d(t,"G",(function(){return R})),n.d(t,"j",(function(){return P})),n.d(t,"A",(function(){return j})),n.d(t,"L",(function(){return B})),n.d(t,"N",(function(){return W})),n.d(t,"r",(function(){return H})),n.d(t,"m",(function(){return V})),n.d(t,"k",(function(){return U})),n.d(t,"B",(function(){return q})),n.d(t,"a",(function(){return K})),n.d(t,"n",(function(){return G})),n.d(t,"l",(function(){return Z})),n.d(t,"E",(function(){return J})),n.d(t,"C",(function(){return X})),n.d(t,"b",(function(){return Q})),n.d(t,"U",(function(){return ee})),n.d(t,"o",(function(){return te})),n.d(t,"R",(function(){return ne})),n.d(t,"y",(function(){return ie})),n.d(t,"c",(function(){return re}));const o=/{(\d+)}/g;function s(e,...t){return 0===t.length?e:e.replace(o,(function(e,n){const i=parseInt(n,10);return isNaN(i)||i<0||i>=t.length?e:t[i]}))}function a(e){return e.replace(/[<>&]/g,(function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}}))}function l(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function c(e,t=" "){return u(d(e,t),t)}function d(e,t){if(!e||!t)return e;const n=t.length;if(0===n||0===e.length)return e;let i=0;for(;e.indexOf(t,i)===i;)i+=n;return e.substring(i)}function u(e,t){if(!e||!t)return e;const n=t.length,i=e.length;if(0===n||0===i)return e;let r=i,o=-1;for(;-1!==(o=e.lastIndexOf(t,r-1))&&o+n===r;){if(0===o)return"";r=o}return e.substring(0,r)}function h(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function f(e){return e.replace(/\*/g,"")}function g(e,t){if(e.length<t.length)return!1;if(e===t)return!0;for(let n=0;n<t.length;n++)if(e[n]!==t[n])return!1;return!0}function p(e,t){const n=e.length-t.length;return n>0?e.indexOf(t,n)===n:0===n&&e===t}function m(e,t,n={}){if(!e)throw new Error("Cannot create regex from empty string");t||(e=l(e)),n.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));let i="";return n.global&&(i+="g"),n.matchCase||(i+="i"),n.multiline&&(i+="m"),n.unicode&&(i+="u"),new RegExp(e,i)}function _(e){if("^"===e.source||"^$"===e.source||"$"===e.source||"^\\s*$"===e.source)return!1;return!(!e.exec("")||0!==e.lastIndex)}function b(e){return(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")}function v(e){for(let t=0,n=e.length;t<n;t++){const n=e.charCodeAt(t);if(32!==n&&9!==n)return t}return-1}function y(e,t=0,n=e.length){for(let i=t;i<n;i++){const n=e.charCodeAt(i);if(32!==n&&9!==n)return e.substring(t,i)}return e.substring(t,n)}function w(e,t=e.length-1){for(let n=t;n>=0;n--){const t=e.charCodeAt(n);if(32!==t&&9!==t)return n}return-1}function C(e,t){return e<t?-1:e>t?1:0}function S(e,t,n=0,i=e.length,r=0,o=t.length){for(;n<i&&r<o;n++,r++){let i=e.charCodeAt(n),o=t.charCodeAt(r);if(i<o)return-1;if(i>o)return 1}const s=i-n,a=o-r;return s<a?-1:s>a?1:0}function k(e,t){return x(e,t,0,e.length,0,t.length)}function x(e,t,n=0,i=e.length,r=0,o=t.length){for(;n<i&&r<o;n++,r++){let s=e.charCodeAt(n),a=t.charCodeAt(r);if(s===a)continue;const l=s-a;if((32!==l||!M(a))&&(-32!==l||!M(s)))return L(s)&&L(a)?l:S(e.toLowerCase(),t.toLowerCase(),n,i,r,o)}const s=i-n,a=o-r;return s<a?-1:s>a?1:0}function L(e){return e>=97&&e<=122}function M(e){return e>=65&&e<=90}function D(e){return L(e)||M(e)}function E(e,t){return e.length===t.length&&T(e,t)}function T(e,t,n=e.length){for(let i=0;i<n;i++){const n=e.charCodeAt(i),r=t.charCodeAt(i);if(n!==r)if(D(n)&&D(r)){const e=Math.abs(n-r);if(0!==e&&32!==e)return!1}else if(String.fromCharCode(n).toLowerCase()!==String.fromCharCode(r).toLowerCase())return!1}return!0}function O(e,t){const n=t.length;return!(t.length>e.length)&&T(e,t,n)}function N(e,t){let n,i=Math.min(e.length,t.length);for(n=0;n<i;n++)if(e.charCodeAt(n)!==t.charCodeAt(n))return n;return i}function I(e,t){let n,i=Math.min(e.length,t.length);const r=e.length-1,o=t.length-1;for(n=0;n<i;n++)if(e.charCodeAt(r-n)!==t.charCodeAt(o-n))return n;return i}function A(e){return 55296<=e&&e<=56319}function R(e){return 56320<=e&&e<=57343}function P(e,t){return t-56320+(e-55296<<10)+65536}function j(e,t,n){const i=e.charCodeAt(n);if(A(i)&&n+1<t){const t=e.charCodeAt(n+1);if(R(t))return P(i,t)}return i}function F(e,t){const n=e.charCodeAt(t-1);if(R(n)&&t>1){const i=e.charCodeAt(t-2);if(A(i))return P(i,n)}return n}function B(e,t){const n=oe.getInstance(),i=t,r=e.length,o=j(e,r,t);t+=o>=65536?2:1;let s=n.getGraphemeBreakType(o);for(;t<r;){const i=j(e,r,t),o=n.getGraphemeBreakType(i);if(re(s,o))break;t+=i>=65536?2:1,s=o}return t-i}function W(e,t){const n=oe.getInstance(),i=t,r=F(e,t);t-=r>=65536?2:1;let o=n.getGraphemeBreakType(r);for(;t>0;){const i=F(e,t),r=n.getGraphemeBreakType(i);if(re(r,o))break;t-=i>=65536?2:1,o=r}return i-t}function H(e){const t=e.byteLength,n=[];let i=0;for(;i<t;){const r=e[i];let o;if((o=r>=240&&i+3<t?(7&e[i++])<<18>>>0|(63&e[i++])<<12>>>0|(63&e[i++])<<6>>>0|(63&e[i++])<<0>>>0:r>=224&&i+2<t?(15&e[i++])<<12>>>0|(63&e[i++])<<6>>>0|(63&e[i++])<<0>>>0:r>=192&&i+1<t?(31&e[i++])<<6>>>0|(63&e[i++])<<0>>>0:e[i++])>=0&&o<=55295||o>=57344&&o<=65535)n.push(String.fromCharCode(o));else if(o>=65536&&o<=1114111){const e=o-65536,t=55296+((1047552&e)>>>10),i=56320+((1023&e)>>>0);n.push(String.fromCharCode(t)),n.push(String.fromCharCode(i))}else n.push(String.fromCharCode(65533))}return n.join("")}const Y=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function V(e){return Y.test(e)}const z=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDE73\uDE78-\uDE82\uDE90-\uDE95])/;function U(e){return z.test(e)}const $=/^[\t\n\r\x20-\x7E]*$/;function q(e){return $.test(e)}const K=/[\u2028\u2029]/;function G(e){return K.test(e)}function Z(e){for(let t=0,n=e.length;t<n;t++)if(J(e.charCodeAt(t)))return!0;return!1}function J(e){return(e=+e)>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function X(e){return e>=127462&&e<=127487||e>=9728&&e<=10175||e>=127744&&e<=128591||e>=128640&&e<=128764||e>=128992&&e<=129003||e>=129280&&e<=129535||e>=129648&&e<=129651||e>=129656&&e<=129666||e>=129680&&e<=129685}const Q=String.fromCharCode(65279);function ee(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0))}function te(e,t=!1){return!!e&&(t&&(e=e.replace(/\\./g,"")),e.toLowerCase()!==e)}function ne(e){return(e%=52)<26?String.fromCharCode(97+e):String.fromCharCode(65+e-26)}function ie(e){return oe.getInstance().getGraphemeBreakType(e)}function re(e,t){return 0===e?5!==t&&7!==t:(2!==e||3!==t)&&(4===e||2===e||3===e||(4===t||2===t||3===t||(8!==e||8!==t&&9!==t&&11!==t&&12!==t)&&((11!==e&&9!==e||9!==t&&10!==t)&&((12!==e&&10!==e||10!==t)&&(5!==t&&13!==t&&(7!==t&&(1!==e&&((13!==e||14!==t)&&(6!==e||6!==t)))))))))}class oe{constructor(){this._data=JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}static getInstance(){return oe._INSTANCE||(oe._INSTANCE=new oe),oe._INSTANCE}getGraphemeBreakType(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;const t=this._data,n=t.length/3;let i=1;for(;i<=n;)if(e<t[3*i])i*=2;else{if(!(e>t[3*i+1]))return t[3*i+2];i=2*i+1}return 0}}oe._INSTANCE=null},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"c",(function(){return C})),n.d(t,"b",(function(){return S})),n.d(t,"d",(function(){return k}));var i=n(8),r=n(17),o=n(12);const s=new Map;s.set("false",!1),s.set("true",!0),s.set("isMac",o.f),s.set("isLinux",o.d),s.set("isWindows",o.i),s.set("isWeb",o.h),s.set("isMacNative",o.f&&!o.h);const a=Object.prototype.hasOwnProperty;class l{static has(e){return h.create(e)}static equals(e,t){return f.create(e,t)}static regex(e,t){return b.create(e,t)}static not(e){return _.create(e)}static and(...e){return y.create(e)}static or(...e){return w.create(e)}static deserialize(e,t=!1){if(e)return this._deserializeOrExpression(e,t)}static _deserializeOrExpression(e,t){let n=e.split("||");return w.create(n.map(e=>this._deserializeAndExpression(e,t)))}static _deserializeAndExpression(e,t){let n=e.split("&&");return y.create(n.map(e=>this._deserializeOne(e,t)))}static _deserializeOne(e,t){if((e=e.trim()).indexOf("!=")>=0){let n=e.split("!=");return m.create(n[0].trim(),this._deserializeValue(n[1],t))}if(e.indexOf("==")>=0){let n=e.split("==");return f.create(n[0].trim(),this._deserializeValue(n[1],t))}if(e.indexOf("=~")>=0){let n=e.split("=~");return b.create(n[0].trim(),this._deserializeRegexValue(n[1],t))}if(e.indexOf(" in ")>=0){let t=e.split(" in ");return g.create(t[0].trim(),t[1].trim())}return/^\!\s*/.test(e)?_.create(e.substr(1).trim()):h.create(e)}static _deserializeValue(e,t){if("true"===(e=e.trim()))return!0;if("false"===e)return!1;let n=/^'([^']*)'$/.exec(e);return n?n[1].trim():e}static _deserializeRegexValue(e,t){if(Object(i.D)(e)){if(t)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let n=e.indexOf("/"),r=e.lastIndexOf("/");if(n===r||n<0){if(t)throw new Error(`bad regexp-value '${e}', missing /-enclosure`);return console.warn(`bad regexp-value '${e}', missing /-enclosure`),null}let o=e.slice(n+1,r),s="i"===e[r+1]?"i":"";try{return new RegExp(o,s)}catch(n){if(t)throw new Error(`bad regexp-value '${e}', parse error: ${n}`);return console.warn(`bad regexp-value '${e}', parse error: ${n}`),null}}}function c(e,t){return e.cmp(t)}class d{constructor(){this.type=0}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}evaluate(e){return!1}serialize(){return"false"}keys(){return[]}negate(){return u.INSTANCE}}d.INSTANCE=new d;class u{constructor(){this.type=1}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}evaluate(e){return!0}serialize(){return"true"}keys(){return[]}negate(){return d.INSTANCE}}u.INSTANCE=new u;class h{constructor(e){this.key=e,this.type=2}static create(e){const t=s.get(e);return"boolean"==typeof t?t?u.INSTANCE:d.INSTANCE:new h(e)}cmp(e){return e.type!==this.type?this.type-e.type:this.key<e.key?-1:this.key>e.key?1:0}equals(e){return e.type===this.type&&this.key===e.key}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return _.create(this.key)}}class f{constructor(e,t){this.key=e,this.value=t,this.type=4}static create(e,t){if("boolean"==typeof t)return t?h.create(e):_.create(e);const n=s.get(e);if("boolean"==typeof n){return t===(n?"true":"false")?u.INSTANCE:d.INSTANCE}return new f(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:this.key<e.key?-1:this.key>e.key?1:this.value<e.value?-1:this.value>e.value?1:0}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}evaluate(e){return e.getValue(this.key)==this.value}serialize(){return this.key+" == '"+this.value+"'"}keys(){return[this.key]}negate(){return m.create(this.key,this.value)}}class g{constructor(e,t){this.key=e,this.valueKey=t,this.type=10}static create(e,t){return new g(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:this.key<e.key?-1:this.key>e.key?1:this.valueKey<e.valueKey?-1:this.valueKey>e.valueKey?1:0}equals(e){return e.type===this.type&&(this.key===e.key&&this.valueKey===e.valueKey)}evaluate(e){const t=e.getValue(this.valueKey),n=e.getValue(this.key);return Array.isArray(t)?t.indexOf(n)>=0:"string"==typeof n&&"object"==typeof t&&null!==t&&a.call(t,n)}serialize(){return this.key+" in '"+this.valueKey+"'"}keys(){return[this.key,this.valueKey]}negate(){return p.create(this)}}class p{constructor(e){this._actual=e,this.type=11}static create(e){return new p(e)}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type&&this._actual.equals(e._actual)}evaluate(e){return!this._actual.evaluate(e)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class m{constructor(e,t){this.key=e,this.value=t,this.type=5}static create(e,t){if("boolean"==typeof t)return t?_.create(e):h.create(e);const n=s.get(e);if("boolean"==typeof n){return t===(n?"true":"false")?d.INSTANCE:u.INSTANCE}return new m(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:this.key<e.key?-1:this.key>e.key?1:this.value<e.value?-1:this.value>e.value?1:0}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}evaluate(e){return e.getValue(this.key)!=this.value}serialize(){return this.key+" != '"+this.value+"'"}keys(){return[this.key]}negate(){return f.create(this.key,this.value)}}class _{constructor(e){this.key=e,this.type=3}static create(e){const t=s.get(e);return"boolean"==typeof t?t?d.INSTANCE:u.INSTANCE:new _(e)}cmp(e){return e.type!==this.type?this.type-e.type:this.key<e.key?-1:this.key>e.key?1:0}equals(e){return e.type===this.type&&this.key===e.key}evaluate(e){return!e.getValue(this.key)}serialize(){return"!"+this.key}keys(){return[this.key]}negate(){return h.create(this.key)}}class b{constructor(e,t){this.key=e,this.regexp=t,this.type=7}static create(e,t){return new b(e,t)}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.key<e.key)return-1;if(this.key>e.key)return 1;const t=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return t<n?-1:t>n?1:0}equals(e){if(e.type===this.type){const t=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return this.key===e.key&&t===n}return!1}evaluate(e){let t=e.getValue(this.key);return!!this.regexp&&this.regexp.test(t)}serialize(){const e=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${e}`}keys(){return[this.key]}negate(){return v.create(this)}}class v{constructor(e){this._actual=e,this.type=8}static create(e){return new v(e)}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type&&this._actual.equals(e._actual)}evaluate(e){return!this._actual.evaluate(e)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class y{constructor(e){this.expr=e,this.type=6}static create(e){return y._normalizeArr(e)}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,n=this.expr.length;t<n;t++){const n=c(this.expr[t],e.expr[t]);if(0!==n)return n}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}evaluate(e){for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].evaluate(e))return!1;return!0}static _normalizeArr(e){const t=[];let n=!1;for(const i of e)if(i)if(1!==i.type){if(0===i.type)return d.INSTANCE;6!==i.type?t.push(i):t.push(...i.expr)}else n=!0;if(0===t.length&&n)return u.INSTANCE;if(0!==t.length){if(1===t.length)return t[0];for(t.sort(c);t.length>1;){const e=t[t.length-1];if(9!==e.type)break;t.pop();const n=t.pop(),i=w.create(e.expr.map(e=>y.create([e,n])));i&&(t.push(i),t.sort(c))}return new y(t)}}serialize(){return this.expr.map(e=>e.serialize()).join(" && ")}keys(){const e=[];for(let t of this.expr)e.push(...t.keys());return e}negate(){let e=[];for(let t of this.expr)e.push(t.negate());return w.create(e)}}class w{constructor(e){this.expr=e,this.type=9}static create(e){const t=w._normalizeArr(e);if(0!==t.length)return 1===t.length?t[0]:new w(t)}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,n=this.expr.length;t<n;t++){const n=c(this.expr[t],e.expr[t]);if(0!==n)return n}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}evaluate(e){for(let t=0,n=this.expr.length;t<n;t++)if(this.expr[t].evaluate(e))return!0;return!1}static _normalizeArr(e){let t=[],n=!1;if(e){for(let i=0,r=e.length;i<r;i++){const r=e[i];if(r)if(0!==r.type){if(1===r.type)return[u.INSTANCE];9!==r.type?t.push(r):t=t.concat(r.expr)}else n=!0}if(0===t.length&&n)return[d.INSTANCE];t.sort(c)}return t}serialize(){return this.expr.map(e=>e.serialize()).join(" || ")}keys(){const e=[];for(let t of this.expr)e.push(...t.keys());return e}negate(){let e=[];for(let t of this.expr)e.push(t.negate());const t=e=>9===e.type?e.expr:[e];for(;e.length>1;){const n=e.shift(),i=e.shift(),r=[];for(const e of t(n))for(const n of t(i))r.push(l.and(e,n));e.unshift(l.or(...r))}return e[0]}}class C extends h{constructor(e,t){super(e),this._defaultValue=t}bindTo(e){return e.createKey(this.key,this._defaultValue)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return l.not(this.key)}}const S=Object(r.c)("contextKeyService"),k="setContext"},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));class i{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new i(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return i.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return i.isBefore(this,e)}static isBefore(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<t.column}isBeforeOrEqual(e){return i.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<=t.column}static compare(e,t){let n=0|e.lineNumber,i=0|t.lineNumber;if(n===i){return(0|e.column)-(0|t.column)}return n-i}clone(){return new i(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(e){return new i(e.lineNumber,e.column)}static isIPosition(e){return e&&"number"==typeof e.lineNumber&&"number"==typeof e.column}}},function(e,t,n){"use strict";var i=n(24),r=n(3),o=n(6),s=n(2),a=n(266),l=n(45);function c(e,t,n,i){if(Array.isArray(e)){let r=0;for(const o of e){const e=c(o,t,n,i);if(10===e)return e;e>r&&(r=e)}return r}if("string"==typeof e)return i?"*"===e?5:e===n?10:0:0;if(e){const{language:r,pattern:o,scheme:s,hasAccessToAllModels:c}=e;if(!i&&!c)return 0;let d=0;if(s)if(s===t.scheme)d=10;else{if("*"!==s)return 0;d=5}if(r)if(r===n)d=10;else{if("*"!==r)return 0;d=Math.max(d,5)}if(o){let e;if((e="string"==typeof o?o:Object.assign(Object.assign({},o),{base:Object(l.d)(o.base)}))!==t.fsPath&&!Object(a.a)(e,t.fsPath))return 0;d=10}return d}return 0}var d=n(54);function u(e){return"string"!=typeof e&&(Array.isArray(e)?e.every(u):!!e.exclusive)}class h{constructor(){this._clock=0,this._entries=[],this._onDidChange=new o.a}get onDidChange(){return this._onDidChange.event}register(e,t){let n={selector:e,provider:t,_score:-1,_time:this._clock++};return this._entries.push(n),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),Object(s.h)(()=>{if(n){let e=this._entries.indexOf(n);e>=0&&(this._entries.splice(e,1),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),n=void 0)}})}has(e){return this.all(e).length>0}all(e){if(!e)return[];this._updateScores(e);const t=[];for(let e of this._entries)e._score>0&&t.push(e.provider);return t}ordered(e){const t=[];return this._orderedForEach(e,e=>t.push(e.provider)),t}orderedGroups(e){const t=[];let n,i;return this._orderedForEach(e,e=>{n&&i===e._score?n.push(e.provider):(i=e._score,n=[e.provider],t.push(n))}),t}_orderedForEach(e,t){if(e){this._updateScores(e);for(const e of this._entries)e._score>0&&t(e)}}_updateScores(e){let t={uri:e.uri.toString(),language:e.getLanguageIdentifier().language};if(!this._lastCandidate||this._lastCandidate.language!==t.language||this._lastCandidate.uri!==t.uri){this._lastCandidate=t;for(let t of this._entries)if(t._score=c(t.selector,e.uri,e.getLanguageIdentifier().language,Object(d.b)(e)),u(t.selector)&&t._score>0){for(let e of this._entries)e._score=0;t._score=1e3;break}this._entries.sort(h._compareByScoreAndTime)}}static _compareByScoreAndTime(e,t){return e._score<t._score?1:e._score>t._score?-1:e._time<t._time?1:e._time>t._time?-1:0}}var f=n(16);n.d(t,"r",(function(){return g})),n.d(t,"B",(function(){return p})),n.d(t,"F",(function(){return m})),n.d(t,"E",(function(){return _})),n.d(t,"z",(function(){return b})),n.d(t,"h",(function(){return v})),n.d(t,"G",(function(){return w})),n.d(t,"A",(function(){return y})),n.d(t,"n",(function(){return C})),n.d(t,"v",(function(){return S})),n.d(t,"w",(function(){return k})),n.d(t,"d",(function(){return x})),n.d(t,"y",(function(){return L})),n.d(t,"p",(function(){return M})),n.d(t,"m",(function(){return D})),n.d(t,"i",(function(){return E})),n.d(t,"u",(function(){return T})),n.d(t,"f",(function(){return O})),n.d(t,"e",(function(){return N})),n.d(t,"q",(function(){return I})),n.d(t,"D",(function(){return A})),n.d(t,"b",(function(){return R})),n.d(t,"a",(function(){return P})),n.d(t,"g",(function(){return j})),n.d(t,"j",(function(){return F})),n.d(t,"t",(function(){return B})),n.d(t,"s",(function(){return W})),n.d(t,"c",(function(){return H})),n.d(t,"x",(function(){return Y})),n.d(t,"o",(function(){return V})),n.d(t,"l",(function(){return z})),n.d(t,"k",(function(){return U})),n.d(t,"C",(function(){return $}));class g{constructor(e,t){this.language=e,this.id=t}}class p{static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(1792&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>14}static getBackground(e){return(4286578688&e)>>>23}static getClassNameFromMetadata(e){let t="mtk"+this.getForeground(e),n=this.getFontStyle(e);return 1&n&&(t+=" mtki"),2&n&&(t+=" mtkb"),4&n&&(t+=" mtku"),t}static getInlineStyleFromMetadata(e,t){const n=this.getForeground(e),i=this.getFontStyle(e);let r=`color: ${t[n]};`;return 1&i&&(r+="font-style: italic;"),2&i&&(r+="font-weight: bold;"),4&i&&(r+="text-decoration: underline;"),r}}const m=function(){let e=Object.create(null);return e[0]="symbol-method",e[1]="symbol-function",e[2]="symbol-constructor",e[3]="symbol-field",e[4]="symbol-variable",e[5]="symbol-class",e[6]="symbol-struct",e[7]="symbol-interface",e[8]="symbol-module",e[9]="symbol-property",e[10]="symbol-event",e[11]="symbol-operator",e[12]="symbol-unit",e[13]="symbol-value",e[14]="symbol-constant",e[15]="symbol-enum",e[16]="symbol-enum-member",e[17]="symbol-keyword",e[27]="symbol-snippet",e[18]="symbol-text",e[19]="symbol-color",e[20]="symbol-file",e[21]="symbol-reference",e[22]="symbol-customcolor",e[23]="symbol-folder",e[24]="symbol-type-parameter",e[25]="account",e[26]="issues",function(t){const n=e[t];let i=n&&f.c.get(n);return i||(console.info("No codicon found for CompletionItemKind "+t),i=f.a.symbolProperty),i.classNames}}();let _=function(){let e=Object.create(null);return e.method=0,e.function=1,e.constructor=2,e.field=3,e.variable=4,e.class=5,e.struct=6,e.interface=7,e.module=8,e.property=9,e.event=10,e.operator=11,e.unit=12,e.value=13,e.constant=14,e.enum=15,e["enum-member"]=16,e.enumMember=16,e.keyword=17,e.snippet=27,e.text=18,e.color=19,e.file=20,e.reference=21,e.customcolor=22,e.folder=23,e["type-parameter"]=24,e.typeParameter=24,e.account=25,e.issue=26,function(t,n){let i=e[t];return void 0!==i||n||(i=9),i}}();var b,v,y;function w(e){return e&&i.a.isUri(e.uri)&&r.a.isIRange(e.range)&&(r.a.isIRange(e.originSelectionRange)||r.a.isIRange(e.targetSelectionRange))}!function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(b||(b={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(v||(v={})),function(e){const t=new Map;t.set("file",0),t.set("module",1),t.set("namespace",2),t.set("package",3),t.set("class",4),t.set("method",5),t.set("property",6),t.set("field",7),t.set("constructor",8),t.set("enum",9),t.set("interface",10),t.set("function",11),t.set("variable",12),t.set("constant",13),t.set("string",14),t.set("number",15),t.set("boolean",16),t.set("array",17),t.set("object",18),t.set("key",19),t.set("null",20),t.set("enum-member",21),t.set("struct",22),t.set("event",23),t.set("operator",24),t.set("type-parameter",25);const n=new Map;n.set(0,"file"),n.set(1,"module"),n.set(2,"namespace"),n.set(3,"package"),n.set(4,"class"),n.set(5,"method"),n.set(6,"property"),n.set(7,"field"),n.set(8,"constructor"),n.set(9,"enum"),n.set(10,"interface"),n.set(11,"function"),n.set(12,"variable"),n.set(13,"constant"),n.set(14,"string"),n.set(15,"number"),n.set(16,"boolean"),n.set(17,"array"),n.set(18,"object"),n.set(19,"key"),n.set(20,"null"),n.set(21,"enum-member"),n.set(22,"struct"),n.set(23,"event"),n.set(24,"operator"),n.set(25,"type-parameter"),e.fromString=function(e){return t.get(e)},e.toString=function(e){return n.get(e)},e.toCssClassName=function(e,t){const i=n.get(e);let r=i&&f.c.get("symbol-"+i);return r||(console.info("No codicon found for SymbolKind "+e),r=f.a.symbolProperty),`${t?"inline":"block"} ${r.classNames}`}}(y||(y={}));class C{constructor(e){this.value=e}}C.Comment=new C("comment"),C.Imports=new C("imports"),C.Region=new C("region");const S=new h,k=new h,x=new h,L=new h,M=new h,D=new h,E=new h,T=new h,O=new h,N=new h,I=new h,A=new h,R=new h,P=new h,j=new h,F=new h,B=new h,W=new h,H=new h,Y=new h,V=new h,z=new h,U=new h,$=new class{constructor(){this._map=new Map,this._promises=new Map,this._onDidChange=new o.a,this.onDidChange=this._onDidChange.event,this._colorMap=null}fire(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})}register(e,t){return this._map.set(e,t),this.fire([e]),Object(s.h)(()=>{this._map.get(e)===t&&(this._map.delete(e),this.fire([e]))})}registerPromise(e,t){let n=null,i=!1;return this._promises.set(e,t.then(t=>{this._promises.delete(e),!i&&t&&(n=this.register(e,t))})),Object(s.h)(()=>{i=!0,n&&n.dispose()})}getPromise(e){const t=this.get(e);if(t)return Promise.resolve(t);const n=this._promises.get(e);return n?n.then(t=>this.get(e)):null}get(e){return this._map.get(e)||null}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._map.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}},function(e,t,n){"use strict";(function(e,i){n.d(t,"i",(function(){return m})),n.d(t,"f",(function(){return _})),n.d(t,"d",(function(){return b})),n.d(t,"g",(function(){return v})),n.d(t,"h",(function(){return y})),n.d(t,"c",(function(){return w})),n.d(t,"b",(function(){return C})),n.d(t,"j",(function(){return S})),n.d(t,"a",(function(){return k})),n.d(t,"e",(function(){return M}));let r=!1,o=!1,s=!1,a=!1,l=!1,c=!1,d=void 0,u="en",h=void 0,f=void 0;const g=void 0!==e&&void 0!==e.versions&&void 0!==e.versions.electron&&"renderer"===e.type;if("object"!=typeof navigator||g){if("object"==typeof e){r="win32"===e.platform,o="darwin"===e.platform,s="linux"===e.platform,d="en",u="en";const t=e.env.VSCODE_NLS_CONFIG;if(t)try{const e=JSON.parse(t),n=e.availableLanguages["*"];d=e.locale,u=n||"en",h=e._translationsConfigFile}catch(e){}a=!0}}else r=(f=navigator.userAgent).indexOf("Windows")>=0,o=f.indexOf("Macintosh")>=0,c=(f.indexOf("Macintosh")>=0||f.indexOf("iPad")>=0||f.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,s=f.indexOf("Linux")>=0,l=!0,u=d=navigator.language;let p=0;o?p=1:r?p=3:s&&(p=2);const m=r,_=o,b=s,v=a,y=l,w=c,C="object"==typeof self?self:"object"==typeof i?i:{},S=function(){if(C.setImmediate)return C.setImmediate.bind(C);if("function"==typeof C.postMessage&&!C.importScripts){let e=[];C.addEventListener("message",t=>{if(t.data&&t.data.vscodeSetImmediateId)for(let n=0,i=e.length;n<i;n++){const i=e[n];if(i.id===t.data.vscodeSetImmediateId)return e.splice(n,1),void i.callback()}});let t=0;return n=>{const i=++t;e.push({id:i,callback:n}),C.postMessage({vscodeSetImmediateId:i},"*")}}if(void 0!==e&&"function"==typeof e.nextTick)return e.nextTick.bind(e);const t=Promise.resolve();return e=>t.then(e)}(),k=o||c?2:r?1:3;let x=!0,L=!1;function M(){if(!L){L=!0;const e=new Uint8Array(2);e[0]=1,e[1]=2;const t=new Uint16Array(e.buffer);x=513===t[0]}return x}}).call(this,n(343),n(237))},function(e,t,n){"use strict";function i(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return a}));class r{constructor(e,t,n,r=1){this.r=0|Math.min(255,Math.max(0,e)),this.g=0|Math.min(255,Math.max(0,t)),this.b=0|Math.min(255,Math.max(0,n)),this.a=i(Math.max(Math.min(1,r),0),3)}static equals(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a}}class o{constructor(e,t,n,r){this.h=0|Math.max(Math.min(360,e),0),this.s=i(Math.max(Math.min(1,t),0),3),this.l=i(Math.max(Math.min(1,n),0),3),this.a=i(Math.max(Math.min(1,r),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a}static fromRGBA(e){const t=e.r/255,n=e.g/255,i=e.b/255,r=e.a,s=Math.max(t,n,i),a=Math.min(t,n,i);let l=0,c=0;const d=(a+s)/2,u=s-a;if(u>0){switch(c=Math.min(d<=.5?u/(2*d):u/(2-2*d),1),s){case t:l=(n-i)/u+(n<i?6:0);break;case n:l=(i-t)/u+2;break;case i:l=(t-n)/u+4}l*=60,l=Math.round(l)}return new o(l,c,d,r)}static _hue2rgb(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}static toRGBA(e){const t=e.h/360,{s:n,l:i,a:s}=e;let a,l,c;if(0===n)a=l=c=i;else{const e=i<.5?i*(1+n):i+n-i*n,r=2*i-e;a=o._hue2rgb(r,e,t+1/3),l=o._hue2rgb(r,e,t),c=o._hue2rgb(r,e,t-1/3)}return new r(Math.round(255*a),Math.round(255*l),Math.round(255*c),s)}}class s{constructor(e,t,n,r){this.h=0|Math.max(Math.min(360,e),0),this.s=i(Math.max(Math.min(1,t),0),3),this.v=i(Math.max(Math.min(1,n),0),3),this.a=i(Math.max(Math.min(1,r),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a}static fromRGBA(e){const t=e.r/255,n=e.g/255,i=e.b/255,r=Math.max(t,n,i),o=r-Math.min(t,n,i),a=0===r?0:o/r;let l;return l=0===o?0:r===t?((n-i)/o%6+6)%6:r===n?(i-t)/o+2:(t-n)/o+4,new s(Math.round(60*l),a,r,e.a)}static toRGBA(e){const{h:t,s:n,v:i,a:o}=e,s=i*n,a=s*(1-Math.abs(t/60%2-1)),l=i-s;let[c,d,u]=[0,0,0];return t<60?(c=s,d=a):t<120?(c=a,d=s):t<180?(d=s,u=a):t<240?(d=a,u=s):t<300?(c=a,u=s):t<360&&(c=s,u=a),c=Math.round(255*(c+l)),d=Math.round(255*(d+l)),u=Math.round(255*(u+l)),new r(c,d,u,o)}}class a{constructor(e){if(!e)throw new Error("Color needs a value");if(e instanceof r)this.rgba=e;else if(e instanceof o)this._hsla=e,this.rgba=o.toRGBA(e);else{if(!(e instanceof s))throw new Error("Invalid color ctor argument");this._hsva=e,this.rgba=s.toRGBA(e)}}static fromHex(e){return a.Format.CSS.parseHex(e)||a.red}get hsla(){return this._hsla?this._hsla:o.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:s.fromRGBA(this.rgba)}equals(e){return!!e&&r.equals(this.rgba,e.rgba)&&o.equals(this.hsla,e.hsla)&&s.equals(this.hsva,e.hsva)}getRelativeLuminance(){return i(.2126*a._relativeLuminanceForComponent(this.rgba.r)+.7152*a._relativeLuminanceForComponent(this.rgba.g)+.0722*a._relativeLuminanceForComponent(this.rgba.b),4)}static _relativeLuminanceForComponent(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}isLighter(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3>=128}isLighterThan(e){return this.getRelativeLuminance()>e.getRelativeLuminance()}isDarkerThan(e){return this.getRelativeLuminance()<e.getRelativeLuminance()}lighten(e){return new a(new o(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*e,this.hsla.a))}darken(e){return new a(new o(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*e,this.hsla.a))}transparent(e){const{r:t,g:n,b:i,a:o}=this.rgba;return new a(new r(t,n,i,o*e))}isTransparent(){return 0===this.rgba.a}isOpaque(){return 1===this.rgba.a}opposite(){return new a(new r(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}toString(){return""+a.Format.CSS.format(this)}static getLighterColor(e,t,n){if(e.isLighterThan(t))return e;n=n||.5;const i=e.getRelativeLuminance(),r=t.getRelativeLuminance();return n=n*(r-i)/r,e.lighten(n)}static getDarkerColor(e,t,n){if(e.isDarkerThan(t))return e;n=n||.5;const i=e.getRelativeLuminance();return n=n*(i-t.getRelativeLuminance())/i,e.darken(n)}}a.white=new a(new r(255,255,255,1)),a.black=new a(new r(0,0,0,1)),a.red=new a(new r(255,0,0,1)),a.blue=new a(new r(0,0,255,1)),a.cyan=new a(new r(0,255,255,1)),a.lightgrey=new a(new r(211,211,211,1)),a.transparent=new a(new r(0,0,0,0)),function(e){let t;!function(t){let n;!function(t){function n(e){const t=e.toString(16);return 2!==t.length?"0"+t:t}function i(e){switch(e){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:case 65:return 10;case 98:case 66:return 11;case 99:case 67:return 12;case 100:case 68:return 13;case 101:case 69:return 14;case 102:case 70:return 15}return 0}t.formatRGB=function(t){return 1===t.rgba.a?`rgb(${t.rgba.r}, ${t.rgba.g}, ${t.rgba.b})`:e.Format.CSS.formatRGBA(t)},t.formatRGBA=function(e){return`rgba(${e.rgba.r}, ${e.rgba.g}, ${e.rgba.b}, ${+e.rgba.a.toFixed(2)})`},t.formatHSL=function(t){return 1===t.hsla.a?`hsl(${t.hsla.h}, ${(100*t.hsla.s).toFixed(2)}%, ${(100*t.hsla.l).toFixed(2)}%)`:e.Format.CSS.formatHSLA(t)},t.formatHSLA=function(e){return`hsla(${e.hsla.h}, ${(100*e.hsla.s).toFixed(2)}%, ${(100*e.hsla.l).toFixed(2)}%, ${e.hsla.a.toFixed(2)})`},t.formatHex=function(e){return`#${n(e.rgba.r)}${n(e.rgba.g)}${n(e.rgba.b)}`},t.formatHexA=function(t,i=!1){return i&&1===t.rgba.a?e.Format.CSS.formatHex(t):`#${n(t.rgba.r)}${n(t.rgba.g)}${n(t.rgba.b)}${n(Math.round(255*t.rgba.a))}`},t.format=function(t){return t.isOpaque()?e.Format.CSS.formatHex(t):e.Format.CSS.formatRGBA(t)},t.parseHex=function(t){const n=t.length;if(0===n)return null;if(35!==t.charCodeAt(0))return null;if(7===n){const n=16*i(t.charCodeAt(1))+i(t.charCodeAt(2)),o=16*i(t.charCodeAt(3))+i(t.charCodeAt(4)),s=16*i(t.charCodeAt(5))+i(t.charCodeAt(6));return new e(new r(n,o,s,1))}if(9===n){const n=16*i(t.charCodeAt(1))+i(t.charCodeAt(2)),o=16*i(t.charCodeAt(3))+i(t.charCodeAt(4)),s=16*i(t.charCodeAt(5))+i(t.charCodeAt(6)),a=16*i(t.charCodeAt(7))+i(t.charCodeAt(8));return new e(new r(n,o,s,a/255))}if(4===n){const n=i(t.charCodeAt(1)),o=i(t.charCodeAt(2)),s=i(t.charCodeAt(3));return new e(new r(16*n+n,16*o+o,16*s+s))}if(5===n){const n=i(t.charCodeAt(1)),o=i(t.charCodeAt(2)),s=i(t.charCodeAt(3)),a=i(t.charCodeAt(4));return new e(new r(16*n+n,16*o+o,16*s+s,(16*a+a)/255))}return null}}(n=t.CSS||(t.CSS={}))}(t=e.Format||(e.Format={}))}(a||(a={}))},function(e,t,n){"use strict";function i(e,t=0){return e[e.length-(1+t)]}function r(e){if(0===e.length)throw new Error("Invalid tail call");return[e.slice(0,e.length-1),e[e.length-1]]}function o(e,t,n=((e,t)=>e===t)){if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(let i=0,r=e.length;i<r;i++)if(!n(e[i],t[i]))return!1;return!0}function s(e,t,n){let i=0,r=e.length-1;for(;i<=r;){const o=(i+r)/2|0,s=n(e[o],t);if(s<0)i=o+1;else{if(!(s>0))return o;r=o-1}}return-(i+1)}function a(e,t){let n=0,i=e.length;if(0===i)return 0;for(;n<i;){const r=Math.floor((n+i)/2);t(e[r])?i=r:n=r+1}return n}function l(e,t){return function e(t,n,i,r,o){if(r<=i)return;const s=i+(r-i)/2|0;if(e(t,n,i,s,o),e(t,n,s+1,r,o),n(t[s],t[s+1])<=0)return;!function(e,t,n,i,r,o){let s=n,a=i+1;for(let t=n;t<=r;t++)o[t]=e[t];for(let l=n;l<=r;l++)s>i?e[l]=o[a++]:a>r?e[l]=o[s++]:t(o[a],o[s])<0?e[l]=o[a++]:e[l]=o[s++]}(t,n,i,s,r,o)}(e,t,0,e.length-1,[]),e}function c(e,t){const n=[];let i=void 0;for(const r of l(e.slice(0),t))i&&0===t(i[0],r)?i.push(r):(i=[r],n.push(i));return n}function d(e){return e.filter(e=>!!e)}function u(e){return!Array.isArray(e)||0===e.length}function h(e){return Array.isArray(e)&&e.length>0}function f(e,t){if(!t)return e.filter((t,n)=>e.indexOf(t)===n);const n=Object.create(null);return e.filter(e=>{const i=t(e);return!n[i]&&(n[i]=!0,!0)})}function g(e){const t=new Set;return e.filter(e=>!t.has(e)&&(t.add(e),!0))}function p(e,t){for(let n=0;n<e.length;n++){if(t(e[n]))return n}return-1}function m(e,t,n){const i=p(e,t);return i<0?n:e[i]}function _(e,t){return e.length>0?e[0]:t}function b(e){return[].concat(...e)}function v(e,t){let n="number"==typeof t?e:0;"number"==typeof t?n=e:(n=0,t=e);const i=[];if(n<=t)for(let e=n;e<t;e++)i.push(e);else for(let e=n;e>t;e--)i.push(e);return i}function y(e,t,n){const i=e.slice(0,t),r=e.slice(t);return i.concat(n,r)}function w(e,t){const n=e.indexOf(t);n>-1&&(e.splice(n,1),e.unshift(t))}function C(e,t){const n=e.indexOf(t);n>-1&&(e.splice(n,1),e.push(t))}function S(e){return Array.isArray(e)?e:[e]}n.d(t,"t",(function(){return i})),n.d(t,"u",(function(){return r})),n.d(t,"g",(function(){return o})),n.d(t,"c",(function(){return s})),n.d(t,"h",(function(){return a})),n.d(t,"p",(function(){return l})),n.d(t,"m",(function(){return c})),n.d(t,"d",(function(){return d})),n.d(t,"n",(function(){return u})),n.d(t,"o",(function(){return h})),n.d(t,"e",(function(){return f})),n.d(t,"f",(function(){return g})),n.d(t,"j",(function(){return p})),n.d(t,"i",(function(){return m})),n.d(t,"k",(function(){return _})),n.d(t,"l",(function(){return b})),n.d(t,"s",(function(){return v})),n.d(t,"a",(function(){return y})),n.d(t,"r",(function(){return w})),n.d(t,"q",(function(){return C})),n.d(t,"b",(function(){return S}))},function(e,t,n){"use strict";n.d(t,"e",(function(){return r})),n.d(t,"f",(function(){return o})),n.d(t,"g",(function(){return s})),n.d(t,"d",(function(){return l})),n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return u}));const i=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{if(e.stack)throw new Error(e.message+"\n\n"+e.stack);throw e},0)}}emit(e){this.listeners.forEach(t=>{t(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function r(e){l(e)||i.onUnexpectedError(e)}function o(e){l(e)||i.onUnexpectedExternalError(e)}function s(e){if(e instanceof Error){let{name:t,message:n}=e;return{$isError:!0,name:t,message:n,stack:e.stacktrace||e.stack}}return e}const a="Canceled";function l(e){return e instanceof Error&&e.name===a&&e.message===a}function c(){const e=new Error(a);return e.name=e.message,e}function d(e){return e?new Error(`Illegal argument: ${e}`):new Error("Illegal argument")}function u(e){return e?new Error(`Illegal state: ${e}`):new Error("Illegal state")}},function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"e",(function(){return a})),n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return d})),n.d(t,"d",(function(){return h})),n.d(t,"g",(function(){return f})),n.d(t,"f",(function(){return g})),n.d(t,"h",(function(){return m}));var i=n(156),r=n(6);const o=new class{constructor(){this._icons=new Map,this._onDidRegister=new r.a}add(e){this._icons.has(e.id)?console.error(`Duplicate registration of codicon ${e.id}`):(this._icons.set(e.id,e),this._onDidRegister.fire(e))}get(e){return this._icons.get(e)}get all(){return this._icons.values()}get onDidRegister(){return this._onDidRegister.event}},s=o;function a(e,t,n){return new l(e,t)}class l{constructor(e,t,n){this.id=e,this.definition=t,this.description=n,o.add(this)}get classNames(){return"codicon codicon-"+this.id}get cssSelector(){return".codicon.codicon-"+this.id}}!function(e){e.add=new e("add",{character:"\\ea60"}),e.plus=new e("plus",{character:"\\ea60"}),e.gistNew=new e("gist-new",{character:"\\ea60"}),e.repoCreate=new e("repo-create",{character:"\\ea60"}),e.lightbulb=new e("lightbulb",{character:"\\ea61"}),e.lightBulb=new e("light-bulb",{character:"\\ea61"}),e.repo=new e("repo",{character:"\\ea62"}),e.repoDelete=new e("repo-delete",{character:"\\ea62"}),e.gistFork=new e("gist-fork",{character:"\\ea63"}),e.repoForked=new e("repo-forked",{character:"\\ea63"}),e.gitPullRequest=new e("git-pull-request",{character:"\\ea64"}),e.gitPullRequestAbandoned=new e("git-pull-request-abandoned",{character:"\\ea64"}),e.recordKeys=new e("record-keys",{character:"\\ea65"}),e.keyboard=new e("keyboard",{character:"\\ea65"}),e.tag=new e("tag",{character:"\\ea66"}),e.tagAdd=new e("tag-add",{character:"\\ea66"}),e.tagRemove=new e("tag-remove",{character:"\\ea66"}),e.person=new e("person",{character:"\\ea67"}),e.personAdd=new e("person-add",{character:"\\ea67"}),e.personFollow=new e("person-follow",{character:"\\ea67"}),e.personOutline=new e("person-outline",{character:"\\ea67"}),e.personFilled=new e("person-filled",{character:"\\ea67"}),e.gitBranch=new e("git-branch",{character:"\\ea68"}),e.gitBranchCreate=new e("git-branch-create",{character:"\\ea68"}),e.gitBranchDelete=new e("git-branch-delete",{character:"\\ea68"}),e.sourceControl=new e("source-control",{character:"\\ea68"}),e.mirror=new e("mirror",{character:"\\ea69"}),e.mirrorPublic=new e("mirror-public",{character:"\\ea69"}),e.star=new e("star",{character:"\\ea6a"}),e.starAdd=new e("star-add",{character:"\\ea6a"}),e.starDelete=new e("star-delete",{character:"\\ea6a"}),e.starEmpty=new e("star-empty",{character:"\\ea6a"}),e.comment=new e("comment",{character:"\\ea6b"}),e.commentAdd=new e("comment-add",{character:"\\ea6b"}),e.alert=new e("alert",{character:"\\ea6c"}),e.warning=new e("warning",{character:"\\ea6c"}),e.search=new e("search",{character:"\\ea6d"}),e.searchSave=new e("search-save",{character:"\\ea6d"}),e.logOut=new e("log-out",{character:"\\ea6e"}),e.signOut=new e("sign-out",{character:"\\ea6e"}),e.logIn=new e("log-in",{character:"\\ea6f"}),e.signIn=new e("sign-in",{character:"\\ea6f"}),e.eye=new e("eye",{character:"\\ea70"}),e.eyeUnwatch=new e("eye-unwatch",{character:"\\ea70"}),e.eyeWatch=new e("eye-watch",{character:"\\ea70"}),e.circleFilled=new e("circle-filled",{character:"\\ea71"}),e.primitiveDot=new e("primitive-dot",{character:"\\ea71"}),e.closeDirty=new e("close-dirty",{character:"\\ea71"}),e.debugBreakpoint=new e("debug-breakpoint",{character:"\\ea71"}),e.debugBreakpointDisabled=new e("debug-breakpoint-disabled",{character:"\\ea71"}),e.debugHint=new e("debug-hint",{character:"\\ea71"}),e.primitiveSquare=new e("primitive-square",{character:"\\ea72"}),e.edit=new e("edit",{character:"\\ea73"}),e.pencil=new e("pencil",{character:"\\ea73"}),e.info=new e("info",{character:"\\ea74"}),e.issueOpened=new e("issue-opened",{character:"\\ea74"}),e.gistPrivate=new e("gist-private",{character:"\\ea75"}),e.gitForkPrivate=new e("git-fork-private",{character:"\\ea75"}),e.lock=new e("lock",{character:"\\ea75"}),e.mirrorPrivate=new e("mirror-private",{character:"\\ea75"}),e.close=new e("close",{character:"\\ea76"}),e.removeClose=new e("remove-close",{character:"\\ea76"}),e.x=new e("x",{character:"\\ea76"}),e.repoSync=new e("repo-sync",{character:"\\ea77"}),e.sync=new e("sync",{character:"\\ea77"}),e.clone=new e("clone",{character:"\\ea78"}),e.desktopDownload=new e("desktop-download",{character:"\\ea78"}),e.beaker=new e("beaker",{character:"\\ea79"}),e.microscope=new e("microscope",{character:"\\ea79"}),e.vm=new e("vm",{character:"\\ea7a"}),e.deviceDesktop=new e("device-desktop",{character:"\\ea7a"}),e.file=new e("file",{character:"\\ea7b"}),e.fileText=new e("file-text",{character:"\\ea7b"}),e.more=new e("more",{character:"\\ea7c"}),e.ellipsis=new e("ellipsis",{character:"\\ea7c"}),e.kebabHorizontal=new e("kebab-horizontal",{character:"\\ea7c"}),e.mailReply=new e("mail-reply",{character:"\\ea7d"}),e.reply=new e("reply",{character:"\\ea7d"}),e.organization=new e("organization",{character:"\\ea7e"}),e.organizationFilled=new e("organization-filled",{character:"\\ea7e"}),e.organizationOutline=new e("organization-outline",{character:"\\ea7e"}),e.newFile=new e("new-file",{character:"\\ea7f"}),e.fileAdd=new e("file-add",{character:"\\ea7f"}),e.newFolder=new e("new-folder",{character:"\\ea80"}),e.fileDirectoryCreate=new e("file-directory-create",{character:"\\ea80"}),e.trash=new e("trash",{character:"\\ea81"}),e.trashcan=new e("trashcan",{character:"\\ea81"}),e.history=new e("history",{character:"\\ea82"}),e.clock=new e("clock",{character:"\\ea82"}),e.folder=new e("folder",{character:"\\ea83"}),e.fileDirectory=new e("file-directory",{character:"\\ea83"}),e.symbolFolder=new e("symbol-folder",{character:"\\ea83"}),e.logoGithub=new e("logo-github",{character:"\\ea84"}),e.markGithub=new e("mark-github",{character:"\\ea84"}),e.github=new e("github",{character:"\\ea84"}),e.terminal=new e("terminal",{character:"\\ea85"}),e.console=new e("console",{character:"\\ea85"}),e.repl=new e("repl",{character:"\\ea85"}),e.zap=new e("zap",{character:"\\ea86"}),e.symbolEvent=new e("symbol-event",{character:"\\ea86"}),e.error=new e("error",{character:"\\ea87"}),e.stop=new e("stop",{character:"\\ea87"}),e.variable=new e("variable",{character:"\\ea88"}),e.symbolVariable=new e("symbol-variable",{character:"\\ea88"}),e.array=new e("array",{character:"\\ea8a"}),e.symbolArray=new e("symbol-array",{character:"\\ea8a"}),e.symbolModule=new e("symbol-module",{character:"\\ea8b"}),e.symbolPackage=new e("symbol-package",{character:"\\ea8b"}),e.symbolNamespace=new e("symbol-namespace",{character:"\\ea8b"}),e.symbolObject=new e("symbol-object",{character:"\\ea8b"}),e.symbolMethod=new e("symbol-method",{character:"\\ea8c"}),e.symbolFunction=new e("symbol-function",{character:"\\ea8c"}),e.symbolConstructor=new e("symbol-constructor",{character:"\\ea8c"}),e.symbolBoolean=new e("symbol-boolean",{character:"\\ea8f"}),e.symbolNull=new e("symbol-null",{character:"\\ea8f"}),e.symbolNumeric=new e("symbol-numeric",{character:"\\ea90"}),e.symbolNumber=new e("symbol-number",{character:"\\ea90"}),e.symbolStructure=new e("symbol-structure",{character:"\\ea91"}),e.symbolStruct=new e("symbol-struct",{character:"\\ea91"}),e.symbolParameter=new e("symbol-parameter",{character:"\\ea92"}),e.symbolTypeParameter=new e("symbol-type-parameter",{character:"\\ea92"}),e.symbolKey=new e("symbol-key",{character:"\\ea93"}),e.symbolText=new e("symbol-text",{character:"\\ea93"}),e.symbolReference=new e("symbol-reference",{character:"\\ea94"}),e.goToFile=new e("go-to-file",{character:"\\ea94"}),e.symbolEnum=new e("symbol-enum",{character:"\\ea95"}),e.symbolValue=new e("symbol-value",{character:"\\ea95"}),e.symbolRuler=new e("symbol-ruler",{character:"\\ea96"}),e.symbolUnit=new e("symbol-unit",{character:"\\ea96"}),e.activateBreakpoints=new e("activate-breakpoints",{character:"\\ea97"}),e.archive=new e("archive",{character:"\\ea98"}),e.arrowBoth=new e("arrow-both",{character:"\\ea99"}),e.arrowDown=new e("arrow-down",{character:"\\ea9a"}),e.arrowLeft=new e("arrow-left",{character:"\\ea9b"}),e.arrowRight=new e("arrow-right",{character:"\\ea9c"}),e.arrowSmallDown=new e("arrow-small-down",{character:"\\ea9d"}),e.arrowSmallLeft=new e("arrow-small-left",{character:"\\ea9e"}),e.arrowSmallRight=new e("arrow-small-right",{character:"\\ea9f"}),e.arrowSmallUp=new e("arrow-small-up",{character:"\\eaa0"}),e.arrowUp=new e("arrow-up",{character:"\\eaa1"}),e.bell=new e("bell",{character:"\\eaa2"}),e.bold=new e("bold",{character:"\\eaa3"}),e.book=new e("book",{character:"\\eaa4"}),e.bookmark=new e("bookmark",{character:"\\eaa5"}),e.debugBreakpointConditionalUnverified=new e("debug-breakpoint-conditional-unverified",{character:"\\eaa6"}),e.debugBreakpointConditional=new e("debug-breakpoint-conditional",{character:"\\eaa7"}),e.debugBreakpointConditionalDisabled=new e("debug-breakpoint-conditional-disabled",{character:"\\eaa7"}),e.debugBreakpointDataUnverified=new e("debug-breakpoint-data-unverified",{character:"\\eaa8"}),e.debugBreakpointData=new e("debug-breakpoint-data",{character:"\\eaa9"}),e.debugBreakpointDataDisabled=new e("debug-breakpoint-data-disabled",{character:"\\eaa9"}),e.debugBreakpointLogUnverified=new e("debug-breakpoint-log-unverified",{character:"\\eaaa"}),e.debugBreakpointLog=new e("debug-breakpoint-log",{character:"\\eaab"}),e.debugBreakpointLogDisabled=new e("debug-breakpoint-log-disabled",{character:"\\eaab"}),e.briefcase=new e("briefcase",{character:"\\eaac"}),e.broadcast=new e("broadcast",{character:"\\eaad"}),e.browser=new e("browser",{character:"\\eaae"}),e.bug=new e("bug",{character:"\\eaaf"}),e.calendar=new e("calendar",{character:"\\eab0"}),e.caseSensitive=new e("case-sensitive",{character:"\\eab1"}),e.check=new e("check",{character:"\\eab2"}),e.checklist=new e("checklist",{character:"\\eab3"}),e.chevronDown=new e("chevron-down",{character:"\\eab4"}),e.chevronLeft=new e("chevron-left",{character:"\\eab5"}),e.chevronRight=new e("chevron-right",{character:"\\eab6"}),e.chevronUp=new e("chevron-up",{character:"\\eab7"}),e.chromeClose=new e("chrome-close",{character:"\\eab8"}),e.chromeMaximize=new e("chrome-maximize",{character:"\\eab9"}),e.chromeMinimize=new e("chrome-minimize",{character:"\\eaba"}),e.chromeRestore=new e("chrome-restore",{character:"\\eabb"}),e.circleOutline=new e("circle-outline",{character:"\\eabc"}),e.debugBreakpointUnverified=new e("debug-breakpoint-unverified",{character:"\\eabc"}),e.circleSlash=new e("circle-slash",{character:"\\eabd"}),e.circuitBoard=new e("circuit-board",{character:"\\eabe"}),e.clearAll=new e("clear-all",{character:"\\eabf"}),e.clippy=new e("clippy",{character:"\\eac0"}),e.closeAll=new e("close-all",{character:"\\eac1"}),e.cloudDownload=new e("cloud-download",{character:"\\eac2"}),e.cloudUpload=new e("cloud-upload",{character:"\\eac3"}),e.code=new e("code",{character:"\\eac4"}),e.collapseAll=new e("collapse-all",{character:"\\eac5"}),e.colorMode=new e("color-mode",{character:"\\eac6"}),e.commentDiscussion=new e("comment-discussion",{character:"\\eac7"}),e.compareChanges=new e("compare-changes",{character:"\\eafd"}),e.creditCard=new e("credit-card",{character:"\\eac9"}),e.dash=new e("dash",{character:"\\eacc"}),e.dashboard=new e("dashboard",{character:"\\eacd"}),e.database=new e("database",{character:"\\eace"}),e.debugContinue=new e("debug-continue",{character:"\\eacf"}),e.debugDisconnect=new e("debug-disconnect",{character:"\\ead0"}),e.debugPause=new e("debug-pause",{character:"\\ead1"}),e.debugRestart=new e("debug-restart",{character:"\\ead2"}),e.debugStart=new e("debug-start",{character:"\\ead3"}),e.debugStepInto=new e("debug-step-into",{character:"\\ead4"}),e.debugStepOut=new e("debug-step-out",{character:"\\ead5"}),e.debugStepOver=new e("debug-step-over",{character:"\\ead6"}),e.debugStop=new e("debug-stop",{character:"\\ead7"}),e.debug=new e("debug",{character:"\\ead8"}),e.deviceCameraVideo=new e("device-camera-video",{character:"\\ead9"}),e.deviceCamera=new e("device-camera",{character:"\\eada"}),e.deviceMobile=new e("device-mobile",{character:"\\eadb"}),e.diffAdded=new e("diff-added",{character:"\\eadc"}),e.diffIgnored=new e("diff-ignored",{character:"\\eadd"}),e.diffModified=new e("diff-modified",{character:"\\eade"}),e.diffRemoved=new e("diff-removed",{character:"\\eadf"}),e.diffRenamed=new e("diff-renamed",{character:"\\eae0"}),e.diff=new e("diff",{character:"\\eae1"}),e.discard=new e("discard",{character:"\\eae2"}),e.editorLayout=new e("editor-layout",{character:"\\eae3"}),e.emptyWindow=new e("empty-window",{character:"\\eae4"}),e.exclude=new e("exclude",{character:"\\eae5"}),e.extensions=new e("extensions",{character:"\\eae6"}),e.eyeClosed=new e("eye-closed",{character:"\\eae7"}),e.fileBinary=new e("file-binary",{character:"\\eae8"}),e.fileCode=new e("file-code",{character:"\\eae9"}),e.fileMedia=new e("file-media",{character:"\\eaea"}),e.filePdf=new e("file-pdf",{character:"\\eaeb"}),e.fileSubmodule=new e("file-submodule",{character:"\\eaec"}),e.fileSymlinkDirectory=new e("file-symlink-directory",{character:"\\eaed"}),e.fileSymlinkFile=new e("file-symlink-file",{character:"\\eaee"}),e.fileZip=new e("file-zip",{character:"\\eaef"}),e.files=new e("files",{character:"\\eaf0"}),e.filter=new e("filter",{character:"\\eaf1"}),e.flame=new e("flame",{character:"\\eaf2"}),e.foldDown=new e("fold-down",{character:"\\eaf3"}),e.foldUp=new e("fold-up",{character:"\\eaf4"}),e.fold=new e("fold",{character:"\\eaf5"}),e.folderActive=new e("folder-active",{character:"\\eaf6"}),e.folderOpened=new e("folder-opened",{character:"\\eaf7"}),e.gear=new e("gear",{character:"\\eaf8"}),e.gift=new e("gift",{character:"\\eaf9"}),e.gistSecret=new e("gist-secret",{character:"\\eafa"}),e.gist=new e("gist",{character:"\\eafb"}),e.gitCommit=new e("git-commit",{character:"\\eafc"}),e.gitCompare=new e("git-compare",{character:"\\eafd"}),e.gitMerge=new e("git-merge",{character:"\\eafe"}),e.githubAction=new e("github-action",{character:"\\eaff"}),e.githubAlt=new e("github-alt",{character:"\\eb00"}),e.globe=new e("globe",{character:"\\eb01"}),e.grabber=new e("grabber",{character:"\\eb02"}),e.graph=new e("graph",{character:"\\eb03"}),e.gripper=new e("gripper",{character:"\\eb04"}),e.heart=new e("heart",{character:"\\eb05"}),e.home=new e("home",{character:"\\eb06"}),e.horizontalRule=new e("horizontal-rule",{character:"\\eb07"}),e.hubot=new e("hubot",{character:"\\eb08"}),e.inbox=new e("inbox",{character:"\\eb09"}),e.issueClosed=new e("issue-closed",{character:"\\eb0a"}),e.issueReopened=new e("issue-reopened",{character:"\\eb0b"}),e.issues=new e("issues",{character:"\\eb0c"}),e.italic=new e("italic",{character:"\\eb0d"}),e.jersey=new e("jersey",{character:"\\eb0e"}),e.json=new e("json",{character:"\\eb0f"}),e.kebabVertical=new e("kebab-vertical",{character:"\\eb10"}),e.key=new e("key",{character:"\\eb11"}),e.law=new e("law",{character:"\\eb12"}),e.lightbulbAutofix=new e("lightbulb-autofix",{character:"\\eb13"}),e.linkExternal=new e("link-external",{character:"\\eb14"}),e.link=new e("link",{character:"\\eb15"}),e.listOrdered=new e("list-ordered",{character:"\\eb16"}),e.listUnordered=new e("list-unordered",{character:"\\eb17"}),e.liveShare=new e("live-share",{character:"\\eb18"}),e.loading=new e("loading",{character:"\\eb19"}),e.location=new e("location",{character:"\\eb1a"}),e.mailRead=new e("mail-read",{character:"\\eb1b"}),e.mail=new e("mail",{character:"\\eb1c"}),e.markdown=new e("markdown",{character:"\\eb1d"}),e.megaphone=new e("megaphone",{character:"\\eb1e"}),e.mention=new e("mention",{character:"\\eb1f"}),e.milestone=new e("milestone",{character:"\\eb20"}),e.mortarBoard=new e("mortar-board",{character:"\\eb21"}),e.move=new e("move",{character:"\\eb22"}),e.multipleWindows=new e("multiple-windows",{character:"\\eb23"}),e.mute=new e("mute",{character:"\\eb24"}),e.noNewline=new e("no-newline",{character:"\\eb25"}),e.note=new e("note",{character:"\\eb26"}),e.octoface=new e("octoface",{character:"\\eb27"}),e.openPreview=new e("open-preview",{character:"\\eb28"}),e.package_=new e("package",{character:"\\eb29"}),e.paintcan=new e("paintcan",{character:"\\eb2a"}),e.pin=new e("pin",{character:"\\eb2b"}),e.play=new e("play",{character:"\\eb2c"}),e.run=new e("run",{character:"\\eb2c"}),e.plug=new e("plug",{character:"\\eb2d"}),e.preserveCase=new e("preserve-case",{character:"\\eb2e"}),e.preview=new e("preview",{character:"\\eb2f"}),e.project=new e("project",{character:"\\eb30"}),e.pulse=new e("pulse",{character:"\\eb31"}),e.question=new e("question",{character:"\\eb32"}),e.quote=new e("quote",{character:"\\eb33"}),e.radioTower=new e("radio-tower",{character:"\\eb34"}),e.reactions=new e("reactions",{character:"\\eb35"}),e.references=new e("references",{character:"\\eb36"}),e.refresh=new e("refresh",{character:"\\eb37"}),e.regex=new e("regex",{character:"\\eb38"}),e.remoteExplorer=new e("remote-explorer",{character:"\\eb39"}),e.remote=new e("remote",{character:"\\eb3a"}),e.remove=new e("remove",{character:"\\eb3b"}),e.replaceAll=new e("replace-all",{character:"\\eb3c"}),e.replace=new e("replace",{character:"\\eb3d"}),e.repoClone=new e("repo-clone",{character:"\\eb3e"}),e.repoForcePush=new e("repo-force-push",{character:"\\eb3f"}),e.repoPull=new e("repo-pull",{character:"\\eb40"}),e.repoPush=new e("repo-push",{character:"\\eb41"}),e.report=new e("report",{character:"\\eb42"}),e.requestChanges=new e("request-changes",{character:"\\eb43"}),e.rocket=new e("rocket",{character:"\\eb44"}),e.rootFolderOpened=new e("root-folder-opened",{character:"\\eb45"}),e.rootFolder=new e("root-folder",{character:"\\eb46"}),e.rss=new e("rss",{character:"\\eb47"}),e.ruby=new e("ruby",{character:"\\eb48"}),e.saveAll=new e("save-all",{character:"\\eb49"}),e.saveAs=new e("save-as",{character:"\\eb4a"}),e.save=new e("save",{character:"\\eb4b"}),e.screenFull=new e("screen-full",{character:"\\eb4c"}),e.screenNormal=new e("screen-normal",{character:"\\eb4d"}),e.searchStop=new e("search-stop",{character:"\\eb4e"}),e.server=new e("server",{character:"\\eb50"}),e.settingsGear=new e("settings-gear",{character:"\\eb51"}),e.settings=new e("settings",{character:"\\eb52"}),e.shield=new e("shield",{character:"\\eb53"}),e.smiley=new e("smiley",{character:"\\eb54"}),e.sortPrecedence=new e("sort-precedence",{character:"\\eb55"}),e.splitHorizontal=new e("split-horizontal",{character:"\\eb56"}),e.splitVertical=new e("split-vertical",{character:"\\eb57"}),e.squirrel=new e("squirrel",{character:"\\eb58"}),e.starFull=new e("star-full",{character:"\\eb59"}),e.starHalf=new e("star-half",{character:"\\eb5a"}),e.symbolClass=new e("symbol-class",{character:"\\eb5b"}),e.symbolColor=new e("symbol-color",{character:"\\eb5c"}),e.symbolConstant=new e("symbol-constant",{character:"\\eb5d"}),e.symbolEnumMember=new e("symbol-enum-member",{character:"\\eb5e"}),e.symbolField=new e("symbol-field",{character:"\\eb5f"}),e.symbolFile=new e("symbol-file",{character:"\\eb60"}),e.symbolInterface=new e("symbol-interface",{character:"\\eb61"}),e.symbolKeyword=new e("symbol-keyword",{character:"\\eb62"}),e.symbolMisc=new e("symbol-misc",{character:"\\eb63"}),e.symbolOperator=new e("symbol-operator",{character:"\\eb64"}),e.symbolProperty=new e("symbol-property",{character:"\\eb65"}),e.wrench=new e("wrench",{character:"\\eb65"}),e.wrenchSubaction=new e("wrench-subaction",{character:"\\eb65"}),e.symbolSnippet=new e("symbol-snippet",{character:"\\eb66"}),e.tasklist=new e("tasklist",{character:"\\eb67"}),e.telescope=new e("telescope",{character:"\\eb68"}),e.textSize=new e("text-size",{character:"\\eb69"}),e.threeBars=new e("three-bars",{character:"\\eb6a"}),e.thumbsdown=new e("thumbsdown",{character:"\\eb6b"}),e.thumbsup=new e("thumbsup",{character:"\\eb6c"}),e.tools=new e("tools",{character:"\\eb6d"}),e.triangleDown=new e("triangle-down",{character:"\\eb6e"}),e.triangleLeft=new e("triangle-left",{character:"\\eb6f"}),e.triangleRight=new e("triangle-right",{character:"\\eb70"}),e.triangleUp=new e("triangle-up",{character:"\\eb71"}),e.twitter=new e("twitter",{character:"\\eb72"}),e.unfold=new e("unfold",{character:"\\eb73"}),e.unlock=new e("unlock",{character:"\\eb74"}),e.unmute=new e("unmute",{character:"\\eb75"}),e.unverified=new e("unverified",{character:"\\eb76"}),e.verified=new e("verified",{character:"\\eb77"}),e.versions=new e("versions",{character:"\\eb78"}),e.vmActive=new e("vm-active",{character:"\\eb79"}),e.vmOutline=new e("vm-outline",{character:"\\eb7a"}),e.vmRunning=new e("vm-running",{character:"\\eb7b"}),e.watch=new e("watch",{character:"\\eb7c"}),e.whitespace=new e("whitespace",{character:"\\eb7d"}),e.wholeWord=new e("whole-word",{character:"\\eb7e"}),e.window=new e("window",{character:"\\eb7f"}),e.wordWrap=new e("word-wrap",{character:"\\eb80"}),e.zoomIn=new e("zoom-in",{character:"\\eb81"}),e.zoomOut=new e("zoom-out",{character:"\\eb82"}),e.listFilter=new e("list-filter",{character:"\\eb83"}),e.listFlat=new e("list-flat",{character:"\\eb84"}),e.listSelection=new e("list-selection",{character:"\\eb85"}),e.selection=new e("selection",{character:"\\eb85"}),e.listTree=new e("list-tree",{character:"\\eb86"}),e.debugBreakpointFunctionUnverified=new e("debug-breakpoint-function-unverified",{character:"\\eb87"}),e.debugBreakpointFunction=new e("debug-breakpoint-function",{character:"\\eb88"}),e.debugBreakpointFunctionDisabled=new e("debug-breakpoint-function-disabled",{character:"\\eb88"}),e.debugStackframeActive=new e("debug-stackframe-active",{character:"\\eb89"}),e.debugStackframeDot=new e("debug-stackframe-dot",{character:"\\eb8a"}),e.debugStackframe=new e("debug-stackframe",{character:"\\eb8b"}),e.debugStackframeFocused=new e("debug-stackframe-focused",{character:"\\eb8b"}),e.debugBreakpointUnsupported=new e("debug-breakpoint-unsupported",{character:"\\eb8c"}),e.symbolString=new e("symbol-string",{character:"\\eb8d"}),e.debugReverseContinue=new e("debug-reverse-continue",{character:"\\eb8e"}),e.debugStepBack=new e("debug-step-back",{character:"\\eb8f"}),e.debugRestartFrame=new e("debug-restart-frame",{character:"\\eb90"}),e.callIncoming=new e("call-incoming",{character:"\\eb92"}),e.callOutgoing=new e("call-outgoing",{character:"\\eb93"}),e.menu=new e("menu",{character:"\\eb94"}),e.expandAll=new e("expand-all",{character:"\\eb95"}),e.feedback=new e("feedback",{character:"\\eb96"}),e.groupByRefType=new e("group-by-ref-type",{character:"\\eb97"}),e.ungroupByRefType=new e("ungroup-by-ref-type",{character:"\\eb98"}),e.account=new e("account",{character:"\\eb99"}),e.bellDot=new e("bell-dot",{character:"\\eb9a"}),e.debugConsole=new e("debug-console",{character:"\\eb9b"}),e.library=new e("library",{character:"\\eb9c"}),e.output=new e("output",{character:"\\eb9d"}),e.runAll=new e("run-all",{character:"\\eb9e"}),e.syncIgnored=new e("sync-ignored",{character:"\\eb9f"}),e.pinned=new e("pinned",{character:"\\eba0"}),e.githubInverted=new e("github-inverted",{character:"\\eba1"}),e.debugAlt=new e("debug-alt",{character:"\\eb91"}),e.serverProcess=new e("server-process",{character:"\\eba2"}),e.serverEnvironment=new e("server-environment",{character:"\\eba3"}),e.pass=new e("pass",{character:"\\eba4"}),e.stopCircle=new e("stop-circle",{character:"\\eba5"}),e.playCircle=new e("play-circle",{character:"\\eba6"}),e.record=new e("record",{character:"\\eba7"}),e.debugAltSmall=new e("debug-alt-small",{character:"\\eba8"}),e.vmConnect=new e("vm-connect",{character:"\\eba9"}),e.cloud=new e("cloud",{character:"\\ebaa"}),e.merge=new e("merge",{character:"\\ebab"})}(l||(l={}));const c=/(\\)?\$\([a-z0-9\-]+?(?:~[a-z0-9\-]*?)?\)/gi;function d(e){return e.replace(c,(e,t)=>t?e:`\\${e}`)}const u=/\\\$\([a-z0-9\-]+?(?:~[a-z0-9\-]*?)?\)/gi;function h(e){return e.replace(u,e=>`\\${e}`)}const f=/(\\)?\$\((([a-z0-9\-]+?)(?:~([a-z0-9\-]*?))?)\)/gi;function g(e){return e.replace(f,(e,t,n,i,r)=>t?`$(${n})`:`<span class="codicon codicon-${i}${r?` codicon-animation-${r}`:""}"></span>`)}const p=/(\s)?(\\)?\$\([a-z0-9\-]+?(?:~[a-z0-9\-]*?)?\)(\s)?/gi;function m(e){return-1===e.indexOf(i.a)?e:e.replace(p,(e,t,n,i)=>n?e:t||i||"")}},function(e,t,n){"use strict";var i;n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return a})),function(e){e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies",e.getServiceDependencies=function(t){return t[e.DI_DEPENDENCIES]||[]}}(i||(i={}));const r=s("instantiationService");function o(e,t,n,r){t[i.DI_TARGET]===t?t[i.DI_DEPENDENCIES].push({id:e,index:n,optional:r}):(t[i.DI_DEPENDENCIES]=[{id:e,index:n,optional:r}],t[i.DI_TARGET]=t)}function s(e){if(i.serviceIds.has(e))return i.serviceIds.get(e);const t=function(e,n,i){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");o(t,e,i,!1)};return t.toString=()=>e,i.serviceIds.set(e,t),t}function a(e){return function(t,n,i){if(3!==arguments.length)throw new Error("@optional-decorator can only be used to decorate a parameter");o(e,t,i,!0)}}},function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"h",(function(){return l})),n.d(t,"e",(function(){return c})),n.d(t,"b",(function(){return u})),n.d(t,"f",(function(){return h})),n.d(t,"a",(function(){return f})),n.d(t,"g",(function(){return p})),n.d(t,"d",(function(){return m}));var i=n(17),r=n(2),o=n(46),s=n(6);const a=Object(i.c)("themeService");function l(e){return{id:e}}var c;!function(e){e.isThemeIcon=function(e){return e&&"object"==typeof e&&"string"==typeof e.id};const t=/^\$\(([a-z.]+\/)?([a-z-~]+)\)$/i;e.fromString=function(e){const n=t.exec(e);if(!n)return;let[,i,r]=n;return i||(i="codicon/"),{id:i+r}};const n=/^(codicon\/)?([a-z-]+)(~[a-z]+)?$/i;e.asClassName=function(e){const t=n.exec(e.id);if(!t)return;let[,,i,r]=t,o=`codicon codicon-${i}`;return r&&(o+=` ${r.substr(1)}`),o}}(c||(c={}));const d="dark",u="hc";function h(e){switch(e){case d:return"vs-dark";case u:return"hc-black";default:return"vs"}}const f={ThemingContribution:"base.contributions.theming"};let g=new class{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new s.a}onColorThemeChange(e){return this.themingParticipants.push(e),this.onThemingParticipantAddedEmitter.fire(e),Object(r.h)(()=>{const t=this.themingParticipants.indexOf(e);this.themingParticipants.splice(t,1)})}getThemingParticipants(){return this.themingParticipants}};function p(e){return g.onColorThemeChange(e)}o.a.add(f.ThemingContribution,g);class m extends r.a{constructor(e){super(),this.themeService=e,this.theme=e.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(e=>this.onThemeChange(e)))}onThemeChange(e){this.theme=e,this.updateStyles()}updateStyles(){}}},function(e,t,n){"use strict";n.d(t,"i",(function(){return s})),n.d(t,"f",(function(){return a})),n.d(t,"j",(function(){return l})),n.d(t,"a",(function(){return c})),n.d(t,"l",(function(){return d})),n.d(t,"g",(function(){return u})),n.d(t,"h",(function(){return h})),n.d(t,"e",(function(){return f})),n.d(t,"c",(function(){return g})),n.d(t,"d",(function(){return p})),n.d(t,"k",(function(){return m})),n.d(t,"b",(function(){return _}));var i=n(26),r=n(15),o=n(2);function s(e){return e&&"function"==typeof e.then}function a(e){const t=new i.b,n=e(t.token),o=new Promise((e,i)=>{t.token.onCancellationRequested(()=>{i(r.a())}),Promise.resolve(n).then(n=>{t.dispose(),e(n)},e=>{t.dispose(),i(e)})});return new class{cancel(){t.cancel()}then(e,t){return o.then(e,t)}catch(e){return this.then(void 0,e)}finally(e){return o.finally(e)}}}function l(e,t,n){return Promise.race([e,new Promise(e=>t.onCancellationRequested(()=>e(n)))])}class c{constructor(e){this.defaultDelay=e,this.timeout=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(e,t=this.defaultDelay){return this.task=e,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((e,t)=>{this.doResolve=e,this.doReject=t}).then(()=>{if(this.completionPromise=null,this.doResolve=null,this.task){const e=this.task;return this.task=null,e()}})),this.timeout=setTimeout(()=>{this.timeout=null,this.doResolve&&this.doResolve(null)},t),this.completionPromise}isTriggered(){return null!==this.timeout}cancel(){this.cancelTimeout(),this.completionPromise&&(this.doReject&&this.doReject(r.a()),this.completionPromise=null)}cancelTimeout(){null!==this.timeout&&(clearTimeout(this.timeout),this.timeout=null)}dispose(){this.cancelTimeout()}}function d(e,t){return t?new Promise((n,i)=>{const o=setTimeout(n,e);t.onCancellationRequested(()=>{clearTimeout(o),i(r.a())})}):a(t=>d(e,t))}function u(e,t=0){const n=setTimeout(e,t);return Object(o.h)(()=>clearTimeout(n))}function h(e,t=(e=>!!e),n=null){let i=0;const r=e.length,o=()=>{if(i>=r)return Promise.resolve(n);const s=e[i++];return Promise.resolve(s()).then(e=>t(e)?Promise.resolve(e):o())};return o()}class f{constructor(e,t){this._token=-1,"function"==typeof e&&"number"==typeof t&&this.setIfNotSet(e,t)}dispose(){this.cancel()}cancel(){-1!==this._token&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setTimeout(()=>{this._token=-1,e()},t)}setIfNotSet(e,t){-1===this._token&&(this._token=setTimeout(()=>{this._token=-1,e()},t))}}class g{constructor(){this._token=-1}dispose(){this.cancel()}cancel(){-1!==this._token&&(clearInterval(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setInterval(()=>{e()},t)}}class p{constructor(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}isScheduled(){return-1!==this.timeoutToken}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){this.runner&&this.runner()}}let m;!function(){if("function"!=typeof requestIdleCallback||"function"!=typeof cancelIdleCallback){const e=Object.freeze({didTimeout:!0,timeRemaining:()=>15});m=t=>{const n=setTimeout(()=>t(e));let i=!1;return{dispose(){i||(i=!0,clearTimeout(n))}}}}else m=(e,t)=>{const n=requestIdleCallback(e,"number"==typeof t?{timeout:t}:void 0);let i=!1;return{dispose(){i||(i=!0,cancelIdleCallback(n))}}}}();class _{constructor(e){this._didRun=!1,this._executor=()=>{try{this._value=e()}catch(e){this._error=e}finally{this._didRun=!0}},this._handle=m(()=>this._executor())}dispose(){this._handle.dispose()}get value(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}}},function(e,t,n){"use strict";function i(e){return Array.isArray(e)}function r(e){return"string"==typeof e}function o(e){return!("object"!=typeof e||null===e||Array.isArray(e)||e instanceof RegExp||e instanceof Date)}function s(e){return"number"==typeof e&&!isNaN(e)}function a(e){return!0===e||!1===e}function l(e){return void 0===e}function c(e){return l(e)||null===e}function d(e,t){if(!e)throw new Error(t?`Unexpected type, expected '${t}'`:"Unexpected type")}function u(e){if(c(e))throw new Error("Assertion Failed: argument is undefined or null");return e}function h(e){return"function"==typeof e}function f(e,t){const n=Math.min(e.length,t.length);for(let i=0;i<n;i++)g(e[i],t[i])}function g(e,t){if(r(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(h(t)){try{if(e instanceof t)return}catch(e){}if(!c(e)&&e.constructor===t)return;if(1===t.length&&!0===t.call(void 0,e))return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function p(e){const t=[];for(const n of function(e){let t=[],n=Object.getPrototypeOf(e);for(;Object.prototype!==n;)t=t.concat(Object.getOwnPropertyNames(n)),n=Object.getPrototypeOf(n);return t}(e))"function"==typeof e[n]&&t.push(n);return t}function m(e,t){const n=e=>(function(){const n=Array.prototype.slice.call(arguments,0);return t(e,n)});let i={};for(const t of e)i[t]=n(t);return i}function _(e){return null===e?void 0:e}n.d(t,"e",(function(){return i})),n.d(t,"j",(function(){return r})),n.d(t,"i",(function(){return o})),n.d(t,"h",(function(){return s})),n.d(t,"f",(function(){return a})),n.d(t,"k",(function(){return l})),n.d(t,"l",(function(){return c})),n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return u})),n.d(t,"g",(function(){return h})),n.d(t,"m",(function(){return f})),n.d(t,"d",(function(){return p})),n.d(t,"c",(function(){return m})),n.d(t,"n",(function(){return _}))},function(e,t,n){(function(e){e.exports=function(){"use strict";var t,i;function r(){return t.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function s(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function a(e){return void 0===e}function l(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function c(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function d(e,t){var n,i=[];for(n=0;n<e.length;++n)i.push(t(e[n],n));return i}function u(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function h(e,t){for(var n in t)u(t,n)&&(e[n]=t[n]);return u(t,"toString")&&(e.toString=t.toString),u(t,"valueOf")&&(e.valueOf=t.valueOf),e}function f(e,t,n,i){return It(e,t,n,i,!0).utc()}function g(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function p(e){if(null==e._isValid){var t=g(e),n=i.call(t.parsedDateParts,(function(e){return null!=e})),r=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return r;e._isValid=r}return e._isValid}function m(e){var t=f(NaN);return null!=e?h(g(t),e):g(t).userInvalidated=!0,t}i=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,i=0;i<n;i++)if(i in t&&e.call(this,t[i],i,t))return!0;return!1};var _=r.momentProperties=[];function b(e,t){var n,i,r;if(a(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),a(t._i)||(e._i=t._i),a(t._f)||(e._f=t._f),a(t._l)||(e._l=t._l),a(t._strict)||(e._strict=t._strict),a(t._tzm)||(e._tzm=t._tzm),a(t._isUTC)||(e._isUTC=t._isUTC),a(t._offset)||(e._offset=t._offset),a(t._pf)||(e._pf=g(t)),a(t._locale)||(e._locale=t._locale),_.length>0)for(n=0;n<_.length;n++)a(r=t[i=_[n]])||(e[i]=r);return e}var v=!1;function y(e){b(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===v&&(v=!0,r.updateOffset(this),v=!1)}function w(e){return e instanceof y||null!=e&&null!=e._isAMomentObject}function C(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function S(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=C(t)),n}function k(e,t,n){var i,r=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),s=0;for(i=0;i<r;i++)(n&&e[i]!==t[i]||!n&&S(e[i])!==S(t[i]))&&s++;return s+o}function x(e){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function L(e,t){var n=!0;return h((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){for(var i,o=[],s=0;s<arguments.length;s++){if(i="","object"==typeof arguments[s]){for(var a in i+="\n["+s+"] ",arguments[0])i+=a+": "+arguments[0][a]+", ";i=i.slice(0,-2)}else i=arguments[s];o.push(i)}x(e+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var M,D={};function E(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),D[e]||(x(t),D[e]=!0)}function T(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function O(e,t){var n,i=h({},e);for(n in t)u(t,n)&&(s(e[n])&&s(t[n])?(i[n]={},h(i[n],e[n]),h(i[n],t[n])):null!=t[n]?i[n]=t[n]:delete i[n]);for(n in e)u(e,n)&&!u(t,n)&&s(e[n])&&(i[n]=h({},i[n]));return i}function N(e){null!=e&&this.set(e)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,M=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)u(e,t)&&n.push(t);return n};var I={};function A(e,t){var n=e.toLowerCase();I[n]=I[n+"s"]=I[t]=e}function R(e){return"string"==typeof e?I[e]||I[e.toLowerCase()]:void 0}function P(e){var t,n,i={};for(n in e)u(e,n)&&(t=R(n))&&(i[t]=e[n]);return i}var j={};function F(e,t){j[e]=t}function B(e,t,n){var i=""+Math.abs(e),r=t-i.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}var W=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,H=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Y={},V={};function z(e,t,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),e&&(V[e]=r),t&&(V[t[0]]=function(){return B(r.apply(this,arguments),t[1],t[2])}),n&&(V[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function U(e,t){return e.isValid()?(t=$(t,e.localeData()),Y[t]=Y[t]||function(e){var t,n,i,r=e.match(W);for(t=0,n=r.length;t<n;t++)V[r[t]]?r[t]=V[r[t]]:r[t]=(i=r[t]).match(/\[[\s\S]/)?i.replace(/^\[|\]$/g,""):i.replace(/\\/g,"");return function(t){var i,o="";for(i=0;i<n;i++)o+=T(r[i])?r[i].call(t,e):r[i];return o}}(t),Y[t](e)):e.localeData().invalidDate()}function $(e,t){var n=5;function i(e){return t.longDateFormat(e)||e}for(H.lastIndex=0;n>=0&&H.test(e);)e=e.replace(H,i),H.lastIndex=0,n-=1;return e}var q=/\d/,K=/\d\d/,G=/\d{3}/,Z=/\d{4}/,J=/[+-]?\d{6}/,X=/\d\d?/,Q=/\d\d\d\d?/,ee=/\d\d\d\d\d\d?/,te=/\d{1,3}/,ne=/\d{1,4}/,ie=/[+-]?\d{1,6}/,re=/\d+/,oe=/[+-]?\d+/,se=/Z|[+-]\d\d:?\d\d/gi,ae=/Z|[+-]\d\d(?::?\d\d)?/gi,le=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ce={};function de(e,t,n){ce[e]=T(t)?t:function(e,i){return e&&n?n:t}}function ue(e,t){return u(ce,e)?ce[e](t._strict,t._locale):new RegExp(he(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,i,r){return t||n||i||r}))))}function he(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var fe={};function ge(e,t){var n,i=t;for("string"==typeof e&&(e=[e]),l(t)&&(i=function(e,n){n[t]=S(e)}),n=0;n<e.length;n++)fe[e[n]]=i}function pe(e,t){ge(e,(function(e,n,i,r){i._w=i._w||{},t(e,i._w,i,r)}))}function me(e,t,n){null!=t&&u(fe,e)&&fe[e](t,n._a,n,e)}var _e=0,be=1,ve=2,ye=3,we=4,Ce=5,Se=6,ke=7,xe=8;function Le(e){return Me(e)?366:365}function Me(e){return e%4==0&&e%100!=0||e%400==0}z("Y",0,0,(function(){var e=this.year();return e<=9999?""+e:"+"+e})),z(0,["YY",2],0,(function(){return this.year()%100})),z(0,["YYYY",4],0,"year"),z(0,["YYYYY",5],0,"year"),z(0,["YYYYYY",6,!0],0,"year"),A("year","y"),F("year",1),de("Y",oe),de("YY",X,K),de("YYYY",ne,Z),de("YYYYY",ie,J),de("YYYYYY",ie,J),ge(["YYYYY","YYYYYY"],_e),ge("YYYY",(function(e,t){t[_e]=2===e.length?r.parseTwoDigitYear(e):S(e)})),ge("YY",(function(e,t){t[_e]=r.parseTwoDigitYear(e)})),ge("Y",(function(e,t){t[_e]=parseInt(e,10)})),r.parseTwoDigitYear=function(e){return S(e)+(S(e)>68?1900:2e3)};var De,Ee=Te("FullYear",!0);function Te(e,t){return function(n){return null!=n?(Ne(this,e,n),r.updateOffset(this,t),this):Oe(this,e)}}function Oe(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Ne(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&Me(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Ie(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Ie(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,i=(t%(n=12)+n)%n;return e+=(t-i)/12,1===i?Me(e)?29:28:31-i%7%2}De=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},z("M",["MM",2],"Mo",(function(){return this.month()+1})),z("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),z("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),A("month","M"),F("month",8),de("M",X),de("MM",X,K),de("MMM",(function(e,t){return t.monthsShortRegex(e)})),de("MMMM",(function(e,t){return t.monthsRegex(e)})),ge(["M","MM"],(function(e,t){t[be]=S(e)-1})),ge(["MMM","MMMM"],(function(e,t,n,i){var r=n._locale.monthsParse(e,i,n._strict);null!=r?t[be]=r:g(n).invalidMonth=e}));var Ae=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Re="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Pe="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function je(e,t,n){var i,r,o,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)o=f([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(r=De.call(this._shortMonthsParse,s))?r:null:-1!==(r=De.call(this._longMonthsParse,s))?r:null:"MMM"===t?-1!==(r=De.call(this._shortMonthsParse,s))?r:-1!==(r=De.call(this._longMonthsParse,s))?r:null:-1!==(r=De.call(this._longMonthsParse,s))?r:-1!==(r=De.call(this._shortMonthsParse,s))?r:null}function Fe(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=S(t);else if(!l(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Ie(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Be(e){return null!=e?(Fe(this,e),r.updateOffset(this,!0),this):Oe(this,"Month")}var We=le,He=le;function Ye(){function e(e,t){return t.length-e.length}var t,n,i=[],r=[],o=[];for(t=0;t<12;t++)n=f([2e3,t]),i.push(this.monthsShort(n,"")),r.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(i.sort(e),r.sort(e),o.sort(e),t=0;t<12;t++)i[t]=he(i[t]),r[t]=he(r[t]);for(t=0;t<24;t++)o[t]=he(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Ve(e,t,n,i,r,o,s){var a;return e<100&&e>=0?(a=new Date(e+400,t,n,i,r,o,s),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,n,i,r,o,s),a}function ze(e){var t;if(e<100&&e>=0){var n=Array.prototype.slice.call(arguments);n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)}else t=new Date(Date.UTC.apply(null,arguments));return t}function Ue(e,t,n){var i=7+t-n;return-(7+ze(e,0,i).getUTCDay()-t)%7+i-1}function $e(e,t,n,i,r){var o,s,a=1+7*(t-1)+(7+n-i)%7+Ue(e,i,r);return a<=0?s=Le(o=e-1)+a:a>Le(e)?(o=e+1,s=a-Le(e)):(o=e,s=a),{year:o,dayOfYear:s}}function qe(e,t,n){var i,r,o=Ue(e.year(),t,n),s=Math.floor((e.dayOfYear()-o-1)/7)+1;return s<1?i=s+Ke(r=e.year()-1,t,n):s>Ke(e.year(),t,n)?(i=s-Ke(e.year(),t,n),r=e.year()+1):(r=e.year(),i=s),{week:i,year:r}}function Ke(e,t,n){var i=Ue(e,t,n),r=Ue(e+1,t,n);return(Le(e)-i+r)/7}function Ge(e,t){return e.slice(t,7).concat(e.slice(0,t))}z("w",["ww",2],"wo","week"),z("W",["WW",2],"Wo","isoWeek"),A("week","w"),A("isoWeek","W"),F("week",5),F("isoWeek",5),de("w",X),de("ww",X,K),de("W",X),de("WW",X,K),pe(["w","ww","W","WW"],(function(e,t,n,i){t[i.substr(0,1)]=S(e)})),z("d",0,"do","day"),z("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),z("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),z("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),z("e",0,0,"weekday"),z("E",0,0,"isoWeekday"),A("day","d"),A("weekday","e"),A("isoWeekday","E"),F("day",11),F("weekday",11),F("isoWeekday",11),de("d",X),de("e",X),de("E",X),de("dd",(function(e,t){return t.weekdaysMinRegex(e)})),de("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),de("dddd",(function(e,t){return t.weekdaysRegex(e)})),pe(["dd","ddd","dddd"],(function(e,t,n,i){var r=n._locale.weekdaysParse(e,i,n._strict);null!=r?t.d=r:g(n).invalidWeekday=e})),pe(["d","e","E"],(function(e,t,n,i){t[i]=S(e)}));var Ze="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Je="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Xe="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function Qe(e,t,n){var i,r,o,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=f([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(r=De.call(this._weekdaysParse,s))?r:null:"ddd"===t?-1!==(r=De.call(this._shortWeekdaysParse,s))?r:null:-1!==(r=De.call(this._minWeekdaysParse,s))?r:null:"dddd"===t?-1!==(r=De.call(this._weekdaysParse,s))?r:-1!==(r=De.call(this._shortWeekdaysParse,s))?r:-1!==(r=De.call(this._minWeekdaysParse,s))?r:null:"ddd"===t?-1!==(r=De.call(this._shortWeekdaysParse,s))?r:-1!==(r=De.call(this._weekdaysParse,s))?r:-1!==(r=De.call(this._minWeekdaysParse,s))?r:null:-1!==(r=De.call(this._minWeekdaysParse,s))?r:-1!==(r=De.call(this._weekdaysParse,s))?r:-1!==(r=De.call(this._shortWeekdaysParse,s))?r:null}var et=le,tt=le,nt=le;function it(){function e(e,t){return t.length-e.length}var t,n,i,r,o,s=[],a=[],l=[],c=[];for(t=0;t<7;t++)n=f([2e3,1]).day(t),i=this.weekdaysMin(n,""),r=this.weekdaysShort(n,""),o=this.weekdays(n,""),s.push(i),a.push(r),l.push(o),c.push(i),c.push(r),c.push(o);for(s.sort(e),a.sort(e),l.sort(e),c.sort(e),t=0;t<7;t++)a[t]=he(a[t]),l[t]=he(l[t]),c[t]=he(c[t]);this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function rt(){return this.hours()%12||12}function ot(e,t){z(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function st(e,t){return t._meridiemParse}z("H",["HH",2],0,"hour"),z("h",["hh",2],0,rt),z("k",["kk",2],0,(function(){return this.hours()||24})),z("hmm",0,0,(function(){return""+rt.apply(this)+B(this.minutes(),2)})),z("hmmss",0,0,(function(){return""+rt.apply(this)+B(this.minutes(),2)+B(this.seconds(),2)})),z("Hmm",0,0,(function(){return""+this.hours()+B(this.minutes(),2)})),z("Hmmss",0,0,(function(){return""+this.hours()+B(this.minutes(),2)+B(this.seconds(),2)})),ot("a",!0),ot("A",!1),A("hour","h"),F("hour",13),de("a",st),de("A",st),de("H",X),de("h",X),de("k",X),de("HH",X,K),de("hh",X,K),de("kk",X,K),de("hmm",Q),de("hmmss",ee),de("Hmm",Q),de("Hmmss",ee),ge(["H","HH"],ye),ge(["k","kk"],(function(e,t,n){var i=S(e);t[ye]=24===i?0:i})),ge(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),ge(["h","hh"],(function(e,t,n){t[ye]=S(e),g(n).bigHour=!0})),ge("hmm",(function(e,t,n){var i=e.length-2;t[ye]=S(e.substr(0,i)),t[we]=S(e.substr(i)),g(n).bigHour=!0})),ge("hmmss",(function(e,t,n){var i=e.length-4,r=e.length-2;t[ye]=S(e.substr(0,i)),t[we]=S(e.substr(i,2)),t[Ce]=S(e.substr(r)),g(n).bigHour=!0})),ge("Hmm",(function(e,t,n){var i=e.length-2;t[ye]=S(e.substr(0,i)),t[we]=S(e.substr(i))})),ge("Hmmss",(function(e,t,n){var i=e.length-4,r=e.length-2;t[ye]=S(e.substr(0,i)),t[we]=S(e.substr(i,2)),t[Ce]=S(e.substr(r))}));var at,lt=Te("Hours",!0),ct={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Re,monthsShort:Pe,week:{dow:0,doy:6},weekdays:Ze,weekdaysMin:Xe,weekdaysShort:Je,meridiemParse:/[ap]\.?m?\.?/i},dt={},ut={};function ht(e){return e?e.toLowerCase().replace("_","-"):e}function ft(t){var i=null;if(!dt[t]&&void 0!==e&&e&&e.exports)try{i=at._abbr,n(895)("./"+t),gt(i)}catch(e){}return dt[t]}function gt(e,t){var n;return e&&((n=a(t)?mt(e):pt(e,t))?at=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),at._abbr}function pt(e,t){if(null!==t){var n,i=ct;if(t.abbr=e,null!=dt[e])E("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=dt[e]._config;else if(null!=t.parentLocale)if(null!=dt[t.parentLocale])i=dt[t.parentLocale]._config;else{if(null==(n=ft(t.parentLocale)))return ut[t.parentLocale]||(ut[t.parentLocale]=[]),ut[t.parentLocale].push({name:e,config:t}),null;i=n._config}return dt[e]=new N(O(i,t)),ut[e]&&ut[e].forEach((function(e){pt(e.name,e.config)})),gt(e),dt[e]}return delete dt[e],null}function mt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return at;if(!o(e)){if(t=ft(e))return t;e=[e]}return function(e){for(var t,n,i,r,o=0;o<e.length;){for(t=(r=ht(e[o]).split("-")).length,n=(n=ht(e[o+1]))?n.split("-"):null;t>0;){if(i=ft(r.slice(0,t).join("-")))return i;if(n&&n.length>=t&&k(r,n,!0)>=t-1)break;t--}o++}return at}(e)}function _t(e){var t,n=e._a;return n&&-2===g(e).overflow&&(t=n[be]<0||n[be]>11?be:n[ve]<1||n[ve]>Ie(n[_e],n[be])?ve:n[ye]<0||n[ye]>24||24===n[ye]&&(0!==n[we]||0!==n[Ce]||0!==n[Se])?ye:n[we]<0||n[we]>59?we:n[Ce]<0||n[Ce]>59?Ce:n[Se]<0||n[Se]>999?Se:-1,g(e)._overflowDayOfYear&&(t<_e||t>ve)&&(t=ve),g(e)._overflowWeeks&&-1===t&&(t=ke),g(e)._overflowWeekday&&-1===t&&(t=xe),g(e).overflow=t),e}function bt(e,t,n){return null!=e?e:null!=t?t:n}function vt(e){var t,n,i,o,s,a=[];if(!e._d){for(i=function(e){var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[ve]&&null==e._a[be]&&function(e){var t,n,i,r,o,s,a,l;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)o=1,s=4,n=bt(t.GG,e._a[_e],qe(At(),1,4).year),i=bt(t.W,1),((r=bt(t.E,1))<1||r>7)&&(l=!0);else{o=e._locale._week.dow,s=e._locale._week.doy;var c=qe(At(),o,s);n=bt(t.gg,e._a[_e],c.year),i=bt(t.w,c.week),null!=t.d?((r=t.d)<0||r>6)&&(l=!0):null!=t.e?(r=t.e+o,(t.e<0||t.e>6)&&(l=!0)):r=o}i<1||i>Ke(n,o,s)?g(e)._overflowWeeks=!0:null!=l?g(e)._overflowWeekday=!0:(a=$e(n,i,r,o,s),e._a[_e]=a.year,e._dayOfYear=a.dayOfYear)}(e),null!=e._dayOfYear&&(s=bt(e._a[_e],i[_e]),(e._dayOfYear>Le(s)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),n=ze(s,0,e._dayOfYear),e._a[be]=n.getUTCMonth(),e._a[ve]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=i[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[ye]&&0===e._a[we]&&0===e._a[Ce]&&0===e._a[Se]&&(e._nextDay=!0,e._a[ye]=0),e._d=(e._useUTC?ze:Ve).apply(null,a),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ye]=24),e._w&&void 0!==e._w.d&&e._w.d!==o&&(g(e).weekdayMismatch=!0)}}var yt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,wt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ct=/Z|[+-]\d\d(?::?\d\d)?/,St=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],kt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],xt=/^\/?Date\((\-?\d+)/i;function Lt(e){var t,n,i,r,o,s,a=e._i,l=yt.exec(a)||wt.exec(a);if(l){for(g(e).iso=!0,t=0,n=St.length;t<n;t++)if(St[t][1].exec(l[1])){r=St[t][0],i=!1!==St[t][2];break}if(null==r)return void(e._isValid=!1);if(l[3]){for(t=0,n=kt.length;t<n;t++)if(kt[t][1].exec(l[3])){o=(l[2]||" ")+kt[t][0];break}if(null==o)return void(e._isValid=!1)}if(!i&&null!=o)return void(e._isValid=!1);if(l[4]){if(!Ct.exec(l[4]))return void(e._isValid=!1);s="Z"}e._f=r+(o||"")+(s||""),Ot(e)}else e._isValid=!1}var Mt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;function Dt(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}var Et={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Tt(e){var t,n,i,r,o,s,a,l=Mt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(l){var c=(t=l[4],n=l[3],i=l[2],r=l[5],o=l[6],s=l[7],a=[Dt(t),Pe.indexOf(n),parseInt(i,10),parseInt(r,10),parseInt(o,10)],s&&a.push(parseInt(s,10)),a);if(!function(e,t,n){return!e||Je.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(g(n).weekdayMismatch=!0,n._isValid=!1,!1)}(l[1],c,e))return;e._a=c,e._tzm=function(e,t,n){if(e)return Et[e];if(t)return 0;var i=parseInt(n,10),r=i%100;return(i-r)/100*60+r}(l[8],l[9],l[10]),e._d=ze.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0}else e._isValid=!1}function Ot(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],g(e).empty=!0;var t,n,i,o,s,a=""+e._i,l=a.length,c=0;for(i=$(e._f,e._locale).match(W)||[],t=0;t<i.length;t++)o=i[t],(n=(a.match(ue(o,e))||[])[0])&&((s=a.substr(0,a.indexOf(n))).length>0&&g(e).unusedInput.push(s),a=a.slice(a.indexOf(n)+n.length),c+=n.length),V[o]?(n?g(e).empty=!1:g(e).unusedTokens.push(o),me(o,n,e)):e._strict&&!n&&g(e).unusedTokens.push(o);g(e).charsLeftOver=l-c,a.length>0&&g(e).unusedInput.push(a),e._a[ye]<=12&&!0===g(e).bigHour&&e._a[ye]>0&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,e._a[ye]=function(e,t,n){var i;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((i=e.isPM(n))&&t<12&&(t+=12),i||12!==t||(t=0),t):t}(e._locale,e._a[ye],e._meridiem),vt(e),_t(e)}else Tt(e);else Lt(e)}function Nt(e){var t=e._i,n=e._f;return e._locale=e._locale||mt(e._l),null===t||void 0===n&&""===t?m({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new y(_t(t)):(c(t)?e._d=t:o(n)?function(e){var t,n,i,r,o;if(0===e._f.length)return g(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;r<e._f.length;r++)o=0,t=b({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],Ot(t),p(t)&&(o+=g(t).charsLeftOver,o+=10*g(t).unusedTokens.length,g(t).score=o,(null==i||o<i)&&(i=o,n=t));h(e,n||t)}(e):n?Ot(e):function(e){var t=e._i;a(t)?e._d=new Date(r.now()):c(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=xt.exec(e._i);null===t?(Lt(e),!1===e._isValid&&(delete e._isValid,Tt(e),!1===e._isValid&&(delete e._isValid,r.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):o(t)?(e._a=d(t.slice(0),(function(e){return parseInt(e,10)})),vt(e)):s(t)?function(e){if(!e._d){var t=P(e._i);e._a=d([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),vt(e)}}(e):l(t)?e._d=new Date(t):r.createFromInputFallback(e)}(e),p(e)||(e._d=null),e))}function It(e,t,n,i,r){var a,l={};return!0!==n&&!1!==n||(i=n,n=void 0),(s(e)&&function(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0}(e)||o(e)&&0===e.length)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=r,l._l=n,l._i=e,l._f=t,l._strict=i,(a=new y(_t(Nt(l))))._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function At(e,t,n,i){return It(e,t,n,i,!1)}r.createFromInputFallback=L("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),r.ISO_8601=function(){},r.RFC_2822=function(){};var Rt=L("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=At.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:m()})),Pt=L("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=At.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:m()}));function jt(e,t){var n,i;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return At();for(n=t[0],i=1;i<t.length;++i)t[i].isValid()&&!t[i][e](n)||(n=t[i]);return n}var Ft=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Bt(e){var t=P(e),n=t.year||0,i=t.quarter||0,r=t.month||0,o=t.week||t.isoWeek||0,s=t.day||0,a=t.hour||0,l=t.minute||0,c=t.second||0,d=t.millisecond||0;this._isValid=function(e){for(var t in e)if(-1===De.call(Ft,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,i=0;i<Ft.length;++i)if(e[Ft[i]]){if(n)return!1;parseFloat(e[Ft[i]])!==S(e[Ft[i]])&&(n=!0)}return!0}(t),this._milliseconds=+d+1e3*c+6e4*l+1e3*a*60*60,this._days=+s+7*o,this._months=+r+3*i+12*n,this._data={},this._locale=mt(),this._bubble()}function Wt(e){return e instanceof Bt}function Ht(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Yt(e,t){z(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+B(~~(e/60),2)+t+B(~~e%60,2)}))}Yt("Z",":"),Yt("ZZ",""),de("Z",ae),de("ZZ",ae),ge(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=zt(ae,e)}));var Vt=/([\+\-]|\d\d)/gi;function zt(e,t){var n=(t||"").match(e);if(null===n)return null;var i=((n[n.length-1]||[])+"").match(Vt)||["-",0,0],r=60*i[1]+S(i[2]);return 0===r?0:"+"===i[0]?r:-r}function Ut(e,t){var n,i;return t._isUTC?(n=t.clone(),i=(w(e)||c(e)?e.valueOf():At(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),r.updateOffset(n,!1),n):At(e).local()}function $t(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function qt(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Kt=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Gt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Zt(e,t){var n,i,r,o,s,a,c=e,d=null;return Wt(e)?c={ms:e._milliseconds,d:e._days,M:e._months}:l(e)?(c={},t?c[t]=e:c.milliseconds=e):(d=Kt.exec(e))?(n="-"===d[1]?-1:1,c={y:0,d:S(d[ve])*n,h:S(d[ye])*n,m:S(d[we])*n,s:S(d[Ce])*n,ms:S(Ht(1e3*d[Se]))*n}):(d=Gt.exec(e))?(n="-"===d[1]?-1:1,c={y:Jt(d[2],n),M:Jt(d[3],n),w:Jt(d[4],n),d:Jt(d[5],n),h:Jt(d[6],n),m:Jt(d[7],n),s:Jt(d[8],n)}):null==c?c={}:"object"==typeof c&&("from"in c||"to"in c)&&(o=At(c.from),s=At(c.to),r=o.isValid()&&s.isValid()?(s=Ut(s,o),o.isBefore(s)?a=Xt(o,s):((a=Xt(s,o)).milliseconds=-a.milliseconds,a.months=-a.months),a):{milliseconds:0,months:0},(c={}).ms=r.milliseconds,c.M=r.months),i=new Bt(c),Wt(e)&&u(e,"_locale")&&(i._locale=e._locale),i}function Jt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Xt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Qt(e,t){return function(n,i){var r;return null===i||isNaN(+i)||(E(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=n,n=i,i=r),en(this,Zt(n="string"==typeof n?+n:n,i),e),this}}function en(e,t,n,i){var o=t._milliseconds,s=Ht(t._days),a=Ht(t._months);e.isValid()&&(i=null==i||i,a&&Fe(e,Oe(e,"Month")+a*n),s&&Ne(e,"Date",Oe(e,"Date")+s*n),o&&e._d.setTime(e._d.valueOf()+o*n),i&&r.updateOffset(e,s||a))}Zt.fn=Bt.prototype,Zt.invalid=function(){return Zt(NaN)};var tn=Qt(1,"add"),nn=Qt(-1,"subtract");function rn(e,t){var n=12*(t.year()-e.year())+(t.month()-e.month()),i=e.clone().add(n,"months");return-(n+(t-i<0?(t-i)/(i-e.clone().add(n-1,"months")):(t-i)/(e.clone().add(n+1,"months")-i)))||0}function on(e){var t;return void 0===e?this._locale._abbr:(null!=(t=mt(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var sn=L("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function an(){return this._locale}var ln=1e3,cn=60*ln,dn=60*cn,un=3506328*dn;function hn(e,t){return(e%t+t)%t}function fn(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-un:new Date(e,t,n).valueOf()}function gn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-un:Date.UTC(e,t,n)}function pn(e,t){z(0,[e,e.length],0,t)}function mn(e,t,n,i,r){var o;return null==e?qe(this,i,r).year:(t>(o=Ke(e,i,r))&&(t=o),_n.call(this,e,t,n,i,r))}function _n(e,t,n,i,r){var o=$e(e,t,n,i,r),s=ze(o.year,0,o.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}z(0,["gg",2],0,(function(){return this.weekYear()%100})),z(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),pn("gggg","weekYear"),pn("ggggg","weekYear"),pn("GGGG","isoWeekYear"),pn("GGGGG","isoWeekYear"),A("weekYear","gg"),A("isoWeekYear","GG"),F("weekYear",1),F("isoWeekYear",1),de("G",oe),de("g",oe),de("GG",X,K),de("gg",X,K),de("GGGG",ne,Z),de("gggg",ne,Z),de("GGGGG",ie,J),de("ggggg",ie,J),pe(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,i){t[i.substr(0,2)]=S(e)})),pe(["gg","GG"],(function(e,t,n,i){t[i]=r.parseTwoDigitYear(e)})),z("Q",0,"Qo","quarter"),A("quarter","Q"),F("quarter",7),de("Q",q),ge("Q",(function(e,t){t[be]=3*(S(e)-1)})),z("D",["DD",2],"Do","date"),A("date","D"),F("date",9),de("D",X),de("DD",X,K),de("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),ge(["D","DD"],ve),ge("Do",(function(e,t){t[ve]=S(e.match(X)[0])}));var bn=Te("Date",!0);z("DDD",["DDDD",3],"DDDo","dayOfYear"),A("dayOfYear","DDD"),F("dayOfYear",4),de("DDD",te),de("DDDD",G),ge(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=S(e)})),z("m",["mm",2],0,"minute"),A("minute","m"),F("minute",14),de("m",X),de("mm",X,K),ge(["m","mm"],we);var vn=Te("Minutes",!1);z("s",["ss",2],0,"second"),A("second","s"),F("second",15),de("s",X),de("ss",X,K),ge(["s","ss"],Ce);var yn,wn=Te("Seconds",!1);for(z("S",0,0,(function(){return~~(this.millisecond()/100)})),z(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),z(0,["SSS",3],0,"millisecond"),z(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),z(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),z(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),z(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),z(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),z(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),A("millisecond","ms"),F("millisecond",16),de("S",te,q),de("SS",te,K),de("SSS",te,G),yn="SSSS";yn.length<=9;yn+="S")de(yn,re);function Cn(e,t){t[Se]=S(1e3*("0."+e))}for(yn="S";yn.length<=9;yn+="S")ge(yn,Cn);var Sn=Te("Milliseconds",!1);z("z",0,0,"zoneAbbr"),z("zz",0,0,"zoneName");var kn=y.prototype;function xn(e){return e}kn.add=tn,kn.calendar=function(e,t){var n=e||At(),i=Ut(n,this).startOf("day"),o=r.calendarFormat(this,i)||"sameElse",s=t&&(T(t[o])?t[o].call(this,n):t[o]);return this.format(s||this.localeData().calendar(o,this,At(n)))},kn.clone=function(){return new y(this)},kn.diff=function(e,t,n){var i,r,o;if(!this.isValid())return NaN;if(!(i=Ut(e,this)).isValid())return NaN;switch(r=6e4*(i.utcOffset()-this.utcOffset()),t=R(t)){case"year":o=rn(this,i)/12;break;case"month":o=rn(this,i);break;case"quarter":o=rn(this,i)/3;break;case"second":o=(this-i)/1e3;break;case"minute":o=(this-i)/6e4;break;case"hour":o=(this-i)/36e5;break;case"day":o=(this-i-r)/864e5;break;case"week":o=(this-i-r)/6048e5;break;default:o=this-i}return n?o:C(o)},kn.endOf=function(e){var t;if(void 0===(e=R(e))||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?gn:fn;switch(e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=dn-hn(t+(this._isUTC?0:this.utcOffset()*cn),dn)-1;break;case"minute":t=this._d.valueOf(),t+=cn-hn(t,cn)-1;break;case"second":t=this._d.valueOf(),t+=ln-hn(t,ln)-1}return this._d.setTime(t),r.updateOffset(this,!0),this},kn.format=function(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=U(this,e);return this.localeData().postformat(t)},kn.from=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||At(e).isValid())?Zt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},kn.fromNow=function(e){return this.from(At(),e)},kn.to=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||At(e).isValid())?Zt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},kn.toNow=function(e){return this.to(At(),e)},kn.get=function(e){return T(this[e=R(e)])?this[e]():this},kn.invalidAt=function(){return g(this).overflow},kn.isAfter=function(e,t){var n=w(e)?e:At(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=R(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},kn.isBefore=function(e,t){var n=w(e)?e:At(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=R(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},kn.isBetween=function(e,t,n,i){var r=w(e)?e:At(e),o=w(t)?t:At(t);return!!(this.isValid()&&r.isValid()&&o.isValid())&&("("===(i=i||"()")[0]?this.isAfter(r,n):!this.isBefore(r,n))&&(")"===i[1]?this.isBefore(o,n):!this.isAfter(o,n))},kn.isSame=function(e,t){var n,i=w(e)?e:At(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=R(t)||"millisecond")?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},kn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},kn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},kn.isValid=function(){return p(this)},kn.lang=sn,kn.locale=on,kn.localeData=an,kn.max=Pt,kn.min=Rt,kn.parsingFlags=function(){return h({},g(this))},kn.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t=[];for(var n in e)t.push({unit:n,priority:j[n]});return t.sort((function(e,t){return e.priority-t.priority})),t}(e=P(e)),i=0;i<n.length;i++)this[n[i].unit](e[n[i].unit]);else if(T(this[e=R(e)]))return this[e](t);return this},kn.startOf=function(e){var t;if(void 0===(e=R(e))||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?gn:fn;switch(e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=hn(t+(this._isUTC?0:this.utcOffset()*cn),dn);break;case"minute":t=this._d.valueOf(),t-=hn(t,cn);break;case"second":t=this._d.valueOf(),t-=hn(t,ln)}return this._d.setTime(t),r.updateOffset(this,!0),this},kn.subtract=nn,kn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},kn.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},kn.toDate=function(){return new Date(this.valueOf())},kn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?U(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):T(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",U(n,"Z")):U(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},kn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r=t+'[")]';return this.format(n+i+"-MM-DD[T]HH:mm:ss.SSS"+r)},kn.toJSON=function(){return this.isValid()?this.toISOString():null},kn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},kn.unix=function(){return Math.floor(this.valueOf()/1e3)},kn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},kn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},kn.year=Ee,kn.isLeapYear=function(){return Me(this.year())},kn.weekYear=function(e){return mn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},kn.isoWeekYear=function(e){return mn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},kn.quarter=kn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},kn.month=Be,kn.daysInMonth=function(){return Ie(this.year(),this.month())},kn.week=kn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},kn.isoWeek=kn.isoWeeks=function(e){var t=qe(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},kn.weeksInYear=function(){var e=this.localeData()._week;return Ke(this.year(),e.dow,e.doy)},kn.isoWeeksInYear=function(){return Ke(this.year(),1,4)},kn.date=bn,kn.day=kn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},kn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},kn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},kn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},kn.hour=kn.hours=lt,kn.minute=kn.minutes=vn,kn.second=kn.seconds=wn,kn.millisecond=kn.milliseconds=Sn,kn.utcOffset=function(e,t,n){var i,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=zt(ae,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=$t(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),o!==e&&(!t||this._changeInProgress?en(this,Zt(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:$t(this)},kn.utc=function(e){return this.utcOffset(0,e)},kn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract($t(this),"m")),this},kn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=zt(se,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},kn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?At(e).utcOffset():0,(this.utcOffset()-e)%60==0)},kn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},kn.isLocal=function(){return!!this.isValid()&&!this._isUTC},kn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},kn.isUtc=qt,kn.isUTC=qt,kn.zoneAbbr=function(){return this._isUTC?"UTC":""},kn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},kn.dates=L("dates accessor is deprecated. Use date instead.",bn),kn.months=L("months accessor is deprecated. Use month instead",Be),kn.years=L("years accessor is deprecated. Use year instead",Ee),kn.zone=L("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),kn.isDSTShifted=L("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!a(this._isDSTShifted))return this._isDSTShifted;var e={};if(b(e,this),(e=Nt(e))._a){var t=e._isUTC?f(e._a):At(e._a);this._isDSTShifted=this.isValid()&&k(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}));var Ln=N.prototype;function Mn(e,t,n,i){var r=mt(),o=f().set(i,t);return r[n](o,e)}function Dn(e,t,n){if(l(e)&&(t=e,e=void 0),e=e||"",null!=t)return Mn(e,t,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=Mn(e,i,n,"month");return r}function En(e,t,n,i){"boolean"==typeof e?(l(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,l(t)&&(n=t,t=void 0),t=t||"");var r,o=mt(),s=e?o._week.dow:0;if(null!=n)return Mn(t,(n+s)%7,i,"day");var a=[];for(r=0;r<7;r++)a[r]=Mn(t,(r+s)%7,i,"day");return a}Ln.calendar=function(e,t,n){var i=this._calendar[e]||this._calendar.sameElse;return T(i)?i.call(t,n):i},Ln.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,(function(e){return e.slice(1)})),this._longDateFormat[e])},Ln.invalidDate=function(){return this._invalidDate},Ln.ordinal=function(e){return this._ordinal.replace("%d",e)},Ln.preparse=xn,Ln.postformat=xn,Ln.relativeTime=function(e,t,n,i){var r=this._relativeTime[n];return T(r)?r(e,t,n,i):r.replace(/%d/i,e)},Ln.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return T(n)?n(t):n.replace(/%s/i,t)},Ln.set=function(e){var t,n;for(n in e)T(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Ln.months=function(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ae).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone},Ln.monthsShort=function(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ae.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Ln.monthsParse=function(e,t,n){var i,r,o;if(this._monthsParseExact)return je.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=f([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(o="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}},Ln.monthsRegex=function(e){return this._monthsParseExact?(u(this,"_monthsRegex")||Ye.call(this),e?this._monthsStrictRegex:this._monthsRegex):(u(this,"_monthsRegex")||(this._monthsRegex=He),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},Ln.monthsShortRegex=function(e){return this._monthsParseExact?(u(this,"_monthsRegex")||Ye.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(u(this,"_monthsShortRegex")||(this._monthsShortRegex=We),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},Ln.week=function(e){return qe(e,this._week.dow,this._week.doy).week},Ln.firstDayOfYear=function(){return this._week.doy},Ln.firstDayOfWeek=function(){return this._week.dow},Ln.weekdays=function(e,t){var n=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Ge(n,this._week.dow):e?n[e.day()]:n},Ln.weekdaysMin=function(e){return!0===e?Ge(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},Ln.weekdaysShort=function(e){return!0===e?Ge(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},Ln.weekdaysParse=function(e,t,n){var i,r,o;if(this._weekdaysParseExact)return Qe.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=f([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}},Ln.weekdaysRegex=function(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||it.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=et),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},Ln.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||it.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=tt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Ln.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||it.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=nt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Ln.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},Ln.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},gt("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===S(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=L("moment.lang is deprecated. Use moment.locale instead.",gt),r.langData=L("moment.langData is deprecated. Use moment.localeData instead.",mt);var Tn=Math.abs;function On(e,t,n,i){var r=Zt(t,n);return e._milliseconds+=i*r._milliseconds,e._days+=i*r._days,e._months+=i*r._months,e._bubble()}function Nn(e){return e<0?Math.floor(e):Math.ceil(e)}function In(e){return 4800*e/146097}function An(e){return 146097*e/4800}function Rn(e){return function(){return this.as(e)}}var Pn=Rn("ms"),jn=Rn("s"),Fn=Rn("m"),Bn=Rn("h"),Wn=Rn("d"),Hn=Rn("w"),Yn=Rn("M"),Vn=Rn("Q"),zn=Rn("y");function Un(e){return function(){return this.isValid()?this._data[e]:NaN}}var $n=Un("milliseconds"),qn=Un("seconds"),Kn=Un("minutes"),Gn=Un("hours"),Zn=Un("days"),Jn=Un("months"),Xn=Un("years"),Qn=Math.round,ei={ss:44,s:45,m:45,h:22,d:26,M:11};function ti(e,t,n,i,r){return r.relativeTime(t||1,!!n,e,i)}var ni=Math.abs;function ii(e){return(e>0)-(e<0)||+e}function ri(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=ni(this._milliseconds)/1e3,i=ni(this._days),r=ni(this._months);e=C(n/60),t=C(e/60),n%=60,e%=60;var o=C(r/12),s=r%=12,a=i,l=t,c=e,d=n?n.toFixed(3).replace(/\.?0+$/,""):"",u=this.asSeconds();if(!u)return"P0D";var h=u<0?"-":"",f=ii(this._months)!==ii(u)?"-":"",g=ii(this._days)!==ii(u)?"-":"",p=ii(this._milliseconds)!==ii(u)?"-":"";return h+"P"+(o?f+o+"Y":"")+(s?f+s+"M":"")+(a?g+a+"D":"")+(l||c||d?"T":"")+(l?p+l+"H":"")+(c?p+c+"M":"")+(d?p+d+"S":"")}var oi=Bt.prototype;return oi.isValid=function(){return this._isValid},oi.abs=function(){var e=this._data;return this._milliseconds=Tn(this._milliseconds),this._days=Tn(this._days),this._months=Tn(this._months),e.milliseconds=Tn(e.milliseconds),e.seconds=Tn(e.seconds),e.minutes=Tn(e.minutes),e.hours=Tn(e.hours),e.months=Tn(e.months),e.years=Tn(e.years),this},oi.add=function(e,t){return On(this,e,t,1)},oi.subtract=function(e,t){return On(this,e,t,-1)},oi.as=function(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if("month"===(e=R(e))||"quarter"===e||"year"===e)switch(t=this._days+i/864e5,n=this._months+In(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(An(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}},oi.asMilliseconds=Pn,oi.asSeconds=jn,oi.asMinutes=Fn,oi.asHours=Bn,oi.asDays=Wn,oi.asWeeks=Hn,oi.asMonths=Yn,oi.asQuarters=Vn,oi.asYears=zn,oi.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*S(this._months/12):NaN},oi._bubble=function(){var e,t,n,i,r,o=this._milliseconds,s=this._days,a=this._months,l=this._data;return o>=0&&s>=0&&a>=0||o<=0&&s<=0&&a<=0||(o+=864e5*Nn(An(a)+s),s=0,a=0),l.milliseconds=o%1e3,e=C(o/1e3),l.seconds=e%60,t=C(e/60),l.minutes=t%60,n=C(t/60),l.hours=n%24,s+=C(n/24),r=C(In(s)),a+=r,s-=Nn(An(r)),i=C(a/12),a%=12,l.days=s,l.months=a,l.years=i,this},oi.clone=function(){return Zt(this)},oi.get=function(e){return e=R(e),this.isValid()?this[e+"s"]():NaN},oi.milliseconds=$n,oi.seconds=qn,oi.minutes=Kn,oi.hours=Gn,oi.days=Zn,oi.weeks=function(){return C(this.days()/7)},oi.months=Jn,oi.years=Xn,oi.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=function(e,t,n){var i=Zt(e).abs(),r=Qn(i.as("s")),o=Qn(i.as("m")),s=Qn(i.as("h")),a=Qn(i.as("d")),l=Qn(i.as("M")),c=Qn(i.as("y")),d=r<=ei.ss&&["s",r]||r<ei.s&&["ss",r]||o<=1&&["m"]||o<ei.m&&["mm",o]||s<=1&&["h"]||s<ei.h&&["hh",s]||a<=1&&["d"]||a<ei.d&&["dd",a]||l<=1&&["M"]||l<ei.M&&["MM",l]||c<=1&&["y"]||["yy",c];return d[2]=t,d[3]=+e>0,d[4]=n,ti.apply(null,d)}(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},oi.toISOString=ri,oi.toString=ri,oi.toJSON=ri,oi.locale=on,oi.localeData=an,oi.toIsoString=L("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ri),oi.lang=sn,z("X",0,0,"unix"),z("x",0,0,"valueOf"),de("x",oe),de("X",/[+-]?\d+(\.\d{1,3})?/),ge("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))})),ge("x",(function(e,t,n){n._d=new Date(S(e))})),r.version="2.24.0",t=At,r.fn=kn,r.min=function(){return jt("isBefore",[].slice.call(arguments,0))},r.max=function(){return jt("isAfter",[].slice.call(arguments,0))},r.now=function(){return Date.now?Date.now():+new Date},r.utc=f,r.unix=function(e){return At(1e3*e)},r.months=function(e,t){return Dn(e,t,"months")},r.isDate=c,r.locale=gt,r.invalid=m,r.duration=Zt,r.isMoment=w,r.weekdays=function(e,t,n){return En(e,t,n,"weekdays")},r.parseZone=function(){return At.apply(null,arguments).parseZone()},r.localeData=mt,r.isDuration=Wt,r.monthsShort=function(e,t){return Dn(e,t,"monthsShort")},r.weekdaysMin=function(e,t,n){return En(e,t,n,"weekdaysMin")},r.defineLocale=pt,r.updateLocale=function(e,t){if(null!=t){var n,i,r=ct;null!=(i=ft(e))&&(r=i._config),t=O(r,t),(n=new N(t)).parentLocale=dt[e],dt[e]=n,gt(e)}else null!=dt[e]&&(null!=dt[e].parentLocale?dt[e]=dt[e].parentLocale:null!=dt[e]&&delete dt[e]);return dt[e]},r.locales=function(){return M(dt)},r.weekdaysShort=function(e,t,n){return En(e,t,n,"weekdaysShort")},r.normalizeUnits=R,r.relativeTimeRounding=function(e){return void 0===e?Qn:"function"==typeof e&&(Qn=e,!0)},r.relativeTimeThreshold=function(e,t){return void 0!==ei[e]&&(void 0===t?ei[e]:(ei[e]=t,"s"===e&&(ei.ss=t-1),!0))},r.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},r.prototype=kn,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()}).call(this,n(215)(e))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(10),r=n(3);class o extends r.a{constructor(e,t,n,i){super(e,t,n,i),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=n,this.positionColumn=i}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return o.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return 0===this.getDirection()?new o(this.startLineNumber,this.startColumn,e,t):new o(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new i.a(this.positionLineNumber,this.positionColumn)}setStartPosition(e,t){return 0===this.getDirection()?new o(e,t,this.endLineNumber,this.endColumn):new o(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new o(e.lineNumber,e.column,t.lineNumber,t.column)}static liftSelection(e){return new o(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let n=0,i=e.length;n<i;n++)if(!this.selectionsEqual(e[n],t[n]))return!1;return!0}static isISelection(e){return e&&"number"==typeof e.selectionStartLineNumber&&"number"==typeof e.selectionStartColumn&&"number"==typeof e.positionLineNumber&&"number"==typeof e.positionColumn}static createWithDirection(e,t,n,i,r){return 0===r?new o(e,t,n,i):new o(n,i,e,t)}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return g})),n.d(t,"f",(function(){return p})),n.d(t,"c",(function(){return m})),n.d(t,"d",(function(){return v})),n.d(t,"e",(function(){return y})),n.d(t,"a",(function(){return w})),n.d(t,"g",(function(){return C}));var i=n(15),r=n(8),o=n(10),s=n(3),a=n(22),l=n(29),c=n(32);const d=()=>!0,u=()=>!1,h=e=>" "===e||"\t"===e;function f(e,t,n){e.has(t)?e.get(t).push(n):e.set(t,[n])}class g{constructor(e,t,n){this._languageIdentifier=e;const i=n.options,r=i.get(117);this.readOnly=i.get(72),this.tabSize=t.tabSize,this.indentSize=t.indentSize,this.insertSpaces=t.insertSpaces,this.lineHeight=i.get(51),this.pageSize=Math.max(1,Math.floor(r.height/this.lineHeight)-2),this.useTabStops=i.get(104),this.wordSeparators=i.get(105),this.emptySelectionClipboard=i.get(26),this.copyWithSyntaxHighlighting=i.get(16),this.multiCursorMergeOverlapping=i.get(60),this.multiCursorPaste=i.get(62),this.autoClosingBrackets=i.get(5),this.autoClosingQuotes=i.get(7),this.autoClosingOvertype=i.get(6),this.autoSurround=i.get(10),this.autoIndent=i.get(8),this.autoClosingPairsOpen2=new Map,this.autoClosingPairsClose2=new Map,this.surroundingPairs={},this._electricChars=null,this.shouldAutoCloseBefore={quote:g._getShouldAutoClose(e,this.autoClosingQuotes),bracket:g._getShouldAutoClose(e,this.autoClosingBrackets)};let o=g._getAutoClosingPairs(e);if(o)for(const e of o)f(this.autoClosingPairsOpen2,e.open.charAt(e.open.length-1),e),1===e.close.length&&f(this.autoClosingPairsClose2,e.close,e);let s=g._getSurroundingPairs(e);if(s)for(const e of s)this.surroundingPairs[e.open]=e.close}static shouldRecreate(e){return e.hasChanged(117)||e.hasChanged(105)||e.hasChanged(26)||e.hasChanged(60)||e.hasChanged(62)||e.hasChanged(5)||e.hasChanged(7)||e.hasChanged(6)||e.hasChanged(10)||e.hasChanged(104)||e.hasChanged(51)||e.hasChanged(72)}get electricChars(){if(!this._electricChars){this._electricChars={};let e=g._getElectricCharacters(this._languageIdentifier);if(e)for(const t of e)this._electricChars[t]=!0}return this._electricChars}normalizeIndentation(e){return l.b.normalizeIndentation(e,this.indentSize,this.insertSpaces)}static _getElectricCharacters(e){try{return c.a.getElectricCharacters(e.id)}catch(e){return Object(i.e)(e),null}}static _getAutoClosingPairs(e){try{return c.a.getAutoClosingPairs(e.id)}catch(e){return Object(i.e)(e),null}}static _getShouldAutoClose(e,t){switch(t){case"beforeWhitespace":return h;case"languageDefined":return g._getLanguageDefinedShouldAutoClose(e);case"always":return d;case"never":return u}}static _getLanguageDefinedShouldAutoClose(e){try{const t=c.a.getAutoCloseBeforeSet(e.id);return e=>-1!==t.indexOf(e)}catch(e){return Object(i.e)(e),u}}static _getSurroundingPairs(e){try{return c.a.getSurroundingPairs(e.id)}catch(e){return Object(i.e)(e),null}}}class p{constructor(e,t,n,i){this.selectionStart=e,this.selectionStartLeftoverVisibleColumns=t,this.position=n,this.leftoverVisibleColumns=i,this.selection=p._computeSelection(this.selectionStart,this.position)}equals(e){return this.selectionStartLeftoverVisibleColumns===e.selectionStartLeftoverVisibleColumns&&this.leftoverVisibleColumns===e.leftoverVisibleColumns&&this.position.equals(e.position)&&this.selectionStart.equalsRange(e.selectionStart)}hasSelection(){return!this.selection.isEmpty()||!this.selectionStart.isEmpty()}move(e,t,n,i){return e?new p(this.selectionStart,this.selectionStartLeftoverVisibleColumns,new o.a(t,n),i):new p(new s.a(t,n,t,n),i,new o.a(t,n),i)}static _computeSelection(e,t){let n,i,r,o;return e.isEmpty()?(n=e.startLineNumber,i=e.startColumn,r=t.lineNumber,o=t.column):t.isBeforeOrEqual(e.getStartPosition())?(n=e.endLineNumber,i=e.endColumn,r=t.lineNumber,o=t.column):(n=e.startLineNumber,i=e.startColumn,r=t.lineNumber,o=t.column),new a.a(n,i,r,o)}}class m{constructor(e,t,n){this.model=e,this.coordinatesConverter=t,this.cursorConfig=n}}class _{constructor(e){this.modelState=e,this.viewState=null}}class b{constructor(e){this.modelState=null,this.viewState=e}}class v{constructor(e,t){this.modelState=e,this.viewState=t}static fromModelState(e){return new _(e)}static fromViewState(e){return new b(e)}static fromModelSelection(e){const t=e.selectionStartLineNumber,n=e.selectionStartColumn,i=e.positionLineNumber,r=e.positionColumn,a=new p(new s.a(t,n,t,n),0,new o.a(i,r),0);return v.fromModelState(a)}static fromModelSelections(e){let t=[];for(let n=0,i=e.length;n<i;n++)t[n]=this.fromModelSelection(e[n]);return t}equals(e){return this.viewState.equals(e.viewState)&&this.modelState.equals(e.modelState)}}class y{constructor(e,t,n){this.type=e,this.commands=t,this.shouldPushStackElementBefore=n.shouldPushStackElementBefore,this.shouldPushStackElementAfter=n.shouldPushStackElementAfter}}class w{static visibleColumnFromColumn(e,t,n){const i=e.length,o=t-1<i?t-1:i;let s=0,a=0;for(;a<o;){const t=r.A(e,o,a);if(a+=t>=65536?2:1,9===t)s=w.nextRenderTabStop(s,n);else{let n=r.y(t);for(;a<o;){const t=r.A(e,o,a),i=r.y(t);if(r.c(n,i))break;a+=t>=65536?2:1,n=i}r.E(t)||r.C(t)?s+=2:s+=1}}return s}static visibleColumnFromColumn2(e,t,n){return this.visibleColumnFromColumn(t.getLineContent(n.lineNumber),n.column,e.tabSize)}static columnFromVisibleColumn(e,t,n){if(t<=0)return 1;const i=e.length;let o=0,s=1,a=0;for(;a<i;){const l=r.A(e,i,a);let c;if(a+=l>=65536?2:1,9===l)c=w.nextRenderTabStop(o,n);else{let t=r.y(l);for(;a<i;){const n=r.A(e,i,a),o=r.y(n);if(r.c(t,o))break;a+=n>=65536?2:1,t=o}c=r.E(l)||r.C(l)?o+2:o+1}const d=a+1;if(c>=t){return c-t<t-o?d:s}o=c,s=d}return i+1}static columnFromVisibleColumn2(e,t,n,i){let r=this.columnFromVisibleColumn(t.getLineContent(n),i,e.tabSize),o=t.getLineMinColumn(n);if(r<o)return o;let s=t.getLineMaxColumn(n);return r>s?s:r}static nextRenderTabStop(e,t){return e+t-e%t}static nextIndentTabStop(e,t){return e+t-e%t}static prevRenderTabStop(e,t){return e-1-(e-1)%t}static prevIndentTabStop(e,t){return e-1-(e-1)%t}}function C(e){return"'"===e||'"'===e||"`"===e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return _}));var i=n(12),r=n(45);const o=/^\w[\w\d+.-]*$/,s=/^\//,a=/^\/\//;const l="",c="/",d=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class u{constructor(e,t,n,i,r,d=!1){"object"==typeof e?(this.scheme=e.scheme||l,this.authority=e.authority||l,this.path=e.path||l,this.query=e.query||l,this.fragment=e.fragment||l):(this.scheme=function(e,t){return e||t?e:"file"}(e,d),this.authority=t||l,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==c&&(t=c+t):t=c}return t}(this.scheme,n||l),this.query=i||l,this.fragment=r||l,function(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!o.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!s.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(a.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,d))}static isUri(e){return e instanceof u||!!e&&("string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"function"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString)}get fsPath(){return _(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:i,query:r,fragment:o}=e;return void 0===t?t=this.scheme:null===t&&(t=l),void 0===n?n=this.authority:null===n&&(n=l),void 0===i?i=this.path:null===i&&(i=l),void 0===r?r=this.query:null===r&&(r=l),void 0===o?o=this.fragment:null===o&&(o=l),t===this.scheme&&n===this.authority&&i===this.path&&r===this.query&&o===this.fragment?this:new f(t,n,i,r,o)}static parse(e,t=!1){const n=d.exec(e);return n?new f(n[2]||l,y(n[4]||l),y(n[5]||l),y(n[7]||l),y(n[9]||l),t):new f(l,l,l,l,l)}static file(e){let t=l;if(i.i&&(e=e.replace(/\\/g,c)),e[0]===c&&e[1]===c){const n=e.indexOf(c,2);-1===n?(t=e.substring(2),e=c):(t=e.substring(2,n),e=e.substring(n)||c)}return new f("file",t,e,l,l)}static from(e){return new f(e.scheme,e.authority,e.path,e.query,e.fragment)}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPaths on URI without path");let n;return n=i.i&&"file"===e.scheme?u.file(r.i.join(_(e,!0),...t)).path:r.e.join(e.path,...t),e.with({path:n})}toString(e=!1){return b(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof u)return e;{const t=new f(e);return t._formatted=e.external,t._fsPath=e._sep===h?e.fsPath:null,t}}return e}}const h=i.i?1:void 0;class f extends u{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=_(this,!1)),this._fsPath}toString(e=!1){return e?b(this,!0):(this._formatted||(this._formatted=b(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=h),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const g={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function p(e,t){let n=void 0,i=-1;for(let r=0;r<e.length;r++){const o=e.charCodeAt(r);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o)-1!==i&&(n+=encodeURIComponent(e.substring(i,r)),i=-1),void 0!==n&&(n+=e.charAt(r));else{void 0===n&&(n=e.substr(0,r));const t=g[o];void 0!==t?(-1!==i&&(n+=encodeURIComponent(e.substring(i,r)),i=-1),n+=t):-1===i&&(i=r)}}return-1!==i&&(n+=encodeURIComponent(e.substring(i))),void 0!==n?n:e}function m(e){let t=void 0;for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);35===i||63===i?(void 0===t&&(t=e.substr(0,n)),t+=g[i]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function _(e,t){let n;return n=e.authority&&e.path.length>1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,i.i&&(n=n.replace(/\//g,"\\")),n}function b(e,t){const n=t?m:p;let i="",{scheme:r,authority:o,path:s,query:a,fragment:l}=e;if(r&&(i+=r,i+=":"),(o||"file"===r)&&(i+=c,i+=c),o){let e=o.indexOf("@");if(-1!==e){const t=o.substr(0,e);o=o.substr(e+1),-1===(e=t.indexOf(":"))?i+=n(t,!1):(i+=n(t.substr(0,e),!1),i+=":",i+=n(t.substr(e+1),!1)),i+="@"}-1===(e=(o=o.toLowerCase()).indexOf(":"))?i+=n(o,!1):(i+=n(o.substr(0,e),!1),i+=o.substr(e))}if(s){if(s.length>=3&&47===s.charCodeAt(0)&&58===s.charCodeAt(2)){const e=s.charCodeAt(1);e>=65&&e<=90&&(s=`/${String.fromCharCode(e+32)}:${s.substr(3)}`)}else if(s.length>=2&&58===s.charCodeAt(1)){const e=s.charCodeAt(0);e>=65&&e<=90&&(s=`${String.fromCharCode(e+32)}:${s.substr(2)}`)}i+=n(s,!0)}return a&&(i+="?",i+=n(a,!1)),l&&(i+="#",i+=t?l:p(l,!1)),i}const v=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function y(e){return e.match(v)?e.replace(v,e=>(function e(t){try{return decodeURIComponent(t)}catch(n){return t.length>3?t.substr(0,3)+e(t.substr(3)):t}})(e)):e}},function(e,t,n){"use strict";n.d(t,"f",(function(){return f})),n.d(t,"b",(function(){return g})),n.d(t,"a",(function(){return p})),n.d(t,"d",(function(){return m})),n.d(t,"e",(function(){return b})),n.d(t,"c",(function(){return v}));var i=n(49),r=n(17),o=n(9),s=n(28),a=n(2),l=n(6),c=n(38),d=n(84),u=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},h=function(e,t){return function(n,i){t(n,i,e)}};function f(e){return void 0!==e.command}class g{constructor(e){this.id=g._idPool++,this._debugName=e}}g._idPool=0,g.CommandPalette=new g("CommandPalette"),g.EditorContext=new g("EditorContext"),g.EditorContextPeek=new g("EditorContextPeek"),g.MenubarEditMenu=new g("MenubarEditMenu"),g.MenubarGoMenu=new g("MenubarGoMenu"),g.MenubarSelectionMenu=new g("MenubarSelectionMenu");const p=Object(r.c)("menuService"),m=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new l.a,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:e=>e===g.CommandPalette}}addCommand(e){return this.addCommands(c.a.single(e))}addCommands(e){for(const t of e)this._commands.set(t.id,t);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),Object(a.h)(()=>{let t=!1;for(const n of e)t=this._commands.delete(n.id)||t;t&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(e){return this._commands.get(e)}getCommands(){const e=new Map;return this._commands.forEach((t,n)=>e.set(n,t)),e}appendMenuItem(e,t){return this.appendMenuItems(c.a.single({id:e,item:t}))}appendMenuItems(e){const t=new Set,n=new d.a;for(const{id:i,item:r}of e){let e=this._menuItems.get(i);e||(e=new d.a,this._menuItems.set(i,e)),n.push(e.push(r)),t.add(i)}return this._onDidChangeMenu.fire(t),Object(a.h)(()=>{if(n.size>0){for(let e of n)e();this._onDidChangeMenu.fire(t),n.clear()}})}getMenuItems(e){let t;return t=this._menuItems.has(e)?[...this._menuItems.get(e)]:[],e===g.CommandPalette&&this._appendImplicitItems(t),t}_appendImplicitItems(e){const t=new Set;for(const n of e)f(n)&&(t.add(n.command.id),n.alt&&t.add(n.alt.id));this._commands.forEach((n,i)=>{t.has(i)||e.push({command:n})})}};let _=class extends i.a{constructor(e,t,n){super(e,t),this._commandService=n}run(...e){return this._commandService.executeCommand(this.id,...e)}};_=u([h(2,s.b)],_);class b extends i.d{constructor(e,t,n,r){super(`submenuitem.${e.submenu.id}`,"string"==typeof e.title?e.title:e.title.value,()=>{const o=[],s=t.createMenu(e.submenu,n),a=s.getActions(r);s.dispose();for(let e of a){const[,t]=e;t.length>0&&(o.push(...t),o.push(new i.c))}return o.length&&o.pop(),o},"submenu"),this.item=e}}let v=class e extends _{constructor(t,n,i,r,o){if("string"==typeof t.title?super(t.id,t.title,o):super(t.id,t.title.value,o),this._cssClass=void 0,this._enabled=!t.precondition||r.contextMatchesRules(t.precondition),this._tooltip=t.tooltip?"string"==typeof t.tooltip?t.tooltip:t.tooltip.value:void 0,t.toggled){const e=t.toggled.condition?t.toggled:{condition:t.toggled};this._checked=r.contextMatchesRules(e.condition),this._checked&&e.tooltip&&(this._tooltip="string"==typeof e.tooltip?e.tooltip:e.tooltip.value)}this._options=i||{},this.item=t,this.alt=n?new e(n,void 0,this._options,r,o):void 0}dispose(){this.alt&&this.alt.dispose(),super.dispose()}run(...e){let t=[];return this._options.arg&&(t=[...t,this._options.arg]),this._options.shouldForwardArgs&&(t=[...t,...e]),super.run(...t)}};v=u([h(3,o.b),h(4,s.b)],v)},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a}));var i=n(6);const r=Object.freeze((function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}}));var o;!function(e){e.isCancellationToken=function(t){return t===e.None||t===e.Cancelled||(t instanceof s||!(!t||"object"!=typeof t)&&("boolean"==typeof t.isCancellationRequested&&"function"==typeof t.onCancellationRequested))},e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:i.b.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:r})}(o||(o={}));class s{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?r:(this._emitter||(this._emitter=new i.a),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class a{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new s),this._token}cancel(){this._token?this._token instanceof s&&this._token.cancel():this._token=o.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof s&&this._token.dispose():this._token=o.None}}},function(e,t,n){"use strict";n.d(t,"h",(function(){return s})),n.d(t,"b",(function(){return a})),n.d(t,"j",(function(){return l})),n.d(t,"a",(function(){return c})),n.d(t,"i",(function(){return v})),n.d(t,"e",(function(){return y})),n.d(t,"f",(function(){return C})),n.d(t,"l",(function(){return S})),n.d(t,"c",(function(){return x})),n.d(t,"d",(function(){return L})),n.d(t,"k",(function(){return M})),n.d(t,"g",(function(){return E}));var i=n(0),r=n(12),o=n(138);const s=8;class a{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class l{constructor(){this._values=[]}_read(e){return this._values[e]}get(e){return this._values[e]}_write(e,t){this._values[e]=t}}class c{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class d{constructor(e,t,n,i){this.id=e,this.name=t,this.defaultValue=n,this.schema=i}compute(e,t,n){return n}}class u{constructor(e,t=null){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0,this.deps=t}validate(e){return this.defaultValue}}class h{constructor(e,t,n,i){this.id=e,this.name=t,this.defaultValue=n,this.schema=i}validate(e){return void 0===e?this.defaultValue:e}compute(e,t,n){return n}}class f extends h{static boolean(e,t){return void 0===e?t:"false"!==e&&Boolean(e)}constructor(e,t,n,i){void 0!==i&&(i.type="boolean",i.default=n),super(e,t,n,i)}validate(e){return f.boolean(e,this.defaultValue)}}class g extends h{constructor(e,t,n,i,r,o){void 0!==o&&(o.type="integer",o.default=n,o.minimum=i,o.maximum=r),super(e,t,n,o),this.minimum=i,this.maximum=r}static clampedInt(e,t,n,i){if(void 0===e)return t;let r=parseInt(e,10);return isNaN(r)?t:(r=Math.max(n,r),0|(r=Math.min(i,r)))}validate(e){return g.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}class p extends h{constructor(e,t,n,i,r){void 0!==r&&(r.type="number",r.default=n),super(e,t,n,r),this.validationFn=i}static clamp(e,t,n){return e<t?t:e>n?n:e}static float(e,t){if("number"==typeof e)return e;if(void 0===e)return t;const n=parseFloat(e);return isNaN(n)?t:n}validate(e){return this.validationFn(p.float(e,this.defaultValue))}}class m extends h{static string(e,t){return"string"!=typeof e?t:e}constructor(e,t,n,i){void 0!==i&&(i.type="string",i.default=n),super(e,t,n,i)}validate(e){return m.string(e,this.defaultValue)}}class _ extends h{constructor(e,t,n,i,r){void 0!==r&&(r.type="string",r.enum=i,r.default=n),super(e,t,n,r),this._allowedValues=i}static stringSet(e,t,n){return"string"!=typeof e?t:-1===n.indexOf(e)?t:e}validate(e){return _.stringSet(e,this.defaultValue,this._allowedValues)}}class b extends d{constructor(e,t,n,i,r,o,s){void 0!==s&&(s.type="string",s.enum=r,s.default=i),super(e,t,n,s),this._allowedValues=r,this._convert=o}validate(e){return"string"!=typeof e?this.defaultValue:-1===this._allowedValues.indexOf(e)?this.defaultValue:this._convert(e)}}var v;!function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"}(v||(v={}));class y extends d{constructor(){super(37,"fontLigatures",y.OFF,{anyOf:[{type:"boolean",description:i.a("fontLigatures","Enables/Disables font ligatures.")},{type:"string",description:i.a("fontFeatureSettings","Explicit font-feature-settings.")}],description:i.a("fontLigaturesGeneral","Configures font ligatures or font features."),default:!1})}validate(e){return void 0===e?this.defaultValue:"string"==typeof e?"false"===e?y.OFF:"true"===e?y.ON:e:Boolean(e)?y.ON:y.OFF}}y.OFF='"liga" off, "calt" off',y.ON='"liga" on, "calt" on';class w extends d{constructor(){super(39,"fontWeight",x.fontWeight,{anyOf:[{type:"number",minimum:w.MINIMUM_VALUE,maximum:w.MAXIMUM_VALUE,errorMessage:i.a("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:w.SUGGESTION_VALUES}],default:x.fontWeight,description:i.a("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return"normal"===e||"bold"===e?e:String(g.clampedInt(e,x.fontWeight,w.MINIMUM_VALUE,w.MAXIMUM_VALUE))}}w.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"],w.MINIMUM_VALUE=1,w.MAXIMUM_VALUE=1e3;class C extends u{constructor(){super(117,[42,50,31,56,84,52,53,86,106,109,110,2])}compute(e,t,n){return C.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,n=e.scrollBeyondLastLine?t-1:0,i=(e.viewLineCount+n)/(e.pixelRatio*e.height);return{typicalViewportLineCount:t,extraLinesBeyondLastLine:n,desiredRatio:i,minimapLineCount:Math.floor(e.viewLineCount/i)}}static _computeMinimapLayout(e,t){const n=e.outerWidth,i=e.outerHeight,r=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(r*i),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:i};const o=t.stableMinimapLayoutInput,a=o&&e.outerHeight===o.outerHeight&&e.lineHeight===o.lineHeight&&e.typicalHalfwidthCharacterWidth===o.typicalHalfwidthCharacterWidth&&e.pixelRatio===o.pixelRatio&&e.scrollBeyondLastLine===o.scrollBeyondLastLine&&e.minimap.enabled===o.minimap.enabled&&e.minimap.side===o.minimap.side&&e.minimap.size===o.minimap.size&&e.minimap.showSlider===o.minimap.showSlider&&e.minimap.renderCharacters===o.minimap.renderCharacters&&e.minimap.maxColumn===o.minimap.maxColumn&&e.minimap.scale===o.minimap.scale&&e.verticalScrollbarWidth===o.verticalScrollbarWidth&&e.isViewportWrapping===o.isViewportWrapping,l=e.lineHeight,c=e.typicalHalfwidthCharacterWidth,d=e.scrollBeyondLastLine,u=e.minimap.renderCharacters;let h=r>=2?Math.round(2*e.minimap.scale):e.minimap.scale;const f=e.minimap.maxColumn,g=e.minimap.size,p=e.minimap.side,m=e.verticalScrollbarWidth,_=e.viewLineCount,b=e.remainingWidth,v=e.isViewportWrapping,y=u?2:3;let w=Math.floor(r*i);const S=w/r;let k=!1,x=!1,L=y*h,M=h/r,D=1;if("fill"===g||"fit"===g){const{typicalViewportLineCount:n,extraLinesBeyondLastLine:o,desiredRatio:s,minimapLineCount:c}=C.computeContainedMinimapLineCount({viewLineCount:_,scrollBeyondLastLine:d,height:i,lineHeight:l,pixelRatio:r});if(_/c>1)k=!0,x=!0,L=1,M=(h=1)/r;else{let i=!1,c=h+1;if("fit"===g){const n=Math.ceil((_+o)*L);v&&a&&b<=t.stableFitRemainingWidth?(i=!0,c=t.stableFitMaxMinimapScale):(i=n>w,v&&i?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=b):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0))}if("fill"===g||i){k=!0;const e=h;L=Math.min(l*r,Math.max(1,Math.floor(1/s))),(h=Math.min(c,Math.max(1,Math.floor(L/y))))>e&&(D=Math.min(2,h/e)),M=h/r/D,w=Math.ceil(Math.max(n,_+o)*L),v&&i&&(t.stableFitMaxMinimapScale=h)}}}const E=Math.floor(f*M),T=Math.min(E,Math.max(0,Math.floor((b-m-2)*M/(c+M)))+s);let O=Math.floor(r*T);const N=O/r;return{renderMinimap:u?1:2,minimapLeft:"left"===p?0:n-T-m,minimapWidth:T,minimapHeightIsEditorHeight:k,minimapIsSampling:x,minimapScale:h,minimapLineHeight:L,minimapCanvasInnerWidth:O=Math.floor(O*D),minimapCanvasInnerHeight:w,minimapCanvasOuterWidth:N,minimapCanvasOuterHeight:S}}static computeLayout(e,t){const n=0|t.outerWidth,i=0|t.outerHeight,r=0|t.lineHeight,o=0|t.lineNumbersDigitCount,s=t.typicalHalfwidthCharacterWidth,a=t.maxDigitWidth,l=t.pixelRatio,d=t.viewLineCount,u=e.get(106),h=e.get(109),f=e.get(110),p=e.get(2),m=t.isDominatedByLongLines,_=e.get(42),b=0!==e.get(52).renderType,v=e.get(53),y=e.get(86),w=e.get(56),S=e.get(84),k=S.verticalScrollbarSize,x=S.verticalHasArrows,L=S.arrowSize,M=S.horizontalScrollbarSize,D=e.get(50),E=e.get(31);let T;if("string"==typeof D&&/^\d+(\.\d+)?ch$/.test(D)){const e=parseFloat(D.substr(0,D.length-2));T=g.clampedInt(e*s,0,0,1e3)}else T=g.clampedInt(D,0,0,1e3);E&&(T+=16);let O=0;if(b){const e=Math.max(o,v);O=Math.round(e*a)}let N=0;_&&(N=r);let I=0,A=I+N,R=A+O,P=R+T;const j=n-N-O-T;let F=!1,B=!1,W=-1;2!==p&&(f&&m?(F=!0,B=!0):"on"===u||"bounded"===u?B=!0:"wordWrapColumn"===u&&(W=h));const H=C._computeMinimapLayout({outerWidth:n,outerHeight:i,lineHeight:r,typicalHalfwidthCharacterWidth:s,pixelRatio:l,scrollBeyondLastLine:y,minimap:w,verticalScrollbarWidth:k,viewLineCount:d,remainingWidth:j,isViewportWrapping:B},t.memory||new c);0!==H.renderMinimap&&0===H.minimapLeft&&(I+=H.minimapWidth,A+=H.minimapWidth,R+=H.minimapWidth,P+=H.minimapWidth);const Y=j-H.minimapWidth,V=Math.max(1,Math.floor((Y-k-2)/s)),z=x?L:0;return B&&(W=Math.max(1,V),"bounded"===u&&(W=Math.min(W,h))),{width:n,height:i,glyphMarginLeft:I,glyphMarginWidth:N,lineNumbersLeft:A,lineNumbersWidth:O,decorationsLeft:R,decorationsWidth:T,contentLeft:P,contentWidth:Y,minimap:H,viewportColumn:V,isWordWrapMinified:F,isViewportWrapping:B,wrappingColumn:W,verticalScrollbarWidth:k,horizontalScrollbarHeight:M,overviewRuler:{top:z,width:k,height:i-2*z,right:0}}}}function S(e){const t=e.get(79);return"editable"===t?e.get(72):"on"!==t}function k(e,t){if("string"!=typeof e)return t;switch(e){case"hidden":return 2;case"visible":return 3;default:return 1}}const x={fontFamily:r.f?"Menlo, Monaco, 'Courier New', monospace":r.d?"'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'":"Consolas, 'Courier New', monospace",fontWeight:"normal",fontSize:r.f?12:14,lineHeight:0,letterSpacing:0},L={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0},M=[];function D(e){return M[e.id]=e,e}const E={acceptSuggestionOnCommitCharacter:D(new f(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:i.a("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:D(new _(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",i.a("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:i.a("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:D(new class extends d{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[i.a("accessibilitySupport.auto","The editor will use platform APIs to detect when a Screen Reader is attached."),i.a("accessibilitySupport.on","The editor will be permanently optimized for usage with a Screen Reader."),i.a("accessibilitySupport.off","The editor will never be optimized for usage with a Screen Reader.")],default:"auto",description:i.a("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,n){return 0===n?e.accessibilitySupport:n}}),accessibilityPageSize:D(new g(3,"accessibilityPageSize",10,1,1073741824,{description:i.a("accessibilityPageSize","Controls the number of lines in the editor that can be read out by a screen reader. Warning: this has a performance implication for numbers larger than the default.")})),ariaLabel:D(new m(4,"ariaLabel",i.a("editorViewAccessibleLabel","Editor content"))),autoClosingBrackets:D(new _(5,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",i.a("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),i.a("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:i.a("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingOvertype:D(new _(6,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",i.a("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:i.a("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:D(new _(7,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",i.a("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),i.a("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:i.a("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:D(new b(8,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],(function(e){switch(e){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}),{enumDescriptions:[i.a("editor.autoIndent.none","The editor will not insert indentation automatically."),i.a("editor.autoIndent.keep","The editor will keep the current line's indentation."),i.a("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),i.a("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),i.a("editor.autoIndent.full","The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:i.a("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:D(new f(9,"automaticLayout",!1)),autoSurround:D(new _(10,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[i.a("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),i.a("editor.autoSurround.quotes","Surround with quotes but not brackets."),i.a("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:i.a("autoSurround","Controls whether the editor should automatically surround selections.")})),codeLens:D(new f(11,"codeLens",!0,{description:i.a("codeLens","Controls whether the editor shows CodeLens.")})),colorDecorators:D(new f(12,"colorDecorators",!0,{description:i.a("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),columnSelection:D(new f(13,"columnSelection",!1,{description:i.a("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:D(new class extends d{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(14,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:i.a("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:i.a("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{insertSpace:f.boolean(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:f.boolean(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}),contextmenu:D(new f(15,"contextmenu",!0)),copyWithSyntaxHighlighting:D(new f(16,"copyWithSyntaxHighlighting",!0,{description:i.a("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:D(new b(17,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],(function(e){switch(e){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}),{description:i.a("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:D(new f(18,"cursorSmoothCaretAnimation",!1,{description:i.a("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:D(new b(19,"cursorStyle",v.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],(function(e){switch(e){case"line":return v.Line;case"block":return v.Block;case"underline":return v.Underline;case"line-thin":return v.LineThin;case"block-outline":return v.BlockOutline;case"underline-thin":return v.UnderlineThin}}),{description:i.a("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:D(new g(20,"cursorSurroundingLines",0,0,1073741824,{description:i.a("cursorSurroundingLines","Controls the minimal number of visible leading and trailing lines surrounding the cursor. Known as 'scrollOff' or `scrollOffset` in some other editors.")})),cursorSurroundingLinesStyle:D(new _(21,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[i.a("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),i.a("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],description:i.a("cursorSurroundingLinesStyle","Controls when `cursorSurroundingLines` should be enforced.")})),cursorWidth:D(new g(22,"cursorWidth",0,0,1073741824,{markdownDescription:i.a("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:D(new f(23,"disableLayerHinting",!1)),disableMonospaceOptimizations:D(new f(24,"disableMonospaceOptimizations",!1)),dragAndDrop:D(new f(25,"dragAndDrop",!0,{description:i.a("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:D(new class extends f{constructor(){super(26,"emptySelectionClipboard",!0,{description:i.a("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,n){return n&&e.emptySelectionClipboard}}),extraEditorClassName:D(new m(27,"extraEditorClassName","")),fastScrollSensitivity:D(new p(28,"fastScrollSensitivity",5,e=>e<=0?5:e,{markdownDescription:i.a("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:D(new class extends d{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:!0,autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(29,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:i.a("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"boolean",default:e.seedSearchStringFromSelection,description:i.a("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[i.a("editor.find.autoFindInSelection.never","Never turn on Find in selection automatically (default)"),i.a("editor.find.autoFindInSelection.always","Always turn on Find in selection automatically"),i.a("editor.find.autoFindInSelection.multiline","Turn on Find in selection automatically when multiple lines of content are selected.")],description:i.a("find.autoFindInSelection","Controls the condition for turning on find in selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:i.a("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:r.f},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:i.a("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:i.a("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{cursorMoveOnType:f.boolean(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:f.boolean(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection),autoFindInSelection:"boolean"==typeof e.autoFindInSelection?e.autoFindInSelection?"always":"never":_.stringSet(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:f.boolean(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:f.boolean(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:f.boolean(t.loop,this.defaultValue.loop)}}}),fixedOverflowWidgets:D(new f(30,"fixedOverflowWidgets",!1)),folding:D(new f(31,"folding",!0,{description:i.a("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:D(new _(32,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[i.a("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),i.a("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:i.a("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:D(new f(33,"foldingHighlight",!0,{description:i.a("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),unfoldOnClickAfterEndOfLine:D(new f(34,"unfoldOnClickAfterEndOfLine",!1,{description:i.a("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:D(new m(35,"fontFamily",x.fontFamily,{description:i.a("fontFamily","Controls the font family.")})),fontInfo:D(new class extends u{constructor(){super(36)}compute(e,t,n){return e.fontInfo}}),fontLigatures2:D(new y),fontSize:D(new class extends h{constructor(){super(38,"fontSize",x.fontSize,{type:"number",minimum:6,maximum:100,default:x.fontSize,description:i.a("fontSize","Controls the font size in pixels.")})}validate(e){let t=p.float(e,this.defaultValue);return 0===t?x.fontSize:p.clamp(t,6,100)}compute(e,t,n){return e.fontInfo.fontSize}}),fontWeight:D(new w),formatOnPaste:D(new f(40,"formatOnPaste",!1,{description:i.a("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:D(new f(41,"formatOnType",!1,{description:i.a("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:D(new f(42,"glyphMargin",!0,{description:i.a("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:D(new class extends d{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[i.a("editor.gotoLocation.multiple.peek","Show peek view of the results (default)"),i.a("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a peek view"),i.a("editor.gotoLocation.multiple.goto","Go to the primary result and enable peek-less navigation to others")]};super(43,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:i.a("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":Object.assign({description:i.a("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleTypeDefinitions":Object.assign({description:i.a("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleDeclarations":Object.assign({description:i.a("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleImplementations":Object.assign({description:i.a("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleReferences":Object.assign({description:i.a("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},t),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,description:i.a("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,description:i.a("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,description:i.a("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,description:i.a("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,description:i.a("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){var t,n,i,r,o;if(!e||"object"!=typeof e)return this.defaultValue;const s=e;return{multiple:_.stringSet(s.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:null!==(t=s.multipleDefinitions)&&void 0!==t?t:_.stringSet(s.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:null!==(n=s.multipleTypeDefinitions)&&void 0!==n?n:_.stringSet(s.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:null!==(i=s.multipleDeclarations)&&void 0!==i?i:_.stringSet(s.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:null!==(r=s.multipleImplementations)&&void 0!==r?r:_.stringSet(s.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:null!==(o=s.multipleReferences)&&void 0!==o?o:_.stringSet(s.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:m.string(s.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:m.string(s.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:m.string(s.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:m.string(s.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:m.string(s.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}),hideCursorInOverviewRuler:D(new f(44,"hideCursorInOverviewRuler",!1,{description:i.a("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),highlightActiveIndentGuide:D(new f(45,"highlightActiveIndentGuide",!0,{description:i.a("highlightActiveIndentGuide","Controls whether the editor should highlight the active indent guide.")})),hover:D(new class extends d{constructor(){const e={enabled:!0,delay:300,sticky:!0};super(46,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:i.a("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,description:i.a("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:i.a("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{enabled:f.boolean(t.enabled,this.defaultValue.enabled),delay:g.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:f.boolean(t.sticky,this.defaultValue.sticky)}}}),inDiffEditor:D(new f(47,"inDiffEditor",!1)),letterSpacing:D(new p(48,"letterSpacing",x.letterSpacing,e=>p.clamp(e,-5,20),{description:i.a("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:D(new class extends d{constructor(){const e={enabled:!0};super(49,"lightbulb",e,{"editor.lightbulb.enabled":{type:"boolean",default:e.enabled,description:i.a("codeActions","Enables the code action lightbulb in the editor.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{enabled:f.boolean(t.enabled,this.defaultValue.enabled)}}}),lineDecorationsWidth:D(new h(50,"lineDecorationsWidth",10)),lineHeight:D(new class extends g{constructor(){super(51,"lineHeight",x.lineHeight,0,150,{description:i.a("lineHeight","Controls the line height. Use 0 to compute the line height from the font size.")})}compute(e,t,n){return e.fontInfo.lineHeight}}),lineNumbers:D(new class extends d{constructor(){super(52,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[i.a("lineNumbers.off","Line numbers are not rendered."),i.a("lineNumbers.on","Line numbers are rendered as absolute number."),i.a("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),i.a("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:i.a("lineNumbers","Controls the display of line numbers.")})}validate(e){let t=this.defaultValue.renderType,n=this.defaultValue.renderFn;return void 0!==e&&("function"==typeof e?(t=4,n=e):t="interval"===e?3:"relative"===e?2:"on"===e?1:0),{renderType:t,renderFn:n}}}),lineNumbersMinChars:D(new g(53,"lineNumbersMinChars",5,1,300)),links:D(new f(54,"links",!0,{description:i.a("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:D(new _(55,"matchBrackets","always",["always","near","never"],{description:i.a("matchBrackets","Highlight matching brackets.")})),minimap:D(new class extends d{constructor(){const e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",renderCharacters:!0,maxColumn:120,scale:1};super(56,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:i.a("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[i.a("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),i.a("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),i.a("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:i.a("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:i.a("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:i.a("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,enum:[1,2,3],description:i.a("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:i.a("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:i.a("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{enabled:f.boolean(t.enabled,this.defaultValue.enabled),size:_.stringSet(t.size,this.defaultValue.size,["proportional","fill","fit"]),side:_.stringSet(t.side,this.defaultValue.side,["right","left"]),showSlider:_.stringSet(t.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:f.boolean(t.renderCharacters,this.defaultValue.renderCharacters),scale:g.clampedInt(t.scale,1,1,3),maxColumn:g.clampedInt(t.maxColumn,this.defaultValue.maxColumn,1,1e4)}}}),mouseStyle:D(new _(57,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:D(new p(58,"mouseWheelScrollSensitivity",1,e=>0===e?1:e,{markdownDescription:i.a("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:D(new f(59,"mouseWheelZoom",!1,{markdownDescription:i.a("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:D(new f(60,"multiCursorMergeOverlapping",!0,{description:i.a("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:D(new b(61,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],(function(e){return"ctrlCmd"===e?r.f?"metaKey":"ctrlKey":"altKey"}),{markdownEnumDescriptions:[i.a("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),i.a("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:i.a({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. The Go To Definition and Open Link mouse gestures will adapt such that they do not conflict with the multicursor modifier. [Read more](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:D(new _(62,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[i.a("multiCursorPaste.spread","Each cursor pastes a single line of the text."),i.a("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:i.a("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),occurrencesHighlight:D(new f(63,"occurrencesHighlight",!0,{description:i.a("occurrencesHighlight","Controls whether the editor should highlight semantic symbol occurrences.")})),overviewRulerBorder:D(new f(64,"overviewRulerBorder",!0,{description:i.a("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:D(new g(65,"overviewRulerLanes",3,0,3)),padding:D(new class extends d{constructor(){super(66,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:i.a("padding.top","Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:i.a("padding.bottom","Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{top:g.clampedInt(t.top,0,0,1e3),bottom:g.clampedInt(t.bottom,0,0,1e3)}}}),parameterHints:D(new class extends d{constructor(){const e={enabled:!0,cycle:!1};super(67,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:i.a("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:i.a("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{enabled:f.boolean(t.enabled,this.defaultValue.enabled),cycle:f.boolean(t.cycle,this.defaultValue.cycle)}}}),peekWidgetDefaultFocus:D(new _(68,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[i.a("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),i.a("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:i.a("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),definitionLinkOpensInPeek:D(new f(69,"definitionLinkOpensInPeek",!1,{description:i.a("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:D(new class extends d{constructor(){const e={other:!0,comments:!1,strings:!1};super(70,"quickSuggestions",e,{anyOf:[{type:"boolean"},{type:"object",properties:{strings:{type:"boolean",default:e.strings,description:i.a("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{type:"boolean",default:e.comments,description:i.a("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{type:"boolean",default:e.other,description:i.a("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}}}],default:e,description:i.a("quickSuggestions","Controls whether suggestions should automatically show up while typing.")}),this.defaultValue=e}validate(e){if("boolean"==typeof e)return e;if(e&&"object"==typeof e){const t=e,n={other:f.boolean(t.other,this.defaultValue.other),comments:f.boolean(t.comments,this.defaultValue.comments),strings:f.boolean(t.strings,this.defaultValue.strings)};return!!(n.other&&n.comments&&n.strings)||!!(n.other||n.comments||n.strings)&&n}return this.defaultValue}}),quickSuggestionsDelay:D(new g(71,"quickSuggestionsDelay",10,0,1073741824,{description:i.a("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:D(new f(72,"readOnly",!1)),renameOnType:D(new f(73,"renameOnType",!1,{description:i.a("renameOnType","Controls whether the editor auto renames on type.")})),renderControlCharacters:D(new f(74,"renderControlCharacters",!1,{description:i.a("renderControlCharacters","Controls whether the editor should render control characters.")})),renderIndentGuides:D(new f(75,"renderIndentGuides",!0,{description:i.a("renderIndentGuides","Controls whether the editor should render indent guides.")})),renderFinalNewline:D(new f(76,"renderFinalNewline",!0,{description:i.a("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:D(new _(77,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",i.a("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:i.a("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:D(new f(78,"renderLineHighlightOnlyWhenFocus",!1,{description:i.a("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused")})),renderValidationDecorations:D(new _(79,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:D(new _(80,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",i.a("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),i.a("renderWhitespace.selection","Render whitespace characters only on selected text."),i.a("renderWhitespace.trailing","Render only trailing whitespace characters"),""],description:i.a("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:D(new g(81,"revealHorizontalRightPadding",30,0,1e3)),roundedSelection:D(new f(82,"roundedSelection",!0,{description:i.a("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:D(new class extends d{constructor(){const e=[],t={type:"number",description:i.a("rulers.size","Number of monospace characters at which this editor ruler will render.")};super(83,"rulers",e,{type:"array",items:{anyOf:[t,{type:["object"],properties:{column:t,color:{type:"string",description:i.a("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:i.a("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(e){if(Array.isArray(e)){let t=[];for(let n of e)if("number"==typeof n)t.push({column:g.clampedInt(n,0,0,1e4),color:null});else if(n&&"object"==typeof n){const e=n;t.push({column:g.clampedInt(e.column,0,0,1e4),color:e.color})}return t.sort((e,t)=>e.column-t.column),t}return this.defaultValue}}),scrollbar:D(new class extends d{constructor(){super(84,"scrollbar",{vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e,n=g.clampedInt(t.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),i=g.clampedInt(t.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:g.clampedInt(t.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:k(t.vertical,this.defaultValue.vertical),horizontal:k(t.horizontal,this.defaultValue.horizontal),useShadows:f.boolean(t.useShadows,this.defaultValue.useShadows),verticalHasArrows:f.boolean(t.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:f.boolean(t.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:f.boolean(t.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:f.boolean(t.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:n,horizontalSliderSize:g.clampedInt(t.horizontalSliderSize,n,0,1e3),verticalScrollbarSize:i,verticalSliderSize:g.clampedInt(t.verticalSliderSize,i,0,1e3)}}}),scrollBeyondLastColumn:D(new g(85,"scrollBeyondLastColumn",5,0,1073741824,{description:i.a("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:D(new f(86,"scrollBeyondLastLine",!0,{description:i.a("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:D(new f(87,"scrollPredominantAxis",!0,{description:i.a("scrollPredominantAxis","Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),selectionClipboard:D(new f(88,"selectionClipboard",!0,{description:i.a("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:r.d})),selectionHighlight:D(new f(89,"selectionHighlight",!0,{description:i.a("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:D(new f(90,"selectOnLineNumbers",!0)),showFoldingControls:D(new _(91,"showFoldingControls","mouseover",["always","mouseover"],{enumDescriptions:[i.a("showFoldingControls.always","Always show the folding controls."),i.a("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:i.a("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:D(new f(92,"showUnused",!0,{description:i.a("showUnused","Controls fading out of unused code.")})),showDeprecated:D(new f(113,"showDeprecated",!0,{description:i.a("showDeprecated","Controls strikethrough deprecated variables.")})),snippetSuggestions:D(new _(93,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[i.a("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),i.a("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),i.a("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),i.a("snippetSuggestions.none","Do not show snippet suggestions.")],description:i.a("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smoothScrolling:D(new f(94,"smoothScrolling",!1,{description:i.a("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:D(new g(95,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:D(new class extends d{constructor(){const e={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!0,localityBonus:!1,shareSuggestSelections:!1,showIcons:!0,maxVisibleSuggestions:12,showMethods:!0,showFunctions:!0,showConstructors:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0,statusBar:{visible:!1}};super(96,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[i.a("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),i.a("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:i.a("suggest.insertMode","Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:e.filterGraceful,description:i.a("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:i.a("suggest.localityBonus","Controls whether sorting favours words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:i.a("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:i.a("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:i.a("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.maxVisibleSuggestions":{type:"number",default:e.maxVisibleSuggestions,minimum:1,maximum:15,description:i.a("suggest.maxVisibleSuggestions","Controls how many suggestions IntelliSense will show before showing a scrollbar (maximum 15).")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:i.a("deprecated","This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:i.a("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:i.a("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:i.a("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:i.a("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:i.a("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:i.a("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:i.a("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:i.a("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:i.a("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:i.a("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:i.a("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:i.a("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:i.a("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:i.a("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:i.a("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:i.a("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:i.a("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:i.a("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:i.a("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:i.a("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:i.a("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:i.a("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:i.a("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:i.a("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:i.a("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:i.a("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:i.a("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:i.a("editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")},"editor.suggest.statusBar.visible":{type:"boolean",default:!1,markdownDescription:i.a("editor.suggest.statusBar.visible","Controls the visibility of the status bar at the bottom of the suggest widget.")}})}validate(e){var t;if(!e||"object"!=typeof e)return this.defaultValue;const n=e;return{insertMode:_.stringSet(n.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:f.boolean(n.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:f.boolean(n.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:f.boolean(n.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:f.boolean(n.shareSuggestSelections,this.defaultValue.shareSuggestSelections),showIcons:f.boolean(n.showIcons,this.defaultValue.showIcons),maxVisibleSuggestions:g.clampedInt(n.maxVisibleSuggestions,this.defaultValue.maxVisibleSuggestions,1,15),showMethods:f.boolean(n.showMethods,this.defaultValue.showMethods),showFunctions:f.boolean(n.showFunctions,this.defaultValue.showFunctions),showConstructors:f.boolean(n.showConstructors,this.defaultValue.showConstructors),showFields:f.boolean(n.showFields,this.defaultValue.showFields),showVariables:f.boolean(n.showVariables,this.defaultValue.showVariables),showClasses:f.boolean(n.showClasses,this.defaultValue.showClasses),showStructs:f.boolean(n.showStructs,this.defaultValue.showStructs),showInterfaces:f.boolean(n.showInterfaces,this.defaultValue.showInterfaces),showModules:f.boolean(n.showModules,this.defaultValue.showModules),showProperties:f.boolean(n.showProperties,this.defaultValue.showProperties),showEvents:f.boolean(n.showEvents,this.defaultValue.showEvents),showOperators:f.boolean(n.showOperators,this.defaultValue.showOperators),showUnits:f.boolean(n.showUnits,this.defaultValue.showUnits),showValues:f.boolean(n.showValues,this.defaultValue.showValues),showConstants:f.boolean(n.showConstants,this.defaultValue.showConstants),showEnums:f.boolean(n.showEnums,this.defaultValue.showEnums),showEnumMembers:f.boolean(n.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:f.boolean(n.showKeywords,this.defaultValue.showKeywords),showWords:f.boolean(n.showWords,this.defaultValue.showWords),showColors:f.boolean(n.showColors,this.defaultValue.showColors),showFiles:f.boolean(n.showFiles,this.defaultValue.showFiles),showReferences:f.boolean(n.showReferences,this.defaultValue.showReferences),showFolders:f.boolean(n.showFolders,this.defaultValue.showFolders),showTypeParameters:f.boolean(n.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:f.boolean(n.showSnippets,this.defaultValue.showSnippets),showUsers:f.boolean(n.showUsers,this.defaultValue.showUsers),showIssues:f.boolean(n.showIssues,this.defaultValue.showIssues),statusBar:{visible:f.boolean(null===(t=n.statusBar)||void 0===t?void 0:t.visible,!!this.defaultValue.statusBar.visible)}}}}),suggestFontSize:D(new g(97,"suggestFontSize",0,0,1e3,{markdownDescription:i.a("suggestFontSize","Font size for the suggest widget. When set to `0`, the value of `#editor.fontSize#` is used.")})),suggestLineHeight:D(new g(98,"suggestLineHeight",0,0,1e3,{markdownDescription:i.a("suggestLineHeight","Line height for the suggest widget. When set to `0`, the value of `#editor.lineHeight#` is used.")})),suggestOnTriggerCharacters:D(new f(99,"suggestOnTriggerCharacters",!0,{description:i.a("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:D(new _(100,"suggestSelection","recentlyUsed",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[i.a("suggestSelection.first","Always select the first suggestion."),i.a("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),i.a("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:i.a("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:D(new _(101,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[i.a("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),i.a("tabCompletion.off","Disable tab completions."),i.a("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:i.a("tabCompletion","Enables tab completions.")})),tabIndex:D(new g(102,"tabIndex",0,-1,1073741824)),unusualLineTerminators:D(new _(103,"unusualLineTerminators","prompt",["off","prompt","auto"],{enumDescriptions:[i.a("unusualLineTerminators.off","Unusual line terminators are ignored."),i.a("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed."),i.a("unusualLineTerminators.auto","Unusual line terminators are automatically removed.")],description:i.a("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useTabStops:D(new f(104,"useTabStops",!0,{description:i.a("useTabStops","Inserting and deleting whitespace follows tab stops.")})),wordSeparators:D(new m(105,"wordSeparators",o.b,{description:i.a("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:D(new _(106,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[i.a("wordWrap.off","Lines will never wrap."),i.a("wordWrap.on","Lines will wrap at the viewport width."),i.a({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),i.a({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:i.a({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:D(new m(107,"wordWrapBreakAfterCharacters"," \t})]?|/&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」")),wordWrapBreakBeforeCharacters:D(new m(108,"wordWrapBreakBeforeCharacters","([{‘“〈《「『【〔([{「£¥$£¥++")),wordWrapColumn:D(new g(109,"wordWrapColumn",80,1,1073741824,{markdownDescription:i.a({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapMinified:D(new f(110,"wordWrapMinified",!0)),wrappingIndent:D(new b(111,"wrappingIndent",1,"same",["none","same","indent","deepIndent"],(function(e){switch(e){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}}),{enumDescriptions:[i.a("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),i.a("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),i.a("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),i.a("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:i.a("wrappingIndent","Controls the indentation of wrapped lines.")})),wrappingStrategy:D(new _(112,"wrappingStrategy","simple",["simple","advanced"],{enumDescriptions:[i.a("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),i.a("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],description:i.a("wrappingStrategy","Controls the algorithm that computes wrapping points.")})),editorClassName:D(new class extends u{constructor(){super(114,[57,27])}compute(e,t,n){const i=["monaco-editor"];return t.get(27)&&i.push(t.get(27)),e.extraEditorClassName&&i.push(e.extraEditorClassName),"default"===t.get(57)?i.push("mouse-default"):"copy"===t.get(57)&&i.push("mouse-copy"),t.get(92)&&i.push("showUnused"),t.get(113)&&i.push("showDeprecated"),i.join(" ")}}),pixelRatio:D(new class extends u{constructor(){super(115)}compute(e,t,n){return e.pixelRatio}}),tabFocusMode:D(new class extends u{constructor(){super(116,[72])}compute(e,t,n){return!!t.get(72)||e.tabFocusMode}}),layoutInfo:D(new C),wrappingInfo:D(new class extends u{constructor(){super(118,[117])}compute(e,t,n){const i=t.get(117);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:i.isWordWrapMinified,isViewportWrapping:i.isViewportWrapping,wrappingColumn:i.wrappingColumn}}})}},function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return d}));var i=n(2),r=n(20),o=n(17),s=n(6),a=n(84),l=n(38);const c=Object(o.c)("commandService"),d=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new s.a,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(e,t){if(!e)throw new Error("invalid command");if("string"==typeof e){if(!t)throw new Error("invalid command");return this.registerCommand({id:e,handler:t})}if(e.description){const t=[];for(let n of e.description.args)t.push(n.constraint);const n=e.handler;e.handler=function(e,...i){return Object(r.m)(i,t),n(e,...i)}}const{id:n}=e;let o=this._commands.get(n);o||(o=new a.a,this._commands.set(n,o));let s=o.unshift(e),l=Object(i.h)(()=>{s();const e=this._commands.get(n);(null==e?void 0:e.isEmpty())&&this._commands.delete(n)});return this._onDidRegisterCommand.fire(n),l}registerCommandAlias(e,t){return d.registerCommand(e,(e,...n)=>e.get(c).executeCommand(t,...n))}getCommand(e){const t=this._commands.get(e);if(t&&!t.isEmpty())return l.a.first(t)}getCommands(){const e=new Map;for(const t of this._commands.keys()){const n=this.getCommand(t);n&&e.set(t,n)}return e}}},function(e,t,n){"use strict";var i=n(15),r=n(6),o=n(2),s=n(8),a=n(24),l=n(27),c=n(10),d=n(3),u=n(22),h=n(48),f=n(209);class g{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}}function p(e,t,n,i,r){let o;for(r.spacesDiff=0,r.looksLikeAlignment=!1,o=0;o<t&&o<i;o++){if(e.charCodeAt(o)!==n.charCodeAt(o))break}let s=0,a=0;for(let n=o;n<t;n++){32===e.charCodeAt(n)?s++:a++}let l=0,c=0;for(let e=o;e<i;e++){32===n.charCodeAt(e)?l++:c++}if(s>0&&a>0)return;if(l>0&&c>0)return;let d=Math.abs(a-c),u=Math.abs(s-l);if(0===d)return r.spacesDiff=u,void(u>0&&0<=l-1&&l-1<e.length&&l<n.length&&32!==n.charCodeAt(l)&&32===e.charCodeAt(l-1)&&44===e.charCodeAt(e.length-1)&&(r.looksLikeAlignment=!0));u%d!=0||(r.spacesDiff=u/d)}function m(e,t,n){const i=Math.min(e.getLineCount(),1e4);let r=0,o=0,s="",a=0;const l=[2,4,6,8,3,5,7];let c=[0,0,0,0,0,0,0,0,0],d=new g;for(let l=1;l<=i;l++){let i=e.getLineLength(l),u=e.getLineContent(l);const h=i<=65536;let f=!1,g=0,m=0,_=0;for(let t=0,n=i;t<n;t++){let n=h?u.charCodeAt(t):e.getLineCharCode(l,t);if(9===n)_++;else{if(32!==n){f=!0,g=t;break}m++}}if(!f)continue;if(_>0?r++:m>1&&o++,p(s,a,u,g,d),d.looksLikeAlignment&&(!n||t!==d.spacesDiff))continue;let b=d.spacesDiff;b<=8&&c[b]++,s=u,a=g}let u=n;r!==o&&(u=r<o);let h=t;if(u){let e=u?0:.1*i;l.forEach(t=>{let n=c[t];n>e&&(e=n,h=t)}),4===h&&c[4]>0&&c[2]>0&&c[2]>=c[4]/2&&(h=2)}return{insertSpaces:u,tabSize:h}}function _(e){return(1&e.metadata)>>>0}function b(e,t){e.metadata=254&e.metadata|t<<0}function v(e){return(2&e.metadata)>>>1==1}function y(e,t){e.metadata=253&e.metadata|(t?1:0)<<1}function w(e){return(4&e.metadata)>>>2==1}function C(e,t){e.metadata=251&e.metadata|(t?1:0)<<2}function S(e){return(8&e.metadata)>>>3==1}function k(e,t){e.metadata=247&e.metadata|(t?1:0)<<3}function x(e,t){e.metadata=207&e.metadata|t<<4}function L(e,t){e.metadata=191&e.metadata|(t?1:0)<<6}class M{constructor(e,t,n){this.metadata=0,this.parent=this,this.left=this,this.right=this,b(this,1),this.start=t,this.end=n,this.delta=0,this.maxEnd=n,this.id=e,this.ownerId=0,this.options=null,C(this,!1),x(this,1),k(this,!1),L(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=null,y(this,!1)}reset(e,t,n,i){this.start=t,this.end=n,this.maxEnd=n,this.cachedVersionId=e,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=i}setOptions(e){this.options=e;let t=this.options.className;C(this,"squiggly-error"===t||"squiggly-warning"===t||"squiggly-info"===t),x(this,this.options.stickiness),k(this,!(!this.options.overviewRuler||!this.options.overviewRuler.color)),L(this,this.options.collapseOnReplaceEdit)}setCachedOffsets(e,t,n){this.cachedVersionId!==n&&(this.range=null),this.cachedVersionId=n,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=t}detach(){this.parent=null,this.left=null,this.right=null}}const D=new M(null,0,0);D.parent=D,D.left=D,D.right=D,b(D,0);class E{constructor(){this.root=D,this.requestNormalizeDelta=!1}intervalSearch(e,t,n,i,r){return this.root===D?[]:function(e,t,n,i,r,o){let s=e.root,a=0,l=0,c=0,d=0,u=[],h=0;for(;s!==D;)if(v(s))y(s.left,!1),y(s.right,!1),s===s.parent.right&&(a-=s.parent.delta),s=s.parent;else{if(!v(s.left)){if((l=a+s.maxEnd)<t){y(s,!0);continue}if(s.left!==D){s=s.left;continue}}if((c=a+s.start)>n)y(s,!0);else{if((d=a+s.end)>=t){s.setCachedOffsets(c,d,o);let e=!0;i&&s.ownerId&&s.ownerId!==i&&(e=!1),r&&w(s)&&(e=!1),e&&(u[h++]=s)}y(s,!0),s.right===D||v(s.right)||(a+=s.delta,s=s.right)}}return y(e.root,!1),u}(this,e,t,n,i,r)}search(e,t,n){return this.root===D?[]:function(e,t,n,i){let r=e.root,o=0,s=0,a=0,l=[],c=0;for(;r!==D;){if(v(r)){y(r.left,!1),y(r.right,!1),r===r.parent.right&&(o-=r.parent.delta),r=r.parent;continue}if(r.left!==D&&!v(r.left)){r=r.left;continue}s=o+r.start,a=o+r.end,r.setCachedOffsets(s,a,i);let e=!0;t&&r.ownerId&&r.ownerId!==t&&(e=!1),n&&w(r)&&(e=!1),e&&(l[c++]=r),y(r,!0),r.right===D||v(r.right)||(o+=r.delta,r=r.right)}return y(e.root,!1),l}(this,e,t,n)}collectNodesFromOwner(e){return function(e,t){let n=e.root,i=[],r=0;for(;n!==D;)v(n)?(y(n.left,!1),y(n.right,!1),n=n.parent):n.left===D||v(n.left)?(n.ownerId===t&&(i[r++]=n),y(n,!0),n.right===D||v(n.right)||(n=n.right)):n=n.left;return y(e.root,!1),i}(this,e)}collectNodesPostOrder(){return function(e){let t=e.root,n=[],i=0;for(;t!==D;)v(t)?(y(t.left,!1),y(t.right,!1),t=t.parent):t.left===D||v(t.left)?t.right===D||v(t.right)?(n[i++]=t,y(t,!0)):t=t.right:t=t.left;return y(e.root,!1),n}(this)}insert(e){N(this,e),this._normalizeDeltaIfNecessary()}delete(e){I(this,e),this._normalizeDeltaIfNecessary()}resolveNode(e,t){const n=e;let i=0;for(;e!==this.root;)e===e.parent.right&&(i+=e.parent.delta),e=e.parent;const r=n.start+i,o=n.end+i;n.setCachedOffsets(r,o,t)}acceptReplace(e,t,n,i){const r=function(e,t,n){let i=e.root,r=0,o=0,s=0,a=0,l=[],c=0;for(;i!==D;)if(v(i))y(i.left,!1),y(i.right,!1),i===i.parent.right&&(r-=i.parent.delta),i=i.parent;else{if(!v(i.left)){if((o=r+i.maxEnd)<t){y(i,!0);continue}if(i.left!==D){i=i.left;continue}}(s=r+i.start)>n?y(i,!0):((a=r+i.end)>=t&&(i.setCachedOffsets(s,a,0),l[c++]=i),y(i,!0),i.right===D||v(i.right)||(r+=i.delta,i=i.right))}return y(e.root,!1),l}(this,e,e+t);for(let e=0,t=r.length;e<t;e++){I(this,r[e])}this._normalizeDeltaIfNecessary(),function(e,t,n,i){let r=e.root,o=0,s=0,a=0;const l=i-(n-t);for(;r!==D;)if(v(r))y(r.left,!1),y(r.right,!1),r===r.parent.right&&(o-=r.parent.delta),F(r),r=r.parent;else{if(!v(r.left)){if((s=o+r.maxEnd)<t){y(r,!0);continue}if(r.left!==D){r=r.left;continue}}(a=o+r.start)>n?(r.start+=l,r.end+=l,r.delta+=l,(r.delta<-1073741824||r.delta>1073741824)&&(e.requestNormalizeDelta=!0),y(r,!0)):(y(r,!0),r.right===D||v(r.right)||(o+=r.delta,r=r.right))}y(e.root,!1)}(this,e,e+t,n),this._normalizeDeltaIfNecessary();for(let o=0,s=r.length;o<s;o++){const s=r[o];s.start=s.cachedAbsoluteStart,s.end=s.cachedAbsoluteEnd,O(s,e,e+t,n,i),s.maxEnd=s.end,N(this,s)}this._normalizeDeltaIfNecessary()}_normalizeDeltaIfNecessary(){this.requestNormalizeDelta&&(this.requestNormalizeDelta=!1,function(e){let t=e.root,n=0;for(;t!==D;)t.left===D||v(t.left)?t.right===D||v(t.right)?(t.start=n+t.start,t.end=n+t.end,t.delta=0,F(t),y(t,!0),y(t.left,!1),y(t.right,!1),t===t.parent.right&&(n-=t.parent.delta),t=t.parent):(n+=t.delta,t=t.right):t=t.left;y(e.root,!1)}(this))}}function T(e,t,n,i){return e<n||!(e>n)&&(1!==i&&(2===i||t))}function O(e,t,n,i,r){const o=function(e){return(48&e.metadata)>>>4}(e),s=0===o||2===o,a=1===o||2===o,l=n-t,c=i,d=Math.min(l,c),u=e.start;let h=!1;const f=e.end;let g=!1;t<=u&&f<=n&&function(e){return(64&e.metadata)>>>6==1}(e)&&(e.start=t,h=!0,e.end=t,g=!0);{const e=r?1:l>0?2:0;!h&&T(u,s,t,e)&&(h=!0),!g&&T(f,a,t,e)&&(g=!0)}if(d>0&&!r){const e=l>c?2:0;!h&&T(u,s,t+d,e)&&(h=!0),!g&&T(f,a,t+d,e)&&(g=!0)}{const i=r?1:0;!h&&T(u,s,n,i)&&(e.start=t+c,h=!0),!g&&T(f,a,n,i)&&(e.end=t+c,g=!0)}const p=c-l;h||(e.start=Math.max(0,u+p)),g||(e.end=Math.max(0,f+p)),e.start>e.end&&(e.end=e.start)}function N(e,t){if(e.root===D)return t.parent=D,t.left=D,t.right=D,b(t,0),e.root=t,e.root;!function(e,t){let n=0,i=e.root;const r=t.start,o=t.end;for(;;){if(W(r,o,i.start+n,i.end+n)<0){if(i.left===D){t.start-=n,t.end-=n,t.maxEnd-=n,i.left=t;break}i=i.left}else{if(i.right===D){t.start-=n+i.delta,t.end-=n+i.delta,t.maxEnd-=n+i.delta,i.right=t;break}n+=i.delta,i=i.right}}t.parent=i,t.left=D,t.right=D,b(t,1)}(e,t),B(t.parent);let n=t;for(;n!==e.root&&1===_(n.parent);)if(n.parent===n.parent.parent.left){const t=n.parent.parent.right;1===_(t)?(b(n.parent,0),b(t,0),b(n.parent.parent,1),n=n.parent.parent):(n===n.parent.right&&R(e,n=n.parent),b(n.parent,0),b(n.parent.parent,1),P(e,n.parent.parent))}else{const t=n.parent.parent.left;1===_(t)?(b(n.parent,0),b(t,0),b(n.parent.parent,1),n=n.parent.parent):(n===n.parent.left&&P(e,n=n.parent),b(n.parent,0),b(n.parent.parent,1),R(e,n.parent.parent))}return b(e.root,0),t}function I(e,t){let n,i;if(t.left===D?(i=t,(n=t.right).delta+=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta):t.right===D?(n=t.left,i=t):((n=(i=function(e){for(;e.left!==D;)e=e.left;return e}(t.right)).right).start+=i.delta,n.end+=i.delta,n.delta+=i.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),i.start+=t.delta,i.end+=t.delta,i.delta=t.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0)),i===e.root)return e.root=n,b(n,0),t.detach(),A(),F(n),void(e.root.parent=D);let r,o=1===_(i);if(i===i.parent.left?i.parent.left=n:i.parent.right=n,i===t?n.parent=i.parent:(i.parent===t?n.parent=i:n.parent=i.parent,i.left=t.left,i.right=t.right,i.parent=t.parent,b(i,_(t)),t===e.root?e.root=i:t===t.parent.left?t.parent.left=i:t.parent.right=i,i.left!==D&&(i.left.parent=i),i.right!==D&&(i.right.parent=i)),t.detach(),o)return B(n.parent),i!==t&&(B(i),B(i.parent)),void A();for(B(n),B(n.parent),i!==t&&(B(i),B(i.parent));n!==e.root&&0===_(n);)n===n.parent.left?(1===_(r=n.parent.right)&&(b(r,0),b(n.parent,1),R(e,n.parent),r=n.parent.right),0===_(r.left)&&0===_(r.right)?(b(r,1),n=n.parent):(0===_(r.right)&&(b(r.left,0),b(r,1),P(e,r),r=n.parent.right),b(r,_(n.parent)),b(n.parent,0),b(r.right,0),R(e,n.parent),n=e.root)):(1===_(r=n.parent.left)&&(b(r,0),b(n.parent,1),P(e,n.parent),r=n.parent.left),0===_(r.left)&&0===_(r.right)?(b(r,1),n=n.parent):(0===_(r.left)&&(b(r.right,0),b(r,1),R(e,r),r=n.parent.left),b(r,_(n.parent)),b(n.parent,0),b(r.left,0),P(e,n.parent),n=e.root));b(n,0),A()}function A(){D.parent=D,D.delta=0,D.start=0,D.end=0}function R(e,t){const n=t.right;n.delta+=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta,t.right=n.left,n.left!==D&&(n.left.parent=t),n.parent=t.parent,t.parent===D?e.root=n:t===t.parent.left?t.parent.left=n:t.parent.right=n,n.left=t,t.parent=n,F(t),F(n)}function P(e,t){const n=t.left;t.delta-=n.delta,(t.delta<-1073741824||t.delta>1073741824)&&(e.requestNormalizeDelta=!0),t.start-=n.delta,t.end-=n.delta,t.left=n.right,n.right!==D&&(n.right.parent=t),n.parent=t.parent,t.parent===D?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,n.right=t,t.parent=n,F(t),F(n)}function j(e){let t=e.end;if(e.left!==D){const n=e.left.maxEnd;n>t&&(t=n)}if(e.right!==D){const n=e.right.maxEnd+e.delta;n>t&&(t=n)}return t}function F(e){e.maxEnd=j(e)}function B(e){for(;e!==D;){const t=j(e);if(e.maxEnd===t)return;e.maxEnd=t,e=e.parent}}function W(e,t,n,i){return e===n?t-i:e-n}class H{constructor(e,t){this.piece=e,this.color=t,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}next(){if(this.right!==Y)return V(this.right);let e=this;for(;e.parent!==Y&&e.parent.left!==e;)e=e.parent;return e.parent===Y?Y:e.parent}prev(){if(this.left!==Y)return z(this.left);let e=this;for(;e.parent!==Y&&e.parent.right!==e;)e=e.parent;return e.parent===Y?Y:e.parent}detach(){this.parent=null,this.left=null,this.right=null}}const Y=new H(null,0);function V(e){for(;e.left!==Y;)e=e.left;return e}function z(e){for(;e.right!==Y;)e=e.right;return e}function U(e){return e===Y?0:e.size_left+e.piece.length+U(e.right)}function $(e){return e===Y?0:e.lf_left+e.piece.lineFeedCnt+$(e.right)}function q(){Y.parent=Y}function K(e,t){let n=t.right;n.size_left+=t.size_left+(t.piece?t.piece.length:0),n.lf_left+=t.lf_left+(t.piece?t.piece.lineFeedCnt:0),t.right=n.left,n.left!==Y&&(n.left.parent=t),n.parent=t.parent,t.parent===Y?e.root=n:t.parent.left===t?t.parent.left=n:t.parent.right=n,n.left=t,t.parent=n}function G(e,t){let n=t.left;t.left=n.right,n.right!==Y&&(n.right.parent=t),n.parent=t.parent,t.size_left-=n.size_left+(n.piece?n.piece.length:0),t.lf_left-=n.lf_left+(n.piece?n.piece.lineFeedCnt:0),t.parent===Y?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,n.right=t,t.parent=n}function Z(e,t){let n,i;if(n=t.left===Y?(i=t).right:t.right===Y?(i=t).left:(i=V(t.right)).right,i===e.root)return e.root=n,n.color=0,t.detach(),q(),void(e.root.parent=Y);let r,o=1===i.color;if(i===i.parent.left?i.parent.left=n:i.parent.right=n,i===t?(n.parent=i.parent,Q(e,n)):(i.parent===t?n.parent=i:n.parent=i.parent,Q(e,n),i.left=t.left,i.right=t.right,i.parent=t.parent,i.color=t.color,t===e.root?e.root=i:t===t.parent.left?t.parent.left=i:t.parent.right=i,i.left!==Y&&(i.left.parent=i),i.right!==Y&&(i.right.parent=i),i.size_left=t.size_left,i.lf_left=t.lf_left,Q(e,i)),t.detach(),n.parent.left===n){let t=U(n),i=$(n);if(t!==n.parent.size_left||i!==n.parent.lf_left){let r=t-n.parent.size_left,o=i-n.parent.lf_left;n.parent.size_left=t,n.parent.lf_left=i,X(e,n.parent,r,o)}}if(Q(e,n.parent),o)q();else{for(;n!==e.root&&0===n.color;)n===n.parent.left?(1===(r=n.parent.right).color&&(r.color=0,n.parent.color=1,K(e,n.parent),r=n.parent.right),0===r.left.color&&0===r.right.color?(r.color=1,n=n.parent):(0===r.right.color&&(r.left.color=0,r.color=1,G(e,r),r=n.parent.right),r.color=n.parent.color,n.parent.color=0,r.right.color=0,K(e,n.parent),n=e.root)):(1===(r=n.parent.left).color&&(r.color=0,n.parent.color=1,G(e,n.parent),r=n.parent.left),0===r.left.color&&0===r.right.color?(r.color=1,n=n.parent):(0===r.left.color&&(r.right.color=0,r.color=1,K(e,r),r=n.parent.left),r.color=n.parent.color,n.parent.color=0,r.left.color=0,G(e,n.parent),n=e.root));n.color=0,q()}}function J(e,t){for(Q(e,t);t!==e.root&&1===t.parent.color;)if(t.parent===t.parent.parent.left){const n=t.parent.parent.right;1===n.color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.right&&K(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,G(e,t.parent.parent))}else{const n=t.parent.parent.left;1===n.color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.left&&G(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,K(e,t.parent.parent))}e.root.color=0}function X(e,t,n,i){for(;t!==e.root&&t!==Y;)t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=i),t=t.parent}function Q(e,t){let n=0,i=0;if(t!==e.root){if(0===n){for(;t!==e.root&&t===t.parent.right;)t=t.parent;if(t===e.root)return;n=U((t=t.parent).left)-t.size_left,i=$(t.left)-t.lf_left,t.size_left+=n,t.lf_left+=i}for(;t!==e.root&&(0!==n||0!==i);)t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=i),t=t.parent}}Y.parent=Y,Y.left=Y,Y.right=Y,Y.color=0;var ee=n(96);const te=65535;function ne(e){let t;return(t=e[e.length-1]<65536?new Uint16Array(e.length):new Uint32Array(e.length)).set(e,0),t}class ie{constructor(e,t,n,i,r){this.lineStarts=e,this.cr=t,this.lf=n,this.crlf=i,this.isBasicASCII=r}}function re(e,t=!0){let n=[0],i=1;for(let t=0,r=e.length;t<r;t++){const o=e.charCodeAt(t);13===o?t+1<r&&10===e.charCodeAt(t+1)?(n[i++]=t+2,t++):n[i++]=t+1:10===o&&(n[i++]=t+1)}return t?ne(n):n}class oe{constructor(e,t,n,i,r){this.bufferIndex=e,this.start=t,this.end=n,this.lineFeedCnt=i,this.length=r}}class se{constructor(e,t){this.buffer=e,this.lineStarts=t}}class ae{constructor(e,t){this._pieces=[],this._tree=e,this._BOM=t,this._index=0,e.root!==Y&&e.iterate(e.root,e=>(e!==Y&&this._pieces.push(e.piece),!0))}read(){return 0===this._pieces.length?0===this._index?(this._index++,this._BOM):null:this._index>this._pieces.length-1?null:0===this._index?this._BOM+this._tree.getPieceContent(this._pieces[this._index++]):this._tree.getPieceContent(this._pieces[this._index++])}}class le{constructor(e){this._limit=e,this._cache=[]}get(e){for(let t=this._cache.length-1;t>=0;t--){let n=this._cache[t];if(n.nodeStartOffset<=e&&n.nodeStartOffset+n.node.piece.length>=e)return n}return null}get2(e){for(let t=this._cache.length-1;t>=0;t--){let n=this._cache[t];if(n.nodeStartLineNumber&&n.nodeStartLineNumber<e&&n.nodeStartLineNumber+n.node.piece.lineFeedCnt>=e)return n}return null}set(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)}validate(e){let t=!1,n=this._cache;for(let i=0;i<n.length;i++){let r=n[i];(null===r.node.parent||r.nodeStartOffset>=e)&&(n[i]=null,t=!0)}if(t){let e=[];for(const t of n)null!==t&&e.push(t);this._cache=e}}}class ce{constructor(e,t,n){this.create(e,t,n)}create(e,t,n){this._buffers=[new se("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=Y,this._lineCnt=1,this._length=0,this._EOL=t,this._EOLLength=t.length,this._EOLNormalized=n;let i=null;for(let t=0,n=e.length;t<n;t++)if(e[t].buffer.length>0){e[t].lineStarts||(e[t].lineStarts=re(e[t].buffer));let n=new oe(t+1,{line:0,column:0},{line:e[t].lineStarts.length-1,column:e[t].buffer.length-e[t].lineStarts[e[t].lineStarts.length-1]},e[t].lineStarts.length-1,e[t].buffer.length);this._buffers.push(e[t]),i=this.rbInsertRight(i,n)}this._searchCache=new le(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()}normalizeEOL(e){let t=te,n=t-Math.floor(t/3),i=2*n,r="",o=0,s=[];if(this.iterate(this.root,t=>{let a=this.getNodeContent(t),l=a.length;if(o<=n||o+l<i)return r+=a,o+=l,!0;let c=r.replace(/\r\n|\r|\n/g,e);return s.push(new se(c,re(c))),r=a,o=l,!0}),o>0){let t=r.replace(/\r\n|\r|\n/g,e);s.push(new se(t,re(t)))}this.create(s,e,!0)}getEOL(){return this._EOL}setEOL(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)}createSnapshot(e){return new ae(this,e)}getOffsetAt(e,t){let n=0,i=this.root;for(;i!==Y;)if(i.left!==Y&&i.lf_left+1>=e)i=i.left;else{if(i.lf_left+i.piece.lineFeedCnt+1>=e){return(n+=i.size_left)+(this.getAccumulatedValue(i,e-i.lf_left-2)+t-1)}e-=i.lf_left+i.piece.lineFeedCnt,n+=i.size_left+i.piece.length,i=i.right}return n}getPositionAt(e){e=Math.floor(e),e=Math.max(0,e);let t=this.root,n=0,i=e;for(;t!==Y;)if(0!==t.size_left&&t.size_left>=e)t=t.left;else{if(t.size_left+t.piece.length>=e){let r=this.getIndexOf(t,e-t.size_left);if(n+=t.lf_left+r.index,0===r.index){let e=i-this.getOffsetAt(n+1,1);return new c.a(n+1,e+1)}return new c.a(n+1,r.remainder+1)}if(e-=t.size_left+t.piece.length,n+=t.lf_left+t.piece.lineFeedCnt,t.right===Y){let t=i-e-this.getOffsetAt(n+1,1);return new c.a(n+1,t+1)}t=t.right}return new c.a(1,1)}getValueInRange(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";let n=this.nodeAt2(e.startLineNumber,e.startColumn),i=this.nodeAt2(e.endLineNumber,e.endColumn),r=this.getValueInRange2(n,i);return t?t===this._EOL&&this._EOLNormalized&&t===this.getEOL()&&this._EOLNormalized?r:r.replace(/\r\n|\r|\n/g,t):r}getValueInRange2(e,t){if(e.node===t.node){let n=e.node,i=this._buffers[n.piece.bufferIndex].buffer,r=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return i.substring(r+e.remainder,r+t.remainder)}let n=e.node,i=this._buffers[n.piece.bufferIndex].buffer,r=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start),o=i.substring(r+e.remainder,r+n.piece.length);for(n=n.next();n!==Y;){let e=this._buffers[n.piece.bufferIndex].buffer,i=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);if(n===t.node){o+=e.substring(i,i+t.remainder);break}o+=e.substr(i,n.piece.length),n=n.next()}return o}getLinesContent(){let e=[],t=0,n="",i=!1;return this.iterate(this.root,r=>{if(r===Y)return!0;const o=r.piece;let s=o.length;if(0===s)return!0;const a=this._buffers[o.bufferIndex].buffer,l=this._buffers[o.bufferIndex].lineStarts,c=o.start.line,d=o.end.line;let u=l[c]+o.start.column;if(i&&(10===a.charCodeAt(u)&&(u++,s--),e[t++]=n,n="",i=!1,0===s))return!0;if(c===d)return this._EOLNormalized||13!==a.charCodeAt(u+s-1)?n+=a.substr(u,s):(i=!0,n+=a.substr(u,s-1)),!0;n+=this._EOLNormalized?a.substring(u,Math.max(u,l[c+1]-this._EOLLength)):a.substring(u,l[c+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=n;for(let i=c+1;i<d;i++)n=this._EOLNormalized?a.substring(l[i],l[i+1]-this._EOLLength):a.substring(l[i],l[i+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=n;return this._EOLNormalized||13!==a.charCodeAt(l[d]+o.end.column-1)?n=a.substr(l[d],o.end.column):(i=!0,0===o.end.column?t--:n=a.substr(l[d],o.end.column-1)),!0}),i&&(e[t++]=n,n=""),e[t++]=n,e}getLength(){return this._length}getLineCount(){return this._lineCnt}getLineContent(e){return this._lastVisitedLine.lineNumber===e?this._lastVisitedLine.value:(this._lastVisitedLine.lineNumber=e,e===this._lineCnt?this._lastVisitedLine.value=this.getLineRawContent(e):this._EOLNormalized?this._lastVisitedLine.value=this.getLineRawContent(e,this._EOLLength):this._lastVisitedLine.value=this.getLineRawContent(e).replace(/(\r\n|\r|\n)$/,""),this._lastVisitedLine.value)}_getCharCode(e){if(e.remainder===e.node.piece.length){let t=e.node.next();if(!t)return 0;let n=this._buffers[t.piece.bufferIndex],i=this.offsetInBuffer(t.piece.bufferIndex,t.piece.start);return n.buffer.charCodeAt(i)}{let t=this._buffers[e.node.piece.bufferIndex],n=this.offsetInBuffer(e.node.piece.bufferIndex,e.node.piece.start)+e.remainder;return t.buffer.charCodeAt(n)}}getLineCharCode(e,t){let n=this.nodeAt2(e,t+1);return this._getCharCode(n)}getLineLength(e){if(e===this.getLineCount()){let t=this.getOffsetAt(e,1);return this.getLength()-t}return this.getOffsetAt(e+1,1)-this.getOffsetAt(e,1)-this._EOLLength}findMatchesInNode(e,t,n,i,r,o,s,a,l,c,u){let h,f,g,p=this._buffers[e.piece.bufferIndex],m=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start),_=this.offsetInBuffer(e.piece.bufferIndex,r),b=this.offsetInBuffer(e.piece.bufferIndex,o),v={line:0,column:0};t._wordSeparators?(f=p.buffer.substring(_,b),g=e=>e+_,t.reset(0)):(f=p.buffer,g=e=>e,t.reset(_));do{if(h=t.next(f)){if(g(h.index)>=b)return c;this.positionInBuffer(e,g(h.index)-m,v);let t=this.getLineFeedCnt(e.piece.bufferIndex,r,v),o=v.line===r.line?v.column-r.column+i:v.column+1,s=o+h[0].length;if(u[c++]=Object(ee.d)(new d.a(n+t,o,n+t,s),h,a),g(h.index)+h[0].length>=b)return c;if(c>=l)return c}}while(h);return c}findMatchesLineByLine(e,t,n,i){const r=[];let o=0;const s=new ee.b(t.wordSeparators,t.regex);let a=this.nodeAt2(e.startLineNumber,e.startColumn);if(null===a)return[];let l=this.nodeAt2(e.endLineNumber,e.endColumn);if(null===l)return[];let c=this.positionInBuffer(a.node,a.remainder),d=this.positionInBuffer(l.node,l.remainder);if(a.node===l.node)return this.findMatchesInNode(a.node,s,e.startLineNumber,e.startColumn,c,d,t,n,i,o,r),r;let u=e.startLineNumber,h=a.node;for(;h!==l.node;){let l=this.getLineFeedCnt(h.piece.bufferIndex,c,h.piece.end);if(l>=1){let a=this._buffers[h.piece.bufferIndex].lineStarts,d=this.offsetInBuffer(h.piece.bufferIndex,h.piece.start),f=a[c.line+l],g=u===e.startLineNumber?e.startColumn:1;if((o=this.findMatchesInNode(h,s,u,g,c,this.positionInBuffer(h,f-d),t,n,i,o,r))>=i)return r;u+=l}let d=u===e.startLineNumber?e.startColumn-1:0;if(u===e.endLineNumber){const a=this.getLineContent(u).substring(d,e.endColumn-1);return o=this._findMatchesInLine(t,s,a,e.endLineNumber,d,o,r,n,i),r}if((o=this._findMatchesInLine(t,s,this.getLineContent(u).substr(d),u,d,o,r,n,i))>=i)return r;u++,h=(a=this.nodeAt2(u,1)).node,c=this.positionInBuffer(a.node,a.remainder)}if(u===e.endLineNumber){let a=u===e.startLineNumber?e.startColumn-1:0;const l=this.getLineContent(u).substring(a,e.endColumn-1);return o=this._findMatchesInLine(t,s,l,e.endLineNumber,a,o,r,n,i),r}let f=u===e.startLineNumber?e.startColumn:1;return o=this.findMatchesInNode(l.node,s,u,f,c,d,t,n,i,o,r),r}_findMatchesInLine(e,t,n,i,r,o,s,a,l){const c=e.wordSeparators;if(!a&&e.simpleSearch){const t=e.simpleSearch,a=t.length,u=n.length;let f=-a;for(;-1!==(f=n.indexOf(t,f+a));)if((!c||Object(ee.e)(c,n,u,f,a))&&(s[o++]=new h.b(new d.a(i,f+1+r,i,f+1+a+r),null),o>=l))return o;return o}let u;t.reset(0);do{if((u=t.next(n))&&(s[o++]=Object(ee.d)(new d.a(i,u.index+1+r,i,u.index+1+u[0].length+r),u,a),o>=l))return o}while(u);return o}insert(e,t,n=!1){if(this._EOLNormalized=this._EOLNormalized&&n,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==Y){let{node:n,remainder:i,nodeStartOffset:r}=this.nodeAt(e),o=n.piece,s=o.bufferIndex,a=this.positionInBuffer(n,i);if(0===n.piece.bufferIndex&&o.end.line===this._lastChangeBufferPos.line&&o.end.column===this._lastChangeBufferPos.column&&r+o.length===e&&t.length<te)return this.appendToNode(n,t),void this.computeBufferMetadata();if(r===e)this.insertContentToNodeLeft(t,n),this._searchCache.validate(e);else if(r+n.piece.length>e){let e=[],r=new oe(o.bufferIndex,a,o.end,this.getLineFeedCnt(o.bufferIndex,a,o.end),this.offsetInBuffer(s,o.end)-this.offsetInBuffer(s,a));if(this.shouldCheckCRLF()&&this.endWithCR(t)){if(10===this.nodeCharCodeAt(n,i)){let e={line:r.start.line+1,column:0};r=new oe(r.bufferIndex,e,r.end,this.getLineFeedCnt(r.bufferIndex,e,r.end),r.length-1),t+="\n"}}if(this.shouldCheckCRLF()&&this.startWithLF(t)){if(13===this.nodeCharCodeAt(n,i-1)){let r=this.positionInBuffer(n,i-1);this.deleteNodeTail(n,r),t="\r"+t,0===n.piece.length&&e.push(n)}else this.deleteNodeTail(n,a)}else this.deleteNodeTail(n,a);let l=this.createNewPieces(t);r.length>0&&this.rbInsertRight(n,r);let c=n;for(let e=0;e<l.length;e++)c=this.rbInsertRight(c,l[e]);this.deleteNodes(e)}else this.insertContentToNodeRight(t,n)}else{let e=this.createNewPieces(t),n=this.rbInsertLeft(null,e[0]);for(let t=1;t<e.length;t++)n=this.rbInsertRight(n,e[t])}this.computeBufferMetadata()}delete(e,t){if(this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",t<=0||this.root===Y)return;let n=this.nodeAt(e),i=this.nodeAt(e+t),r=n.node,o=i.node;if(r===o){let o=this.positionInBuffer(r,n.remainder),s=this.positionInBuffer(r,i.remainder);if(n.nodeStartOffset===e){if(t===r.piece.length){let e=r.next();return Z(this,r),this.validateCRLFWithPrevNode(e),void this.computeBufferMetadata()}return this.deleteNodeHead(r,s),this._searchCache.validate(e),this.validateCRLFWithPrevNode(r),void this.computeBufferMetadata()}return n.nodeStartOffset+r.piece.length===e+t?(this.deleteNodeTail(r,o),this.validateCRLFWithNextNode(r),void this.computeBufferMetadata()):(this.shrinkNode(r,o,s),void this.computeBufferMetadata())}let s=[],a=this.positionInBuffer(r,n.remainder);this.deleteNodeTail(r,a),this._searchCache.validate(e),0===r.piece.length&&s.push(r);let l=this.positionInBuffer(o,i.remainder);this.deleteNodeHead(o,l),0===o.piece.length&&s.push(o);for(let e=r.next();e!==Y&&e!==o;e=e.next())s.push(e);let c=0===r.piece.length?r.prev():r;this.deleteNodes(s),this.validateCRLFWithNextNode(c),this.computeBufferMetadata()}insertContentToNodeLeft(e,t){let n=[];if(this.shouldCheckCRLF()&&this.endWithCR(e)&&this.startWithLF(t)){let i=t.piece,r={line:i.start.line+1,column:0},o=new oe(i.bufferIndex,r,i.end,this.getLineFeedCnt(i.bufferIndex,r,i.end),i.length-1);t.piece=o,e+="\n",X(this,t,-1,-1),0===t.piece.length&&n.push(t)}let i=this.createNewPieces(e),r=this.rbInsertLeft(t,i[i.length-1]);for(let e=i.length-2;e>=0;e--)r=this.rbInsertLeft(r,i[e]);this.validateCRLFWithPrevNode(r),this.deleteNodes(n)}insertContentToNodeRight(e,t){this.adjustCarriageReturnFromNext(e,t)&&(e+="\n");let n=this.createNewPieces(e),i=this.rbInsertRight(t,n[0]),r=i;for(let e=1;e<n.length;e++)r=this.rbInsertRight(r,n[e]);this.validateCRLFWithPrevNode(i)}positionInBuffer(e,t,n){let i=e.piece,r=e.piece.bufferIndex,o=this._buffers[r].lineStarts,s=o[i.start.line]+i.start.column+t,a=i.start.line,l=i.end.line,c=0,d=0,u=0;for(;a<=l&&(u=o[c=a+(l-a)/2|0],c!==l);)if(d=o[c+1],s<u)l=c-1;else{if(!(s>=d))break;a=c+1}return n?(n.line=c,n.column=s-u,null):{line:c,column:s-u}}getLineFeedCnt(e,t,n){if(0===n.column)return n.line-t.line;let i=this._buffers[e].lineStarts;if(n.line===i.length-1)return n.line-t.line;let r=i[n.line+1],o=i[n.line]+n.column;if(r>o+1)return n.line-t.line;let s=o-1;return 13===this._buffers[e].buffer.charCodeAt(s)?n.line-t.line+1:n.line-t.line}offsetInBuffer(e,t){return this._buffers[e].lineStarts[t.line]+t.column}deleteNodes(e){for(let t=0;t<e.length;t++)Z(this,e[t])}createNewPieces(e){if(e.length>te){let t=[];for(;e.length>te;){const n=e.charCodeAt(te-1);let i;13===n||n>=55296&&n<=56319?(i=e.substring(0,te-1),e=e.substring(te-1)):(i=e.substring(0,te),e=e.substring(te));let r=re(i);t.push(new oe(this._buffers.length,{line:0,column:0},{line:r.length-1,column:i.length-r[r.length-1]},r.length-1,i.length)),this._buffers.push(new se(i,r))}let n=re(e);return t.push(new oe(this._buffers.length,{line:0,column:0},{line:n.length-1,column:e.length-n[n.length-1]},n.length-1,e.length)),this._buffers.push(new se(e,n)),t}let t=this._buffers[0].buffer.length;const n=re(e,!1);let i=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===t&&0!==t&&this.startWithLF(e)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},i=this._lastChangeBufferPos;for(let e=0;e<n.length;e++)n[e]+=t+1;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(n.slice(1)),this._buffers[0].buffer+="_"+e,t+=1}else{if(0!==t)for(let e=0;e<n.length;e++)n[e]+=t;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(n.slice(1)),this._buffers[0].buffer+=e}const r=this._buffers[0].buffer.length;let o=this._buffers[0].lineStarts.length-1,s={line:o,column:r-this._buffers[0].lineStarts[o]},a=new oe(0,i,s,this.getLineFeedCnt(0,i,s),r-t);return this._lastChangeBufferPos=s,[a]}getLineRawContent(e,t=0){let n=this.root,i="",r=this._searchCache.get2(e);if(r){n=r.node;let o=this.getAccumulatedValue(n,e-r.nodeStartLineNumber-1),s=this._buffers[n.piece.bufferIndex].buffer,a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);if(r.nodeStartLineNumber+n.piece.lineFeedCnt!==e){let i=this.getAccumulatedValue(n,e-r.nodeStartLineNumber);return s.substring(a+o,a+i-t)}i=s.substring(a+o,a+n.piece.length)}else{let r=0;const o=e;for(;n!==Y;)if(n.left!==Y&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){let i=this.getAccumulatedValue(n,e-n.lf_left-2),s=this.getAccumulatedValue(n,e-n.lf_left-1),a=this._buffers[n.piece.bufferIndex].buffer,l=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return r+=n.size_left,this._searchCache.set({node:n,nodeStartOffset:r,nodeStartLineNumber:o-(e-1-n.lf_left)}),a.substring(l+i,l+s-t)}if(n.lf_left+n.piece.lineFeedCnt===e-1){let t=this.getAccumulatedValue(n,e-n.lf_left-2),r=this._buffers[n.piece.bufferIndex].buffer,o=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);i=r.substring(o+t,o+n.piece.length);break}e-=n.lf_left+n.piece.lineFeedCnt,r+=n.size_left+n.piece.length,n=n.right}}for(n=n.next();n!==Y;){let e=this._buffers[n.piece.bufferIndex].buffer;if(n.piece.lineFeedCnt>0){let r=this.getAccumulatedValue(n,0),o=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return i+=e.substring(o,o+r-t)}{let t=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);i+=e.substr(t,n.piece.length)}n=n.next()}return i}computeBufferMetadata(){let e=this.root,t=1,n=0;for(;e!==Y;)t+=e.lf_left+e.piece.lineFeedCnt,n+=e.size_left+e.piece.length,e=e.right;this._lineCnt=t,this._length=n,this._searchCache.validate(this._length)}getIndexOf(e,t){let n=e.piece,i=this.positionInBuffer(e,t),r=i.line-n.start.line;if(this.offsetInBuffer(n.bufferIndex,n.end)-this.offsetInBuffer(n.bufferIndex,n.start)===t){let t=this.getLineFeedCnt(e.piece.bufferIndex,n.start,i);if(t!==r)return{index:t,remainder:0}}return{index:r,remainder:i.column}}getAccumulatedValue(e,t){if(t<0)return 0;let n=e.piece,i=this._buffers[n.bufferIndex].lineStarts,r=n.start.line+t+1;return r>n.end.line?i[n.end.line]+n.end.column-i[n.start.line]-n.start.column:i[r]-i[n.start.line]-n.start.column}deleteNodeTail(e,t){const n=e.piece,i=n.lineFeedCnt,r=this.offsetInBuffer(n.bufferIndex,n.end),o=t,s=this.offsetInBuffer(n.bufferIndex,o),a=this.getLineFeedCnt(n.bufferIndex,n.start,o),l=a-i,c=s-r,d=n.length+c;e.piece=new oe(n.bufferIndex,n.start,o,a,d),X(this,e,c,l)}deleteNodeHead(e,t){const n=e.piece,i=n.lineFeedCnt,r=this.offsetInBuffer(n.bufferIndex,n.start),o=t,s=this.getLineFeedCnt(n.bufferIndex,o,n.end),a=s-i,l=r-this.offsetInBuffer(n.bufferIndex,o),c=n.length+l;e.piece=new oe(n.bufferIndex,o,n.end,s,c),X(this,e,l,a)}shrinkNode(e,t,n){const i=e.piece,r=i.start,o=i.end,s=i.length,a=i.lineFeedCnt,l=t,c=this.getLineFeedCnt(i.bufferIndex,i.start,l),d=this.offsetInBuffer(i.bufferIndex,t)-this.offsetInBuffer(i.bufferIndex,r);e.piece=new oe(i.bufferIndex,i.start,l,c,d),X(this,e,d-s,c-a);let u=new oe(i.bufferIndex,n,o,this.getLineFeedCnt(i.bufferIndex,n,o),this.offsetInBuffer(i.bufferIndex,o)-this.offsetInBuffer(i.bufferIndex,n)),h=this.rbInsertRight(e,u);this.validateCRLFWithPrevNode(h)}appendToNode(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+="\n");const n=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e),i=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;const r=re(t,!1);for(let e=0;e<r.length;e++)r[e]+=i;if(n){let e=this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-2];this._buffers[0].lineStarts.pop(),this._lastChangeBufferPos={line:this._lastChangeBufferPos.line-1,column:i-e}}this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(r.slice(1));const o=this._buffers[0].lineStarts.length-1,s={line:o,column:this._buffers[0].buffer.length-this._buffers[0].lineStarts[o]},a=e.piece.length+t.length,l=e.piece.lineFeedCnt,c=this.getLineFeedCnt(0,e.piece.start,s),d=c-l;e.piece=new oe(e.piece.bufferIndex,e.piece.start,s,c,a),this._lastChangeBufferPos=s,X(this,e,t.length,d)}nodeAt(e){let t=this.root,n=this._searchCache.get(e);if(n)return{node:n.node,nodeStartOffset:n.nodeStartOffset,remainder:e-n.nodeStartOffset};let i=0;for(;t!==Y;)if(t.size_left>e)t=t.left;else{if(t.size_left+t.piece.length>=e){i+=t.size_left;let n={node:t,remainder:e-t.size_left,nodeStartOffset:i};return this._searchCache.set(n),n}e-=t.size_left+t.piece.length,i+=t.size_left+t.piece.length,t=t.right}return null}nodeAt2(e,t){let n=this.root,i=0;for(;n!==Y;)if(n.left!==Y&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){let r=this.getAccumulatedValue(n,e-n.lf_left-2),o=this.getAccumulatedValue(n,e-n.lf_left-1);return i+=n.size_left,{node:n,remainder:Math.min(r+t-1,o),nodeStartOffset:i}}if(n.lf_left+n.piece.lineFeedCnt===e-1){let r=this.getAccumulatedValue(n,e-n.lf_left-2);if(r+t-1<=n.piece.length)return{node:n,remainder:r+t-1,nodeStartOffset:i};t-=n.piece.length-r;break}e-=n.lf_left+n.piece.lineFeedCnt,i+=n.size_left+n.piece.length,n=n.right}for(n=n.next();n!==Y;){if(n.piece.lineFeedCnt>0){let e=this.getAccumulatedValue(n,0),i=this.offsetOfNode(n);return{node:n,remainder:Math.min(t-1,e),nodeStartOffset:i}}if(n.piece.length>=t-1){return{node:n,remainder:t-1,nodeStartOffset:this.offsetOfNode(n)}}t-=n.piece.length,n=n.next()}return null}nodeCharCodeAt(e,t){if(e.piece.lineFeedCnt<1)return-1;let n=this._buffers[e.piece.bufferIndex],i=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return n.buffer.charCodeAt(i)}offsetOfNode(e){if(!e)return 0;let t=e.size_left;for(;e!==this.root;)e.parent.right===e&&(t+=e.parent.size_left+e.parent.piece.length),e=e.parent;return t}shouldCheckCRLF(){return!(this._EOLNormalized&&"\n"===this._EOL)}startWithLF(e){if("string"==typeof e)return 10===e.charCodeAt(0);if(e===Y||0===e.piece.lineFeedCnt)return!1;let t=e.piece,n=this._buffers[t.bufferIndex].lineStarts,i=t.start.line,r=n[i]+t.start.column;return i!==n.length-1&&(!(n[i+1]>r+1)&&10===this._buffers[t.bufferIndex].buffer.charCodeAt(r))}endWithCR(e){return"string"==typeof e?13===e.charCodeAt(e.length-1):e!==Y&&0!==e.piece.lineFeedCnt&&13===this.nodeCharCodeAt(e,e.piece.length-1)}validateCRLFWithPrevNode(e){if(this.shouldCheckCRLF()&&this.startWithLF(e)){let t=e.prev();this.endWithCR(t)&&this.fixCRLF(t,e)}}validateCRLFWithNextNode(e){if(this.shouldCheckCRLF()&&this.endWithCR(e)){let t=e.next();this.startWithLF(t)&&this.fixCRLF(e,t)}}fixCRLF(e,t){let n,i=[],r=this._buffers[e.piece.bufferIndex].lineStarts;n=0===e.piece.end.column?{line:e.piece.end.line-1,column:r[e.piece.end.line]-r[e.piece.end.line-1]-1}:{line:e.piece.end.line,column:e.piece.end.column-1};const o=e.piece.length-1,s=e.piece.lineFeedCnt-1;e.piece=new oe(e.piece.bufferIndex,e.piece.start,n,s,o),X(this,e,-1,-1),0===e.piece.length&&i.push(e);let a={line:t.piece.start.line+1,column:0};const l=t.piece.length-1,c=this.getLineFeedCnt(t.piece.bufferIndex,a,t.piece.end);t.piece=new oe(t.piece.bufferIndex,a,t.piece.end,c,l),X(this,t,-1,-1),0===t.piece.length&&i.push(t);let d=this.createNewPieces("\r\n");this.rbInsertRight(e,d[0]);for(let e=0;e<i.length;e++)Z(this,i[e])}adjustCarriageReturnFromNext(e,t){if(this.shouldCheckCRLF()&&this.endWithCR(e)){let n=t.next();if(this.startWithLF(n)){if(e+="\n",1===n.piece.length)Z(this,n);else{const e=n.piece,t={line:e.start.line+1,column:0},i=e.length-1,r=this.getLineFeedCnt(e.bufferIndex,t,e.end);n.piece=new oe(e.bufferIndex,t,e.end,r,i),X(this,n,-1,-1)}return!0}}return!1}iterate(e,t){if(e===Y)return t(Y);let n=this.iterate(e.left,t);return n?t(e)&&this.iterate(e.right,t):n}getNodeContent(e){if(e===Y)return"";let t,n=this._buffers[e.piece.bufferIndex],i=e.piece,r=this.offsetInBuffer(i.bufferIndex,i.start),o=this.offsetInBuffer(i.bufferIndex,i.end);return t=n.buffer.substring(r,o)}getPieceContent(e){let t=this._buffers[e.bufferIndex],n=this.offsetInBuffer(e.bufferIndex,e.start),i=this.offsetInBuffer(e.bufferIndex,e.end);return t.buffer.substring(n,i)}rbInsertRight(e,t){let n=new H(t,1);if(n.left=Y,n.right=Y,n.parent=Y,n.size_left=0,n.lf_left=0,this.root===Y)this.root=n,n.color=0;else if(e.right===Y)e.right=n,n.parent=e;else{let t=V(e.right);t.left=n,n.parent=t}return J(this,n),n}rbInsertLeft(e,t){let n=new H(t,1);if(n.left=Y,n.right=Y,n.parent=Y,n.size_left=0,n.lf_left=0,this.root===Y)this.root=n,n.color=0;else if(e.left===Y)e.left=n,n.parent=e;else{let t=z(e.left);t.right=n,n.parent=t}return J(this,n),n}}var de=n(113),ue=n(227);class he{constructor(e,t,n,i,o,s,a){this._onDidChangeContent=new r.a,this._BOM=t,this._mightContainNonBasicASCII=!s,this._mightContainRTL=i,this._mightContainUnusualLineTerminators=o,this._pieceTree=new ce(e,n,a)}dispose(){this._onDidChangeContent.dispose()}mightContainRTL(){return this._mightContainRTL}mightContainUnusualLineTerminators(){return this._mightContainUnusualLineTerminators}resetMightContainUnusualLineTerminators(){this._mightContainUnusualLineTerminators=!1}mightContainNonBasicASCII(){return this._mightContainNonBasicASCII}getBOM(){return this._BOM}getEOL(){return this._pieceTree.getEOL()}createSnapshot(e){return this._pieceTree.createSnapshot(e?this._BOM:"")}getOffsetAt(e,t){return this._pieceTree.getOffsetAt(e,t)}getPositionAt(e){return this._pieceTree.getPositionAt(e)}getRangeAt(e,t){let n=e+t;const i=this.getPositionAt(e),r=this.getPositionAt(n);return new d.a(i.lineNumber,i.column,r.lineNumber,r.column)}getValueInRange(e,t=0){if(e.isEmpty())return"";const n=this._getEndOfLine(t);return this._pieceTree.getValueInRange(e,n)}getValueLengthInRange(e,t=0){if(e.isEmpty())return 0;if(e.startLineNumber===e.endLineNumber)return e.endColumn-e.startColumn;let n=this.getOffsetAt(e.startLineNumber,e.startColumn);return this.getOffsetAt(e.endLineNumber,e.endColumn)-n}getCharacterCountInRange(e,t=0){if(this._mightContainNonBasicASCII){let n=0;const i=e.startLineNumber,r=e.endLineNumber;for(let t=i;t<=r;t++){const o=this.getLineContent(t),a=t===i?e.startColumn-1:0,l=t===r?e.endColumn-1:o.length;for(let e=a;e<l;e++)s.F(o.charCodeAt(e))?(n+=1,e+=1):n+=1}return n+=this._getEndOfLine(t).length*(r-i)}return this.getValueLengthInRange(e,t)}getLength(){return this._pieceTree.getLength()}getLineCount(){return this._pieceTree.getLineCount()}getLinesContent(){return this._pieceTree.getLinesContent()}getLineContent(e){return this._pieceTree.getLineContent(e)}getLineCharCode(e,t){return this._pieceTree.getLineCharCode(e,t)}getLineLength(e){return this._pieceTree.getLineLength(e)}getLineFirstNonWhitespaceColumn(e){const t=s.w(this.getLineContent(e));return-1===t?0:t+1}getLineLastNonWhitespaceColumn(e){const t=s.J(this.getLineContent(e));return-1===t?0:t+2}_getEndOfLine(e){switch(e){case 1:return"\n";case 2:return"\r\n";case 0:return this.getEOL();default:throw new Error("Unknown EOL preference")}}setEOL(e){this._pieceTree.setEOL(e)}applyEdits(e,t,n){let i=this._mightContainRTL,r=this._mightContainUnusualLineTerminators,o=this._mightContainNonBasicASCII,a=!0,l=[];for(let t=0;t<e.length;t++){let n=e[t];a&&n._isTracked&&(a=!1);let c=n.range;if(n.text){let e=!0;o||(o=e=!s.B(n.text)),!i&&e&&(i=s.m(n.text)),!r&&e&&(r=s.n(n.text))}let d="",u=0,h=0,f=0;if(n.text){let e;[u,h,f,e]=Object(de.f)(n.text);const t=this.getEOL(),i="\r\n"===t?2:1;d=0===e||e===i?n.text:n.text.replace(/\r\n|\r|\n/g,t)}l[t]={sortIndex:t,identifier:n.identifier||null,range:c,rangeOffset:this.getOffsetAt(c.startLineNumber,c.startColumn),rangeLength:this.getValueLengthInRange(c),text:d,eolCount:u,firstLineLength:h,lastLineLength:f,forceMoveMarkers:Boolean(n.forceMoveMarkers),isAutoWhitespaceEdit:n.isAutoWhitespaceEdit||!1}}l.sort(he._sortOpsAscending);let c=!1;for(let e=0,t=l.length-1;e<t;e++){let t=l[e].range.getEndPosition(),n=l[e+1].range.getStartPosition();if(n.isBeforeOrEqual(t)){if(n.isBefore(t))throw new Error("Overlapping ranges are not allowed!");c=!0}}a&&(l=this._reduceOperations(l));let d=n||t?he._getInverseEditRanges(l):[],u=[];if(t)for(let e=0;e<l.length;e++){let t=l[e],n=d[e];if(t.isAutoWhitespaceEdit&&t.range.isEmpty())for(let e=n.startLineNumber;e<=n.endLineNumber;e++){let i="";e===n.startLineNumber&&(i=this.getLineContent(t.range.startLineNumber),-1!==s.w(i))||u.push({lineNumber:e,oldContent:i})}}let f=null;if(n){let e=0;f=[];for(let t=0;t<l.length;t++){const n=l[t],i=d[t],r=this.getValueInRange(n.range),o=n.rangeOffset+e;e+=n.text.length-r.length,f[t]={sortIndex:n.sortIndex,identifier:n.identifier,range:i,text:r,textChange:new ue.a(n.rangeOffset,r,o,n.text)}}c||f.sort((e,t)=>e.sortIndex-t.sortIndex)}this._mightContainRTL=i,this._mightContainUnusualLineTerminators=r,this._mightContainNonBasicASCII=o;const g=this._doApplyEdits(l);let p=null;if(t&&u.length>0){u.sort((e,t)=>t.lineNumber-e.lineNumber),p=[];for(let e=0,t=u.length;e<t;e++){let t=u[e].lineNumber;if(e>0&&u[e-1].lineNumber===t)continue;let n=u[e].oldContent,i=this.getLineContent(t);0!==i.length&&i!==n&&-1===s.w(i)&&p.push(t)}}return this._onDidChangeContent.fire(),new h.a(f,g,p)}_reduceOperations(e){return e.length<1e3?e:[this._toSingleEditOperation(e)]}_toSingleEditOperation(e){let t=!1;const n=e[0].range,i=e[e.length-1].range,r=new d.a(n.startLineNumber,n.startColumn,i.endLineNumber,i.endColumn);let o=n.startLineNumber,s=n.startColumn;const a=[];for(let n=0,i=e.length;n<i;n++){const i=e[n],r=i.range;t=t||i.forceMoveMarkers,a.push(this.getValueInRange(new d.a(o,s,r.startLineNumber,r.startColumn))),i.text.length>0&&a.push(i.text),o=r.endLineNumber,s=r.endColumn}const l=a.join(""),[c,u,h]=Object(de.f)(l);return{sortIndex:0,identifier:e[0].identifier,range:r,rangeOffset:this.getOffsetAt(r.startLineNumber,r.startColumn),rangeLength:this.getValueLengthInRange(r,0),text:l,eolCount:c,firstLineLength:u,lastLineLength:h,forceMoveMarkers:t,isAutoWhitespaceEdit:!1}}_doApplyEdits(e){e.sort(he._sortOpsDescending);let t=[];for(let n=0;n<e.length;n++){let i=e[n];const r=i.range.startLineNumber,o=i.range.startColumn,s=i.range.endLineNumber,a=i.range.endColumn;if(r===s&&o===a&&0===i.text.length)continue;i.text?(this._pieceTree.delete(i.rangeOffset,i.rangeLength),this._pieceTree.insert(i.rangeOffset,i.text,!0)):this._pieceTree.delete(i.rangeOffset,i.rangeLength);const l=new d.a(r,o,s,a);t.push({range:l,rangeLength:i.rangeLength,text:i.text,rangeOffset:i.rangeOffset,forceMoveMarkers:i.forceMoveMarkers})}return t}findMatchesLineByLine(e,t,n,i){return this._pieceTree.findMatchesLineByLine(e,t,n,i)}static _getInverseEditRanges(e){let t=[],n=0,i=0,r=null;for(let o=0,s=e.length;o<s;o++){let s,a,l,c=e[o];if(r?r.range.endLineNumber===c.range.startLineNumber?(s=n,a=i+(c.range.startColumn-r.range.endColumn)):(s=n+(c.range.startLineNumber-r.range.endLineNumber),a=c.range.startColumn):(s=c.range.startLineNumber,a=c.range.startColumn),c.text.length>0){const e=c.eolCount+1;l=1===e?new d.a(s,a,s,a+c.firstLineLength):new d.a(s,a,s+e-1,c.lastLineLength+1)}else l=new d.a(s,a,s,a);n=l.endLineNumber,i=l.endColumn,t.push(l),r=c}return t}static _sortOpsAscending(e,t){let n=d.a.compareRangesUsingEnds(e.range,t.range);return 0===n?e.sortIndex-t.sortIndex:n}static _sortOpsDescending(e,t){let n=d.a.compareRangesUsingEnds(e.range,t.range);return 0===n?t.sortIndex-e.sortIndex:-n}}class fe{constructor(e,t,n,i,r,o,s,a,l){this._chunks=e,this._bom=t,this._cr=n,this._lf=i,this._crlf=r,this._containsRTL=o,this._containsUnusualLineTerminators=s,this._isBasicASCII=a,this._normalizeEOL=l}_getEOL(e){const t=this._cr+this._lf+this._crlf,n=this._cr+this._crlf;return 0===t?1===e?"\n":"\r\n":n>t/2?"\r\n":"\n"}create(e){const t=this._getEOL(e);let n=this._chunks;if(this._normalizeEOL&&("\r\n"===t&&(this._cr>0||this._lf>0)||"\n"===t&&(this._cr>0||this._crlf>0)))for(let e=0,i=n.length;e<i;e++){let i=n[e].buffer.replace(/\r\n|\r|\n/g,t),r=re(i);n[e]=new se(i,r)}return new he(n,this._bom,t,this._containsRTL,this._containsUnusualLineTerminators,this._isBasicASCII,this._normalizeEOL)}}class ge{constructor(){this.chunks=[],this.BOM="",this._hasPreviousChar=!1,this._previousChar=0,this._tmpLineStarts=[],this.cr=0,this.lf=0,this.crlf=0,this.containsRTL=!1,this.containsUnusualLineTerminators=!1,this.isBasicASCII=!0}acceptChunk(e){if(0===e.length)return;0===this.chunks.length&&s.U(e)&&(this.BOM=s.b,e=e.substr(1));const t=e.charCodeAt(e.length-1);13===t||t>=55296&&t<=56319?(this._acceptChunk1(e.substr(0,e.length-1),!1),this._hasPreviousChar=!0,this._previousChar=t):(this._acceptChunk1(e,!1),this._hasPreviousChar=!1,this._previousChar=t)}_acceptChunk1(e,t){(t||0!==e.length)&&(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+e):this._acceptChunk2(e))}_acceptChunk2(e){const t=function(e,t){e.length=0,e[0]=0;let n=1,i=0,r=0,o=0,s=!0;for(let a=0,l=t.length;a<l;a++){const c=t.charCodeAt(a);13===c?a+1<l&&10===t.charCodeAt(a+1)?(o++,e[n++]=a+2,a++):(i++,e[n++]=a+1):10===c?(r++,e[n++]=a+1):s&&9!==c&&(c<32||c>126)&&(s=!1)}const a=new ie(ne(e),i,r,o,s);return e.length=0,a}(this._tmpLineStarts,e);this.chunks.push(new se(e,t.lineStarts)),this.cr+=t.cr,this.lf+=t.lf,this.crlf+=t.crlf,this.isBasicASCII&&(this.isBasicASCII=t.isBasicASCII),this.isBasicASCII||this.containsRTL||(this.containsRTL=s.m(e)),this.isBasicASCII||this.containsUnusualLineTerminators||(this.containsUnusualLineTerminators=s.n(e))}finish(e=!0){return this._finish(),new fe(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.containsUnusualLineTerminators,this.isBasicASCII,e)}_finish(){if(0===this.chunks.length&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;let e=this.chunks[this.chunks.length-1];e.buffer+=String.fromCharCode(this._previousChar);let t=re(e.buffer);e.lineStarts=t,13===this._previousChar&&this.cr++}}}class pe{constructor(){this.changeType=1}}class me{constructor(e,t){this.changeType=2,this.lineNumber=e,this.detail=t}}class _e{constructor(e,t){this.changeType=3,this.fromLineNumber=e,this.toLineNumber=t}}class be{constructor(e,t,n){this.changeType=4,this.fromLineNumber=e,this.toLineNumber=t,this.detail=n}}class ve{constructor(){this.changeType=5}}class ye{constructor(e,t,n,i){this.changes=e,this.versionId=t,this.isUndoing=n,this.isRedoing=i,this.resultingSelection=null}containsEvent(e){for(let t=0,n=this.changes.length;t<n;t++){if(this.changes[t].changeType===e)return!0}return!1}static merge(e,t){const n=[].concat(e.changes).concat(t.changes),i=t.versionId,r=e.isUndoing||t.isUndoing,o=e.isRedoing||t.isRedoing;return new ye(n,i,r,o)}}class we{constructor(e,t){this.rawContentChangedEvent=e,this.contentChangedEvent=t}merge(e){const t=ye.merge(this.rawContentChangedEvent,e.rawContentChangedEvent),n=we._mergeChangeEvents(this.contentChangedEvent,e.contentChangedEvent);return new we(t,n)}static _mergeChangeEvents(e,t){return{changes:[].concat(e.changes).concat(t.changes),eol:t.eol,versionId:t.versionId,isUndoing:e.isUndoing||t.isUndoing,isRedoing:e.isRedoing||t.isRedoing,isFlush:e.isFlush||t.isFlush}}}var Ce=n(14),Se=n(99),ke=n(11),xe=n(78),Le=n(169),Me=n(12);class De{constructor(){this._beginState=[],this._valid=[],this._len=0,this._invalidLineStartIndex=0}_reset(e){this._beginState=[],this._valid=[],this._len=0,this._invalidLineStartIndex=0,e&&this._setBeginState(0,e)}flush(e){this._reset(e)}get invalidLineStartIndex(){return this._invalidLineStartIndex}_invalidateLine(e){e<this._len&&(this._valid[e]=!1),e<this._invalidLineStartIndex&&(this._invalidLineStartIndex=e)}_isValid(e){return e<this._len&&this._valid[e]}getBeginState(e){return e<this._len?this._beginState[e]:null}_ensureLine(e){for(;e>=this._len;)this._beginState[this._len]=null,this._valid[this._len]=!1,this._len++}_deleteLines(e,t){0!==t&&(e+t>this._len&&(t=this._len-e),this._beginState.splice(e,t),this._valid.splice(e,t),this._len-=t)}_insertLines(e,t){if(0===t)return;let n=[],i=[];for(let e=0;e<t;e++)n[e]=null,i[e]=!1;this._beginState=Ce.a(this._beginState,e,n),this._valid=Ce.a(this._valid,e,i),this._len+=t}_setValid(e,t){this._ensureLine(e),this._valid[e]=t}_setBeginState(e,t){this._ensureLine(e),this._beginState[e]=t}setEndState(e,t,n){if(this._setValid(t,!0),this._invalidLineStartIndex=t+1,t===e-1)return;const i=this.getBeginState(t+1);if(null===i||!n.equals(i))return this._setBeginState(t+1,n),void this._invalidateLine(t+1);let r=t+1;for(;r<e&&this._isValid(r);)r++;this._invalidLineStartIndex=r}setFakeTokens(e){this._setValid(e,!1)}applyEdits(e,t){const n=e.endLineNumber-e.startLineNumber,i=t;for(let t=Math.min(n,i);t>=0;t--)this._invalidateLine(e.startLineNumber+t-1);this._acceptDeleteRange(e),this._acceptInsertText(new c.a(e.startLineNumber,e.startColumn),t)}_acceptDeleteRange(e){e.startLineNumber-1>=this._len||this._deleteLines(e.startLineNumber,e.endLineNumber-e.startLineNumber)}_acceptInsertText(e,t){e.lineNumber-1>=this._len||this._insertLines(e.lineNumber,t)}}class Ee extends o.a{constructor(e){super(),this._isDisposed=!1,this._textModel=e,this._tokenizationStateStore=new De,this._tokenizationSupport=null,this._register(ke.C.onDidChange(e=>{const t=this._textModel.getLanguageIdentifier();-1!==e.changedLanguages.indexOf(t.language)&&(this._resetTokenizationState(),this._textModel.clearTokens())})),this._register(this._textModel.onDidChangeRawContentFast(e=>{e.containsEvent(1)&&this._resetTokenizationState()})),this._register(this._textModel.onDidChangeContentFast(e=>{for(let t=0,n=e.changes.length;t<n;t++){const n=e.changes[t],[i]=Object(de.f)(n.text);this._tokenizationStateStore.applyEdits(n.range,i)}this._beginBackgroundTokenization()})),this._register(this._textModel.onDidChangeAttached(()=>{this._beginBackgroundTokenization()})),this._register(this._textModel.onDidChangeLanguage(()=>{this._resetTokenizationState(),this._textModel.clearTokens()})),this._resetTokenizationState()}dispose(){this._isDisposed=!0,super.dispose()}_resetTokenizationState(){const[e,t]=function(e){const t=e.getLanguageIdentifier();let n=e.isTooLargeForTokenization()?null:ke.C.get(t.language),r=null;if(n)try{r=n.getInitialState()}catch(e){Object(i.e)(e),n=null}return[n,r]}(this._textModel);this._tokenizationSupport=e,this._tokenizationStateStore.flush(t),this._beginBackgroundTokenization()}_beginBackgroundTokenization(){this._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&Me.j(()=>{this._isDisposed||this._revalidateTokensNow()})}_revalidateTokensNow(e=this._textModel.getLineCount()){const t=new de.b,n=Le.a.create(!1);for(;this._hasLinesToTokenize()&&!(n.elapsed()>1);){if(this._tokenizeOneInvalidLine(t)>=e)break}this._beginBackgroundTokenization(),this._textModel.setTokens(t.tokens)}tokenizeViewport(e,t){const n=new de.b;this._tokenizeViewport(n,e,t),this._textModel.setTokens(n.tokens)}reset(){this._resetTokenizationState(),this._textModel.clearTokens()}forceTokenization(e){const t=new de.b;this._updateTokensUntilLine(t,e),this._textModel.setTokens(t.tokens)}isCheapToTokenize(e){if(!this._tokenizationSupport)return!0;const t=this._tokenizationStateStore.invalidLineStartIndex+1;return!(e>t)&&(e<t||this._textModel.getLineLength(e)<2048)}_hasLinesToTokenize(){return!!this._tokenizationSupport&&this._tokenizationStateStore.invalidLineStartIndex<this._textModel.getLineCount()}_tokenizeOneInvalidLine(e){if(!this._hasLinesToTokenize())return this._textModel.getLineCount()+1;const t=this._tokenizationStateStore.invalidLineStartIndex+1;return this._updateTokensUntilLine(e,t),t}_updateTokensUntilLine(e,t){if(!this._tokenizationSupport)return;const n=this._textModel.getLanguageIdentifier(),i=this._textModel.getLineCount(),r=t-1;for(let t=this._tokenizationStateStore.invalidLineStartIndex;t<=r;t++){const r=this._textModel.getLineContent(t+1),o=this._tokenizationStateStore.getBeginState(t),s=Te(n,this._tokenizationSupport,r,o);e.add(t+1,s.tokens),this._tokenizationStateStore.setEndState(i,t,s.endState),t=this._tokenizationStateStore.invalidLineStartIndex-1}}_tokenizeViewport(e,t,n){if(!this._tokenizationSupport)return;if(n<=this._tokenizationStateStore.invalidLineStartIndex)return;if(t<=this._tokenizationStateStore.invalidLineStartIndex)return void this._updateTokensUntilLine(e,n);let i=this._textModel.getLineFirstNonWhitespaceColumn(t),r=[],o=null;for(let e=t-1;i>0&&e>=1;e--){let t=this._textModel.getLineFirstNonWhitespaceColumn(e);if(0!==t&&t<i){if(o=this._tokenizationStateStore.getBeginState(e-1))break;r.push(this._textModel.getLineContent(e)),i=t}}o||(o=this._tokenizationSupport.getInitialState());const s=this._textModel.getLanguageIdentifier();let a=o;for(let e=r.length-1;e>=0;e--){a=Te(s,this._tokenizationSupport,r[e],a).endState}for(let i=t;i<=n;i++){let t=this._textModel.getLineContent(i),n=Te(s,this._tokenizationSupport,t,a);e.add(i,n.tokens),this._tokenizationStateStore.setFakeTokens(i-1),a=n.endState}}}function Te(e,t,n,r){let o=null;if(t)try{o=t.tokenize2(n,r.clone(),0)}catch(e){Object(i.e)(e)}return o||(o=Object(xe.e)(e.id,n,r,0)),Se.a.convertToEndOffset(o.tokens,n.length),o}var Oe=n(138),Ne=n(32),Ie=n(102),Ae=n(107),Re=n(13);function Pe(e){const t=new ge;return t.acceptChunk(e),t.finish()}function je(e,t){return("string"==typeof e?Pe(e):e).create(t)}n.d(t,"b",(function(){return Ue})),n.d(t,"a",(function(){return Je}));let Fe=0;const Be=999,We=1e4;class He{constructor(e){this._source=e,this._eos=!1}read(){if(this._eos)return null;let e=[],t=0,n=0;for(;;){let i=this._source.read();if(null===i)return this._eos=!0,0===t?null:e.join("");if(i.length>0&&(e[t++]=i,n+=i.length),n>=65536)return e.join("")}}}const Ye=()=>{throw new Error("Invalid change accessor")};class Ve{constructor(){this._searchCanceledBrand=void 0}}function ze(e){return e instanceof Ve?null:e}Ve.INSTANCE=new Ve;class Ue extends o.a{constructor(e,t,n,i=null,o){super(),this._onWillDispose=this._register(new r.a),this.onWillDispose=this._onWillDispose.event,this._onDidChangeDecorations=this._register(new et),this.onDidChangeDecorations=this._onDidChangeDecorations.event,this._onDidChangeLanguage=this._register(new r.a),this.onDidChangeLanguage=this._onDidChangeLanguage.event,this._onDidChangeLanguageConfiguration=this._register(new r.a),this.onDidChangeLanguageConfiguration=this._onDidChangeLanguageConfiguration.event,this._onDidChangeTokens=this._register(new r.a),this.onDidChangeTokens=this._onDidChangeTokens.event,this._onDidChangeOptions=this._register(new r.a),this.onDidChangeOptions=this._onDidChangeOptions.event,this._onDidChangeAttached=this._register(new r.a),this.onDidChangeAttached=this._onDidChangeAttached.event,this._eventEmitter=this._register(new tt),Fe++,this.id="$model"+Fe,this.isForSimpleWidget=t.isForSimpleWidget,this._associatedResource=null==i?a.a.parse("inmemory://model/"+Fe):i,this._undoRedoService=o,this._attachedEditorCount=0,this._buffer=je(e,t.defaultEOL),this._options=Ue.resolveOptions(this._buffer,t);const l=this._buffer.getLineCount(),c=this._buffer.getValueLengthInRange(new d.a(1,1,l,this._buffer.getLineLength(l)+1),0);t.largeFileOptimizations?this._isTooLargeForTokenization=c>Ue.LARGE_FILE_SIZE_THRESHOLD||l>Ue.LARGE_FILE_LINE_COUNT_THRESHOLD:this._isTooLargeForTokenization=!1,this._isTooLargeForSyncing=c>Ue.MODEL_SYNC_LIMIT,this._versionId=1,this._alternativeVersionId=1,this._initialUndoRedoSnapshot=null,this._isDisposed=!1,this._isDisposing=!1,this._languageIdentifier=n||xe.a,this._languageRegistryListener=Ne.a.onDidChange(e=>{e.languageIdentifier.id===this._languageIdentifier.id&&this._onDidChangeLanguageConfiguration.fire({})}),this._instanceId=s.R(Fe),this._lastDecorationId=0,this._decorations=Object.create(null),this._decorationsTree=new $e,this._commandManager=new f.a(this,o),this._isUndoing=!1,this._isRedoing=!1,this._trimAutoWhitespaceLines=null,this._tokens=new de.d,this._tokens2=new de.e,this._tokenization=new Ee(this)}static resolveOptions(e,t){if(t.detectIndentation){const n=m(e,t.tabSize,t.insertSpaces);return new h.e({tabSize:n.tabSize,indentSize:n.tabSize,insertSpaces:n.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL})}return new h.e({tabSize:t.tabSize,indentSize:t.indentSize,insertSpaces:t.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL})}onDidChangeRawContentFast(e){return this._eventEmitter.fastEvent(t=>e(t.rawContentChangedEvent))}onDidChangeContentFast(e){return this._eventEmitter.fastEvent(t=>e(t.contentChangedEvent))}onDidChangeContent(e){return this._eventEmitter.slowEvent(t=>e(t.contentChangedEvent))}dispose(){this._isDisposing=!0,this._onWillDispose.fire(),this._languageRegistryListener.dispose(),this._tokenization.dispose(),this._isDisposed=!0,super.dispose(),this._isDisposing=!1}_assertNotDisposed(){if(this._isDisposed)throw new Error("Model is disposed!")}_emitContentChangedEvent(e,t){this._isDisposing||this._eventEmitter.fire(new we(e,t))}setValue(e){if(this._assertNotDisposed(),null===e)return;const t=je(e,this._options.defaultEOL);this.setValueFromTextBuffer(t)}_createContentChanged2(e,t,n,i,r,o,s){return{changes:[{range:e,rangeOffset:t,rangeLength:n,text:i}],eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:r,isRedoing:o,isFlush:s}}setValueFromTextBuffer(e){if(this._assertNotDisposed(),null===e)return;const t=this.getFullModelRange(),n=this.getValueLengthInRange(t),i=this.getLineCount(),r=this.getLineMaxColumn(i);this._buffer=e,this._increaseVersionId(),this._tokens.flush(),this._tokens2.flush(),this._decorations=Object.create(null),this._decorationsTree=new $e,this._commandManager.clear(),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new ye([new pe],this._versionId,!1,!1),this._createContentChanged2(new d.a(1,1,i,r),0,n,this.getValue(),!1,!1,!0))}setEOL(e){this._assertNotDisposed();const t=1===e?"\r\n":"\n";if(this._buffer.getEOL()===t)return;const n=this.getFullModelRange(),i=this.getValueLengthInRange(n),r=this.getLineCount(),o=this.getLineMaxColumn(r);this._onBeforeEOLChange(),this._buffer.setEOL(t),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new ye([new ve],this._versionId,!1,!1),this._createContentChanged2(new d.a(1,1,r,o),0,i,this.getValue(),!1,!1,!1))}_onBeforeEOLChange(){const e=this.getVersionId(),t=this._decorationsTree.search(0,!1,!1,e);this._ensureNodesHaveRanges(t)}_onAfterEOLChange(){const e=this.getVersionId(),t=this._decorationsTree.collectNodesPostOrder();for(let n=0,i=t.length;n<i;n++){const i=t[n],r=i.cachedAbsoluteStart-i.start,o=this._buffer.getOffsetAt(i.range.startLineNumber,i.range.startColumn),s=this._buffer.getOffsetAt(i.range.endLineNumber,i.range.endColumn);i.cachedAbsoluteStart=o,i.cachedAbsoluteEnd=s,i.cachedVersionId=e,i.start=o-r,i.end=s-r,F(i)}}onBeforeAttached(){this._attachedEditorCount++,1===this._attachedEditorCount&&this._onDidChangeAttached.fire(void 0)}onBeforeDetached(){this._attachedEditorCount--,0===this._attachedEditorCount&&this._onDidChangeAttached.fire(void 0)}isAttachedToEditor(){return this._attachedEditorCount>0}getAttachedEditorCount(){return this._attachedEditorCount}isTooLargeForSyncing(){return this._isTooLargeForSyncing}isTooLargeForTokenization(){return this._isTooLargeForTokenization}isDisposed(){return this._isDisposed}isDominatedByLongLines(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;let e=0,t=0;const n=this._buffer.getLineCount();for(let i=1;i<=n;i++){const n=this._buffer.getLineLength(i);n>=We?t+=n:e+=n}return t>e}get uri(){return this._associatedResource}getOptions(){return this._assertNotDisposed(),this._options}getFormattingOptions(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}}updateOptions(e){this._assertNotDisposed();let t=void 0!==e.tabSize?e.tabSize:this._options.tabSize,n=void 0!==e.indentSize?e.indentSize:this._options.indentSize,i=void 0!==e.insertSpaces?e.insertSpaces:this._options.insertSpaces,r=void 0!==e.trimAutoWhitespace?e.trimAutoWhitespace:this._options.trimAutoWhitespace,o=new h.e({tabSize:t,indentSize:n,insertSpaces:i,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:r});if(this._options.equals(o))return;let s=this._options.createChangeEvent(o);this._options=o,this._onDidChangeOptions.fire(s)}detectIndentation(e,t){this._assertNotDisposed();let n=m(this._buffer,t,e);this.updateOptions({insertSpaces:n.insertSpaces,tabSize:n.tabSize,indentSize:n.tabSize})}static _normalizeIndentationFromWhitespace(e,t,n){let i=0;for(let n=0;n<e.length;n++)"\t"===e.charAt(n)?i+=t:i++;let r="";if(!n){let e=Math.floor(i/t);i%=t;for(let t=0;t<e;t++)r+="\t"}for(let e=0;e<i;e++)r+=" ";return r}static normalizeIndentation(e,t,n){let i=s.w(e);return-1===i&&(i=e.length),Ue._normalizeIndentationFromWhitespace(e.substring(0,i),t,n)+e.substring(i)}normalizeIndentation(e){return this._assertNotDisposed(),Ue.normalizeIndentation(e,this._options.indentSize,this._options.insertSpaces)}getVersionId(){return this._assertNotDisposed(),this._versionId}mightContainRTL(){return this._buffer.mightContainRTL()}mightContainUnusualLineTerminators(){return this._buffer.mightContainUnusualLineTerminators()}removeUnusualLineTerminators(e=null){const t=this.findMatches(s.a.source,!1,!0,!1,null,!1,1073741824);this._buffer.resetMightContainUnusualLineTerminators(),this.pushEditOperations(e,t.map(e=>({range:e.range,text:null})),()=>null)}mightContainNonBasicASCII(){return this._buffer.mightContainNonBasicASCII()}getAlternativeVersionId(){return this._assertNotDisposed(),this._alternativeVersionId}getOffsetAt(e){this._assertNotDisposed();let t=this._validatePosition(e.lineNumber,e.column,0);return this._buffer.getOffsetAt(t.lineNumber,t.column)}getPositionAt(e){this._assertNotDisposed();let t=Math.min(this._buffer.getLength(),Math.max(0,e));return this._buffer.getPositionAt(t)}_increaseVersionId(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId}_overwriteVersionId(e){this._versionId=e}_overwriteAlternativeVersionId(e){this._alternativeVersionId=e}_overwriteInitialUndoRedoSnapshot(e){this._initialUndoRedoSnapshot=e}getValue(e,t=!1){this._assertNotDisposed();const n=this.getFullModelRange(),i=this.getValueInRange(n,e);return t?this._buffer.getBOM()+i:i}createSnapshot(e=!1){return new He(this._buffer.createSnapshot(e))}getValueLength(e,t=!1){this._assertNotDisposed();const n=this.getFullModelRange(),i=this.getValueLengthInRange(n,e);return t?this._buffer.getBOM().length+i:i}getValueInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(e),t)}getValueLengthInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(e),t)}getCharacterCountInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(e),t)}getLineCount(){return this._assertNotDisposed(),this._buffer.getLineCount()}getLineContent(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineContent(e)}getLineLength(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(e)}getLinesContent(){return this._assertNotDisposed(),this._buffer.getLinesContent()}getEOL(){return this._assertNotDisposed(),this._buffer.getEOL()}getLineMinColumn(e){return this._assertNotDisposed(),1}getLineMaxColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(e)+1}getLineFirstNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(e)}getLineLastNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(e)}_validateRangeRelaxedNoAllocations(e){const t=this._buffer.getLineCount(),n=e.startLineNumber,i=e.startColumn;let r,o;if(n<1)r=1,o=1;else if(n>t)r=t,o=this.getLineMaxColumn(r);else if(r=0|n,i<=1)o=1;else{const e=this.getLineMaxColumn(r);o=i>=e?e:0|i}const s=e.endLineNumber,a=e.endColumn;let l,c;if(s<1)l=1,c=1;else if(s>t)l=t,c=this.getLineMaxColumn(l);else if(l=0|s,a<=1)c=1;else{const e=this.getLineMaxColumn(l);c=a>=e?e:0|a}return n===r&&i===o&&s===l&&a===c&&e instanceof d.a&&!(e instanceof u.a)?e:new d.a(r,o,l,c)}_isValidPosition(e,t,n){if("number"!=typeof e||"number"!=typeof t)return!1;if(isNaN(e)||isNaN(t))return!1;if(e<1||t<1)return!1;if((0|e)!==e||(0|t)!==t)return!1;if(e>this._buffer.getLineCount())return!1;if(1===t)return!0;if(t>this.getLineMaxColumn(e))return!1;if(1===n){const n=this._buffer.getLineCharCode(e,t-2);if(s.F(n))return!1}return!0}_validatePosition(e,t,n){const i=Math.floor("number"!=typeof e||isNaN(e)?1:e),r=Math.floor("number"!=typeof t||isNaN(t)?1:t),o=this._buffer.getLineCount();if(i<1)return new c.a(1,1);if(i>o)return new c.a(o,this.getLineMaxColumn(o));if(r<=1)return new c.a(i,1);const a=this.getLineMaxColumn(i);if(r>=a)return new c.a(i,a);if(1===n){const e=this._buffer.getLineCharCode(i,r-2);if(s.F(e))return new c.a(i,r-1)}return new c.a(i,r)}validatePosition(e){return this._assertNotDisposed(),e instanceof c.a&&this._isValidPosition(e.lineNumber,e.column,1)?e:this._validatePosition(e.lineNumber,e.column,1)}_isValidRange(e,t){const n=e.startLineNumber,i=e.startColumn,r=e.endLineNumber,o=e.endColumn;if(!this._isValidPosition(n,i,0))return!1;if(!this._isValidPosition(r,o,0))return!1;if(1===t){const e=i>1?this._buffer.getLineCharCode(n,i-2):0,t=o>1&&o<=this._buffer.getLineLength(r)?this._buffer.getLineCharCode(r,o-2):0,a=s.F(e),l=s.F(t);return!a&&!l}return!0}validateRange(e){if(this._assertNotDisposed(),e instanceof d.a&&!(e instanceof u.a)&&this._isValidRange(e,1))return e;const t=this._validatePosition(e.startLineNumber,e.startColumn,0),n=this._validatePosition(e.endLineNumber,e.endColumn,0),i=t.lineNumber,r=t.column,o=n.lineNumber,a=n.column;{const e=r>1?this._buffer.getLineCharCode(i,r-2):0,t=a>1&&a<=this._buffer.getLineLength(o)?this._buffer.getLineCharCode(o,a-2):0,n=s.F(e),l=s.F(t);return n||l?i===o&&r===a?new d.a(i,r-1,o,a-1):n&&l?new d.a(i,r-1,o,a+1):n?new d.a(i,r-1,o,a):new d.a(i,r,o,a+1):new d.a(i,r,o,a)}}modifyPosition(e,t){this._assertNotDisposed();let n=this.getOffsetAt(e)+t;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,n)))}getFullModelRange(){this._assertNotDisposed();const e=this.getLineCount();return new d.a(1,1,e,this.getLineMaxColumn(e))}findMatchesLineByLine(e,t,n,i){return this._buffer.findMatchesLineByLine(e,t,n,i)}findMatches(e,t,n,i,r,o,s=Be){this._assertNotDisposed();let a=null;null!==t&&(Array.isArray(t)||(t=[t]),t.every(e=>d.a.isIRange(e))&&(a=t.map(e=>this.validateRange(e)))),null===a&&(a=[this.getFullModelRange()]),a=a.sort((e,t)=>e.startLineNumber-t.startLineNumber||e.startColumn-t.startColumn);const l=[];let c;if(l.push(a.reduce((e,t)=>d.a.areIntersecting(e,t)?e.plusRange(t):(l.push(e),t))),!n&&e.indexOf("\n")<0){const t=new ee.a(e,n,i,r).parseSearchRequest();if(!t)return[];c=e=>this.findMatchesLineByLine(e,t,o,s)}else c=t=>ee.c.findMatches(this,new ee.a(e,n,i,r),t,o,s);return l.map(c).reduce((e,t)=>e.concat(t),[])}findNextMatch(e,t,n,i,r,o){this._assertNotDisposed();const s=this.validatePosition(t);if(!n&&e.indexOf("\n")<0){const t=new ee.a(e,n,i,r).parseSearchRequest();if(!t)return null;const a=this.getLineCount();let l=new d.a(s.lineNumber,s.column,a,this.getLineMaxColumn(a)),c=this.findMatchesLineByLine(l,t,o,1);return ee.c.findNextMatch(this,new ee.a(e,n,i,r),s,o),c.length>0?c[0]:(l=new d.a(1,1,s.lineNumber,this.getLineMaxColumn(s.lineNumber)),(c=this.findMatchesLineByLine(l,t,o,1)).length>0?c[0]:null)}return ee.c.findNextMatch(this,new ee.a(e,n,i,r),s,o)}findPreviousMatch(e,t,n,i,r,o){this._assertNotDisposed();const s=this.validatePosition(t);return ee.c.findPreviousMatch(this,new ee.a(e,n,i,r),s,o)}pushStackElement(){this._commandManager.pushStackElement()}pushEOL(e){if(("\n"===this.getEOL()?0:1)!==e)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEOL(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_validateEditOperation(e){return e instanceof h.f?e:new h.f(e.identifier||null,this.validateRange(e.range),e.text,e.forceMoveMarkers||!1,e.isAutoWhitespaceEdit||!1,e._isTracked||!1)}_validateEditOperations(e){const t=[];for(let n=0,i=e.length;n<i;n++)t[n]=this._validateEditOperation(e[n]);return t}pushEditOperations(e,t,n){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._pushEditOperations(e,this._validateEditOperations(t),n)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_pushEditOperations(e,t,n){if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){let n=t.map(e=>({range:this.validateRange(e.range),text:e.text})),i=!0;if(e)for(let t=0,r=e.length;t<r;t++){let r=e[t],o=!1;for(let e=0,t=n.length;e<t;e++){let t=n[e].range,i=t.startLineNumber>r.endLineNumber,s=r.startLineNumber>t.endLineNumber;if(!i&&!s){o=!0;break}}if(!o){i=!1;break}}if(i)for(let e=0,i=this._trimAutoWhitespaceLines.length;e<i;e++){let i=this._trimAutoWhitespaceLines[e],r=this.getLineMaxColumn(i),o=!0;for(let e=0,t=n.length;e<t;e++){let t=n[e].range,s=n[e].text;if(!(i<t.startLineNumber||i>t.endLineNumber)&&!(i===t.startLineNumber&&t.startColumn===r&&t.isEmpty()&&s&&s.length>0&&"\n"===s.charAt(0)||i===t.startLineNumber&&1===t.startColumn&&t.isEmpty()&&s&&s.length>0&&"\n"===s.charAt(s.length-1))){o=!1;break}}if(o){const e=new d.a(i,1,i,r);t.push(new h.f(null,e,null,!1,!1,!1))}}this._trimAutoWhitespaceLines=null}return null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEditOperation(e,t,n)}_applyUndo(e,t,n,i){const r=e.map(e=>{const t=this.getPositionAt(e.newPosition),n=this.getPositionAt(e.newEnd);return{range:new d.a(t.lineNumber,t.column,n.lineNumber,n.column),text:e.oldText}});this._applyUndoRedoEdits(r,t,!0,!1,n,i)}_applyRedo(e,t,n,i){const r=e.map(e=>{const t=this.getPositionAt(e.oldPosition),n=this.getPositionAt(e.oldEnd);return{range:new d.a(t.lineNumber,t.column,n.lineNumber,n.column),text:e.newText}});this._applyUndoRedoEdits(r,t,!1,!0,n,i)}_applyUndoRedoEdits(e,t,n,i,r,o){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._isUndoing=n,this._isRedoing=i,this.applyEdits(e,!1),this.setEOL(t),this._overwriteAlternativeVersionId(r)}finally{this._isUndoing=!1,this._isRedoing=!1,this._eventEmitter.endDeferredEmit(o),this._onDidChangeDecorations.endDeferredEmit()}}applyEdits(e,t=!1){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit();const n=this._validateEditOperations(e);return this._doApplyEdits(n,t)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_doApplyEdits(e,t){const n=this._buffer.getLineCount(),i=this._buffer.applyEdits(e,this._options.trimAutoWhitespace,t),r=this._buffer.getLineCount(),o=i.changes;if(this._trimAutoWhitespaceLines=i.trimAutoWhitespaceLineNumbers,0!==o.length){let e=[],t=n;for(let n=0,i=o.length;n<i;n++){const i=o[n],[s,a,l]=Object(de.f)(i.text);this._tokens.acceptEdit(i.range,s,a),this._tokens2.acceptEdit(i.range,s,a,l,i.text.length>0?i.text.charCodeAt(0):0),this._onDidChangeDecorations.fire(),this._decorationsTree.acceptReplace(i.rangeOffset,i.rangeLength,i.text.length,i.forceMoveMarkers);const c=i.range.startLineNumber,d=i.range.endLineNumber,u=d-c,h=s,f=Math.min(u,h),g=h-u;for(let n=f;n>=0;n--){const i=c+n,o=r-t-g+i;e.push(new me(i,this.getLineContent(o)))}if(f<u){const t=c+f;e.push(new _e(t+1,d))}if(f<h){const n=c+f,i=h-f,o=r-t-i+n+1;let s=[];for(let e=0;e<i;e++){let t=o+e;s[t-o]=this.getLineContent(t)}e.push(new be(n+1,c+h,s))}t+=g}this._increaseVersionId(),this._emitContentChangedEvent(new ye(e,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:o,eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return null===i.reverseEdits?void 0:i.reverseEdits}undo(){this._undoRedoService.undo(this.uri)}canUndo(){return this._undoRedoService.canUndo(this.uri)}redo(){this._undoRedoService.redo(this.uri)}canRedo(){return this._undoRedoService.canRedo(this.uri)}changeDecorations(e,t=0){this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(t,e)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_changeDecorations(e,t){let n={addDecoration:(t,n)=>this._deltaDecorationsImpl(e,[],[{range:t,options:n}])[0],changeDecoration:(e,t)=>{this._changeDecorationImpl(e,t)},changeDecorationOptions:(e,t)=>{this._changeDecorationOptionsImpl(e,Qe(t))},removeDecoration:t=>{this._deltaDecorationsImpl(e,[t],[])},deltaDecorations:(t,n)=>0===t.length&&0===n.length?[]:this._deltaDecorationsImpl(e,t,n)},r=null;try{r=t(n)}catch(e){Object(i.e)(e)}return n.addDecoration=Ye,n.changeDecoration=Ye,n.changeDecorationOptions=Ye,n.removeDecoration=Ye,n.deltaDecorations=Ye,r}deltaDecorations(e,t,n=0){if(this._assertNotDisposed(),e||(e=[]),0===e.length&&0===t.length)return[];try{return this._onDidChangeDecorations.beginDeferredEmit(),this._deltaDecorationsImpl(n,e,t)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_getTrackedRange(e){return this.getDecorationRange(e)}_setTrackedRange(e,t,n){const i=e?this._decorations[e]:null;if(!i)return t?this._deltaDecorationsImpl(0,[],[{range:t,options:Xe[n]}])[0]:null;if(!t)return this._decorationsTree.delete(i),delete this._decorations[i.id],null;const r=this._validateRangeRelaxedNoAllocations(t),o=this._buffer.getOffsetAt(r.startLineNumber,r.startColumn),s=this._buffer.getOffsetAt(r.endLineNumber,r.endColumn);return this._decorationsTree.delete(i),i.reset(this.getVersionId(),o,s,r),i.setOptions(Xe[n]),this._decorationsTree.insert(i),i.id}removeAllDecorationsWithOwnerId(e){if(this._isDisposed)return;const t=this._decorationsTree.collectNodesFromOwner(e);for(let e=0,n=t.length;e<n;e++){const n=t[e];this._decorationsTree.delete(n),delete this._decorations[n.id]}}getDecorationOptions(e){const t=this._decorations[e];return t?t.options:null}getDecorationRange(e){const t=this._decorations[e];if(!t)return null;const n=this.getVersionId();return t.cachedVersionId!==n&&this._decorationsTree.resolveNode(t,n),null===t.range&&(t.range=this._getRangeAt(t.cachedAbsoluteStart,t.cachedAbsoluteEnd)),t.range}getLineDecorations(e,t=0,n=!1){return e<1||e>this.getLineCount()?[]:this.getLinesDecorations(e,e,t,n)}getLinesDecorations(e,t,n=0,i=!1){let r=this.getLineCount(),o=Math.min(r,Math.max(1,e)),s=Math.min(r,Math.max(1,t)),a=this.getLineMaxColumn(s);return this._getDecorationsInRange(new d.a(o,1,s,a),n,i)}getDecorationsInRange(e,t=0,n=!1){let i=this.validateRange(e);return this._getDecorationsInRange(i,t,n)}getOverviewRulerDecorations(e=0,t=!1){const n=this.getVersionId(),i=this._decorationsTree.search(e,t,!0,n);return this._ensureNodesHaveRanges(i)}getAllDecorations(e=0,t=!1){const n=this.getVersionId(),i=this._decorationsTree.search(e,t,!1,n);return this._ensureNodesHaveRanges(i)}_getDecorationsInRange(e,t,n){const i=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn),r=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn),o=this.getVersionId(),s=this._decorationsTree.intervalSearch(i,r,t,n,o);return this._ensureNodesHaveRanges(s)}_ensureNodesHaveRanges(e){for(let t=0,n=e.length;t<n;t++){const n=e[t];null===n.range&&(n.range=this._getRangeAt(n.cachedAbsoluteStart,n.cachedAbsoluteEnd))}return e}_getRangeAt(e,t){return this._buffer.getRangeAt(e,t-e)}_changeDecorationImpl(e,t){const n=this._decorations[e];if(!n)return;const i=this._validateRangeRelaxedNoAllocations(t),r=this._buffer.getOffsetAt(i.startLineNumber,i.startColumn),o=this._buffer.getOffsetAt(i.endLineNumber,i.endColumn);this._decorationsTree.delete(n),n.reset(this.getVersionId(),r,o,i),this._decorationsTree.insert(n),this._onDidChangeDecorations.checkAffectedAndFire(n.options)}_changeDecorationOptionsImpl(e,t){const n=this._decorations[e];if(!n)return;const i=!(!n.options.overviewRuler||!n.options.overviewRuler.color),r=!(!t.overviewRuler||!t.overviewRuler.color);this._onDidChangeDecorations.checkAffectedAndFire(n.options),this._onDidChangeDecorations.checkAffectedAndFire(t),i!==r?(this._decorationsTree.delete(n),n.setOptions(t),this._decorationsTree.insert(n)):n.setOptions(t)}_deltaDecorationsImpl(e,t,n){const i=this.getVersionId(),r=t.length;let o=0;const s=n.length;let a=0,l=new Array(s);for(;o<r||a<s;){let c=null;if(o<r){do{c=this._decorations[t[o++]]}while(!c&&o<r);c&&(this._decorationsTree.delete(c),this._onDidChangeDecorations.checkAffectedAndFire(c.options))}if(a<s){if(!c){const e=++this._lastDecorationId,t=`${this._instanceId};${e}`;c=new M(t,0,0),this._decorations[t]=c}const t=n[a],r=this._validateRangeRelaxedNoAllocations(t.range),o=Qe(t.options),s=this._buffer.getOffsetAt(r.startLineNumber,r.startColumn),d=this._buffer.getOffsetAt(r.endLineNumber,r.endColumn);c.ownerId=e,c.reset(i,s,d,r),c.setOptions(o),this._onDidChangeDecorations.checkAffectedAndFire(o),this._decorationsTree.insert(c),l[a]=c.id,a++}else c&&delete this._decorations[c.id]}return l}setTokens(e){if(0===e.length)return;let t=[];for(let n=0,i=e.length;n<i;n++){const i=e[n];let r=0,o=0,s=!1;for(let e=0,t=i.tokens.length;e<t;e++){const t=i.startLineNumber+e;if(s)this._tokens.setTokens(this._languageIdentifier.id,t-1,this._buffer.getLineLength(t),i.tokens[e],!1),o=t;else{this._tokens.setTokens(this._languageIdentifier.id,t-1,this._buffer.getLineLength(t),i.tokens[e],!0)&&(s=!0,r=t,o=t)}}s&&t.push({fromLineNumber:r,toLineNumber:o})}t.length>0&&this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,semanticTokensApplied:!1,ranges:t})}setSemanticTokens(e,t){this._tokens2.set(e,t),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,semanticTokensApplied:null!==e,ranges:[{fromLineNumber:1,toLineNumber:this.getLineCount()}]})}hasSemanticTokens(){return this._tokens2.isComplete()}setPartialSemanticTokens(e,t){if(this.hasSemanticTokens())return;const n=this._tokens2.setPartial(e,t);this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,semanticTokensApplied:!0,ranges:[{fromLineNumber:n.startLineNumber,toLineNumber:n.endLineNumber}]})}tokenizeViewport(e,t){e=Math.max(1,e),t=Math.min(this._buffer.getLineCount(),t),this._tokenization.tokenizeViewport(e,t)}clearTokens(){this._tokens.flush(),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!0,semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._buffer.getLineCount()}]})}_emitModelTokensChangedEvent(e){this._isDisposing||this._onDidChangeTokens.fire(e)}resetTokenization(){this._tokenization.reset()}forceTokenization(e){if(e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");this._tokenization.forceTokenization(e)}isCheapToTokenize(e){return this._tokenization.isCheapToTokenize(e)}tokenizeIfCheap(e){this.isCheapToTokenize(e)&&this.forceTokenization(e)}getLineTokens(e){if(e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._getLineTokens(e)}_getLineTokens(e){const t=this.getLineContent(e),n=this._tokens.getTokens(this._languageIdentifier.id,e-1,t);return this._tokens2.addSemanticTokens(e,n)}getLanguageIdentifier(){return this._languageIdentifier}getModeId(){return this._languageIdentifier.language}setMode(e){if(this._languageIdentifier.id===e.id)return;let t={oldLanguage:this._languageIdentifier.language,newLanguage:e.language};this._languageIdentifier=e,this._onDidChangeLanguage.fire(t),this._onDidChangeLanguageConfiguration.fire({})}getLanguageIdAtPosition(e,t){const n=this.validatePosition(new c.a(e,t)),i=this.getLineTokens(n.lineNumber);return i.getLanguageId(i.findTokenIndexAtOffset(n.column-1))}getWordAtPosition(e){this._assertNotDisposed();const t=this.validatePosition(e),n=this.getLineContent(t.lineNumber),i=this._getLineTokens(t.lineNumber),r=i.findTokenIndexAtOffset(t.column-1),[o,s]=Ue._findLanguageBoundaries(i,r),a=Object(Oe.d)(t.column,Ne.a.getWordDefinition(i.getLanguageId(r)),n.substring(o,s),o);if(a&&a.startColumn<=e.column&&e.column<=a.endColumn)return a;if(r>0&&o===t.column-1){const[o,s]=Ue._findLanguageBoundaries(i,r-1),a=Object(Oe.d)(t.column,Ne.a.getWordDefinition(i.getLanguageId(r-1)),n.substring(o,s),o);if(a&&a.startColumn<=e.column&&e.column<=a.endColumn)return a}return null}static _findLanguageBoundaries(e,t){const n=e.getLanguageId(t);let i=0;for(let r=t;r>=0&&e.getLanguageId(r)===n;r--)i=e.getStartOffset(r);let r=e.getLineContent().length;for(let i=t,o=e.getCount();i<o&&e.getLanguageId(i)===n;i++)r=e.getEndOffset(i);return[i,r]}getWordUntilPosition(e){const t=this.getWordAtPosition(e);return t?{word:t.word.substr(0,e.column-t.startColumn),startColumn:t.startColumn,endColumn:e.column}:{word:"",startColumn:e.column,endColumn:e.column}}findMatchingBracketUp(e,t){let n=e.toLowerCase(),i=this.validatePosition(t),r=this._getLineTokens(i.lineNumber),o=r.getLanguageId(r.findTokenIndexAtOffset(i.column-1)),s=Ne.a.getBracketsSupport(o);if(!s)return null;let a=s.textIsBracket[n];return a?ze(this._findMatchingBracketUp(a,i,null)):null}matchBracket(e){return this._matchBracket(this.validatePosition(e))}_matchBracket(e){const t=e.lineNumber,n=this._getLineTokens(t),i=n.getCount(),r=this._buffer.getLineContent(t),o=n.findTokenIndexAtOffset(e.column-1);if(o<0)return null;const s=Ne.a.getBracketsSupport(n.getLanguageId(o));if(s&&!Object(Ie.b)(n.getStandardTokenType(o))){let i=Math.max(0,e.column-1-s.maxBracketLength);for(let e=o-1;e>=0;e--){const t=n.getEndOffset(e);if(t<=i)break;Object(Ie.b)(n.getStandardTokenType(e))&&(i=t)}const a=Math.min(r.length,e.column-1+s.maxBracketLength);let l=null;for(;;){const n=Ae.a.findNextBracketInRange(s.forwardRegex,t,r,i,a);if(!n)break;if(n.startColumn<=e.column&&e.column<=n.endColumn){const e=r.substring(n.startColumn-1,n.endColumn-1).toLowerCase(),t=this._matchFoundBracket(n,s.textIsBracket[e],s.textIsOpenBracket[e],null);if(t){if(t instanceof Ve)return null;l=t}}i=n.endColumn-1}if(l)return l}if(o>0&&n.getStartOffset(o)===e.column-1){const s=o-1,a=Ne.a.getBracketsSupport(n.getLanguageId(s));if(a&&!Object(Ie.b)(n.getStandardTokenType(s))){const o=Math.max(0,e.column-1-a.maxBracketLength);let l=Math.min(r.length,e.column-1+a.maxBracketLength);for(let e=s+1;e<i;e++){const t=n.getStartOffset(e);if(t>=l)break;Object(Ie.b)(n.getStandardTokenType(e))&&(l=t)}const c=Ae.a.findPrevBracketInRange(a.reversedRegex,t,r,o,l);if(c&&c.startColumn<=e.column&&e.column<=c.endColumn){const e=r.substring(c.startColumn-1,c.endColumn-1).toLowerCase(),t=this._matchFoundBracket(c,a.textIsBracket[e],a.textIsOpenBracket[e],null);if(t)return t instanceof Ve?null:t}}}return null}_matchFoundBracket(e,t,n,i){if(!t)return null;const r=n?this._findMatchingBracketDown(t,e.getEndPosition(),i):this._findMatchingBracketUp(t,e.getStartPosition(),i);return r?r instanceof Ve?r:[e,r]:null}_findMatchingBracketUp(e,t,n){const i=e.languageIdentifier.id,r=e.reversedRegex;let o=-1,s=0;const a=(t,i,a,l)=>{for(;;){if(n&&++s%100==0&&!n())return Ve.INSTANCE;const c=Ae.a.findPrevBracketInRange(r,t,i,a,l);if(!c)break;const d=i.substring(c.startColumn-1,c.endColumn-1).toLowerCase();if(e.isOpen(d)?o++:e.isClose(d)&&o--,0===o)return c;l=c.startColumn-1}return null};for(let e=t.lineNumber;e>=1;e--){const n=this._getLineTokens(e),r=n.getCount(),o=this._buffer.getLineContent(e);let s=r-1,l=o.length,c=o.length;e===t.lineNumber&&(s=n.findTokenIndexAtOffset(t.column-1),l=t.column-1,c=t.column-1);let d=!0;for(;s>=0;s--){const t=n.getLanguageId(s)===i&&!Object(Ie.b)(n.getStandardTokenType(s));if(t)d?l=n.getStartOffset(s):(l=n.getStartOffset(s),c=n.getEndOffset(s));else if(d&&l!==c){const t=a(e,o,l,c);if(t)return t}d=t}if(d&&l!==c){const t=a(e,o,l,c);if(t)return t}}return null}_findMatchingBracketDown(e,t,n){const i=e.languageIdentifier.id,r=e.forwardRegex;let o=1,s=0;const a=(t,i,a,l)=>{for(;;){if(n&&++s%100==0&&!n())return Ve.INSTANCE;const c=Ae.a.findNextBracketInRange(r,t,i,a,l);if(!c)break;const d=i.substring(c.startColumn-1,c.endColumn-1).toLowerCase();if(e.isOpen(d)?o++:e.isClose(d)&&o--,0===o)return c;a=c.endColumn-1}return null},l=this.getLineCount();for(let e=t.lineNumber;e<=l;e++){const n=this._getLineTokens(e),r=n.getCount(),o=this._buffer.getLineContent(e);let s=0,l=0,c=0;e===t.lineNumber&&(s=n.findTokenIndexAtOffset(t.column-1),l=t.column-1,c=t.column-1);let d=!0;for(;s<r;s++){const t=n.getLanguageId(s)===i&&!Object(Ie.b)(n.getStandardTokenType(s));if(t)d?c=n.getEndOffset(s):(l=n.getStartOffset(s),c=n.getEndOffset(s));else if(d&&l!==c){const t=a(e,o,l,c);if(t)return t}d=t}if(d&&l!==c){const t=a(e,o,l,c);if(t)return t}}return null}findPrevBracket(e){const t=this.validatePosition(e);let n=-1,i=null;for(let e=t.lineNumber;e>=1;e--){const r=this._getLineTokens(e),o=r.getCount(),s=this._buffer.getLineContent(e);let a=o-1,l=s.length,c=s.length;if(e===t.lineNumber){a=r.findTokenIndexAtOffset(t.column-1),l=t.column-1,c=t.column-1;const e=r.getLanguageId(a);n!==e&&(n=e,i=Ne.a.getBracketsSupport(n))}let d=!0;for(;a>=0;a--){const t=r.getLanguageId(a);if(n!==t){if(i&&d&&l!==c){const t=Ae.a.findPrevBracketInRange(i.reversedRegex,e,s,l,c);if(t)return this._toFoundBracket(i,t);d=!1}n=t,i=Ne.a.getBracketsSupport(n)}const o=!!i&&!Object(Ie.b)(r.getStandardTokenType(a));if(o)d?l=r.getStartOffset(a):(l=r.getStartOffset(a),c=r.getEndOffset(a));else if(i&&d&&l!==c){const t=Ae.a.findPrevBracketInRange(i.reversedRegex,e,s,l,c);if(t)return this._toFoundBracket(i,t)}d=o}if(i&&d&&l!==c){const t=Ae.a.findPrevBracketInRange(i.reversedRegex,e,s,l,c);if(t)return this._toFoundBracket(i,t)}}return null}findNextBracket(e){const t=this.validatePosition(e),n=this.getLineCount();let i=-1,r=null;for(let e=t.lineNumber;e<=n;e++){const n=this._getLineTokens(e),o=n.getCount(),s=this._buffer.getLineContent(e);let a=0,l=0,c=0;if(e===t.lineNumber){a=n.findTokenIndexAtOffset(t.column-1),l=t.column-1,c=t.column-1;const e=n.getLanguageId(a);i!==e&&(i=e,r=Ne.a.getBracketsSupport(i))}let d=!0;for(;a<o;a++){const t=n.getLanguageId(a);if(i!==t){if(r&&d&&l!==c){const t=Ae.a.findNextBracketInRange(r.forwardRegex,e,s,l,c);if(t)return this._toFoundBracket(r,t);d=!1}i=t,r=Ne.a.getBracketsSupport(i)}const o=!!r&&!Object(Ie.b)(n.getStandardTokenType(a));if(o)d?c=n.getEndOffset(a):(l=n.getStartOffset(a),c=n.getEndOffset(a));else if(r&&d&&l!==c){const t=Ae.a.findNextBracketInRange(r.forwardRegex,e,s,l,c);if(t)return this._toFoundBracket(r,t)}d=o}if(r&&d&&l!==c){const t=Ae.a.findNextBracketInRange(r.forwardRegex,e,s,l,c);if(t)return this._toFoundBracket(r,t)}}return null}findEnclosingBrackets(e,t){let n;if(void 0===t)n=null;else{const e=Date.now();n=()=>Date.now()-e<=t}const i=this.validatePosition(e),r=this.getLineCount(),o=new Map;let s=[];const a=(e,t)=>{if(!o.has(e)){let n=[];for(let e=0,i=t?t.brackets.length:0;e<i;e++)n[e]=0;o.set(e,n)}s=o.get(e)};let l=0;const c=(e,t,i,r,o)=>{for(;;){if(n&&++l%100==0&&!n())return Ve.INSTANCE;const a=Ae.a.findNextBracketInRange(e.forwardRegex,t,i,r,o);if(!a)break;const c=i.substring(a.startColumn-1,a.endColumn-1).toLowerCase(),d=e.textIsBracket[c];if(d&&(d.isOpen(c)?s[d.index]++:d.isClose(c)&&s[d.index]--,-1===s[d.index]))return this._matchFoundBracket(a,d,!1,n);r=a.endColumn-1}return null};let d=-1,u=null;for(let e=i.lineNumber;e<=r;e++){const t=this._getLineTokens(e),n=t.getCount(),r=this._buffer.getLineContent(e);let o=0,s=0,l=0;if(e===i.lineNumber){o=t.findTokenIndexAtOffset(i.column-1),s=i.column-1,l=i.column-1;const e=t.getLanguageId(o);d!==e&&a(d=e,u=Ne.a.getBracketsSupport(d))}let h=!0;for(;o<n;o++){const n=t.getLanguageId(o);if(d!==n){if(u&&h&&s!==l){const t=c(u,e,r,s,l);if(t)return ze(t);h=!1}a(d=n,u=Ne.a.getBracketsSupport(d))}const i=!!u&&!Object(Ie.b)(t.getStandardTokenType(o));if(i)h?l=t.getEndOffset(o):(s=t.getStartOffset(o),l=t.getEndOffset(o));else if(u&&h&&s!==l){const t=c(u,e,r,s,l);if(t)return ze(t)}h=i}if(u&&h&&s!==l){const t=c(u,e,r,s,l);if(t)return ze(t)}}return null}_toFoundBracket(e,t){if(!t)return null;let n=this.getValueInRange(t);n=n.toLowerCase();let i=e.textIsBracket[n];return i?{range:t,open:i.open,close:i.close,isOpen:e.textIsOpenBracket[n]}:null}static computeIndentLevel(e,t){let n=0,i=0,r=e.length;for(;i<r;){let r=e.charCodeAt(i);if(32===r)n++;else{if(9!==r)break;n=n-n%t+t}i++}return i===r?-1:n}_computeIndentLevel(e){return Ue.computeIndentLevel(this._buffer.getLineContent(e+1),this._options.tabSize)}getActiveIndentGuide(e,t,n){this._assertNotDisposed();const i=this.getLineCount();if(e<1||e>i)throw new Error("Illegal value for lineNumber");const r=Ne.a.getFoldingRules(this._languageIdentifier.id),o=Boolean(r&&r.offSide);let s=-2,a=-1,l=-2,c=-1;const d=e=>{if(-1!==s&&(-2===s||s>e-1)){s=-1,a=-1;for(let t=e-2;t>=0;t--){let e=this._computeIndentLevel(t);if(e>=0){s=t,a=e;break}}}if(-2===l){l=-1,c=-1;for(let t=e;t<i;t++){let e=this._computeIndentLevel(t);if(e>=0){l=t,c=e;break}}}};let u=-2,h=-1,f=-2,g=-1;const p=e=>{if(-2===u){u=-1,h=-1;for(let t=e-2;t>=0;t--){let e=this._computeIndentLevel(t);if(e>=0){u=t,h=e;break}}}if(-1!==f&&(-2===f||f<e-1)){f=-1,g=-1;for(let t=e;t<i;t++){let e=this._computeIndentLevel(t);if(e>=0){f=t,g=e;break}}}};let m=0,_=!0,b=0,v=!0,y=0,w=0;for(let r=0;_||v;r++){const s=e-r,f=e+r;r>1&&(s<1||s<t)&&(_=!1),r>1&&(f>i||f>n)&&(v=!1),r>5e4&&(_=!1,v=!1);let C=-1;if(_){const e=this._computeIndentLevel(s-1);e>=0?(l=s-1,c=e,C=Math.ceil(e/this._options.indentSize)):(d(s),C=this._getIndentLevelForWhitespaceLine(o,a,c))}let S=-1;if(v){const e=this._computeIndentLevel(f-1);e>=0?(u=f-1,h=e,S=Math.ceil(e/this._options.indentSize)):(p(f),S=this._getIndentLevelForWhitespaceLine(o,h,g))}if(0!==r){if(1===r){if(f<=i&&S>=0&&w+1===S){_=!1,m=f,b=f,y=S;continue}if(s>=1&&C>=0&&C-1===w){v=!1,m=s,b=s,y=C;continue}if(m=e,b=e,0===(y=w))return{startLineNumber:m,endLineNumber:b,indent:y}}_&&(C>=y?m=s:_=!1),v&&(S>=y?b=f:v=!1)}else w=C}return{startLineNumber:m,endLineNumber:b,indent:y}}getLinesIndentGuides(e,t){this._assertNotDisposed();const n=this.getLineCount();if(e<1||e>n)throw new Error("Illegal value for startLineNumber");if(t<1||t>n)throw new Error("Illegal value for endLineNumber");const i=Ne.a.getFoldingRules(this._languageIdentifier.id),r=Boolean(i&&i.offSide);let o=new Array(t-e+1),s=-2,a=-1,l=-2,c=-1;for(let i=e;i<=t;i++){let t=i-e;const d=this._computeIndentLevel(i-1);if(d>=0)s=i-1,a=d,o[t]=Math.ceil(d/this._options.indentSize);else{if(-2===s){s=-1,a=-1;for(let e=i-2;e>=0;e--){let t=this._computeIndentLevel(e);if(t>=0){s=e,a=t;break}}}if(-1!==l&&(-2===l||l<i-1)){l=-1,c=-1;for(let e=i;e<n;e++){let t=this._computeIndentLevel(e);if(t>=0){l=e,c=t;break}}}o[t]=this._getIndentLevelForWhitespaceLine(r,a,c)}}return o}_getIndentLevelForWhitespaceLine(e,t,n){return-1===t||-1===n?0:t<n?1+Math.floor(t/this._options.indentSize):t===n?Math.ceil(n/this._options.indentSize):e?Math.ceil(n/this._options.indentSize):1+Math.floor(n/this._options.indentSize)}}Ue.MODEL_SYNC_LIMIT=52428800,Ue.LARGE_FILE_SIZE_THRESHOLD=20971520,Ue.LARGE_FILE_LINE_COUNT_THRESHOLD=3e5,Ue.DEFAULT_CREATION_OPTIONS={isForSimpleWidget:!1,tabSize:l.d.tabSize,indentSize:l.d.indentSize,insertSpaces:l.d.insertSpaces,detectIndentation:!1,defaultEOL:1,trimAutoWhitespace:l.d.trimAutoWhitespace,largeFileOptimizations:l.d.largeFileOptimizations};class $e{constructor(){this._decorationsTree0=new E,this._decorationsTree1=new E}intervalSearch(e,t,n,i,r){const o=this._decorationsTree0.intervalSearch(e,t,n,i,r),s=this._decorationsTree1.intervalSearch(e,t,n,i,r);return o.concat(s)}search(e,t,n,i){if(n)return this._decorationsTree1.search(e,t,i);{const n=this._decorationsTree0.search(e,t,i),r=this._decorationsTree1.search(e,t,i);return n.concat(r)}}collectNodesFromOwner(e){const t=this._decorationsTree0.collectNodesFromOwner(e),n=this._decorationsTree1.collectNodesFromOwner(e);return t.concat(n)}collectNodesPostOrder(){const e=this._decorationsTree0.collectNodesPostOrder(),t=this._decorationsTree1.collectNodesPostOrder();return e.concat(t)}insert(e){S(e)?this._decorationsTree1.insert(e):this._decorationsTree0.insert(e)}delete(e){S(e)?this._decorationsTree1.delete(e):this._decorationsTree0.delete(e)}resolveNode(e,t){S(e)?this._decorationsTree1.resolveNode(e,t):this._decorationsTree0.resolveNode(e,t)}acceptReplace(e,t,n,i){this._decorationsTree0.acceptReplace(e,t,n,i),this._decorationsTree1.acceptReplace(e,t,n,i)}}function qe(e){return e.replace(/[^a-z0-9\-_]/gi," ")}class Ke{constructor(e){this.color=e.color||"",this.darkColor=e.darkColor||""}}class Ge extends Ke{constructor(e){super(e),this._resolvedColor=null,this.position="number"==typeof e.position?e.position:h.d.Center}getColor(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=null}_resolveColor(e,t){if("string"==typeof e)return e;let n=e?t.getColor(e.id):null;return n?n.toString():""}}class Ze extends Ke{constructor(e){super(e),this.position=e.position}getColor(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=void 0}_resolveColor(e,t){return"string"==typeof e?Re.a.fromHex(e):t.getColor(e.id)}}class Je{constructor(e){this.stickiness=e.stickiness||0,this.zIndex=e.zIndex||0,this.className=e.className?qe(e.className):null,this.hoverMessage=e.hoverMessage||null,this.glyphMarginHoverMessage=e.glyphMarginHoverMessage||null,this.isWholeLine=e.isWholeLine||!1,this.showIfCollapsed=e.showIfCollapsed||!1,this.collapseOnReplaceEdit=e.collapseOnReplaceEdit||!1,this.overviewRuler=e.overviewRuler?new Ge(e.overviewRuler):null,this.minimap=e.minimap?new Ze(e.minimap):null,this.glyphMarginClassName=e.glyphMarginClassName?qe(e.glyphMarginClassName):null,this.linesDecorationsClassName=e.linesDecorationsClassName?qe(e.linesDecorationsClassName):null,this.firstLineDecorationClassName=e.firstLineDecorationClassName?qe(e.firstLineDecorationClassName):null,this.marginClassName=e.marginClassName?qe(e.marginClassName):null,this.inlineClassName=e.inlineClassName?qe(e.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=e.beforeContentClassName?qe(e.beforeContentClassName):null,this.afterContentClassName=e.afterContentClassName?qe(e.afterContentClassName):null}static register(e){return new Je(e)}static createDynamic(e){return new Je(e)}}Je.EMPTY=Je.register({});const Xe=[Je.register({stickiness:0}),Je.register({stickiness:1}),Je.register({stickiness:2}),Je.register({stickiness:3})];function Qe(e){return e instanceof Je?e:Je.createDynamic(e)}class et extends o.a{constructor(){super(),this._actual=this._register(new r.a),this.event=this._actual.event,this._deferredCnt=0,this._shouldFire=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(){if(this._deferredCnt--,0===this._deferredCnt&&this._shouldFire){const e={affectsMinimap:this._affectsMinimap,affectsOverviewRuler:this._affectsOverviewRuler};this._shouldFire=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._actual.fire(e)}}checkAffectedAndFire(e){this._affectsMinimap||(this._affectsMinimap=!(!e.minimap||!e.minimap.position)),this._affectsOverviewRuler||(this._affectsOverviewRuler=!(!e.overviewRuler||!e.overviewRuler.color)),this._shouldFire=!0}fire(){this._affectsMinimap=!0,this._affectsOverviewRuler=!0,this._shouldFire=!0}}class tt extends o.a{constructor(){super(),this._fastEmitter=this._register(new r.a),this.fastEvent=this._fastEmitter.event,this._slowEmitter=this._register(new r.a),this.slowEvent=this._slowEmitter.event,this._deferredCnt=0,this._deferredEvent=null}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(e=null){if(this._deferredCnt--,0===this._deferredCnt&&null!==this._deferredEvent){this._deferredEvent.rawContentChangedEvent.resultingSelection=e;const t=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(t),this._slowEmitter.fire(t)}}fire(e){this._deferredCnt>0?this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(e):this._deferredEvent=e:(this._fastEmitter.fire(e),this._slowEmitter.fire(e))}}},function(e,t,n){"use strict";n.d(t,"d",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"n",(function(){return a})),n.d(t,"c",(function(){return l})),n.d(t,"a",(function(){return c})),n.d(t,"f",(function(){return u})),n.d(t,"h",(function(){return h})),n.d(t,"l",(function(){return f})),n.d(t,"e",(function(){return g})),n.d(t,"j",(function(){return p})),n.d(t,"m",(function(){return m})),n.d(t,"i",(function(){return _})),n.d(t,"g",(function(){return b})),n.d(t,"k",(function(){return v}));var i=n(6);class r{constructor(){this._zoomLevel=0,this._lastZoomLevelChangeTime=0,this._onDidChangeZoomLevel=new i.a,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event,this._zoomFactor=1}getZoomLevel(){return this._zoomLevel}getTimeSinceLastZoomLevelChanged(){return Date.now()-this._lastZoomLevelChangeTime}getZoomFactor(){return this._zoomFactor}getPixelRatio(){let e=document.createElement("canvas").getContext("2d");return(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)}}function o(){return r.INSTANCE.getZoomLevel()}function s(){return r.INSTANCE.getTimeSinceLastZoomLevelChanged()}function a(e){return r.INSTANCE.onDidChangeZoomLevel(e)}function l(){return r.INSTANCE.getZoomFactor()}function c(){return r.INSTANCE.getPixelRatio()}r.INSTANCE=new r;const d=navigator.userAgent,u=d.indexOf("Edge/")>=0,h=d.indexOf("Firefox")>=0,f=d.indexOf("AppleWebKit")>=0,g=d.indexOf("Chrome")>=0,p=!g&&d.indexOf("Safari")>=0,m=!g&&!p&&f,_=d.indexOf("iPad")>=0||p&&navigator.maxTouchPoints>0,b=u&&d.indexOf("WebView/")>=0,v=window.matchMedia&&window.matchMedia("(display-mode: standalone)").matches},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var i=n(1);class r{constructor(e){this.domNode=e,this._maxWidth=-1,this._width=-1,this._height=-1,this._top=-1,this._left=-1,this._bottom=-1,this._right=-1,this._fontFamily="",this._fontWeight="",this._fontSize=-1,this._fontFeatureSettings="",this._lineHeight=-1,this._letterSpacing=-100,this._className="",this._display="",this._position="",this._visibility="",this._backgroundColor="",this._layerHint=!1,this._contain="none",this._boxShadow=""}setMaxWidth(e){this._maxWidth!==e&&(this._maxWidth=e,this.domNode.style.maxWidth=this._maxWidth+"px")}setWidth(e){this._width!==e&&(this._width=e,this.domNode.style.width=this._width+"px")}setHeight(e){this._height!==e&&(this._height=e,this.domNode.style.height=this._height+"px")}setTop(e){this._top!==e&&(this._top=e,this.domNode.style.top=this._top+"px")}unsetTop(){-1!==this._top&&(this._top=-1,this.domNode.style.top="")}setLeft(e){this._left!==e&&(this._left=e,this.domNode.style.left=this._left+"px")}setBottom(e){this._bottom!==e&&(this._bottom=e,this.domNode.style.bottom=this._bottom+"px")}setRight(e){this._right!==e&&(this._right=e,this.domNode.style.right=this._right+"px")}setFontFamily(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily)}setFontWeight(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight)}setFontSize(e){this._fontSize!==e&&(this._fontSize=e,this.domNode.style.fontSize=this._fontSize+"px")}setFontFeatureSettings(e){this._fontFeatureSettings!==e&&(this._fontFeatureSettings=e,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)}setLineHeight(e){this._lineHeight!==e&&(this._lineHeight=e,this.domNode.style.lineHeight=this._lineHeight+"px")}setLetterSpacing(e){this._letterSpacing!==e&&(this._letterSpacing=e,this.domNode.style.letterSpacing=this._letterSpacing+"px")}setClassName(e){this._className!==e&&(this._className=e,this.domNode.className=this._className)}toggleClassName(e,t){i.ab(this.domNode,e,t),this._className=this.domNode.className}setDisplay(e){this._display!==e&&(this._display=e,this.domNode.style.display=this._display)}setPosition(e){this._position!==e&&(this._position=e,this.domNode.style.position=this._position)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this.domNode.style.visibility=this._visibility)}setBackgroundColor(e){this._backgroundColor!==e&&(this._backgroundColor=e,this.domNode.style.backgroundColor=this._backgroundColor)}setLayerHinting(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")}setBoxShadow(e){this._boxShadow!==e&&(this._boxShadow=e,this.domNode.style.boxShadow=e)}setContain(e){this._contain!==e&&(this._contain=e,this.domNode.style.contain=this._contain)}setAttribute(e,t){this.domNode.setAttribute(e,t)}removeAttribute(e){this.domNode.removeAttribute(e)}appendChild(e){this.domNode.appendChild(e.domNode)}removeChild(e){this.domNode.removeChild(e.domNode)}}function o(e){return new r(e)}},function(e,t,n){"use strict";var i=n(6),r=n(2),o=n(8),s=n(138),a=n(64),l=n(102);class c{constructor(e){if(e.autoClosingPairs?this._autoClosingPairs=e.autoClosingPairs.map(e=>new a.b(e)):e.brackets?this._autoClosingPairs=e.brackets.map(e=>new a.b({open:e[0],close:e[1]})):this._autoClosingPairs=[],e.__electricCharacterSupport&&e.__electricCharacterSupport.docComment){const t=e.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new a.b({open:t.open,close:t.close||""}))}this._autoCloseBefore="string"==typeof e.autoCloseBefore?e.autoCloseBefore:c.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED,this._surroundingPairs=e.surroundingPairs||this._autoClosingPairs}getAutoClosingPairs(){return this._autoClosingPairs}getAutoCloseBeforeSet(){return this._autoCloseBefore}static shouldAutoClosePair(e,t,n){if(0===t.getTokenCount())return!0;const i=t.findTokenIndexAtOffset(n-2),r=t.getStandardTokenType(i);return e.isOK(r)}getSurroundingPairs(){return this._surroundingPairs}}c.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED=";:.,=}])> \n\t";var d=n(107);class u{constructor(e){this._richEditBrackets=e}getElectricCharacters(){let e=[];if(this._richEditBrackets)for(const t of this._richEditBrackets.brackets)for(const n of t.close){const t=n.charAt(n.length-1);e.push(t)}return e=e.filter((e,t,n)=>n.indexOf(e)===t)}onElectricCharacter(e,t,n){if(!this._richEditBrackets||0===this._richEditBrackets.brackets.length)return null;const i=t.findTokenIndexAtOffset(n-1);if(Object(l.b)(t.getStandardTokenType(i)))return null;const r=this._richEditBrackets.reversedRegex,o=t.getLineContent().substring(0,n-1)+e,s=d.a.findPrevBracketInRange(r,1,o,0,o.length);if(!s)return null;const a=o.substring(s.startColumn-1,s.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[a])return null;const c=t.getActualLineContentBefore(s.startColumn-1);return/^\s*$/.test(c)?{matchOpenBracket:a}:null}}class h{constructor(e){this._indentationRules=e}shouldIncrease(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&this._indentationRules.increaseIndentPattern.test(e))}shouldDecrease(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&this._indentationRules.decreaseIndentPattern.test(e))}shouldIndentNextLine(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&this._indentationRules.indentNextLinePattern.test(e))}shouldIgnore(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&this._indentationRules.unIndentedLinePattern.test(e))}getIndentMetadata(e){let t=0;return this.shouldIncrease(e)&&(t+=1),this.shouldDecrease(e)&&(t+=2),this.shouldIndentNextLine(e)&&(t+=4),this.shouldIgnore(e)&&(t+=8),t}}var f=n(15);class g{constructor(e){(e=e||{}).brackets=e.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],e.brackets.forEach(e=>{const t=g._createOpenBracketRegExp(e[0]),n=g._createCloseBracketRegExp(e[1]);t&&n&&this._brackets.push({open:e[0],openRegExp:t,close:e[1],closeRegExp:n})}),this._regExpRules=e.onEnterRules||[]}onEnter(e,t,n,i){if(e>=3)for(let e=0,r=this._regExpRules.length;e<r;e++){let r=this._regExpRules[e];if([{reg:r.beforeText,text:n},{reg:r.afterText,text:i},{reg:r.oneLineAboveText,text:t}].every(e=>!e.reg||e.reg.test(e.text)))return r.action}if(e>=2&&n.length>0&&i.length>0)for(let e=0,t=this._brackets.length;e<t;e++){let t=this._brackets[e];if(t.openRegExp.test(n)&&t.closeRegExp.test(i))return{indentAction:a.a.IndentOutdent}}if(e>=2&&n.length>0)for(let e=0,t=this._brackets.length;e<t;e++){if(this._brackets[e].openRegExp.test(n))return{indentAction:a.a.Indent}}return null}static _createOpenBracketRegExp(e){let t=o.v(e);return/\B/.test(t.charAt(0))||(t="\\b"+t),t+="\\s*$",g._safeRegExp(t)}static _createCloseBracketRegExp(e){let t=o.v(e);return/\B/.test(t.charAt(t.length-1))||(t+="\\b"),t="^\\s*"+t,g._safeRegExp(t)}static _safeRegExp(e){try{return new RegExp(e)}catch(e){return Object(f.e)(e),null}}}n.d(t,"a",(function(){return _}));class p{constructor(e,t,n){this._languageIdentifier=e,this._brackets=null,this._electricCharacter=null;let i=null;t&&(i=t._conf),this._conf=p._mergeConf(i,n),this._onEnterSupport=this._conf.brackets||this._conf.indentationRules||this._conf.onEnterRules?new g(this._conf):null,this.comments=p._handleComments(this._conf),this.characterPair=new c(this._conf),this.wordDefinition=this._conf.wordPattern||s.a,this.indentationRules=this._conf.indentationRules,this._conf.indentationRules?this.indentRulesSupport=new h(this._conf.indentationRules):this.indentRulesSupport=null,this.foldingRules=this._conf.folding||{}}get brackets(){return!this._brackets&&this._conf.brackets&&(this._brackets=new d.b(this._languageIdentifier,this._conf.brackets)),this._brackets}get electricCharacter(){return this._electricCharacter||(this._electricCharacter=new u(this.brackets)),this._electricCharacter}onEnter(e,t,n,i){return this._onEnterSupport?this._onEnterSupport.onEnter(e,t,n,i):null}static _mergeConf(e,t){return{comments:e?t.comments||e.comments:t.comments,brackets:e?t.brackets||e.brackets:t.brackets,wordPattern:e?t.wordPattern||e.wordPattern:t.wordPattern,indentationRules:e?t.indentationRules||e.indentationRules:t.indentationRules,onEnterRules:e?t.onEnterRules||e.onEnterRules:t.onEnterRules,autoClosingPairs:e?t.autoClosingPairs||e.autoClosingPairs:t.autoClosingPairs,surroundingPairs:e?t.surroundingPairs||e.surroundingPairs:t.surroundingPairs,autoCloseBefore:e?t.autoCloseBefore||e.autoCloseBefore:t.autoCloseBefore,folding:e?t.folding||e.folding:t.folding,__electricCharacterSupport:e?t.__electricCharacterSupport||e.__electricCharacterSupport:t.__electricCharacterSupport}}static _handleComments(e){let t=e.comments;if(!t)return null;let n={};if(t.lineComment&&(n.lineCommentToken=t.lineComment),t.blockComment){let[e,i]=t.blockComment;n.blockCommentStartToken=e,n.blockCommentEndToken=i}return n}}class m{constructor(e){this.languageIdentifier=e}}const _=new class{constructor(){this._entries=new Map,this._onDidChange=new i.a,this.onDidChange=this._onDidChange.event}register(e,t){let n=this._getRichEditSupport(e.id),i=new p(e,n,t);return this._entries.set(e.id,i),this._onDidChange.fire(new m(e)),Object(r.h)(()=>{this._entries.get(e.id)===i&&(this._entries.set(e.id,n),this._onDidChange.fire(new m(e)))})}_getRichEditSupport(e){return this._entries.get(e)}getIndentationRules(e){const t=this._entries.get(e);return t&&t.indentationRules||null}_getElectricCharacterSupport(e){let t=this._getRichEditSupport(e);return t&&t.electricCharacter||null}getElectricCharacters(e){let t=this._getElectricCharacterSupport(e);return t?t.getElectricCharacters():[]}onElectricCharacter(e,t,n){let i=Object(l.a)(t,n-1),r=this._getElectricCharacterSupport(i.languageId);return r?r.onElectricCharacter(e,i,n-i.firstCharOffset):null}getComments(e){let t=this._getRichEditSupport(e);return t&&t.comments||null}_getCharacterPairSupport(e){let t=this._getRichEditSupport(e);return t&&t.characterPair||null}getAutoClosingPairs(e){let t=this._getCharacterPairSupport(e);return t?t.getAutoClosingPairs():[]}getAutoCloseBeforeSet(e){let t=this._getCharacterPairSupport(e);return t?t.getAutoCloseBeforeSet():c.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED}getSurroundingPairs(e){let t=this._getCharacterPairSupport(e);return t?t.getSurroundingPairs():[]}shouldAutoClosePair(e,t,n){const i=Object(l.a)(t,n-1);return c.shouldAutoClosePair(e,i,n-i.firstCharOffset)}getWordDefinition(e){let t=this._getRichEditSupport(e);return t?Object(s.c)(t.wordDefinition||null):Object(s.c)(null)}getFoldingRules(e){let t=this._getRichEditSupport(e);return t?t.foldingRules:{}}getIndentRulesSupport(e){let t=this._getRichEditSupport(e);return t&&t.indentRulesSupport||null}getPrecedingValidLine(e,t,n){let i=e.getLanguageIdAtPosition(t,0);if(t>1){let r,o=-1;for(r=t-1;r>=1;r--){if(e.getLanguageIdAtPosition(r,0)!==i)return o;let t=e.getLineContent(r);if(!n.shouldIgnore(t)&&!/^\s+$/.test(t)&&""!==t)return r;o=r}}return-1}getInheritIndentForLine(e,t,n,i=!0){if(e<4)return null;const r=this.getIndentRulesSupport(t.getLanguageIdentifier().id);if(!r)return null;if(n<=1)return{indentation:"",action:null};const s=this.getPrecedingValidLine(t,n,r);if(s<0)return null;if(s<1)return{indentation:"",action:null};const l=t.getLineContent(s);if(r.shouldIncrease(l)||r.shouldIndentNextLine(l))return{indentation:o.z(l),action:a.a.Indent,line:s};if(r.shouldDecrease(l))return{indentation:o.z(l),action:null,line:s};{if(1===s)return{indentation:o.z(t.getLineContent(s)),action:null,line:s};const e=s-1,n=r.getIndentMetadata(t.getLineContent(e));if(!(3&n)&&4&n){let n=0;for(let i=e-1;i>0;i--)if(!r.shouldIndentNextLine(t.getLineContent(i))){n=i;break}return{indentation:o.z(t.getLineContent(n+1)),action:null,line:n+1}}if(i)return{indentation:o.z(t.getLineContent(s)),action:null,line:s};for(let e=s;e>0;e--){const n=t.getLineContent(e);if(r.shouldIncrease(n))return{indentation:o.z(n),action:a.a.Indent,line:e};if(r.shouldIndentNextLine(n)){let n=0;for(let i=e-1;i>0;i--)if(!r.shouldIndentNextLine(t.getLineContent(e))){n=i;break}return{indentation:o.z(t.getLineContent(n+1)),action:null,line:n+1}}if(r.shouldDecrease(n))return{indentation:o.z(n),action:null,line:e}}return{indentation:o.z(t.getLineContent(1)),action:null,line:1}}}getGoodIndentForLine(e,t,n,i,r){if(e<4)return null;const s=this._getRichEditSupport(n);if(!s)return null;const l=this.getIndentRulesSupport(n);if(!l)return null;const c=this.getInheritIndentForLine(e,t,i),d=t.getLineContent(i);if(c){const n=c.line;if(void 0!==n){const i=s.onEnter(e,"",t.getLineContent(n),"");if(i){let e=o.z(t.getLineContent(n));return i.removeText&&(e=e.substring(0,e.length-i.removeText)),i.indentAction===a.a.Indent||i.indentAction===a.a.IndentOutdent?e=r.shiftIndent(e):i.indentAction===a.a.Outdent&&(e=r.unshiftIndent(e)),l.shouldDecrease(d)&&(e=r.unshiftIndent(e)),i.appendText&&(e+=i.appendText),o.z(e)}}return l.shouldDecrease(d)?c.action===a.a.Indent?c.indentation:r.unshiftIndent(c.indentation):c.action===a.a.Indent?r.shiftIndent(c.indentation):c.indentation}return null}getIndentForEnter(e,t,n,i){if(e<4)return null;t.forceTokenization(n.startLineNumber);const r=t.getLineTokens(n.startLineNumber),s=Object(l.a)(r,n.startColumn-1),c=s.getLineContent();let d,u,h=!1;if(s.firstCharOffset>0&&r.getLanguageId(0)!==s.languageId?(h=!0,d=c.substr(0,n.startColumn-1-s.firstCharOffset)):d=r.getLineContent().substring(0,n.startColumn-1),n.isEmpty())u=c.substr(n.startColumn-1-s.firstCharOffset);else{u=this.getScopedLineTokens(t,n.endLineNumber,n.endColumn).getLineContent().substr(n.endColumn-1-s.firstCharOffset)}const f=this.getIndentRulesSupport(s.languageId);if(!f)return null;const g=d,p=o.z(d),m={getLineTokens:e=>t.getLineTokens(e),getLanguageIdentifier:()=>t.getLanguageIdentifier(),getLanguageIdAtPosition:(e,n)=>t.getLanguageIdAtPosition(e,n),getLineContent:e=>e===n.startLineNumber?g:t.getLineContent(e)},_=o.z(r.getLineContent()),b=this.getInheritIndentForLine(e,m,n.startLineNumber+1);if(!b){const e=h?_:p;return{beforeEnter:e,afterEnter:e}}let v=h?_:b.indentation;return b.action===a.a.Indent&&(v=i.shiftIndent(v)),f.shouldDecrease(u)&&(v=i.unshiftIndent(v)),{beforeEnter:h?_:p,afterEnter:v}}getIndentActionForType(e,t,n,i,r){if(e<4)return null;const o=this.getScopedLineTokens(t,n.startLineNumber,n.startColumn),s=this.getIndentRulesSupport(o.languageId);if(!s)return null;const l=o.getLineContent(),c=l.substr(0,n.startColumn-1-o.firstCharOffset);let d;if(n.isEmpty())d=l.substr(n.startColumn-1-o.firstCharOffset);else{d=this.getScopedLineTokens(t,n.endLineNumber,n.endColumn).getLineContent().substr(n.endColumn-1-o.firstCharOffset)}if(!s.shouldDecrease(c+d)&&s.shouldDecrease(c+i+d)){const i=this.getInheritIndentForLine(e,t,n.startLineNumber,!1);if(!i)return null;let o=i.indentation;return i.action!==a.a.Indent&&(o=r.unshiftIndent(o)),o}return null}getIndentMetadata(e,t){const n=this.getIndentRulesSupport(e.getLanguageIdentifier().id);return n?t<1||t>e.getLineCount()?null:n.getIndentMetadata(e.getLineContent(t)):null}getEnterAction(e,t,n){const i=this.getScopedLineTokens(t,n.startLineNumber,n.startColumn),r=this._getRichEditSupport(i.languageId);if(!r)return null;const o=i.getLineContent(),s=o.substr(0,n.startColumn-1-i.firstCharOffset);let l;if(n.isEmpty())l=o.substr(n.startColumn-1-i.firstCharOffset);else{l=this.getScopedLineTokens(t,n.endLineNumber,n.endColumn).getLineContent().substr(n.endColumn-1-i.firstCharOffset)}let c="";if(n.startLineNumber>1&&0===i.firstCharOffset){const e=this.getScopedLineTokens(t,n.startLineNumber-1);e.languageId===i.languageId&&(c=e.getLineContent())}const d=r.onEnter(e,c,s,l);if(!d)return null;const u=d.indentAction;let h=d.appendText;const f=d.removeText||0;h||(h=u===a.a.Indent||u===a.a.IndentOutdent?"\t":"");let g=this.getIndentationAtPosition(t,n.startLineNumber,n.startColumn);return f&&(g=g.substring(0,g.length-f)),{indentAction:u,appendText:h,removeText:f,indentation:g}}getIndentationAtPosition(e,t,n){const i=e.getLineContent(t);let r=o.z(i);return r.length>n-1&&(r=r.substring(0,n-1)),r}getScopedLineTokens(e,t,n){e.forceTokenization(t);const i=e.getLineTokens(t),r=void 0===n?e.getLineMaxColumn(t)-1:n-1;return Object(l.a)(i,r)}getBracketsSupport(e){const t=this._getRichEditSupport(e);return t&&t.brackets||null}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n(17);const r=Object(i.c)("codeEditorService")},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var i=n(6);const r=(e,t,n)=>{const r=e=>o.fire(e),o=new i.a({onFirstListenerAdd:()=>{e.addEventListener(t,r,n)},onLastListenerRemove:()=>{e.removeEventListener(t,r,n)}});return o.event};function o(e){return i.b.map(e,e=>(e.preventDefault(),e.stopPropagation(),e))}},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return s}));var i,r=n(24),o=n(12);!function(e){e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",e.http="http",e.https="https",e.file="file",e.mailto="mailto",e.untitled="untitled",e.data="data",e.command="command",e.vscodeRemote="vscode-remote",e.vscodeRemoteResource="vscode-remote-resource",e.userData="vscode-userdata",e.vscodeCustomEditor="vscode-custom-editor",e.vscodeNotebook="vscode-notebook",e.vscodeNotebookCell="vscode-notebook-cell",e.vscodeSettings="vscode-settings",e.webviewPanel="webview-panel",e.vscodeWebview="vscode-webview",e.vscodeWebviewResource="vscode-webview-resource",e.extension="extension"}(i||(i={}));const s=new class{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null}setPreferredWebSchema(e){this._preferredWebSchema=e}rewrite(e){if(this._delegate)return this._delegate(e);const t=e.authority;let n=this._hosts[t];n&&-1!==n.indexOf(":")&&(n=`[${n}]`);const s=this._ports[t],a=this._connectionTokens[t];let l=`path=${encodeURIComponent(e.path)}`;return"string"==typeof a&&(l+=`&tkn=${encodeURIComponent(a)}`),r.a.from({scheme:o.h?this._preferredWebSchema:i.vscodeRemoteResource,authority:`${n}:${s}`,path:"/vscode-remote-resource",query:l})}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return p})),n.d(t,"g",(function(){return m})),n.d(t,"a",(function(){return b})),n.d(t,"c",(function(){return y})),n.d(t,"e",(function(){return C})),n.d(t,"d",(function(){return x})),n.d(t,"f",(function(){return M}));var i=n(15),r=n(4),o=n(11),s=n(10),a=n(9),l=n(26),c=n(3),d=n(61),u=n(2),h=n(25),f=n(123),g=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};const p={Visible:new a.c("suggestWidgetVisible",!1),DetailsVisible:new a.c("suggestWidgetDetailsVisible",!1),MultipleSuggestions:new a.c("suggestWidgetMultipleSuggestions",!1),MakesTextEdit:new a.c("suggestionMakesTextEdit",!0),AcceptSuggestionsOnEnter:new a.c("acceptSuggestionOnEnter",!0),HasInsertAndReplaceRange:new a.c("suggestionHasInsertAndReplaceRange",!1),CanResolve:new a.c("suggestionCanResolve",!1)},m=new h.b("suggestWidgetStatusBar");class _{constructor(e,t,n,i){this.position=e,this.completion=t,this.container=n,this.provider=i,this.isInvalid=!1,this.score=d.a.Default,this.distance=0,this.textLabel="string"==typeof t.label?t.label:t.label.name,this.labelLow=this.textLabel.toLowerCase(),this.isInvalid=!this.textLabel,this.sortTextLow=t.sortText&&t.sortText.toLowerCase(),this.filterTextLow=t.filterText&&t.filterText.toLowerCase(),c.a.isIRange(t.range)?(this.editStart=new s.a(t.range.startLineNumber,t.range.startColumn),this.editInsertEnd=new s.a(t.range.endLineNumber,t.range.endColumn),this.editReplaceEnd=new s.a(t.range.endLineNumber,t.range.endColumn),this.isInvalid=this.isInvalid||c.a.spansMultipleLines(t.range)||t.range.startLineNumber!==e.lineNumber):(this.editStart=new s.a(t.range.insert.startLineNumber,t.range.insert.startColumn),this.editInsertEnd=new s.a(t.range.insert.endLineNumber,t.range.insert.endColumn),this.editReplaceEnd=new s.a(t.range.replace.endLineNumber,t.range.replace.endColumn),this.isInvalid=this.isInvalid||c.a.spansMultipleLines(t.range.insert)||c.a.spansMultipleLines(t.range.replace)||t.range.insert.startLineNumber!==e.lineNumber||t.range.replace.startLineNumber!==e.lineNumber||t.range.insert.startColumn!==t.range.replace.startColumn),"function"!=typeof i.resolveCompletionItem&&(this._resolveCache=Promise.resolve(),this._isResolved=!0)}get isResolved(){return!!this._isResolved}resolve(e){return g(this,void 0,void 0,(function*(){if(!this._resolveCache){const t=e.onCancellationRequested(()=>{this._resolveCache=void 0,this._isResolved=!1});this._resolveCache=Promise.resolve(this.provider.resolveCompletionItem(this.completion,e)).then(e=>{Object.assign(this.completion,e),this._isResolved=!0,t.dispose()},e=>{Object(i.d)(e)&&(this._resolveCache=void 0,this._isResolved=!1)})}return this._resolveCache}))}}class b{constructor(e=2,t=new Set,n=new Set){this.snippetSortOrder=e,this.kindFilter=t,this.providerFilter=n}}let v;function y(){return v}b.default=new b;class w{constructor(e,t,n){this.items=e,this.needsClipboard=t,this.dispoables=n}}function C(e,t,n=b.default,r={triggerKind:0},s=l.a.None){return g(this,void 0,void 0,(function*(){t=t.clone();const a=e.getWordAtPosition(t),l=a?new c.a(t.lineNumber,a.startColumn,t.lineNumber,a.endColumn):c.a.fromPositions(t),d={replace:l,insert:l.setEndPosition(t.lineNumber,t.column)},h=[],p=new u.b;let m=!1;const b=(e,i)=>{if(i){for(let r of i.suggestions)n.kindFilter.has(r.kind)||(r.range||(r.range=d),r.sortText||(r.sortText="string"==typeof r.label?r.label:r.label.name),!m&&r.insertTextRules&&4&r.insertTextRules&&(m=f.c.guessNeedsClipboard(r.insertText)),h.push(new _(t,r,i,e)));Object(u.g)(i)&&p.add(i)}},y=(()=>g(this,void 0,void 0,(function*(){if(!v||n.kindFilter.has(27))return;if(n.providerFilter.size>0&&!n.providerFilter.has(v))return;const i=yield v.provideCompletionItems(e,t,r,s);b(v,i)})))();for(let a of o.d.orderedGroups(e)){let o=h.length;if(yield Promise.all(a.map(o=>g(this,void 0,void 0,(function*(){if(!(n.providerFilter.size>0)||n.providerFilter.has(o))try{const n=yield o.provideCompletionItems(e,t,r,s);b(o,n)}catch(e){Object(i.f)(e)}})))),o!==h.length||s.isCancellationRequested)break}return yield y,s.isCancellationRequested?(p.dispose(),Promise.reject(Object(i.a)())):new w(h.sort(x(n.snippetSortOrder)),m,p)}))}function S(e,t){if(e.sortTextLow&&t.sortTextLow){if(e.sortTextLow<t.sortTextLow)return-1;if(e.sortTextLow>t.sortTextLow)return 1}return e.completion.label<t.completion.label?-1:e.completion.label>t.completion.label?1:e.completion.kind-t.completion.kind}const k=new Map;function x(e){return k.get(e)}k.set(0,(function(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return-1;if(27===t.completion.kind)return 1}return S(e,t)})),k.set(2,(function(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return 1;if(27===t.completion.kind)return-1}return S(e,t)})),k.set(1,S),Object(r.j)("_executeCompletionItemProvider",(e,t,n)=>g(void 0,void 0,void 0,(function*(){const i={incomplete:!1,suggestions:[]},r=[],o=n.maxItemsToResolve||0,s=yield C(e,t);for(const e of s.items)r.length<o&&r.push(e.resolve(l.a.None)),i.incomplete=i.incomplete||e.container.incomplete,i.suggestions.push(e.completion);try{return yield Promise.all(r),i}finally{setTimeout(()=>s.dispoables.dispose(),100)}})));const L=new class{constructor(){this.onlyOnceSuggestions=[]}provideCompletionItems(){let e={suggestions:this.onlyOnceSuggestions.slice(0)};return this.onlyOnceSuggestions.length=0,e}};function M(e,t){setTimeout(()=>{L.onlyOnceSuggestions.push(...t),e.getContribution("editor.contrib.suggestController").triggerSuggest((new Set).add(L))},0)}o.d.register("*",L)},function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"d",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"g",(function(){return l})),n.d(t,"a",(function(){return c})),n.d(t,"e",(function(){return d})),n.d(t,"f",(function(){return u}));var i=n(20);function r(e){if(!e||"object"!=typeof e)return e;if(e instanceof RegExp)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(n=>{e[n]&&"object"==typeof e[n]?t[n]=r(e[n]):t[n]=e[n]}),t}function o(e){if(!e||"object"!=typeof e)return e;const t=[e];for(;t.length>0;){const e=t.shift();Object.freeze(e);for(const n in e)if(s.call(e,n)){const i=e[n];"object"!=typeof i||Object.isFrozen(i)||t.push(i)}}return e}const s=Object.prototype.hasOwnProperty;function a(e,t){return function e(t,n,r){if(Object(i.l)(t))return t;const o=n(t);if(void 0!==o)return o;if(Object(i.e)(t)){const i=[];for(const o of t)i.push(e(o,n,r));return i}if(Object(i.i)(t)){if(r.has(t))throw new Error("Cannot clone recursive data-structure");r.add(t);const i={};for(let o in t)s.call(t,o)&&(i[o]=e(t[o],n,r));return r.delete(t),i}return t}(e,t,new Set)}function l(e,t,n=!0){return Object(i.i)(e)?(Object(i.i)(t)&&Object.keys(t).forEach(r=>{r in e?n&&(Object(i.i)(e[r])&&Object(i.i)(t[r])?l(e[r],t[r],n):e[r]=t[r]):e[r]=t[r]}),e):t}function c(e,...t){return t.forEach(t=>Object.keys(t).forEach(n=>e[n]=t[n])),e}function d(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(typeof e!=typeof t)return!1;if("object"!=typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;let n,i;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(!d(e[n],t[n]))return!1}else{const r=[];for(i in e)r.push(i);r.sort();const o=[];for(i in t)o.push(i);if(o.sort(),!d(r,o))return!1;for(n=0;n<r.length;n++)if(!d(e[r[n]],t[r[n]]))return!1}return!0}function u(e,t,n){const i=t(e);return void 0===i?n:i}},function(e,t,n){"use strict";var i;n.d(t,"a",(function(){return i})),function(e){e.is=function(e){return e&&"object"==typeof e&&"function"==typeof e[Symbol.iterator]};const t=Object.freeze([]);e.empty=function(){return t},e.single=function*(e){yield e},e.from=function(e){return e||t},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,t){for(const n of e)if(t(n))return!0;return!1},e.filter=function*(e,t){for(const n of e)t(n)&&(yield n)},e.map=function*(e,t){for(const n of e)yield t(n)},e.concat=function*(...e){for(const t of e)for(const e of t)yield e},e.consume=function(t,n=Number.POSITIVE_INFINITY){const i=[];if(0===n)return[i,t];const r=t[Symbol.iterator]();for(let t=0;t<n;t++){const t=r.next();if(t.done)return[i,e.empty()];i.push(t.value)}return[i,{[Symbol.iterator]:()=>r}]}}(i||(i={}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return c})),n.d(t,"f",(function(){return d})),n.d(t,"e",(function(){return h})),n.d(t,"d",(function(){return g})),n.d(t,"c",(function(){return p}));var i=n(15);class r{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const o=new r,s=new r,a=new r;var l;function c(e,t){return(e|(65535&t)<<16>>>0)>>>0}function d(e,t){if(0===e)return null;const n=(65535&e)>>>0,i=(4294901760&e)>>>16;return new f(0!==i?[u(n,t),u(i,t)]:[u(n,t)])}function u(e,t){const n=!!(2048&e),i=!!(256&e);return new h(2===t?i:n,!!(1024&e),!!(512&e),2===t?n:i,255&e)}!function(){function e(e,t,n=t,i=n){o.define(e,t),s.define(e,n),a.define(e,i)}e(0,"unknown"),e(1,"Backspace"),e(2,"Tab"),e(3,"Enter"),e(4,"Shift"),e(5,"Ctrl"),e(6,"Alt"),e(7,"PauseBreak"),e(8,"CapsLock"),e(9,"Escape"),e(10,"Space"),e(11,"PageUp"),e(12,"PageDown"),e(13,"End"),e(14,"Home"),e(15,"LeftArrow","Left"),e(16,"UpArrow","Up"),e(17,"RightArrow","Right"),e(18,"DownArrow","Down"),e(19,"Insert"),e(20,"Delete"),e(21,"0"),e(22,"1"),e(23,"2"),e(24,"3"),e(25,"4"),e(26,"5"),e(27,"6"),e(28,"7"),e(29,"8"),e(30,"9"),e(31,"A"),e(32,"B"),e(33,"C"),e(34,"D"),e(35,"E"),e(36,"F"),e(37,"G"),e(38,"H"),e(39,"I"),e(40,"J"),e(41,"K"),e(42,"L"),e(43,"M"),e(44,"N"),e(45,"O"),e(46,"P"),e(47,"Q"),e(48,"R"),e(49,"S"),e(50,"T"),e(51,"U"),e(52,"V"),e(53,"W"),e(54,"X"),e(55,"Y"),e(56,"Z"),e(57,"Meta"),e(58,"ContextMenu"),e(59,"F1"),e(60,"F2"),e(61,"F3"),e(62,"F4"),e(63,"F5"),e(64,"F6"),e(65,"F7"),e(66,"F8"),e(67,"F9"),e(68,"F10"),e(69,"F11"),e(70,"F12"),e(71,"F13"),e(72,"F14"),e(73,"F15"),e(74,"F16"),e(75,"F17"),e(76,"F18"),e(77,"F19"),e(78,"NumLock"),e(79,"ScrollLock"),e(80,";",";","OEM_1"),e(81,"=","=","OEM_PLUS"),e(82,",",",","OEM_COMMA"),e(83,"-","-","OEM_MINUS"),e(84,".",".","OEM_PERIOD"),e(85,"/","/","OEM_2"),e(86,"`","`","OEM_3"),e(110,"ABNT_C1"),e(111,"ABNT_C2"),e(87,"[","[","OEM_4"),e(88,"\\","\\","OEM_5"),e(89,"]","]","OEM_6"),e(90,"'","'","OEM_7"),e(91,"OEM_8"),e(92,"OEM_102"),e(93,"NumPad0"),e(94,"NumPad1"),e(95,"NumPad2"),e(96,"NumPad3"),e(97,"NumPad4"),e(98,"NumPad5"),e(99,"NumPad6"),e(100,"NumPad7"),e(101,"NumPad8"),e(102,"NumPad9"),e(103,"NumPad_Multiply"),e(104,"NumPad_Add"),e(105,"NumPad_Separator"),e(106,"NumPad_Subtract"),e(107,"NumPad_Decimal"),e(108,"NumPad_Divide")}(),function(e){e.toString=function(e){return o.keyCodeToStr(e)},e.fromString=function(e){return o.strToKeyCode(e)},e.toUserSettingsUS=function(e){return s.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return a.keyCodeToStr(e)},e.fromUserSettings=function(e){return s.strToKeyCode(e)||a.strToKeyCode(e)}}(l||(l={}));class h{constructor(e,t,n,i,r){this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=i,this.keyCode=r}equals(e){return this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode}isModifierKey(){return 0===this.keyCode||5===this.keyCode||57===this.keyCode||6===this.keyCode||4===this.keyCode}toChord(){return new f([this])}isDuplicateModifierCase(){return this.ctrlKey&&5===this.keyCode||this.shiftKey&&4===this.keyCode||this.altKey&&6===this.keyCode||this.metaKey&&57===this.keyCode}}class f{constructor(e){if(0===e.length)throw Object(i.b)("parts");this.parts=e}}class g{constructor(e,t,n,i,r,o){this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=i,this.keyLabel=r,this.keyAriaLabel=o}}class p{}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return s}));var i=n(58),r=n(17);i.a;const o=Object(r.c)("notificationService");class s{}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n(17);const r=Object(i.c)("keybindingService")},function(e,t,n){"use strict";n.d(t,"i",(function(){return c})),n.d(t,"e",(function(){return d})),n.d(t,"f",(function(){return u})),n.d(t,"c",(function(){return h})),n.d(t,"b",(function(){return f})),n.d(t,"d",(function(){return g})),n.d(t,"g",(function(){return p})),n.d(t,"h",(function(){return m})),n.d(t,"j",(function(){return _})),n.d(t,"k",(function(){return b})),n.d(t,"a",(function(){return y}));var i=n(228),r=n(45),o=n(24),s=n(8),a=n(35),l=n(12);function c(e){return Object(o.b)(e,!0)}const d=new class{constructor(e){this._ignorePathCasing=e}compare(e,t,n=!1){return e===t?0:Object(s.f)(this.getComparisonKey(e,n),this.getComparisonKey(t,n))}isEqual(e,t,n=!1){return e===t||!(!e||!t)&&this.getComparisonKey(e,n)===this.getComparisonKey(t,n)}getComparisonKey(e,t=!1){return e.with({path:this._ignorePathCasing(e)?e.path.toLowerCase():void 0,fragment:t?null:void 0}).toString()}joinPath(e,...t){return o.a.joinPath(e,...t)}basenameOrAuthority(e){return f(e)||e.authority}basename(e){return r.e.basename(e.path)}dirname(e){if(0===e.path.length)return e;let t;return e.scheme===a.b.file?t=o.a.file(r.b(c(e))).path:(t=r.e.dirname(e.path),e.authority&&t.length&&47!==t.charCodeAt(0)&&(console.error(`dirname("${e.toString})) resulted in a relative path`),t="/")),e.with({path:t})}normalizePath(e){if(!e.path.length)return e;let t;return t=e.scheme===a.b.file?o.a.file(r.d(c(e))).path:r.e.normalize(e.path),e.with({path:t})}relativePath(e,t){if(e.scheme!==t.scheme||!v(e.authority,t.authority))return;if(e.scheme===a.b.file){const n=r.f(c(e),c(t));return l.i?i.b(n):n}let n=e.path||"/",o=t.path||"/";if(this._ignorePathCasing(e)){let e=0;for(const t=Math.min(n.length,o.length);e<t&&(n.charCodeAt(e)===o.charCodeAt(e)||n.charAt(e).toLowerCase()===o.charAt(e).toLowerCase());e++);n=o.substr(0,e)+n.substr(e)}return r.e.relative(n,o)}resolvePath(e,t){if(e.scheme===a.b.file){const n=o.a.file(r.g(c(e),t));return e.with({authority:n.authority,path:n.path})}return-1===t.indexOf("/")&&(t=i.b(t),/^[a-zA-Z]:(\/|$)/.test(t)&&(t="/"+t)),e.with({path:r.e.resolve(e.path,t)})}isEqualAuthority(e,t){return e===t||Object(s.t)(e,t)}}(()=>!1),u=d.isEqual.bind(d),h=d.basenameOrAuthority.bind(d),f=d.basename.bind(d),g=d.dirname.bind(d),p=d.joinPath.bind(d),m=d.normalizePath.bind(d),_=d.relativePath.bind(d),b=d.resolvePath.bind(d),v=d.isEqualAuthority.bind(d);var y;!function(e){e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime",e.parseMetaData=function(t){const n=new Map;t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach(e=>{const[t,i]=e.split(":");t&&i&&n.set(t,i)});const i=t.path.substring(0,t.path.indexOf(";"));return i&&n.set(e.META_DATA_MIME,i),n}}(y||(y={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"g",(function(){return a})),n.d(t,"b",(function(){return l})),n.d(t,"f",(function(){return c})),n.d(t,"d",(function(){return d})),n.d(t,"c",(function(){return u})),n.d(t,"e",(function(){return h}));var i=n(46),r=n(17),o=n(120);const s=Object(r.c)("configurationService");function a(e,t){const n=Object.create(null);for(let i in e)l(n,i,e[i],t);return n}function l(e,t,n,i){const r=t.split("."),o=r.pop();let s=e;for(let e=0;e<r.length;e++){let n=r[e],o=s[n];switch(typeof o){case"undefined":o=s[n]=Object.create(null);break;case"object":break;default:return void i(`Ignoring ${t} as ${r.slice(0,e+1).join(".")} is ${JSON.stringify(o)}`)}s=o}if("object"==typeof s&&null!==s)try{s[o]=n}catch(e){i(`Ignoring ${t} as ${r.join(".")} is ${JSON.stringify(s)}`)}else i(`Ignoring ${t} as ${r.join(".")} is ${JSON.stringify(s)}`)}function c(e,t){!function e(t,n){const i=n.shift();if(0===n.length)return void delete t[i];if(-1!==Object.keys(t).indexOf(i)){const r=t[i];"object"!=typeof r||Array.isArray(r)||(e(r,n),0===Object.keys(r).length&&delete t[i])}}(e,t.split("."))}function d(e,t,n){const i=function(e,t){let n=e;for(const e of t){if("object"!=typeof n||null===n)return;n=n[e]}return n}(e,t.split("."));return void 0===i?n:i}function u(){const e=i.a.as(o.a.Configuration).getConfigurationProperties();return Object.keys(e)}function h(){const e=Object.create(null),t=i.a.as(o.a.Configuration).getConfigurationProperties();for(let n in t){l(e,n,t[n].default,e=>console.error(`Conflict in default settings: ${e}`))}return e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"e",(function(){return s})),n.d(t,"d",(function(){return a})),n.d(t,"f",(function(){return l})),n.d(t,"h",(function(){return c})),n.d(t,"i",(function(){return d})),n.d(t,"g",(function(){return u}));var i,r,o,s,a,l,c,d,u,h=n(0);!function(e){e.noSelection=h.a("noSelection","No selection"),e.singleSelectionRange=h.a("singleSelectionRange","Line {0}, Column {1} ({2} selected)"),e.singleSelection=h.a("singleSelection","Line {0}, Column {1}"),e.multiSelectionRange=h.a("multiSelectionRange","{0} selections ({1} characters selected)"),e.multiSelection=h.a("multiSelection","{0} selections"),e.emergencyConfOn=h.a("emergencyConfOn","Now changing the setting `accessibilitySupport` to 'on'."),e.openingDocs=h.a("openingDocs","Now opening the Editor Accessibility documentation page."),e.readonlyDiffEditor=h.a("readonlyDiffEditor"," in a read-only pane of a diff editor."),e.editableDiffEditor=h.a("editableDiffEditor"," in a pane of a diff editor."),e.readonlyEditor=h.a("readonlyEditor"," in a read-only code editor"),e.editableEditor=h.a("editableEditor"," in a code editor"),e.changeConfigToOnMac=h.a("changeConfigToOnMac","To configure the editor to be optimized for usage with a Screen Reader press Command+E now."),e.changeConfigToOnWinLinux=h.a("changeConfigToOnWinLinux","To configure the editor to be optimized for usage with a Screen Reader press Control+E now."),e.auto_on=h.a("auto_on","The editor is configured to be optimized for usage with a Screen Reader."),e.auto_off=h.a("auto_off","The editor is configured to never be optimized for usage with a Screen Reader, which is not the case at this time."),e.tabFocusModeOnMsg=h.a("tabFocusModeOnMsg","Pressing Tab in the current editor will move focus to the next focusable element. Toggle this behavior by pressing {0}."),e.tabFocusModeOnMsgNoKb=h.a("tabFocusModeOnMsgNoKb","Pressing Tab in the current editor will move focus to the next focusable element. The command {0} is currently not triggerable by a keybinding."),e.tabFocusModeOffMsg=h.a("tabFocusModeOffMsg","Pressing Tab in the current editor will insert the tab character. Toggle this behavior by pressing {0}."),e.tabFocusModeOffMsgNoKb=h.a("tabFocusModeOffMsgNoKb","Pressing Tab in the current editor will insert the tab character. The command {0} is currently not triggerable by a keybinding."),e.openDocMac=h.a("openDocMac","Press Command+H now to open a browser window with more information related to editor accessibility."),e.openDocWinLinux=h.a("openDocWinLinux","Press Control+H now to open a browser window with more information related to editor accessibility."),e.outroMsg=h.a("outroMsg","You can dismiss this tooltip and return to the editor by pressing Escape or Shift+Escape."),e.showAccessibilityHelpAction=h.a("showAccessibilityHelpAction","Show Accessibility Help")}(i||(i={})),function(e){e.inspectTokensAction=h.a("inspectTokens","Developer: Inspect Tokens")}(r||(r={})),function(e){e.gotoLineActionLabel=h.a("gotoLineActionLabel","Go to Line/Column...")}(o||(o={})),function(e){e.helpQuickAccessActionLabel=h.a("helpQuickAccess","Show all Quick Access Providers")}(s||(s={})),function(e){e.quickCommandActionLabel=h.a("quickCommandActionLabel","Command Palette"),e.quickCommandHelp=h.a("quickCommandActionHelp","Show And Run Commands")}(a||(a={})),function(e){e.quickOutlineActionLabel=h.a("quickOutlineActionLabel","Go to Symbol..."),e.quickOutlineByCategoryActionLabel=h.a("quickOutlineByCategoryActionLabel","Go to Symbol by Category...")}(l||(l={})),function(e){e.editorViewAccessibleLabel=h.a("editorViewAccessibleLabel","Editor content"),e.accessibilityHelpMessage=h.a("accessibilityHelpMessage","Press Alt+F1 for Accessibility Options.")}(c||(c={})),function(e){e.toggleHighContrast=h.a("toggleHighContrast","Toggle High Contrast Theme")}(d||(d={})),function(e){e.bulkEditServiceSummary=h.a("bulkEditServiceSummary","Made {0} edits in {1} files")}(u||(u={}))},function(e,t,n){"use strict";n.d(t,"i",(function(){return b})),n.d(t,"e",(function(){return v})),n.d(t,"d",(function(){return y})),n.d(t,"g",(function(){return w})),n.d(t,"f",(function(){return C})),n.d(t,"b",(function(){return S})),n.d(t,"a",(function(){return k})),n.d(t,"c",(function(){return x})),n.d(t,"h",(function(){return L}));var i=n(140);const r=65,o=97,s=90,a=122,l=46,c=47,d=92;class u extends Error{constructor(e,t,n){let i;"string"==typeof t&&0===t.indexOf("not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";const r=-1!==e.indexOf(".")?"property":"argument";let o=`The "${e}" ${r} ${i} of type ${t}`;super(o+=`. Received type ${typeof n}`),this.code="ERR_INVALID_ARG_TYPE"}}function h(e,t){if("string"!=typeof e)throw new u(t,"string",e)}function f(e){return e===c||e===d}function g(e){return e===c}function p(e){return e>=r&&e<=s||e>=o&&e<=a}function m(e,t,n,i){let r="",o=0,s=-1,a=0,d=0;for(let u=0;u<=e.length;++u){if(u<e.length)d=e.charCodeAt(u);else{if(i(d))break;d=c}if(i(d)){if(s===u-1||1===a);else if(2===a){if(r.length<2||2!==o||r.charCodeAt(r.length-1)!==l||r.charCodeAt(r.length-2)!==l){if(r.length>2){const e=r.lastIndexOf(n);-1===e?(r="",o=0):o=(r=r.slice(0,e)).length-1-r.lastIndexOf(n),s=u,a=0;continue}if(0!==r.length){r="",o=0,s=u,a=0;continue}}t&&(r+=r.length>0?`${n}..`:"..",o=2)}else r.length>0?r+=`${n}${e.slice(s+1,u)}`:r=e.slice(s+1,u),o=u-s-1;s=u,a=0}else d===l&&-1!==a?++a:a=-1}return r}function _(e,t){if(null===t||"object"!=typeof t)throw new u("pathObject","Object",t);const n=t.dir||t.root,i=t.base||`${t.name||""}${t.ext||""}`;return n?n===t.root?`${n}${i}`:`${n}${e}${i}`:i}const b={resolve(...e){let t="",n="",r=!1;for(let o=e.length-1;o>=-1;o--){let s;if(o>=0){if(h(s=e[o],"path"),0===s.length)continue}else 0===t.length?s=i.a():(void 0===(s=i.b[`=${t}`]||i.a())||s.slice(0,2).toLowerCase()!==t.toLowerCase()&&s.charCodeAt(2)===d)&&(s=`${t}\\`);const a=s.length;let l=0,c="",u=!1;const g=s.charCodeAt(0);if(1===a)f(g)&&(l=1,u=!0);else if(f(g))if(u=!0,f(s.charCodeAt(1))){let e=2,t=e;for(;e<a&&!f(s.charCodeAt(e));)e++;if(e<a&&e!==t){const n=s.slice(t,e);for(t=e;e<a&&f(s.charCodeAt(e));)e++;if(e<a&&e!==t){for(t=e;e<a&&!f(s.charCodeAt(e));)e++;e!==a&&e===t||(c=`\\\\${n}\\${s.slice(t,e)}`,l=e)}}}else l=1;else p(g)&&58===s.charCodeAt(1)&&(c=s.slice(0,2),l=2,a>2&&f(s.charCodeAt(2))&&(u=!0,l=3));if(c.length>0)if(t.length>0){if(c.toLowerCase()!==t.toLowerCase())continue}else t=c;if(r){if(t.length>0)break}else if(n=`${s.slice(l)}\\${n}`,r=u,u&&t.length>0)break}return n=m(n,!r,"\\",f),r?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){h(e,"path");const t=e.length;if(0===t)return".";let n,i=0,r=!1;const o=e.charCodeAt(0);if(1===t)return g(o)?"\\":e;if(f(o))if(r=!0,f(e.charCodeAt(1))){let r=2,o=r;for(;r<t&&!f(e.charCodeAt(r));)r++;if(r<t&&r!==o){const s=e.slice(o,r);for(o=r;r<t&&f(e.charCodeAt(r));)r++;if(r<t&&r!==o){for(o=r;r<t&&!f(e.charCodeAt(r));)r++;if(r===t)return`\\\\${s}\\${e.slice(o)}\\`;r!==o&&(n=`\\\\${s}\\${e.slice(o,r)}`,i=r)}}}else i=1;else p(o)&&58===e.charCodeAt(1)&&(n=e.slice(0,2),i=2,t>2&&f(e.charCodeAt(2))&&(r=!0,i=3));let s=i<t?m(e.slice(i),!r,"\\",f):"";return 0!==s.length||r||(s="."),s.length>0&&f(e.charCodeAt(t-1))&&(s+="\\"),void 0===n?r?`\\${s}`:s:r?`${n}\\${s}`:`${n}${s}`},isAbsolute(e){h(e,"path");const t=e.length;if(0===t)return!1;const n=e.charCodeAt(0);return f(n)||t>2&&p(n)&&58===e.charCodeAt(1)&&f(e.charCodeAt(2))},join(...e){if(0===e.length)return".";let t,n;for(let i=0;i<e.length;++i){const r=e[i];h(r,"path"),r.length>0&&(void 0===t?t=n=r:t+=`\\${r}`)}if(void 0===t)return".";let i=!0,r=0;if("string"==typeof n&&f(n.charCodeAt(0))){++r;const e=n.length;e>1&&f(n.charCodeAt(1))&&(++r,e>2&&(f(n.charCodeAt(2))?++r:i=!1))}if(i){for(;r<t.length&&f(t.charCodeAt(r));)r++;r>=2&&(t=`\\${t.slice(r)}`)}return b.normalize(t)},relative(e,t){if(h(e,"from"),h(t,"to"),e===t)return"";const n=b.resolve(e),i=b.resolve(t);if(n===i)return"";if((e=n.toLowerCase())===(t=i.toLowerCase()))return"";let r=0;for(;r<e.length&&e.charCodeAt(r)===d;)r++;let o=e.length;for(;o-1>r&&e.charCodeAt(o-1)===d;)o--;const s=o-r;let a=0;for(;a<t.length&&t.charCodeAt(a)===d;)a++;let l=t.length;for(;l-1>a&&t.charCodeAt(l-1)===d;)l--;const c=l-a,u=s<c?s:c;let f=-1,g=0;for(;g<u;g++){const n=e.charCodeAt(r+g);if(n!==t.charCodeAt(a+g))break;n===d&&(f=g)}if(g!==u){if(-1===f)return i}else{if(c>u){if(t.charCodeAt(a+g)===d)return i.slice(a+g+1);if(2===g)return i.slice(a+g)}s>u&&(e.charCodeAt(r+g)===d?f=g:2===g&&(f=3)),-1===f&&(f=0)}let p="";for(g=r+f+1;g<=o;++g)g!==o&&e.charCodeAt(g)!==d||(p+=0===p.length?"..":"\\..");return a+=f,p.length>0?`${p}${i.slice(a,l)}`:(i.charCodeAt(a)===d&&++a,i.slice(a,l))},toNamespacedPath(e){if("string"!=typeof e)return e;if(0===e.length)return"";const t=b.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===d){if(t.charCodeAt(1)===d){const e=t.charCodeAt(2);if(63!==e&&e!==l)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(p(t.charCodeAt(0))&&58===t.charCodeAt(1)&&t.charCodeAt(2)===d)return`\\\\?\\${t}`;return e},dirname(e){h(e,"path");const t=e.length;if(0===t)return".";let n=-1,i=0;const r=e.charCodeAt(0);if(1===t)return f(r)?e:".";if(f(r)){if(n=i=1,f(e.charCodeAt(1))){let r=2,o=r;for(;r<t&&!f(e.charCodeAt(r));)r++;if(r<t&&r!==o){for(o=r;r<t&&f(e.charCodeAt(r));)r++;if(r<t&&r!==o){for(o=r;r<t&&!f(e.charCodeAt(r));)r++;if(r===t)return e;r!==o&&(n=i=r+1)}}}}else p(r)&&58===e.charCodeAt(1)&&(i=n=t>2&&f(e.charCodeAt(2))?3:2);let o=-1,s=!0;for(let n=t-1;n>=i;--n)if(f(e.charCodeAt(n))){if(!s){o=n;break}}else s=!1;if(-1===o){if(-1===n)return".";o=n}return e.slice(0,o)},basename(e,t){void 0!==t&&h(t,"ext"),h(e,"path");let n,i=0,r=-1,o=!0;if(e.length>=2&&p(e.charCodeAt(0))&&58===e.charCodeAt(1)&&(i=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let s=t.length-1,a=-1;for(n=e.length-1;n>=i;--n){const l=e.charCodeAt(n);if(f(l)){if(!o){i=n+1;break}}else-1===a&&(o=!1,a=n+1),s>=0&&(l===t.charCodeAt(s)?-1==--s&&(r=n):(s=-1,r=a))}return i===r?r=a:-1===r&&(r=e.length),e.slice(i,r)}for(n=e.length-1;n>=i;--n)if(f(e.charCodeAt(n))){if(!o){i=n+1;break}}else-1===r&&(o=!1,r=n+1);return-1===r?"":e.slice(i,r)},extname(e){h(e,"path");let t=0,n=-1,i=0,r=-1,o=!0,s=0;e.length>=2&&58===e.charCodeAt(1)&&p(e.charCodeAt(0))&&(t=i=2);for(let a=e.length-1;a>=t;--a){const t=e.charCodeAt(a);if(f(t)){if(!o){i=a+1;break}}else-1===r&&(o=!1,r=a+1),t===l?-1===n?n=a:1!==s&&(s=1):-1!==n&&(s=-1)}return-1===n||-1===r||0===s||1===s&&n===r-1&&n===i+1?"":e.slice(n,r)},format:_.bind(null,"\\"),parse(e){h(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.length;let i=0,r=e.charCodeAt(0);if(1===n)return f(r)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(f(r)){if(i=1,f(e.charCodeAt(1))){let t=2,r=t;for(;t<n&&!f(e.charCodeAt(t));)t++;if(t<n&&t!==r){for(r=t;t<n&&f(e.charCodeAt(t));)t++;if(t<n&&t!==r){for(r=t;t<n&&!f(e.charCodeAt(t));)t++;t===n?i=t:t!==r&&(i=t+1)}}}}else if(p(r)&&58===e.charCodeAt(1)){if(n<=2)return t.root=t.dir=e,t;if(i=2,f(e.charCodeAt(2))){if(3===n)return t.root=t.dir=e,t;i=3}}i>0&&(t.root=e.slice(0,i));let o=-1,s=i,a=-1,c=!0,d=e.length-1,u=0;for(;d>=i;--d)if(f(r=e.charCodeAt(d))){if(!c){s=d+1;break}}else-1===a&&(c=!1,a=d+1),r===l?-1===o?o=d:1!==u&&(u=1):-1!==o&&(u=-1);return-1!==a&&(-1===o||0===u||1===u&&o===a-1&&o===s+1?t.base=t.name=e.slice(s,a):(t.name=e.slice(s,o),t.base=e.slice(s,a),t.ext=e.slice(o,a))),t.dir=s>0&&s!==i?e.slice(0,s-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},v={resolve(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const o=r>=0?e[r]:i.a();h(o,"path"),0!==o.length&&(t=`${o}/${t}`,n=o.charCodeAt(0)===c)}return t=m(t,!n,"/",g),n?`/${t}`:t.length>0?t:"."},normalize(e){if(h(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===c,n=e.charCodeAt(e.length-1)===c;return 0===(e=m(e,!t,"/",g)).length?t?"/":n?"./":".":(n&&(e+="/"),t?`/${e}`:e)},isAbsolute:e=>(h(e,"path"),e.length>0&&e.charCodeAt(0)===c),join(...e){if(0===e.length)return".";let t;for(let n=0;n<e.length;++n){const i=e[n];h(i,"path"),i.length>0&&(void 0===t?t=i:t+=`/${i}`)}return void 0===t?".":v.normalize(t)},relative(e,t){if(h(e,"from"),h(t,"to"),e===t)return"";if((e=v.resolve(e))===(t=v.resolve(t)))return"";const n=e.length,i=n-1,r=t.length-1,o=i<r?i:r;let s=-1,a=0;for(;a<o;a++){const n=e.charCodeAt(1+a);if(n!==t.charCodeAt(1+a))break;n===c&&(s=a)}if(a===o)if(r>o){if(t.charCodeAt(1+a)===c)return t.slice(1+a+1);if(0===a)return t.slice(1+a)}else i>o&&(e.charCodeAt(1+a)===c?s=a:0===a&&(s=0));let l="";for(a=1+s+1;a<=n;++a)a!==n&&e.charCodeAt(a)!==c||(l+=0===l.length?"..":"/..");return`${l}${t.slice(1+s)}`},toNamespacedPath:e=>e,dirname(e){if(h(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===c;let n=-1,i=!0;for(let t=e.length-1;t>=1;--t)if(e.charCodeAt(t)===c){if(!i){n=t;break}}else i=!1;return-1===n?t?"/":".":t&&1===n?"//":e.slice(0,n)},basename(e,t){void 0!==t&&h(t,"ext"),h(e,"path");let n,i=0,r=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let s=t.length-1,a=-1;for(n=e.length-1;n>=0;--n){const l=e.charCodeAt(n);if(l===c){if(!o){i=n+1;break}}else-1===a&&(o=!1,a=n+1),s>=0&&(l===t.charCodeAt(s)?-1==--s&&(r=n):(s=-1,r=a))}return i===r?r=a:-1===r&&(r=e.length),e.slice(i,r)}for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===c){if(!o){i=n+1;break}}else-1===r&&(o=!1,r=n+1);return-1===r?"":e.slice(i,r)},extname(e){h(e,"path");let t=-1,n=0,i=-1,r=!0,o=0;for(let s=e.length-1;s>=0;--s){const a=e.charCodeAt(s);if(a!==c)-1===i&&(r=!1,i=s+1),a===l?-1===t?t=s:1!==o&&(o=1):-1!==t&&(o=-1);else if(!r){n=s+1;break}}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===n+1?"":e.slice(t,i)},format:_.bind(null,"/"),parse(e){h(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.charCodeAt(0)===c;let i;n?(t.root="/",i=1):i=0;let r=-1,o=0,s=-1,a=!0,d=e.length-1,u=0;for(;d>=i;--d){const t=e.charCodeAt(d);if(t!==c)-1===s&&(a=!1,s=d+1),t===l?-1===r?r=d:1!==u&&(u=1):-1!==r&&(u=-1);else if(!a){o=d+1;break}}if(-1!==s){const i=0===o&&n?1:o;-1===r||0===u||1===u&&r===s-1&&r===o+1?t.base=t.name=e.slice(i,s):(t.name=e.slice(i,r),t.base=e.slice(i,s),t.ext=e.slice(r,s))}return o>0?t.dir=e.slice(0,o-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};v.win32=b.win32=b,v.posix=b.posix=v;const y="win32"===i.c?b.normalize:v.normalize,w="win32"===i.c?b.resolve:v.resolve,C="win32"===i.c?b.relative:v.relative,S="win32"===i.c?b.dirname:v.dirname,k="win32"===i.c?b.basename:v.basename,x="win32"===i.c?b.extname:v.extname,L="win32"===i.c?b.sep:v.sep},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(20),r=n(208);const o=new class{constructor(){this.data=new Map}add(e,t){r.a(i.j(e)),r.a(i.i(t)),r.a(!this.data.has(e),"There is already an extension with this id"),this.data.set(e,t)}as(e){return this.data.get(e)||null}}},function(e,t,n){"use strict";n.d(t,"i",(function(){return a})),n.d(t,"j",(function(){return l})),n.d(t,"g",(function(){return f})),n.d(t,"f",(function(){return g})),n.d(t,"h",(function(){return m})),n.d(t,"a",(function(){return _})),n.d(t,"k",(function(){return b})),n.d(t,"b",(function(){return y})),n.d(t,"n",(function(){return w})),n.d(t,"e",(function(){return C})),n.d(t,"c",(function(){return S})),n.d(t,"d",(function(){return k})),n.d(t,"m",(function(){return x})),n.d(t,"l",(function(){return L})),n.d(t,"o",(function(){return D})),n.d(t,"p",(function(){return E})),n.d(t,"s",(function(){return O})),n.d(t,"q",(function(){return N})),n.d(t,"t",(function(){return I})),n.d(t,"r",(function(){return A}));var i=n(0),r=n(13),o=n(5),s=n(18);const a=Object(o.gc)("editor.lineHighlightBackground",{dark:null,light:null,hc:null},i.a("lineHighlight","Background color for the highlight of line at the cursor position.")),l=Object(o.gc)("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hc:"#f38518"},i.a("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),c=Object(o.gc)("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hc:null},i.a("rangeHighlight","Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations."),!0),d=Object(o.gc)("editor.rangeHighlightBorder",{dark:null,light:null,hc:o.b},i.a("rangeHighlightBorder","Background color of the border around highlighted ranges."),!0),u=Object(o.gc)("editor.symbolHighlightBackground",{dark:o.x,light:o.x,hc:null},i.a("symbolHighlight","Background color of highlighted symbol, like for go to definition or go next/previous symbol. The color must not be opaque so as not to hide underlying decorations."),!0),h=Object(o.gc)("editor.symbolHighlightBorder",{dark:null,light:null,hc:o.b},i.a("symbolHighlightBorder","Background color of the border around highlighted symbols."),!0),f=Object(o.gc)("editorCursor.foreground",{dark:"#AEAFAD",light:r.a.black,hc:r.a.white},i.a("caret","Color of the editor cursor.")),g=Object(o.gc)("editorCursor.background",null,i.a("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),p=Object(o.gc)("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hc:"#e3e4e229"},i.a("editorWhitespaces","Color of whitespace characters in the editor.")),m=Object(o.gc)("editorIndentGuide.background",{dark:p,light:p,hc:p},i.a("editorIndentGuides","Color of the editor indentation guides.")),_=Object(o.gc)("editorIndentGuide.activeBackground",{dark:p,light:p,hc:p},i.a("editorActiveIndentGuide","Color of the active editor indentation guides.")),b=Object(o.gc)("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hc:r.a.white},i.a("editorLineNumbers","Color of editor line numbers.")),v=Object(o.gc)("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hc:o.b},i.a("editorActiveLineNumber","Color of editor active line number"),!1,i.a("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead.")),y=Object(o.gc)("editorLineNumber.activeForeground",{dark:v,light:v,hc:v},i.a("editorActiveLineNumber","Color of editor active line number")),w=Object(o.gc)("editorRuler.foreground",{dark:"#5A5A5A",light:r.a.lightgrey,hc:r.a.white},i.a("editorRuler","Color of the editor rulers.")),C=Object(o.gc)("editorCodeLens.foreground",{dark:"#999999",light:"#999999",hc:"#999999"},i.a("editorCodeLensForeground","Foreground color of editor CodeLens")),S=Object(o.gc)("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hc:"#0064001a"},i.a("editorBracketMatchBackground","Background color behind matching brackets")),k=Object(o.gc)("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hc:o.h},i.a("editorBracketMatchBorder","Color for matching brackets boxes")),x=Object(o.gc)("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hc:"#7f7f7f4d"},i.a("editorOverviewRulerBorder","Color of the overview ruler border.")),L=Object(o.gc)("editorOverviewRuler.background",null,i.a("editorOverviewRulerBackground","Background color of the editor overview ruler. Only used when the minimap is enabled and placed on the right side of the editor.")),M=Object(o.gc)("editorGutter.background",{dark:o.s,light:o.s,hc:o.s},i.a("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),D=Object(o.gc)("editorUnnecessaryCode.border",{dark:null,light:null,hc:r.a.fromHex("#fff").transparent(.8)},i.a("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),E=Object(o.gc)("editorUnnecessaryCode.opacity",{dark:r.a.fromHex("#000a"),light:r.a.fromHex("#0007"),hc:null},i.a("unnecessaryCodeOpacity","Opacity of unnecessary (unused) source code in the editor. For example, \"#000000c0\" will render the code with 75% opacity. For high contrast themes, use the 'editorUnnecessaryCode.border' theme color to underline unnecessary code instead of fading it out.")),T=new r.a(new r.c(0,122,204,.6)),O=Object(o.gc)("editorOverviewRuler.rangeHighlightForeground",{dark:T,light:T,hc:T},i.a("overviewRulerRangeHighlight","Overview ruler marker color for range highlights. The color must not be opaque so as not to hide underlying decorations."),!0),N=Object(o.gc)("editorOverviewRuler.errorForeground",{dark:new r.a(new r.c(255,18,18,.7)),light:new r.a(new r.c(255,18,18,.7)),hc:new r.a(new r.c(255,50,50,1))},i.a("overviewRuleError","Overview ruler marker color for errors.")),I=Object(o.gc)("editorOverviewRuler.warningForeground",{dark:o.T,light:o.T,hc:o.S},i.a("overviewRuleWarning","Overview ruler marker color for warnings.")),A=Object(o.gc)("editorOverviewRuler.infoForeground",{dark:o.L,light:o.L,hc:o.K},i.a("overviewRuleInfo","Overview ruler marker color for infos."));Object(s.g)((e,t)=>{const n=e.getColor(o.s);n&&t.addRule(`.monaco-editor, .monaco-editor-background, .monaco-editor .inputarea.ime-input { background-color: ${n}; }`);const i=e.getColor(o.B);i&&t.addRule(`.monaco-editor, .monaco-editor .inputarea.ime-input { color: ${i}; }`);const r=e.getColor(M);r&&t.addRule(`.monaco-editor .margin { background-color: ${r}; }`);const s=e.getColor(c);s&&t.addRule(`.monaco-editor .rangeHighlight { background-color: ${s}; }`);const a=e.getColor(d);a&&t.addRule(`.monaco-editor .rangeHighlight { border: 1px ${"hc"===e.type?"dotted":"solid"} ${a}; }`);const l=e.getColor(u);l&&t.addRule(`.monaco-editor .symbolHighlight { background-color: ${l}; }`);const f=e.getColor(h);f&&t.addRule(`.monaco-editor .symbolHighlight { border: 1px ${"hc"===e.type?"dotted":"solid"} ${f}; }`);const g=e.getColor(p);g&&(t.addRule(`.monaco-editor .mtkw { color: ${g} !important; }`),t.addRule(`.monaco-editor .mtkz { color: ${g} !important; }`))})},function(e,t,n){"use strict";var i,r;n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return r})),n.d(t,"e",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"f",(function(){return a})),n.d(t,"a",(function(){return l})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(i||(i={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(r||(r={}));class o{constructor(e){this.tabSize=Math.max(1,0|e.tabSize),this.indentSize=0|e.tabSize,this.insertSpaces=Boolean(e.insertSpaces),this.defaultEOL=0|e.defaultEOL,this.trimAutoWhitespace=Boolean(e.trimAutoWhitespace)}equals(e){return this.tabSize===e.tabSize&&this.indentSize===e.indentSize&&this.insertSpaces===e.insertSpaces&&this.defaultEOL===e.defaultEOL&&this.trimAutoWhitespace===e.trimAutoWhitespace}createChangeEvent(e){return{tabSize:this.tabSize!==e.tabSize,indentSize:this.indentSize!==e.indentSize,insertSpaces:this.insertSpaces!==e.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==e.trimAutoWhitespace}}}class s{constructor(e,t){this.range=e,this.matches=t}}class a{constructor(e,t,n,i,r,o){this.identifier=e,this.range=t,this.text=n,this.forceMoveMarkers=i,this.isAutoWhitespaceEdit=r,this._isTracked=o}}class l{constructor(e,t,n){this.reverseEdits=e,this.changes=t,this.trimAutoWhitespaceLineNumbers=n}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return c}));var i=n(2),r=n(6),o=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};class s extends i.a{constructor(e,t="",n="",i=!0,o){super(),this._onDidChange=this._register(new r.a),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._checked=!1,this._id=e,this._label=t,this._cssClass=n,this._enabled=i,this._actionCallback=o}get id(){return this._id}get label(){return this._label}set label(e){this._setLabel(e)}_setLabel(e){this._label!==e&&(this._label=e,this._onDidChange.fire({label:e}))}get tooltip(){return this._tooltip||""}set tooltip(e){this._setTooltip(e)}_setTooltip(e){this._tooltip!==e&&(this._tooltip=e,this._onDidChange.fire({tooltip:e}))}get class(){return this._cssClass}set class(e){this._setClass(e)}_setClass(e){this._cssClass!==e&&(this._cssClass=e,this._onDidChange.fire({class:e}))}get enabled(){return this._enabled}set enabled(e){this._setEnabled(e)}_setEnabled(e){this._enabled!==e&&(this._enabled=e,this._onDidChange.fire({enabled:e}))}get checked(){return this._checked}set checked(e){this._setChecked(e)}_setChecked(e){this._checked!==e&&(this._checked=e,this._onDidChange.fire({checked:e}))}run(e,t){return this._actionCallback?this._actionCallback(e):Promise.resolve(!0)}}class a extends i.a{constructor(){super(...arguments),this._onDidBeforeRun=this._register(new r.a),this.onDidBeforeRun=this._onDidBeforeRun.event,this._onDidRun=this._register(new r.a),this.onDidRun=this._onDidRun.event}run(e,t){return o(this,void 0,void 0,(function*(){if(!e.enabled)return Promise.resolve(null);this._onDidBeforeRun.fire({action:e});try{const n=yield this.runAction(e,t);this._onDidRun.fire({action:e,result:n})}catch(t){this._onDidRun.fire({action:e,error:t})}}))}runAction(e,t){const n=t?e.run(t):e.run();return Promise.resolve(n)}}class l extends s{constructor(e){super(l.ID,e,e?"separator text":"separator"),this.checked=!1,this.enabled=!1}}l.ID="vs.actions.separator";class c extends s{constructor(e,t,n,i){super(e,t,i,!0),this._actions=n}get actions(){return Array.isArray(this._actions)?this._actions:this._actions()}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return c}));var i,r=n(14),o=n(2),s=n(1),a=n(90),l=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s};!function(e){e.Tap="-monaco-gesturetap",e.Change="-monaco-gesturechange",e.Start="-monaco-gesturestart",e.End="-monaco-gesturesend",e.Contextmenu="-monaco-gesturecontextmenu"}(i||(i={}));class c extends o.a{constructor(){super(),this.dispatched=!1,this.activeTouches={},this.handle=null,this.targets=[],this.ignoreTargets=[],this._lastSetTapCountTime=0,this._register(s.i(document,"touchstart",e=>this.onTouchStart(e),{passive:!1})),this._register(s.i(document,"touchend",e=>this.onTouchEnd(e))),this._register(s.i(document,"touchmove",e=>this.onTouchMove(e),{passive:!1}))}static addTarget(e){return c.isTouchDevice()?(c.INSTANCE||(c.INSTANCE=new c),c.INSTANCE.targets.push(e),{dispose:()=>{c.INSTANCE.targets=c.INSTANCE.targets.filter(t=>t!==e)}}):o.a.None}static ignoreTarget(e){return c.isTouchDevice()?(c.INSTANCE||(c.INSTANCE=new c),c.INSTANCE.ignoreTargets.push(e),{dispose:()=>{c.INSTANCE.ignoreTargets=c.INSTANCE.ignoreTargets.filter(t=>t!==e)}}):o.a.None}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0}dispose(){this.handle&&(this.handle.dispose(),this.handle=null),super.dispose()}onTouchStart(e){let t=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(let n=0,r=e.targetTouches.length;n<r;n++){let r=e.targetTouches.item(n);this.activeTouches[r.identifier]={id:r.identifier,initialTarget:r.target,initialTimeStamp:t,initialPageX:r.pageX,initialPageY:r.pageY,rollingTimestamps:[t],rollingPageX:[r.pageX],rollingPageY:[r.pageY]};let o=this.newGestureEvent(i.Start,r.target);o.pageX=r.pageX,o.pageY=r.pageY,this.dispatchEvent(o)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}onTouchEnd(e){let t=Date.now(),n=Object.keys(this.activeTouches).length;for(let o=0,s=e.changedTouches.length;o<s;o++){let s=e.changedTouches.item(o);if(!this.activeTouches.hasOwnProperty(String(s.identifier))){console.warn("move of an UNKNOWN touch",s);continue}let a=this.activeTouches[s.identifier],l=Date.now()-a.initialTimeStamp;if(l<c.HOLD_DELAY&&Math.abs(a.initialPageX-r.t(a.rollingPageX))<30&&Math.abs(a.initialPageY-r.t(a.rollingPageY))<30){let e=this.newGestureEvent(i.Tap,a.initialTarget);e.pageX=r.t(a.rollingPageX),e.pageY=r.t(a.rollingPageY),this.dispatchEvent(e)}else if(l>=c.HOLD_DELAY&&Math.abs(a.initialPageX-r.t(a.rollingPageX))<30&&Math.abs(a.initialPageY-r.t(a.rollingPageY))<30){let e=this.newGestureEvent(i.Contextmenu,a.initialTarget);e.pageX=r.t(a.rollingPageX),e.pageY=r.t(a.rollingPageY),this.dispatchEvent(e)}else if(1===n){let e=r.t(a.rollingPageX),n=r.t(a.rollingPageY),i=r.t(a.rollingTimestamps)-a.rollingTimestamps[0],o=e-a.rollingPageX[0],s=n-a.rollingPageY[0];const l=this.targets.filter(e=>a.initialTarget instanceof Node&&e.contains(a.initialTarget));this.inertia(l,t,Math.abs(o)/i,o>0?1:-1,e,Math.abs(s)/i,s>0?1:-1,n)}this.dispatchEvent(this.newGestureEvent(i.End,a.initialTarget)),delete this.activeTouches[s.identifier]}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}newGestureEvent(e,t){let n=document.createEvent("CustomEvent");return n.initEvent(e,!1,!0),n.initialTarget=t,n.tapCount=0,n}dispatchEvent(e){if(e.type===i.Tap){const t=(new Date).getTime();let n=0;n=t-this._lastSetTapCountTime>c.CLEAR_TAP_COUNT_TIME?1:2,this._lastSetTapCountTime=t,e.tapCount=n}else e.type!==i.Change&&e.type!==i.Contextmenu||(this._lastSetTapCountTime=0);for(let t=0;t<this.ignoreTargets.length;t++)if(e.initialTarget instanceof Node&&this.ignoreTargets[t].contains(e.initialTarget))return;this.targets.forEach(t=>{e.initialTarget instanceof Node&&t.contains(e.initialTarget)&&(t.dispatchEvent(e),this.dispatched=!0)})}inertia(e,t,n,r,o,a,l,d){this.handle=s.Y(()=>{let s=Date.now(),u=s-t,h=0,f=0,g=!0;n+=c.SCROLL_FRICTION*u,a+=c.SCROLL_FRICTION*u,n>0&&(g=!1,h=r*n*u),a>0&&(g=!1,f=l*a*u);let p=this.newGestureEvent(i.Change);p.translationX=h,p.translationY=f,e.forEach(e=>e.dispatchEvent(p)),g||this.inertia(e,s,n,r,o+h,a,l,d+f)})}onTouchMove(e){let t=Date.now();for(let n=0,o=e.changedTouches.length;n<o;n++){let o=e.changedTouches.item(n);if(!this.activeTouches.hasOwnProperty(String(o.identifier))){console.warn("end of an UNKNOWN touch",o);continue}let s=this.activeTouches[o.identifier],a=this.newGestureEvent(i.Change,s.initialTarget);a.translationX=o.pageX-r.t(s.rollingPageX),a.translationY=o.pageY-r.t(s.rollingPageY),a.pageX=o.pageX,a.pageY=o.pageY,this.dispatchEvent(a),s.rollingPageX.length>3&&(s.rollingPageX.shift(),s.rollingPageY.shift(),s.rollingTimestamps.shift()),s.rollingPageX.push(o.pageX),s.rollingPageY.push(o.pageY),s.rollingTimestamps.push(t)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}}c.SCROLL_FRICTION=-.005,c.HOLD_DELAY=700,c.CLEAR_TAP_COUNT_TIME=400,l([a.a],c,"isTouchDevice",null)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"e",(function(){return s})),n.d(t,"d",(function(){return a})),n.d(t,"b",(function(){return l}));var i=n(22);class r{constructor(e,t,n=!1){this._range=e,this._text=t,this.insertsAutoWhitespace=n}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){let n=t.getInverseEditOperations()[0].range;return new i.a(n.endLineNumber,n.endColumn,n.endLineNumber,n.endColumn)}}class o{constructor(e,t){this._range=e,this._text=t}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){const n=t.getInverseEditOperations()[0].range;return new i.a(n.startLineNumber,n.startColumn,n.endLineNumber,n.endColumn)}}class s{constructor(e,t,n=!1){this._range=e,this._text=t,this.insertsAutoWhitespace=n}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){let n=t.getInverseEditOperations()[0].range;return new i.a(n.startLineNumber,n.startColumn,n.startLineNumber,n.startColumn)}}class a{constructor(e,t,n,i,r=!1){this._range=e,this._text=t,this._columnDeltaOffset=i,this._lineNumberDeltaOffset=n,this.insertsAutoWhitespace=r}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){let n=t.getInverseEditOperations()[0].range;return new i.a(n.endLineNumber+this._lineNumberDeltaOffset,n.endColumn+this._columnDeltaOffset,n.endLineNumber+this._lineNumberDeltaOffset,n.endColumn+this._columnDeltaOffset)}}class l{constructor(e,t,n,i=!1){this._range=e,this._text=t,this._initialSelection=n,this._forceMoveMarkers=i,this._selectionId=null}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text,this._forceMoveMarkers),this._selectionId=t.trackSelection(this._initialSelection)}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}}},function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return l}));var i,r,o=n(17),s=n(0),a=n(58);!function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(i||(i={})),function(e){e.compare=function(e,t){return t-e};const t=Object.create(null);t[e.Error]=Object(s.a)("sev.error","Error"),t[e.Warning]=Object(s.a)("sev.warning","Warning"),t[e.Info]=Object(s.a)("sev.info","Info"),e.toString=function(e){return t[e]||""},e.fromSeverity=function(t){switch(t){case a.a.Error:return e.Error;case a.a.Warning:return e.Warning;case a.a.Info:return e.Info;case a.a.Ignore:return e.Hint}},e.toSeverity=function(t){switch(t){case e.Error:return a.a.Error;case e.Warning:return a.a.Warning;case e.Info:return a.a.Info;case e.Hint:return a.a.Ignore}}}(i||(i={})),function(e){const t="";function n(e,n){let r=[t];return e.source?r.push(e.source.replace("¦","\\¦")):r.push(t),e.code?"string"==typeof e.code?r.push(e.code.replace("¦","\\¦")):r.push(e.code.value.replace("¦","\\¦")):r.push(t),void 0!==e.severity&&null!==e.severity?r.push(i.toString(e.severity)):r.push(t),e.message&&n?r.push(e.message.replace("¦","\\¦")):r.push(t),void 0!==e.startLineNumber&&null!==e.startLineNumber?r.push(e.startLineNumber.toString()):r.push(t),void 0!==e.startColumn&&null!==e.startColumn?r.push(e.startColumn.toString()):r.push(t),void 0!==e.endLineNumber&&null!==e.endLineNumber?r.push(e.endLineNumber.toString()):r.push(t),void 0!==e.endColumn&&null!==e.endColumn?r.push(e.endColumn.toString()):r.push(t),r.push(t),r.join("¦")}e.makeKey=function(e){return n(e,!0)},e.makeKeyOptionalMessage=n}(r||(r={}));const l=Object(o.c)("markerService")},function(e,t,n){"use strict";n(588);var i=n(1),r=n(104),o=n(49),s=n(13),a=n(6),l=n(37),c=n(33),d=n(187),u=(n(606),n(161)),h=n(150),f=n(2),g=n(3),p=n(29);const m=new s.a(new s.c(0,122,204)),_={showArrow:!0,showFrame:!0,className:"",frameColor:m,arrowColor:m,keepEditorSelection:!1},b="vs.editor.contrib.zoneWidget";class v{constructor(e,t,n,i,r,o){this.id="",this.domNode=e,this.afterLineNumber=t,this.afterColumn=n,this.heightInLines=i,this._onDomNodeTop=r,this._onComputedHeight=o}onDomNodeTop(e){this._onDomNodeTop(e)}onComputedHeight(e){this._onComputedHeight(e)}}class y{constructor(e,t){this._id=e,this._domNode=t}getId(){return this._id}getDomNode(){return this._domNode}getPosition(){return null}}class w{constructor(e){this._editor=e,this._ruleName=w._IdGenerator.nextId(),this._decorations=[],this._color=null,this._height=-1}dispose(){this.hide(),i.P(this._ruleName)}set color(e){this._color!==e&&(this._color=e,this._updateStyle())}set height(e){this._height!==e&&(this._height=e,this._updateStyle())}_updateStyle(){i.P(this._ruleName),i.u(`.monaco-editor ${this._ruleName}`,`border-style: solid; border-color: transparent; border-bottom-color: ${this._color}; border-width: ${this._height}px; bottom: -${this._height}px; margin-left: -${this._height}px; `)}show(e){this._decorations=this._editor.deltaDecorations(this._decorations,[{range:g.a.fromPositions(e),options:{className:this._ruleName,stickiness:1}}])}hide(){this._editor.deltaDecorations(this._decorations,[])}}w._IdGenerator=new h.a(".arrow-decoration-");var C=n(0),S=n(9),k=n(17),x=n(103),L=n(4),M=n(5),D=n(16),E=n(25),T=n(236);n.d(t,"a",(function(){return I})),n.d(t,"b",(function(){return A})),n.d(t,"d",(function(){return j})),n.d(t,"c",(function(){return B})),n.d(t,"p",(function(){return W})),n.d(t,"q",(function(){return H})),n.d(t,"r",(function(){return Y})),n.d(t,"e",(function(){return V})),n.d(t,"j",(function(){return z})),n.d(t,"l",(function(){return U})),n.d(t,"k",(function(){return $})),n.d(t,"n",(function(){return q})),n.d(t,"o",(function(){return K})),n.d(t,"f",(function(){return G})),n.d(t,"g",(function(){return Z})),n.d(t,"m",(function(){return J})),n.d(t,"h",(function(){return X})),n.d(t,"i",(function(){return Q}));var O=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},N=function(e,t){return function(n,i){t(n,i,e)}};const I=Object(k.c)("IPeekViewService");var A,R;Object(x.b)(I,class{constructor(){this._widgets=new Map}addExclusiveWidget(e,t){const n=this._widgets.get(e);n&&(n.listener.dispose(),n.widget.dispose());this._widgets.set(e,{widget:t,listener:t.onDidClose(()=>{const n=this._widgets.get(e);n&&n.widget===t&&(n.listener.dispose(),this._widgets.delete(e))})})}}),(R=A||(A={})).inPeekEditor=new S.c("inReferenceSearchEditor",!0),R.notInPeekEditor=R.inPeekEditor.toNegated();let P=class{constructor(e,t){e instanceof d.a&&A.inPeekEditor.bindTo(t)}dispose(){}};function j(e){let t=e.get(c.a).getFocusedCodeEditor();return t instanceof d.a?t.getParentEditor():t}P.ID="editor.contrib.referenceController",P=O([N(1,S.b)],P),Object(L.m)(P.ID,P);const F={headerBackgroundColor:s.a.white,primaryHeadingColor:s.a.fromHex("#333333"),secondaryHeadingColor:s.a.fromHex("#6c6c6cb3")};let B=class extends class{constructor(e,t={}){this._arrow=null,this._overlayWidget=null,this._resizeSash=null,this._positionMarkerId=[],this._viewZone=null,this._disposables=new f.b,this.container=null,this._isShowing=!1,this.editor=e,this.options=l.c(t),l.g(this.options,_,!1),this.domNode=document.createElement("div"),this.options.isAccessible||(this.domNode.setAttribute("aria-hidden","true"),this.domNode.setAttribute("role","presentation")),this._disposables.add(this.editor.onDidLayoutChange(e=>{const t=this._getWidth(e);this.domNode.style.width=t+"px",this.domNode.style.left=this._getLeft(e)+"px",this._onWidth(t)}))}dispose(){this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._viewZone&&this.editor.changeViewZones(e=>{this._viewZone&&e.removeZone(this._viewZone.id),this._viewZone=null}),this.editor.deltaDecorations(this._positionMarkerId,[]),this._positionMarkerId=[],this._disposables.dispose()}create(){this.domNode.classList.add("zone-widget"),this.options.className&&this.domNode.classList.add(this.options.className),this.container=document.createElement("div"),this.container.classList.add("zone-widget-container"),this.domNode.appendChild(this.container),this.options.showArrow&&(this._arrow=new w(this.editor),this._disposables.add(this._arrow)),this._fillContainer(this.container),this._initSash(),this._applyStyles()}style(e){e.frameColor&&(this.options.frameColor=e.frameColor),e.arrowColor&&(this.options.arrowColor=e.arrowColor),this._applyStyles()}_applyStyles(){if(this.container&&this.options.frameColor){let e=this.options.frameColor.toString();this.container.style.borderTopColor=e,this.container.style.borderBottomColor=e}if(this._arrow&&this.options.arrowColor){let e=this.options.arrowColor.toString();this._arrow.color=e}}_getWidth(e){return e.width-e.minimap.minimapWidth-e.verticalScrollbarWidth}_getLeft(e){return e.minimap.minimapWidth>0&&0===e.minimap.minimapLeft?e.minimap.minimapWidth:0}_onViewZoneTop(e){this.domNode.style.top=e+"px"}_onViewZoneHeight(e){if(this.domNode.style.height=`${e}px`,this.container){let t=e-this._decoratingElementsHeight();this.container.style.height=`${t}px`;const n=this.editor.getLayoutInfo();this._doLayout(t,this._getWidth(n))}this._resizeSash&&this._resizeSash.layout()}get position(){const[e]=this._positionMarkerId;if(!e)return;const t=this.editor.getModel();if(!t)return;const n=t.getDecorationRange(e);return n?n.getStartPosition():void 0}show(e,t){const n=g.a.isIRange(e)?g.a.lift(e):g.a.fromPositions(e);this._isShowing=!0,this._showImpl(n,t),this._isShowing=!1,this._positionMarkerId=this.editor.deltaDecorations(this._positionMarkerId,[{range:n,options:p.a.EMPTY}])}hide(){this._viewZone&&(this.editor.changeViewZones(e=>{this._viewZone&&e.removeZone(this._viewZone.id)}),this._viewZone=null),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._arrow&&this._arrow.hide()}_decoratingElementsHeight(){let e=this.editor.getOption(51),t=0;if(this.options.showArrow){t+=2*Math.round(e/3)}if(this.options.showFrame){t+=2*Math.round(e/9)}return t}_showImpl(e,t){const n=e.getStartPosition(),i=this.editor.getLayoutInfo(),r=this._getWidth(i);this.domNode.style.width=`${r}px`,this.domNode.style.left=this._getLeft(i)+"px";const o=document.createElement("div");o.style.overflow="hidden";const s=this.editor.getOption(51),a=Math.max(12,this.editor.getLayoutInfo().height/s*.8);t=Math.min(t,a);let l=0,c=0;if(this._arrow&&this.options.showArrow&&(l=Math.round(s/3),this._arrow.height=l,this._arrow.show(n)),this.options.showFrame&&(c=Math.round(s/9)),this.editor.changeViewZones(e=>{this._viewZone&&e.removeZone(this._viewZone.id),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this.domNode.style.top="-1000px",this._viewZone=new v(o,n.lineNumber,n.column,t,e=>this._onViewZoneTop(e),e=>this._onViewZoneHeight(e)),this._viewZone.id=e.addZone(this._viewZone),this._overlayWidget=new y(b+this._viewZone.id,this.domNode),this.editor.addOverlayWidget(this._overlayWidget)}),this.container&&this.options.showFrame){const e=this.options.frameWidth?this.options.frameWidth:c;this.container.style.borderTopWidth=e+"px",this.container.style.borderBottomWidth=e+"px"}let d=t*s-this._decoratingElementsHeight();this.container&&(this.container.style.top=l+"px",this.container.style.height=d+"px",this.container.style.overflow="hidden"),this._doLayout(d,r),this.options.keepEditorSelection||this.editor.setSelection(e);const u=this.editor.getModel();if(u){const t=e.endLineNumber+1;t<=u.getLineCount()?this.revealLine(t,!1):this.revealLine(u.getLineCount(),!0)}}revealLine(e,t){t?this.editor.revealLineInCenter(e,0):this.editor.revealLine(e,0)}setCssClass(e,t){this.container&&(t&&this.container.classList.remove(t),i.e(this.container,e))}_onWidth(e){}_doLayout(e,t){}_relayout(e){this._viewZone&&this._viewZone.heightInLines!==e&&this.editor.changeViewZones(t=>{this._viewZone&&(this._viewZone.heightInLines=e,t.layoutZone(this._viewZone.id))})}_initSash(){if(this._resizeSash)return;let e;this._resizeSash=this._disposables.add(new u.a(this.domNode,this,{orientation:1})),this.options.isResizeable||(this._resizeSash.hide(),this._resizeSash.state=0),this._disposables.add(this._resizeSash.onDidStart(t=>{this._viewZone&&(e={startY:t.startY,heightInLines:this._viewZone.heightInLines})})),this._disposables.add(this._resizeSash.onDidEnd(()=>{e=void 0})),this._disposables.add(this._resizeSash.onDidChange(t=>{if(e){let n=(t.currentY-e.startY)/this.editor.getOption(51),i=n<0?Math.ceil(n):Math.floor(n),r=e.heightInLines+i;r>5&&r<35&&this._relayout(r)}}))}getHorizontalSashLeft(){return 0}getHorizontalSashTop(){return(null===this.domNode.style.height?0:parseInt(this.domNode.style.height))-this._decoratingElementsHeight()/2}getHorizontalSashWidth(){const e=this.editor.getLayoutInfo();return e.width-e.minimap.minimapWidth}}{constructor(e,t,n){super(e,t),this.instantiationService=n,this._onDidClose=new a.a,this.onDidClose=this._onDidClose.event,l.g(this.options,F,!1)}dispose(){super.dispose(),this._onDidClose.fire(this)}style(e){let t=this.options;e.headerBackgroundColor&&(t.headerBackgroundColor=e.headerBackgroundColor),e.primaryHeadingColor&&(t.primaryHeadingColor=e.primaryHeadingColor),e.secondaryHeadingColor&&(t.secondaryHeadingColor=e.secondaryHeadingColor),super.style(e)}_applyStyles(){super._applyStyles();let e=this.options;this._headElement&&e.headerBackgroundColor&&(this._headElement.style.backgroundColor=e.headerBackgroundColor.toString()),this._primaryHeading&&e.primaryHeadingColor&&(this._primaryHeading.style.color=e.primaryHeadingColor.toString()),this._secondaryHeading&&e.secondaryHeadingColor&&(this._secondaryHeading.style.color=e.secondaryHeadingColor.toString()),this._bodyElement&&e.frameColor&&(this._bodyElement.style.borderColor=e.frameColor.toString())}_fillContainer(e){this.setCssClass("peekview-widget"),this._headElement=i.a(".head"),this._bodyElement=i.a(".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),e.appendChild(this._headElement),e.appendChild(this._bodyElement)}_fillHead(e,t){const n=i.a(".peekview-title");i.p(this._headElement,n),i.n(n,"click",e=>this._onTitleClick(e)),this._fillTitleIcon(n),this._primaryHeading=i.a("span.filename"),this._secondaryHeading=i.a("span.dirname"),this._metaHeading=i.a("span.meta"),i.p(n,this._primaryHeading,this._secondaryHeading,this._metaHeading);const s=i.a(".peekview-actions");i.p(this._headElement,s);const a=this._getActionBarOptions();this._actionbarWidget=new r.a(s,a),this._disposables.add(this._actionbarWidget),t||this._actionbarWidget.push(new o.a("peekview.close",C.a("label.close","Close"),D.a.close.classNames,!0,()=>(this.dispose(),Promise.resolve())),{label:!1,icon:!0})}_fillTitleIcon(e){}_getActionBarOptions(){return{actionViewItemProvider:e=>e instanceof E.c?this.instantiationService.createInstance(T.a,e):e instanceof E.e?this.instantiationService.createInstance(T.b,e):void 0}}_onTitleClick(e){}setTitle(e,t){this._primaryHeading&&this._secondaryHeading&&(this._primaryHeading.innerText=e,this._primaryHeading.setAttribute("aria-label",e),t?this._secondaryHeading.innerText=t:i.s(this._secondaryHeading))}setMetaTitle(e){this._metaHeading&&(e?(this._metaHeading.innerText=e,i.Z(this._metaHeading)):i.K(this._metaHeading))}_doLayout(e,t){if(!this._isShowing&&e<0)return void this.dispose();const n=Math.ceil(1.2*this.editor.getOption(51)),i=Math.round(e-(n+2));this._doLayoutHead(n,t),this._doLayoutBody(i,t)}_doLayoutHead(e,t){this._headElement&&(this._headElement.style.height=`${e}px`,this._headElement.style.lineHeight=this._headElement.style.height)}_doLayoutBody(e,t){this._bodyElement&&(this._bodyElement.style.height=`${e}px`)}};B=O([N(2,k.a)],B);const W=Object(M.gc)("peekViewTitle.background",{dark:"#1E1E1E",light:"#FFFFFF",hc:"#0C141F"},C.a("peekViewTitleBackground","Background color of the peek view title area.")),H=Object(M.gc)("peekViewTitleLabel.foreground",{dark:"#FFFFFF",light:"#333333",hc:"#FFFFFF"},C.a("peekViewTitleForeground","Color of the peek view title.")),Y=Object(M.gc)("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161e6",hc:"#FFFFFF99"},C.a("peekViewTitleInfoForeground","Color of the peek view title info.")),V=Object(M.gc)("peekView.border",{dark:"#007acc",light:"#007acc",hc:M.h},C.a("peekViewBorder","Color of the peek view borders and arrow.")),z=Object(M.gc)("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hc:s.a.black},C.a("peekViewResultsBackground","Background color of the peek view result list.")),U=Object(M.gc)("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hc:s.a.white},C.a("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list.")),$=Object(M.gc)("peekViewResult.fileForeground",{dark:s.a.white,light:"#1E1E1E",hc:s.a.white},C.a("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list.")),q=Object(M.gc)("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hc:null},C.a("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list.")),K=Object(M.gc)("peekViewResult.selectionForeground",{dark:s.a.white,light:"#6C6C6C",hc:s.a.white},C.a("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list.")),G=Object(M.gc)("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hc:s.a.black},C.a("peekViewEditorBackground","Background color of the peek view editor.")),Z=Object(M.gc)("peekViewEditorGutter.background",{dark:G,light:G,hc:G},C.a("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor.")),J=Object(M.gc)("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hc:null},C.a("peekViewResultsMatchHighlight","Match highlight color in the peek view result list.")),X=Object(M.gc)("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hc:null},C.a("peekViewEditorMatchHighlight","Match highlight color in the peek view editor.")),Q=Object(M.gc)("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hc:M.b},C.a("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor."))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var i=n(17);const r=Object(i.c)("modelService");function o(e){return!e.isTooLargeForSyncing()&&!e.isForSimpleWidget}},function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return h})),n.d(t,"c",(function(){return f}));n(570);var i=n(12),r=n(1);const o=2e4;let s,a,l,c,d;function u(e){(s=document.createElement("div")).className="monaco-aria-container";const t=()=>{const e=document.createElement("div");return e.className="monaco-alert",e.setAttribute("role","alert"),e.setAttribute("aria-atomic","true"),s.appendChild(e),e};a=t(),l=t();const n=()=>{const e=document.createElement("div");return e.className="monaco-status",e.setAttribute("role","complementary"),e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),s.appendChild(e),e};c=n(),d=n(),e.appendChild(s)}function h(e){s&&(a.textContent!==e?(r.s(l),g(a,e)):(r.s(a),g(l,e)))}function f(e){s&&(i.f?h(e):c.textContent!==e?(r.s(d),g(c,e)):(r.s(c),g(d,e)))}function g(e,t){r.s(e),t.length>o&&(t=t.substr(0,o)),e.textContent=t,e.style.visibility="hidden",e.style.visibility="visible"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var i=n(30),r=n(39),o=n(12);let s=new Array(230),a=new Array(112);!function(){for(let e=0;e<a.length;e++)a[e]=-1;function e(e,t){s[e]=t,a[t]=e}e(3,7),e(8,1),e(9,2),e(13,3),e(16,4),e(17,5),e(18,6),e(19,7),e(20,8),e(27,9),e(32,10),e(33,11),e(34,12),e(35,13),e(36,14),e(37,15),e(38,16),e(39,17),e(40,18),e(45,19),e(46,20),e(48,21),e(49,22),e(50,23),e(51,24),e(52,25),e(53,26),e(54,27),e(55,28),e(56,29),e(57,30),e(65,31),e(66,32),e(67,33),e(68,34),e(69,35),e(70,36),e(71,37),e(72,38),e(73,39),e(74,40),e(75,41),e(76,42),e(77,43),e(78,44),e(79,45),e(80,46),e(81,47),e(82,48),e(83,49),e(84,50),e(85,51),e(86,52),e(87,53),e(88,54),e(89,55),e(90,56),e(93,58),e(96,93),e(97,94),e(98,95),e(99,96),e(100,97),e(101,98),e(102,99),e(103,100),e(104,101),e(105,102),e(106,103),e(107,104),e(108,105),e(109,106),e(110,107),e(111,108),e(112,59),e(113,60),e(114,61),e(115,62),e(116,63),e(117,64),e(118,65),e(119,66),e(120,67),e(121,68),e(122,69),e(123,70),e(124,71),e(125,72),e(126,73),e(127,74),e(128,75),e(129,76),e(130,77),e(144,78),e(145,79),e(186,80),e(187,81),e(188,82),e(189,83),e(190,84),e(191,85),e(192,86),e(193,110),e(194,111),e(219,87),e(220,88),e(221,89),e(222,90),e(223,91),e(226,92),e(229,109),i.h?(e(59,80),e(107,81),e(109,83),o.f&&e(224,57)):i.l&&(e(91,57),o.f?e(93,57):e(92,57))}();const l=o.f?256:2048,c=512,d=1024,u=o.f?2048:256;class h{constructor(e){this._standardKeyboardEventBrand=!0;let t=e;this.browserEvent=t,this.target=t.target,this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,this.keyCode=function(e){if(e.charCode){let t=String.fromCharCode(e.charCode).toUpperCase();return r.b.fromString(t)}return s[e.keyCode]||0}(t),this.code=t.code,this.ctrlKey=this.ctrlKey||5===this.keyCode,this.altKey=this.altKey||6===this.keyCode,this.shiftKey=this.shiftKey||4===this.keyCode,this.metaKey=this.metaKey||57===this.keyCode,this._asKeybinding=this._computeKeybinding(),this._asRuntimeKeybinding=this._computeRuntimeKeybinding()}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}toKeybinding(){return this._asRuntimeKeybinding}equals(e){return this._asKeybinding===e}_computeKeybinding(){let e=0;5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode);let t=0;return this.ctrlKey&&(t|=l),this.altKey&&(t|=c),this.shiftKey&&(t|=d),this.metaKey&&(t|=u),t|=e}_computeRuntimeKeybinding(){let e=0;return 5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode),new r.e(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return l}));var i=n(8);class r{constructor(e){this.value=e}equals(e){return this.value===e.value}contains(e){return this.equals(e)||""===this.value||Object(i.S)(e.value,this.value+r.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(e){return new r(this.value+r.sep+e)}}function o(e,t){return!(e.include&&!e.include.intersects(t))&&((!e.excludes||!e.excludes.some(n=>a(t,n,e.include)))&&!(!e.includeSourceActions&&r.Source.contains(t)))}function s(e,t){const n=t.kind?new r(t.kind):void 0;return!!(!e.include||n&&e.include.contains(n))&&(!(e.excludes&&n&&e.excludes.some(t=>a(n,t,e.include)))&&(!(!e.includeSourceActions&&n&&r.Source.contains(n))&&!(e.onlyIncludePreferredActions&&!t.isPreferred)))}function a(e,t,n){return!!t.contains(e)&&(!n||!t.contains(n))}r.sep=".",r.None=new r("@@none@@"),r.Empty=new r(""),r.QuickFix=new r("quickfix"),r.Refactor=new r("refactor"),r.Source=new r("source"),r.SourceOrganizeImports=r.Source.append("organizeImports"),r.SourceFixAll=r.Source.append("fixAll");class l{constructor(e,t,n){this.kind=e,this.apply=t,this.preferred=n}static fromUser(e,t){return e&&"object"==typeof e?new l(l.getKindFromUser(e,t.kind),l.getApplyFromUser(e,t.apply),l.getPreferredUser(e)):new l(t.kind,t.apply,!1)}static getApplyFromUser(e,t){switch("string"==typeof e.apply?e.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return t}}static getKindFromUser(e,t){return"string"==typeof e.kind?new r(e.kind):t}static getPreferredUser(e){return"boolean"==typeof e.preferred&&e.preferred}}},function(e,t,n){"use strict";var i,r=n(8);!function(e){e[e.Ignore=0]="Ignore",e[e.Info=1]="Info",e[e.Warning=2]="Warning",e[e.Error=3]="Error"}(i||(i={})),function(e){const t="error",n="warning",i="warn",o="info";e.fromValue=function(s){return s?r.t(t,s)?e.Error:r.t(n,s)||r.t(i,s)?e.Warning:r.t(o,s)?e.Info:e.Ignore:e.Ignore}}(i||(i={})),t.a=i},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return a}));var i=n(30),r=n(226),o=n(12);class s{constructor(e){this.timestamp=Date.now(),this.browserEvent=e,this.leftButton=0===e.button,this.middleButton=1===e.button,this.rightButton=2===e.button,this.buttons=e.buttons,this.target=e.target,this.detail=e.detail||1,"dblclick"===e.type&&(this.detail=2),this.ctrlKey=e.ctrlKey,this.shiftKey=e.shiftKey,this.altKey=e.altKey,this.metaKey=e.metaKey,"number"==typeof e.pageX?(this.posx=e.pageX,this.posy=e.pageY):(this.posx=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,this.posy=e.clientY+document.body.scrollTop+document.documentElement.scrollTop);let t=r.a.getPositionOfChildWindowRelativeToAncestorWindow(self,e.view);this.posx-=t.left,this.posy-=t.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}}class a{constructor(e,t=0,n=0){if(this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=n,this.deltaX=t,e){let t=e,n=e;if(void 0!==t.wheelDeltaY)this.deltaY=t.wheelDeltaY/120;else if(void 0!==n.VERTICAL_AXIS&&n.axis===n.VERTICAL_AXIS)this.deltaY=-n.detail/3;else if("wheel"===e.type){const t=e;t.deltaMode===t.DOM_DELTA_LINE?i.h&&!o.f?this.deltaY=-e.deltaY/3:this.deltaY=-e.deltaY:this.deltaY=-e.deltaY/40}if(void 0!==t.wheelDeltaX)i.j&&o.i?this.deltaX=-t.wheelDeltaX/120:this.deltaX=t.wheelDeltaX/120;else if(void 0!==n.HORIZONTAL_AXIS&&n.axis===n.HORIZONTAL_AXIS)this.deltaX=-e.detail/3;else if("wheel"===e.type){const t=e;t.deltaMode===t.DOM_DELTA_LINE?i.h&&!o.f?this.deltaX=-e.deltaX/3:this.deltaX=-e.deltaX:this.deltaX=-e.deltaX/40}0===this.deltaY&&0===this.deltaX&&e.wheelDelta&&(this.deltaY=e.wheelDelta/120)}}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation()}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n(3);class r{static insert(e,t){return{range:new i.a(e.lineNumber,e.column,e.lineNumber,e.column),text:t,forceMoveMarkers:!0}}static delete(e){return{range:e,text:null}}static replace(e,t){return{range:e,text:t}}static replaceMove(e,t){return{range:e,text:t,forceMoveMarkers:!0}}}},function(e,t,n){"use strict";n.d(t,"j",(function(){return o})),n.d(t,"h",(function(){return s})),n.d(t,"f",(function(){return a})),n.d(t,"i",(function(){return v})),n.d(t,"g",(function(){return x})),n.d(t,"b",(function(){return L})),n.d(t,"c",(function(){return M})),n.d(t,"a",(function(){return j})),n.d(t,"d",(function(){return F})),n.d(t,"e",(function(){return U}));var i=n(65),r=n(8);function o(...e){return function(t,n){for(let i=0,r=e.length;i<r;i++){const r=e[i](t,n);if(r)return r}return null}}const s=function(e,t,n){if(!n||n.length<t.length)return null;let i;i=e?r.T(n,t):0===n.indexOf(t);if(!i)return null;return t.length>0?[{start:0,end:t.length}]:[]}.bind(void 0,!0);function a(e,t){const n=t.toLowerCase().indexOf(e.toLowerCase());return-1===n?null:[{start:n,end:n+e.length}]}function l(e){return 97<=e&&e<=122}function c(e){return 65<=e&&e<=90}function d(e){return 48<=e&&e<=57}function u(e){return 32===e||9===e||10===e||13===e}const h=new Set;function f(e){return u(e)||h.has(e)}function g(e){return l(e)||c(e)||d(e)}function p(e,t){return 0===t.length?t=[e]:e.end===t[0].start?t[0].start=e.start:t.unshift(e),t}function m(e,t){for(let n=t;n<e.length;n++){const t=e.charCodeAt(n);if(c(t)||d(t)||n>0&&!g(e.charCodeAt(n-1)))return n}return e.length}function _(e,t,n,i){if(n===e.length)return[];if(i===t.length)return null;if(e[n]!==t[i].toLowerCase())return null;{let r=null,o=i+1;for(r=_(e,t,n+1,i+1);!r&&(o=m(t,o))<t.length;)r=_(e,t,n+1,o),o++;return null===r?null:p({start:i,end:i+1},r)}}function b(e,t){if(!t)return null;if(0===(t=t.trim()).length)return null;if(!function(e){let t=0,n=0,i=0,r=0;for(let o=0;o<e.length;o++)c(i=e.charCodeAt(o))&&t++,l(i)&&n++,u(i)&&r++;return 0!==t&&0!==n||0!==r?t<=5:e.length<=30}(e))return null;if(t.length>60)return null;const n=function(e){let t=0,n=0,i=0,r=0,o=0;for(let s=0;s<e.length;s++)c(o=e.charCodeAt(s))&&t++,l(o)&&n++,g(o)&&i++,d(o)&&r++;return{upperPercent:t/e.length,lowerPercent:n/e.length,alphaPercent:i/e.length,numericPercent:r/e.length}}(t);if(!function(e){const{upperPercent:t,lowerPercent:n,alphaPercent:i,numericPercent:r}=e;return n>.2&&t<.8&&i>.6&&r<.2}(n)){if(!function(e){const{upperPercent:t,lowerPercent:n}=e;return 0===n&&t>.6}(n))return null;t=t.toLowerCase()}let i=null,r=0;for(e=e.toLowerCase();r<t.length&&null===(i=_(e,t,0,r));)r=m(t,r+1);return i}function v(e,t,n=!1){if(!t||0===t.length)return null;let i=null,r=0;for(e=e.toLowerCase(),t=t.toLowerCase();r<t.length&&null===(i=y(e,t,0,r,n));)r=w(t,r+1);return i}function y(e,t,n,i,r){if(n===e.length)return[];if(i===t.length)return null;if(o=e.charCodeAt(n),s=t.charCodeAt(i),o===s||f(o)&&f(s)){let o=null,s=i+1;if(o=y(e,t,n+1,i+1,r),!r)for(;!o&&(s=w(t,s))<t.length;)o=y(e,t,n+1,s,r),s++;return null===o?null:p({start:i,end:i+1},o)}return null;var o,s}function w(e,t){for(let n=t;n<e.length;n++)if(f(e.charCodeAt(n))||n>0&&f(e.charCodeAt(n-1)))return n;return e.length}"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?".split("").forEach(e=>h.add(e.charCodeAt(0)));const C=o(s,b,a),S=o(s,b,(function(e,t){return function e(t,n,i,r){if(i===t.length)return[];if(r===n.length)return null;if(t[i]===n[r]){let o=null;return(o=e(t,n,i+1,r+1))?p({start:r,end:r+1},o):null}return e(t,n,i,r+1)}(e.toLowerCase(),t.toLowerCase(),0,0)})),k=new i.a(1e4);function x(e,t,n=!1){if("string"!=typeof e||"string"!=typeof t)return null;let i=k.get(e);i||(i=new RegExp(r.p(e),"i"),k.set(e,i));const o=i.exec(t);return o?[{start:o.index,end:o.index+o[0].length}]:n?S(e,t):C(e,t)}function L(e,t,n,i,r,o){const s=F(e,t,0,i,r,0,!0);if(s)return s;let a=0,l=0,c=o;for(let e=0;e<t.length&&e<D;++e){const n=r.indexOf(t.charAt(e),c);if(n>=0)l+=1,a+=Math.pow(2,n),c=n+1;else if(0!==a)break}return[l,a,o]}function M(e){if(void 0===e)return[];const t=e[1].toString(2),n=[];for(let i=e[2];i<D;i++)if("1"===t[t.length-(i+1)]){const e=n[n.length-1];e&&e.end===i?e.end=i+1:n.push({start:i,end:i+1})}return n}const D=128;function E(){const e=[],t=[0];for(let e=1;e<=D;e++)t.push(-e);for(let n=0;n<=D;n++){const i=t.slice(0);i[0]=-n,e.push(i)}return e}const T=E(),O=E(),N=E(),I=!1;function A(e,t,n,i,r){function o(e,t,n=" "){for(;e.length<t;)e=n+e;return e}let s=` | |${i.split("").map(e=>o(e,3)).join("|")}\n`;for(let i=0;i<=n;i++)s+=0===i?" |":`${t[i-1]}|`,s+=e[i].slice(0,r+1).map(e=>o(e.toString(),3)).join("|")+"\n";return s}function R(e,t){if(t<0||t>=e.length)return!1;switch(e.charCodeAt(t)){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:return!0;default:return!1}}function P(e,t,n){return t[e]!==n[e]}var j;function F(e,t,n,i,r,o,s){const a=e.length>D?D:e.length,l=i.length>D?D:i.length;if(n>=a||o>=l||a-n>l-o)return;if(!function(e,t,n,i,r,o){for(;t<n&&r<o;)e[t]===i[r]&&(t+=1),r+=1;return t===n}(t,n,a,r,o,l))return;let c=1,d=1,u=n,h=o,f=!1;for(c=1,u=n;u<a;c++,u++)for(d=1,h=o;h<l;d++,h++){const o=B(e,t,u,n,i,r,h);u===n&&o>1&&(f=!0),O[c][d]=o;const s=T[c-1][d-1]+(o>1?1:o),a=T[c-1][d]+-1,l=T[c][d-1]+-1;l>=a?l>s?(T[c][d]=l,N[c][d]=4):l===s?(T[c][d]=l,N[c][d]=6):(T[c][d]=s,N[c][d]=2):a>s?(T[c][d]=a,N[c][d]=1):a===s?(T[c][d]=a,N[c][d]=3):(T[c][d]=s,N[c][d]=2)}return I&&function(e,t,n,i){e=e.substr(t),n=n.substr(i),console.log(A(T,e,e.length,n,n.length)),console.log(A(N,e,e.length,n,n.length)),console.log(A(O,e,e.length,n,n.length))}(e,n,i,o),(f||s)&&(W=0,Y=-100,V=o,z=s,function e(t,n,i,r,o){if(W>=10||i<-25)return;let s=0;for(;t>0&&n>0;){const a=O[t][n],l=N[t][n];if(4===l)n-=1,o?i-=5:0!==r&&(i-=1),o=!1,s=0;else{if(!(2&l))return;if(4&l&&e(t,n-1,0!==r?i-1:i,r,o),i+=a,t-=1,n-=1,o=!0,r+=Math.pow(2,n+V),1===a){if(s+=1,0===t&&!z)return}else i+=1+s*(a-1),s=0}}W+=1,(i-=n>=3?9:3*n)>Y&&(Y=i,H=r)}(c-1,d-1,a===l?1:0,0,!1),0!==W)?[Y,H,o]:void 0}function B(e,t,n,i,r,o,s){return t[n]!==o[s]?-1:s===n-i?e[n]===r[s]?7:5:!P(s,r,o)||0!==s&&P(s-1,r,o)?!R(o,s)||0!==s&&R(o,s-1)?R(o,s-1)||function(e,t){if(t<0||t>=e.length)return!1;switch(e.charCodeAt(t)){case 32:case 9:return!0;default:return!1}}(o,s-1)?5:1:5:e[n]===r[s]?7:5}!function(e){e.Default=Object.freeze([-100,0,0]),e.isDefault=function(e){return!e||-100===e[0]&&0===e[1]&&0===e[2]}}(j||(j={}));let W=0,H=0,Y=0,V=0,z=!1;function U(e,t,n,i,r,o,s){return function(e,t,n,i,r,o,s,a){let l=F(e,t,n,i,r,o,a);if(l&&!s)return l;if(e.length>=3){const t=Math.min(7,e.length-1);for(let s=n+1;s<t;s++){const t=$(e,s);if(t){const e=F(t,t.toLowerCase(),n,i,r,o,a);e&&(e[0]-=3,(!l||e[0]>l[0])&&(l=e))}}}return l}(e,t,n,i,r,o,!0,s)}function $(e,t){if(t+1>=e.length)return;const n=e[t],i=e[t+1];return n!==i?e.slice(0,t)+i+n+e.slice(t+2):void 0}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return l})),n.d(t,"e",(function(){return c})),n.d(t,"c",(function(){return d})),n.d(t,"f",(function(){return u})),n.d(t,"d",(function(){return h})),n.d(t,"g",(function(){return f}));var i=n(8);const r=void 0!==e,o="undefined"!=typeof TextDecoder;let s;class a{constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}toString(){return r?this.buffer.toString():o?(s||(s=new TextDecoder),s.decode(this.buffer)):i.r(this.buffer)}}function l(e,t){return e[t+0]<<0>>>0|e[t+1]<<8>>>0}function c(e,t,n){e[n+0]=255&t,t>>>=8,e[n+1]=255&t}function d(e,t){return e[t]*Math.pow(2,24)+e[t+1]*Math.pow(2,16)+e[t+2]*Math.pow(2,8)+e[t+3]}function u(e,t,n){e[n+3]=t,t>>>=8,e[n+2]=t,t>>>=8,e[n+1]=t,t>>>=8,e[n]=t}function h(e,t){return e[t]}function f(e,t,n){e[n]=t}}).call(this,n(573).Buffer)},function(e,t,n){"use strict";n.d(t,"f",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return a})),n.d(t,"a",(function(){return l})),n.d(t,"e",(function(){return c}));var i=n(8);class r{constructor(e,t,n,i){this.top=0|e,this.left=0|t,this.width=0|n,this.height=0|i}}class o{constructor(e,t){this.tabSize=e,this.data=t}}class s{constructor(e,t,n,i,r,o){this.content=e,this.continuesWithWrappedLine=t,this.minColumn=n,this.maxColumn=i,this.startVisibleColumn=r,this.tokens=o}}class a{constructor(e,t,n,i,r,o,s,l,c,d){this.minColumn=e,this.maxColumn=t,this.content=n,this.continuesWithWrappedLine=i,this.isBasicASCII=a.isBasicASCII(n,o),this.containsRTL=a.containsRTL(n,this.isBasicASCII,r),this.tokens=s,this.inlineDecorations=l,this.tabSize=c,this.startVisibleColumn=d}static isBasicASCII(e,t){return!t||i.B(e)}static containsRTL(e,t,n){return!(t||!n)&&i.m(e)}}class l{constructor(e,t,n){this.range=e,this.inlineClassName=t,this.type=n}}class c{constructor(e,t){this.range=e,this.options=t}}},function(e,t,n){"use strict";var i;n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r})),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(i||(i={}));class r{constructor(e){if(this.open=e.open,this.close=e.close,this._standardTokenMask=0,Array.isArray(e.notIn))for(let t=0,n=e.notIn.length;t<n;t++){switch(e.notIn[t]){case"string":this._standardTokenMask|=2;break;case"comment":this._standardTokenMask|=1;break;case"regex":this._standardTokenMask|=4}}}isOK(e){return 0==(this._standardTokenMask&e)}}},function(e,t,n){"use strict";n.d(t,"c",(function(){return u})),n.d(t,"b",(function(){return h})),n.d(t,"a",(function(){return g}));var i=n(24),r=n(8),o=n(35),s=n(12);class a{constructor(){this._value="",this._pos=0}reset(e){return this._value=e,this._pos=0,this}next(){return this._pos+=1,this}hasNext(){return this._pos<this._value.length-1}cmp(e){return e.charCodeAt(0)-this._value.charCodeAt(this._pos)}value(){return this._value[this._pos]}}class l{constructor(e=!0,t=!0){this._splitOnBackslash=e,this._caseSensitive=t}reset(e){return this._value=e.replace(/\\$|\/$/,""),this._from=0,this._to=0,this.next()}hasNext(){return this._to<this._value.length}next(){this._from=this._to;let e=!0;for(;this._to<this._value.length;this._to++){const t=this._value.charCodeAt(this._to);if(47===t||this._splitOnBackslash&&92===t){if(!e)break;this._from++}else e=!1}return this}cmp(e){return this._caseSensitive?Object(r.h)(e,this._value,0,e.length,this._from,this._to):Object(r.i)(e,this._value,0,e.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}}class c{constructor(){this._states=[],this._stateIdx=0}reset(e){if(this._value=e,this._states=[],this._value.scheme&&this._states.push(1),this._value.authority&&this._states.push(2),this._value.path){const t=e.scheme===o.b.file&&s.d;this._pathIterator=new l(!1,t),this._pathIterator.reset(e.path),this._pathIterator.value()&&this._states.push(3)}return this._value.query&&this._states.push(4),this._value.fragment&&this._states.push(5),this._stateIdx=0,this}next(){return 3===this._states[this._stateIdx]&&this._pathIterator.hasNext()?this._pathIterator.next():this._stateIdx+=1,this}hasNext(){return 3===this._states[this._stateIdx]&&this._pathIterator.hasNext()||this._stateIdx<this._states.length-1}cmp(e){if(1===this._states[this._stateIdx])return Object(r.f)(e,this._value.scheme);if(2===this._states[this._stateIdx])return Object(r.i)(e,this._value.authority);if(3===this._states[this._stateIdx])return this._pathIterator.cmp(e);if(4===this._states[this._stateIdx])return Object(r.f)(e,this._value.query);if(5===this._states[this._stateIdx])return Object(r.f)(e,this._value.fragment);throw new Error}value(){if(1===this._states[this._stateIdx])return this._value.scheme;if(2===this._states[this._stateIdx])return this._value.authority;if(3===this._states[this._stateIdx])return this._pathIterator.value();if(4===this._states[this._stateIdx])return this._value.query;if(5===this._states[this._stateIdx])return this._value.fragment;throw new Error}}class d{}class u{constructor(e){this._iter=e}static forUris(){return new u(new c)}static forStrings(){return new u(new a)}clear(){this._root=void 0}set(e,t){const n=this._iter.reset(e);let i;for(this._root||(this._root=new d,this._root.segment=n.value()),i=this._root;;){const e=n.cmp(i.segment);if(e>0)i.left||(i.left=new d,i.left.segment=n.value()),i=i.left;else if(e<0)i.right||(i.right=new d,i.right.segment=n.value()),i=i.right;else{if(!n.hasNext())break;n.next(),i.mid||(i.mid=new d,i.mid.segment=n.value()),i=i.mid}}const r=i.value;return i.value=t,i.key=e,r}get(e){const t=this._iter.reset(e);let n=this._root;for(;n;){const e=t.cmp(n.segment);if(e>0)n=n.left;else if(e<0)n=n.right;else{if(!t.hasNext())break;t.next(),n=n.mid}}return n?n.value:void 0}findSubstr(e){const t=this._iter.reset(e);let n=this._root,i=void 0;for(;n;){const e=t.cmp(n.segment);if(e>0)n=n.left;else if(e<0)n=n.right;else{if(!t.hasNext())break;t.next(),i=n.value||i,n=n.mid}}return n&&n.value||i}forEach(e){this._forEach(this._root,e)}_forEach(e,t){e&&(this._forEach(e.left,t),e.value&&t(e.value,e.key),this._forEach(e.mid,t),this._forEach(e.right,t))}}class h{constructor(e,t){this[Symbol.toStringTag]="ResourceMap",e instanceof h?(this.map=new Map(e.map),this.toKey=null!=t?t:h.defaultToKey):(this.map=new Map,this.toKey=null!=e?e:h.defaultToKey)}set(e,t){return this.map.set(this.toKey(e),t),this}get(e){return this.map.get(this.toKey(e))}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e,t){void 0!==t&&(e=e.bind(t));for(let[t,n]of this.map)e(n,i.a.parse(t),this)}values(){return this.map.values()}*keys(){for(let e of this.map.keys())yield i.a.parse(e)}*entries(){for(let e of this.map.entries())yield[i.a.parse(e[0]),e[1]]}*[Symbol.iterator](){for(let e of this.map)yield[i.a.parse(e[0]),e[1]]}}h.defaultToKey=e=>e.toString();class f{constructor(){this[Symbol.toStringTag]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var e;return null===(e=this._head)||void 0===e?void 0:e.value}get last(){var e;return null===(e=this._tail)||void 0===e?void 0:e.value}has(e){return this._map.has(e)}get(e,t=0){const n=this._map.get(e);if(n)return 0!==t&&this.touch(n,t),n.value}set(e,t,n=0){let i=this._map.get(e);if(i)i.value=t,0!==n&&this.touch(i,n);else{switch(i={key:e,value:t,next:void 0,previous:void 0},n){case 0:this.addItemLast(i);break;case 1:this.addItemFirst(i);break;case 2:default:this.addItemLast(i)}this._map.set(e,i),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const n=this._state;let i=this._head;for(;i;){if(t?e.bind(t)(i.value,i.key,this):e(i.value,i.key,this),this._state!==n)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){const e=this,t=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.key,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return i}values(){const e=this,t=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.value,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return i}entries(){const e=this,t=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:[n.key,n.value],done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return i}[Symbol.iterator](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._head,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0),this._state++}addItemFirst(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,n=e.previous;if(!t||!n)throw new Error("Invalid list");t.previous=n,n.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(1===t||2===t)if(1===t){if(e===this._head)return;const t=e.next,n=e.previous;e===this._tail?(n.next=void 0,this._tail=n):(t.previous=n,n.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(2===t){if(e===this._tail)return;const t=e.next,n=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=n,n.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}toJSON(){const e=[];return this.forEach((t,n)=>{e.push([n,t])}),e}fromJSON(e){this.clear();for(const[t,n]of e)this.set(t,n)}}class g extends f{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get(e,t=2){return super.get(e,t)}peek(e){return super.get(e,0)}set(e,t){return super.set(e,t,2),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return d}));var i=n(24),r=n(17),o=n(2),s=n(8),a=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};const l=Object(r.c)("openerService"),c=Object.freeze({_serviceBrand:void 0,registerOpener:()=>o.a.None,registerValidator:()=>o.a.None,registerExternalUriResolver:()=>o.a.None,setExternalOpener(){},open(){return a(this,void 0,void 0,(function*(){return!1}))},resolveExternalUri(e){return a(this,void 0,void 0,(function*(){return{resolved:e,dispose(){}}}))}});function d(e,t){return i.a.isUri(e)?Object(s.t)(e.scheme,t):Object(s.T)(e,t+":")}},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return s}));var i=n(17),r=n(9);const o=Object(i.c)("accessibilityService"),s=new r.c("accessibilityModeEnabled",!1)},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var i=n(23),r=n(10),o=n(3),s=n(8);class a{constructor(e,t,n){this.lineNumber=e,this.column=t,this.leftoverVisibleColumns=n}}class l{static leftPosition(e,t,n){return n>e.getLineMinColumn(t)?n-=s.N(e.getLineContent(t),n-1):t>1&&(t-=1,n=e.getLineMaxColumn(t)),new r.a(t,n)}static left(e,t,n,i){const r=l.leftPosition(t,n,i);return new a(r.lineNumber,r.column,0)}static moveLeft(e,t,n,i,r){let o,s;if(n.hasSelection()&&!i)o=n.selection.startLineNumber,s=n.selection.startColumn;else{let i=l.left(e,t,n.position.lineNumber,n.position.column-(r-1));o=i.lineNumber,s=i.column}return n.move(i,o,s,0)}static rightPosition(e,t,n){return n<e.getLineMaxColumn(t)?n+=s.L(e.getLineContent(t),n-1):t<e.getLineCount()&&(t+=1,n=e.getLineMinColumn(t)),new r.a(t,n)}static right(e,t,n,i){const r=l.rightPosition(t,n,i);return new a(r.lineNumber,r.column,0)}static moveRight(e,t,n,i,r){let o,s;if(n.hasSelection()&&!i)o=n.selection.endLineNumber,s=n.selection.endColumn;else{let i=l.right(e,t,n.position.lineNumber,n.position.column+(r-1));o=i.lineNumber,s=i.column}return n.move(i,o,s,0)}static down(e,t,n,r,o,s,l){const c=i.a.visibleColumnFromColumn(t.getLineContent(n),r,e.tabSize)+o,d=t.getLineCount(),u=n===d&&r===t.getLineMaxColumn(n);return(n+=s)>d?(n=d,r=l?t.getLineMaxColumn(n):Math.min(t.getLineMaxColumn(n),r)):r=i.a.columnFromVisibleColumn2(e,t,n,c),o=u?0:c-i.a.visibleColumnFromColumn(t.getLineContent(n),r,e.tabSize),new a(n,r,o)}static moveDown(e,t,n,i,r){let o,s;n.hasSelection()&&!i?(o=n.selection.endLineNumber,s=n.selection.endColumn):(o=n.position.lineNumber,s=n.position.column);let a=l.down(e,t,o,s,n.leftoverVisibleColumns,r,!0);return n.move(i,a.lineNumber,a.column,a.leftoverVisibleColumns)}static translateDown(e,t,n){let s=n.selection,a=l.down(e,t,s.selectionStartLineNumber,s.selectionStartColumn,n.selectionStartLeftoverVisibleColumns,1,!1),c=l.down(e,t,s.positionLineNumber,s.positionColumn,n.leftoverVisibleColumns,1,!1);return new i.f(new o.a(a.lineNumber,a.column,a.lineNumber,a.column),a.leftoverVisibleColumns,new r.a(c.lineNumber,c.column),c.leftoverVisibleColumns)}static up(e,t,n,r,o,s,l){const c=i.a.visibleColumnFromColumn(t.getLineContent(n),r,e.tabSize)+o,d=1===n&&1===r;return(n-=s)<1?(n=1,r=l?t.getLineMinColumn(n):Math.min(t.getLineMaxColumn(n),r)):r=i.a.columnFromVisibleColumn2(e,t,n,c),o=d?0:c-i.a.visibleColumnFromColumn(t.getLineContent(n),r,e.tabSize),new a(n,r,o)}static moveUp(e,t,n,i,r){let o,s;n.hasSelection()&&!i?(o=n.selection.startLineNumber,s=n.selection.startColumn):(o=n.position.lineNumber,s=n.position.column);let a=l.up(e,t,o,s,n.leftoverVisibleColumns,r,!0);return n.move(i,a.lineNumber,a.column,a.leftoverVisibleColumns)}static translateUp(e,t,n){let s=n.selection,a=l.up(e,t,s.selectionStartLineNumber,s.selectionStartColumn,n.selectionStartLeftoverVisibleColumns,1,!1),c=l.up(e,t,s.positionLineNumber,s.positionColumn,n.leftoverVisibleColumns,1,!1);return new i.f(new o.a(a.lineNumber,a.column,a.lineNumber,a.column),a.leftoverVisibleColumns,new r.a(c.lineNumber,c.column),c.leftoverVisibleColumns)}static moveToBeginningOfLine(e,t,n,i){let r,o=n.position.lineNumber,s=t.getLineMinColumn(o),a=t.getLineFirstNonWhitespaceColumn(o)||s;return r=n.position.column===a?s:a,n.move(i,o,r,0)}static moveToEndOfLine(e,t,n,i,r){let o=n.position.lineNumber,s=t.getLineMaxColumn(o);return n.move(i,o,s,r?1073741824-s:0)}static moveToBeginningOfBuffer(e,t,n,i){return n.move(i,1,1,0)}static moveToEndOfBuffer(e,t,n,i){let r=t.getLineCount(),o=t.getLineMaxColumn(r);return n.move(i,r,o,0)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var i=n(1),r=n(56),o=n(59),s=n(2),a=n(50);class l extends s.a{onclick(e,t){this._register(i.i(e,i.c.CLICK,e=>t(new o.a(e))))}onmousedown(e,t){this._register(i.i(e,i.c.MOUSE_DOWN,e=>t(new o.a(e))))}onmouseover(e,t){this._register(i.i(e,i.c.MOUSE_OVER,e=>t(new o.a(e))))}onnonbubblingmouseout(e,t){this._register(i.j(e,e=>t(new o.a(e))))}onkeydown(e,t){this._register(i.i(e,i.c.KEY_DOWN,e=>t(new r.a(e))))}onkeyup(e,t){this._register(i.i(e,i.c.KEY_UP,e=>t(new r.a(e))))}oninput(e,t){this._register(i.i(e,i.c.INPUT,t))}onblur(e,t){this._register(i.i(e,i.c.BLUR,t))}onfocus(e,t){this._register(i.i(e,i.c.FOCUS,t))}ignoreGesture(e){a.b.ignoreTarget(e)}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o}));var i=n(17);class r{constructor(e){this.callback=e}report(e){this._value=e,this.callback(this._value)}}r.None=Object.freeze({report(){}});const o=Object(i.c)("editorProgressService")},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o}));var i=n(17);const r=Object(i.c)("contextViewService"),o=Object(i.c)("contextMenuService")},function(e,t,n){"use strict";n.d(t,"b",(function(){return f})),n.d(t,"a",(function(){return p})),n.d(t,"c",(function(){return m}));var i=n(0),r=n(6),o=n(42),s=n(2),a=n(8),l=n(150),c=n(3),d=n(65),u=n(15),h=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};class f{constructor(e,t,n,i,r){this.isProviderFirst=e,this.parent=t,this.uri=n,this._range=i,this._rangeCallback=r,this.id=l.b.nextId()}get range(){return this._range}set range(e){this._range=e,this._rangeCallback(this)}get ariaMessage(){return Object(i.a)("aria.oneReference","symbol in {0} on line {1} at column {2}",Object(o.b)(this.uri),this.range.startLineNumber,this.range.startColumn)}}class g{constructor(e){this._modelReference=e}dispose(){this._modelReference.dispose()}preview(e,t=8){const n=this._modelReference.object.textEditorModel;if(!n)return;const{startLineNumber:i,startColumn:r,endLineNumber:o,endColumn:s}=e,a=n.getWordUntilPosition({lineNumber:i,column:r-t}),l=new c.a(i,a.startColumn,i,r),d=new c.a(o,s,o,1073741824),u=n.getValueInRange(l).replace(/^\s+/,""),h=n.getValueInRange(e);return{value:u+h+n.getValueInRange(d).replace(/\s+$/,""),highlight:{start:u.length,end:u.length+h.length}}}}class p{constructor(e,t){this.parent=e,this.uri=t,this.children=[],this._previews=new d.b}dispose(){Object(s.f)(this._previews.values()),this._previews.clear()}getPreview(e){return this._previews.get(e.uri)}get ariaMessage(){const e=this.children.length;return 1===e?Object(i.a)("aria.fileReferences.1","1 symbol in {0}, full path {1}",Object(o.b)(this.uri),this.uri.fsPath):Object(i.a)("aria.fileReferences.N","{0} symbols in {1}, full path {2}",e,Object(o.b)(this.uri),this.uri.fsPath)}resolve(e){return h(this,void 0,void 0,(function*(){if(0!==this._previews.size)return this;for(let t of this.children)if(!this._previews.has(t.uri))try{const n=yield e.createModelReference(t.uri);this._previews.set(t.uri,new g(n))}catch(e){Object(u.e)(e)}return this}))}}class m{constructor(e,t){this._disposables=new s.b,this.groups=[],this.references=[],this._onDidChangeReferenceRange=new r.a,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._links=e,this._title=t;const[n]=e;let i;e.sort(m._compareReferences);for(let t of e)if(i&&o.e.isEqual(i.uri,t.uri,!0)||(i=new p(this,t.uri),this.groups.push(i)),0===i.children.length||0!==m._compareReferences(t,i.children[i.children.length-1])){const e=new f(n===t,i,t.uri,t.targetSelectionRange||t.range,e=>this._onDidChangeReferenceRange.fire(e));this.references.push(e),i.children.push(e)}}dispose(){Object(s.f)(this.groups),this._disposables.dispose(),this._onDidChangeReferenceRange.dispose(),this.groups.length=0}clone(){return new m(this._links,this._title)}get title(){return this._title}get isEmpty(){return 0===this.groups.length}get ariaMessage(){return this.isEmpty?Object(i.a)("aria.result.0","No results found"):1===this.references.length?Object(i.a)("aria.result.1","Found 1 symbol in {0}",this.references[0].uri.fsPath):1===this.groups.length?Object(i.a)("aria.result.n1","Found {0} symbols in {1}",this.references.length,this.groups[0].uri.fsPath):Object(i.a)("aria.result.nm","Found {0} symbols in {1} files",this.references.length,this.groups.length)}nextOrPreviousReference(e,t){let{parent:n}=e,i=n.children.indexOf(e),r=n.children.length,o=n.parent.groups.length;return 1===o||t&&i+1<r||!t&&i>0?(i=t?(i+1)%r:(i+r-1)%r,n.children[i]):(i=n.parent.groups.indexOf(n),t?(i=(i+1)%o,n.parent.groups[i].children[0]):(i=(i+o-1)%o,n.parent.groups[i].children[n.parent.groups[i].children.length-1]))}nearestReference(e,t){const n=this.references.map((n,i)=>({idx:i,prefixLen:a.d(n.uri.toString(),e.toString()),offsetDist:100*Math.abs(n.range.startLineNumber-t.lineNumber)+Math.abs(n.range.startColumn-t.column)})).sort((e,t)=>e.prefixLen>t.prefixLen?-1:e.prefixLen<t.prefixLen?1:e.offsetDist<t.offsetDist?-1:e.offsetDist>t.offsetDist?1:0)[0];if(n)return this.references[n.idx]}referenceAt(e,t){for(const n of this.references)if(n.uri.toString()===e.toString()&&c.a.containsPosition(n.range,t))return n}firstReference(){for(const e of this.references)if(e.isProviderFirst)return e;return this.references[0]}static _compareReferences(e,t){return o.e.compare(e.uri,t.uri)||c.a.compareRangesUsingStarts(e.range,t.range)}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return i}));var i,r=n(20),o=n(23),s=n(68),a=n(122),l=n(10),c=n(3);class d{static addCursorDown(e,t,n){let i=[],r=0;for(let a=0,l=t.length;a<l;a++){const l=t[a];i[r++]=new o.d(l.modelState,l.viewState),i[r++]=n?o.d.fromModelState(s.a.translateDown(e.cursorConfig,e.model,l.modelState)):o.d.fromViewState(s.a.translateDown(e.cursorConfig,e,l.viewState))}return i}static addCursorUp(e,t,n){let i=[],r=0;for(let a=0,l=t.length;a<l;a++){const l=t[a];i[r++]=new o.d(l.modelState,l.viewState),i[r++]=n?o.d.fromModelState(s.a.translateUp(e.cursorConfig,e.model,l.modelState)):o.d.fromViewState(s.a.translateUp(e.cursorConfig,e,l.viewState))}return i}static moveToBeginningOfLine(e,t,n){let i=[];for(let r=0,o=t.length;r<o;r++){const o=t[r];i[r]=this._moveToLineStart(e,o,n)}return i}static _moveToLineStart(e,t,n){const i=t.viewState.position.column,r=i===t.modelState.position.column,o=t.viewState.position.lineNumber,s=e.getLineFirstNonWhitespaceColumn(o);return r||i===s?this._moveToLineStartByModel(e,t,n):this._moveToLineStartByView(e,t,n)}static _moveToLineStartByView(e,t,n){return o.d.fromViewState(s.a.moveToBeginningOfLine(e.cursorConfig,e,t.viewState,n))}static _moveToLineStartByModel(e,t,n){return o.d.fromModelState(s.a.moveToBeginningOfLine(e.cursorConfig,e.model,t.modelState,n))}static moveToEndOfLine(e,t,n,i){let r=[];for(let o=0,s=t.length;o<s;o++){const s=t[o];r[o]=this._moveToLineEnd(e,s,n,i)}return r}static _moveToLineEnd(e,t,n,i){const r=t.viewState.position,o=e.getLineMaxColumn(r.lineNumber),s=r.column===o,a=t.modelState.position,l=e.model.getLineMaxColumn(a.lineNumber),c=o-r.column==l-a.column;return s||c?this._moveToLineEndByModel(e,t,n,i):this._moveToLineEndByView(e,t,n,i)}static _moveToLineEndByView(e,t,n,i){return o.d.fromViewState(s.a.moveToEndOfLine(e.cursorConfig,e,t.viewState,n,i))}static _moveToLineEndByModel(e,t,n,i){return o.d.fromModelState(s.a.moveToEndOfLine(e.cursorConfig,e.model,t.modelState,n,i))}static expandLineSelection(e,t){let n=[];for(let i=0,r=t.length;i<r;i++){const r=t[i],s=r.modelState.selection.startLineNumber,a=e.model.getLineCount();let d,u=r.modelState.selection.endLineNumber;u===a?d=e.model.getLineMaxColumn(a):(u++,d=1),n[i]=o.d.fromModelState(new o.f(new c.a(s,1,s,1),0,new l.a(u,d),0))}return n}static moveToBeginningOfBuffer(e,t,n){let i=[];for(let r=0,a=t.length;r<a;r++){const a=t[r];i[r]=o.d.fromModelState(s.a.moveToBeginningOfBuffer(e.cursorConfig,e.model,a.modelState,n))}return i}static moveToEndOfBuffer(e,t,n){let i=[];for(let r=0,a=t.length;r<a;r++){const a=t[r];i[r]=o.d.fromModelState(s.a.moveToEndOfBuffer(e.cursorConfig,e.model,a.modelState,n))}return i}static selectAll(e,t){const n=e.model.getLineCount(),i=e.model.getLineMaxColumn(n);return o.d.fromModelState(new o.f(new c.a(1,1,1,1),0,new l.a(n,i),0))}static line(e,t,n,i,r){const s=e.model.validatePosition(i),a=r?e.coordinatesConverter.validateViewPosition(new l.a(r.lineNumber,r.column),s):e.coordinatesConverter.convertModelPositionToViewPosition(s);if(!n||!t.modelState.hasSelection()){const t=e.model.getLineCount();let n=s.lineNumber+1,i=1;return n>t&&(n=t,i=e.model.getLineMaxColumn(n)),o.d.fromModelState(new o.f(new c.a(s.lineNumber,1,n,i),0,new l.a(n,i),0))}const d=t.modelState.selectionStart.getStartPosition().lineNumber;if(s.lineNumber<d)return o.d.fromViewState(t.viewState.move(t.modelState.hasSelection(),a.lineNumber,1,0));if(s.lineNumber>d){const n=e.getLineCount();let i=a.lineNumber+1,r=1;return i>n&&(i=n,r=e.getLineMaxColumn(i)),o.d.fromViewState(t.viewState.move(t.modelState.hasSelection(),i,r,0))}{const e=t.modelState.selectionStart.getEndPosition();return o.d.fromModelState(t.modelState.move(t.modelState.hasSelection(),e.lineNumber,e.column,0))}}static word(e,t,n,i){const r=e.model.validatePosition(i);return o.d.fromModelState(a.a.word(e.cursorConfig,e.model,t.modelState,n,r))}static cancelSelection(e,t){if(!t.modelState.hasSelection())return new o.d(t.modelState,t.viewState);const n=t.viewState.position.lineNumber,i=t.viewState.position.column;return o.d.fromViewState(new o.f(new c.a(n,i,n,i),0,new l.a(n,i),0))}static moveTo(e,t,n,i,r){const s=e.model.validatePosition(i),a=r?e.coordinatesConverter.validateViewPosition(new l.a(r.lineNumber,r.column),s):e.coordinatesConverter.convertModelPositionToViewPosition(s);return o.d.fromViewState(t.viewState.move(n,a.lineNumber,a.column,0))}static simpleMove(e,t,n,i,r,o){switch(n){case 0:return 4===o?this._moveHalfLineLeft(e,t,i):this._moveLeft(e,t,i,r);case 1:return 4===o?this._moveHalfLineRight(e,t,i):this._moveRight(e,t,i,r);case 2:return 2===o?this._moveUpByViewLines(e,t,i,r):this._moveUpByModelLines(e,t,i,r);case 3:return 2===o?this._moveDownByViewLines(e,t,i,r):this._moveDownByModelLines(e,t,i,r);case 4:return this._moveToViewMinColumn(e,t,i);case 5:return this._moveToViewFirstNonWhitespaceColumn(e,t,i);case 6:return this._moveToViewCenterColumn(e,t,i);case 7:return this._moveToViewMaxColumn(e,t,i);case 8:return this._moveToViewLastNonWhitespaceColumn(e,t,i);default:return null}}static viewportMove(e,t,n,i,r){const o=e.getCompletelyVisibleViewRange(),s=e.coordinatesConverter.convertViewRangeToModelRange(o);switch(n){case 9:{const n=this._firstLineNumberInRange(e.model,s,r),o=e.model.getLineFirstNonWhitespaceColumn(n);return[this._moveToModelPosition(e,t[0],i,n,o)]}case 11:{const n=this._lastLineNumberInRange(e.model,s,r),o=e.model.getLineFirstNonWhitespaceColumn(n);return[this._moveToModelPosition(e,t[0],i,n,o)]}case 10:{const n=Math.round((s.startLineNumber+s.endLineNumber)/2),r=e.model.getLineFirstNonWhitespaceColumn(n);return[this._moveToModelPosition(e,t[0],i,n,r)]}case 12:{let n=[];for(let r=0,s=t.length;r<s;r++){const s=t[r];n[r]=this.findPositionInViewportIfOutside(e,s,o,i)}return n}default:return null}}static findPositionInViewportIfOutside(e,t,n,i){let r=t.viewState.position.lineNumber;if(n.startLineNumber<=r&&r<=n.endLineNumber-1)return new o.d(t.modelState,t.viewState);{r>n.endLineNumber-1&&(r=n.endLineNumber-1),r<n.startLineNumber&&(r=n.startLineNumber);const o=e.getLineFirstNonWhitespaceColumn(r);return this._moveToViewPosition(e,t,i,r,o)}}static _firstLineNumberInRange(e,t,n){let i=t.startLineNumber;return t.startColumn!==e.getLineMinColumn(i)&&i++,Math.min(t.endLineNumber,i+n-1)}static _lastLineNumberInRange(e,t,n){let i=t.startLineNumber;return t.startColumn!==e.getLineMinColumn(i)&&i++,Math.max(i,t.endLineNumber-n+1)}static _moveLeft(e,t,n,i){const r=t.length>1;let a=[];for(let l=0,c=t.length;l<c;l++){const c=t[l],d=r||!c.viewState.hasSelection();let u=s.a.moveLeft(e.cursorConfig,e,c.viewState,n,i);if(d&&1===i&&u.position.lineNumber!==c.viewState.position.lineNumber){e.coordinatesConverter.convertViewPositionToModelPosition(u.position).lineNumber===c.modelState.position.lineNumber&&(u=s.a.moveLeft(e.cursorConfig,e,u,n,1))}a[l]=o.d.fromViewState(u)}return a}static _moveHalfLineLeft(e,t,n){let i=[];for(let r=0,a=t.length;r<a;r++){const a=t[r],l=a.viewState.position.lineNumber,c=Math.round(e.getLineContent(l).length/2);i[r]=o.d.fromViewState(s.a.moveLeft(e.cursorConfig,e,a.viewState,n,c))}return i}static _moveRight(e,t,n,i){const r=t.length>1;let a=[];for(let l=0,c=t.length;l<c;l++){const c=t[l],d=r||!c.viewState.hasSelection();let u=s.a.moveRight(e.cursorConfig,e,c.viewState,n,i);if(d&&1===i&&u.position.lineNumber!==c.viewState.position.lineNumber){e.coordinatesConverter.convertViewPositionToModelPosition(u.position).lineNumber===c.modelState.position.lineNumber&&(u=s.a.moveRight(e.cursorConfig,e,u,n,1))}a[l]=o.d.fromViewState(u)}return a}static _moveHalfLineRight(e,t,n){let i=[];for(let r=0,a=t.length;r<a;r++){const a=t[r],l=a.viewState.position.lineNumber,c=Math.round(e.getLineContent(l).length/2);i[r]=o.d.fromViewState(s.a.moveRight(e.cursorConfig,e,a.viewState,n,c))}return i}static _moveDownByViewLines(e,t,n,i){let r=[];for(let a=0,l=t.length;a<l;a++){const l=t[a];r[a]=o.d.fromViewState(s.a.moveDown(e.cursorConfig,e,l.viewState,n,i))}return r}static _moveDownByModelLines(e,t,n,i){let r=[];for(let a=0,l=t.length;a<l;a++){const l=t[a];r[a]=o.d.fromModelState(s.a.moveDown(e.cursorConfig,e.model,l.modelState,n,i))}return r}static _moveUpByViewLines(e,t,n,i){let r=[];for(let a=0,l=t.length;a<l;a++){const l=t[a];r[a]=o.d.fromViewState(s.a.moveUp(e.cursorConfig,e,l.viewState,n,i))}return r}static _moveUpByModelLines(e,t,n,i){let r=[];for(let a=0,l=t.length;a<l;a++){const l=t[a];r[a]=o.d.fromModelState(s.a.moveUp(e.cursorConfig,e.model,l.modelState,n,i))}return r}static _moveToViewPosition(e,t,n,i,r){return o.d.fromViewState(t.viewState.move(n,i,r,0))}static _moveToModelPosition(e,t,n,i,r){return o.d.fromModelState(t.modelState.move(n,i,r,0))}static _moveToViewMinColumn(e,t,n){let i=[];for(let r=0,o=t.length;r<o;r++){const o=t[r],s=o.viewState.position.lineNumber,a=e.getLineMinColumn(s);i[r]=this._moveToViewPosition(e,o,n,s,a)}return i}static _moveToViewFirstNonWhitespaceColumn(e,t,n){let i=[];for(let r=0,o=t.length;r<o;r++){const o=t[r],s=o.viewState.position.lineNumber,a=e.getLineFirstNonWhitespaceColumn(s);i[r]=this._moveToViewPosition(e,o,n,s,a)}return i}static _moveToViewCenterColumn(e,t,n){let i=[];for(let r=0,o=t.length;r<o;r++){const o=t[r],s=o.viewState.position.lineNumber,a=Math.round((e.getLineMaxColumn(s)+e.getLineMinColumn(s))/2);i[r]=this._moveToViewPosition(e,o,n,s,a)}return i}static _moveToViewMaxColumn(e,t,n){let i=[];for(let r=0,o=t.length;r<o;r++){const o=t[r],s=o.viewState.position.lineNumber,a=e.getLineMaxColumn(s);i[r]=this._moveToViewPosition(e,o,n,s,a)}return i}static _moveToViewLastNonWhitespaceColumn(e,t,n){let i=[];for(let r=0,o=t.length;r<o;r++){const o=t[r],s=o.viewState.position.lineNumber,a=e.getLineLastNonWhitespaceColumn(s);i[r]=this._moveToViewPosition(e,o,n,s,a)}return i}}!function(e){e.description={description:"Move cursor to a logical position in the view",args:[{name:"Cursor move argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'to': A mandatory logical position value providing where to move the cursor.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'left', 'right', 'up', 'down'\n\t\t\t\t\t\t'wrappedLineStart', 'wrappedLineEnd', 'wrappedLineColumnCenter'\n\t\t\t\t\t\t'wrappedLineFirstNonWhitespaceCharacter', 'wrappedLineLastNonWhitespaceCharacter'\n\t\t\t\t\t\t'viewPortTop', 'viewPortCenter', 'viewPortBottom', 'viewPortIfOutside'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'by': Unit to move. Default is computed based on 'to' value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'line', 'wrappedLine', 'character', 'halfLine'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'value': Number of units to move. Default is '1'.\n\t\t\t\t\t* 'select': If 'true' makes the selection. Default is 'false'.\n\t\t\t\t",constraint:function(e){if(!r.i(e))return!1;let t=e;return!!r.j(t.to)&&(!(!r.k(t.select)&&!r.f(t.select))&&(!(!r.k(t.by)&&!r.j(t.by))&&!(!r.k(t.value)&&!r.h(t.value))))},schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["left","right","up","down","wrappedLineStart","wrappedLineEnd","wrappedLineColumnCenter","wrappedLineFirstNonWhitespaceCharacter","wrappedLineLastNonWhitespaceCharacter","viewPortTop","viewPortCenter","viewPortBottom","viewPortIfOutside"]},by:{type:"string",enum:["line","wrappedLine","character","halfLine"]},value:{type:"number",default:1},select:{type:"boolean",default:!1}}}}]},e.RawDirection={Left:"left",Right:"right",Up:"up",Down:"down",WrappedLineStart:"wrappedLineStart",WrappedLineFirstNonWhitespaceCharacter:"wrappedLineFirstNonWhitespaceCharacter",WrappedLineColumnCenter:"wrappedLineColumnCenter",WrappedLineEnd:"wrappedLineEnd",WrappedLineLastNonWhitespaceCharacter:"wrappedLineLastNonWhitespaceCharacter",ViewPortTop:"viewPortTop",ViewPortCenter:"viewPortCenter",ViewPortBottom:"viewPortBottom",ViewPortIfOutside:"viewPortIfOutside"},e.RawUnit={Line:"line",WrappedLine:"wrappedLine",Character:"character",HalfLine:"halfLine"},e.parse=function(t){if(!t.to)return null;let n;switch(t.to){case e.RawDirection.Left:n=0;break;case e.RawDirection.Right:n=1;break;case e.RawDirection.Up:n=2;break;case e.RawDirection.Down:n=3;break;case e.RawDirection.WrappedLineStart:n=4;break;case e.RawDirection.WrappedLineFirstNonWhitespaceCharacter:n=5;break;case e.RawDirection.WrappedLineColumnCenter:n=6;break;case e.RawDirection.WrappedLineEnd:n=7;break;case e.RawDirection.WrappedLineLastNonWhitespaceCharacter:n=8;break;case e.RawDirection.ViewPortTop:n=9;break;case e.RawDirection.ViewPortBottom:n=11;break;case e.RawDirection.ViewPortCenter:n=10;break;case e.RawDirection.ViewPortIfOutside:n=12;break;default:return null}let i=0;switch(t.by){case e.RawUnit.Line:i=1;break;case e.RawUnit.WrappedLine:i=2;break;case e.RawUnit.Character:i=3;break;case e.RawUnit.HalfLine:i=4}return{direction:n,unit:i,select:!!t.select,value:t.value||1}}}(i||(i={}))},function(e,t,n){var i;try{i={cloneDeep:n(396),constant:n(217),defaults:n(312),each:n(218),filter:n(251),find:n(397),flatten:n(313),forEach:n(305),forIn:n(399),has:n(220),isUndefined:n(254),last:n(400),map:n(255),mapValues:n(401),max:n(402),merge:n(403),min:n(407),minBy:n(409),now:n(410),pick:n(315),range:n(316),reduce:n(256),sortBy:n(411),uniqueId:n(317),values:n(258),zipObject:n(412)}}catch(e){}i||(i=window._),e.exports=i},function(e,t,n){var i;try{i={cloneDeep:n(396),constant:n(217),defaults:n(312),each:n(218),filter:n(251),find:n(397),flatten:n(313),forEach:n(305),forIn:n(399),has:n(220),isUndefined:n(254),last:n(400),map:n(255),mapValues:n(401),max:n(402),merge:n(403),min:n(407),minBy:n(409),now:n(410),pick:n(315),range:n(316),reduce:n(256),sortBy:n(411),uniqueId:n(317),values:n(258),zipObject:n(412)}}catch(e){}i||(i=window._),e.exports=i},function(e,t,n){"use strict";var i=n(8),r=n(3),o=n(26),s=n(2),a=n(4),l=n(9),c=n(84),d=n(17),u=n(103);const h=Object(d.c)("IEditorCancelService"),f=new l.c("cancellableOperation",!1);Object(u.b)(h,class{constructor(){this._tokens=new WeakMap}add(e,t){let n,i=this._tokens.get(e);return i||(i=e.invokeWithinContext(e=>{return{key:f.bindTo(e.get(l.b)),tokens:new c.a}}),this._tokens.set(e,i)),i.key.set(!0),n=i.tokens.push(t),()=>{n&&(n(),i.key.set(!i.tokens.isEmpty()),n=void 0)}}cancel(e){const t=this._tokens.get(e);if(!t)return;const n=t.tokens.pop();n&&(n.cancel(),t.key.set(!t.tokens.isEmpty()))}},!0);class g extends o.b{constructor(e,t){super(t),this.editor=e,this._unregister=e.invokeWithinContext(t=>t.get(h).add(e,this))}dispose(){this._unregister(),super.dispose()}}Object(a.l)(new class extends a.c{constructor(){super({id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:f})}runEditorCommand(e,t){e.get(h).cancel(t)}}),n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return m})),n.d(t,"d",(function(){return _})),n.d(t,"c",(function(){return b}));class p{constructor(e,t){if(this.flags=t,0!=(1&this.flags)){const t=e.getModel();this.modelVersionId=t?i.x("{0}#{1}",t.uri.toString(),t.getVersionId()):null}else this.modelVersionId=null;0!=(4&this.flags)?this.position=e.getPosition():this.position=null,0!=(2&this.flags)?this.selection=e.getSelection():this.selection=null,0!=(8&this.flags)?(this.scrollLeft=e.getScrollLeft(),this.scrollTop=e.getScrollTop()):(this.scrollLeft=-1,this.scrollTop=-1)}_equals(e){if(!(e instanceof p))return!1;const t=e;return this.modelVersionId===t.modelVersionId&&(this.scrollLeft===t.scrollLeft&&this.scrollTop===t.scrollTop&&(!(!this.position&&t.position||this.position&&!t.position||this.position&&t.position&&!this.position.equals(t.position))&&!(!this.selection&&t.selection||this.selection&&!t.selection||this.selection&&t.selection&&!this.selection.equalsRange(t.selection))))}validate(e){return this._equals(new p(e,this.flags))}}class m extends g{constructor(e,t,n,i){super(e,i),this.editor=e,this._listener=new s.b,4&t&&this._listener.add(e.onDidChangeCursorPosition(e=>{n&&r.a.containsPosition(n,e.position)||this.cancel()})),2&t&&this._listener.add(e.onDidChangeCursorSelection(e=>{n&&r.a.containsRange(n,e.selection)||this.cancel()})),8&t&&this._listener.add(e.onDidScrollChange(e=>this.cancel())),1&t&&(this._listener.add(e.onDidChangeModel(e=>this.cancel())),this._listener.add(e.onDidChangeModelContent(e=>this.cancel())))}dispose(){this._listener.dispose(),super.dispose()}}class _ extends o.b{constructor(e,t){super(t),this._listener=e.onDidChangeContent(()=>this.cancel())}dispose(){this._listener.dispose(),super.dispose()}}class b{constructor(e,t,n){this._visiblePosition=e,this._visiblePositionScrollDelta=t,this._cursorPosition=n}static capture(e){let t=null,n=0;if(0!==e.getScrollTop()){const i=e.getVisibleRanges();if(i.length>0){t=i[0].getStartPosition();const r=e.getTopForPosition(t.lineNumber,t.column);n=e.getScrollTop()-r}}return new b(t,n,e.getPosition())}restore(e){if(this._visiblePosition){const t=e.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);e.setScrollTop(t+this._visiblePositionScrollDelta)}}restoreRelativeVerticalPositionOfCursor(e){const t=e.getPosition();if(!this._cursorPosition||!t)return;const n=e.getTopForLineNumber(t.lineNumber)-e.getTopForLineNumber(this._cursorPosition.lineNumber);e.setScrollTop(e.getScrollTop()+n)}}},function(e,t,n){"use strict";var i=n(30),r=n(6),o=n(2),s=n(12);class a{constructor(e,t){this.chr=e,this.type=t,this.width=0}fulfill(e){this.width=e}}class l{constructor(e,t){this._bareFontInfo=e,this._requests=t,this._container=null,this._testElements=null}read(){this._createDomElements(),document.body.appendChild(this._container),this._readFromDomElements(),document.body.removeChild(this._container),this._container=null,this._testElements=null}_createDomElements(){const e=document.createElement("div");e.style.position="absolute",e.style.top="-50000px",e.style.width="50000px";const t=document.createElement("div");t.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),t.style.fontWeight=this._bareFontInfo.fontWeight,t.style.fontSize=this._bareFontInfo.fontSize+"px",t.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,t.style.lineHeight=this._bareFontInfo.lineHeight+"px",t.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",e.appendChild(t);const n=document.createElement("div");n.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),n.style.fontWeight="bold",n.style.fontSize=this._bareFontInfo.fontSize+"px",n.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,n.style.lineHeight=this._bareFontInfo.lineHeight+"px",n.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",e.appendChild(n);const i=document.createElement("div");i.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),i.style.fontWeight=this._bareFontInfo.fontWeight,i.style.fontSize=this._bareFontInfo.fontSize+"px",i.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,i.style.lineHeight=this._bareFontInfo.lineHeight+"px",i.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",i.style.fontStyle="italic",e.appendChild(i);const r=[];for(const e of this._requests){let o;0===e.type&&(o=t),2===e.type&&(o=n),1===e.type&&(o=i),o.appendChild(document.createElement("br"));const s=document.createElement("span");l._render(s,e),o.appendChild(s),r.push(s)}this._container=e,this._testElements=r}static _render(e,t){if(" "===t.chr){let t=" ";for(let e=0;e<8;e++)t+=t;e.innerText=t}else{let n=t.chr;for(let e=0;e<8;e++)n+=n;e.textContent=n}}_readFromDomElements(){for(let e=0,t=this._requests.length;e<t;e++){const t=this._requests[e],n=this._testElements[e];t.fulfill(n.offsetWidth/256)}}}var c=n(267),d=n(174),u=n(27),h=n(175);n.d(t,"b",(function(){return g})),n.d(t,"a",(function(){return m}));class f{constructor(){this._keys=Object.create(null),this._values=Object.create(null)}has(e){const t=e.getId();return!!this._values[t]}get(e){const t=e.getId();return this._values[t]}put(e,t){const n=e.getId();this._keys[n]=e,this._values[n]=t}remove(e){const t=e.getId();delete this._keys[t],delete this._values[t]}getValues(){return Object.keys(this._keys).map(e=>this._values[e])}}function g(){p.INSTANCE.clearCache()}class p extends o.a{constructor(){super(),this._onDidChange=this._register(new r.a),this.onDidChange=this._onDidChange.event,this._cache=new f,this._evictUntrustedReadingsTimeout=-1}dispose(){-1!==this._evictUntrustedReadingsTimeout&&(clearTimeout(this._evictUntrustedReadingsTimeout),this._evictUntrustedReadingsTimeout=-1),super.dispose()}clearCache(){this._cache=new f,this._onDidChange.fire()}_writeToCache(e,t){this._cache.put(e,t),t.isTrusted||-1!==this._evictUntrustedReadingsTimeout||(this._evictUntrustedReadingsTimeout=setTimeout(()=>{this._evictUntrustedReadingsTimeout=-1,this._evictUntrustedReadings()},5e3))}_evictUntrustedReadings(){const e=this._cache.getValues();let t=!1;for(let n=0,i=e.length;n<i;n++){const i=e[n];i.isTrusted||(t=!0,this._cache.remove(i))}t&&this._onDidChange.fire()}readConfiguration(e){if(!this._cache.has(e)){let t=p._actualReadConfiguration(e);(t.typicalHalfwidthCharacterWidth<=2||t.typicalFullwidthCharacterWidth<=2||t.spaceWidth<=2||t.maxDigitWidth<=2)&&(t=new h.b({zoomLevel:i.d(),fontFamily:t.fontFamily,fontWeight:t.fontWeight,fontSize:t.fontSize,fontFeatureSettings:t.fontFeatureSettings,lineHeight:t.lineHeight,letterSpacing:t.letterSpacing,isMonospace:t.isMonospace,typicalHalfwidthCharacterWidth:Math.max(t.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(t.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:t.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(t.spaceWidth,5),middotWidth:Math.max(t.middotWidth,5),wsmiddotWidth:Math.max(t.wsmiddotWidth,5),maxDigitWidth:Math.max(t.maxDigitWidth,5)},!1)),this._writeToCache(e,t)}return this._cache.get(e)}static createRequest(e,t,n,i){const r=new a(e,t);return n.push(r),i&&i.push(r),r}static _actualReadConfiguration(e){const t=[],n=[],r=this.createRequest("n",0,t,n),o=this.createRequest("m",0,t,null),s=this.createRequest(" ",0,t,n),a=this.createRequest("0",0,t,n),c=this.createRequest("1",0,t,n),d=this.createRequest("2",0,t,n),f=this.createRequest("3",0,t,n),g=this.createRequest("4",0,t,n),p=this.createRequest("5",0,t,n),m=this.createRequest("6",0,t,n),_=this.createRequest("7",0,t,n),b=this.createRequest("8",0,t,n),v=this.createRequest("9",0,t,n),y=this.createRequest("→",0,t,n),w=this.createRequest("→",0,t,null),C=this.createRequest("·",0,t,n),S=this.createRequest(String.fromCharCode(11825),0,t,null);this.createRequest("|",0,t,n),this.createRequest("/",0,t,n),this.createRequest("-",0,t,n),this.createRequest("_",0,t,n),this.createRequest("i",0,t,n),this.createRequest("l",0,t,n),this.createRequest("m",0,t,n),this.createRequest("|",1,t,n),this.createRequest("_",1,t,n),this.createRequest("i",1,t,n),this.createRequest("l",1,t,n),this.createRequest("m",1,t,n),this.createRequest("n",1,t,n),this.createRequest("|",2,t,n),this.createRequest("_",2,t,n),this.createRequest("i",2,t,n),this.createRequest("l",2,t,n),this.createRequest("m",2,t,n),this.createRequest("n",2,t,n),function(e,t){new l(e,t).read()}(e,t);const k=Math.max(a.width,c.width,d.width,f.width,g.width,p.width,m.width,_.width,b.width,v.width);let x=e.fontFeatureSettings===u.e.OFF;const L=n[0].width;for(let e=1,t=n.length;x&&e<t;e++){const t=L-n[e].width;if(t<-.001||t>.001){x=!1;break}}let M=!0;x&&w.width!==L&&(M=!1),w.width>y.width&&(M=!1);const D=i.b()>2e3;return new h.b({zoomLevel:i.d(),fontFamily:e.fontFamily,fontWeight:e.fontWeight,fontSize:e.fontSize,fontFeatureSettings:e.fontFeatureSettings,lineHeight:e.lineHeight,letterSpacing:e.letterSpacing,isMonospace:x,typicalHalfwidthCharacterWidth:r.width,typicalFullwidthCharacterWidth:o.width,canUseHalfwidthRightwardsArrow:M,spaceWidth:s.width,middotWidth:C.width,wsmiddotWidth:S.width,maxDigitWidth:k},D)}}p.INSTANCE=new p;class m extends d.a{constructor(e,t,n=null,r){super(e,t),this.accessibilityService=r,this._elementSizeObserver=this._register(new c.a(n,t.dimension,()=>this._onReferenceDomElementSizeChanged())),this._register(p.INSTANCE.onDidChange(()=>this._onCSSBasedConfigurationChanged())),this._validatedOptions.get(9)&&this._elementSizeObserver.startObserving(),this._register(i.n(e=>this._recomputeOptions())),this._register(this.accessibilityService.onDidChangeScreenReaderOptimized(()=>this._recomputeOptions())),this._recomputeOptions()}static applyFontInfoSlow(e,t){e.style.fontFamily=t.getMassagedFontFamily(),e.style.fontWeight=t.fontWeight,e.style.fontSize=t.fontSize+"px",e.style.fontFeatureSettings=t.fontFeatureSettings,e.style.lineHeight=t.lineHeight+"px",e.style.letterSpacing=t.letterSpacing+"px"}static applyFontInfo(e,t){e.setFontFamily(t.getMassagedFontFamily()),e.setFontWeight(t.fontWeight),e.setFontSize(t.fontSize),e.setFontFeatureSettings(t.fontFeatureSettings),e.setLineHeight(t.lineHeight),e.setLetterSpacing(t.letterSpacing)}_onReferenceDomElementSizeChanged(){this._recomputeOptions()}_onCSSBasedConfigurationChanged(){this._recomputeOptions()}observeReferenceElement(e){this._elementSizeObserver.observe(e)}dispose(){super.dispose()}_getExtraEditorClassName(){let e="";return i.j||i.m||(e+="no-user-select "),s.f&&(e+="mac "),e}_getEnvConfiguration(){return{extraEditorClassName:this._getExtraEditorClassName(),outerWidth:this._elementSizeObserver.getWidth(),outerHeight:this._elementSizeObserver.getHeight(),emptySelectionClipboard:i.l||i.h,pixelRatio:i.a(),zoomLevel:i.d(),accessibilitySupport:this.accessibilityService.isScreenReaderOptimized()?2:this.accessibilityService.getAccessibilitySupport()}}readConfiguration(e){return p.INSTANCE.readConfiguration(e)}}},function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return a})),n.d(t,"d",(function(){return l})),n.d(t,"e",(function(){return c}));var i=n(114),r=n(11);const o=new class{clone(){return this}equals(e){return this===e}},s="vs.editor.nullMode",a=new r.r(s,0);function l(e,t,n,r){return new i.b([new i.a(r,"",e)],n)}function c(e,t,n,r){let s=new Uint32Array(2);return s[0]=r,s[1]=(16384|e<<0|2<<23)>>>0,new i.c(s,null===n?o:n)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return l})),n.d(t,"a",(function(){return c})),n.d(t,"d",(function(){return u})),n.d(t,"e",(function(){return f}));var i=n(8),r=n(125),o=n(164);class s{constructor(e,t,n){this.endIndex=e,this.type=t,this.metadata=n}isWhitespace(){return!!(1&this.metadata)}}class a{constructor(e,t){this.startOffset=e,this.endOffset=t}equals(e){return this.startOffset===e.startOffset&&this.endOffset===e.endOffset}}class l{constructor(e,t,n,i,r,o,s,a,l,c,d,u,h,f,g,p,m,_,b){this.useMonospaceOptimizations=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=n,this.continuesWithWrappedLine=i,this.isBasicASCII=r,this.containsRTL=o,this.fauxIndentLength=s,this.lineTokens=a,this.lineDecorations=l,this.tabSize=c,this.startVisibleColumn=d,this.spaceWidth=u,this.stopRenderingLineAfter=g,this.renderWhitespace="all"===p?4:"boundary"===p?1:"selection"===p?2:"trailing"===p?3:0,this.renderControlCharacters=m,this.fontLigatures=_,this.selectionsOnLine=b&&b.sort((e,t)=>e.startOffset<t.startOffset?-1:1),Math.abs(f-u)<Math.abs(h-u)?(this.renderSpaceWidth=f,this.renderSpaceCharCode=11825):(this.renderSpaceWidth=h,this.renderSpaceCharCode=183)}sameSelection(e){if(null===this.selectionsOnLine)return null===e;if(null===e)return!1;if(e.length!==this.selectionsOnLine.length)return!1;for(let t=0;t<this.selectionsOnLine.length;t++)if(!this.selectionsOnLine[t].equals(e[t]))return!1;return!0}equals(e){return this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineContent===e.lineContent&&this.continuesWithWrappedLine===e.continuesWithWrappedLine&&this.isBasicASCII===e.isBasicASCII&&this.containsRTL===e.containsRTL&&this.fauxIndentLength===e.fauxIndentLength&&this.tabSize===e.tabSize&&this.startVisibleColumn===e.startVisibleColumn&&this.spaceWidth===e.spaceWidth&&this.renderSpaceWidth===e.renderSpaceWidth&&this.renderSpaceCharCode===e.renderSpaceCharCode&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.fontLigatures===e.fontLigatures&&o.a.equalsArr(this.lineDecorations,e.lineDecorations)&&this.lineTokens.equals(e.lineTokens)&&this.sameSelection(e.selectionsOnLine)}}class c{constructor(e,t){this.length=e,this._data=new Uint32Array(this.length),this._absoluteOffsets=new Uint32Array(this.length)}static getPartIndex(e){return(4294901760&e)>>>16}static getCharIndex(e){return(65535&e)>>>0}setPartData(e,t,n,i){let r=(t<<16|n<<0)>>>0;this._data[e]=r,this._absoluteOffsets[e]=i+n}getAbsoluteOffsets(){return this._absoluteOffsets}charOffsetToPartData(e){return 0===this.length?0:e<0?this._data[0]:e>=this.length?this._data[this.length-1]:this._data[e]}partDataToCharOffset(e,t,n){if(0===this.length)return 0;let i=(e<<16|n<<0)>>>0,r=0,o=this.length-1;for(;r+1<o;){let e=r+o>>>1,t=this._data[e];if(t===i)return e;t>i?o=e:r=e}if(r===o)return r;let s=this._data[r],a=this._data[o];if(s===i)return r;if(a===i)return o;let l,d=c.getPartIndex(s);return n-c.getCharIndex(s)<=(l=d!==c.getPartIndex(a)?t:c.getCharIndex(a))-n?r:o}}class d{constructor(e,t,n){this.characterMapping=e,this.containsRTL=t,this.containsForeignElements=n}}function u(e,t){if(0===e.lineContent.length){let n=0,i="<span><span></span></span>";if(e.lineDecorations.length>0){const t=[],r=[];for(let i=0,o=e.lineDecorations.length;i<o;i++){const o=e.lineDecorations[i];1===o.type&&(t.push(e.lineDecorations[i].className),n|=1),2===o.type&&(r.push(e.lineDecorations[i].className),n|=2)}if(0!==n){i=`<span>${t.length>0?`<span class="${t.join(" ")}"></span>`:""}${r.length>0?`<span class="${r.join(" ")}"></span>`:""}</span>`}}return t.appendASCIIString(i),new d(new c(0,0),!1,n)}return function(e,t){const n=e.fontIsMonospace,r=e.canUseHalfwidthRightwardsArrow,o=e.containsForeignElements,s=e.lineContent,a=e.len,l=e.isOverflowing,u=e.parts,h=e.fauxIndentLength,f=e.tabSize,g=e.startVisibleColumn,p=e.containsRTL,m=e.spaceWidth,_=e.renderSpaceCharCode,b=e.renderWhitespace,v=e.renderControlCharacters,y=new c(a+1,u.length);let w=0,C=g,S=0,k=0,x=0,L=0;p?t.appendASCIIString('<span dir="ltr">'):t.appendASCIIString("<span>");for(let e=0,a=u.length;e<a;e++){L+=x;const a=u[e],l=a.endIndex,c=a.type,d=0!==b&&a.isWhitespace(),g=d&&!n&&("mtkw"===c||!o),p=w===l&&4===a.metadata;if(S=0,t.appendASCIIString('<span class="'),t.appendASCIIString(g?"mtkz":c),t.appendASCII(34),d){let n=0;{let e=w,t=C;for(;e<l;e++){const i=0|(9===s.charCodeAt(e)?f-t%f:1);n+=i,e>=h&&(t+=i)}}for(g&&(t.appendASCIIString(' style="width:'),t.appendASCIIString(String(m*n)),t.appendASCIIString('px"')),t.appendASCII(62);w<l;w++){let n;if(y.setPartData(w,e-k,S,L),k=0,9===s.charCodeAt(w)){n=f-C%f|0,!r||n>1?t.write1(8594):t.write1(65515);for(let e=2;e<=n;e++)t.write1(160)}else n=1,t.write1(_);S+=n,w>=h&&(C+=n)}x=n}else{let n=0;for(t.appendASCII(62);w<l;w++){y.setPartData(w,e-k,S,L),k=0;const r=s.charCodeAt(w);let o=1,a=1;switch(r){case 9:a=o=f-C%f;for(let e=1;e<=o;e++)t.write1(160);break;case 32:t.write1(160);break;case 60:t.appendASCIIString("<");break;case 62:t.appendASCIIString(">");break;case 38:t.appendASCIIString("&");break;case 0:t.appendASCIIString("�");break;case 65279:case 8232:case 8233:case 133:t.write1(65533);break;default:i.E(r)&&a++,v&&r<32?t.write1(9216+r):t.write1(r)}S+=o,n+=o,w>=h&&(C+=a)}x=n}p?k++:k=0,t.appendASCIIString("</span>")}y.setPartData(a,u.length-1,S,L),l&&t.appendASCIIString("<span>…</span>");return t.appendASCIIString("</span>"),new d(y,p,o)}(function(e){const t=e.lineContent;let n,r;-1!==e.stopRenderingLineAfter&&e.stopRenderingLineAfter<t.length?(n=!0,r=e.stopRenderingLineAfter):(n=!1,r=t.length);let a=function(e,t,n){let i=[],r=0;t>0&&(i[r++]=new s(t,"",0));for(let o=0,a=e.getCount();o<a;o++){const a=e.getEndOffset(o);if(a<=t)continue;const l=e.getClassName(o);if(a>=n){i[r++]=new s(n,l,0);break}i[r++]=new s(a,l,0)}return i}(e.lineTokens,e.fauxIndentLength,r);(4===e.renderWhitespace||1===e.renderWhitespace||2===e.renderWhitespace&&e.selectionsOnLine||3===e.renderWhitespace)&&(a=function(e,t,n,r){const o=e.continuesWithWrappedLine,a=e.fauxIndentLength,l=e.tabSize,c=e.startVisibleColumn,d=e.useMonospaceOptimizations,u=e.selectionsOnLine,h=1===e.renderWhitespace,f=3===e.renderWhitespace,g=e.renderSpaceWidth!==e.spaceWidth;let p=[],m=0,_=0,b=r[_].type,v=r[_].endIndex;const y=r.length;let w,C=!1,S=i.w(t);-1===S?(C=!0,S=n,w=n):w=i.J(t);let k=!1,x=0,L=u&&u[x],M=c%l;for(let e=a;e<n;e++){const o=t.charCodeAt(e);let c;if(L&&e>=L.endOffset&&(x++,L=u&&u[x]),e<S||e>w)c=!0;else if(9===o)c=!0;else if(32===o)if(h)if(k)c=!0;else{const i=e+1<n?t.charCodeAt(e+1):0;c=32===i||9===i}else c=!0;else c=!1;if(c&&u&&(c=!!L&&L.startOffset<=e&&L.endOffset>e),c&&f&&(c=C||e>w),k){if(!c||!d&&M>=l){if(g){for(let t=(m>0?p[m-1].endIndex:a)+1;t<=e;t++)p[m++]=new s(t,"mtkw",1)}else p[m++]=new s(e,"mtkw",1);M%=l}}else(e===v||c&&e>a)&&(p[m++]=new s(e,b,0),M%=l);for(9===o?M=l:i.E(o)?M+=2:M++,k=c;e===v;)++_<y&&(b=r[_].type,v=r[_].endIndex)}let D=!1;if(k)if(o&&h){let e=n>0?t.charCodeAt(n-1):0,i=n>1?t.charCodeAt(n-2):0;32===e&&32!==i&&9!==i||(D=!0)}else D=!0;if(D)if(g){for(let e=(m>0?p[m-1].endIndex:a)+1;e<=n;e++)p[m++]=new s(e,"mtkw",1)}else p[m++]=new s(n,"mtkw",1);else p[m++]=new s(n,b,0);return p}(e,t,r,a));let l=0;if(e.lineDecorations.length>0){for(let t=0,n=e.lineDecorations.length;t<n;t++){const n=e.lineDecorations[t];3===n.type?l|=1:1===n.type?l|=1:2===n.type&&(l|=2)}a=function(e,t,n,i){i.sort(o.a.compare);const r=o.b.normalize(e,i),a=r.length;let l=0,c=[],d=0,u=0;for(let e=0,t=n.length;e<t;e++){const t=n[e],i=t.endIndex,o=t.type,h=t.metadata;for(;l<a&&r[l].startOffset<i;){const e=r[l];if(e.startOffset>u&&(u=e.startOffset,c[d++]=new s(u,o,h)),!(e.endOffset+1<=i)){u=i,c[d++]=new s(u,o+" "+e.className,h|e.metadata);break}u=e.endOffset+1,c[d++]=new s(u,o+" "+e.className,h|e.metadata),l++}i>u&&(u=i,c[d++]=new s(u,o,h))}const h=n[n.length-1].endIndex;if(l<a&&r[l].startOffset===h){let e=[],t=0;for(;l<a&&r[l].startOffset===h;)e.push(r[l].className),t|=r[l].metadata,l++;c[d++]=new s(u,e.join(" "),t)}return c}(t,0,a,e.lineDecorations)}e.containsRTL||(a=function(e,t,n){let i=0,r=[],o=0;if(n)for(let n=0,a=t.length;n<a;n++){const a=t[n],l=a.endIndex;if(i+50<l){const t=a.type,n=a.metadata;let c=-1,d=i;for(let a=i;a<l;a++)32===e.charCodeAt(a)&&(c=a),-1!==c&&a-d>=50&&(r[o++]=new s(c+1,t,n),d=c+1,c=-1);d!==l&&(r[o++]=new s(l,t,n))}else r[o++]=a;i=l}else for(let e=0,n=t.length;e<n;e++){const n=t[e],a=n.endIndex;let l=a-i;if(l>50){const e=n.type,t=n.metadata,c=Math.ceil(l/50);for(let n=1;n<c;n++){let a=i+50*n;r[o++]=new s(a,e,t)}r[o++]=new s(a,e,t)}else r[o++]=n;i=a}return r}(t,a,!e.isBasicASCII||e.fontLigatures));return new g(e.useMonospaceOptimizations,e.canUseHalfwidthRightwardsArrow,t,r,n,a,l,e.fauxIndentLength,e.tabSize,e.startVisibleColumn,e.containsRTL,e.spaceWidth,e.renderSpaceCharCode,e.renderWhitespace,e.renderControlCharacters)}(e),t)}class h{constructor(e,t,n,i){this.characterMapping=e,this.html=t,this.containsRTL=n,this.containsForeignElements=i}}function f(e){let t=Object(r.a)(1e4),n=u(e,t);return new h(n.characterMapping,t.build(),n.containsRTL,n.containsForeignElements)}class g{constructor(e,t,n,i,r,o,s,a,l,c,d,u,h,f,g){this.fontIsMonospace=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=n,this.len=i,this.isOverflowing=r,this.parts=o,this.containsForeignElements=s,this.fauxIndentLength=a,this.tabSize=l,this.startVisibleColumn=c,this.containsRTL=d,this.spaceWidth=u,this.renderSpaceCharCode=h,this.renderWhitespace=f,this.renderControlCharacters=g}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var i=n(39),r=n(12),o=n(28),s=n(46);class a{constructor(){this._coreKeybindings=[],this._extensionKeybindings=[],this._cachedMergedKeybindings=null}static bindToCurrentPlatform(e){if(1===r.a){if(e&&e.win)return e.win}else if(2===r.a){if(e&&e.mac)return e.mac}else if(e&&e.linux)return e.linux;return e}registerKeybindingRule(e){const t=a.bindToCurrentPlatform(e);if(t&&t.primary){const n=Object(i.f)(t.primary,r.a);n&&this._registerDefaultKeybinding(n,e.id,e.args,e.weight,0,e.when)}if(t&&Array.isArray(t.secondary))for(let n=0,o=t.secondary.length;n<o;n++){const o=t.secondary[n],s=Object(i.f)(o,r.a);s&&this._registerDefaultKeybinding(s,e.id,e.args,e.weight,-n-1,e.when)}}registerCommandAndKeybindingRule(e){this.registerKeybindingRule(e),o.a.registerCommand(e)}static _mightProduceChar(e){return e>=21&&e<=30||(e>=31&&e<=56||(80===e||81===e||82===e||83===e||84===e||85===e||86===e||110===e||111===e||87===e||88===e||89===e||90===e||91===e||92===e))}_assertNoCtrlAlt(e,t){e.ctrlKey&&e.altKey&&!e.metaKey&&a._mightProduceChar(e.keyCode)&&console.warn("Ctrl+Alt+ keybindings should not be used by default under Windows. Offender: ",e," for ",t)}_registerDefaultKeybinding(e,t,n,i,o,s){1===r.a&&this._assertNoCtrlAlt(e.parts[0],t),this._coreKeybindings.push({keybinding:e,command:t,commandArgs:n,when:s,weight1:i,weight2:o,extensionId:null}),this._cachedMergedKeybindings=null}getDefaultKeybindings(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=[].concat(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(c)),this._cachedMergedKeybindings.slice(0)}}const l=new a;function c(e,t){return e.weight1!==t.weight1?e.weight1-t.weight1:e.command<t.command?-1:e.command>t.command?1:e.weight2-t.weight2}s.a.add("platform.keybindingsRegistry",l)},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return c})),n.d(t,"e",(function(){return u})),n.d(t,"d",(function(){return h}));var i=n(14),r=n(16),o=n(15);class s{constructor(e="",t=!1){var n,i;if(this._value=e,"string"!=typeof this._value)throw Object(o.b)("value");"boolean"==typeof t?(this._isTrusted=t,this._supportThemeIcons=!1):(this._isTrusted=null!==(n=t.isTrusted)&&void 0!==n&&n,this._supportThemeIcons=null!==(i=t.supportThemeIcons)&&void 0!==i&&i)}get value(){return this._value}get isTrusted(){return this._isTrusted}get supportThemeIcons(){return this._supportThemeIcons}appendText(e){return this._value+=(this._supportThemeIcons?Object(r.b)(e):e).replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&").replace(/\n/g,"\n\n"),this}appendMarkdown(e){return this._value+=e,this}appendCodeblock(e,t){return this._value+="\n```",this._value+=e,this._value+="\n",this._value+=t,this._value+="\n```\n",this}}function a(e){return l(e)?!e.value:!Array.isArray(e)||e.every(a)}function l(e){return e instanceof s||!(!e||"object"!=typeof e)&&!("string"!=typeof e.value||"boolean"!=typeof e.isTrusted&&void 0!==e.isTrusted||"boolean"!=typeof e.supportThemeIcons&&void 0!==e.supportThemeIcons)}function c(e,t){return!e&&!t||!(!e||!t)&&(Array.isArray(e)&&Array.isArray(t)?Object(i.g)(e,t,d):!(!l(e)||!l(t))&&d(e,t))}function d(e,t){return e===t||!(!e||!t)&&(e.value===t.value&&e.isTrusted===t.isTrusted&&e.supportThemeIcons===t.supportThemeIcons)}function u(e){return e?e.replace(/\\([\\`*_{}[\]()#+\-.!])/g,"$1"):e}function h(e){const t=[],n=e.split("|").map(e=>e.trim());e=n[0];const i=n[1];if(i){const e=/height=(\d+)/.exec(i),n=/width=(\d+)/.exec(i),r=e?e[1]:"",o=n?n[1]:"",s=isFinite(parseInt(o)),a=isFinite(parseInt(r));s&&t.push(`width="${o}"`),a&&t.push(`height="${r}"`)}return{href:e,dimensions:t}}},function(e,t,n){"use strict";n.d(t,"d",(function(){return r})),n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return a})),n.d(t,"e",(function(){return l})),n.d(t,"c",(function(){return d}));var i=n(5);function r(e,t){const n=Object.create(null);for(let r in t){const o=t[r];o&&(n[r]=Object(i.hc)(o,e))}return n}function o(e,t,n){function i(i){const o=r(e.getColorTheme(),t);"function"==typeof n?n(o):n.style(o)}return i(e.getColorTheme()),e.onDidColorThemeChange(i)}function s(e,t,n){return o(t,{badgeBackground:n&&n.badgeBackground||i.c,badgeForeground:n&&n.badgeForeground||i.d,badgeBorder:i.h},e)}function a(e,t,n){return o(t,Object.assign(Object.assign({},l),n||{}),e)}const l={listFocusBackground:i.xb,listFocusForeground:i.yb,listActiveSelectionBackground:Object(i.i)(i.rb,.1),listActiveSelectionForeground:i.sb,listFocusAndSelectionBackground:i.rb,listFocusAndSelectionForeground:i.sb,listInactiveSelectionBackground:i.Db,listInactiveSelectionForeground:i.Eb,listInactiveFocusBackground:i.Cb,listHoverBackground:i.Ab,listHoverForeground:i.Bb,listDropBackground:i.tb,listFocusOutline:i.b,listSelectionOutline:i.b,listHoverOutline:i.b,listFilterWidgetBackground:i.ub,listFilterWidgetOutline:i.wb,listFilterWidgetNoMatchesOutline:i.vb,listMatchesShadow:i.uc,treeIndentGuidesStroke:i.tc},c={shadowColor:i.uc,borderColor:i.Gb,foregroundColor:i.Hb,backgroundColor:i.Fb,selectionForegroundColor:i.Kb,selectionBackgroundColor:i.Ib,selectionBorderColor:i.Jb,separatorColor:i.Lb};function d(e,t,n){return o(t,Object.assign(Object.assign({},c),n),e)}},function(e,t,n){"use strict";function i(e,t){let n=0;for(let i=0;i<e.length;i++)"\t"===e.charAt(i)?n+=t:n++;return n}function r(e,t,n){e=e<0?0:e;let i="";if(!n){let n=Math.floor(e/t);e%=t;for(let e=0;e<n;e++)i+="\t"}for(let t=0;t<e;t++)i+=" ";return i}n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));class i{constructor(e){this.element=e,this.next=i.Undefined,this.prev=i.Undefined}}i.Undefined=new i(void 0);class r{constructor(){this._first=i.Undefined,this._last=i.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===i.Undefined}clear(){this._first=i.Undefined,this._last=i.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new i(e);if(this._first===i.Undefined)this._first=n,this._last=n;else if(t){const e=this._last;this._last=n,n.prev=e,e.next=n}else{const e=this._first;this._first=n,n.next=e,e.prev=n}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(n))}}shift(){if(this._first!==i.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==i.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==i.Undefined&&e.next!==i.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===i.Undefined&&e.next===i.Undefined?(this._first=i.Undefined,this._last=i.Undefined):e.next===i.Undefined?(this._last=this._last.prev,this._last.next=i.Undefined):e.prev===i.Undefined&&(this._first=this._first.next,this._first.prev=i.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==i.Undefined;)yield e.element,e=e.next}toArray(){const e=[];for(let t=this._first;t!==i.Undefined;t=t.next)e.push(t.element);return e}}},function(e,t,n){"use strict";n.r(t);var i=n(0),r=n(20),o=n(4),s=n(33),a=n(23),l=n(10),c=n(3);class d{static columnSelect(e,t,n,i,r,o){let s=Math.abs(r-n)+1,d=n>r,u=i>o,h=i<o,f=[];for(let r=0;r<s;r++){let s=n+(d?-r:r),g=a.a.columnFromVisibleColumn2(e,t,s,i),p=a.a.columnFromVisibleColumn2(e,t,s,o),m=a.a.visibleColumnFromColumn2(e,t,new l.a(s,g)),_=a.a.visibleColumnFromColumn2(e,t,new l.a(s,p));if(h){if(m>o)continue;if(_<i)continue}if(u){if(_>i)continue;if(m<o)continue}f.push(new a.f(new c.a(s,g,s,g),0,new l.a(s,p),0))}if(0===f.length)for(let e=0;e<s;e++){const i=n+(d?-e:e),r=t.getLineMaxColumn(i);f.push(new a.f(new c.a(i,r,i,r),0,new l.a(i,r),0))}return{viewStates:f,reversed:d,fromLineNumber:n,fromVisualColumn:i,toLineNumber:r,toVisualColumn:o}}static columnSelectLeft(e,t,n){let i=n.toViewVisualColumn;return i>1&&i--,d.columnSelect(e,t,n.fromViewLineNumber,n.fromViewVisualColumn,n.toViewLineNumber,i)}static columnSelectRight(e,t,n){let i=0;const r=Math.min(n.fromViewLineNumber,n.toViewLineNumber),o=Math.max(n.fromViewLineNumber,n.toViewLineNumber);for(let n=r;n<=o;n++){const r=t.getLineMaxColumn(n),o=a.a.visibleColumnFromColumn2(e,t,new l.a(n,r));i=Math.max(i,o)}let s=n.toViewVisualColumn;return s<i&&s++,this.columnSelect(e,t,n.fromViewLineNumber,n.fromViewVisualColumn,n.toViewLineNumber,s)}static columnSelectUp(e,t,n,i){const r=i?e.pageSize:1,o=Math.max(1,n.toViewLineNumber-r);return this.columnSelect(e,t,n.fromViewLineNumber,n.fromViewVisualColumn,o,n.toViewVisualColumn)}static columnSelectDown(e,t,n,i){const r=i?e.pageSize:1,o=Math.min(t.getLineCount(),n.toViewLineNumber+r);return this.columnSelect(e,t,n.fromViewLineNumber,n.fromViewVisualColumn,o,n.toViewVisualColumn)}}var u=n(230),h=n(73),f=n(116),g=n(7),p=n(9),m=n(80);n.d(t,"CoreEditorCommand",(function(){return b})),n.d(t,"EditorScroll_",(function(){return v})),n.d(t,"RevealLine_",(function(){return w})),n.d(t,"CoreNavigationCommands",(function(){return S})),n.d(t,"CoreEditingCommands",(function(){return D}));const _=0;class b extends o.c{runEditorCommand(e,t,n){const i=t._getViewModel();i&&this.runCoreEditorCommand(i,n||{})}}var v,y,w,C,S;(y=v||(v={})).description={description:"Scroll editor in the given direction",args:[{name:"Editor scroll argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'to': A mandatory direction value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'up', 'down'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'by': Unit to move. Default is computed based on 'to' value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'line', 'wrappedLine', 'page', 'halfPage'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'value': Number of units to move. Default is '1'.\n\t\t\t\t\t* 'revealCursor': If 'true' reveals the cursor if it is outside view port.\n\t\t\t\t",constraint:function(e){if(!r.i(e))return!1;const t=e;return!(!r.j(t.to)||!r.k(t.by)&&!r.j(t.by)||!r.k(t.value)&&!r.h(t.value)||!r.k(t.revealCursor)&&!r.f(t.revealCursor))},schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["up","down"]},by:{type:"string",enum:["line","wrappedLine","page","halfPage"]},value:{type:"number",default:1},revealCursor:{type:"boolean"}}}}]},y.RawDirection={Up:"up",Down:"down"},y.RawUnit={Line:"line",WrappedLine:"wrappedLine",Page:"page",HalfPage:"halfPage"},y.parse=function(e){let t,n;switch(e.to){case y.RawDirection.Up:t=1;break;case y.RawDirection.Down:t=2;break;default:return null}switch(e.by){case y.RawUnit.Line:n=1;break;case y.RawUnit.WrappedLine:n=2;break;case y.RawUnit.Page:n=3;break;case y.RawUnit.HalfPage:n=4;break;default:n=2}return{direction:t,unit:n,value:Math.floor(e.value||1),revealCursor:!!e.revealCursor,select:!!e.select}},(C=w||(w={})).description={description:"Reveal the given line at the given logical position",args:[{name:"Reveal line argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'lineNumber': A mandatory line number value.\n\t\t\t\t\t* 'at': Logical position at which line has to be revealed .\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'top', 'center', 'bottom'\n\t\t\t\t\t\t```\n\t\t\t\t",constraint:function(e){if(!r.i(e))return!1;const t=e;return!(!r.h(t.lineNumber)||!r.k(t.at)&&!r.j(t.at))},schema:{type:"object",required:["lineNumber"],properties:{lineNumber:{type:"number"},at:{type:"string",enum:["top","center","bottom"]}}}}]},C.RawAtArgument={Top:"top",Center:"center",Bottom:"bottom"};class k{constructor(e){e.addImplementation(1e4,(e,t)=>{const n=e.get(s.a).getFocusedCodeEditor();return!(!n||!n.hasTextFocus())&&(this.runEditorCommand(e,n,t),!0)}),e.addImplementation(1e3,(e,t)=>{const n=document.activeElement;return!!(n&&["input","textarea"].indexOf(n.tagName.toLowerCase())>=0)&&(this.runDOMCommand(),!0)}),e.addImplementation(0,(e,t)=>{const n=e.get(s.a).getActiveCodeEditor();return!!n&&(n.focus(),this.runEditorCommand(e,n,t),!0)})}}!function(e){class t extends b{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[h.b.moveTo(e,e.getPrimaryCursorState(),this._inSelectionMode,t.position,t.viewPosition)]),e.revealPrimaryCursor(t.source,!0)}}e.MoveTo=Object(o.l)(new t({id:"_moveTo",inSelectionMode:!1,precondition:void 0})),e.MoveToSelect=Object(o.l)(new t({id:"_moveToSelect",inSelectionMode:!0,precondition:void 0}));class n extends b{runCoreEditorCommand(e,t){e.model.pushStackElement();const n=this._getColumnSelectResult(e,e.getPrimaryCursorState(),e.getCursorColumnSelectData(),t);e.setCursorStates(t.source,3,n.viewStates.map(e=>a.d.fromViewState(e))),e.setCursorColumnSelectData({isReal:!0,fromViewLineNumber:n.fromLineNumber,fromViewVisualColumn:n.fromVisualColumn,toViewLineNumber:n.toLineNumber,toViewVisualColumn:n.toVisualColumn}),n.reversed?e.revealTopMostCursor(t.source):e.revealBottomMostCursor(t.source)}}e.ColumnSelect=Object(o.l)(new class extends n{constructor(){super({id:"columnSelect",precondition:void 0})}_getColumnSelectResult(e,t,n,i){const r=e.model.validatePosition(i.position),o=e.coordinatesConverter.validateViewPosition(new l.a(i.viewPosition.lineNumber,i.viewPosition.column),r);let s=i.doColumnSelect?n.fromViewLineNumber:o.lineNumber,a=i.doColumnSelect?n.fromViewVisualColumn:i.mouseColumn-1;return d.columnSelect(e.cursorConfig,e,s,a,o.lineNumber,i.mouseColumn-1)}}),e.CursorColumnSelectLeft=Object(o.l)(new class extends n{constructor(){super({id:"cursorColumnSelectLeft",precondition:void 0,kbOpts:{weight:_,kbExpr:g.a.textInputFocus,primary:3599,linux:{primary:0}}})}_getColumnSelectResult(e,t,n,i){return d.columnSelectLeft(e.cursorConfig,e,n)}}),e.CursorColumnSelectRight=Object(o.l)(new class extends n{constructor(){super({id:"cursorColumnSelectRight",precondition:void 0,kbOpts:{weight:_,kbExpr:g.a.textInputFocus,primary:3601,linux:{primary:0}}})}_getColumnSelectResult(e,t,n,i){return d.columnSelectRight(e.cursorConfig,e,n)}});class r extends n{constructor(e){super(e),this._isPaged=e.isPaged}_getColumnSelectResult(e,t,n,i){return d.columnSelectUp(e.cursorConfig,e,n,this._isPaged)}}e.CursorColumnSelectUp=Object(o.l)(new r({isPaged:!1,id:"cursorColumnSelectUp",precondition:void 0,kbOpts:{weight:_,kbExpr:g.a.textInputFocus,primary:3600,linux:{primary:0}}})),e.CursorColumnSelectPageUp=Object(o.l)(new r({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:void 0,kbOpts:{weight:_,kbExpr:g.a.textInputFocus,primary:3595,linux:{primary:0}}}));class s extends n{constructor(e){super(e),this._isPaged=e.isPaged}_getColumnSelectResult(e,t,n,i){return d.columnSelectDown(e.cursorConfig,e,n,this._isPaged)}}e.CursorColumnSelectDown=Object(o.l)(new s({isPaged:!1,id:"cursorColumnSelectDown",precondition:void 0,kbOpts:{weight:_,kbExpr:g.a.textInputFocus,primary:3602,linux:{primary:0}}})),e.CursorColumnSelectPageDown=Object(o.l)(new s({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:void 0,kbOpts:{weight:_,kbExpr:g.a.textInputFocus,primary:3596,linux:{primary:0}}}));class u extends b{constructor(){super({id:"cursorMove",precondition:void 0,description:h.a.description})}runCoreEditorCommand(e,t){const n=h.a.parse(t);n&&this._runCursorMove(e,t.source,n)}_runCursorMove(e,t,n){e.model.pushStackElement(),e.setCursorStates(t,3,u._move(e,e.getCursorStates(),n)),e.revealPrimaryCursor(t,!0)}static _move(e,t,n){const i=n.select,r=n.value;switch(n.direction){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:return h.b.simpleMove(e,t,n.direction,i,r,n.unit);case 9:case 11:case 10:case 12:return h.b.viewportMove(e,t,n.direction,i,r);default:return null}}}e.CursorMoveImpl=u,e.CursorMove=Object(o.l)(new u);class f extends b{constructor(e){super(e),this._staticArgs=e.args}runCoreEditorCommand(e,t){let n=this._staticArgs;-1===this._staticArgs.value&&(n={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:e.cursorConfig.pageSize}),e.model.pushStackElement(),e.setCursorStates(t.source,3,h.b.simpleMove(e,e.getCursorStates(),n.direction,n.select,n.value,n.unit)),e.revealPrimaryCursor(t.source,!0)}}e.CursorLeft=Object(o.l)(new f({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:void 0,kbOpts:{weight:_,kbExpr:g.a.textInputFocus,primary:15,mac:{primary:15,secondary:[288]}}})),e.CursorLeftSelect=Object(o.l)(new f({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:void 0,kbOpts:{weight:_,kbExpr:g.a.textInputFocus,primary:1039}})),e.CursorRight=Object(o.l)(new f({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:void 0,kbOpts:{weight:_,kbExpr:g.a.textInputFocus,primary:17,mac:{primary:17,secondary:[292]}}})),e.CursorRightSelect=Object(o.l)(new f({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:void 0,kbOpts:{weight:_,kbExpr:g.a.textInputFocus,primary:1041}})),e.CursorUp=Object(o.l)(new f({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:void 0,kbOpts:{weight:_,kbExpr:g.a.textInputFocus,primary:16,mac:{primary:16,secondary:[302]}}})),e.CursorUpSelect=Object(o.l)(new f({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:void 0,kbOpts:{weight:_,kbExpr:g.a.textInputFocus,primary:1040,secondary:[3088],mac:{primary:1040},linux:{primary:1040}}})),e.CursorPageUp=Object(o.l)(new f({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:void 0,kbOpts:{weight:_,kbExpr:g.a.textInputFocus,primary:11}})),e.CursorPageUpSelect=Object(o.l)(new f({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:void 0,kbOpts:{weight:_,kbExpr:g.a.textInputFocus,primary:1035}})),e.CursorDown=Object(o.l)(new f({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:void 0,kbOpts:{weight:_,kbExpr:g.a.textInputFocus,primary:18,mac:{primary:18,secondary:[300]}}})),e.CursorDownSelect=Object(o.l)(new f({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:void 0,kbOpts:{weight:_,kbExpr:g.a.textInputFocus,primary:1042,secondary:[3090],mac:{primary:1042},linux:{primary:1042}}})),e.CursorPageDown=Object(o.l)(new f({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:void 0,kbOpts:{weight:_,kbExpr:g.a.textInputFocus,primary:12}})),e.CursorPageDownSelect=Object(o.l)(new f({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:void 0,kbOpts:{weight:_,kbExpr:g.a.textInputFocus,primary:1036}})),e.CreateCursor=Object(o.l)(new class extends b{constructor(){super({id:"createCursor",precondition:void 0})}runCoreEditorCommand(e,t){let n;n=t.wholeLine?h.b.line(e,e.getPrimaryCursorState(),!1,t.position,t.viewPosition):h.b.moveTo(e,e.getPrimaryCursorState(),!1,t.position,t.viewPosition);const i=e.getCursorStates();if(i.length>1){const r=n.modelState?n.modelState.position:null,o=n.viewState?n.viewState.position:null;for(let n=0,s=i.length;n<s;n++){const s=i[n];if((!r||s.modelState.selection.containsPosition(r))&&(!o||s.viewState.selection.containsPosition(o)))return i.splice(n,1),e.model.pushStackElement(),void e.setCursorStates(t.source,3,i)}}i.push(n),e.model.pushStackElement(),e.setCursorStates(t.source,3,i)}}),e.LastCursorMoveToSelect=Object(o.l)(new class extends b{constructor(){super({id:"_lastCursorMoveToSelect",precondition:void 0})}runCoreEditorCommand(e,t){const n=e.getLastAddedCursorIndex(),i=e.getCursorStates(),r=i.slice(0);r[n]=h.b.moveTo(e,i[n],!0,t.position,t.viewPosition),e.model.pushStackElement(),e.setCursorStates(t.source,3,r)}});class p extends b{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,h.b.moveToBeginningOfLine(e,e.getCursorStates(),this._inSelectionMode)),e.revealPrimaryCursor(t.source,!0)}}e.CursorHome=Object(o.l)(new p({inSelectionMode:!1,id:"cursorHome",precondition:void 0,kbOpts:{weight:_,kbExpr:g.a.textInputFocus,primary:14,mac:{primary:14,secondary:[2063]}}})),e.CursorHomeSelect=Object(o.l)(new p({inSelectionMode:!0,id:"cursorHomeSelect",precondition:void 0,kbOpts:{weight:_,kbExpr:g.a.textInputFocus,primary:1038,mac:{primary:1038,secondary:[3087]}}}));class m extends b{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,this._exec(e.getCursorStates())),e.revealPrimaryCursor(t.source,!0)}_exec(e){const t=[];for(let n=0,i=e.length;n<i;n++){const i=e[n],r=i.modelState.position.lineNumber;t[n]=a.d.fromModelState(i.modelState.move(this._inSelectionMode,r,1,0))}return t}}e.CursorLineStart=Object(o.l)(new m({inSelectionMode:!1,id:"cursorLineStart",precondition:void 0,kbOpts:{weight:_,kbExpr:g.a.textInputFocus,primary:0,mac:{primary:287}}})),e.CursorLineStartSelect=Object(o.l)(new m({inSelectionMode:!0,id:"cursorLineStartSelect",precondition:void 0,kbOpts:{weight:_,kbExpr:g.a.textInputFocus,primary:0,mac:{primary:1311}}}));class y extends b{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,h.b.moveToEndOfLine(e,e.getCursorStates(),this._inSelectionMode,t.sticky||!1)),e.revealPrimaryCursor(t.source,!0)}}e.CursorEnd=Object(o.l)(new y({inSelectionMode:!1,id:"cursorEnd",precondition:void 0,kbOpts:{args:{sticky:!1},weight:_,kbExpr:g.a.textInputFocus,primary:13,mac:{primary:13,secondary:[2065]}},description:{description:"Go to End",args:[{name:"args",schema:{type:"object",properties:{sticky:{description:i.a("stickydesc","Stick to the end even when going to longer lines"),type:"boolean",default:!1}}}}]}})),e.CursorEndSelect=Object(o.l)(new y({inSelectionMode:!0,id:"cursorEndSelect",precondition:void 0,kbOpts:{args:{sticky:!1},weight:_,kbExpr:g.a.textInputFocus,primary:1037,mac:{primary:1037,secondary:[3089]}},description:{description:"Select to End",args:[{name:"args",schema:{type:"object",properties:{sticky:{description:i.a("stickydesc","Stick to the end even when going to longer lines"),type:"boolean",default:!1}}}}]}}));class C extends b{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,this._exec(e,e.getCursorStates())),e.revealPrimaryCursor(t.source,!0)}_exec(e,t){const n=[];for(let i=0,r=t.length;i<r;i++){const r=t[i],o=r.modelState.position.lineNumber,s=e.model.getLineMaxColumn(o);n[i]=a.d.fromModelState(r.modelState.move(this._inSelectionMode,o,s,0))}return n}}e.CursorLineEnd=Object(o.l)(new C({inSelectionMode:!1,id:"cursorLineEnd",precondition:void 0,kbOpts:{weight:_,kbExpr:g.a.textInputFocus,primary:0,mac:{primary:291}}})),e.CursorLineEndSelect=Object(o.l)(new C({inSelectionMode:!0,id:"cursorLineEndSelect",precondition:void 0,kbOpts:{weight:_,kbExpr:g.a.textInputFocus,primary:0,mac:{primary:1315}}}));class S extends b{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,h.b.moveToBeginningOfBuffer(e,e.getCursorStates(),this._inSelectionMode)),e.revealPrimaryCursor(t.source,!0)}}e.CursorTop=Object(o.l)(new S({inSelectionMode:!1,id:"cursorTop",precondition:void 0,kbOpts:{weight:_,kbExpr:g.a.textInputFocus,primary:2062,mac:{primary:2064}}})),e.CursorTopSelect=Object(o.l)(new S({inSelectionMode:!0,id:"cursorTopSelect",precondition:void 0,kbOpts:{weight:_,kbExpr:g.a.textInputFocus,primary:3086,mac:{primary:3088}}}));class x extends b{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,h.b.moveToEndOfBuffer(e,e.getCursorStates(),this._inSelectionMode)),e.revealPrimaryCursor(t.source,!0)}}e.CursorBottom=Object(o.l)(new x({inSelectionMode:!1,id:"cursorBottom",precondition:void 0,kbOpts:{weight:_,kbExpr:g.a.textInputFocus,primary:2061,mac:{primary:2066}}})),e.CursorBottomSelect=Object(o.l)(new x({inSelectionMode:!0,id:"cursorBottomSelect",precondition:void 0,kbOpts:{weight:_,kbExpr:g.a.textInputFocus,primary:3085,mac:{primary:3090}}}));class L extends b{constructor(){super({id:"editorScroll",precondition:void 0,description:v.description})}runCoreEditorCommand(e,t){const n=v.parse(t);n&&this._runEditorScroll(e,t.source,n)}_runEditorScroll(e,t,n){const i=this._computeDesiredScrollTop(e,n);if(n.revealCursor){const r=e.getCompletelyVisibleViewRangeAtScrollTop(i);e.setCursorStates(t,3,[h.b.findPositionInViewportIfOutside(e,e.getPrimaryCursorState(),r,n.select)])}e.setScrollTop(i,0)}_computeDesiredScrollTop(e,t){if(1===t.unit){const n=e.getCompletelyVisibleViewRange(),i=e.coordinatesConverter.convertViewRangeToModelRange(n);let r;r=1===t.direction?Math.max(1,i.startLineNumber-t.value):Math.min(e.model.getLineCount(),i.startLineNumber+t.value);const o=e.coordinatesConverter.convertModelPositionToViewPosition(new l.a(r,1));return e.getVerticalOffsetForLineNumber(o.lineNumber)}let n;n=3===t.unit?e.cursorConfig.pageSize*t.value:4===t.unit?Math.round(e.cursorConfig.pageSize/2)*t.value:t.value;const i=(1===t.direction?-1:1)*n;return e.getScrollTop()+i*e.cursorConfig.lineHeight}}e.EditorScrollImpl=L,e.EditorScroll=Object(o.l)(new L),e.ScrollLineUp=Object(o.l)(new class extends b{constructor(){super({id:"scrollLineUp",precondition:void 0,kbOpts:{weight:_,kbExpr:g.a.textInputFocus,primary:2064,mac:{primary:267}}})}runCoreEditorCommand(t,n){e.EditorScroll._runEditorScroll(t,n.source,{direction:1,unit:2,value:1,revealCursor:!1,select:!1})}}),e.ScrollPageUp=Object(o.l)(new class extends b{constructor(){super({id:"scrollPageUp",precondition:void 0,kbOpts:{weight:_,kbExpr:g.a.textInputFocus,primary:2059,win:{primary:523},linux:{primary:523}}})}runCoreEditorCommand(t,n){e.EditorScroll._runEditorScroll(t,n.source,{direction:1,unit:3,value:1,revealCursor:!1,select:!1})}}),e.ScrollLineDown=Object(o.l)(new class extends b{constructor(){super({id:"scrollLineDown",precondition:void 0,kbOpts:{weight:_,kbExpr:g.a.textInputFocus,primary:2066,mac:{primary:268}}})}runCoreEditorCommand(t,n){e.EditorScroll._runEditorScroll(t,n.source,{direction:2,unit:2,value:1,revealCursor:!1,select:!1})}}),e.ScrollPageDown=Object(o.l)(new class extends b{constructor(){super({id:"scrollPageDown",precondition:void 0,kbOpts:{weight:_,kbExpr:g.a.textInputFocus,primary:2060,win:{primary:524},linux:{primary:524}}})}runCoreEditorCommand(t,n){e.EditorScroll._runEditorScroll(t,n.source,{direction:2,unit:3,value:1,revealCursor:!1,select:!1})}});class M extends b{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[h.b.word(e,e.getPrimaryCursorState(),this._inSelectionMode,t.position)]),e.revealPrimaryCursor(t.source,!0)}}e.WordSelect=Object(o.l)(new M({inSelectionMode:!1,id:"_wordSelect",precondition:void 0})),e.WordSelectDrag=Object(o.l)(new M({inSelectionMode:!0,id:"_wordSelectDrag",precondition:void 0})),e.LastCursorWordSelect=Object(o.l)(new class extends b{constructor(){super({id:"lastCursorWordSelect",precondition:void 0})}runCoreEditorCommand(e,t){const n=e.getLastAddedCursorIndex(),i=e.getCursorStates(),r=i.slice(0),o=i[n];r[n]=h.b.word(e,o,o.modelState.hasSelection(),t.position),e.model.pushStackElement(),e.setCursorStates(t.source,3,r)}});class D extends b{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[h.b.line(e,e.getPrimaryCursorState(),this._inSelectionMode,t.position,t.viewPosition)]),e.revealPrimaryCursor(t.source,!1)}}e.LineSelect=Object(o.l)(new D({inSelectionMode:!1,id:"_lineSelect",precondition:void 0})),e.LineSelectDrag=Object(o.l)(new D({inSelectionMode:!0,id:"_lineSelectDrag",precondition:void 0}));class E extends b{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){const n=e.getLastAddedCursorIndex(),i=e.getCursorStates(),r=i.slice(0);r[n]=h.b.line(e,i[n],this._inSelectionMode,t.position,t.viewPosition),e.model.pushStackElement(),e.setCursorStates(t.source,3,r)}}e.LastCursorLineSelect=Object(o.l)(new E({inSelectionMode:!1,id:"lastCursorLineSelect",precondition:void 0})),e.LastCursorLineSelectDrag=Object(o.l)(new E({inSelectionMode:!0,id:"lastCursorLineSelectDrag",precondition:void 0})),e.ExpandLineSelection=Object(o.l)(new class extends b{constructor(){super({id:"expandLineSelection",precondition:void 0,kbOpts:{weight:_,kbExpr:g.a.textInputFocus,primary:2090}})}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,h.b.expandLineSelection(e,e.getCursorStates())),e.revealPrimaryCursor(t.source,!0)}}),e.CancelSelection=Object(o.l)(new class extends b{constructor(){super({id:"cancelSelection",precondition:g.a.hasNonEmptySelection,kbOpts:{weight:_,kbExpr:g.a.textInputFocus,primary:9,secondary:[1033]}})}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[h.b.cancelSelection(e,e.getPrimaryCursorState())]),e.revealPrimaryCursor(t.source,!0)}}),e.RemoveSecondaryCursors=Object(o.l)(new class extends b{constructor(){super({id:"removeSecondaryCursors",precondition:g.a.hasMultipleSelections,kbOpts:{weight:_+1,kbExpr:g.a.textInputFocus,primary:9,secondary:[1033]}})}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[e.getPrimaryCursorState()]),e.revealPrimaryCursor(t.source,!0)}}),e.RevealLine=Object(o.l)(new class extends b{constructor(){super({id:"revealLine",precondition:void 0,description:w.description})}runCoreEditorCommand(e,t){const n=t;let i=(n.lineNumber||0)+1;i<1&&(i=1);const r=e.model.getLineCount();i>r&&(i=r);const o=new c.a(i,1,i,e.model.getLineMaxColumn(i));let s=0;if(n.at)switch(n.at){case w.RawAtArgument.Top:s=3;break;case w.RawAtArgument.Center:s=1;break;case w.RawAtArgument.Bottom:s=4}const a=e.coordinatesConverter.convertModelRangeToViewRange(o);e.revealRange(t.source,!1,a,s,0)}}),e.SelectAll=new class extends k{constructor(){super(o.h)}runDOMCommand(){document.execCommand("selectAll")}runEditorCommand(e,t,n){const i=t._getViewModel();i&&this.runCoreEditorCommand(i,n)}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates("keyboard",3,[h.b.selectAll(e,e.getPrimaryCursorState())])}},e.SetSelection=Object(o.l)(new class extends b{constructor(){super({id:"setSelection",precondition:void 0})}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[a.d.fromModelSelection(t.selection)])}})}(S||(S={}));const x=p.a.and(g.a.textInputFocus,g.a.columnSelection);function L(e,t){m.a.registerKeybindingRule({id:e,primary:t,when:x,weight:_+1})}function M(e){return e.register(),e}var D;L(S.CursorColumnSelectLeft.id,1039),L(S.CursorColumnSelectRight.id,1041),L(S.CursorColumnSelectUp.id,1040),L(S.CursorColumnSelectPageUp.id,1035),L(S.CursorColumnSelectDown.id,1042),L(S.CursorColumnSelectPageDown.id,1036),function(e){class t extends o.c{runEditorCommand(e,t,n){const i=t._getViewModel();i&&this.runCoreEditingCommand(t,i,n||{})}}e.CoreEditingCommand=t,e.LineBreakInsert=Object(o.l)(new class extends t{constructor(){super({id:"lineBreakInsert",precondition:g.a.writable,kbOpts:{weight:_,kbExpr:g.a.textInputFocus,primary:0,mac:{primary:301}}})}runCoreEditingCommand(e,t,n){e.pushUndoStop(),e.executeCommands(this.id,f.a.lineBreakInsert(t.cursorConfig,t.model,t.getCursorStates().map(e=>e.modelState.selection)))}}),e.Outdent=Object(o.l)(new class extends t{constructor(){super({id:"outdent",precondition:g.a.writable,kbOpts:{weight:_,kbExpr:p.a.and(g.a.editorTextFocus,g.a.tabDoesNotMoveFocus),primary:1026}})}runCoreEditingCommand(e,t,n){e.pushUndoStop(),e.executeCommands(this.id,f.a.outdent(t.cursorConfig,t.model,t.getCursorStates().map(e=>e.modelState.selection))),e.pushUndoStop()}}),e.Tab=Object(o.l)(new class extends t{constructor(){super({id:"tab",precondition:g.a.writable,kbOpts:{weight:_,kbExpr:p.a.and(g.a.editorTextFocus,g.a.tabDoesNotMoveFocus),primary:2}})}runCoreEditingCommand(e,t,n){e.pushUndoStop(),e.executeCommands(this.id,f.a.tab(t.cursorConfig,t.model,t.getCursorStates().map(e=>e.modelState.selection))),e.pushUndoStop()}}),e.DeleteLeft=Object(o.l)(new class extends t{constructor(){super({id:"deleteLeft",precondition:void 0,kbOpts:{weight:_,kbExpr:g.a.textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})}runCoreEditingCommand(e,t,n){const[i,r]=u.a.deleteLeft(t.getPrevEditOperationType(),t.cursorConfig,t.model,t.getCursorStates().map(e=>e.modelState.selection));i&&e.pushUndoStop(),e.executeCommands(this.id,r),t.setPrevEditOperationType(2)}}),e.DeleteRight=Object(o.l)(new class extends t{constructor(){super({id:"deleteRight",precondition:void 0,kbOpts:{weight:_,kbExpr:g.a.textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})}runCoreEditingCommand(e,t,n){const[i,r]=u.a.deleteRight(t.getPrevEditOperationType(),t.cursorConfig,t.model,t.getCursorStates().map(e=>e.modelState.selection));i&&e.pushUndoStop(),e.executeCommands(this.id,r),t.setPrevEditOperationType(3)}}),e.Undo=new class extends k{constructor(){super(o.i)}runDOMCommand(){document.execCommand("undo")}runEditorCommand(e,t,n){t.hasModel()&&!0!==t.getOption(72)&&t.getModel().undo()}},e.Redo=new class extends k{constructor(){super(o.g)}runDOMCommand(){document.execCommand("redo")}runEditorCommand(e,t,n){t.hasModel()&&!0!==t.getOption(72)&&t.getModel().redo()}}}(D||(D={}));class E extends o.a{constructor(e,t,n){super({id:e,precondition:void 0,description:n}),this._handlerId=t}runCommand(e,t){const n=e.get(s.a).getFocusedCodeEditor();n&&n.trigger("keyboard",this._handlerId,t)}}function T(e,t){M(new E("default:"+e,e)),M(new E(e,e,t))}T("type",{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]}),T("replacePreviousChar"),T("compositionStart"),T("compositionEnd"),T("paste"),T("cut")},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var i;self.MonacoEnvironment=(i={editorWorkerService:"editor.worker.js",json:"json.worker.js"},{getWorkerUrl:function(e,t){var r=n.p,o=(r?r.replace(/\/$/,"")+"/":"")+i[t];if(/^((http:)|(https:)|(file:)|(\/\/))/.test(o)){var s=String(window.location),a=s.substr(0,s.length-window.location.hash.length-window.location.search.length-window.location.pathname.length);if(o.substring(0,a.length)!==a){var l=new Blob(["/*"+t+'*/importScripts("'+o+'");'],{type:"application/javascript"});return URL.createObjectURL(l)}}return o}}),n(275),n(276),n(277),n(332),n(278),n(279),n(327),n(222),n(330),n(280),n(85),n(281),n(333),n(168),n(324),n(282),n(328),n(202),n(334),n(225),n(223),n(323),n(283),n(335),n(284),n(285),n(325),n(336),n(286),n(287),n(329),n(326),n(337),n(331),n(338),n(339),n(151),n(322),n(288),n(198),n(289),n(290),n(291),n(292),n(172),n(293),e.exports=n(899),n(294)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return l})),n.d(t,"b",(function(){return c}));var i=n(17),r=n(6),o=n(2),s=n(20);const a=Object(i.c)("storageService");var l;!function(e){e[e.NONE=0]="NONE",e[e.SHUTDOWN=1]="SHUTDOWN"}(l||(l={}));class c extends o.a{constructor(){super(...arguments),this._onDidChangeStorage=this._register(new r.a),this._onWillSaveState=this._register(new r.a),this.onWillSaveState=this._onWillSaveState.event,this.globalCache=new Map,this.workspaceCache=new Map}getCache(e){return 0===e?this.globalCache:this.workspaceCache}get(e,t,n){const i=this.getCache(t).get(e);return Object(s.l)(i)?n:i}getBoolean(e,t,n){const i=this.getCache(t).get(e);return Object(s.l)(i)?n:"true"===i}getNumber(e,t,n){const i=this.getCache(t).get(e);return Object(s.l)(i)?n:parseInt(i,10)}store(e,t,n){if(Object(s.l)(t))return this.remove(e,n);const i=String(t);return this.getCache(n).get(e)===i?Promise.resolve():(this.getCache(n).set(e,i),this._onDidChangeStorage.fire({scope:n,key:e}),Promise.resolve())}remove(e,t){return this.getCache(t).delete(e)?(this._onDidChangeStorage.fire({scope:t,key:e}),Promise.resolve()):Promise.resolve()}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n(17);const r=Object(i.c)("editorWorkerService")},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));let i=0;function r(e,t,n){return function(){const e=`$memoize${i++}`;let t=void 0;const n=function(n,i,r){let o=null,s=null;if("function"==typeof r.value?(o="value",0!==(s=r.value).length&&console.warn("Memoize should only be used in functions with zero parameters")):"function"==typeof r.get&&(o="get",s=r.get),!s)throw new Error("not supported");const a=`${e}:${i}`;r[o]=function(...e){return t=this,this.hasOwnProperty(a)||Object.defineProperty(this,a,{configurable:!0,enumerable:!1,writable:!0,value:s.apply(this,e)}),this[a]}};return n.clear=()=>{void 0!==t&&Object.getOwnPropertyNames(t).forEach(n=>{0===n.indexOf(e)&&delete t[n]})},n}()(e,t,n)}},function(e,t,n){"use strict";var i;n.d(t,"a",(function(){return i})),function(e){function t(e,t){if(e.start>=t.end||t.start>=e.end)return{start:0,end:0};const n=Math.max(e.start,t.start),i=Math.min(e.end,t.end);return i-n<=0?{start:0,end:0}:{start:n,end:i}}function n(e){return e.end-e.start<=0}e.intersect=t,e.isEmpty=n,e.intersects=function(e,i){return!n(t(e,i))},e.relativeComplement=function(e,t){const i=[],r={start:e.start,end:Math.min(t.start,e.end)},o={start:Math.max(t.end,e.start),end:e.end};return n(r)||i.push(r),n(o)||i.push(o),i}}(i||(i={}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return d}));var i=n(17),r=n(2),o=n(6);const s=Object(i.c)("logService");var a;!function(e){e[e.Trace=0]="Trace",e[e.Debug=1]="Debug",e[e.Info=2]="Info",e[e.Warning=3]="Warning",e[e.Error=4]="Error",e[e.Critical=5]="Critical",e[e.Off=6]="Off"}(a||(a={}));const l=a.Info;class c extends r.a{constructor(){super(...arguments),this.level=l,this._onDidChangeLogLevel=this._register(new o.a)}setLevel(e){this.level!==e&&(this.level=e,this._onDidChangeLogLevel.fire(this.level))}getLevel(){return this.level}}class d extends c{constructor(e=l){super(),this.setLevel(e)}trace(e,...t){this.getLevel()<=a.Trace&&console.log("%cTRACE","color: #888",e,...t)}info(e,...t){this.getLevel()<=a.Info&&console.log("%c INFO","color: #33f",e,...t)}error(e,...t){this.getLevel()<=a.Error&&console.log("%c ERR","color: #f33",e,...t)}dispose(){}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return d}));var i=n(1),r=n(12),o=n(226),s=n(59),a=n(2),l=n(136);function c(e,t){let n=new s.a(t);return n.preventDefault(),{leftButton:n.leftButton,buttons:n.buttons,posx:n.posx,posy:n.posy}}class d{constructor(){this._hooks=new a.b,this._mouseMoveEventMerger=null,this._mouseMoveCallback=null,this._onStopCallback=null}dispose(){this.stopMonitoring(!1),this._hooks.dispose()}stopMonitoring(e){if(!this.isMonitoring())return;this._hooks.clear(),this._mouseMoveEventMerger=null,this._mouseMoveCallback=null;const t=this._onStopCallback;this._onStopCallback=null,e&&t&&t()}isMonitoring(){return!!this._mouseMoveEventMerger}startMonitoring(e,t,n,a,c){if(this.isMonitoring())return;this._mouseMoveEventMerger=n,this._mouseMoveCallback=a,this._onStopCallback=c;const d=o.a.getSameOriginWindowChain(),u=r.c&&l.a.pointerEvents?"pointermove":"mousemove",h=r.c&&l.a.pointerEvents?"pointerup":"mouseup",f=d.map(e=>e.window.document),g=i.E(e);g&&f.unshift(g);for(const e of f)this._hooks.add(i.l(e,u,e=>{e.buttons===t?this._mouseMoveCallback(e):this.stopMonitoring(!0)},(e,t)=>this._mouseMoveEventMerger(e,t))),this._hooks.add(i.i(e,h,e=>this.stopMonitoring(!0)));if(o.a.hasDifferentOriginAncestor()){let e=d[d.length-1];this._hooks.add(i.i(e.window.document,"mouseout",e=>{"html"===new s.a(e).target.tagName.toLowerCase()&&this.stopMonitoring(!0)})),this._hooks.add(i.i(e.window.document,"mouseover",e=>{"html"===new s.a(e).target.tagName.toLowerCase()&&this.stopMonitoring(!0)})),this._hooks.add(i.i(e.window.document.body,"mouseleave",e=>{this.stopMonitoring(!0)}))}}}},function(e,t,n){"use strict";n(585);var i=n(1),r=n(31),o=n(59),s=n(93),a=n(69),l=n(19);const c=11;class d extends a.a{constructor(e){super(),this._onActivate=e.onActivate,this.bgDomNode=document.createElement("div"),this.bgDomNode.className="arrow-background",this.bgDomNode.style.position="absolute",this.bgDomNode.style.width=e.bgWidth+"px",this.bgDomNode.style.height=e.bgHeight+"px",void 0!==e.top&&(this.bgDomNode.style.top="0px"),void 0!==e.left&&(this.bgDomNode.style.left="0px"),void 0!==e.bottom&&(this.bgDomNode.style.bottom="0px"),void 0!==e.right&&(this.bgDomNode.style.right="0px"),this.domNode=document.createElement("div"),this.domNode.className=e.className,Object(i.f)(this.domNode,e.icon.classNames),this.domNode.style.position="absolute",this.domNode.style.width=c+"px",this.domNode.style.height=c+"px",void 0!==e.top&&(this.domNode.style.top=e.top+"px"),void 0!==e.left&&(this.domNode.style.left=e.left+"px"),void 0!==e.bottom&&(this.domNode.style.bottom=e.bottom+"px"),void 0!==e.right&&(this.domNode.style.right=e.right+"px"),this._mouseMoveMonitor=this._register(new s.a),this.onmousedown(this.bgDomNode,e=>this._arrowMouseDown(e)),this.onmousedown(this.domNode,e=>this._arrowMouseDown(e)),this._mousedownRepeatTimer=this._register(new l.c),this._mousedownScheduleRepeatTimer=this._register(new l.e)}_arrowMouseDown(e){this._onActivate(),this._mousedownRepeatTimer.cancel(),this._mousedownScheduleRepeatTimer.cancelAndSet(()=>{this._mousedownRepeatTimer.cancelAndSet(()=>this._onActivate(),1e3/24)},200),this._mouseMoveMonitor.startMonitoring(e.target,e.buttons,s.b,e=>{},()=>{this._mousedownRepeatTimer.cancel(),this._mousedownScheduleRepeatTimer.cancel()}),e.preventDefault()}}var u=n(2);class h extends u.a{constructor(e,t,n){super(),this._visibility=e,this._visibleClassName=t,this._invisibleClassName=n,this._domNode=null,this._isVisible=!1,this._isNeeded=!1,this._shouldBeVisible=!1,this._revealTimer=this._register(new l.e)}applyVisibilitySetting(e){return 2!==this._visibility&&(3===this._visibility||e)}setShouldBeVisible(e){let t=this.applyVisibilitySetting(e);this._shouldBeVisible!==t&&(this._shouldBeVisible=t,this.ensureVisibility())}setIsNeeded(e){this._isNeeded!==e&&(this._isNeeded=e,this.ensureVisibility())}setDomNode(e){this._domNode=e,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)}ensureVisibility(){this._isNeeded?this._shouldBeVisible?this._reveal():this._hide(!0):this._hide(!1)}_reveal(){this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet(()=>{this._domNode&&this._domNode.setClassName(this._visibleClassName)},0))}_hide(e){this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,this._domNode&&this._domNode.setClassName(this._invisibleClassName+(e?" fade":"")))}}var f=n(12);const g=140;class p extends a.a{constructor(e){super(),this._lazyRender=e.lazyRender,this._host=e.host,this._scrollable=e.scrollable,this._scrollbarState=e.scrollbarState,this._visibilityController=this._register(new h(e.visibility,"visible scrollbar "+e.extraScrollbarClassName,"invisible scrollbar "+e.extraScrollbarClassName)),this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._mouseMoveMonitor=this._register(new s.a),this._shouldRender=!0,this.domNode=Object(r.b)(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this._visibilityController.setDomNode(this.domNode),this.domNode.setPosition("absolute"),this.onmousedown(this.domNode.domNode,e=>this._domNodeMouseDown(e))}_createArrow(e){let t=this._register(new d(e));this.domNode.domNode.appendChild(t.bgDomNode),this.domNode.domNode.appendChild(t.domNode)}_createSlider(e,t,n,i){this.slider=Object(r.b)(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(e),this.slider.setLeft(t),"number"==typeof n&&this.slider.setWidth(n),"number"==typeof i&&this.slider.setHeight(i),this.slider.setLayerHinting(!0),this.slider.setContain("strict"),this.domNode.domNode.appendChild(this.slider.domNode),this.onmousedown(this.slider.domNode,e=>{e.leftButton&&(e.preventDefault(),this._sliderMouseDown(e,()=>{}))}),this.onclick(this.slider.domNode,e=>{e.leftButton&&e.stopPropagation()})}_onElementSize(e){return this._scrollbarState.setVisibleSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollSize(e){return this._scrollbarState.setScrollSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollPosition(e){return this._scrollbarState.setScrollPosition(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}beginReveal(){this._visibilityController.setShouldBeVisible(!0)}beginHide(){this._visibilityController.setShouldBeVisible(!1)}render(){this._shouldRender&&(this._shouldRender=!1,this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize()),this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition()))}_domNodeMouseDown(e){e.target===this.domNode.domNode&&this._onMouseDown(e)}delegateMouseDown(e){let t=this.domNode.domNode.getClientRects()[0].top,n=t+this._scrollbarState.getSliderPosition(),i=t+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),r=this._sliderMousePosition(e);n<=r&&r<=i?e.leftButton&&(e.preventDefault(),this._sliderMouseDown(e,()=>{})):this._onMouseDown(e)}_onMouseDown(e){let t,n;if(e.target===this.domNode.domNode&&"number"==typeof e.browserEvent.offsetX&&"number"==typeof e.browserEvent.offsetY)t=e.browserEvent.offsetX,n=e.browserEvent.offsetY;else{const r=i.C(this.domNode.domNode);t=e.posx-r.left,n=e.posy-r.top}this._setDesiredScrollPositionNow(this._scrollbarState.getDesiredScrollPositionFromOffset(this._mouseDownRelativePosition(t,n))),e.leftButton&&(e.preventDefault(),this._sliderMouseDown(e,()=>{}))}_sliderMouseDown(e,t){const n=this._sliderMousePosition(e),i=this._sliderOrthogonalMousePosition(e),r=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._mouseMoveMonitor.startMonitoring(e.target,e.buttons,s.b,e=>{const t=this._sliderOrthogonalMousePosition(e),o=Math.abs(t-i);if(f.i&&o>g)return void this._setDesiredScrollPositionNow(r.getScrollPosition());const s=this._sliderMousePosition(e)-n;this._setDesiredScrollPositionNow(r.getDesiredScrollPositionFromDelta(s))},()=>{this.slider.toggleClassName("active",!1),this._host.onDragEnd(),t()}),this._host.onDragStart()}_setDesiredScrollPositionNow(e){let t={};this.writeScrollPosition(t,e),this._scrollable.setScrollPositionNow(t)}updateScrollbarSize(e){this._updateScrollbarSize(e),this._scrollbarState.setScrollbarSize(e),this._shouldRender=!0,this._lazyRender||this.render()}}const m=20;class _{constructor(e,t,n,i,r,o){this._scrollbarSize=Math.round(t),this._oppositeScrollbarSize=Math.round(n),this._arrowSize=Math.round(e),this._visibleSize=i,this._scrollSize=r,this._scrollPosition=o,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}clone(){return new _(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)}setVisibleSize(e){let t=Math.round(e);return this._visibleSize!==t&&(this._visibleSize=t,this._refreshComputedValues(),!0)}setScrollSize(e){let t=Math.round(e);return this._scrollSize!==t&&(this._scrollSize=t,this._refreshComputedValues(),!0)}setScrollPosition(e){let t=Math.round(e);return this._scrollPosition!==t&&(this._scrollPosition=t,this._refreshComputedValues(),!0)}setScrollbarSize(e){this._scrollbarSize=e}static _computeValues(e,t,n,i,r){const o=Math.max(0,n-e),s=Math.max(0,o-2*t),a=i>0&&i>n;if(!a)return{computedAvailableSize:Math.round(o),computedIsNeeded:a,computedSliderSize:Math.round(s),computedSliderRatio:0,computedSliderPosition:0};const l=Math.round(Math.max(m,Math.floor(n*s/i))),c=(s-l)/(i-n),d=r*c;return{computedAvailableSize:Math.round(o),computedIsNeeded:a,computedSliderSize:Math.round(l),computedSliderRatio:c,computedSliderPosition:Math.round(d)}}_refreshComputedValues(){const e=_._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=e.computedAvailableSize,this._computedIsNeeded=e.computedIsNeeded,this._computedSliderSize=e.computedSliderSize,this._computedSliderRatio=e.computedSliderRatio,this._computedSliderPosition=e.computedSliderPosition}getArrowSize(){return this._arrowSize}getScrollPosition(){return this._scrollPosition}getRectangleLargeSize(){return this._computedAvailableSize}getRectangleSmallSize(){return this._scrollbarSize}isNeeded(){return this._computedIsNeeded}getSliderSize(){return this._computedSliderSize}getSliderPosition(){return this._computedSliderPosition}getDesiredScrollPositionFromOffset(e){if(!this._computedIsNeeded)return 0;let t=e-this._arrowSize-this._computedSliderSize/2;return Math.round(t/this._computedSliderRatio)}getDesiredScrollPositionFromDelta(e){if(!this._computedIsNeeded)return 0;let t=this._computedSliderPosition+e;return Math.round(t/this._computedSliderRatio)}}var b=n(16);const v=Object(b.e)("scrollbar-button-left",b.a.triangleLeft),y=Object(b.e)("scrollbar-button-right",b.a.triangleRight);class w extends p{constructor(e,t,n){const i=e.getScrollDimensions(),r=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:n,scrollbarState:new _(t.horizontalHasArrows?t.arrowSize:0,2===t.horizontal?0:t.horizontalScrollbarSize,2===t.vertical?0:t.verticalScrollbarSize,i.width,i.scrollWidth,r.scrollLeft),visibility:t.horizontal,extraScrollbarClassName:"horizontal",scrollable:e}),t.horizontalHasArrows){let e=(t.arrowSize-c)/2,n=(t.horizontalScrollbarSize-c)/2;this._createArrow({className:"scra",icon:v,top:n,left:e,bottom:void 0,right:void 0,bgWidth:t.arrowSize,bgHeight:t.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new o.b(null,1,0))}),this._createArrow({className:"scra",icon:y,top:n,left:void 0,bottom:void 0,right:e,bgWidth:t.arrowSize,bgHeight:t.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new o.b(null,-1,0))})}this._createSlider(Math.floor((t.horizontalScrollbarSize-t.horizontalSliderSize)/2),0,void 0,t.horizontalSliderSize)}_updateSlider(e,t){this.slider.setWidth(e),this.slider.setLeft(t)}_renderDomNode(e,t){this.domNode.setWidth(e),this.domNode.setHeight(t),this.domNode.setLeft(0),this.domNode.setBottom(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(e.width)||this._shouldRender,this._shouldRender}_mouseDownRelativePosition(e,t){return e}_sliderMousePosition(e){return e.posx}_sliderOrthogonalMousePosition(e){return e.posy}_updateScrollbarSize(e){this.slider.setHeight(e)}writeScrollPosition(e,t){e.scrollLeft=t}}const C=Object(b.e)("scrollbar-button-up",b.a.triangleUp),S=Object(b.e)("scrollbar-button-down",b.a.triangleDown);class k extends p{constructor(e,t,n){const i=e.getScrollDimensions(),r=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:n,scrollbarState:new _(t.verticalHasArrows?t.arrowSize:0,2===t.vertical?0:t.verticalScrollbarSize,0,i.height,i.scrollHeight,r.scrollTop),visibility:t.vertical,extraScrollbarClassName:"vertical",scrollable:e}),t.verticalHasArrows){let e=(t.arrowSize-c)/2,n=(t.verticalScrollbarSize-c)/2;this._createArrow({className:"scra",icon:C,top:e,left:n,bottom:void 0,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:()=>this._host.onMouseWheel(new o.b(null,0,1))}),this._createArrow({className:"scra",icon:S,top:void 0,left:n,bottom:e,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:()=>this._host.onMouseWheel(new o.b(null,0,-1))})}this._createSlider(0,Math.floor((t.verticalScrollbarSize-t.verticalSliderSize)/2),t.verticalSliderSize,void 0)}_updateSlider(e,t){this.slider.setHeight(e),this.slider.setTop(t)}_renderDomNode(e,t){this.domNode.setWidth(t),this.domNode.setHeight(e),this.domNode.setRight(0),this.domNode.setTop(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(e.height)||this._shouldRender,this._shouldRender}_mouseDownRelativePosition(e,t){return t}_sliderMousePosition(e){return e.posy}_sliderOrthogonalMousePosition(e){return e.posx}_updateScrollbarSize(e){this.slider.setWidth(e)}writeScrollPosition(e,t){e.scrollTop=t}}var x=n(6),L=n(203),M=n(30);n.d(t,"b",(function(){return A})),n.d(t,"c",(function(){return R})),n.d(t,"a",(function(){return P}));const D=500,E=50,T=!0;class O{constructor(e,t,n){this.timestamp=e,this.deltaX=t,this.deltaY=n,this.score=0}}class N{constructor(){this._capacity=5,this._memory=[],this._front=-1,this._rear=-1}isPhysicalMouseWheel(){if(-1===this._front&&-1===this._rear)return!1;let e=1,t=0,n=1,i=this._rear;for(;;){const r=i===this._front?e:Math.pow(2,-n);if(e-=r,t+=this._memory[i].score*r,i===this._front)break;i=(this._capacity+i-1)%this._capacity,n++}return t<=.5}accept(e,t,n){const i=new O(e,t,n);i.score=this._computeScore(i),-1===this._front&&-1===this._rear?(this._memory[0]=i,this._front=0,this._rear=0):(this._rear=(this._rear+1)%this._capacity,this._rear===this._front&&(this._front=(this._front+1)%this._capacity),this._memory[this._rear]=i)}_computeScore(e){if(Math.abs(e.deltaX)>0&&Math.abs(e.deltaY)>0)return 1;let t=.5;-1===this._front&&-1===this._rear||this._memory[this._rear];return this._isAlmostInt(e.deltaX)&&this._isAlmostInt(e.deltaY)||(t+=.25),Math.min(Math.max(t,0),1)}_isAlmostInt(e){return Math.abs(Math.round(e)-e)<.01}}N.INSTANCE=new N;class I extends a.a{constructor(e,t,n){super(),this._onScroll=this._register(new x.a),this.onScroll=this._onScroll.event,this._onWillScroll=this._register(new x.a),e.style.overflow="hidden",this._options=function(e){let t={lazyRender:void 0!==e.lazyRender&&e.lazyRender,className:void 0!==e.className?e.className:"",useShadows:void 0===e.useShadows||e.useShadows,handleMouseWheel:void 0===e.handleMouseWheel||e.handleMouseWheel,flipAxes:void 0!==e.flipAxes&&e.flipAxes,alwaysConsumeMouseWheel:void 0!==e.alwaysConsumeMouseWheel&&e.alwaysConsumeMouseWheel,scrollYToX:void 0!==e.scrollYToX&&e.scrollYToX,mouseWheelScrollSensitivity:void 0!==e.mouseWheelScrollSensitivity?e.mouseWheelScrollSensitivity:1,fastScrollSensitivity:void 0!==e.fastScrollSensitivity?e.fastScrollSensitivity:5,scrollPredominantAxis:void 0===e.scrollPredominantAxis||e.scrollPredominantAxis,mouseWheelSmoothScroll:void 0===e.mouseWheelSmoothScroll||e.mouseWheelSmoothScroll,arrowSize:void 0!==e.arrowSize?e.arrowSize:11,listenOnDomNode:void 0!==e.listenOnDomNode?e.listenOnDomNode:null,horizontal:void 0!==e.horizontal?e.horizontal:1,horizontalScrollbarSize:void 0!==e.horizontalScrollbarSize?e.horizontalScrollbarSize:10,horizontalSliderSize:void 0!==e.horizontalSliderSize?e.horizontalSliderSize:0,horizontalHasArrows:void 0!==e.horizontalHasArrows&&e.horizontalHasArrows,vertical:void 0!==e.vertical?e.vertical:1,verticalScrollbarSize:void 0!==e.verticalScrollbarSize?e.verticalScrollbarSize:10,verticalHasArrows:void 0!==e.verticalHasArrows&&e.verticalHasArrows,verticalSliderSize:void 0!==e.verticalSliderSize?e.verticalSliderSize:0};t.horizontalSliderSize=void 0!==e.horizontalSliderSize?e.horizontalSliderSize:t.horizontalScrollbarSize,t.verticalSliderSize=void 0!==e.verticalSliderSize?e.verticalSliderSize:t.verticalScrollbarSize,f.f&&(t.className+=" mac");return t}(t),this._scrollable=n,this._register(this._scrollable.onScroll(e=>{this._onWillScroll.fire(e),this._onDidScroll(e),this._onScroll.fire(e)}));let i={onMouseWheel:e=>this._onMouseWheel(e),onDragStart:()=>this._onDragStart(),onDragEnd:()=>this._onDragEnd()};this._verticalScrollbar=this._register(new k(this._scrollable,this._options,i)),this._horizontalScrollbar=this._register(new w(this._scrollable,this._options,i)),this._domNode=document.createElement("div"),this._domNode.className="monaco-scrollable-element "+this._options.className,this._domNode.setAttribute("role","presentation"),this._domNode.style.position="relative",this._domNode.style.overflow="hidden",this._domNode.appendChild(e),this._domNode.appendChild(this._horizontalScrollbar.domNode.domNode),this._domNode.appendChild(this._verticalScrollbar.domNode.domNode),this._options.useShadows?(this._leftShadowDomNode=Object(r.b)(document.createElement("div")),this._leftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._leftShadowDomNode.domNode),this._topShadowDomNode=Object(r.b)(document.createElement("div")),this._topShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topShadowDomNode.domNode),this._topLeftShadowDomNode=Object(r.b)(document.createElement("div")),this._topLeftShadowDomNode.setClassName("shadow top-left-corner"),this._domNode.appendChild(this._topLeftShadowDomNode.domNode)):(this._leftShadowDomNode=null,this._topShadowDomNode=null,this._topLeftShadowDomNode=null),this._listenOnDomNode=this._options.listenOnDomNode||this._domNode,this._mouseWheelToDispose=[],this._setListeningToMouseWheel(this._options.handleMouseWheel),this.onmouseover(this._listenOnDomNode,e=>this._onMouseOver(e)),this.onnonbubblingmouseout(this._listenOnDomNode,e=>this._onMouseOut(e)),this._hideTimeout=this._register(new l.e),this._isDragging=!1,this._mouseIsOver=!1,this._shouldRender=!0,this._revealOnScroll=!0}dispose(){this._mouseWheelToDispose=Object(u.f)(this._mouseWheelToDispose),super.dispose()}getDomNode(){return this._domNode}getOverviewRulerLayoutInfo(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}}delegateVerticalScrollbarMouseDown(e){this._verticalScrollbar.delegateMouseDown(e)}getScrollDimensions(){return this._scrollable.getScrollDimensions()}setScrollDimensions(e){this._scrollable.setScrollDimensions(e,!1)}updateClassName(e){this._options.className=e,f.f&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className}updateOptions(e){void 0!==e.handleMouseWheel&&(this._options.handleMouseWheel=e.handleMouseWheel,this._setListeningToMouseWheel(this._options.handleMouseWheel)),void 0!==e.mouseWheelScrollSensitivity&&(this._options.mouseWheelScrollSensitivity=e.mouseWheelScrollSensitivity),void 0!==e.fastScrollSensitivity&&(this._options.fastScrollSensitivity=e.fastScrollSensitivity),void 0!==e.scrollPredominantAxis&&(this._options.scrollPredominantAxis=e.scrollPredominantAxis),void 0!==e.horizontalScrollbarSize&&this._horizontalScrollbar.updateScrollbarSize(e.horizontalScrollbarSize),this._options.lazyRender||this._render()}_setListeningToMouseWheel(e){if(this._mouseWheelToDispose.length>0!==e&&(this._mouseWheelToDispose=Object(u.f)(this._mouseWheelToDispose),e)){let e=e=>{this._onMouseWheel(new o.b(e))};this._mouseWheelToDispose.push(i.i(this._listenOnDomNode,i.c.MOUSE_WHEEL,e,{passive:!1}))}}_onMouseWheel(e){const t=N.INSTANCE;if(T){const n=window.devicePixelRatio/Object(M.c)();f.i||f.d?t.accept(Date.now(),e.deltaX/n,e.deltaY/n):t.accept(Date.now(),e.deltaX,e.deltaY)}if(e.deltaY||e.deltaX){let n=e.deltaY*this._options.mouseWheelScrollSensitivity,i=e.deltaX*this._options.mouseWheelScrollSensitivity;this._options.scrollPredominantAxis&&(Math.abs(n)>=Math.abs(i)?i=0:n=0),this._options.flipAxes&&([n,i]=[i,n]);const r=!f.f&&e.browserEvent&&e.browserEvent.shiftKey;!this._options.scrollYToX&&!r||i||(i=n,n=0),e.browserEvent&&e.browserEvent.altKey&&(i*=this._options.fastScrollSensitivity,n*=this._options.fastScrollSensitivity);const o=this._scrollable.getFutureScrollPosition();let s={};if(n){const e=o.scrollTop-E*n;this._verticalScrollbar.writeScrollPosition(s,e)}if(i){const e=o.scrollLeft-E*i;this._horizontalScrollbar.writeScrollPosition(s,e)}if(s=this._scrollable.validateScrollPosition(s),o.scrollLeft!==s.scrollLeft||o.scrollTop!==s.scrollTop){T&&this._options.mouseWheelSmoothScroll&&t.isPhysicalMouseWheel()?this._scrollable.setScrollPositionSmooth(s):this._scrollable.setScrollPositionNow(s),this._shouldRender=!0}}(this._options.alwaysConsumeMouseWheel||this._shouldRender)&&(e.preventDefault(),e.stopPropagation())}_onDidScroll(e){this._shouldRender=this._horizontalScrollbar.onDidScroll(e)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(e)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()}renderNow(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()}_render(){if(this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){const e=this._scrollable.getCurrentScrollPosition();let t=e.scrollTop>0,n=e.scrollLeft>0;this._leftShadowDomNode.setClassName("shadow"+(n?" left":"")),this._topShadowDomNode.setClassName("shadow"+(t?" top":"")),this._topLeftShadowDomNode.setClassName("shadow top-left-corner"+(t?" top":"")+(n?" left":""))}}_onDragStart(){this._isDragging=!0,this._reveal()}_onDragEnd(){this._isDragging=!1,this._hide()}_onMouseOut(e){this._mouseIsOver=!1,this._hide()}_onMouseOver(e){this._mouseIsOver=!0,this._reveal()}_reveal(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()}_hide(){this._mouseIsOver||this._isDragging||(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())}_scheduleHide(){this._mouseIsOver||this._isDragging||this._hideTimeout.cancelAndSet(()=>this._hide(),D)}}class A extends I{constructor(e,t){(t=t||{}).mouseWheelSmoothScroll=!1;const n=new L.a(0,e=>i.Y(e));super(e,t,n),this._register(n)}setScrollPosition(e){this._scrollable.setScrollPositionNow(e)}}class R extends I{constructor(e,t,n){super(e,t,n)}setScrollPosition(e){this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}}class P extends A{constructor(e,t){super(e,t),this._element=e,this.onScroll(e=>{e.scrollTopChanged&&(this._element.scrollTop=e.scrollTop),e.scrollLeftChanged&&(this._element.scrollLeft=e.scrollLeft)}),this.scanDomNode()}scanDomNode(){this.setScrollDimensions({width:this._element.clientWidth,scrollWidth:this._element.scrollWidth,height:this._element.clientHeight,scrollHeight:this._element.scrollHeight}),this.setScrollPosition({scrollLeft:this._element.scrollLeft,scrollTop:this._element.scrollTop})}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return _})),n.d(t,"e",(function(){return b})),n.d(t,"f",(function(){return v})),n.d(t,"d",(function(){return y})),n.d(t,"b",(function(){return w})),n.d(t,"c",(function(){return k}));var i=n(14),r=n(26),o=n(15),s=n(2),a=n(24),l=n(76),c=n(4),d=n(3),u=n(22),h=n(11),f=n(54),g=n(57),p=n(70),m=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};const _="editor.action.codeAction",b="editor.action.refactor",v="editor.action.sourceAction",y="editor.action.organizeImports",w="editor.action.fixAll";class C extends s.a{constructor(e,t,n){super(),this.documentation=t,this._register(n),this.allActions=Object(i.p)([...e],C.codeActionsComparator),this.validActions=this.allActions.filter(e=>!e.disabled)}static codeActionsComparator(e,t){return e.isPreferred&&!t.isPreferred?-1:!e.isPreferred&&t.isPreferred?1:Object(i.o)(e.diagnostics)?Object(i.o)(t.diagnostics)?e.diagnostics[0].message.localeCompare(t.diagnostics[0].message):-1:Object(i.o)(t.diagnostics)?1:0}get hasAutoFix(){return this.validActions.some(e=>!!e.kind&&g.b.QuickFix.contains(new g.b(e.kind))&&!!e.isPreferred)}}const S={actions:[],documentation:void 0};function k(e,t,n,r,a){var c;const d=n.filter||{},u={only:null===(c=d.include)||void 0===c?void 0:c.value,trigger:n.type},f=new l.d(e,a),p=function(e,t){return h.a.all(e).filter(e=>!e.providedCodeActionKinds||e.providedCodeActionKinds.some(e=>Object(g.d)(t,new g.b(e))))}(e,d),_=new s.b,b=p.map(n=>m(this,void 0,void 0,(function*(){try{r.report(n);const i=yield n.provideCodeActions(e,t,u,f.token);if(i&&_.add(i),f.token.isCancellationRequested)return S;const o=((null==i?void 0:i.actions)||[]).filter(e=>e&&Object(g.c)(d,e));return{actions:o,documentation:function(e,t,n){if(!e.documentation)return;const i=e.documentation.map(e=>({kind:new g.b(e.kind),command:e.command}));if(n){let e;for(const t of i)t.kind.contains(n)&&(e?e.kind.contains(t.kind)&&(e=t):e=t);if(e)return null==e?void 0:e.command}for(const e of t)if(e.kind)for(const t of i)if(t.kind.contains(new g.b(e.kind)))return t.command;return}(n,o,d.include)}}catch(e){if(Object(o.d)(e))throw e;return Object(o.f)(e),S}}))),v=h.a.onDidChange(()=>{const t=h.a.all(e);Object(i.g)(t,p)||f.cancel()});return Promise.all(b).then(e=>{const t=Object(i.l)(e.map(e=>e.actions)),n=Object(i.d)(e.map(e=>e.documentation));return new C(t,n,_)}).finally(()=>{v.dispose(),f.dispose()})}Object(c.o)("_executeCodeActionProvider",(function(e,t){return m(this,void 0,void 0,(function*(){const{resource:n,rangeOrSelection:i,kind:s}=t;if(!(n instanceof a.a))throw Object(o.b)();const l=e.get(f.a).getModel(n);if(!l)throw Object(o.b)();const c=u.a.isISelection(i)?u.a.liftSelection(i):d.a.isIRange(i)?l.validateRange(i):void 0;if(!c)throw Object(o.b)();const h=yield k(l,c,{type:2,filter:{includeSourceActions:!0,include:s&&s.value?new g.b(s.value):void 0}},p.b.None,r.a.None);return setTimeout(()=>h.dispose(),100),h.validActions}))}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"d",(function(){return u})),n.d(t,"c",(function(){return f})),n.d(t,"e",(function(){return g})),n.d(t,"b",(function(){return p}));var i=n(8),r=n(105),o=n(10),s=n(3),a=n(48);const l=999;class c{constructor(e,t,n,i){this.searchString=e,this.isRegex=t,this.matchCase=n,this.wordSeparators=i}parseSearchRequest(){if(""===this.searchString)return null;let e;e=this.isRegex?function(e){if(!e||0===e.length)return!1;for(let t=0,n=e.length;t<n;t++){if(92===e.charCodeAt(t)){if(++t>=n)break;const i=e.charCodeAt(t);if(110===i||114===i||87===i||119===i)return!0}}return!1}(this.searchString):this.searchString.indexOf("\n")>=0;let t=null;try{t=i.q(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0,unicode:!0})}catch(e){return null}if(!t)return null;let n=!this.isRegex&&!e;return n&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(n=this.matchCase),new d(t,this.wordSeparators?Object(r.a)(this.wordSeparators):null,n?this.searchString:null)}}class d{constructor(e,t,n){this.regex=e,this.wordSeparators=t,this.simpleSearch=n}}function u(e,t,n){if(!n)return new a.b(e,null);let i=[];for(let e=0,n=t.length;e<n;e++)i[e]=t[e];return new a.b(e,i)}class h{constructor(e){let t=[],n=0;for(let i=0,r=e.length;i<r;i++)10===e.charCodeAt(i)&&(t[n++]=i);this._lineFeedsOffsets=t}findLineFeedCountBeforeOffset(e){const t=this._lineFeedsOffsets;let n=0,i=t.length-1;if(-1===i)return 0;if(e<=t[0])return 0;for(;n<i;){const r=n+((i-n)/2>>0);t[r]>=e?i=r-1:t[r+1]>=e?(n=r,i=r):n=r+1}return n+1}}class f{static findMatches(e,t,n,i,r){const o=t.parseSearchRequest();return o?o.regex.multiline?this._doFindMatchesMultiline(e,n,new p(o.wordSeparators,o.regex),i,r):this._doFindMatchesLineByLine(e,n,o,i,r):[]}static _getMultilineMatchRange(e,t,n,i,r,o){let a,l,c=0;if(a=i?t+r+(c=i.findLineFeedCountBeforeOffset(r)):t+r,i){let e=i.findLineFeedCountBeforeOffset(r+o.length)-c;l=a+o.length+e}else l=a+o.length;const d=e.getPositionAt(a),u=e.getPositionAt(l);return new s.a(d.lineNumber,d.column,u.lineNumber,u.column)}static _doFindMatchesMultiline(e,t,n,i,r){const o=e.getOffsetAt(t.getStartPosition()),s=e.getValueInRange(t,1),a="\r\n"===e.getEOL()?new h(s):null,l=[];let c,d=0;for(n.reset(0);c=n.next(s);)if(l[d++]=u(this._getMultilineMatchRange(e,o,s,a,c.index,c[0]),c,i),d>=r)return l;return l}static _doFindMatchesLineByLine(e,t,n,i,r){const o=[];let s=0;if(t.startLineNumber===t.endLineNumber){const a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);return s=this._findMatchesInLine(n,a,t.startLineNumber,t.startColumn-1,s,o,i,r),o}const a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);s=this._findMatchesInLine(n,a,t.startLineNumber,t.startColumn-1,s,o,i,r);for(let a=t.startLineNumber+1;a<t.endLineNumber&&s<r;a++)s=this._findMatchesInLine(n,e.getLineContent(a),a,0,s,o,i,r);if(s<r){const a=e.getLineContent(t.endLineNumber).substring(0,t.endColumn-1);s=this._findMatchesInLine(n,a,t.endLineNumber,0,s,o,i,r)}return o}static _findMatchesInLine(e,t,n,i,r,o,l,c){const d=e.wordSeparators;if(!l&&e.simpleSearch){const l=e.simpleSearch,u=l.length,h=t.length;let f=-u;for(;-1!==(f=t.indexOf(l,f+u));)if((!d||g(d,t,h,f,u))&&(o[r++]=new a.b(new s.a(n,f+1+i,n,f+1+u+i),null),r>=c))return r;return r}const h=new p(e.wordSeparators,e.regex);let f;h.reset(0);do{if((f=h.next(t))&&(o[r++]=u(new s.a(n,f.index+1+i,n,f.index+1+f[0].length+i),f,l),r>=c))return r}while(f);return r}static findNextMatch(e,t,n,i){const r=t.parseSearchRequest();if(!r)return null;const o=new p(r.wordSeparators,r.regex);return r.regex.multiline?this._doFindNextMatchMultiline(e,n,o,i):this._doFindNextMatchLineByLine(e,n,o,i)}static _doFindNextMatchMultiline(e,t,n,i){const r=new o.a(t.lineNumber,1),a=e.getOffsetAt(r),l=e.getLineCount(),c=e.getValueInRange(new s.a(r.lineNumber,r.column,l,e.getLineMaxColumn(l)),1),d="\r\n"===e.getEOL()?new h(c):null;n.reset(t.column-1);let f=n.next(c);return f?u(this._getMultilineMatchRange(e,a,c,d,f.index,f[0]),f,i):1!==t.lineNumber||1!==t.column?this._doFindNextMatchMultiline(e,new o.a(1,1),n,i):null}static _doFindNextMatchLineByLine(e,t,n,i){const r=e.getLineCount(),o=t.lineNumber,s=e.getLineContent(o),a=this._findFirstMatchInLine(n,s,o,t.column,i);if(a)return a;for(let t=1;t<=r;t++){const s=(o+t-1)%r,a=e.getLineContent(s+1),l=this._findFirstMatchInLine(n,a,s+1,1,i);if(l)return l}return null}static _findFirstMatchInLine(e,t,n,i,r){e.reset(i-1);const o=e.next(t);return o?u(new s.a(n,o.index+1,n,o.index+1+o[0].length),o,r):null}static findPreviousMatch(e,t,n,i){const r=t.parseSearchRequest();if(!r)return null;const o=new p(r.wordSeparators,r.regex);return r.regex.multiline?this._doFindPreviousMatchMultiline(e,n,o,i):this._doFindPreviousMatchLineByLine(e,n,o,i)}static _doFindPreviousMatchMultiline(e,t,n,i){const r=this._doFindMatchesMultiline(e,new s.a(1,1,t.lineNumber,t.column),n,i,10*l);if(r.length>0)return r[r.length-1];const a=e.getLineCount();return t.lineNumber!==a||t.column!==e.getLineMaxColumn(a)?this._doFindPreviousMatchMultiline(e,new o.a(a,e.getLineMaxColumn(a)),n,i):null}static _doFindPreviousMatchLineByLine(e,t,n,i){const r=e.getLineCount(),o=t.lineNumber,s=e.getLineContent(o).substring(0,t.column-1),a=this._findLastMatchInLine(n,s,o,i);if(a)return a;for(let t=1;t<=r;t++){const s=(r+o-t-1)%r,a=e.getLineContent(s+1),l=this._findLastMatchInLine(n,a,s+1,i);if(l)return l}return null}static _findLastMatchInLine(e,t,n,i){let r,o=null;for(e.reset(0);r=e.next(t);)o=u(new s.a(n,r.index+1,n,r.index+1+r[0].length),r,i);return o}}function g(e,t,n,i,r){return function(e,t,n,i,r){if(0===i)return!0;const o=t.charCodeAt(i-1);if(0!==e.get(o))return!0;if(13===o||10===o)return!0;if(r>0){const n=t.charCodeAt(i);if(0!==e.get(n))return!0}return!1}(e,t,0,i,r)&&function(e,t,n,i,r){if(i+r===n)return!0;const o=t.charCodeAt(i+r);if(0!==e.get(o))return!0;if(13===o||10===o)return!0;if(r>0){const n=t.charCodeAt(i+r-1);if(0!==e.get(n))return!0}return!1}(e,t,n,i,r)}class p{constructor(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){const t=e.length;let n;do{if(this._prevMatchStartIndex+this._prevMatchLength===t)return null;if(!(n=this._searchRegex.exec(e)))return null;const r=n.index,o=n[0].length;if(r===this._prevMatchStartIndex&&o===this._prevMatchLength){if(0===o){i.A(e,t,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=r,this._prevMatchLength=o,!this._wordSeparators||g(this._wordSeparators,e,t,r,o))return n}while(n);return null}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(17),r=n(139);n.d(t,"b",(function(){return r.a}));const o=Object(i.c)("quickInputService")},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n(17);const r=Object(i.c)("modeService")},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n(11);class r{constructor(e,t){this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t}equals(e){return e instanceof r&&this.slicedEquals(e,0,this._tokensCount)}slicedEquals(e,t,n){if(this._text!==e._text)return!1;if(this._tokensCount!==e._tokensCount)return!1;const i=t<<1,r=i+(n<<1);for(let t=i;t<r;t++)if(this._tokens[t]!==e._tokens[t])return!1;return!0}getLineContent(){return this._text}getCount(){return this._tokensCount}getStartOffset(e){return e>0?this._tokens[e-1<<1]:0}getMetadata(e){return this._tokens[1+(e<<1)]}getLanguageId(e){const t=this._tokens[1+(e<<1)];return i.B.getLanguageId(t)}getStandardTokenType(e){const t=this._tokens[1+(e<<1)];return i.B.getTokenType(t)}getForeground(e){const t=this._tokens[1+(e<<1)];return i.B.getForeground(t)}getClassName(e){const t=this._tokens[1+(e<<1)];return i.B.getClassNameFromMetadata(t)}getInlineStyle(e,t){const n=this._tokens[1+(e<<1)];return i.B.getInlineStyleFromMetadata(n,t)}getEndOffset(e){return this._tokens[e<<1]}findTokenIndexAtOffset(e){return r.findIndexInTokensArray(this._tokens,e)}inflate(){return this}sliceAndInflate(e,t,n){return new o(this,e,t,n)}static convertToEndOffset(e,t){const n=(e.length>>>1)-1;for(let t=0;t<n;t++)e[t<<1]=e[t+1<<1];e[n<<1]=t}static findIndexInTokensArray(e,t){if(e.length<=2)return 0;let n=0,i=(e.length>>>1)-1;for(;n<i;){const r=n+Math.floor((i-n)/2),o=e[r<<1];if(o===t)return r+1;o<t?n=r+1:o>t&&(i=r)}return n}}class o{constructor(e,t,n,i){this._source=e,this._startOffset=t,this._endOffset=n,this._deltaOffset=i,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this._tokensCount=0;for(let t=this._firstTokenIndex,i=e.getCount();t<i;t++){if(e.getStartOffset(t)>=n)break;this._tokensCount++}}equals(e){return e instanceof o&&(this._startOffset===e._startOffset&&this._endOffset===e._endOffset&&this._deltaOffset===e._deltaOffset&&this._source.slicedEquals(e._source,this._firstTokenIndex,this._tokensCount))}getCount(){return this._tokensCount}getForeground(e){return this._source.getForeground(this._firstTokenIndex+e)}getEndOffset(e){const t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset}getClassName(e){return this._source.getClassName(this._firstTokenIndex+e)}getInlineStyle(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)}findTokenIndexAtOffset(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return s}));var i=n(145);function r(e){return!(!e||"function"!=typeof e.getEditorType)&&e.getEditorType()===i.a.ICodeEditor}function o(e){return!(!e||"function"!=typeof e.getEditorType)&&e.getEditorType()===i.a.IDiffEditor}function s(e){return r(e)?e:o(e)?e.getModifiedEditor():null}},function(e,t,n){"use strict";n(347);var i=n(2),r=n(20),o=n(14),s=n(90),a=n(1),l=n(12),c=n(50),d=n(56),u=n(6),h=n(34);class f extends Error{constructor(e,t){super(`ListError [${e}] ${t}`)}}var g=n(177),p=n(13),m=n(37);class _{constructor(e){this.spliceables=e}splice(e,t,n){this.spliceables.forEach(i=>i.splice(e,t,n))}}var b=n(106),v=n(61),y=n(55);n.d(t,"e",(function(){return M})),n.d(t,"f",(function(){return D})),n.d(t,"a",(function(){return T})),n.d(t,"h",(function(){return I})),n.d(t,"g",(function(){return A})),n.d(t,"d",(function(){return P})),n.d(t,"b",(function(){return j})),n.d(t,"c",(function(){return U}));var w,C=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s};class S{constructor(e){this.trait=e,this.renderedElements=[]}get templateId(){return`template:${this.trait.trait}`}renderTemplate(e){return e}renderElement(e,t,n){const i=Object(o.j)(this.renderedElements,e=>e.templateData===n);if(i>=0){const e=this.renderedElements[i];this.trait.unrender(n),e.index=t}else{const e={index:t,templateData:n};this.renderedElements.push(e)}this.trait.renderIndex(t,n)}splice(e,t,n){const i=[];for(const r of this.renderedElements)r.index<e?i.push(r):r.index>=e+t&&i.push({index:r.index+n-t,templateData:r.templateData});this.renderedElements=i}renderIndexes(e){for(const{index:t,templateData:n}of this.renderedElements)e.indexOf(t)>-1&&this.trait.renderIndex(t,n)}disposeTemplate(e){const t=Object(o.j)(this.renderedElements,t=>t.templateData===e);t<0||this.renderedElements.splice(t,1)}}class k{constructor(e){this._trait=e,this.indexes=[],this.sortedIndexes=[],this._onChange=new u.a,this.onChange=this._onChange.event}get trait(){return this._trait}get renderer(){return new S(this)}splice(e,t,n){const i=n.length-t,r=e+t,o=[...this.sortedIndexes.filter(t=>t<e),...n.map((t,n)=>t?n+e:-1).filter(e=>-1!==e),...this.sortedIndexes.filter(e=>e>=r).map(e=>e+i)];this.renderer.splice(e,t,n.length),this._set(o,o)}renderIndex(e,t){a.ab(t,this._trait,this.contains(e))}unrender(e){a.Q(e,this._trait)}set(e,t){return this._set(e,[...e].sort(H),t)}_set(e,t,n){const i=this.indexes,r=this.sortedIndexes;this.indexes=e,this.sortedIndexes=t;const o=W(r,e);return this.renderer.renderIndexes(o),this._onChange.fire({indexes:e,browserEvent:n}),i}get(){return this.indexes}contains(e){return Object(o.c)(this.sortedIndexes,e,H)>=0}dispose(){Object(i.f)(this._onChange)}}C([s.a],k.prototype,"renderer",null);class x extends k{constructor(e){super("selected"),this.setAriaSelected=e}renderIndex(e,t){super.renderIndex(e,t),this.setAriaSelected&&(this.contains(e)?t.setAttribute("aria-selected","true"):t.setAttribute("aria-selected","false"))}}class L{constructor(e,t,n){this.trait=e,this.view=t,this.identityProvider=n}splice(e,t,n){if(!this.identityProvider)return this.trait.splice(e,t,n.map(()=>!1));const i=this.trait.get().map(e=>this.identityProvider.getId(this.view.element(e)).toString()),r=n.map(e=>i.indexOf(this.identityProvider.getId(e).toString())>-1);this.trait.splice(e,t,r)}}function M(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName}function D(e){return!!a.I(e,"monaco-editor")||!a.I(e,"monaco-list")&&(!!e.parentElement&&D(e.parentElement))}class E{constructor(e,t,n){this.list=e,this.view=t,this.disposables=new i.b;const r=!1!==n.multipleSelectionSupport,o=u.b.chain(Object(h.a)(t.domNode,"keydown")).filter(e=>!M(e.target)).map(e=>new d.a(e));o.filter(e=>3===e.keyCode).on(this.onEnter,this,this.disposables),o.filter(e=>16===e.keyCode).on(this.onUpArrow,this,this.disposables),o.filter(e=>18===e.keyCode).on(this.onDownArrow,this,this.disposables),o.filter(e=>11===e.keyCode).on(this.onPageUpArrow,this,this.disposables),o.filter(e=>12===e.keyCode).on(this.onPageDownArrow,this,this.disposables),o.filter(e=>9===e.keyCode).on(this.onEscape,this,this.disposables),r&&o.filter(e=>(l.f?e.metaKey:e.ctrlKey)&&31===e.keyCode).on(this.onCtrlA,this,this.disposables)}onEnter(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(this.list.getFocus(),e.browserEvent)}onUpArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusPrevious(1,!1,e.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()}onDownArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusNext(1,!1,e.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()}onPageUpArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusPreviousPage(e.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()}onPageDownArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusNextPage(e.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()}onCtrlA(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(Object(o.s)(this.list.length),e.browserEvent),this.view.domNode.focus()}onEscape(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection([],e.browserEvent),this.view.domNode.focus()}dispose(){this.disposables.dispose()}}!function(e){e[e.Idle=0]="Idle",e[e.Typing=1]="Typing"}(w||(w={}));const T=new class{mightProducePrintableCharacter(e){return!(e.ctrlKey||e.metaKey||e.altKey)&&(e.keyCode>=31&&e.keyCode<=56||e.keyCode>=21&&e.keyCode<=30||e.keyCode>=93&&e.keyCode<=102||e.keyCode>=80&&e.keyCode<=90)}};class O{constructor(e,t,n,r){this.list=e,this.view=t,this.keyboardNavigationLabelProvider=n,this.delegate=r,this.enabled=!1,this.state=w.Idle,this.automaticKeyboardNavigation=!0,this.triggered=!1,this.previouslyFocused=-1,this.enabledDisposables=new i.b,this.disposables=new i.b,this.updateOptions(e.options)}updateOptions(e){void 0===e.enableKeyboardNavigation||!!e.enableKeyboardNavigation?this.enable():this.disable(),void 0!==e.automaticKeyboardNavigation&&(this.automaticKeyboardNavigation=e.automaticKeyboardNavigation)}enable(){if(this.enabled)return;const e=u.b.chain(Object(h.a)(this.view.domNode,"keydown")).filter(e=>!M(e.target)).filter(()=>this.automaticKeyboardNavigation||this.triggered).map(e=>new d.a(e)).filter(e=>this.delegate.mightProducePrintableCharacter(e)).forEach(e=>{e.stopPropagation(),e.preventDefault()}).map(e=>e.browserEvent.key).event,t=u.b.debounce(e,()=>null,800);u.b.reduce(u.b.any(e,t),(e,t)=>null===t?null:(e||"")+t)(this.onInput,this,this.enabledDisposables),t(this.onClear,this,this.enabledDisposables),this.enabled=!0,this.triggered=!1}disable(){this.enabled&&(this.enabledDisposables.clear(),this.enabled=!1,this.triggered=!1)}onClear(){var e;const t=this.list.getFocus();if(t.length>0&&t[0]===this.previouslyFocused){const n=null===(e=this.list.options.accessibilityProvider)||void 0===e?void 0:e.getAriaLabel(this.list.element(t[0]));n&&Object(y.a)(n)}this.previouslyFocused=-1}onInput(e){if(!e)return this.state=w.Idle,void(this.triggered=!1);const t=this.list.getFocus(),n=t.length>0?t[0]:0,i=this.state===w.Idle?1:0;this.state=w.Typing;for(let t=0;t<this.list.length;t++){const r=(n+t+i)%this.list.length,o=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(this.view.element(r)),s=o&&o.toString();if(void 0===s||Object(v.h)(e,s))return this.previouslyFocused=n,this.list.setFocus([r]),void this.list.reveal(r)}}dispose(){this.disable(),this.enabledDisposables.dispose(),this.disposables.dispose()}}class N{constructor(e,t){this.list=e,this.view=t,this.disposables=new i.b,u.b.chain(Object(h.a)(t.domNode,"keydown")).filter(e=>!M(e.target)).map(e=>new d.a(e)).filter(e=>!(2!==e.keyCode||e.ctrlKey||e.metaKey||e.shiftKey||e.altKey)).on(this.onTab,this,this.disposables)}onTab(e){if(e.target!==this.view.domNode)return;const t=this.list.getFocus();if(0===t.length)return;const n=this.view.domElement(t[0]);if(!n)return;const i=n.querySelector("[tabIndex]");if(!(i&&i instanceof HTMLElement&&-1!==i.tabIndex))return;const r=window.getComputedStyle(i);"hidden"!==r.visibility&&"none"!==r.display&&(e.preventDefault(),e.stopPropagation(),i.focus())}dispose(){this.disposables.dispose()}}function I(e){return l.f?e.browserEvent.metaKey:e.browserEvent.ctrlKey}function A(e){return e.browserEvent.shiftKey}const R={isSelectionSingleChangeEvent:I,isSelectionRangeChangeEvent:A};class P{constructor(e){this.list=e,this.disposables=new i.b,this._onPointer=new u.a,this.onPointer=this._onPointer.event,this.multipleSelectionSupport=!(!1===e.options.multipleSelectionSupport),this.multipleSelectionSupport&&(this.multipleSelectionController=e.options.multipleSelectionController||R),this.mouseSupport=void 0===e.options.mouseSupport||!!e.options.mouseSupport,this.mouseSupport&&(e.onMouseDown(this.onMouseDown,this,this.disposables),e.onContextMenu(this.onContextMenu,this,this.disposables),e.onMouseDblClick(this.onDoubleClick,this,this.disposables),e.onTouchStart(this.onMouseDown,this,this.disposables),this.disposables.add(c.b.addTarget(e.getHTMLElement()))),u.b.any(e.onMouseClick,e.onMouseMiddleClick,e.onTap)(this.onViewPointer,this,this.disposables)}isSelectionSingleChangeEvent(e){return this.multipleSelectionController?this.multipleSelectionController.isSelectionSingleChangeEvent(e):l.f?e.browserEvent.metaKey:e.browserEvent.ctrlKey}isSelectionRangeChangeEvent(e){return this.multipleSelectionController?this.multipleSelectionController.isSelectionRangeChangeEvent(e):e.browserEvent.shiftKey}isSelectionChangeEvent(e){return this.isSelectionSingleChangeEvent(e)||this.isSelectionRangeChangeEvent(e)}onMouseDown(e){D(e.browserEvent.target)||document.activeElement!==e.browserEvent.target&&this.list.domFocus()}onContextMenu(e){if(D(e.browserEvent.target))return;const t=void 0===e.index?[]:[e.index];this.list.setFocus(t,e.browserEvent)}onViewPointer(e){if(!this.mouseSupport)return;if(M(e.browserEvent.target)||D(e.browserEvent.target))return;let t=this.list.getFocus()[0];const n=this.list.getSelection();t=void 0===t?n[0]:t;const i=e.index;return void 0===i?(this.list.setFocus([],e.browserEvent),void this.list.setSelection([],e.browserEvent)):this.multipleSelectionSupport&&this.isSelectionRangeChangeEvent(e)?this.changeSelection(e,t):this.multipleSelectionSupport&&this.isSelectionChangeEvent(e)?this.changeSelection(e,t):(this.list.setFocus([i],e.browserEvent),(r=e.browserEvent)instanceof MouseEvent&&2===r.button||this.list.setSelection([i],e.browserEvent),void this._onPointer.fire(e));var r}onDoubleClick(e){if(M(e.browserEvent.target)||D(e.browserEvent.target))return;if(this.multipleSelectionSupport&&this.isSelectionChangeEvent(e))return;const t=this.list.getFocus();this.list.setSelection(t,e.browserEvent)}changeSelection(e,t){const n=e.index;if(this.isSelectionRangeChangeEvent(e)&&void 0!==t){const i=Math.min(t,n),r=Math.max(t,n),s=Object(o.s)(i,r+1),a=this.list.getSelection(),l=function(e,t){const n=e.indexOf(t);if(-1===n)return[];const i=[];let r=n-1;for(;r>=0&&e[r]===t-(n-r);)i.push(e[r--]);i.reverse(),r=n;for(;r<e.length&&e[r]===t+(r-n);)i.push(e[r++]);return i}(W(a,[t]),t);if(0===l.length)return;const c=W(s,function(e,t){const n=[];let i=0,r=0;for(;i<e.length||r<t.length;)if(i>=e.length)n.push(t[r++]);else if(r>=t.length)n.push(e[i++]);else{if(e[i]===t[r]){i++,r++;continue}e[i]<t[r]?n.push(e[i++]):r++}return n}(a,l));this.list.setSelection(c,e.browserEvent)}else if(this.isSelectionSingleChangeEvent(e)){const t=this.list.getSelection(),i=t.filter(e=>e!==n);this.list.setFocus([n]),t.length===i.length?this.list.setSelection([...i,n],e.browserEvent):this.list.setSelection(i,e.browserEvent)}}dispose(){this.disposables.dispose()}}class j{constructor(e,t){this.styleElement=e,this.selectorSuffix=t}style(e){const t=this.selectorSuffix&&`.${this.selectorSuffix}`,n=[];e.listBackground&&(e.listBackground.isOpaque()?n.push(`.monaco-list${t} .monaco-list-rows { background: ${e.listBackground}; }`):l.f||console.warn(`List with id '${this.selectorSuffix}' was styled with a non-opaque background color. This will break sub-pixel antialiasing.`)),e.listFocusBackground&&(n.push(`.monaco-list${t}:focus .monaco-list-row.focused { background-color: ${e.listFocusBackground}; }`),n.push(`.monaco-list${t}:focus .monaco-list-row.focused:hover { background-color: ${e.listFocusBackground}; }`)),e.listFocusForeground&&n.push(`.monaco-list${t}:focus .monaco-list-row.focused { color: ${e.listFocusForeground}; }`),e.listActiveSelectionBackground&&(n.push(`.monaco-list${t}:focus .monaco-list-row.selected { background-color: ${e.listActiveSelectionBackground}; }`),n.push(`.monaco-list${t}:focus .monaco-list-row.selected:hover { background-color: ${e.listActiveSelectionBackground}; }`)),e.listActiveSelectionForeground&&n.push(`.monaco-list${t}:focus .monaco-list-row.selected { color: ${e.listActiveSelectionForeground}; }`),e.listFocusAndSelectionBackground&&n.push(`\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list${t}:focus .monaco-list-row.selected.focused { background-color: ${e.listFocusAndSelectionBackground}; }\n\t\t\t`),e.listFocusAndSelectionForeground&&n.push(`\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list${t}:focus .monaco-list-row.selected.focused { color: ${e.listFocusAndSelectionForeground}; }\n\t\t\t`),e.listInactiveFocusBackground&&(n.push(`.monaco-list${t} .monaco-list-row.focused { background-color: ${e.listInactiveFocusBackground}; }`),n.push(`.monaco-list${t} .monaco-list-row.focused:hover { background-color: ${e.listInactiveFocusBackground}; }`)),e.listInactiveSelectionBackground&&(n.push(`.monaco-list${t} .monaco-list-row.selected { background-color: ${e.listInactiveSelectionBackground}; }`),n.push(`.monaco-list${t} .monaco-list-row.selected:hover { background-color: ${e.listInactiveSelectionBackground}; }`)),e.listInactiveSelectionForeground&&n.push(`.monaco-list${t} .monaco-list-row.selected { color: ${e.listInactiveSelectionForeground}; }`),e.listHoverBackground&&n.push(`.monaco-list${t}:not(.drop-target) .monaco-list-row:hover:not(.selected):not(.focused) { background-color: ${e.listHoverBackground}; }`),e.listHoverForeground&&n.push(`.monaco-list${t} .monaco-list-row:hover:not(.selected):not(.focused) { color: ${e.listHoverForeground}; }`),e.listSelectionOutline&&n.push(`.monaco-list${t} .monaco-list-row.selected { outline: 1px dotted ${e.listSelectionOutline}; outline-offset: -1px; }`),e.listFocusOutline&&n.push(`\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list${t}:focus .monaco-list-row.focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; }\n\t\t\t`),e.listInactiveFocusOutline&&n.push(`.monaco-list${t} .monaco-list-row.focused { outline: 1px dotted ${e.listInactiveFocusOutline}; outline-offset: -1px; }`),e.listHoverOutline&&n.push(`.monaco-list${t} .monaco-list-row:hover { outline: 1px dashed ${e.listHoverOutline}; outline-offset: -1px; }`),e.listDropBackground&&n.push(`\n\t\t\t\t.monaco-list${t}.drop-target,\n\t\t\t\t.monaco-list${t} .monaco-list-rows.drop-target,\n\t\t\t\t.monaco-list${t} .monaco-list-row.drop-target { background-color: ${e.listDropBackground} !important; color: inherit !important; }\n\t\t\t`),e.listFilterWidgetBackground&&n.push(`.monaco-list-type-filter { background-color: ${e.listFilterWidgetBackground} }`),e.listFilterWidgetOutline&&n.push(`.monaco-list-type-filter { border: 1px solid ${e.listFilterWidgetOutline}; }`),e.listFilterWidgetNoMatchesOutline&&n.push(`.monaco-list-type-filter.no-matches { border: 1px solid ${e.listFilterWidgetNoMatchesOutline}; }`),e.listMatchesShadow&&n.push(`.monaco-list-type-filter { box-shadow: 1px 1px 1px ${e.listMatchesShadow}; }`);const i=n.join("\n");i!==this.styleElement.innerHTML&&(this.styleElement.innerHTML=i)}}const F={listFocusBackground:p.a.fromHex("#7FB0D0"),listActiveSelectionBackground:p.a.fromHex("#0E639C"),listActiveSelectionForeground:p.a.fromHex("#FFFFFF"),listFocusAndSelectionBackground:p.a.fromHex("#094771"),listFocusAndSelectionForeground:p.a.fromHex("#FFFFFF"),listInactiveSelectionBackground:p.a.fromHex("#3F3F46"),listHoverBackground:p.a.fromHex("#2A2D2E"),listDropBackground:p.a.fromHex("#383B3D"),treeIndentGuidesStroke:p.a.fromHex("#a9a9a9")},B={keyboardSupport:!0,mouseSupport:!0,multipleSelectionSupport:!0,dnd:{getDragURI:()=>null,onDragStart(){},onDragOver:()=>!1,drop(){}}};function W(e,t){const n=[];let i=0,r=0;for(;i<e.length||r<t.length;)if(i>=e.length)n.push(t[r++]);else if(r>=t.length)n.push(e[i++]);else{if(e[i]===t[r]){n.push(e[i]),i++,r++;continue}e[i]<t[r]?n.push(e[i++]):n.push(t[r++])}return n}const H=(e,t)=>e-t;class Y{constructor(e,t){this._templateId=e,this.renderers=t}get templateId(){return this._templateId}renderTemplate(e){return this.renderers.map(t=>t.renderTemplate(e))}renderElement(e,t,n,i){let r=0;for(const o of this.renderers)o.renderElement(e,t,n[r++],i)}disposeElement(e,t,n,i){let r=0;for(const o of this.renderers)o.disposeElement&&o.disposeElement(e,t,n[r],i),r+=1}disposeTemplate(e){let t=0;for(const n of this.renderers)n.disposeTemplate(e[t++])}}class V{constructor(e){this.accessibilityProvider=e,this.templateId="a18n"}renderTemplate(e){return e}renderElement(e,t,n){const i=this.accessibilityProvider.getAriaLabel(e);i?n.setAttribute("aria-label",i):n.removeAttribute("aria-label");const r=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(e);"number"==typeof r?n.setAttribute("aria-level",`${r}`):n.removeAttribute("aria-level")}disposeTemplate(e){}}class z{constructor(e,t){this.list=e,this.dnd=t}getDragElements(e){const t=this.list.getSelectedElements();return t.indexOf(e)>-1?t:[e]}getDragURI(e){return this.dnd.getDragURI(e)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e,t)}onDragStart(e,t){this.dnd.onDragStart&&this.dnd.onDragStart(e,t)}onDragOver(e,t,n,i){return this.dnd.onDragOver(e,t,n,i)}onDragEnd(e){this.dnd.onDragEnd&&this.dnd.onDragEnd(e)}drop(e,t,n,i){this.dnd.drop(e,t,n,i)}}class U{constructor(e,t,n,r,o=B){var s;this.user=e,this._options=o,this.eventBufferer=new u.c,this._ariaLabel="",this.disposables=new i.b,this.didJustPressContextMenuKey=!1,this._onDidDispose=new u.a,this.onDidDispose=this._onDidDispose.event;const l=this._options.accessibilityProvider&&this._options.accessibilityProvider.getWidgetRole?null===(s=this._options.accessibilityProvider)||void 0===s?void 0:s.getWidgetRole():"list";this.selection=new x("listbox"!==l),this.focus=new k("focused"),Object(m.g)(o,F,!1);const c=[this.focus.renderer,this.selection.renderer];this.accessibilityProvider=o.accessibilityProvider,this.accessibilityProvider&&(c.push(new V(this.accessibilityProvider)),this.accessibilityProvider.onDidChangeActiveDescendant&&this.accessibilityProvider.onDidChangeActiveDescendant(this.onDidChangeActiveDescendant,this,this.disposables)),r=r.map(e=>new Y(e.templateId,[...c,e]));const d=Object.assign(Object.assign({},o),{dnd:o.dnd&&new z(this,o.dnd)});if(this.view=new g.b(t,n,r,d),this.view.domNode.setAttribute("role",l),o.styleController)this.styleController=o.styleController(this.view.domId);else{const e=a.v(this.view.domNode);this.styleController=new j(e,this.view.domId)}if(this.spliceable=new _([new L(this.focus,this.view,o.identityProvider),new L(this.selection,this.view,o.identityProvider),this.view]),this.disposables.add(this.focus),this.disposables.add(this.selection),this.disposables.add(this.view),this.disposables.add(this._onDidDispose),this.onDidFocus=u.b.map(Object(h.a)(this.view.domNode,"focus",!0),()=>null),this.onDidBlur=u.b.map(Object(h.a)(this.view.domNode,"blur",!0),()=>null),this.disposables.add(new N(this,this.view)),"boolean"!=typeof o.keyboardSupport||o.keyboardSupport){const e=new E(this,this.view,o);this.disposables.add(e)}if(o.keyboardNavigationLabelProvider){const e=o.keyboardNavigationDelegate||T;this.typeLabelController=new O(this,this.view,o.keyboardNavigationLabelProvider,e),this.disposables.add(this.typeLabelController)}this.mouseController=this.createMouseController(o),this.disposables.add(this.mouseController),this.onDidChangeFocus(this._onFocusChange,this,this.disposables),this.onDidChangeSelection(this._onSelectionChange,this,this.disposables),this.accessibilityProvider&&(this.ariaLabel=this.accessibilityProvider.getWidgetAriaLabel()),o.multipleSelectionSupport&&this.view.domNode.setAttribute("aria-multiselectable","true")}get onDidChangeFocus(){return u.b.map(this.eventBufferer.wrapEvent(this.focus.onChange),e=>this.toListEvent(e))}get onDidChangeSelection(){return u.b.map(this.eventBufferer.wrapEvent(this.selection.onChange),e=>this.toListEvent(e))}get domId(){return this.view.domId}get onMouseClick(){return this.view.onMouseClick}get onMouseDblClick(){return this.view.onMouseDblClick}get onMouseMiddleClick(){return this.view.onMouseMiddleClick}get onPointer(){return this.mouseController.onPointer}get onMouseDown(){return this.view.onMouseDown}get onTouchStart(){return this.view.onTouchStart}get onTap(){return this.view.onTap}get onContextMenu(){const e=u.b.chain(Object(h.a)(this.view.domNode,"keydown")).map(e=>new d.a(e)).filter(e=>this.didJustPressContextMenuKey=58===e.keyCode||e.shiftKey&&68===e.keyCode).filter(e=>(e.preventDefault(),e.stopPropagation(),!1)).event,t=u.b.chain(Object(h.a)(this.view.domNode,"keyup")).filter(()=>{const e=this.didJustPressContextMenuKey;return this.didJustPressContextMenuKey=!1,e}).filter(()=>this.getFocus().length>0&&!!this.view.domElement(this.getFocus()[0])).map(e=>{const t=this.getFocus()[0];return{index:t,element:this.view.element(t),anchor:this.view.domElement(t),browserEvent:e}}).event,n=u.b.chain(this.view.onContextMenu).filter(()=>!this.didJustPressContextMenuKey).map(({element:e,index:t,browserEvent:n})=>({element:e,index:t,anchor:{x:n.clientX+1,y:n.clientY},browserEvent:n})).event;return u.b.any(e,t,n)}get onKeyDown(){return Object(h.a)(this.view.domNode,"keydown")}createMouseController(e){return new P(this)}updateOptions(e={}){this._options=Object.assign(Object.assign({},this._options),e),this.typeLabelController&&this.typeLabelController.updateOptions(this._options),this.view.updateOptions(e)}get options(){return this._options}splice(e,t,n=[]){if(e<0||e>this.view.length)throw new f(this.user,`Invalid start index: ${e}`);if(t<0)throw new f(this.user,`Invalid delete count: ${t}`);0===t&&0===n.length||this.eventBufferer.bufferEvents(()=>this.spliceable.splice(e,t,n))}rerender(){this.view.rerender()}element(e){return this.view.element(e)}get length(){return this.view.length}get contentHeight(){return this.view.contentHeight}get scrollTop(){return this.view.getScrollTop()}set scrollTop(e){this.view.setScrollTop(e)}get ariaLabel(){return this._ariaLabel}set ariaLabel(e){this._ariaLabel=e,this.view.domNode.setAttribute("aria-label",e)}domFocus(){this.view.domNode.focus()}layout(e,t){this.view.layout(e,t)}setSelection(e,t){for(const t of e)if(t<0||t>=this.length)throw new f(this.user,`Invalid index ${t}`);this.selection.set(e,t)}getSelection(){return this.selection.get()}getSelectedElements(){return this.getSelection().map(e=>this.view.element(e))}setFocus(e,t){for(const t of e)if(t<0||t>=this.length)throw new f(this.user,`Invalid index ${t}`);this.focus.set(e,t)}focusNext(e=1,t=!1,n,i){if(0===this.length)return;const r=this.focus.get(),o=this.findNextIndex(r.length>0?r[0]+e:0,t,i);o>-1&&this.setFocus([o],n)}focusPrevious(e=1,t=!1,n,i){if(0===this.length)return;const r=this.focus.get(),o=this.findPreviousIndex(r.length>0?r[0]-e:0,t,i);o>-1&&this.setFocus([o],n)}focusNextPage(e,t){let n=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight);n=0===n?0:n-1;const i=this.view.element(n),r=this.getFocusedElements()[0];if(r!==i){const i=this.findPreviousIndex(n,!1,t);i>-1&&r!==this.view.element(i)?this.setFocus([i],e):this.setFocus([n],e)}else{const i=this.view.getScrollTop();this.view.setScrollTop(i+this.view.renderHeight-this.view.elementHeight(n)),this.view.getScrollTop()!==i&&setTimeout(()=>this.focusNextPage(e,t),0)}}focusPreviousPage(e,t){let n;const i=this.view.getScrollTop();n=0===i?this.view.indexAt(i):this.view.indexAfter(i-1);const r=this.view.element(n),o=this.getFocusedElements()[0];if(o!==r){const i=this.findNextIndex(n,!1,t);i>-1&&o!==this.view.element(i)?this.setFocus([i],e):this.setFocus([n],e)}else{const n=i;this.view.setScrollTop(i-this.view.renderHeight),this.view.getScrollTop()!==n&&setTimeout(()=>this.focusPreviousPage(e,t),0)}}focusLast(e,t){if(0===this.length)return;const n=this.findPreviousIndex(this.length-1,!1,t);n>-1&&this.setFocus([n],e)}focusFirst(e,t){this.focusNth(0,e,t)}focusNth(e,t,n){if(0===this.length)return;const i=this.findNextIndex(e,!1,n);i>-1&&this.setFocus([i],t)}findNextIndex(e,t=!1,n){for(let i=0;i<this.length;i++){if(e>=this.length&&!t)return-1;if(e%=this.length,!n||n(this.element(e)))return e;e++}return-1}findPreviousIndex(e,t=!1,n){for(let i=0;i<this.length;i++){if(e<0&&!t)return-1;if(e=(this.length+e%this.length)%this.length,!n||n(this.element(e)))return e;e--}return-1}getFocus(){return this.focus.get()}getFocusedElements(){return this.getFocus().map(e=>this.view.element(e))}reveal(e,t){if(e<0||e>=this.length)throw new f(this.user,`Invalid index ${e}`);const n=this.view.getScrollTop(),i=this.view.elementTop(e),o=this.view.elementHeight(e);if(Object(r.h)(t)){const e=o-this.view.renderHeight;this.view.setScrollTop(e*Object(b.b)(t,0,1)+i)}else{const e=i+o,t=n+this.view.renderHeight;i<n&&e>=t||(i<n?this.view.setScrollTop(i):e>=t&&this.view.setScrollTop(e-this.view.renderHeight))}}getRelativeTop(e){if(e<0||e>=this.length)throw new f(this.user,`Invalid index ${e}`);const t=this.view.getScrollTop(),n=this.view.elementTop(e),i=this.view.elementHeight(e);if(n<t||n+i>t+this.view.renderHeight)return null;const r=i-this.view.renderHeight;return Math.abs((t-n)/r)}getHTMLElement(){return this.view.domNode}style(e){this.styleController.style(e)}toListEvent({indexes:e,browserEvent:t}){return{indexes:e,elements:e.map(e=>this.view.element(e)),browserEvent:t}}_onFocusChange(){const e=this.focus.get();a.ab(this.view.domNode,"element-focused",e.length>0),this.onDidChangeActiveDescendant()}onDidChangeActiveDescendant(){var e;const t=this.focus.get();if(t.length>0){let n;(null===(e=this.accessibilityProvider)||void 0===e?void 0:e.getActiveDescendantId)&&(n=this.accessibilityProvider.getActiveDescendantId(this.view.element(t[0]))),this.view.domNode.setAttribute("aria-activedescendant",n||this.view.getElementDomId(t[0]))}else this.view.domNode.removeAttribute("aria-activedescendant")}_onSelectionChange(){const e=this.selection.get();a.ab(this.view.domNode,"selection-none",0===e.length),a.ab(this.view.domNode,"selection-single",1===e.length),a.ab(this.view.domNode,"selection-multiple",e.length>1)}dispose(){this._onDidDispose.fire(),this.disposables.dispose(),this._onDidDispose.dispose()}}C([s.a],U.prototype,"onDidChangeFocus",null),C([s.a],U.prototype,"onDidChangeSelection",null),C([s.a],U.prototype,"onContextMenu",null)},function(e,t,n){"use strict";function i(e,t){let n=e.getCount(),i=e.findTokenIndexAtOffset(t),o=e.getLanguageId(i),s=i;for(;s+1<n&&e.getLanguageId(s+1)===o;)s++;let a=i;for(;a>0&&e.getLanguageId(a-1)===o;)a--;return new r(e,o,a,s+1,e.getStartOffset(a),e.getEndOffset(s))}n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));class r{constructor(e,t,n,i,r,o){this._actual=e,this.languageId=t,this._firstTokenIndex=n,this._lastTokenIndex=i,this.firstCharOffset=r,this._lastCharOffset=o}getLineContent(){return this._actual.getLineContent().substring(this.firstCharOffset,this._lastCharOffset)}getActualLineContentBefore(e){return this._actual.getLineContent().substring(0,this.firstCharOffset+e)}getTokenCount(){return this._lastTokenIndex-this._firstTokenIndex}findTokenIndexAtOffset(e){return this._actual.findTokenIndexAtOffset(e+this.firstCharOffset)-this._firstTokenIndex}getStandardTokenType(e){return this._actual.getStandardTokenType(e+this._firstTokenIndex)}}function o(e){return 0!=(7&e)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return s}));var i=n(178);const r=[];function o(e,t,n){r.push([e,new i.a(t,[],n)])}function s(){return r}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));n(344);var i=n(2),r=n(49),o=n(1),s=n(20),a=n(56),l=n(6),c=n(112);class d extends i.a{constructor(e,t={}){var n,i,s;let c,d;switch(super(),this._onDidBlur=this._register(new l.a),this.onDidBlur=this._onDidBlur.event,this._onDidCancel=this._register(new l.a),this.onDidCancel=this._onDidCancel.event,this._onDidRun=this._register(new l.a),this.onDidRun=this._onDidRun.event,this._onDidBeforeRun=this._register(new l.a),this.onDidBeforeRun=this._onDidBeforeRun.event,this.options=t,this._context=null!==(n=t.context)&&void 0!==n?n:null,this._orientation=null!==(i=this.options.orientation)&&void 0!==i?i:0,this._triggerKeys=null!==(s=this.options.triggerKeys)&&void 0!==s?s:{keys:[3,10],keyDown:!1},this.options.actionRunner?this._actionRunner=this.options.actionRunner:(this._actionRunner=new r.b,this._register(this._actionRunner)),this._register(this._actionRunner.onDidRun(e=>this._onDidRun.fire(e))),this._register(this._actionRunner.onDidBeforeRun(e=>this._onDidBeforeRun.fire(e))),this.viewItems=[],this.focusedItem=void 0,this.domNode=document.createElement("div"),this.domNode.className="monaco-action-bar",!1!==t.animated&&o.e(this.domNode,"animated"),this._orientation){case 0:c=15,d=17;break;case 1:c=17,d=15,this.domNode.className+=" reverse";break;case 2:c=16,d=18,this.domNode.className+=" vertical";break;case 3:c=18,d=16,this.domNode.className+=" vertical reverse"}this._register(o.i(this.domNode,o.c.KEY_DOWN,e=>{const t=new a.a(e);let n=!0;t.equals(c)?n=this.focusPrevious():t.equals(d)?n=this.focusNext():t.equals(9)?this._onDidCancel.fire():this.isTriggerKeyEvent(t)?this._triggerKeys.keyDown&&this.doTrigger(t):n=!1,n&&(t.preventDefault(),t.stopPropagation())})),this._register(o.i(this.domNode,o.c.KEY_UP,e=>{const t=new a.a(e);this.isTriggerKeyEvent(t)?(this._triggerKeys.keyDown||this.doTrigger(t),t.preventDefault(),t.stopPropagation()):(t.equals(2)||t.equals(1026))&&this.updateFocusedItem()})),this.focusTracker=this._register(o.bb(this.domNode)),this._register(this.focusTracker.onDidBlur(()=>{o.x()!==this.domNode&&o.L(o.x(),this.domNode)||(this._onDidBlur.fire(),this.focusedItem=void 0)})),this._register(this.focusTracker.onDidFocus(()=>this.updateFocusedItem())),this.actionsList=document.createElement("ul"),this.actionsList.className="actions-container",this.actionsList.setAttribute("role","toolbar"),this.options.ariaLabel&&this.actionsList.setAttribute("aria-label",this.options.ariaLabel),this.domNode.appendChild(this.actionsList),e.appendChild(this.domNode)}isTriggerKeyEvent(e){let t=!1;return this._triggerKeys.keys.forEach(n=>{t=t||e.equals(n)}),t}updateFocusedItem(){for(let e=0;e<this.actionsList.children.length;e++){const t=this.actionsList.children[e];if(o.L(o.x(),t)){this.focusedItem=e;break}}}get context(){return this._context}set context(e){this._context=e,this.viewItems.forEach(t=>t.setActionContext(e))}get actionRunner(){return this._actionRunner}set actionRunner(e){e&&(this._actionRunner=e,this.viewItems.forEach(t=>t.actionRunner=e))}getContainer(){return this.domNode}push(e,t={}){const n=Array.isArray(e)?e:[e];let i=s.h(t.index)?t.index:null;n.forEach(e=>{const n=document.createElement("li");let r;n.className="action-item",n.setAttribute("role","presentation"),this.options.allowContextMenu||this._register(o.i(n,o.c.CONTEXT_MENU,e=>{o.b.stop(e,!0)})),this.options.actionViewItemProvider&&(r=this.options.actionViewItemProvider(e)),r||(r=new c.a(this.context,e,t)),r.actionRunner=this._actionRunner,r.setActionContext(this.context),r.render(n),null===i||i<0||i>=this.actionsList.children.length?(this.actionsList.appendChild(n),this.viewItems.push(r)):(this.actionsList.insertBefore(n,this.actionsList.children[i]),this.viewItems.splice(i,0,r),i++)}),this.focusedItem&&this.focus(this.focusedItem)}clear(){Object(i.f)(this.viewItems),this.viewItems=[],o.s(this.actionsList)}focus(e){let t=!1,n=void 0;void 0===e?t=!0:"number"==typeof e?n=e:"boolean"==typeof e&&(t=e),t&&void 0===this.focusedItem?(this.focusedItem=-1,this.focusNext()):(void 0!==n&&(this.focusedItem=n),this.updateFocus())}focusNext(){void 0===this.focusedItem&&(this.focusedItem=this.viewItems.length-1);const e=this.focusedItem;let t;do{if(this.options.preventLoopNavigation&&this.focusedItem+1>=this.viewItems.length)return this.focusedItem=e,!1;this.focusedItem=(this.focusedItem+1)%this.viewItems.length,t=this.viewItems[this.focusedItem]}while(this.focusedItem!==e&&!t.isEnabled());return this.focusedItem!==e||t.isEnabled()||(this.focusedItem=void 0),this.updateFocus(),!0}focusPrevious(){void 0===this.focusedItem&&(this.focusedItem=0);const e=this.focusedItem;let t;do{if(this.focusedItem=this.focusedItem-1,this.focusedItem<0){if(this.options.preventLoopNavigation)return this.focusedItem=e,!1;this.focusedItem=this.viewItems.length-1}t=this.viewItems[this.focusedItem]}while(this.focusedItem!==e&&!t.isEnabled());return this.focusedItem!==e||t.isEnabled()||(this.focusedItem=void 0),this.updateFocus(!0),!0}updateFocus(e,t){void 0===this.focusedItem&&this.actionsList.focus({preventScroll:t});for(let n=0;n<this.viewItems.length;n++){const i=this.viewItems[n];n===this.focusedItem?s.g(i.isEnabled)&&(i.isEnabled()&&s.g(i.focus)?i.focus(e):this.actionsList.focus({preventScroll:t})):s.g(i.blur)&&i.blur()}}doTrigger(e){if(void 0===this.focusedItem)return;const t=this.viewItems[this.focusedItem];if(t instanceof c.b){const n=null===t._context||void 0===t._context?e:t._context;this.run(t._action,n)}}run(e,t){return this._actionRunner.run(e,t)}dispose(){Object(i.f)(this.viewItems),this.viewItems=[],o.S(this.getContainer()),super.dispose()}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(111);class r extends i.a{constructor(e){super(0);for(let t=0,n=e.length;t<n;t++)this.set(e.charCodeAt(t),2);this.set(32,1),this.set(9,1)}}const o=function(e){let t={};return n=>(t.hasOwnProperty(n)||(t[n]=e(n)),t[n])}(e=>new r(e))},function(e,t,n){"use strict";function i(e,t,n){return Math.min(Math.max(e,t),n)}n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return r}));class r{constructor(){this._n=1,this._val=0}update(e){return this._val=this._val+(e-this._val)/this._n,this._n+=1,this}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return g}));var i=n(8),r=n(125),o=n(3);class s{constructor(e,t,n,i,r,o){this.languageIdentifier=e,this.index=t,this.open=n,this.close=i,this.forwardRegex=r,this.reversedRegex=o,this._openSet=s._toSet(this.open),this._closeSet=s._toSet(this.close)}isOpen(e){return this._openSet.has(e)}isClose(e){return this._closeSet.has(e)}static _toSet(e){const t=new Set;for(const n of e)t.add(n);return t}}class a{constructor(e,t){const n=function(e){const t=e.length;e=e.map(e=>[e[0].toLowerCase(),e[1].toLowerCase()]);const n=[];for(let e=0;e<t;e++)n[e]=e;const i=(e,t)=>{const[n,i]=e,[r,o]=t;return n===r||n===o||i===r||i===o},r=(e,i)=>{const r=Math.min(e,i),o=Math.max(e,i);for(let e=0;e<t;e++)n[e]===o&&(n[e]=r)};for(let o=0;o<t;o++){const s=e[o];for(let a=o+1;a<t;a++){i(s,e[a])&&r(n[o],n[a])}}const o=[];for(let i=0;i<t;i++){let r=[],s=[];for(let o=0;o<t;o++)if(n[o]===i){const[t,n]=e[o];r.push(t),s.push(n)}r.length>0&&o.push({open:r,close:s})}return o}(t);this.brackets=n.map((t,i)=>new s(e,i,t.open,t.close,function(e,t,n,i){let r=[];r=(r=r.concat(e)).concat(t);for(let e=0,t=r.length;e<t;e++)l(r[e],n,i,r);return(r=d(r)).sort(c),r.reverse(),h(r)}(t.open,t.close,n,i),function(e,t,n,i){let r=[];r=(r=r.concat(e)).concat(t);for(let e=0,t=r.length;e<t;e++)l(r[e],n,i,r);return(r=d(r)).sort(c),r.reverse(),h(r.map(f))}(t.open,t.close,n,i))),this.forwardRegex=function(e){let t=[];for(const n of e){for(const e of n.open)t.push(e);for(const e of n.close)t.push(e)}return h(t=d(t))}(this.brackets),this.reversedRegex=function(e){let t=[];for(const n of e){for(const e of n.open)t.push(e);for(const e of n.close)t.push(e)}return h((t=d(t)).map(f))}(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(const e of this.brackets){for(const t of e.open)this.textIsBracket[t]=e,this.textIsOpenBracket[t]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,t.length);for(const t of e.close)this.textIsBracket[t]=e,this.textIsOpenBracket[t]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,t.length)}}}function l(e,t,n,i){for(let r=0,o=t.length;r<o;r++){if(r===n)continue;const o=t[r];for(const t of o.open)t.indexOf(e)>=0&&i.push(t);for(const t of o.close)t.indexOf(e)>=0&&i.push(t)}}function c(e,t){return e.length-t.length}function d(e){if(e.length<=1)return e;const t=[],n=new Set;for(const i of e)n.has(i)||(t.push(i),n.add(i));return t}function u(e){const t=/^[\w ]+$/.test(e);return e=i.v(e),t?`\\b${e}\\b`:e}function h(e){let t=`(${e.map(u).join(")|(")})`;return i.q(t,!0)}const f=function(){let e=null,t=null;return function(n){return e!==n&&(t=function(e){if(r.d){const t=new Uint16Array(e.length);let n=0;for(let i=e.length-1;i>=0;i--)t[n++]=e.charCodeAt(i);return r.c().decode(t)}{let t=[],n=0;for(let i=e.length-1;i>=0;i--)t[n++]=e.charAt(i);return t.join("")}}(e=n)),t}}();class g{static _findPrevBracketInText(e,t,n,i){let r=n.match(e);if(!r)return null;let s=n.length-(r.index||0),a=r[0].length,l=i+s;return new o.a(t,l-a+1,t,l+1)}static findPrevBracketInRange(e,t,n,i,r){const o=f(n).substring(n.length-r,n.length-i);return this._findPrevBracketInText(e,t,o,i)}static findNextBracketInText(e,t,n,i){let r=n.match(e);if(!r)return null;let s=r.index||0,a=r[0].length;if(0===a)return null;let l=i+s;return new o.a(t,l+1,t,l+1+a)}static findNextBracketInRange(e,t,n,i,r){const o=n.substring(i,r);return this.findNextBracketInText(e,t,o,i)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n(17);const r=Object(i.c)("telemetryService")},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n(17);const r=Object(i.c)("clipboardService")},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n(17);const r=Object(i.c)("textModelService")},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var i=n(121);class r{constructor(e){let t=Object(i.b)(e);this._defaultValue=t,this._asciiMap=r._createAsciiMap(t),this._map=new Map}static _createAsciiMap(e){let t=new Uint8Array(256);for(let n=0;n<256;n++)t[n]=e;return t}set(e,t){let n=Object(i.b)(t);e>=0&&e<256?this._asciiMap[e]=n:this._map.set(e,n)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}}class o{constructor(){this._actual=new r(0)}add(e){this._actual.set(e,1)}has(e){return 1===this._actual.get(e)}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return h})),n.d(t,"a",(function(){return f}));n(344);var i=n(12),r=n(0),o=n(2),s=n(49),a=n(1),l=n(20),c=n(50),d=n(115),u=n(30);class h extends o.a{constructor(e,t,n={}){super(),this.options=n,this._context=e||this,this._action=t,t instanceof s.a&&this._register(t.onDidChange(e=>{this.element&&this.handleActionChangeEvent(e)}))}handleActionChangeEvent(e){void 0!==e.enabled&&this.updateEnabled(),void 0!==e.checked&&this.updateChecked(),void 0!==e.class&&this.updateClass(),void 0!==e.label&&(this.updateLabel(),this.updateTooltip()),void 0!==e.tooltip&&this.updateTooltip()}get actionRunner(){return this._actionRunner||(this._actionRunner=this._register(new s.b)),this._actionRunner}set actionRunner(e){this._actionRunner=e}getAction(){return this._action}isEnabled(){return this._action.enabled}setActionContext(e){this._context=e}render(e){const t=this.element=e;this._register(c.b.addTarget(e));const n=this.options&&this.options.draggable;n&&(e.draggable=!0,u.h&&this._register(a.i(e,a.c.DRAG_START,e=>{var t;return null===(t=e.dataTransfer)||void 0===t?void 0:t.setData(d.a.TEXT,this._action.label)}))),this._register(a.i(t,c.a.Tap,e=>this.onClick(e))),this._register(a.i(t,a.c.MOUSE_DOWN,e=>{n||a.b.stop(e,!0),this._action.enabled&&0===e.button&&a.e(t,"active")})),i.f&&this._register(a.i(t,a.c.CONTEXT_MENU,e=>{0===e.button&&!0===e.ctrlKey&&this.onClick(e)})),this._register(a.i(t,a.c.CLICK,e=>{a.b.stop(e,!0),this.options&&this.options.isMenu||i.j(()=>this.onClick(e))})),this._register(a.i(t,a.c.DBLCLICK,e=>{a.b.stop(e,!0)})),[a.c.MOUSE_UP,a.c.MOUSE_OUT].forEach(e=>{this._register(a.i(t,e,e=>{a.b.stop(e),a.Q(t,"active")}))})}onClick(e){var t;a.b.stop(e,!0);const n=l.l(this._context)?(null===(t=this.options)||void 0===t?void 0:t.useEventAsContext)?e:void 0:this._context;this.actionRunner.run(this._action,n)}focus(){this.element&&(this.element.focus(),a.e(this.element,"focused"))}blur(){this.element&&(this.element.blur(),a.Q(this.element,"focused"))}updateEnabled(){}updateLabel(){}updateTooltip(){}updateClass(){}updateChecked(){}dispose(){this.element&&(a.S(this.element),this.element=void 0),super.dispose()}}class f extends h{constructor(e,t,n={}){super(e,t,n),this.options=n,this.options.icon=void 0!==n.icon&&n.icon,this.options.label=void 0===n.label||n.label,this.cssClass=""}render(e){super.render(e),this.element&&(this.label=a.p(this.element,a.a("a.action-label"))),this.label&&(this._action.id===s.c.ID?this.label.setAttribute("role","presentation"):this.options.isMenu?this.label.setAttribute("role","menuitem"):this.label.setAttribute("role","button")),this.options.label&&this.options.keybinding&&this.element&&(a.p(this.element,a.a("span.keybinding")).textContent=this.options.keybinding),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()}focus(){super.focus(),this.label&&this.label.focus()}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this.getAction().label)}updateTooltip(){let e=null;this.getAction().tooltip?e=this.getAction().tooltip:!this.options.label&&this.getAction().label&&this.options.icon&&(e=this.getAction().label,this.options.keybinding&&(e=r.a({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",e,this.options.keybinding))),e&&this.label&&(this.label.title=e)}updateClass(){this.cssClass&&this.label&&a.R(this.label,this.cssClass),this.options.icon?(this.cssClass=this.getAction().class,this.label&&(a.e(this.label,"codicon"),this.cssClass&&a.f(this.label,this.cssClass)),this.updateEnabled()):this.label&&a.Q(this.label,"codicon")}updateEnabled(){this.getAction().enabled?(this.label&&(this.label.removeAttribute("aria-disabled"),a.Q(this.label,"disabled"),this.label.tabIndex=0),this.element&&a.Q(this.element,"disabled")):(this.label&&(this.label.setAttribute("aria-disabled","true"),a.e(this.label,"disabled"),a.T(this.label)),this.element&&a.e(this.element,"disabled"))}updateChecked(){this.label&&(this.getAction().checked?a.e(this.label,"checked"):a.Q(this.label,"checked"))}}},function(e,t,n){"use strict";n.d(t,"f",(function(){return l})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return h})),n.d(t,"a",(function(){return g})),n.d(t,"e",(function(){return _})),n.d(t,"d",(function(){return b}));var i=n(14),r=n(99),o=n(10),s=n(3),a=n(11);function l(e){let t=0,n=0,i=0,r=0;for(let o=0,s=e.length;o<s;o++){const a=e.charCodeAt(o);13===a?(0===t&&(n=o),t++,o+1<s&&10===e.charCodeAt(o+1)?(r|=2,o++):r|=3,i=o+1):10===a&&(r|=1,0===t&&(n=o),t++,i=o+1)}return 0===t&&(n=e.length),[t,n,e.length-i,r]}function c(e){return(16384|e<<0|2<<23)>>>0}const d=new Uint32Array(0).buffer;class u{constructor(){this.tokens=[]}add(e,t){if(this.tokens.length>0){const n=this.tokens[this.tokens.length-1];if(n.startLineNumber+n.tokens.length-1+1===e)return void n.tokens.push(t)}this.tokens.push(new p(e,[t]))}}class h{constructor(e){this._tokens=e,this._tokenCount=e.length/4}toString(e){let t=[];for(let n=0;n<this._tokenCount;n++)t.push(`(${this._getDeltaLine(n)+e},${this._getStartCharacter(n)}-${this._getEndCharacter(n)})`);return`[${t.join(",")}]`}getMaxDeltaLine(){const e=this._getTokenCount();return 0===e?-1:this._getDeltaLine(e-1)}getRange(){const e=this._getTokenCount();if(0===e)return null;const t=this._getStartCharacter(0),n=this._getDeltaLine(e-1),i=this._getEndCharacter(e-1);return new s.a(0,t+1,n,i+1)}_getTokenCount(){return this._tokenCount}_getDeltaLine(e){return this._tokens[4*e]}_getStartCharacter(e){return this._tokens[4*e+1]}_getEndCharacter(e){return this._tokens[4*e+2]}isEmpty(){return 0===this._getTokenCount()}getLineTokens(e){let t=0,n=this._getTokenCount()-1;for(;t<n;){const i=t+Math.floor((n-t)/2),r=this._getDeltaLine(i);if(r<e)t=i+1;else{if(!(r>e)){let r=i;for(;r>t&&this._getDeltaLine(r-1)===e;)r--;let o=i;for(;o<n&&this._getDeltaLine(o+1)===e;)o++;return new f(this._tokens.subarray(4*r,4*o+4))}n=i-1}}return this._getDeltaLine(t)===e?new f(this._tokens.subarray(4*t,4*t+4)):null}clear(){this._tokenCount=0}removeTokens(e,t,n,i){const r=this._tokens,o=this._tokenCount;let s=0,a=!1,l=0;for(let c=0;c<o;c++){const o=4*c,d=r[o],u=r[o+1],h=r[o+2],f=r[o+3];if((d>e||d===e&&h>=t)&&(d<n||d===n&&u<=i))a=!0;else{if(0===s&&(l=d),a){const e=4*s;r[e]=d-l,r[e+1]=u,r[e+2]=h,r[e+3]=f}s++}}return this._tokenCount=s,l}split(e,t,n,i){const r=this._tokens,o=this._tokenCount;let s=[],a=[],l=s,c=0,d=0;for(let s=0;s<o;s++){const o=4*s,u=r[o],h=r[o+1],f=r[o+2],g=r[o+3];if(u>e||u===e&&f>=t){if(u<n||u===n&&h<=i)continue;l!==a&&(l=a,c=0,d=u)}l[c++]=u-d,l[c++]=h,l[c++]=f,l[c++]=g}return[new h(new Uint32Array(s)),new h(new Uint32Array(a)),d]}acceptDeleteRange(e,t,n,i,r){const o=this._tokens,s=this._tokenCount,a=i-t;let l=0,c=!1;for(let d=0;d<s;d++){const u=4*d;let h=o[u],f=o[u+1],g=o[u+2];const p=o[u+3];if(h<t||h===t&&g<=n){l++;continue}if(h===t&&f<n)h===i&&g>r?g-=r-n:g=n;else if(h===t&&f===n){if(!(h===i&&g>r)){c=!0;continue}g-=r-n}else if(h<i||h===i&&f<r){if(!(h===i&&g>r)){c=!0;continue}g=h===t?(f=n)+(g-r):(f=0)+(g-r)}else if(h>i){if(0===a&&!c){l=s;break}h-=a}else{if(!(h===i&&f>=r))throw new Error("Not possible!");e&&0===h&&(f+=e,g+=e),h-=a,f-=r-n,g-=r-n}const m=4*l;o[m]=h,o[m+1]=f,o[m+2]=g,o[m+3]=p,l++}this._tokenCount=l}acceptInsertText(e,t,n,i,r,o){const s=0===n&&1===i&&(o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122),a=this._tokens,l=this._tokenCount;for(let o=0;o<l;o++){const l=4*o;let c=a[l],d=a[l+1],u=a[l+2];if(!(c<e||c===e&&u<t)){if(c===e&&u===t){if(!s)continue;u+=1}else if(c===e&&d<t&&t<u)0===n?u+=i:u=t;else{if(c===e&&d===t&&s)continue;if(c===e)if(c+=n,0===n)d+=i,u+=i;else{const e=u-d;u=(d=r+(d-t))+e}else c+=n}a[l]=c,a[l+1]=d,a[l+2]=u}}}}class f{constructor(e){this._tokens=e}getCount(){return this._tokens.length/4}getStartCharacter(e){return this._tokens[4*e+1]}getEndCharacter(e){return this._tokens[4*e+2]}getMetadata(e){return this._tokens[4*e+3]}}class g{constructor(e,t){this.startLineNumber=e,this.tokens=t,this.endLineNumber=this.startLineNumber+this.tokens.getMaxDeltaLine()}toString(){return this.tokens.toString(this.startLineNumber)}_updateEndLineNumber(){this.endLineNumber=this.startLineNumber+this.tokens.getMaxDeltaLine()}isEmpty(){return this.tokens.isEmpty()}getLineTokens(e){return this.startLineNumber<=e&&e<=this.endLineNumber?this.tokens.getLineTokens(e-this.startLineNumber):null}getRange(){const e=this.tokens.getRange();return e?new s.a(this.startLineNumber+e.startLineNumber,e.startColumn,this.startLineNumber+e.endLineNumber,e.endColumn):e}removeTokens(e){const t=e.startLineNumber-this.startLineNumber,n=e.endLineNumber-this.startLineNumber;this.startLineNumber+=this.tokens.removeTokens(t,e.startColumn-1,n,e.endColumn-1),this._updateEndLineNumber()}split(e){const t=e.startLineNumber-this.startLineNumber,n=e.endLineNumber-this.startLineNumber,[i,r,o]=this.tokens.split(t,e.startColumn-1,n,e.endColumn-1);return[new g(this.startLineNumber,i),new g(this.startLineNumber+o,r)]}applyEdit(e,t){const[n,i,r]=l(t);this.acceptEdit(e,n,i,r,t.length>0?t.charCodeAt(0):0)}acceptEdit(e,t,n,i,r){this._acceptDeleteRange(e),this._acceptInsertText(new o.a(e.startLineNumber,e.startColumn),t,n,i,r),this._updateEndLineNumber()}_acceptDeleteRange(e){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return;const t=e.startLineNumber-this.startLineNumber,n=e.endLineNumber-this.startLineNumber;if(n<0){const e=n-t;return void(this.startLineNumber-=e)}const i=this.tokens.getMaxDeltaLine();if(!(t>=i+1)){if(t<0&&n>=i+1)return this.startLineNumber=0,void this.tokens.clear();if(t<0){const i=-t;this.startLineNumber-=i,this.tokens.acceptDeleteRange(e.startColumn-1,0,0,n,e.endColumn-1)}else this.tokens.acceptDeleteRange(0,t,e.startColumn-1,n,e.endColumn-1)}}_acceptInsertText(e,t,n,i,r){if(0===t&&0===n)return;const o=e.lineNumber-this.startLineNumber;o<0?this.startLineNumber+=t:o>=this.tokens.getMaxDeltaLine()+1||this.tokens.acceptInsertText(o,e.column-1,t,n,i,r)}}class p{constructor(e,t){this.startLineNumber=e,this.tokens=t}}function m(e){return e instanceof Uint32Array?e:new Uint32Array(e)}class _{constructor(){this._pieces=[],this._isComplete=!1}flush(){this._pieces=[],this._isComplete=!1}set(e,t){this._pieces=e||[],this._isComplete=t}setPartial(e,t){let n=e;if(t.length>0){const i=t[0].getRange(),r=t[t.length-1].getRange();if(!i||!r)return e;n=e.plusRange(i).plusRange(r)}let r=null;for(let e=0,t=this._pieces.length;e<t;e++){const i=this._pieces[e];if(i.endLineNumber<n.startLineNumber)continue;if(i.startLineNumber>n.endLineNumber){r=r||{index:e};break}if(i.removeTokens(n),i.isEmpty()){this._pieces.splice(e,1),e--,t--;continue}if(i.endLineNumber<n.startLineNumber)continue;if(i.startLineNumber>n.endLineNumber){r=r||{index:e};continue}const[o,s]=i.split(n);o.isEmpty()?r=r||{index:e}:s.isEmpty()||(this._pieces.splice(e,1,o,s),e++,t++,r=r||{index:e})}return r=r||{index:this._pieces.length},t.length>0&&(this._pieces=i.a(this._pieces,r.index,t)),n}isComplete(){return this._isComplete}addSemanticTokens(e,t){const n=this._pieces;if(0===n.length)return t;const i=n[_._findFirstPieceWithLine(n,e)].getLineTokens(e);if(!i)return t;const o=t.getCount(),s=i.getCount();let a=0,l=[],c=0,d=0;const u=(e,t)=>{e!==d&&(d=e,l[c++]=e,l[c++]=t)};for(let e=0;e<s;e++){const n=i.getStartCharacter(e),r=i.getEndCharacter(e),s=i.getMetadata(e),l=((1&s?2048:0)|(2&s?4096:0)|(4&s?8192:0)|(8&s?8372224:0)|(16&s?4286578688:0))>>>0,c=~l>>>0;for(;a<o&&t.getEndOffset(a)<=n;)u(t.getEndOffset(a),t.getMetadata(a)),a++;for(a<o&&t.getStartOffset(a)<n&&u(n,t.getMetadata(a));a<o&&t.getEndOffset(a)<r;)u(t.getEndOffset(a),t.getMetadata(a)&c|s&l),a++;if(a<o)u(r,t.getMetadata(a)&c|s&l),t.getEndOffset(a)===r&&a++;else{const e=Math.min(Math.max(0,a-1),o-1);u(r,t.getMetadata(e)&c|s&l)}}for(;a<o;)u(t.getEndOffset(a),t.getMetadata(a)),a++;return new r.a(new Uint32Array(l),t.getLineContent())}static _findFirstPieceWithLine(e,t){let n=0,i=e.length-1;for(;n<i;){let r=n+Math.floor((i-n)/2);if(e[r].endLineNumber<t)n=r+1;else{if(!(e[r].startLineNumber>t)){for(;r>n&&e[r-1].startLineNumber<=t&&t<=e[r-1].endLineNumber;)r--;return r}i=r-1}}return n}acceptEdit(e,t,n,i,r){for(const o of this._pieces)o.acceptEdit(e,t,n,i,r)}}class b{constructor(){this._lineTokens=[],this._len=0}flush(){this._lineTokens=[],this._len=0}getTokens(e,t,n){let i=null;if(t<this._len&&(i=this._lineTokens[t]),null!==i&&i!==d)return new r.a(m(i),n);let o=new Uint32Array(2);return o[0]=n.length,o[1]=c(e),new r.a(o,n)}static _massageTokens(e,t,n){const i=n?m(n):null;if(0===t){let t=!1;if(i&&i.length>1&&(t=a.B.getLanguageId(i[1])!==e),!t)return d}if(!i||0===i.length){const n=new Uint32Array(2);return n[0]=t,n[1]=c(e),n.buffer}return i[i.length-2]=t,0===i.byteOffset&&i.byteLength===i.buffer.byteLength?i.buffer:i}_ensureLine(e){for(;e>=this._len;)this._lineTokens[this._len]=null,this._len++}_deleteLines(e,t){0!==t&&(e+t>this._len&&(t=this._len-e),this._lineTokens.splice(e,t),this._len-=t)}_insertLines(e,t){if(0===t)return;let n=[];for(let e=0;e<t;e++)n[e]=null;this._lineTokens=i.a(this._lineTokens,e,n),this._len+=t}setTokens(e,t,n,i,r){const o=b._massageTokens(e,n,i);this._ensureLine(t);const s=this._lineTokens[t];return this._lineTokens[t]=o,!!r&&!b._equals(s,o)}static _equals(e,t){if(!e||!t)return!e&&!t;const n=m(e),i=m(t);if(n.length!==i.length)return!1;for(let e=0,t=n.length;e<t;e++)if(n[e]!==i[e])return!1;return!0}acceptEdit(e,t,n){this._acceptDeleteRange(e),this._acceptInsertText(new o.a(e.startLineNumber,e.startColumn),t,n)}_acceptDeleteRange(e){const t=e.startLineNumber-1;if(t>=this._len)return;if(e.startLineNumber===e.endLineNumber){if(e.startColumn===e.endColumn)return;return void(this._lineTokens[t]=b._delete(this._lineTokens[t],e.startColumn-1,e.endColumn-1))}this._lineTokens[t]=b._deleteEnding(this._lineTokens[t],e.startColumn-1);const n=e.endLineNumber-1;let i=null;n<this._len&&(i=b._deleteBeginning(this._lineTokens[n],e.endColumn-1)),this._lineTokens[t]=b._append(this._lineTokens[t],i),this._deleteLines(e.startLineNumber,e.endLineNumber-e.startLineNumber)}_acceptInsertText(e,t,n){if(0===t&&0===n)return;const i=e.lineNumber-1;i>=this._len||(0!==t?(this._lineTokens[i]=b._deleteEnding(this._lineTokens[i],e.column-1),this._lineTokens[i]=b._insert(this._lineTokens[i],e.column-1,n),this._insertLines(e.lineNumber,t)):this._lineTokens[i]=b._insert(this._lineTokens[i],e.column-1,n))}static _deleteBeginning(e,t){return null===e||e===d?e:b._delete(e,0,t)}static _deleteEnding(e,t){if(null===e||e===d)return e;const n=m(e),i=n[n.length-2];return b._delete(e,t,i)}static _delete(e,t,n){if(null===e||e===d||t===n)return e;const i=m(e),o=i.length>>>1;if(0===t&&i[i.length-2]===n)return d;const s=r.a.findIndexInTokensArray(i,t),a=s>0?i[s-1<<1]:0;if(n<i[s<<1]){const r=n-t;for(let e=s;e<o;e++)i[e<<1]-=r;return e}let l,c;a!==t?(i[s<<1]=t,l=s+1<<1,c=t):(l=s<<1,c=a);const u=n-t;for(let e=s+1;e<o;e++){const t=i[e<<1]-u;t>c&&(i[l++]=t,i[l++]=i[1+(e<<1)],c=t)}if(l===i.length)return e;let h=new Uint32Array(l);return h.set(i.subarray(0,l),0),h.buffer}static _append(e,t){if(t===d)return e;if(e===d)return t;if(null===e)return e;if(null===t)return null;const n=m(e),i=m(t),r=i.length>>>1;let o=new Uint32Array(n.length+i.length);o.set(n,0);let s=n.length;const a=n[n.length-2];for(let e=0;e<r;e++)o[s++]=i[e<<1]+a,o[s++]=i[1+(e<<1)];return o.buffer}static _insert(e,t,n){if(null===e||e===d)return e;const i=m(e),o=i.length>>>1;let s=r.a.findIndexInTokensArray(i,t);if(s>0){i[s-1<<1]===t&&s--}for(let e=s;e<o;e++)i[e<<1]+=n;return e}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return o}));class i{constructor(e,t,n){this.offset=0|e,this.type=t,this.language=n}toString(){return"("+this.offset+", "+this.type+")"}}class r{constructor(e,t){this.tokens=e,this.endState=t}}class o{constructor(e,t){this.tokens=e,this.endState=t}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return o}));const i={RESOURCES:"ResourceURLs",DOWNLOAD_URL:"DownloadURL",FILES:"Files",TEXT:"text/plain"};class r{constructor(e){this.data=e}update(){}getData(){return this.data}}const o={CurrentDragAndDropData:void 0}},function(e,t,n){"use strict";var i=n(15),r=n(8),o=n(51),s=n(124),a=n(3),l=n(22);class c{constructor(e,t,n){this._range=e,this._charBeforeSelection=t,this._charAfterSelection=n}getEditOperations(e,t){t.addTrackedEditOperation(new a.a(this._range.startLineNumber,this._range.startColumn,this._range.startLineNumber,this._range.startColumn),this._charBeforeSelection),t.addTrackedEditOperation(new a.a(this._range.endLineNumber,this._range.endColumn,this._range.endLineNumber,this._range.endColumn),this._charAfterSelection)}computeCursorState(e,t){let n=t.getInverseEditOperations(),i=n[0].range,r=n[1].range;return new l.a(i.endLineNumber,i.endColumn,r.endLineNumber,r.endColumn-this._charAfterSelection.length)}}var d=n(23),u=n(105),h=n(64),f=n(32);n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return p}));class g{static indent(e,t,n){if(null===t||null===n)return[];let i=[];for(let t=0,r=n.length;t<r;t++)i[t]=new s.a(n[t],{isUnshift:!1,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent});return i}static outdent(e,t,n){let i=[];for(let t=0,r=n.length;t<r;t++)i[t]=new s.a(n[t],{isUnshift:!0,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent});return i}static shiftIndent(e,t,n){return n=n||1,s.a.shiftIndent(t,t.length+n,e.tabSize,e.indentSize,e.insertSpaces)}static unshiftIndent(e,t,n){return n=n||1,s.a.unshiftIndent(t,t.length+n,e.tabSize,e.indentSize,e.insertSpaces)}static _distributedPaste(e,t,n,i){let r=[];for(let e=0,t=n.length;e<t;e++)r[e]=new o.a(n[e],i[e]);return new d.e(0,r,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}static _simplePaste(e,t,n,i,r){let s=[];for(let e=0,t=n.length;e<t;e++){const t=n[e];let l=t.getPosition();if(r&&!t.isEmpty()&&(r=!1),r&&i.indexOf("\n")!==i.length-1&&(r=!1),r){let n=new a.a(l.lineNumber,1,l.lineNumber,1);s[e]=new o.b(n,i,t,!0)}else s[e]=new o.a(t,i)}return new d.e(0,s,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}static _distributePasteToCursors(e,t,n,i,r){if(i)return null;if(1===t.length)return null;if(r&&r.length===t.length)return r;if("spread"===e.multiCursorPaste){10===n.charCodeAt(n.length-1)&&(n=n.substr(0,n.length-1)),13===n.charCodeAt(n.length-1)&&(n=n.substr(0,n.length-1));let e=n.split(/\r\n|\r|\n/);if(e.length===t.length)return e}return null}static paste(e,t,n,i,r,o){const s=this._distributePasteToCursors(e,n,i,r,o);return s?(n=n.sort(a.a.compareRangesUsingStarts),this._distributedPaste(e,t,n,s)):this._simplePaste(e,t,n,i,r)}static _goodIndentForLine(e,t,n){let i=null,o="";const s=f.a.getInheritIndentForLine(e.autoIndent,t,n,!1);if(s)i=s.action,o=s.indentation;else if(n>1){let i;for(i=n-1;i>=1;i--){const e=t.getLineContent(i);if(r.J(e)>=0)break}if(i<1)return null;const s=t.getLineMaxColumn(i),l=f.a.getEnterAction(e.autoIndent,t,new a.a(i,s,i,s));l&&(o=l.indentation+l.appendText)}return i&&(i===h.a.Indent&&(o=g.shiftIndent(e,o)),i===h.a.Outdent&&(o=g.unshiftIndent(e,o)),o=e.normalizeIndentation(o)),o||null}static _replaceJumpToNextIndent(e,t,n,i){let r="",s=n.getStartPosition();if(e.insertSpaces){let n=d.a.visibleColumnFromColumn2(e,t,s),i=e.indentSize,o=i-n%i;for(let e=0;e<o;e++)r+=" "}else r="\t";return new o.a(n,r,i)}static tab(e,t,n){let i=[];for(let l=0,c=n.length;l<c;l++){const c=n[l];if(c.isEmpty()){let n=t.getLineContent(c.startLineNumber);if(/^\s*$/.test(n)&&t.isCheapToTokenize(c.startLineNumber)){let s=this._goodIndentForLine(e,t,c.startLineNumber);s=s||"\t";let d=e.normalizeIndentation(s);if(!r.S(n,d)){i[l]=new o.a(new a.a(c.startLineNumber,1,c.startLineNumber,n.length+1),d,!0);continue}}i[l]=this._replaceJumpToNextIndent(e,t,c,!0)}else{if(c.startLineNumber===c.endLineNumber){let n=t.getLineMaxColumn(c.startLineNumber);if(1!==c.startColumn||c.endColumn!==n){i[l]=this._replaceJumpToNextIndent(e,t,c,!1);continue}}i[l]=new s.a(c,{isUnshift:!1,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent})}}return i}static replacePreviousChar(e,t,n,i,r,s){let l=[];for(let e=0,t=i.length;e<t;e++){const t=i[e];if(!t.isEmpty()){l[e]=null;continue}const c=t.getPosition(),d=Math.max(1,c.column-s),u=new a.a(c.lineNumber,d,c.lineNumber,c.column);n.getValueInRange(u)!==r?l[e]=new o.a(u,r):l[e]=null}return new d.e(1,l,{shouldPushStackElementBefore:1!==e,shouldPushStackElementAfter:!1})}static _typeCommand(e,t,n){return n?new o.e(e,t,!0):new o.a(e,t,!0)}static _enter(e,t,n,i){if(0===e.autoIndent)return g._typeCommand(i,"\n",n);if(!t.isCheapToTokenize(i.getStartPosition().lineNumber)||1===e.autoIndent){let o=t.getLineContent(i.startLineNumber),s=r.z(o).substring(0,i.startColumn-1);return g._typeCommand(i,"\n"+e.normalizeIndentation(s),n)}const s=f.a.getEnterAction(e.autoIndent,t,i);if(s){if(s.indentAction===h.a.None)return g._typeCommand(i,"\n"+e.normalizeIndentation(s.indentation+s.appendText),n);if(s.indentAction===h.a.Indent)return g._typeCommand(i,"\n"+e.normalizeIndentation(s.indentation+s.appendText),n);if(s.indentAction===h.a.IndentOutdent){const t=e.normalizeIndentation(s.indentation),r=e.normalizeIndentation(s.indentation+s.appendText),a="\n"+r+"\n"+t;return n?new o.e(i,a,!0):new o.d(i,a,-1,r.length-t.length,!0)}if(s.indentAction===h.a.Outdent){const t=g.unshiftIndent(e,s.indentation);return g._typeCommand(i,"\n"+e.normalizeIndentation(t+s.appendText),n)}}const l=t.getLineContent(i.startLineNumber),c=r.z(l).substring(0,i.startColumn-1);if(e.autoIndent>=4){const s=f.a.getIndentForEnter(e.autoIndent,t,i,{unshiftIndent:t=>g.unshiftIndent(e,t),shiftIndent:t=>g.shiftIndent(e,t),normalizeIndentation:t=>e.normalizeIndentation(t)});if(s){let u=d.a.visibleColumnFromColumn2(e,t,i.getEndPosition());const h=i.endColumn;let f="\n";c!==e.normalizeIndentation(s.beforeEnter)&&(f=e.normalizeIndentation(s.beforeEnter)+l.substring(c.length,i.startColumn-1)+"\n",i=new a.a(i.startLineNumber,1,i.endLineNumber,i.endColumn));const g=t.getLineContent(i.endLineNumber),p=r.w(g);if(i=p>=0?i.setEndPosition(i.endLineNumber,Math.max(i.endColumn,p+1)):i.setEndPosition(i.endLineNumber,t.getLineMaxColumn(i.endLineNumber)),n)return new o.e(i,f+e.normalizeIndentation(s.afterEnter),!0);{let t=0;return h<=p+1&&(e.insertSpaces||(u=Math.ceil(u/e.indentSize)),t=Math.min(u+1-e.normalizeIndentation(s.afterEnter).length-1,0)),new o.d(i,f+e.normalizeIndentation(s.afterEnter),0,t,!0)}}}return g._typeCommand(i,"\n"+e.normalizeIndentation(c),n)}static _isAutoIndentType(e,t,n){if(e.autoIndent<4)return!1;for(let e=0,i=n.length;e<i;e++)if(!t.isCheapToTokenize(n[e].getEndPosition().lineNumber))return!1;return!0}static _runAutoIndentType(e,t,n,i){const r=f.a.getIndentationAtPosition(t,n.startLineNumber,n.startColumn),o=f.a.getIndentActionForType(e.autoIndent,t,n,i,{shiftIndent:t=>g.shiftIndent(e,t),unshiftIndent:t=>g.unshiftIndent(e,t)});if(null===o)return null;if(o!==e.normalizeIndentation(r)){const r=t.getLineFirstNonWhitespaceColumn(n.startLineNumber);return 0===r?g._typeCommand(new a.a(n.startLineNumber,0,n.endLineNumber,n.endColumn),e.normalizeIndentation(o)+i,!1):g._typeCommand(new a.a(n.startLineNumber,0,n.endLineNumber,n.endColumn),e.normalizeIndentation(o)+t.getLineContent(n.startLineNumber).substring(r-1,n.startColumn-1)+i,!1)}return null}static _isAutoClosingOvertype(e,t,n,i,r){if("never"===e.autoClosingOvertype)return!1;if(!e.autoClosingPairsClose2.has(r))return!1;for(let o=0,s=n.length;o<s;o++){const s=n[o];if(!s.isEmpty())return!1;const a=s.getPosition(),l=t.getLineContent(a.lineNumber);if(l.charAt(a.column-1)!==r)return!1;const c=Object(d.g)(r);if(92===(a.column>2?l.charCodeAt(a.column-2):0)&&c)return!1;if("auto"===e.autoClosingOvertype){let e=!1;for(let t=0,n=i.length;t<n;t++){const n=i[t];if(a.lineNumber===n.startLineNumber&&a.column===n.startColumn){e=!0;break}}if(!e)return!1}}return!0}static _runAutoClosingOvertype(e,t,n,i,r){let s=[];for(let e=0,t=i.length;e<t;e++){const t=i[e].getPosition(),n=new a.a(t.lineNumber,t.column,t.lineNumber,t.column+1);s[e]=new o.a(n,r)}return new d.e(1,s,{shouldPushStackElementBefore:1!==e,shouldPushStackElementAfter:!1})}static _autoClosingPairIsSymmetric(e){const{open:t,close:n}=e;return t.indexOf(n)>=0||n.indexOf(t)>=0}static _isBeforeClosingBrace(e,t,n){const i=e.autoClosingPairsClose2.get(n);if(!i)return!1;const r=g._autoClosingPairIsSymmetric(t);for(const e of i){const t=g._autoClosingPairIsSymmetric(e);if(r||!t)return!0}return!1}static _findAutoClosingPairOpen(e,t,n,i){const r=e.autoClosingPairsOpen2.get(i);if(!r)return null;let o=null;for(const e of r)if(null===o||e.open.length>o.open.length){let r=!0;for(const o of n){if(t.getValueInRange(new a.a(o.lineNumber,o.column-e.open.length+1,o.lineNumber,o.column))+i!==e.open){r=!1;break}}r&&(o=e)}return o}static _isAutoClosingOpenCharType(e,t,n,r,o){const s=Object(d.g)(r),a=s?e.autoClosingQuotes:e.autoClosingBrackets;if("never"===a)return null;const l=this._findAutoClosingPairOpen(e,t,n.map(e=>e.getPosition()),r);if(!l)return null;const c=s?e.shouldAutoCloseBefore.quote:e.shouldAutoCloseBefore.bracket;for(let r=0,d=n.length;r<d;r++){const d=n[r];if(!d.isEmpty())return null;const h=d.getPosition(),p=t.getLineContent(h.lineNumber);if(p.length>h.column-1){const t=p.charAt(h.column-1);if(!g._isBeforeClosingBrace(e,l,t)&&!c(t))return null}if(!t.isCheapToTokenize(h.lineNumber))return null;if(1===l.open.length&&s&&"always"!==a){const t=Object(u.a)(e.wordSeparators);if(o&&h.column>1&&0===t.get(p.charCodeAt(h.column-2)))return null;if(!o&&h.column>2&&0===t.get(p.charCodeAt(h.column-3)))return null}t.forceTokenization(h.lineNumber);const m=t.getLineTokens(h.lineNumber);let _=!1;try{_=f.a.shouldAutoClosePair(l,m,o?h.column:h.column-1)}catch(e){Object(i.e)(e)}if(!_)return null}return l}static _runAutoClosingOpenCharType(e,t,n,i,r,o,s){let a=[];for(let e=0,t=i.length;e<t;e++){const t=i[e];a[e]=new p(t,r,o,s.close)}return new d.e(1,a,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}static _shouldSurroundChar(e,t){return Object(d.g)(t)?"quotes"===e.autoSurround||"languageDefined"===e.autoSurround:"brackets"===e.autoSurround||"languageDefined"===e.autoSurround}static _isSurroundSelectionType(e,t,n,i){if(!g._shouldSurroundChar(e,i)||!e.surroundingPairs.hasOwnProperty(i))return!1;const r=Object(d.g)(i);for(let e=0,i=n.length;e<i;e++){const i=n[e];if(i.isEmpty())return!1;let o=!0;for(let e=i.startLineNumber;e<=i.endLineNumber;e++){const n=t.getLineContent(e),r=e===i.startLineNumber?i.startColumn-1:0,s=e===i.endLineNumber?i.endColumn-1:n.length,a=n.substring(r,s);if(/[^ \t]/.test(a)){o=!1;break}}if(o)return!1;if(r&&i.startLineNumber===i.endLineNumber&&i.startColumn+1===i.endColumn){const e=t.getValueInRange(i);if(Object(d.g)(e))return!1}}return!0}static _runSurroundSelectionType(e,t,n,i,r){let o=[];for(let e=0,n=i.length;e<n;e++){const n=i[e],s=t.surroundingPairs[r];o[e]=new c(n,r,s)}return new d.e(0,o,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}static _isTypeInterceptorElectricChar(e,t,n){return!(1!==n.length||!t.isCheapToTokenize(n[0].getEndPosition().lineNumber))}static _typeInterceptorElectricChar(e,t,n,s,l){if(!t.electricChars.hasOwnProperty(l)||!s.isEmpty())return null;let c=s.getPosition();n.forceTokenization(c.lineNumber);let u,h=n.getLineTokens(c.lineNumber);try{u=f.a.onElectricCharacter(l,h,c.column)}catch(e){return Object(i.e)(e),null}if(!u)return null;if(u.matchOpenBracket){let e=(h.getLineContent()+l).lastIndexOf(u.matchOpenBracket)+1,i=n.findMatchingBracketUp(u.matchOpenBracket,{lineNumber:c.lineNumber,column:e});if(i){if(i.startLineNumber===c.lineNumber)return null;let e=n.getLineContent(i.startLineNumber),s=r.z(e),u=t.normalizeIndentation(s),h=n.getLineContent(c.lineNumber),f=n.getLineFirstNonWhitespaceColumn(c.lineNumber)||c.column,g=u+h.substring(f-1,c.column-1)+l,p=new a.a(c.lineNumber,1,c.lineNumber,c.column);const m=new o.a(p,g);return new d.e(1,[m],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!0})}}return null}static compositionEndWithInterceptors(e,t,n,i,r,s){if(!i||l.a.selectionsArrEqual(i,r))return null;let c=null;for(const e of r){if(!e.isEmpty())return null;const t=e.getPosition(),i=n.getValueInRange(new a.a(t.lineNumber,t.column-1,t.lineNumber,t.column));if(null===c)c=i;else if(c!==i)return null}if(!c)return null;if(this._isAutoClosingOvertype(t,n,r,s,c)){const e=r.map(e=>new o.a(new a.a(e.positionLineNumber,e.positionColumn,e.positionLineNumber,e.positionColumn+1),"",!1));return new d.e(1,e,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}const u=this._isAutoClosingOpenCharType(t,n,r,c,!1);return u?this._runAutoClosingOpenCharType(e,t,n,r,c,!1,u):null}static typeWithInterceptors(e,t,n,i,r,s,a){if(!e&&"\n"===a){let e=[];for(let t=0,o=r.length;t<o;t++)e[t]=g._enter(n,i,!1,r[t]);return new d.e(1,e,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(!e&&this._isAutoIndentType(n,i,r)){let e=[],t=!1;for(let o=0,s=r.length;o<s;o++)if(e[o]=this._runAutoIndentType(n,i,r[o],a),!e[o]){t=!0;break}if(!t)return new d.e(1,e,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(!e&&this._isAutoClosingOvertype(n,i,r,s,a))return this._runAutoClosingOvertype(t,n,i,r,a);if(!e){const e=this._isAutoClosingOpenCharType(n,i,r,a,!0);if(e)return this._runAutoClosingOpenCharType(t,n,i,r,a,!0,e)}if(this._isSurroundSelectionType(n,i,r,a))return this._runSurroundSelectionType(t,n,i,r,a);if(!e&&this._isTypeInterceptorElectricChar(n,i,r)){const e=this._typeInterceptorElectricChar(t,n,i,r[0],a);if(e)return e}let l=[];for(let e=0,t=r.length;e<t;e++)l[e]=new o.a(r[e],a);let c=1!==t;return" "===a&&(c=!0),new d.e(1,l,{shouldPushStackElementBefore:c,shouldPushStackElementAfter:!1})}static typeWithoutInterceptors(e,t,n,i,r){let s=[];for(let e=0,t=i.length;e<t;e++)s[e]=new o.a(i[e],r);return new d.e(1,s,{shouldPushStackElementBefore:1!==e,shouldPushStackElementAfter:!1})}static lineInsertBefore(e,t,n){if(null===t||null===n)return[];let i=[];for(let r=0,s=n.length;r<s;r++){let s=n[r].positionLineNumber;if(1===s)i[r]=new o.e(new a.a(1,1,1,1),"\n");else{s--;let n=t.getLineMaxColumn(s);i[r]=this._enter(e,t,!1,new a.a(s,n,s,n))}}return i}static lineInsertAfter(e,t,n){if(null===t||null===n)return[];let i=[];for(let r=0,o=n.length;r<o;r++){const o=n[r].positionLineNumber;let s=t.getLineMaxColumn(o);i[r]=this._enter(e,t,!1,new a.a(o,s,o,s))}return i}static lineBreakInsert(e,t,n){let i=[];for(let r=0,o=n.length;r<o;r++)i[r]=this._enter(e,t,!0,n[r]);return i}}class p extends o.d{constructor(e,t,n,i){super(e,(n?t:"")+i,0,-i.length),this._openCharacter=t,this._closeCharacter=i,this.closeCharacterRange=null,this.enclosingRange=null}computeCursorState(e,t){let n=t.getInverseEditOperations()[0].range;return this.closeCharacterRange=new a.a(n.startLineNumber,n.endColumn-this._closeCharacter.length,n.endLineNumber,n.endColumn),this.enclosingRange=new a.a(n.startLineNumber,n.endColumn-this._openCharacter.length-this._closeCharacter.length,n.endLineNumber,n.endColumn),super.computeCursorState(e,t)}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return a}));var i=n(8),r=n(10),o=n(3);class s{constructor(e,t,n,i,r){this.value=e,this.selectionStart=t,this.selectionEnd=n,this.selectionStartPosition=i,this.selectionEndPosition=r}toString(){return"[ <"+this.value+">, selectionStart: "+this.selectionStart+", selectionEnd: "+this.selectionEnd+"]"}static readFromTextArea(e){return new s(e.getValue(),e.getSelectionStart(),e.getSelectionEnd(),null,null)}collapseSelection(){return new s(this.value,this.value.length,this.value.length,null,null)}writeToTextArea(e,t,n){t.setValue(e,this.value),n&&t.setSelectionRange(e,this.selectionStart,this.selectionEnd)}deduceEditorPosition(e){if(e<=this.selectionStart){const t=this.value.substring(e,this.selectionStart);return this._finishDeduceEditorPosition(this.selectionStartPosition,t,-1)}if(e>=this.selectionEnd){const t=this.value.substring(this.selectionEnd,e);return this._finishDeduceEditorPosition(this.selectionEndPosition,t,1)}const t=this.value.substring(this.selectionStart,e);if(-1===t.indexOf(String.fromCharCode(8230)))return this._finishDeduceEditorPosition(this.selectionStartPosition,t,1);const n=this.value.substring(e,this.selectionEnd);return this._finishDeduceEditorPosition(this.selectionEndPosition,n,-1)}_finishDeduceEditorPosition(e,t,n){let i=0,r=-1;for(;-1!==(r=t.indexOf("\n",r+1));)i++;return[e,n*t.length,i]}static selectedText(e){return new s(e,0,e.length,null,null)}static deduceInput(e,t,n){if(!e)return{text:"",replaceCharCnt:0};let r=e.value,o=e.selectionStart,s=e.selectionEnd,a=t.value,l=t.selectionStart,c=t.selectionEnd;const d=r.substring(s),u=a.substring(c),h=i.e(d,u);a=a.substring(0,a.length-h);const f=(r=r.substring(0,r.length-h)).substring(0,o),g=a.substring(0,l),p=i.d(f,g);if(a=a.substring(p),r=r.substring(p),l-=p,o-=p,c-=p,s-=p,n&&l===c&&r.length>0){let e=null;if(l===a.length?i.S(a,r)&&(e=a.substring(r.length)):i.s(a,r)&&(e=a.substring(0,a.length-r.length)),null!==e&&e.length>0&&(/\uFE0F/.test(e)||i.k(e)))return{text:e,replaceCharCnt:0}}if(l===c){if(r===a&&0===o&&s===r.length&&l===a.length&&-1===a.indexOf("\n")&&i.l(a))return{text:"",replaceCharCnt:0};return{text:a,replaceCharCnt:f.length-p}}return{text:a,replaceCharCnt:s-o}}}s.EMPTY=new s("",0,0,null,null);class a{static _getPageOfLine(e,t){return Math.floor((e-1)/t)}static _getRangeForPage(e,t){const n=e*t,i=n+1,r=n+t;return new o.a(i,1,r+1,1)}static fromEditorSelection(e,t,n,i,l){const c=a._getPageOfLine(n.startLineNumber,i),d=a._getRangeForPage(c,i),u=a._getPageOfLine(n.endLineNumber,i),h=a._getRangeForPage(u,i),f=d.intersectRanges(new o.a(1,1,n.startLineNumber,n.startColumn));let g=t.getValueInRange(f,1);const p=t.getLineCount(),m=t.getLineMaxColumn(p),_=h.intersectRanges(new o.a(n.endLineNumber,n.endColumn,p,m));let b,v=t.getValueInRange(_,1);if(c===u||c+1===u)b=t.getValueInRange(n,1);else{const e=d.intersectRanges(n),i=h.intersectRanges(n);b=t.getValueInRange(e,1)+String.fromCharCode(8230)+t.getValueInRange(i,1)}if(l){const e=500;g.length>e&&(g=g.substring(g.length-e,g.length)),v.length>e&&(v=v.substring(0,e)),b.length>2*e&&(b=b.substring(0,e)+String.fromCharCode(8230)+b.substring(b.length-e,b.length))}return new s(g+b+v,g.length,g.length+b.length,new r.a(n.startLineNumber,n.startColumn),new r.a(n.endLineNumber,n.endColumn))}}},function(e,t,n){"use strict";var i=n(74),r=n(141).Graph;function o(e,t,n,r){var o;do{o=i.uniqueId(r)}while(e.hasNode(o));return n.dummy=t,e.setNode(o,n),o}function s(e){return i.max(i.map(e.nodes(),(function(t){var n=e.node(t).rank;if(!i.isUndefined(n))return n})))}e.exports={addDummyNode:o,simplify:function(e){var t=(new r).setGraph(e.graph());return i.forEach(e.nodes(),(function(n){t.setNode(n,e.node(n))})),i.forEach(e.edges(),(function(n){var i=t.edge(n.v,n.w)||{weight:0,minlen:1},r=e.edge(n);t.setEdge(n.v,n.w,{weight:i.weight+r.weight,minlen:Math.max(i.minlen,r.minlen)})})),t},asNonCompoundGraph:function(e){var t=new r({multigraph:e.isMultigraph()}).setGraph(e.graph());return i.forEach(e.nodes(),(function(n){e.children(n).length||t.setNode(n,e.node(n))})),i.forEach(e.edges(),(function(n){t.setEdge(n,e.edge(n))})),t},successorWeights:function(e){var t=i.map(e.nodes(),(function(t){var n={};return i.forEach(e.outEdges(t),(function(t){n[t.w]=(n[t.w]||0)+e.edge(t).weight})),n}));return i.zipObject(e.nodes(),t)},predecessorWeights:function(e){var t=i.map(e.nodes(),(function(t){var n={};return i.forEach(e.inEdges(t),(function(t){n[t.v]=(n[t.v]||0)+e.edge(t).weight})),n}));return i.zipObject(e.nodes(),t)},intersectRect:function(e,t){var n,i,r=e.x,o=e.y,s=t.x-r,a=t.y-o,l=e.width/2,c=e.height/2;if(!s&&!a)throw new Error("Not possible to find intersection inside of the rectangle");Math.abs(a)*l>Math.abs(s)*c?(a<0&&(c=-c),n=c*s/a,i=c):(s<0&&(l=-l),n=l,i=l*a/s);return{x:r+n,y:o+i}},buildLayerMatrix:function(e){var t=i.map(i.range(s(e)+1),(function(){return[]}));return i.forEach(e.nodes(),(function(n){var r=e.node(n),o=r.rank;i.isUndefined(o)||(t[o][r.order]=n)})),t},normalizeRanks:function(e){var t=i.min(i.map(e.nodes(),(function(t){return e.node(t).rank})));i.forEach(e.nodes(),(function(n){var r=e.node(n);i.has(r,"rank")&&(r.rank-=t)}))},removeEmptyRanks:function(e){var t=i.min(i.map(e.nodes(),(function(t){return e.node(t).rank}))),n=[];i.forEach(e.nodes(),(function(i){var r=e.node(i).rank-t;n[r]||(n[r]=[]),n[r].push(i)}));var r=0,o=e.graph().nodeRankFactor;i.forEach(n,(function(t,n){i.isUndefined(t)&&n%o!=0?--r:r&&i.forEach(t,(function(t){e.node(t).rank+=r}))}))},addBorderNode:function(e,t,n,i){var r={width:0,height:0};arguments.length>=4&&(r.rank=n,r.order=i);return o(e,"border",r,t)},maxRank:s,partition:function(e,t){var n={lhs:[],rhs:[]};return i.forEach(e,(function(e){t(e)?n.lhs.push(e):n.rhs.push(e)})),n},time:function(e,t){var n=i.now();try{return t()}finally{console.log(e+" time: "+(i.now()-n)+"ms")}},notime:function(e,t){return t()}}},function(e,t,n){"use strict";var i=n(75),r=n(143).Graph;function o(e,t,n,r){var o;do{o=i.uniqueId(r)}while(e.hasNode(o));return n.dummy=t,e.setNode(o,n),o}function s(e){return i.max(i.map(e.nodes(),(function(t){var n=e.node(t).rank;if(!i.isUndefined(n))return n})))}e.exports={addDummyNode:o,simplify:function(e){var t=(new r).setGraph(e.graph());return i.forEach(e.nodes(),(function(n){t.setNode(n,e.node(n))})),i.forEach(e.edges(),(function(n){var i=t.edge(n.v,n.w)||{weight:0,minlen:1},r=e.edge(n);t.setEdge(n.v,n.w,{weight:i.weight+r.weight,minlen:Math.max(i.minlen,r.minlen)})})),t},asNonCompoundGraph:function(e){var t=new r({multigraph:e.isMultigraph()}).setGraph(e.graph());return i.forEach(e.nodes(),(function(n){e.children(n).length||t.setNode(n,e.node(n))})),i.forEach(e.edges(),(function(n){t.setEdge(n,e.edge(n))})),t},successorWeights:function(e){var t=i.map(e.nodes(),(function(t){var n={};return i.forEach(e.outEdges(t),(function(t){n[t.w]=(n[t.w]||0)+e.edge(t).weight})),n}));return i.zipObject(e.nodes(),t)},predecessorWeights:function(e){var t=i.map(e.nodes(),(function(t){var n={};return i.forEach(e.inEdges(t),(function(t){n[t.v]=(n[t.v]||0)+e.edge(t).weight})),n}));return i.zipObject(e.nodes(),t)},intersectRect:function(e,t){var n,i,r=e.x,o=e.y,s=t.x-r,a=t.y-o,l=e.width/2,c=e.height/2;if(!s&&!a)throw new Error("Not possible to find intersection inside of the rectangle");Math.abs(a)*l>Math.abs(s)*c?(a<0&&(c=-c),n=c*s/a,i=c):(s<0&&(l=-l),n=l,i=l*a/s);return{x:r+n,y:o+i}},buildLayerMatrix:function(e){var t=i.map(i.range(s(e)+1),(function(){return[]}));return i.forEach(e.nodes(),(function(n){var r=e.node(n),o=r.rank;i.isUndefined(o)||(t[o][r.order]=n)})),t},normalizeRanks:function(e){var t=i.min(i.map(e.nodes(),(function(t){return e.node(t).rank})));i.forEach(e.nodes(),(function(n){var r=e.node(n);i.has(r,"rank")&&(r.rank-=t)}))},removeEmptyRanks:function(e){var t=i.min(i.map(e.nodes(),(function(t){return e.node(t).rank}))),n=[];i.forEach(e.nodes(),(function(i){var r=e.node(i).rank-t;n[r]||(n[r]=[]),n[r].push(i)}));var r=0,o=e.graph().nodeRankFactor;i.forEach(n,(function(t,n){i.isUndefined(t)&&n%o!=0?--r:r&&i.forEach(t,(function(t){e.node(t).rank+=r}))}))},addBorderNode:function(e,t,n,i){var r={width:0,height:0};arguments.length>=4&&(r.rank=n,r.order=i);return o(e,"border",r,t)},maxRank:s,partition:function(e,t){var n={lhs:[],rhs:[]};return i.forEach(e,(function(e){t(e)?n.lhs.push(e):n.rhs.push(e)})),n},time:function(e,t){var n=i.now();try{return t()}finally{console.log(e+" time: "+(i.now()-n)+"ms")}},notime:function(e,t){return t()}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return _})),n.d(t,"c",(function(){return b}));var i=n(0),r=n(6),o=n(46),s=n(20),a=n(264);const l={Configuration:"base.contributions.configuration"},c={properties:{},patternProperties:{}},d={properties:{},patternProperties:{}},u={properties:{},patternProperties:{}},h={properties:{},patternProperties:{}},f={properties:{},patternProperties:{}},g={properties:{},patternProperties:{}},p="vscode://schemas/settings/resourceLanguage",m=o.a.as(a.a.JSONContribution);const _=new RegExp("\\[.*\\]$");function b(e){return e.substring(1,e.length-1)}const v=new class{constructor(){this.overrideIdentifiers=new Set,this._onDidSchemaChange=new r.a,this._onDidUpdateConfiguration=new r.a,this.defaultValues={},this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:i.a("defaultLanguageConfigurationOverrides.title","Default Language Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!1,errorMessage:"Unknown editor configuration setting",allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.excludedConfigurationProperties={},m.registerSchema(p,this.resourceLanguageSettingsSchema)}registerConfiguration(e,t=!0){this.registerConfigurations([e],t)}registerConfigurations(e,t=!0){const n=[];e.forEach(e=>{n.push(...this.validateAndRegisterProperties(e,t)),this.configurationContributors.push(e),this.registerJSONConfiguration(e)}),m.registerSchema(p,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire(n)}registerOverrideIdentifiers(e){for(const t of e)this.overrideIdentifiers.add(t);this.updateOverridePropertyPatternKey()}validateAndRegisterProperties(e,t=!0,n=3){n=s.l(e.scope)?n:e.scope;let i=[],r=e.properties;if(r)for(let e in r){if(t&&y(e)){delete r[e];continue}const o=r[e];this.updatePropertyDefaultValue(e,o),_.test(e)?o.scope=void 0:o.scope=s.l(o.scope)?n:o.scope,!r[e].hasOwnProperty("included")||r[e].included?(this.configurationProperties[e]=r[e],!r[e].deprecationMessage&&r[e].markdownDeprecationMessage&&(r[e].deprecationMessage=r[e].markdownDeprecationMessage),i.push(e)):(this.excludedConfigurationProperties[e]=r[e],delete r[e])}let o=e.allOf;if(o)for(let e of o)i.push(...this.validateAndRegisterProperties(e,t,n));return i}getConfigurationProperties(){return this.configurationProperties}registerJSONConfiguration(e){const t=e=>{let n=e.properties;if(n)for(const e in n)this.updateSchema(e,n[e]);let i=e.allOf;i&&i.forEach(t)};t(e)}updateSchema(e,t){switch(c.properties[e]=t,t.scope){case 1:d.properties[e]=t;break;case 2:u.properties[e]=t;break;case 6:h.properties[e]=t;break;case 3:f.properties[e]=t;break;case 4:g.properties[e]=t;break;case 5:g.properties[e]=t,this.resourceLanguageSettingsSchema.properties[e]=t}}updateOverridePropertyPatternKey(){for(const e of this.overrideIdentifiers.values()){const t=`[${e}]`,n={type:"object",description:i.a("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:i.a("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:p};this.updatePropertyDefaultValue(t,n),c.properties[t]=n,d.properties[t]=n,u.properties[t]=n,h.properties[t]=n,f.properties[t]=n,g.properties[t]=n}this._onDidSchemaChange.fire()}updatePropertyDefaultValue(e,t){let n=this.defaultValues[e];s.k(n)&&(n=t.default),s.k(n)&&(n=function(e){switch(Array.isArray(e)?e[0]:e){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}(t.type)),t.default=n}};function y(e){return _.test(e)?i.a("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",e):void 0!==v.getConfigurationProperties()[e]?i.a("config.property.duplicate","Cannot register '{0}'. This property is already registered.",e):null}o.a.add(l.Configuration,v)},function(e,t,n){"use strict";function i(e){return e<0?0:e>255?255:0|e}function r(e){return e<0?0:e>4294967295?4294967295:0|e}n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return c}));var i=n(8),r=n(23),o=n(105),s=n(10),a=n(3);class l{static _createWord(e,t,n,i,r){return{start:i,end:r,wordType:t,nextCharClass:n}}static _findPreviousWordOnLine(e,t,n){let i=t.getLineContent(n.lineNumber);return this._doFindPreviousWordOnLine(i,e,n)}static _doFindPreviousWordOnLine(e,t,n){let i=0;for(let r=n.column-2;r>=0;r--){let n=e.charCodeAt(r),o=t.get(n);if(0===o){if(2===i)return this._createWord(e,i,o,r+1,this._findEndOfWord(e,t,i,r+1));i=1}else if(2===o){if(1===i)return this._createWord(e,i,o,r+1,this._findEndOfWord(e,t,i,r+1));i=2}else if(1===o&&0!==i)return this._createWord(e,i,o,r+1,this._findEndOfWord(e,t,i,r+1))}return 0!==i?this._createWord(e,i,1,0,this._findEndOfWord(e,t,i,0)):null}static _findEndOfWord(e,t,n,i){let r=e.length;for(let o=i;o<r;o++){let i=e.charCodeAt(o),r=t.get(i);if(1===r)return o;if(1===n&&2===r)return o;if(2===n&&0===r)return o}return r}static _findNextWordOnLine(e,t,n){let i=t.getLineContent(n.lineNumber);return this._doFindNextWordOnLine(i,e,n)}static _doFindNextWordOnLine(e,t,n){let i=0,r=e.length;for(let o=n.column-1;o<r;o++){let n=e.charCodeAt(o),r=t.get(n);if(0===r){if(2===i)return this._createWord(e,i,r,this._findStartOfWord(e,t,i,o-1),o);i=1}else if(2===r){if(1===i)return this._createWord(e,i,r,this._findStartOfWord(e,t,i,o-1),o);i=2}else if(1===r&&0!==i)return this._createWord(e,i,r,this._findStartOfWord(e,t,i,o-1),o)}return 0!==i?this._createWord(e,i,1,this._findStartOfWord(e,t,i,r-1),r):null}static _findStartOfWord(e,t,n,i){for(let r=i;r>=0;r--){let i=e.charCodeAt(r),o=t.get(i);if(1===o)return r+1;if(1===n&&2===o)return r+1;if(2===n&&0===o)return r+1}return 0}static moveWordLeft(e,t,n,i){let r=n.lineNumber,o=n.column;1===o&&r>1&&(r-=1,o=t.getLineMaxColumn(r));let a=l._findPreviousWordOnLine(e,t,new s.a(r,o));if(0===i)return new s.a(r,a?a.start+1:1);if(1===i)return a&&2===a.wordType&&a.end-a.start==1&&0===a.nextCharClass&&(a=l._findPreviousWordOnLine(e,t,new s.a(r,a.start+1))),new s.a(r,a?a.start+1:1);if(3===i){for(;a&&2===a.wordType;)a=l._findPreviousWordOnLine(e,t,new s.a(r,a.start+1));return new s.a(r,a?a.start+1:1)}return a&&o<=a.end+1&&(a=l._findPreviousWordOnLine(e,t,new s.a(r,a.start+1))),new s.a(r,a?a.end+1:1)}static _moveWordPartLeft(e,t){const n=t.lineNumber,r=e.getLineMaxColumn(n);if(1===t.column)return n>1?new s.a(n-1,e.getLineMaxColumn(n-1)):t;const o=e.getLineContent(n);for(let e=t.column-1;e>1;e--){const t=o.charCodeAt(e-2),a=o.charCodeAt(e-1);if(95===t&&95!==a)return new s.a(n,e);if(i.H(t)&&i.I(a))return new s.a(n,e);if(i.I(t)&&i.I(a)&&e+1<r){const t=o.charCodeAt(e);if(i.H(t))return new s.a(n,e)}}return new s.a(n,1)}static moveWordRight(e,t,n,i){let r=n.lineNumber,o=n.column,a=!1;o===t.getLineMaxColumn(r)&&r<t.getLineCount()&&(a=!0,r+=1,o=1);let c=l._findNextWordOnLine(e,t,new s.a(r,o));if(2===i)c&&2===c.wordType&&c.end-c.start==1&&0===c.nextCharClass&&(c=l._findNextWordOnLine(e,t,new s.a(r,c.end+1))),o=c?c.end+1:t.getLineMaxColumn(r);else if(3===i){for(a&&(o=0);c&&(2===c.wordType||c.start+1<=o);)c=l._findNextWordOnLine(e,t,new s.a(r,c.end+1));o=c?c.start+1:t.getLineMaxColumn(r)}else c&&!a&&o>=c.start+1&&(c=l._findNextWordOnLine(e,t,new s.a(r,c.end+1))),o=c?c.start+1:t.getLineMaxColumn(r);return new s.a(r,o)}static _moveWordPartRight(e,t){const n=t.lineNumber,r=e.getLineMaxColumn(n);if(t.column===r)return n<e.getLineCount()?new s.a(n+1,1):t;const o=e.getLineContent(n);for(let e=t.column+1;e<r;e++){const t=o.charCodeAt(e-2),a=o.charCodeAt(e-1);if(95!==t&&95===a)return new s.a(n,e);if(i.H(t)&&i.I(a))return new s.a(n,e);if(i.I(t)&&i.I(a)&&e+1<r){const t=o.charCodeAt(e);if(i.H(t))return new s.a(n,e)}}return new s.a(n,r)}static _deleteWordLeftWhitespace(e,t){const n=e.getLineContent(t.lineNumber),r=t.column-2,o=i.J(n,r);return o+1<r?new a.a(t.lineNumber,o+2,t.lineNumber,t.column):null}static deleteWordLeft(e,t,n,i,r){if(!n.isEmpty())return n;const o=new s.a(n.positionLineNumber,n.positionColumn);let c=o.lineNumber,d=o.column;if(1===c&&1===d)return null;if(i){let e=this._deleteWordLeftWhitespace(t,o);if(e)return e}let u=l._findPreviousWordOnLine(e,t,o);return 0===r?u?d=u.start+1:d>1?d=1:(c--,d=t.getLineMaxColumn(c)):(u&&d<=u.end+1&&(u=l._findPreviousWordOnLine(e,t,new s.a(c,u.start+1))),u?d=u.end+1:d>1?d=1:(c--,d=t.getLineMaxColumn(c))),new a.a(c,d,o.lineNumber,o.column)}static _deleteWordPartLeft(e,t){if(!t.isEmpty())return t;const n=t.getPosition(),i=l._moveWordPartLeft(e,n);return new a.a(n.lineNumber,n.column,i.lineNumber,i.column)}static _findFirstNonWhitespaceChar(e,t){let n=e.length;for(let i=t;i<n;i++){let t=e.charAt(i);if(" "!==t&&"\t"!==t)return i}return n}static _deleteWordRightWhitespace(e,t){const n=e.getLineContent(t.lineNumber),i=t.column-1,r=this._findFirstNonWhitespaceChar(n,i);return i+1<r?new a.a(t.lineNumber,t.column,t.lineNumber,r+1):null}static deleteWordRight(e,t,n,i,r){if(!n.isEmpty())return n;const o=new s.a(n.positionLineNumber,n.positionColumn);let c=o.lineNumber,d=o.column;const u=t.getLineCount(),h=t.getLineMaxColumn(c);if(c===u&&d===h)return null;if(i){let e=this._deleteWordRightWhitespace(t,o);if(e)return e}let f=l._findNextWordOnLine(e,t,o);return 2===r?f?d=f.end+1:d<h||c===u?d=h:(c++,d=(f=l._findNextWordOnLine(e,t,new s.a(c,1)))?f.start+1:t.getLineMaxColumn(c)):(f&&d>=f.start+1&&(f=l._findNextWordOnLine(e,t,new s.a(c,f.end+1))),f?d=f.start+1:d<h||c===u?d=h:(c++,d=(f=l._findNextWordOnLine(e,t,new s.a(c,1)))?f.start+1:t.getLineMaxColumn(c))),new a.a(c,d,o.lineNumber,o.column)}static _deleteWordPartRight(e,t){if(!t.isEmpty())return t;const n=t.getPosition(),i=l._moveWordPartRight(e,n);return new a.a(n.lineNumber,n.column,i.lineNumber,i.column)}static _createWordAtPosition(e,t,n){const i=new a.a(t,n.start+1,t,n.end+1);return{word:e.getValueInRange(i),startColumn:i.startColumn,endColumn:i.endColumn}}static getWordAtPosition(e,t,n){const i=Object(o.a)(t),r=l._findPreviousWordOnLine(i,e,n);if(r&&1===r.wordType&&r.start<=n.column-1&&n.column-1<=r.end)return l._createWordAtPosition(e,n.lineNumber,r);const s=l._findNextWordOnLine(i,e,n);return s&&1===s.wordType&&s.start<=n.column-1&&n.column-1<=s.end?l._createWordAtPosition(e,n.lineNumber,s):null}static word(e,t,n,i,c){const d=Object(o.a)(e.wordSeparators);let u,h,f=l._findPreviousWordOnLine(d,t,c),g=l._findNextWordOnLine(d,t,c);if(!i){let e,n;return f&&1===f.wordType&&f.start<=c.column-1&&c.column-1<=f.end?(e=f.start+1,n=f.end+1):g&&1===g.wordType&&g.start<=c.column-1&&c.column-1<=g.end?(e=g.start+1,n=g.end+1):(e=f?f.end+1:1,n=g?g.start+1:t.getLineMaxColumn(c.lineNumber)),new r.f(new a.a(c.lineNumber,e,c.lineNumber,n),0,new s.a(c.lineNumber,n),0)}f&&1===f.wordType&&f.start<c.column-1&&c.column-1<f.end?(u=f.start+1,h=f.end+1):g&&1===g.wordType&&g.start<c.column-1&&c.column-1<g.end?(u=g.start+1,h=g.end+1):(u=c.column,h=c.column);let p,m=c.lineNumber;if(n.selectionStart.containsPosition(c))p=n.selectionStart.endColumn;else if(c.isBeforeOrEqual(n.selectionStart.getStartPosition())){p=u;let e=new s.a(m,p);n.selectionStart.containsPosition(e)&&(p=n.selectionStart.endColumn)}else{p=h;let e=new s.a(m,p);n.selectionStart.containsPosition(e)&&(p=n.selectionStart.startColumn)}return n.move(!0,m,p,0)}}class c extends l{static deleteWordPartLeft(e,t,n,i){const r=d([l.deleteWordLeft(e,t,n,i,0),l.deleteWordLeft(e,t,n,i,2),l._deleteWordPartLeft(t,n)]);return r.sort(a.a.compareRangesUsingEnds),r[2]}static deleteWordPartRight(e,t,n,i){const r=d([l.deleteWordRight(e,t,n,i,0),l.deleteWordRight(e,t,n,i,2),l._deleteWordPartRight(t,n)]);return r.sort(a.a.compareRangesUsingStarts),r[0]}static moveWordPartLeft(e,t,n){const i=d([l.moveWordLeft(e,t,n,0),l.moveWordLeft(e,t,n,2),l._moveWordPartLeft(t,n)]);return i.sort(s.a.compare),i[2]}static moveWordPartRight(e,t,n){const i=d([l.moveWordRight(e,t,n,0),l.moveWordRight(e,t,n,2),l._moveWordPartRight(t,n)]);return i.sort(s.a.compare),i[0]}}function d(e){return e.filter(e=>Boolean(e))}},function(e,t,n){"use strict";n.d(t,"d",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return l})),n.d(t,"c",(function(){return g}));class i{constructor(){this.value="",this.pos=0}static isDigitCharacter(e){return e>=48&&e<=57}static isVariableCharacter(e){return 95===e||e>=97&&e<=122||e>=65&&e<=90}text(e){this.value=e,this.pos=0}tokenText(e){return this.value.substr(e.pos,e.len)}next(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};let e,t=this.pos,n=0,r=this.value.charCodeAt(t);if("number"==typeof(e=i._table[r]))return this.pos+=1,{type:e,pos:t,len:1};if(i.isDigitCharacter(r)){e=8;do{n+=1,r=this.value.charCodeAt(t+n)}while(i.isDigitCharacter(r));return this.pos+=n,{type:e,pos:t,len:n}}if(i.isVariableCharacter(r)){e=9;do{r=this.value.charCodeAt(t+ ++n)}while(i.isVariableCharacter(r)||i.isDigitCharacter(r));return this.pos+=n,{type:e,pos:t,len:n}}e=10;do{n+=1,r=this.value.charCodeAt(t+n)}while(!isNaN(r)&&void 0===i._table[r]&&!i.isDigitCharacter(r)&&!i.isVariableCharacter(r));return this.pos+=n,{type:e,pos:t,len:n}}}i._table={36:0,58:1,44:2,123:3,125:4,92:5,47:6,124:7,43:11,45:12,63:13};class r{constructor(){this._children=[]}appendChild(e){return e instanceof o&&this._children[this._children.length-1]instanceof o?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this}replace(e,t){const{parent:n}=e,i=n.children.indexOf(e),r=n.children.slice(0);r.splice(i,1,...t),n._children=r,function e(t,n){for(const i of t)i.parent=n,e(i.children,i)}(t,n)}get children(){return this._children}get snippet(){let e=this;for(;;){if(!e)return;if(e instanceof f)return e;e=e.parent}}toString(){return this.children.reduce((e,t)=>e+t.toString(),"")}len(){return 0}}class o extends r{constructor(e){super(),this.value=e}toString(){return this.value}len(){return this.value.length}clone(){return new o(this.value)}}class s extends r{}class a extends s{constructor(e){super(),this.index=e}static compareByIndex(e,t){return e.index===t.index?0:e.isFinalTabstop?1:t.isFinalTabstop?-1:e.index<t.index?-1:e.index>t.index?1:0}get isFinalTabstop(){return 0===this.index}get choice(){return 1===this._children.length&&this._children[0]instanceof l?this._children[0]:void 0}clone(){let e=new a(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(e=>e.clone()),e}}class l extends r{constructor(){super(...arguments),this.options=[]}appendChild(e){return e instanceof o&&(e.parent=this,this.options.push(e)),this}toString(){return this.options[0].value}len(){return this.options[0].len()}clone(){let e=new l;return this.options.forEach(e.appendChild,e),e}}class c extends r{constructor(){super(...arguments),this.regexp=new RegExp("")}resolve(e){const t=this;let n=!1,i=e.replace(this.regexp,(function(){return n=!0,t._replace(Array.prototype.slice.call(arguments,0,-2))}));return!n&&this._children.some(e=>e instanceof d&&Boolean(e.elseValue))&&(i=this._replace([])),i}_replace(e){let t="";for(const n of this._children)if(n instanceof d){let i=e[n.index]||"";t+=i=n.resolve(i)}else t+=n.toString();return t}toString(){return""}clone(){let e=new c;return e.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),e._children=this.children.map(e=>e.clone()),e}}class d extends r{constructor(e,t,n,i){super(),this.index=e,this.shorthandName=t,this.ifValue=n,this.elseValue=i}resolve(e){return"upcase"===this.shorthandName?e?e.toLocaleUpperCase():"":"downcase"===this.shorthandName?e?e.toLocaleLowerCase():"":"capitalize"===this.shorthandName?e?e[0].toLocaleUpperCase()+e.substr(1):"":"pascalcase"===this.shorthandName?e?this._toPascalCase(e):"":Boolean(e)&&"string"==typeof this.ifValue?this.ifValue:Boolean(e)||"string"!=typeof this.elseValue?e||"":this.elseValue}_toPascalCase(e){const t=e.match(/[a-z]+/gi);return t?t.map((function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()})).join(""):e}clone(){return new d(this.index,this.shorthandName,this.ifValue,this.elseValue)}}class u extends s{constructor(e){super(),this.name=e}resolve(e){let t=e.resolve(this);return this.transform&&(t=this.transform.resolve(t||"")),void 0!==t&&(this._children=[new o(t)],!0)}clone(){const e=new u(this.name);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(e=>e.clone()),e}}function h(e,t){const n=[...e];for(;n.length>0;){const e=n.shift();if(!t(e))break;n.unshift(...e.children)}}class f extends r{get placeholderInfo(){if(!this._placeholders){let e,t=[];this.walk((function(n){return n instanceof a&&(t.push(n),e=!e||e.index<n.index?n:e),!0})),this._placeholders={all:t,last:e}}return this._placeholders}get placeholders(){const{all:e}=this.placeholderInfo;return e}offset(e){let t=0,n=!1;return this.walk(i=>i===e?(n=!0,!1):(t+=i.len(),!0)),n?t:-1}fullLen(e){let t=0;return h([e],e=>(t+=e.len(),!0)),t}enclosingPlaceholders(e){let t=[],{parent:n}=e;for(;n;)n instanceof a&&t.push(n),n=n.parent;return t}resolveVariables(e){return this.walk(t=>(t instanceof u&&t.resolve(e)&&(this._placeholders=void 0),!0)),this}appendChild(e){return this._placeholders=void 0,super.appendChild(e)}replace(e,t){return this._placeholders=void 0,super.replace(e,t)}clone(){let e=new f;return this._children=this.children.map(e=>e.clone()),e}walk(e){h(this.children,e)}}class g{constructor(){this._scanner=new i,this._token={type:14,pos:0,len:0}}static escape(e){return e.replace(/\$|}|\\/g,"\\$&")}static guessNeedsClipboard(e){return/\${?CLIPBOARD/.test(e)}parse(e,t,n){this._scanner.text(e),this._token=this._scanner.next();const i=new f;for(;this._parse(i););const r=new Map,o=[];let s=0;i.walk(e=>(e instanceof a&&(s+=1,e.isFinalTabstop?r.set(0,void 0):!r.has(e.index)&&e.children.length>0?r.set(e.index,e.children):o.push(e)),!0));for(const e of o){const t=r.get(e.index);if(t){const n=new a(e.index);n.transform=e.transform;for(const e of t)n.appendChild(e.clone());i.replace(e,[n])}}return n||(n=s>0&&t),!r.has(0)&&n&&i.appendChild(new a(0)),i}_accept(e,t){if(void 0===e||this._token.type===e){let e=!t||this._scanner.tokenText(this._token);return this._token=this._scanner.next(),e}return!1}_backTo(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1}_until(e){const t=this._token;for(;this._token.type!==e;){if(14===this._token.type)return!1;if(5===this._token.type){const e=this._scanner.next();if(0!==e.type&&4!==e.type&&5!==e.type)return!1}this._token=this._scanner.next()}const n=this._scanner.value.substring(t.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),n}_parse(e){return this._parseEscaped(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e)}_parseEscaped(e){let t;return!!(t=this._accept(5,!0))&&(t=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||t,e.appendChild(new o(t)),!0)}_parseTabstopOrVariableName(e){let t;const n=this._token;return this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0))?(e.appendChild(/^\d+$/.test(t)?new a(Number(t)):new u(t)),!0):this._backTo(n)}_parseComplexPlaceholder(e){let t;const n=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0))))return this._backTo(n);const i=new a(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(i),!0;if(!this._parse(i))return e.appendChild(new o("${"+t+":")),i.children.forEach(e.appendChild,e),!0}else{if(!(i.index>0&&this._accept(7)))return this._accept(6)?this._parseTransform(i)?(e.appendChild(i),!0):(this._backTo(n),!1):this._accept(4)?(e.appendChild(i),!0):this._backTo(n);{const t=new l;for(;;){if(this._parseChoiceElement(t)){if(this._accept(2))continue;if(this._accept(7)&&(i.appendChild(t),this._accept(4)))return e.appendChild(i),!0}return this._backTo(n),!1}}}}_parseChoiceElement(e){const t=this._token,n=[];for(;2!==this._token.type&&7!==this._token.type;){let e;if(!(e=(e=this._accept(5,!0))?this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||e:this._accept(void 0,!0)))return this._backTo(t),!1;n.push(e)}return 0===n.length?(this._backTo(t),!1):(e.appendChild(new o(n.join(""))),!0)}_parseComplexVariable(e){let t;const n=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0))))return this._backTo(n);const i=new u(t);if(!this._accept(1))return this._accept(6)?this._parseTransform(i)?(e.appendChild(i),!0):(this._backTo(n),!1):this._accept(4)?(e.appendChild(i),!0):this._backTo(n);for(;;){if(this._accept(4))return e.appendChild(i),!0;if(!this._parse(i))return e.appendChild(new o("${"+t+":")),i.children.forEach(e.appendChild,e),!0}}_parseTransform(e){let t=new c,n="",i="";for(;!this._accept(6);){let e;if(e=this._accept(5,!0))n+=e=this._accept(6,!0)||e;else{if(14===this._token.type)return!1;n+=this._accept(void 0,!0)}}for(;!this._accept(6);){let e;if(e=this._accept(5,!0))e=this._accept(5,!0)||this._accept(6,!0)||e,t.appendChild(new o(e));else if(!this._parseFormatString(t)&&!this._parseAnything(t))return!1}for(;!this._accept(4);){if(14===this._token.type)return!1;i+=this._accept(void 0,!0)}try{t.regexp=new RegExp(n,i)}catch(e){return!1}return e.transform=t,!0}_parseFormatString(e){const t=this._token;if(!this._accept(0))return!1;let n=!1;this._accept(3)&&(n=!0);let i=this._accept(8,!0);if(!i)return this._backTo(t),!1;if(!n)return e.appendChild(new d(Number(i))),!0;if(this._accept(4))return e.appendChild(new d(Number(i))),!0;if(!this._accept(1))return this._backTo(t),!1;if(this._accept(6)){let n=this._accept(9,!0);return n&&this._accept(4)?(e.appendChild(new d(Number(i),n)),!0):(this._backTo(t),!1)}if(this._accept(11)){let t=this._until(4);if(t)return e.appendChild(new d(Number(i),void 0,t,void 0)),!0}else if(this._accept(12)){let t=this._until(4);if(t)return e.appendChild(new d(Number(i),void 0,void 0,t)),!0}else if(this._accept(13)){let t=this._until(1);if(t){let n=this._until(4);if(n)return e.appendChild(new d(Number(i),void 0,t,n)),!0}}else{let t=this._until(4);if(t)return e.appendChild(new d(Number(i),void 0,void 0,t)),!0}return this._backTo(t),!1}_parseAnything(e){return 14!==this._token.type&&(e.appendChild(new o(this._scanner.tokenText(this._token))),this._accept(void 0),!0)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var i=n(8),r=n(23),o=n(3),s=n(22),a=n(32);const l=Object.create(null);function c(e,t){l[e]||(l[e]=["",e]);const n=l[e];for(let i=n.length;i<=t;i++)n[i]=n[i-1]+e;return n[t]}class d{constructor(e,t){this._opts=t,this._selection=e,this._selectionId=null,this._useLastEditRangeForCursorEndPosition=!1,this._selectionStartColumnStaysPut=!1}static unshiftIndent(e,t,n,i,o){const s=r.a.visibleColumnFromColumn(e,t,n);if(o){const e=c(" ",i);return c(e,r.a.prevIndentTabStop(s,i)/i)}return c("\t",r.a.prevRenderTabStop(s,n)/n)}static shiftIndent(e,t,n,i,o){const s=r.a.visibleColumnFromColumn(e,t,n);if(o){const e=c(" ",i);return c(e,r.a.nextIndentTabStop(s,i)/i)}return c("\t",r.a.nextRenderTabStop(s,n)/n)}_addEditOperation(e,t,n){this._useLastEditRangeForCursorEndPosition?e.addTrackedEditOperation(t,n):e.addEditOperation(t,n)}getEditOperations(e,t){const n=this._selection.startLineNumber;let s=this._selection.endLineNumber;1===this._selection.endColumn&&n!==s&&(s-=1);const{tabSize:l,indentSize:u,insertSpaces:h}=this._opts,f=n===s;if(this._opts.useTabStops){this._selection.isEmpty()&&/^\s*$/.test(e.getLineContent(n))&&(this._useLastEditRangeForCursorEndPosition=!0);let c=0,g=0;for(let p=n;p<=s;p++,c=g){g=0;let s,m=e.getLineContent(p),_=i.w(m);if((!this._opts.isUnshift||0!==m.length&&0!==_)&&(f||this._opts.isUnshift||0!==m.length)){if(-1===_&&(_=m.length),p>1){if(r.a.visibleColumnFromColumn(m,_+1,l)%u!=0&&e.isCheapToTokenize(p-1)){let t=a.a.getEnterAction(this._opts.autoIndent,e,new o.a(p-1,e.getLineMaxColumn(p-1),p-1,e.getLineMaxColumn(p-1)));if(t){if(g=c,t.appendText)for(let e=0,n=t.appendText.length;e<n&&g<u&&32===t.appendText.charCodeAt(e);e++)g++;t.removeText&&(g=Math.max(0,g-t.removeText));for(let e=0;e<g&&(0!==_&&32===m.charCodeAt(_-1));e++)_--}}}this._opts.isUnshift&&0===_||(s=this._opts.isUnshift?d.unshiftIndent(m,_+1,l,u,h):d.shiftIndent(m,_+1,l,u,h),this._addEditOperation(t,new o.a(p,1,p,_+1),s),p!==n||this._selection.isEmpty()||(this._selectionStartColumnStaysPut=this._selection.startColumn<=_+1))}}}else{!this._opts.isUnshift&&this._selection.isEmpty()&&0===e.getLineLength(n)&&(this._useLastEditRangeForCursorEndPosition=!0);const r=h?c(" ",u):"\t";for(let a=n;a<=s;a++){const s=e.getLineContent(a);let l=i.w(s);if((!this._opts.isUnshift||0!==s.length&&0!==l)&&((f||this._opts.isUnshift||0!==s.length)&&(-1===l&&(l=s.length),!this._opts.isUnshift||0!==l)))if(this._opts.isUnshift){l=Math.min(l,u);for(let e=0;e<l;e++){if(9===s.charCodeAt(e)){l=e+1;break}}this._addEditOperation(t,new o.a(a,1,a,l+1),"")}else this._addEditOperation(t,new o.a(a,1,a,1),r),a!==n||this._selection.isEmpty()||(this._selectionStartColumnStaysPut=1===this._selection.startColumn)}}this._selectionId=t.trackSelection(this._selection)}computeCursorState(e,t){if(this._useLastEditRangeForCursorEndPosition){let e=t.getInverseEditOperations()[0];return new s.a(e.range.endLineNumber,e.range.endColumn,e.range.endLineNumber,e.range.endColumn)}const n=t.getTrackedSelection(this._selectionId);if(this._selectionStartColumnStaysPut){let e=this._selection.startColumn;return n.startColumn<=e?n:0===n.getDirection()?new s.a(n.startLineNumber,e,n.endLineNumber,n.endColumn):new s.a(n.endLineNumber,n.endColumn,n.startLineNumber,e)}return n}}},function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return l})),n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return d}));var i=n(8),r=n(12),o=n(62);let s;function a(){return s||(s=new TextDecoder(r.e()?"UTF-16LE":"UTF-16BE")),s}const l="undefined"!=typeof TextDecoder;let c,d;l?(c=e=>new u(e),d=function(e,t,n){const i=new Uint16Array(e.buffer,t,n);return a().decode(i)}):(c=e=>new h,d=function(e,t,n){let i=[],r=0;for(let s=0;s<n;s++){const n=o.b(e,t);t+=2,i[r++]=String.fromCharCode(n)}return i.join("")});class u{constructor(e){this._capacity=0|e,this._buffer=new Uint16Array(this._capacity),this._completedStrings=null,this._bufferLength=0}reset(){this._completedStrings=null,this._bufferLength=0}build(){return null!==this._completedStrings?(this._flushBuffer(),this._completedStrings.join("")):this._buildBuffer()}_buildBuffer(){if(0===this._bufferLength)return"";const e=new Uint16Array(this._buffer.buffer,0,this._bufferLength);return a().decode(e)}_flushBuffer(){const e=this._buildBuffer();this._bufferLength=0,null===this._completedStrings?this._completedStrings=[e]:this._completedStrings[this._completedStrings.length]=e}write1(e){const t=this._capacity-this._bufferLength;t<=1&&(0===t||i.F(e))&&this._flushBuffer(),this._buffer[this._bufferLength++]=e}appendASCII(e){this._bufferLength===this._capacity&&this._flushBuffer(),this._buffer[this._bufferLength++]=e}appendASCIIString(e){const t=e.length;if(this._bufferLength+t>=this._capacity)return this._flushBuffer(),void(this._completedStrings[this._completedStrings.length]=e);for(let n=0;n<t;n++)this._buffer[this._bufferLength++]=e.charCodeAt(n)}}class h{constructor(){this._pieces=[],this._piecesLen=0}reset(){this._pieces=[],this._piecesLen=0}build(){return this._pieces.join("")}write1(e){this._pieces[this._piecesLen++]=String.fromCharCode(e)}appendASCII(e){this._pieces[this._piecesLen++]=String.fromCharCode(e)}appendASCIIString(e){this._pieces[this._piecesLen++]=e}}},function(e,t,n){"use strict";function i(e){const t=this;let n,i=!1;return function(){return i?n:(i=!0,n=e.apply(t,arguments))}}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var i,r=n(46),o=n(14),s=n(2);!function(e){e[e.PRESERVE=0]="PRESERVE",e[e.LAST=1]="LAST"}(i||(i={}));const a={Quickaccess:"workbench.contributions.quickaccess"};r.a.add(a.Quickaccess,new class{constructor(){this.providers=[],this.defaultProvider=void 0}registerQuickAccessProvider(e){return 0===e.prefix.length?this.defaultProvider=e:this.providers.push(e),this.providers.sort((e,t)=>t.prefix.length-e.prefix.length),Object(s.h)(()=>{this.providers.splice(this.providers.indexOf(e),1),this.defaultProvider===e&&(this.defaultProvider=void 0)})}getQuickAccessProviders(){return Object(o.d)([this.defaultProvider,...this.providers])}getQuickAccessProvider(e){return e&&this.providers.find(t=>e.startsWith(t.prefix))||void 0||this.defaultProvider}})},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n(6);const r=new class{constructor(){this._zoomLevel=0,this._onDidChangeZoomLevel=new i.a,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}getZoomLevel(){return this._zoomLevel}setZoomLevel(e){e=Math.min(Math.max(-5,e),20),this._zoomLevel!==e&&(this._zoomLevel=e,this._onDidChangeZoomLevel.fire(this._zoomLevel))}}},function(e,t,n){"use strict";var i=n(1),r=(n(347),n(2)),o=n(14),s=n(101),a=n(6),l=n(26);class c{constructor(e,t){this.renderer=e,this.modelProvider=t}get templateId(){return this.renderer.templateId}renderTemplate(e){return{data:this.renderer.renderTemplate(e),disposable:r.a.None}}renderElement(e,t,n,i){if(n.disposable&&n.disposable.dispose(),!n.data)return;const r=this.modelProvider();if(r.isResolved(e))return this.renderer.renderElement(r.get(e),e,n.data,i);const o=new l.b,s=r.resolve(e,o.token);n.disposable={dispose:()=>o.cancel()},this.renderer.renderPlaceholder(e,n.data),s.then(t=>this.renderer.renderElement(t,e,n.data,i))}disposeTemplate(e){e.disposable&&(e.disposable.dispose(),e.disposable=void 0),e.data&&(this.renderer.disposeTemplate(e.data),e.data=void 0)}}class d{constructor(e,t){this.modelProvider=e,this.accessibilityProvider=t}getWidgetAriaLabel(){return this.accessibilityProvider.getWidgetAriaLabel()}getAriaLabel(e){const t=this.modelProvider();return t.isResolved(e)?this.accessibilityProvider.getAriaLabel(t.get(e)):null}}var u=n(0),h=n(43),f=n(120),g=n(9),p=n(17),m=n(41),_=n(46),b=n(82),v=n(18);var y,w=n(38),C=(n(610),n(56));!function(e){e[e.Unknown=0]="Unknown",e[e.Twistie=1]="Twistie",e[e.Element=2]="Element"}(y||(y={}));class S extends Error{constructor(e,t){super(`TreeError [${e}] ${t}`)}}class k{constructor(e){this.fn=e,this._map=new WeakMap}map(e){let t=this._map.get(e);return t||(t=this.fn(e),this._map.set(e,t)),t}}var x=n(115),L=n(177),M=n(34),D=n(61);function E(e){return"object"==typeof e&&"visibility"in e&&"data"in e}function T(e){switch(e){case!0:return 1;case!1:return 0;default:return e}}function O(e){return"boolean"==typeof e.collapsible}class N{constructor(e,t,n,i={}){this.user=e,this.list=t,this.rootRef=[],this.eventBufferer=new a.c,this._onDidChangeCollapseState=new a.a,this.onDidChangeCollapseState=this.eventBufferer.wrapEvent(this._onDidChangeCollapseState.event),this._onDidChangeRenderNodeCount=new a.a,this.onDidChangeRenderNodeCount=this.eventBufferer.wrapEvent(this._onDidChangeRenderNodeCount.event),this._onDidSplice=new a.a,this.onDidSplice=this._onDidSplice.event,this.collapseByDefault=void 0!==i.collapseByDefault&&i.collapseByDefault,this.filter=i.filter,this.autoExpandSingleChildren=void 0!==i.autoExpandSingleChildren&&i.autoExpandSingleChildren,this.root={parent:void 0,element:n,children:[],depth:0,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:!1,collapsed:!1,renderNodeCount:0,visibility:1,visible:!0,filterData:void 0}}splice(e,t,n=w.a.empty(),i,r){if(0===e.length)throw new S(this.user,"Invalid tree location");const{parentNode:o,listIndex:s,revealed:a,visible:l}=this.getParentNodeWithListIndex(e),c=[],d=w.a.map(n,e=>this.createTreeNode(e,o,o.visible?1:0,a,c,i)),u=e[e.length-1];let h=0;for(let e=u;e>=0&&e<o.children.length;e--){const t=o.children[e];if(t.visible){h=t.visibleChildIndex;break}}const f=[];let g=0,p=0;for(const e of d)f.push(e),p+=e.renderNodeCount,e.visible&&(e.visibleChildIndex=h+g++);const m=o.children.splice(u,t,...f);let _=0;for(const e of m)e.visible&&_++;if(0!==_)for(let e=u+f.length;e<o.children.length;e++){const t=o.children[e];t.visible&&(t.visibleChildIndex-=_)}if(o.visibleChildrenCount+=g-_,a&&l){const e=m.reduce((e,t)=>e+(t.visible?t.renderNodeCount:0),0);this._updateAncestorsRenderNodeCount(o,p-e),this.list.splice(s,e,c)}if(m.length>0&&r){const e=t=>{r(t),t.children.forEach(e)};m.forEach(e)}this._onDidSplice.fire({insertedNodes:f,deletedNodes:m});let b=o;for(;b;){if(2===b.visibility){this.refilter();break}b=b.parent}}rerender(e){if(0===e.length)throw new S(this.user,"Invalid tree location");const{node:t,listIndex:n,revealed:i}=this.getTreeNodeWithListIndex(e);t.visible&&i&&this.list.splice(n,1,[t])}has(e){return this.hasTreeNode(e)}getListIndex(e){const{listIndex:t,visible:n,revealed:i}=this.getTreeNodeWithListIndex(e);return n&&i?t:-1}getListRenderCount(e){return this.getTreeNode(e).renderNodeCount}isCollapsible(e){return this.getTreeNode(e).collapsible}setCollapsible(e,t){const n=this.getTreeNode(e);void 0===t&&(t=!n.collapsible);const i={collapsible:t};return this.eventBufferer.bufferEvents(()=>this._setCollapseState(e,i))}isCollapsed(e){return this.getTreeNode(e).collapsed}setCollapsed(e,t,n){const i=this.getTreeNode(e);void 0===t&&(t=!i.collapsed);const r={collapsed:t,recursive:n||!1};return this.eventBufferer.bufferEvents(()=>this._setCollapseState(e,r))}_setCollapseState(e,t){const{node:n,listIndex:i,revealed:r}=this.getTreeNodeWithListIndex(e),o=this._setListNodeCollapseState(n,i,r,t);if(n!==this.root&&this.autoExpandSingleChildren&&o&&!O(t)&&n.collapsible&&!n.collapsed&&!t.recursive){let i=-1;for(let e=0;e<n.children.length;e++){if(n.children[e].visible){if(i>-1){i=-1;break}i=e}}i>-1&&this._setCollapseState([...e,i],t)}return o}_setListNodeCollapseState(e,t,n,i){const r=this._setNodeCollapseState(e,i,!1);if(!n||!e.visible||!r)return r;const o=e.renderNodeCount,s=this.updateNodeAfterCollapseChange(e),a=o-(-1===t?0:1);return this.list.splice(t+1,a,s.slice(1)),r}_setNodeCollapseState(e,t,n){let i;if(e===this.root?i=!1:(O(t)?(i=e.collapsible!==t.collapsible,e.collapsible=t.collapsible):e.collapsible?(i=e.collapsed!==t.collapsed,e.collapsed=t.collapsed):i=!1,i&&this._onDidChangeCollapseState.fire({node:e,deep:n})),!O(t)&&t.recursive)for(const n of e.children)i=this._setNodeCollapseState(n,t,!0)||i;return i}expandTo(e){this.eventBufferer.bufferEvents(()=>{let t=this.getTreeNode(e);for(;t.parent;)t=t.parent,e=e.slice(0,e.length-1),t.collapsed&&this._setCollapseState(e,{collapsed:!1,recursive:!1})})}refilter(){const e=this.root.renderNodeCount,t=this.updateNodeAfterFilterChange(this.root);this.list.splice(0,e,t)}createTreeNode(e,t,n,i,r,o){const s={parent:t,element:e.element,children:[],depth:t.depth+1,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:"boolean"==typeof e.collapsible?e.collapsible:void 0!==e.collapsed,collapsed:void 0===e.collapsed?this.collapseByDefault:e.collapsed,renderNodeCount:1,visibility:1,visible:!0,filterData:void 0},a=this._filterNode(s,n);s.visibility=a,i&&r.push(s);const l=e.children||w.a.empty(),c=i&&0!==a&&!s.collapsed,d=w.a.map(l,e=>this.createTreeNode(e,s,a,c,r,o));let u=0,h=1;for(const e of d)s.children.push(e),h+=e.renderNodeCount,e.visible&&(e.visibleChildIndex=u++);return s.collapsible=s.collapsible||s.children.length>0,s.visibleChildrenCount=u,s.visible=2===a?u>0:1===a,s.visible?s.collapsed||(s.renderNodeCount=h):(s.renderNodeCount=0,i&&r.pop()),o&&o(s),s}updateNodeAfterCollapseChange(e){const t=e.renderNodeCount,n=[];return this._updateNodeAfterCollapseChange(e,n),this._updateAncestorsRenderNodeCount(e.parent,n.length-t),n}_updateNodeAfterCollapseChange(e,t){if(!1===e.visible)return 0;if(t.push(e),e.renderNodeCount=1,!e.collapsed)for(const n of e.children)e.renderNodeCount+=this._updateNodeAfterCollapseChange(n,t);return this._onDidChangeRenderNodeCount.fire(e),e.renderNodeCount}updateNodeAfterFilterChange(e){const t=e.renderNodeCount,n=[];return this._updateNodeAfterFilterChange(e,e.visible?1:0,n),this._updateAncestorsRenderNodeCount(e.parent,n.length-t),n}_updateNodeAfterFilterChange(e,t,n,i=!0){let r;if(e!==this.root){if(0===(r=this._filterNode(e,t)))return e.visible=!1,e.renderNodeCount=0,!1;i&&n.push(e)}const o=n.length;e.renderNodeCount=e===this.root?0:1;let s=!1;if(e.collapsed&&0===r)e.visibleChildrenCount=0;else{let t=0;for(const o of e.children)s=this._updateNodeAfterFilterChange(o,r,n,i&&!e.collapsed)||s,o.visible&&(o.visibleChildIndex=t++);e.visibleChildrenCount=t}return e!==this.root&&(e.visible=2===r?s:1===r),e.visible?e.collapsed||(e.renderNodeCount+=n.length-o):(e.renderNodeCount=0,i&&n.pop()),this._onDidChangeRenderNodeCount.fire(e),e.visible}_updateAncestorsRenderNodeCount(e,t){if(0!==t)for(;e;)e.renderNodeCount+=t,this._onDidChangeRenderNodeCount.fire(e),e=e.parent}_filterNode(e,t){const n=this.filter?this.filter.filter(e.element,t):1;return"boolean"==typeof n?(e.filterData=void 0,n?1:0):E(n)?(e.filterData=n.data,T(n.visibility)):(e.filterData=void 0,T(n))}hasTreeNode(e,t=this.root){if(!e||0===e.length)return!0;const[n,...i]=e;return!(n<0||n>t.children.length)&&this.hasTreeNode(i,t.children[n])}getTreeNode(e,t=this.root){if(!e||0===e.length)return t;const[n,...i]=e;if(n<0||n>t.children.length)throw new S(this.user,"Invalid tree location");return this.getTreeNode(i,t.children[n])}getTreeNodeWithListIndex(e){if(0===e.length)return{node:this.root,listIndex:-1,revealed:!0,visible:!1};const{parentNode:t,listIndex:n,revealed:i,visible:r}=this.getParentNodeWithListIndex(e),o=e[e.length-1];if(o<0||o>t.children.length)throw new S(this.user,"Invalid tree location");const s=t.children[o];return{node:s,listIndex:n,revealed:i,visible:r&&s.visible}}getParentNodeWithListIndex(e,t=this.root,n=0,i=!0,r=!0){const[o,...s]=e;if(o<0||o>t.children.length)throw new S(this.user,"Invalid tree location");for(let e=0;e<o;e++)n+=t.children[e].renderNodeCount;return i=i&&!t.collapsed,r=r&&t.visible,0===s.length?{parentNode:t,listIndex:n,revealed:i,visible:r}:this.getParentNodeWithListIndex(s,t.children[o],n+1,i,r)}getNode(e=[]){return this.getTreeNode(e)}getNodeLocation(e){const t=[];let n=e;for(;n.parent;)t.push(n.parent.children.indexOf(n)),n=n.parent;return t.reverse()}getParentNodeLocation(e){return 0===e.length?void 0:1===e.length?[]:Object(o.u)(e)[0]}}var I=n(19),A=n(12),R=n(106),P=n(265),j=n(16);const F=Object(j.e)("tree-item-expanded",j.a.chevronDown),B=Object(j.e)("tree-filter-on-type-on",j.a.listFilter),W=Object(j.e)("tree-filter-on-type-off",j.a.listSelection),H=Object(j.e)("tree-filter-clear",j.a.close),Y=Object(j.e)("tree-item-loading",j.a.loading);class V extends L.a{constructor(e){super(e.elements.map(e=>e.element)),this.data=e}}function z(e){return e instanceof L.a?new V(e):e}class U{constructor(e,t){this.modelProvider=e,this.dnd=t,this.autoExpandDisposable=r.a.None}getDragURI(e){return this.dnd.getDragURI(e.element)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map(e=>e.element),t)}onDragStart(e,t){this.dnd.onDragStart&&this.dnd.onDragStart(z(e),t)}onDragOver(e,t,n,i,r=!0){const s=this.dnd.onDragOver(z(e),t&&t.element,n,i),a=this.autoExpandNode!==t;if(a&&(this.autoExpandDisposable.dispose(),this.autoExpandNode=t),void 0===t)return s;if(a&&"boolean"!=typeof s&&s.autoExpand&&(this.autoExpandDisposable=Object(I.g)(()=>{const e=this.modelProvider(),n=e.getNodeLocation(t);e.isCollapsed(n)&&e.setCollapsed(n,!1),this.autoExpandNode=void 0},500)),"boolean"==typeof s||!s.accept||void 0===s.bubble||s.feedback){if(!r){return{accept:"boolean"==typeof s?s:s.accept,effect:"boolean"==typeof s?void 0:s.effect,feedback:[n]}}return s}if(1===s.bubble){const n=this.modelProvider(),r=n.getNodeLocation(t),o=n.getParentNodeLocation(r),s=n.getNode(o),a=o&&n.getListIndex(o);return this.onDragOver(e,s,a,i,!1)}const l=this.modelProvider(),c=l.getNodeLocation(t),d=l.getListIndex(c),u=l.getListRenderCount(c);return Object.assign(Object.assign({},s),{feedback:Object(o.s)(d,d+u)})}drop(e,t,n,i){this.autoExpandDisposable.dispose(),this.autoExpandNode=void 0,this.dnd.drop(z(e),t&&t.element,n,i)}onDragEnd(e){this.dnd.onDragEnd&&this.dnd.onDragEnd(e)}}class ${constructor(e){this.delegate=e}getHeight(e){return this.delegate.getHeight(e.element)}getTemplateId(e){return this.delegate.getTemplateId(e.element)}hasDynamicHeight(e){return!!this.delegate.hasDynamicHeight&&this.delegate.hasDynamicHeight(e.element)}setDynamicHeight(e,t){this.delegate.setDynamicHeight&&this.delegate.setDynamicHeight(e.element,t)}}var q;!function(e){e.None="none",e.OnHover="onHover",e.Always="always"}(q||(q={}));class K{constructor(e,t=[]){this._elements=t,this.onDidChange=a.b.forEach(e,e=>this._elements=e)}get elements(){return this._elements}}class G{constructor(e,t,n,i,o={}){this.renderer=e,this.modelProvider=t,this.activeNodes=i,this.renderedElements=new Map,this.renderedNodes=new Map,this.indent=G.DefaultIndent,this.hideTwistiesOfChildlessElements=!1,this.shouldRenderIndentGuides=!1,this.renderedIndentGuides=new P.a,this.activeIndentNodes=new Set,this.indentGuidesDisposable=r.a.None,this.disposables=new r.b,this.templateId=e.templateId,this.updateOptions(o),a.b.map(n,e=>e.node)(this.onDidChangeNodeTwistieState,this,this.disposables),e.onDidChangeTwistieState&&e.onDidChangeTwistieState(this.onDidChangeTwistieState,this,this.disposables)}updateOptions(e={}){if(void 0!==e.indent&&(this.indent=Object(R.b)(e.indent,0,40)),void 0!==e.renderIndentGuides){const t=e.renderIndentGuides!==q.None;if(t!==this.shouldRenderIndentGuides&&(this.shouldRenderIndentGuides=t,this.indentGuidesDisposable.dispose(),t)){const e=new r.b;this.activeNodes.onDidChange(this._onDidChangeActiveNodes,this,e),this.indentGuidesDisposable=e,this._onDidChangeActiveNodes(this.activeNodes.elements)}}void 0!==e.hideTwistiesOfChildlessElements&&(this.hideTwistiesOfChildlessElements=e.hideTwistiesOfChildlessElements)}renderTemplate(e){const t=Object(i.p)(e,Object(i.a)(".monaco-tl-row")),n=Object(i.p)(t,Object(i.a)(".monaco-tl-indent")),o=Object(i.p)(t,Object(i.a)(".monaco-tl-twistie")),s=Object(i.p)(t,Object(i.a)(".monaco-tl-contents")),a=this.renderer.renderTemplate(s);return{container:e,indent:n,twistie:o,indentGuidesDisposable:r.a.None,templateData:a}}renderElement(e,t,n,i){"number"==typeof i&&(this.renderedNodes.set(e,{templateData:n,height:i}),this.renderedElements.set(e.element,e));const r=G.DefaultIndent+(e.depth-1)*this.indent;n.twistie.style.paddingLeft=`${r}px`,n.indent.style.width=`${r+this.indent-16}px`,this.renderTwistie(e,n),"number"==typeof i&&this.renderIndentGuides(e,n),this.renderer.renderElement(e,t,n.templateData,i)}disposeElement(e,t,n,i){n.indentGuidesDisposable.dispose(),this.renderer.disposeElement&&this.renderer.disposeElement(e,t,n.templateData,i),"number"==typeof i&&(this.renderedNodes.delete(e),this.renderedElements.delete(e.element))}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}onDidChangeTwistieState(e){const t=this.renderedElements.get(e);t&&this.onDidChangeNodeTwistieState(t)}onDidChangeNodeTwistieState(e){const t=this.renderedNodes.get(e);t&&(this.renderTwistie(e,t.templateData),this._onDidChangeActiveNodes(this.activeNodes.elements),this.renderIndentGuides(e,t.templateData))}renderTwistie(e,t){this.renderer.renderTwistie&&this.renderer.renderTwistie(e.element,t.twistie),e.collapsible&&(!this.hideTwistiesOfChildlessElements||e.visibleChildrenCount>0)?(Object(i.f)(t.twistie,F.classNames,"collapsible"),Object(i.ab)(t.twistie,"collapsed",e.collapsed)):Object(i.R)(t.twistie,F.classNames,"collapsible","collapsed"),e.collapsible?t.container.setAttribute("aria-expanded",String(!e.collapsed)):t.container.removeAttribute("aria-expanded")}renderIndentGuides(e,t){if(Object(i.s)(t.indent),t.indentGuidesDisposable.dispose(),!this.shouldRenderIndentGuides)return;const n=new r.b,o=this.modelProvider();let s=e;for(;;){const e=o.getNodeLocation(s),a=o.getParentNodeLocation(e);if(!a)break;const l=o.getNode(a),c=Object(i.a)(".indent-guide",{style:`width: ${this.indent}px`});this.activeIndentNodes.has(l)&&Object(i.e)(c,"active"),0===t.indent.childElementCount?t.indent.appendChild(c):t.indent.insertBefore(c,t.indent.firstElementChild),this.renderedIndentGuides.add(l,c),n.add(Object(r.h)(()=>this.renderedIndentGuides.delete(l,c))),s=l}t.indentGuidesDisposable=n}_onDidChangeActiveNodes(e){if(!this.shouldRenderIndentGuides)return;const t=new Set,n=this.modelProvider();e.forEach(e=>{const i=n.getNodeLocation(e);try{const r=n.getParentNodeLocation(i);e.collapsible&&e.children.length>0&&!e.collapsed?t.add(e):r&&t.add(n.getNode(r))}catch(e){}}),this.activeIndentNodes.forEach(e=>{t.has(e)||this.renderedIndentGuides.forEach(e,e=>Object(i.Q)(e,"active"))}),t.forEach(e=>{this.activeIndentNodes.has(e)||this.renderedIndentGuides.forEach(e,e=>Object(i.e)(e,"active"))}),this.activeIndentNodes=t}dispose(){this.renderedNodes.clear(),this.renderedElements.clear(),this.indentGuidesDisposable.dispose(),Object(r.f)(this.disposables)}}G.DefaultIndent=8;class Z{constructor(e,t,n){this.tree=e,this.keyboardNavigationLabelProvider=t,this._filter=n,this._totalCount=0,this._matchCount=0,this._pattern="",this._lowercasePattern="",this.disposables=new r.b,e.onWillRefilter(this.reset,this,this.disposables)}get totalCount(){return this._totalCount}get matchCount(){return this._matchCount}set pattern(e){this._pattern=e,this._lowercasePattern=e.toLowerCase()}filter(e,t){if(this._filter){const n=this._filter.filter(e,t);if(this.tree.options.simpleKeyboardNavigation)return n;let i;if(0===(i="boolean"==typeof n?n?1:0:E(n)?T(n.visibility):n))return!1}if(this._totalCount++,this.tree.options.simpleKeyboardNavigation||!this._pattern)return this._matchCount++,{data:D.a.Default,visibility:!0};const n=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e),i=n&&n.toString();if(void 0===i)return{data:D.a.Default,visibility:!0};const r=Object(D.d)(this._pattern,this._lowercasePattern,0,i,i.toLowerCase(),0,!0);return r?(this._matchCount++,{data:r,visibility:!0}):this.tree.options.filterOnType?2:{data:D.a.Default,visibility:!0}}reset(){this._totalCount=0,this._matchCount=0}dispose(){Object(r.f)(this.disposables)}}class J{constructor(e,t,n,o,s){this.tree=e,this.view=n,this.filter=o,this.keyboardNavigationDelegate=s,this._enabled=!1,this._pattern="",this._empty=!1,this._onDidChangeEmptyState=new a.a,this.positionClassName="ne",this.automaticKeyboardNavigation=!0,this.triggered=!1,this._onDidChangePattern=new a.a,this.enabledDisposables=new r.b,this.disposables=new r.b,this.domNode=Object(i.a)(`.monaco-list-type-filter.${this.positionClassName}`),this.domNode.draggable=!0,Object(M.a)(this.domNode,"dragstart")(this.onDragStart,this,this.disposables),this.messageDomNode=Object(i.p)(n.getHTMLElement(),Object(i.a)(".monaco-list-type-filter-message")),this.labelDomNode=Object(i.p)(this.domNode,Object(i.a)("span.label"));const l=Object(i.p)(this.domNode,Object(i.a)(".controls"));this._filterOnType=!!e.options.filterOnType,this.filterOnTypeDomNode=Object(i.p)(l,Object(i.a)("input.filter")),this.filterOnTypeDomNode.type="checkbox",this.filterOnTypeDomNode.checked=this._filterOnType,this.filterOnTypeDomNode.tabIndex=-1,this.updateFilterOnTypeTitleAndIcon(),Object(M.a)(this.filterOnTypeDomNode,"input")(this.onDidChangeFilterOnType,this,this.disposables),this.clearDomNode=Object(i.p)(l,Object(i.a)("button.clear"+H.cssSelector)),this.clearDomNode.tabIndex=-1,this.clearDomNode.title=Object(u.a)("clear","Clear"),this.keyboardNavigationEventFilter=e.options.keyboardNavigationEventFilter,t.onDidSplice(this.onDidSpliceModel,this,this.disposables),this.updateOptions(e.options)}get enabled(){return this._enabled}get pattern(){return this._pattern}get filterOnType(){return this._filterOnType}updateOptions(e){e.simpleKeyboardNavigation?this.disable():this.enable(),void 0!==e.filterOnType&&(this._filterOnType=!!e.filterOnType,this.filterOnTypeDomNode.checked=this._filterOnType),void 0!==e.automaticKeyboardNavigation&&(this.automaticKeyboardNavigation=e.automaticKeyboardNavigation),this.tree.refilter(),this.render(),this.automaticKeyboardNavigation||this.onEventOrInput("")}enable(){if(this._enabled)return;const e=a.b.chain(Object(M.a)(this.view.getHTMLElement(),"keydown")).filter(e=>!Object(s.e)(e.target)||e.target===this.filterOnTypeDomNode).filter(e=>"Dead"!==e.key&&!/^Media/.test(e.key)).map(e=>new C.a(e)).filter(this.keyboardNavigationEventFilter||(()=>!0)).filter(()=>this.automaticKeyboardNavigation||this.triggered).filter(e=>this.keyboardNavigationDelegate.mightProducePrintableCharacter(e)&&!(18===e.keyCode||16===e.keyCode||15===e.keyCode||17===e.keyCode)||(this.pattern.length>0||this.triggered)&&(9===e.keyCode||1===e.keyCode)&&!e.altKey&&!e.ctrlKey&&!e.metaKey||1===e.keyCode&&(A.f?e.altKey&&!e.metaKey:e.ctrlKey)&&!e.shiftKey).forEach(e=>{e.stopPropagation(),e.preventDefault()}).event,t=Object(M.a)(this.clearDomNode,"click");a.b.chain(a.b.any(e,t)).event(this.onEventOrInput,this,this.enabledDisposables),this.filter.pattern="",this.tree.refilter(),this.render(),this._enabled=!0,this.triggered=!1}disable(){this._enabled&&(this.domNode.remove(),this.enabledDisposables.clear(),this.tree.refilter(),this.render(),this._enabled=!1,this.triggered=!1)}onEventOrInput(e){"string"==typeof e?this.onInput(e):e instanceof MouseEvent||9===e.keyCode||1===e.keyCode&&(A.f?e.altKey:e.ctrlKey)?this.onInput(""):1===e.keyCode?this.onInput(0===this.pattern.length?"":this.pattern.substr(0,this.pattern.length-1)):this.onInput(this.pattern+e.browserEvent.key)}onInput(e){const t=this.view.getHTMLElement();e&&!this.domNode.parentElement?t.append(this.domNode):!e&&this.domNode.parentElement&&(this.domNode.remove(),this.tree.domFocus()),this._pattern=e,this._onDidChangePattern.fire(e),this.filter.pattern=e,this.tree.refilter(),e&&this.tree.focusNext(0,!0,void 0,e=>!D.a.isDefault(e.filterData));const n=this.tree.getFocus();if(n.length>0){const e=n[0];null===this.tree.getRelativeTop(e)&&this.tree.reveal(e,.5)}this.render(),e||(this.triggered=!1)}onDragStart(){const e=this.view.getHTMLElement(),{left:t}=Object(i.C)(e),n=e.clientWidth,o=n/2,s=this.domNode.clientWidth,a=new r.b;let l=this.positionClassName;const c=()=>{switch(l){case"nw":this.domNode.style.top="4px",this.domNode.style.left="4px";break;case"ne":this.domNode.style.top="4px",this.domNode.style.left=`${n-s-6}px`}};c(),Object(i.Q)(this.domNode,l),Object(i.e)(this.domNode,"dragging"),a.add(Object(r.h)(()=>Object(i.Q)(this.domNode,"dragging"))),Object(M.a)(document,"dragover")(e=>{e.preventDefault();const n=e.screenX-t;e.dataTransfer&&(e.dataTransfer.dropEffect="none"),l=n<o?"nw":"ne",c()},null,a),Object(M.a)(this.domNode,"dragend")(()=>{this.positionClassName=l,this.domNode.className=`monaco-list-type-filter ${this.positionClassName}`,this.domNode.style.top="",this.domNode.style.left="",Object(r.f)(a)},null,a),x.c.CurrentDragAndDropData=new x.b("vscode-ui"),a.add(Object(r.h)(()=>x.c.CurrentDragAndDropData=void 0))}onDidSpliceModel(){this._enabled&&0!==this.pattern.length&&(this.tree.refilter(),this.render())}onDidChangeFilterOnType(){this.tree.updateOptions({filterOnType:this.filterOnTypeDomNode.checked}),this.tree.refilter(),this.tree.domFocus(),this.render(),this.updateFilterOnTypeTitleAndIcon()}updateFilterOnTypeTitleAndIcon(){this.filterOnType?(Object(i.R)(this.filterOnTypeDomNode,W.classNames),Object(i.f)(this.filterOnTypeDomNode,B.classNames),this.filterOnTypeDomNode.title=Object(u.a)("disable filter on type","Disable Filter on Type")):(Object(i.R)(this.filterOnTypeDomNode,B.classNames),Object(i.f)(this.filterOnTypeDomNode,W.classNames),this.filterOnTypeDomNode.title=Object(u.a)("enable filter on type","Enable Filter on Type"))}render(){const e=this.filter.totalCount>0&&0===this.filter.matchCount;this.pattern&&this.tree.options.filterOnType&&e?(this.messageDomNode.textContent=Object(u.a)("empty","No elements found"),this._empty=!0):(this.messageDomNode.innerText="",this._empty=!1),Object(i.ab)(this.domNode,"no-matches",e),this.domNode.title=Object(u.a)("found","Matched {0} out of {1} elements",this.filter.matchCount,this.filter.totalCount),this.labelDomNode.textContent=this.pattern.length>16?"…"+this.pattern.substr(this.pattern.length-16):this.pattern,this._onDidChangeEmptyState.fire(this._empty)}shouldAllowFocus(e){return!(this.enabled&&this.pattern&&!this.filterOnType)||(this.filter.totalCount>0&&this.filter.matchCount<=1||!D.a.isDefault(e.filterData))}dispose(){this._enabled&&(this.domNode.remove(),this.enabledDisposables.dispose(),this._enabled=!1,this.triggered=!1),this._onDidChangePattern.dispose(),Object(r.f)(this.disposables)}}function X(e){let t=y.Unknown;return Object(i.J)(e.browserEvent.target,"monaco-tl-twistie","monaco-tl-row")?t=y.Twistie:Object(i.J)(e.browserEvent.target,"monaco-tl-contents","monaco-tl-row")&&(t=y.Element),{browserEvent:e.browserEvent,element:e.element?e.element.element:null,target:t}}function Q(e,t){t(e),e.children.forEach(e=>Q(e,t))}class ee{constructor(e){this.identityProvider=e,this.nodes=[],this._onDidChange=new a.a,this.onDidChange=this._onDidChange.event}get nodeSet(){return this._nodeSet||(this._nodeSet=this.createNodeSet()),this._nodeSet}set(e,t){Object(o.g)(this.nodes,e)||this._set(e,!1,t)}_set(e,t,n){if(this.nodes=[...e],this.elements=void 0,this._nodeSet=void 0,!t){const e=this;this._onDidChange.fire({get elements(){return e.get()},browserEvent:n})}}get(){return this.elements||(this.elements=this.nodes.map(e=>e.element)),[...this.elements]}getNodes(){return this.nodes}has(e){return this.nodeSet.has(e)}onDidModelSplice({insertedNodes:e,deletedNodes:t}){if(!this.identityProvider){const e=this.createNodeSet(),n=t=>e.delete(t);return t.forEach(e=>Q(e,n)),void this.set([...e.values()])}const n=new Set,i=e=>n.add(this.identityProvider.getId(e.element).toString());t.forEach(e=>Q(e,i));const r=new Map,o=e=>r.set(this.identityProvider.getId(e.element).toString(),e);e.forEach(e=>Q(e,o));const s=[];for(const e of this.nodes){const t=this.identityProvider.getId(e.element).toString();if(n.has(t)){const e=r.get(t);e&&s.push(e)}else s.push(e)}this._set(s,!0)}createNodeSet(){const e=new Set;for(const t of this.nodes)e.add(t);return e}}class te extends s.d{constructor(e,t){super(e),this.tree=t}onViewPointer(e){if(Object(s.e)(e.browserEvent.target)||Object(s.f)(e.browserEvent.target))return;const t=e.element;if(!t)return super.onViewPointer(e);if(this.isSelectionRangeChangeEvent(e)||this.isSelectionSingleChangeEvent(e))return super.onViewPointer(e);const n=e.browserEvent.target,r=Object(i.I)(n,"monaco-tl-twistie")||Object(i.I)(n,"monaco-icon-label")&&Object(i.I)(n,"folder-icon")&&e.browserEvent.offsetX<16;let o=!1;if((o="function"==typeof this.tree.expandOnlyOnTwistieClick?this.tree.expandOnlyOnTwistieClick(t.element):!!this.tree.expandOnlyOnTwistieClick)&&!r)return super.onViewPointer(e);if(this.tree.expandOnlyOnDoubleClick&&2!==e.browserEvent.detail&&!r)return super.onViewPointer(e);if(t.collapsible){const n=this.tree.model,i=n.getNodeLocation(t),s=e.browserEvent.altKey;if(n.setCollapsed(i,void 0,s),o&&r)return}super.onViewPointer(e)}onDoubleClick(e){Object(i.I)(e.browserEvent.target,"monaco-tl-twistie")||super.onDoubleClick(e)}}class ne extends s.c{constructor(e,t,n,i,r,o,s){super(e,t,n,i,s),this.focusTrait=r,this.selectionTrait=o}createMouseController(e){return new te(this,e.tree)}splice(e,t,n=[]){if(super.splice(e,t,n),0===n.length)return;const i=[],r=[];n.forEach((t,n)=>{this.focusTrait.has(t)&&i.push(e+n),this.selectionTrait.has(t)&&r.push(e+n)}),i.length>0&&super.setFocus(Object(o.f)([...super.getFocus(),...i])),r.length>0&&super.setSelection(Object(o.f)([...super.getSelection(),...r]))}setFocus(e,t,n=!1){super.setFocus(e,t),n||this.focusTrait.set(e.map(e=>this.element(e)),t)}setSelection(e,t,n=!1){super.setSelection(e,t),n||this.selectionTrait.set(e.map(e=>this.element(e)),t)}}class ie{constructor(e,t,n,o,l={}){this._options=l,this.eventBufferer=new a.c,this.disposables=new r.b,this._onWillRefilter=new a.a,this.onWillRefilter=this._onWillRefilter.event,this._onDidUpdateOptions=new a.a;const c=new $(n),d=new a.e,u=new a.e,h=new K(u.event);this.renderers=o.map(e=>new G(e,()=>this.model,d.event,h,l));for(let e of this.renderers)this.disposables.add(e);let f;var g,p;l.keyboardNavigationLabelProvider&&(f=new Z(this,l.keyboardNavigationLabelProvider,l.filter),l=Object.assign(Object.assign({},l),{filter:f}),this.disposables.add(f)),this.focus=new ee(l.identityProvider),this.selection=new ee(l.identityProvider),this.view=new ne(e,t,c,this.renderers,this.focus,this.selection,Object.assign(Object.assign({},(g=()=>this.model,(p=l)&&Object.assign(Object.assign({},p),{identityProvider:p.identityProvider&&{getId:e=>p.identityProvider.getId(e.element)},dnd:p.dnd&&new U(g,p.dnd),multipleSelectionController:p.multipleSelectionController&&{isSelectionSingleChangeEvent:e=>p.multipleSelectionController.isSelectionSingleChangeEvent(Object.assign(Object.assign({},e),{element:e.element})),isSelectionRangeChangeEvent:e=>p.multipleSelectionController.isSelectionRangeChangeEvent(Object.assign(Object.assign({},e),{element:e.element}))},accessibilityProvider:p.accessibilityProvider&&Object.assign(Object.assign({},p.accessibilityProvider),{getSetSize(e){const t=g(),n=t.getNodeLocation(e),i=t.getParentNodeLocation(n);return t.getNode(i).visibleChildrenCount},getPosInSet:e=>e.visibleChildIndex+1,isChecked:p.accessibilityProvider&&p.accessibilityProvider.isChecked?e=>p.accessibilityProvider.isChecked(e.element):void 0,getRole:p.accessibilityProvider&&p.accessibilityProvider.getRole?e=>p.accessibilityProvider.getRole(e.element):()=>"treeitem",getAriaLabel:e=>p.accessibilityProvider.getAriaLabel(e.element),getWidgetAriaLabel:()=>p.accessibilityProvider.getWidgetAriaLabel(),getWidgetRole:p.accessibilityProvider&&p.accessibilityProvider.getWidgetRole?()=>p.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:e=>e.depth,getActiveDescendantId:p.accessibilityProvider.getActiveDescendantId&&(e=>p.accessibilityProvider.getActiveDescendantId(e.element))}),keyboardNavigationLabelProvider:p.keyboardNavigationLabelProvider&&Object.assign(Object.assign({},p.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel:e=>p.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e.element)}),enableKeyboardNavigation:p.simpleKeyboardNavigation}))),{tree:this})),this.model=this.createModel(e,this.view,l),d.input=this.model.onDidChangeCollapseState;const m=a.b.forEach(this.model.onDidSplice,e=>{this.eventBufferer.bufferEvents(()=>{this.focus.onDidModelSplice(e),this.selection.onDidModelSplice(e)})});if(m(()=>null,null,this.disposables),u.input=a.b.chain(a.b.any(m,this.focus.onDidChange,this.selection.onDidChange)).debounce(()=>null,0).map(()=>{const e=new Set;for(const t of this.focus.getNodes())e.add(t);for(const t of this.selection.getNodes())e.add(t);return[...e.values()]}).event,!1!==l.keyboardSupport){const e=a.b.chain(this.view.onKeyDown).filter(e=>!Object(s.e)(e.target)).map(e=>new C.a(e));e.filter(e=>15===e.keyCode).on(this.onLeftArrow,this,this.disposables),e.filter(e=>17===e.keyCode).on(this.onRightArrow,this,this.disposables),e.filter(e=>10===e.keyCode).on(this.onSpace,this,this.disposables)}if(l.keyboardNavigationLabelProvider){const e=l.keyboardNavigationDelegate||s.a;this.typeFilterController=new J(this,this.model,this.view,f,e),this.focusNavigationFilter=e=>this.typeFilterController.shouldAllowFocus(e),this.disposables.add(this.typeFilterController)}this.styleElement=Object(i.v)(this.view.getHTMLElement()),Object(i.ab)(this.getHTMLElement(),"always",this._options.renderIndentGuides===q.Always)}get onDidChangeFocus(){return this.eventBufferer.wrapEvent(this.focus.onDidChange)}get onDidChangeSelection(){return this.eventBufferer.wrapEvent(this.selection.onDidChange)}get onMouseDblClick(){return a.b.map(this.view.onMouseDblClick,X)}get onPointer(){return a.b.map(this.view.onPointer,X)}get onDidFocus(){return this.view.onDidFocus}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get expandOnlyOnDoubleClick(){var e;return null!==(e=this._options.expandOnlyOnDoubleClick)&&void 0!==e&&e}get expandOnlyOnTwistieClick(){return void 0!==this._options.expandOnlyOnTwistieClick&&this._options.expandOnlyOnTwistieClick}get onDidDispose(){return this.view.onDidDispose}updateOptions(e={}){this._options=Object.assign(Object.assign({},this._options),e);for(const t of this.renderers)t.updateOptions(e);this.view.updateOptions({enableKeyboardNavigation:this._options.simpleKeyboardNavigation,automaticKeyboardNavigation:this._options.automaticKeyboardNavigation,smoothScrolling:this._options.smoothScrolling,horizontalScrolling:this._options.horizontalScrolling}),this.typeFilterController&&this.typeFilterController.updateOptions(this._options),this._onDidUpdateOptions.fire(this._options),Object(i.ab)(this.getHTMLElement(),"always",this._options.renderIndentGuides===q.Always)}get options(){return this._options}getHTMLElement(){return this.view.getHTMLElement()}get scrollTop(){return this.view.scrollTop}set scrollTop(e){this.view.scrollTop=e}domFocus(){this.view.domFocus()}layout(e,t){this.view.layout(e,t)}style(e){const t=`.${this.view.domId}`,n=[];e.treeIndentGuidesStroke&&(n.push(`.monaco-list${t}:hover .monaco-tl-indent > .indent-guide, .monaco-list${t}.always .monaco-tl-indent > .indent-guide { border-color: ${e.treeIndentGuidesStroke.transparent(.4)}; }`),n.push(`.monaco-list${t} .monaco-tl-indent > .indent-guide.active { border-color: ${e.treeIndentGuidesStroke}; }`));const i=n.join("\n");i!==this.styleElement.innerHTML&&(this.styleElement.innerHTML=i),this.view.style(e)}collapse(e,t=!1){return this.model.setCollapsed(e,!0,t)}expand(e,t=!1){return this.model.setCollapsed(e,!1,t)}isCollapsible(e){return this.model.isCollapsible(e)}setCollapsible(e,t){return this.model.setCollapsible(e,t)}isCollapsed(e){return this.model.isCollapsed(e)}refilter(){this._onWillRefilter.fire(void 0),this.model.refilter()}setSelection(e,t){const n=e.map(e=>this.model.getNode(e));this.selection.set(n,t);const i=e.map(e=>this.model.getListIndex(e)).filter(e=>e>-1);this.view.setSelection(i,t,!0)}getSelection(){return this.selection.get()}setFocus(e,t){const n=e.map(e=>this.model.getNode(e));this.focus.set(n,t);const i=e.map(e=>this.model.getListIndex(e)).filter(e=>e>-1);this.view.setFocus(i,t,!0)}focusNext(e=1,t=!1,n,i=this.focusNavigationFilter){this.view.focusNext(e,t,n,i)}getFocus(){return this.focus.get()}reveal(e,t){this.model.expandTo(e);const n=this.model.getListIndex(e);-1!==n&&this.view.reveal(n,t)}getRelativeTop(e){const t=this.model.getListIndex(e);return-1===t?null:this.view.getRelativeTop(t)}onLeftArrow(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(0===t.length)return;const n=t[0],i=this.model.getNodeLocation(n);if(!this.model.setCollapsed(i,!0)){const e=this.model.getParentNodeLocation(i);if(!e)return;const t=this.model.getListIndex(e);this.view.reveal(t),this.view.setFocus([t])}}onRightArrow(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(0===t.length)return;const n=t[0],i=this.model.getNodeLocation(n);if(!this.model.setCollapsed(i,!1)){if(!n.children.some(e=>e.visible))return;const[e]=this.view.getFocus(),t=e+1;this.view.reveal(t),this.view.setFocus([t])}}onSpace(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(0===t.length)return;const n=t[0],i=this.model.getNodeLocation(n),r=e.browserEvent.altKey;this.model.setCollapsed(i,void 0,r)}dispose(){Object(r.f)(this.disposables),this.view.dispose()}}class re{constructor(e,t,n={}){this.user=e,this.rootRef=null,this.nodes=new Map,this.nodesByIdentity=new Map,this.model=new N(e,t,null,n),this.onDidSplice=this.model.onDidSplice,this.onDidChangeCollapseState=this.model.onDidChangeCollapseState,this.onDidChangeRenderNodeCount=this.model.onDidChangeRenderNodeCount,n.sorter&&(this.sorter={compare:(e,t)=>n.sorter.compare(e.element,t.element)}),this.identityProvider=n.identityProvider}setChildren(e,t=w.a.empty(),n,i){const r=this.getElementLocation(e);this._setChildren(r,this.preserveCollapseState(t),n,i)}_setChildren(e,t=w.a.empty(),n,i){const r=new Set,o=new Set;this.model.splice([...e,0],Number.MAX_VALUE,t,e=>{if(null===e.element)return;const t=e;if(r.add(t.element),this.nodes.set(t.element,t),this.identityProvider){const e=this.identityProvider.getId(t.element).toString();o.add(e),this.nodesByIdentity.set(e,t)}n&&n(t)},e=>{if(null===e.element)return;const t=e;if(r.has(t.element)||this.nodes.delete(t.element),this.identityProvider){const e=this.identityProvider.getId(t.element).toString();o.has(e)||this.nodesByIdentity.delete(e)}i&&i(t)})}preserveCollapseState(e=w.a.empty()){return this.sorter&&(e=Object(o.p)([...e],this.sorter.compare.bind(this.sorter))),w.a.map(e,e=>{let t=this.nodes.get(e.element);if(!t&&this.identityProvider){const n=this.identityProvider.getId(e.element).toString();t=this.nodesByIdentity.get(n)}if(!t)return Object.assign(Object.assign({},e),{children:this.preserveCollapseState(e.children)});const n="boolean"==typeof e.collapsible?e.collapsible:t.collapsible,i=void 0!==e.collapsed?e.collapsed:t.collapsed;return Object.assign(Object.assign({},e),{collapsible:n,collapsed:i,children:this.preserveCollapseState(e.children)})})}rerender(e){const t=this.getElementLocation(e);this.model.rerender(t)}has(e){return this.nodes.has(e)}getListIndex(e){const t=this.getElementLocation(e);return this.model.getListIndex(t)}getListRenderCount(e){const t=this.getElementLocation(e);return this.model.getListRenderCount(t)}isCollapsible(e){const t=this.getElementLocation(e);return this.model.isCollapsible(t)}setCollapsible(e,t){const n=this.getElementLocation(e);return this.model.setCollapsible(n,t)}isCollapsed(e){const t=this.getElementLocation(e);return this.model.isCollapsed(t)}setCollapsed(e,t,n){const i=this.getElementLocation(e);return this.model.setCollapsed(i,t,n)}expandTo(e){const t=this.getElementLocation(e);this.model.expandTo(t)}refilter(){this.model.refilter()}getNode(e=null){if(null===e)return this.model.getNode(this.model.rootRef);const t=this.nodes.get(e);if(!t)throw new S(this.user,`Tree element not found: ${e}`);return t}getNodeLocation(e){return e.element}getParentNodeLocation(e){if(null===e)throw new S(this.user,"Invalid getParentNodeLocation call");const t=this.nodes.get(e);if(!t)throw new S(this.user,`Tree element not found: ${e}`);const n=this.model.getNodeLocation(t),i=this.model.getParentNodeLocation(n);return this.model.getNode(i).element}getElementLocation(e){if(null===e)return[];const t=this.nodes.get(e);if(!t)throw new S(this.user,`Tree element not found: ${e}`);return this.model.getNodeLocation(t)}}function oe(e){return{element:{elements:[e.element],incompressible:e.incompressible||!1},children:w.a.map(w.a.from(e.children),oe),collapsible:e.collapsible,collapsed:e.collapsed}}function se(e){const t=[e.element],n=e.incompressible||!1;let i,r;for(;[r,i]=w.a.consume(w.a.from(e.children),2),1===r.length&&!(e=r[0]).incompressible;)t.push(e.element);return{element:{elements:t,incompressible:n},children:w.a.map(w.a.concat(r,i),se),collapsible:e.collapsible,collapsed:e.collapsed}}function ae(e){return function e(t,n=0){let i;return i=n<t.element.elements.length-1?[e(t,n+1)]:w.a.map(w.a.from(t.children),t=>e(t,0)),0===n&&t.element.incompressible?{element:t.element.elements[n],children:i,incompressible:!0,collapsible:t.collapsible,collapsed:t.collapsed}:{element:t.element.elements[n],children:i,collapsible:t.collapsible,collapsed:t.collapsed}}(e,0)}class le{constructor(e,t,n={}){this.user=e,this.rootRef=null,this.nodes=new Map,this.model=new re(e,t,n),this.enabled=void 0===n.compressionEnabled||n.compressionEnabled}get onDidSplice(){return this.model.onDidSplice}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get onDidChangeRenderNodeCount(){return this.model.onDidChangeRenderNodeCount}setChildren(e,t=w.a.empty()){if(null===e){const e=w.a.map(t,this.enabled?se:oe);return void this._setChildren(null,e)}const n=this.nodes.get(e);if(!n)throw new Error("Unknown compressed tree node");const i=this.model.getNode(n),r=this.model.getParentNodeLocation(n),o=this.model.getNode(r),s=function e(t,n,i){return t.element===n?Object.assign(Object.assign({},t),{children:i}):Object.assign(Object.assign({},t),{children:w.a.map(w.a.from(t.children),t=>e(t,n,i))})}(ae(i),e,t),a=(this.enabled?se:oe)(s),l=o.children.map(e=>e===i?a:e);this._setChildren(o.element,l)}setCompressionEnabled(e){if(e===this.enabled)return;this.enabled=e;const t=this.model.getNode().children,n=w.a.map(t,ae),i=w.a.map(n,e?se:oe);this._setChildren(null,i)}_setChildren(e,t){const n=new Set;this.model.setChildren(e,t,e=>{for(const t of e.element.elements)n.add(t),this.nodes.set(t,e.element)},e=>{for(const t of e.element.elements)n.has(t)||this.nodes.delete(t)})}has(e){return this.nodes.has(e)}getListIndex(e){const t=this.getCompressedNode(e);return this.model.getListIndex(t)}getListRenderCount(e){const t=this.getCompressedNode(e);return this.model.getListRenderCount(t)}getNode(e){if(void 0===e)return this.model.getNode();const t=this.getCompressedNode(e);return this.model.getNode(t)}getNodeLocation(e){const t=this.model.getNodeLocation(e);return null===t?null:t.elements[t.elements.length-1]}getParentNodeLocation(e){const t=this.getCompressedNode(e),n=this.model.getParentNodeLocation(t);return null===n?null:n.elements[n.elements.length-1]}isCollapsible(e){const t=this.getCompressedNode(e);return this.model.isCollapsible(t)}setCollapsible(e,t){const n=this.getCompressedNode(e);return this.model.setCollapsible(n,t)}isCollapsed(e){const t=this.getCompressedNode(e);return this.model.isCollapsed(t)}setCollapsed(e,t,n){const i=this.getCompressedNode(e);return this.model.setCollapsed(i,t,n)}expandTo(e){const t=this.getCompressedNode(e);this.model.expandTo(t)}rerender(e){const t=this.getCompressedNode(e);this.model.rerender(t)}refilter(){this.model.refilter()}getCompressedNode(e){if(null===e)return null;const t=this.nodes.get(e);if(!t)throw new S(this.user,`Tree element not found: ${e}`);return t}}const ce=e=>e[e.length-1];class de{constructor(e,t){this.unwrapper=e,this.node=t}get element(){return null===this.node.element?null:this.unwrapper(this.node.element)}get children(){return this.node.children.map(e=>new de(this.unwrapper,e))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}}class ue{constructor(e,t,n={}){this.rootRef=null,this.elementMapper=n.elementMapper||ce;const i=e=>this.elementMapper(e.elements);this.nodeMapper=new k(e=>new de(i,e)),this.model=new le(e,function(e,t){return{splice(n,i,r){t.splice(n,i,r.map(t=>e.map(t)))},updateElementHeight(e,n){t.updateElementHeight(e,n)}}}(this.nodeMapper,t),function(e,t){return Object.assign(Object.assign({},t),{sorter:t.sorter&&{compare:(e,n)=>t.sorter.compare(e.elements[0],n.elements[0])},identityProvider:t.identityProvider&&{getId:n=>t.identityProvider.getId(e(n))},filter:t.filter&&{filter:(n,i)=>t.filter.filter(e(n),i)}})}(i,n))}get onDidSplice(){return a.b.map(this.model.onDidSplice,({insertedNodes:e,deletedNodes:t})=>({insertedNodes:e.map(e=>this.nodeMapper.map(e)),deletedNodes:t.map(e=>this.nodeMapper.map(e))}))}get onDidChangeCollapseState(){return a.b.map(this.model.onDidChangeCollapseState,({node:e,deep:t})=>({node:this.nodeMapper.map(e),deep:t}))}get onDidChangeRenderNodeCount(){return a.b.map(this.model.onDidChangeRenderNodeCount,e=>this.nodeMapper.map(e))}setChildren(e,t=w.a.empty()){this.model.setChildren(e,t)}setCompressionEnabled(e){this.model.setCompressionEnabled(e)}has(e){return this.model.has(e)}getListIndex(e){return this.model.getListIndex(e)}getListRenderCount(e){return this.model.getListRenderCount(e)}getNode(e){return this.nodeMapper.map(this.model.getNode(e))}getNodeLocation(e){return e.element}getParentNodeLocation(e){return this.model.getParentNodeLocation(e)}isCollapsible(e){return this.model.isCollapsible(e)}setCollapsible(e,t){return this.model.setCollapsible(e,t)}isCollapsed(e){return this.model.isCollapsed(e)}setCollapsed(e,t,n){return this.model.setCollapsed(e,t,n)}expandTo(e){return this.model.expandTo(e)}rerender(e){return this.model.rerender(e)}refilter(){return this.model.refilter()}getCompressedTreeNode(e=null){return this.model.getNode(e)}}class he extends ie{constructor(e,t,n,i,r={}){super(e,t,n,i,r)}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}setChildren(e,t=w.a.empty()){this.model.setChildren(e,t)}rerender(e){void 0!==e?this.model.rerender(e):this.view.rerender()}hasElement(e){return this.model.has(e)}createModel(e,t,n){return new re(e,t,n)}}class fe{constructor(e,t){this._compressedTreeNodeProvider=e,this.renderer=t,this.templateId=t.templateId,t.onDidChangeTwistieState&&(this.onDidChangeTwistieState=t.onDidChangeTwistieState)}get compressedTreeNodeProvider(){return this._compressedTreeNodeProvider()}renderTemplate(e){return{compressedTreeNode:void 0,data:this.renderer.renderTemplate(e)}}renderElement(e,t,n,i){const r=this.compressedTreeNodeProvider.getCompressedTreeNode(e.element);1===r.element.elements.length?(n.compressedTreeNode=void 0,this.renderer.renderElement(e,t,n.data,i)):(n.compressedTreeNode=r,this.renderer.renderCompressedElements(r,t,n.data,i))}disposeElement(e,t,n,i){n.compressedTreeNode?this.renderer.disposeCompressedElements&&this.renderer.disposeCompressedElements(n.compressedTreeNode,t,n.data,i):this.renderer.disposeElement&&this.renderer.disposeElement(e,t,n.data,i)}disposeTemplate(e){this.renderer.disposeTemplate(e.data)}renderTwistie(e,t){this.renderer.renderTwistie&&this.renderer.renderTwistie(e,t)}}(function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);o>3&&s&&Object.defineProperty(t,n,s)})([n(90).a],fe.prototype,"compressedTreeNodeProvider",null);class ge extends he{constructor(e,t,n,i,r={}){const o=()=>this;super(e,t,n,i.map(e=>new fe(o,e)),function(e,t){return t&&Object.assign(Object.assign({},t),{keyboardNavigationLabelProvider:t.keyboardNavigationLabelProvider&&{getKeyboardNavigationLabel(n){let i;try{i=e().getCompressedTreeNode(n)}catch(e){return t.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(n)}return 1===i.element.elements.length?t.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(n):t.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(i.element.elements)}}})}(o,r))}setChildren(e,t=w.a.empty()){this.model.setChildren(e,t)}createModel(e,t,n){return new ue(e,t,n)}updateOptions(e={}){super.updateOptions(e),void 0!==e.compressionEnabled&&this.model.setCompressionEnabled(e.compressionEnabled)}getCompressedTreeNode(e=null){return this.model.getCompressedTreeNode(e)}}var pe=n(15),me=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};function _e(e){return Object.assign(Object.assign({},e),{children:[],refreshPromise:void 0,stale:!0,slow:!1,collapsedByDefault:void 0})}function be(e,t){return!!t.parent&&(t.parent===e||be(e,t.parent))}class ve{constructor(e){this.node=e}get element(){return this.node.element.element}get children(){return this.node.children.map(e=>new ve(e))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}}class ye{constructor(e,t,n){this.renderer=e,this.nodeMapper=t,this.onDidChangeTwistieState=n,this.renderedNodes=new Map,this.templateId=e.templateId}renderTemplate(e){return{templateData:this.renderer.renderTemplate(e)}}renderElement(e,t,n,i){this.renderer.renderElement(this.nodeMapper.map(e),t,n.templateData,i)}renderTwistie(e,t){return e.slow?Object(i.f)(t,Y.classNames):Object(i.R)(t,Y.classNames),!1}disposeElement(e,t,n,i){this.renderer.disposeElement&&this.renderer.disposeElement(this.nodeMapper.map(e),t,n.templateData,i)}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}dispose(){this.renderedNodes.clear()}}function we(e){return{browserEvent:e.browserEvent,elements:e.elements.map(e=>e.element)}}function Ce(e){return{browserEvent:e.browserEvent,element:e.element&&e.element.element,target:e.target}}class Se extends L.a{constructor(e){super(e.elements.map(e=>e.element)),this.data=e}}function ke(e){return e instanceof L.a?new Se(e):e}class xe{constructor(e){this.dnd=e}getDragURI(e){return this.dnd.getDragURI(e.element)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map(e=>e.element),t)}onDragStart(e,t){this.dnd.onDragStart&&this.dnd.onDragStart(ke(e),t)}onDragOver(e,t,n,i,r=!0){return this.dnd.onDragOver(ke(e),t&&t.element,n,i)}drop(e,t,n,i){this.dnd.drop(ke(e),t&&t.element,n,i)}onDragEnd(e){this.dnd.onDragEnd&&this.dnd.onDragEnd(e)}}function Le(e){return e&&Object.assign(Object.assign({},e),{collapseByDefault:!0,identityProvider:e.identityProvider&&{getId:t=>e.identityProvider.getId(t.element)},dnd:e.dnd&&new xe(e.dnd),multipleSelectionController:e.multipleSelectionController&&{isSelectionSingleChangeEvent:t=>e.multipleSelectionController.isSelectionSingleChangeEvent(Object.assign(Object.assign({},t),{element:t.element})),isSelectionRangeChangeEvent:t=>e.multipleSelectionController.isSelectionRangeChangeEvent(Object.assign(Object.assign({},t),{element:t.element}))},accessibilityProvider:e.accessibilityProvider&&Object.assign(Object.assign({},e.accessibilityProvider),{getPosInSet:void 0,getSetSize:void 0,getRole:e.accessibilityProvider.getRole?t=>e.accessibilityProvider.getRole(t.element):()=>"treeitem",isChecked:e.accessibilityProvider.isChecked?t=>{var n;return!!(null===(n=e.accessibilityProvider)||void 0===n?void 0:n.isChecked(t.element))}:void 0,getAriaLabel:t=>e.accessibilityProvider.getAriaLabel(t.element),getWidgetAriaLabel:()=>e.accessibilityProvider.getWidgetAriaLabel(),getWidgetRole:e.accessibilityProvider.getWidgetRole?()=>e.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:e.accessibilityProvider.getAriaLevel&&(t=>e.accessibilityProvider.getAriaLevel(t.element)),getActiveDescendantId:e.accessibilityProvider.getActiveDescendantId&&(t=>e.accessibilityProvider.getActiveDescendantId(t.element))}),filter:e.filter&&{filter:(t,n)=>e.filter.filter(t.element,n)},keyboardNavigationLabelProvider:e.keyboardNavigationLabelProvider&&Object.assign(Object.assign({},e.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel:t=>e.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(t.element)}),sorter:void 0,expandOnlyOnTwistieClick:void 0===e.expandOnlyOnTwistieClick?void 0:"function"!=typeof e.expandOnlyOnTwistieClick?e.expandOnlyOnTwistieClick:t=>e.expandOnlyOnTwistieClick(t.element),additionalScrollHeight:e.additionalScrollHeight})}function Me(e,t){t(e),e.children.forEach(e=>Me(e,t))}class De{constructor(e,t,n,i,o,s={}){this.user=e,this.dataSource=o,this.nodes=new Map,this.subTreeRefreshPromises=new Map,this.refreshPromises=new Map,this._onDidRender=new a.a,this._onDidChangeNodeSlowState=new a.a,this.nodeMapper=new k(e=>new ve(e)),this.disposables=new r.b,this.identityProvider=s.identityProvider,this.autoExpandSingleChildren=void 0!==s.autoExpandSingleChildren&&s.autoExpandSingleChildren,this.sorter=s.sorter,this.collapseByDefault=s.collapseByDefault,this.tree=this.createTree(e,t,n,i,s),this.root=_e({element:void 0,parent:null,hasChildren:!0}),this.identityProvider&&(this.root=Object.assign(Object.assign({},this.root),{id:null})),this.nodes.set(null,this.root),this.tree.onDidChangeCollapseState(this._onDidChangeCollapseState,this,this.disposables)}get onDidChangeFocus(){return a.b.map(this.tree.onDidChangeFocus,we)}get onDidChangeSelection(){return a.b.map(this.tree.onDidChangeSelection,we)}get onMouseDblClick(){return a.b.map(this.tree.onMouseDblClick,Ce)}get onPointer(){return a.b.map(this.tree.onPointer,Ce)}get onDidFocus(){return this.tree.onDidFocus}get onDidDispose(){return this.tree.onDidDispose}createTree(e,t,n,i,r){const o=new $(n),s=i.map(e=>new ye(e,this.nodeMapper,this._onDidChangeNodeSlowState.event)),a=Le(r)||{};return new he(e,t,o,s,a)}updateOptions(e={}){this.tree.updateOptions(e)}getHTMLElement(){return this.tree.getHTMLElement()}get scrollTop(){return this.tree.scrollTop}set scrollTop(e){this.tree.scrollTop=e}domFocus(){this.tree.domFocus()}layout(e,t){this.tree.layout(e,t)}style(e){this.tree.style(e)}getInput(){return this.root.element}setInput(e,t){return me(this,void 0,void 0,(function*(){this.refreshPromises.forEach(e=>e.cancel()),this.refreshPromises.clear(),this.root.element=e;const n=t&&{viewState:t,focus:[],selection:[]};yield this._updateChildren(e,!0,!1,n),n&&(this.tree.setFocus(n.focus),this.tree.setSelection(n.selection)),t&&"number"==typeof t.scrollTop&&(this.scrollTop=t.scrollTop)}))}_updateChildren(e=this.root.element,t=!0,n=!1,i){return me(this,void 0,void 0,(function*(){if(void 0===this.root.element)throw new S(this.user,"Tree input not set");this.root.refreshPromise&&(yield this.root.refreshPromise,yield a.b.toPromise(this._onDidRender.event));const r=this.getDataNode(e);if(yield this.refreshAndRenderNode(r,t,i),n)try{this.tree.rerender(r)}catch(e){}}))}rerender(e){if(void 0===e||e===this.root.element)return void this.tree.rerender();const t=this.getDataNode(e);this.tree.rerender(t)}collapse(e,t=!1){const n=this.getDataNode(e);return this.tree.collapse(n===this.root?null:n,t)}expand(e,t=!1){return me(this,void 0,void 0,(function*(){if(void 0===this.root.element)throw new S(this.user,"Tree input not set");this.root.refreshPromise&&(yield this.root.refreshPromise,yield a.b.toPromise(this._onDidRender.event));const n=this.getDataNode(e);if(this.tree.hasElement(n)&&!this.tree.isCollapsible(n))return!1;if(n.refreshPromise&&(yield this.root.refreshPromise,yield a.b.toPromise(this._onDidRender.event)),n!==this.root&&!n.refreshPromise&&!this.tree.isCollapsed(n))return!1;const i=this.tree.expand(n===this.root?null:n,t);return n.refreshPromise&&(yield this.root.refreshPromise,yield a.b.toPromise(this._onDidRender.event)),i}))}setSelection(e,t){const n=e.map(e=>this.getDataNode(e));this.tree.setSelection(n,t)}getSelection(){return this.tree.getSelection().map(e=>e.element)}setFocus(e,t){const n=e.map(e=>this.getDataNode(e));this.tree.setFocus(n,t)}getFocus(){return this.tree.getFocus().map(e=>e.element)}reveal(e,t){this.tree.reveal(this.getDataNode(e),t)}getDataNode(e){const t=this.nodes.get(e===this.root.element?null:e);if(!t)throw new S(this.user,`Data tree node not found: ${e}`);return t}refreshAndRenderNode(e,t,n){return me(this,void 0,void 0,(function*(){yield this.refreshNode(e,t,n),this.render(e,n)}))}refreshNode(e,t,n){return me(this,void 0,void 0,(function*(){let i;return this.subTreeRefreshPromises.forEach((r,o)=>{!i&&function(e,t){return e===t||be(e,t)||be(t,e)}(o,e)&&(i=r.then(()=>this.refreshNode(e,t,n)))}),i||this.doRefreshSubTree(e,t,n)}))}doRefreshSubTree(e,t,n){return me(this,void 0,void 0,(function*(){let i;e.refreshPromise=new Promise(e=>i=e),this.subTreeRefreshPromises.set(e,e.refreshPromise),e.refreshPromise.finally(()=>{e.refreshPromise=void 0,this.subTreeRefreshPromises.delete(e)});try{const r=yield this.doRefreshNode(e,t,n);e.stale=!1,yield Promise.all(r.map(e=>this.doRefreshSubTree(e,t,n)))}finally{i()}}))}doRefreshNode(e,t,n){return me(this,void 0,void 0,(function*(){let i;if(e.hasChildren=!!this.dataSource.hasChildren(e.element),e.hasChildren){const t=Object(I.l)(800);t.then(()=>{e.slow=!0,this._onDidChangeNodeSlowState.fire(e)},e=>null),i=this.doGetChildren(e).finally(()=>t.cancel())}else i=Promise.resolve(w.a.empty());try{const r=yield i;return this.setChildren(e,r,t,n)}catch(t){if(e!==this.root&&this.tree.collapse(e===this.root?null:e),Object(pe.d)(t))return[];throw t}finally{e.slow&&(e.slow=!1,this._onDidChangeNodeSlowState.fire(e))}}))}doGetChildren(e){let t=this.refreshPromises.get(e);return t||(t=Object(I.f)(()=>me(this,void 0,void 0,(function*(){const t=yield this.dataSource.getChildren(e.element);return this.processChildren(t)}))),this.refreshPromises.set(e,t),t.finally(()=>{this.refreshPromises.delete(e)}))}_onDidChangeCollapseState({node:e,deep:t}){null!==e.element&&!e.collapsed&&e.element.stale&&(t?this.collapse(e.element.element):this.refreshAndRenderNode(e.element,!1).catch(pe.e))}setChildren(e,t,n,i){const r=[...t];if(0===e.children.length&&0===r.length)return[];const o=new Map,s=new Map;for(const t of e.children)if(o.set(t.element,t),this.identityProvider){const e=this.tree.isCollapsed(t);s.set(t.id,{node:t,collapsed:e})}const a=[],l=r.map(t=>{const r=!!this.dataSource.hasChildren(t);if(!this.identityProvider){const n=_e({element:t,parent:e,hasChildren:r});return r&&this.collapseByDefault&&!this.collapseByDefault(t)&&(n.collapsedByDefault=!1,a.push(n)),n}const l=this.identityProvider.getId(t).toString(),c=s.get(l);if(c){const e=c.node;return o.delete(e.element),this.nodes.delete(e.element),this.nodes.set(t,e),e.element=t,e.hasChildren=r,n?c.collapsed?(e.children.forEach(e=>Me(e,e=>this.nodes.delete(e.element))),e.children.splice(0,e.children.length),e.stale=!0):a.push(e):r&&this.collapseByDefault&&!this.collapseByDefault(t)&&(e.collapsedByDefault=!1,a.push(e)),e}const d=_e({element:t,parent:e,id:l,hasChildren:r});return i&&i.viewState.focus&&i.viewState.focus.indexOf(l)>-1&&i.focus.push(d),i&&i.viewState.selection&&i.viewState.selection.indexOf(l)>-1&&i.selection.push(d),i&&i.viewState.expanded&&i.viewState.expanded.indexOf(l)>-1?a.push(d):r&&this.collapseByDefault&&!this.collapseByDefault(t)&&(d.collapsedByDefault=!1,a.push(d)),d});for(const e of o.values())Me(e,e=>this.nodes.delete(e.element));for(const e of l)this.nodes.set(e.element,e);return e.children.splice(0,e.children.length,...l),e!==this.root&&this.autoExpandSingleChildren&&1===l.length&&0===a.length&&(l[0].collapsedByDefault=!1,a.push(l[0])),a}render(e,t){const n=e.children.map(e=>this.asTreeElement(e,t));this.tree.setChildren(e===this.root?null:e,n),e!==this.root&&this.tree.setCollapsible(e,e.hasChildren),this._onDidRender.fire()}asTreeElement(e,t){if(e.stale)return{element:e,collapsible:e.hasChildren,collapsed:!0};let n;return n=!(t&&t.viewState.expanded&&e.id&&t.viewState.expanded.indexOf(e.id)>-1)&&e.collapsedByDefault,e.collapsedByDefault=void 0,{element:e,children:e.hasChildren?w.a.map(e.children,e=>this.asTreeElement(e,t)):[],collapsible:e.hasChildren,collapsed:n}}processChildren(e){return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),e}dispose(){this.disposables.dispose()}}class Ee{constructor(e){this.node=e}get element(){return{elements:this.node.element.elements.map(e=>e.element),incompressible:this.node.element.incompressible}}get children(){return this.node.children.map(e=>new Ee(e))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}}class Te{constructor(e,t,n,i){this.renderer=e,this.nodeMapper=t,this.compressibleNodeMapperProvider=n,this.onDidChangeTwistieState=i,this.renderedNodes=new Map,this.disposables=[],this.templateId=e.templateId}renderTemplate(e){return{templateData:this.renderer.renderTemplate(e)}}renderElement(e,t,n,i){this.renderer.renderElement(this.nodeMapper.map(e),t,n.templateData,i)}renderCompressedElements(e,t,n,i){this.renderer.renderCompressedElements(this.compressibleNodeMapperProvider().map(e),t,n.templateData,i)}renderTwistie(e,t){return e.slow?Object(i.f)(t,Y.classNames):Object(i.R)(t,Y.classNames),!1}disposeElement(e,t,n,i){this.renderer.disposeElement&&this.renderer.disposeElement(this.nodeMapper.map(e),t,n.templateData,i)}disposeCompressedElements(e,t,n,i){this.renderer.disposeCompressedElements&&this.renderer.disposeCompressedElements(this.compressibleNodeMapperProvider().map(e),t,n.templateData,i)}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}dispose(){this.renderedNodes.clear(),this.disposables=Object(r.f)(this.disposables)}}class Oe extends De{constructor(e,t,n,i,r,o,s={}){super(e,t,n,r,o,s),this.compressionDelegate=i,this.compressibleNodeMapper=new k(e=>new Ee(e)),this.filter=s.filter}createTree(e,t,n,i,r){const o=new $(n),s=i.map(e=>new Te(e,this.nodeMapper,()=>this.compressibleNodeMapper,this._onDidChangeNodeSlowState.event)),a=function(e){const t=e&&Le(e);return t&&Object.assign(Object.assign({},t),{keyboardNavigationLabelProvider:t.keyboardNavigationLabelProvider&&Object.assign(Object.assign({},t.keyboardNavigationLabelProvider),{getCompressedNodeKeyboardNavigationLabel:t=>e.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(t.map(e=>e.element))})})}(r)||{};return new ge(e,t,o,s,a)}asTreeElement(e,t){return Object.assign({incompressible:this.compressionDelegate.isIncompressible(e.element)},super.asTreeElement(e,t))}updateOptions(e={}){this.tree.updateOptions(e)}render(e,t){if(!this.identityProvider)return super.render(e,t);const n=e=>this.identityProvider.getId(e).toString(),i=e=>{const t=new Set;for(const i of e){const e=this.tree.getCompressedTreeNode(i===this.root?null:i);if(e.element)for(const i of e.element.elements)t.add(n(i.element))}return t},r=i(this.tree.getSelection()),o=i(this.tree.getFocus());super.render(e,t);const s=this.getSelection();let a=!1;const l=this.getFocus();let c=!1;const d=e=>{const t=e.element;if(t)for(let e=0;e<t.elements.length;e++){const i=n(t.elements[e].element),d=t.elements[t.elements.length-1].element;r.has(i)&&-1===s.indexOf(d)&&(s.push(d),a=!0),o.has(i)&&-1===l.indexOf(d)&&(l.push(d),c=!0)}e.children.forEach(d)};d(this.tree.getCompressedTreeNode(e===this.root?null:e)),a&&this.setSelection(s),c&&this.setFocus(l)}processChildren(e){return this.filter&&(e=w.a.filter(e,e=>{const t=function(e){return"boolean"==typeof e?e?1:0:E(e)?T(e.visibility):T(e)}(this.filter.filter(e,1));if(2===t)throw new Error("Recursive tree visibility not supported in async data compressed trees");return 1===t})),super.processChildren(e)}}class Ne extends ie{constructor(e,t,n,i,r,o={}){super(e,t,n,i,o),this.user=e,this.dataSource=r,this.identityProvider=o.identityProvider}createModel(e,t,n){return new re(e,t,n)}}var Ie=n(67);n.d(t,"a",(function(){return Pe})),n.d(t,"b",(function(){return je})),n.d(t,"e",(function(){return We})),n.d(t,"d",(function(){return st})),n.d(t,"c",(function(){return gt}));var Ae=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Re=function(e,t){return function(n,i){t(n,i,e)}};const Pe=Object(p.c)("listService");let je=class{constructor(e){this._themeService=e,this.disposables=new r.b,this.lists=[],this._lastFocusedWidget=void 0,this._hasCreatedStyleController=!1}get lastFocusedList(){return this._lastFocusedWidget}register(e,t){if(!this._hasCreatedStyleController){this._hasCreatedStyleController=!0;const e=new s.b(Object(i.v)(),"");this.disposables.add(Object(b.b)(e,this._themeService))}if(this.lists.some(t=>t.widget===e))throw new Error("Cannot register the same widget multiple times");const n={widget:e,extraContextKeys:t};return this.lists.push(n),e.getHTMLElement()===document.activeElement&&(this._lastFocusedWidget=e),Object(r.e)(e.onDidFocus(()=>this._lastFocusedWidget=e),Object(r.h)(()=>this.lists.splice(this.lists.indexOf(n),1)),e.onDidDispose(()=>{this.lists=this.lists.filter(e=>e!==n),this._lastFocusedWidget===e&&(this._lastFocusedWidget=void 0)}))}dispose(){this.disposables.dispose()}};je=Ae([Re(0,v.c)],je);const Fe=new g.c("listFocus",!0),Be=new g.c("listSupportsMultiselect",!0),We=g.a.and(Fe,g.a.not("inputFocus")),He=new g.c("listHasSelectionOrFocus",!1),Ye=new g.c("listDoubleSelection",!1),Ve=new g.c("listMultiSelection",!1),ze=new g.c("listSupportsKeyboardNavigation",!0),Ue="listAutomaticKeyboardNavigation",$e=new g.c(Ue,!0);let qe=!1;function Ke(e,t){const n=e.createScoped(t.getHTMLElement());return Fe.bindTo(n),n}const Ge="workbench.list.multiSelectModifier",Ze="workbench.list.openMode",Je="workbench.list.horizontalScrolling",Xe="workbench.list.keyboardNavigation",Qe="workbench.list.automaticKeyboardNavigation",et="workbench.tree.indent",tt="workbench.tree.renderIndentGuides",nt="workbench.list.smoothScrolling";function it(e){return"alt"===e.getValue(Ge)}class rt extends r.a{constructor(e){super(),this.configurationService=e,this.useAltAsMultipleSelectionModifier=it(e),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration(e=>{e.affectsConfiguration(Ge)&&(this.useAltAsMultipleSelectionModifier=it(this.configurationService))}))}isSelectionSingleChangeEvent(e){return this.useAltAsMultipleSelectionModifier?e.browserEvent.altKey:Object(s.h)(e)}isSelectionRangeChangeEvent(e){return Object(s.g)(e)}}function ot(e,t,n){const i=new r.b,o=Object.assign({},e);if(!1!==e.multipleSelectionSupport&&!e.multipleSelectionController){const e=new rt(t);o.multipleSelectionController=e,i.add(e)}return o.keyboardNavigationDelegate={mightProducePrintableCharacter:e=>n.mightProducePrintableCharacter(e)},o.smoothScrolling=t.getValue(nt),[o,i]}let st=class extends s.c{constructor(e,t,n,i,r,o,s,a,l,c){const d=void 0!==r.horizontalScrolling?r.horizontalScrolling:l.getValue(Je),[u,h]=ot(r,l,c);super(e,t,n,i,Object.assign(Object.assign(Object.assign({keyboardSupport:!1},Object(b.d)(a.getColorTheme(),b.e)),u),{horizontalScrolling:d})),this.disposables.add(h),this.contextKeyService=Ke(o,this),this.themeService=a,Be.bindTo(this.contextKeyService).set(!(!1===r.multipleSelectionSupport)),this.listHasSelectionOrFocus=He.bindTo(this.contextKeyService),this.listDoubleSelection=Ye.bindTo(this.contextKeyService),this.listMultiSelection=Ve.bindTo(this.contextKeyService),this.horizontalScrolling=r.horizontalScrolling,this._useAltAsMultipleSelectionModifier=it(l),this.disposables.add(this.contextKeyService),this.disposables.add(s.register(this)),r.overrideStyles&&this.updateStyles(r.overrideStyles),this.disposables.add(this.onDidChangeSelection(()=>{const e=this.getSelection(),t=this.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.listHasSelectionOrFocus.set(e.length>0||t.length>0),this.listMultiSelection.set(e.length>1),this.listDoubleSelection.set(2===e.length)})})),this.disposables.add(this.onDidChangeFocus(()=>{const e=this.getSelection(),t=this.getFocus();this.listHasSelectionOrFocus.set(e.length>0||t.length>0)})),this.disposables.add(l.onDidChangeConfiguration(e=>{e.affectsConfiguration(Ge)&&(this._useAltAsMultipleSelectionModifier=it(l));let t={};if(e.affectsConfiguration(Je)&&void 0===this.horizontalScrolling){const e=l.getValue(Je);t=Object.assign(Object.assign({},t),{horizontalScrolling:e})}if(e.affectsConfiguration(nt)){const e=l.getValue(nt);t=Object.assign(Object.assign({},t),{smoothScrolling:e})}Object.keys(t).length>0&&this.updateOptions(t)}))}updateOptions(e){super.updateOptions(e),e.overrideStyles&&this.updateStyles(e.overrideStyles)}dispose(){super.dispose(),this._styler&&this._styler.dispose()}updateStyles(e){this._styler&&this._styler.dispose(),this._styler=Object(b.b)(this,this.themeService,e)}};st=Ae([Re(5,g.b),Re(6,Pe),Re(7,v.c),Re(8,h.a),Re(9,m.a)],st);let at=class extends class{constructor(e,t,n,i,r={}){const o=()=>this.model,a=i.map(e=>new c(e,o));this.list=new s.c(e,t,n,a,function(e,t){return Object.assign(Object.assign({},t),{accessibilityProvider:t.accessibilityProvider&&new d(e,t.accessibilityProvider)})}(o,r))}updateOptions(e){this.list.updateOptions(e)}getHTMLElement(){return this.list.getHTMLElement()}get onDidFocus(){return this.list.onDidFocus}get onDidDispose(){return this.list.onDidDispose}get onMouseDblClick(){return a.b.map(this.list.onMouseDblClick,({element:e,index:t,browserEvent:n})=>({element:void 0===e?void 0:this._model.get(e),index:t,browserEvent:n}))}get onPointer(){return a.b.map(this.list.onPointer,({element:e,index:t,browserEvent:n})=>({element:void 0===e?void 0:this._model.get(e),index:t,browserEvent:n}))}get onDidChangeFocus(){return a.b.map(this.list.onDidChangeFocus,({elements:e,indexes:t,browserEvent:n})=>({elements:e.map(e=>this._model.get(e)),indexes:t,browserEvent:n}))}get onDidChangeSelection(){return a.b.map(this.list.onDidChangeSelection,({elements:e,indexes:t,browserEvent:n})=>({elements:e.map(e=>this._model.get(e)),indexes:t,browserEvent:n}))}get model(){return this._model}set model(e){this._model=e,this.list.splice(0,this.list.length,Object(o.s)(e.length))}getFocus(){return this.list.getFocus()}setSelection(e,t){this.list.setSelection(e,t)}getSelection(){return this.list.getSelection()}style(e){this.list.style(e)}dispose(){this.list.dispose()}}{constructor(e,t,n,i,o,s,a,l,c,d){const u=void 0!==o.horizontalScrolling?o.horizontalScrolling:c.getValue(Je),[h,f]=ot(o,c,d);super(e,t,n,i,Object.assign(Object.assign(Object.assign({keyboardSupport:!1},Object(b.d)(l.getColorTheme(),b.e)),h),{horizontalScrolling:u})),this.disposables=new r.b,this.disposables.add(f),this.contextKeyService=Ke(s,this),this.horizontalScrolling=o.horizontalScrolling,Be.bindTo(this.contextKeyService).set(!(!1===o.multipleSelectionSupport)),this._useAltAsMultipleSelectionModifier=it(c),this.disposables.add(this.contextKeyService),this.disposables.add(a.register(this)),o.overrideStyles&&this.disposables.add(Object(b.b)(this,l,o.overrideStyles)),this.disposables.add(c.onDidChangeConfiguration(e=>{e.affectsConfiguration(Ge)&&(this._useAltAsMultipleSelectionModifier=it(c));let t={};if(e.affectsConfiguration(Je)&&void 0===this.horizontalScrolling){const e=c.getValue(Je);t=Object.assign(Object.assign({},t),{horizontalScrolling:e})}if(e.affectsConfiguration(nt)){const e=c.getValue(nt);t=Object.assign(Object.assign({},t),{smoothScrolling:e})}Object.keys(t).length>0&&this.updateOptions(t)}))}dispose(){super.dispose(),this.disposables.dispose()}};at=Ae([Re(5,g.b),Re(6,Pe),Re(7,v.c),Re(8,h.a),Re(9,m.a)],at);class lt extends r.a{constructor(e,t){var n,i;super(),this.widget=e,this._onDidOpen=new a.a,this.onDidOpen=this._onDidOpen.event,this.openOnFocus=null!==(n=null==t?void 0:t.openOnFocus)&&void 0!==n&&n,this._register(a.b.filter(this.widget.onDidChangeSelection,e=>e.browserEvent instanceof KeyboardEvent)(e=>this.onSelectionFromKeyboard(e))),this._register(this.widget.onPointer(e=>this.onPointer(e.browserEvent))),this._register(this.widget.onMouseDblClick(e=>this.onMouseDblClick(e.browserEvent))),this.openOnFocus&&this._register(a.b.filter(this.widget.onDidChangeFocus,e=>e.browserEvent instanceof KeyboardEvent)(e=>this.onFocusFromKeyboard(e))),"boolean"!=typeof(null==t?void 0:t.openOnSingleClick)&&(null==t?void 0:t.configurationService)?(this.openOnSingleClick="doubleClick"!==(null==t?void 0:t.configurationService.getValue(Ze)),this._register(null==t?void 0:t.configurationService.onDidChangeConfiguration(()=>{this.openOnSingleClick="doubleClick"!==(null==t?void 0:t.configurationService.getValue(Ze))}))):this.openOnSingleClick=null===(i=null==t?void 0:t.openOnSingleClick)||void 0===i||i}onFocusFromKeyboard(e){const t=this.widget.getFocus();this.widget.setSelection(t,e.browserEvent);const n="boolean"!=typeof e.browserEvent.preserveFocus||e.browserEvent.preserveFocus;this._open(n,!1,!1,e.browserEvent)}onSelectionFromKeyboard(e){if(1!==e.elements.length)return;const t="boolean"!=typeof e.browserEvent.preserveFocus||e.browserEvent.preserveFocus;this._open(t,!1,!1,e.browserEvent)}onPointer(e){if(!this.openOnSingleClick)return;if(2===e.detail)return;const t=1===e.button,n=e.ctrlKey||e.metaKey||e.altKey;this._open(!0,t,n,e)}onMouseDblClick(e){if(!e)return;const t=e.ctrlKey||e.metaKey||e.altKey;this._open(!1,!0,t,e)}_open(e,t,n,i){this._onDidOpen.fire({editorOptions:{preserveFocus:e,pinned:t,revealIfVisible:!0},sideBySide:n,element:this.widget.getSelection()[0],browserEvent:i})}}class ct extends lt{constructor(e,t){super(e,t)}}function dt(e,t){let n=!1;return i=>{if(n)return n=!1,!1;const r=t.softDispatch(i,e);return r&&r.enterChord?(n=!0,!1):(n=!1,!0)}}let ut=class extends he{constructor(e,t,n,i,r,o,s,a,l,c,d){const{options:u,getAutomaticKeyboardNavigation:h,disposable:f}=mt(t,r,o,l,c,d);super(e,t,n,i,u),this.disposables.add(f),this.internals=new _t(this,r,h,r.overrideStyles,o,s,a,l,d),this.disposables.add(this.internals)}};ut=Ae([Re(5,g.b),Re(6,Pe),Re(7,v.c),Re(8,h.a),Re(9,m.a),Re(10,Ie.b)],ut);let ht=class extends ge{constructor(e,t,n,i,r,o,s,a,l,c,d){const{options:u,getAutomaticKeyboardNavigation:h,disposable:f}=mt(t,r,o,l,c,d);super(e,t,n,i,u),this.disposables.add(f),this.internals=new _t(this,r,h,r.overrideStyles,o,s,a,l,d),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles)}};ht=Ae([Re(5,g.b),Re(6,Pe),Re(7,v.c),Re(8,h.a),Re(9,m.a),Re(10,Ie.b)],ht);let ft=class extends Ne{constructor(e,t,n,i,r,o,s,a,l,c,d,u){const{options:h,getAutomaticKeyboardNavigation:f,disposable:g}=mt(t,o,s,c,d,u);super(e,t,n,i,r,h),this.disposables.add(g),this.internals=new _t(this,o,f,o.overrideStyles,s,a,l,c,u),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles)}};ft=Ae([Re(6,g.b),Re(7,Pe),Re(8,v.c),Re(9,h.a),Re(10,m.a),Re(11,Ie.b)],ft);let gt=class extends De{constructor(e,t,n,i,r,o,s,a,l,c,d,u){const{options:h,getAutomaticKeyboardNavigation:f,disposable:g}=mt(t,o,s,c,d,u);super(e,t,n,i,r,h),this.disposables.add(g),this.internals=new _t(this,o,f,o.overrideStyles,s,a,l,c,u),this.disposables.add(this.internals)}get onDidOpen(){return this.internals.onDidOpen}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles)}};gt=Ae([Re(6,g.b),Re(7,Pe),Re(8,v.c),Re(9,h.a),Re(10,m.a),Re(11,Ie.b)],gt);let pt=class extends Oe{constructor(e,t,n,i,r,o,s,a,l,c,d,u,h){const{options:f,getAutomaticKeyboardNavigation:g,disposable:p}=mt(t,s,a,d,u,h);super(e,t,n,i,r,o,f),this.disposables.add(p),this.internals=new _t(this,s,g,s.overrideStyles,a,l,c,d,h),this.disposables.add(this.internals)}};function mt(e,t,n,i,r,o){ze.bindTo(n),qe||($e.bindTo(n),qe=!0);const s=()=>{let e=n.getContextKeyValue(Ue);return e&&(e=i.getValue(Qe)),e},a=o.isScreenReaderOptimized()?"simple":i.getValue(Xe),l=void 0!==t.horizontalScrolling?t.horizontalScrolling:i.getValue(Je),[c,d]=ot(t,i,r),u=t.additionalScrollHeight;return{getAutomaticKeyboardNavigation:s,disposable:d,options:Object.assign(Object.assign({keyboardSupport:!1},c),{indent:i.getValue(et),renderIndentGuides:i.getValue(tt),smoothScrolling:i.getValue(nt),automaticKeyboardNavigation:s(),simpleKeyboardNavigation:"simple"===a,filterOnType:"filter"===a,horizontalScrolling:l,keyboardNavigationEventFilter:dt(e,r),additionalScrollHeight:u,hideTwistiesOfChildlessElements:t.hideTwistiesOfChildlessElements,expandOnlyOnDoubleClick:"doubleClick"===i.getValue(Ze)})}}pt=Ae([Re(7,g.b),Re(8,Pe),Re(9,v.c),Re(10,h.a),Re(11,m.a),Re(12,Ie.b)],pt);let _t=class{constructor(e,t,n,i,r,o,s,a,l){this.tree=e,this.themeService=s,this.disposables=[],this.contextKeyService=Ke(r,e),Be.bindTo(this.contextKeyService).set(!(!1===t.multipleSelectionSupport)),this.hasSelectionOrFocus=He.bindTo(this.contextKeyService),this.hasDoubleSelection=Ye.bindTo(this.contextKeyService),this.hasMultiSelection=Ve.bindTo(this.contextKeyService),this._useAltAsMultipleSelectionModifier=it(a);const c=new Set;c.add(Ue);const d=()=>{const t=l.isScreenReaderOptimized()?"simple":a.getValue(Xe);e.updateOptions({simpleKeyboardNavigation:"simple"===t,filterOnType:"filter"===t})};this.updateStyleOverrides(i),this.disposables.push(this.contextKeyService,o.register(e),e.onDidChangeSelection(()=>{const t=e.getSelection(),n=e.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.hasSelectionOrFocus.set(t.length>0||n.length>0),this.hasMultiSelection.set(t.length>1),this.hasDoubleSelection.set(2===t.length)})}),e.onDidChangeFocus(()=>{const t=e.getSelection(),n=e.getFocus();this.hasSelectionOrFocus.set(t.length>0||n.length>0)}),a.onDidChangeConfiguration(i=>{let r={};if(i.affectsConfiguration(Ge)&&(this._useAltAsMultipleSelectionModifier=it(a)),i.affectsConfiguration(et)){const e=a.getValue(et);r=Object.assign(Object.assign({},r),{indent:e})}if(i.affectsConfiguration(tt)){const e=a.getValue(tt);r=Object.assign(Object.assign({},r),{renderIndentGuides:e})}if(i.affectsConfiguration(nt)){const e=a.getValue(nt);r=Object.assign(Object.assign({},r),{smoothScrolling:e})}if(i.affectsConfiguration(Xe)&&d(),i.affectsConfiguration(Qe)&&(r=Object.assign(Object.assign({},r),{automaticKeyboardNavigation:n()})),i.affectsConfiguration(Je)&&void 0===t.horizontalScrolling){const e=a.getValue(Je);r=Object.assign(Object.assign({},r),{horizontalScrolling:e})}i.affectsConfiguration(Ze)&&(r=Object.assign(Object.assign({},r),{expandOnlyOnDoubleClick:"doubleClick"===a.getValue(Ze)})),Object.keys(r).length>0&&e.updateOptions(r)}),this.contextKeyService.onDidChangeContext(t=>{t.affectsSome(c)&&e.updateOptions({automaticKeyboardNavigation:n()})}),l.onDidChangeScreenReaderOptimized(()=>d())),this.navigator=new ct(e,Object.assign({configurationService:a},t)),this.disposables.push(this.navigator)}get onDidOpen(){return this.navigator.onDidOpen}updateStyleOverrides(e){Object(r.f)(this.styler),this.styler=e?Object(b.b)(this.tree,this.themeService,e):r.a.None}dispose(){this.disposables=Object(r.f)(this.disposables),Object(r.f)(this.styler),this.styler=void 0}};_t=Ae([Re(4,g.b),Re(5,Pe),Re(6,v.c),Re(7,h.a),Re(8,Ie.b)],_t),_.a.as(f.a.Configuration).registerConfiguration({id:"workbench",order:7,title:Object(u.a)("workbenchConfigurationTitle","Workbench"),type:"object",properties:{[Ge]:{type:"string",enum:["ctrlCmd","alt"],enumDescriptions:[Object(u.a)("multiSelectModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),Object(u.a)("multiSelectModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"ctrlCmd",description:Object(u.a)({key:"multiSelectModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add an item in trees and lists to a multi-selection with the mouse (for example in the explorer, open editors and scm view). The 'Open to Side' mouse gestures - if supported - will adapt such that they do not conflict with the multiselect modifier.")},[Ze]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:Object(u.a)({key:"openModeModifier",comment:["`singleClick` and `doubleClick` refers to a value the setting can take and should not be localized."]},"Controls how to open items in trees and lists using the mouse (if supported). For parents with children in trees, this setting will control if a single click expands the parent or a double click. Note that some trees and lists might choose to ignore this setting if it is not applicable. ")},[Je]:{type:"boolean",default:!1,description:Object(u.a)("horizontalScrolling setting","Controls whether lists and trees support horizontal scrolling in the workbench. Warning: turning on this setting has a performance implication.")},[et]:{type:"number",default:8,minimum:0,maximum:40,description:Object(u.a)("tree indent setting","Controls tree indentation in pixels.")},[tt]:{type:"string",enum:["none","onHover","always"],default:"onHover",description:Object(u.a)("render tree indent guides","Controls whether the tree should render indent guides.")},[nt]:{type:"boolean",default:!1,description:Object(u.a)("list smoothScrolling setting","Controls whether lists and trees have smooth scrolling.")},[Xe]:{type:"string",enum:["simple","highlight","filter"],enumDescriptions:[Object(u.a)("keyboardNavigationSettingKey.simple","Simple keyboard navigation focuses elements which match the keyboard input. Matching is done only on prefixes."),Object(u.a)("keyboardNavigationSettingKey.highlight","Highlight keyboard navigation highlights elements which match the keyboard input. Further up and down navigation will traverse only the highlighted elements."),Object(u.a)("keyboardNavigationSettingKey.filter","Filter keyboard navigation will filter out and hide all the elements which do not match the keyboard input.")],default:"highlight",description:Object(u.a)("keyboardNavigationSettingKey","Controls the keyboard navigation style for lists and trees in the workbench. Can be simple, highlight and filter.")},[Qe]:{type:"boolean",default:!0,markdownDescription:Object(u.a)("automatic keyboard navigation setting","Controls whether keyboard navigation in lists and trees is automatically triggered simply by typing. If set to `false`, keyboard navigation is only triggered when executing the `list.toggleKeyboardNavigation` command, for which you can assign a keyboard shortcut.")}}})},function(e,t,n){"use strict";class i{constructor(e){this.executor=e,this._didRun=!1}getValue(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}var r=n(2),o=n(8),s=n(4),a=n(152),l=n(7),c=n(95),d=n(15),u=n(153),h=n(17),f=n(1),g=n(49),p=n(10),m=n(11),_=n(57),b=n(71),v=n(41),y=function(e,t){return function(n,i){t(n,i,e)}},w=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};class C extends g.a{constructor(e,t){super(e.command?e.command.id:e.title,e.title,void 0,!e.disabled,t),this.action=e}}let S=class extends r.a{constructor(e,t,n,i){super(),this._editor=e,this._delegate=t,this._contextMenuService=n,this._visible=!1,this._showingActions=this._register(new r.d),this._keybindingResolver=new k({getKeybindings:()=>i.getKeybindings()})}get isVisible(){return this._visible}show(e,t,n,i){return w(this,void 0,void 0,(function*(){const r=i.includeDisabledActions?t.allActions:t.validActions;if(!r.length)return void(this._visible=!1);if(!this._editor.getDomNode())throw this._visible=!1,Object(d.a)();this._visible=!0,this._showingActions.value=t;const o=this.getMenuActions(e,r,t.documentation),s=p.a.isIPosition(n)?this._toCoords(n):n||{x:0,y:0},a=this._keybindingResolver.getResolver();this._contextMenuService.showContextMenu({domForShadowRoot:this._editor.getDomNode(),getAnchor:()=>s,getActions:()=>o,onHide:()=>{this._visible=!1,this._editor.focus()},autoSelectFirstItem:!0,getKeyBinding:e=>e instanceof C?a(e.action):void 0})}))}getMenuActions(e,t,n){var i,r;const o=e=>new C(e,()=>this._delegate.onSelectCodeAction(e)),s=t.map(o),a=[...n],l=this._editor.getModel();if(l&&s.length)for(const n of m.a.all(l))n._getAdditionalMenuItems&&a.push(...n._getAdditionalMenuItems({trigger:e.type,only:null===(r=null===(i=e.filter)||void 0===i?void 0:i.include)||void 0===r?void 0:r.value},t));return a.length&&s.push(new g.c,...a.map(e=>o({title:e.title,command:e}))),s}_toCoords(e){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(e,1),this._editor.render();const t=this._editor.getScrolledVisiblePosition(e),n=Object(f.C)(this._editor.getDomNode());return{x:n.left+t.left,y:n.top+t.top+t.height}}};S=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}([y(2,b.a),y(3,v.a)],S);class k{constructor(e){this._keybindingProvider=e}getResolver(){const e=new i(()=>this._keybindingProvider.getKeybindings().filter(e=>k.codeActionCommands.indexOf(e.command)>=0).filter(e=>e.resolvedKeybinding).map(e=>{let t=e.commandArgs;return e.command===c.d?t={kind:_.b.SourceOrganizeImports.value}:e.command===c.b&&(t={kind:_.b.SourceFixAll.value}),Object.assign({resolvedKeybinding:e.resolvedKeybinding},_.a.fromUser(t,{kind:_.b.None,apply:"never"}))}));return t=>{if(t.kind){const n=this.bestKeybindingForCodeAction(t,e.getValue());return null==n?void 0:n.resolvedKeybinding}}}bestKeybindingForCodeAction(e,t){if(!e.kind)return;const n=new _.b(e.kind);return t.filter(e=>e.kind.contains(n)).filter(t=>!t.preferred||e.isPreferred).reduceRight((e,t)=>e?e.kind.contains(t.kind)?t:e:t,void 0)}}k.codeActionCommands=[c.e,c.a,c.f,c.d,c.b];var x,L=n(93),M=n(6),D=(n(578),n(29)),E=n(0),T=n(18),O=n(5),N=n(50),I=n(16),A=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},R=function(e,t){return function(n,i){t(n,i,e)}};!function(e){e.Hidden={type:0};e.Showing=class{constructor(e,t,n,i){this.actions=e,this.trigger=t,this.editorPosition=n,this.widgetPosition=i,this.type=1}}}(x||(x={}));let P=class e extends r.a{constructor(e,t,n,i){super(),this._editor=e,this._quickFixActionId=t,this._preferredFixActionId=n,this._keybindingService=i,this._onClick=this._register(new M.a),this.onClick=this._onClick.event,this._state=x.Hidden,this._domNode=document.createElement("div"),this._domNode.className=I.a.lightBulb.classNames,this._editor.addContentWidget(this),this._register(this._editor.onDidChangeModelContent(e=>{const t=this._editor.getModel();(1!==this.state.type||!t||this.state.editorPosition.lineNumber>=t.getLineCount())&&this.hide()})),N.b.ignoreTarget(this._domNode),this._register(f.m(this._domNode,e=>{if(1!==this.state.type)return;this._editor.focus(),e.preventDefault();const{top:t,height:n}=f.C(this._domNode),i=this._editor.getOption(51);let r=Math.floor(i/3);null!==this.state.widgetPosition.position&&this.state.widgetPosition.position.lineNumber<this.state.editorPosition.lineNumber&&(r+=i),this._onClick.fire({x:e.posx,y:t+n+r,actions:this.state.actions,trigger:this.state.trigger})})),this._register(f.i(this._domNode,"mouseenter",e=>{if(1!=(1&e.buttons))return;this.hide();const t=new L.a;t.startMonitoring(e.target,e.buttons,L.b,()=>{},()=>{t.dispose()})})),this._register(this._editor.onDidChangeConfiguration(e=>{e.hasChanged(49)&&!this._editor.getOption(49).enabled&&this.hide()})),this._updateLightBulbTitleAndIcon(),this._register(this._keybindingService.onDidUpdateKeybindings(this._updateLightBulbTitleAndIcon,this))}dispose(){super.dispose(),this._editor.removeContentWidget(this)}getId(){return"LightBulbWidget"}getDomNode(){return this._domNode}getPosition(){return 1===this._state.type?this._state.widgetPosition:null}update(t,n,i){if(t.validActions.length<=0)return this.hide();const r=this._editor.getOptions();if(!r.get(49).enabled)return this.hide();const o=this._editor.getModel();if(!o)return this.hide();const{lineNumber:s,column:a}=o.validatePosition(i),l=o.getOptions().tabSize,c=r.get(36),d=o.getLineContent(s),u=D.b.computeIndentLevel(d,l),h=e=>e>2&&this._editor.getTopForLineNumber(e)===this._editor.getTopForLineNumber(e-1);let f=s;if(!(c.spaceWidth*u>22))if(s>1&&!h(s-1))f-=1;else if(h(s+1)){if(a*c.spaceWidth<22)return this.hide()}else f+=1;this.state=new x.Showing(t,n,i,{position:{lineNumber:f,column:1},preference:e._posPref}),this._editor.layoutContentWidget(this)}hide(){this.state=x.Hidden,this._editor.layoutContentWidget(this)}get state(){return this._state}set state(e){this._state=e,this._updateLightBulbTitleAndIcon()}_updateLightBulbTitleAndIcon(){if(1===this.state.type&&this.state.actions.hasAutoFix){f.R(this._domNode,I.a.lightBulb.classNames),f.f(this._domNode,I.a.lightbulbAutofix.classNames);const e=this._keybindingService.lookupKeybinding(this._preferredFixActionId);if(e)return void(this.title=E.a("prefferedQuickFixWithKb","Show Fixes. Preferred Fix Available ({0})",e.getLabel()))}f.R(this._domNode,I.a.lightbulbAutofix.classNames),f.f(this._domNode,I.a.lightBulb.classNames);const e=this._keybindingService.lookupKeybinding(this._quickFixActionId);this.title=e?E.a("quickFixWithKb","Show Fixes ({0})",e.getLabel()):E.a("quickFix","Show Fixes")}set title(e){this._domNode.title=e}};P._posPref=[0],P=A([R(3,v.a)],P),Object(T.g)((e,t)=>{const n=e.getColor(O.N);n&&t.addRule(`\n\t\t.monaco-editor .contentWidgets ${I.a.lightBulb.cssSelector} {\n\t\t\tcolor: ${n};\n\t\t}`);const i=e.getColor(O.M);i&&t.addRule(`\n\t\t.monaco-editor .contentWidgets ${I.a.lightbulbAutofix.cssSelector} {\n\t\t\tcolor: ${i};\n\t\t}`)});var j=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};let F=class extends r.a{constructor(e,t,n,o,s){super(),this._editor=e,this.delegate=o,this._activeCodeActions=this._register(new r.d),this._codeActionWidget=new i(()=>this._register(s.createInstance(S,this._editor,{onSelectCodeAction:e=>j(this,void 0,void 0,(function*(){this.delegate.applyCodeAction(e,!0)}))}))),this._lightBulbWidget=new i(()=>{const e=this._register(s.createInstance(P,this._editor,t,n));return this._register(e.onClick(e=>this.showCodeActionList(e.trigger,e.actions,e,{includeDisabledActions:!1}))),e})}update(e){var t,n,i;return j(this,void 0,void 0,(function*(){if(1!==e.type)return void(null===(t=this._lightBulbWidget.rawValue)||void 0===t||t.hide());let r;try{r=yield e.actions}catch(e){return void Object(d.e)(e)}if(this._lightBulbWidget.getValue().update(r,e.trigger,e.position),2===e.trigger.type){if(null===(n=e.trigger.filter)||void 0===n?void 0:n.include){const t=this.tryGetValidActionToApply(e.trigger,r);if(t){try{yield this.delegate.applyCodeAction(t,!1)}finally{r.dispose()}return}if(e.trigger.context){const t=this.getInvalidActionThatWouldHaveBeenApplied(e.trigger,r);if(t&&t.disabled)return u.a.get(this._editor).showMessage(t.disabled,e.trigger.context.position),void r.dispose()}}const t=!!(null===(i=e.trigger.filter)||void 0===i?void 0:i.include);if(e.trigger.context&&(!r.allActions.length||!t&&!r.validActions.length))return u.a.get(this._editor).showMessage(e.trigger.context.notAvailableMessage,e.trigger.context.position),this._activeCodeActions.value=r,void r.dispose();this._activeCodeActions.value=r,this._codeActionWidget.getValue().show(e.trigger,r,e.position,{includeDisabledActions:t})}else this._codeActionWidget.getValue().isVisible?r.dispose():this._activeCodeActions.value=r}))}getInvalidActionThatWouldHaveBeenApplied(e,t){if(t.allActions.length)return"first"===e.autoApply&&0===t.validActions.length||"ifSingle"===e.autoApply&&1===t.allActions.length?t.allActions.find(e=>e.disabled):void 0}tryGetValidActionToApply(e,t){if(t.validActions.length)return"first"===e.autoApply&&t.validActions.length>0||"ifSingle"===e.autoApply&&1===t.validActions.length?t.validActions[0]:void 0}showCodeActionList(e,t,n,i){return j(this,void 0,void 0,(function*(){this._codeActionWidget.getValue().show(e,t,n,i)}))}};F=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}([function(e,t){return function(n,i){t(n,i,e)}}(4,h.a)],F);var B=n(28),W=n(9),H=n(52),Y=n(40),V=n(70),z=n(108),U=n(19),$=n(3),q=n(42);const K=new W.c("supportedCodeAction","");class G extends r.a{constructor(e,t,n,i=250){super(),this._editor=e,this._markerService=t,this._signalChange=n,this._delay=i,this._autoTriggerTimer=this._register(new U.e),this._register(this._markerService.onMarkerChanged(e=>this._onMarkerChanges(e))),this._register(this._editor.onDidChangeCursorPosition(()=>this._onCursorChange()))}trigger(e){const t=this._getRangeOfSelectionUnlessWhitespaceEnclosed(e);return this._createEventAndSignalChange(e,t)}_onMarkerChanges(e){const t=this._editor.getModel();t&&e.some(e=>Object(q.f)(e,t.uri))&&this._autoTriggerTimer.cancelAndSet(()=>{this.trigger({type:1})},this._delay)}_onCursorChange(){this._autoTriggerTimer.cancelAndSet(()=>{this.trigger({type:1})},this._delay)}_getRangeOfMarker(e){const t=this._editor.getModel();if(t)for(const n of this._markerService.read({resource:t.uri})){const i=t.validateRange(n);if($.a.intersectRanges(i,e))return $.a.lift(i)}}_getRangeOfSelectionUnlessWhitespaceEnclosed(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),n=this._editor.getSelection();if(n.isEmpty()&&1===e.type){const{lineNumber:e,column:i}=n.getPosition(),r=t.getLineContent(e);if(0===r.length)return;if(1===i){if(/\s/.test(r[0]))return}else if(i===t.getLineMaxColumn(e)){if(/\s/.test(r[r.length-1]))return}else if(/\s/.test(r[i-2])&&/\s/.test(r[i-1]))return}return n}_createEventAndSignalChange(e,t){const n=this._editor.getModel();if(!t||!n)return void this._signalChange(void 0);const i=this._getRangeOfMarker(t),r=i?i.getStartPosition():t.getStartPosition(),o={trigger:e,selection:t,position:r};return this._signalChange(o),o}}var Z;!function(e){e.Empty={type:0};e.Triggered=class{constructor(e,t,n,i){this.trigger=e,this.rangeOrSelection=t,this.position=n,this.actions=i,this.type=1}}}(Z||(Z={}));class J extends r.a{constructor(e,t,n,i){super(),this._editor=e,this._markerService=t,this._progressService=i,this._codeActionOracle=this._register(new r.d),this._state=Z.Empty,this._onDidChangeState=this._register(new M.a),this.onDidChangeState=this._onDidChangeState.event,this._supportedCodeActions=K.bindTo(n),this._register(this._editor.onDidChangeModel(()=>this._update())),this._register(this._editor.onDidChangeModelLanguage(()=>this._update())),this._register(m.a.onDidChange(()=>this._update())),this._update()}dispose(){super.dispose(),this.setState(Z.Empty,!0)}_update(){this._codeActionOracle.value=void 0,this.setState(Z.Empty);const e=this._editor.getModel();if(e&&m.a.has(e)&&!this._editor.getOption(72)){const t=[];for(const n of m.a.all(e))Array.isArray(n.providedCodeActionKinds)&&t.push(...n.providedCodeActionKinds);this._supportedCodeActions.set(t.join(" ")),this._codeActionOracle.value=new G(this._editor,this._markerService,t=>{var n;if(!t)return void this.setState(Z.Empty);const i=Object(U.f)(n=>Object(c.c)(e,t.selection,t.trigger,V.b.None,n));2===t.trigger.type&&(null===(n=this._progressService)||void 0===n||n.showWhile(i,250)),this.setState(new Z.Triggered(t.trigger,t.selection,t.position,i))},void 0),this._codeActionOracle.value.trigger({type:1})}else this._supportedCodeActions.reset()}trigger(e){this._codeActionOracle.value&&this._codeActionOracle.value.trigger(e)}setState(e,t){e!==this._state&&(1===this._state.type&&this._state.actions.cancel(),this._state=e,t||this._onDidChangeState.fire(e))}}n.d(t,"f",(function(){return ie})),n.d(t,"e",(function(){return se})),n.d(t,"b",(function(){return ae})),n.d(t,"g",(function(){return le})),n.d(t,"h",(function(){return ce})),n.d(t,"d",(function(){return de})),n.d(t,"c",(function(){return ue})),n.d(t,"a",(function(){return he}));var X=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Q=function(e,t){return function(n,i){t(n,i,e)}},ee=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};function te(e){return W.a.regex(K.keys()[0],new RegExp("(\\s|^)"+Object(o.v)(e.value)+"\\b"))}const ne={type:"object",defaultSnippets:[{body:{kind:""}}],properties:{kind:{type:"string",description:E.a("args.schema.kind","Kind of the code action to run.")},apply:{type:"string",description:E.a("args.schema.apply","Controls when the returned actions are applied."),default:"ifSingle",enum:["first","ifSingle","never"],enumDescriptions:[E.a("args.schema.apply.first","Always apply the first returned code action."),E.a("args.schema.apply.ifSingle","Apply the first returned code action if it is the only one."),E.a("args.schema.apply.never","Do not apply the returned code actions.")]},preferred:{type:"boolean",default:!1,description:E.a("args.schema.preferred","Controls if only preferred code actions should be returned.")}}};let ie=class e extends r.a{constructor(e,t,n,r,o){super(),this._instantiationService=o,this._editor=e,this._model=this._register(new J(this._editor,t,n,r)),this._register(this._model.onDidChangeState(e=>this.update(e))),this._ui=new i(()=>this._register(new F(e,se.Id,he.Id,{applyCodeAction:(e,t)=>ee(this,void 0,void 0,(function*(){try{yield this._applyCodeAction(e)}finally{t&&this._trigger({type:1,filter:{}})}}))},this._instantiationService)))}static get(t){return t.getContribution(e.ID)}update(e){this._ui.getValue().update(e)}showCodeActions(e,t,n){return this._ui.getValue().showCodeActionList(e,t,n,{includeDisabledActions:!1})}manualTriggerAtCurrentPosition(e,t,n){if(!this._editor.hasModel())return;u.a.get(this._editor).closeMessage();const i=this._editor.getPosition();this._trigger({type:2,filter:t,autoApply:n,context:{notAvailableMessage:e,position:i}})}_trigger(e){return this._model.trigger(e)}_applyCodeAction(e){return this._instantiationService.invokeFunction(re,e,this._editor)}};function re(e,t,n){return ee(this,void 0,void 0,(function*(){const i=e.get(a.a),r=e.get(B.b),o=e.get(z.a),s=e.get(Y.a);if(o.publicLog2("codeAction.applyCodeAction",{codeActionTitle:t.title,codeActionKind:t.kind,codeActionIsPreferred:!!t.isPreferred}),t.edit&&(yield i.apply(a.b.convert(t.edit),{editor:n,label:t.title})),t.command)try{yield r.executeCommand(t.command.id,...t.command.arguments||[])}catch(e){const t=function(e){return"string"==typeof e?e:e instanceof Error&&"string"==typeof e.message?e.message:void 0}(e);s.error("string"==typeof t?t:E.a("applyCodeActionFailed","An unknown error occurred while applying the code action"))}}))}function oe(e,t,n,i){if(e.hasModel()){const r=ie.get(e);r&&r.manualTriggerAtCurrentPosition(t,n,i)}}ie.ID="editor.contrib.quickFixController",ie=X([Q(1,H.b),Q(2,W.b),Q(3,V.a),Q(4,h.a)],ie);class se extends s.b{constructor(){super({id:se.Id,label:E.a("quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix...",precondition:W.a.and(l.a.writable,l.a.hasCodeActionsProvider),kbOpts:{kbExpr:l.a.editorTextFocus,primary:2132,weight:100}})}run(e,t){return oe(t,E.a("editor.action.quickFix.noneMessage","No code actions available"),void 0,void 0)}}se.Id="editor.action.quickFix";class ae extends s.c{constructor(){super({id:c.a,precondition:W.a.and(l.a.writable,l.a.hasCodeActionsProvider),description:{description:"Trigger a code action",args:[{name:"args",schema:ne}]}})}runEditorCommand(e,t,n){const i=_.a.fromUser(n,{kind:_.b.Empty,apply:"ifSingle"});return oe(t,"string"==typeof(null==n?void 0:n.kind)?i.preferred?E.a("editor.action.codeAction.noneMessage.preferred.kind","No preferred code actions for '{0}' available",n.kind):E.a("editor.action.codeAction.noneMessage.kind","No code actions for '{0}' available",n.kind):i.preferred?E.a("editor.action.codeAction.noneMessage.preferred","No preferred code actions available"):E.a("editor.action.codeAction.noneMessage","No code actions available"),{include:i.kind,includeSourceActions:!0,onlyIncludePreferredActions:i.preferred},i.apply)}}class le extends s.b{constructor(){super({id:c.e,label:E.a("refactor.label","Refactor..."),alias:"Refactor...",precondition:W.a.and(l.a.writable,l.a.hasCodeActionsProvider),kbOpts:{kbExpr:l.a.editorTextFocus,primary:3120,mac:{primary:1328},weight:100},contextMenuOpts:{group:"1_modification",order:2,when:W.a.and(l.a.writable,te(_.b.Refactor))},description:{description:"Refactor...",args:[{name:"args",schema:ne}]}})}run(e,t,n){const i=_.a.fromUser(n,{kind:_.b.Refactor,apply:"never"});return oe(t,"string"==typeof(null==n?void 0:n.kind)?i.preferred?E.a("editor.action.refactor.noneMessage.preferred.kind","No preferred refactorings for '{0}' available",n.kind):E.a("editor.action.refactor.noneMessage.kind","No refactorings for '{0}' available",n.kind):i.preferred?E.a("editor.action.refactor.noneMessage.preferred","No preferred refactorings available"):E.a("editor.action.refactor.noneMessage","No refactorings available"),{include:_.b.Refactor.contains(i.kind)?i.kind:_.b.None,onlyIncludePreferredActions:i.preferred},i.apply)}}class ce extends s.b{constructor(){super({id:c.f,label:E.a("source.label","Source Action..."),alias:"Source Action...",precondition:W.a.and(l.a.writable,l.a.hasCodeActionsProvider),contextMenuOpts:{group:"1_modification",order:2.1,when:W.a.and(l.a.writable,te(_.b.Source))},description:{description:"Source Action...",args:[{name:"args",schema:ne}]}})}run(e,t,n){const i=_.a.fromUser(n,{kind:_.b.Source,apply:"never"});return oe(t,"string"==typeof(null==n?void 0:n.kind)?i.preferred?E.a("editor.action.source.noneMessage.preferred.kind","No preferred source actions for '{0}' available",n.kind):E.a("editor.action.source.noneMessage.kind","No source actions for '{0}' available",n.kind):i.preferred?E.a("editor.action.source.noneMessage.preferred","No preferred source actions available"):E.a("editor.action.source.noneMessage","No source actions available"),{include:_.b.Source.contains(i.kind)?i.kind:_.b.None,includeSourceActions:!0,onlyIncludePreferredActions:i.preferred},i.apply)}}class de extends s.b{constructor(){super({id:c.d,label:E.a("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:W.a.and(l.a.writable,te(_.b.SourceOrganizeImports)),kbOpts:{kbExpr:l.a.editorTextFocus,primary:1581,weight:100}})}run(e,t){return oe(t,E.a("editor.action.organize.noneMessage","No organize imports action available"),{include:_.b.SourceOrganizeImports,includeSourceActions:!0},"ifSingle")}}class ue extends s.b{constructor(){super({id:c.b,label:E.a("fixAll.label","Fix All"),alias:"Fix All",precondition:W.a.and(l.a.writable,te(_.b.SourceFixAll))})}run(e,t){return oe(t,E.a("fixAll.noneMessage","No fix all action available"),{include:_.b.SourceFixAll,includeSourceActions:!0},"ifSingle")}}class he extends s.b{constructor(){super({id:he.Id,label:E.a("autoFix.label","Auto Fix..."),alias:"Auto Fix...",precondition:W.a.and(l.a.writable,te(_.b.QuickFix)),kbOpts:{kbExpr:l.a.editorTextFocus,primary:1620,mac:{primary:2644},weight:100}})}run(e,t){return oe(t,E.a("editor.action.autoFix.noneMessage","No auto fixes available"),{include:_.b.QuickFix,onlyIncludePreferredActions:!0},"ifSingle")}}he.Id="editor.action.autoFix"},function(e,t,n){var i;try{i={clone:n(352),constant:n(217),each:n(218),filter:n(251),has:n(220),isArray:n(86),isEmpty:n(382),isFunction:n(180),isUndefined:n(254),keys:n(158),map:n(255),reduce:n(256),size:n(384),transform:n(385),union:n(386),values:n(258)}}catch(e){}i||(i=window._),e.exports=i},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var i;try{i={clone:n(352),constant:n(217),each:n(218),filter:n(251),has:n(220),isArray:n(86),isEmpty:n(382),isFunction:n(180),isUndefined:n(254),keys:n(158),map:n(255),reduce:n(256),size:n(384),transform:n(385),union:n(386),values:n(258)}}catch(e){}i||(i=window._),e.exports=i},function(e,t,n){var i=n(197);e.exports={isSubgraph:function(e,t){return!!e.children(t).length},edgeToId:function(e){return o(e.v)+":"+o(e.w)+":"+o(e.name)},applyStyle:function(e,t){t&&e.attr("style",t)},applyClass:function(e,t,n){t&&e.attr("class",t).attr("class",n+" "+e.attr("class"))},applyTransition:function(e,t){var n=t.graph();if(i.isPlainObject(n)){var r=n.transition;if(i.isFunction(r))return r(e)}return e}};var r=/:/g;function o(e){return e?String(e).replace(r,"\\:"):""}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(862),r=n(863),o=n(864),s={channel:i.default,lang:r.default,unit:o.default};t.default=s},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(30),r=n(12);const o={clipboard:{writeText:r.g||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:r.g||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText),richText:(()=>{if(i.f){let e=navigator.userAgent.indexOf("Edge/"),t=parseInt(navigator.userAgent.substring(e+5,navigator.userAgent.indexOf(".",e)),10);if(!t||t>=12&&t<=16)return!1}return!0})()},keyboard:(()=>r.g||i.k?0:navigator.keyboard||i.j?1:2)(),touch:"ontouchstart"in window||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0,pointerEvents:window.PointerEvent&&("ontouchstart"in window||window.navigator.maxTouchPoints>0||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n(17);const r=Object(i.c)("themeService")},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return a}));const i="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";const r=function(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const n of i)e.indexOf(n)>=0||(t+="\\"+n);return t+="\\s]+)",new RegExp(t,"g")}();function o(e){let t=r;if(e&&e instanceof RegExp)if(e.global)t=e;else{let n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}const s={maxLen:1e3,windowSize:15,timeBudget:150};function a(e,t,n,i,r=s){if(n.length>r.maxLen){let o=e-r.maxLen/2;return o<0?(i+=e,o=0):i+=o,a(e,t,n=n.substring(o,e+r.maxLen/2),i,r)}Date.now();const o=e-1-i;let c=-1,d=null;for(let e=1;;e++){Date.now(),r.timeBudget;const i=o-r.windowSize*e;t.lastIndex=Math.max(0,i);const s=l(t,n,o,c);if(!s&&d)break;if(d=s,i<=0)break;c=i}if(d){let e={word:d[0],startColumn:i+1+d.index,endColumn:i+1+d.index+d[0].length};return t.lastIndex=0,e}return null}function l(e,t,n,i){let r;for(;r=e.exec(t);){const t=r.index||0;if(t<=n&&e.lastIndex>=n)return r;if(i>0&&t>i)return null}return null}},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return r}));const i={ctrlCmd:!1,alt:!1};var r;!function(e){e[e.NONE=0]="NONE",e[e.FIRST=1]="FIRST",e[e.SECOND=2]="SECOND",e[e.LAST=3]="LAST"}(r||(r={}))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return a}));var i=n(12);const r=void 0===e?{cwd:()=>"/",env:Object.create(null),get platform(){return i.i?"win32":i.f?"darwin":"linux"},nextTick:e=>Object(i.j)(e)}:e,o=r.cwd,s=r.env,a=r.platform}).call(this,n(343))},function(e,t,n){var i;try{i=n(351)}catch(e){}i||(i=window.graphlib),e.exports=i},function(e,t,n){var i=n(354),r="object"==typeof self&&self&&self.Object===Object&&self,o=i||r||Function("return this")();e.exports=o},function(e,t,n){var i;try{i=n(414)}catch(e){}i||(i=window.graphlib),e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(321),r=n(427),o=n(868),s=n(869),a=n(870),l={format:{keyword:o.default,hex:r.default,rgb:s.default,rgba:s.default,hsl:a.default,hsla:a.default},parse:function(e){if("string"!=typeof e)return e;var t=r.default.parse(e)||s.default.parse(e)||a.default.parse(e)||o.default.parse(e);if(t)return t;throw new Error('Unsupported color format: "'+e+'"')},stringify:function(e){return!e.changed&&e.color?e.color:e.type.is(i.TYPE.HSL)||void 0===e.data.r?a.default.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?s.default.stringify(e):r.default.stringify(e)}};t.default=l},function(e,t,n){"use strict";function i(e){return e&&"string"==typeof e.id}n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return r}));const r={ICodeEditor:"vs.editor.ICodeEditor",IDiffEditor:"vs.editor.IDiffEditor"}},function(module,exports,__webpack_require__){(function(global){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;!function(e,t){module.exports=t(e)}("undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==global?global:this,(function(global){"use strict";global=global||{};var _Base64=global.Base64,version="2.5.1",buffer;if(module.exports)try{buffer=eval("require('buffer').Buffer")}catch(e){buffer=void 0}var b64chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b64tab=function(e){for(var t={},n=0,i=e.length;n<i;n++)t[e.charAt(n)]=n;return t}(b64chars),fromCharCode=String.fromCharCode,cb_utob=function(e){if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?fromCharCode(192|t>>>6)+fromCharCode(128|63&t):fromCharCode(224|t>>>12&15)+fromCharCode(128|t>>>6&63)+fromCharCode(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return fromCharCode(240|t>>>18&7)+fromCharCode(128|t>>>12&63)+fromCharCode(128|t>>>6&63)+fromCharCode(128|63&t)},re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,utob=function(e){return e.replace(re_utob,cb_utob)},cb_encode=function(e){var t=[0,2,1][e.length%3],n=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0);return[b64chars.charAt(n>>>18),b64chars.charAt(n>>>12&63),t>=2?"=":b64chars.charAt(n>>>6&63),t>=1?"=":b64chars.charAt(63&n)].join("")},btoa=global.btoa?function(e){return global.btoa(e)}:function(e){return e.replace(/[\s\S]{1,3}/g,cb_encode)},_encode=buffer?buffer.from&&Uint8Array&&buffer.from!==Uint8Array.from?function(e){return(e.constructor===buffer.constructor?e:buffer.from(e)).toString("base64")}:function(e){return(e.constructor===buffer.constructor?e:new buffer(e)).toString("base64")}:function(e){return btoa(utob(e))},encode=function(e,t){return t?_encode(String(e)).replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"})).replace(/=/g,""):_encode(String(e))},encodeURI=function(e){return encode(e,!0)},re_btou=new RegExp(["[À-ß][€-¿]","[à-ï][€-¿]{2}","[ð-÷][€-¿]{3}"].join("|"),"g"),cb_btou=function(e){switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return fromCharCode(55296+(t>>>10))+fromCharCode(56320+(1023&t));case 3:return fromCharCode((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return fromCharCode((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},btou=function(e){return e.replace(re_btou,cb_btou)},cb_decode=function(e){var t=e.length,n=t%4,i=(t>0?b64tab[e.charAt(0)]<<18:0)|(t>1?b64tab[e.charAt(1)]<<12:0)|(t>2?b64tab[e.charAt(2)]<<6:0)|(t>3?b64tab[e.charAt(3)]:0),r=[fromCharCode(i>>>16),fromCharCode(i>>>8&255),fromCharCode(255&i)];return r.length-=[0,0,2,1][n],r.join("")},_atob=global.atob?function(e){return global.atob(e)}:function(e){return e.replace(/\S{1,4}/g,cb_decode)},atob=function(e){return _atob(String(e).replace(/[^A-Za-z0-9\+\/]/g,""))},_decode=buffer?buffer.from&&Uint8Array&&buffer.from!==Uint8Array.from?function(e){return(e.constructor===buffer.constructor?e:buffer.from(e,"base64")).toString()}:function(e){return(e.constructor===buffer.constructor?e:new buffer(e,"base64")).toString()}:function(e){return btou(_atob(e))},decode=function(e){return _decode(String(e).replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})).replace(/[^A-Za-z0-9\+\/]/g,""))},noConflict=function(){var e=global.Base64;return global.Base64=_Base64,e};if(global.Base64={VERSION:version,atob:atob,btoa:btoa,fromBase64:decode,toBase64:encode,utob:utob,encode:encode,encodeURI:encodeURI,btou:btou,decode:decode,noConflict:noConflict,__buffer__:buffer},"function"==typeof Object.defineProperty){var noEnum=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}};global.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",noEnum((function(){return decode(this)}))),Object.defineProperty(String.prototype,"toBase64",noEnum((function(e){return encode(this,e)}))),Object.defineProperty(String.prototype,"toBase64URI",noEnum((function(){return encode(this,!0)})))}}return global.Meteor&&(Base64=global.Base64),module.exports?module.exports.Base64=global.Base64:(__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return global.Base64}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)),{Base64:global.Base64}}))}).call(this,__webpack_require__(237))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n(592);const i="monaco-mouse-cursor-text"},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return d}));var i=n(0),r=n(6),o=n(11),s=n(32),a=n(46);const l=new class{constructor(){this._onDidChangeLanguages=new r.a,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[],this._dynamicLanguages=[]}registerLanguage(e){return this._languages.push(e),this._onDidChangeLanguages.fire(void 0),{dispose:()=>{for(let t=0,n=this._languages.length;t<n;t++)if(this._languages[t]===e)return void this._languages.splice(t,1)}}}getLanguages(){return[].concat(this._languages).concat(this._dynamicLanguages)}};a.a.add("editor.modesRegistry",l);const c="plaintext",d=new o.r(c,1);l.registerLanguage({id:c,extensions:[".txt"],aliases:[i.a("plainText.alias","Plain Text"),"text"],mimetypes:["text/plain"]}),s.a.register(d,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],folding:{offSide:!0}})},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r}));class i{constructor(e){this._prefix=e,this._lastId=0}nextId(){return this._prefix+ ++this._lastId}}const r=new i("id#")},function(e,t,n){"use strict";n.r(t);var i=n(2),r=n(4),o=n(3),s=n(22),a=n(7),l=n(36),c=n(9),d=n(92),u=n(14),h=n(8),f=(n(621),n(60)),g=n(29),p=n(205),m=n(17),_=n(123),b=n(0),v=n(45),y=n(42),w=n(32),C=n(24);const S="code-workspace";function k(e){return e instanceof C.a}var x=n(176);class L{constructor(e){this._delegates=e}resolve(e){for(const t of this._delegates){let n=t.resolve(e);if(void 0!==n)return n}}}class M{constructor(e,t,n,i){this._model=e,this._selection=t,this._selectionIdx=n,this._overtypingCapturer=i}resolve(e){const{name:t}=e;if("SELECTION"===t||"TM_SELECTED_TEXT"===t){let t=this._model.getValueInRange(this._selection)||void 0,n=this._selection.startLineNumber!==this._selection.endLineNumber;if(!t&&this._overtypingCapturer){const e=this._overtypingCapturer.getLastOvertypedInfo(this._selectionIdx);e&&(t=e.value,n=e.multiline)}if(t&&n&&e.snippet){const n=this._model.getLineContent(this._selection.startLineNumber),i=Object(h.z)(n,0,this._selection.startColumn-1);let r=i;e.snippet.walk(t=>t!==e&&(t instanceof _.d&&(r=Object(h.z)(t.value.split(/\r\n|\r|\n/).pop())),!0));const o=Object(h.d)(r,i);t=t.replace(/(\r\n|\r|\n)(.*)/g,(e,t,n)=>`${t}${r.substr(o)}${n}`)}return t}if("TM_CURRENT_LINE"===t)return this._model.getLineContent(this._selection.positionLineNumber);if("TM_CURRENT_WORD"===t){const e=this._model.getWordAtPosition({lineNumber:this._selection.positionLineNumber,column:this._selection.positionColumn});return e&&e.word||void 0}return"TM_LINE_INDEX"===t?String(this._selection.positionLineNumber-1):"TM_LINE_NUMBER"===t?String(this._selection.positionLineNumber):void 0}}class D{constructor(e,t){this._labelService=e,this._model=t}resolve(e){const{name:t}=e;if("TM_FILENAME"===t)return v.a(this._model.uri.fsPath);if("TM_FILENAME_BASE"===t){const e=v.a(this._model.uri.fsPath),t=e.lastIndexOf(".");return t<=0?e:e.slice(0,t)}return"TM_DIRECTORY"===t&&this._labelService?"."===v.b(this._model.uri.fsPath)?"":this._labelService.getUriLabel(Object(y.d)(this._model.uri)):"TM_FILEPATH"===t&&this._labelService?this._labelService.getUriLabel(this._model.uri):void 0}}class E{constructor(e,t,n,i){this._readClipboardText=e,this._selectionIdx=t,this._selectionCount=n,this._spread=i}resolve(e){if("CLIPBOARD"!==e.name)return;const t=this._readClipboardText();if(t){if(this._spread){const e=t.split(/\r\n|\n|\r/).filter(e=>!Object(h.D)(e));if(e.length===this._selectionCount)return e[this._selectionIdx]}return t}}}class T{constructor(e,t){this._model=e,this._selection=t}resolve(e){const{name:t}=e,n=this._model.getLanguageIdAtPosition(this._selection.selectionStartLineNumber,this._selection.selectionStartColumn),i=w.a.getComments(n);if(i)return"LINE_COMMENT"===t?i.lineCommentToken||void 0:"BLOCK_COMMENT_START"===t?i.blockCommentStartToken||void 0:"BLOCK_COMMENT_END"===t&&i.blockCommentEndToken||void 0}}class O{resolve(e){const{name:t}=e;return"CURRENT_YEAR"===t?String((new Date).getFullYear()):"CURRENT_YEAR_SHORT"===t?String((new Date).getFullYear()).slice(-2):"CURRENT_MONTH"===t?String((new Date).getMonth().valueOf()+1).padStart(2,"0"):"CURRENT_DATE"===t?String((new Date).getDate().valueOf()).padStart(2,"0"):"CURRENT_HOUR"===t?String((new Date).getHours().valueOf()).padStart(2,"0"):"CURRENT_MINUTE"===t?String((new Date).getMinutes().valueOf()).padStart(2,"0"):"CURRENT_SECOND"===t?String((new Date).getSeconds().valueOf()).padStart(2,"0"):"CURRENT_DAY_NAME"===t?O.dayNames[(new Date).getDay()]:"CURRENT_DAY_NAME_SHORT"===t?O.dayNamesShort[(new Date).getDay()]:"CURRENT_MONTH_NAME"===t?O.monthNames[(new Date).getMonth()]:"CURRENT_MONTH_NAME_SHORT"===t?O.monthNamesShort[(new Date).getMonth()]:"CURRENT_SECONDS_UNIX"===t?String(Math.floor(Date.now()/1e3)):void 0}}O.dayNames=[b.a("Sunday","Sunday"),b.a("Monday","Monday"),b.a("Tuesday","Tuesday"),b.a("Wednesday","Wednesday"),b.a("Thursday","Thursday"),b.a("Friday","Friday"),b.a("Saturday","Saturday")],O.dayNamesShort=[b.a("SundayShort","Sun"),b.a("MondayShort","Mon"),b.a("TuesdayShort","Tue"),b.a("WednesdayShort","Wed"),b.a("ThursdayShort","Thu"),b.a("FridayShort","Fri"),b.a("SaturdayShort","Sat")],O.monthNames=[b.a("January","January"),b.a("February","February"),b.a("March","March"),b.a("April","April"),b.a("May","May"),b.a("June","June"),b.a("July","July"),b.a("August","August"),b.a("September","September"),b.a("October","October"),b.a("November","November"),b.a("December","December")],O.monthNamesShort=[b.a("JanuaryShort","Jan"),b.a("FebruaryShort","Feb"),b.a("MarchShort","Mar"),b.a("AprilShort","Apr"),b.a("MayShort","May"),b.a("JuneShort","Jun"),b.a("JulyShort","Jul"),b.a("AugustShort","Aug"),b.a("SeptemberShort","Sep"),b.a("OctoberShort","Oct"),b.a("NovemberShort","Nov"),b.a("DecemberShort","Dec")];class N{constructor(e){this._workspaceService=e}resolve(e){if(!this._workspaceService)return;const t=function(e){return e.configuration?{configPath:e.configuration,id:e.id}:1===e.folders.length?e.folders[0].uri:void 0}(this._workspaceService.getWorkspace());return t?"WORKSPACE_NAME"===e.name?this._resolveWorkspaceName(t):"WORKSPACE_FOLDER"===e.name?this._resoveWorkspacePath(t):void 0:void 0}_resolveWorkspaceName(e){if(k(e))return v.a(e.path);let t=v.a(e.configPath.path);return t.endsWith(S)&&(t=t.substr(0,t.length-S.length-1)),t}_resoveWorkspacePath(e){if(k(e))return Object(x.c)(e.fsPath);let t=v.a(e.configPath.path),n=e.configPath.fsPath;return n.endsWith(t)&&(n=n.substr(0,n.length-t.length-1)),n?Object(x.c)(n):"/"}}class I{resolve(e){const{name:t}=e;return"RANDOM"===t?Math.random().toString().slice(-6):"RANDOM_HEX"===t?Math.random().toString(16).slice(-6):void 0}}var A=n(18),R=n(5),P=n(171);Object(A.g)((e,t)=>{function n(t){const n=e.getColor(t);return n?n.toString():"transparent"}t.addRule(`.monaco-editor .snippet-placeholder { background-color: ${n(R.oc)}; outline-color: ${n(R.pc)}; }`),t.addRule(`.monaco-editor .finish-snippet-placeholder { background-color: ${n(R.mc)}; outline-color: ${n(R.nc)}; }`)});class j{constructor(e,t,n){this._nestingLevel=1,this._editor=e,this._snippet=t,this._offset=n,this._placeholderGroups=Object(u.m)(t.placeholders,_.b.compareByIndex),this._placeholderGroupsIdx=-1}dispose(){this._placeholderDecorations&&this._editor.deltaDecorations([...this._placeholderDecorations.values()],[]),this._placeholderGroups.length=0}_initDecorations(){if(this._placeholderDecorations)return;this._placeholderDecorations=new Map;const e=this._editor.getModel();this._editor.changeDecorations(t=>{for(const n of this._snippet.placeholders){const i=this._snippet.offset(n),r=this._snippet.fullLen(n),s=o.a.fromPositions(e.getPositionAt(this._offset+i),e.getPositionAt(this._offset+i+r)),a=n.isFinalTabstop?j._decor.inactiveFinal:j._decor.inactive,l=t.addDecoration(s,a);this._placeholderDecorations.set(n,l)}})}move(e){if(!this._editor.hasModel())return[];if(this._initDecorations(),this._placeholderGroupsIdx>=0){let e=[];for(const t of this._placeholderGroups[this._placeholderGroupsIdx])if(t.transform){const n=this._placeholderDecorations.get(t),i=this._editor.getModel().getDecorationRange(n),r=this._editor.getModel().getValueInRange(i);e.push(f.a.replaceMove(i,t.transform.resolve(r)))}e.length>0&&this._editor.executeEdits("snippet.placeholderTransform",e)}let t=!1;!0===e&&this._placeholderGroupsIdx<this._placeholderGroups.length-1?(this._placeholderGroupsIdx+=1,t=!0):!1===e&&this._placeholderGroupsIdx>0&&(this._placeholderGroupsIdx-=1,t=!0);const n=this._editor.getModel().changeDecorations(e=>{const n=new Set,i=[];for(const r of this._placeholderGroups[this._placeholderGroupsIdx]){const o=this._placeholderDecorations.get(r),a=this._editor.getModel().getDecorationRange(o);i.push(new s.a(a.startLineNumber,a.startColumn,a.endLineNumber,a.endColumn)),t=t&&this._hasPlaceholderBeenCollapsed(r),e.changeDecorationOptions(o,r.isFinalTabstop?j._decor.activeFinal:j._decor.active),n.add(r);for(const t of this._snippet.enclosingPlaceholders(r)){const i=this._placeholderDecorations.get(t);e.changeDecorationOptions(i,t.isFinalTabstop?j._decor.activeFinal:j._decor.active),n.add(t)}}for(const[t,i]of this._placeholderDecorations)n.has(t)||e.changeDecorationOptions(i,t.isFinalTabstop?j._decor.inactiveFinal:j._decor.inactive);return i});return t?this.move(e):null!=n?n:[]}_hasPlaceholderBeenCollapsed(e){let t=e;for(;t;){if(t instanceof _.b){const e=this._placeholderDecorations.get(t);if(this._editor.getModel().getDecorationRange(e).isEmpty()&&t.toString().length>0)return!0}t=t.parent}return!1}get isAtFirstPlaceholder(){return this._placeholderGroupsIdx<=0||0===this._placeholderGroups.length}get isAtLastPlaceholder(){return this._placeholderGroupsIdx===this._placeholderGroups.length-1}get hasPlaceholder(){return this._snippet.placeholders.length>0}computePossibleSelections(){const e=new Map;for(const t of this._placeholderGroups){let n;for(const i of t){if(i.isFinalTabstop)break;n||(n=[],e.set(i.index,n));const t=this._placeholderDecorations.get(i),r=this._editor.getModel().getDecorationRange(t);if(!r){e.delete(i.index);break}n.push(r)}}return e}get choice(){return this._placeholderGroups[this._placeholderGroupsIdx][0].choice}merge(e){const t=this._editor.getModel();this._nestingLevel*=10,this._editor.changeDecorations(n=>{for(const i of this._placeholderGroups[this._placeholderGroupsIdx]){const r=e.shift();console.assert(!r._placeholderDecorations);const s=r._snippet.placeholderInfo.last.index;for(const e of r._snippet.placeholderInfo.all)e.isFinalTabstop?e.index=i.index+(s+1)/this._nestingLevel:e.index=i.index+e.index/this._nestingLevel;this._snippet.replace(i,r._snippet.children);const a=this._placeholderDecorations.get(i);n.removeDecoration(a),this._placeholderDecorations.delete(i);for(const e of r._snippet.placeholders){const i=r._snippet.offset(e),s=r._snippet.fullLen(e),a=o.a.fromPositions(t.getPositionAt(r._offset+i),t.getPositionAt(r._offset+i+s)),l=n.addDecoration(a,j._decor.inactive);this._placeholderDecorations.set(e,l)}}this._placeholderGroups=Object(u.m)(this._snippet.placeholders,_.b.compareByIndex)})}}j._decor={active:g.a.register({stickiness:0,className:"snippet-placeholder"}),inactive:g.a.register({stickiness:1,className:"snippet-placeholder"}),activeFinal:g.a.register({stickiness:1,className:"finish-snippet-placeholder"}),inactiveFinal:g.a.register({stickiness:1,className:"finish-snippet-placeholder"})};const F={overwriteBefore:0,overwriteAfter:0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0};class B{constructor(e,t,n=F){this._templateMerges=[],this._snippets=[],this._editor=e,this._template=t,this._options=n}static adjustWhitespace(e,t,n,i,r){const o=e.getLineContent(t.lineNumber),s=Object(h.z)(o,0,t.column-1);n.walk(t=>{if(t instanceof _.d&&!(t.parent instanceof _.a)){const n=t.value.split(/\r\n|\r|\n/);if(i)for(let t=1;t<n.length;t++){let i=Object(h.z)(n[t]);n[t]=e.normalizeIndentation(s+i)+n[t].substr(i.length)}if(r){const i=n.join(e.getEOL());i!==t.value&&t.parent.replace(t,[new _.d(i)])}}return!0})}static adjustSelection(e,t,n,i){if(0!==n||0!==i){const{positionLineNumber:r,positionColumn:o}=t,a=o-n,l=o+i,c=e.validateRange({startLineNumber:r,startColumn:a,endLineNumber:r,endColumn:l});t=s.a.createWithDirection(c.startLineNumber,c.startColumn,c.endLineNumber,c.endColumn,t.getDirection())}return t}static createEditsAndSnippets(e,t,n,i,r,s,a,l){const c=[],d=[];if(!e.hasModel())return{edits:c,snippets:d};const u=e.getModel(),h=e.invokeWithinContext(e=>e.get(p.a,m.d)),g=e.invokeWithinContext(e=>new D(e.get(P.a,m.d),u)),b=()=>a;let v=0,y=u.getValueInRange(B.adjustSelection(u,e.getSelection(),n,0)),w=u.getValueInRange(B.adjustSelection(u,e.getSelection(),0,i)),C=u.getLineFirstNonWhitespaceColumn(e.getSelection().positionLineNumber);const S=e.getSelections().map((e,t)=>({selection:e,idx:t})).sort((e,t)=>o.a.compareRangesUsingStarts(e.selection,t.selection));for(const{selection:o,idx:a}of S){let p=B.adjustSelection(u,o,n,0),m=B.adjustSelection(u,o,0,i);y!==u.getValueInRange(p)&&(p=o),w!==u.getValueInRange(m)&&(m=o);const k=o.setStartPosition(p.startLineNumber,p.startColumn).setEndPosition(m.endLineNumber,m.endColumn),x=(new _.c).parse(t,!0,r),D=k.getStartPosition();B.adjustWhitespace(u,D,x,s||a>0&&C!==u.getLineFirstNonWhitespaceColumn(o.positionLineNumber),!0),x.resolveVariables(new L([g,new E(b,a,S.length,"spread"===e.getOption(62)),new M(u,o,a,l),new T(u,o),new O,new N(h),new I]));const A=u.getOffsetAt(D)+v;v+=x.toString().length-u.getValueLengthInRange(k),c[a]=f.a.replace(k,x.toString()),c[a].identifier={major:a,minor:0},d[a]=new j(e,x,A)}return{edits:c,snippets:d}}dispose(){Object(i.f)(this._snippets)}_logInfo(){return`template="${this._template}", merged_templates="${this._templateMerges.join(" -> ")}"`}insert(){if(!this._editor.hasModel())return;const{edits:e,snippets:t}=B.createEditsAndSnippets(this._editor,this._template,this._options.overwriteBefore,this._options.overwriteAfter,!1,this._options.adjustWhitespace,this._options.clipboardText,this._options.overtypingCapturer);this._snippets=t,this._editor.executeEdits("snippet",e,e=>this._snippets[0].hasPlaceholder?this._move(!0):e.filter(e=>!!e.identifier).map(e=>s.a.fromPositions(e.range.getEndPosition()))),this._editor.revealRange(this._editor.getSelections()[0])}merge(e,t=F){if(!this._editor.hasModel())return;this._templateMerges.push([this._snippets[0]._nestingLevel,this._snippets[0]._placeholderGroupsIdx,e]);const{edits:n,snippets:i}=B.createEditsAndSnippets(this._editor,e,t.overwriteBefore,t.overwriteAfter,!0,t.adjustWhitespace,t.clipboardText,t.overtypingCapturer);this._editor.executeEdits("snippet",n,e=>{for(const e of this._snippets)e.merge(i);return console.assert(0===i.length),this._snippets[0].hasPlaceholder?this._move(void 0):e.filter(e=>!!e.identifier).map(e=>s.a.fromPositions(e.range.getEndPosition()))})}next(){const e=this._move(!0);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())}prev(){const e=this._move(!1);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())}_move(e){const t=[];for(const n of this._snippets){const i=n.move(e);t.push(...i)}return t}get isAtFirstPlaceholder(){return this._snippets[0].isAtFirstPlaceholder}get isAtLastPlaceholder(){return this._snippets[0].isAtLastPlaceholder}get hasPlaceholder(){return this._snippets[0].hasPlaceholder}get choice(){return this._snippets[0].choice}isSelectionWithinPlaceholders(){if(!this.hasPlaceholder)return!1;const e=this._editor.getSelections();if(e.length<this._snippets.length)return!1;let t=new Map;for(const n of this._snippets){const i=n.computePossibleSelections();if(0===t.size)for(const[n,r]of i){r.sort(o.a.compareRangesUsingStarts);for(const i of e)if(r[0].containsRange(i)){t.set(n,[]);break}}if(0===t.size)return!1;t.forEach((e,t)=>{e.push(...i.get(t))})}e.sort(o.a.compareRangesUsingStarts);for(let[n,i]of t)if(i.length===e.length){i.sort(o.a.compareRangesUsingStarts);for(let r=0;r<i.length;r++)i[r].containsRange(e[r])||t.delete(n)}else t.delete(n);return t.size>0}}n.d(t,"SnippetController2",(function(){return V}));var W=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},H=function(e,t){return function(n,i){t(n,i,e)}};const Y={overwriteBefore:0,overwriteAfter:0,undoStopBefore:!0,undoStopAfter:!0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0};let V=class e{constructor(t,n,r){this._editor=t,this._logService=n,this._snippetListener=new i.b,this._modelVersionId=-1,this._inSnippet=e.InSnippetMode.bindTo(r),this._hasNextTabstop=e.HasNextTabstop.bindTo(r),this._hasPrevTabstop=e.HasPrevTabstop.bindTo(r)}static get(t){return t.getContribution(e.ID)}dispose(){this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),Object(i.f)(this._session),this._snippetListener.dispose()}insert(e,t){try{this._doInsert(e,void 0===t?Y:Object.assign(Object.assign({},Y),t))}catch(t){this.cancel(),this._logService.error(t),this._logService.error("snippet_error"),this._logService.error("insert_template=",e),this._logService.error("existing_template=",this._session?this._session._logInfo():"<no_session>")}}_doInsert(e,t){this._editor.hasModel()&&(this._snippetListener.clear(),t.undoStopBefore&&this._editor.getModel().pushStackElement(),this._session?this._session.merge(e,t):(this._modelVersionId=this._editor.getModel().getAlternativeVersionId(),this._session=new B(this._editor,e,t),this._session.insert()),t.undoStopAfter&&this._editor.getModel().pushStackElement(),this._updateState(),this._snippetListener.add(this._editor.onDidChangeModelContent(e=>e.isFlush&&this.cancel())),this._snippetListener.add(this._editor.onDidChangeModel(()=>this.cancel())),this._snippetListener.add(this._editor.onDidChangeCursorSelection(()=>this._updateState())))}_updateState(){if(this._session&&this._editor.hasModel()){if(this._modelVersionId===this._editor.getModel().getAlternativeVersionId())return this.cancel();if(!this._session.hasPlaceholder)return this.cancel();if(this._session.isAtLastPlaceholder||!this._session.isSelectionWithinPlaceholders())return this.cancel();this._inSnippet.set(!0),this._hasPrevTabstop.set(!this._session.isAtFirstPlaceholder),this._hasNextTabstop.set(!this._session.isAtLastPlaceholder),this._handleChoice()}}_handleChoice(){if(!this._session||!this._editor.hasModel())return void(this._currentChoice=void 0);const{choice:e}=this._session;if(e){if(this._currentChoice!==e){this._currentChoice=e,this._editor.setSelections(this._editor.getSelections().map(e=>s.a.fromPositions(e.getStartPosition())));const[t]=e.options;Object(l.f)(this._editor,e.options.map((e,n)=>({kind:13,label:e.value,insertText:e.value,sortText:"a".repeat(n+1),range:o.a.fromPositions(this._editor.getPosition(),this._editor.getPosition().delta(0,t.value.length))})))}}else this._currentChoice=void 0}finish(){for(;this._inSnippet.get();)this.next()}cancel(e=!1){this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),this._snippetListener.clear(),Object(i.f)(this._session),this._session=void 0,this._modelVersionId=-1,e&&this._editor.setSelections([this._editor.getSelection()])}prev(){this._session&&this._session.prev(),this._updateState()}next(){this._session&&this._session.next(),this._updateState()}isInSnippet(){return Boolean(this._inSnippet.get())}};V.ID="snippetController2",V.InSnippetMode=new c.c("inSnippetMode",!1),V.HasNextTabstop=new c.c("hasNextTabstop",!1),V.HasPrevTabstop=new c.c("hasPrevTabstop",!1),V=W([H(1,d.b),H(2,c.b)],V),Object(r.m)(V.ID,V);const z=r.c.bindToContribution(V.get);Object(r.l)(new z({id:"jumpToNextSnippetPlaceholder",precondition:c.a.and(V.InSnippetMode,V.HasNextTabstop),handler:e=>e.next(),kbOpts:{weight:130,kbExpr:a.a.editorTextFocus,primary:2}})),Object(r.l)(new z({id:"jumpToPrevSnippetPlaceholder",precondition:c.a.and(V.InSnippetMode,V.HasPrevTabstop),handler:e=>e.prev(),kbOpts:{weight:130,kbExpr:a.a.editorTextFocus,primary:1026}})),Object(r.l)(new z({id:"leaveSnippet",precondition:V.InSnippetMode,handler:e=>e.cancel(!0),kbOpts:{weight:130,kbExpr:a.a.editorTextFocus,primary:9,secondary:[1033]}})),Object(r.l)(new z({id:"acceptSnippet",precondition:V.InSnippetMode,handler:e=>e.finish()}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return l}));var i=n(17),r=n(24),o=n(20);const s=Object(i.c)("IWorkspaceEditService");class a{constructor(e){this.metadata=e}static convert(e){return e.edits.map(e=>{if(function(e){return Object(o.i)(e)&&r.a.isUri(e.resource)&&Object(o.i)(e.edit)}(e))return new l(e.resource,e.edit,e.modelVersionId,e.metadata);if(function(e){return Object(o.i)(e)&&(Boolean(e.newUri)||Boolean(e.oldUri))}(e))return new c(e.oldUri,e.newUri,e.options,e.metadata);throw new Error("Unsupported edit")})}}class l extends a{constructor(e,t,n,i){super(i),this.resource=e,this.textEdit=t,this.versionId=n,this.metadata=i}}class c extends a{constructor(e,t,n,i){super(i),this.oldResource=e,this.newResource=t,this.options=n,this.metadata=i}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));n(577);var i=n(0),r=n(19),o=n(2),s=n(55),a=n(3),l=n(4),c=n(9),d=n(18),u=n(5),h=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},f=function(e,t){return function(n,i){t(n,i,e)}};let g=class e extends o.a{constructor(t,n){super(),this._messageWidget=this._register(new o.d),this._messageListeners=this._register(new o.b),this._editor=t,this._visible=e.MESSAGE_VISIBLE.bindTo(n),this._register(this._editor.onDidAttemptReadOnlyEdit(()=>this._onDidAttemptReadOnlyEdit()))}static get(t){return t.getContribution(e.ID)}dispose(){super.dispose(),this._visible.reset()}showMessage(e,t){let n;Object(s.a)(e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._messageWidget.value=new m(this._editor,t,e),this._messageListeners.add(this._editor.onDidBlurEditorText(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeCursorPosition(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidDispose(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeModel(()=>this.closeMessage())),this._messageListeners.add(new r.e(()=>this.closeMessage(),3e3)),this._messageListeners.add(this._editor.onMouseMove(e=>{e.target.position&&(n?n.containsPosition(e.target.position)||this.closeMessage():n=new a.a(t.lineNumber-3,1,e.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(m.fadeOut(this._messageWidget.value))}_onDidAttemptReadOnlyEdit(){this._editor.hasModel()&&this.showMessage(i.a("editor.readonly","Cannot edit in read-only editor"),this._editor.getPosition())}};g.ID="editor.contrib.messageController",g.MESSAGE_VISIBLE=new c.c("messageVisible",!1),g=h([f(1,c.b)],g);const p=l.c.bindToContribution(g.get);Object(l.l)(new p({id:"leaveEditorMessage",precondition:g.MESSAGE_VISIBLE,handler:e=>e.closeMessage(),kbOpts:{weight:130,primary:9}}));class m{constructor(e,{lineNumber:t,column:n},i){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:n-1},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage");const r=document.createElement("div");r.classList.add("message"),r.textContent=i,this._domNode.appendChild(r);const o=document.createElement("div");o.classList.add("anchor"),this._domNode.appendChild(o),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}static fadeOut(e){let t;const n=()=>{e.dispose(),clearTimeout(t),e.getDomNode().removeEventListener("animationend",n)};return t=setTimeout(n,110),e.getDomNode().addEventListener("animationend",n),e.getDomNode().classList.add("fadeOut"),{dispose:n}}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2]}}}Object(l.m)(g.ID,g),Object(d.g)((e,t)=>{const n=e.getColor(u.mb);if(n){let i=e.type===d.b?2:1;t.addRule(`.monaco-editor .monaco-editor-overlaymessage .anchor { border-top-color: ${n}; }`),t.addRule(`.monaco-editor .monaco-editor-overlaymessage .message { border: ${i}px solid ${n}; }`)}const i=e.getColor(u.lb);i&&t.addRule(`.monaco-editor .monaco-editor-overlaymessage .message { background-color: ${i}; }`);const r=e.getColor(u.nb);r&&t.addRule(`.monaco-editor .monaco-editor-overlaymessage .message { color: ${r}; }`)})},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));class i{constructor(...e){this._entries=new Map;for(let[t,n]of e)this.set(t,n)}set(e,t){const n=this._entries.get(e);return this._entries.set(e,t),n}has(e){return this._entries.has(e)}get(e){return this._entries.get(e)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var i=n(17);const r=Object(i.c)("undoRedoService");class o{constructor(e,t){this.resource=e,this.elements=t}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return a}));var i=n(61),r=n(8);const o="$(";function s(e){const t=e.indexOf(o);return-1===t?{text:e}:function(e,t){const n=[];let i="";function r(e){if(e){i+=e;for(const t of e)n.push(d)}}let s,a,l=-1,c="",d=0,u=t;const h=e.length;r(e.substr(0,t));for(;u<h;){if(s=e[u],a=e[u+1],s===o[0]&&a===o[1])l=u,r(c),c=o,u++;else if(")"===s&&-1!==l){d+=u-l+1,l=-1,c=""}else-1!==l?/^[a-z0-9\-]$/i.test(s)?c+=s:(r(c),l=-1,c=""):r(s);u++}return r(c),{text:i,codiconOffsets:n}}(e,t)}function a(e,t,n=!1){const{text:o,codiconOffsets:s}=t;if(!s||0===s.length)return Object(i.g)(e,o,n);const a=Object(r.K)(o," "),l=o.length-a.length,c=Object(i.g)(e,a,n);if(c)for(const e of c){const t=s[e.start+l]+l;e.start+=t,e.end+=t}return c}},function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return d})),n.d(t,"c",(function(){return u})),n.d(t,"e",(function(){return h})),n.d(t,"d",(function(){return f}));var i=n(26),r=n(15),o=n(4),s=n(11),a=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};function l(e,t,n,i){const o=n.ordered(e).map(n=>Promise.resolve(i(n,e,t)).then(void 0,e=>{Object(r.f)(e)}));return Promise.all(o).then(e=>{const t=[];for(let n of e)Array.isArray(n)?t.push(...n):n&&t.push(n);return t})}function c(e,t,n){return l(e,t,s.f,(e,t,i)=>e.provideDefinition(t,i,n))}function d(e,t,n){return l(e,t,s.e,(e,t,i)=>e.provideDeclaration(t,i,n))}function u(e,t,n){return l(e,t,s.q,(e,t,i)=>e.provideImplementation(t,i,n))}function h(e,t,n){return l(e,t,s.D,(e,t,i)=>e.provideTypeDefinition(t,i,n))}function f(e,t,n,i){return l(e,t,s.v,(e,t,r)=>a(this,void 0,void 0,(function*(){const o=yield e.provideReferences(t,r,{includeDeclaration:!0},i);if(!n||!o||2!==o.length)return o;const s=yield e.provideReferences(t,r,{includeDeclaration:!1},i);return s&&1===s.length?s:o})))}Object(o.p)("_executeDefinitionProvider",(e,t)=>c(e,t,i.a.None)),Object(o.p)("_executeDeclarationProvider",(e,t)=>d(e,t,i.a.None)),Object(o.p)("_executeImplementationProvider",(e,t)=>u(e,t,i.a.None)),Object(o.p)("_executeTypeDefinitionProvider",(e,t)=>h(e,t,i.a.None)),Object(o.p)("_executeReferenceProvider",(e,t)=>f(e,t,!1,i.a.None))},function(e,t,n){var i=n(357),r=n(301),o=n(159);e.exports=function(e){return o(e)?i(e):r(e)}},function(e,t,n){var i=n(180),r=n(299);e.exports=function(e){return null!=e&&r(e.length)&&!i(e)}},function(e,t,n){var i=n(710),r=n(720),o=n(182),s=n(86),a=n(727);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?s(e)?r(e[0],e[1]):i(e):a(e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));n(583);var i=n(2),r=n(12),o=n(20),s=n(50),a=n(59),l=n(6),c=n(1),d=n(34);const u=!1;let h=4;const f=new l.a;class g extends i.a{constructor(e,t,n){super(),this._state=3,this._onDidEnablementChange=this._register(new l.a),this.onDidEnablementChange=this._onDidEnablementChange.event,this._onDidStart=this._register(new l.a),this.onDidStart=this._onDidStart.event,this._onDidChange=this._register(new l.a),this.onDidChange=this._onDidChange.event,this._onDidReset=this._register(new l.a),this.onDidReset=this._onDidReset.event,this._onDidEnd=this._register(new l.a),this.onDidEnd=this._onDidEnd.event,this.linkedSash=void 0,this.orthogonalStartSashDisposables=this._register(new i.b),this.orthogonalEndSashDisposables=this._register(new i.b),this.el=Object(c.p)(e,Object(c.a)(".monaco-sash")),r.f&&Object(c.e)(this.el,"mac"),this._register(Object(d.a)(this.el,"mousedown")(this.onMouseDown,this)),this._register(Object(d.a)(this.el,"dblclick")(this.onMouseDoubleClick,this)),this._register(s.b.addTarget(this.el)),this._register(Object(d.a)(this.el,s.a.Start)(this.onTouchStart,this)),"number"==typeof n.size?(this.size=n.size,0===n.orientation?this.el.style.width=`${this.size}px`:this.el.style.height=`${this.size}px`):(this.size=h,this._register(f.event(e=>{this.size=e,this.layout()}))),this.hidden=!1,this.layoutProvider=t,this.orthogonalStartSash=n.orthogonalStartSash,this.orthogonalEndSash=n.orthogonalEndSash,this.orientation=n.orientation||0,1===this.orientation?(Object(c.e)(this.el,"horizontal"),Object(c.Q)(this.el,"vertical")):(Object(c.Q)(this.el,"horizontal"),Object(c.e)(this.el,"vertical")),Object(c.ab)(this.el,"debug",u),this.layout()}get state(){return this._state}set state(e){this._state!==e&&(Object(c.ab)(this.el,"disabled",0===e),Object(c.ab)(this.el,"minimum",1===e),Object(c.ab)(this.el,"maximum",2===e),this._state=e,this._onDidEnablementChange.fire(e))}get orthogonalStartSash(){return this._orthogonalStartSash}set orthogonalStartSash(e){this.orthogonalStartSashDisposables.clear(),e?(this.orthogonalStartSashDisposables.add(e.onDidEnablementChange(this.onOrthogonalStartSashEnablementChange,this)),this.onOrthogonalStartSashEnablementChange(e.state)):this.onOrthogonalStartSashEnablementChange(0),this._orthogonalStartSash=e}get orthogonalEndSash(){return this._orthogonalEndSash}set orthogonalEndSash(e){this.orthogonalEndSashDisposables.clear(),e?(this.orthogonalEndSashDisposables.add(e.onDidEnablementChange(this.onOrthogonalEndSashEnablementChange,this)),this.onOrthogonalEndSashEnablementChange(e.state)):this.onOrthogonalEndSashEnablementChange(0),this._orthogonalEndSash=e}onMouseDown(e){c.b.stop(e,!1);let t=!1;if(!e.__orthogonalSashEvent){const n=this.getOrthogonalSash(e);n&&(t=!0,e.__orthogonalSashEvent=!0,n.onMouseDown(e))}if(this.linkedSash&&!e.__linkedSashEvent&&(e.__linkedSashEvent=!0,this.linkedSash.onMouseDown(e)),!this.state)return;const n=[...Object(c.D)("iframe"),...Object(c.D)("webview")];for(const e of n)e.style.pointerEvents="none";const o=new a.a(e),s=o.posx,l=o.posy,u=o.altKey,h={startX:s,currentX:s,startY:l,currentY:l,altKey:u};Object(c.e)(this.el,"active"),this._onDidStart.fire(h);const f=Object(c.v)(this.el),g=()=>{let e="";e=t?"all-scroll":1===this.orientation?1===this.state?"s-resize":2===this.state?"n-resize":r.f?"row-resize":"ns-resize":1===this.state?"e-resize":2===this.state?"w-resize":r.f?"col-resize":"ew-resize",f.innerHTML=`* { cursor: ${e} !important; }`},p=new i.b;g(),t||this.onDidEnablementChange(g,null,p);Object(d.a)(window,"mousemove")(e=>{c.b.stop(e,!1);const t=new a.a(e),n={startX:s,currentX:t.posx,startY:l,currentY:t.posy,altKey:u};this._onDidChange.fire(n)},null,p),Object(d.a)(window,"mouseup")(e=>{c.b.stop(e,!1),this.el.removeChild(f),Object(c.Q)(this.el,"active"),this._onDidEnd.fire(),p.dispose();for(const e of n)e.style.pointerEvents="auto"},null,p)}onMouseDoubleClick(e){const t=this.getOrthogonalSash(e);t&&t._onDidReset.fire(),this.linkedSash&&this.linkedSash._onDidReset.fire(),this._onDidReset.fire()}onTouchStart(e){c.b.stop(e);const t=[],n=e.pageX,r=e.pageY,a=e.altKey;this._onDidStart.fire({startX:n,currentX:n,startY:r,currentY:r,altKey:a}),t.push(Object(c.i)(this.el,s.a.Change,e=>{o.h(e.pageX)&&o.h(e.pageY)&&this._onDidChange.fire({startX:n,currentX:e.pageX,startY:r,currentY:e.pageY,altKey:a})})),t.push(Object(c.i)(this.el,s.a.End,e=>{this._onDidEnd.fire(),Object(i.f)(t)}))}layout(){if(0===this.orientation){const e=this.layoutProvider;this.el.style.left=e.getVerticalSashLeft(this)-this.size/2+"px",e.getVerticalSashTop&&(this.el.style.top=e.getVerticalSashTop(this)+"px"),e.getVerticalSashHeight&&(this.el.style.height=e.getVerticalSashHeight(this)+"px")}else{const e=this.layoutProvider;this.el.style.top=e.getHorizontalSashTop(this)-this.size/2+"px",e.getHorizontalSashLeft&&(this.el.style.left=e.getHorizontalSashLeft(this)+"px"),e.getHorizontalSashWidth&&(this.el.style.width=e.getHorizontalSashWidth(this)+"px")}}hide(){this.hidden=!0,this.el.style.display="none",this.el.setAttribute("aria-hidden","true")}onOrthogonalStartSashEnablementChange(e){Object(c.ab)(this.el,"orthogonal-start",0!==e)}onOrthogonalEndSashEnablementChange(e){Object(c.ab)(this.el,"orthogonal-end",0!==e)}getOrthogonalSash(e){if(0===this.orientation){if(e.offsetY<=this.size)return this.orthogonalStartSash;if(e.offsetY>=this.el.clientHeight-this.size)return this.orthogonalEndSash}else{if(e.offsetX<=this.size)return this.orthogonalStartSash;if(e.offsetX>=this.el.clientWidth-this.size)return this.orthogonalEndSash}}dispose(){super.dispose(),this.el.remove()}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var i=n(17);const r=Object(i.c)("textResourceConfigurationService"),o=Object(i.c)("textResourcePropertiesService")},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));n(624),n(625),n(626);var i=n(16);const r=new class{constructor(){this.onDidChange=i.c.onDidRegister}getCSS(){const e=[];for(let t of i.c.all)e.push(o(t));return e.join("\n")}};function o(e){let t=e.definition;for(;t instanceof i.a;)t=t.definition;return`.codicon-${e.id}:before { content: '${t.character}'; }`}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var i=n(8);class r{constructor(e,t,n,i){this.startColumn=e,this.endColumn=t,this.className=n,this.type=i}static _equals(e,t){return e.startColumn===t.startColumn&&e.endColumn===t.endColumn&&e.className===t.className&&e.type===t.type}static equalsArr(e,t){const n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(!r._equals(e[i],t[i]))return!1;return!0}static filter(e,t,n,i){if(0===e.length)return[];let o=[],s=0;for(let a=0,l=e.length;a<l;a++){const l=e[a],c=l.range;if(c.endLineNumber<t||c.startLineNumber>t)continue;if(c.isEmpty()&&(0===l.type||3===l.type))continue;const d=c.startLineNumber===t?c.startColumn:n,u=c.endLineNumber===t?c.endColumn:i;o[s++]=new r(d,u,l.inlineClassName,l.type)}return o}static _typeCompare(e,t){const n=[2,0,1,3];return n[e]-n[t]}static compare(e,t){if(e.startColumn===t.startColumn){if(e.endColumn===t.endColumn){const n=r._typeCompare(e.type,t.type);return 0===n?e.className<t.className?-1:e.className>t.className?1:0:n}return e.endColumn-t.endColumn}return e.startColumn-t.startColumn}}class o{constructor(e,t,n,i){this.startOffset=e,this.endOffset=t,this.className=n,this.metadata=i}}class s{constructor(){this.stopOffsets=[],this.classNames=[],this.metadata=[],this.count=0}static _metadata(e){let t=0;for(let n=0,i=e.length;n<i;n++)t|=e[n];return t}consumeLowerThan(e,t,n){for(;this.count>0&&this.stopOffsets[0]<e;){let e=0;for(;e+1<this.count&&this.stopOffsets[e]===this.stopOffsets[e+1];)e++;n.push(new o(t,this.stopOffsets[e],this.classNames.join(" "),s._metadata(this.metadata))),t=this.stopOffsets[e]+1,this.stopOffsets.splice(0,e+1),this.classNames.splice(0,e+1),this.metadata.splice(0,e+1),this.count-=e+1}return this.count>0&&t<e&&(n.push(new o(t,e-1,this.classNames.join(" "),s._metadata(this.metadata))),t=e),t}insert(e,t,n){if(0===this.count||this.stopOffsets[this.count-1]<=e)this.stopOffsets.push(e),this.classNames.push(t),this.metadata.push(n);else for(let i=0;i<this.count;i++)if(this.stopOffsets[i]>=e){this.stopOffsets.splice(i,0,e),this.classNames.splice(i,0,t),this.metadata.splice(i,0,n);break}this.count++}}class a{static normalize(e,t){if(0===t.length)return[];let n=[];const r=new s;let o=0;for(let s=0,a=t.length;s<a;s++){const a=t[s];let l=a.startColumn,c=a.endColumn;const d=a.className,u=1===a.type?2:2===a.type?4:0;if(l>1){const t=e.charCodeAt(l-2);i.F(t)&&l--}if(c>1){const t=e.charCodeAt(c-2);i.F(t)&&c--}const h=l-1,f=c-2;o=r.consumeLowerThan(h,o,n),0===r.count&&(o=h),r.insert(f,d,u)}return r.consumeLowerThan(1073741824,o,n),n}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n(37),r=n(16),o=n(8);class s{constructor(e,t){this.supportCodicons=t,this.text="",this.title="",this.highlights=[],this.didEverRender=!1,this.domNode=document.createElement("span"),this.domNode.className="monaco-highlighted-label",e.appendChild(this.domNode)}get element(){return this.domNode}set(e,t=[],n="",r){e||(e=""),r&&(e=s.escapeNewLines(e,t)),this.didEverRender&&this.text===e&&this.title===n&&i.e(this.highlights,t)||(Array.isArray(t)||(t=[]),this.text=e,this.title=n,this.highlights=t,this.render())}render(){let e="",t=0;for(const n of this.highlights){if(n.end===n.start)continue;if(t<n.start){e+="<span>";const i=this.text.substring(t,n.start);e+=this.supportCodicons?Object(r.f)(Object(o.u)(i)):Object(o.u)(i),e+="</span>",t=n.end}n.extraClasses?e+=`<span class="highlight ${n.extraClasses}">`:e+='<span class="highlight">';const i=this.text.substring(n.start,n.end);e+=this.supportCodicons?Object(r.f)(Object(o.u)(i)):Object(o.u)(i),e+="</span>",t=n.end}if(t<this.text.length){e+="<span>";const n=this.text.substring(t);e+=this.supportCodicons?Object(r.f)(Object(o.u)(n)):Object(o.u)(n),e+="</span>"}this.domNode.innerHTML=e,this.title?this.domNode.title=this.title:this.domNode.removeAttribute("title"),this.didEverRender=!0}static escapeNewLines(e,t){let n=0,i=0;return e.replace(/\r\n|\r|\n/g,(e,r)=>{i="\r\n"===e?-1:0,r+=n;for(const e of t)e.end<=r||(e.start>=r&&(e.start+=i),e.end>=r&&(e.end+=i));return n+=i,"⏎"})}}},function(e,t,n){var i;if(!i)try{i=n(564)}catch(e){}i||(i=window.d3),e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(135),r=n(144);t.default=function(e,t){return i.default.lang.round(r.default.parse(e)[t])}},function(e,t,n){"use strict";n.r(t);var i=n(0),r=n(19),o=n(2),s=n(8),a=n(4),l=n(7),c=n(51),d=n(10),u=n(3),h=n(22),f=n(96),g=n(48),p=n(29),m=n(5),_=n(18);class b{constructor(e){this._editor=e,this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null,this._startPosition=this._editor.getPosition()}dispose(){this._editor.deltaDecorations(this._allDecorations(),[]),this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}reset(){this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}getCount(){return this._decorations.length}getFindScope(){return this._findScopeDecorationIds[0]?this._editor.getModel().getDecorationRange(this._findScopeDecorationIds[0]):null}getFindScopes(){if(this._findScopeDecorationIds.length){const e=this._findScopeDecorationIds.map(e=>this._editor.getModel().getDecorationRange(e)).filter(e=>!!e);if(e.length)return e}return null}getStartPosition(){return this._startPosition}setStartPosition(e){this._startPosition=e,this.setCurrentFindMatch(null)}_getDecorationIndex(e){const t=this._decorations.indexOf(e);return t>=0?t+1:1}getCurrentMatchesPosition(e){let t=this._editor.getModel().getDecorationsInRange(e);for(const e of t){const t=e.options;if(t===b._FIND_MATCH_DECORATION||t===b._CURRENT_FIND_MATCH_DECORATION)return this._getDecorationIndex(e.id)}return 0}setCurrentFindMatch(e){let t=null,n=0;if(e)for(let i=0,r=this._decorations.length;i<r;i++){let r=this._editor.getModel().getDecorationRange(this._decorations[i]);if(e.equalsRange(r)){t=this._decorations[i],n=i+1;break}}return null===this._highlightedDecorationId&&null===t||this._editor.changeDecorations(e=>{if(null!==this._highlightedDecorationId&&(e.changeDecorationOptions(this._highlightedDecorationId,b._FIND_MATCH_DECORATION),this._highlightedDecorationId=null),null!==t&&(this._highlightedDecorationId=t,e.changeDecorationOptions(this._highlightedDecorationId,b._CURRENT_FIND_MATCH_DECORATION)),null!==this._rangeHighlightDecorationId&&(e.removeDecoration(this._rangeHighlightDecorationId),this._rangeHighlightDecorationId=null),null!==t){let n=this._editor.getModel().getDecorationRange(t);if(n.startLineNumber!==n.endLineNumber&&1===n.endColumn){let e=n.endLineNumber-1,t=this._editor.getModel().getLineMaxColumn(e);n=new u.a(n.startLineNumber,n.startColumn,e,t)}this._rangeHighlightDecorationId=e.addDecoration(n,b._RANGE_HIGHLIGHT_DECORATION)}}),n}set(e,t){this._editor.changeDecorations(n=>{let i=b._FIND_MATCH_DECORATION,r=[];if(e.length>1e3){i=b._FIND_MATCH_NO_OVERVIEW_DECORATION;const t=this._editor.getModel().getLineCount(),n=this._editor.getLayoutInfo().height/t,o=Math.max(2,Math.ceil(3/n));let s=e[0].range.startLineNumber,a=e[0].range.endLineNumber;for(let t=1,n=e.length;t<n;t++){const n=e[t].range;a+o>=n.startLineNumber?n.endLineNumber>a&&(a=n.endLineNumber):(r.push({range:new u.a(s,1,a,1),options:b._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),s=n.startLineNumber,a=n.endLineNumber)}r.push({range:new u.a(s,1,a,1),options:b._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}let o=new Array(e.length);for(let t=0,n=e.length;t<n;t++)o[t]={range:e[t].range,options:i};this._decorations=n.deltaDecorations(this._decorations,o),this._overviewRulerApproximateDecorations=n.deltaDecorations(this._overviewRulerApproximateDecorations,r),this._rangeHighlightDecorationId&&(n.removeDecoration(this._rangeHighlightDecorationId),this._rangeHighlightDecorationId=null),this._findScopeDecorationIds.length&&(this._findScopeDecorationIds.forEach(e=>n.removeDecoration(e)),this._findScopeDecorationIds=[]),(null==t?void 0:t.length)&&(this._findScopeDecorationIds=t.map(e=>n.addDecoration(e,b._FIND_SCOPE_DECORATION)))})}matchBeforePosition(e){if(0===this._decorations.length)return null;for(let t=this._decorations.length-1;t>=0;t--){let n=this._decorations[t],i=this._editor.getModel().getDecorationRange(n);if(i&&!(i.endLineNumber>e.lineNumber)){if(i.endLineNumber<e.lineNumber)return i;if(!(i.endColumn>e.column))return i}}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1])}matchAfterPosition(e){if(0===this._decorations.length)return null;for(let t=0,n=this._decorations.length;t<n;t++){let n=this._decorations[t],i=this._editor.getModel().getDecorationRange(n);if(i&&!(i.startLineNumber<e.lineNumber)){if(i.startLineNumber>e.lineNumber)return i;if(!(i.startColumn<e.column))return i}}return this._editor.getModel().getDecorationRange(this._decorations[0])}_allDecorations(){let e=[];return e=(e=e.concat(this._decorations)).concat(this._overviewRulerApproximateDecorations),this._findScopeDecorationIds.length&&e.push(...this._findScopeDecorationIds),this._rangeHighlightDecorationId&&e.push(this._rangeHighlightDecorationId),e}}b._CURRENT_FIND_MATCH_DECORATION=p.a.register({stickiness:1,zIndex:13,className:"currentFindMatch",showIfCollapsed:!0,overviewRuler:{color:Object(_.h)(m.Vb),position:g.d.Center},minimap:{color:Object(_.h)(m.Ob),position:g.c.Inline}}),b._FIND_MATCH_DECORATION=p.a.register({stickiness:1,className:"findMatch",showIfCollapsed:!0,overviewRuler:{color:Object(_.h)(m.Vb),position:g.d.Center},minimap:{color:Object(_.h)(m.Ob),position:g.c.Inline}}),b._FIND_MATCH_NO_OVERVIEW_DECORATION=p.a.register({stickiness:1,className:"findMatch",showIfCollapsed:!0}),b._FIND_MATCH_ONLY_OVERVIEW_DECORATION=p.a.register({stickiness:1,overviewRuler:{color:Object(_.h)(m.Vb),position:g.d.Center}}),b._RANGE_HIGHLIGHT_DECORATION=p.a.register({stickiness:1,className:"rangeHighlight",isWholeLine:!0}),b._FIND_SCOPE_DECORATION=p.a.register({className:"findScope",isWholeLine:!0});class v{constructor(e,t,n){this._editorSelection=e,this._ranges=t,this._replaceStrings=n,this._trackedEditorSelectionId=null}getEditOperations(e,t){if(this._ranges.length>0){let e=[];for(let t=0;t<this._ranges.length;t++)e.push({range:this._ranges[t],text:this._replaceStrings[t]});e.sort((e,t)=>u.a.compareRangesUsingStarts(e.range,t.range));let n=[],i=e[0];for(let t=1;t<e.length;t++)i.range.endLineNumber===e[t].range.startLineNumber&&i.range.endColumn===e[t].range.startColumn?(i.range=i.range.plusRange(e[t].range),i.text=i.text+e[t].text):(n.push(i),i=e[t]);n.push(i);for(const e of n)t.addEditOperation(e.range,e.text)}this._trackedEditorSelectionId=t.trackSelection(this._editorSelection)}computeCursorState(e,t){return t.getTrackedSelection(this._trackedEditorSelectionId)}}function y(e,t){if(e&&""!==e[0]){const n=w(e,t,"-"),i=w(e,t,"_");return n&&!i?C(e,t,"-"):!n&&i?C(e,t,"_"):e[0].toUpperCase()===e[0]?t.toUpperCase():e[0].toLowerCase()===e[0]?t.toLowerCase():s.o(e[0][0])&&t.length>0?t[0].toUpperCase()+t.substr(1):t}return t}function w(e,t,n){return-1!==e[0].indexOf(n)&&-1!==t.indexOf(n)&&e[0].split(n).length===t.split(n).length}function C(e,t,n){const i=t.split(n),r=e[0].split(n);let o="";return i.forEach((e,t)=>{o+=y([r[t]],e)+n}),o.slice(0,-1)}class S{constructor(e){this.staticValue=e,this.kind=0}}class k{constructor(e){this.pieces=e,this.kind=1}}class x{constructor(e){e&&0!==e.length?1===e.length&&null!==e[0].staticValue?this._state=new S(e[0].staticValue):this._state=new k(e):this._state=new S("")}static fromStaticValue(e){return new x([L.staticValue(e)])}get hasReplacementPatterns(){return 1===this._state.kind}buildReplaceString(e,t){if(0===this._state.kind)return t?y(e,this._state.staticValue):this._state.staticValue;let n="";for(let t=0,i=this._state.pieces.length;t<i;t++){let i=this._state.pieces[t];if(null!==i.staticValue){n+=i.staticValue;continue}let r=x._substitute(i.matchIndex,e);if(null!==i.caseOps&&i.caseOps.length>0){let e=[],t=i.caseOps.length,n=0;for(let o=0,s=r.length;o<s;o++){if(n>=t){e.push(r.slice(o));break}switch(i.caseOps[n]){case"U":e.push(r[o].toUpperCase());break;case"u":e.push(r[o].toUpperCase()),n++;break;case"L":e.push(r[o].toLowerCase());break;case"l":e.push(r[o].toLowerCase()),n++;break;default:e.push(r[o])}}r=e.join("")}n+=r}return n}static _substitute(e,t){if(null===t)return"";if(0===e)return t[0];let n="";for(;e>0;){if(e<t.length){return(t[e]||"")+n}n=String(e%10)+n,e=Math.floor(e/10)}return"$"+n}}class L{constructor(e,t,n){this.staticValue=e,this.matchIndex=t,n&&0!==n.length?this.caseOps=n.slice(0):this.caseOps=null}static staticValue(e){return new L(e,-1,null)}static caseOps(e,t){return new L(null,e,t)}}class M{constructor(e){this._source=e,this._lastCharIndex=0,this._result=[],this._resultLen=0,this._currentStaticPiece=""}emitUnchanged(e){this._emitStatic(this._source.substring(this._lastCharIndex,e)),this._lastCharIndex=e}emitStatic(e,t){this._emitStatic(e),this._lastCharIndex=t}_emitStatic(e){0!==e.length&&(this._currentStaticPiece+=e)}emitMatchIndex(e,t,n){0!==this._currentStaticPiece.length&&(this._result[this._resultLen++]=L.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),this._result[this._resultLen++]=L.caseOps(e,n),this._lastCharIndex=t}finalize(){return this.emitUnchanged(this._source.length),0!==this._currentStaticPiece.length&&(this._result[this._resultLen++]=L.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),new x(this._result)}}var D=n(9),E=n(14);const T=new D.c("findWidgetVisible",!1),O=new D.c("findInputFocussed",!1),N=new D.c("replaceInputFocussed",!1),I={primary:545,mac:{primary:2593}},A={primary:565,mac:{primary:2613}},R={primary:560,mac:{primary:2608}},P={primary:554,mac:{primary:2602}},j={StartFindAction:"actions.find",StartFindWithSelection:"actions.findWithSelection",NextMatchFindAction:"editor.action.nextMatchFindAction",PreviousMatchFindAction:"editor.action.previousMatchFindAction",NextSelectionMatchFindAction:"editor.action.nextSelectionMatchFindAction",PreviousSelectionMatchFindAction:"editor.action.previousSelectionMatchFindAction",StartFindReplaceAction:"editor.action.startFindReplaceAction",CloseFindWidgetCommand:"closeFindWidget",ToggleCaseSensitiveCommand:"toggleFindCaseSensitive",ToggleWholeWordCommand:"toggleFindWholeWord",ToggleRegexCommand:"toggleFindRegex",ToggleSearchScopeCommand:"toggleFindInSelection",TogglePreserveCaseCommand:"togglePreserveCase",ReplaceOneAction:"editor.action.replaceOne",ReplaceAllAction:"editor.action.replaceAll",SelectAllMatchesAction:"editor.action.selectAllMatches"},F=19999,B=240;class W{constructor(e,t){this._toDispose=new o.b,this._editor=e,this._state=t,this._isDisposed=!1,this._startSearchingTimer=new r.e,this._decorations=new b(e),this._toDispose.add(this._decorations),this._updateDecorationsScheduler=new r.d(()=>this.research(!1),100),this._toDispose.add(this._updateDecorationsScheduler),this._toDispose.add(this._editor.onDidChangeCursorPosition(e=>{3!==e.reason&&5!==e.reason&&6!==e.reason||this._decorations.setStartPosition(this._editor.getPosition())})),this._ignoreModelContentChanged=!1,this._toDispose.add(this._editor.onDidChangeModelContent(e=>{this._ignoreModelContentChanged||(e.isFlush&&this._decorations.reset(),this._decorations.setStartPosition(this._editor.getPosition()),this._updateDecorationsScheduler.schedule())})),this._toDispose.add(this._state.onFindReplaceStateChange(e=>this._onStateChanged(e))),this.research(!1,this._state.searchScope)}dispose(){this._isDisposed=!0,Object(o.f)(this._startSearchingTimer),this._toDispose.dispose()}_onStateChanged(e){if(!this._isDisposed&&this._editor.hasModel()&&(e.searchString||e.isReplaceRevealed||e.isRegex||e.wholeWord||e.matchCase||e.searchScope)){this._editor.getModel().isTooLargeForSyncing()?(this._startSearchingTimer.cancel(),this._startSearchingTimer.setIfNotSet(()=>{e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor)},B)):e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor)}}static _getSearchRange(e,t){return t||e.getFullModelRange()}research(e,t){let n=null;void 0!==t?null!==t&&(n=Array.isArray(t)?t:[t]):n=this._decorations.getFindScopes(),null!==n&&(n=n.map(e=>{if(e.startLineNumber!==e.endLineNumber){let t=e.endLineNumber;return 1===e.endColumn&&(t-=1),new u.a(e.startLineNumber,1,t,this._editor.getModel().getLineMaxColumn(t))}return e}));let i=this._findMatches(n,!1,F);this._decorations.set(i,n);const r=this._editor.getSelection();let o=this._decorations.getCurrentMatchesPosition(r);if(0===o&&i.length>0){const e=Object(E.h)(i.map(e=>e.range),e=>u.a.compareRangesUsingStarts(e,r)>=0);o=e>0?e-1+1:o}this._state.changeMatchInfo(o,this._decorations.getCount(),void 0),e&&this._editor.getOption(29).cursorMoveOnType&&this._moveToNextMatch(this._decorations.getStartPosition())}_hasMatches(){return this._state.matchesCount>0}_cannotFind(){if(!this._hasMatches()){let e=this._decorations.getFindScope();return e&&this._editor.revealRangeInCenterIfOutsideViewport(e,0),!0}return!1}_setCurrentFindMatch(e){let t=this._decorations.setCurrentFindMatch(e);this._state.changeMatchInfo(t,this._decorations.getCount(),e),this._editor.setSelection(e),this._editor.revealRangeInCenterIfOutsideViewport(e,0)}_prevSearchPosition(e){let t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0),{lineNumber:n,column:i}=e,r=this._editor.getModel();return t||1===i?(1===n?n=r.getLineCount():n--,i=r.getLineMaxColumn(n)):i--,new d.a(n,i)}_moveToPrevMatch(e,t=!1){if(!this._state.canNavigateBack()){const t=this._decorations.matchAfterPosition(e);return void(t&&this._setCurrentFindMatch(t))}if(this._decorations.getCount()<F){let t=this._decorations.matchBeforePosition(e);return t&&t.isEmpty()&&t.getStartPosition().equals(e)&&(e=this._prevSearchPosition(e),t=this._decorations.matchBeforePosition(e)),void(t&&this._setCurrentFindMatch(t))}if(this._cannotFind())return;let n=this._decorations.getFindScope(),i=W._getSearchRange(this._editor.getModel(),n);i.getEndPosition().isBefore(e)&&(e=i.getEndPosition()),e.isBefore(i.getStartPosition())&&(e=i.getEndPosition());let{lineNumber:r,column:o}=e,s=this._editor.getModel(),a=new d.a(r,o),l=s.findPreviousMatch(this._state.searchString,a,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(105):null,!1);return l&&l.range.isEmpty()&&l.range.getStartPosition().equals(a)&&(a=this._prevSearchPosition(a),l=s.findPreviousMatch(this._state.searchString,a,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(105):null,!1)),l?t||i.containsRange(l.range)?void this._setCurrentFindMatch(l.range):this._moveToPrevMatch(l.range.getStartPosition(),!0):void 0}moveToPrevMatch(){this._moveToPrevMatch(this._editor.getSelection().getStartPosition())}_nextSearchPosition(e){let t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0),{lineNumber:n,column:i}=e,r=this._editor.getModel();return t||i===r.getLineMaxColumn(n)?(n===r.getLineCount()?n=1:n++,i=1):i++,new d.a(n,i)}_moveToNextMatch(e){if(!this._state.canNavigateForward()){const t=this._decorations.matchBeforePosition(e);return void(t&&this._setCurrentFindMatch(t))}if(this._decorations.getCount()<F){let t=this._decorations.matchAfterPosition(e);return t&&t.isEmpty()&&t.getStartPosition().equals(e)&&(e=this._nextSearchPosition(e),t=this._decorations.matchAfterPosition(e)),void(t&&this._setCurrentFindMatch(t))}let t=this._getNextMatch(e,!1,!0);t&&this._setCurrentFindMatch(t.range)}_getNextMatch(e,t,n,i=!1){if(this._cannotFind())return null;let r=this._decorations.getFindScope(),o=W._getSearchRange(this._editor.getModel(),r);o.getEndPosition().isBefore(e)&&(e=o.getStartPosition()),e.isBefore(o.getStartPosition())&&(e=o.getStartPosition());let{lineNumber:s,column:a}=e,l=this._editor.getModel(),c=new d.a(s,a),u=l.findNextMatch(this._state.searchString,c,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(105):null,t);return n&&u&&u.range.isEmpty()&&u.range.getStartPosition().equals(c)&&(c=this._nextSearchPosition(c),u=l.findNextMatch(this._state.searchString,c,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(105):null,t)),u?i||o.containsRange(u.range)?u:this._getNextMatch(u.range.getEndPosition(),t,n,!0):null}moveToNextMatch(){this._moveToNextMatch(this._editor.getSelection().getEndPosition())}_getReplacePattern(){return this._state.isRegex?function(e){if(!e||0===e.length)return new x(null);let t=[],n=new M(e);for(let i=0,r=e.length;i<r;i++){let o=e.charCodeAt(i);if(92!==o){if(36===o){if(++i>=r)break;let o=e.charCodeAt(i);if(36===o){n.emitUnchanged(i-1),n.emitStatic("$",i+1);continue}if(48===o||38===o){n.emitUnchanged(i-1),n.emitMatchIndex(0,i+1,t),t.length=0;continue}if(49<=o&&o<=57){let s=o-48;if(i+1<r){let r=e.charCodeAt(i+1);if(48<=r&&r<=57){i++,s=10*s+(r-48),n.emitUnchanged(i-2),n.emitMatchIndex(s,i+1,t),t.length=0;continue}}n.emitUnchanged(i-1),n.emitMatchIndex(s,i+1,t),t.length=0;continue}}}else{if(++i>=r)break;let o=e.charCodeAt(i);switch(o){case 92:n.emitUnchanged(i-1),n.emitStatic("\\",i+1);break;case 110:n.emitUnchanged(i-1),n.emitStatic("\n",i+1);break;case 116:n.emitUnchanged(i-1),n.emitStatic("\t",i+1);break;case 117:case 85:case 108:case 76:n.emitUnchanged(i-1),n.emitStatic("",i+1),t.push(String.fromCharCode(o))}}}return n.finalize()}(this._state.replaceString):x.fromStaticValue(this._state.replaceString)}replace(){if(!this._hasMatches())return;let e=this._getReplacePattern(),t=this._editor.getSelection(),n=this._getNextMatch(t.getStartPosition(),!0,!1);if(n)if(t.equalsRange(n.range)){let i=e.buildReplaceString(n.matches,this._state.preserveCase),r=new c.a(t,i);this._executeEditorCommand("replace",r),this._decorations.setStartPosition(new d.a(t.startLineNumber,t.startColumn+i.length)),this.research(!0)}else this._decorations.setStartPosition(this._editor.getPosition()),this._setCurrentFindMatch(n.range)}_findMatches(e,t,n){const i=(e||[null]).map(e=>W._getSearchRange(this._editor.getModel(),e));return this._editor.getModel().findMatches(this._state.searchString,i,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(105):null,t,n)}replaceAll(){if(!this._hasMatches())return;const e=this._decorations.getFindScopes();null===e&&this._state.matchesCount>=F?this._largeReplaceAll():this._regularReplaceAll(e),this.research(!1)}_largeReplaceAll(){const e=new f.a(this._state.searchString,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(105):null).parseSearchRequest();if(!e)return;let t=e.regex;if(!t.multiline){let e="mu";t.ignoreCase&&(e+="i"),t.global&&(e+="g"),t=new RegExp(t.source,e)}const n=this._editor.getModel(),i=n.getValue(1),r=n.getFullModelRange(),o=this._getReplacePattern();let s;const a=this._state.preserveCase;s=o.hasReplacementPatterns||a?i.replace(t,(function(){return o.buildReplaceString(arguments,a)})):i.replace(t,o.buildReplaceString(null,a));let l=new c.b(r,s,this._editor.getSelection());this._executeEditorCommand("replaceAll",l)}_regularReplaceAll(e){const t=this._getReplacePattern();let n=this._findMatches(e,t.hasReplacementPatterns||this._state.preserveCase,1073741824),i=[];for(let e=0,r=n.length;e<r;e++)i[e]=t.buildReplaceString(n[e].matches,this._state.preserveCase);let r=new v(this._editor.getSelection(),n.map(e=>e.range),i);this._executeEditorCommand("replaceAll",r)}selectAllMatches(){if(!this._hasMatches())return;let e=this._decorations.getFindScopes(),t=this._findMatches(e,!1,1073741824).map(e=>new h.a(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn)),n=this._editor.getSelection();for(let e=0,i=t.length;e<i;e++){if(t[e].equalsRange(n)){t=[n].concat(t.slice(0,e)).concat(t.slice(e+1));break}}this._editor.setSelections(t)}_executeEditorCommand(e,t){try{this._ignoreModelContentChanged=!0,this._editor.pushUndoStop(),this._editor.executeCommand(e,t),this._editor.pushUndoStop()}finally{this._ignoreModelContentChanged=!1}}}var H=n(1),Y=(n(581),n(69)),V=n(13),z=n(6);const U={inputActiveOptionBorder:V.a.fromHex("#007ACC00"),inputActiveOptionForeground:V.a.fromHex("#FFFFFF"),inputActiveOptionBackground:V.a.fromHex("#0E639C50")};class $ extends Y.a{constructor(e){super(),this._onChange=this._register(new z.a),this.onChange=this._onChange.event,this._onKeyDown=this._register(new z.a),this.onKeyDown=this._onKeyDown.event,this._opts=Object.assign(Object.assign({},U),e),this._checked=this._opts.isChecked;const t=["monaco-custom-checkbox"];this._opts.icon?t.push(this._opts.icon.classNames):t.push("codicon"),this._opts.actionClassName&&t.push(this._opts.actionClassName),t.push(this._checked?"checked":"unchecked"),this.domNode=document.createElement("div"),this.domNode.title=this._opts.title,this.domNode.className=t.join(" "),this.domNode.tabIndex=0,this.domNode.setAttribute("role","checkbox"),this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.setAttribute("aria-label",this._opts.title),this.applyStyles(),this.onclick(this.domNode,e=>{this.checked=!this._checked,this._onChange.fire(!1),e.preventDefault()}),this.ignoreGesture(this.domNode),this.onkeydown(this.domNode,e=>{if(10===e.keyCode||3===e.keyCode)return this.checked=!this._checked,this._onChange.fire(!0),void e.preventDefault();this._onKeyDown.fire(e)})}get enabled(){return"true"!==this.domNode.getAttribute("aria-disabled")}focus(){this.domNode.focus()}get checked(){return this._checked}set checked(e){this._checked=e,this.domNode.setAttribute("aria-checked",String(this._checked)),this._checked?this.domNode.classList.add("checked"):this.domNode.classList.remove("checked"),this.applyStyles()}width(){return 22}style(e){e.inputActiveOptionBorder&&(this._opts.inputActiveOptionBorder=e.inputActiveOptionBorder),e.inputActiveOptionForeground&&(this._opts.inputActiveOptionForeground=e.inputActiveOptionForeground),e.inputActiveOptionBackground&&(this._opts.inputActiveOptionBackground=e.inputActiveOptionBackground),this.applyStyles()}applyStyles(){this.domNode&&(this.domNode.style.borderColor=this._checked&&this._opts.inputActiveOptionBorder?this._opts.inputActiveOptionBorder.toString():"transparent",this.domNode.style.color=this._checked&&this._opts.inputActiveOptionForeground?this._opts.inputActiveOptionForeground.toString():"inherit",this.domNode.style.backgroundColor=this._checked&&this._opts.inputActiveOptionBackground?this._opts.inputActiveOptionBackground.toString():"transparent")}enable(){this.domNode.tabIndex=0,this.domNode.setAttribute("aria-disabled",String(!1))}disable(){H.T(this.domNode),this.domNode.setAttribute("aria-disabled",String(!0))}}var q=n(16);const K=i.a("caseDescription","Match Case"),G=i.a("wordsDescription","Match Whole Word"),Z=i.a("regexDescription","Use Regular Expression");class J extends ${constructor(e){super({icon:q.a.caseSensitive,title:K+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class X extends ${constructor(e){super({icon:q.a.wholeWord,title:G+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class Q extends ${constructor(e){super({icon:q.a.regex,title:Z+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class ee extends Y.a{constructor(e,t,n,i){super(),this._hideSoon=this._register(new r.d(()=>this._hide(),2e3)),this._isVisible=!1,this._editor=e,this._state=t,this._keybindingService=n,this._domNode=document.createElement("div"),this._domNode.className="findOptionsWidget",this._domNode.style.display="none",this._domNode.style.top="10px",this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true");const o=i.getColorTheme().getColor(m.db),s=i.getColorTheme().getColor(m.eb),a=i.getColorTheme().getColor(m.cb);this.caseSensitive=this._register(new J({appendTitle:this._keybindingLabelFor(j.ToggleCaseSensitiveCommand),isChecked:this._state.matchCase,inputActiveOptionBorder:o,inputActiveOptionForeground:s,inputActiveOptionBackground:a})),this._domNode.appendChild(this.caseSensitive.domNode),this._register(this.caseSensitive.onChange(()=>{this._state.change({matchCase:this.caseSensitive.checked},!1)})),this.wholeWords=this._register(new X({appendTitle:this._keybindingLabelFor(j.ToggleWholeWordCommand),isChecked:this._state.wholeWord,inputActiveOptionBorder:o,inputActiveOptionForeground:s,inputActiveOptionBackground:a})),this._domNode.appendChild(this.wholeWords.domNode),this._register(this.wholeWords.onChange(()=>{this._state.change({wholeWord:this.wholeWords.checked},!1)})),this.regex=this._register(new Q({appendTitle:this._keybindingLabelFor(j.ToggleRegexCommand),isChecked:this._state.isRegex,inputActiveOptionBorder:o,inputActiveOptionForeground:s,inputActiveOptionBackground:a})),this._domNode.appendChild(this.regex.domNode),this._register(this.regex.onChange(()=>{this._state.change({isRegex:this.regex.checked},!1)})),this._editor.addOverlayWidget(this),this._register(this._state.onFindReplaceStateChange(e=>{let t=!1;e.isRegex&&(this.regex.checked=this._state.isRegex,t=!0),e.wholeWord&&(this.wholeWords.checked=this._state.wholeWord,t=!0),e.matchCase&&(this.caseSensitive.checked=this._state.matchCase,t=!0),!this._state.isRevealed&&t&&this._revealTemporarily()})),this._register(H.j(this._domNode,e=>this._onMouseOut())),this._register(H.i(this._domNode,"mouseover",e=>this._onMouseOver())),this._applyTheme(i.getColorTheme()),this._register(i.onDidColorThemeChange(this._applyTheme.bind(this)))}_keybindingLabelFor(e){let t=this._keybindingService.lookupKeybinding(e);return t?` (${t.getLabel()})`:""}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return ee.ID}getDomNode(){return this._domNode}getPosition(){return{preference:0}}highlightFindOptions(){this._revealTemporarily()}_revealTemporarily(){this._show(),this._hideSoon.schedule()}_onMouseOut(){this._hideSoon.schedule()}_onMouseOver(){this._hideSoon.cancel()}_show(){this._isVisible||(this._isVisible=!0,this._domNode.style.display="block")}_hide(){this._isVisible&&(this._isVisible=!1,this._domNode.style.display="none")}_applyTheme(e){let t={inputActiveOptionBorder:e.getColor(m.db),inputActiveOptionForeground:e.getColor(m.eb),inputActiveOptionBackground:e.getColor(m.cb)};this.caseSensitive.style(t),this.wholeWords.style(t),this.regex.style(t)}}function te(e,t){return 1===e||2!==e&&t}ee.ID="editor.contrib.findOptionsWidget",Object(_.g)((e,t)=>{const n=e.getColor(m.U);n&&t.addRule(`.monaco-editor .findOptionsWidget { background-color: ${n}; }`);const i=e.getColor(m.W);i&&t.addRule(`.monaco-editor .findOptionsWidget { color: ${i}; }`);const r=e.getColor(m.uc);r&&t.addRule(`.monaco-editor .findOptionsWidget { box-shadow: 0 2px 8px ${r}; }`);const o=e.getColor(m.h);o&&t.addRule(`.monaco-editor .findOptionsWidget { border: 2px solid ${o}; }`)});class ne extends o.a{constructor(){super(),this._onFindReplaceStateChange=this._register(new z.a),this.onFindReplaceStateChange=this._onFindReplaceStateChange.event,this._searchString="",this._replaceString="",this._isRevealed=!1,this._isReplaceRevealed=!1,this._isRegex=!1,this._isRegexOverride=0,this._wholeWord=!1,this._wholeWordOverride=0,this._matchCase=!1,this._matchCaseOverride=0,this._preserveCase=!1,this._preserveCaseOverride=0,this._searchScope=null,this._matchesPosition=0,this._matchesCount=0,this._currentMatch=null,this._loop=!0}get searchString(){return this._searchString}get replaceString(){return this._replaceString}get isRevealed(){return this._isRevealed}get isReplaceRevealed(){return this._isReplaceRevealed}get isRegex(){return te(this._isRegexOverride,this._isRegex)}get wholeWord(){return te(this._wholeWordOverride,this._wholeWord)}get matchCase(){return te(this._matchCaseOverride,this._matchCase)}get preserveCase(){return te(this._preserveCaseOverride,this._preserveCase)}get actualIsRegex(){return this._isRegex}get actualWholeWord(){return this._wholeWord}get actualMatchCase(){return this._matchCase}get actualPreserveCase(){return this._preserveCase}get searchScope(){return this._searchScope}get matchesPosition(){return this._matchesPosition}get matchesCount(){return this._matchesCount}get currentMatch(){return this._currentMatch}changeMatchInfo(e,t,n){let i={moveCursor:!1,updateHistory:!1,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1},r=!1;0===t&&(e=0),e>t&&(e=t),this._matchesPosition!==e&&(this._matchesPosition=e,i.matchesPosition=!0,r=!0),this._matchesCount!==t&&(this._matchesCount=t,i.matchesCount=!0,r=!0),void 0!==n&&(u.a.equalsRange(this._currentMatch,n)||(this._currentMatch=n,i.currentMatch=!0,r=!0)),r&&this._onFindReplaceStateChange.fire(i)}change(e,t,n=!0){var i;let r={moveCursor:t,updateHistory:n,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1},o=!1;const s=this.isRegex,a=this.wholeWord,l=this.matchCase,c=this.preserveCase;void 0!==e.searchString&&this._searchString!==e.searchString&&(this._searchString=e.searchString,r.searchString=!0,o=!0),void 0!==e.replaceString&&this._replaceString!==e.replaceString&&(this._replaceString=e.replaceString,r.replaceString=!0,o=!0),void 0!==e.isRevealed&&this._isRevealed!==e.isRevealed&&(this._isRevealed=e.isRevealed,r.isRevealed=!0,o=!0),void 0!==e.isReplaceRevealed&&this._isReplaceRevealed!==e.isReplaceRevealed&&(this._isReplaceRevealed=e.isReplaceRevealed,r.isReplaceRevealed=!0,o=!0),void 0!==e.isRegex&&(this._isRegex=e.isRegex),void 0!==e.wholeWord&&(this._wholeWord=e.wholeWord),void 0!==e.matchCase&&(this._matchCase=e.matchCase),void 0!==e.preserveCase&&(this._preserveCase=e.preserveCase),void 0!==e.searchScope&&((null===(i=e.searchScope)||void 0===i?void 0:i.every(e=>{var t;return null===(t=this._searchScope)||void 0===t?void 0:t.some(t=>!u.a.equalsRange(t,e))}))||(this._searchScope=e.searchScope,r.searchScope=!0,o=!0)),void 0!==e.loop&&this._loop!==e.loop&&(this._loop=e.loop,r.loop=!0,o=!0),this._isRegexOverride=void 0!==e.isRegexOverride?e.isRegexOverride:0,this._wholeWordOverride=void 0!==e.wholeWordOverride?e.wholeWordOverride:0,this._matchCaseOverride=void 0!==e.matchCaseOverride?e.matchCaseOverride:0,this._preserveCaseOverride=void 0!==e.preserveCaseOverride?e.preserveCaseOverride:0,s!==this.isRegex&&(o=!0,r.isRegex=!0),a!==this.wholeWord&&(o=!0,r.wholeWord=!0),l!==this.matchCase&&(o=!0,r.matchCase=!0),c!==this.preserveCase&&(o=!0,r.preserveCase=!0),o&&this._onFindReplaceStateChange.fire(r)}canNavigateBack(){return this.canNavigateInLoop()||1!==this.matchesPosition}canNavigateForward(){return this.canNavigateInLoop()||this.matchesPosition<this.matchesCount}canNavigateInLoop(){return this._loop||this.matchesCount>=F}}n(582);var ie=n(55),re=n(161),oe=n(15),se=n(12),ae=(n(345),n(207));const le=i.a("defaultLabel","input");class ce extends Y.a{constructor(e,t,n,i){super(),this._showOptionButtons=n,this.fixFocusOnOptionClickEnabled=!0,this._onDidOptionChange=this._register(new z.a),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new z.a),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new z.a),this.onMouseDown=this._onMouseDown.event,this._onInput=this._register(new z.a),this._onKeyUp=this._register(new z.a),this._onCaseSensitiveKeyDown=this._register(new z.a),this.onCaseSensitiveKeyDown=this._onCaseSensitiveKeyDown.event,this._onRegexKeyDown=this._register(new z.a),this.onRegexKeyDown=this._onRegexKeyDown.event,this._lastHighlightFindOptions=0,this.contextViewProvider=t,this.placeholder=i.placeholder||"",this.validation=i.validation,this.label=i.label||le,this.inputActiveOptionBorder=i.inputActiveOptionBorder,this.inputActiveOptionForeground=i.inputActiveOptionForeground,this.inputActiveOptionBackground=i.inputActiveOptionBackground,this.inputBackground=i.inputBackground,this.inputForeground=i.inputForeground,this.inputBorder=i.inputBorder,this.inputValidationInfoBorder=i.inputValidationInfoBorder,this.inputValidationInfoBackground=i.inputValidationInfoBackground,this.inputValidationInfoForeground=i.inputValidationInfoForeground,this.inputValidationWarningBorder=i.inputValidationWarningBorder,this.inputValidationWarningBackground=i.inputValidationWarningBackground,this.inputValidationWarningForeground=i.inputValidationWarningForeground,this.inputValidationErrorBorder=i.inputValidationErrorBorder,this.inputValidationErrorBackground=i.inputValidationErrorBackground,this.inputValidationErrorForeground=i.inputValidationErrorForeground;const r=i.appendCaseSensitiveLabel||"",o=i.appendWholeWordsLabel||"",s=i.appendRegexLabel||"",a=i.history||[],l=!!i.flexibleHeight,c=!!i.flexibleWidth,d=i.flexibleMaxHeight;this.domNode=document.createElement("div"),H.e(this.domNode,"monaco-findInput"),this.inputBox=this._register(new ae.a(this.domNode,this.contextViewProvider,{placeholder:this.placeholder||"",ariaLabel:this.label||"",validationOptions:{validation:this.validation},inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder,history:a,flexibleHeight:l,flexibleWidth:c,flexibleMaxHeight:d})),this.regex=this._register(new Q({appendTitle:s,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.regex.onChange(e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.regex.onKeyDown(e=>{this._onRegexKeyDown.fire(e)})),this.wholeWords=this._register(new X({appendTitle:o,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.wholeWords.onChange(e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this.caseSensitive=this._register(new J({appendTitle:r,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.caseSensitive.onChange(e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.caseSensitive.onKeyDown(e=>{this._onCaseSensitiveKeyDown.fire(e)})),this._showOptionButtons&&(this.inputBox.paddingRight=this.caseSensitive.width()+this.wholeWords.width()+this.regex.width());let u=[this.caseSensitive.domNode,this.wholeWords.domNode,this.regex.domNode];this.onkeydown(this.domNode,e=>{if(e.equals(15)||e.equals(17)||e.equals(9)){let t=u.indexOf(document.activeElement);if(t>=0){let n=-1;e.equals(17)?n=(t+1)%u.length:e.equals(15)&&(n=0===t?u.length-1:t-1),e.equals(9)?u[t].blur():n>=0&&u[n].focus(),H.b.stop(e,!0)}}});let h=document.createElement("div");h.className="controls",h.style.display=this._showOptionButtons?"block":"none",h.appendChild(this.caseSensitive.domNode),h.appendChild(this.wholeWords.domNode),h.appendChild(this.regex.domNode),this.domNode.appendChild(h),e&&e.appendChild(this.domNode),this.onkeydown(this.inputBox.inputElement,e=>this._onKeyDown.fire(e)),this.onkeyup(this.inputBox.inputElement,e=>this._onKeyUp.fire(e)),this.oninput(this.inputBox.inputElement,e=>this._onInput.fire()),this.onmousedown(this.inputBox.inputElement,e=>this._onMouseDown.fire(e))}enable(){H.Q(this.domNode,"disabled"),this.inputBox.enable(),this.regex.enable(),this.wholeWords.enable(),this.caseSensitive.enable()}disable(){H.e(this.domNode,"disabled"),this.inputBox.disable(),this.regex.disable(),this.wholeWords.disable(),this.caseSensitive.disable()}setFocusInputOnOptionClick(e){this.fixFocusOnOptionClickEnabled=e}setEnabled(e){e?this.enable():this.disable()}getValue(){return this.inputBox.value}setValue(e){this.inputBox.value!==e&&(this.inputBox.value=e)}style(e){this.inputActiveOptionBorder=e.inputActiveOptionBorder,this.inputActiveOptionForeground=e.inputActiveOptionForeground,this.inputActiveOptionBackground=e.inputActiveOptionBackground,this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()}applyStyles(){if(this.domNode){const e={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground};this.regex.style(e),this.wholeWords.style(e),this.caseSensitive.style(e);const t={inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder};this.inputBox.style(t)}}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getCaseSensitive(){return this.caseSensitive.checked}setCaseSensitive(e){this.caseSensitive.checked=e}getWholeWords(){return this.wholeWords.checked}setWholeWords(e){this.wholeWords.checked=e}getRegex(){return this.regex.checked}setRegex(e){this.regex.checked=e,this.validate()}focusOnCaseSensitive(){this.caseSensitive.focus()}highlightFindOptions(){H.Q(this.domNode,"highlight-"+this._lastHighlightFindOptions),this._lastHighlightFindOptions=1-this._lastHighlightFindOptions,H.e(this.domNode,"highlight-"+this._lastHighlightFindOptions)}validate(){this.inputBox.validate()}clearMessage(){this.inputBox.hideMessage()}}var de=n(80);const ue=i.a("defaultLabel","input"),he=i.a("label.preserveCaseCheckbox","Preserve Case");class fe extends ${constructor(e){super({icon:q.a.preserveCase,title:he+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class ge extends Y.a{constructor(e,t,n,i){super(),this._showOptionButtons=n,this.fixFocusOnOptionClickEnabled=!0,this.cachedOptionsWidth=0,this._onDidOptionChange=this._register(new z.a),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new z.a),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new z.a),this._onInput=this._register(new z.a),this._onKeyUp=this._register(new z.a),this._onPreserveCaseKeyDown=this._register(new z.a),this.onPreserveCaseKeyDown=this._onPreserveCaseKeyDown.event,this.contextViewProvider=t,this.placeholder=i.placeholder||"",this.validation=i.validation,this.label=i.label||ue,this.inputActiveOptionBorder=i.inputActiveOptionBorder,this.inputActiveOptionForeground=i.inputActiveOptionForeground,this.inputActiveOptionBackground=i.inputActiveOptionBackground,this.inputBackground=i.inputBackground,this.inputForeground=i.inputForeground,this.inputBorder=i.inputBorder,this.inputValidationInfoBorder=i.inputValidationInfoBorder,this.inputValidationInfoBackground=i.inputValidationInfoBackground,this.inputValidationInfoForeground=i.inputValidationInfoForeground,this.inputValidationWarningBorder=i.inputValidationWarningBorder,this.inputValidationWarningBackground=i.inputValidationWarningBackground,this.inputValidationWarningForeground=i.inputValidationWarningForeground,this.inputValidationErrorBorder=i.inputValidationErrorBorder,this.inputValidationErrorBackground=i.inputValidationErrorBackground,this.inputValidationErrorForeground=i.inputValidationErrorForeground;const r=i.history||[],o=!!i.flexibleHeight,s=!!i.flexibleWidth,a=i.flexibleMaxHeight;this.domNode=document.createElement("div"),H.e(this.domNode,"monaco-findInput"),this.inputBox=this._register(new ae.a(this.domNode,this.contextViewProvider,{ariaLabel:this.label||"",placeholder:this.placeholder||"",validationOptions:{validation:this.validation},inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder,history:r,flexibleHeight:o,flexibleWidth:s,flexibleMaxHeight:a})),this.preserveCase=this._register(new fe({appendTitle:"",isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.preserveCase.onChange(e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.preserveCase.onKeyDown(e=>{this._onPreserveCaseKeyDown.fire(e)})),this._showOptionButtons?this.cachedOptionsWidth=this.preserveCase.width():this.cachedOptionsWidth=0;let l=[this.preserveCase.domNode];this.onkeydown(this.domNode,e=>{if(e.equals(15)||e.equals(17)||e.equals(9)){let t=l.indexOf(document.activeElement);if(t>=0){let n=-1;e.equals(17)?n=(t+1)%l.length:e.equals(15)&&(n=0===t?l.length-1:t-1),e.equals(9)?l[t].blur():n>=0&&l[n].focus(),H.b.stop(e,!0)}}});let c=document.createElement("div");c.className="controls",c.style.display=this._showOptionButtons?"block":"none",c.appendChild(this.preserveCase.domNode),this.domNode.appendChild(c),e&&e.appendChild(this.domNode),this.onkeydown(this.inputBox.inputElement,e=>this._onKeyDown.fire(e)),this.onkeyup(this.inputBox.inputElement,e=>this._onKeyUp.fire(e)),this.oninput(this.inputBox.inputElement,e=>this._onInput.fire()),this.onmousedown(this.inputBox.inputElement,e=>this._onMouseDown.fire(e))}enable(){H.Q(this.domNode,"disabled"),this.inputBox.enable(),this.preserveCase.enable()}disable(){H.e(this.domNode,"disabled"),this.inputBox.disable(),this.preserveCase.disable()}setEnabled(e){e?this.enable():this.disable()}style(e){this.inputActiveOptionBorder=e.inputActiveOptionBorder,this.inputActiveOptionForeground=e.inputActiveOptionForeground,this.inputActiveOptionBackground=e.inputActiveOptionBackground,this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()}applyStyles(){if(this.domNode){const e={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground};this.preserveCase.style(e);const t={inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder};this.inputBox.style(t)}}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getPreserveCase(){return this.preserveCase.checked}setPreserveCase(e){this.preserveCase.checked=e}focusOnPreserve(){this.preserveCase.focus()}validate(){this.inputBox&&this.inputBox.validate()}set width(e){this.inputBox.paddingRight=this.cachedOptionsWidth,this.inputBox.width=e,this.domNode.style.width=e+"px"}dispose(){super.dispose()}}var pe=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},me=function(e,t){return function(n,i){t(n,i,e)}};const _e="historyNavigationWidget",be="historyNavigationEnabled";function ve(e,t){return e.getContext(document.activeElement).getValue(t)}function ye(e,t){const n=function(e,t){return e.createScoped(t.target)}(e,t);return function(e,t,n){new D.c(n,t).bindTo(e)}(n,t,_e),{scopedContextKeyService:n,historyNavigationEnablement:new D.c(be,!0).bindTo(n)}}let we=class extends ce{constructor(e,t,n,i,r=!1){super(e,t,r,n),this._register(ye(i,{target:this.inputBox.element,historyNavigator:this.inputBox}).scopedContextKeyService)}};we=pe([me(3,D.b)],we);let Ce=class extends ge{constructor(e,t,n,i,r=!1){super(e,t,r,n),this._register(ye(i,{target:this.inputBox.element,historyNavigator:this.inputBox}).scopedContextKeyService)}};Ce=pe([me(3,D.b)],Ce),de.a.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:D.a.and(D.a.has(_e),D.a.equals(be,!0)),primary:16,secondary:[528],handler:(e,t)=>{const n=ve(e.get(D.b),_e);if(n){n.historyNavigator.showPreviousValue()}}}),de.a.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:D.a.and(D.a.has(_e),D.a.equals(be,!0)),primary:18,secondary:[530],handler:(e,t)=>{const n=ve(e.get(D.b),_e);if(n){n.historyNavigator.showNextValue()}}});var Se=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};const ke=Object(q.e)("find-selection",q.a.selection),xe=Object(q.e)("find-collapsed",q.a.chevronRight),Le=Object(q.e)("find-expanded",q.a.chevronDown),Me=Object(q.e)("find-close",q.a.close),De=Object(q.e)("find-replace",q.a.replace),Ee=Object(q.e)("find-replace-all",q.a.replaceAll),Te=Object(q.e)("find-previous-match",q.a.arrowUp),Oe=Object(q.e)("find-next-match",q.a.arrowDown),Ne=i.a("label.find","Find"),Ie=i.a("placeholder.find","Find"),Ae=i.a("label.previousMatchButton","Previous match"),Re=i.a("label.nextMatchButton","Next match"),Pe=i.a("label.toggleSelectionFind","Find in selection"),je=i.a("label.closeButton","Close"),Fe=i.a("label.replace","Replace"),Be=i.a("placeholder.replace","Replace"),We=i.a("label.replaceButton","Replace"),He=i.a("label.replaceAllButton","Replace All"),Ye=i.a("label.toggleReplaceButton","Toggle Replace mode"),Ve=i.a("title.matchesCountLimit","Only the first {0} results are highlighted, but all find operations work on the entire text.",F),ze=i.a("label.matchesLocation","{0} of {1}"),Ue=i.a("label.noResults","No results"),$e=419,qe=221;let Ke=69;const Ge=33,Ze="ctrlEnterReplaceAll.windows.donotask",Je=se.f?256:2048;class Xe{constructor(e){this.afterLineNumber=e,this.heightInPx=Ge,this.suppressMouseDown=!1,this.domNode=document.createElement("div"),this.domNode.className="dock-find-viewzone"}}function Qe(e,t,n){const i=!!t.match(/\n/);n&&i&&n.selectionStart>0&&e.stopPropagation()}function et(e,t,n){const i=!!t.match(/\n/);n&&i&&n.selectionEnd<n.value.length&&e.stopPropagation()}class tt extends Y.a{constructor(e,t,n,i,s,a,l,c,d,u){super(),this._cachedHeight=null,this._codeEditor=e,this._controller=t,this._state=n,this._contextViewProvider=i,this._keybindingService=s,this._contextKeyService=a,this._storageService=c,this._notificationService=d,u.registerStorageKey({key:Ze,version:1}),this._ctrlEnterReplaceAllWarningPrompted=!!c.getBoolean(Ze,0),this._isVisible=!1,this._isReplaceVisible=!1,this._ignoreChangeEvent=!1,this._updateHistoryDelayer=new r.a(500),this._register(Object(o.h)(()=>this._updateHistoryDelayer.cancel())),this._register(this._state.onFindReplaceStateChange(e=>this._onStateChanged(e))),this._buildDomNode(),this._updateButtons(),this._tryUpdateWidgetWidth(),this._findInput.inputBox.layout(),this._register(this._codeEditor.onDidChangeConfiguration(e=>{if(e.hasChanged(72)&&(this._codeEditor.getOption(72)&&this._state.change({isReplaceRevealed:!1},!1),this._updateButtons()),e.hasChanged(117)&&this._tryUpdateWidgetWidth(),e.hasChanged(2)&&this.updateAccessibilitySupport(),e.hasChanged(29)){const e=this._codeEditor.getOption(29).addExtraSpaceOnTop;e&&!this._viewZone&&(this._viewZone=new Xe(0),this._showViewZone()),!e&&this._viewZone&&this._removeViewZone()}})),this.updateAccessibilitySupport(),this._register(this._codeEditor.onDidChangeCursorSelection(()=>{this._isVisible&&this._updateToggleSelectionFindButton()})),this._register(this._codeEditor.onDidFocusEditorWidget(()=>Se(this,void 0,void 0,(function*(){if(this._isVisible){let e=yield this._controller.getGlobalBufferTerm();e&&e!==this._state.searchString&&(this._state.change({searchString:e},!0),this._findInput.select())}})))),this._findInputFocused=O.bindTo(a),this._findFocusTracker=this._register(H.bb(this._findInput.inputBox.inputElement)),this._register(this._findFocusTracker.onDidFocus(()=>{this._findInputFocused.set(!0),this._updateSearchScope()})),this._register(this._findFocusTracker.onDidBlur(()=>{this._findInputFocused.set(!1)})),this._replaceInputFocused=N.bindTo(a),this._replaceFocusTracker=this._register(H.bb(this._replaceInput.inputBox.inputElement)),this._register(this._replaceFocusTracker.onDidFocus(()=>{this._replaceInputFocused.set(!0),this._updateSearchScope()})),this._register(this._replaceFocusTracker.onDidBlur(()=>{this._replaceInputFocused.set(!1)})),this._codeEditor.addOverlayWidget(this),this._codeEditor.getOption(29).addExtraSpaceOnTop&&(this._viewZone=new Xe(0)),this._applyTheme(l.getColorTheme()),this._register(l.onDidColorThemeChange(this._applyTheme.bind(this))),this._register(this._codeEditor.onDidChangeModel(()=>{this._isVisible&&(this._viewZoneId=void 0)})),this._register(this._codeEditor.onDidScrollChange(e=>{e.scrollTopChanged?this._layoutViewZone():setTimeout(()=>{this._layoutViewZone()},0)}))}getId(){return tt.ID}getDomNode(){return this._domNode}getPosition(){return this._isVisible?{preference:0}:null}_onStateChanged(e){if(e.searchString){try{this._ignoreChangeEvent=!0,this._findInput.setValue(this._state.searchString)}finally{this._ignoreChangeEvent=!1}this._updateButtons()}if(e.replaceString&&(this._replaceInput.inputBox.value=this._state.replaceString),e.isRevealed&&(this._state.isRevealed?this._reveal():this._hide(!0)),e.isReplaceRevealed&&(this._state.isReplaceRevealed?this._codeEditor.getOption(72)||this._isReplaceVisible||(this._isReplaceVisible=!0,this._replaceInput.width=H.H(this._findInput.domNode),this._updateButtons(),this._replaceInput.inputBox.layout()):this._isReplaceVisible&&(this._isReplaceVisible=!1,this._updateButtons())),(e.isRevealed||e.isReplaceRevealed)&&(this._state.isRevealed||this._state.isReplaceRevealed)&&this._tryUpdateHeight()&&this._showViewZone(),e.isRegex&&this._findInput.setRegex(this._state.isRegex),e.wholeWord&&this._findInput.setWholeWords(this._state.wholeWord),e.matchCase&&this._findInput.setCaseSensitive(this._state.matchCase),e.searchScope&&(this._state.searchScope?this._toggleSelectionFind.checked=!0:this._toggleSelectionFind.checked=!1,this._updateToggleSelectionFindButton()),e.searchString||e.matchesCount||e.matchesPosition){let e=this._state.searchString.length>0&&0===this._state.matchesCount;H.ab(this._domNode,"no-results",e),this._updateMatchesCount(),this._updateButtons()}(e.searchString||e.currentMatch)&&this._layoutViewZone(),e.updateHistory&&this._delayedUpdateHistory(),e.loop&&this._updateButtons()}_delayedUpdateHistory(){this._updateHistoryDelayer.trigger(this._updateHistory.bind(this))}_updateHistory(){this._state.searchString&&this._findInput.inputBox.addToHistory(),this._state.replaceString&&this._replaceInput.inputBox.addToHistory()}_updateMatchesCount(){let e;if(this._matchesCount.style.minWidth=Ke+"px",this._state.matchesCount>=F?this._matchesCount.title=Ve:this._matchesCount.title="",this._matchesCount.firstChild&&this._matchesCount.removeChild(this._matchesCount.firstChild),this._state.matchesCount>0){let t=String(this._state.matchesCount);this._state.matchesCount>=F&&(t+="+");let n=String(this._state.matchesPosition);"0"===n&&(n="?"),e=s.x(ze,n,t)}else e=Ue;this._matchesCount.appendChild(document.createTextNode(e)),Object(ie.a)(this._getAriaLabel(e,this._state.currentMatch,this._state.searchString)),Ke=Math.max(Ke,this._matchesCount.clientWidth)}_getAriaLabel(e,t,n){if(e===Ue)return""===n?i.a("ariaSearchNoResultEmpty","{0} found",e):i.a("ariaSearchNoResult","{0} found for '{1}'",e,n);if(t){const r=i.a("ariaSearchNoResultWithLineNum","{0} found for '{1}', at {2}",e,n,t.startLineNumber+":"+t.startColumn),o=this._codeEditor.getModel();if(o&&t.startLineNumber<=o.getLineCount()&&t.startLineNumber>=1){return`${o.getLineContent(t.startLineNumber)}, ${r}`}return r}return i.a("ariaSearchNoResultWithLineNumNoCurrentMatch","{0} found for '{1}'",e,n)}_updateToggleSelectionFindButton(){let e=this._codeEditor.getSelection(),t=!!e&&(e.startLineNumber!==e.endLineNumber||e.startColumn!==e.endColumn),n=this._toggleSelectionFind.checked;this._isVisible&&(n||t)?this._toggleSelectionFind.enable():this._toggleSelectionFind.disable()}_updateButtons(){this._findInput.setEnabled(this._isVisible),this._replaceInput.setEnabled(this._isVisible&&this._isReplaceVisible),this._updateToggleSelectionFindButton(),this._closeBtn.setEnabled(this._isVisible);let e=this._state.searchString.length>0,t=!!this._state.matchesCount;this._prevBtn.setEnabled(this._isVisible&&e&&t&&this._state.canNavigateBack()),this._nextBtn.setEnabled(this._isVisible&&e&&t&&this._state.canNavigateForward()),this._replaceBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._replaceAllBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),H.ab(this._domNode,"replaceToggled",this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible);let n=!this._codeEditor.getOption(72);this._toggleReplaceBtn.setEnabled(this._isVisible&&n)}_reveal(){if(!this._isVisible){this._isVisible=!0;const e=this._codeEditor.getSelection();switch(this._codeEditor.getOption(29).autoFindInSelection){case"always":this._toggleSelectionFind.checked=!0;break;case"never":this._toggleSelectionFind.checked=!1;break;case"multiline":const t=!!e&&e.startLineNumber!==e.endLineNumber;this._toggleSelectionFind.checked=t}this._tryUpdateWidgetWidth(),this._updateButtons(),setTimeout(()=>{H.e(this._domNode,"visible"),this._domNode.setAttribute("aria-hidden","false")},0),setTimeout(()=>{this._findInput.validate()},200),this._codeEditor.layoutOverlayWidget(this);let t=!0;if(this._codeEditor.getOption(29).seedSearchStringFromSelection&&e){const n=this._codeEditor.getDomNode();if(n){const i=H.C(n),r=this._codeEditor.getScrolledVisiblePosition(e.getStartPosition()),o=i.left+(r?r.left:0),s=r?r.top:0;if(this._viewZone&&s<this._viewZone.heightInPx){e.endLineNumber>e.startLineNumber&&(t=!1);const n=H.F(this._domNode).left;o>n&&(t=!1);const r=this._codeEditor.getScrolledVisiblePosition(e.getEndPosition());i.left+(r?r.left:0)>n&&(t=!1)}}}this._showViewZone(t)}}_hide(e){this._isVisible&&(this._isVisible=!1,this._updateButtons(),H.Q(this._domNode,"visible"),this._domNode.setAttribute("aria-hidden","true"),this._findInput.clearMessage(),e&&this._codeEditor.focus(),this._codeEditor.layoutOverlayWidget(this),this._removeViewZone())}_layoutViewZone(){if(!this._codeEditor.getOption(29).addExtraSpaceOnTop)return void this._removeViewZone();if(!this._isVisible)return;const e=this._viewZone;void 0===this._viewZoneId&&e&&this._codeEditor.changeViewZones(t=>{e.heightInPx=this._getHeight(),this._viewZoneId=t.addZone(e),this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+e.heightInPx)})}_showViewZone(e=!0){if(!this._isVisible)return;if(!this._codeEditor.getOption(29).addExtraSpaceOnTop)return;void 0===this._viewZone&&(this._viewZone=new Xe(0));const t=this._viewZone;this._codeEditor.changeViewZones(n=>{if(void 0!==this._viewZoneId){const i=this._getHeight();if(i===t.heightInPx)return;let r=i-t.heightInPx;return t.heightInPx=i,n.layoutZone(this._viewZoneId),void(e&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+r))}{let i=this._getHeight();if((i-=this._codeEditor.getOption(66).top)<=0)return;t.heightInPx=i,this._viewZoneId=n.addZone(t),e&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+i)}})}_removeViewZone(){this._codeEditor.changeViewZones(e=>{void 0!==this._viewZoneId&&(e.removeZone(this._viewZoneId),this._viewZoneId=void 0,this._viewZone&&(this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()-this._viewZone.heightInPx),this._viewZone=void 0))})}_applyTheme(e){let t={inputActiveOptionBorder:e.getColor(m.db),inputActiveOptionBackground:e.getColor(m.cb),inputActiveOptionForeground:e.getColor(m.eb),inputBackground:e.getColor(m.fb),inputForeground:e.getColor(m.hb),inputBorder:e.getColor(m.gb),inputValidationInfoBackground:e.getColor(m.lb),inputValidationInfoForeground:e.getColor(m.nb),inputValidationInfoBorder:e.getColor(m.mb),inputValidationWarningBackground:e.getColor(m.ob),inputValidationWarningForeground:e.getColor(m.qb),inputValidationWarningBorder:e.getColor(m.pb),inputValidationErrorBackground:e.getColor(m.ib),inputValidationErrorForeground:e.getColor(m.kb),inputValidationErrorBorder:e.getColor(m.jb)};this._findInput.style(t),this._replaceInput.style(t),this._toggleSelectionFind.style(t)}_tryUpdateWidgetWidth(){if(!this._isVisible)return;if(!H.N(this._domNode))return;const e=this._codeEditor.getLayoutInfo();if(e.contentWidth<=0)return void H.e(this._domNode,"hiddenEditor");H.I(this._domNode,"hiddenEditor")&&H.Q(this._domNode,"hiddenEditor");const t=e.width,n=e.minimap.minimapWidth;let i=!1,r=!1,o=!1;if(this._resized){if(H.H(this._domNode)>$e)return this._domNode.style.maxWidth=`${t-28-n-15}px`,void(this._replaceInput.width=H.H(this._findInput.domNode))}if($e+28+n>=t&&(r=!0),$e+28+n-Ke>=t&&(o=!0),$e+28+n-Ke>=t+50&&(i=!0),H.ab(this._domNode,"collapsed-find-widget",i),H.ab(this._domNode,"narrow-find-widget",o),H.ab(this._domNode,"reduced-find-widget",r),o||i||(this._domNode.style.maxWidth=`${t-28-n-15}px`),this._resized){this._findInput.inputBox.layout();let e=this._findInput.inputBox.element.clientWidth;e>0&&(this._replaceInput.width=e)}else this._isReplaceVisible&&(this._replaceInput.width=H.H(this._findInput.domNode))}_getHeight(){let e=0;return e+=4,e+=this._findInput.inputBox.height+2,this._isReplaceVisible&&(e+=4,e+=this._replaceInput.inputBox.height+2),e+=4}_tryUpdateHeight(){const e=this._getHeight();return(null===this._cachedHeight||this._cachedHeight!==e)&&(this._cachedHeight=e,this._domNode.style.height=`${e}px`,!0)}focusFindInput(){this._findInput.select(),this._findInput.focus()}focusReplaceInput(){this._replaceInput.select(),this._replaceInput.focus()}highlightFindOptions(){this._findInput.highlightFindOptions()}_updateSearchScope(){if(this._codeEditor.hasModel()&&this._toggleSelectionFind.checked){let e=this._codeEditor.getSelections();e.map(e=>{1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(e.endLineNumber-1)));const t=this._state.currentMatch;return e.startLineNumber===e.endLineNumber||u.a.equalsRange(e,t)?null:e}).filter(e=>!!e),e.length&&this._state.change({searchScope:e},!0)}}_onFindInputMouseDown(e){e.middleButton&&e.stopPropagation()}_onFindInputKeyDown(e){return e.equals(3|Je)?(this._findInput.inputBox.insertAtCursor("\n"),void e.preventDefault()):e.equals(2)?(this._isReplaceVisible?this._replaceInput.focus():this._findInput.focusOnCaseSensitive(),void e.preventDefault()):e.equals(2066)?(this._codeEditor.focus(),void e.preventDefault()):e.equals(16)?Qe(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea")):e.equals(18)?et(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea")):void 0}_onReplaceInputKeyDown(e){return e.equals(3|Je)?(se.i&&se.g&&!this._ctrlEnterReplaceAllWarningPrompted&&(this._notificationService.info(i.a("ctrlEnter.keybindingChanged","Ctrl+Enter now inserts line break instead of replacing all. You can modify the keybinding for editor.action.replaceAll to override this behavior.")),this._ctrlEnterReplaceAllWarningPrompted=!0,this._storageService.store(Ze,!0,0)),this._replaceInput.inputBox.insertAtCursor("\n"),void e.preventDefault()):e.equals(2)?(this._findInput.focusOnCaseSensitive(),void e.preventDefault()):e.equals(1026)?(this._findInput.focus(),void e.preventDefault()):e.equals(2066)?(this._codeEditor.focus(),void e.preventDefault()):e.equals(16)?Qe(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea")):e.equals(18)?et(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea")):void 0}getVerticalSashLeft(e){return 0}_keybindingLabelFor(e){let t=this._keybindingService.lookupKeybinding(e);return t?` (${t.getLabel()})`:""}_buildDomNode(){this._findInput=this._register(new we(null,this._contextViewProvider,{width:qe,label:Ne,placeholder:Ie,appendCaseSensitiveLabel:this._keybindingLabelFor(j.ToggleCaseSensitiveCommand),appendWholeWordsLabel:this._keybindingLabelFor(j.ToggleWholeWordCommand),appendRegexLabel:this._keybindingLabelFor(j.ToggleRegexCommand),validation:e=>{if(0===e.length||!this._findInput.getRegex())return null;try{return new RegExp(e,"gu"),null}catch(e){return{content:e.message}}},flexibleHeight:!0,flexibleWidth:!0,flexibleMaxHeight:118},this._contextKeyService,!0)),this._findInput.setRegex(!!this._state.isRegex),this._findInput.setCaseSensitive(!!this._state.matchCase),this._findInput.setWholeWords(!!this._state.wholeWord),this._register(this._findInput.onKeyDown(e=>this._onFindInputKeyDown(e))),this._register(this._findInput.inputBox.onDidChange(()=>{this._ignoreChangeEvent||this._state.change({searchString:this._findInput.getValue()},!0)})),this._register(this._findInput.onDidOptionChange(()=>{this._state.change({isRegex:this._findInput.getRegex(),wholeWord:this._findInput.getWholeWords(),matchCase:this._findInput.getCaseSensitive()},!0)})),this._register(this._findInput.onCaseSensitiveKeyDown(e=>{e.equals(1026)&&this._isReplaceVisible&&(this._replaceInput.focus(),e.preventDefault())})),this._register(this._findInput.onRegexKeyDown(e=>{e.equals(2)&&this._isReplaceVisible&&(this._replaceInput.focusOnPreserve(),e.preventDefault())})),this._register(this._findInput.inputBox.onDidHeightChange(e=>{this._tryUpdateHeight()&&this._showViewZone()})),se.d&&this._register(this._findInput.onMouseDown(e=>this._onFindInputMouseDown(e))),this._matchesCount=document.createElement("div"),this._matchesCount.className="matchesCount",this._updateMatchesCount(),this._prevBtn=this._register(new nt({label:Ae+this._keybindingLabelFor(j.PreviousMatchFindAction),className:Te.classNames,onTrigger:()=>{this._codeEditor.getAction(j.PreviousMatchFindAction).run().then(void 0,oe.e)}})),this._nextBtn=this._register(new nt({label:Re+this._keybindingLabelFor(j.NextMatchFindAction),className:Oe.classNames,onTrigger:()=>{this._codeEditor.getAction(j.NextMatchFindAction).run().then(void 0,oe.e)}}));let e=document.createElement("div");e.className="find-part",e.appendChild(this._findInput.domNode);const t=document.createElement("div");t.className="find-actions",e.appendChild(t),t.appendChild(this._matchesCount),t.appendChild(this._prevBtn.domNode),t.appendChild(this._nextBtn.domNode),this._toggleSelectionFind=this._register(new $({icon:ke,title:Pe+this._keybindingLabelFor(j.ToggleSearchScopeCommand),isChecked:!1})),this._register(this._toggleSelectionFind.onChange(()=>{if(this._toggleSelectionFind.checked){if(this._codeEditor.hasModel()){let e=this._codeEditor.getSelections();e.map(e=>(1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(e.endLineNumber-1))),e.isEmpty()?null:e)).filter(e=>!!e),e.length&&this._state.change({searchScope:e},!0)}}else this._state.change({searchScope:null},!0)})),t.appendChild(this._toggleSelectionFind.domNode),this._closeBtn=this._register(new nt({label:je+this._keybindingLabelFor(j.CloseFindWidgetCommand),className:Me.classNames,onTrigger:()=>{this._state.change({isRevealed:!1,searchScope:null},!1)},onKeyDown:e=>{e.equals(2)&&this._isReplaceVisible&&(this._replaceBtn.isEnabled()?this._replaceBtn.focus():this._codeEditor.focus(),e.preventDefault())}})),t.appendChild(this._closeBtn.domNode),this._replaceInput=this._register(new Ce(null,void 0,{label:Fe,placeholder:Be,history:[],flexibleHeight:!0,flexibleWidth:!0,flexibleMaxHeight:118},this._contextKeyService,!0)),this._replaceInput.setPreserveCase(!!this._state.preserveCase),this._register(this._replaceInput.onKeyDown(e=>this._onReplaceInputKeyDown(e))),this._register(this._replaceInput.inputBox.onDidChange(()=>{this._state.change({replaceString:this._replaceInput.inputBox.value},!1)})),this._register(this._replaceInput.inputBox.onDidHeightChange(e=>{this._isReplaceVisible&&this._tryUpdateHeight()&&this._showViewZone()})),this._register(this._replaceInput.onDidOptionChange(()=>{this._state.change({preserveCase:this._replaceInput.getPreserveCase()},!0)})),this._register(this._replaceInput.onPreserveCaseKeyDown(e=>{e.equals(2)&&(this._prevBtn.isEnabled()?this._prevBtn.focus():this._nextBtn.isEnabled()?this._nextBtn.focus():this._toggleSelectionFind.enabled?this._toggleSelectionFind.focus():this._closeBtn.isEnabled()&&this._closeBtn.focus(),e.preventDefault())})),this._replaceBtn=this._register(new nt({label:We+this._keybindingLabelFor(j.ReplaceOneAction),className:De.classNames,onTrigger:()=>{this._controller.replace()},onKeyDown:e=>{e.equals(1026)&&(this._closeBtn.focus(),e.preventDefault())}})),this._replaceAllBtn=this._register(new nt({label:He+this._keybindingLabelFor(j.ReplaceAllAction),className:Ee.classNames,onTrigger:()=>{this._controller.replaceAll()}}));let n=document.createElement("div");n.className="replace-part",n.appendChild(this._replaceInput.domNode);const i=document.createElement("div");i.className="replace-actions",n.appendChild(i),i.appendChild(this._replaceBtn.domNode),i.appendChild(this._replaceAllBtn.domNode),this._toggleReplaceBtn=this._register(new nt({label:Ye,className:"codicon toggle left",onTrigger:()=>{this._state.change({isReplaceRevealed:!this._isReplaceVisible},!1),this._isReplaceVisible&&(this._replaceInput.width=H.H(this._findInput.domNode),this._replaceInput.inputBox.layout()),this._showViewZone()}})),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible),this._domNode=document.createElement("div"),this._domNode.className="editor-widget find-widget",this._domNode.setAttribute("aria-hidden","true"),this._domNode.style.width=`${$e}px`,this._domNode.appendChild(this._toggleReplaceBtn.domNode),this._domNode.appendChild(e),this._domNode.appendChild(n),this._resizeSash=new re.a(this._domNode,this,{orientation:0,size:2}),this._resized=!1;let r=$e;this._register(this._resizeSash.onDidStart(()=>{r=H.H(this._domNode)})),this._register(this._resizeSash.onDidChange(e=>{this._resized=!0;let t=r+e.startX-e.currentX;if(t<$e)return;t>(parseFloat(H.z(this._domNode).maxWidth)||0)||(this._domNode.style.width=`${t}px`,this._isReplaceVisible&&(this._replaceInput.width=H.H(this._findInput.domNode)),this._findInput.inputBox.layout(),this._tryUpdateHeight())})),this._register(this._resizeSash.onDidReset(()=>{const e=H.H(this._domNode);if(e<$e)return;let t=$e;if(!this._resized||e===$e){const e=this._codeEditor.getLayoutInfo();t=e.width-28-e.minimap.minimapWidth-15,this._resized=!0}this._domNode.style.width=`${t}px`,this._isReplaceVisible&&(this._replaceInput.width=H.H(this._findInput.domNode)),this._findInput.inputBox.layout()}))}updateAccessibilitySupport(){const e=this._codeEditor.getOption(2);this._findInput.setFocusInputOnOptionClick(2!==e)}}tt.ID="editor.contrib.findWidget";class nt extends Y.a{constructor(e){super(),this._opts=e,this._domNode=document.createElement("div"),this._domNode.title=this._opts.label,this._domNode.tabIndex=0,this._domNode.className="button "+this._opts.className,this._domNode.setAttribute("role","button"),this._domNode.setAttribute("aria-label",this._opts.label),this.onclick(this._domNode,e=>{this._opts.onTrigger(),e.preventDefault()}),this.onkeydown(this._domNode,e=>{if(e.equals(10)||e.equals(3))return this._opts.onTrigger(),void e.preventDefault();this._opts.onKeyDown&&this._opts.onKeyDown(e)})}get domNode(){return this._domNode}isEnabled(){return this._domNode.tabIndex>=0}focus(){this._domNode.focus()}setEnabled(e){H.ab(this._domNode,"disabled",!e),this._domNode.setAttribute("aria-disabled",String(!e)),this._domNode.tabIndex=e?0:-1}setExpanded(e){this._domNode.setAttribute("aria-expanded",String(!!e)),e?(H.R(this._domNode,xe.classNames),H.f(this._domNode,Le.classNames)):(H.R(this._domNode,Le.classNames),H.f(this._domNode,xe.classNames))}}Object(_.g)((e,t)=>{const n=(e,n)=>{n&&t.addRule(`.monaco-editor ${e} { background-color: ${n}; }`)};n(".findMatch",e.getColor(m.x)),n(".currentFindMatch",e.getColor(m.v)),n(".findScope",e.getColor(m.z)),n(".find-widget",e.getColor(m.U));const i=e.getColor(m.uc);i&&t.addRule(`.monaco-editor .find-widget { box-shadow: 0 2px 8px ${i}; }`);const r=e.getColor(m.y);r&&t.addRule(`.monaco-editor .findMatch { border: 1px ${"hc"===e.type?"dotted":"solid"} ${r}; box-sizing: border-box; }`);const o=e.getColor(m.w);o&&t.addRule(`.monaco-editor .currentFindMatch { border: 2px solid ${o}; padding: 1px; box-sizing: border-box; }`);const s=e.getColor(m.A);s&&t.addRule(`.monaco-editor .findScope { border: 1px ${"hc"===e.type?"dashed":"solid"} ${s}; }`);const a=e.getColor(m.h);a&&t.addRule(`.monaco-editor .find-widget { border: 1px solid ${a}; }`);const l=e.getColor(m.W);l&&t.addRule(`.monaco-editor .find-widget { color: ${l}; }`);const c=e.getColor(m.Y);c&&t.addRule(`.monaco-editor .find-widget.no-results .matchesCount { color: ${c}; }`);const d=e.getColor(m.X);if(d)t.addRule(`.monaco-editor .find-widget .monaco-sash { background-color: ${d}; }`);else{const n=e.getColor(m.V);n&&t.addRule(`.monaco-editor .find-widget .monaco-sash { background-color: ${n}; }`)}const u=e.getColor(m.Z);u&&t.addRule(`.monaco-editor .find-widget .monaco-inputbox.synthetic-focus { outline-color: ${u}; }`)});var it=n(25),rt=n(109),ot=n(71),st=n(41),at=n(88),lt=n(40),ct=n(186);n.d(t,"getSelectionSearchString",(function(){return gt})),n.d(t,"CommonFindController",(function(){return pt})),n.d(t,"FindController",(function(){return mt})),n.d(t,"StartFindAction",(function(){return _t})),n.d(t,"StartFindWithSelectionAction",(function(){return bt})),n.d(t,"MatchFindAction",(function(){return vt})),n.d(t,"NextMatchFindAction",(function(){return yt})),n.d(t,"NextMatchFindAction2",(function(){return wt})),n.d(t,"PreviousMatchFindAction",(function(){return Ct})),n.d(t,"PreviousMatchFindAction2",(function(){return St})),n.d(t,"SelectionMatchFindAction",(function(){return kt})),n.d(t,"NextSelectionMatchFindAction",(function(){return xt})),n.d(t,"PreviousSelectionMatchFindAction",(function(){return Lt})),n.d(t,"StartFindReplaceAction",(function(){return Mt})),n.d(t,"EditorStartFindAction",(function(){return Dt})),n.d(t,"EditorStartFindReplaceAction",(function(){return Et}));var dt=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},ut=function(e,t){return function(n,i){t(n,i,e)}},ht=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};const ft=524288;function gt(e){if(!e.hasModel())return null;const t=e.getSelection();if(t.startLineNumber===t.endLineNumber)if(t.isEmpty()){const n=e.getConfiguredWordAtPosition(t.getStartPosition());if(n)return n.word}else if(e.getModel().getValueLengthInRange(t)<ft)return e.getModel().getValueInRange(t);return null}let pt=class e extends o.a{constructor(e,t,n,i){super(),this._editor=e,this._findWidgetVisible=T.bindTo(t),this._contextKeyService=t,this._storageService=n,this._clipboardService=i,this._updateHistoryDelayer=new r.a(500),this._state=this._register(new ne),this.loadQueryState(),this._register(this._state.onFindReplaceStateChange(e=>this._onStateChanged(e))),this._model=null,this._register(this._editor.onDidChangeModel(()=>{let e=this._editor.getModel()&&this._state.isRevealed;this.disposeModel(),this._state.change({searchScope:null,matchCase:this._storageService.getBoolean("editor.matchCase",1,!1),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,!1),isRegex:this._storageService.getBoolean("editor.isRegex",1,!1),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,!1)},!1),e&&this._start({forceRevealReplace:!1,seedSearchStringFromSelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!1,updateSearchScope:!1,loop:this._editor.getOption(29).loop})}))}static get(t){return t.getContribution(e.ID)}dispose(){this.disposeModel(),super.dispose()}disposeModel(){this._model&&(this._model.dispose(),this._model=null)}_onStateChanged(e){this.saveQueryState(e),e.isRevealed&&(this._state.isRevealed?this._findWidgetVisible.set(!0):(this._findWidgetVisible.reset(),this.disposeModel())),e.searchString&&this.setGlobalBufferTerm(this._state.searchString)}saveQueryState(e){e.isRegex&&this._storageService.store("editor.isRegex",this._state.actualIsRegex,1),e.wholeWord&&this._storageService.store("editor.wholeWord",this._state.actualWholeWord,1),e.matchCase&&this._storageService.store("editor.matchCase",this._state.actualMatchCase,1),e.preserveCase&&this._storageService.store("editor.preserveCase",this._state.actualPreserveCase,1)}loadQueryState(){this._state.change({matchCase:this._storageService.getBoolean("editor.matchCase",1,this._state.matchCase),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,this._state.wholeWord),isRegex:this._storageService.getBoolean("editor.isRegex",1,this._state.isRegex),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,this._state.preserveCase)},!1)}isFindInputFocused(){return!!O.getValue(this._contextKeyService)}getState(){return this._state}closeFindWidget(){this._state.change({isRevealed:!1,searchScope:null},!1),this._editor.focus()}toggleCaseSensitive(){this._state.change({matchCase:!this._state.matchCase},!1),this._state.isRevealed||this.highlightFindOptions()}toggleWholeWords(){this._state.change({wholeWord:!this._state.wholeWord},!1),this._state.isRevealed||this.highlightFindOptions()}toggleRegex(){this._state.change({isRegex:!this._state.isRegex},!1),this._state.isRevealed||this.highlightFindOptions()}toggleSearchScope(){if(this._state.searchScope)this._state.change({searchScope:null},!0);else if(this._editor.hasModel()){let e=this._editor.getSelections();e.map(e=>(1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._editor.getModel().getLineMaxColumn(e.endLineNumber-1))),e.isEmpty()?null:e)).filter(e=>!!e),e.length&&this._state.change({searchScope:e},!0)}}setSearchString(e){this._state.isRegex&&(e=s.v(e)),this._state.change({searchString:e},!1)}highlightFindOptions(){}_start(e){return ht(this,void 0,void 0,(function*(){if(this.disposeModel(),!this._editor.hasModel())return;let t={isRevealed:!0};if(e.seedSearchStringFromSelection){let e=gt(this._editor);e&&(this._state.isRegex?t.searchString=s.v(e):t.searchString=e)}if(!t.searchString&&e.seedSearchStringFromGlobalClipboard){let e=yield this.getGlobalBufferTerm();if(!this._editor.hasModel())return;e&&(t.searchString=e)}if(e.forceRevealReplace?t.isReplaceRevealed=!0:this._findWidgetVisible.get()||(t.isReplaceRevealed=!1),e.updateSearchScope){let e=this._editor.getSelections();e.some(e=>!e.isEmpty())&&(t.searchScope=e)}t.loop=e.loop,this._state.change(t,!1),this._model||(this._model=new W(this._editor,this._state))}))}start(e){return this._start(e)}moveToNextMatch(){return!!this._model&&(this._model.moveToNextMatch(),!0)}moveToPrevMatch(){return!!this._model&&(this._model.moveToPrevMatch(),!0)}replace(){return!!this._model&&(this._model.replace(),!0)}replaceAll(){return!!this._model&&(this._model.replaceAll(),!0)}selectAllMatches(){return!!this._model&&(this._model.selectAllMatches(),this._editor.focus(),!0)}getGlobalBufferTerm(){return ht(this,void 0,void 0,(function*(){return this._editor.getOption(29).globalFindClipboard&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()?this._clipboardService.readFindText():""}))}setGlobalBufferTerm(e){this._editor.getOption(29).globalFindClipboard&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()&&this._clipboardService.writeFindText(e)}};pt.ID="editor.contrib.findController",pt=dt([ut(1,D.b),ut(2,at.a),ut(3,rt.a)],pt);let mt=class extends pt{constructor(e,t,n,i,r,o,s,a,l){super(e,n,s,l),this._contextViewService=t,this._keybindingService=i,this._themeService=r,this._notificationService=o,this._storageKeysSyncRegistryService=a,this._widget=null,this._findOptionsWidget=null}_start(e){const t=Object.create(null,{_start:{get:()=>super._start}});return ht(this,void 0,void 0,(function*(){this._widget||this._createFindWidget();const n=this._editor.getSelection();let i=!1;switch(this._editor.getOption(29).autoFindInSelection){case"always":i=!0;break;case"never":i=!1;break;case"multiline":i=!!n&&n.startLineNumber!==n.endLineNumber}e.updateSearchScope=i,yield t._start.call(this,e),this._widget&&(2===e.shouldFocus?this._widget.focusReplaceInput():1===e.shouldFocus&&this._widget.focusFindInput())}))}highlightFindOptions(){this._widget||this._createFindWidget(),this._state.isRevealed?this._widget.highlightFindOptions():this._findOptionsWidget.highlightFindOptions()}_createFindWidget(){this._widget=this._register(new tt(this._editor,this,this._state,this._contextViewService,this._keybindingService,this._contextKeyService,this._themeService,this._storageService,this._notificationService,this._storageKeysSyncRegistryService)),this._findOptionsWidget=this._register(new ee(this._editor,this._state,this._keybindingService,this._themeService))}};mt=dt([ut(1,ot.b),ut(2,D.b),ut(3,st.a),ut(4,_.c),ut(5,lt.a),ut(6,at.a),ut(7,ct.a),ut(8,rt.a)],mt);class _t extends a.f{constructor(){super({id:j.StartFindAction,label:i.a("startFindAction","Find"),alias:"Find",precondition:void 0,kbOpts:{kbExpr:null,primary:2084,weight:100},menuOpts:{menuId:it.b.MenubarEditMenu,group:"3_find",title:i.a({key:"miFind",comment:["&& denotes a mnemonic"]},"&&Find"),order:1}})}run(e,t){return ht(this,void 0,void 0,(function*(){let e=pt.get(t);e&&(yield e.start({forceRevealReplace:!1,seedSearchStringFromSelection:t.getOption(29).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:t.getOption(29).globalFindClipboard,shouldFocus:1,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(29).loop}))}))}}class bt extends a.b{constructor(){super({id:j.StartFindWithSelection,label:i.a("startFindWithSelectionAction","Find With Selection"),alias:"Find With Selection",precondition:void 0,kbOpts:{kbExpr:null,primary:0,mac:{primary:2083},weight:100}})}run(e,t){return ht(this,void 0,void 0,(function*(){let e=pt.get(t);e&&(yield e.start({forceRevealReplace:!1,seedSearchStringFromSelection:!0,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(29).loop}),e.setGlobalBufferTerm(e.getState().searchString))}))}}class vt extends a.b{run(e,t){return ht(this,void 0,void 0,(function*(){let e=pt.get(t);e&&!this._run(e)&&(yield e.start({forceRevealReplace:!1,seedSearchStringFromSelection:0===e.getState().searchString.length&&t.getOption(29).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!0,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(29).loop}),this._run(e))}))}}class yt extends vt{constructor(){super({id:j.NextMatchFindAction,label:i.a("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:{kbExpr:l.a.focus,primary:61,mac:{primary:2085,secondary:[61]},weight:100}})}_run(e){return e.moveToNextMatch()}}class wt extends vt{constructor(){super({id:j.NextMatchFindAction,label:i.a("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:{kbExpr:D.a.and(l.a.focus,O),primary:3,weight:100}})}_run(e){return e.moveToNextMatch()}}class Ct extends vt{constructor(){super({id:j.PreviousMatchFindAction,label:i.a("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:{kbExpr:l.a.focus,primary:1085,mac:{primary:3109,secondary:[1085]},weight:100}})}_run(e){return e.moveToPrevMatch()}}class St extends vt{constructor(){super({id:j.PreviousMatchFindAction,label:i.a("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:{kbExpr:D.a.and(l.a.focus,O),primary:1027,weight:100}})}_run(e){return e.moveToPrevMatch()}}class kt extends a.b{run(e,t){return ht(this,void 0,void 0,(function*(){let e=pt.get(t);if(!e)return;let n=gt(t);n&&e.setSearchString(n),this._run(e)||(yield e.start({forceRevealReplace:!1,seedSearchStringFromSelection:t.getOption(29).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(29).loop}),this._run(e))}))}}class xt extends kt{constructor(){super({id:j.NextSelectionMatchFindAction,label:i.a("nextSelectionMatchFindAction","Find Next Selection"),alias:"Find Next Selection",precondition:void 0,kbOpts:{kbExpr:l.a.focus,primary:2109,weight:100}})}_run(e){return e.moveToNextMatch()}}class Lt extends kt{constructor(){super({id:j.PreviousSelectionMatchFindAction,label:i.a("previousSelectionMatchFindAction","Find Previous Selection"),alias:"Find Previous Selection",precondition:void 0,kbOpts:{kbExpr:l.a.focus,primary:3133,weight:100}})}_run(e){return e.moveToPrevMatch()}}class Mt extends a.f{constructor(){super({id:j.StartFindReplaceAction,label:i.a("startReplace","Replace"),alias:"Replace",precondition:void 0,kbOpts:{kbExpr:null,primary:2086,mac:{primary:2596},weight:100},menuOpts:{menuId:it.b.MenubarEditMenu,group:"3_find",title:i.a({key:"miReplace",comment:["&& denotes a mnemonic"]},"&&Replace"),order:2}})}run(e,t){return ht(this,void 0,void 0,(function*(){if(!t.hasModel()||t.getOption(72))return;let e=pt.get(t),n=t.getSelection(),i=e.isFindInputFocused(),r=!n.isEmpty()&&n.startLineNumber===n.endLineNumber&&t.getOption(29).seedSearchStringFromSelection&&!i,o=i||r?2:1;e&&(yield e.start({forceRevealReplace:!0,seedSearchStringFromSelection:r,seedSearchStringFromGlobalClipboard:t.getOption(29).seedSearchStringFromSelection,shouldFocus:o,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(29).loop}))}))}}Object(a.m)(pt.ID,mt);const Dt=new _t;Object(a.r)(Dt),Object(a.k)(bt),Object(a.k)(yt),Object(a.k)(wt),Object(a.k)(Ct),Object(a.k)(St),Object(a.k)(xt),Object(a.k)(Lt);const Et=new Mt;Object(a.r)(Et);const Tt=a.c.bindToContribution(pt.get);Object(a.l)(new Tt({id:j.CloseFindWidgetCommand,precondition:T,handler:e=>e.closeFindWidget(),kbOpts:{weight:105,kbExpr:l.a.focus,primary:9,secondary:[1033]}})),Object(a.l)(new Tt({id:j.ToggleCaseSensitiveCommand,precondition:void 0,handler:e=>e.toggleCaseSensitive(),kbOpts:{weight:105,kbExpr:l.a.focus,primary:I.primary,mac:I.mac,win:I.win,linux:I.linux}})),Object(a.l)(new Tt({id:j.ToggleWholeWordCommand,precondition:void 0,handler:e=>e.toggleWholeWords(),kbOpts:{weight:105,kbExpr:l.a.focus,primary:A.primary,mac:A.mac,win:A.win,linux:A.linux}})),Object(a.l)(new Tt({id:j.ToggleRegexCommand,precondition:void 0,handler:e=>e.toggleRegex(),kbOpts:{weight:105,kbExpr:l.a.focus,primary:R.primary,mac:R.mac,win:R.win,linux:R.linux}})),Object(a.l)(new Tt({id:j.ToggleSearchScopeCommand,precondition:void 0,handler:e=>e.toggleSearchScope(),kbOpts:{weight:105,kbExpr:l.a.focus,primary:P.primary,mac:P.mac,win:P.win,linux:P.linux}})),Object(a.l)(new Tt({id:j.ReplaceOneAction,precondition:T,handler:e=>e.replace(),kbOpts:{weight:105,kbExpr:l.a.focus,primary:3094}})),Object(a.l)(new Tt({id:j.ReplaceOneAction,precondition:T,handler:e=>e.replace(),kbOpts:{weight:105,kbExpr:D.a.and(l.a.focus,N),primary:3}})),Object(a.l)(new Tt({id:j.ReplaceAllAction,precondition:T,handler:e=>e.replaceAll(),kbOpts:{weight:105,kbExpr:l.a.focus,primary:2563}})),Object(a.l)(new Tt({id:j.ReplaceAllAction,precondition:T,handler:e=>e.replaceAll(),kbOpts:{weight:105,kbExpr:D.a.and(l.a.focus,N),primary:void 0,mac:{primary:2051}}})),Object(a.l)(new Tt({id:j.SelectAllMatchesAction,precondition:T,handler:e=>e.selectAllMatches(),kbOpts:{weight:105,kbExpr:l.a.focus,primary:515}}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(12);const r=i.b.performance&&"function"==typeof i.b.performance.now;class o{constructor(e){this._highResolution=r&&e,this._startTime=this._now(),this._stopTime=-1}static create(e=!0){return new o(e)}stop(){this._stopTime=this._now()}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?i.b.performance.now():(new Date).getTime()}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return u}));var i=n(8);function r(e){return o(e,0)}function o(e,t){switch(typeof e){case"object":return null===e?s(349,t):Array.isArray(e)?(n=e,i=s(104579,i=t),n.reduce((e,t)=>o(t,e),i)):function(e,t){return t=s(181387,t),Object.keys(e).sort().reduce((t,n)=>(t=a(n,t),o(e[n],t)),t)}(e,t);case"string":return a(e,t);case"boolean":return function(e,t){return s(e?433:863,t)}(e,t);case"number":return s(e,t);case"undefined":return s(937,t);default:return s(617,t)}var n,i}function s(e,t){return(t<<5)-t+e|0}function a(e,t){t=s(149417,t);for(let n=0,i=e.length;n<i;n++)t=s(e.charCodeAt(n),t);return t}function l(e,t,n=32){const i=n-t;return(e<<t|(~((1<<i)-1)&e)>>>i)>>>0}function c(e,t=0,n=e.byteLength,i=0){for(let r=0;r<n;r++)e[t+r]=i}function d(e,t=32){return function(e,t,n="0"){for(;e.length<t;)e=n+e;return e}((e>>>0).toString(16),t/4)}class u{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const t=e.length;if(0===t)return;const n=this._buff;let r,o,s=this._buffLen,a=this._leftoverHighSurrogate;for(0!==a?(r=a,o=-1,a=0):(r=e.charCodeAt(0),o=0);;){let l=r;if(i.F(r)){if(!(o+1<t)){a=r;break}{const t=e.charCodeAt(o+1);i.G(t)?(o++,l=i.j(r,t)):l=65533}}else i.G(r)&&(l=65533);if(s=this._push(n,s,l),!(++o<t))break;r=e.charCodeAt(o)}this._buffLen=s,this._leftoverHighSurrogate=a}_push(e,t,n){return n<128?e[t++]=n:n<2048?(e[t++]=192|(1984&n)>>>6,e[t++]=128|(63&n)>>>0):n<65536?(e[t++]=224|(61440&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>0):(e[t++]=240|(1835008&n)>>>18,e[t++]=128|(258048&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),t}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),d(this._h0)+d(this._h1)+d(this._h2)+d(this._h3)+d(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,c(this._buff,this._buffLen),this._buffLen>56&&(this._step(),c(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=u._bigBlock32,t=this._buffDV;for(let n=0;n<64;n+=4)e.setUint32(n,t.getUint32(n,!1),!1);for(let t=64;t<320;t+=4)e.setUint32(t,l(e.getUint32(t-12,!1)^e.getUint32(t-32,!1)^e.getUint32(t-56,!1)^e.getUint32(t-64,!1),1),!1);let n,i,r,o=this._h0,s=this._h1,a=this._h2,c=this._h3,d=this._h4;for(let t=0;t<80;t++)t<20?(n=s&a|~s&c,i=1518500249):t<40?(n=s^a^c,i=1859775393):t<60?(n=s&a|s&c|a&c,i=2400959708):(n=s^a^c,i=3395469782),r=l(o,5)+n+d+i+e.getUint32(4*t,!1)&4294967295,d=c,c=a,a=l(s,30),s=o,o=r;this._h0=this._h0+o&4294967295,this._h1=this._h1+s&4294967295,this._h2=this._h2+a&4294967295,this._h3=this._h3+c&4294967295,this._h4=this._h4+d&4294967295}}u._bigBlock32=new DataView(new ArrayBuffer(320))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n(17);const r=Object(i.c)("labelService")},function(e,t,n){"use strict";n.r(t),n.d(t,"MoveWordCommand",(function(){return p})),n.d(t,"WordLeftCommand",(function(){return m})),n.d(t,"WordRightCommand",(function(){return _})),n.d(t,"CursorWordStartLeft",(function(){return b})),n.d(t,"CursorWordEndLeft",(function(){return v})),n.d(t,"CursorWordLeft",(function(){return y})),n.d(t,"CursorWordStartLeftSelect",(function(){return w})),n.d(t,"CursorWordEndLeftSelect",(function(){return C})),n.d(t,"CursorWordLeftSelect",(function(){return S})),n.d(t,"CursorWordAccessibilityLeft",(function(){return k})),n.d(t,"CursorWordAccessibilityLeftSelect",(function(){return x})),n.d(t,"CursorWordStartRight",(function(){return L})),n.d(t,"CursorWordEndRight",(function(){return M})),n.d(t,"CursorWordRight",(function(){return D})),n.d(t,"CursorWordStartRightSelect",(function(){return E})),n.d(t,"CursorWordEndRightSelect",(function(){return T})),n.d(t,"CursorWordRightSelect",(function(){return O})),n.d(t,"CursorWordAccessibilityRight",(function(){return N})),n.d(t,"CursorWordAccessibilityRightSelect",(function(){return I})),n.d(t,"DeleteWordCommand",(function(){return A})),n.d(t,"DeleteWordLeftCommand",(function(){return R})),n.d(t,"DeleteWordRightCommand",(function(){return P})),n.d(t,"DeleteWordStartLeft",(function(){return j})),n.d(t,"DeleteWordEndLeft",(function(){return F})),n.d(t,"DeleteWordLeft",(function(){return B})),n.d(t,"DeleteWordStartRight",(function(){return W})),n.d(t,"DeleteWordEndRight",(function(){return H})),n.d(t,"DeleteWordRight",(function(){return Y}));var i=n(4),r=n(51),o=n(23),s=n(122),a=n(105),l=n(10),c=n(3),d=n(22),u=n(7),h=n(67),f=n(9),g=n(27);class p extends i.c{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,n){if(!t.hasModel())return;const i=Object(a.a)(t.getOption(105)),r=t.getModel(),s=t.getSelections().map(e=>{const t=new l.a(e.positionLineNumber,e.positionColumn),n=this._move(i,r,t,this._wordNavigationType);return this._moveTo(e,n,this._inSelectionMode)});if(r.pushStackElement(),t._getViewModel().setCursorStates("moveWordCommand",0,s.map(e=>o.d.fromModelSelection(e))),1===s.length){const e=new l.a(s[0].positionLineNumber,s[0].positionColumn);t.revealPosition(e,0)}}_moveTo(e,t,n){return n?new d.a(e.selectionStartLineNumber,e.selectionStartColumn,t.lineNumber,t.column):new d.a(t.lineNumber,t.column,t.lineNumber,t.column)}}class m extends p{_move(e,t,n,i){return s.a.moveWordLeft(e,t,n,i)}}class _ extends p{_move(e,t,n,i){return s.a.moveWordRight(e,t,n,i)}}class b extends m{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartLeft",precondition:void 0})}}class v extends m{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndLeft",precondition:void 0})}}class y extends m{constructor(){super({inSelectionMode:!1,wordNavigationType:1,id:"cursorWordLeft",precondition:void 0,kbOpts:{kbExpr:u.a.textInputFocus,primary:2063,mac:{primary:527},weight:100}})}}class w extends m{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartLeftSelect",precondition:void 0})}}class C extends m{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndLeftSelect",precondition:void 0})}}class S extends m{constructor(){super({inSelectionMode:!0,wordNavigationType:1,id:"cursorWordLeftSelect",precondition:void 0,kbOpts:{kbExpr:u.a.textInputFocus,primary:3087,mac:{primary:1551},weight:100}})}}class k extends m{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityLeft",precondition:void 0,kbOpts:{kbExpr:f.a.and(u.a.textInputFocus,h.a),win:{primary:2063},weight:101}})}_move(e,t,n,i){return super._move(Object(a.a)(g.g.wordSeparators.defaultValue),t,n,i)}}class x extends m{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityLeftSelect",precondition:void 0,kbOpts:{kbExpr:f.a.and(u.a.textInputFocus,h.a),win:{primary:3087},weight:101}})}_move(e,t,n,i){return super._move(Object(a.a)(g.g.wordSeparators.defaultValue),t,n,i)}}class L extends _{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartRight",precondition:void 0})}}class M extends _{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndRight",precondition:void 0,kbOpts:{kbExpr:u.a.textInputFocus,primary:2065,mac:{primary:529},weight:100}})}}class D extends _{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordRight",precondition:void 0})}}class E extends _{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartRightSelect",precondition:void 0})}}class T extends _{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndRightSelect",precondition:void 0,kbOpts:{kbExpr:u.a.textInputFocus,primary:3089,mac:{primary:1553},weight:100}})}}class O extends _{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordRightSelect",precondition:void 0})}}class N extends _{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityRight",precondition:void 0,kbOpts:{kbExpr:f.a.and(u.a.textInputFocus,h.a),win:{primary:2065},weight:101}})}_move(e,t,n,i){return super._move(Object(a.a)(g.g.wordSeparators.defaultValue),t,n,i)}}class I extends _{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityRightSelect",precondition:void 0,kbOpts:{kbExpr:f.a.and(u.a.textInputFocus,h.a),win:{primary:3089},weight:101}})}_move(e,t,n,i){return super._move(Object(a.a)(g.g.wordSeparators.defaultValue),t,n,i)}}class A extends i.c{constructor(e){super(e),this._whitespaceHeuristics=e.whitespaceHeuristics,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,n){if(!t.hasModel())return;const i=Object(a.a)(t.getOption(105)),o=t.getModel(),s=t.getSelections().map(e=>{const t=this._delete(i,o,e,this._whitespaceHeuristics,this._wordNavigationType);return new r.a(t,"")});t.pushUndoStop(),t.executeCommands(this.id,s),t.pushUndoStop()}}class R extends A{_delete(e,t,n,i,r){let o=s.a.deleteWordLeft(e,t,n,i,r);return o||new c.a(1,1,1,1)}}class P extends A{_delete(e,t,n,i,r){let o=s.a.deleteWordRight(e,t,n,i,r);if(o)return o;const a=t.getLineCount(),l=t.getLineMaxColumn(a);return new c.a(a,l,a,l)}}class j extends R{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartLeft",precondition:u.a.writable})}}class F extends R{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndLeft",precondition:u.a.writable})}}class B extends R{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordLeft",precondition:u.a.writable,kbOpts:{kbExpr:u.a.textInputFocus,primary:2049,mac:{primary:513},weight:100}})}}class W extends P{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartRight",precondition:u.a.writable})}}class H extends P{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndRight",precondition:u.a.writable})}}class Y extends P{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordRight",precondition:u.a.writable,kbOpts:{kbExpr:u.a.textInputFocus,primary:2068,mac:{primary:532},weight:100}})}}Object(i.l)(new b),Object(i.l)(new v),Object(i.l)(new y),Object(i.l)(new w),Object(i.l)(new C),Object(i.l)(new S),Object(i.l)(new L),Object(i.l)(new M),Object(i.l)(new D),Object(i.l)(new E),Object(i.l)(new T),Object(i.l)(new O),Object(i.l)(new k),Object(i.l)(new x),Object(i.l)(new N),Object(i.l)(new I),Object(i.l)(new j),Object(i.l)(new F),Object(i.l)(new B),Object(i.l)(new W),Object(i.l)(new H),Object(i.l)(new Y)},function(e,t,n){"use strict";var i,r=n(1),o=n(185),s=n(15),a=n(81),l=n(150),c=n(342);let d;!function e(t,n,r){function o(a,l){if(!n[a]){if(!t[a]){if(!l&&"function"==typeof i&&i)return i(a,!0);if(s)return s(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var d=n[a]={exports:{}};t[a][0].call(d.exports,(function(e){return o(t[a][1][e]||e)}),d,d.exports,e,t,n,r)}return n[a].exports}for(var s="function"==typeof i&&i,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(e,t,n){var i=e("./toMap");t.exports={uris:i(["background","base","cite","href","longdesc","src","usemap"])}},{"./toMap":10}],2:[function(e,t,n){t.exports={allowedAttributes:{"*":["title","accesskey"],a:["href","name","target","aria-label"],iframe:["allowfullscreen","frameborder","src"],img:["src","alt","title","aria-label"]},allowedClasses:{},allowedSchemes:["http","https","mailto"],allowedTags:["a","abbr","article","b","blockquote","br","caption","code","del","details","div","em","h1","h2","h3","h4","h5","h6","hr","i","img","ins","kbd","li","main","mark","ol","p","pre","section","span","strike","strong","sub","summary","sup","table","tbody","td","th","thead","tr","u","ul"],filter:null}},{}],3:[function(e,t,n){var i=e("./toMap");t.exports={voids:i(["area","br","col","hr","img","wbr","input","base","basefont","link","meta"])}},{"./toMap":10}],4:[function(e,t,n){e("he");var i=e("assignment"),r=e("./parser"),o=e("./sanitizer"),s=e("./defaults");function a(e,t,n){var a=[],l=!0===n?t:i({},s,t),c=o(a,l);return r(e,c),a.join("")}a.defaults=s,t.exports=a,d=a},{"./defaults":2,"./parser":7,"./sanitizer":8,assignment:6,he:9}],5:[function(e,t,n){t.exports=function(e){return"string"==typeof e?e.toLowerCase():e}},{}],6:[function(e,t,n){t.exports=function e(t){for(var n,i,r=Array.prototype.slice.call(arguments,1);r.length;)for(i in n=r.shift())n.hasOwnProperty(i)&&("[object Object]"===Object.prototype.toString.call(t[i])?t[i]=e(t[i],n[i]):t[i]=n[i]);return t}},{}],7:[function(e,t,n){var i=e("he"),r=e("./lowercase"),o=(e("./attributes"),e("./elements")),s=/^<\s*([\w:-]+)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*>/,a=/^<\s*\/\s*([\w:-]+)[^>]*>/,l=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,c=/^</,d=/^<\s*\//;t.exports=function(e,t){for(var n,u=function(){var e=[];return e.lastItem=function(){return e[e.length-1]},e}(),h=e;e;)f();function f(){n=!0,function(){"\x3c!--"===e.substr(0,4)?(i=e.indexOf("--\x3e"))>=0&&(t.comment&&t.comment(e.substring(4,i)),e=e.substring(i+3),n=!1):d.test(e)?g(a,m):c.test(e)&&g(s,p);var i;!function(){if(!n)return;var i,r=e.indexOf("<");r>=0?(i=e.substring(0,r),e=e.substring(r)):(i=e,e="");t.chars&&t.chars(i)}()}();var i=e===h;h=e,i&&(e="")}function g(t,i){var r=e.match(t);r&&(e=e.substring(r[0].length),r[0].replace(t,i),n=!1)}function p(e,n,s,a){var c={},d=r(n),h=o.voids[d]||!!a;s.replace(l,(function(e,t,n,r,o){c[t]=void 0===n&&void 0===r&&void 0===o?void 0:i.decode(n||r||o||"")})),h||u.push(d),t.start&&t.start(d,c,h)}function m(e,n){var i,o=0,s=r(n);if(s)for(o=u.length-1;o>=0&&u[o]!==s;o--);if(o>=0){for(i=u.length-1;i>=o;i--)t.end&&t.end(u[i]);u.length=o}}m()}},{"./attributes":1,"./elements":3,"./lowercase":5,he:9}],8:[function(e,t,n){var i=e("he"),r=e("./lowercase"),o=e("./attributes"),s=e("./elements");t.exports=function(e,t){var n,a=t||{};return u(),{start:function(e,t,s){var d=r(e);if(n.ignoring)return void c(d);if(-1===(a.allowedTags||[]).indexOf(d))return void c(d);if(a.filter&&!a.filter({tag:d,attrs:t}))return void c(d);l("<"),l(d),Object.keys(t).forEach((function(e){var n=t[e],s=(a.allowedClasses||{})[d]||[],c=(a.allowedAttributes||{})[d]||[];c=c.concat((a.allowedAttributes||{})["*"]||[]);var u=r(e);("class"===u&&-1===c.indexOf(u)?(n=n.split(" ").filter((function(e){return s&&-1!==s.indexOf(e)})).join(" ").trim()).length:-1!==c.indexOf(u)&&(!0!==o.uris[u]||function(e){var t=e[0];if("#"===t||"/"===t)return!0;var n=e.indexOf(":");if(-1===n)return!0;var i=e.indexOf("?");if(-1!==i&&n>i)return!0;var r=e.indexOf("#");if(-1!==r&&n>r)return!0;return a.allowedSchemes.some((function(t){return 0===e.indexOf(t+":")}))}(n)))&&(l(" "),l(e),"string"==typeof n&&(l('="'),l(i.encode(n)),l('"')))})),l(s?"/>":">")},end:function(e){var t=r(e);-1!==(a.allowedTags||[]).indexOf(t)&&!1===n.ignoring?(l("</"),l(t),l(">")):d(t)},chars:function(e){!1===n.ignoring&&l(a.transformText?a.transformText(e):e)}};function l(t){e.push(t)}function c(e){s.voids[e]||(!1===n.ignoring?n={ignoring:e,depth:1}:n.ignoring===e&&n.depth++)}function d(e){n.ignoring===e&&--n.depth<=0&&u()}function u(){n={ignoring:!1,depth:0}}}},{"./attributes":1,"./elements":3,"./lowercase":5,he:9}],9:[function(e,t,n){var i={"&":"&","<":"<",">":">",'"':""","'":"'"},r={"&":"&","<":"<",">":">",""":'"',"'":"'"},o=/(&|<|>|"|')/g,s=/[&<>"']/g;function a(e){return i[e]}function l(e){return r[e]}function c(e){return null==e?"":String(e).replace(s,a)}function d(e){return null==e?"":String(e).replace(o,l)}c.options=d.options={},t.exports={encode:c,escape:c,decode:d,unescape:d,version:"1.0.0-browser"}},{}],10:[function(e,t,n){function i(e,t){return e[t]=!0,e}t.exports=function(e){return e.reduce(i,{})}},{}]},{},[4]);var u=d,h=n(233),f=n(37),g=n(8),p=n(24),m=n(35),_=n(16),b=n(42),v=n(59);var y=n(66),w=n(98),C=n(231),S=n(17),k=n(6),x=n(2),L=n(11);n.d(t,"a",(function(){return D}));var M=function(e,t){return function(n,i){t(n,i,e)}};let D=class extends x.a{constructor(e,t,n=y.b){super(),this._editor=e,this._modeService=t,this._openerService=n,this._onDidRenderCodeBlock=this._register(new k.a),this.onDidRenderCodeBlock=this._onDidRenderCodeBlock.event}getOptions(e){return{codeBlockRenderer:(e,t)=>{let n=null;if(e)n=this._modeService.getModeIdForLanguageName(e);else{const e=this._editor.getModel();e&&(n=e.getLanguageIdentifier().language)}return this._modeService.triggerMode(n||""),Promise.resolve(!0).then(e=>{const i=L.C.getPromise(n||"");return i?i.then(e=>Object(C.b)(t,e)):Object(C.b)(t,void 0)}).then(e=>`<span style="font-family: ${this._editor.getOption(36).fontFamily}">${e}</span>`)},codeBlockRenderCallback:()=>this._onDidRenderCodeBlock.fire(),actionHandler:{callback:e=>{this._openerService.open(e,{fromUserGesture:!0}).catch(s.e)},disposeables:e}}}render(e){const t=new x.b;let n;return{element:n=e?function(e,t={},n={}){var i;const d=Object(o.a)(t),y=function(t){let n;try{n=Object(h.a)(decodeURIComponent(t))}catch(e){}return n?(n=Object(f.b)(n,t=>e.uris&&e.uris[t]?p.a.revive(e.uris[t]):void 0),encodeURIComponent(JSON.stringify(n))):t},w=function(t,n){const i=e.uris&&e.uris[t];if(!i)return t;let o=p.a.revive(i);return p.a.parse(t).toString()===o.toString()?t:n?r.r(o).toString(!0):(o.query&&(o=o.with({query:y(o.query)})),o.toString())};let C;const S=new Promise(e=>C=e),k=new c.Renderer;k.image=(e,n,i)=>{let r=[],o=[];if(e){({href:e,dimensions:r}=Object(a.d)(e)),e=w(e,!0);try{const n=p.a.parse(e);t.baseUrl&&n.scheme===m.b.file&&(e=Object(b.k)(t.baseUrl,e).toString())}catch(e){}o.push(`src="${e}"`)}return i&&o.push(`alt="${i}"`),n&&o.push(`title="${n}"`),r.length&&(o=o.concat(r)),"<img "+o.join(" ")+">"},k.link=(n,i,r)=>{if(n===r&&(r=Object(a.e)(r)),n=w(n,!1),t.baseUrl){/^\w[\w\d+.-]*:/.test(n)||(n=Object(b.k)(t.baseUrl,n).toString())}return i=Object(a.e)(i),!(n=Object(a.e)(n))||n.match(/^data:|javascript:/i)||n.match(/^command:/i)&&!e.isTrusted||n.match(/^command:(\/\/\/)?_workbench\.downloadResource/i)?r:`<a href="#" data-href="${n=n.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}" title="${i||n}">${r}</a>`},k.paragraph=t=>`<p>${e.supportThemeIcons?Object(_.f)(t):t}</p>`,t.codeBlockRenderer&&(k.code=(e,n)=>{const i=t.codeBlockRenderer(n,e),r=l.b.nextId(),o=Promise.all([i,S]).then(e=>{const t=e[0],n=d.querySelector(`div[data-code="${r}"]`);n&&(n.innerHTML=t)}).catch(e=>{});return t.codeBlockRenderCallback&&o.then(t.codeBlockRenderCallback),`<div class="code" data-code="${r}">${Object(g.u)(e)}</div>`});const x=t.actionHandler;x&&[r.c.CLICK,r.c.AUXCLICK].forEach(e=>{x.disposeables.add(r.i(d,e,e=>{const t=new v.a(e);if(!t.leftButton&&!t.middleButton)return;let n=t.target;if("A"===n.tagName||(n=n.parentElement)&&"A"===n.tagName)try{const e=n.dataset.href;e&&x.callback(e,t)}catch(e){Object(s.e)(e)}finally{t.preventDefault()}}))}),n.sanitizer=t=>{return(e.isTrusted?t.match(/^(<span[^<]+>)|(<\/\s*span>)$/):void 0)?t:""},n.sanitize=!0,n.renderer=k;const L=[m.b.http,m.b.https,m.b.mailto,m.b.data,m.b.file,m.b.vscodeRemote,m.b.vscodeRemoteResource];e.isTrusted&&L.push(m.b.command);let M=null!==(i=e.value)&&void 0!==i?i:"";M.length>1e5&&(M=`${M.substr(0,1e5)}…`);const D=c.parse(e.supportThemeIcons?Object(_.d)(M):M,n);return d.innerHTML=u(D,{allowedSchemes:L,allowedTags:["ul","li","p","code","blockquote","ol","h1","h2","h3","h4","h5","h6","hr","em","pre","table","thead","tbody","tr","th","td","div","del","a","strong","br","img","span"],allowedAttributes:{a:["href","name","target","data-href"],img:["src","title","alt","width","height"],div:["class","data-code"],span:["class","style"],th:["align"],td:["align"]},filter:function(t){return"span"!==t.tag||!e.isTrusted||1!==Object.keys(t.attrs).length||(t.attrs.style?!!t.attrs.style.match(/^(color\:#[0-9a-fA-F]+;)?(background-color\:#[0-9a-fA-F]+;)?$/):!!t.attrs.class&&!!t.attrs.class.match(/^codicon codicon-[a-z\-]+( codicon-animation-[a-z\-]+)?$/))}}),C(),d}(e,this.getOptions(t)):document.createElement("span"),dispose:()=>t.dispose()}}};D=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}([M(1,w.a),M(2,Object(S.d)(y.a))],D)},function(e,t,n){"use strict";n.d(t,"b",(function(){return g})),n.d(t,"a",(function(){return y})),n.d(t,"d",(function(){return M})),n.d(t,"c",(function(){return D}));var i=n(0),r=n(6),o=n(2),s=n(37),a=n(14),l=n(27),c=n(128),d=n(175),u=n(120),h=n(46),f=n(265);const g=new class{constructor(){this._tabFocus=!1,this._onDidChangeTabFocus=new r.a,this.onDidChangeTabFocus=this._onDidChangeTabFocus.event}getTabFocusMode(){return this._tabFocus}setTabFocusMode(e){this._tabFocus!==e&&(this._tabFocus=e,this._onDidChangeTabFocus.fire(this._tabFocus))}},p=Object.hasOwnProperty;class m{constructor(){this._values=[]}_read(e){return this._values[e]}get(e){return this._values[e]}_write(e,t){this._values[e]=t}}class _{constructor(){this._values=[]}_read(e){return this._values[e]}_write(e,t){this._values[e]=t}}class b{static readOptions(e){const t=e,n=new _;for(const e of l.k){const i="_never_"===e.name?void 0:t[e.name];n._write(e.id,i)}return n}static validateOptions(e){const t=new l.j;for(const n of l.k)t._write(n.id,n.validate(e._read(n.id)));return t}static computeOptions(e,t){const n=new m;for(const i of l.k)n._write(i.id,i.compute(t,n,e._read(i.id)));return n}static _deepEquals(e,t){if("object"!=typeof e||"object"!=typeof t)return e===t;if(Array.isArray(e)||Array.isArray(t))return!(!Array.isArray(e)||!Array.isArray(t))&&a.g(e,t);for(let n in e)if(!b._deepEquals(e[n],t[n]))return!1;return!0}static checkEquals(e,t){const n=[];let i=!1;for(const r of l.k){const o=!b._deepEquals(e._read(r.id),t._read(r.id));n[r.id]=o,o&&(i=!0)}return i?new l.b(n):null}}function v(e){const t=s.c(e);return function(e){const t=e.wordWrap;!0===t?e.wordWrap="on":!1===t&&(e.wordWrap="off");const n=e.lineNumbers;!0===n?e.lineNumbers="on":!1===n&&(e.lineNumbers="off"),!1===e.autoClosingBrackets&&(e.autoClosingBrackets="never",e.autoClosingQuotes="never",e.autoSurround="never"),"visible"===e.cursorBlinking&&(e.cursorBlinking="solid");const i=e.renderWhitespace;!0===i?e.renderWhitespace="boundary":!1===i&&(e.renderWhitespace="none");const r=e.renderLineHighlight;!0===r?e.renderLineHighlight="line":!1===r&&(e.renderLineHighlight="none");const o=e.acceptSuggestionOnEnter;!0===o?e.acceptSuggestionOnEnter="on":!1===o&&(e.acceptSuggestionOnEnter="off");const s=e.tabCompletion;!1===s?e.tabCompletion="off":!0===s&&(e.tabCompletion="onlySnippets");const a=e.suggest;if(a&&"object"==typeof a.filteredTypes&&a.filteredTypes){const e={method:"showMethods",function:"showFunctions",constructor:"showConstructors",field:"showFields",variable:"showVariables",class:"showClasses",struct:"showStructs",interface:"showInterfaces",module:"showModules",property:"showProperties",event:"showEvents",operator:"showOperators",unit:"showUnits",value:"showValues",constant:"showConstants",enum:"showEnums",enumMember:"showEnumMembers",keyword:"showKeywords",text:"showWords",color:"showColors",file:"showFiles",reference:"showReferences",folder:"showFolders",typeParameter:"showTypeParameters",snippet:"showSnippets"};Object(f.b)(e,e=>{const t=a.filteredTypes[e.key];!1===t&&(a[e.value]=t)})}const l=e.hover;!0===l?e.hover={enabled:!0}:!1===l&&(e.hover={enabled:!1});const c=e.parameterHints;!0===c?e.parameterHints={enabled:!0}:!1===c&&(e.parameterHints={enabled:!1});const d=e.autoIndent;!0===d?e.autoIndent="full":!1===d&&(e.autoIndent="advanced");const u=e.matchBrackets;!0===u?e.matchBrackets="always":!1===u&&(e.matchBrackets="never")}(t),t}class y extends o.a{constructor(e,t){super(),this._onDidChange=this._register(new r.a),this.onDidChange=this._onDidChange.event,this._onDidChangeFast=this._register(new r.a),this.onDidChangeFast=this._onDidChangeFast.event,this.isSimpleWidget=e,this._isDominatedByLongLines=!1,this._computeOptionsMemory=new l.a,this._viewLineCount=1,this._lineNumbersDigitCount=1,this._rawOptions=v(t),this._readOptions=b.readOptions(this._rawOptions),this._validatedOptions=b.validateOptions(this._readOptions),this._register(c.a.onDidChangeZoomLevel(e=>this._recomputeOptions())),this._register(g.onDidChangeTabFocus(e=>this._recomputeOptions()))}observeReferenceElement(e){}dispose(){super.dispose()}_recomputeOptions(){const e=this.options,t=this._computeInternalOptions();if(e){const n=b.checkEquals(e,t);if(null===n)return;this.options=t,this._onDidChangeFast.fire(n),this._onDidChange.fire(n)}else this.options=t}getRawOptions(){return this._rawOptions}_computeInternalOptions(){const e=this._getEnvConfiguration(),t=d.a.createFromValidatedSettings(this._validatedOptions,e.zoomLevel,this.isSimpleWidget),n={memory:this._computeOptionsMemory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,fontInfo:this.readConfiguration(t),extraEditorClassName:e.extraEditorClassName,isDominatedByLongLines:this._isDominatedByLongLines,viewLineCount:this._viewLineCount,lineNumbersDigitCount:this._lineNumbersDigitCount,emptySelectionClipboard:e.emptySelectionClipboard,pixelRatio:e.pixelRatio,tabFocusMode:g.getTabFocusMode(),accessibilitySupport:e.accessibilitySupport};return b.computeOptions(this._validatedOptions,n)}static _subsetEquals(e,t){for(const n in t)if(p.call(t,n)){const i=t[n],r=e[n];if(r===i)continue;if(Array.isArray(r)&&Array.isArray(i)){if(!a.g(r,i))return!1;continue}if(r&&"object"==typeof r&&i&&"object"==typeof i){if(!this._subsetEquals(r,i))return!1;continue}return!1}return!0}updateOptions(e){if(void 0===e)return;const t=v(e);y._subsetEquals(this._rawOptions,t)||(this._rawOptions=s.g(this._rawOptions,t||{}),this._readOptions=b.readOptions(this._rawOptions),this._validatedOptions=b.validateOptions(this._readOptions),this._recomputeOptions())}setIsDominatedByLongLines(e){this._isDominatedByLongLines=e,this._recomputeOptions()}setMaxLineNumber(e){const t=y._digitCount(e);this._lineNumbersDigitCount!==t&&(this._lineNumbersDigitCount=t,this._recomputeOptions())}setViewLineCount(e){this._viewLineCount!==e&&(this._viewLineCount=e,this._recomputeOptions())}static _digitCount(e){let t=0;for(;e;)e=Math.floor(e/10),t++;return t||1}}const w=Object.freeze({id:"editor",order:5,type:"object",title:i.a("editorConfigurationTitle","Editor"),scope:5}),C=h.a.as(u.a.Configuration),S=Object.assign(Object.assign({},w),{properties:{"editor.tabSize":{type:"number",default:l.d.tabSize,minimum:1,markdownDescription:i.a("tabSize","The number of spaces a tab is equal to. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.")},"editor.insertSpaces":{type:"boolean",default:l.d.insertSpaces,markdownDescription:i.a("insertSpaces","Insert spaces when pressing `Tab`. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.")},"editor.detectIndentation":{type:"boolean",default:l.d.detectIndentation,markdownDescription:i.a("detectIndentation","Controls whether `#editor.tabSize#` and `#editor.insertSpaces#` will be automatically detected when a file is opened based on the file contents.")},"editor.trimAutoWhitespace":{type:"boolean",default:l.d.trimAutoWhitespace,description:i.a("trimAutoWhitespace","Remove trailing auto inserted whitespace.")},"editor.largeFileOptimizations":{type:"boolean",default:l.d.largeFileOptimizations,description:i.a("largeFileOptimizations","Special handling for large files to disable certain memory intensive features.")},"editor.wordBasedSuggestions":{type:"boolean",default:!0,description:i.a("wordBasedSuggestions","Controls whether completions should be computed based on words in the document.")},"editor.semanticHighlighting.enabled":{enum:[!0,!1,"configuredByTheme"],enumDescriptions:[i.a("semanticHighlighting.true","Semantic highlighting enabled for all color themes."),i.a("semanticHighlighting.false","Semantic highlighting disabled for all color themes."),i.a("semanticHighlighting.configuredByTheme","Semantic highlighting is configured by the current color theme's `semanticHighlighting` setting.")],default:"configuredByTheme",description:i.a("semanticHighlighting.enabled","Controls whether the semanticHighlighting is shown for the languages that support it.")},"editor.stablePeek":{type:"boolean",default:!1,markdownDescription:i.a("stablePeek","Keep peek editors open even when double clicking their content or when hitting `Escape`.")},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:i.a("maxTokenizationLineLength","Lines above this length will not be tokenized for performance reasons")},"diffEditor.maxComputationTime":{type:"number",default:5e3,description:i.a("maxComputationTime","Timeout in milliseconds after which diff computation is cancelled. Use 0 for no timeout.")},"diffEditor.renderSideBySide":{type:"boolean",default:!0,description:i.a("sideBySide","Controls whether the diff editor shows the diff side by side or inline.")},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:!0,description:i.a("ignoreTrimWhitespace","When enabled, the diff editor ignores changes in leading or trailing whitespace.")},"diffEditor.renderIndicators":{type:"boolean",default:!0,description:i.a("renderIndicators","Controls whether the diff editor shows +/- indicators for added/removed changes.")},"diffEditor.codeLens":{type:"boolean",default:!1,description:i.a("codeLens","Controls whether the editor shows CodeLens.")}}});for(const e of l.k){const t=e.schema;if(void 0!==t)if(void 0!==(k=t).type||void 0!==k.anyOf)S.properties[`editor.${e.name}`]=t;else for(let e in t)p.call(t,e)&&(S.properties[e]=t[e])}var k;let x=null;function L(){return null===x&&(x=Object.create(null),Object.keys(S.properties).forEach(e=>{x[e]=!0})),x}function M(e){return L()[`editor.${e}`]||!1}function D(e){return L()[`diffEditor.${e}`]||!1}C.registerConfiguration(S)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return l}));var i=n(12),r=n(128);const o=i.f?1.5:1.35,s=8;class a{constructor(e){this.zoomLevel=e.zoomLevel,this.fontFamily=String(e.fontFamily),this.fontWeight=String(e.fontWeight),this.fontSize=e.fontSize,this.fontFeatureSettings=e.fontFeatureSettings,this.lineHeight=0|e.lineHeight,this.letterSpacing=e.letterSpacing}static createFromValidatedSettings(e,t,n){const i=e.get(35),r=e.get(39),o=e.get(38),s=e.get(37),l=e.get(51),c=e.get(48);return a._create(i,r,o,s,l,c,t,n)}static _create(e,t,n,i,l,c,d,u){0===l?l=Math.round(o*n):l<s&&(l=s);const h=1+(u?0:.1*r.a.getZoomLevel());return new a({zoomLevel:d,fontFamily:e,fontWeight:t,fontSize:n*=h,fontFeatureSettings:i,lineHeight:l*=h,letterSpacing:c})}getId(){return this.zoomLevel+"-"+this.fontFamily+"-"+this.fontWeight+"-"+this.fontSize+"-"+this.fontFeatureSettings+"-"+this.lineHeight+"-"+this.letterSpacing}getMassagedFontFamily(){return/[,"']/.test(this.fontFamily)?this.fontFamily:/[+ ]/.test(this.fontFamily)?`"${this.fontFamily}"`:this.fontFamily}}class l extends a{constructor(e,t){super(e),this.isTrusted=t,this.isMonospace=e.isMonospace,this.typicalHalfwidthCharacterWidth=e.typicalHalfwidthCharacterWidth,this.typicalFullwidthCharacterWidth=e.typicalFullwidthCharacterWidth,this.canUseHalfwidthRightwardsArrow=e.canUseHalfwidthRightwardsArrow,this.spaceWidth=e.spaceWidth,this.middotWidth=e.middotWidth,this.wsmiddotWidth=e.wsmiddotWidth,this.maxDigitWidth=e.maxDigitWidth}equals(e){return this.fontFamily===e.fontFamily&&this.fontWeight===e.fontWeight&&this.fontSize===e.fontSize&&this.fontFeatureSettings===e.fontFeatureSettings&&this.lineHeight===e.lineHeight&&this.letterSpacing===e.letterSpacing&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.typicalFullwidthCharacterWidth===e.typicalFullwidthCharacterWidth&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.maxDigitWidth===e.maxDigitWidth}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return d})),n.d(t,"c",(function(){return h}));var i=n(24),r=n(45),o=n(8),s=n(35),a=n(12),l=n(42);function c(e,t,n){if("string"==typeof e&&(e=i.a.file(e)),n){const t=n.getWorkspaceFolder(e);if(t){const i=n.getWorkspace().folders.length>1;let r;if(r=Object(l.f)(t.uri,e)?"":Object(l.j)(t.uri,e),i){const e=t.name?t.name:Object(l.b)(t.uri);r=r?e+" • "+r:e}return r}}if(e.scheme!==s.b.file&&e.scheme!==s.b.untitled)return e.with({query:null,fragment:null}).toString(!0);if(u(e.fsPath))return Object(r.d)(h(e.fsPath));let c=Object(r.d)(e.fsPath);return!a.i&&(null==t?void 0:t.userHome)&&(c=function(e,t){if(a.i||!e||!t)return e;let n=f.original===t?f.normalized:void 0;n||(n=`${Object(o.Q)(t,r.e.sep)}${r.e.sep}`,f={original:t,normalized:n});(a.d?e.startsWith(n):Object(o.T)(e,n))&&(e=`~/${e.substr(n.length)}`);return e}(c,t.userHome.fsPath)),c}function d(e){if(!e)return;"string"==typeof e&&(e=i.a.file(e));const t=Object(l.b)(e)||(e.scheme===s.b.file?e.fsPath:e.path);return u(t)?h(t):t}function u(e){return!(!a.i||!e||":"!==e[1])}function h(e){return u(e)?e.charAt(0).toUpperCase()+e.slice(1):e}let f=Object.create(null)},function(e,t,n){"use strict";var i=n(37),r=n(2),o=n(50),s=n(1),a=n(6),l=n(34),c=n(94),d=n(203),u=n(91);function h(e,t){const n=[];for(let i of t){if(e.start>=i.range.end)continue;if(e.end<i.range.start)break;const t=u.a.intersect(e,i.range);u.a.isEmpty(t)||n.push({range:t,size:i.size})}return n}function f({start:e,end:t},n){return{start:e+n,end:t+n}}class g{constructor(){this.groups=[],this._size=0}splice(e,t,n=[]){const i=n.length-t,r=h({start:0,end:e},this.groups),o=h({start:e+t,end:Number.POSITIVE_INFINITY},this.groups).map(e=>({range:f(e.range,i),size:e.size})),s=n.map((t,n)=>({range:{start:e+n,end:e+n+1},size:t.size}));this.groups=function(...e){return function(e){const t=[];let n=null;for(let i of e){const e=i.range.start,r=i.range.end,o=i.size;n&&o===n.size?n.range.end=r:(n={range:{start:e,end:r},size:o},t.push(n))}return t}(e.reduce((e,t)=>e.concat(t),[]))}(r,s,o),this._size=this.groups.reduce((e,t)=>e+t.size*(t.range.end-t.range.start),0)}get count(){const e=this.groups.length;return e?this.groups[e-1].range.end:0}get size(){return this._size}indexAt(e){if(e<0)return-1;let t=0,n=0;for(let i of this.groups){const r=i.range.end-i.range.start,o=n+r*i.size;if(e<o)return t+Math.floor((e-n)/i.size);t+=r,n=o}return t}indexAfter(e){return Math.min(this.indexAt(e)+1,this.count)}positionAt(e){if(e<0)return-1;let t=0,n=0;for(let i of this.groups){const r=i.range.end-i.range.start,o=n+r;if(e<o)return t+(e-n)*i.size;t+=r*i.size,n=o}return-1}}class p{constructor(e){this.renderers=e,this.cache=new Map}alloc(e){let t=this.getTemplateCache(e).pop();if(!t){const n=Object(s.a)(".monaco-list-row");t={domNode:n,templateId:e,templateData:this.getRenderer(e).renderTemplate(n)}}return t}release(e){e&&this.releaseRow(e)}releaseRow(e){const{domNode:t,templateId:n}=e;t&&(Object(s.Q)(t,"scrolling"),function(e){try{e.parentElement&&e.parentElement.removeChild(e)}catch(e){}}(t)),this.getTemplateCache(n).push(e)}getTemplateCache(e){let t=this.cache.get(e);return t||(t=[],this.cache.set(e,t)),t}dispose(){this.cache.forEach((e,t)=>{for(const n of e){this.getRenderer(t).disposeTemplate(n.templateData),n.domNode=null,n.templateData=null}}),this.cache.clear()}getRenderer(e){const t=this.renderers.get(e);if(!t)throw new Error(`No renderer found for ${e}`);return t}}var m=n(90),_=n(14),b=n(115),v=n(19),y=n(30);n.d(t,"a",(function(){return S})),n.d(t,"b",(function(){return M}));var w=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s};const C={useShadows:!0,verticalScrollMode:1,setRowLineHeight:!0,setRowHeight:!0,supportDynamicHeights:!1,dnd:{getDragElements:e=>[e],getDragURI:()=>null,onDragStart(){},onDragOver:()=>!1,drop(){}},horizontalScrolling:!1,transformOptimization:!0};class S{constructor(e){this.elements=e}update(){}getData(){return this.elements}}class k{constructor(e){this.elements=e}update(){}getData(){return this.elements}}class x{constructor(){this.types=[],this.files=[]}update(e){if(e.types&&this.types.splice(0,this.types.length,...e.types),e.files){this.files.splice(0,this.files.length);for(let t=0;t<e.files.length;t++){const n=e.files.item(t);n&&(n.size||n.type)&&this.files.push(n)}}}getData(){return{types:this.types,files:this.files}}}class L{constructor(e){(null==e?void 0:e.getSetSize)?this.getSetSize=e.getSetSize.bind(e):this.getSetSize=(e,t,n)=>n,(null==e?void 0:e.getPosInSet)?this.getPosInSet=e.getPosInSet.bind(e):this.getPosInSet=(e,t)=>t+1,(null==e?void 0:e.getRole)?this.getRole=e.getRole.bind(e):this.getRole=e=>"listitem",(null==e?void 0:e.isChecked)?this.isChecked=e.isChecked.bind(e):this.isChecked=e=>void 0}}class M{constructor(e,t,n,u=C){if(this.virtualDelegate=t,this.domId=`list_id_${++M.InstanceCount}`,this.renderers=new Map,this.renderWidth=0,this._scrollHeight=0,this.scrollableElementUpdateDisposable=null,this.scrollableElementWidthDelayer=new v.a(50),this.splicing=!1,this.dragOverAnimationStopDisposable=r.a.None,this.dragOverMouseY=0,this.canDrop=!1,this.currentDragFeedbackDisposable=r.a.None,this.onDragLeaveTimeout=r.a.None,this.disposables=new r.b,this._onDidChangeContentHeight=new a.a,this._horizontalScrolling=!1,u.horizontalScrolling&&u.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");this.items=[],this.itemId=0,this.rangeMap=new g;for(const e of n)this.renderers.set(e.templateId,e);this.cache=this.disposables.add(new p(this.renderers)),this.lastRenderTop=0,this.lastRenderHeight=0,this.domNode=document.createElement("div"),this.domNode.className="monaco-list",s.e(this.domNode,this.domId),this.domNode.tabIndex=0,s.ab(this.domNode,"mouse-support","boolean"!=typeof u.mouseSupport||u.mouseSupport),this._horizontalScrolling=Object(i.f)(u,e=>e.horizontalScrolling,C.horizontalScrolling),s.ab(this.domNode,"horizontal-scrolling",this._horizontalScrolling),this.additionalScrollHeight=void 0===u.additionalScrollHeight?0:u.additionalScrollHeight,this.accessibilityProvider=new L(u.accessibilityProvider),this.rowsContainer=document.createElement("div"),this.rowsContainer.className="monaco-list-rows",Object(i.f)(u,e=>e.transformOptimization,C.transformOptimization)&&(this.rowsContainer.style.transform="translate3d(0px, 0px, 0px)"),this.disposables.add(o.b.addTarget(this.rowsContainer)),this.scrollable=new d.a(Object(i.f)(u,e=>e.smoothScrolling,!1)?125:0,e=>s.Y(e)),this.scrollableElement=this.disposables.add(new c.c(this.rowsContainer,{alwaysConsumeMouseWheel:!0,horizontal:1,vertical:Object(i.f)(u,e=>e.verticalScrollMode,C.verticalScrollMode),useShadows:Object(i.f)(u,e=>e.useShadows,C.useShadows)},this.scrollable)),this.domNode.appendChild(this.scrollableElement.getDomNode()),e.appendChild(this.domNode),this.scrollableElement.onScroll(this.onScroll,this,this.disposables),Object(l.a)(this.rowsContainer,o.a.Change)(this.onTouchChange,this,this.disposables),Object(l.a)(this.scrollableElement.getDomNode(),"scroll")(e=>e.target.scrollTop=0,null,this.disposables),a.b.map(Object(l.a)(this.domNode,"dragover"),e=>this.toDragEvent(e))(this.onDragOver,this,this.disposables),a.b.map(Object(l.a)(this.domNode,"drop"),e=>this.toDragEvent(e))(this.onDrop,this,this.disposables),Object(l.a)(this.domNode,"dragleave")(this.onDragLeave,this,this.disposables),Object(l.a)(window,"dragend")(this.onDragEnd,this,this.disposables),this.setRowLineHeight=Object(i.f)(u,e=>e.setRowLineHeight,C.setRowLineHeight),this.setRowHeight=Object(i.f)(u,e=>e.setRowHeight,C.setRowHeight),this.supportDynamicHeights=Object(i.f)(u,e=>e.supportDynamicHeights,C.supportDynamicHeights),this.dnd=Object(i.f)(u,e=>e.dnd,C.dnd),this.layout()}get contentHeight(){return this.rangeMap.size}get horizontalScrolling(){return this._horizontalScrolling}set horizontalScrolling(e){if(e!==this._horizontalScrolling){if(e&&this.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");if(this._horizontalScrolling=e,s.ab(this.domNode,"horizontal-scrolling",this._horizontalScrolling),this._horizontalScrolling){for(const e of this.items)this.measureItemWidth(e);this.updateScrollWidth(),this.scrollableElement.setScrollDimensions({width:s.B(this.domNode)}),this.rowsContainer.style.width=`${Math.max(this.scrollWidth||0,this.renderWidth)}px`}else this.scrollableElementWidthDelayer.cancel(),this.scrollableElement.setScrollDimensions({width:this.renderWidth,scrollWidth:this.renderWidth}),this.rowsContainer.style.width=""}}updateOptions(e){void 0!==e.additionalScrollHeight&&(this.additionalScrollHeight=e.additionalScrollHeight),void 0!==e.smoothScrolling&&this.scrollable.setSmoothScrollDuration(e.smoothScrolling?125:0),void 0!==e.horizontalScrolling&&(this.horizontalScrolling=e.horizontalScrolling)}splice(e,t,n=[]){if(this.splicing)throw new Error("Can't run recursive splices.");this.splicing=!0;try{return this._splice(e,t,n)}finally{this.splicing=!1,this._onDidChangeContentHeight.fire(this.contentHeight)}}_splice(e,t,n=[]){const i=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),o={start:e,end:e+t},s=u.a.intersect(i,o);for(let e=s.start;e<s.end;e++)this.removeItemFromDOM(e);const a={start:e+t,end:this.items.length},l=u.a.intersect(a,i),c=u.a.relativeComplement(a,i),d=n.map(e=>({id:String(this.itemId++),element:e,templateId:this.virtualDelegate.getTemplateId(e),size:this.virtualDelegate.getHeight(e),width:void 0,hasDynamicHeight:!!this.virtualDelegate.hasDynamicHeight&&this.virtualDelegate.hasDynamicHeight(e),lastDynamicHeightWidth:void 0,row:null,uri:void 0,dropTarget:!1,dragStartDisposable:r.a.None}));let h;0===e&&t>=this.items.length?(this.rangeMap=new g,this.rangeMap.splice(0,0,d),this.items=d,h=[]):(this.rangeMap.splice(e,t,d),h=this.items.splice(e,t,...d));const p=n.length-t,m=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),_=f(l,p),b=u.a.intersect(m,_);for(let e=b.start;e<b.end;e++)this.updateItemInDOM(this.items[e],e);const v=u.a.relativeComplement(_,m);for(const e of v)for(let t=e.start;t<e.end;t++)this.removeItemFromDOM(t);const y=c.map(e=>f(e,p)),w=[{start:e,end:e+n.length},...y].map(e=>u.a.intersect(m,e)),C=this.getNextToLastElement(w);for(const e of w)for(let t=e.start;t<e.end;t++)this.insertItemInDOM(t,C);return this.eventuallyUpdateScrollDimensions(),this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight),h.map(e=>e.element)}eventuallyUpdateScrollDimensions(){this._scrollHeight=this.contentHeight,this.rowsContainer.style.height=`${this._scrollHeight}px`,this.scrollableElementUpdateDisposable||(this.scrollableElementUpdateDisposable=s.Y(()=>{this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight}),this.updateScrollWidth(),this.scrollableElementUpdateDisposable=null}))}eventuallyUpdateScrollWidth(){this.horizontalScrolling?this.scrollableElementWidthDelayer.trigger(()=>this.updateScrollWidth()):this.scrollableElementWidthDelayer.cancel()}updateScrollWidth(){if(!this.horizontalScrolling)return;let e=0;for(const t of this.items)void 0!==t.width&&(e=Math.max(e,t.width));this.scrollWidth=e,this.scrollableElement.setScrollDimensions({scrollWidth:0===e?0:e+10})}rerender(){if(this.supportDynamicHeights){for(const e of this.items)e.lastDynamicHeightWidth=void 0;this._rerender(this.lastRenderTop,this.lastRenderHeight)}}get length(){return this.items.length}get renderHeight(){return this.scrollableElement.getScrollDimensions().height}element(e){return this.items[e].element}domElement(e){const t=this.items[e].row;return t&&t.domNode}elementHeight(e){return this.items[e].size}elementTop(e){return this.rangeMap.positionAt(e)}indexAt(e){return this.rangeMap.indexAt(e)}indexAfter(e){return this.rangeMap.indexAfter(e)}layout(e,t){let n={height:"number"==typeof e?e:s.A(this.domNode)};this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,n.scrollHeight=this.scrollHeight),this.scrollableElement.setScrollDimensions(n),void 0!==t&&(this.renderWidth=t,this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight),this.horizontalScrolling&&this.scrollableElement.setScrollDimensions({width:"number"==typeof t?t:s.B(this.domNode)}))}render(e,t,n,i,r,o=!1){const s=this.getRenderRange(t,n),a=u.a.relativeComplement(s,e),l=u.a.relativeComplement(e,s),c=this.getNextToLastElement(a);if(o){const t=u.a.intersect(e,s);for(let e=t.start;e<t.end;e++)this.updateItemInDOM(this.items[e],e)}for(const e of a)for(let t=e.start;t<e.end;t++)this.insertItemInDOM(t,c);for(const e of l)for(let t=e.start;t<e.end;t++)this.removeItemFromDOM(t);void 0!==i&&(this.rowsContainer.style.left=`-${i}px`),this.rowsContainer.style.top=`-${t}px`,this.horizontalScrolling&&void 0!==r&&(this.rowsContainer.style.width=`${Math.max(r,this.renderWidth)}px`),this.lastRenderTop=t,this.lastRenderHeight=n}insertItemInDOM(e,t){const n=this.items[e];if(!n.row){n.row=this.cache.alloc(n.templateId);const e=this.accessibilityProvider.getRole(n.element)||"listitem";n.row.domNode.setAttribute("role",e);const t=this.accessibilityProvider.isChecked(n.element);void 0!==t&&n.row.domNode.setAttribute("aria-checked",String(!!t))}n.row.domNode.parentElement||(t?this.rowsContainer.insertBefore(n.row.domNode,t):this.rowsContainer.appendChild(n.row.domNode)),this.updateItemInDOM(n,e);const i=this.renderers.get(n.templateId);if(!i)throw new Error(`No renderer found for template id ${n.templateId}`);i&&i.renderElement(n.element,e,n.row.templateData,n.size);const r=this.dnd.getDragURI(n.element);if(n.dragStartDisposable.dispose(),n.row.domNode.draggable=!!r,r){const e=Object(l.a)(n.row.domNode,"dragstart");n.dragStartDisposable=e(e=>this.onDragStart(n.element,r,e))}this.horizontalScrolling&&(this.measureItemWidth(n),this.eventuallyUpdateScrollWidth())}measureItemWidth(e){if(!e.row||!e.row.domNode)return;e.row.domNode.style.width=y.h?"-moz-fit-content":"fit-content",e.width=s.B(e.row.domNode);const t=window.getComputedStyle(e.row.domNode);t.paddingLeft&&(e.width+=parseFloat(t.paddingLeft)),t.paddingRight&&(e.width+=parseFloat(t.paddingRight)),e.row.domNode.style.width=""}updateItemInDOM(e,t){e.row.domNode.style.top=`${this.elementTop(t)}px`,this.setRowHeight&&(e.row.domNode.style.height=`${e.size}px`),this.setRowLineHeight&&(e.row.domNode.style.lineHeight=`${e.size}px`),e.row.domNode.setAttribute("data-index",`${t}`),e.row.domNode.setAttribute("data-last-element",t===this.length-1?"true":"false"),e.row.domNode.setAttribute("aria-setsize",String(this.accessibilityProvider.getSetSize(e.element,t,this.length))),e.row.domNode.setAttribute("aria-posinset",String(this.accessibilityProvider.getPosInSet(e.element,t))),e.row.domNode.setAttribute("id",this.getElementDomId(t)),s.ab(e.row.domNode,"drop-target",e.dropTarget)}removeItemFromDOM(e){const t=this.items[e];t.dragStartDisposable.dispose();const n=this.renderers.get(t.templateId);t.row&&n&&n.disposeElement&&n.disposeElement(t.element,e,t.row.templateData,t.size),this.cache.release(t.row),t.row=null,this.horizontalScrolling&&this.eventuallyUpdateScrollWidth()}getScrollTop(){return this.scrollableElement.getScrollPosition().scrollTop}setScrollTop(e){this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),this.scrollableElement.setScrollPosition({scrollTop:e})}get scrollTop(){return this.getScrollTop()}set scrollTop(e){this.setScrollTop(e)}get scrollHeight(){return this._scrollHeight+(this.horizontalScrolling?10:0)+this.additionalScrollHeight}get onMouseClick(){return a.b.map(Object(l.a)(this.domNode,"click"),e=>this.toMouseEvent(e))}get onMouseDblClick(){return a.b.map(Object(l.a)(this.domNode,"dblclick"),e=>this.toMouseEvent(e))}get onMouseMiddleClick(){return a.b.filter(a.b.map(Object(l.a)(this.domNode,"auxclick"),e=>this.toMouseEvent(e)),e=>1===e.browserEvent.button)}get onMouseDown(){return a.b.map(Object(l.a)(this.domNode,"mousedown"),e=>this.toMouseEvent(e))}get onContextMenu(){return a.b.map(Object(l.a)(this.domNode,"contextmenu"),e=>this.toMouseEvent(e))}get onTouchStart(){return a.b.map(Object(l.a)(this.domNode,"touchstart"),e=>this.toTouchEvent(e))}get onTap(){return a.b.map(Object(l.a)(this.rowsContainer,o.a.Tap),e=>this.toGestureEvent(e))}toMouseEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),n=void 0===t?void 0:this.items[t];return{browserEvent:e,index:t,element:n&&n.element}}toTouchEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),n=void 0===t?void 0:this.items[t];return{browserEvent:e,index:t,element:n&&n.element}}toGestureEvent(e){const t=this.getItemIndexFromEventTarget(e.initialTarget||null),n=void 0===t?void 0:this.items[t];return{browserEvent:e,index:t,element:n&&n.element}}toDragEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),n=void 0===t?void 0:this.items[t];return{browserEvent:e,index:t,element:n&&n.element}}onScroll(e){try{const t=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight);this.render(t,e.scrollTop,e.height,e.scrollLeft,e.scrollWidth),this.supportDynamicHeights&&this._rerender(e.scrollTop,e.height)}catch(t){throw console.error("Got bad scroll event:",e),t}}onTouchChange(e){e.preventDefault(),e.stopPropagation(),this.scrollTop-=e.translationY}onDragStart(e,t,n){if(!n.dataTransfer)return;const i=this.dnd.getDragElements(e);if(n.dataTransfer.effectAllowed="copyMove",n.dataTransfer.setData(b.a.RESOURCES,JSON.stringify([t])),n.dataTransfer.setDragImage){let e;this.dnd.getDragLabel&&(e=this.dnd.getDragLabel(i,n)),void 0===e&&(e=String(i.length));const t=s.a(".monaco-drag-image");t.textContent=e,document.body.appendChild(t),n.dataTransfer.setDragImage(t,-10,-10),setTimeout(()=>document.body.removeChild(t),0)}this.currentDragData=new S(i),b.c.CurrentDragAndDropData=new k(i),this.dnd.onDragStart&&this.dnd.onDragStart(this.currentDragData,n)}onDragOver(e){if(e.browserEvent.preventDefault(),this.onDragLeaveTimeout.dispose(),b.c.CurrentDragAndDropData&&"vscode-ui"===b.c.CurrentDragAndDropData.getData())return!1;if(this.setupDragAndDropScrollTopAnimation(e.browserEvent),!e.browserEvent.dataTransfer)return!1;if(!this.currentDragData)if(b.c.CurrentDragAndDropData)this.currentDragData=b.c.CurrentDragAndDropData;else{if(!e.browserEvent.dataTransfer.types)return!1;this.currentDragData=new x}const t=this.dnd.onDragOver(this.currentDragData,e.element,e.index,e.browserEvent);if(this.canDrop="boolean"==typeof t?t:t.accept,!this.canDrop)return this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),!1;let n;if(e.browserEvent.dataTransfer.dropEffect="boolean"!=typeof t&&0===t.effect?"copy":"move",n="boolean"!=typeof t&&t.feedback?t.feedback:void 0===e.index?[-1]:[e.index],n=-1===(n=Object(_.e)(n).filter(e=>e>=-1&&e<this.length).sort((e,t)=>e-t))[0]?[-1]:n,i=this.currentDragFeedback,o=n,Array.isArray(i)&&Array.isArray(o)?Object(_.g)(i,o):i===o)return!0;var i,o;if(this.currentDragFeedback=n,this.currentDragFeedbackDisposable.dispose(),-1===n[0])s.e(this.domNode,"drop-target"),s.e(this.rowsContainer,"drop-target"),this.currentDragFeedbackDisposable=Object(r.h)(()=>{s.Q(this.domNode,"drop-target"),s.Q(this.rowsContainer,"drop-target")});else{for(const e of n){const t=this.items[e];t.dropTarget=!0,t.row&&t.row.domNode&&s.e(t.row.domNode,"drop-target")}this.currentDragFeedbackDisposable=Object(r.h)(()=>{for(const e of n){const t=this.items[e];t.dropTarget=!1,t.row&&t.row.domNode&&s.Q(t.row.domNode,"drop-target")}})}return!0}onDragLeave(){this.onDragLeaveTimeout.dispose(),this.onDragLeaveTimeout=Object(v.g)(()=>this.clearDragOverFeedback(),100)}onDrop(e){if(!this.canDrop)return;const t=this.currentDragData;this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,b.c.CurrentDragAndDropData=void 0,t&&e.browserEvent.dataTransfer&&(e.browserEvent.preventDefault(),t.update(e.browserEvent.dataTransfer),this.dnd.drop(t,e.element,e.index,e.browserEvent))}onDragEnd(e){this.canDrop=!1,this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,b.c.CurrentDragAndDropData=void 0,this.dnd.onDragEnd&&this.dnd.onDragEnd(e)}clearDragOverFeedback(){this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),this.currentDragFeedbackDisposable=r.a.None}setupDragAndDropScrollTopAnimation(e){if(!this.dragOverAnimationDisposable){const e=s.F(this.domNode).top;this.dragOverAnimationDisposable=s.o(this.animateDragAndDropScrollTop.bind(this,e))}this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationStopDisposable=Object(v.g)(()=>{this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)},1e3),this.dragOverMouseY=e.pageY}animateDragAndDropScrollTop(e){if(void 0===this.dragOverMouseY)return;const t=this.dragOverMouseY-e,n=this.renderHeight-35;t<35?this.scrollTop+=Math.max(-14,Math.floor(.3*(t-35))):t>n&&(this.scrollTop+=Math.min(14,Math.floor(.3*(t-n))))}teardownDragAndDropScrollTopAnimation(){this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)}getItemIndexFromEventTarget(e){const t=this.scrollableElement.getDomNode();let n=e;for(;n instanceof HTMLElement&&n!==this.rowsContainer&&t.contains(n);){const e=n.getAttribute("data-index");if(e){const t=Number(e);if(!isNaN(t))return t}n=n.parentElement}}getRenderRange(e,t){return{start:this.rangeMap.indexAt(e),end:this.rangeMap.indexAfter(e+t-1)}}_rerender(e,t){const n=this.getRenderRange(e,t);let i,r;e===this.elementTop(n.start)?(i=n.start,r=0):n.end-n.start>1&&(i=n.start+1,r=this.elementTop(i)-e);let o=0;for(;;){const s=this.getRenderRange(e,t);let a=!1;for(let e=s.start;e<s.end;e++){const t=this.probeDynamicHeight(e);0!==t&&this.rangeMap.splice(e,1,[this.items[e]]),o+=t,a=a||0!==t}if(!a){0!==o&&this.eventuallyUpdateScrollDimensions();const e=u.a.relativeComplement(n,s);for(const t of e)for(let e=t.start;e<t.end;e++)this.items[e].row&&this.removeItemFromDOM(e);const t=u.a.relativeComplement(s,n);for(const e of t)for(let t=e.start;t<e.end;t++){const e=t+1,n=e<this.items.length?this.items[e].row:null,i=n?n.domNode:null;this.insertItemInDOM(t,i)}for(let e=s.start;e<s.end;e++)this.items[e].row&&this.updateItemInDOM(this.items[e],e);return"number"==typeof i&&(this.scrollTop=this.elementTop(i)-r),void this._onDidChangeContentHeight.fire(this.contentHeight)}}}probeDynamicHeight(e){const t=this.items[e];if(!t.hasDynamicHeight||t.lastDynamicHeightWidth===this.renderWidth)return 0;if(this.virtualDelegate.hasDynamicHeight&&!this.virtualDelegate.hasDynamicHeight(t.element))return 0;const n=t.size;if(!this.setRowHeight&&t.row&&t.row.domNode){let e=t.row.domNode.offsetHeight;return t.size=e,t.lastDynamicHeightWidth=this.renderWidth,e-n}const i=this.cache.alloc(t.templateId);i.domNode.style.height="",this.rowsContainer.appendChild(i.domNode);const r=this.renderers.get(t.templateId);return r&&(r.renderElement(t.element,e,i.templateData,void 0),r.disposeElement&&r.disposeElement(t.element,e,i.templateData,void 0)),t.size=i.domNode.offsetHeight,this.virtualDelegate.setDynamicHeight&&this.virtualDelegate.setDynamicHeight(t.element,t.size),t.lastDynamicHeightWidth=this.renderWidth,this.rowsContainer.removeChild(i.domNode),this.cache.release(i),t.size-n}getNextToLastElement(e){const t=e[e.length-1];if(!t)return null;const n=this.items[t.end];return n&&n.row?n.row.domNode:null}getElementDomId(e){return`${this.domId}_${e}`}dispose(){if(this.items){for(const e of this.items)if(e.row){const t=this.renderers.get(e.row.templateId);t&&t.disposeTemplate(e.row.templateData)}this.items=[]}this.domNode&&this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),Object(r.f)(this.disposables)}}M.InstanceCount=0,w([m.a],M.prototype,"onMouseClick",null),w([m.a],M.prototype,"onMouseDblClick",null),w([m.a],M.prototype,"onMouseMiddleClick",null),w([m.a],M.prototype,"onMouseDown",null),w([m.a],M.prototype,"onContextMenu",null),w([m.a],M.prototype,"onTouchStart",null),w([m.a],M.prototype,"onTap",null)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));class i{constructor(e,t=[],n=!1){this.ctor=e,this.staticArguments=t,this.supportsDelayedInstantiation=n}}},function(e,t,n){var i=n(665),r=n(670);e.exports=function(e,t){var n=r(e,t);return i(n)?n:void 0}},function(e,t,n){var i=n(181),r=n(132),o="[object AsyncFunction]",s="[object Function]",a="[object GeneratorFunction]",l="[object Proxy]";e.exports=function(e){if(!r(e))return!1;var t=i(e);return t==s||t==a||t==o||t==l}},function(e,t,n){var i=n(192),r=n(666),o=n(667),s="[object Null]",a="[object Undefined]",l=i?i.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?a:s:l&&l in Object(e)?r(e):o(e)}},function(e,t){e.exports=function(e){return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(135),r=n(144);t.default=function(e,t,n){var o=r.default.parse(e),s=o[t],a=i.default.channel.clamp[t](s+n);return s!==a&&(o[t]=a),r.default.stringify(o)}},function(e,t,n){"use strict";n(589);var i=n(0),r=n(1),o=n(15),s=n(6),a=n(2),l=n(35),c=n(77),d=n(4),u=n(33),h=n(22),f=n(31),g=n(12),p=n(50),m=n(59),_=n(19),b=n(30),v=n(93);class y{constructor(e,t){this.x=e,this.y=t}toClientCoordinates(){return new w(this.x-r.d.scrollX,this.y-r.d.scrollY)}}class w{constructor(e,t){this.clientX=e,this.clientY=t}toPageCoordinates(){return new y(this.clientX+r.d.scrollX,this.clientY+r.d.scrollY)}}class C{constructor(e,t,n,i){this.x=e,this.y=t,this.width=n,this.height=i}}function S(e){const t=r.C(e);return new C(t.left,t.top,t.width,t.height)}class k extends m.a{constructor(e,t){super(e),this.pos=new y(this.posx,this.posy),this.editorPos=S(t)}}class x{constructor(e){this._editorViewDomNode=e}_create(e){return new k(e,this._editorViewDomNode)}onContextMenu(e,t){return r.i(e,"contextmenu",e=>{t(this._create(e))})}onMouseUp(e,t){return r.i(e,"mouseup",e=>{t(this._create(e))})}onMouseDown(e,t){return r.i(e,"mousedown",e=>{t(this._create(e))})}onMouseLeave(e,t){return r.j(e,e=>{t(this._create(e))})}onMouseMoveThrottled(e,t,n,i){return r.l(e,"mousemove",t,(e,t)=>n(e,this._create(t)),i)}}class L{constructor(e){this._editorViewDomNode=e}_create(e){return new k(e,this._editorViewDomNode)}onPointerUp(e,t){return r.i(e,"pointerup",e=>{t(this._create(e))})}onPointerDown(e,t){return r.i(e,"pointerdown",e=>{t(this._create(e))})}onPointerLeave(e,t){return r.k(e,e=>{t(this._create(e))})}onPointerMoveThrottled(e,t,n,i){return r.l(e,"pointermove",t,(e,t)=>n(e,this._create(t)),i)}}class M extends a.a{constructor(e){super(),this._editorViewDomNode=e,this._globalMouseMoveMonitor=this._register(new v.a),this._keydownListener=null}startMonitoring(e,t,n,i,o){this._keydownListener=r.n(document,"keydown",e=>{e.toKeybinding().isModifierKey()||this._globalMouseMoveMonitor.stopMonitoring(!0)},!0);this._globalMouseMoveMonitor.startMonitoring(e,t,(e,t)=>n(e,new k(t,this._editorViewDomNode)),i,()=>{this._keydownListener.dispose(),o()})}}class D extends a.a{constructor(){super(),this._shouldRender=!0}shouldRender(){return this._shouldRender}forceShouldRender(){this._shouldRender=!0}setShouldRender(){this._shouldRender=!0}onDidRender(){this._shouldRender=!1}onConfigurationChanged(e){return!1}onCursorStateChanged(e){return!1}onDecorationsChanged(e){return!1}onFlushed(e){return!1}onFocusChanged(e){return!1}onLanguageConfigurationChanged(e){return!1}onLineMappingChanged(e){return!1}onLinesChanged(e){return!1}onLinesDeleted(e){return!1}onLinesInserted(e){return!1}onRevealRangeRequest(e){return!1}onScrollChanged(e){return!1}onThemeChanged(e){return!1}onTokensChanged(e){return!1}onTokensColorsChanged(e){return!1}onZonesChanged(e){return!1}handleEvents(e){let t=!1;for(let n=0,i=e.length;n<i;n++){let i=e[n];switch(i.type){case 0:this.onConfigurationChanged(i)&&(t=!0);break;case 1:this.onCursorStateChanged(i)&&(t=!0);break;case 2:this.onDecorationsChanged(i)&&(t=!0);break;case 3:this.onFlushed(i)&&(t=!0);break;case 4:this.onFocusChanged(i)&&(t=!0);break;case 5:this.onLanguageConfigurationChanged(i)&&(t=!0);break;case 6:this.onLineMappingChanged(i)&&(t=!0);break;case 7:this.onLinesChanged(i)&&(t=!0);break;case 8:this.onLinesDeleted(i)&&(t=!0);break;case 9:this.onLinesInserted(i)&&(t=!0);break;case 10:this.onRevealRangeRequest(i)&&(t=!0);break;case 11:this.onScrollChanged(i)&&(t=!0);break;case 13:this.onTokensChanged(i)&&(t=!0);break;case 12:this.onThemeChanged(i)&&(t=!0);break;case 14:this.onTokensColorsChanged(i)&&(t=!0);break;case 15:this.onZonesChanged(i)&&(t=!0);break;default:console.info("View received unknown event: "),console.info(i)}}t&&(this._shouldRender=!0)}}class E extends D{constructor(e){super(),this._context=e,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}}class T{static write(e,t){f.a,e.setAttribute("data-mprt",String(t))}static read(e){const t=e.getAttribute("data-mprt");return null===t?0:parseInt(t,10)}static collect(e,t){let n=[],i=0;for(;e&&e!==document.body&&e!==t;)e.nodeType===e.ELEMENT_NODE&&(n[i++]=this.read(e)),e=e.parentElement;const r=new Uint8Array(i);for(let e=0;e<i;e++)r[e]=n[i-e-1];return r}}class O{constructor(e,t){this._viewLayout=e,this.viewportData=t,this.scrollWidth=this._viewLayout.getScrollWidth(),this.scrollHeight=this._viewLayout.getScrollHeight(),this.visibleRange=this.viewportData.visibleRange,this.bigNumbersDelta=this.viewportData.bigNumbersDelta;const n=this._viewLayout.getCurrentViewport();this.scrollTop=n.top,this.scrollLeft=n.left,this.viewportWidth=n.width,this.viewportHeight=n.height}getScrolledTopFromAbsoluteTop(e){return e-this.scrollTop}getVerticalOffsetForLineNumber(e){return this._viewLayout.getVerticalOffsetForLineNumber(e)}getDecorationsInViewport(){return this.viewportData.getDecorationsInViewport()}}class N extends O{constructor(e,t,n){super(e,t),this._viewLines=n}linesVisibleRangesForRange(e,t){return this._viewLines.linesVisibleRangesForRange(e,t)}visibleRangeForPosition(e){return this._viewLines.visibleRangeForPosition(e)}}class I{constructor(e,t,n){this.outsideRenderedLine=e,this.lineNumber=t,this.ranges=n}}class A{constructor(e,t){this.left=Math.round(e),this.width=Math.round(t)}toString(){return`[${this.left},${this.width}]`}}class R{constructor(e,t){this.outsideRenderedLine=e,this.left=Math.round(t)}}class P{constructor(e,t){this.outsideRenderedLine=e,this.ranges=t}}class j{constructor(e,t){this.left=e,this.width=t}toString(){return`[${this.left},${this.width}]`}static compare(e,t){return e.left-t.left}}class F{static _createRange(){return this._handyReadyRange||(this._handyReadyRange=document.createRange()),this._handyReadyRange}static _detachRange(e,t){e.selectNodeContents(t)}static _readClientRects(e,t,n,i,r){const o=this._createRange();try{return o.setStart(e,t),o.setEnd(n,i),o.getClientRects()}catch(e){return null}finally{this._detachRange(o,r)}}static _mergeAdjacentRanges(e){if(1===e.length)return[new A(e[0].left,e[0].width)];e.sort(j.compare);let t=[],n=0,i=e[0].left,r=e[0].width;for(let o=1,s=e.length;o<s;o++){const s=e[o],a=s.left,l=s.width;i+r+.9>=a?r=Math.max(r,a+l-i):(t[n++]=new A(i,r),i=a,r=l)}return t[n++]=new A(i,r),t}static _createHorizontalRangesFromClientRects(e,t){if(!e||0===e.length)return null;const n=[];for(let i=0,r=e.length;i<r;i++){const r=e[i];n[i]=new j(Math.max(0,r.left-t),r.width)}return this._mergeAdjacentRanges(n)}static readHorizontalRanges(e,t,n,i,r,o,s){const a=e.children.length-1;if(0>a)return null;if((t=Math.min(a,Math.max(0,t)))===(i=Math.min(a,Math.max(0,i)))&&n===r&&0===n){const n=e.children[t].getClientRects();return this._createHorizontalRangesFromClientRects(n,o)}t!==i&&i>0&&0===r&&(i--,r=1073741824);let l=e.children[t].firstChild,c=e.children[i].firstChild;if(l&&c||(!l&&0===n&&t>0&&(l=e.children[t-1].firstChild,n=1073741824),!c&&0===r&&i>0&&(c=e.children[i-1].firstChild,r=1073741824)),!l||!c)return null;n=Math.min(l.textContent.length,Math.max(0,n)),r=Math.min(c.textContent.length,Math.max(0,r));const d=this._readClientRects(l,n,c,r,s);return this._createHorizontalRangesFromClientRects(d,o)}}var B=n(164),W=n(79),H=n(18),Y=n(27);const V=!!g.g||!(g.d||b.h||b.j);let z=!0;const U=b.f;class ${constructor(e,t){this._domNode=e,this._clientRectDeltaLeft=0,this._clientRectDeltaLeftRead=!1,this.endNode=t}get clientRectDeltaLeft(){return this._clientRectDeltaLeftRead||(this._clientRectDeltaLeftRead=!0,this._clientRectDeltaLeft=this._domNode.getBoundingClientRect().left),this._clientRectDeltaLeft}}class q{constructor(e,t){this.themeType=t;const n=e.options,i=n.get(36);this.renderWhitespace=n.get(80),this.renderControlCharacters=n.get(74),this.spaceWidth=i.spaceWidth,this.middotWidth=i.middotWidth,this.wsmiddotWidth=i.wsmiddotWidth,this.useMonospaceOptimizations=i.isMonospace&&!n.get(24),this.canUseHalfwidthRightwardsArrow=i.canUseHalfwidthRightwardsArrow,this.lineHeight=n.get(51),this.stopRenderingLineAfter=n.get(95),this.fontLigatures=n.get(37)}equals(e){return this.themeType===e.themeType&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineHeight===e.lineHeight&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.fontLigatures===e.fontLigatures}}class K{constructor(e){this._options=e,this._isMaybeInvalid=!0,this._renderedViewLine=null}getDomNode(){return this._renderedViewLine&&this._renderedViewLine.domNode?this._renderedViewLine.domNode.domNode:null}setDomNode(e){if(!this._renderedViewLine)throw new Error("I have no rendered view line to set the dom node to...");this._renderedViewLine.domNode=Object(f.b)(e)}onContentChanged(){this._isMaybeInvalid=!0}onTokensChanged(){this._isMaybeInvalid=!0}onDecorationsChanged(){this._isMaybeInvalid=!0}onOptionsChanged(e){this._isMaybeInvalid=!0,this._options=e}onSelectionChanged(){return!(!U&&this._options.themeType!==H.b&&"selection"!==this._options.renderWhitespace)&&(this._isMaybeInvalid=!0,!0)}renderLine(e,t,n,i){if(!1===this._isMaybeInvalid)return!1;this._isMaybeInvalid=!1;const r=n.getViewLineRenderingData(e),o=this._options,s=B.a.filter(r.inlineDecorations,e,r.minColumn,r.maxColumn);let a=null;if(U||o.themeType===H.b||"selection"===this._options.renderWhitespace){const t=n.selections;for(const n of t){if(n.endLineNumber<e||n.startLineNumber>e)continue;const t=n.startLineNumber===e?n.startColumn:r.minColumn,i=n.endLineNumber===e?n.endColumn:r.maxColumn;t<i&&(o.themeType===H.b||"selection"!==this._options.renderWhitespace?s.push(new B.a(t,i,"inline-selected-text",0)):(a||(a=[]),a.push(new W.b(t-1,i-1))))}}const l=new W.c(o.useMonospaceOptimizations,o.canUseHalfwidthRightwardsArrow,r.content,r.continuesWithWrappedLine,r.isBasicASCII,r.containsRTL,r.minColumn-1,r.tokens,s,r.tabSize,r.startVisibleColumn,o.spaceWidth,o.middotWidth,o.wsmiddotWidth,o.stopRenderingLineAfter,o.renderWhitespace,o.renderControlCharacters,o.fontLigatures!==Y.e.OFF,a);if(this._renderedViewLine&&this._renderedViewLine.input.equals(l))return!1;i.appendASCIIString('<div style="top:'),i.appendASCIIString(String(t)),i.appendASCIIString("px;height:"),i.appendASCIIString(String(this._options.lineHeight)),i.appendASCIIString('px;" class="'),i.appendASCIIString(K.CLASS_NAME),i.appendASCIIString('">');const c=Object(W.d)(l,i);i.appendASCIIString("</div>");let d=null;return z&&V&&r.isBasicASCII&&o.useMonospaceOptimizations&&0===c.containsForeignElements&&r.content.length<300&&l.lineTokens.getCount()<100&&(d=new G(this._renderedViewLine?this._renderedViewLine.domNode:null,l,c.characterMapping)),d||(d=X(this._renderedViewLine?this._renderedViewLine.domNode:null,l,c.characterMapping,c.containsRTL,c.containsForeignElements)),this._renderedViewLine=d,!0}layoutLine(e,t){this._renderedViewLine&&this._renderedViewLine.domNode&&(this._renderedViewLine.domNode.setTop(t),this._renderedViewLine.domNode.setHeight(this._options.lineHeight))}getWidth(){return this._renderedViewLine?this._renderedViewLine.getWidth():0}getWidthIsFast(){return!this._renderedViewLine||this._renderedViewLine.getWidthIsFast()}needsMonospaceFontCheck(){return!!this._renderedViewLine&&this._renderedViewLine instanceof G}monospaceAssumptionsAreValid(){return this._renderedViewLine&&this._renderedViewLine instanceof G?this._renderedViewLine.monospaceAssumptionsAreValid():z}onMonospaceAssumptionsInvalidated(){this._renderedViewLine&&this._renderedViewLine instanceof G&&(this._renderedViewLine=this._renderedViewLine.toSlowRenderedLine())}getVisibleRangesForRange(e,t,n){if(!this._renderedViewLine)return null;e|=0,t|=0,e=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,e)),t=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,t));const i=0|this._renderedViewLine.input.stopRenderingLineAfter;let r=!1;-1!==i&&e>i+1&&t>i+1&&(r=!0),-1!==i&&e>i+1&&(e=i+1),-1!==i&&t>i+1&&(t=i+1);const o=this._renderedViewLine.getVisibleRangesForRange(e,t,n);return o&&o.length>0?new P(r,o):null}getColumnOfNodeOffset(e,t,n){return this._renderedViewLine?this._renderedViewLine.getColumnOfNodeOffset(e,t,n):1}}K.CLASS_NAME="view-line";class G{constructor(e,t,n){this.domNode=e,this.input=t,this._characterMapping=n,this._charWidth=t.spaceWidth}getWidth(){return this._getCharPosition(this._characterMapping.length)}getWidthIsFast(){return!0}monospaceAssumptionsAreValid(){if(!this.domNode)return z;const e=this.getWidth(),t=this.domNode.domNode.firstChild.offsetWidth;return Math.abs(e-t)>=2&&(console.warn("monospace assumptions have been violated, therefore disabling monospace optimizations!"),z=!1),z}toSlowRenderedLine(){return X(this.domNode,this.input,this._characterMapping,!1,0)}getVisibleRangesForRange(e,t,n){const i=this._getCharPosition(e),r=this._getCharPosition(t);return[new A(i,r-i)]}_getCharPosition(e){const t=this._characterMapping.getAbsoluteOffsets();return 0===t.length?0:Math.round(this._charWidth*t[e-1])}getColumnOfNodeOffset(e,t,n){const i=t.textContent.length;let r=-1;for(;t;)t=t.previousSibling,r++;return this._characterMapping.partDataToCharOffset(r,i,n)+1}}class Z{constructor(e,t,n,i,r){if(this.domNode=e,this.input=t,this._characterMapping=n,this._isWhitespaceOnly=/^\s*$/.test(t.lineContent),this._containsForeignElements=r,this._cachedWidth=-1,this._pixelOffsetCache=null,!i||0===this._characterMapping.length){this._pixelOffsetCache=new Int32Array(Math.max(2,this._characterMapping.length+1));for(let e=0,t=this._characterMapping.length;e<=t;e++)this._pixelOffsetCache[e]=-1}}_getReadingTarget(e){return e.domNode.firstChild}getWidth(){return this.domNode?(-1===this._cachedWidth&&(this._cachedWidth=this._getReadingTarget(this.domNode).offsetWidth),this._cachedWidth):0}getWidthIsFast(){return-1!==this._cachedWidth}getVisibleRangesForRange(e,t,n){if(!this.domNode)return null;if(null!==this._pixelOffsetCache){const i=this._readPixelOffset(this.domNode,e,n);if(-1===i)return null;const r=this._readPixelOffset(this.domNode,t,n);return-1===r?null:[new A(i,r-i)]}return this._readVisibleRangesForRange(this.domNode,e,t,n)}_readVisibleRangesForRange(e,t,n,i){if(t===n){const n=this._readPixelOffset(e,t,i);return-1===n?null:[new A(n,0)]}return this._readRawVisibleRangesForRange(e,t,n,i)}_readPixelOffset(e,t,n){if(0===this._characterMapping.length){if(0===this._containsForeignElements)return 0;if(2===this._containsForeignElements)return 0;if(1===this._containsForeignElements)return this.getWidth();const t=this._getReadingTarget(e);return t.firstChild?t.firstChild.offsetWidth:0}if(null!==this._pixelOffsetCache){const i=this._pixelOffsetCache[t];if(-1!==i)return i;const r=this._actualReadPixelOffset(e,t,n);return this._pixelOffsetCache[t]=r,r}return this._actualReadPixelOffset(e,t,n)}_actualReadPixelOffset(e,t,n){if(0===this._characterMapping.length){const t=F.readHorizontalRanges(this._getReadingTarget(e),0,0,0,0,n.clientRectDeltaLeft,n.endNode);return t&&0!==t.length?t[0].left:-1}if(t===this._characterMapping.length&&this._isWhitespaceOnly&&0===this._containsForeignElements)return this.getWidth();const i=this._characterMapping.charOffsetToPartData(t-1),r=W.a.getPartIndex(i),o=W.a.getCharIndex(i),s=F.readHorizontalRanges(this._getReadingTarget(e),r,o,r,o,n.clientRectDeltaLeft,n.endNode);if(!s||0===s.length)return-1;const a=s[0].left;if(this.input.isBasicASCII){const e=this._characterMapping.getAbsoluteOffsets(),n=Math.round(this.input.spaceWidth*e[t-1]);if(Math.abs(n-a)<=1)return n}return a}_readRawVisibleRangesForRange(e,t,n,i){if(1===t&&n===this._characterMapping.length)return[new A(0,this.getWidth())];const r=this._characterMapping.charOffsetToPartData(t-1),o=W.a.getPartIndex(r),s=W.a.getCharIndex(r),a=this._characterMapping.charOffsetToPartData(n-1),l=W.a.getPartIndex(a),c=W.a.getCharIndex(a);return F.readHorizontalRanges(this._getReadingTarget(e),o,s,l,c,i.clientRectDeltaLeft,i.endNode)}getColumnOfNodeOffset(e,t,n){const i=t.textContent.length;let r=-1;for(;t;)t=t.previousSibling,r++;return this._characterMapping.partDataToCharOffset(r,i,n)+1}}class J extends Z{_readVisibleRangesForRange(e,t,n,i){const r=super._readVisibleRangesForRange(e,t,n,i);if(!r||0===r.length||t===n||1===t&&n===this._characterMapping.length)return r;if(!this.input.containsRTL){const t=this._readPixelOffset(e,n,i);if(-1!==t){const e=r[r.length-1];e.left<t&&(e.width=t-e.left)}}return r}}const X=b.l?Q:ee;function Q(e,t,n,i,r){return new J(e,t,n,i,r)}function ee(e,t,n,i,r){return new Z(e,t,n,i,r)}var te=n(10),ne=n(3),ie=n(23);class re{constructor(e,t){this.lastViewCursorsRenderData=e,this.lastTextareaPosition=t}}class oe{constructor(e,t,n=0,i=null,r=null,o=null){this.element=e,this.type=t,this.mouseColumn=n,this.position=i,!r&&i&&(r=new ne.a(i.lineNumber,i.column,i.lineNumber,i.column)),this.range=r,this.detail=o}static _typeToString(e){return 1===e?"TEXTAREA":2===e?"GUTTER_GLYPH_MARGIN":3===e?"GUTTER_LINE_NUMBERS":4===e?"GUTTER_LINE_DECORATIONS":5===e?"GUTTER_VIEW_ZONE":6===e?"CONTENT_TEXT":7===e?"CONTENT_EMPTY":8===e?"CONTENT_VIEW_ZONE":9===e?"CONTENT_WIDGET":10===e?"OVERVIEW_RULER":11===e?"SCROLLBAR":12===e?"OVERLAY_WIDGET":"UNKNOWN"}static toString(e){return this._typeToString(e.type)+": "+e.position+" - "+e.range+" - "+e.detail}toString(){return oe.toString(this)}}class se{static isTextArea(e){return 2===e.length&&3===e[0]&&6===e[1]}static isChildOfViewLines(e){return e.length>=4&&3===e[0]&&7===e[3]}static isStrictChildOfViewLines(e){return e.length>4&&3===e[0]&&7===e[3]}static isChildOfScrollableElement(e){return e.length>=2&&3===e[0]&&5===e[1]}static isChildOfMinimap(e){return e.length>=2&&3===e[0]&&8===e[1]}static isChildOfContentWidgets(e){return e.length>=4&&3===e[0]&&1===e[3]}static isChildOfOverflowingContentWidgets(e){return e.length>=1&&2===e[0]}static isChildOfOverlayWidgets(e){return e.length>=2&&3===e[0]&&4===e[1]}}class ae{constructor(e,t,n){this.model=e.model;const i=e.configuration.options;this.layoutInfo=i.get(117),this.viewDomNode=t.viewDomNode,this.lineHeight=i.get(51),this.typicalHalfwidthCharacterWidth=i.get(36).typicalHalfwidthCharacterWidth,this.lastRenderData=n,this._context=e,this._viewHelper=t}getZoneAtCoord(e){return ae.getZoneAtCoord(this._context,e)}static getZoneAtCoord(e,t){const n=e.viewLayout.getWhitespaceAtVerticalOffset(t);if(n){let i,r=n.verticalOffset+n.height/2,o=e.model.getLineCount(),s=null,a=null;return n.afterLineNumber!==o&&(a=new te.a(n.afterLineNumber+1,1)),n.afterLineNumber>0&&(s=new te.a(n.afterLineNumber,e.model.getLineMaxColumn(n.afterLineNumber))),i=null===a?s:null===s?a:t<r?s:a,{viewZoneId:n.id,afterLineNumber:n.afterLineNumber,positionBefore:s,positionAfter:a,position:i}}return null}getFullLineRangeAtCoord(e){if(this._context.viewLayout.isAfterLines(e)){const e=this._context.model.getLineCount(),t=this._context.model.getLineMaxColumn(e);return{range:new ne.a(e,t,e,t),isAfterLines:!0}}const t=this._context.viewLayout.getLineNumberAtVerticalOffset(e),n=this._context.model.getLineMaxColumn(t);return{range:new ne.a(t,1,t,n),isAfterLines:!1}}getLineNumberAtVerticalOffset(e){return this._context.viewLayout.getLineNumberAtVerticalOffset(e)}isAfterLines(e){return this._context.viewLayout.isAfterLines(e)}getVerticalOffsetForLineNumber(e){return this._context.viewLayout.getVerticalOffsetForLineNumber(e)}findAttribute(e,t){return ae._findAttribute(e,t,this._viewHelper.viewDomNode)}static _findAttribute(e,t,n){for(;e&&e!==document.body;){if(e.hasAttribute&&e.hasAttribute(t))return e.getAttribute(t);if(e===n)return null;e=e.parentNode}return null}getLineWidth(e){return this._viewHelper.getLineWidth(e)}visibleRangeForPosition(e,t){return this._viewHelper.visibleRangeForPosition(e,t)}getPositionFromDOMInfo(e,t){return this._viewHelper.getPositionFromDOMInfo(e,t)}getCurrentScrollTop(){return this._context.viewLayout.getCurrentScrollTop()}getCurrentScrollLeft(){return this._context.viewLayout.getCurrentScrollLeft()}}class le{constructor(e,t,n){this.editorPos=t,this.pos=n,this.mouseVerticalOffset=Math.max(0,e.getCurrentScrollTop()+n.y-t.y),this.mouseContentHorizontalOffset=e.getCurrentScrollLeft()+n.x-t.x-e.layoutInfo.contentLeft,this.isInMarginArea=n.x-t.x<e.layoutInfo.contentLeft&&n.x-t.x>=e.layoutInfo.glyphMarginLeft,this.isInContentArea=!this.isInMarginArea,this.mouseColumn=Math.max(0,he._getMouseColumn(this.mouseContentHorizontalOffset,e.typicalHalfwidthCharacterWidth))}}class ce extends le{constructor(e,t,n,i){super(e,t,n),this._ctx=e,i?(this.target=i,this.targetPath=T.collect(i,e.viewDomNode)):(this.target=null,this.targetPath=new Uint8Array(0))}toString(){return`pos(${this.pos.x},${this.pos.y}), editorPos(${this.editorPos.x},${this.editorPos.y}), mouseVerticalOffset: ${this.mouseVerticalOffset}, mouseContentHorizontalOffset: ${this.mouseContentHorizontalOffset}\n\ttarget: ${this.target?this.target.outerHTML:null}`}fulfill(e,t=null,n=null,i=null){let r=this.mouseColumn;return t&&t.column<this._ctx.model.getLineMaxColumn(t.lineNumber)&&(r=ie.a.visibleColumnFromColumn(this._ctx.model.getLineContent(t.lineNumber),t.column,this._ctx.model.getTextModelOptions().tabSize)+1),new oe(this.target,e,r,t,n,i)}withTarget(e){return new ce(this._ctx,this.editorPos,this.pos,e)}}const de={isAfterLines:!0};function ue(e){return{isAfterLines:!1,horizontalDistanceToText:e}}class he{constructor(e,t){this._context=e,this._viewHelper=t}mouseTargetIsWidget(e){const t=e.target,n=T.collect(t,this._viewHelper.viewDomNode);return!(!se.isChildOfContentWidgets(n)&&!se.isChildOfOverflowingContentWidgets(n))||!!se.isChildOfOverlayWidgets(n)}createMouseTarget(e,t,n,i){const r=new ae(this._context,this._viewHelper,e),o=new ce(r,t,n,i);try{return he._createMouseTarget(r,o,!1)}catch(e){return o.fulfill(0)}}static _createMouseTarget(e,t,n){if(null===t.target){if(n)return t.fulfill(0);const i=he._doHitTest(e,t);return i.position?he.createMouseTargetFromHitTestPosition(e,t,i.position.lineNumber,i.position.column):this._createMouseTarget(e,t.withTarget(i.hitTarget),!0)}const i=t;let r=null;return(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=r||he._hitTestContentWidget(e,i))||he._hitTestOverlayWidget(e,i))||he._hitTestMinimap(e,i))||he._hitTestScrollbarSlider(e,i))||he._hitTestViewZone(e,i))||he._hitTestMargin(e,i))||he._hitTestViewCursor(e,i))||he._hitTestTextArea(e,i))||he._hitTestViewLines(e,i,n))||he._hitTestScrollbar(e,i))||t.fulfill(0)}static _hitTestContentWidget(e,t){if(se.isChildOfContentWidgets(t.targetPath)||se.isChildOfOverflowingContentWidgets(t.targetPath)){const n=e.findAttribute(t.target,"widgetId");return n?t.fulfill(9,null,null,n):t.fulfill(0)}return null}static _hitTestOverlayWidget(e,t){if(se.isChildOfOverlayWidgets(t.targetPath)){const n=e.findAttribute(t.target,"widgetId");return n?t.fulfill(12,null,null,n):t.fulfill(0)}return null}static _hitTestViewCursor(e,t){if(t.target){const n=e.lastRenderData.lastViewCursorsRenderData;for(const e of n)if(t.target===e.domNode)return t.fulfill(6,e.position)}if(t.isInContentArea){const n=e.lastRenderData.lastViewCursorsRenderData,i=t.mouseContentHorizontalOffset,r=t.mouseVerticalOffset;for(const o of n){if(i<o.contentLeft)continue;if(i>o.contentLeft+o.width)continue;const n=e.getVerticalOffsetForLineNumber(o.position.lineNumber);if(n<=r&&r<=n+o.height)return t.fulfill(6,o.position)}}return null}static _hitTestViewZone(e,t){const n=e.getZoneAtCoord(t.mouseVerticalOffset);if(n){const e=t.isInContentArea?8:5;return t.fulfill(e,n.position,null,n)}return null}static _hitTestTextArea(e,t){return se.isTextArea(t.targetPath)?e.lastRenderData.lastTextareaPosition?t.fulfill(6,e.lastRenderData.lastTextareaPosition):t.fulfill(1,e.lastRenderData.lastTextareaPosition):null}static _hitTestMargin(e,t){if(t.isInMarginArea){const n=e.getFullLineRangeAtCoord(t.mouseVerticalOffset),i=n.range.getStartPosition();let r=Math.abs(t.pos.x-t.editorPos.x);const o={isAfterLines:n.isAfterLines,glyphMarginLeft:e.layoutInfo.glyphMarginLeft,glyphMarginWidth:e.layoutInfo.glyphMarginWidth,lineNumbersWidth:e.layoutInfo.lineNumbersWidth,offsetX:r};return(r-=e.layoutInfo.glyphMarginLeft)<=e.layoutInfo.glyphMarginWidth?t.fulfill(2,i,n.range,o):(r-=e.layoutInfo.glyphMarginWidth)<=e.layoutInfo.lineNumbersWidth?t.fulfill(3,i,n.range,o):(r-=e.layoutInfo.lineNumbersWidth,t.fulfill(4,i,n.range,o))}return null}static _hitTestViewLines(e,t,n){if(!se.isChildOfViewLines(t.targetPath))return null;if(e.isAfterLines(t.mouseVerticalOffset)){const n=e.model.getLineCount(),i=e.model.getLineMaxColumn(n);return t.fulfill(7,new te.a(n,i),void 0,de)}if(n){if(se.isStrictChildOfViewLines(t.targetPath)){const n=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset);if(0===e.model.getLineLength(n)){const i=e.getLineWidth(n),r=ue(t.mouseContentHorizontalOffset-i);return t.fulfill(7,new te.a(n,1),void 0,r)}const i=e.getLineWidth(n);if(t.mouseContentHorizontalOffset>=i){const r=ue(t.mouseContentHorizontalOffset-i),o=new te.a(n,e.model.getLineMaxColumn(n));return t.fulfill(7,o,void 0,r)}}return t.fulfill(0)}const i=he._doHitTest(e,t);return i.position?he.createMouseTargetFromHitTestPosition(e,t,i.position.lineNumber,i.position.column):this._createMouseTarget(e,t.withTarget(i.hitTarget),!0)}static _hitTestMinimap(e,t){if(se.isChildOfMinimap(t.targetPath)){const n=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),i=e.model.getLineMaxColumn(n);return t.fulfill(11,new te.a(n,i))}return null}static _hitTestScrollbarSlider(e,t){if(se.isChildOfScrollableElement(t.targetPath)&&t.target&&1===t.target.nodeType){const n=t.target.className;if(n&&/\b(slider|scrollbar)\b/.test(n)){const n=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),i=e.model.getLineMaxColumn(n);return t.fulfill(11,new te.a(n,i))}}return null}static _hitTestScrollbar(e,t){if(se.isChildOfScrollableElement(t.targetPath)){const n=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),i=e.model.getLineMaxColumn(n);return t.fulfill(11,new te.a(n,i))}return null}getMouseColumn(e,t){const n=this._context.configuration.options,i=n.get(117),r=this._context.viewLayout.getCurrentScrollLeft()+t.x-e.x-i.contentLeft;return he._getMouseColumn(r,n.get(36).typicalHalfwidthCharacterWidth)}static _getMouseColumn(e,t){if(e<0)return 1;return Math.round(e/t)+1}static createMouseTargetFromHitTestPosition(e,t,n,i){const r=new te.a(n,i),o=e.getLineWidth(n);if(t.mouseContentHorizontalOffset>o){if(b.f&&1===r.column){const i=ue(t.mouseContentHorizontalOffset-o);return t.fulfill(7,new te.a(n,e.model.getLineMaxColumn(n)),void 0,i)}const i=ue(t.mouseContentHorizontalOffset-o);return t.fulfill(7,r,void 0,i)}const s=e.visibleRangeForPosition(n,i);if(!s)return t.fulfill(0,r);const a=s.left;if(t.mouseContentHorizontalOffset===a)return t.fulfill(6,r);const l=[];if(l.push({offset:s.left,column:i}),i>1){const t=e.visibleRangeForPosition(n,i-1);t&&l.push({offset:t.left,column:i-1})}if(i<e.model.getLineMaxColumn(n)){const t=e.visibleRangeForPosition(n,i+1);t&&l.push({offset:t.left,column:i+1})}l.sort((e,t)=>e.offset-t.offset);for(let e=1;e<l.length;e++){const i=l[e-1],o=l[e];if(i.offset<=t.mouseContentHorizontalOffset&&t.mouseContentHorizontalOffset<=o.offset){const e=new ne.a(n,i.column,n,o.column);return t.fulfill(6,r,e)}}return t.fulfill(6,r)}static _doHitTestWithCaretRangeFromPoint(e,t){const n=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),i=e.getVerticalOffsetForLineNumber(n)+Math.floor(e.lineHeight/2);let r=t.pos.y+(i-t.mouseVerticalOffset);r<=t.editorPos.y&&(r=t.editorPos.y+1),r>=t.editorPos.y+e.layoutInfo.height&&(r=t.editorPos.y+e.layoutInfo.height-1);const o=new y(t.pos.x,r),s=this._actualDoHitTestWithCaretRangeFromPoint(e,o.toClientCoordinates());return s.position?s:this._actualDoHitTestWithCaretRangeFromPoint(e,t.pos.toClientCoordinates())}static _actualDoHitTestWithCaretRangeFromPoint(e,t){const n=r.E(e.viewDomNode);let i;if(!(i=n?void 0===n.caretRangeFromPoint?function(e,t,n){const i=document.createRange();let r=e.elementFromPoint(t,n);if(null!==r){for(;r&&r.firstChild&&r.firstChild.nodeType!==r.firstChild.TEXT_NODE;)r=r.lastChild;const e=r.getBoundingClientRect(),n=window.getComputedStyle(r,null).getPropertyValue("font"),o=r.innerText;let s,a=e.left,l=0;if(t>e.left+e.width)l=o.length;else{const e=fe.getInstance();for(let i=0;i<o.length+1;i++){if(s=e.getCharWidth(o.charAt(i),n)/2,t<(a+=s)){l=i;break}a+=s}}i.setStart(r.firstChild,l),i.setEnd(r.firstChild,l)}return i}(n,t.clientX,t.clientY):n.caretRangeFromPoint(t.clientX,t.clientY):document.caretRangeFromPoint(t.clientX,t.clientY))||!i.startContainer)return{position:null,hitTarget:null};const o=i.startContainer;let s=null;if(o.nodeType===o.TEXT_NODE){const t=o.parentNode,n=t?t.parentNode:null,r=n?n.parentNode:null;if((r&&r.nodeType===r.ELEMENT_NODE?r.className:null)===K.CLASS_NAME){return{position:e.getPositionFromDOMInfo(t,i.startOffset),hitTarget:null}}s=o.parentNode}else if(o.nodeType===o.ELEMENT_NODE){const t=o.parentNode,n=t?t.parentNode:null;if((n&&n.nodeType===n.ELEMENT_NODE?n.className:null)===K.CLASS_NAME){return{position:e.getPositionFromDOMInfo(o,o.textContent.length),hitTarget:null}}s=o}return{position:null,hitTarget:s}}static _doHitTestWithCaretPositionFromPoint(e,t){const n=document.caretPositionFromPoint(t.clientX,t.clientY);if(n.offsetNode.nodeType===n.offsetNode.TEXT_NODE){const t=n.offsetNode.parentNode,i=t?t.parentNode:null,r=i?i.parentNode:null;if((r&&r.nodeType===r.ELEMENT_NODE?r.className:null)===K.CLASS_NAME){return{position:e.getPositionFromDOMInfo(n.offsetNode.parentNode,n.offset),hitTarget:null}}return{position:null,hitTarget:n.offsetNode.parentNode}}if(n.offsetNode.nodeType===n.offsetNode.ELEMENT_NODE){const t=n.offsetNode.parentNode;if((t&&t.nodeType===t.ELEMENT_NODE?t.className:null)===K.CLASS_NAME){const t=n.offsetNode.childNodes[Math.min(n.offset,n.offsetNode.childNodes.length-1)];if(t){return{position:e.getPositionFromDOMInfo(t,0),hitTarget:null}}}}return{position:null,hitTarget:n.offsetNode}}static _doHitTestWithMoveToPoint(e,t){let n=null,i=null;const r=document.body.createTextRange();try{r.moveToPoint(t.clientX,t.clientY)}catch(e){return{position:null,hitTarget:null}}r.collapse(!0);const o=r?r.parentElement():null,s=o?o.parentNode:null,a=s?s.parentNode:null;if((a&&a.nodeType===a.ELEMENT_NODE?a.className:"")===K.CLASS_NAME){const t=r.duplicate();t.moveToElementText(o),t.setEndPoint("EndToStart",r),n=e.getPositionFromDOMInfo(o,t.text.length),t.moveToElementText(e.viewDomNode)}else i=o;return r.moveToElementText(e.viewDomNode),{position:n,hitTarget:i}}static _doHitTest(e,t){return"function"==typeof document.caretRangeFromPoint?this._doHitTestWithCaretRangeFromPoint(e,t):document.caretPositionFromPoint?this._doHitTestWithCaretPositionFromPoint(e,t.pos.toClientCoordinates()):document.body.createTextRange?this._doHitTestWithMoveToPoint(e,t.pos.toClientCoordinates()):{position:null,hitTarget:null}}}class fe{constructor(){this._cache={},this._canvas=document.createElement("canvas")}static getInstance(){return fe._INSTANCE||(fe._INSTANCE=new fe),fe._INSTANCE}getCharWidth(e,t){const n=e+t;if(this._cache[n])return this._cache[n];const i=this._canvas.getContext("2d");i.font=t;const r=i.measureText(e).width;return this._cache[n]=r,r}}fe._INSTANCE=null;var ge=n(128);function pe(e){return function(t,n){let i=!1;return e&&(i=e.mouseTargetIsWidget(n)),i||n.preventDefault(),n}}class me extends D{constructor(e,t,n){super(),this._context=e,this.viewController=t,this.viewHelper=n,this.mouseTargetFactory=new he(this._context,n),this._mouseDownOperation=this._register(new _e(this._context,this.viewController,this.viewHelper,(e,t)=>this._createMouseTarget(e,t),e=>this._getMouseColumn(e))),this.lastMouseLeaveTime=-1;const i=new x(this.viewHelper.viewDomNode);this._register(i.onContextMenu(this.viewHelper.viewDomNode,e=>this._onContextMenu(e,!0))),this._register(i.onMouseMoveThrottled(this.viewHelper.viewDomNode,e=>this._onMouseMove(e),pe(this.mouseTargetFactory),me.MOUSE_MOVE_MINIMUM_TIME)),this._register(i.onMouseUp(this.viewHelper.viewDomNode,e=>this._onMouseUp(e))),this._register(i.onMouseLeave(this.viewHelper.viewDomNode,e=>this._onMouseLeave(e))),this._register(i.onMouseDown(this.viewHelper.viewDomNode,e=>this._onMouseDown(e)));this._register(r.i(this.viewHelper.viewDomNode,r.c.MOUSE_WHEEL,e=>{if(this.viewController.emitMouseWheel(e),!this._context.configuration.options.get(59))return;const t=new m.b(e);if(t.browserEvent.ctrlKey||t.browserEvent.metaKey){const e=ge.a.getZoomLevel(),n=t.deltaY>0?1:-1;ge.a.setZoomLevel(e+n),t.preventDefault(),t.stopPropagation()}},{capture:!0,passive:!1})),this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}onCursorStateChanged(e){return this._mouseDownOperation.onCursorStateChanged(e),!1}onFocusChanged(e){return!1}onScrollChanged(e){return this._mouseDownOperation.onScrollChanged(),!1}getTargetAtClientPoint(e,t){const n=new w(e,t).toPageCoordinates(),i=S(this.viewHelper.viewDomNode);return n.y<i.y||n.y>i.y+i.height||n.x<i.x||n.x>i.x+i.width?null:this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),i,n,null)}_createMouseTarget(e,t){return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),e.editorPos,e.pos,t?e.target:null)}_getMouseColumn(e){return this.mouseTargetFactory.getMouseColumn(e.editorPos,e.pos)}_onContextMenu(e,t){this.viewController.emitContextMenu({event:e,target:this._createMouseTarget(e,t)})}_onMouseMove(e){if(this._mouseDownOperation.isActive())return;e.timestamp<this.lastMouseLeaveTime||this.viewController.emitMouseMove({event:e,target:this._createMouseTarget(e,!0)})}_onMouseLeave(e){this.lastMouseLeaveTime=(new Date).getTime(),this.viewController.emitMouseLeave({event:e,target:null})}_onMouseUp(e){this.viewController.emitMouseUp({event:e,target:this._createMouseTarget(e,!0)})}_onMouseDown(e){const t=this._createMouseTarget(e,!0),n=6===t.type||7===t.type,i=2===t.type||3===t.type||4===t.type,r=3===t.type,o=this._context.configuration.options.get(90),s=8===t.type||5===t.type,a=9===t.type;let l=e.leftButton||e.middleButton;g.f&&e.leftButton&&e.ctrlKey&&(l=!1);const c=()=>{e.preventDefault(),this.viewHelper.focusTextArea()};if(l&&(n||r&&o))c(),this._mouseDownOperation.start(t.type,e);else if(i)e.preventDefault();else if(s){const n=t.detail;this.viewHelper.shouldSuppressMouseDownOnViewZone(n.viewZoneId)&&(c(),this._mouseDownOperation.start(t.type,e),e.preventDefault())}else a&&this.viewHelper.shouldSuppressMouseDownOnWidget(t.detail)&&(c(),e.preventDefault());this.viewController.emitMouseDown({event:e,target:t})}}me.MOUSE_MOVE_MINIMUM_TIME=100;class _e extends a.a{constructor(e,t,n,i,r){super(),this._context=e,this._viewController=t,this._viewHelper=n,this._createMouseTarget=i,this._getMouseColumn=r,this._mouseMoveMonitor=this._register(new M(this._viewHelper.viewDomNode)),this._onScrollTimeout=this._register(new _.e),this._mouseState=new be,this._currentSelection=new h.a(1,1,1,1),this._isActive=!1,this._lastMouseEvent=null}dispose(){super.dispose()}isActive(){return this._isActive}_onMouseDownThenMove(e){this._lastMouseEvent=e,this._mouseState.setModifiers(e);const t=this._findMousePosition(e,!0);t&&(this._mouseState.isDragAndDrop?this._viewController.emitMouseDrag({event:e,target:t}):this._dispatchMouse(t,!0))}start(e,t){this._lastMouseEvent=t,this._mouseState.setStartedOnLineNumbers(3===e),this._mouseState.setStartButtons(t),this._mouseState.setModifiers(t);const n=this._findMousePosition(t,!0);if(!n||!n.position)return;this._mouseState.trySetCount(t.detail,n.position),t.detail=this._mouseState.count;const i=this._context.configuration.options;if(!i.get(72)&&i.get(25)&&!i.get(13)&&!this._mouseState.altKey&&t.detail<2&&!this._isActive&&!this._currentSelection.isEmpty()&&6===n.type&&n.position&&this._currentSelection.containsPosition(n.position))return this._mouseState.isDragAndDrop=!0,this._isActive=!0,void this._mouseMoveMonitor.startMonitoring(t.target,t.buttons,pe(null),e=>this._onMouseDownThenMove(e),()=>{const e=this._findMousePosition(this._lastMouseEvent,!0);this._viewController.emitMouseDrop({event:this._lastMouseEvent,target:e?this._createMouseTarget(this._lastMouseEvent,!0):null}),this._stop()});this._mouseState.isDragAndDrop=!1,this._dispatchMouse(n,t.shiftKey),this._isActive||(this._isActive=!0,this._mouseMoveMonitor.startMonitoring(t.target,t.buttons,pe(null),e=>this._onMouseDownThenMove(e),()=>this._stop()))}_stop(){this._isActive=!1,this._onScrollTimeout.cancel()}onScrollChanged(){this._isActive&&this._onScrollTimeout.setIfNotSet(()=>{if(!this._lastMouseEvent)return;const e=this._findMousePosition(this._lastMouseEvent,!1);e&&(this._mouseState.isDragAndDrop||this._dispatchMouse(e,!0))},10)}onCursorStateChanged(e){this._currentSelection=e.selections[0]}_getPositionOutsideEditor(e){const t=e.editorPos,n=this._context.model,i=this._context.viewLayout,r=this._getMouseColumn(e);if(e.posy<t.y){const n=Math.max(i.getCurrentScrollTop()-(t.y-e.posy),0),o=ae.getZoneAtCoord(this._context,n);if(o){const e=this._helpPositionJumpOverViewZone(o);if(e)return new oe(null,13,r,e)}const s=i.getLineNumberAtVerticalOffset(n);return new oe(null,13,r,new te.a(s,1))}if(e.posy>t.y+t.height){const o=i.getCurrentScrollTop()+(e.posy-t.y),s=ae.getZoneAtCoord(this._context,o);if(s){const e=this._helpPositionJumpOverViewZone(s);if(e)return new oe(null,13,r,e)}const a=i.getLineNumberAtVerticalOffset(o);return new oe(null,13,r,new te.a(a,n.getLineMaxColumn(a)))}const o=i.getLineNumberAtVerticalOffset(i.getCurrentScrollTop()+(e.posy-t.y));return e.posx<t.x?new oe(null,13,r,new te.a(o,1)):e.posx>t.x+t.width?new oe(null,13,r,new te.a(o,n.getLineMaxColumn(o))):null}_findMousePosition(e,t){const n=this._getPositionOutsideEditor(e);if(n)return n;const i=this._createMouseTarget(e,t);if(!i.position)return null;if(8===i.type||5===i.type){const e=this._helpPositionJumpOverViewZone(i.detail);if(e)return new oe(i.element,i.type,i.mouseColumn,e,null,i.detail)}return i}_helpPositionJumpOverViewZone(e){const t=new te.a(this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),n=e.positionBefore,i=e.positionAfter;return n&&i?n.isBefore(t)?n:i:null}_dispatchMouse(e,t){e.position&&this._viewController.dispatchMouse({position:e.position,mouseColumn:e.mouseColumn,startedOnLineNumbers:this._mouseState.startedOnLineNumbers,inSelectionMode:t,mouseDownCount:this._mouseState.count,altKey:this._mouseState.altKey,ctrlKey:this._mouseState.ctrlKey,metaKey:this._mouseState.metaKey,shiftKey:this._mouseState.shiftKey,leftButton:this._mouseState.leftButton,middleButton:this._mouseState.middleButton})}}class be{constructor(){this._altKey=!1,this._ctrlKey=!1,this._metaKey=!1,this._shiftKey=!1,this._leftButton=!1,this._middleButton=!1,this._startedOnLineNumbers=!1,this._lastMouseDownPosition=null,this._lastMouseDownPositionEqualCount=0,this._lastMouseDownCount=0,this._lastSetMouseDownCountTime=0,this.isDragAndDrop=!1}get altKey(){return this._altKey}get ctrlKey(){return this._ctrlKey}get metaKey(){return this._metaKey}get shiftKey(){return this._shiftKey}get leftButton(){return this._leftButton}get middleButton(){return this._middleButton}get startedOnLineNumbers(){return this._startedOnLineNumbers}get count(){return this._lastMouseDownCount}setModifiers(e){this._altKey=e.altKey,this._ctrlKey=e.ctrlKey,this._metaKey=e.metaKey,this._shiftKey=e.shiftKey}setStartButtons(e){this._leftButton=e.leftButton,this._middleButton=e.middleButton}setStartedOnLineNumbers(e){this._startedOnLineNumbers=e}trySetCount(e,t){const n=(new Date).getTime();n-this._lastSetMouseDownCountTime>be.CLEAR_MOUSE_DOWN_COUNT_TIME&&(e=1),this._lastSetMouseDownCountTime=n,e>this._lastMouseDownCount+1&&(e=this._lastMouseDownCount+1),this._lastMouseDownPosition&&this._lastMouseDownPosition.equals(t)?this._lastMouseDownPositionEqualCount++:this._lastMouseDownPositionEqualCount=1,this._lastMouseDownPosition=t,this._lastMouseDownCount=Math.min(e,this._lastMouseDownPositionEqualCount)}}be.CLEAR_MOUSE_DOWN_COUNT_TIME=400;var ve=n(136);function ye(e,t){const n={translationY:t.translationY,translationX:t.translationX};return e&&(n.translationY+=e.translationY,n.translationX+=e.translationX),n}class we extends me{constructor(e,t,n){super(e,t,n),this.viewHelper.linesContentDomNode.style.touchAction="none",this._installGestureHandlerTimeout=window.setTimeout(()=>{if(this._installGestureHandlerTimeout=-1,window.MSGesture){const e=new MSGesture,t=new MSGesture;e.target=this.viewHelper.linesContentDomNode,t.target=this.viewHelper.linesContentDomNode,this.viewHelper.linesContentDomNode.addEventListener("pointerdown",n=>{const i=n.pointerType;"mouse"!==i?"touch"===i?(this._lastPointerType="touch",e.addPointer(n.pointerId)):(this._lastPointerType="pen",t.addPointer(n.pointerId)):this._lastPointerType="mouse"}),this._register(r.l(this.viewHelper.linesContentDomNode,"MSGestureChange",e=>this._onGestureChange(e),ye)),this._register(r.i(this.viewHelper.linesContentDomNode,"MSGestureTap",e=>this._onCaptureGestureTap(e),!0))}},100),this._lastPointerType="mouse"}_onMouseDown(e){"mouse"===this._lastPointerType&&super._onMouseDown(e)}_onCaptureGestureTap(e){const t=new k(e,this.viewHelper.viewDomNode),n=this._createMouseTarget(t,!1);n.position&&this.viewController.moveTo(n.position),t.browserEvent.fromElement?(t.preventDefault(),this.viewHelper.focusTextArea()):setTimeout(()=>{this.viewHelper.focusTextArea()})}_onGestureChange(e){this._context.model.deltaScrollNow(-e.translationX,-e.translationY)}dispose(){window.clearTimeout(this._installGestureHandlerTimeout),super.dispose()}}class Ce extends me{constructor(e,t,n){super(e,t,n),this._register(p.b.addTarget(this.viewHelper.linesContentDomNode)),this._register(r.i(this.viewHelper.linesContentDomNode,p.a.Tap,e=>this.onTap(e))),this._register(r.i(this.viewHelper.linesContentDomNode,p.a.Change,e=>this.onChange(e))),this._register(r.i(this.viewHelper.linesContentDomNode,p.a.Contextmenu,e=>this._onContextMenu(new k(e,this.viewHelper.viewDomNode),!1))),this._lastPointerType="mouse",this._register(r.i(this.viewHelper.linesContentDomNode,"pointerdown",e=>{const t=e.pointerType;this._lastPointerType="mouse"!==t?"touch"===t?"touch":"pen":"mouse"}));const i=new L(this.viewHelper.viewDomNode);this._register(i.onPointerMoveThrottled(this.viewHelper.viewDomNode,e=>this._onMouseMove(e),pe(this.mouseTargetFactory),me.MOUSE_MOVE_MINIMUM_TIME)),this._register(i.onPointerUp(this.viewHelper.viewDomNode,e=>this._onMouseUp(e))),this._register(i.onPointerLeave(this.viewHelper.viewDomNode,e=>this._onMouseLeave(e))),this._register(i.onPointerDown(this.viewHelper.viewDomNode,e=>this._onMouseDown(e)))}onTap(e){if(!e.initialTarget||!this.viewHelper.linesContentDomNode.contains(e.initialTarget))return;e.preventDefault(),this.viewHelper.focusTextArea();const t=this._createMouseTarget(new k(e,this.viewHelper.viewDomNode),!1);t.position&&this.viewController.dispatchMouse({position:t.position,mouseColumn:t.position.column,startedOnLineNumbers:!1,mouseDownCount:e.tapCount,inSelectionMode:!1,altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,leftButton:!1,middleButton:!1})}onChange(e){"touch"===this._lastPointerType&&this._context.model.deltaScrollNow(-e.translationX,-e.translationY)}_onMouseDown(e){e.target&&this.viewHelper.linesContentDomNode.contains(e.target)&&"touch"===this._lastPointerType||super._onMouseDown(e)}}class Se extends me{constructor(e,t,n){super(e,t,n),this._register(p.b.addTarget(this.viewHelper.linesContentDomNode)),this._register(r.i(this.viewHelper.linesContentDomNode,p.a.Tap,e=>this.onTap(e))),this._register(r.i(this.viewHelper.linesContentDomNode,p.a.Change,e=>this.onChange(e))),this._register(r.i(this.viewHelper.linesContentDomNode,p.a.Contextmenu,e=>this._onContextMenu(new k(e,this.viewHelper.viewDomNode),!1)))}onTap(e){e.preventDefault(),this.viewHelper.focusTextArea();const t=this._createMouseTarget(new k(e,this.viewHelper.viewDomNode),!1);t.position&&this.viewController.moveTo(t.position)}onChange(e){this._context.model.deltaScrollNow(-e.translationX,-e.translationY)}}class ke extends a.a{constructor(e,t,n){super(),g.c&&ve.a.pointerEvents?this.handler=this._register(new Ce(e,t,n)):window.TouchEvent?this.handler=this._register(new Se(e,t,n)):window.navigator.pointerEnabled||window.PointerEvent?this.handler=this._register(new we(e,t,n)):this.handler=this._register(new me(e,t,n))}getTargetAtClientPoint(e,t){return this.handler.getTargetAtClientPoint(e,t)}}n(590);var xe=n(8),Le=n(189),Me=n(117);n(591);class De extends D{}var Ee=n(47);class Te extends De{constructor(e){super(),this._context=e,this._readConfig(),this._lastCursorModelPosition=new te.a(1,1),this._renderResult=null,this._context.addEventHandler(this)}_readConfig(){const e=this._context.configuration.options;this._lineHeight=e.get(51);const t=e.get(52);this._renderLineNumbers=t.renderType,this._renderCustomLineNumbers=t.renderFn,this._renderFinalNewline=e.get(76);const n=e.get(117);this._lineNumbersLeft=n.lineNumbersLeft,this._lineNumbersWidth=n.lineNumbersWidth}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){return this._readConfig(),!0}onCursorStateChanged(e){const t=e.selections[0].getPosition();return this._lastCursorModelPosition=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(t),2===this._renderLineNumbers||3===this._renderLineNumbers}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_getLineRenderLineNumber(e){const t=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new te.a(e,1));if(1!==t.column)return"";const n=t.lineNumber;if(this._renderCustomLineNumbers)return this._renderCustomLineNumbers(n);if(2===this._renderLineNumbers){const e=Math.abs(this._lastCursorModelPosition.lineNumber-n);return 0===e?'<span class="relative-current-line-number">'+n+"</span>":String(e)}return 3===this._renderLineNumbers?this._lastCursorModelPosition.lineNumber===n?String(n):n%10==0?String(n):"":String(n)}prepareRender(e){if(0===this._renderLineNumbers)return void(this._renderResult=null);const t=g.d?this._lineHeight%2==0?" lh-even":" lh-odd":"",n=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,r='<div class="'+Te.CLASS_NAME+t+'" style="left:'+this._lineNumbersLeft.toString()+"px;width:"+this._lineNumbersWidth.toString()+'px;">',o=this._context.model.getLineCount(),s=[];for(let e=n;e<=i;e++){const t=e-n;if(!this._renderFinalNewline&&e===o&&0===this._context.model.getLineLength(e)){s[t]="";continue}const i=this._getLineRenderLineNumber(e);s[t]=i?r+i+"</div>":""}this._renderResult=s}render(e,t){if(!this._renderResult)return"";const n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]}}Te.CLASS_NAME="line-numbers",Object(H.g)((e,t)=>{const n=e.getColor(Ee.k);n&&t.addRule(`.monaco-editor .line-numbers { color: ${n}; }`);const i=e.getColor(Ee.b);i&&t.addRule(`.monaco-editor .current-line ~ .line-numbers { color: ${i}; }`)});class Oe extends E{constructor(e){super(e);const t=this._context.configuration.options,n=t.get(117);this._canUseLayerHinting=!t.get(23),this._contentLeft=n.contentLeft,this._glyphMarginLeft=n.glyphMarginLeft,this._glyphMarginWidth=n.glyphMarginWidth,this._domNode=Object(f.b)(document.createElement("div")),this._domNode.setClassName(Oe.OUTER_CLASS_NAME),this._domNode.setPosition("absolute"),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._glyphMarginBackgroundDomNode=Object(f.b)(document.createElement("div")),this._glyphMarginBackgroundDomNode.setClassName(Oe.CLASS_NAME),this._domNode.appendChild(this._glyphMarginBackgroundDomNode)}dispose(){super.dispose()}getDomNode(){return this._domNode}onConfigurationChanged(e){const t=this._context.configuration.options,n=t.get(117);return this._canUseLayerHinting=!t.get(23),this._contentLeft=n.contentLeft,this._glyphMarginLeft=n.glyphMarginLeft,this._glyphMarginWidth=n.glyphMarginWidth,!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollTopChanged}prepareRender(e){}render(e){this._domNode.setLayerHinting(this._canUseLayerHinting),this._domNode.setContain("strict");const t=e.scrollTop-e.bigNumbersDelta;this._domNode.setTop(-t);const n=Math.min(e.scrollHeight,1e6);this._domNode.setHeight(n),this._domNode.setWidth(this._contentLeft),this._glyphMarginBackgroundDomNode.setLeft(this._glyphMarginLeft),this._glyphMarginBackgroundDomNode.setWidth(this._glyphMarginWidth),this._glyphMarginBackgroundDomNode.setHeight(n)}}Oe.CLASS_NAME="glyph-margin",Oe.OUTER_CLASS_NAME="margin";var Ne=n(105),Ie=n(147);class Ae{constructor(e,t,n){this.top=e,this.left=t,this.width=n}setWidth(e){return new Ae(this.top,this.left,e)}}const Re=b.f||b.h;class Pe extends E{constructor(e,t,n){super(e),this._primaryCursorPosition=new te.a(1,1),this._primaryCursorVisibleRange=null,this._viewController=t,this._viewHelper=n,this._scrollLeft=0,this._scrollTop=0;const r=this._context.configuration.options,o=r.get(117);this._setAccessibilityOptions(r),this._contentLeft=o.contentLeft,this._contentWidth=o.contentWidth,this._contentHeight=o.height,this._fontInfo=r.get(36),this._lineHeight=r.get(51),this._emptySelectionClipboard=r.get(26),this._copyWithSyntaxHighlighting=r.get(16),this._visibleTextArea=null,this._selections=[new h.a(1,1,1,1)],this._modelSelections=[new h.a(1,1,1,1)],this._lastRenderPosition=null,this.textArea=Object(f.b)(document.createElement("textarea")),T.write(this.textArea,6),this.textArea.setClassName(`inputarea ${Ie.a}`),this.textArea.setAttribute("wrap","off"),this.textArea.setAttribute("autocorrect","off"),this.textArea.setAttribute("autocapitalize","off"),this.textArea.setAttribute("autocomplete","off"),this.textArea.setAttribute("spellcheck","false"),this.textArea.setAttribute("aria-label",this._getAriaLabel(r)),this.textArea.setAttribute("tabindex",String(r.get(102))),this.textArea.setAttribute("role","textbox"),this.textArea.setAttribute("aria-roledescription",i.a("editor","editor")),this.textArea.setAttribute("aria-multiline","true"),this.textArea.setAttribute("aria-haspopup","false"),this.textArea.setAttribute("aria-autocomplete","both"),g.h&&r.get(72)&&this.textArea.setAttribute("readonly","true"),this.textAreaCover=Object(f.b)(document.createElement("div")),this.textAreaCover.setPosition("absolute");const s={getLineCount:()=>this._context.model.getLineCount(),getLineMaxColumn:e=>this._context.model.getLineMaxColumn(e),getValueInRange:(e,t)=>this._context.model.getValueInRange(e,t)},a={getDataToCopy:e=>{const t=this._context.model.getPlainTextToCopy(this._modelSelections,this._emptySelectionClipboard,g.i),n=this._context.model.getEOL(),i=this._emptySelectionClipboard&&1===this._modelSelections.length&&this._modelSelections[0].isEmpty(),r=Array.isArray(t)?t:null,o=Array.isArray(t)?t.join(n):t;let s=void 0,a=null;if(e&&(Le.a.forceCopyWithSyntaxHighlighting||this._copyWithSyntaxHighlighting&&o.length<65536)){const e=this._context.model.getRichTextToCopy(this._modelSelections,this._emptySelectionClipboard);e&&(s=e.html,a=e.mode)}return{isFromEmptySelection:i,multicursorText:r,text:o,html:s,mode:a}},getScreenReaderContent:e=>{if(1===this._accessibilitySupport){if(g.f){const e=this._selections[0];if(e.isEmpty()){const t=e.getStartPosition();let n=this._getWordBeforePosition(t);if(0===n.length&&(n=this._getCharacterBeforePosition(t)),n.length>0)return new Me.b(n,n.length,n.length,t,t)}}return Me.b.EMPTY}return Me.a.fromEditorSelection(e,s,this._selections[0],this._accessibilityPageSize,0===this._accessibilitySupport)},deduceModelPosition:(e,t,n)=>this._context.model.deduceModelPositionRelativeToViewPosition(e,t,n)};this._textAreaInput=this._register(new Le.c(a,this.textArea)),this._register(this._textAreaInput.onKeyDown(e=>{this._viewController.emitKeyDown(e)})),this._register(this._textAreaInput.onKeyUp(e=>{this._viewController.emitKeyUp(e)})),this._register(this._textAreaInput.onPaste(e=>{let t=!1,n=null,i=null;e.metadata&&(t=this._emptySelectionClipboard&&!!e.metadata.isFromEmptySelection,n=void 0!==e.metadata.multicursorText?e.metadata.multicursorText:null,i=e.metadata.mode),this._viewController.paste(e.text,t,n,i)})),this._register(this._textAreaInput.onCut(()=>{this._viewController.cut()})),this._register(this._textAreaInput.onType(e=>{e.replaceCharCnt?this._viewController.replacePreviousChar(e.text,e.replaceCharCnt):this._viewController.type(e.text)})),this._register(this._textAreaInput.onSelectionChangeRequest(e=>{this._viewController.setSelection(e)})),this._register(this._textAreaInput.onCompositionStart(e=>{const t=this._selections[0].startLineNumber,n=this._selections[0].startColumn-(e.moveOneCharacterLeft?1:0);this._context.model.revealRange("keyboard",!0,new ne.a(t,n,t,n),0,1);const i=this._viewHelper.visibleRangeForPositionRelativeToEditor(t,n);i&&(this._visibleTextArea=new Ae(this._context.viewLayout.getVerticalOffsetForLineNumber(t),i.left,Re?0:1),this._render()),this.textArea.setClassName(`inputarea ${Ie.a} ime-input`),this._viewController.compositionStart()})),this._register(this._textAreaInput.onCompositionUpdate(e=>{b.f?this._visibleTextArea=this._visibleTextArea.setWidth(0):this._visibleTextArea=this._visibleTextArea.setWidth(function(e,t){const n=document.createElement("canvas").getContext("2d");n.font=(i=t,r="normal",o=i.fontWeight,s=i.fontSize,a=i.lineHeight,l=i.fontFamily,`${r} normal ${o} ${s}px / ${a}px ${l}`);var i,r,o,s,a,l;const c=n.measureText(e);return b.h?c.width+2:c.width}(e.data,this._fontInfo)),this._render()})),this._register(this._textAreaInput.onCompositionEnd(()=>{this._visibleTextArea=null,this._render(),this.textArea.setClassName(`inputarea ${Ie.a}`),this._viewController.compositionEnd()})),this._register(this._textAreaInput.onFocus(()=>{this._context.model.setHasFocus(!0)})),this._register(this._textAreaInput.onBlur(()=>{this._context.model.setHasFocus(!1)}))}dispose(){super.dispose()}_getWordBeforePosition(e){const t=this._context.model.getLineContent(e.lineNumber),n=Object(Ne.a)(this._context.configuration.options.get(105));let i=e.column,r=0;for(;i>1;){const o=t.charCodeAt(i-2);if(0!==n.get(o)||r>50)return t.substring(i-1,e.column-1);r++,i--}return t.substring(0,e.column-1)}_getCharacterBeforePosition(e){if(e.column>1){const t=this._context.model.getLineContent(e.lineNumber).charAt(e.column-2);if(!xe.F(t.charCodeAt(0)))return t}return""}_getAriaLabel(e){return 1===e.get(2)?i.a("accessibilityOffAriaLabel","The editor is not accessible at this time. Press {0} for options.",g.d?"Shift+Alt+F1":"Alt+F1"):e.get(4)}_setAccessibilityOptions(e){this._accessibilitySupport=e.get(2);const t=e.get(3);2===this._accessibilitySupport&&t===Y.g.accessibilityPageSize.defaultValue?this._accessibilityPageSize=100:this._accessibilityPageSize=t}onConfigurationChanged(e){const t=this._context.configuration.options,n=t.get(117);return this._setAccessibilityOptions(t),this._contentLeft=n.contentLeft,this._contentWidth=n.contentWidth,this._contentHeight=n.height,this._fontInfo=t.get(36),this._lineHeight=t.get(51),this._emptySelectionClipboard=t.get(26),this._copyWithSyntaxHighlighting=t.get(16),this.textArea.setAttribute("aria-label",this._getAriaLabel(t)),this.textArea.setAttribute("tabindex",String(t.get(102))),g.h&&e.hasChanged(72)&&(t.get(72)?this.textArea.setAttribute("readonly","true"):this.textArea.removeAttribute("readonly")),e.hasChanged(2)&&this._textAreaInput.writeScreenReaderContent("strategy changed"),!0}onCursorStateChanged(e){return this._selections=e.selections.slice(0),this._modelSelections=e.modelSelections.slice(0),this._textAreaInput.writeScreenReaderContent("selection changed"),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return this._scrollLeft=e.scrollLeft,this._scrollTop=e.scrollTop,!0}onZonesChanged(e){return!0}isFocused(){return this._textAreaInput.isFocused()}focusTextArea(){this._textAreaInput.focusTextArea()}getLastRenderData(){return this._lastRenderPosition}setAriaOptions(e){e.activeDescendant?(this.textArea.setAttribute("aria-haspopup","true"),this.textArea.setAttribute("aria-autocomplete","list"),this.textArea.setAttribute("aria-activedescendant",e.activeDescendant)):(this.textArea.setAttribute("aria-haspopup","false"),this.textArea.setAttribute("aria-autocomplete","both"),this.textArea.removeAttribute("aria-activedescendant")),e.role&&this.textArea.setAttribute("role",e.role)}prepareRender(e){this._primaryCursorPosition=new te.a(this._selections[0].positionLineNumber,this._selections[0].positionColumn),this._primaryCursorVisibleRange=e.visibleRangeForPosition(this._primaryCursorPosition)}render(e){this._textAreaInput.writeScreenReaderContent("render"),this._render()}_render(){if(this._visibleTextArea)return void this._renderInsideEditor(null,this._visibleTextArea.top-this._scrollTop,this._contentLeft+this._visibleTextArea.left-this._scrollLeft,this._visibleTextArea.width,this._lineHeight);if(!this._primaryCursorVisibleRange)return void this._renderAtTopLeft();const e=this._contentLeft+this._primaryCursorVisibleRange.left-this._scrollLeft;if(e<this._contentLeft||e>this._contentLeft+this._contentWidth)return void this._renderAtTopLeft();const t=this._context.viewLayout.getVerticalOffsetForLineNumber(this._selections[0].positionLineNumber)-this._scrollTop;t<0||t>this._contentHeight?this._renderAtTopLeft():g.f?this._renderInsideEditor(this._primaryCursorPosition,t,e,Re?0:1,this._lineHeight):this._renderInsideEditor(this._primaryCursorPosition,t,e,Re?0:1,Re?0:1)}_renderInsideEditor(e,t,n,i,r){this._lastRenderPosition=e;const o=this.textArea,s=this.textAreaCover;c.a.applyFontInfo(o,this._fontInfo),o.setTop(t),o.setLeft(n),o.setWidth(i),o.setHeight(r),s.setTop(0),s.setLeft(0),s.setWidth(0),s.setHeight(0)}_renderAtTopLeft(){this._lastRenderPosition=null;const e=this.textArea,t=this.textAreaCover;if(c.a.applyFontInfo(e,this._fontInfo),e.setTop(0),e.setLeft(0),t.setTop(0),t.setLeft(0),Re)return e.setWidth(0),e.setHeight(0),t.setWidth(0),void t.setHeight(0);e.setWidth(1),e.setHeight(1),t.setWidth(1),t.setHeight(1);const n=this._context.configuration.options;n.get(42)?t.setClassName("monaco-editor-background textAreaCover "+Oe.OUTER_CLASS_NAME):0!==n.get(52).renderType?t.setClassName("monaco-editor-background textAreaCover "+Te.CLASS_NAME):t.setClassName("monaco-editor-background textAreaCover")}}var je=n(85);class Fe{constructor(e,t,n,i){this.configuration=e,this.viewModel=t,this.userInputEvents=n,this.commandDelegate=i}paste(e,t,n,i){this.commandDelegate.paste(e,t,n,i)}type(e){this.commandDelegate.type(e)}replacePreviousChar(e,t){this.commandDelegate.replacePreviousChar(e,t)}compositionStart(){this.commandDelegate.startComposition()}compositionEnd(){this.commandDelegate.endComposition()}cut(){this.commandDelegate.cut()}setSelection(e){je.CoreNavigationCommands.SetSelection.runCoreEditorCommand(this.viewModel,{source:"keyboard",selection:e})}_validateViewColumn(e){const t=this.viewModel.getLineMinColumn(e.lineNumber);return e.column<t?new te.a(e.lineNumber,t):e}_hasMulticursorModifier(e){switch(this.configuration.options.get(61)){case"altKey":return e.altKey;case"ctrlKey":return e.ctrlKey;case"metaKey":return e.metaKey;default:return!1}}_hasNonMulticursorModifier(e){switch(this.configuration.options.get(61)){case"altKey":return e.ctrlKey||e.metaKey;case"ctrlKey":return e.altKey||e.metaKey;case"metaKey":return e.ctrlKey||e.altKey;default:return!1}}dispatchMouse(e){const t=this.configuration.options,n=g.d&&t.get(88),i=t.get(13);e.middleButton&&!n?this._columnSelect(e.position,e.mouseColumn,e.inSelectionMode):e.startedOnLineNumbers?this._hasMulticursorModifier(e)?e.inSelectionMode?this._lastCursorLineSelect(e.position):this._createCursor(e.position,!0):e.inSelectionMode?this._lineSelectDrag(e.position):this._lineSelect(e.position):e.mouseDownCount>=4?this._selectAll():3===e.mouseDownCount?this._hasMulticursorModifier(e)?e.inSelectionMode?this._lastCursorLineSelectDrag(e.position):this._lastCursorLineSelect(e.position):e.inSelectionMode?this._lineSelectDrag(e.position):this._lineSelect(e.position):2===e.mouseDownCount?this._hasMulticursorModifier(e)?this._lastCursorWordSelect(e.position):e.inSelectionMode?this._wordSelectDrag(e.position):this._wordSelect(e.position):this._hasMulticursorModifier(e)?this._hasNonMulticursorModifier(e)||(e.shiftKey?this._columnSelect(e.position,e.mouseColumn,!0):e.inSelectionMode?this._lastCursorMoveToSelect(e.position):this._createCursor(e.position,!1)):e.inSelectionMode?e.altKey?this._columnSelect(e.position,e.mouseColumn,!0):i?this._columnSelect(e.position,e.mouseColumn,!0):this._moveToSelect(e.position):this.moveTo(e.position)}_usualArgs(e){return e=this._validateViewColumn(e),{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e}}moveTo(e){je.CoreNavigationCommands.MoveTo.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_moveToSelect(e){je.CoreNavigationCommands.MoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_columnSelect(e,t,n){e=this._validateViewColumn(e),je.CoreNavigationCommands.ColumnSelect.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,mouseColumn:t,doColumnSelect:n})}_createCursor(e,t){e=this._validateViewColumn(e),je.CoreNavigationCommands.CreateCursor.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,wholeLine:t})}_lastCursorMoveToSelect(e){je.CoreNavigationCommands.LastCursorMoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_wordSelect(e){je.CoreNavigationCommands.WordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_wordSelectDrag(e){je.CoreNavigationCommands.WordSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lastCursorWordSelect(e){je.CoreNavigationCommands.LastCursorWordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lineSelect(e){je.CoreNavigationCommands.LineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lineSelectDrag(e){je.CoreNavigationCommands.LineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lastCursorLineSelect(e){je.CoreNavigationCommands.LastCursorLineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lastCursorLineSelectDrag(e){je.CoreNavigationCommands.LastCursorLineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_selectAll(){je.CoreNavigationCommands.SelectAll.runCoreEditorCommand(this.viewModel,{source:"mouse"})}_convertViewToModelPosition(e){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(e)}emitKeyDown(e){this.userInputEvents.emitKeyDown(e)}emitKeyUp(e){this.userInputEvents.emitKeyUp(e)}emitContextMenu(e){this.userInputEvents.emitContextMenu(e)}emitMouseMove(e){this.userInputEvents.emitMouseMove(e)}emitMouseLeave(e){this.userInputEvents.emitMouseLeave(e)}emitMouseUp(e){this.userInputEvents.emitMouseUp(e)}emitMouseDown(e){this.userInputEvents.emitMouseDown(e)}emitMouseDrag(e){this.userInputEvents.emitMouseDrag(e)}emitMouseDrop(e){this.userInputEvents.emitMouseDrop(e)}emitMouseWheel(e){this.userInputEvents.emitMouseWheel(e)}}class Be{constructor(e){this.onKeyDown=null,this.onKeyUp=null,this.onContextMenu=null,this.onMouseMove=null,this.onMouseLeave=null,this.onMouseDown=null,this.onMouseUp=null,this.onMouseDrag=null,this.onMouseDrop=null,this.onMouseWheel=null,this._coordinatesConverter=e}emitKeyDown(e){this.onKeyDown&&this.onKeyDown(e)}emitKeyUp(e){this.onKeyUp&&this.onKeyUp(e)}emitContextMenu(e){this.onContextMenu&&this.onContextMenu(this._convertViewToModelMouseEvent(e))}emitMouseMove(e){this.onMouseMove&&this.onMouseMove(this._convertViewToModelMouseEvent(e))}emitMouseLeave(e){this.onMouseLeave&&this.onMouseLeave(this._convertViewToModelMouseEvent(e))}emitMouseDown(e){this.onMouseDown&&this.onMouseDown(this._convertViewToModelMouseEvent(e))}emitMouseUp(e){this.onMouseUp&&this.onMouseUp(this._convertViewToModelMouseEvent(e))}emitMouseDrag(e){this.onMouseDrag&&this.onMouseDrag(this._convertViewToModelMouseEvent(e))}emitMouseDrop(e){this.onMouseDrop&&this.onMouseDrop(this._convertViewToModelMouseEvent(e))}emitMouseWheel(e){this.onMouseWheel&&this.onMouseWheel(e)}_convertViewToModelMouseEvent(e){return e.target?{event:e.event,target:this._convertViewToModelMouseTarget(e.target)}:e}_convertViewToModelMouseTarget(e){return Be.convertViewToModelMouseTarget(e,this._coordinatesConverter)}static convertViewToModelMouseTarget(e,t){return new We(e.element,e.type,e.mouseColumn,e.position?t.convertViewPositionToModelPosition(e.position):null,e.range?t.convertViewRangeToModelRange(e.range):null,e.detail)}}class We{constructor(e,t,n,i,r,o){this.element=e,this.type=t,this.mouseColumn=n,this.position=i,this.range=r,this.detail=o}toString(){return oe.toString(this)}}var He=n(125);class Ye{constructor(e){this._createLine=e,this._set(1,[])}flush(){this._set(1,[])}_set(e,t){this._lines=t,this._rendLineNumberStart=e}_get(){return{rendLineNumberStart:this._rendLineNumberStart,lines:this._lines}}getStartLineNumber(){return this._rendLineNumberStart}getEndLineNumber(){return this._rendLineNumberStart+this._lines.length-1}getCount(){return this._lines.length}getLine(e){const t=e-this._rendLineNumberStart;if(t<0||t>=this._lines.length)throw new Error("Illegal value for lineNumber");return this._lines[t]}onLinesDeleted(e,t){if(0===this.getCount())return null;const n=this.getStartLineNumber(),i=this.getEndLineNumber();if(t<n){const n=t-e+1;return this._rendLineNumberStart-=n,null}if(e>i)return null;let r=0,o=0;for(let s=n;s<=i;s++){const n=s-this._rendLineNumberStart;e<=s&&s<=t&&(0===o?(r=n,o=1):o++)}if(e<n){let i=0;i=t<n?t-e+1:n-e,this._rendLineNumberStart-=i}return this._lines.splice(r,o)}onLinesChanged(e,t){if(0===this.getCount())return!1;const n=this.getStartLineNumber(),i=this.getEndLineNumber();let r=!1;for(let o=e;o<=t;o++)o>=n&&o<=i&&(this._lines[o-this._rendLineNumberStart].onContentChanged(),r=!0);return r}onLinesInserted(e,t){if(0===this.getCount())return null;const n=t-e+1,i=this.getStartLineNumber(),r=this.getEndLineNumber();if(e<=i)return this._rendLineNumberStart+=n,null;if(e>r)return null;if(n+e>r){return this._lines.splice(e-this._rendLineNumberStart,r-e+1)}const o=[];for(let e=0;e<n;e++)o[e]=this._createLine();const s=e-this._rendLineNumberStart,a=this._lines.slice(0,s),l=this._lines.slice(s,this._lines.length-n),c=this._lines.slice(this._lines.length-n,this._lines.length);return this._lines=a.concat(o).concat(l),c}onTokensChanged(e){if(0===this.getCount())return!1;const t=this.getStartLineNumber(),n=this.getEndLineNumber();let i=!1;for(let r=0,o=e.length;r<o;r++){const o=e[r];if(o.toLineNumber<t||o.fromLineNumber>n)continue;const s=Math.max(t,o.fromLineNumber),a=Math.min(n,o.toLineNumber);for(let e=s;e<=a;e++){const t=e-this._rendLineNumberStart;this._lines[t].onTokensChanged(),i=!0}}return i}}class Ve{constructor(e){this._host=e,this.domNode=this._createDomNode(),this._linesCollection=new Ye(()=>this._host.createVisibleLine())}_createDomNode(){const e=Object(f.b)(document.createElement("div"));return e.setClassName("view-layer"),e.setPosition("absolute"),e.domNode.setAttribute("role","presentation"),e.domNode.setAttribute("aria-hidden","true"),e}onConfigurationChanged(e){return!!e.hasChanged(117)}onFlushed(e){return this._linesCollection.flush(),!0}onLinesChanged(e){return this._linesCollection.onLinesChanged(e.fromLineNumber,e.toLineNumber)}onLinesDeleted(e){const t=this._linesCollection.onLinesDeleted(e.fromLineNumber,e.toLineNumber);if(t)for(let e=0,n=t.length;e<n;e++){const n=t[e].getDomNode();n&&this.domNode.domNode.removeChild(n)}return!0}onLinesInserted(e){const t=this._linesCollection.onLinesInserted(e.fromLineNumber,e.toLineNumber);if(t)for(let e=0,n=t.length;e<n;e++){const n=t[e].getDomNode();n&&this.domNode.domNode.removeChild(n)}return!0}onScrollChanged(e){return e.scrollTopChanged}onTokensChanged(e){return this._linesCollection.onTokensChanged(e.ranges)}onZonesChanged(e){return!0}getStartLineNumber(){return this._linesCollection.getStartLineNumber()}getEndLineNumber(){return this._linesCollection.getEndLineNumber()}getVisibleLine(e){return this._linesCollection.getLine(e)}renderLines(e){const t=this._linesCollection._get(),n=new ze(this.domNode.domNode,this._host,e),i={rendLineNumberStart:t.rendLineNumberStart,lines:t.lines,linesLength:t.lines.length},r=n.render(i,e.startLineNumber,e.endLineNumber,e.relativeVerticalOffset);this._linesCollection._set(r.rendLineNumberStart,r.lines)}}class ze{constructor(e,t,n){this.domNode=e,this.host=t,this.viewportData=n}render(e,t,n,i){const r={rendLineNumberStart:e.rendLineNumberStart,lines:e.lines.slice(0),linesLength:e.linesLength};if(r.rendLineNumberStart+r.linesLength-1<t||n<r.rendLineNumberStart){r.rendLineNumberStart=t,r.linesLength=n-t+1,r.lines=[];for(let e=t;e<=n;e++)r.lines[e-t]=this.host.createVisibleLine();return this._finishRendering(r,!0,i),r}if(this._renderUntouchedLines(r,Math.max(t-r.rendLineNumberStart,0),Math.min(n-r.rendLineNumberStart,r.linesLength-1),i,t),r.rendLineNumberStart>t){const e=t,o=Math.min(n,r.rendLineNumberStart-1);e<=o&&(this._insertLinesBefore(r,e,o,i,t),r.linesLength+=o-e+1)}else if(r.rendLineNumberStart<t){const e=Math.min(r.linesLength,t-r.rendLineNumberStart);e>0&&(this._removeLinesBefore(r,e),r.linesLength-=e)}if(r.rendLineNumberStart=t,r.rendLineNumberStart+r.linesLength-1<n){const e=r.rendLineNumberStart+r.linesLength,o=n;e<=o&&(this._insertLinesAfter(r,e,o,i,t),r.linesLength+=o-e+1)}else if(r.rendLineNumberStart+r.linesLength-1>n){const e=Math.max(0,n-r.rendLineNumberStart+1),t=r.linesLength-1-e+1;t>0&&(this._removeLinesAfter(r,t),r.linesLength-=t)}return this._finishRendering(r,!1,i),r}_renderUntouchedLines(e,t,n,i,r){const o=e.rendLineNumberStart,s=e.lines;for(let e=t;e<=n;e++){const t=o+e;s[e].layoutLine(t,i[t-r])}}_insertLinesBefore(e,t,n,i,r){const o=[];let s=0;for(let e=t;e<=n;e++)o[s++]=this.host.createVisibleLine();e.lines=o.concat(e.lines)}_removeLinesBefore(e,t){for(let n=0;n<t;n++){const t=e.lines[n].getDomNode();t&&this.domNode.removeChild(t)}e.lines.splice(0,t)}_insertLinesAfter(e,t,n,i,r){const o=[];let s=0;for(let e=t;e<=n;e++)o[s++]=this.host.createVisibleLine();e.lines=e.lines.concat(o)}_removeLinesAfter(e,t){const n=e.linesLength-t;for(let i=0;i<t;i++){const t=e.lines[n+i].getDomNode();t&&this.domNode.removeChild(t)}e.lines.splice(n,t)}_finishRenderingNewLines(e,t,n,i){const r=this.domNode.lastChild;t||!r?this.domNode.innerHTML=n:r.insertAdjacentHTML("afterend",n);let o=this.domNode.lastChild;for(let t=e.linesLength-1;t>=0;t--){const n=e.lines[t];i[t]&&(n.setDomNode(o),o=o.previousSibling)}}_finishRenderingInvalidLines(e,t,n){const i=document.createElement("div");i.innerHTML=t;for(let t=0;t<e.linesLength;t++){const r=e.lines[t];if(n[t]){const e=i.firstChild,t=r.getDomNode();t.parentNode.replaceChild(e,t),r.setDomNode(e)}}}_finishRendering(e,t,n){const i=ze._sb,r=e.linesLength,o=e.lines,s=e.rendLineNumberStart,a=[];{i.reset();let l=!1;for(let e=0;e<r;e++){const t=o[e];(a[e]=!1,t.getDomNode())||t.renderLine(e+s,n[e],this.viewportData,i)&&(a[e]=!0,l=!0)}l&&this._finishRenderingNewLines(e,t,i.build(),a)}{i.reset();let t=!1;const l=[];for(let e=0;e<r;e++){const r=o[e];(l[e]=!1,a[e])||r.renderLine(e+s,n[e],this.viewportData,i)&&(l[e]=!0,t=!0)}t&&this._finishRenderingInvalidLines(e,i.build(),l)}}}ze._sb=Object(He.a)(1e5);class Ue extends E{constructor(e){super(e),this._visibleLines=new Ve(this),this.domNode=this._visibleLines.domNode,this._dynamicOverlays=[],this._isFocused=!1,this.domNode.setClassName("view-overlays")}shouldRender(){if(super.shouldRender())return!0;for(let e=0,t=this._dynamicOverlays.length;e<t;e++){if(this._dynamicOverlays[e].shouldRender())return!0}return!1}dispose(){super.dispose();for(let e=0,t=this._dynamicOverlays.length;e<t;e++){this._dynamicOverlays[e].dispose()}this._dynamicOverlays=[]}getDomNode(){return this.domNode}createVisibleLine(){return new $e(this._context.configuration,this._dynamicOverlays)}addDynamicOverlay(e){this._dynamicOverlays.push(e)}onConfigurationChanged(e){this._visibleLines.onConfigurationChanged(e);const t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber();for(let i=t;i<=n;i++){this._visibleLines.getVisibleLine(i).onConfigurationChanged(e)}return!0}onFlushed(e){return this._visibleLines.onFlushed(e)}onFocusChanged(e){return this._isFocused=e.isFocused,!0}onLinesChanged(e){return this._visibleLines.onLinesChanged(e)}onLinesDeleted(e){return this._visibleLines.onLinesDeleted(e)}onLinesInserted(e){return this._visibleLines.onLinesInserted(e)}onScrollChanged(e){return this._visibleLines.onScrollChanged(e)||!0}onTokensChanged(e){return this._visibleLines.onTokensChanged(e)}onZonesChanged(e){return this._visibleLines.onZonesChanged(e)}prepareRender(e){const t=this._dynamicOverlays.filter(e=>e.shouldRender());for(let n=0,i=t.length;n<i;n++){const i=t[n];i.prepareRender(e),i.onDidRender()}}render(e){this._viewOverlaysRender(e),this.domNode.toggleClassName("focused",this._isFocused)}_viewOverlaysRender(e){this._visibleLines.renderLines(e.viewportData)}}class $e{constructor(e,t){this._configuration=e,this._lineHeight=this._configuration.options.get(51),this._dynamicOverlays=t,this._domNode=null,this._renderedContent=null}getDomNode(){return this._domNode?this._domNode.domNode:null}setDomNode(e){this._domNode=Object(f.b)(e)}onContentChanged(){}onTokensChanged(){}onConfigurationChanged(e){this._lineHeight=this._configuration.options.get(51)}renderLine(e,t,n,i){let r="";for(let t=0,i=this._dynamicOverlays.length;t<i;t++){r+=this._dynamicOverlays[t].render(n.startLineNumber,e)}return this._renderedContent!==r&&(this._renderedContent=r,i.appendASCIIString('<div style="position:absolute;top:'),i.appendASCIIString(String(t)),i.appendASCIIString("px;width:100%;height:"),i.appendASCIIString(String(this._lineHeight)),i.appendASCIIString('px;">'),i.appendASCIIString(r),i.appendASCIIString("</div>"),!0)}layoutLine(e,t){this._domNode&&(this._domNode.setTop(t),this._domNode.setHeight(this._lineHeight))}}class qe extends Ue{constructor(e){super(e);const t=this._context.configuration.options.get(117);this._contentWidth=t.contentWidth,this.domNode.setHeight(0)}onConfigurationChanged(e){const t=this._context.configuration.options.get(117);return this._contentWidth=t.contentWidth,super.onConfigurationChanged(e)||!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollWidthChanged}_viewOverlaysRender(e){super._viewOverlaysRender(e),this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth))}}class Ke extends Ue{constructor(e){super(e);const t=this._context.configuration.options,n=t.get(117);this._contentLeft=n.contentLeft,this.domNode.setClassName("margin-view-overlays"),this.domNode.setWidth(1),c.a.applyFontInfo(this.domNode,t.get(36))}onConfigurationChanged(e){const t=this._context.configuration.options;c.a.applyFontInfo(this.domNode,t.get(36));const n=t.get(117);return this._contentLeft=n.contentLeft,super.onConfigurationChanged(e)||!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollHeightChanged}_viewOverlaysRender(e){super._viewOverlaysRender(e);const t=Math.min(e.scrollHeight,1e6);this.domNode.setHeight(t),this.domNode.setWidth(this._contentLeft)}}class Ge{constructor(e,t){this.top=e,this.left=t}}class Ze extends E{constructor(e,t){super(e),this._viewDomNode=t,this._widgets={},this.domNode=Object(f.b)(document.createElement("div")),T.write(this.domNode,1),this.domNode.setClassName("contentWidgets"),this.domNode.setPosition("absolute"),this.domNode.setTop(0),this.overflowingContentWidgetsDomNode=Object(f.b)(document.createElement("div")),T.write(this.overflowingContentWidgetsDomNode,2),this.overflowingContentWidgetsDomNode.setClassName("overflowingContentWidgets")}dispose(){super.dispose(),this._widgets={}}onConfigurationChanged(e){const t=Object.keys(this._widgets);for(const n of t)this._widgets[n].onConfigurationChanged(e);return!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLineMappingChanged(e){const t=Object.keys(this._widgets);for(const n of t)this._widgets[n].onLineMappingChanged(e);return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return!0}onZonesChanged(e){return!0}addWidget(e){const t=new Je(this._context,this._viewDomNode,e);this._widgets[t.id]=t,t.allowEditorOverflow?this.overflowingContentWidgetsDomNode.appendChild(t.domNode):this.domNode.appendChild(t.domNode),this.setShouldRender()}setWidgetPosition(e,t,n){this._widgets[e.getId()].setPosition(t,n),this.setShouldRender()}removeWidget(e){const t=e.getId();if(this._widgets.hasOwnProperty(t)){const e=this._widgets[t];delete this._widgets[t];const n=e.domNode.domNode;n.parentNode.removeChild(n),n.removeAttribute("monaco-visible-content-widget"),this.setShouldRender()}}shouldSuppressMouseDownOnWidget(e){return!!this._widgets.hasOwnProperty(e)&&this._widgets[e].suppressMouseDown}onBeforeRender(e){const t=Object.keys(this._widgets);for(const n of t)this._widgets[n].onBeforeRender(e)}prepareRender(e){const t=Object.keys(this._widgets);for(const n of t)this._widgets[n].prepareRender(e)}render(e){const t=Object.keys(this._widgets);for(const n of t)this._widgets[n].render(e)}}class Je{constructor(e,t,n){this._context=e,this._viewDomNode=t,this._actual=n,this.domNode=Object(f.b)(this._actual.getDomNode()),this.id=this._actual.getId(),this.allowEditorOverflow=this._actual.allowEditorOverflow||!1,this.suppressMouseDown=this._actual.suppressMouseDown||!1;const i=this._context.configuration.options,r=i.get(117);this._fixedOverflowWidgets=i.get(30),this._contentWidth=r.contentWidth,this._contentLeft=r.contentLeft,this._lineHeight=i.get(51),this._range=null,this._viewRange=null,this._preference=[],this._cachedDomNodeClientWidth=-1,this._cachedDomNodeClientHeight=-1,this._maxWidth=this._getMaxWidth(),this._isVisible=!1,this._renderData=null,this.domNode.setPosition(this._fixedOverflowWidgets&&this.allowEditorOverflow?"fixed":"absolute"),this.domNode.setVisibility("hidden"),this.domNode.setAttribute("widgetId",this.id),this.domNode.setMaxWidth(this._maxWidth)}onConfigurationChanged(e){const t=this._context.configuration.options;if(this._lineHeight=t.get(51),e.hasChanged(117)){const e=t.get(117);this._contentLeft=e.contentLeft,this._contentWidth=e.contentWidth,this._maxWidth=this._getMaxWidth()}}onLineMappingChanged(e){this._setPosition(this._range)}_setPosition(e){if(this._range=e,this._viewRange=null,this._range){const e=this._context.model.validateModelRange(this._range);(this._context.model.coordinatesConverter.modelPositionIsVisible(e.getStartPosition())||this._context.model.coordinatesConverter.modelPositionIsVisible(e.getEndPosition()))&&(this._viewRange=this._context.model.coordinatesConverter.convertModelRangeToViewRange(e))}}_getMaxWidth(){return this.allowEditorOverflow?window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth:this._contentWidth}setPosition(e,t){this._setPosition(e),this._preference=t,this._cachedDomNodeClientWidth=-1,this._cachedDomNodeClientHeight=-1}_layoutBoxInViewport(e,t,n,i,r){const o=e.top,s=o,a=t.top+this._lineHeight,l=o-i,c=s>=i,d=a,u=r.viewportHeight-a>=i;let h=e.left,f=t.left;return h+n>r.scrollLeft+r.viewportWidth&&(h=r.scrollLeft+r.viewportWidth-n),f+n>r.scrollLeft+r.viewportWidth&&(f=r.scrollLeft+r.viewportWidth-n),h<r.scrollLeft&&(h=r.scrollLeft),f<r.scrollLeft&&(f=r.scrollLeft),{fitsAbove:c,aboveTop:l,aboveLeft:h,fitsBelow:u,belowTop:d,belowLeft:f}}_layoutHorizontalSegmentInPage(e,t,n,i){const o=Math.max(0,t.left-i),s=Math.min(t.left+t.width+i,e.width);let a=t.left+n-r.d.scrollX;if(a+i>s){const e=a-(s-i);a-=e,n-=e}if(a<o){const e=a-o;a-=e,n-=e}return[n,a]}_layoutBoxInPage(e,t,n,i,o){const s=e.top-i,a=t.top+this._lineHeight,l=r.C(this._viewDomNode.domNode),c=l.top+s-r.d.scrollY,d=l.top+a-r.d.scrollY,u=r.y(document.body),[h,f]=this._layoutHorizontalSegmentInPage(u,l,e.left-o.scrollLeft+this._contentLeft,n),[g,p]=this._layoutHorizontalSegmentInPage(u,l,t.left-o.scrollLeft+this._contentLeft,n),m=c>=22,_=d+i<=u.height-22;return this._fixedOverflowWidgets?{fitsAbove:m,aboveTop:Math.max(c,22),aboveLeft:f,fitsBelow:_,belowTop:d,belowLeft:p}:{fitsAbove:m,aboveTop:s,aboveLeft:h,fitsBelow:_,belowTop:a,belowLeft:g}}_prepareRenderWidgetAtExactPositionOverflowing(e){return new Ge(e.top,e.left+this._contentLeft)}_getTopAndBottomLeft(e){if(!this._viewRange)return[null,null];const t=e.linesVisibleRangesForRange(this._viewRange,!1);if(!t||0===t.length)return[null,null];let n=t[0],i=t[0];for(const e of t)e.lineNumber<n.lineNumber&&(n=e),e.lineNumber>i.lineNumber&&(i=e);let r=1073741824;for(const e of n.ranges)e.left<r&&(r=e.left);let o=1073741824;for(const e of i.ranges)e.left<o&&(o=e.left);const s=e.getVerticalOffsetForLineNumber(n.lineNumber)-e.scrollTop,a=new Ge(s,r),l=e.getVerticalOffsetForLineNumber(i.lineNumber)-e.scrollTop;return[a,new Ge(l,o)]}_prepareRenderWidget(e){const[t,n]=this._getTopAndBottomLeft(e);if(!t||!n)return null;if(-1===this._cachedDomNodeClientWidth||-1===this._cachedDomNodeClientHeight){const e=this.domNode.domNode;this._cachedDomNodeClientWidth=e.clientWidth,this._cachedDomNodeClientHeight=e.clientHeight}let i;if(i=this.allowEditorOverflow?this._layoutBoxInPage(t,n,this._cachedDomNodeClientWidth,this._cachedDomNodeClientHeight,e):this._layoutBoxInViewport(t,n,this._cachedDomNodeClientWidth,this._cachedDomNodeClientHeight,e),this._preference)for(let e=1;e<=2;e++)for(const n of this._preference)if(1===n){if(!i)return null;if(2===e||i.fitsAbove)return new Ge(i.aboveTop,i.aboveLeft)}else{if(2!==n)return this.allowEditorOverflow?this._prepareRenderWidgetAtExactPositionOverflowing(t):t;if(!i)return null;if(2===e||i.fitsBelow)return new Ge(i.belowTop,i.belowLeft)}return null}onBeforeRender(e){this._viewRange&&this._preference&&(this._viewRange.endLineNumber<e.startLineNumber||this._viewRange.startLineNumber>e.endLineNumber||this.domNode.setMaxWidth(this._maxWidth))}prepareRender(e){this._renderData=this._prepareRenderWidget(e)}render(e){this._renderData?(this.allowEditorOverflow?(this.domNode.setTop(this._renderData.top),this.domNode.setLeft(this._renderData.left)):(this.domNode.setTop(this._renderData.top+e.scrollTop-e.bigNumbersDelta),this.domNode.setLeft(this._renderData.left)),this._isVisible||(this.domNode.setVisibility("inherit"),this.domNode.setAttribute("monaco-visible-content-widget","true"),this._isVisible=!0)):this._isVisible&&(this.domNode.removeAttribute("monaco-visible-content-widget"),this._isVisible=!1,this.domNode.setVisibility("hidden"))}}n(593);var Xe=n(14);let Qe=!0;class et extends De{constructor(e){super(),this._context=e;const t=this._context.configuration.options,n=t.get(117);this._lineHeight=t.get(51),this._renderLineHighlight=t.get(77),this._renderLineHightlightOnlyWhenFocus=t.get(78),this._contentLeft=n.contentLeft,this._contentWidth=n.contentWidth,this._selectionIsEmpty=!0,this._focused=!1,this._cursorLineNumbers=[],this._selections=[],this._renderData=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}_readFromSelections(){let e=!1;const t=Qe?this._selections.slice(0,1):this._selections,n=t.map(e=>e.positionLineNumber);n.sort((e,t)=>e-t),Xe.g(this._cursorLineNumbers,n)||(this._cursorLineNumbers=n,e=!0);const i=t.every(e=>e.isEmpty());return this._selectionIsEmpty!==i&&(this._selectionIsEmpty=i,e=!0),e}onThemeChanged(e){return this._readFromSelections()}onConfigurationChanged(e){const t=this._context.configuration.options,n=t.get(117);return this._lineHeight=t.get(51),this._renderLineHighlight=t.get(77),this._renderLineHightlightOnlyWhenFocus=t.get(78),this._contentLeft=n.contentLeft,this._contentWidth=n.contentWidth,!0}onCursorStateChanged(e){return this._selections=e.selections,this._readFromSelections()}onFlushed(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollWidthChanged||e.scrollTopChanged}onZonesChanged(e){return!0}onFocusChanged(e){return!!this._renderLineHightlightOnlyWhenFocus&&(this._focused=e.isFocused,!0)}prepareRender(e){if(!this._shouldRenderThis())return void(this._renderData=null);const t=this._renderOne(e),n=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,r=this._cursorLineNumbers.length;let o=0;const s=[];for(let e=n;e<=i;e++){const i=e-n;for(;o<r&&this._cursorLineNumbers[o]<e;)o++;o<r&&this._cursorLineNumbers[o]===e?s[i]=t:s[i]=""}this._renderData=s}render(e,t){if(!this._renderData)return"";const n=t-e;return n>=this._renderData.length?"":this._renderData[n]}}class tt extends et{_renderOne(e){return`<div class="${"current-line"+(this._shouldRenderOther()?" current-line-both":"")}" style="width:${Math.max(e.scrollWidth,this._contentWidth)}px; height:${this._lineHeight}px;"></div>`}_shouldRenderThis(){return("line"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&this._selectionIsEmpty&&(!this._renderLineHightlightOnlyWhenFocus||this._focused)}_shouldRenderOther(){return("gutter"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&(!this._renderLineHightlightOnlyWhenFocus||this._focused)}}class nt extends et{_renderOne(e){return`<div class="${"current-line current-line-margin"+(this._shouldRenderOther()?" current-line-margin-both":"")}" style="width:${this._contentLeft}px; height:${this._lineHeight}px;"></div>`}_shouldRenderThis(){return("gutter"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&(!this._renderLineHightlightOnlyWhenFocus||this._focused)}_shouldRenderOther(){return("line"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&this._selectionIsEmpty&&(!this._renderLineHightlightOnlyWhenFocus||this._focused)}}Object(H.g)((e,t)=>{Qe=!1;const n=e.getColor(Ee.i);if(n&&(t.addRule(`.monaco-editor .view-overlays .current-line { background-color: ${n}; }`),t.addRule(`.monaco-editor .margin-view-overlays .current-line-margin { background-color: ${n}; border: none; }`)),!n||n.isTransparent()||e.defines(Ee.j)){const n=e.getColor(Ee.j);n&&(Qe=!0,t.addRule(`.monaco-editor .view-overlays .current-line { border: 2px solid ${n}; }`),t.addRule(`.monaco-editor .margin-view-overlays .current-line-margin { border: 2px solid ${n}; }`),"hc"===e.type&&(t.addRule(".monaco-editor .view-overlays .current-line { border-width: 1px; }"),t.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border-width: 1px; }")))}});n(594);class it extends De{constructor(e){super(),this._context=e;const t=this._context.configuration.options;this._lineHeight=t.get(51),this._typicalHalfwidthCharacterWidth=t.get(36).typicalHalfwidthCharacterWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._lineHeight=t.get(51),this._typicalHalfwidthCharacterWidth=t.get(36).typicalHalfwidthCharacterWidth,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged||e.scrollWidthChanged}onZonesChanged(e){return!0}prepareRender(e){const t=e.getDecorationsInViewport();let n=[],i=0;for(let e=0,r=t.length;e<r;e++){const r=t[e];r.options.className&&(n[i++]=r)}n=n.sort((e,t)=>{if(e.options.zIndex<t.options.zIndex)return-1;if(e.options.zIndex>t.options.zIndex)return 1;const n=e.options.className,i=t.options.className;return n<i?-1:n>i?1:ne.a.compareRangesUsingStarts(e.range,t.range)});const r=e.visibleRange.startLineNumber,o=e.visibleRange.endLineNumber,s=[];for(let e=r;e<=o;e++){s[e-r]=""}this._renderWholeLineDecorations(e,n,s),this._renderNormalDecorations(e,n,s),this._renderResult=s}_renderWholeLineDecorations(e,t,n){const i=String(this._lineHeight),r=e.visibleRange.startLineNumber,o=e.visibleRange.endLineNumber;for(let e=0,s=t.length;e<s;e++){const s=t[e];if(!s.options.isWholeLine)continue;const a='<div class="cdr '+s.options.className+'" style="left:0;width:100%;height:'+i+'px;"></div>',l=Math.max(s.range.startLineNumber,r),c=Math.min(s.range.endLineNumber,o);for(let e=l;e<=c;e++){n[e-r]+=a}}}_renderNormalDecorations(e,t,n){const i=String(this._lineHeight),r=e.visibleRange.startLineNumber;let o=null,s=!1,a=null;for(let l=0,c=t.length;l<c;l++){const c=t[l];if(c.options.isWholeLine)continue;const d=c.options.className,u=Boolean(c.options.showIfCollapsed);let h=c.range;u&&1===h.endColumn&&h.endLineNumber!==h.startLineNumber&&(h=new ne.a(h.startLineNumber,h.startColumn,h.endLineNumber-1,this._context.model.getLineMaxColumn(h.endLineNumber-1))),o===d&&s===u&&ne.a.areIntersectingOrTouching(a,h)?a=ne.a.plusRange(a,h):(null!==o&&this._renderNormalDecoration(e,a,o,s,i,r,n),o=d,s=u,a=h)}null!==o&&this._renderNormalDecoration(e,a,o,s,i,r,n)}_renderNormalDecoration(e,t,n,i,r,o,s){const a=e.linesVisibleRangesForRange(t,"findMatch"===n);if(a)for(let e=0,t=a.length;e<t;e++){const t=a[e];if(t.outsideRenderedLine)continue;const l=t.lineNumber-o;if(i&&1===t.ranges.length){const e=t.ranges[0];0===e.width&&(t.ranges[0]=new A(e.left,this._typicalHalfwidthCharacterWidth))}for(let e=0,i=t.ranges.length;e<i;e++){const i=t.ranges[e],o='<div class="cdr '+n+'" style="left:'+String(i.left)+"px;width:"+String(i.width)+"px;height:"+r+'px;"></div>';s[l]+=o}}}render(e,t){if(!this._renderResult)return"";const n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]}}var rt=n(94);class ot extends E{constructor(e,t,n,i){super(e);const o=this._context.configuration.options,s=o.get(84),a=o.get(58),l=o.get(28),c=o.get(87),d={listenOnDomNode:n.domNode,className:"editor-scrollable "+Object(H.f)(e.theme.type),useShadows:!1,lazyRender:!0,vertical:s.vertical,horizontal:s.horizontal,verticalHasArrows:s.verticalHasArrows,horizontalHasArrows:s.horizontalHasArrows,verticalScrollbarSize:s.verticalScrollbarSize,verticalSliderSize:s.verticalSliderSize,horizontalScrollbarSize:s.horizontalScrollbarSize,horizontalSliderSize:s.horizontalSliderSize,handleMouseWheel:s.handleMouseWheel,alwaysConsumeMouseWheel:s.alwaysConsumeMouseWheel,arrowSize:s.arrowSize,mouseWheelScrollSensitivity:a,fastScrollSensitivity:l,scrollPredominantAxis:c};this.scrollbar=this._register(new rt.c(t.domNode,d,this._context.viewLayout.getScrollable())),T.write(this.scrollbar.getDomNode(),5),this.scrollbarDomNode=Object(f.b)(this.scrollbar.getDomNode()),this.scrollbarDomNode.setPosition("absolute"),this._setLayout();const u=(e,t,n)=>{const i={};if(t){const t=e.scrollTop;t&&(i.scrollTop=this._context.viewLayout.getCurrentScrollTop()+t,e.scrollTop=0)}if(n){const t=e.scrollLeft;t&&(i.scrollLeft=this._context.viewLayout.getCurrentScrollLeft()+t,e.scrollLeft=0)}this._context.model.setScrollPosition(i,1)};this._register(r.i(n.domNode,"scroll",e=>u(n.domNode,!0,!0))),this._register(r.i(t.domNode,"scroll",e=>u(t.domNode,!0,!1))),this._register(r.i(i.domNode,"scroll",e=>u(i.domNode,!0,!1))),this._register(r.i(this.scrollbarDomNode.domNode,"scroll",e=>u(this.scrollbarDomNode.domNode,!0,!1)))}dispose(){super.dispose()}_setLayout(){const e=this._context.configuration.options,t=e.get(117);this.scrollbarDomNode.setLeft(t.contentLeft),"right"===e.get(56).side?this.scrollbarDomNode.setWidth(t.contentWidth+t.minimap.minimapWidth):this.scrollbarDomNode.setWidth(t.contentWidth),this.scrollbarDomNode.setHeight(t.height)}getOverviewRulerLayoutInfo(){return this.scrollbar.getOverviewRulerLayoutInfo()}getDomNode(){return this.scrollbarDomNode}delegateVerticalScrollbarMouseDown(e){this.scrollbar.delegateVerticalScrollbarMouseDown(e)}onConfigurationChanged(e){if(e.hasChanged(84)||e.hasChanged(58)||e.hasChanged(28)){const e=this._context.configuration.options,t=e.get(84),n=e.get(58),i=e.get(28),r=e.get(87),o={handleMouseWheel:t.handleMouseWheel,mouseWheelScrollSensitivity:n,fastScrollSensitivity:i,scrollPredominantAxis:r};this.scrollbar.updateOptions(o)}return e.hasChanged(117)&&this._setLayout(),!0}onScrollChanged(e){return!0}onThemeChanged(e){return this.scrollbar.updateClassName("editor-scrollable "+Object(H.f)(this._context.theme.type)),!0}prepareRender(e){}render(e){this.scrollbar.renderNow()}}n(595);class st{constructor(e,t,n){this.startLineNumber=+e,this.endLineNumber=+t,this.className=String(n)}}class at extends De{_render(e,t,n){const i=[];for(let n=e;n<=t;n++){i[n-e]=[]}if(0===n.length)return i;n.sort((e,t)=>e.className===t.className?e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber:e.className<t.className?-1:1);let r=null,o=0;for(let s=0,a=n.length;s<a;s++){const a=n[s],l=a.className;let c=Math.max(a.startLineNumber,e)-e;const d=Math.min(a.endLineNumber,t)-e;r===l?(c=Math.max(o+1,c),o=Math.max(o,d)):(r=l,o=d);for(let e=c;e<=o;e++)i[e].push(r)}return i}}class lt extends at{constructor(e){super(),this._context=e;const t=this._context.configuration.options,n=t.get(117);this._lineHeight=t.get(51),this._glyphMargin=t.get(42),this._glyphMarginLeft=n.glyphMarginLeft,this._glyphMarginWidth=n.glyphMarginWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options,n=t.get(117);return this._lineHeight=t.get(51),this._glyphMargin=t.get(42),this._glyphMarginLeft=n.glyphMarginLeft,this._glyphMarginWidth=n.glyphMarginWidth,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_getDecorations(e){const t=e.getDecorationsInViewport();let n=[],i=0;for(let e=0,r=t.length;e<r;e++){const r=t[e],o=r.options.glyphMarginClassName;o&&(n[i++]=new st(r.range.startLineNumber,r.range.endLineNumber,o))}return n}prepareRender(e){if(!this._glyphMargin)return void(this._renderResult=null);const t=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,i=this._render(t,n,this._getDecorations(e)),r=this._lineHeight.toString(),o='" style="left:'+this._glyphMarginLeft.toString()+"px;width:"+this._glyphMarginWidth.toString()+"px;height:"+r+'px;"></div>',s=[];for(let e=t;e<=n;e++){const n=e-t,r=i[n];0===r.length?s[n]="":s[n]='<div class="cgmr codicon '+r.join(" ")+o}this._renderResult=s}render(e,t){if(!this._renderResult)return"";const n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]}}n(596);class ct extends De{constructor(e){super(),this._context=e,this._primaryLineNumber=0;const t=this._context.configuration.options,n=t.get(118),i=t.get(36);this._lineHeight=t.get(51),this._spaceWidth=i.spaceWidth,this._enabled=t.get(75),this._activeIndentEnabled=t.get(45),this._maxIndentLeft=-1===n.wrappingColumn?-1:n.wrappingColumn*i.typicalHalfwidthCharacterWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options,n=t.get(118),i=t.get(36);return this._lineHeight=t.get(51),this._spaceWidth=i.spaceWidth,this._enabled=t.get(75),this._activeIndentEnabled=t.get(45),this._maxIndentLeft=-1===n.wrappingColumn?-1:n.wrappingColumn*i.typicalHalfwidthCharacterWidth,!0}onCursorStateChanged(e){const t=e.selections[0],n=t.isEmpty()?t.positionLineNumber:0;return this._primaryLineNumber!==n&&(this._primaryLineNumber=n,!0)}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}onLanguageConfigurationChanged(e){return!0}prepareRender(e){if(!this._enabled)return void(this._renderResult=null);const t=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,{indentSize:i}=this._context.model.getTextModelOptions(),r=i*this._spaceWidth,o=e.scrollWidth,s=this._lineHeight,a=this._context.model.getLinesIndentGuides(t,n);let l=0,c=0,d=0;if(this._activeIndentEnabled&&this._primaryLineNumber){const e=this._context.model.getActiveIndentGuide(this._primaryLineNumber,t,n);l=e.startLineNumber,c=e.endLineNumber,d=e.indent}const u=[];for(let i=t;i<=n;i++){const n=l<=i&&i<=c,h=i-t,f=a[h];let g="";if(f>=1){const t=e.visibleRangeForPosition(new te.a(i,1));let a=t?t.left:0;for(let e=1;e<=f;e++){if(g+=`<div class="${n&&e===d?"cigra":"cigr"}" style="left:${a}px;height:${s}px;width:${r}px"></div>`,(a+=r)>o||this._maxIndentLeft>0&&a>this._maxIndentLeft)break}}u[h]=g}this._renderResult=u}render(e,t){if(!this._renderResult)return"";const n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]}}Object(H.g)((e,t)=>{const n=e.getColor(Ee.h);n&&t.addRule(`.monaco-editor .lines-content .cigr { box-shadow: 1px 0 0 0 ${n} inset; }`);const i=e.getColor(Ee.a)||n;i&&t.addRule(`.monaco-editor .lines-content .cigra { box-shadow: 1px 0 0 0 ${i} inset; }`)});n(597);class dt{constructor(){this._currentVisibleRange=new ne.a(1,1,1,1)}getCurrentVisibleRange(){return this._currentVisibleRange}setCurrentVisibleRange(e){this._currentVisibleRange=e}}class ut{constructor(e,t,n,i,r,o){this.lineNumber=e,this.startColumn=t,this.endColumn=n,this.startScrollTop=i,this.stopScrollTop=r,this.scrollType=o,this.type="range",this.minLineNumber=e,this.maxLineNumber=e}}class ht{constructor(e,t,n,i){this.selections=e,this.startScrollTop=t,this.stopScrollTop=n,this.scrollType=i,this.type="selections";let r=e[0].startLineNumber,o=e[0].endLineNumber;for(let t=1,n=e.length;t<n;t++){const n=e[t];r=Math.min(r,n.startLineNumber),o=Math.max(o,n.endLineNumber)}this.minLineNumber=r,this.maxLineNumber=o}}class ft extends E{constructor(e,t){super(e),this._linesContent=t,this._textRangeRestingSpot=document.createElement("div"),this._visibleLines=new Ve(this),this.domNode=this._visibleLines.domNode;const n=this._context.configuration,i=this._context.configuration.options,r=i.get(36),o=i.get(118);this._lineHeight=i.get(51),this._typicalHalfwidthCharacterWidth=r.typicalHalfwidthCharacterWidth,this._isViewportWrapping=o.isViewportWrapping,this._revealHorizontalRightPadding=i.get(81),this._cursorSurroundingLines=i.get(20),this._cursorSurroundingLinesStyle=i.get(21),this._canUseLayerHinting=!i.get(23),this._viewLineOptions=new q(n,this._context.theme.type),T.write(this.domNode,7),this.domNode.setClassName(`view-lines ${Ie.a}`),c.a.applyFontInfo(this.domNode,r),this._maxLineWidth=0,this._asyncUpdateLineWidths=new _.d(()=>{this._updateLineWidthsSlow()},200),this._asyncCheckMonospaceFontAssumptions=new _.d(()=>{this._checkMonospaceFontAssumptions()},2e3),this._lastRenderedData=new dt,this._horizontalRevealRequest=null}dispose(){this._asyncUpdateLineWidths.dispose(),this._asyncCheckMonospaceFontAssumptions.dispose(),super.dispose()}getDomNode(){return this.domNode}createVisibleLine(){return new K(this._viewLineOptions)}onConfigurationChanged(e){this._visibleLines.onConfigurationChanged(e),e.hasChanged(118)&&(this._maxLineWidth=0);const t=this._context.configuration.options,n=t.get(36),i=t.get(118);return this._lineHeight=t.get(51),this._typicalHalfwidthCharacterWidth=n.typicalHalfwidthCharacterWidth,this._isViewportWrapping=i.isViewportWrapping,this._revealHorizontalRightPadding=t.get(81),this._cursorSurroundingLines=t.get(20),this._cursorSurroundingLinesStyle=t.get(21),this._canUseLayerHinting=!t.get(23),c.a.applyFontInfo(this.domNode,n),this._onOptionsMaybeChanged(),e.hasChanged(117)&&(this._maxLineWidth=0),!0}_onOptionsMaybeChanged(){const e=this._context.configuration,t=new q(e,this._context.theme.type);if(!this._viewLineOptions.equals(t)){this._viewLineOptions=t;const e=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber();for(let t=e;t<=n;t++){this._visibleLines.getVisibleLine(t).onOptionsChanged(this._viewLineOptions)}return!0}return!1}onCursorStateChanged(e){const t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber();let i=!1;for(let e=t;e<=n;e++)i=this._visibleLines.getVisibleLine(e).onSelectionChanged()||i;return i}onDecorationsChanged(e){{const e=this._visibleLines.getStartLineNumber(),t=this._visibleLines.getEndLineNumber();for(let n=e;n<=t;n++)this._visibleLines.getVisibleLine(n).onDecorationsChanged()}return!0}onFlushed(e){const t=this._visibleLines.onFlushed(e);return this._maxLineWidth=0,t}onLinesChanged(e){return this._visibleLines.onLinesChanged(e)}onLinesDeleted(e){return this._visibleLines.onLinesDeleted(e)}onLinesInserted(e){return this._visibleLines.onLinesInserted(e)}onRevealRangeRequest(e){const t=this._computeScrollTopToRevealRange(this._context.viewLayout.getFutureViewport(),e.source,e.range,e.selections,e.verticalType);if(-1===t)return!1;let n=this._context.viewLayout.validateScrollPosition({scrollTop:t});e.revealHorizontal?e.range&&e.range.startLineNumber!==e.range.endLineNumber?n={scrollTop:n.scrollTop,scrollLeft:0}:e.range?this._horizontalRevealRequest=new ut(e.range.startLineNumber,e.range.startColumn,e.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),n.scrollTop,e.scrollType):e.selections&&e.selections.length>0&&(this._horizontalRevealRequest=new ht(e.selections,this._context.viewLayout.getCurrentScrollTop(),n.scrollTop,e.scrollType)):this._horizontalRevealRequest=null;const i=Math.abs(this._context.viewLayout.getCurrentScrollTop()-n.scrollTop)<=this._lineHeight?1:e.scrollType;return this._context.model.setScrollPosition(n,i),!0}onScrollChanged(e){if(this._horizontalRevealRequest&&e.scrollLeftChanged&&(this._horizontalRevealRequest=null),this._horizontalRevealRequest&&e.scrollTopChanged){const t=Math.min(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop),n=Math.max(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop);(e.scrollTop<t||e.scrollTop>n)&&(this._horizontalRevealRequest=null)}return this.domNode.setWidth(e.scrollWidth),this._visibleLines.onScrollChanged(e)||!0}onTokensChanged(e){return this._visibleLines.onTokensChanged(e)}onZonesChanged(e){return this._context.model.setMaxLineWidth(this._maxLineWidth),this._visibleLines.onZonesChanged(e)}onThemeChanged(e){return this._onOptionsMaybeChanged()}getPositionFromDOMInfo(e,t){const n=this._getViewLineDomNode(e);if(null===n)return null;const i=this._getLineNumberFor(n);if(-1===i)return null;if(i<1||i>this._context.model.getLineCount())return null;if(1===this._context.model.getLineMaxColumn(i))return new te.a(i,1);const r=this._visibleLines.getStartLineNumber(),o=this._visibleLines.getEndLineNumber();if(i<r||i>o)return null;let s=this._visibleLines.getVisibleLine(i).getColumnOfNodeOffset(i,e,t);const a=this._context.model.getLineMinColumn(i);return s<a&&(s=a),new te.a(i,s)}_getViewLineDomNode(e){for(;e&&1===e.nodeType;){if(e.className===K.CLASS_NAME)return e;e=e.parentElement}return null}_getLineNumberFor(e){const t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber();for(let i=t;i<=n;i++){if(e===this._visibleLines.getVisibleLine(i).getDomNode())return i}return-1}getLineWidth(e){const t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber();return e<t||e>n?-1:this._visibleLines.getVisibleLine(e).getWidth()}linesVisibleRangesForRange(e,t){if(this.shouldRender())return null;const n=e.endLineNumber,i=ne.a.intersectRanges(e,this._lastRenderedData.getCurrentVisibleRange());if(!i)return null;let r=[],o=0;const s=new $(this.domNode.domNode,this._textRangeRestingSpot);let a=0;t&&(a=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new te.a(i.startLineNumber,1)).lineNumber);const l=this._visibleLines.getStartLineNumber(),c=this._visibleLines.getEndLineNumber();for(let e=i.startLineNumber;e<=i.endLineNumber;e++){if(e<l||e>c)continue;const d=e===i.startLineNumber?i.startColumn:1,u=e===i.endLineNumber?i.endColumn:this._context.model.getLineMaxColumn(e),h=this._visibleLines.getVisibleLine(e).getVisibleRangesForRange(d,u,s);if(h){if(t&&e<n){a!==(a=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new te.a(e+1,1)).lineNumber)&&(h.ranges[h.ranges.length-1].width+=this._typicalHalfwidthCharacterWidth)}r[o++]=new I(h.outsideRenderedLine,e,h.ranges)}}return 0===o?null:r}_visibleRangesForLineRange(e,t,n){return this.shouldRender()?null:e<this._visibleLines.getStartLineNumber()||e>this._visibleLines.getEndLineNumber()?null:this._visibleLines.getVisibleLine(e).getVisibleRangesForRange(t,n,new $(this.domNode.domNode,this._textRangeRestingSpot))}visibleRangeForPosition(e){const t=this._visibleRangesForLineRange(e.lineNumber,e.column,e.column);return t?new R(t.outsideRenderedLine,t.ranges[0].left):null}updateLineWidths(){this._updateLineWidths(!1)}_updateLineWidthsFast(){return this._updateLineWidths(!0)}_updateLineWidthsSlow(){this._updateLineWidths(!1)}_updateLineWidths(e){const t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber();let i=1,r=!0;for(let o=t;o<=n;o++){const t=this._visibleLines.getVisibleLine(o);!e||t.getWidthIsFast()?i=Math.max(i,t.getWidth()):r=!1}return r&&1===t&&n===this._context.model.getLineCount()&&(this._maxLineWidth=0),this._ensureMaxLineWidth(i),r}_checkMonospaceFontAssumptions(){let e=-1,t=-1;const n=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();for(let r=n;r<=i;r++){const n=this._visibleLines.getVisibleLine(r);if(n.needsMonospaceFontCheck()){const i=n.getWidth();i>t&&(t=i,e=r)}}if(-1!==e&&!this._visibleLines.getVisibleLine(e).monospaceAssumptionsAreValid())for(let e=n;e<=i;e++){this._visibleLines.getVisibleLine(e).onMonospaceAssumptionsInvalidated()}}prepareRender(){throw new Error("Not supported")}render(){throw new Error("Not supported")}renderText(e){if(this._visibleLines.renderLines(e),this._lastRenderedData.setCurrentVisibleRange(e.visibleRange),this.domNode.setWidth(this._context.viewLayout.getScrollWidth()),this.domNode.setHeight(Math.min(this._context.viewLayout.getScrollHeight(),1e6)),this._horizontalRevealRequest){const t=this._horizontalRevealRequest;if(e.startLineNumber<=t.minLineNumber&&t.maxLineNumber<=e.endLineNumber){this._horizontalRevealRequest=null,this.onDidRender();const e=this._computeScrollLeftToReveal(t);e&&(this._isViewportWrapping||this._ensureMaxLineWidth(e.maxHorizontalOffset),this._context.model.setScrollPosition({scrollLeft:e.scrollLeft},t.scrollType))}}if(this._updateLineWidthsFast()||this._asyncUpdateLineWidths.schedule(),g.d&&!this._asyncCheckMonospaceFontAssumptions.isScheduled()){const e=this._visibleLines.getStartLineNumber(),t=this._visibleLines.getEndLineNumber();for(let n=e;n<=t;n++){if(this._visibleLines.getVisibleLine(n).needsMonospaceFontCheck()){this._asyncCheckMonospaceFontAssumptions.schedule();break}}}this._linesContent.setLayerHinting(this._canUseLayerHinting),this._linesContent.setContain("strict");const t=this._context.viewLayout.getCurrentScrollTop()-e.bigNumbersDelta;this._linesContent.setTop(-t),this._linesContent.setLeft(-this._context.viewLayout.getCurrentScrollLeft())}_ensureMaxLineWidth(e){const t=Math.ceil(e);this._maxLineWidth<t&&(this._maxLineWidth=t,this._context.model.setMaxLineWidth(this._maxLineWidth))}_computeScrollTopToRevealRange(e,t,n,i,r){const o=e.top,s=e.height,a=o+s;let l,c,d;if(i&&i.length>0){let e=i[0].startLineNumber,t=i[0].endLineNumber;for(let n=1,r=i.length;n<r;n++){const r=i[n];e=Math.min(e,r.startLineNumber),t=Math.max(t,r.endLineNumber)}l=!1,c=this._context.viewLayout.getVerticalOffsetForLineNumber(e),d=this._context.viewLayout.getVerticalOffsetForLineNumber(t)+this._lineHeight}else{if(!n)return-1;l=!0,c=this._context.viewLayout.getVerticalOffsetForLineNumber(n.startLineNumber),d=this._context.viewLayout.getVerticalOffsetForLineNumber(n.endLineNumber)+this._lineHeight}if(!("mouse"===t&&"default"===this._cursorSurroundingLinesStyle)){const e=Math.min(s/this._lineHeight/2,this._cursorSurroundingLines);c-=e*this._lineHeight,d+=Math.max(0,e-1)*this._lineHeight}let u;if(0!==r&&4!==r||(d+=this._lineHeight),d-c>s){if(!l)return-1;u=c}else if(5===r||6===r)if(6===r&&o<=c&&d<=a)u=o;else{const e=c-Math.max(5*this._lineHeight,.2*s),t=d-s;u=Math.max(t,e)}else if(1===r||2===r)if(2===r&&o<=c&&d<=a)u=o;else{const e=(c+d)/2;u=Math.max(0,e-s/2)}else u=this._computeMinimumScrolling(o,a,c,d,3===r,4===r);return u}_computeScrollLeftToReveal(e){const t=this._context.viewLayout.getCurrentViewport(),n=t.left,i=n+t.width;let r=1073741824,o=0;if("range"===e.type){const t=this._visibleRangesForLineRange(e.lineNumber,e.startColumn,e.endColumn);if(!t)return null;for(const e of t.ranges)r=Math.min(r,e.left),o=Math.max(o,e.left+e.width)}else for(const t of e.selections){if(t.startLineNumber!==t.endLineNumber)return null;const e=this._visibleRangesForLineRange(t.startLineNumber,t.startColumn,t.endColumn);if(!e)return null;for(const t of e.ranges)r=Math.min(r,t.left),o=Math.max(o,t.left+t.width)}if(r=Math.max(0,r-ft.HORIZONTAL_EXTRA_PX),o+=this._revealHorizontalRightPadding,"selections"===e.type&&o-r>t.width)return null;return{scrollLeft:this._computeMinimumScrolling(n,i,r,o),maxHorizontalOffset:o}}_computeMinimumScrolling(e,t,n,i,r,o){r=!!r,o=!!o;const s=(t|=0)-(e|=0);return(i|=0)-(n|=0)<s?r?n:o?Math.max(0,i-s):n<e?n:i>t?Math.max(0,i-s):e:n}}ft.HORIZONTAL_EXTRA_PX=30;n(598);class gt extends at{constructor(e){super(),this._context=e;const t=this._context.configuration.options.get(117);this._decorationsLeft=t.decorationsLeft,this._decorationsWidth=t.decorationsWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options.get(117);return this._decorationsLeft=t.decorationsLeft,this._decorationsWidth=t.decorationsWidth,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_getDecorations(e){const t=e.getDecorationsInViewport();let n=[],i=0;for(let e=0,r=t.length;e<r;e++){const r=t[e],o=r.options.linesDecorationsClassName;o&&(n[i++]=new st(r.range.startLineNumber,r.range.endLineNumber,o));const s=r.options.firstLineDecorationClassName;s&&(n[i++]=new st(r.range.startLineNumber,r.range.startLineNumber,s))}return n}prepareRender(e){const t=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,i=this._render(t,n,this._getDecorations(e)),r='" style="left:'+this._decorationsLeft.toString()+"px;width:"+this._decorationsWidth.toString()+'px;"></div>',o=[];for(let e=t;e<=n;e++){const n=e-t,s=i[n];let a="";for(let e=0,t=s.length;e<t;e++)a+='<div class="cldr '+s[e]+r;o[n]=a}this._renderResult=o}render(e,t){return this._renderResult?this._renderResult[t-e]:""}}n(599);class pt extends at{constructor(e){super(),this._context=e,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){return!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_getDecorations(e){const t=e.getDecorationsInViewport();let n=[],i=0;for(let e=0,r=t.length;e<r;e++){const r=t[e],o=r.options.marginClassName;o&&(n[i++]=new st(r.range.startLineNumber,r.range.endLineNumber,o))}return n}prepareRender(e){const t=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,i=this._render(t,n,this._getDecorations(e)),r=[];for(let e=t;e<=n;e++){const n=e-t,o=i[n];let s="";for(let e=0,t=o.length;e<t;e++)s+='<div class="cmdr '+o[e]+'" style=""></div>';r[n]=s}this._renderResult=r}render(e,t){return this._renderResult?this._renderResult[t-e]:""}}n(600);class mt{constructor(e,t,n,i){this.r=mt._clamp(e),this.g=mt._clamp(t),this.b=mt._clamp(n),this.a=mt._clamp(i)}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}static _clamp(e){return e<0?0:e>255?255:0|e}}mt.Empty=new mt(0,0,0,0);var _t=n(11);class bt{constructor(){this._onDidChange=new s.a,this.onDidChange=this._onDidChange.event,this._updateColorMap(),_t.C.onDidChange(e=>{e.changedColorMap&&this._updateColorMap()})}static getInstance(){return this._INSTANCE||(this._INSTANCE=new bt),this._INSTANCE}_updateColorMap(){const e=_t.C.getColorMap();if(!e)return this._colors=[mt.Empty],void(this._backgroundIsLight=!0);this._colors=[mt.Empty];for(let t=1;t<e.length;t++){const n=e[t].rgba;this._colors[t]=new mt(n.r,n.g,n.b,Math.round(255*n.a))}let t=e[2].getRelativeLuminance();this._backgroundIsLight=t>=.5,this._onDidChange.fire(void 0)}getColor(e){return(e<1||e>=this._colors.length)&&(e=2),this._colors[e]}backgroundIsLight(){return this._backgroundIsLight}}bt._INSTANCE=null;var vt=n(63),yt=n(5);const wt=(()=>{const e=[];for(let t=32;t<=126;t++)e.push(t);return e.push(65533),e})(),Ct=(e,t)=>(e-=32)<0||e>96?t<=2?(e+96)%96:95:e;var St=n(121);class kt{constructor(e,t){this.scale=t,this.charDataNormal=kt.soften(e,.8),this.charDataLight=kt.soften(e,50/60)}static soften(e,t){let n=new Uint8ClampedArray(e.length);for(let i=0,r=e.length;i<r;i++)n[i]=Object(St.b)(e[i]*t);return n}renderChar(e,t,n,i,r,o,s,a,l){const c=1*this.scale,d=2*this.scale,u=l?1:d;if(t+c>e.width||n+u>e.height)return void console.warn("bad render request outside image data");const h=a?this.charDataLight:this.charDataNormal,f=Ct(i,s),g=4*e.width,p=o.r,m=o.g,_=o.b,b=r.r-p,v=r.g-m,y=r.b-_,w=e.data;let C=f*c*d,S=n*g+4*t;for(let e=0;e<u;e++){let e=S;for(let t=0;t<c;t++){const t=h[C++]/255;w[e++]=p+b*t,w[e++]=m+v*t,w[e++]=_+y*t,e++}S+=g}}blockRenderChar(e,t,n,i,r,o,s){const a=1*this.scale,l=2*this.scale,c=s?1:l;if(t+a>e.width||n+c>e.height)return void console.warn("bad render request outside image data");const d=4*e.width,u=r.r,h=r.g,f=r.b,g=u+.5*(i.r-u),p=h+.5*(i.g-h),m=f+.5*(i.b-f),_=e.data;let b=n*d+4*t;for(let e=0;e<c;e++){let e=b;for(let t=0;t<a;t++)_[e++]=g,_[e++]=p,_[e++]=m,e++;b+=d}}}var xt=n(126);const Lt={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15},Mt=e=>{const t=new Uint8ClampedArray(e.length/2);for(let n=0;n<e.length;n+=2)t[n>>1]=Lt[e[n]]<<4|15&Lt[e[n+1]];return t},Dt={1:Object(xt.a)(()=>Mt("0000511D6300CF609C709645A78432005642574171487021003C451900274D35D762755E8B629C5BA856AF57BA649530C167D1512A272A3F6038604460398526BCA2A968DB6F8957C768BE5FBE2FB467CF5D8D5B795DC7625B5DFF50DE64C466DB2FC47CD860A65E9A2EB96CB54CE06DA763AB2EA26860524D3763536601005116008177A8705E53AB738E6A982F88BAA35B5F5B626D9C636B449B737E5B7B678598869A662F6B5B8542706C704C80736A607578685B70594A49715A4522E792")),2:Object(xt.a)(()=>Mt("000000000000000055394F383D2800008B8B1F210002000081B1CBCBCC820000847AAF6B9AAF2119BE08B8881AD60000A44FD07DCCF107015338130C00000000385972265F390B406E2437634B4B48031B12B8A0847000001E15B29A402F0000000000004B33460B00007A752C2A0000000000004D3900000084394B82013400ABA5CFC7AD9C0302A45A3E5A98AB000089A43382D97900008BA54AA087A70A0248A6A7AE6DBE0000BF6F94987EA40A01A06DCFA7A7A9030496C32F77891D0000A99FB1A0AFA80603B29AB9CA75930D010C0948354D3900000C0948354F37460D0028BE673D8400000000AF9D7B6E00002B007AA8933400007AA642675C2700007984CFB9C3985B768772A8A6B7B20000CAAECAAFC4B700009F94A6009F840009D09F9BA4CA9C0000CC8FC76DC87F0000C991C472A2000000A894A48CA7B501079BA2C9C69BA20000B19A5D3FA89000005CA6009DA2960901B0A7F0669FB200009D009E00B7890000DAD0F5D092820000D294D4C48BD10000B5A7A4A3B1A50402CAB6CBA6A2000000B5A7A4A3B1A8044FCDADD19D9CB00000B7778F7B8AAE0803C9AB5D3F5D3F00009EA09EA0BAB006039EA0989A8C7900009B9EF4D6B7C00000A9A7816CACA80000ABAC84705D3F000096DA635CDC8C00006F486F266F263D4784006124097B00374F6D2D6D2D6D4A3A95872322000000030000000000008D8939130000000000002E22A5C9CBC70600AB25C0B5C9B400061A2DB04CA67001082AA6BEBEBFC606002321DACBC19E03087AA08B6768380000282FBAC0B8CA7A88AD25BBA5A29900004C396C5894A6000040485A6E356E9442A32CD17EADA70000B4237923628600003E2DE9C1D7B500002F25BBA5A2990000231DB6AFB4A804023025C0B5CAB588062B2CBDBEC0C706882435A75CA20000002326BD6A82A908048B4B9A5A668000002423A09CB4BB060025259C9D8A7900001C1FCAB2C7C700002A2A9387ABA200002626A4A47D6E9D14333163A0C87500004B6F9C2D643A257049364936493647358A34438355497F1A0000A24C1D590000D38DFFBDD4CD3126"))};class Et{static create(e,t){if(this.lastCreated&&e===this.lastCreated.scale&&t===this.lastFontFamily)return this.lastCreated;let n;return n=Dt[e]?new kt(Dt[e](),e):Et.createFromSampleData(Et.createSampleData(t).data,e),this.lastFontFamily=t,this.lastCreated=n,n}static createSampleData(e){const t=document.createElement("canvas"),n=t.getContext("2d");t.style.height="16px",t.height=16,t.width=960,t.style.width="960px",n.fillStyle="#ffffff",n.font=`bold 16px ${e}`,n.textBaseline="middle";let i=0;for(const e of wt)n.fillText(String.fromCharCode(e),i,8),i+=10;return n.getImageData(0,0,960,16)}static createFromSampleData(e,t){if(61440!==e.length)throw new Error("Unexpected source in MinimapCharRenderer");let n=Et._downsample(e,t);return new kt(n,t)}static _downsampleChar(e,t,n,i,r){const o=1*r,s=2*r;let a=i,l=0;for(let i=0;i<s;i++){const r=i/s*16,c=(i+1)/s*16;for(let i=0;i<o;i++){const s=i/o*10,d=(i+1)/o*10;let u=0,h=0;for(let n=r;n<c;n++){const i=t+3840*Math.floor(n),r=1-(n-Math.floor(n));for(let t=s;t<d;t++){const n=1-(t-Math.floor(t)),o=i+4*Math.floor(t),s=n*r;h+=s,u+=e[o]*e[o+3]/255*s}}const f=u/h;l=Math.max(l,f),n[a++]=Object(St.b)(f)}}return l}static _downsample(e,t){const n=2*t*1*t,i=96*n,r=new Uint8ClampedArray(i);let o=0,s=0,a=0;for(let i=0;i<96;i++)a=Math.max(a,this._downsampleChar(e,s,r,o,t)),o+=n,s+=40;if(a>0){const e=255/a;for(let t=0;t<i;t++)r[t]*=e}return r}}var Tt=n(48);const Ot=140,Nt=2;class It{constructor(e,t,n){const i=e.options,r=i.get(115),o=i.get(117),s=o.minimap,a=i.get(36),l=i.get(56);this.renderMinimap=s.renderMinimap,this.size=l.size,this.minimapHeightIsEditorHeight=s.minimapHeightIsEditorHeight,this.scrollBeyondLastLine=i.get(86),this.showSlider=l.showSlider,this.pixelRatio=r,this.typicalHalfwidthCharacterWidth=a.typicalHalfwidthCharacterWidth,this.lineHeight=i.get(51),this.minimapLeft=s.minimapLeft,this.minimapWidth=s.minimapWidth,this.minimapHeight=o.height,this.canvasInnerWidth=s.minimapCanvasInnerWidth,this.canvasInnerHeight=s.minimapCanvasInnerHeight,this.canvasOuterWidth=s.minimapCanvasOuterWidth,this.canvasOuterHeight=s.minimapCanvasOuterHeight,this.isSampling=s.minimapIsSampling,this.editorHeight=o.height,this.fontScale=s.minimapScale,this.minimapLineHeight=s.minimapLineHeight,this.minimapCharWidth=1*this.fontScale,this.charRenderer=Object(xt.a)(()=>Et.create(this.fontScale,a.fontFamily)),this.backgroundColor=It._getMinimapBackground(t,n)}static _getMinimapBackground(e,t){const n=e.getColor(yt.Mb);return n?new mt(n.rgba.r,n.rgba.g,n.rgba.b,n.rgba.a):t.getColor(2)}equals(e){return this.renderMinimap===e.renderMinimap&&this.size===e.size&&this.minimapHeightIsEditorHeight===e.minimapHeightIsEditorHeight&&this.scrollBeyondLastLine===e.scrollBeyondLastLine&&this.showSlider===e.showSlider&&this.pixelRatio===e.pixelRatio&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.lineHeight===e.lineHeight&&this.minimapLeft===e.minimapLeft&&this.minimapWidth===e.minimapWidth&&this.minimapHeight===e.minimapHeight&&this.canvasInnerWidth===e.canvasInnerWidth&&this.canvasInnerHeight===e.canvasInnerHeight&&this.canvasOuterWidth===e.canvasOuterWidth&&this.canvasOuterHeight===e.canvasOuterHeight&&this.isSampling===e.isSampling&&this.editorHeight===e.editorHeight&&this.fontScale===e.fontScale&&this.minimapLineHeight===e.minimapLineHeight&&this.minimapCharWidth===e.minimapCharWidth&&this.backgroundColor&&this.backgroundColor.equals(e.backgroundColor)}}class At{constructor(e,t,n,i,r,o,s,a){this.scrollTop=e,this.scrollHeight=t,this.sliderNeeded=n,this._computedSliderRatio=i,this.sliderTop=r,this.sliderHeight=o,this.startLineNumber=s,this.endLineNumber=a}getDesiredScrollTopFromDelta(e){const t=this.sliderTop+e;return Math.round(t/this._computedSliderRatio)}getDesiredScrollTopFromTouchLocation(e){return Math.round((e-this.sliderHeight/2)/this._computedSliderRatio)}static create(e,t,n,i,r,o,s,a,l,c){const d=e.pixelRatio,u=e.minimapLineHeight,h=Math.floor(e.canvasInnerHeight/u),f=e.lineHeight;if(e.minimapHeightIsEditorHeight){const t=s*e.lineHeight+(e.scrollBeyondLastLine?i-e.lineHeight:0),n=Math.max(1,Math.floor(i*i/t)),r=Math.max(0,e.minimapHeight-n),c=r/(l-i),d=a*c,u=r>0,h=Math.floor(e.canvasInnerHeight/e.minimapLineHeight);return new At(a,l,u,c,d,n,1,Math.min(o,h))}let g,p;if(r&&n!==o){const e=n-t+1;g=Math.floor(e*u/d)}else{const e=i/f;g=Math.floor(e*u/d)}p=e.scrollBeyondLastLine?(o-1)*u/d:Math.max(0,o*u/d-g);const m=(p=Math.min(e.minimapHeight-g,p))/(l-i),_=a*m;let b=0;if(e.scrollBeyondLastLine){b=i/f-1}if(h>=o+b){return new At(a,l,p>0,m,_,g,1,o)}{let e=Math.max(1,Math.floor(t-_*d/u));c&&c.scrollHeight===l&&(c.scrollTop>a&&(e=Math.min(e,c.startLineNumber)),c.scrollTop<a&&(e=Math.max(e,c.startLineNumber)));const n=Math.min(o,e+h-1);return new At(a,l,!0,m,_,g,e,n)}}}class Rt{constructor(e){this.dy=e}onContentChanged(){this.dy=-1}onTokensChanged(){this.dy=-1}}Rt.INVALID=new Rt(-1);class Pt{constructor(e,t,n){this.renderedLayout=e,this._imageData=t,this._renderedLines=new Ye(()=>Rt.INVALID),this._renderedLines._set(e.startLineNumber,n)}linesEquals(e){if(!this.scrollEquals(e))return!1;const t=this._renderedLines._get().lines;for(let e=0,n=t.length;e<n;e++)if(-1===t[e].dy)return!1;return!0}scrollEquals(e){return this.renderedLayout.startLineNumber===e.startLineNumber&&this.renderedLayout.endLineNumber===e.endLineNumber}_get(){const e=this._renderedLines._get();return{imageData:this._imageData,rendLineNumberStart:e.rendLineNumberStart,lines:e.lines}}onLinesChanged(e,t){return this._renderedLines.onLinesChanged(e,t)}onLinesDeleted(e,t){this._renderedLines.onLinesDeleted(e,t)}onLinesInserted(e,t){this._renderedLines.onLinesInserted(e,t)}onTokensChanged(e){return this._renderedLines.onTokensChanged(e)}}class jt{constructor(e,t,n,i){this._backgroundFillData=jt._createBackgroundFillData(t,n,i),this._buffers=[e.createImageData(t,n),e.createImageData(t,n)],this._lastUsedBuffer=0}getBuffer(){this._lastUsedBuffer=1-this._lastUsedBuffer;const e=this._buffers[this._lastUsedBuffer];return e.data.set(this._backgroundFillData),e}static _createBackgroundFillData(e,t,n){const i=n.r,r=n.g,o=n.b,s=new Uint8ClampedArray(e*t*4);let a=0;for(let n=0;n<t;n++)for(let t=0;t<e;t++)s[a]=i,s[a+1]=r,s[a+2]=o,s[a+3]=255,a+=4;return s}}class Ft{constructor(e,t){this.samplingRatio=e,this.minimapLines=t}static compute(e,t,n){if(0===e.renderMinimap||!e.isSampling)return[null,[]];const i=e.pixelRatio,r=e.lineHeight,o=e.scrollBeyondLastLine,{minimapLineCount:s}=Y.f.computeContainedMinimapLineCount({viewLineCount:t,scrollBeyondLastLine:o,height:e.editorHeight,lineHeight:r,pixelRatio:i}),a=t/s,l=a/2;if(!n||0===n.minimapLines.length){let e=[];if(e[0]=1,s>1){for(let t=0,n=s-1;t<n;t++)e[t]=Math.round(t*a+l);e[s-1]=t}return[new Ft(a,e),[]]}const c=n.minimapLines,d=c.length;let u=[],h=0,f=0,g=1;let p=[],m=null;for(let e=0;e<s;e++){const n=Math.max(g,Math.round(e*a)),i=Math.max(n,Math.round((e+1)*a));for(;h<d&&c[h]<n;){if(p.length<10){const e=h+1+f;m&&"deleted"===m.type&&m._oldIndex===h-1?m.deleteToLineNumber++:(m={type:"deleted",_oldIndex:h,deleteFromLineNumber:e,deleteToLineNumber:e},p.push(m)),f--}h++}let r;if(h<d&&c[h]<=i)r=c[h],h++;else if(r=0===e?1:e+1===s?t:Math.round(e*a+l),p.length<10){const t=h+1+f;m&&"inserted"===m.type&&m._i===e-1?m.insertToLineNumber++:(m={type:"inserted",_i:e,insertFromLineNumber:t,insertToLineNumber:t},p.push(m)),f++}u[e]=r,g=r}if(p.length<10)for(;h<d;){const e=h+1+f;m&&"deleted"===m.type&&m._oldIndex===h-1?m.deleteToLineNumber++:(m={type:"deleted",_oldIndex:h,deleteFromLineNumber:e,deleteToLineNumber:e},p.push(m)),f--,h++}else p=[{type:"flush"}];return[new Ft(a,u),p]}modelLineToMinimapLine(e){return Math.min(this.minimapLines.length,Math.max(1,Math.round(e/this.samplingRatio)))}modelLineRangeToMinimapLineRange(e,t){let n=this.modelLineToMinimapLine(e)-1;for(;n>0&&this.minimapLines[n-1]>=e;)n--;let i=this.modelLineToMinimapLine(t)-1;for(;i+1<this.minimapLines.length&&this.minimapLines[i+1]<=t;)i++;if(n===i){const i=this.minimapLines[n];if(i<e||i>t)return null}return[n+1,i+1]}decorationLineRangeToMinimapLineRange(e,t){let n=this.modelLineToMinimapLine(e),i=this.modelLineToMinimapLine(t);return e!==t&&i===n&&(i===this.minimapLines.length?n>1&&n--:i++),[n,i]}onLinesDeleted(e){const t=e.toLineNumber-e.fromLineNumber+1;let n=this.minimapLines.length,i=0;for(let r=this.minimapLines.length-1;r>=0&&!(this.minimapLines[r]<e.fromLineNumber);r--)this.minimapLines[r]<=e.toLineNumber?(this.minimapLines[r]=Math.max(1,e.fromLineNumber-1),n=Math.min(n,r),i=Math.max(i,r)):this.minimapLines[r]-=t;return[n,i]}onLinesInserted(e){const t=e.toLineNumber-e.fromLineNumber+1;for(let n=this.minimapLines.length-1;n>=0&&!(this.minimapLines[n]<e.fromLineNumber);n--)this.minimapLines[n]+=t}}class Bt extends E{constructor(e){super(e),this.tokensColorTracker=bt.getInstance(),this._selections=[],this._minimapSelections=null,this.options=new It(this._context.configuration,this._context.theme,this.tokensColorTracker);const[t]=Ft.compute(this.options,this._context.model.getLineCount(),null);this._samplingState=t,this._shouldCheckSampling=!1,this._actual=new Wt(e.theme,this)}dispose(){this._actual.dispose(),super.dispose()}getDomNode(){return this._actual.getDomNode()}_onOptionsMaybeChanged(){const e=new It(this._context.configuration,this._context.theme,this.tokensColorTracker);return!this.options.equals(e)&&(this.options=e,this._recreateLineSampling(),this._actual.onDidChangeOptions(),!0)}onConfigurationChanged(e){return this._onOptionsMaybeChanged()}onCursorStateChanged(e){return this._selections=e.selections,this._minimapSelections=null,this._actual.onSelectionChanged()}onDecorationsChanged(e){return!!e.affectsMinimap&&this._actual.onDecorationsChanged()}onFlushed(e){return this._samplingState&&(this._shouldCheckSampling=!0),this._actual.onFlushed()}onLinesChanged(e){if(this._samplingState){const t=this._samplingState.modelLineRangeToMinimapLineRange(e.fromLineNumber,e.toLineNumber);return!!t&&this._actual.onLinesChanged(t[0],t[1])}return this._actual.onLinesChanged(e.fromLineNumber,e.toLineNumber)}onLinesDeleted(e){if(this._samplingState){const[t,n]=this._samplingState.onLinesDeleted(e);return t<=n&&this._actual.onLinesChanged(t+1,n+1),this._shouldCheckSampling=!0,!0}return this._actual.onLinesDeleted(e.fromLineNumber,e.toLineNumber)}onLinesInserted(e){return this._samplingState?(this._samplingState.onLinesInserted(e),this._shouldCheckSampling=!0,!0):this._actual.onLinesInserted(e.fromLineNumber,e.toLineNumber)}onScrollChanged(e){return this._actual.onScrollChanged()}onThemeChanged(e){return this._context.model.invalidateMinimapColorCache(),this._actual.onThemeChanged(),this._onOptionsMaybeChanged(),!0}onTokensChanged(e){if(this._samplingState){let t=[];for(const n of e.ranges){const e=this._samplingState.modelLineRangeToMinimapLineRange(n.fromLineNumber,n.toLineNumber);e&&t.push({fromLineNumber:e[0],toLineNumber:e[1]})}return!!t.length&&this._actual.onTokensChanged(t)}return this._actual.onTokensChanged(e.ranges)}onTokensColorsChanged(e){return this._actual.onTokensColorsChanged()}onZonesChanged(e){return this._actual.onZonesChanged()}prepareRender(e){this._shouldCheckSampling&&(this._shouldCheckSampling=!1,this._recreateLineSampling())}render(e){let t=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber;this._samplingState&&(t=this._samplingState.modelLineToMinimapLine(t),n=this._samplingState.modelLineToMinimapLine(n));const i={viewportContainsWhitespaceGaps:e.viewportData.whitespaceViewportData.length>0,scrollWidth:e.scrollWidth,scrollHeight:e.scrollHeight,viewportStartLineNumber:t,viewportEndLineNumber:n,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,viewportWidth:e.viewportWidth,viewportHeight:e.viewportHeight};this._actual.render(i)}_recreateLineSampling(){this._minimapSelections=null;const e=Boolean(this._samplingState),[t,n]=Ft.compute(this.options,this._context.model.getLineCount(),this._samplingState);if(this._samplingState=t,e&&this._samplingState)for(const e of n)switch(e.type){case"deleted":this._actual.onLinesDeleted(e.deleteFromLineNumber,e.deleteToLineNumber);break;case"inserted":this._actual.onLinesInserted(e.insertFromLineNumber,e.insertToLineNumber);break;case"flush":this._actual.onFlushed()}}getLineCount(){return this._samplingState?this._samplingState.minimapLines.length:this._context.model.getLineCount()}getRealLineCount(){return this._context.model.getLineCount()}getLineContent(e){return this._samplingState?this._context.model.getLineContent(this._samplingState.minimapLines[e-1]):this._context.model.getLineContent(e)}getMinimapLinesRenderingData(e,t,n){if(this._samplingState){let i=[];for(let r=0,o=t-e+1;r<o;r++)n[r]?i[r]=this._context.model.getViewLineData(this._samplingState.minimapLines[e+r-1]):i[r]=null;return i}return this._context.model.getMinimapLinesRenderingData(e,t,n).data}getSelections(){if(null===this._minimapSelections)if(this._samplingState){this._minimapSelections=[];for(const e of this._selections){const[t,n]=this._samplingState.decorationLineRangeToMinimapLineRange(e.startLineNumber,e.endLineNumber);this._minimapSelections.push(new h.a(t,e.startColumn,n,e.endColumn))}}else this._minimapSelections=this._selections;return this._minimapSelections}getMinimapDecorationsInViewport(e,t){let n;if(this._samplingState){const i=this._samplingState.minimapLines[e-1],r=this._samplingState.minimapLines[t-1];n=new ne.a(i,1,r,this._context.model.getLineMaxColumn(r))}else n=new ne.a(e,1,t,this._context.model.getLineMaxColumn(t));const i=this._context.model.getDecorationsInViewport(n);if(this._samplingState){let e=[];for(const t of i){if(!t.options.minimap)continue;const n=t.range,i=this._samplingState.modelLineToMinimapLine(n.startLineNumber),r=this._samplingState.modelLineToMinimapLine(n.endLineNumber);e.push(new vt.e(new ne.a(i,n.startColumn,r,n.endColumn),t.options))}return e}return i}getOptions(){return this._context.model.getTextModelOptions()}revealLineNumber(e){this._samplingState&&(e=this._samplingState.minimapLines[e-1]),this._context.model.revealRange("mouse",!1,new ne.a(e,1,e,1),1,0)}setScrollTop(e){this._context.model.setScrollPosition({scrollTop:e},1)}}class Wt extends a.a{constructor(e,t){super(),this._renderDecorations=!1,this._gestureInProgress=!1,this._theme=e,this._model=t,this._lastRenderData=null,this._buffers=null,this._selectionColor=this._theme.getColor(yt.Pb),this._domNode=Object(f.b)(document.createElement("div")),T.write(this._domNode,8),this._domNode.setClassName(this._getMinimapDomNodeClassName()),this._domNode.setPosition("absolute"),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._shadow=Object(f.b)(document.createElement("div")),this._shadow.setClassName("minimap-shadow-hidden"),this._domNode.appendChild(this._shadow),this._canvas=Object(f.b)(document.createElement("canvas")),this._canvas.setPosition("absolute"),this._canvas.setLeft(0),this._domNode.appendChild(this._canvas),this._decorationsCanvas=Object(f.b)(document.createElement("canvas")),this._decorationsCanvas.setPosition("absolute"),this._decorationsCanvas.setClassName("minimap-decorations-layer"),this._decorationsCanvas.setLeft(0),this._domNode.appendChild(this._decorationsCanvas),this._slider=Object(f.b)(document.createElement("div")),this._slider.setPosition("absolute"),this._slider.setClassName("minimap-slider"),this._slider.setLayerHinting(!0),this._slider.setContain("strict"),this._domNode.appendChild(this._slider),this._sliderHorizontal=Object(f.b)(document.createElement("div")),this._sliderHorizontal.setPosition("absolute"),this._sliderHorizontal.setClassName("minimap-slider-horizontal"),this._slider.appendChild(this._sliderHorizontal),this._applyLayout(),this._mouseDownListener=r.n(this._domNode.domNode,"mousedown",e=>{if(e.preventDefault(),0===this._model.options.renderMinimap)return;if(!this._lastRenderData)return;if("proportional"!==this._model.options.size){if(e.leftButton&&this._lastRenderData){const t=r.C(this._slider.domNode),n=t.top+t.height/2;this._startSliderDragging(e.buttons,e.posx,n,e.posy,this._lastRenderData.renderedLayout)}return}const t=this._model.options.minimapLineHeight,n=this._model.options.canvasInnerHeight/this._model.options.canvasOuterHeight*e.browserEvent.offsetY;let i=Math.floor(n/t)+this._lastRenderData.renderedLayout.startLineNumber;i=Math.min(i,this._model.getLineCount()),this._model.revealLineNumber(i)}),this._sliderMouseMoveMonitor=new v.a,this._sliderMouseDownListener=r.n(this._slider.domNode,"mousedown",e=>{e.preventDefault(),e.stopPropagation(),e.leftButton&&this._lastRenderData&&this._startSliderDragging(e.buttons,e.posx,e.posy,e.posy,this._lastRenderData.renderedLayout)}),this._gestureDisposable=p.b.addTarget(this._domNode.domNode),this._sliderTouchStartListener=r.i(this._domNode.domNode,p.a.Start,e=>{e.preventDefault(),e.stopPropagation(),this._lastRenderData&&(this._slider.toggleClassName("active",!0),this._gestureInProgress=!0,this.scrollDueToTouchEvent(e))},{passive:!1}),this._sliderTouchMoveListener=r.i(this._domNode.domNode,p.a.Change,e=>{e.preventDefault(),e.stopPropagation(),this._lastRenderData&&this._gestureInProgress&&this.scrollDueToTouchEvent(e)},{passive:!1}),this._sliderTouchEndListener=r.n(this._domNode.domNode,p.a.End,e=>{e.preventDefault(),e.stopPropagation(),this._gestureInProgress=!1,this._slider.toggleClassName("active",!1)})}_startSliderDragging(e,t,n,i,r){this._slider.toggleClassName("active",!0);const o=(e,i)=>{const o=Math.abs(i-t);if(g.i&&o>Ot)return void this._model.setScrollTop(r.scrollTop);const s=e-n;this._model.setScrollTop(r.getDesiredScrollTopFromDelta(s))};i!==n&&o(i,t),this._sliderMouseMoveMonitor.startMonitoring(this._slider.domNode,e,v.b,e=>o(e.posy,e.posx),()=>{this._slider.toggleClassName("active",!1)})}scrollDueToTouchEvent(e){const t=this._domNode.domNode.getBoundingClientRect().top,n=this._lastRenderData.renderedLayout.getDesiredScrollTopFromTouchLocation(e.pageY-t);this._model.setScrollTop(n)}dispose(){this._mouseDownListener.dispose(),this._sliderMouseMoveMonitor.dispose(),this._sliderMouseDownListener.dispose(),this._gestureDisposable.dispose(),this._sliderTouchStartListener.dispose(),this._sliderTouchMoveListener.dispose(),this._sliderTouchEndListener.dispose(),super.dispose()}_getMinimapDomNodeClassName(){return"always"===this._model.options.showSlider?"minimap slider-always":"minimap slider-mouseover"}getDomNode(){return this._domNode}_applyLayout(){this._domNode.setLeft(this._model.options.minimapLeft),this._domNode.setWidth(this._model.options.minimapWidth),this._domNode.setHeight(this._model.options.minimapHeight),this._shadow.setHeight(this._model.options.minimapHeight),this._canvas.setWidth(this._model.options.canvasOuterWidth),this._canvas.setHeight(this._model.options.canvasOuterHeight),this._canvas.domNode.width=this._model.options.canvasInnerWidth,this._canvas.domNode.height=this._model.options.canvasInnerHeight,this._decorationsCanvas.setWidth(this._model.options.canvasOuterWidth),this._decorationsCanvas.setHeight(this._model.options.canvasOuterHeight),this._decorationsCanvas.domNode.width=this._model.options.canvasInnerWidth,this._decorationsCanvas.domNode.height=this._model.options.canvasInnerHeight,this._slider.setWidth(this._model.options.minimapWidth)}_getBuffer(){return this._buffers||this._model.options.canvasInnerWidth>0&&this._model.options.canvasInnerHeight>0&&(this._buffers=new jt(this._canvas.domNode.getContext("2d"),this._model.options.canvasInnerWidth,this._model.options.canvasInnerHeight,this._model.options.backgroundColor)),this._buffers?this._buffers.getBuffer():null}onDidChangeOptions(){this._lastRenderData=null,this._buffers=null,this._applyLayout(),this._domNode.setClassName(this._getMinimapDomNodeClassName())}onSelectionChanged(){return this._renderDecorations=!0,!0}onDecorationsChanged(){return this._renderDecorations=!0,!0}onFlushed(){return this._lastRenderData=null,!0}onLinesChanged(e,t){return!!this._lastRenderData&&this._lastRenderData.onLinesChanged(e,t)}onLinesDeleted(e,t){return this._lastRenderData&&this._lastRenderData.onLinesDeleted(e,t),!0}onLinesInserted(e,t){return this._lastRenderData&&this._lastRenderData.onLinesInserted(e,t),!0}onScrollChanged(){return this._renderDecorations=!0,!0}onThemeChanged(){return this._selectionColor=this._theme.getColor(yt.Pb),this._renderDecorations=!0,!0}onTokensChanged(e){return!!this._lastRenderData&&this._lastRenderData.onTokensChanged(e)}onTokensColorsChanged(){return this._lastRenderData=null,this._buffers=null,!0}onZonesChanged(){return this._lastRenderData=null,!0}render(e){if(0===this._model.options.renderMinimap)return this._shadow.setClassName("minimap-shadow-hidden"),this._sliderHorizontal.setWidth(0),void this._sliderHorizontal.setHeight(0);e.scrollLeft+e.viewportWidth>=e.scrollWidth?this._shadow.setClassName("minimap-shadow-hidden"):this._shadow.setClassName("minimap-shadow-visible");const t=At.create(this._model.options,e.viewportStartLineNumber,e.viewportEndLineNumber,e.viewportHeight,e.viewportContainsWhitespaceGaps,this._model.getLineCount(),this._model.getRealLineCount(),e.scrollTop,e.scrollHeight,this._lastRenderData?this._lastRenderData.renderedLayout:null);this._slider.setDisplay(t.sliderNeeded?"block":"none"),this._slider.setTop(t.sliderTop),this._slider.setHeight(t.sliderHeight);const n=e.scrollLeft/this._model.options.typicalHalfwidthCharacterWidth,i=Math.min(this._model.options.minimapWidth,Math.round(n*this._model.options.minimapCharWidth/this._model.options.pixelRatio));this._sliderHorizontal.setLeft(i),this._sliderHorizontal.setWidth(this._model.options.minimapWidth-i),this._sliderHorizontal.setTop(0),this._sliderHorizontal.setHeight(t.sliderHeight),this.renderDecorations(t),this._lastRenderData=this.renderLines(t)}renderDecorations(e){if(this._renderDecorations){this._renderDecorations=!1;const t=this._model.getSelections(),n=this._model.getMinimapDecorationsInViewport(e.startLineNumber,e.endLineNumber),{canvasInnerWidth:i,canvasInnerHeight:r}=this._model.options,o=this._model.options.minimapLineHeight,s=this._model.options.minimapCharWidth,a=this._model.getOptions().tabSize,l=this._decorationsCanvas.domNode.getContext("2d");l.clearRect(0,0,i,r);const c=new Map;for(let n=0;n<t.length;n++){const i=t[n];for(let t=i.startLineNumber;t<=i.endLineNumber;t++)this.renderDecorationOnLine(l,c,i,this._selectionColor,e,t,o,o,a,s)}for(let t=0;t<n.length;t++){const i=n[t];if(!i.options.minimap)continue;const r=i.options.minimap.getColor(this._theme);for(let t=i.range.startLineNumber;t<=i.range.endLineNumber;t++)switch(i.options.minimap.position){case Tt.c.Inline:this.renderDecorationOnLine(l,c,i.range,r,e,t,o,o,a,s);continue;case Tt.c.Gutter:const n=(t-e.startLineNumber)*o,d=2;this.renderDecoration(l,r,d,n,Nt,o);continue}}}}renderDecorationOnLine(e,t,n,i,r,o,s,a,l,c){const d=(o-r.startLineNumber)*a;if(d+s<0||d>this._model.options.canvasInnerHeight)return;let u=t.get(o);const h=!u;if(!u){const e=this._model.getLineContent(o);u=[Y.h];for(let t=1;t<e.length+1;t++){const n=e.charCodeAt(t-1),i=9===n?l*c:xe.E(n)?2*c:c;u[t]=u[t-1]+i}t.set(o,u)}const{startColumn:f,endColumn:g,startLineNumber:p,endLineNumber:m}=n,_=p===o?u[f-1]:Y.h,b=m>o?u.length-1:g-1;if(b>0){const t=u[b]-_||2;this.renderDecoration(e,i,_,d,t,s)}h&&this.renderLineHighlight(e,i,d,s)}renderLineHighlight(e,t,n,i){e.fillStyle=t&&t.transparent(.5).toString()||"",e.fillRect(Y.h,n,e.canvas.width,i)}renderDecoration(e,t,n,i,r,o){e.fillStyle=t&&t.toString()||"",e.fillRect(n,i,r,o)}renderLines(e){const t=e.startLineNumber,n=e.endLineNumber,i=this._model.options.minimapLineHeight;if(this._lastRenderData&&this._lastRenderData.linesEquals(e)){const t=this._lastRenderData._get();return new Pt(e,t.imageData,t.lines)}const r=this._getBuffer();if(!r)return null;let[o,s,a]=Wt._renderUntouchedLines(r,t,n,i,this._lastRenderData);const l=this._model.getMinimapLinesRenderingData(t,n,a),c=this._model.getOptions().tabSize,d=this._model.options.backgroundColor,u=this._model.tokensColorTracker,h=u.backgroundIsLight(),f=this._model.options.renderMinimap,g=this._model.options.charRenderer(),p=this._model.options.fontScale,m=this._model.options.minimapCharWidth,_=(1===f?2:3)*p,b=i>_?Math.floor((i-_)/2):0;let v=0;const y=[];for(let e=0,o=n-t+1;e<o;e++)a[e]&&Wt._renderLine(r,d,h,f,m,u,g,v,b,c,l[e],p,i),y[e]=new Rt(v),v+=i;const w=-1===o?0:o,C=(-1===s?r.height:s)-w;return this._canvas.domNode.getContext("2d").putImageData(r,0,0,0,w,r.width,C),new Pt(e,r,y)}static _renderUntouchedLines(e,t,n,i,r){const o=[];if(!r){for(let e=0,i=n-t+1;e<i;e++)o[e]=!0;return[-1,-1,o]}const s=r._get(),a=s.imageData.data,l=s.rendLineNumberStart,c=s.lines,d=c.length,u=e.width,h=e.data,f=(n-t+1)*i*u*4;let g=-1,p=-1,m=-1,_=-1,b=-1,v=-1,y=0;for(let e=t;e<=n;e++){const n=e-t,r=e-l,s=r>=0&&r<d?c[r].dy:-1;if(-1===s){o[n]=!0,y+=i;continue}const w=s*u*4,C=(s+i)*u*4,S=y*u*4,k=(y+i)*u*4;_===w&&v===S?(_=C,v=k):(-1!==m&&(h.set(a.subarray(m,_),b),-1===g&&0===m&&m===b&&(g=_),-1===p&&_===f&&m===b&&(p=m)),m=w,_=C,b=S,v=k),o[n]=!1,y+=i}return-1!==m&&(h.set(a.subarray(m,_),b),-1===g&&0===m&&m===b&&(g=_),-1===p&&_===f&&m===b&&(p=m)),[-1===g?-1:g/(4*u),-1===p?-1:p/(4*u),o]}static _renderLine(e,t,n,i,r,o,s,a,l,c,d,u,h){const f=d.content,g=d.tokens,p=e.width-r,m=1===h;let _=Y.h,b=0,v=0;for(let d=0,h=g.getCount();d<h;d++){const h=g.getEndOffset(d),y=g.getForeground(d),w=o.getColor(y);for(;b<h;b++){if(_>p)return;const o=f.charCodeAt(b);if(9===o){const e=c-(b+v)%c;v+=e-1,_+=e*r}else if(32===o)_+=r;else{const c=xe.E(o)?2:1;for(let d=0;d<c;d++)if(2===i?s.blockRenderChar(e,_,a+l,w,t,n,m):s.renderChar(e,_,a+l,o,w,t,u,n,m),(_+=r)>p)return}}}}}Object(H.g)((e,t)=>{const n=e.getColor(yt.Mb);n&&t.addRule(`.monaco-editor .minimap > canvas { opacity: ${n.rgba.a}; will-change: opacity; }`);const i=e.getColor(yt.Rb);i&&t.addRule(`.monaco-editor .minimap-slider .minimap-slider-horizontal { background: ${i}; }`);const r=e.getColor(yt.Sb);r&&t.addRule(`.monaco-editor .minimap-slider:hover .minimap-slider-horizontal { background: ${r}; }`);const o=e.getColor(yt.Qb);o&&t.addRule(`.monaco-editor .minimap-slider.active .minimap-slider-horizontal { background: ${o}; }`);const s=e.getColor(yt.ic);s&&t.addRule(`.monaco-editor .minimap-shadow-visible { box-shadow: ${s} -6px 0 6px -6px inset; }`)});n(601);class Ht extends E{constructor(e){super(e);const t=this._context.configuration.options.get(117);this._widgets={},this._verticalScrollbarWidth=t.verticalScrollbarWidth,this._minimapWidth=t.minimap.minimapWidth,this._horizontalScrollbarHeight=t.horizontalScrollbarHeight,this._editorHeight=t.height,this._editorWidth=t.width,this._domNode=Object(f.b)(document.createElement("div")),T.write(this._domNode,4),this._domNode.setClassName("overlayWidgets")}dispose(){super.dispose(),this._widgets={}}getDomNode(){return this._domNode}onConfigurationChanged(e){const t=this._context.configuration.options.get(117);return this._verticalScrollbarWidth=t.verticalScrollbarWidth,this._minimapWidth=t.minimap.minimapWidth,this._horizontalScrollbarHeight=t.horizontalScrollbarHeight,this._editorHeight=t.height,this._editorWidth=t.width,!0}addWidget(e){const t=Object(f.b)(e.getDomNode());this._widgets[e.getId()]={widget:e,preference:null,domNode:t},t.setPosition("absolute"),t.setAttribute("widgetId",e.getId()),this._domNode.appendChild(t),this.setShouldRender()}setWidgetPosition(e,t){const n=this._widgets[e.getId()];return n.preference!==t&&(n.preference=t,this.setShouldRender(),!0)}removeWidget(e){const t=e.getId();if(this._widgets.hasOwnProperty(t)){const e=this._widgets[t].domNode.domNode;delete this._widgets[t],e.parentNode.removeChild(e),this.setShouldRender()}}_renderWidget(e){const t=e.domNode;if(null!==e.preference)if(0===e.preference)t.setTop(0),t.setRight(2*this._verticalScrollbarWidth+this._minimapWidth);else if(1===e.preference){const e=t.domNode.clientHeight;t.setTop(this._editorHeight-e-2*this._horizontalScrollbarHeight),t.setRight(2*this._verticalScrollbarWidth+this._minimapWidth)}else 2===e.preference&&(t.setTop(0),t.domNode.style.right="50%");else t.unsetTop()}prepareRender(e){}render(e){this._domNode.setWidth(this._editorWidth);const t=Object.keys(this._widgets);for(let e=0,n=t.length;e<n;e++){const n=t[e];this._renderWidget(this._widgets[n])}}}var Yt=n(13);class Vt{constructor(e,t){const n=e.options;this.lineHeight=n.get(51),this.pixelRatio=n.get(115),this.overviewRulerLanes=n.get(65),this.renderBorder=n.get(64);const i=t.getColor(Ee.m);this.borderColor=i?i.toString():null,this.hideCursor=n.get(44);const r=t.getColor(Ee.g);this.cursorColor=r?r.transparent(.7).toString():null,this.themeType=t.type;const o=n.get(56),s=o.enabled,a=o.side,l=s?t.getColor(Ee.l)||_t.C.getDefaultBackground():null;this.backgroundColor=null===l||"left"===a?null:Yt.a.Format.CSS.formatHex(l);const c=n.get(117).overviewRuler;this.top=c.top,this.right=c.right,this.domWidth=c.width,this.domHeight=c.height,0===this.overviewRulerLanes?(this.canvasWidth=0,this.canvasHeight=0):(this.canvasWidth=this.domWidth*this.pixelRatio|0,this.canvasHeight=this.domHeight*this.pixelRatio|0);const[d,u]=this._initLanes(1,this.canvasWidth,this.overviewRulerLanes);this.x=d,this.w=u}_initLanes(e,t,n){const i=t-e;if(n>=3){const t=Math.floor(i/3),n=Math.floor(i/3),r=i-t-n,o=e+t;return[[0,e,o,e,e+t+r,e,o,e],[0,t,r,t+r,n,t+r+n,r+n,t+r+n]]}if(2===n){const t=Math.floor(i/2),n=i-t;return[[0,e,e,e,e+t,e,e,e],[0,t,t,t,n,t+n,t+n,t+n]]}return[[0,e,e,e,e,e,e,e],[0,i,i,i,i,i,i,i]]}equals(e){return this.lineHeight===e.lineHeight&&this.pixelRatio===e.pixelRatio&&this.overviewRulerLanes===e.overviewRulerLanes&&this.renderBorder===e.renderBorder&&this.borderColor===e.borderColor&&this.hideCursor===e.hideCursor&&this.cursorColor===e.cursorColor&&this.themeType===e.themeType&&this.backgroundColor===e.backgroundColor&&this.top===e.top&&this.right===e.right&&this.domWidth===e.domWidth&&this.domHeight===e.domHeight&&this.canvasWidth===e.canvasWidth&&this.canvasHeight===e.canvasHeight}}class zt extends E{constructor(e){super(e),this._domNode=Object(f.b)(document.createElement("canvas")),this._domNode.setClassName("decorationsOverviewRuler"),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._domNode.setAttribute("aria-hidden","true"),this._updateSettings(!1),this._tokensColorTrackerListener=_t.C.onDidChange(e=>{e.changedColorMap&&this._updateSettings(!0)}),this._cursorPositions=[]}dispose(){super.dispose(),this._tokensColorTrackerListener.dispose()}_updateSettings(e){const t=new Vt(this._context.configuration,this._context.theme);return(!this._settings||!this._settings.equals(t))&&(this._settings=t,this._domNode.setTop(this._settings.top),this._domNode.setRight(this._settings.right),this._domNode.setWidth(this._settings.domWidth),this._domNode.setHeight(this._settings.domHeight),this._domNode.domNode.width=this._settings.canvasWidth,this._domNode.domNode.height=this._settings.canvasHeight,e&&this._render(),!0)}onConfigurationChanged(e){return this._updateSettings(!1)}onCursorStateChanged(e){this._cursorPositions=[];for(let t=0,n=e.selections.length;t<n;t++)this._cursorPositions[t]=e.selections[t].getPosition();return this._cursorPositions.sort(te.a.compare),!0}onDecorationsChanged(e){return!!e.affectsOverviewRuler}onFlushed(e){return!0}onScrollChanged(e){return e.scrollHeightChanged}onZonesChanged(e){return!0}onThemeChanged(e){return this._context.model.invalidateOverviewRulerColorCache(),this._updateSettings(!1)}getDomNode(){return this._domNode.domNode}prepareRender(e){}render(e){this._render()}_render(){if(0===this._settings.overviewRulerLanes)return void this._domNode.setBackgroundColor(this._settings.backgroundColor?this._settings.backgroundColor:"");const e=this._settings.canvasWidth,t=this._settings.canvasHeight,n=this._settings.lineHeight,i=this._context.viewLayout,r=t/this._context.viewLayout.getScrollHeight(),o=this._context.model.getAllOverviewRulerDecorations(this._context.theme),s=6*this._settings.pixelRatio|0,a=s/2|0,l=this._domNode.domNode.getContext("2d");null===this._settings.backgroundColor?l.clearRect(0,0,e,t):(l.fillStyle=this._settings.backgroundColor,l.fillRect(0,0,e,t));const c=this._settings.x,d=this._settings.w,u=Object.keys(o);u.sort();for(let e=0,h=u.length;e<h;e++){const h=u[e],f=o[h];l.fillStyle=h;let g=0,p=0,m=0;for(let e=0,o=f.length;e<o;e++){const o=f[3*e],u=f[3*e+1],h=f[3*e+2];let _=i.getVerticalOffsetForLineNumber(u)*r|0,b=(i.getVerticalOffsetForLineNumber(h)+n)*r|0;if(b-_<s){let e=(_+b)/2|0;e<a?e=a:e+a>t&&(e=t-a),_=e-a,b=e+a}_>m+1||o!==g?(0!==e&&l.fillRect(c[g],p,d[g],m-p),g=o,p=_,m=b):b>m&&(m=b)}l.fillRect(c[g],p,d[g],m-p)}if(!this._settings.hideCursor&&this._settings.cursorColor){const e=2*this._settings.pixelRatio|0,n=e/2|0,o=this._settings.x[7],s=this._settings.w[7];l.fillStyle=this._settings.cursorColor;let a=-100,c=-100;for(let d=0,u=this._cursorPositions.length;d<u;d++){const u=this._cursorPositions[d];let h=i.getVerticalOffsetForLineNumber(u.lineNumber)*r|0;h<n?h=n:h+n>t&&(h=t-n);const f=h-n,g=f+e;f>c+1?(0!==d&&l.fillRect(o,a,s,c-a),a=f,c=g):g>c&&(c=g)}l.fillRect(o,a,s,c-a)}this._settings.renderBorder&&this._settings.borderColor&&this._settings.overviewRulerLanes>0&&(l.beginPath(),l.lineWidth=1,l.strokeStyle=this._settings.borderColor,l.moveTo(0,0),l.lineTo(0,t),l.stroke(),l.moveTo(0,0),l.lineTo(e,0),l.stroke())}}var Ut=n(190);class $t extends D{constructor(e,t){super(),this._context=e;const n=this._context.configuration.options;this._domNode=Object(f.b)(document.createElement("canvas")),this._domNode.setClassName(t),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._zoneManager=new Ut.b(e=>this._context.viewLayout.getVerticalOffsetForLineNumber(e)),this._zoneManager.setDOMWidth(0),this._zoneManager.setDOMHeight(0),this._zoneManager.setOuterHeight(this._context.viewLayout.getScrollHeight()),this._zoneManager.setLineHeight(n.get(51)),this._zoneManager.setPixelRatio(n.get(115)),this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return e.hasChanged(51)&&(this._zoneManager.setLineHeight(t.get(51)),this._render()),e.hasChanged(115)&&(this._zoneManager.setPixelRatio(t.get(115)),this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render()),!0}onFlushed(e){return this._render(),!0}onScrollChanged(e){return e.scrollHeightChanged&&(this._zoneManager.setOuterHeight(e.scrollHeight),this._render()),!0}onZonesChanged(e){return this._render(),!0}getDomNode(){return this._domNode.domNode}setLayout(e){this._domNode.setTop(e.top),this._domNode.setRight(e.right);let t=!1;t=this._zoneManager.setDOMWidth(e.width)||t,(t=this._zoneManager.setDOMHeight(e.height)||t)&&(this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render())}setZones(e){this._zoneManager.setZones(e),this._render()}_render(){if(0===this._zoneManager.getOuterHeight())return!1;const e=this._zoneManager.getCanvasWidth(),t=this._zoneManager.getCanvasHeight(),n=this._zoneManager.resolveColorZones(),i=this._zoneManager.getId2Color(),r=this._domNode.domNode.getContext("2d");return r.clearRect(0,0,e,t),n.length>0&&this._renderOneLane(r,n,i,e),!0}_renderOneLane(e,t,n,i){let r=0,o=0,s=0;for(const a of t){const t=a.colorId,l=a.from,c=a.to;t!==r?(e.fillRect(0,o,i,s-o),r=t,e.fillStyle=n[r],o=l,s=c):s>=l?s=Math.max(s,c):(e.fillRect(0,o,i,s-o),o=l,s=c)}e.fillRect(0,o,i,s-o)}}n(602);class qt extends E{constructor(e){super(e),this.domNode=Object(f.b)(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.domNode.setClassName("view-rulers"),this._renderedRulers=[];const t=this._context.configuration.options;this._rulers=t.get(83),this._typicalHalfwidthCharacterWidth=t.get(36).typicalHalfwidthCharacterWidth}dispose(){super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._rulers=t.get(83),this._typicalHalfwidthCharacterWidth=t.get(36).typicalHalfwidthCharacterWidth,!0}onScrollChanged(e){return e.scrollHeightChanged}prepareRender(e){}_ensureRulersCount(){const e=this._renderedRulers.length,t=this._rulers.length;if(e===t)return;if(e<t){const{tabSize:n}=this._context.model.getTextModelOptions(),i=n;let r=t-e;for(;r>0;){const e=Object(f.b)(document.createElement("div"));e.setClassName("view-ruler"),e.setWidth(i),this.domNode.appendChild(e),this._renderedRulers.push(e),r--}return}let n=e-t;for(;n>0;){const e=this._renderedRulers.pop();this.domNode.removeChild(e),n--}}render(e){this._ensureRulersCount();for(let t=0,n=this._rulers.length;t<n;t++){const n=this._renderedRulers[t],i=this._rulers[t];n.setBoxShadow(i.color?`1px 0 0 0 ${i.color} inset`:""),n.setHeight(Math.min(e.scrollHeight,1e6)),n.setLeft(i.column*this._typicalHalfwidthCharacterWidth)}}}Object(H.g)((e,t)=>{const n=e.getColor(Ee.n);n&&t.addRule(`.monaco-editor .view-ruler { box-shadow: 1px 0 0 0 ${n} inset; }`)});n(603);class Kt extends E{constructor(e){super(e),this._scrollTop=0,this._width=0,this._updateWidth(),this._shouldShow=!1;const t=this._context.configuration.options.get(84);this._useShadows=t.useShadows,this._domNode=Object(f.b)(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true")}dispose(){super.dispose()}_updateShouldShow(){const e=this._useShadows&&this._scrollTop>0;return this._shouldShow!==e&&(this._shouldShow=e,!0)}getDomNode(){return this._domNode}_updateWidth(){const e=this._context.configuration.options.get(117);0===e.minimap.renderMinimap||e.minimap.minimapWidth>0&&0===e.minimap.minimapLeft?this._width=e.width:this._width=e.width-e.minimap.minimapWidth-e.verticalScrollbarWidth}onConfigurationChanged(e){const t=this._context.configuration.options.get(84);return this._useShadows=t.useShadows,this._updateWidth(),this._updateShouldShow(),!0}onScrollChanged(e){return this._scrollTop=e.scrollTop,this._updateShouldShow()}prepareRender(e){}render(e){this._domNode.setWidth(this._width),this._domNode.setClassName(this._shouldShow?"scroll-decoration":"")}}Object(H.g)((e,t)=>{const n=e.getColor(yt.ic);n&&t.addRule(`.monaco-editor .scroll-decoration { box-shadow: ${n} 0 6px 6px -6px inset; }`)});n(604);class Gt{constructor(e){this.left=e.left,this.width=e.width,this.startStyle=null,this.endStyle=null}}class Zt{constructor(e,t){this.lineNumber=e,this.ranges=t}}function Jt(e){return new Gt(e)}function Xt(e){return new Zt(e.lineNumber,e.ranges.map(Jt))}const Qt=b.f;class en extends De{constructor(e){super(),this._previousFrameVisibleRangesWithStyle=[],this._context=e;const t=this._context.configuration.options;this._lineHeight=t.get(51),this._roundedSelection=t.get(82),this._typicalHalfwidthCharacterWidth=t.get(36).typicalHalfwidthCharacterWidth,this._selections=[],this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._lineHeight=t.get(51),this._roundedSelection=t.get(82),this._typicalHalfwidthCharacterWidth=t.get(36).typicalHalfwidthCharacterWidth,!0}onCursorStateChanged(e){return this._selections=e.selections.slice(0),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_visibleRangesHaveGaps(e){for(let t=0,n=e.length;t<n;t++){if(e[t].ranges.length>1)return!0}return!1}_enrichVisibleRangesWithStyle(e,t,n){const i=this._typicalHalfwidthCharacterWidth/4;let r=null,o=null;if(n&&n.length>0&&t.length>0){const i=t[0].lineNumber;if(i===e.startLineNumber)for(let e=0;!r&&e<n.length;e++)n[e].lineNumber===i&&(r=n[e].ranges[0]);const s=t[t.length-1].lineNumber;if(s===e.endLineNumber)for(let e=n.length-1;!o&&e>=0;e--)n[e].lineNumber===s&&(o=n[e].ranges[0]);r&&!r.startStyle&&(r=null),o&&!o.startStyle&&(o=null)}for(let e=0,n=t.length;e<n;e++){const s=t[e].ranges[0],a=s.left,l=s.left+s.width,c={top:0,bottom:0},d={top:0,bottom:0};if(e>0){const n=t[e-1].ranges[0].left,r=t[e-1].ranges[0].left+t[e-1].ranges[0].width;tn(a-n)<i?c.top=2:a>n&&(c.top=1),tn(l-r)<i?d.top=2:n<l&&l<r&&(d.top=1)}else r&&(c.top=r.startStyle.top,d.top=r.endStyle.top);if(e+1<n){const n=t[e+1].ranges[0].left,r=t[e+1].ranges[0].left+t[e+1].ranges[0].width;tn(a-n)<i?c.bottom=2:n<a&&a<r&&(c.bottom=1),tn(l-r)<i?d.bottom=2:l<r&&(d.bottom=1)}else o&&(c.bottom=o.startStyle.bottom,d.bottom=o.endStyle.bottom);s.startStyle=c,s.endStyle=d}}_getVisibleRangesWithStyle(e,t,n){const i=(t.linesVisibleRangesForRange(e,!0)||[]).map(Xt),r=this._visibleRangesHaveGaps(i);return Qt||r||!this._roundedSelection||this._enrichVisibleRangesWithStyle(t.visibleRange,i,n),i}_createSelectionPiece(e,t,n,i,r){return'<div class="cslr '+n+'" style="top:'+e.toString()+"px;left:"+i.toString()+"px;width:"+r.toString()+"px;height:"+t+'px;"></div>'}_actualRenderOneSelection(e,t,n,i){if(0===i.length)return;const r=!!i[0].ranges[0].startStyle,o=this._lineHeight.toString(),s=(this._lineHeight-1).toString(),a=i[0].lineNumber,l=i[i.length-1].lineNumber;for(let c=0,d=i.length;c<d;c++){const d=i[c],u=d.lineNumber,h=u-t,f=n&&(u===l||u===a)?s:o,g=n&&u===a?1:0;let p="",m="";for(let e=0,t=d.ranges.length;e<t;e++){const t=d.ranges[e];if(r){const e=t.startStyle,n=t.endStyle;if(1===e.top||1===e.bottom){p+=this._createSelectionPiece(g,f,en.SELECTION_CLASS_NAME,t.left-en.ROUNDED_PIECE_WIDTH,en.ROUNDED_PIECE_WIDTH);let n=en.EDITOR_BACKGROUND_CLASS_NAME;1===e.top&&(n+=" "+en.SELECTION_TOP_RIGHT),1===e.bottom&&(n+=" "+en.SELECTION_BOTTOM_RIGHT),p+=this._createSelectionPiece(g,f,n,t.left-en.ROUNDED_PIECE_WIDTH,en.ROUNDED_PIECE_WIDTH)}if(1===n.top||1===n.bottom){p+=this._createSelectionPiece(g,f,en.SELECTION_CLASS_NAME,t.left+t.width,en.ROUNDED_PIECE_WIDTH);let e=en.EDITOR_BACKGROUND_CLASS_NAME;1===n.top&&(e+=" "+en.SELECTION_TOP_LEFT),1===n.bottom&&(e+=" "+en.SELECTION_BOTTOM_LEFT),p+=this._createSelectionPiece(g,f,e,t.left+t.width,en.ROUNDED_PIECE_WIDTH)}}let n=en.SELECTION_CLASS_NAME;if(r){const e=t.startStyle,i=t.endStyle;0===e.top&&(n+=" "+en.SELECTION_TOP_LEFT),0===e.bottom&&(n+=" "+en.SELECTION_BOTTOM_LEFT),0===i.top&&(n+=" "+en.SELECTION_TOP_RIGHT),0===i.bottom&&(n+=" "+en.SELECTION_BOTTOM_RIGHT)}m+=this._createSelectionPiece(g,f,n,t.left,t.width)}e[h][0]+=p,e[h][1]+=m}}prepareRender(e){const t=[],n=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber;for(let e=n;e<=i;e++){t[e-n]=["",""]}const r=[];for(let i=0,o=this._selections.length;i<o;i++){const o=this._selections[i];if(o.isEmpty()){r[i]=null;continue}const s=this._getVisibleRangesWithStyle(o,e,this._previousFrameVisibleRangesWithStyle[i]);r[i]=s,this._actualRenderOneSelection(t,n,this._selections.length>1,s)}this._previousFrameVisibleRangesWithStyle=r,this._renderResult=t.map(([e,t])=>e+t)}render(e,t){if(!this._renderResult)return"";const n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]}}function tn(e){return e<0?-e:e}en.SELECTION_CLASS_NAME="selected-text",en.SELECTION_TOP_LEFT="top-left-radius",en.SELECTION_BOTTOM_LEFT="bottom-left-radius",en.SELECTION_TOP_RIGHT="top-right-radius",en.SELECTION_BOTTOM_RIGHT="bottom-right-radius",en.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background",en.ROUNDED_PIECE_WIDTH=10,Object(H.g)((e,t)=>{const n=e.getColor(yt.O);n&&t.addRule(`.monaco-editor .focused .selected-text { background-color: ${n}; }`);const i=e.getColor(yt.J);i&&t.addRule(`.monaco-editor .selected-text { background-color: ${i}; }`);const r=e.getColor(yt.P);r&&!r.isTransparent()&&t.addRule(`.monaco-editor .view-line span.inline-selected-text { color: ${r}; }`)});n(605);class nn{constructor(e,t,n,i,r,o){this.top=e,this.left=t,this.width=n,this.height=i,this.textContent=r,this.textContentClassName=o}}class rn{constructor(e){this._context=e;const t=this._context.configuration.options,n=t.get(36);this._cursorStyle=t.get(19),this._lineHeight=t.get(51),this._typicalHalfwidthCharacterWidth=n.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(t.get(22),this._typicalHalfwidthCharacterWidth),this._isVisible=!0,this._domNode=Object(f.b)(document.createElement("div")),this._domNode.setClassName(`cursor ${Ie.a}`),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),c.a.applyFontInfo(this._domNode,n),this._domNode.setDisplay("none"),this._position=new te.a(1,1),this._lastRenderedContent="",this._renderData=null}getDomNode(){return this._domNode}getPosition(){return this._position}show(){this._isVisible||(this._domNode.setVisibility("inherit"),this._isVisible=!0)}hide(){this._isVisible&&(this._domNode.setVisibility("hidden"),this._isVisible=!1)}onConfigurationChanged(e){const t=this._context.configuration.options,n=t.get(36);return this._cursorStyle=t.get(19),this._lineHeight=t.get(51),this._typicalHalfwidthCharacterWidth=n.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(t.get(22),this._typicalHalfwidthCharacterWidth),c.a.applyFontInfo(this._domNode,n),!0}onCursorPositionChanged(e){return this._position=e,!0}_prepareRender(e){let t="";if(this._cursorStyle===Y.i.Line||this._cursorStyle===Y.i.LineThin){const n=e.visibleRangeForPosition(this._position);if(!n||n.outsideRenderedLine)return null;let i;if(this._cursorStyle===Y.i.Line){if((i=r.t(this._lineCursorWidth>0?this._lineCursorWidth:2))>2){const e=this._context.model.getLineContent(this._position.lineNumber),n=xe.L(e,this._position.column-1);t=e.substr(this._position.column-1,n)}}else i=r.t(1);let o=n.left;i>=2&&o>=1&&(o-=1);const s=e.getVerticalOffsetForLineNumber(this._position.lineNumber)-e.bigNumbersDelta;return new nn(s,o,i,this._lineHeight,t,"")}const n=this._context.model.getLineContent(this._position.lineNumber),i=xe.L(n,this._position.column-1),o=e.linesVisibleRangesForRange(new ne.a(this._position.lineNumber,this._position.column,this._position.lineNumber,this._position.column+i),!1);if(!o||0===o.length)return null;const s=o[0];if(s.outsideRenderedLine||0===s.ranges.length)return null;const a=s.ranges[0],l=a.width<1?this._typicalHalfwidthCharacterWidth:a.width;let c="";if(this._cursorStyle===Y.i.Block){const e=this._context.model.getViewLineData(this._position.lineNumber);t=n.substr(this._position.column-1,i);const r=e.tokens.findTokenIndexAtOffset(this._position.column-1);c=e.tokens.getClassName(r)}let d=e.getVerticalOffsetForLineNumber(this._position.lineNumber)-e.bigNumbersDelta,u=this._lineHeight;return this._cursorStyle!==Y.i.Underline&&this._cursorStyle!==Y.i.UnderlineThin||(d+=this._lineHeight-2,u=2),new nn(d,a.left,l,u,t,c)}prepareRender(e){this._renderData=this._prepareRender(e)}render(e){return this._renderData?(this._lastRenderedContent!==this._renderData.textContent&&(this._lastRenderedContent=this._renderData.textContent,this._domNode.domNode.textContent=this._lastRenderedContent),this._domNode.setClassName(`cursor ${Ie.a} ${this._renderData.textContentClassName}`),this._domNode.setDisplay("block"),this._domNode.setTop(this._renderData.top),this._domNode.setLeft(this._renderData.left),this._domNode.setWidth(this._renderData.width),this._domNode.setLineHeight(this._renderData.height),this._domNode.setHeight(this._renderData.height),{domNode:this._domNode.domNode,position:this._position,contentLeft:this._renderData.left,height:this._renderData.height,width:2}):(this._domNode.setDisplay("none"),null)}}class on extends E{constructor(e){super(e);const t=this._context.configuration.options;this._readOnly=t.get(72),this._cursorBlinking=t.get(17),this._cursorStyle=t.get(19),this._cursorSmoothCaretAnimation=t.get(18),this._selectionIsEmpty=!0,this._isVisible=!1,this._primaryCursor=new rn(this._context),this._secondaryCursors=[],this._renderData=[],this._domNode=Object(f.b)(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._updateDomClassName(),this._domNode.appendChild(this._primaryCursor.getDomNode()),this._startCursorBlinkAnimation=new _.e,this._cursorFlatBlinkInterval=new _.c,this._blinkingEnabled=!1,this._editorHasFocus=!1,this._updateBlinking()}dispose(){super.dispose(),this._startCursorBlinkAnimation.dispose(),this._cursorFlatBlinkInterval.dispose()}getDomNode(){return this._domNode}onConfigurationChanged(e){const t=this._context.configuration.options;this._readOnly=t.get(72),this._cursorBlinking=t.get(17),this._cursorStyle=t.get(19),this._cursorSmoothCaretAnimation=t.get(18),this._updateBlinking(),this._updateDomClassName(),this._primaryCursor.onConfigurationChanged(e);for(let t=0,n=this._secondaryCursors.length;t<n;t++)this._secondaryCursors[t].onConfigurationChanged(e);return!0}_onCursorPositionChanged(e,t){if(this._primaryCursor.onCursorPositionChanged(e),this._updateBlinking(),this._secondaryCursors.length<t.length){const e=t.length-this._secondaryCursors.length;for(let t=0;t<e;t++){const e=new rn(this._context);this._domNode.domNode.insertBefore(e.getDomNode().domNode,this._primaryCursor.getDomNode().domNode.nextSibling),this._secondaryCursors.push(e)}}else if(this._secondaryCursors.length>t.length){const e=this._secondaryCursors.length-t.length;for(let t=0;t<e;t++)this._domNode.removeChild(this._secondaryCursors[0].getDomNode()),this._secondaryCursors.splice(0,1)}for(let e=0;e<t.length;e++)this._secondaryCursors[e].onCursorPositionChanged(t[e])}onCursorStateChanged(e){const t=[];for(let n=0,i=e.selections.length;n<i;n++)t[n]=e.selections[n].getPosition();this._onCursorPositionChanged(t[0],t.slice(1));const n=e.selections[0].isEmpty();return this._selectionIsEmpty!==n&&(this._selectionIsEmpty=n,this._updateDomClassName()),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onFocusChanged(e){return this._editorHasFocus=e.isFocused,this._updateBlinking(),!1}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return!0}onTokensChanged(e){const t=t=>{for(let n=0,i=e.ranges.length;n<i;n++)if(e.ranges[n].fromLineNumber<=t.lineNumber&&t.lineNumber<=e.ranges[n].toLineNumber)return!0;return!1};if(t(this._primaryCursor.getPosition()))return!0;for(const e of this._secondaryCursors)if(t(e.getPosition()))return!0;return!1}onZonesChanged(e){return!0}_getCursorBlinking(){return this._editorHasFocus?this._readOnly?5:this._cursorBlinking:0}_updateBlinking(){this._startCursorBlinkAnimation.cancel(),this._cursorFlatBlinkInterval.cancel();const e=this._getCursorBlinking(),t=0===e,n=5===e;t?this._hide():this._show(),this._blinkingEnabled=!1,this._updateDomClassName(),t||n||(1===e?this._cursorFlatBlinkInterval.cancelAndSet(()=>{this._isVisible?this._hide():this._show()},on.BLINK_INTERVAL):this._startCursorBlinkAnimation.setIfNotSet(()=>{this._blinkingEnabled=!0,this._updateDomClassName()},on.BLINK_INTERVAL))}_updateDomClassName(){this._domNode.setClassName(this._getClassName())}_getClassName(){let e="cursors-layer";switch(this._selectionIsEmpty||(e+=" has-selection"),this._cursorStyle){case Y.i.Line:e+=" cursor-line-style";break;case Y.i.Block:e+=" cursor-block-style";break;case Y.i.Underline:e+=" cursor-underline-style";break;case Y.i.LineThin:e+=" cursor-line-thin-style";break;case Y.i.BlockOutline:e+=" cursor-block-outline-style";break;case Y.i.UnderlineThin:e+=" cursor-underline-thin-style";break;default:e+=" cursor-line-style"}if(this._blinkingEnabled)switch(this._getCursorBlinking()){case 1:e+=" cursor-blink";break;case 2:e+=" cursor-smooth";break;case 3:e+=" cursor-phase";break;case 4:e+=" cursor-expand";break;case 5:e+=" cursor-solid";break;default:e+=" cursor-solid"}else e+=" cursor-solid";return this._cursorSmoothCaretAnimation&&(e+=" cursor-smooth-caret-animation"),e}_show(){this._primaryCursor.show();for(let e=0,t=this._secondaryCursors.length;e<t;e++)this._secondaryCursors[e].show();this._isVisible=!0}_hide(){this._primaryCursor.hide();for(let e=0,t=this._secondaryCursors.length;e<t;e++)this._secondaryCursors[e].hide();this._isVisible=!1}prepareRender(e){this._primaryCursor.prepareRender(e);for(let t=0,n=this._secondaryCursors.length;t<n;t++)this._secondaryCursors[t].prepareRender(e)}render(e){let t=[],n=0;const i=this._primaryCursor.render(e);i&&(t[n++]=i);for(let i=0,r=this._secondaryCursors.length;i<r;i++){const r=this._secondaryCursors[i].render(e);r&&(t[n++]=r)}this._renderData=t}getLastRenderData(){return this._renderData}}on.BLINK_INTERVAL=500,Object(H.g)((e,t)=>{const n=e.getColor(Ee.g);if(n){let i=e.getColor(Ee.f);i||(i=n.opposite()),t.addRule(`.monaco-editor .cursors-layer .cursor { background-color: ${n}; border-color: ${n}; color: ${i}; }`),"hc"===e.type&&t.addRule(`.monaco-editor .cursors-layer.has-selection .cursor { border-left: 1px solid ${i}; border-right: 1px solid ${i}; }`)}});const sn=()=>{throw new Error("Invalid change accessor")};class an extends E{constructor(e){super(e);const t=this._context.configuration.options,n=t.get(117);this._lineHeight=t.get(51),this._contentWidth=n.contentWidth,this._contentLeft=n.contentLeft,this.domNode=Object(f.b)(document.createElement("div")),this.domNode.setClassName("view-zones"),this.domNode.setPosition("absolute"),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.marginDomNode=Object(f.b)(document.createElement("div")),this.marginDomNode.setClassName("margin-view-zones"),this.marginDomNode.setPosition("absolute"),this.marginDomNode.setAttribute("role","presentation"),this.marginDomNode.setAttribute("aria-hidden","true"),this._zones={}}dispose(){super.dispose(),this._zones={}}_recomputeWhitespacesProps(){const e=this._context.viewLayout.getWhitespaces(),t=new Map;for(const n of e)t.set(n.id,n);let n=!1;return this._context.model.changeWhitespace(e=>{const i=Object.keys(this._zones);for(let r=0,o=i.length;r<o;r++){const o=i[r],s=this._zones[o],a=this._computeWhitespaceProps(s.delegate),l=t.get(o);!l||l.afterLineNumber===a.afterViewLineNumber&&l.height===a.heightInPx||(e.changeOneWhitespace(o,a.afterViewLineNumber,a.heightInPx),this._safeCallOnComputedHeight(s.delegate,a.heightInPx),n=!0)}}),n}onConfigurationChanged(e){const t=this._context.configuration.options,n=t.get(117);return this._lineHeight=t.get(51),this._contentWidth=n.contentWidth,this._contentLeft=n.contentLeft,e.hasChanged(51)&&this._recomputeWhitespacesProps(),!0}onLineMappingChanged(e){return this._recomputeWhitespacesProps()}onLinesDeleted(e){return!0}onScrollChanged(e){return e.scrollTopChanged||e.scrollWidthChanged}onZonesChanged(e){return!0}onLinesInserted(e){return!0}_getZoneOrdinal(e){return void 0!==e.afterColumn?e.afterColumn:1e4}_computeWhitespaceProps(e){if(0===e.afterLineNumber)return{afterViewLineNumber:0,heightInPx:this._heightInPixels(e),minWidthInPx:this._minWidthInPixels(e)};let t,n;if(void 0!==e.afterColumn)t=this._context.model.validateModelPosition({lineNumber:e.afterLineNumber,column:e.afterColumn});else{const n=this._context.model.validateModelPosition({lineNumber:e.afterLineNumber,column:1}).lineNumber;t=new te.a(n,this._context.model.getModelLineMaxColumn(n))}n=t.column===this._context.model.getModelLineMaxColumn(t.lineNumber)?this._context.model.validateModelPosition({lineNumber:t.lineNumber+1,column:1}):this._context.model.validateModelPosition({lineNumber:t.lineNumber,column:t.column+1});const i=this._context.model.coordinatesConverter.convertModelPositionToViewPosition(t),r=this._context.model.coordinatesConverter.modelPositionIsVisible(n);return{afterViewLineNumber:i.lineNumber,heightInPx:r?this._heightInPixels(e):0,minWidthInPx:this._minWidthInPixels(e)}}changeViewZones(e){let t=!1;return this._context.model.changeWhitespace(n=>{const i={addZone:e=>(t=!0,this._addZone(n,e)),removeZone:e=>{e&&(t=this._removeZone(n,e)||t)},layoutZone:e=>{e&&(t=this._layoutZone(n,e)||t)}};!function(e,t){try{e(t)}catch(e){Object(o.e)(e)}}(e,i),i.addZone=sn,i.removeZone=sn,i.layoutZone=sn}),t}_addZone(e,t){const n=this._computeWhitespaceProps(t),i={whitespaceId:e.insertWhitespace(n.afterViewLineNumber,this._getZoneOrdinal(t),n.heightInPx,n.minWidthInPx),delegate:t,isVisible:!1,domNode:Object(f.b)(t.domNode),marginDomNode:t.marginDomNode?Object(f.b)(t.marginDomNode):null};return this._safeCallOnComputedHeight(i.delegate,n.heightInPx),i.domNode.setPosition("absolute"),i.domNode.domNode.style.width="100%",i.domNode.setDisplay("none"),i.domNode.setAttribute("monaco-view-zone",i.whitespaceId),this.domNode.appendChild(i.domNode),i.marginDomNode&&(i.marginDomNode.setPosition("absolute"),i.marginDomNode.domNode.style.width="100%",i.marginDomNode.setDisplay("none"),i.marginDomNode.setAttribute("monaco-view-zone",i.whitespaceId),this.marginDomNode.appendChild(i.marginDomNode)),this._zones[i.whitespaceId]=i,this.setShouldRender(),i.whitespaceId}_removeZone(e,t){if(this._zones.hasOwnProperty(t)){const n=this._zones[t];return delete this._zones[t],e.removeWhitespace(n.whitespaceId),n.domNode.removeAttribute("monaco-visible-view-zone"),n.domNode.removeAttribute("monaco-view-zone"),n.domNode.domNode.parentNode.removeChild(n.domNode.domNode),n.marginDomNode&&(n.marginDomNode.removeAttribute("monaco-visible-view-zone"),n.marginDomNode.removeAttribute("monaco-view-zone"),n.marginDomNode.domNode.parentNode.removeChild(n.marginDomNode.domNode)),this.setShouldRender(),!0}return!1}_layoutZone(e,t){if(this._zones.hasOwnProperty(t)){const n=this._zones[t],i=this._computeWhitespaceProps(n.delegate);return e.changeOneWhitespace(n.whitespaceId,i.afterViewLineNumber,i.heightInPx),this._safeCallOnComputedHeight(n.delegate,i.heightInPx),this.setShouldRender(),!0}return!1}shouldSuppressMouseDownOnViewZone(e){if(this._zones.hasOwnProperty(e)){const t=this._zones[e];return Boolean(t.delegate.suppressMouseDown)}return!1}_heightInPixels(e){return"number"==typeof e.heightInPx?e.heightInPx:"number"==typeof e.heightInLines?this._lineHeight*e.heightInLines:this._lineHeight}_minWidthInPixels(e){return"number"==typeof e.minWidthInPx?e.minWidthInPx:0}_safeCallOnComputedHeight(e,t){if("function"==typeof e.onComputedHeight)try{e.onComputedHeight(t)}catch(e){Object(o.e)(e)}}_safeCallOnDomNodeTop(e,t){if("function"==typeof e.onDomNodeTop)try{e.onDomNodeTop(t)}catch(e){Object(o.e)(e)}}prepareRender(e){}render(e){const t=e.viewportData.whitespaceViewportData,n={};let i=!1;for(let e=0,r=t.length;e<r;e++)n[t[e].id]=t[e],i=!0;const r=Object.keys(this._zones);for(let t=0,i=r.length;t<i;t++){const i=r[t],o=this._zones[i];let s=0,a=0,l="none";n.hasOwnProperty(i)?(s=n[i].verticalOffset-e.bigNumbersDelta,a=n[i].height,l="block",o.isVisible||(o.domNode.setAttribute("monaco-visible-view-zone","true"),o.isVisible=!0),this._safeCallOnDomNodeTop(o.delegate,e.getScrolledTopFromAbsoluteTop(n[i].verticalOffset))):(o.isVisible&&(o.domNode.removeAttribute("monaco-visible-view-zone"),o.isVisible=!1),this._safeCallOnDomNodeTop(o.delegate,e.getScrolledTopFromAbsoluteTop(-1e6))),o.domNode.setTop(s),o.domNode.setHeight(a),o.domNode.setDisplay(l),o.marginDomNode&&(o.marginDomNode.setTop(s),o.marginDomNode.setHeight(a),o.marginDomNode.setDisplay(l))}i&&(this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth)),this.marginDomNode.setWidth(this._contentLeft))}}class ln{constructor(e){this._theme=e}get type(){return this._theme.type}update(e){this._theme=e}getColor(e){return this._theme.getColor(e)}}class cn{constructor(e,t,n){this.configuration=e,this.theme=new ln(t),this.model=n,this.viewLayout=n.viewLayout}addEventHandler(e){this.model.addViewEventHandler(e)}removeEventHandler(e){this.model.removeViewEventHandler(e)}}class dn{constructor(e,t,n,i){this.selections=e,this.startLineNumber=0|t.startLineNumber,this.endLineNumber=0|t.endLineNumber,this.relativeVerticalOffset=t.relativeVerticalOffset,this.bigNumbersDelta=0|t.bigNumbersDelta,this.whitespaceViewportData=n,this._model=i,this.visibleRange=new ne.a(t.startLineNumber,this._model.getLineMinColumn(t.startLineNumber),t.endLineNumber,this._model.getLineMaxColumn(t.endLineNumber))}getViewLineRenderingData(e){return this._model.getViewLineRenderingData(this.visibleRange,e)}getDecorationsInViewport(){return this._model.getDecorationsInViewport(this.visibleRange)}}class un extends D{constructor(e,t,n,i,r,o){super(),this._selections=[new h.a(1,1,1,1)],this._renderAnimationFrame=null;const s=new Fe(t,i,r,e);this._context=new cn(t,n.getColorTheme(),i),this._context.addEventHandler(this),this._register(n.onDidColorThemeChange(e=>{this._context.theme.update(e),this._context.model.onDidColorThemeChange(),this.render(!0,!1)})),this._viewParts=[],this._textAreaHandler=new Pe(this._context,s,this._createTextAreaHandlerHelper()),this._viewParts.push(this._textAreaHandler),this._linesContent=Object(f.b)(document.createElement("div")),this._linesContent.setClassName("lines-content monaco-editor-background"),this._linesContent.setPosition("absolute"),this.domNode=Object(f.b)(document.createElement("div")),this.domNode.setClassName(this._getEditorClassName()),this.domNode.setAttribute("role","code"),this._overflowGuardContainer=Object(f.b)(document.createElement("div")),T.write(this._overflowGuardContainer,3),this._overflowGuardContainer.setClassName("overflow-guard"),this._scrollbar=new ot(this._context,this._linesContent,this.domNode,this._overflowGuardContainer),this._viewParts.push(this._scrollbar),this._viewLines=new ft(this._context,this._linesContent),this._viewZones=new an(this._context),this._viewParts.push(this._viewZones);const a=new zt(this._context);this._viewParts.push(a);const l=new Kt(this._context);this._viewParts.push(l);const c=new qe(this._context);this._viewParts.push(c),c.addDynamicOverlay(new tt(this._context)),c.addDynamicOverlay(new en(this._context)),c.addDynamicOverlay(new ct(this._context)),c.addDynamicOverlay(new it(this._context));const d=new Ke(this._context);this._viewParts.push(d),d.addDynamicOverlay(new nt(this._context)),d.addDynamicOverlay(new lt(this._context)),d.addDynamicOverlay(new pt(this._context)),d.addDynamicOverlay(new gt(this._context)),d.addDynamicOverlay(new Te(this._context));const u=new Oe(this._context);u.getDomNode().appendChild(this._viewZones.marginDomNode),u.getDomNode().appendChild(d.getDomNode()),this._viewParts.push(u),this._contentWidgets=new Ze(this._context,this.domNode),this._viewParts.push(this._contentWidgets),this._viewCursors=new on(this._context),this._viewParts.push(this._viewCursors),this._overlayWidgets=new Ht(this._context),this._viewParts.push(this._overlayWidgets);const g=new qt(this._context);this._viewParts.push(g);const p=new Bt(this._context);if(this._viewParts.push(p),a){const e=this._scrollbar.getOverviewRulerLayoutInfo();e.parent.insertBefore(a.getDomNode(),e.insertBefore)}this._linesContent.appendChild(c.getDomNode()),this._linesContent.appendChild(g.domNode),this._linesContent.appendChild(this._viewZones.domNode),this._linesContent.appendChild(this._viewLines.getDomNode()),this._linesContent.appendChild(this._contentWidgets.domNode),this._linesContent.appendChild(this._viewCursors.getDomNode()),this._overflowGuardContainer.appendChild(u.getDomNode()),this._overflowGuardContainer.appendChild(this._scrollbar.getDomNode()),this._overflowGuardContainer.appendChild(l.getDomNode()),this._overflowGuardContainer.appendChild(this._textAreaHandler.textArea),this._overflowGuardContainer.appendChild(this._textAreaHandler.textAreaCover),this._overflowGuardContainer.appendChild(this._overlayWidgets.getDomNode()),this._overflowGuardContainer.appendChild(p.getDomNode()),this.domNode.appendChild(this._overflowGuardContainer),o?o.appendChild(this._contentWidgets.overflowingContentWidgetsDomNode.domNode):this.domNode.appendChild(this._contentWidgets.overflowingContentWidgetsDomNode),this._applyLayout(),this._pointerHandler=this._register(new ke(this._context,s,this._createPointerHandlerHelper()))}_flushAccumulatedAndRenderNow(){this._renderNow()}_createPointerHandlerHelper(){return{viewDomNode:this.domNode.domNode,linesContentDomNode:this._linesContent.domNode,focusTextArea:()=>{this.focus()},getLastRenderData:()=>{const e=this._viewCursors.getLastRenderData()||[],t=this._textAreaHandler.getLastRenderData();return new re(e,t)},shouldSuppressMouseDownOnViewZone:e=>this._viewZones.shouldSuppressMouseDownOnViewZone(e),shouldSuppressMouseDownOnWidget:e=>this._contentWidgets.shouldSuppressMouseDownOnWidget(e),getPositionFromDOMInfo:(e,t)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getPositionFromDOMInfo(e,t)),visibleRangeForPosition:(e,t)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(new te.a(e,t))),getLineWidth:e=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getLineWidth(e))}}_createTextAreaHandlerHelper(){return{visibleRangeForPositionRelativeToEditor:(e,t)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(new te.a(e,t)))}}_applyLayout(){const e=this._context.configuration.options.get(117);this.domNode.setWidth(e.width),this.domNode.setHeight(e.height),this._overflowGuardContainer.setWidth(e.width),this._overflowGuardContainer.setHeight(e.height),this._linesContent.setWidth(1e6),this._linesContent.setHeight(1e6)}_getEditorClassName(){const e=this._textAreaHandler.isFocused()?" focused":"";return this._context.configuration.options.get(114)+" "+Object(H.f)(this._context.theme.type)+e}handleEvents(e){super.handleEvents(e),this._scheduleRender()}onConfigurationChanged(e){return this.domNode.setClassName(this._getEditorClassName()),this._applyLayout(),!1}onCursorStateChanged(e){return this._selections=e.selections,!1}onFocusChanged(e){return this.domNode.setClassName(this._getEditorClassName()),!1}onThemeChanged(e){return this.domNode.setClassName(this._getEditorClassName()),!1}dispose(){null!==this._renderAnimationFrame&&(this._renderAnimationFrame.dispose(),this._renderAnimationFrame=null),this._contentWidgets.overflowingContentWidgetsDomNode.domNode.remove(),this._context.removeEventHandler(this),this._viewLines.dispose();for(let e=0,t=this._viewParts.length;e<t;e++)this._viewParts[e].dispose();super.dispose()}_scheduleRender(){null===this._renderAnimationFrame&&(this._renderAnimationFrame=r.W(this._onRenderScheduled.bind(this),100))}_onRenderScheduled(){this._renderAnimationFrame=null,this._flushAccumulatedAndRenderNow()}_renderNow(){!function(e){try{e()}catch(e){Object(o.e)(e)}}(()=>this._actualRender())}_getViewPartsToRender(){let e=[],t=0;for(let n=0,i=this._viewParts.length;n<i;n++){const i=this._viewParts[n];i.shouldRender()&&(e[t++]=i)}return e}_actualRender(){if(!r.N(this.domNode.domNode))return;let e=this._getViewPartsToRender();if(!this._viewLines.shouldRender()&&0===e.length)return;const t=this._context.viewLayout.getLinesViewportData();this._context.model.setViewport(t.startLineNumber,t.endLineNumber,t.centeredLineNumber);const n=new dn(this._selections,t,this._context.viewLayout.getWhitespaceViewportData(),this._context.model);this._contentWidgets.shouldRender()&&this._contentWidgets.onBeforeRender(n),this._viewLines.shouldRender()&&(this._viewLines.renderText(n),this._viewLines.onDidRender(),e=this._getViewPartsToRender());const i=new N(this._context.viewLayout,n,this._viewLines);for(let t=0,n=e.length;t<n;t++){e[t].prepareRender(i)}for(let t=0,n=e.length;t<n;t++){const n=e[t];n.render(i),n.onDidRender()}}delegateVerticalScrollbarMouseDown(e){this._scrollbar.delegateVerticalScrollbarMouseDown(e)}restoreState(e){this._context.model.setScrollPosition({scrollTop:e.scrollTop},1),this._context.model.tokenizeViewport(),this._renderNow(),this._viewLines.updateLineWidths(),this._context.model.setScrollPosition({scrollLeft:e.scrollLeft},1)}getOffsetForColumn(e,t){const n=this._context.model.validateModelPosition({lineNumber:e,column:t}),i=this._context.model.coordinatesConverter.convertModelPositionToViewPosition(n);this._flushAccumulatedAndRenderNow();const r=this._viewLines.visibleRangeForPosition(new te.a(i.lineNumber,i.column));return r?r.left:-1}getTargetAtClientPoint(e,t){const n=this._pointerHandler.getTargetAtClientPoint(e,t);return n?Be.convertViewToModelMouseTarget(n,this._context.model.coordinatesConverter):null}createOverviewRuler(e){return new $t(this._context,e)}change(e){this._viewZones.changeViewZones(e),this._scheduleRender()}render(e,t){if(t){this._viewLines.forceShouldRender();for(let e=0,t=this._viewParts.length;e<t;e++){this._viewParts[e].forceShouldRender()}}e?this._flushAccumulatedAndRenderNow():this._scheduleRender()}focus(){this._textAreaHandler.focusTextArea()}isFocused(){return this._textAreaHandler.isFocused()}setAriaOptions(e){this._textAreaHandler.setAriaOptions(e)}addContentWidget(e){this._contentWidgets.addWidget(e.widget),this.layoutContentWidget(e),this._scheduleRender()}layoutContentWidget(e){let t=e.position&&e.position.range||null;if(null===t){const n=e.position?e.position.position:null;null!==n&&(t=new ne.a(n.lineNumber,n.column,n.lineNumber,n.column))}const n=e.position?e.position.preference:null;this._contentWidgets.setWidgetPosition(e.widget,t,n),this._scheduleRender()}removeContentWidget(e){this._contentWidgets.removeWidget(e.widget),this._scheduleRender()}addOverlayWidget(e){this._overlayWidgets.addWidget(e.widget),this.layoutOverlayWidget(e),this._scheduleRender()}layoutOverlayWidget(e){const t=e.position?e.position.preference:null;this._overlayWidgets.setWidgetPosition(e.widget,t)&&this._scheduleRender()}removeOverlayWidget(e){this._overlayWidgets.removeWidget(e.widget),this._scheduleRender()}}class hn{constructor(e){this._selTrackedRange=null,this._trackSelection=!0,this._setState(e,new ie.f(new ne.a(1,1,1,1),0,new te.a(1,1),0),new ie.f(new ne.a(1,1,1,1),0,new te.a(1,1),0))}dispose(e){this._removeTrackedRange(e)}startTrackingSelection(e){this._trackSelection=!0,this._updateTrackedRange(e)}stopTrackingSelection(e){this._trackSelection=!1,this._removeTrackedRange(e)}_updateTrackedRange(e){this._trackSelection&&(this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,this.modelState.selection,0))}_removeTrackedRange(e){this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,null,0)}asCursorState(){return new ie.d(this.modelState,this.viewState)}readSelectionFromMarkers(e){const t=e.model._getTrackedRange(this._selTrackedRange);return 0===this.modelState.selection.getDirection()?new h.a(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):new h.a(t.endLineNumber,t.endColumn,t.startLineNumber,t.startColumn)}ensureValidState(e){this._setState(e,this.modelState,this.viewState)}setState(e,t,n){this._setState(e,t,n)}_setState(e,t,n){if(t){const n=e.model.validateRange(t.selectionStart),i=t.selectionStart.equalsRange(n)?t.selectionStartLeftoverVisibleColumns:0,r=e.model.validatePosition(t.position),o=t.position.equals(r)?t.leftoverVisibleColumns:0;t=new ie.f(n,i,r,o)}else{if(!n)return;const i=e.model.validateRange(e.coordinatesConverter.convertViewRangeToModelRange(n.selectionStart)),r=e.model.validatePosition(e.coordinatesConverter.convertViewPositionToModelPosition(n.position));t=new ie.f(i,n.selectionStartLeftoverVisibleColumns,r,n.leftoverVisibleColumns)}if(n){const i=e.coordinatesConverter.validateViewRange(n.selectionStart,t.selectionStart),r=e.coordinatesConverter.validateViewPosition(n.position,t.position);n=new ie.f(i,t.selectionStartLeftoverVisibleColumns,r,t.leftoverVisibleColumns)}else{const i=e.coordinatesConverter.convertModelPositionToViewPosition(new te.a(t.selectionStart.startLineNumber,t.selectionStart.startColumn)),r=e.coordinatesConverter.convertModelPositionToViewPosition(new te.a(t.selectionStart.endLineNumber,t.selectionStart.endColumn)),o=new ne.a(i.lineNumber,i.column,r.lineNumber,r.column),s=e.coordinatesConverter.convertModelPositionToViewPosition(t.position);n=new ie.f(o,t.selectionStartLeftoverVisibleColumns,s,t.leftoverVisibleColumns)}this.modelState=t,this.viewState=n,this._updateTrackedRange(e)}}class fn{constructor(e){this.context=e,this.primaryCursor=new hn(e),this.secondaryCursors=[],this.lastAddedCursorIndex=0}dispose(){this.primaryCursor.dispose(this.context),this.killSecondaryCursors()}startTrackingSelections(){this.primaryCursor.startTrackingSelection(this.context);for(let e=0,t=this.secondaryCursors.length;e<t;e++)this.secondaryCursors[e].startTrackingSelection(this.context)}stopTrackingSelections(){this.primaryCursor.stopTrackingSelection(this.context);for(let e=0,t=this.secondaryCursors.length;e<t;e++)this.secondaryCursors[e].stopTrackingSelection(this.context)}updateContext(e){this.context=e}ensureValidState(){this.primaryCursor.ensureValidState(this.context);for(let e=0,t=this.secondaryCursors.length;e<t;e++)this.secondaryCursors[e].ensureValidState(this.context)}readSelectionFromMarkers(){let e=[];e[0]=this.primaryCursor.readSelectionFromMarkers(this.context);for(let t=0,n=this.secondaryCursors.length;t<n;t++)e[t+1]=this.secondaryCursors[t].readSelectionFromMarkers(this.context);return e}getAll(){let e=[];e[0]=this.primaryCursor.asCursorState();for(let t=0,n=this.secondaryCursors.length;t<n;t++)e[t+1]=this.secondaryCursors[t].asCursorState();return e}getViewPositions(){let e=[];e[0]=this.primaryCursor.viewState.position;for(let t=0,n=this.secondaryCursors.length;t<n;t++)e[t+1]=this.secondaryCursors[t].viewState.position;return e}getTopMostViewPosition(){let e=this.primaryCursor.viewState.position;for(let t=0,n=this.secondaryCursors.length;t<n;t++){const n=this.secondaryCursors[t].viewState.position;n.isBefore(e)&&(e=n)}return e}getBottomMostViewPosition(){let e=this.primaryCursor.viewState.position;for(let t=0,n=this.secondaryCursors.length;t<n;t++){const n=this.secondaryCursors[t].viewState.position;e.isBeforeOrEqual(n)&&(e=n)}return e}getSelections(){let e=[];e[0]=this.primaryCursor.modelState.selection;for(let t=0,n=this.secondaryCursors.length;t<n;t++)e[t+1]=this.secondaryCursors[t].modelState.selection;return e}getViewSelections(){let e=[];e[0]=this.primaryCursor.viewState.selection;for(let t=0,n=this.secondaryCursors.length;t<n;t++)e[t+1]=this.secondaryCursors[t].viewState.selection;return e}setSelections(e){this.setStates(ie.d.fromModelSelections(e))}getPrimaryCursor(){return this.primaryCursor.asCursorState()}setStates(e){null!==e&&(this.primaryCursor.setState(this.context,e[0].modelState,e[0].viewState),this._setSecondaryStates(e.slice(1)))}_setSecondaryStates(e){const t=this.secondaryCursors.length,n=e.length;if(t<n){let e=n-t;for(let t=0;t<e;t++)this._addSecondaryCursor()}else if(t>n){let e=t-n;for(let t=0;t<e;t++)this._removeSecondaryCursor(this.secondaryCursors.length-1)}for(let t=0;t<n;t++)this.secondaryCursors[t].setState(this.context,e[t].modelState,e[t].viewState)}killSecondaryCursors(){this._setSecondaryStates([])}_addSecondaryCursor(){this.secondaryCursors.push(new hn(this.context)),this.lastAddedCursorIndex=this.secondaryCursors.length}getLastAddedCursorIndex(){return 0===this.secondaryCursors.length||0===this.lastAddedCursorIndex?0:this.lastAddedCursorIndex}_removeSecondaryCursor(e){this.lastAddedCursorIndex>=e+1&&this.lastAddedCursorIndex--,this.secondaryCursors[e].dispose(this.context),this.secondaryCursors.splice(e,1)}_getAll(){let e=[];e[0]=this.primaryCursor;for(let t=0,n=this.secondaryCursors.length;t<n;t++)e[t+1]=this.secondaryCursors[t];return e}normalize(){if(0===this.secondaryCursors.length)return;let e=this._getAll(),t=[];for(let n=0,i=e.length;n<i;n++)t.push({index:n,selection:e[n].modelState.selection});t.sort((e,t)=>e.selection.startLineNumber===t.selection.startLineNumber?e.selection.startColumn-t.selection.startColumn:e.selection.startLineNumber-t.selection.startLineNumber);for(let n=0;n<t.length-1;n++){const i=t[n],r=t[n+1],o=i.selection,s=r.selection;if(!this.context.cursorConfig.multiCursorMergeOverlapping)continue;let a;if(a=s.isEmpty()||o.isEmpty()?s.getStartPosition().isBeforeOrEqual(o.getEndPosition()):s.getStartPosition().isBefore(o.getEndPosition())){const o=i.index<r.index?n:n+1,s=i.index<r.index?n+1:n,a=t[s].index,l=t[o].index,c=t[s].selection,d=t[o].selection;if(!c.equalsSelection(d)){const n=c.plusRange(d),i=c.selectionStartLineNumber===c.startLineNumber&&c.selectionStartColumn===c.startColumn,r=d.selectionStartLineNumber===d.startLineNumber&&d.selectionStartColumn===d.startColumn;let s,u;a===this.lastAddedCursorIndex?(s=i,this.lastAddedCursorIndex=l):s=r,u=s?new h.a(n.startLineNumber,n.startColumn,n.endLineNumber,n.endColumn):new h.a(n.endLineNumber,n.endColumn,n.startLineNumber,n.startColumn),t[o].selection=u;const f=ie.d.fromModelSelection(u);e[l].setState(this.context,f.modelState,f.viewState)}for(const e of t)e.index>a&&e.index--;e.splice(a,1),t.splice(s,1),this._removeSecondaryCursor(a-1),n--}}}}var gn=n(230),pn=n(116);class mn{constructor(e){this.type=0,this._source=e}hasChanged(e){return this._source.hasChanged(e)}}class _n{constructor(e,t){this.type=1,this.selections=e,this.modelSelections=t}}class bn{constructor(e){this.type=2,e?(this.affectsMinimap=e.affectsMinimap,this.affectsOverviewRuler=e.affectsOverviewRuler):(this.affectsMinimap=!0,this.affectsOverviewRuler=!0)}}class vn{constructor(){this.type=3}}class yn{constructor(e){this.type=4,this.isFocused=e}}class wn{constructor(){this.type=5}}class Cn{constructor(){this.type=6}}class Sn{constructor(e,t){this.type=7,this.fromLineNumber=e,this.toLineNumber=t}}class kn{constructor(e,t){this.type=8,this.fromLineNumber=e,this.toLineNumber=t}}class xn{constructor(e,t){this.type=9,this.fromLineNumber=e,this.toLineNumber=t}}class Ln{constructor(e,t,n,i,r,o){this.type=10,this.source=e,this.range=t,this.selections=n,this.verticalType=i,this.revealHorizontal=r,this.scrollType=o}}class Mn{constructor(e){this.type=11,this.scrollWidth=e.scrollWidth,this.scrollLeft=e.scrollLeft,this.scrollHeight=e.scrollHeight,this.scrollTop=e.scrollTop,this.scrollWidthChanged=e.scrollWidthChanged,this.scrollLeftChanged=e.scrollLeftChanged,this.scrollHeightChanged=e.scrollHeightChanged,this.scrollTopChanged=e.scrollTopChanged}}class Dn{constructor(){this.type=12}}class En{constructor(e){this.type=13,this.ranges=e}}class Tn{constructor(){this.type=14}}class On{constructor(){this.type=15}}class Nn extends a.a{constructor(){super(),this._onEvent=this._register(new s.a),this.onEvent=this._onEvent.event,this._eventHandlers=[],this._viewEventQueue=null,this._isConsumingViewEventQueue=!1,this._collector=null,this._collectorCnt=0,this._outgoingEvents=[]}emitOutgoingEvent(e){this._addOutgoingEvent(e),this._emitOugoingEvents()}_addOutgoingEvent(e){for(let t=0,n=this._outgoingEvents.length;t<n;t++)if(this._outgoingEvents[t].kind===e.kind)return void(this._outgoingEvents[t]=this._outgoingEvents[t].merge(e));this._outgoingEvents.push(e)}_emitOugoingEvents(){for(;this._outgoingEvents.length>0;){if(this._collector||this._isConsumingViewEventQueue)return;const e=this._outgoingEvents.shift();e.isNoOp()||this._onEvent.fire(e)}}addViewEventHandler(e){for(let t=0,n=this._eventHandlers.length;t<n;t++)this._eventHandlers[t]===e&&console.warn("Detected duplicate listener in ViewEventDispatcher",e);this._eventHandlers.push(e)}removeViewEventHandler(e){for(let t=0;t<this._eventHandlers.length;t++)if(this._eventHandlers[t]===e){this._eventHandlers.splice(t,1);break}}beginEmitViewEvents(){return this._collectorCnt++,1===this._collectorCnt&&(this._collector=new In),this._collector}endEmitViewEvents(){if(this._collectorCnt--,0===this._collectorCnt){const e=this._collector.outgoingEvents,t=this._collector.viewEvents;this._collector=null;for(const t of e)this._addOutgoingEvent(t);t.length>0&&this._emitMany(t)}this._emitOugoingEvents()}emitSingleViewEvent(e){try{this.beginEmitViewEvents().emitViewEvent(e)}finally{this.endEmitViewEvents()}}_emitMany(e){this._viewEventQueue?this._viewEventQueue=this._viewEventQueue.concat(e):this._viewEventQueue=e,this._isConsumingViewEventQueue||this._consumeViewEventQueue()}_consumeViewEventQueue(){try{this._isConsumingViewEventQueue=!0,this._doConsumeQueue()}finally{this._isConsumingViewEventQueue=!1}}_doConsumeQueue(){for(;this._viewEventQueue;){const e=this._viewEventQueue;this._viewEventQueue=null;const t=this._eventHandlers.slice(0);for(const n of t)n.handleEvents(e)}}}class In{constructor(){this.viewEvents=[],this.outgoingEvents=[]}emitViewEvent(e){this.viewEvents.push(e)}emitOutgoingEvent(e){this.outgoingEvents.push(e)}}class An{constructor(e,t,n,i){this.kind=0,this._oldContentWidth=e,this._oldContentHeight=t,this.contentWidth=n,this.contentHeight=i,this.contentWidthChanged=this._oldContentWidth!==this.contentWidth,this.contentHeightChanged=this._oldContentHeight!==this.contentHeight}isNoOp(){return!this.contentWidthChanged&&!this.contentHeightChanged}merge(e){return 0!==e.kind?this:new An(this._oldContentWidth,this._oldContentHeight,e.contentWidth,e.contentHeight)}}class Rn{constructor(e,t){this.kind=1,this.oldHasFocus=e,this.hasFocus=t}isNoOp(){return this.oldHasFocus===this.hasFocus}merge(e){return 1!==e.kind?this:new Rn(this.oldHasFocus,e.hasFocus)}}class Pn{constructor(e,t,n,i,r,o,s,a){this.kind=2,this._oldScrollWidth=e,this._oldScrollLeft=t,this._oldScrollHeight=n,this._oldScrollTop=i,this.scrollWidth=r,this.scrollLeft=o,this.scrollHeight=s,this.scrollTop=a,this.scrollWidthChanged=this._oldScrollWidth!==this.scrollWidth,this.scrollLeftChanged=this._oldScrollLeft!==this.scrollLeft,this.scrollHeightChanged=this._oldScrollHeight!==this.scrollHeight,this.scrollTopChanged=this._oldScrollTop!==this.scrollTop}isNoOp(){return!(this.scrollWidthChanged||this.scrollLeftChanged||this.scrollHeightChanged||this.scrollTopChanged)}merge(e){return 2!==e.kind?this:new Pn(this._oldScrollWidth,this._oldScrollLeft,this._oldScrollHeight,this._oldScrollTop,e.scrollWidth,e.scrollLeft,e.scrollHeight,e.scrollTop)}}class jn{constructor(){this.kind=3}isNoOp(){return!1}merge(e){return this}}class Fn{constructor(e,t,n,i,r,o,s){this.kind=5,this.oldSelections=e,this.selections=t,this.oldModelVersionId=n,this.modelVersionId=i,this.source=r,this.reason=o,this.reachedMaxCursorCount=s}static _selectionsAreEqual(e,t){if(!e&&!t)return!0;if(!e||!t)return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(!e[i].equalsSelection(t[i]))return!1;return!0}isNoOp(){return Fn._selectionsAreEqual(this.oldSelections,this.selections)&&this.oldModelVersionId===this.modelVersionId}merge(e){return 5!==e.kind?this:new Fn(this.oldSelections,e.selections,this.oldModelVersionId,e.modelVersionId,e.source,e.reason,this.reachedMaxCursorCount||e.reachedMaxCursorCount)}}class Bn{constructor(){this.kind=4}isNoOp(){return!1}merge(e){return this}}class Wn{constructor(e,t){this.modelVersionId=e.getVersionId(),this.cursorState=t.getCursorStates()}equals(e){if(!e)return!1;if(this.modelVersionId!==e.modelVersionId)return!1;if(this.cursorState.length!==e.cursorState.length)return!1;for(let t=0,n=this.cursorState.length;t<n;t++)if(!this.cursorState[t].equals(e.cursorState[t]))return!1;return!0}}class Hn{constructor(e,t,n){this._model=e,this._autoClosedCharactersDecorations=t,this._autoClosedEnclosingDecorations=n}static getAllAutoClosedCharacters(e){let t=[];for(const n of e)t=t.concat(n.getAutoClosedCharactersRanges());return t}dispose(){this._autoClosedCharactersDecorations=this._model.deltaDecorations(this._autoClosedCharactersDecorations,[]),this._autoClosedEnclosingDecorations=this._model.deltaDecorations(this._autoClosedEnclosingDecorations,[])}getAutoClosedCharactersRanges(){let e=[];for(let t=0;t<this._autoClosedCharactersDecorations.length;t++){const n=this._model.getDecorationRange(this._autoClosedCharactersDecorations[t]);n&&e.push(n)}return e}isValid(e){let t=[];for(let e=0;e<this._autoClosedEnclosingDecorations.length;e++){const n=this._model.getDecorationRange(this._autoClosedEnclosingDecorations[e]);if(n&&(t.push(n),n.startLineNumber!==n.endLineNumber))return!1}t.sort(ne.a.compareRangesUsingStarts),e.sort(ne.a.compareRangesUsingStarts);for(let n=0;n<e.length;n++){if(n>=t.length)return!1;if(!t[n].strictContainsRange(e[n]))return!1}return!0}}class Yn extends a.a{constructor(e,t,n,i){super(),this._model=e,this._knownModelVersionId=this._model.getVersionId(),this._viewModel=t,this._coordinatesConverter=n,this.context=new ie.c(this._model,this._coordinatesConverter,i),this._cursors=new fn(this.context),this._hasFocus=!1,this._isHandling=!1,this._isDoingComposition=!1,this._selectionsWhenCompositionStarted=null,this._columnSelectData=null,this._autoClosedActions=[],this._prevEditOperationType=0}dispose(){this._cursors.dispose(),this._autoClosedActions=Object(a.f)(this._autoClosedActions),super.dispose()}updateConfiguration(e){this.context=new ie.c(this._model,this._coordinatesConverter,e),this._cursors.updateContext(this.context)}onLineMappingChanged(e){this._knownModelVersionId===this._model.getVersionId()&&this.setStates(e,"viewModel",0,this.getCursorStates())}setHasFocus(e){this._hasFocus=e}_validateAutoClosedActions(){if(this._autoClosedActions.length>0){let e=this._cursors.getSelections();for(let t=0;t<this._autoClosedActions.length;t++){const n=this._autoClosedActions[t];n.isValid(e)||(n.dispose(),this._autoClosedActions.splice(t,1),t--)}}}getPrimaryCursorState(){return this._cursors.getPrimaryCursor()}getLastAddedCursorIndex(){return this._cursors.getLastAddedCursorIndex()}getCursorStates(){return this._cursors.getAll()}setStates(e,t,n,i){let r=!1;null!==i&&i.length>Yn.MAX_CURSOR_COUNT&&(i=i.slice(0,Yn.MAX_CURSOR_COUNT),r=!0);const o=new Wn(this._model,this);return this._cursors.setStates(i),this._cursors.normalize(),this._columnSelectData=null,this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,t,n,o,r)}setCursorColumnSelectData(e){this._columnSelectData=e}revealPrimary(e,t,n,i){const r=this._cursors.getViewPositions();if(r.length>1)this._emitCursorRevealRange(e,t,null,this._cursors.getViewSelections(),0,n,i);else{const o=r[0],s=new ne.a(o.lineNumber,o.column,o.lineNumber,o.column);this._emitCursorRevealRange(e,t,s,null,0,n,i)}}_revealPrimaryCursor(e,t,n,i,r){const o=this._cursors.getViewPositions();if(o.length>1)this._emitCursorRevealRange(e,t,null,this._cursors.getViewSelections(),n,i,r);else{const s=o[0],a=new ne.a(s.lineNumber,s.column,s.lineNumber,s.column);this._emitCursorRevealRange(e,t,a,null,n,i,r)}}_emitCursorRevealRange(e,t,n,i,r,o,s){e.emitViewEvent(new Ln(t,n,i,r,o,s))}saveState(){let e=[];const t=this._cursors.getSelections();for(let n=0,i=t.length;n<i;n++){const i=t[n];e.push({inSelectionMode:!i.isEmpty(),selectionStart:{lineNumber:i.selectionStartLineNumber,column:i.selectionStartColumn},position:{lineNumber:i.positionLineNumber,column:i.positionColumn}})}return e}restoreState(e,t){let n=[];for(let e=0,i=t.length;e<i;e++){const i=t[e];let r=1,o=1;i.position&&i.position.lineNumber&&(r=i.position.lineNumber),i.position&&i.position.column&&(o=i.position.column);let s=r,a=o;i.selectionStart&&i.selectionStart.lineNumber&&(s=i.selectionStart.lineNumber),i.selectionStart&&i.selectionStart.column&&(a=i.selectionStart.column),n.push({selectionStartLineNumber:s,selectionStartColumn:a,positionLineNumber:r,positionColumn:o})}this.setStates(e,"restoreState",0,ie.d.fromModelSelections(n)),this.revealPrimary(e,"restoreState",!0,1)}onModelContentChanged(e,t){if(this._knownModelVersionId=t.versionId,this._isHandling)return;const n=t.containsEvent(1);if(this._prevEditOperationType=0,n)this._cursors.dispose(),this._cursors=new fn(this.context),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,"model",1,null,!1);else if(this._hasFocus&&t.resultingSelection&&t.resultingSelection.length>0){const n=ie.d.fromModelSelections(t.resultingSelection);this.setStates(e,"modelChange",t.isUndoing?5:t.isRedoing?6:2,n)&&this._revealPrimaryCursor(e,"modelChange",0,!0,0)}else{const t=this._cursors.readSelectionFromMarkers();this.setStates(e,"modelChange",2,ie.d.fromModelSelections(t))}}getSelection(){return this._cursors.getPrimaryCursor().modelState.selection}getTopMostViewPosition(){return this._cursors.getTopMostViewPosition()}getBottomMostViewPosition(){return this._cursors.getBottomMostViewPosition()}getCursorColumnSelectData(){if(this._columnSelectData)return this._columnSelectData;const e=this._cursors.getPrimaryCursor(),t=e.viewState.selectionStart.getStartPosition(),n=e.viewState.position;return{isReal:!1,fromViewLineNumber:t.lineNumber,fromViewVisualColumn:ie.a.visibleColumnFromColumn2(this.context.cursorConfig,this._viewModel,t),toViewLineNumber:n.lineNumber,toViewVisualColumn:ie.a.visibleColumnFromColumn2(this.context.cursorConfig,this._viewModel,n)}}getSelections(){return this._cursors.getSelections()}setSelections(e,t,n){this.setStates(e,t,0,ie.d.fromModelSelections(n))}getPrevEditOperationType(){return this._prevEditOperationType}setPrevEditOperationType(e){this._prevEditOperationType=e}_pushAutoClosedAction(e,t){let n=[],i=[];for(let r=0,o=e.length;r<o;r++)n.push({range:e[r],options:{inlineClassName:"auto-closed-character",stickiness:1}}),i.push({range:t[r],options:{stickiness:1}});const r=this._model.deltaDecorations([],n),o=this._model.deltaDecorations([],i);this._autoClosedActions.push(new Hn(this._model,r,o))}_executeEditOperation(e){if(!e)return;e.shouldPushStackElementBefore&&this._model.pushStackElement();const t=Vn.executeCommands(this._model,this._cursors.getSelections(),e.commands);if(t){this._interpretCommandResult(t);let n=[],i=[];for(let t=0;t<e.commands.length;t++){const r=e.commands[t];r instanceof pn.b&&r.enclosingRange&&r.closeCharacterRange&&(n.push(r.closeCharacterRange),i.push(r.enclosingRange))}n.length>0&&this._pushAutoClosedAction(n,i),this._prevEditOperationType=e.type}e.shouldPushStackElementAfter&&this._model.pushStackElement()}_interpretCommandResult(e){e&&0!==e.length||(e=this._cursors.readSelectionFromMarkers()),this._columnSelectData=null,this._cursors.setSelections(e),this._cursors.normalize()}_emitStateChangedIfNecessary(e,t,n,i,r){const o=new Wn(this._model,this);if(o.equals(i))return!1;const s=this._cursors.getSelections(),a=this._cursors.getViewSelections();if(e.emitViewEvent(new _n(a,s)),!i||i.cursorState.length!==o.cursorState.length||o.cursorState.some((e,t)=>!e.modelState.equals(i.cursorState[t].modelState))){const a=i?i.cursorState.map(e=>e.modelState.selection):null,l=i?i.modelVersionId:0;e.emitOutgoingEvent(new Fn(a,s,l,o.modelVersionId,t||"keyboard",n,r))}return!0}_findAutoClosingPairs(e){if(!e.length)return null;let t=[];for(let n=0,i=e.length;n<i;n++){const i=e[n];if(!i.text||i.text.indexOf("\n")>=0)return null;const r=i.text.match(/([)\]}>'"`])([^)\]}>'"`]*)$/);if(!r)return null;const o=r[1],s=this.context.cursorConfig.autoClosingPairsClose2.get(o);if(!s||1!==s.length)return null;const a=s[0].open,l=i.text.length-r[2].length-1,c=i.text.lastIndexOf(a,l-1);if(-1===c)return null;t.push([c,l])}return t}executeEdits(e,t,n,i){let r=null;"snippet"===t&&(r=this._findAutoClosingPairs(n)),r&&(n[0]._isTracked=!0);let o=[],s=[];const a=this._model.pushEditOperations(this.getSelections(),n,e=>{if(r)for(let t=0,n=r.length;t<n;t++){const[n,i]=r[t],a=e[t],l=a.range.startLineNumber,c=a.range.startColumn-1+n,d=a.range.startColumn-1+i;o.push(new ne.a(l,d+1,l,d+2)),s.push(new ne.a(l,c+1,l,d+2))}const t=i(e);return t&&(this._isHandling=!0),t});a&&(this._isHandling=!1,this.setSelections(e,t,a)),o.length>0&&this._pushAutoClosedAction(o,s)}_executeEdit(e,t,n,i=0){if(this.context.cursorConfig.readOnly)return;const r=new Wn(this._model,this);this._cursors.stopTrackingSelections(),this._isHandling=!0;try{this._cursors.ensureValidState(),e()}catch(e){Object(o.e)(e)}this._isHandling=!1,this._cursors.startTrackingSelections(),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(t,n,i,r,!1)&&this._revealPrimaryCursor(t,n,0,!0,0)}setIsDoingComposition(e){this._isDoingComposition=e}startComposition(e){this._selectionsWhenCompositionStarted=this.getSelections().slice(0)}endComposition(e,t){this._executeEdit(()=>{if("keyboard"===t){const e=Hn.getAllAutoClosedCharacters(this._autoClosedActions);this._executeEditOperation(pn.a.compositionEndWithInterceptors(this._prevEditOperationType,this.context.cursorConfig,this._model,this._selectionsWhenCompositionStarted,this.getSelections(),e)),this._selectionsWhenCompositionStarted=null}},e,t)}type(e,t,n){this._executeEdit(()=>{if("keyboard"===n){const e=t.length;let n=0;for(;n<e;){const e=xe.L(t,n),i=t.substr(n,e),r=Hn.getAllAutoClosedCharacters(this._autoClosedActions);this._executeEditOperation(pn.a.typeWithInterceptors(this._isDoingComposition,this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),r,i)),n+=e}}else this._executeEditOperation(pn.a.typeWithoutInterceptors(this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),t))},e,n)}replacePreviousChar(e,t,n,i){this._executeEdit(()=>{this._executeEditOperation(pn.a.replacePreviousChar(this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),t,n))},e,i)}paste(e,t,n,i,r){this._executeEdit(()=>{this._executeEditOperation(pn.a.paste(this.context.cursorConfig,this._model,this.getSelections(),t,n,i||[]))},e,r,4)}cut(e,t){this._executeEdit(()=>{this._executeEditOperation(gn.a.cut(this.context.cursorConfig,this._model,this.getSelections()))},e,t)}executeCommand(e,t,n){this._executeEdit(()=>{this._cursors.killSecondaryCursors(),this._executeEditOperation(new ie.e(0,[t],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},e,n)}executeCommands(e,t,n){this._executeEdit(()=>{this._executeEditOperation(new ie.e(0,t,{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},e,n)}}Yn.MAX_CURSOR_COUNT=1e4;class Vn{static executeCommands(e,t,n){const i={model:e,selectionsBefore:t,trackedRanges:[],trackedRangesDirection:[]},r=this._innerExecuteCommands(i,n);for(let e=0,t=i.trackedRanges.length;e<t;e++)i.model._setTrackedRange(i.trackedRanges[e],null,0);return r}static _innerExecuteCommands(e,t){if(this._arrayIsEmpty(t))return null;const n=this._getEditOperations(e,t);if(0===n.operations.length)return null;const i=n.operations,r=this._getLoserCursorMap(i);if(r.hasOwnProperty("0"))return console.warn("Ignoring commands"),null;let o=[];for(let e=0,t=i.length;e<t;e++)r.hasOwnProperty(i[e].identifier.major.toString())||o.push(i[e]);n.hadTrackedEditOperation&&o.length>0&&(o[0]._isTracked=!0);let s=e.model.pushEditOperations(e.selectionsBefore,o,n=>{let i=[];for(let t=0;t<e.selectionsBefore.length;t++)i[t]=[];for(const e of n)e.identifier&&i[e.identifier.major].push(e);const r=(e,t)=>e.identifier.minor-t.identifier.minor;let o=[];for(let n=0;n<e.selectionsBefore.length;n++)i[n].length>0?(i[n].sort(r),o[n]=t[n].computeCursorState(e.model,{getInverseEditOperations:()=>i[n],getTrackedSelection:t=>{const n=parseInt(t,10),i=e.model._getTrackedRange(e.trackedRanges[n]);return 0===e.trackedRangesDirection[n]?new h.a(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn):new h.a(i.endLineNumber,i.endColumn,i.startLineNumber,i.startColumn)}})):o[n]=e.selectionsBefore[n];return o});s||(s=e.selectionsBefore);let a=[];for(let e in r)r.hasOwnProperty(e)&&a.push(parseInt(e,10));a.sort((e,t)=>t-e);for(const e of a)s.splice(e,1);return s}static _arrayIsEmpty(e){for(let t=0,n=e.length;t<n;t++)if(e[t])return!1;return!0}static _getEditOperations(e,t){let n=[],i=!1;for(let r=0,o=t.length;r<o;r++){const o=t[r];if(o){const t=this._getEditOperationsFromCommand(e,r,o);n=n.concat(t.operations),i=i||t.hadTrackedEditOperation}}return{operations:n,hadTrackedEditOperation:i}}static _getEditOperationsFromCommand(e,t,n){let i=[],r=0;const s=(e,o,s=!1)=>{ne.a.isEmpty(e)&&""===o||i.push({identifier:{major:t,minor:r++},range:e,text:o,forceMoveMarkers:s,isAutoWhitespaceEdit:n.insertsAutoWhitespace})};let a=!1;const l={addEditOperation:s,addTrackedEditOperation:(e,t,n)=>{a=!0,s(e,t,n)},trackSelection:(t,n)=>{const i=h.a.liftSelection(t);let r;if(i.isEmpty())if("boolean"==typeof n)r=n?2:3;else{const t=e.model.getLineMaxColumn(i.startLineNumber);r=i.startColumn===t?2:3}else r=1;const o=e.trackedRanges.length,s=e.model._setTrackedRange(null,i,r);return e.trackedRanges[o]=s,e.trackedRangesDirection[o]=i.getDirection(),o.toString()}};try{n.getEditOperations(e.model,l)}catch(e){return Object(o.e)(e),{operations:[],hadTrackedEditOperation:!1}}return{operations:i,hadTrackedEditOperation:a}}static _getLoserCursorMap(e){(e=e.slice(0)).sort((e,t)=>-ne.a.compareRangesUsingEnds(e.range,t.range));let t={};for(let n=1;n<e.length;n++){const i=e[n-1],r=e[n];if(ne.a.getStartPosition(i.range).isBefore(ne.a.getEndPosition(r.range))){let o;t[(o=i.identifier.major>r.identifier.major?i.identifier.major:r.identifier.major).toString()]=!0;for(let t=0;t<e.length;t++)e[t].identifier.major===o&&(e.splice(t,1),t<n&&n--,t--);n>0&&n--}}return t}}var zn=n(268),Un=n(145),$n=n(7),qn=n(231),Kn=n(203);class Gn{constructor(){this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[]}insert(e){this._hasPending=!0,this._inserts.push(e)}change(e){this._hasPending=!0,this._changes.push(e)}remove(e){this._hasPending=!0,this._removes.push(e)}mustCommit(){return this._hasPending}commit(e){if(!this._hasPending)return;const t=this._inserts,n=this._changes,i=this._removes;this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[],e._commitPendingChanges(t,n,i)}}class Zn{constructor(e,t,n,i,r){this.id=e,this.afterLineNumber=t,this.ordinal=n,this.height=i,this.minWidth=r,this.prefixSum=0}}class Jn{constructor(e,t,n,i){this._instanceId=xe.R(++Jn.INSTANCE_COUNT),this._pendingChanges=new Gn,this._lastWhitespaceId=0,this._arr=[],this._prefixSumValidIndex=-1,this._minWidth=-1,this._lineCount=e,this._lineHeight=t,this._paddingTop=n,this._paddingBottom=i}static findInsertionIndex(e,t,n){let i=0,r=e.length;for(;i<r;){const o=i+r>>>1;t===e[o].afterLineNumber?n<e[o].ordinal?r=o:i=o+1:t<e[o].afterLineNumber?r=o:i=o+1}return i}setLineHeight(e){this._checkPendingChanges(),this._lineHeight=e}setPadding(e,t){this._paddingTop=e,this._paddingBottom=t}onFlushed(e){this._checkPendingChanges(),this._lineCount=e}changeWhitespace(e){let t=!1;try{e({insertWhitespace:(e,n,i,r)=>{t=!0,e|=0,n|=0,i|=0,r|=0;const o=this._instanceId+ ++this._lastWhitespaceId;return this._pendingChanges.insert(new Zn(o,e,n,i,r)),o},changeOneWhitespace:(e,n,i)=>{t=!0,n|=0,i|=0,this._pendingChanges.change({id:e,newAfterLineNumber:n,newHeight:i})},removeWhitespace:e=>{t=!0,this._pendingChanges.remove({id:e})}})}finally{this._pendingChanges.commit(this)}return t}_commitPendingChanges(e,t,n){if((e.length>0||n.length>0)&&(this._minWidth=-1),e.length+t.length+n.length<=1){for(const t of e)this._insertWhitespace(t);for(const e of t)this._changeOneWhitespace(e.id,e.newAfterLineNumber,e.newHeight);for(const e of n){const t=this._findWhitespaceIndex(e.id);-1!==t&&this._removeWhitespace(t)}return}const i=new Set;for(const e of n)i.add(e.id);const r=new Map;for(const e of t)r.set(e.id,e);const o=e=>{let t=[];for(const n of e)if(!i.has(n.id)){if(r.has(n.id)){const e=r.get(n.id);n.afterLineNumber=e.newAfterLineNumber,n.height=e.newHeight}t.push(n)}return t},s=o(this._arr).concat(o(e));s.sort((e,t)=>e.afterLineNumber===t.afterLineNumber?e.ordinal-t.ordinal:e.afterLineNumber-t.afterLineNumber),this._arr=s,this._prefixSumValidIndex=-1}_checkPendingChanges(){this._pendingChanges.mustCommit()&&this._pendingChanges.commit(this)}_insertWhitespace(e){const t=Jn.findInsertionIndex(this._arr,e.afterLineNumber,e.ordinal);this._arr.splice(t,0,e),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,t-1)}_findWhitespaceIndex(e){const t=this._arr;for(let n=0,i=t.length;n<i;n++)if(t[n].id===e)return n;return-1}_changeOneWhitespace(e,t,n){const i=this._findWhitespaceIndex(e);if(-1!==i&&(this._arr[i].height!==n&&(this._arr[i].height=n,this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,i-1)),this._arr[i].afterLineNumber!==t)){const e=this._arr[i];this._removeWhitespace(i),e.afterLineNumber=t,this._insertWhitespace(e)}}_removeWhitespace(e){this._arr.splice(e,1),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,e-1)}onLinesDeleted(e,t){this._checkPendingChanges(),e|=0,t|=0,this._lineCount-=t-e+1;for(let n=0,i=this._arr.length;n<i;n++){const i=this._arr[n].afterLineNumber;e<=i&&i<=t?this._arr[n].afterLineNumber=e-1:i>t&&(this._arr[n].afterLineNumber-=t-e+1)}}onLinesInserted(e,t){this._checkPendingChanges(),e|=0,t|=0,this._lineCount+=t-e+1;for(let n=0,i=this._arr.length;n<i;n++){e<=this._arr[n].afterLineNumber&&(this._arr[n].afterLineNumber+=t-e+1)}}getWhitespacesTotalHeight(){return this._checkPendingChanges(),0===this._arr.length?0:this.getWhitespacesAccumulatedHeight(this._arr.length-1)}getWhitespacesAccumulatedHeight(e){this._checkPendingChanges(),e|=0;let t=Math.max(0,this._prefixSumValidIndex+1);0===t&&(this._arr[0].prefixSum=this._arr[0].height,t++);for(let n=t;n<=e;n++)this._arr[n].prefixSum=this._arr[n-1].prefixSum+this._arr[n].height;return this._prefixSumValidIndex=Math.max(this._prefixSumValidIndex,e),this._arr[e].prefixSum}getLinesTotalHeight(){return this._checkPendingChanges(),this._lineHeight*this._lineCount+this.getWhitespacesTotalHeight()+this._paddingTop+this._paddingBottom}getWhitespaceAccumulatedHeightBeforeLineNumber(e){this._checkPendingChanges(),e|=0;const t=this._findLastWhitespaceBeforeLineNumber(e);return-1===t?0:this.getWhitespacesAccumulatedHeight(t)}_findLastWhitespaceBeforeLineNumber(e){e|=0;const t=this._arr;let n=0,i=t.length-1;for(;n<=i;){const r=n+((i-n|0)/2|0)|0;if(t[r].afterLineNumber<e){if(r+1>=t.length||t[r+1].afterLineNumber>=e)return r;n=r+1|0}else i=r-1|0}return-1}_findFirstWhitespaceAfterLineNumber(e){e|=0;const t=this._findLastWhitespaceBeforeLineNumber(e)+1;return t<this._arr.length?t:-1}getFirstWhitespaceIndexAfterLineNumber(e){return this._checkPendingChanges(),e|=0,this._findFirstWhitespaceAfterLineNumber(e)}getVerticalOffsetForLineNumber(e){let t;return this._checkPendingChanges(),(t=(e|=0)>1?this._lineHeight*(e-1):0)+this.getWhitespaceAccumulatedHeightBeforeLineNumber(e)+this._paddingTop}getWhitespaceMinWidth(){if(this._checkPendingChanges(),-1===this._minWidth){let e=0;for(let t=0,n=this._arr.length;t<n;t++)e=Math.max(e,this._arr[t].minWidth);this._minWidth=e}return this._minWidth}isAfterLines(e){return this._checkPendingChanges(),e>this.getLinesTotalHeight()}getLineNumberAtOrAfterVerticalOffset(e){if(this._checkPendingChanges(),(e|=0)<0)return 1;const t=0|this._lineCount,n=this._lineHeight;let i=1,r=t;for(;i<r;){const t=(i+r)/2|0,o=0|this.getVerticalOffsetForLineNumber(t);if(e>=o+n)i=t+1;else{if(e>=o)return t;r=t}}return i>t?t:i}getLinesViewportData(e,t){this._checkPendingChanges(),e|=0,t|=0;const n=this._lineHeight,i=0|this.getLineNumberAtOrAfterVerticalOffset(e),r=0|this.getVerticalOffsetForLineNumber(i);let o=0|this._lineCount,s=0|this.getFirstWhitespaceIndexAfterLineNumber(i);const a=0|this.getWhitespacesCount();let l,c;-1===s?(s=a,c=o+1,l=0):(c=0|this.getAfterLineNumberForWhitespaceIndex(s),l=0|this.getHeightForWhitespaceIndex(s));let d=r,u=d;let h=0;r>=5e5&&(h=5e5*Math.floor(r/5e5),u-=h=Math.floor(h/n)*n);const f=[],g=e+(t-e)/2;let p=-1;for(let e=i;e<=o;e++){if(-1===p){const t=d,i=d+n;(t<=g&&g<i||t>g)&&(p=e)}for(d+=n,f[e-i]=u,u+=n;c===e;)u+=l,d+=l,++s>=a?c=o+1:(c=0|this.getAfterLineNumberForWhitespaceIndex(s),l=0|this.getHeightForWhitespaceIndex(s));if(d>=t){o=e;break}}-1===p&&(p=o);const m=0|this.getVerticalOffsetForLineNumber(o);let _=i,b=o;return _<b&&r<e&&_++,_<b&&m+n>t&&b--,{bigNumbersDelta:h,startLineNumber:i,endLineNumber:o,relativeVerticalOffset:f,centeredLineNumber:p,completelyVisibleStartLineNumber:_,completelyVisibleEndLineNumber:b}}getVerticalOffsetForWhitespaceIndex(e){this._checkPendingChanges(),e|=0;const t=this.getAfterLineNumberForWhitespaceIndex(e);let n,i;return(n=t>=1?this._lineHeight*t:0)+(i=e>0?this.getWhitespacesAccumulatedHeight(e-1):0)+this._paddingTop}getWhitespaceIndexAtOrAfterVerticallOffset(e){this._checkPendingChanges(),e|=0;let t=0,n=this.getWhitespacesCount()-1;if(n<0)return-1;if(e>=this.getVerticalOffsetForWhitespaceIndex(n)+this.getHeightForWhitespaceIndex(n))return-1;for(;t<n;){const i=Math.floor((t+n)/2),r=this.getVerticalOffsetForWhitespaceIndex(i);if(e>=r+this.getHeightForWhitespaceIndex(i))t=i+1;else{if(e>=r)return i;n=i}}return t}getWhitespaceAtVerticalOffset(e){this._checkPendingChanges(),e|=0;const t=this.getWhitespaceIndexAtOrAfterVerticallOffset(e);if(t<0)return null;if(t>=this.getWhitespacesCount())return null;const n=this.getVerticalOffsetForWhitespaceIndex(t);if(n>e)return null;const i=this.getHeightForWhitespaceIndex(t);return{id:this.getIdForWhitespaceIndex(t),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(t),verticalOffset:n,height:i}}getWhitespaceViewportData(e,t){this._checkPendingChanges(),e|=0,t|=0;const n=this.getWhitespaceIndexAtOrAfterVerticallOffset(e),i=this.getWhitespacesCount()-1;if(n<0)return[];let r=[];for(let e=n;e<=i;e++){const n=this.getVerticalOffsetForWhitespaceIndex(e),i=this.getHeightForWhitespaceIndex(e);if(n>=t)break;r.push({id:this.getIdForWhitespaceIndex(e),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(e),verticalOffset:n,height:i})}return r}getWhitespaces(){return this._checkPendingChanges(),this._arr.slice(0)}getWhitespacesCount(){return this._checkPendingChanges(),this._arr.length}getIdForWhitespaceIndex(e){return this._checkPendingChanges(),e|=0,this._arr[e].id}getAfterLineNumberForWhitespaceIndex(e){return this._checkPendingChanges(),e|=0,this._arr[e].afterLineNumber}getHeightForWhitespaceIndex(e){return this._checkPendingChanges(),e|=0,this._arr[e].height}}Jn.INSTANCE_COUNT=0;const Xn=125;class Qn{constructor(e,t,n,i){(e|=0)<0&&(e=0),(t|=0)<0&&(t=0),(n|=0)<0&&(n=0),(i|=0)<0&&(i=0),this.width=e,this.contentWidth=t,this.scrollWidth=Math.max(e,t),this.height=n,this.contentHeight=i,this.scrollHeight=Math.max(n,i)}equals(e){return this.width===e.width&&this.contentWidth===e.contentWidth&&this.height===e.height&&this.contentHeight===e.contentHeight}}class ei extends a.a{constructor(e,t){super(),this._onDidContentSizeChange=this._register(new s.a),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._dimensions=new Qn(0,0,0,0),this._scrollable=this._register(new Kn.a(e,t)),this.onDidScroll=this._scrollable.onScroll}getScrollable(){return this._scrollable}setSmoothScrollDuration(e){this._scrollable.setSmoothScrollDuration(e)}validateScrollPosition(e){return this._scrollable.validateScrollPosition(e)}getScrollDimensions(){return this._dimensions}setScrollDimensions(e){if(this._dimensions.equals(e))return;const t=this._dimensions;this._dimensions=e,this._scrollable.setScrollDimensions({width:e.width,scrollWidth:e.scrollWidth,height:e.height,scrollHeight:e.scrollHeight},!0);const n=t.contentWidth!==e.contentWidth,i=t.contentHeight!==e.contentHeight;(n||i)&&this._onDidContentSizeChange.fire(new An(t.contentWidth,t.contentHeight,e.contentWidth,e.contentHeight))}getFutureScrollPosition(){return this._scrollable.getFutureScrollPosition()}getCurrentScrollPosition(){return this._scrollable.getCurrentScrollPosition()}setScrollPositionNow(e){this._scrollable.setScrollPositionNow(e)}setScrollPositionSmooth(e){this._scrollable.setScrollPositionSmooth(e)}}class ti extends a.a{constructor(e,t,n){super(),this._configuration=e;const i=this._configuration.options,r=i.get(117),o=i.get(66);this._linesLayout=new Jn(t,i.get(51),o.top,o.bottom),this._scrollable=this._register(new ei(0,n)),this._configureSmoothScrollDuration(),this._scrollable.setScrollDimensions(new Qn(r.contentWidth,0,r.height,0)),this.onDidScroll=this._scrollable.onDidScroll,this.onDidContentSizeChange=this._scrollable.onDidContentSizeChange,this._updateHeight()}dispose(){super.dispose()}getScrollable(){return this._scrollable.getScrollable()}onHeightMaybeChanged(){this._updateHeight()}_configureSmoothScrollDuration(){this._scrollable.setSmoothScrollDuration(this._configuration.options.get(94)?Xn:0)}onConfigurationChanged(e){const t=this._configuration.options;if(e.hasChanged(51)&&this._linesLayout.setLineHeight(t.get(51)),e.hasChanged(66)){const e=t.get(66);this._linesLayout.setPadding(e.top,e.bottom)}if(e.hasChanged(117)){const e=t.get(117),n=e.contentWidth,i=e.height,r=this._scrollable.getScrollDimensions(),o=r.contentWidth;this._scrollable.setScrollDimensions(new Qn(n,r.contentWidth,i,this._getContentHeight(n,i,o)))}else this._updateHeight();e.hasChanged(94)&&this._configureSmoothScrollDuration()}onFlushed(e){this._linesLayout.onFlushed(e)}onLinesDeleted(e,t){this._linesLayout.onLinesDeleted(e,t)}onLinesInserted(e,t){this._linesLayout.onLinesInserted(e,t)}_getHorizontalScrollbarHeight(e,t){const n=this._configuration.options.get(84);return 2===n.horizontal?0:e>=t?0:n.horizontalScrollbarSize}_getContentHeight(e,t,n){const i=this._configuration.options;let r=this._linesLayout.getLinesTotalHeight();return i.get(86)?r+=t-i.get(51):r+=this._getHorizontalScrollbarHeight(e,n),r}_updateHeight(){const e=this._scrollable.getScrollDimensions(),t=e.width,n=e.height,i=e.contentWidth;this._scrollable.setScrollDimensions(new Qn(t,e.contentWidth,n,this._getContentHeight(t,n,i)))}getCurrentViewport(){const e=this._scrollable.getScrollDimensions(),t=this._scrollable.getCurrentScrollPosition();return new vt.f(t.scrollTop,t.scrollLeft,e.width,e.height)}getFutureViewport(){const e=this._scrollable.getScrollDimensions(),t=this._scrollable.getFutureScrollPosition();return new vt.f(t.scrollTop,t.scrollLeft,e.width,e.height)}_computeContentWidth(e){const t=this._configuration.options,n=t.get(118),i=t.get(36);if(n.isViewportWrapping){const n=t.get(117),r=t.get(56);return e>n.contentWidth+i.typicalHalfwidthCharacterWidth&&r.enabled&&"right"===r.side?e+n.verticalScrollbarWidth:e}{const n=t.get(85)*i.typicalHalfwidthCharacterWidth,r=this._linesLayout.getWhitespaceMinWidth();return Math.max(e+n,r)}}setMaxLineWidth(e){const t=this._scrollable.getScrollDimensions();this._scrollable.setScrollDimensions(new Qn(t.width,this._computeContentWidth(e),t.height,t.contentHeight)),this._updateHeight()}saveState(){const e=this._scrollable.getFutureScrollPosition();let t=e.scrollTop,n=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(t);return{scrollTop:t,scrollTopWithoutViewZones:t-this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(n),scrollLeft:e.scrollLeft}}changeWhitespace(e){const t=this._linesLayout.changeWhitespace(e);return t&&this.onHeightMaybeChanged(),t}getVerticalOffsetForLineNumber(e){return this._linesLayout.getVerticalOffsetForLineNumber(e)}isAfterLines(e){return this._linesLayout.isAfterLines(e)}getLineNumberAtVerticalOffset(e){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(e)}getWhitespaceAtVerticalOffset(e){return this._linesLayout.getWhitespaceAtVerticalOffset(e)}getLinesViewportData(){const e=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(e.top,e.top+e.height)}getLinesViewportDataAtScrollTop(e){const t=this._scrollable.getScrollDimensions();return e+t.height>t.scrollHeight&&(e=t.scrollHeight-t.height),e<0&&(e=0),this._linesLayout.getLinesViewportData(e,e+t.height)}getWhitespaceViewportData(){const e=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(e.top,e.top+e.height)}getWhitespaces(){return this._linesLayout.getWhitespaces()}getContentWidth(){return this._scrollable.getScrollDimensions().contentWidth}getScrollWidth(){return this._scrollable.getScrollDimensions().scrollWidth}getContentHeight(){return this._scrollable.getScrollDimensions().contentHeight}getScrollHeight(){return this._scrollable.getScrollDimensions().scrollHeight}getCurrentScrollLeft(){return this._scrollable.getCurrentScrollPosition().scrollLeft}getCurrentScrollTop(){return this._scrollable.getCurrentScrollPosition().scrollTop}validateScrollPosition(e){return this._scrollable.validateScrollPosition(e)}setScrollPosition(e,t){1===t?this._scrollable.setScrollPositionNow(e):this._scrollable.setScrollPositionSmooth(e)}deltaScrollNow(e,t){const n=this._scrollable.getCurrentScrollPosition();this._scrollable.setScrollPositionNow({scrollLeft:n.scrollLeft+e,scrollTop:n.scrollTop+t})}}var ni=n(29),ii=n(269);class ri{constructor(e,t){this.outputLineIndex=e,this.outputOffset=t}}class oi{constructor(e,t,n){this.breakOffsets=e,this.breakOffsetsVisibleColumn=t,this.wrappedTextIndentLength=n}static getInputOffsetOfOutputPosition(e,t,n){return 0===t?n:e[t-1]+n}static getOutputPositionOfInputOffset(e,t){let n=0,i=e.length-1,r=0,o=0;for(;n<=i;){const s=e[r=n+(i-n)/2|0];if(t<(o=r>0?e[r-1]:0))i=r-1;else{if(!(t>=s))break;n=r+1}}return new ri(r,t-o)}}class si{constructor(e){this._lines=e}convertViewPositionToModelPosition(e){return this._lines.convertViewPositionToModelPosition(e.lineNumber,e.column)}convertViewRangeToModelRange(e){return this._lines.convertViewRangeToModelRange(e)}validateViewPosition(e,t){return this._lines.validateViewPosition(e.lineNumber,e.column,t)}validateViewRange(e,t){return this._lines.validateViewRange(e,t)}convertModelPositionToViewPosition(e){return this._lines.convertModelPositionToViewPosition(e.lineNumber,e.column)}convertModelRangeToViewRange(e){return this._lines.convertModelRangeToViewRange(e)}modelPositionIsVisible(e){return this._lines.modelPositionIsVisible(e.lineNumber,e.column)}}class ai{constructor(e){this._counts=e,this._isValid=!1,this._validEndIndex=-1,this._modelToView=[],this._viewToModel=[]}_invalidate(e){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,e-1)}_ensureValid(){if(!this._isValid){for(let e=this._validEndIndex+1,t=this._counts.length;e<t;e++){const t=this._counts[e],n=e>0?this._modelToView[e-1]:0;this._modelToView[e]=n+t;for(let i=0;i<t;i++)this._viewToModel[n+i]=e}this._modelToView.length=this._counts.length,this._viewToModel.length=this._modelToView[this._modelToView.length-1],this._isValid=!0,this._validEndIndex=this._counts.length-1}}changeValue(e,t){this._counts[e]!==t&&(this._counts[e]=t,this._invalidate(e))}removeValues(e,t){this._counts.splice(e,t),this._invalidate(e)}insertValues(e,t){this._counts=Xe.a(this._counts,e,t),this._invalidate(e)}getTotalValue(){return this._ensureValid(),this._viewToModel.length}getAccumulatedValue(e){return this._ensureValid(),this._modelToView[e]}getIndexOf(e){this._ensureValid();const t=this._viewToModel[e],n=t>0?this._modelToView[t-1]:0;return new ii.b(t,e-n)}}class li{constructor(e,t,n,i,r,o,s,a){this.model=e,this._validModelVersionId=-1,this._domLineBreaksComputerFactory=t,this._monospaceLineBreaksComputerFactory=n,this.fontInfo=i,this.tabSize=r,this.wrappingStrategy=o,this.wrappingColumn=s,this.wrappingIndent=a,this._constructLines(!0,null)}dispose(){this.hiddenAreasIds=this.model.deltaDecorations(this.hiddenAreasIds,[])}createCoordinatesConverter(){return new si(this)}_constructLines(e,t){this.lines=[],e&&(this.hiddenAreasIds=[]);let n=this.model.getLinesContent();const i=n.length,r=this.createLineBreaksComputer();for(let e=0;e<i;e++)r.addRequest(n[e],t?t[e]:null);const o=r.finalize();let s=[],a=this.hiddenAreasIds.map(e=>this.model.getDecorationRange(e)).sort(ne.a.compareRangesUsingStarts),l=1,c=0,d=-1,u=d+1<a.length?c+1:i+2;for(let e=0;e<i;e++){let t=e+1;t===u&&(l=a[++d].startLineNumber,c=a[d].endLineNumber,u=d+1<a.length?c+1:i+2);let n=t>=l&&t<=c,r=pi(o[e],!n);s[e]=r.getViewLineCount(),this.lines[e]=r}this._validModelVersionId=this.model.getVersionId(),this.prefixSumComputer=new ai(s)}getHiddenAreas(){return this.hiddenAreasIds.map(e=>this.model.getDecorationRange(e))}_reduceRanges(e){if(0===e.length)return[];let t=e.map(e=>this.model.validateRange(e)).sort(ne.a.compareRangesUsingStarts),n=[],i=t[0].startLineNumber,r=t[0].endLineNumber;for(let e=1,o=t.length;e<o;e++){let o=t[e];o.startLineNumber>r+1?(n.push(new ne.a(i,1,r,1)),i=o.startLineNumber,r=o.endLineNumber):o.endLineNumber>r&&(r=o.endLineNumber)}return n.push(new ne.a(i,1,r,1)),n}setHiddenAreas(e){let t=this._reduceRanges(e),n=this.hiddenAreasIds.map(e=>this.model.getDecorationRange(e)).sort(ne.a.compareRangesUsingStarts);if(t.length===n.length){let e=!1;for(let i=0;i<t.length;i++)if(!t[i].equalsRange(n[i])){e=!0;break}if(!e)return!1}let i=[];for(const e of t)i.push({range:e,options:ni.a.EMPTY});this.hiddenAreasIds=this.model.deltaDecorations(this.hiddenAreasIds,i);let r=t,o=1,s=0,a=-1,l=a+1<r.length?s+1:this.lines.length+2,c=!1;for(let e=0;e<this.lines.length;e++){let t=e+1;t===l&&(o=r[++a].startLineNumber,s=r[a].endLineNumber,l=a+1<r.length?s+1:this.lines.length+2);let n=!1;if(t>=o&&t<=s?this.lines[e].isVisible()&&(this.lines[e]=this.lines[e].setVisible(!1),n=!0):(c=!0,this.lines[e].isVisible()||(this.lines[e]=this.lines[e].setVisible(!0),n=!0)),n){let t=this.lines[e].getViewLineCount();this.prefixSumComputer.changeValue(e,t)}}return c||this.setHiddenAreas([]),!0}modelPositionIsVisible(e,t){return!(e<1||e>this.lines.length)&&this.lines[e-1].isVisible()}setTabSize(e){return this.tabSize!==e&&(this.tabSize=e,this._constructLines(!1,null),!0)}setWrappingSettings(e,t,n,i){const r=this.fontInfo.equals(e),o=this.wrappingStrategy===t,s=this.wrappingColumn===n,a=this.wrappingIndent===i;if(r&&o&&s&&a)return!1;const l=r&&o&&!s&&a;this.fontInfo=e,this.wrappingStrategy=t,this.wrappingColumn=n,this.wrappingIndent=i;let c=null;if(l){c=[];for(let e=0,t=this.lines.length;e<t;e++)c[e]=this.lines[e].getLineBreakData()}return this._constructLines(!1,c),!0}createLineBreaksComputer(){return("advanced"===this.wrappingStrategy?this._domLineBreaksComputerFactory:this._monospaceLineBreaksComputerFactory).createLineBreaksComputer(this.fontInfo,this.tabSize,this.wrappingColumn,this.wrappingIndent)}onModelFlushed(){this._constructLines(!0,null)}onModelLinesDeleted(e,t,n){if(e<=this._validModelVersionId)return null;let i=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,r=this.prefixSumComputer.getAccumulatedValue(n-1);return this.lines.splice(t-1,n-t+1),this.prefixSumComputer.removeValues(t-1,n-t+1),new kn(i,r)}onModelLinesInserted(e,t,n,i){if(e<=this._validModelVersionId)return null;let r=this.getHiddenAreas(),o=!1,s=new te.a(t,1);for(const e of r)if(e.containsPosition(s)){o=!0;break}let a=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,l=0,c=[],d=[];for(let e=0,t=i.length;e<t;e++){let t=pi(i[e],!o);c.push(t);let n=t.getViewLineCount();l+=n,d[e]=n}return this.lines=this.lines.slice(0,t-1).concat(c).concat(this.lines.slice(t-1)),this.prefixSumComputer.insertValues(t-1,d),new xn(a,a+l-1)}onModelLineChanged(e,t,n){if(e<=this._validModelVersionId)return[!1,null,null,null];let i=t-1,r=this.lines[i].getViewLineCount(),o=pi(n,this.lines[i].isVisible());this.lines[i]=o;let s=this.lines[i].getViewLineCount(),a=!1,l=0,c=-1,d=0,u=-1,h=0,f=-1;return r>s?(f=(h=(c=(l=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1)+s-1)+1)+(r-s)-1,a=!0):r<s?(u=(d=(c=(l=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1)+r-1)+1)+(s-r)-1,a=!0):c=(l=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1)+s-1,this.prefixSumComputer.changeValue(i,s),[a,l<=c?new Sn(l,c):null,d<=u?new xn(d,u):null,h<=f?new kn(h,f):null]}acceptVersionId(e){this._validModelVersionId=e,1!==this.lines.length||this.lines[0].isVisible()||this.setHiddenAreas([])}getViewLineCount(){return this.prefixSumComputer.getTotalValue()}_toValidViewLineNumber(e){if(e<1)return 1;const t=this.getViewLineCount();return e>t?t:0|e}getActiveIndentGuide(e,t,n){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t),n=this._toValidViewLineNumber(n);const i=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),r=this.convertViewPositionToModelPosition(t,this.getViewLineMinColumn(t)),o=this.convertViewPositionToModelPosition(n,this.getViewLineMinColumn(n)),s=this.model.getActiveIndentGuide(i.lineNumber,r.lineNumber,o.lineNumber),a=this.convertModelPositionToViewPosition(s.startLineNumber,1),l=this.convertModelPositionToViewPosition(s.endLineNumber,this.model.getLineMaxColumn(s.endLineNumber));return{startLineNumber:a.lineNumber,endLineNumber:l.lineNumber,indent:s.indent}}getViewLinesIndentGuides(e,t){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);const n=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),i=this.convertViewPositionToModelPosition(t,this.getViewLineMaxColumn(t));let r=[],o=[],s=[];const a=n.lineNumber-1,l=i.lineNumber-1;let c=null;for(let e=a;e<=l;e++){const t=this.lines[e];if(t.isVisible()){let i=t.getViewLineNumberOfModelPosition(0,e===a?n.column:1),r=t.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(e+1)),l=r-i+1,d=0;l>1&&1===t.getViewLineMinColumn(this.model,e+1,r)&&(d=0===i?1:2),o.push(l),s.push(d),null===c&&(c=new te.a(e+1,0))}else null!==c&&(r=r.concat(this.model.getLinesIndentGuides(c.lineNumber,e)),c=null)}null!==c&&(r=r.concat(this.model.getLinesIndentGuides(c.lineNumber,i.lineNumber)),c=null);const d=t-e+1;let u=new Array(d),h=0;for(let e=0,t=r.length;e<t;e++){let t,n=r[e],i=Math.min(d-h,o[e]),a=s[e];t=2===a?0:1===a?1:i;for(let e=0;e<i;e++)e===t&&(n=0),u[h++]=n}return u}getViewLineContent(e){e=this._toValidViewLineNumber(e);let t=this.prefixSumComputer.getIndexOf(e-1),n=t.index,i=t.remainder;return this.lines[n].getViewLineContent(this.model,n+1,i)}getViewLineLength(e){e=this._toValidViewLineNumber(e);let t=this.prefixSumComputer.getIndexOf(e-1),n=t.index,i=t.remainder;return this.lines[n].getViewLineLength(this.model,n+1,i)}getViewLineMinColumn(e){e=this._toValidViewLineNumber(e);let t=this.prefixSumComputer.getIndexOf(e-1),n=t.index,i=t.remainder;return this.lines[n].getViewLineMinColumn(this.model,n+1,i)}getViewLineMaxColumn(e){e=this._toValidViewLineNumber(e);let t=this.prefixSumComputer.getIndexOf(e-1),n=t.index,i=t.remainder;return this.lines[n].getViewLineMaxColumn(this.model,n+1,i)}getViewLineData(e){e=this._toValidViewLineNumber(e);let t=this.prefixSumComputer.getIndexOf(e-1),n=t.index,i=t.remainder;return this.lines[n].getViewLineData(this.model,n+1,i)}getViewLinesData(e,t,n){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);let i=this.prefixSumComputer.getIndexOf(e-1),r=e,o=i.index,s=i.remainder,a=[];for(let i=o,l=this.model.getLineCount();i<l;i++){let l=this.lines[i];if(!l.isVisible())continue;let c=i===o?s:0,d=l.getViewLineCount()-c,u=!1;r+d>t&&(u=!0,d=t-r+1);let h=c+d;if(l.getViewLinesData(this.model,i+1,c,h,r-e,n,a),r+=d,u)break}return a}validateViewPosition(e,t,n){e=this._toValidViewLineNumber(e);let i=this.prefixSumComputer.getIndexOf(e-1),r=i.index,o=i.remainder,s=this.lines[r],a=s.getViewLineMinColumn(this.model,r+1,o),l=s.getViewLineMaxColumn(this.model,r+1,o);t<a&&(t=a),t>l&&(t=l);let c=s.getModelColumnOfViewPosition(o,t);return this.model.validatePosition(new te.a(r+1,c)).equals(n)?new te.a(e,t):this.convertModelPositionToViewPosition(n.lineNumber,n.column)}validateViewRange(e,t){const n=this.validateViewPosition(e.startLineNumber,e.startColumn,t.getStartPosition()),i=this.validateViewPosition(e.endLineNumber,e.endColumn,t.getEndPosition());return new ne.a(n.lineNumber,n.column,i.lineNumber,i.column)}convertViewPositionToModelPosition(e,t){e=this._toValidViewLineNumber(e);let n=this.prefixSumComputer.getIndexOf(e-1),i=n.index,r=n.remainder,o=this.lines[i].getModelColumnOfViewPosition(r,t);return this.model.validatePosition(new te.a(i+1,o))}convertViewRangeToModelRange(e){const t=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),n=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);return new ne.a(t.lineNumber,t.column,n.lineNumber,n.column)}convertModelPositionToViewPosition(e,t){const n=this.model.validatePosition(new te.a(e,t)),i=n.lineNumber,r=n.column;let o=i-1,s=!1;for(;o>0&&!this.lines[o].isVisible();)o--,s=!0;if(0===o&&!this.lines[o].isVisible())return new te.a(1,1);const a=1+(0===o?0:this.prefixSumComputer.getAccumulatedValue(o-1));let l;return l=s?this.lines[o].getViewPositionOfModelPosition(a,this.model.getLineMaxColumn(o+1)):this.lines[i-1].getViewPositionOfModelPosition(a,r)}convertModelRangeToViewRange(e){let t=this.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn),n=this.convertModelPositionToViewPosition(e.endLineNumber,e.endColumn);return e.startLineNumber===e.endLineNumber&&t.lineNumber!==n.lineNumber&&n.column===this.getViewLineMinColumn(n.lineNumber)?new ne.a(t.lineNumber,t.column,n.lineNumber-1,this.getViewLineMaxColumn(n.lineNumber-1)):new ne.a(t.lineNumber,t.column,n.lineNumber,n.column)}_getViewLineNumberForModelPosition(e,t){let n=e-1;if(this.lines[n].isVisible()){const e=1+(0===n?0:this.prefixSumComputer.getAccumulatedValue(n-1));return this.lines[n].getViewLineNumberOfModelPosition(e,t)}for(;n>0&&!this.lines[n].isVisible();)n--;if(0===n&&!this.lines[n].isVisible())return 1;const i=1+(0===n?0:this.prefixSumComputer.getAccumulatedValue(n-1));return this.lines[n].getViewLineNumberOfModelPosition(i,this.model.getLineMaxColumn(n+1))}getAllOverviewRulerDecorations(e,t,n){const i=this.model.getOverviewRulerDecorations(e,t),r=new bi;for(const e of i){const t=e.options.overviewRuler,i=t?t.position:0;if(0===i)continue;const o=t.getColor(n),s=this._getViewLineNumberForModelPosition(e.range.startLineNumber,e.range.startColumn),a=this._getViewLineNumberForModelPosition(e.range.endLineNumber,e.range.endColumn);r.accept(o,s,a,i)}return r.result}getDecorationsInRange(e,t,n){const i=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),r=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);if(r.lineNumber-i.lineNumber<=e.endLineNumber-e.startLineNumber)return this.model.getDecorationsInRange(new ne.a(i.lineNumber,1,r.lineNumber,r.column),t,n);let o=[];const s=i.lineNumber-1,a=r.lineNumber-1;let l=null;for(let e=s;e<=a;e++){if(this.lines[e].isVisible())null===l&&(l=new te.a(e+1,e===s?i.column:1));else if(null!==l){const i=this.model.getLineMaxColumn(e);o=o.concat(this.model.getDecorationsInRange(new ne.a(l.lineNumber,l.column,e,i),t,n)),l=null}}null!==l&&(o=o.concat(this.model.getDecorationsInRange(new ne.a(l.lineNumber,l.column,r.lineNumber,r.column),t,n)),l=null),o.sort((e,t)=>{const n=ne.a.compareRangesUsingStarts(e.range,t.range);return 0===n?e.id<t.id?-1:e.id>t.id?1:0:n});let c=[],d=0,u=null;for(const e of o){const t=e.id;u!==t&&(u=t,c[d++]=e)}return c}}class ci{constructor(){}isVisible(){return!0}setVisible(e){return e?this:di.INSTANCE}getLineBreakData(){return null}getViewLineCount(){return 1}getViewLineContent(e,t,n){return e.getLineContent(t)}getViewLineLength(e,t,n){return e.getLineLength(t)}getViewLineMinColumn(e,t,n){return e.getLineMinColumn(t)}getViewLineMaxColumn(e,t,n){return e.getLineMaxColumn(t)}getViewLineData(e,t,n){let i=e.getLineTokens(t),r=i.getLineContent();return new vt.c(r,!1,1,r.length+1,0,i.inflate())}getViewLinesData(e,t,n,i,r,o,s){o[r]?s[r]=this.getViewLineData(e,t,0):s[r]=null}getModelColumnOfViewPosition(e,t){return t}getViewPositionOfModelPosition(e,t){return new te.a(e,t)}getViewLineNumberOfModelPosition(e,t){return e}}ci.INSTANCE=new ci;class di{constructor(){}isVisible(){return!1}setVisible(e){return e?ci.INSTANCE:this}getLineBreakData(){return null}getViewLineCount(){return 0}getViewLineContent(e,t,n){throw new Error("Not supported")}getViewLineLength(e,t,n){throw new Error("Not supported")}getViewLineMinColumn(e,t,n){throw new Error("Not supported")}getViewLineMaxColumn(e,t,n){throw new Error("Not supported")}getViewLineData(e,t,n){throw new Error("Not supported")}getViewLinesData(e,t,n,i,r,o,s){throw new Error("Not supported")}getModelColumnOfViewPosition(e,t){throw new Error("Not supported")}getViewPositionOfModelPosition(e,t){throw new Error("Not supported")}getViewLineNumberOfModelPosition(e,t){throw new Error("Not supported")}}di.INSTANCE=new di;class ui{constructor(e,t){this._lineBreakData=e,this._isVisible=t}isVisible(){return this._isVisible}setVisible(e){return this._isVisible=e,this}getLineBreakData(){return this._lineBreakData}getViewLineCount(){return this._isVisible?this._lineBreakData.breakOffsets.length:0}getInputStartOffsetOfOutputLineIndex(e){return oi.getInputOffsetOfOutputPosition(this._lineBreakData.breakOffsets,e,0)}getInputEndOffsetOfOutputLineIndex(e,t,n){return n+1===this._lineBreakData.breakOffsets.length?e.getLineMaxColumn(t)-1:oi.getInputOffsetOfOutputPosition(this._lineBreakData.breakOffsets,n+1,0)}getViewLineContent(e,t,n){if(!this._isVisible)throw new Error("Not supported");let i=this.getInputStartOffsetOfOutputLineIndex(n),r=this.getInputEndOffsetOfOutputLineIndex(e,t,n),o=e.getValueInRange({startLineNumber:t,startColumn:i+1,endLineNumber:t,endColumn:r+1});return n>0&&(o=fi(this._lineBreakData.wrappedTextIndentLength)+o),o}getViewLineLength(e,t,n){if(!this._isVisible)throw new Error("Not supported");let i=this.getInputStartOffsetOfOutputLineIndex(n),r=this.getInputEndOffsetOfOutputLineIndex(e,t,n)-i;return n>0&&(r=this._lineBreakData.wrappedTextIndentLength+r),r}getViewLineMinColumn(e,t,n){if(!this._isVisible)throw new Error("Not supported");return n>0?this._lineBreakData.wrappedTextIndentLength+1:1}getViewLineMaxColumn(e,t,n){if(!this._isVisible)throw new Error("Not supported");return this.getViewLineContent(e,t,n).length+1}getViewLineData(e,t,n){if(!this._isVisible)throw new Error("Not supported");let i=this.getInputStartOffsetOfOutputLineIndex(n),r=this.getInputEndOffsetOfOutputLineIndex(e,t,n),o=e.getValueInRange({startLineNumber:t,startColumn:i+1,endLineNumber:t,endColumn:r+1});n>0&&(o=fi(this._lineBreakData.wrappedTextIndentLength)+o);let s=n>0?this._lineBreakData.wrappedTextIndentLength+1:1,a=o.length+1,l=n+1<this.getViewLineCount(),c=0;n>0&&(c=this._lineBreakData.wrappedTextIndentLength);let d=e.getLineTokens(t);const u=0===n?0:this._lineBreakData.breakOffsetsVisibleColumn[n-1];return new vt.c(o,l,s,a,u,d.sliceAndInflate(i,r,c))}getViewLinesData(e,t,n,i,r,o,s){if(!this._isVisible)throw new Error("Not supported");for(let a=n;a<i;a++){let i=r+a-n;o[i]?s[i]=this.getViewLineData(e,t,a):s[i]=null}}getModelColumnOfViewPosition(e,t){if(!this._isVisible)throw new Error("Not supported");let n=t-1;return e>0&&(n<this._lineBreakData.wrappedTextIndentLength?n=0:n-=this._lineBreakData.wrappedTextIndentLength),oi.getInputOffsetOfOutputPosition(this._lineBreakData.breakOffsets,e,n)+1}getViewPositionOfModelPosition(e,t){if(!this._isVisible)throw new Error("Not supported");let n=oi.getOutputPositionOfInputOffset(this._lineBreakData.breakOffsets,t-1),i=n.outputLineIndex,r=n.outputOffset+1;return i>0&&(r+=this._lineBreakData.wrappedTextIndentLength),new te.a(e+i,r)}getViewLineNumberOfModelPosition(e,t){if(!this._isVisible)throw new Error("Not supported");return e+oi.getOutputPositionOfInputOffset(this._lineBreakData.breakOffsets,t-1).outputLineIndex}}let hi=[""];function fi(e){if(e>=hi.length)for(let t=1;t<=e;t++)hi[t]=gi(t);return hi[e]}function gi(e){return new Array(e+1).join(" ")}function pi(e,t){return null===e?t?ci.INSTANCE:di.INSTANCE:new ui(e,t)}class mi{constructor(e){this._lines=e}_validPosition(e){return this._lines.model.validatePosition(e)}_validRange(e){return this._lines.model.validateRange(e)}convertViewPositionToModelPosition(e){return this._validPosition(e)}convertViewRangeToModelRange(e){return this._validRange(e)}validateViewPosition(e,t){return this._validPosition(t)}validateViewRange(e,t){return this._validRange(t)}convertModelPositionToViewPosition(e){return this._validPosition(e)}convertModelRangeToViewRange(e){return this._validRange(e)}modelPositionIsVisible(e){const t=this._lines.model.getLineCount();return!(e.lineNumber<1||e.lineNumber>t)}}class _i{constructor(e){this.model=e}dispose(){}createCoordinatesConverter(){return new mi(this)}getHiddenAreas(){return[]}setHiddenAreas(e){return!1}setTabSize(e){return!1}setWrappingSettings(e,t,n,i){return!1}createLineBreaksComputer(){let e=[];return{addRequest:(t,n)=>{e.push(null)},finalize:()=>e}}onModelFlushed(){}onModelLinesDeleted(e,t,n){return new kn(t,n)}onModelLinesInserted(e,t,n,i){return new xn(t,n)}onModelLineChanged(e,t,n){return[!1,new Sn(t,t),null,null]}acceptVersionId(e){}getViewLineCount(){return this.model.getLineCount()}getActiveIndentGuide(e,t,n){return{startLineNumber:e,endLineNumber:e,indent:0}}getViewLinesIndentGuides(e,t){const n=t-e+1;let i=new Array(n);for(let e=0;e<n;e++)i[e]=0;return i}getViewLineContent(e){return this.model.getLineContent(e)}getViewLineLength(e){return this.model.getLineLength(e)}getViewLineMinColumn(e){return this.model.getLineMinColumn(e)}getViewLineMaxColumn(e){return this.model.getLineMaxColumn(e)}getViewLineData(e){let t=this.model.getLineTokens(e),n=t.getLineContent();return new vt.c(n,!1,1,n.length+1,0,t.inflate())}getViewLinesData(e,t,n){const i=this.model.getLineCount();e=Math.min(Math.max(1,e),i),t=Math.min(Math.max(1,t),i);let r=[];for(let i=e;i<=t;i++){let t=i-e;n[t]||(r[t]=null),r[t]=this.getViewLineData(i)}return r}getAllOverviewRulerDecorations(e,t,n){const i=this.model.getOverviewRulerDecorations(e,t),r=new bi;for(const e of i){const t=e.options.overviewRuler,i=t?t.position:0;if(0===i)continue;const o=t.getColor(n),s=e.range.startLineNumber,a=e.range.endLineNumber;r.accept(o,s,a,i)}return r.result}getDecorationsInRange(e,t,n){return this.model.getDecorationsInRange(e,t,n)}}class bi{constructor(){this.result=Object.create(null)}accept(e,t,n,i){let r=this.result[e];if(r){const e=r[r.length-3],o=r[r.length-1];if(e===i&&o+1>=t)return void(n>o&&(r[r.length-1]=n));r.push(i,t,n)}else this.result[e]=[i,t,n]}}class vi{constructor(e,t,n,i,r){this.editorId=e,this.model=t,this.configuration=n,this._linesCollection=i,this._coordinatesConverter=r,this._decorationsCache=Object.create(null),this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}_clearCachedModelDecorationsResolver(){this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}dispose(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}reset(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onModelDecorationsChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onLineMappingChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}_getOrCreateViewModelDecoration(e){const t=e.id;let n=this._decorationsCache[t];if(!n){const i=e.range,r=e.options;let o;if(r.isWholeLine){const e=this._coordinatesConverter.convertModelPositionToViewPosition(new te.a(i.startLineNumber,1)),t=this._coordinatesConverter.convertModelPositionToViewPosition(new te.a(i.endLineNumber,this.model.getLineMaxColumn(i.endLineNumber)));o=new ne.a(e.lineNumber,e.column,t.lineNumber,t.column)}else o=this._coordinatesConverter.convertModelRangeToViewRange(i);n=new vt.e(o,r),this._decorationsCache[t]=n}return n}getDecorationsViewportData(e){let t=null!==this._cachedModelDecorationsResolver;return(t=t&&e.equalsRange(this._cachedModelDecorationsResolverViewRange))||(this._cachedModelDecorationsResolver=this._getDecorationsViewportData(e),this._cachedModelDecorationsResolverViewRange=e),this._cachedModelDecorationsResolver}_getDecorationsViewportData(e){const t=this._linesCollection.getDecorationsInRange(e,this.editorId,Object(Y.l)(this.configuration.options)),n=e.startLineNumber,i=e.endLineNumber;let r=[],o=0,s=[];for(let e=n;e<=i;e++)s[e-n]=[];for(let e=0,a=t.length;e<a;e++){let a=t[e],l=a.options,c=this._getOrCreateViewModelDecoration(a),d=c.range;if(r[o++]=c,l.inlineClassName){let e=new vt.a(d,l.inlineClassName,l.inlineClassNameAffectsLetterSpacing?3:0),t=Math.max(n,d.startLineNumber),r=Math.min(i,d.endLineNumber);for(let i=t;i<=r;i++)s[i-n].push(e)}if(l.beforeContentClassName&&n<=d.startLineNumber&&d.startLineNumber<=i){let e=new vt.a(new ne.a(d.startLineNumber,d.startColumn,d.startLineNumber,d.startColumn),l.beforeContentClassName,1);s[d.startLineNumber-n].push(e)}if(l.afterContentClassName&&n<=d.endLineNumber&&d.endLineNumber<=i){let e=new vt.a(new ne.a(d.endLineNumber,d.endColumn,d.endLineNumber,d.endColumn),l.afterContentClassName,2);s[d.endLineNumber-n].push(e)}}return{decorations:r,inlineDecorations:s}}}const yi=!0;class wi extends a.a{constructor(e,t,n,i,r,o){if(super(),this._editorId=e,this._configuration=t,this.model=n,this._eventDispatcher=new Nn,this.onEvent=this._eventDispatcher.onEvent,this.cursorConfig=new ie.b(this.model.getLanguageIdentifier(),this.model.getOptions(),this._configuration),this._tokenizeViewportSoon=this._register(new _.d(()=>this.tokenizeViewport(),50)),this._updateConfigurationViewLineCount=this._register(new _.d(()=>this._updateConfigurationViewLineCountNow(),0)),this._hasFocus=!1,this._viewportStartLine=-1,this._viewportStartLineTrackedRange=null,this._viewportStartLineDelta=0,yi&&this.model.isTooLargeForTokenization())this._lines=new _i(this.model);else{const e=this._configuration.options,t=e.get(36),n=e.get(112),o=e.get(118),s=e.get(111);this._lines=new li(this.model,i,r,t,this.model.getOptions().tabSize,n,o.wrappingColumn,s)}this.coordinatesConverter=this._lines.createCoordinatesConverter(),this._cursor=this._register(new Yn(n,this,this.coordinatesConverter,this.cursorConfig)),this.viewLayout=this._register(new ti(this._configuration,this.getLineCount(),o)),this._register(this.viewLayout.onDidScroll(e=>{e.scrollTopChanged&&this._tokenizeViewportSoon.schedule(),this._eventDispatcher.emitSingleViewEvent(new Mn(e)),this._eventDispatcher.emitOutgoingEvent(new Pn(e.oldScrollWidth,e.oldScrollLeft,e.oldScrollHeight,e.oldScrollTop,e.scrollWidth,e.scrollLeft,e.scrollHeight,e.scrollTop))})),this._register(this.viewLayout.onDidContentSizeChange(e=>{this._eventDispatcher.emitOutgoingEvent(e)})),this._decorations=new vi(this._editorId,this.model,this._configuration,this._lines,this.coordinatesConverter),this._registerModelEvents(),this._register(this._configuration.onDidChangeFast(e=>{try{const t=this._eventDispatcher.beginEmitViewEvents();this._onConfigurationChanged(t,e)}finally{this._eventDispatcher.endEmitViewEvents()}})),this._register(bt.getInstance().onDidChange(()=>{this._eventDispatcher.emitSingleViewEvent(new Tn)})),this._updateConfigurationViewLineCountNow()}dispose(){super.dispose(),this._decorations.dispose(),this._lines.dispose(),this.invalidateMinimapColorCache(),this._viewportStartLineTrackedRange=this.model._setTrackedRange(this._viewportStartLineTrackedRange,null,1),this._eventDispatcher.dispose()}addViewEventHandler(e){this._eventDispatcher.addViewEventHandler(e)}removeViewEventHandler(e){this._eventDispatcher.removeViewEventHandler(e)}_updateConfigurationViewLineCountNow(){this._configuration.setViewLineCount(this._lines.getViewLineCount())}tokenizeViewport(){const e=this.viewLayout.getLinesViewportData(),t=this.coordinatesConverter.convertViewPositionToModelPosition(new te.a(e.startLineNumber,1)),n=this.coordinatesConverter.convertViewPositionToModelPosition(new te.a(e.endLineNumber,1));this.model.tokenizeViewport(t.lineNumber,n.lineNumber)}setHasFocus(e){this._hasFocus=e,this._cursor.setHasFocus(e),this._eventDispatcher.emitSingleViewEvent(new yn(e)),this._eventDispatcher.emitOutgoingEvent(new Rn(!e,e))}onDidColorThemeChange(){this._eventDispatcher.emitSingleViewEvent(new Dn)}_onConfigurationChanged(e,t){let n=null;if(-1!==this._viewportStartLine){let e=new te.a(this._viewportStartLine,this.getLineMinColumn(this._viewportStartLine));n=this.coordinatesConverter.convertViewPositionToModelPosition(e)}let i=!1;const r=this._configuration.options,o=r.get(36),s=r.get(112),a=r.get(118),l=r.get(111);if(this._lines.setWrappingSettings(o,s,a.wrappingColumn,l)&&(e.emitViewEvent(new vn),e.emitViewEvent(new Cn),e.emitViewEvent(new bn(null)),this._cursor.onLineMappingChanged(e),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),0!==this.viewLayout.getCurrentScrollTop()&&(i=!0),this._updateConfigurationViewLineCount.schedule()),t.hasChanged(72)&&(this._decorations.reset(),e.emitViewEvent(new bn(null))),e.emitViewEvent(new mn(t)),this.viewLayout.onConfigurationChanged(t),i&&n){const e=this.coordinatesConverter.convertModelPositionToViewPosition(n),t=this.viewLayout.getVerticalOffsetForLineNumber(e.lineNumber);this.viewLayout.setScrollPosition({scrollTop:t+this._viewportStartLineDelta},1)}ie.b.shouldRecreate(t)&&(this.cursorConfig=new ie.b(this.model.getLanguageIdentifier(),this.model.getOptions(),this._configuration),this._cursor.updateConfiguration(this.cursorConfig))}_registerModelEvents(){this._register(this.model.onDidChangeRawContentFast(e=>{try{const t=this._eventDispatcher.beginEmitViewEvents();let n=!1,i=!1;const r=e.changes,o=e.versionId,s=this._lines.createLineBreaksComputer();for(const e of r)switch(e.changeType){case 4:for(const t of e.detail)s.addRequest(t,null);break;case 2:s.addRequest(e.detail,null)}const a=s.finalize();let l=0;for(const e of r)switch(e.changeType){case 1:this._lines.onModelFlushed(),t.emitViewEvent(new vn),this._decorations.reset(),this.viewLayout.onFlushed(this.getLineCount()),n=!0;break;case 3:{const i=this._lines.onModelLinesDeleted(o,e.fromLineNumber,e.toLineNumber);null!==i&&(t.emitViewEvent(i),this.viewLayout.onLinesDeleted(i.fromLineNumber,i.toLineNumber)),n=!0;break}case 4:{const i=a.slice(l,l+e.detail.length);l+=e.detail.length;const r=this._lines.onModelLinesInserted(o,e.fromLineNumber,e.toLineNumber,i);null!==r&&(t.emitViewEvent(r),this.viewLayout.onLinesInserted(r.fromLineNumber,r.toLineNumber)),n=!0;break}case 2:{const n=a[l];l++;const[r,s,c,d]=this._lines.onModelLineChanged(o,e.lineNumber,n);i=r,s&&t.emitViewEvent(s),c&&(t.emitViewEvent(c),this.viewLayout.onLinesInserted(c.fromLineNumber,c.toLineNumber)),d&&(t.emitViewEvent(d),this.viewLayout.onLinesDeleted(d.fromLineNumber,d.toLineNumber));break}}this._lines.acceptVersionId(o),this.viewLayout.onHeightMaybeChanged(),!n&&i&&(t.emitViewEvent(new Cn),t.emitViewEvent(new bn(null)),this._cursor.onLineMappingChanged(t),this._decorations.onLineMappingChanged())}finally{this._eventDispatcher.endEmitViewEvents()}if(this._viewportStartLine=-1,this._configuration.setMaxLineNumber(this.model.getLineCount()),this._updateConfigurationViewLineCountNow(),!this._hasFocus&&this.model.getAttachedEditorCount()>=2&&this._viewportStartLineTrackedRange){const e=this.model._getTrackedRange(this._viewportStartLineTrackedRange);if(e){const t=this.coordinatesConverter.convertModelPositionToViewPosition(e.getStartPosition()),n=this.viewLayout.getVerticalOffsetForLineNumber(t.lineNumber);this.viewLayout.setScrollPosition({scrollTop:n+this._viewportStartLineDelta},1)}}try{const t=this._eventDispatcher.beginEmitViewEvents();this._cursor.onModelContentChanged(t,e)}finally{this._eventDispatcher.endEmitViewEvents()}})),this._register(this.model.onDidChangeTokens(e=>{let t=[];for(let n=0,i=e.ranges.length;n<i;n++){const i=e.ranges[n],r=this.coordinatesConverter.convertModelPositionToViewPosition(new te.a(i.fromLineNumber,1)).lineNumber,o=this.coordinatesConverter.convertModelPositionToViewPosition(new te.a(i.toLineNumber,this.model.getLineMaxColumn(i.toLineNumber))).lineNumber;t[n]={fromLineNumber:r,toLineNumber:o}}this._eventDispatcher.emitSingleViewEvent(new En(t)),e.tokenizationSupportChanged&&this._tokenizeViewportSoon.schedule()})),this._register(this.model.onDidChangeLanguageConfiguration(e=>{this._eventDispatcher.emitSingleViewEvent(new wn),this.cursorConfig=new ie.b(this.model.getLanguageIdentifier(),this.model.getOptions(),this._configuration),this._cursor.updateConfiguration(this.cursorConfig)})),this._register(this.model.onDidChangeLanguage(e=>{this.cursorConfig=new ie.b(this.model.getLanguageIdentifier(),this.model.getOptions(),this._configuration),this._cursor.updateConfiguration(this.cursorConfig)})),this._register(this.model.onDidChangeOptions(e=>{if(this._lines.setTabSize(this.model.getOptions().tabSize)){try{const e=this._eventDispatcher.beginEmitViewEvents();e.emitViewEvent(new vn),e.emitViewEvent(new Cn),e.emitViewEvent(new bn(null)),this._cursor.onLineMappingChanged(e),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount())}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule()}this.cursorConfig=new ie.b(this.model.getLanguageIdentifier(),this.model.getOptions(),this._configuration),this._cursor.updateConfiguration(this.cursorConfig)})),this._register(this.model.onDidChangeDecorations(e=>{this._decorations.onModelDecorationsChanged(),this._eventDispatcher.emitSingleViewEvent(new bn(e))}))}setHiddenAreas(e){try{const t=this._eventDispatcher.beginEmitViewEvents();this._lines.setHiddenAreas(e)&&(t.emitViewEvent(new vn),t.emitViewEvent(new Cn),t.emitViewEvent(new bn(null)),this._cursor.onLineMappingChanged(t),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.onHeightMaybeChanged())}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule()}getVisibleRangesPlusViewportAboveBelow(){const e=this._configuration.options.get(117),t=this._configuration.options.get(51),n=Math.max(20,Math.round(e.height/t)),i=this.viewLayout.getLinesViewportData(),r=Math.max(1,i.completelyVisibleStartLineNumber-n),o=Math.min(this.getLineCount(),i.completelyVisibleEndLineNumber+n);return this._toModelVisibleRanges(new ne.a(r,this.getLineMinColumn(r),o,this.getLineMaxColumn(o)))}getVisibleRanges(){const e=this.getCompletelyVisibleViewRange();return this._toModelVisibleRanges(e)}_toModelVisibleRanges(e){const t=this.coordinatesConverter.convertViewRangeToModelRange(e),n=this._lines.getHiddenAreas();if(0===n.length)return[t];let i=[],r=0,o=t.startLineNumber,s=t.startColumn,a=t.endLineNumber,l=t.endColumn;for(let e=0,t=n.length;e<t;e++){const t=n[e].startLineNumber,l=n[e].endLineNumber;l<o||(t>a||(o<t&&(i[r++]=new ne.a(o,s,t-1,this.model.getLineMaxColumn(t-1))),o=l+1,s=1))}return(o<a||o===a&&s<l)&&(i[r++]=new ne.a(o,s,a,l)),i}getCompletelyVisibleViewRange(){const e=this.viewLayout.getLinesViewportData(),t=e.completelyVisibleStartLineNumber,n=e.completelyVisibleEndLineNumber;return new ne.a(t,this.getLineMinColumn(t),n,this.getLineMaxColumn(n))}getCompletelyVisibleViewRangeAtScrollTop(e){const t=this.viewLayout.getLinesViewportDataAtScrollTop(e),n=t.completelyVisibleStartLineNumber,i=t.completelyVisibleEndLineNumber;return new ne.a(n,this.getLineMinColumn(n),i,this.getLineMaxColumn(i))}saveState(){const e=this.viewLayout.saveState(),t=e.scrollTop,n=this.viewLayout.getLineNumberAtVerticalOffset(t),i=this.coordinatesConverter.convertViewPositionToModelPosition(new te.a(n,this.getLineMinColumn(n))),r=this.viewLayout.getVerticalOffsetForLineNumber(n)-t;return{scrollLeft:e.scrollLeft,firstPosition:i,firstPositionDeltaTop:r}}reduceRestoreState(e){if(void 0===e.firstPosition)return this._reduceRestoreStateCompatibility(e);const t=this.model.validatePosition(e.firstPosition),n=this.coordinatesConverter.convertModelPositionToViewPosition(t),i=this.viewLayout.getVerticalOffsetForLineNumber(n.lineNumber)-e.firstPositionDeltaTop;return{scrollLeft:e.scrollLeft,scrollTop:i}}_reduceRestoreStateCompatibility(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTopWithoutViewZones}}getTabSize(){return this.model.getOptions().tabSize}getTextModelOptions(){return this.model.getOptions()}getLineCount(){return this._lines.getViewLineCount()}setViewport(e,t,n){this._viewportStartLine=e;let i=this.coordinatesConverter.convertViewPositionToModelPosition(new te.a(e,this.getLineMinColumn(e)));this._viewportStartLineTrackedRange=this.model._setTrackedRange(this._viewportStartLineTrackedRange,new ne.a(i.lineNumber,i.column,i.lineNumber,i.column),1);const r=this.viewLayout.getVerticalOffsetForLineNumber(e),o=this.viewLayout.getCurrentScrollTop();this._viewportStartLineDelta=o-r}getActiveIndentGuide(e,t,n){return this._lines.getActiveIndentGuide(e,t,n)}getLinesIndentGuides(e,t){return this._lines.getViewLinesIndentGuides(e,t)}getLineContent(e){return this._lines.getViewLineContent(e)}getLineLength(e){return this._lines.getViewLineLength(e)}getLineMinColumn(e){return this._lines.getViewLineMinColumn(e)}getLineMaxColumn(e){return this._lines.getViewLineMaxColumn(e)}getLineFirstNonWhitespaceColumn(e){const t=xe.w(this.getLineContent(e));return-1===t?0:t+1}getLineLastNonWhitespaceColumn(e){const t=xe.J(this.getLineContent(e));return-1===t?0:t+2}getDecorationsInViewport(e){return this._decorations.getDecorationsViewportData(e).decorations}getViewLineRenderingData(e,t){let n=this.model.mightContainRTL(),i=this.model.mightContainNonBasicASCII(),r=this.getTabSize(),o=this._lines.getViewLineData(t),s=this._decorations.getDecorationsViewportData(e).inlineDecorations[t-e.startLineNumber];return new vt.d(o.minColumn,o.maxColumn,o.content,o.continuesWithWrappedLine,n,i,o.tokens,s,r,o.startVisibleColumn)}getViewLineData(e){return this._lines.getViewLineData(e)}getMinimapLinesRenderingData(e,t,n){let i=this._lines.getViewLinesData(e,t,n);return new vt.b(this.getTabSize(),i)}getAllOverviewRulerDecorations(e){return this._lines.getAllOverviewRulerDecorations(this._editorId,Object(Y.l)(this._configuration.options),e)}invalidateOverviewRulerColorCache(){const e=this.model.getOverviewRulerDecorations();for(const t of e){const e=t.options.overviewRuler;e&&e.invalidateCachedColor()}}invalidateMinimapColorCache(){const e=this.model.getAllDecorations();for(const t of e){const e=t.options.minimap;e&&e.invalidateCachedColor()}}getValueInRange(e,t){const n=this.coordinatesConverter.convertViewRangeToModelRange(e);return this.model.getValueInRange(n,t)}getModelLineMaxColumn(e){return this.model.getLineMaxColumn(e)}validateModelPosition(e){return this.model.validatePosition(e)}validateModelRange(e){return this.model.validateRange(e)}deduceModelPositionRelativeToViewPosition(e,t,n){const i=this.coordinatesConverter.convertViewPositionToModelPosition(e);2===this.model.getEOL().length&&(t<0?t-=n:t+=n);const r=this.model.getOffsetAt(i)+t;return this.model.getPositionAt(r)}getEOL(){return this.model.getEOL()}getPlainTextToCopy(e,t,n){const i=n?"\r\n":this.model.getEOL();(e=e.slice(0)).sort(ne.a.compareRangesUsingStarts);let r=!1,o=!1;for(const t of e)t.isEmpty()?r=!0:o=!0;if(!o){if(!t)return"";const n=e.map(e=>e.startLineNumber);let r="";for(let e=0;e<n.length;e++)e>0&&n[e-1]===n[e]||(r+=this.model.getLineContent(n[e])+i);return r}if(r&&t){let t=[],i=0;for(const r of e){const e=r.startLineNumber;r.isEmpty()?e!==i&&t.push(this.model.getLineContent(e)):t.push(this.model.getValueInRange(r,n?2:0)),i=e}return 1===t.length?t[0]:t}let s=[];for(const t of e)t.isEmpty()||s.push(this.model.getValueInRange(t,n?2:0));return 1===s.length?s[0]:s}getRichTextToCopy(e,t){const n=this.model.getLanguageIdentifier();if(1===n.id)return null;if(1!==e.length)return null;let i=e[0];if(i.isEmpty()){if(!t)return null;const e=i.startLineNumber;i=new ne.a(e,this.model.getLineMinColumn(e),e,this.model.getLineMaxColumn(e))}const r=this._configuration.options.get(36),o=this._getColorMap(),s=r.fontFamily===Y.c.fontFamily?r.fontFamily:`'${r.fontFamily}', ${Y.c.fontFamily}`;return{mode:n.language,html:'<div style="'+`color: ${o[1]};`+`background-color: ${o[2]};`+`font-family: ${s};`+`font-weight: ${r.fontWeight};`+`font-size: ${r.fontSize}px;`+`line-height: ${r.lineHeight}px;`+'white-space: pre;">'+this._getHTMLToCopy(i,o)+"</div>"}}_getHTMLToCopy(e,t){const n=e.startLineNumber,i=e.startColumn,r=e.endLineNumber,o=e.endColumn,s=this.getTabSize();let a="";for(let e=n;e<=r;e++){const l=this.model.getLineTokens(e),c=l.getLineContent(),d=e===n?i-1:0,u=e===r?o-1:c.length;a+=""===c?"<br>":Object(qn.a)(c,l.inflate(),t,d,u,s,g.i)}return a}_getColorMap(){let e=_t.C.getColorMap(),t=["#000000"];if(e)for(let n=1,i=e.length;n<i;n++)t[n]=Yt.a.Format.CSS.formatHex(e[n]);return t}pushStackElement(){this.model.pushStackElement()}getPrimaryCursorState(){return this._cursor.getPrimaryCursorState()}getLastAddedCursorIndex(){return this._cursor.getLastAddedCursorIndex()}getCursorStates(){return this._cursor.getCursorStates()}setCursorStates(e,t,n){this._withViewEventsCollector(i=>this._cursor.setStates(i,e,t,n))}getCursorColumnSelectData(){return this._cursor.getCursorColumnSelectData()}setCursorColumnSelectData(e){this._cursor.setCursorColumnSelectData(e)}getPrevEditOperationType(){return this._cursor.getPrevEditOperationType()}setPrevEditOperationType(e){this._cursor.setPrevEditOperationType(e)}getSelection(){return this._cursor.getSelection()}getSelections(){return this._cursor.getSelections()}getPosition(){return this._cursor.getPrimaryCursorState().modelState.position}setSelections(e,t){this._withViewEventsCollector(n=>this._cursor.setSelections(n,e,t))}saveCursorState(){return this._cursor.saveState()}restoreCursorState(e){this._withViewEventsCollector(t=>this._cursor.restoreState(t,e))}_executeCursorEdit(e){this._cursor.context.cursorConfig.readOnly?this._eventDispatcher.emitOutgoingEvent(new Bn):this._withViewEventsCollector(e)}executeEdits(e,t,n){this._executeCursorEdit(i=>this._cursor.executeEdits(i,e,t,n))}startComposition(){this._cursor.setIsDoingComposition(!0),this._executeCursorEdit(e=>this._cursor.startComposition(e))}endComposition(e){this._cursor.setIsDoingComposition(!1),this._executeCursorEdit(t=>this._cursor.endComposition(t,e))}type(e,t){this._executeCursorEdit(n=>this._cursor.type(n,e,t))}replacePreviousChar(e,t,n){this._executeCursorEdit(i=>this._cursor.replacePreviousChar(i,e,t,n))}paste(e,t,n,i){this._executeCursorEdit(r=>this._cursor.paste(r,e,t,n,i))}cut(e){this._executeCursorEdit(t=>this._cursor.cut(t,e))}executeCommand(e,t){this._executeCursorEdit(n=>this._cursor.executeCommand(n,e,t))}executeCommands(e,t){this._executeCursorEdit(n=>this._cursor.executeCommands(n,e,t))}revealPrimaryCursor(e,t){this._withViewEventsCollector(n=>this._cursor.revealPrimary(n,e,t,0))}revealTopMostCursor(e){const t=this._cursor.getTopMostViewPosition(),n=new ne.a(t.lineNumber,t.column,t.lineNumber,t.column);this._withViewEventsCollector(t=>t.emitViewEvent(new Ln(e,n,null,0,!0,0)))}revealBottomMostCursor(e){const t=this._cursor.getBottomMostViewPosition(),n=new ne.a(t.lineNumber,t.column,t.lineNumber,t.column);this._withViewEventsCollector(t=>t.emitViewEvent(new Ln(e,n,null,0,!0,0)))}revealRange(e,t,n,i,r){this._withViewEventsCollector(o=>o.emitViewEvent(new Ln(e,n,null,i,t,r)))}getVerticalOffsetForLineNumber(e){return this.viewLayout.getVerticalOffsetForLineNumber(e)}getScrollTop(){return this.viewLayout.getCurrentScrollTop()}setScrollTop(e,t){this.viewLayout.setScrollPosition({scrollTop:e},t)}setScrollPosition(e,t){this.viewLayout.setScrollPosition(e,t)}deltaScrollNow(e,t){this.viewLayout.deltaScrollNow(e,t)}changeWhitespace(e){this.viewLayout.changeWhitespace(e)&&(this._eventDispatcher.emitSingleViewEvent(new On),this._eventDispatcher.emitOutgoingEvent(new jn))}setMaxLineWidth(e){this.viewLayout.setMaxLineWidth(e)}_withViewEventsCollector(e){try{e(this._eventDispatcher.beginEmitViewEvents())}finally{this._eventDispatcher.endEmitViewEvents()}}}var Ci=n(28),Si=n(9),ki=n(17),xi=n(154),Li=n(40),Mi=n(67),Di=n(20),Ei=n(111);class Ti extends Ei.a{constructor(e,t){super(0);for(let t=0;t<e.length;t++)this.set(e.charCodeAt(t),1);for(let e=0;e<t.length;e++)this.set(t.charCodeAt(e),2)}get(e){return e>=0&&e<256?this._asciiMap[e]:e>=12352&&e<=12543||e>=13312&&e<=19903||e>=19968&&e<=40959?3:this._map.get(e)||this._defaultValue}}let Oi=[],Ni=[];class Ii{constructor(e,t){this.classifier=new Ti(e,t)}static create(e){return new Ii(e.get(108),e.get(107))}createLineBreaksComputer(e,t,n,i){t|=0,n=+n;let r=[],o=[];return{addRequest:(e,t)=>{r.push(e),o.push(t)},finalize:()=>{const s=e.typicalFullwidthCharacterWidth/e.typicalHalfwidthCharacterWidth;let a=[];for(let e=0,l=r.length;e<l;e++){const l=o[e];a[e]=l?Ai(this.classifier,l,r[e],t,n,s,i):Ri(this.classifier,r[e],t,n,s,i)}return Oi.length=0,Ni.length=0,a}}}}function Ai(e,t,n,i,r,o,s){if(-1===r)return null;const a=n.length;if(a<=1)return null;const l=t.breakOffsets,c=t.breakOffsetsVisibleColumn,d=Bi(n,i,r,o,s),u=r-d;let h=Oi,f=Ni,g=0,p=0,m=0,_=r;const b=l.length;let v=0;if(v>=0){let e=Math.abs(c[v]-_);for(;v+1<b;){const t=Math.abs(c[v+1]-_);if(t>=e)break;e=t,v++}}for(;v<b;){let t=v<0?0:l[v],r=v<0?0:c[v];p>t&&(t=p,r=m);let s=0,d=0,y=0,w=0;if(r<=_){let m=r,b=0===t?0:n.charCodeAt(t-1),v=0===t?0:e.get(b),C=!0;for(let r=t;r<a;r++){const t=r,a=n.charCodeAt(r);let l,c;if(xe.F(a)?(r++,l=0,c=2):(l=e.get(a),c=Pi(a,m,i,o)),t>p&&Fi(b,v,a,l)&&(s=t,d=m),(m+=c)>_){t>p?(y=t,w=m-c):(y=r+1,w=m),m-d>u&&(s=0),C=!1;break}b=a,v=l}if(C){g>0&&(h[g]=l[l.length-1],f[g]=c[l.length-1],g++);break}}if(0===s){let a=r,l=n.charCodeAt(t),c=e.get(l),h=!1;for(let i=t-1;i>=p;i--){const t=i+1,r=n.charCodeAt(i);if(9===r){h=!0;break}let f,g;if(xe.G(r)?(i--,f=0,g=2):(f=e.get(r),g=xe.E(r)?o:1),a<=_){if(0===y&&(y=t,w=a),a<=_-u)break;if(Fi(r,f,l,c)){s=t,d=a;break}}a-=g,l=r,c=f}if(0!==s){const e=u-(w-d);if(e<=i){const t=n.charCodeAt(y);let r;e-(r=xe.F(t)?2:Pi(t,w,i,o))<0&&(s=0)}}if(h){v--;continue}}for(0===s&&(s=y,d=w),p=s,h[g]=s,m=d,f[g]=d,g++,_=d+u;v<0||v<b&&c[v]<d;)v++;let C=Math.abs(c[v]-_);for(;v+1<b;){const e=Math.abs(c[v+1]-_);if(e>=C)break;C=e,v++}}return 0===g?null:(h.length=g,f.length=g,Oi=t.breakOffsets,Ni=t.breakOffsetsVisibleColumn,t.breakOffsets=h,t.breakOffsetsVisibleColumn=f,t.wrappedTextIndentLength=d,t)}function Ri(e,t,n,i,r,o){if(-1===i)return null;const s=t.length;if(s<=1)return null;const a=Bi(t,n,i,r,o),l=i-a;let c=[],d=[],u=0,h=0,f=0,g=i,p=t.charCodeAt(0),m=e.get(p),_=Pi(p,0,n,r),b=1;xe.F(p)&&(_+=1,p=t.charCodeAt(1),m=e.get(p),b++);for(let i=b;i<s;i++){const o=i,s=t.charCodeAt(i);let a,b;xe.F(s)?(i++,a=0,b=2):(a=e.get(s),b=Pi(s,_,n,r)),Fi(p,m,s,a)&&(h=o,f=_),(_+=b)>g&&((0===h||_-f>l)&&(h=o,f=_-b),c[u]=h,d[u]=f,u++,g=f+l,h=0),p=s,m=a}return 0===u?null:(c[u]=s,d[u]=_,new oi(c,d,a))}function Pi(e,t,n,i){return 9===e?n-t%n:xe.E(e)?i:1}function ji(e,t){return t-e%t}function Fi(e,t,n,i){return 32!==n&&(2===t||3===t&&2!==i||1===i||3===i&&1!==t)}function Bi(e,t,n,i,r){let o=0;if(0!==r){const s=xe.w(e);if(-1!==s){for(let n=0;n<s;n++){o+=9===e.charCodeAt(n)?ji(o,t):1}const a=3===r?2:2===r?1:0;for(let e=0;e<a;e++){o+=ji(o,t)}o+i>n&&(o=0)}}return o}class Wi{static create(){return new Wi}constructor(){}createLineBreaksComputer(e,t,n,i){t|=0,n=+n;let r=[];return{addRequest:(e,t)=>{r.push(e)},finalize:()=>(function(e,t,n,i,r){if(-1===i){const t=[];for(let n=0,i=e.length;n<i;n++)t[n]=null;return t}const o=Math.round(i*t.typicalHalfwidthCharacterWidth);2!==r&&3!==r||(r=1);const s=document.createElement("div");c.a.applyFontInfoSlow(s,t);const a=Object(He.a)(1e4),l=[],d=[],u=[],h=[],f=[];for(let i=0;i<e.length;i++){const s=e[i];let c=0,g=0,p=o;if(0!==r)if(-1===(c=xe.w(s)))c=0;else{for(let e=0;e<c;e++){const t=9===s.charCodeAt(e)?n-g%n:1;g+=t}const e=Math.ceil(t.spaceWidth*g);e+t.typicalFullwidthCharacterWidth>o?(c=0,g=0):p=o-e}const m=s.substr(c),_=Hi(m,g,n,p,a);l[i]=c,d[i]=g,u[i]=m,h[i]=_[0],f[i]=_[1]}s.innerHTML=a.build(),s.style.position="absolute",s.style.top="10000",s.style.wordWrap="break-word",document.body.appendChild(s);let g=document.createRange();const p=Array.prototype.slice.call(s.children,0);let m=[];for(let t=0;t<e.length;t++){const e=p[t],n=Yi(g,e,u[t],h[t]);if(null===n){m[t]=null;continue}const i=l[t],r=d[t],o=f[t],s=[];for(let e=0,t=n.length;e<t;e++)s[e]=o[n[e]];if(0!==i)for(let e=0,t=n.length;e<t;e++)n[e]+=i;m[t]=new oi(n,s,r)}return document.body.removeChild(s),m})(r,e,t,n,i)}}}function Hi(e,t,n,i,r){r.appendASCIIString('<div style="width:'),r.appendASCIIString(String(i)),r.appendASCIIString('px;">');const o=e.length;let s=t,a=0,l=[],c=[],d=0<o?e.charCodeAt(0):0;r.appendASCIIString("<span>");for(let t=0;t<o;t++){0!==t&&t%16384==0&&r.appendASCIIString("</span><span>"),l[t]=a,c[t]=s;const i=d;d=t+1<o?e.charCodeAt(t+1):0;let u=1,h=1;switch(i){case 9:h=u=n-s%n;for(let e=1;e<=u;e++)e<u?r.write1(160):r.appendASCII(32);break;case 32:32===d?r.write1(160):r.appendASCII(32);break;case 60:r.appendASCIIString("<");break;case 62:r.appendASCIIString(">");break;case 38:r.appendASCIIString("&");break;case 0:r.appendASCIIString("�");break;case 65279:case 8232:case 8233:case 133:r.write1(65533);break;default:xe.E(i)&&h++,r.write1(i)}a+=u,s+=h}return r.appendASCIIString("</span>"),l[e.length]=a,c[e.length]=s,r.appendASCIIString("</div>"),[l,c]}function Yi(e,t,n,i){if(n.length<=1)return null;const r=Array.prototype.slice.call(t.children,0),o=[];try{!function e(t,n,i,r,o,s,a,l){if(r===s)return;if(o=o||Vi(t,n,i[r],i[r+1]),a=a||Vi(t,n,i[s],i[s+1]),Math.abs(o[0].top-a[0].top)<=.1)return;if(r+1===s)return void l.push(s);const c=r+(s-r)/2|0,d=Vi(t,n,i[c],i[c+1]);e(t,n,i,r,o,c,d,l),e(t,n,i,c,d,s,a,l)}(e,r,i,0,null,n.length-1,null,o)}catch(e){return console.log(e),null}return 0===o.length?null:(o.push(n.length),o)}function Vi(e,t,n,i){return e.setStart(t[n/16384|0].firstChild,n%16384),e.setEnd(t[i/16384|0].firstChild,i%16384),e.getClientRects()}var zi=n(122);n.d(t,"a",(function(){return Ki}));var Ui=function(e,t){return function(n,i){t(n,i,e)}};let $i=0;class qi{constructor(e,t,n,i,r){this.model=e,this.viewModel=t,this.view=n,this.hasRealView=i,this.listenersToRemove=r}dispose(){Object(a.f)(this.listenersToRemove),this.model.onBeforeDetached(),this.hasRealView&&this.view.dispose(),this.viewModel.dispose()}}let Ki=class e extends a.a{constructor(e,t,n,i,r,a,l,c,u,h){let f;super(),this._onDidDispose=this._register(new s.a),this.onDidDispose=this._onDidDispose.event,this._onDidChangeModelContent=this._register(new s.a),this.onDidChangeModelContent=this._onDidChangeModelContent.event,this._onDidChangeModelLanguage=this._register(new s.a),this.onDidChangeModelLanguage=this._onDidChangeModelLanguage.event,this._onDidChangeModelLanguageConfiguration=this._register(new s.a),this.onDidChangeModelLanguageConfiguration=this._onDidChangeModelLanguageConfiguration.event,this._onDidChangeModelOptions=this._register(new s.a),this.onDidChangeModelOptions=this._onDidChangeModelOptions.event,this._onDidChangeModelDecorations=this._register(new s.a),this.onDidChangeModelDecorations=this._onDidChangeModelDecorations.event,this._onDidChangeConfiguration=this._register(new s.a),this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._onDidChangeModel=this._register(new s.a),this.onDidChangeModel=this._onDidChangeModel.event,this._onDidChangeCursorPosition=this._register(new s.a),this.onDidChangeCursorPosition=this._onDidChangeCursorPosition.event,this._onDidChangeCursorSelection=this._register(new s.a),this.onDidChangeCursorSelection=this._onDidChangeCursorSelection.event,this._onDidAttemptReadOnlyEdit=this._register(new s.a),this.onDidAttemptReadOnlyEdit=this._onDidAttemptReadOnlyEdit.event,this._onDidLayoutChange=this._register(new s.a),this.onDidLayoutChange=this._onDidLayoutChange.event,this._editorTextFocus=this._register(new Gi),this.onDidFocusEditorText=this._editorTextFocus.onDidChangeToTrue,this.onDidBlurEditorText=this._editorTextFocus.onDidChangeToFalse,this._editorWidgetFocus=this._register(new Gi),this.onDidFocusEditorWidget=this._editorWidgetFocus.onDidChangeToTrue,this.onDidBlurEditorWidget=this._editorWidgetFocus.onDidChangeToFalse,this._onWillType=this._register(new s.a),this.onWillType=this._onWillType.event,this._onDidType=this._register(new s.a),this.onDidType=this._onDidType.event,this._onDidCompositionStart=this._register(new s.a),this.onDidCompositionStart=this._onDidCompositionStart.event,this._onDidCompositionEnd=this._register(new s.a),this.onDidCompositionEnd=this._onDidCompositionEnd.event,this._onDidPaste=this._register(new s.a),this.onDidPaste=this._onDidPaste.event,this._onMouseUp=this._register(new s.a),this.onMouseUp=this._onMouseUp.event,this._onMouseDown=this._register(new s.a),this.onMouseDown=this._onMouseDown.event,this._onMouseDrag=this._register(new s.a),this.onMouseDrag=this._onMouseDrag.event,this._onMouseDrop=this._register(new s.a),this.onMouseDrop=this._onMouseDrop.event,this._onContextMenu=this._register(new s.a),this.onContextMenu=this._onContextMenu.event,this._onMouseMove=this._register(new s.a),this.onMouseMove=this._onMouseMove.event,this._onMouseLeave=this._register(new s.a),this.onMouseLeave=this._onMouseLeave.event,this._onMouseWheel=this._register(new s.a),this.onMouseWheel=this._onMouseWheel.event,this._onKeyUp=this._register(new s.a),this.onKeyUp=this._onKeyUp.event,this._onKeyDown=this._register(new s.a),this.onKeyDown=this._onKeyDown.event,this._onDidContentSizeChange=this._register(new s.a),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._onDidScrollChange=this._register(new s.a),this.onDidScrollChange=this._onDidScrollChange.event,this._onDidChangeViewZones=this._register(new s.a),this.onDidChangeViewZones=this._onDidChangeViewZones.event,t=t||{},this._domElement=e,this._overflowWidgetsDomNode=t.overflowWidgetsDomNode,this._id=++$i,this._decorationTypeKeysToIds={},this._decorationTypeSubtypes={},this.isSimpleWidget=n.isSimpleWidget||!1,this._telemetryData=n.telemetryData,this._configuration=this._register(this._createConfiguration(t,h)),this._register(this._configuration.onDidChange(e=>{this._onDidChangeConfiguration.fire(e);const t=this._configuration.options;if(e.hasChanged(117)){const e=t.get(117);this._onDidLayoutChange.fire(e)}})),this._contextKeyService=this._register(l.createScoped(this._domElement)),this._notificationService=u,this._codeEditorService=r,this._commandService=a,this._themeService=c,this._register(new Zi(this,this._contextKeyService)),this._register(new Ji(this,this._contextKeyService)),this._instantiationService=i.createChild(new xi.a([Si.b,this._contextKeyService])),this._modelData=null,this._contributions={},this._actions={},this._focusTracker=new Xi(e),this._focusTracker.onChange(()=>{this._editorWidgetFocus.setValue(this._focusTracker.hasFocus())}),this._contentWidgets={},this._overlayWidgets={},f=Array.isArray(n.contributions)?n.contributions:d.d.getEditorContributions();for(const e of f)try{const t=this._instantiationService.createInstance(e.ctor,this);this._contributions[e.id]=t}catch(e){Object(o.e)(e)}d.d.getEditorActions().forEach(e=>{const t=new zn.a(e.id,e.label,e.alias,Object(Di.n)(e.precondition),()=>this._instantiationService.invokeFunction(t=>Promise.resolve(e.runEditorCommand(t,this,null))),this._contextKeyService);this._actions[t.id]=t}),this._codeEditorService.addCodeEditor(this)}_createConfiguration(e,t){return new c.a(this.isSimpleWidget,e,this._domElement,t)}getId(){return this.getEditorType()+":"+this._id}getEditorType(){return Un.a.ICodeEditor}dispose(){this._codeEditorService.removeCodeEditor(this),this._focusTracker.dispose();const e=Object.keys(this._contributions);for(let t=0,n=e.length;t<n;t++){const n=e[t];this._contributions[n].dispose()}this._removeDecorationTypes(),this._postDetachModelCleanup(this._detachModel()),this._onDidDispose.fire(),super.dispose()}invokeWithinContext(e){return this._instantiationService.invokeFunction(e)}updateOptions(e){this._configuration.updateOptions(e)}getOptions(){return this._configuration.options}getOption(e){return this._configuration.options.get(e)}getRawOptions(){return this._configuration.getRawOptions()}getOverflowWidgetsDomNode(){return this._overflowWidgetsDomNode}getConfiguredWordAtPosition(e){return this._modelData?zi.a.getWordAtPosition(this._modelData.model,this._configuration.options.get(105),e):null}getValue(e=null){if(!this._modelData)return"";const t=!(!e||!e.preserveBOM);let n=0;return e&&e.lineEnding&&"\n"===e.lineEnding?n=1:e&&e.lineEnding&&"\r\n"===e.lineEnding&&(n=2),this._modelData.model.getValue(n,t)}setValue(e){this._modelData&&this._modelData.model.setValue(e)}getModel(){return this._modelData?this._modelData.model:null}setModel(e=null){const t=e;if(null===this._modelData&&null===t)return;if(this._modelData&&this._modelData.model===t)return;const n=this.hasTextFocus(),i=this._detachModel();this._attachModel(t),n&&this.hasModel()&&this.focus();const r={oldModelUrl:i?i.uri:null,newModelUrl:t?t.uri:null};this._removeDecorationTypes(),this._onDidChangeModel.fire(r),this._postDetachModelCleanup(i)}_removeDecorationTypes(){if(this._decorationTypeKeysToIds={},this._decorationTypeSubtypes){for(let e in this._decorationTypeSubtypes){const t=this._decorationTypeSubtypes[e];for(let n in t)this._removeDecorationType(e+"-"+n)}this._decorationTypeSubtypes={}}}getVisibleRanges(){return this._modelData?this._modelData.viewModel.getVisibleRanges():[]}getVisibleRangesPlusViewportAboveBelow(){return this._modelData?this._modelData.viewModel.getVisibleRangesPlusViewportAboveBelow():[]}getWhitespaces(){return this._modelData?this._modelData.viewModel.viewLayout.getWhitespaces():[]}static _getVerticalOffsetForPosition(e,t,n){const i=e.model.validatePosition({lineNumber:t,column:n}),r=e.viewModel.coordinatesConverter.convertModelPositionToViewPosition(i);return e.viewModel.viewLayout.getVerticalOffsetForLineNumber(r.lineNumber)}getTopForLineNumber(t){return this._modelData?e._getVerticalOffsetForPosition(this._modelData,t,1):-1}getTopForPosition(t,n){return this._modelData?e._getVerticalOffsetForPosition(this._modelData,t,n):-1}setHiddenAreas(e){this._modelData&&this._modelData.viewModel.setHiddenAreas(e.map(e=>ne.a.lift(e)))}getVisibleColumnFromPosition(e){if(!this._modelData)return e.column;const t=this._modelData.model.validatePosition(e),n=this._modelData.model.getOptions().tabSize;return ie.a.visibleColumnFromColumn(this._modelData.model.getLineContent(t.lineNumber),t.column,n)+1}getPosition(){return this._modelData?this._modelData.viewModel.getPosition():null}setPosition(e){if(this._modelData){if(!te.a.isIPosition(e))throw new Error("Invalid arguments");this._modelData.viewModel.setSelections("api",[{selectionStartLineNumber:e.lineNumber,selectionStartColumn:e.column,positionLineNumber:e.lineNumber,positionColumn:e.column}])}}_sendRevealRange(e,t,n,i){if(!this._modelData)return;if(!ne.a.isIRange(e))throw new Error("Invalid arguments");const r=this._modelData.model.validateRange(e),o=this._modelData.viewModel.coordinatesConverter.convertModelRangeToViewRange(r);this._modelData.viewModel.revealRange("api",n,o,t,i)}revealLine(e,t=0){this._revealLine(e,0,t)}revealLineInCenter(e,t=0){this._revealLine(e,1,t)}revealLineInCenterIfOutsideViewport(e,t=0){this._revealLine(e,2,t)}revealLineNearTop(e,t=0){this._revealLine(e,5,t)}_revealLine(e,t,n){if("number"!=typeof e)throw new Error("Invalid arguments");this._sendRevealRange(new ne.a(e,1,e,1),t,!1,n)}revealPosition(e,t=0){this._revealPosition(e,0,!0,t)}revealPositionInCenter(e,t=0){this._revealPosition(e,1,!0,t)}revealPositionInCenterIfOutsideViewport(e,t=0){this._revealPosition(e,2,!0,t)}revealPositionNearTop(e,t=0){this._revealPosition(e,5,!0,t)}_revealPosition(e,t,n,i){if(!te.a.isIPosition(e))throw new Error("Invalid arguments");this._sendRevealRange(new ne.a(e.lineNumber,e.column,e.lineNumber,e.column),t,n,i)}getSelection(){return this._modelData?this._modelData.viewModel.getSelection():null}getSelections(){return this._modelData?this._modelData.viewModel.getSelections():null}setSelection(e){const t=h.a.isISelection(e),n=ne.a.isIRange(e);if(!t&&!n)throw new Error("Invalid arguments");if(t)this._setSelectionImpl(e);else if(n){const t={selectionStartLineNumber:e.startLineNumber,selectionStartColumn:e.startColumn,positionLineNumber:e.endLineNumber,positionColumn:e.endColumn};this._setSelectionImpl(t)}}_setSelectionImpl(e){if(!this._modelData)return;const t=new h.a(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn);this._modelData.viewModel.setSelections("api",[t])}revealLines(e,t,n=0){this._revealLines(e,t,0,n)}revealLinesInCenter(e,t,n=0){this._revealLines(e,t,1,n)}revealLinesInCenterIfOutsideViewport(e,t,n=0){this._revealLines(e,t,2,n)}revealLinesNearTop(e,t,n=0){this._revealLines(e,t,5,n)}_revealLines(e,t,n,i){if("number"!=typeof e||"number"!=typeof t)throw new Error("Invalid arguments");this._sendRevealRange(new ne.a(e,1,t,1),n,!1,i)}revealRange(e,t=0,n=!1,i=!0){this._revealRange(e,n?1:0,i,t)}revealRangeInCenter(e,t=0){this._revealRange(e,1,!0,t)}revealRangeInCenterIfOutsideViewport(e,t=0){this._revealRange(e,2,!0,t)}revealRangeNearTop(e,t=0){this._revealRange(e,5,!0,t)}revealRangeNearTopIfOutsideViewport(e,t=0){this._revealRange(e,6,!0,t)}revealRangeAtTop(e,t=0){this._revealRange(e,3,!0,t)}_revealRange(e,t,n,i){if(!ne.a.isIRange(e))throw new Error("Invalid arguments");this._sendRevealRange(ne.a.lift(e),t,n,i)}setSelections(e,t="api"){if(this._modelData){if(!e||0===e.length)throw new Error("Invalid arguments");for(let t=0,n=e.length;t<n;t++)if(!h.a.isISelection(e[t]))throw new Error("Invalid arguments");this._modelData.viewModel.setSelections(t,e)}}getContentWidth(){return this._modelData?this._modelData.viewModel.viewLayout.getContentWidth():-1}getScrollWidth(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollWidth():-1}getScrollLeft(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollLeft():-1}getContentHeight(){return this._modelData?this._modelData.viewModel.viewLayout.getContentHeight():-1}getScrollHeight(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollHeight():-1}getScrollTop(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollTop():-1}setScrollLeft(e,t=1){if(this._modelData){if("number"!=typeof e)throw new Error("Invalid arguments");this._modelData.viewModel.setScrollPosition({scrollLeft:e},t)}}setScrollTop(e,t=1){if(this._modelData){if("number"!=typeof e)throw new Error("Invalid arguments");this._modelData.viewModel.setScrollPosition({scrollTop:e},t)}}setScrollPosition(e,t=1){this._modelData&&this._modelData.viewModel.setScrollPosition(e,t)}saveViewState(){if(!this._modelData)return null;const e={},t=Object.keys(this._contributions);for(const n of t){const t=this._contributions[n];"function"==typeof t.saveViewState&&(e[n]=t.saveViewState())}return{cursorState:this._modelData.viewModel.saveCursorState(),viewState:this._modelData.viewModel.saveState(),contributionsState:e}}restoreViewState(e){if(!this._modelData||!this._modelData.hasRealView)return;const t=e;if(t&&t.cursorState&&t.viewState){const e=t.cursorState;Array.isArray(e)?this._modelData.viewModel.restoreCursorState(e):this._modelData.viewModel.restoreCursorState([e]);const n=t.contributionsState||{},i=Object.keys(this._contributions);for(let e=0,t=i.length;e<t;e++){const t=i[e],r=this._contributions[t];"function"==typeof r.restoreViewState&&r.restoreViewState(n[t])}const r=this._modelData.viewModel.reduceRestoreState(t.viewState);this._modelData.view.restoreState(r)}}getContribution(e){return this._contributions[e]||null}getActions(){const e=[],t=Object.keys(this._actions);for(let n=0,i=t.length;n<i;n++){const i=t[n];e.push(this._actions[i])}return e}getSupportedActions(){let e=this.getActions();return e=e.filter(e=>e.isSupported())}getAction(e){return this._actions[e]||null}trigger(e,t,n){switch(n=n||{},t){case"compositionStart":return void this._startComposition();case"compositionEnd":return void this._endComposition(e);case"type":{const t=n;return void this._type(e,t.text||"")}case"replacePreviousChar":{const t=n;return void this._replacePreviousChar(e,t.text||"",t.replaceCharCnt||0)}case"paste":{const t=n;return void this._paste(e,t.text||"",t.pasteOnNewLine||!1,t.multicursorText||null,t.mode||null)}case"cut":return void this._cut(e)}const i=this.getAction(t);i?Promise.resolve(i.run()).then(void 0,o.e):this._modelData&&this._triggerEditorCommand(e,t,n)}_startComposition(){this._modelData&&(this._modelData.viewModel.startComposition(),this._onDidCompositionStart.fire())}_endComposition(e){this._modelData&&(this._modelData.viewModel.endComposition(e),this._onDidCompositionEnd.fire())}_type(e,t){this._modelData&&0!==t.length&&("keyboard"===e&&this._onWillType.fire(t),this._modelData.viewModel.type(t,e),"keyboard"===e&&this._onDidType.fire(t))}_replacePreviousChar(e,t,n){this._modelData&&this._modelData.viewModel.replacePreviousChar(t,n,e)}_paste(e,t,n,i,r){if(!this._modelData||0===t.length)return;const o=this._modelData.viewModel.getSelection().getStartPosition();this._modelData.viewModel.paste(t,n,i,e);const s=this._modelData.viewModel.getSelection().getStartPosition();"keyboard"===e&&this._onDidPaste.fire({range:new ne.a(o.lineNumber,o.column,s.lineNumber,s.column),mode:r})}_cut(e){this._modelData&&this._modelData.viewModel.cut(e)}_triggerEditorCommand(e,t,n){const i=d.d.getEditorCommand(t);return!!i&&((n=n||{}).source=e,this._instantiationService.invokeFunction(e=>{Promise.resolve(i.runEditorCommand(e,this,n)).then(void 0,o.e)}),!0)}_getViewModel(){return this._modelData?this._modelData.viewModel:null}pushUndoStop(){return!!this._modelData&&(!this._configuration.options.get(72)&&(this._modelData.model.pushStackElement(),!0))}executeEdits(e,t,n){if(!this._modelData)return!1;if(this._configuration.options.get(72))return!1;let i;return i=n?Array.isArray(n)?()=>n:n:()=>null,this._modelData.viewModel.executeEdits(e,t,i),!0}executeCommand(e,t){this._modelData&&this._modelData.viewModel.executeCommand(t,e)}executeCommands(e,t){this._modelData&&this._modelData.viewModel.executeCommands(t,e)}changeDecorations(e){return this._modelData?this._modelData.model.changeDecorations(e,this._id):null}getLineDecorations(e){return this._modelData?this._modelData.model.getLineDecorations(e,this._id,Object(Y.l)(this._configuration.options)):null}deltaDecorations(e,t){return this._modelData?0===e.length&&0===t.length?e:this._modelData.model.deltaDecorations(e,t,this._id):[]}removeDecorations(e){const t=this._decorationTypeKeysToIds[e];t&&this.deltaDecorations(t,[]),this._decorationTypeKeysToIds.hasOwnProperty(e)&&delete this._decorationTypeKeysToIds[e],this._decorationTypeSubtypes.hasOwnProperty(e)&&delete this._decorationTypeSubtypes[e]}getLayoutInfo(){return this._configuration.options.get(117)}createOverviewRuler(e){return this._modelData&&this._modelData.hasRealView?this._modelData.view.createOverviewRuler(e):null}getContainerDomNode(){return this._domElement}getDomNode(){return this._modelData&&this._modelData.hasRealView?this._modelData.view.domNode.domNode:null}delegateVerticalScrollbarMouseDown(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.delegateVerticalScrollbarMouseDown(e)}layout(e){this._configuration.observeReferenceElement(e),this.render()}focus(){this._modelData&&this._modelData.hasRealView&&this._modelData.view.focus()}hasTextFocus(){return!(!this._modelData||!this._modelData.hasRealView)&&this._modelData.view.isFocused()}hasWidgetFocus(){return this._focusTracker&&this._focusTracker.hasFocus()}addContentWidget(e){const t={widget:e,position:e.getPosition()};this._contentWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting a content widget with the same id."),this._contentWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addContentWidget(t)}layoutContentWidget(e){const t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){const n=this._contentWidgets[t];n.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutContentWidget(n)}}removeContentWidget(e){const t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){const e=this._contentWidgets[t];delete this._contentWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeContentWidget(e)}}addOverlayWidget(e){const t={widget:e,position:e.getPosition()};this._overlayWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting an overlay widget with the same id."),this._overlayWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addOverlayWidget(t)}layoutOverlayWidget(e){const t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){const n=this._overlayWidgets[t];n.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutOverlayWidget(n)}}removeOverlayWidget(e){const t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){const e=this._overlayWidgets[t];delete this._overlayWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeOverlayWidget(e)}}changeViewZones(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.change(e)}getTargetAtClientPoint(e,t){return this._modelData&&this._modelData.hasRealView?this._modelData.view.getTargetAtClientPoint(e,t):null}getScrolledVisiblePosition(t){if(!this._modelData||!this._modelData.hasRealView)return null;const n=this._modelData.model.validatePosition(t),i=this._configuration.options,r=i.get(117);return{top:e._getVerticalOffsetForPosition(this._modelData,n.lineNumber,n.column)-this.getScrollTop(),left:this._modelData.view.getOffsetForColumn(n.lineNumber,n.column)+r.glyphMarginWidth+r.lineNumbersWidth+r.decorationsWidth-this.getScrollLeft(),height:i.get(51)}}getOffsetForColumn(e,t){return this._modelData&&this._modelData.hasRealView?this._modelData.view.getOffsetForColumn(e,t):-1}render(e=!1){this._modelData&&this._modelData.hasRealView&&this._modelData.view.render(!0,e)}setAriaOptions(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.setAriaOptions(e)}applyFontInfo(e){c.a.applyFontInfoSlow(e,this._configuration.options.get(36))}_attachModel(e){if(!e)return void(this._modelData=null);const t=[];this._domElement.setAttribute("data-mode-id",e.getLanguageIdentifier().language),this._configuration.setIsDominatedByLongLines(e.isDominatedByLongLines()),this._configuration.setMaxLineNumber(e.getLineCount()),e.onBeforeAttached();const n=new wi(this._id,this._configuration,e,Wi.create(),Ii.create(this._configuration.options),e=>r.Y(e));t.push(e.onDidChangeDecorations(e=>this._onDidChangeModelDecorations.fire(e))),t.push(e.onDidChangeLanguage(t=>{this._domElement.setAttribute("data-mode-id",e.getLanguageIdentifier().language),this._onDidChangeModelLanguage.fire(t)})),t.push(e.onDidChangeLanguageConfiguration(e=>this._onDidChangeModelLanguageConfiguration.fire(e))),t.push(e.onDidChangeContent(e=>this._onDidChangeModelContent.fire(e))),t.push(e.onDidChangeOptions(e=>this._onDidChangeModelOptions.fire(e))),t.push(e.onWillDispose(()=>this.setModel(null))),t.push(n.onEvent(e=>{switch(e.kind){case 0:this._onDidContentSizeChange.fire(e);break;case 1:this._editorTextFocus.setValue(e.hasFocus);break;case 2:this._onDidScrollChange.fire(e);break;case 3:this._onDidChangeViewZones.fire();break;case 4:this._onDidAttemptReadOnlyEdit.fire();break;case 5:{e.reachedMaxCursorCount&&this._notificationService.warn(i.a("cursors.maximum","The number of cursors has been limited to {0}.",Yn.MAX_CURSOR_COUNT));const t=[];for(let n=0,i=e.selections.length;n<i;n++)t[n]=e.selections[n].getPosition();const n={position:t[0],secondaryPositions:t.slice(1),reason:e.reason,source:e.source};this._onDidChangeCursorPosition.fire(n);const r={selection:e.selections[0],secondarySelections:e.selections.slice(1),modelVersionId:e.modelVersionId,oldSelections:e.oldSelections,oldModelVersionId:e.oldModelVersionId,source:e.source,reason:e.reason};this._onDidChangeCursorSelection.fire(r);break}}}));const[o,s]=this._createView(n);if(s){this._domElement.appendChild(o.domNode.domNode);let t=Object.keys(this._contentWidgets);for(let e=0,n=t.length;e<n;e++){const n=t[e];o.addContentWidget(this._contentWidgets[n])}for(let e=0,n=(t=Object.keys(this._overlayWidgets)).length;e<n;e++){const n=t[e];o.addOverlayWidget(this._overlayWidgets[n])}o.render(!1,!0),o.domNode.domNode.setAttribute("data-uri",e.uri.toString())}this._modelData=new qi(e,n,o,s,t)}_createView(e){let t;t=this.isSimpleWidget?{paste:(e,t,n,i)=>{this._paste("keyboard",e,t,n,i)},type:e=>{this._type("keyboard",e)},replacePreviousChar:(e,t)=>{this._replacePreviousChar("keyboard",e,t)},startComposition:()=>{this._startComposition()},endComposition:()=>{this._endComposition("keyboard")},cut:()=>{this._cut("keyboard")}}:{paste:(e,t,n,i)=>{const r={text:e,pasteOnNewLine:t,multicursorText:n,mode:i};this._commandService.executeCommand("paste",r)},type:e=>{const t={text:e};this._commandService.executeCommand("type",t)},replacePreviousChar:(e,t)=>{const n={text:e,replaceCharCnt:t};this._commandService.executeCommand("replacePreviousChar",n)},startComposition:()=>{this._commandService.executeCommand("compositionStart",{})},endComposition:()=>{this._commandService.executeCommand("compositionEnd",{})},cut:()=>{this._commandService.executeCommand("cut",{})}};const n=new Be(e.coordinatesConverter);return n.onKeyDown=e=>this._onKeyDown.fire(e),n.onKeyUp=e=>this._onKeyUp.fire(e),n.onContextMenu=e=>this._onContextMenu.fire(e),n.onMouseMove=e=>this._onMouseMove.fire(e),n.onMouseLeave=e=>this._onMouseLeave.fire(e),n.onMouseDown=e=>this._onMouseDown.fire(e),n.onMouseUp=e=>this._onMouseUp.fire(e),n.onMouseDrag=e=>this._onMouseDrag.fire(e),n.onMouseDrop=e=>this._onMouseDrop.fire(e),n.onMouseWheel=e=>this._onMouseWheel.fire(e),[new un(t,this._configuration,this._themeService,e,n,this._overflowWidgetsDomNode),!0]}_postDetachModelCleanup(e){e&&e.removeAllDecorationsWithOwnerId(this._id)}_detachModel(){if(!this._modelData)return null;const e=this._modelData.model,t=this._modelData.hasRealView?this._modelData.view.domNode.domNode:null;return this._modelData.dispose(),this._modelData=null,this._domElement.removeAttribute("data-mode-id"),t&&this._domElement.contains(t)&&this._domElement.removeChild(t),e}_removeDecorationType(e){this._codeEditorService.removeDecorationType(e)}hasModel(){return null!==this._modelData}};Ki=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}([Ui(3,ki.a),Ui(4,u.a),Ui(5,Ci.b),Ui(6,Si.b),Ui(7,H.c),Ui(8,Li.a),Ui(9,Mi.b)],Ki);class Gi extends a.a{constructor(){super(),this._onDidChangeToTrue=this._register(new s.a),this.onDidChangeToTrue=this._onDidChangeToTrue.event,this._onDidChangeToFalse=this._register(new s.a),this.onDidChangeToFalse=this._onDidChangeToFalse.event,this._value=0}setValue(e){const t=e?2:1;this._value!==t&&(this._value=t,2===this._value?this._onDidChangeToTrue.fire():1===this._value&&this._onDidChangeToFalse.fire())}}class Zi extends a.a{constructor(e,t){super(),this._editor=e,t.createKey("editorId",e.getId()),this._editorSimpleInput=$n.a.editorSimpleInput.bindTo(t),this._editorFocus=$n.a.focus.bindTo(t),this._textInputFocus=$n.a.textInputFocus.bindTo(t),this._editorTextFocus=$n.a.editorTextFocus.bindTo(t),this._editorTabMovesFocus=$n.a.tabMovesFocus.bindTo(t),this._editorReadonly=$n.a.readOnly.bindTo(t),this._editorColumnSelection=$n.a.columnSelection.bindTo(t),this._hasMultipleSelections=$n.a.hasMultipleSelections.bindTo(t),this._hasNonEmptySelection=$n.a.hasNonEmptySelection.bindTo(t),this._canUndo=$n.a.canUndo.bindTo(t),this._canRedo=$n.a.canRedo.bindTo(t),this._register(this._editor.onDidChangeConfiguration(()=>this._updateFromConfig())),this._register(this._editor.onDidChangeCursorSelection(()=>this._updateFromSelection())),this._register(this._editor.onDidFocusEditorWidget(()=>this._updateFromFocus())),this._register(this._editor.onDidBlurEditorWidget(()=>this._updateFromFocus())),this._register(this._editor.onDidFocusEditorText(()=>this._updateFromFocus())),this._register(this._editor.onDidBlurEditorText(()=>this._updateFromFocus())),this._register(this._editor.onDidChangeModel(()=>this._updateFromModel())),this._register(this._editor.onDidChangeConfiguration(()=>this._updateFromModel())),this._updateFromConfig(),this._updateFromSelection(),this._updateFromFocus(),this._updateFromModel(),this._editorSimpleInput.set(this._editor.isSimpleWidget)}_updateFromConfig(){const e=this._editor.getOptions();this._editorTabMovesFocus.set(e.get(116)),this._editorReadonly.set(e.get(72)),this._editorColumnSelection.set(e.get(13))}_updateFromSelection(){const e=this._editor.getSelections();e?(this._hasMultipleSelections.set(e.length>1),this._hasNonEmptySelection.set(e.some(e=>!e.isEmpty()))):(this._hasMultipleSelections.reset(),this._hasNonEmptySelection.reset())}_updateFromFocus(){this._editorFocus.set(this._editor.hasWidgetFocus()&&!this._editor.isSimpleWidget),this._editorTextFocus.set(this._editor.hasTextFocus()&&!this._editor.isSimpleWidget),this._textInputFocus.set(this._editor.hasTextFocus())}_updateFromModel(){const e=this._editor.getModel();this._canUndo.set(Boolean(e&&e.canUndo())),this._canRedo.set(Boolean(e&&e.canRedo()))}}class Ji extends a.a{constructor(e,t){super(),this._editor=e,this._contextKeyService=t,this._langId=$n.a.languageId.bindTo(t),this._hasCompletionItemProvider=$n.a.hasCompletionItemProvider.bindTo(t),this._hasCodeActionsProvider=$n.a.hasCodeActionsProvider.bindTo(t),this._hasCodeLensProvider=$n.a.hasCodeLensProvider.bindTo(t),this._hasDefinitionProvider=$n.a.hasDefinitionProvider.bindTo(t),this._hasDeclarationProvider=$n.a.hasDeclarationProvider.bindTo(t),this._hasImplementationProvider=$n.a.hasImplementationProvider.bindTo(t),this._hasTypeDefinitionProvider=$n.a.hasTypeDefinitionProvider.bindTo(t),this._hasHoverProvider=$n.a.hasHoverProvider.bindTo(t),this._hasDocumentHighlightProvider=$n.a.hasDocumentHighlightProvider.bindTo(t),this._hasDocumentSymbolProvider=$n.a.hasDocumentSymbolProvider.bindTo(t),this._hasReferenceProvider=$n.a.hasReferenceProvider.bindTo(t),this._hasRenameProvider=$n.a.hasRenameProvider.bindTo(t),this._hasSignatureHelpProvider=$n.a.hasSignatureHelpProvider.bindTo(t),this._hasDocumentFormattingProvider=$n.a.hasDocumentFormattingProvider.bindTo(t),this._hasDocumentSelectionFormattingProvider=$n.a.hasDocumentSelectionFormattingProvider.bindTo(t),this._hasMultipleDocumentFormattingProvider=$n.a.hasMultipleDocumentFormattingProvider.bindTo(t),this._hasMultipleDocumentSelectionFormattingProvider=$n.a.hasMultipleDocumentSelectionFormattingProvider.bindTo(t),this._isInWalkThrough=$n.a.isInWalkThroughSnippet.bindTo(t);const n=()=>this._update();this._register(e.onDidChangeModel(n)),this._register(e.onDidChangeModelLanguage(n)),this._register(_t.d.onDidChange(n)),this._register(_t.a.onDidChange(n)),this._register(_t.b.onDidChange(n)),this._register(_t.f.onDidChange(n)),this._register(_t.e.onDidChange(n)),this._register(_t.q.onDidChange(n)),this._register(_t.D.onDidChange(n)),this._register(_t.p.onDidChange(n)),this._register(_t.i.onDidChange(n)),this._register(_t.m.onDidChange(n)),this._register(_t.v.onDidChange(n)),this._register(_t.w.onDidChange(n)),this._register(_t.g.onDidChange(n)),this._register(_t.j.onDidChange(n)),this._register(_t.y.onDidChange(n)),n()}dispose(){super.dispose()}reset(){this._contextKeyService.bufferChangeEvents(()=>{this._langId.reset(),this._hasCompletionItemProvider.reset(),this._hasCodeActionsProvider.reset(),this._hasCodeLensProvider.reset(),this._hasDefinitionProvider.reset(),this._hasDeclarationProvider.reset(),this._hasImplementationProvider.reset(),this._hasTypeDefinitionProvider.reset(),this._hasHoverProvider.reset(),this._hasDocumentHighlightProvider.reset(),this._hasDocumentSymbolProvider.reset(),this._hasReferenceProvider.reset(),this._hasRenameProvider.reset(),this._hasDocumentFormattingProvider.reset(),this._hasDocumentSelectionFormattingProvider.reset(),this._hasSignatureHelpProvider.reset(),this._isInWalkThrough.reset()})}_update(){const e=this._editor.getModel();e?this._contextKeyService.bufferChangeEvents(()=>{this._langId.set(e.getLanguageIdentifier().language),this._hasCompletionItemProvider.set(_t.d.has(e)),this._hasCodeActionsProvider.set(_t.a.has(e)),this._hasCodeLensProvider.set(_t.b.has(e)),this._hasDefinitionProvider.set(_t.f.has(e)),this._hasDeclarationProvider.set(_t.e.has(e)),this._hasImplementationProvider.set(_t.q.has(e)),this._hasTypeDefinitionProvider.set(_t.D.has(e)),this._hasHoverProvider.set(_t.p.has(e)),this._hasDocumentHighlightProvider.set(_t.i.has(e)),this._hasDocumentSymbolProvider.set(_t.m.has(e)),this._hasReferenceProvider.set(_t.v.has(e)),this._hasRenameProvider.set(_t.w.has(e)),this._hasSignatureHelpProvider.set(_t.y.has(e)),this._hasDocumentFormattingProvider.set(_t.g.has(e)||_t.j.has(e)),this._hasDocumentSelectionFormattingProvider.set(_t.j.has(e)),this._hasMultipleDocumentFormattingProvider.set(_t.g.all(e).length+_t.j.all(e).length>1),this._hasMultipleDocumentSelectionFormattingProvider.set(_t.j.all(e).length>1),this._isInWalkThrough.set(e.uri.scheme===l.b.walkThroughSnippet)}):this.reset()}}class Xi extends a.a{constructor(e){super(),this._onChange=this._register(new s.a),this.onChange=this._onChange.event,this._hasFocus=!1,this._domFocusTracker=this._register(r.bb(e)),this._register(this._domFocusTracker.onDidFocus(()=>{this._hasFocus=!0,this._onChange.fire(void 0)})),this._register(this._domFocusTracker.onDidBlur(()=>{this._hasFocus=!1,this._onChange.fire(void 0)}))}hasFocus(){return this._hasFocus}}const Qi=encodeURIComponent("<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 3' enable-background='new 0 0 6 3' height='3' width='6'><g fill='"),er=encodeURIComponent("'><polygon points='5.5,0 2.5,3 1.1,3 4.1,0'/><polygon points='4,0 6,2 6,0.6 5.4,0'/><polygon points='0,2 1,3 2.4,3 0,0.6'/></g></svg>");function tr(e){return Qi+encodeURIComponent(e.toString())+er}const nr=encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" height="3" width="12"><g fill="'),ir=encodeURIComponent('"><circle cx="1" cy="1" r="1"/><circle cx="5" cy="1" r="1"/><circle cx="9" cy="1" r="1"/></g></svg>');Object(H.g)((e,t)=>{const n=e.getColor(yt.t);n&&t.addRule(`.monaco-editor .squiggly-error { border-bottom: 4px double ${n}; }`);const i=e.getColor(yt.u);i&&t.addRule(`.monaco-editor .squiggly-error { background: url("data:image/svg+xml,${tr(i)}") repeat-x bottom left; }`);const r=e.getColor(yt.S);r&&t.addRule(`.monaco-editor .squiggly-warning { border-bottom: 4px double ${r}; }`);const o=e.getColor(yt.T);o&&t.addRule(`.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,${tr(o)}") repeat-x bottom left; }`);const s=e.getColor(yt.K);s&&t.addRule(`.monaco-editor .squiggly-info { border-bottom: 4px double ${s}; }`);const a=e.getColor(yt.L);a&&t.addRule(`.monaco-editor .squiggly-info { background: url("data:image/svg+xml,${tr(a)}") repeat-x bottom left; }`);const l=e.getColor(yt.C);l&&t.addRule(`.monaco-editor .squiggly-hint { border-bottom: 2px dotted ${l}; }`);const c=e.getColor(yt.D);c&&t.addRule(`.monaco-editor .squiggly-hint { background: url("data:image/svg+xml,${function(e){return nr+encodeURIComponent(e.toString())+ir}(c)}") no-repeat bottom left; }`);const d=e.getColor(Ee.p);d&&t.addRule(`.monaco-editor.showUnused .squiggly-inline-unnecessary { opacity: ${d.rgba.a}; }`);const u=e.getColor(Ee.o);u&&t.addRule(`.monaco-editor.showUnused .squiggly-unnecessary { border-bottom: 2px dashed ${u}; }`);const h=e.getColor(yt.B)||"inherit";t.addRule(`.monaco-editor.showDeprecated .squiggly-inline-deprecated { text-decoration: line-through; text-decoration-color: ${h}}`)})},function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return s}));var i=n(1);function r(e,t={}){const n=s(t);return n.textContent=e,n}function o(e,t={}){const n=s(t);return function e(t,n,r){let o;if(2===n.type)o=document.createTextNode(n.content||"");else if(3===n.type)o=document.createElement("b");else if(4===n.type)o=document.createElement("i");else if(5===n.type&&r){const e=document.createElement("a");e.href="#",r.disposeables.add(i.n(e,"click",e=>{r.callback(String(n.index),e)})),o=e}else 7===n.type?o=document.createElement("br"):1===n.type&&(o=t);o&&t!==o&&t.appendChild(o);o&&Array.isArray(n.children)&&n.children.forEach(t=>{e(o,t,r)})}(n,function(e){const t={type:1,children:[]};let n=0,i=t;const r=[],o=new a(e);for(;!o.eos();){let e=o.next();const t="\\"===e&&0!==l(o.peek());if(t&&(e=o.next()),t||0===l(e)||e!==o.peek())if("\n"===e)2===i.type&&(i=r.pop()),i.children.push({type:7});else if(2!==i.type){const t={type:2,content:e};i.children.push(t),r.push(i),i=t}else i.content+=e;else{o.advance(),2===i.type&&(i=r.pop());const t=l(e);if(i.type===t||5===i.type&&6===t)i=r.pop();else{const e={type:t,children:[]};5===t&&(e.index=n,n++),i.children.push(e),r.push(i),i=e}}}2===i.type&&(i=r.pop());r.length;return t}(e),t.actionHandler),n}function s(e){const t=e.inline?"span":"div",n=document.createElement(t);return e.className&&(n.className=e.className),n}class a{constructor(e){this.source=e,this.index=0}eos(){return this.index>=this.source.length}next(){const e=this.peek();return this.advance(),e}peek(){return this.source[this.index]}advance(){this.index++}}function l(e){switch(e){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;default:return 0}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return a}));var i=n(6),r=n(2),o=n(17);const s=Object(o.c)("IStorageKeysSyncRegistryService");class a extends r.a{constructor(){super(),this._storageKeys=new Map,this._onDidChangeStorageKeys=this._register(new i.a),this._register(Object(r.h)(()=>this._storageKeys.clear()))}get storageKeys(){return[...this._storageKeys.values()]}registerStorageKey(e){this._storageKeys.has(e.key)||(this._storageKeys.set(e.key,e),this._onDidChangeStorageKeys.fire(this.storageKeys))}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var i=n(37),r=n(33),o=n(184),s=n(28),a=n(9),l=n(17),c=n(40),d=n(18),u=n(67),h=function(e,t){return function(n,i){t(n,i,e)}};let f=class extends o.a{constructor(e,t,n,i,r,o,s,a,l,c){super(e,Object.assign(Object.assign({},n.getRawOptions()),{overflowWidgetsDomNode:n.getOverflowWidgetsDomNode()}),{},i,r,o,s,a,l,c),this._parentEditor=n,this._overwriteOptions=t,super.updateOptions(this._overwriteOptions),this._register(n.onDidChangeConfiguration(e=>this._onParentConfigurationChanged(e)))}getParentEditor(){return this._parentEditor}_onParentConfigurationChanged(e){super.updateOptions(this._parentEditor.getRawOptions()),super.updateOptions(this._overwriteOptions)}updateOptions(e){i.g(this._overwriteOptions,e,!0),super.updateOptions(this._overwriteOptions)}};f=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}([h(3,l.a),h(4,r.a),h(5,s.b),h(6,a.b),h(7,d.c),h(8,c.a),h(9,u.b)],f)},function(e,t,n){var i;"undefined"!=typeof self&&self,i=function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/mermaid.js")}({"./node_modules/node-libs-browser/mock/empty.js": /*!******************************************************!*\ !*** ./node_modules/node-libs-browser/mock/empty.js ***! \******************************************************/ @@ -6,11 +6,11 @@ /*!***********************************************!*\ !*** ./node_modules/path-browserify/index.js ***! \***********************************************/ -/*! no static exports found */function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}t.resolve=function(){for(var t="",i=!1,o=arguments.length-1;o>=-1&&!i;o--){var s=o>=0?arguments[o]:e.cwd();if("string"!=typeof s)throw new TypeError("Arguments to path.resolve must be strings");s&&(t=s+"/"+t,i="/"===s.charAt(0))}return(i?"/":"")+(t=n(r(t.split("/"),(function(e){return!!e})),!i).join("/"))||"."},t.normalize=function(e){var o=t.isAbsolute(e),s="/"===i(e,-1);return(e=n(r(e.split("/"),(function(e){return!!e})),!o).join("/"))||o||(e="."),e&&s&&(e+="/"),(o?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(r(e,(function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var i=r(e.split("/")),o=r(n.split("/")),s=Math.min(i.length,o.length),a=s,u=0;u<s;u++)if(i[u]!==o[u]){a=u;break}var l=[];for(u=a;u<i.length;u++)l.push("..");return(l=l.concat(o.slice(a))).join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!=typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,i=!0,o=e.length-1;o>=1;--o)if(47===(t=e.charCodeAt(o))){if(!i){r=o;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=function(e){"string"!=typeof e&&(e+="");var t,n=0,r=-1,i=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!i){n=t+1;break}}else-1===r&&(i=!1,r=t+1);return-1===r?"":e.slice(n,r)}(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!=typeof e&&(e+="");for(var t=-1,n=0,r=-1,i=!0,o=0,s=e.length-1;s>=0;--s){var a=e.charCodeAt(s);if(47!==a)-1===r&&(i=!1,r=s+1),46===a?-1===t?t=s:1!==o&&(o=1):-1!==t&&(o=-1);else if(!i){n=s+1;break}}return-1===t||-1===r||0===o||1===o&&t===r-1&&t===n+1?"":e.slice(t,r)};var i="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n(/*! ./../process/browser.js */"./node_modules/process/browser.js"))},"./node_modules/process/browser.js": +/*! no static exports found */function(e,t,n){(function(e){function n(e,t){for(var n=0,i=e.length-1;i>=0;i--){var r=e[i];"."===r?e.splice(i,1):".."===r?(e.splice(i,1),n++):n&&(e.splice(i,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function i(e,t){if(e.filter)return e.filter(t);for(var n=[],i=0;i<e.length;i++)t(e[i],i,e)&&n.push(e[i]);return n}t.resolve=function(){for(var t="",r=!1,o=arguments.length-1;o>=-1&&!r;o--){var s=o>=0?arguments[o]:e.cwd();if("string"!=typeof s)throw new TypeError("Arguments to path.resolve must be strings");s&&(t=s+"/"+t,r="/"===s.charAt(0))}return(r?"/":"")+(t=n(i(t.split("/"),(function(e){return!!e})),!r).join("/"))||"."},t.normalize=function(e){var o=t.isAbsolute(e),s="/"===r(e,-1);return(e=n(i(e.split("/"),(function(e){return!!e})),!o).join("/"))||o||(e="."),e&&s&&(e+="/"),(o?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(i(e,(function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function i(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var r=i(e.split("/")),o=i(n.split("/")),s=Math.min(r.length,o.length),a=s,l=0;l<s;l++)if(r[l]!==o[l]){a=l;break}var c=[];for(l=a;l<r.length;l++)c.push("..");return(c=c.concat(o.slice(a))).join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!=typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,i=-1,r=!0,o=e.length-1;o>=1;--o)if(47===(t=e.charCodeAt(o))){if(!r){i=o;break}}else r=!1;return-1===i?n?"/":".":n&&1===i?"/":e.slice(0,i)},t.basename=function(e,t){var n=function(e){"string"!=typeof e&&(e+="");var t,n=0,i=-1,r=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!r){n=t+1;break}}else-1===i&&(r=!1,i=t+1);return-1===i?"":e.slice(n,i)}(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!=typeof e&&(e+="");for(var t=-1,n=0,i=-1,r=!0,o=0,s=e.length-1;s>=0;--s){var a=e.charCodeAt(s);if(47!==a)-1===i&&(r=!1,i=s+1),46===a?-1===t?t=s:1!==o&&(o=1):-1!==t&&(o=-1);else if(!r){n=s+1;break}}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===n+1?"":e.slice(t,i)};var r="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n(/*! ./../process/browser.js */"./node_modules/process/browser.js"))},"./node_modules/process/browser.js": /*!*****************************************!*\ !*** ./node_modules/process/browser.js ***! \*****************************************/ -/*! no static exports found */function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(e){r=s}}();var u,l=[],c=!1,d=-1;function h(){c&&u&&(c=!1,u.length?l=u.concat(l):d=-1,l.length&&f())}function f(){if(!c){var e=a(h);c=!0;for(var t=l.length;t;){for(u=l,l=[];++d<t;)u&&u[d].run();d=-1,t=l.length}u=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function g(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new p(e,t)),1!==l.length||c||a(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},"./node_modules/webpack/buildin/module.js": +/*! no static exports found */function(e,t){var n,i,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(e){i=s}}();var l,c=[],d=!1,u=-1;function h(){d&&l&&(d=!1,l.length?c=l.concat(c):u=-1,c.length&&f())}function f(){if(!d){var e=a(h);d=!0;for(var t=c.length;t;){for(l=c,c=[];++u<t;)l&&l[u].run();u=-1,t=c.length}l=null,d=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function g(e,t){this.fun=e,this.array=t}function p(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new g(e,t)),1!==c.length||d||a(f)},g.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=p,r.addListener=p,r.once=p,r.off=p,r.removeListener=p,r.removeAllListeners=p,r.emit=p,r.prependListener=p,r.prependOnceListener=p,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},"./node_modules/webpack/buildin/module.js": /*!***********************************!*\ !*** (webpack)/buildin/module.js ***! \***********************************/ @@ -22,39 +22,39 @@ /*!***********************!*\ !*** ./src/config.js ***! \***********************/ -/*! exports provided: defaultConfig, updateCurrentConfig, setSiteConfig, setSiteConfigDelta, updateSiteConfig, getSiteConfig, setConfig, getConfig, sanitize, addDirective, reset */function(e,t,n){"use strict";n.r(t),n.d(t,"defaultConfig",(function(){return u})),n.d(t,"updateCurrentConfig",(function(){return h})),n.d(t,"setSiteConfig",(function(){return f})),n.d(t,"setSiteConfigDelta",(function(){return p})),n.d(t,"updateSiteConfig",(function(){return g})),n.d(t,"getSiteConfig",(function(){return m})),n.d(t,"setConfig",(function(){return _})),n.d(t,"getConfig",(function(){return y})),n.d(t,"sanitize",(function(){return v})),n.d(t,"addDirective",(function(){return b})),n.d(t,"reset",(function(){return w}));var r,i=n(/*! ./utils */"./src/utils.js"),o=n(/*! ./logger */"./src/logger.js"),s=n(/*! ./themes */"./src/themes/index.js"),a=n(/*! ./defaultConfig */"./src/defaultConfig.js"),u=Object.freeze(a.default),l=Object(i.assignWithDepth)({},u),c=[],d=Object(i.assignWithDepth)({},u),h=function(e,t){for(var n=Object(i.assignWithDepth)({},e),o={},a=0;a<t.length;a++){var u=t[a];v(u),o=Object(i.assignWithDepth)(o,u)}if(n=Object(i.assignWithDepth)(n,o),o.theme){var l=Object(i.assignWithDepth)(r.themeVariables||{},o.themeVariables);n.themeVariables=s.default[n.theme].getThemeVariables(l)}return d=n,n},f=function(e){return l=Object(i.assignWithDepth)({},u),l=Object(i.assignWithDepth)(l,e),e.theme&&(l.themeVariables=s.default[e.theme].getThemeVariables(e.themeVariables)),d=h(l,c),l},p=function(e){r=Object(i.assignWithDepth)({},e)},g=function(e){return l=Object(i.assignWithDepth)(l,e),h(l,c),l},m=function(){return Object(i.assignWithDepth)({},l)},_=function(e){return Object(i.assignWithDepth)(d,e),y()},y=function(){return Object(i.assignWithDepth)({},d)},v=function(e){Object.keys(l.secure).forEach((function(t){void 0!==e[l.secure[t]]&&(o.logger.debug("Denied attempt to modify a secure key ".concat(l.secure[t]),e[l.secure[t]]),delete e[l.secure[t]])}))},b=function(e){e.fontFamily&&(e.themeVariables&&e.themeVariables.fontFamily||(e.themeVariables={fontFamily:e.fontFamily})),c.push(e),h(l,c)},w=function(){h(l,c=[])}},"./src/dagre-wrapper/clusters.js": +/*! exports provided: defaultConfig, updateCurrentConfig, setSiteConfig, setSiteConfigDelta, updateSiteConfig, getSiteConfig, setConfig, getConfig, sanitize, addDirective, reset */function(e,t,n){"use strict";n.r(t),n.d(t,"defaultConfig",(function(){return l})),n.d(t,"updateCurrentConfig",(function(){return h})),n.d(t,"setSiteConfig",(function(){return f})),n.d(t,"setSiteConfigDelta",(function(){return g})),n.d(t,"updateSiteConfig",(function(){return p})),n.d(t,"getSiteConfig",(function(){return m})),n.d(t,"setConfig",(function(){return _})),n.d(t,"getConfig",(function(){return b})),n.d(t,"sanitize",(function(){return v})),n.d(t,"addDirective",(function(){return y})),n.d(t,"reset",(function(){return w}));var i,r=n(/*! ./utils */"./src/utils.js"),o=n(/*! ./logger */"./src/logger.js"),s=n(/*! ./themes */"./src/themes/index.js"),a=n(/*! ./defaultConfig */"./src/defaultConfig.js"),l=Object.freeze(a.default),c=Object(r.assignWithDepth)({},l),d=[],u=Object(r.assignWithDepth)({},l),h=function(e,t){for(var n=Object(r.assignWithDepth)({},e),o={},a=0;a<t.length;a++){var l=t[a];v(l),o=Object(r.assignWithDepth)(o,l)}if(n=Object(r.assignWithDepth)(n,o),o.theme){var c=Object(r.assignWithDepth)(i.themeVariables||{},o.themeVariables);n.themeVariables=s.default[n.theme].getThemeVariables(c)}return u=n,n},f=function(e){return c=Object(r.assignWithDepth)({},l),c=Object(r.assignWithDepth)(c,e),e.theme&&(c.themeVariables=s.default[e.theme].getThemeVariables(e.themeVariables)),u=h(c,d),c},g=function(e){i=Object(r.assignWithDepth)({},e)},p=function(e){return c=Object(r.assignWithDepth)(c,e),h(c,d),c},m=function(){return Object(r.assignWithDepth)({},c)},_=function(e){return Object(r.assignWithDepth)(u,e),b()},b=function(){return Object(r.assignWithDepth)({},u)},v=function(e){Object.keys(c.secure).forEach((function(t){void 0!==e[c.secure[t]]&&(o.logger.debug("Denied attempt to modify a secure key ".concat(c.secure[t]),e[c.secure[t]]),delete e[c.secure[t]])}))},y=function(e){e.fontFamily&&(e.themeVariables&&e.themeVariables.fontFamily||(e.themeVariables={fontFamily:e.fontFamily})),d.push(e),h(c,d)},w=function(){h(c,d=[])}},"./src/dagre-wrapper/clusters.js": /*!***************************************!*\ !*** ./src/dagre-wrapper/clusters.js ***! \***************************************/ -/*! exports provided: insertCluster, getClusterTitleWidth, clear, positionCluster */function(e,t,n){"use strict";n.r(t),n.d(t,"insertCluster",(function(){return c})),n.d(t,"getClusterTitleWidth",(function(){return d})),n.d(t,"clear",(function(){return h})),n.d(t,"positionCluster",(function(){return f}));var r=n(/*! ./intersect/intersect-rect */"./src/dagre-wrapper/intersect/intersect-rect.js"),i=n(/*! ../logger */"./src/logger.js"),o=n(/*! ./createLabel */"./src/dagre-wrapper/createLabel.js"),s=n(/*! d3 */"d3"),a=n(/*! ../config */"./src/config.js"),u={rect:function(e,t){i.logger.trace("Creating subgraph rect for ",t.id,t);var n=e.insert("g").attr("class","cluster"+(t.class?" "+t.class:"")).attr("id",t.id),u=n.insert("rect",":first-child"),l=n.insert("g").attr("class","cluster-label"),c=l.node().appendChild(Object(o.default)(t.labelText,t.labelStyle,void 0,!0)),d=c.getBBox();if(Object(a.getConfig)().flowchart.htmlLabels){var h=c.children[0],f=Object(s.select)(c);d=h.getBoundingClientRect(),f.attr("width",d.width),f.attr("height",d.height)}var p=0*t.padding,g=p/2;i.logger.trace("Data ",t,JSON.stringify(t)),u.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-g).attr("y",t.y-t.height/2-g).attr("width",t.width+p).attr("height",t.height+p),l.attr("transform","translate("+(t.x-d.width/2)+", "+(t.y-t.height/2+t.padding/3)+")");var m=u.node().getBBox();return t.width=m.width,t.height=m.height,t.intersect=function(e){return Object(r.default)(t,e)},n},roundedWithTitle:function(e,t){var n=e.insert("g").attr("class",t.classes).attr("id",t.id),i=n.insert("rect",":first-child"),u=n.insert("g").attr("class","cluster-label"),l=n.append("rect"),c=u.node().appendChild(Object(o.default)(t.labelText,t.labelStyle,void 0,!0)),d=c.getBBox();if(Object(a.getConfig)().flowchart.htmlLabels){var h=c.children[0],f=Object(s.select)(c);d=h.getBoundingClientRect(),f.attr("width",d.width),f.attr("height",d.height)}d=c.getBBox();var p=0*t.padding,g=p/2;i.attr("class","outer").attr("x",t.x-t.width/2-g).attr("y",t.y-t.height/2-g).attr("width",t.width+p).attr("height",t.height+p),l.attr("class","inner").attr("x",t.x-t.width/2-g).attr("y",t.y-t.height/2-g+d.height-1).attr("width",t.width+p).attr("height",t.height+p-d.height-3),u.attr("transform","translate("+(t.x-d.width/2)+", "+(t.y-t.height/2-t.padding/3+(Object(a.getConfig)().flowchart.htmlLabels?5:3))+")");var m=i.node().getBBox();return t.width=m.width,t.height=m.height,t.intersect=function(e){return Object(r.default)(t,e)},n},noteGroup:function(e,t){var n=e.insert("g").attr("class","note-cluster").attr("id",t.id),i=n.insert("rect",":first-child"),o=0*t.padding,s=o/2;i.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-s).attr("y",t.y-t.height/2-s).attr("width",t.width+o).attr("height",t.height+o).attr("fill","none");var a=i.node().getBBox();return t.width=a.width,t.height=a.height,t.intersect=function(e){return Object(r.default)(t,e)},n},divider:function(e,t){var n=e.insert("g").attr("class",t.classes).attr("id",t.id),i=n.insert("rect",":first-child"),o=0*t.padding,s=o/2;i.attr("class","divider").attr("x",t.x-t.width/2-s).attr("y",t.y-t.height/2).attr("width",t.width+o).attr("height",t.height+o);var a=i.node().getBBox();return t.width=a.width,t.height=a.height,t.intersect=function(e){return Object(r.default)(t,e)},n}},l={},c=function(e,t){i.logger.trace("Inserting cluster");var n=t.shape||"rect";l[t.id]=u[n](e,t)},d=function(e,t){var n=Object(o.default)(t.labelText,t.labelStyle,void 0,!0);e.node().appendChild(n);var r=n.getBBox().width;return e.node().removeChild(n),r},h=function(){l={}},f=function(e){i.logger.info("Position cluster"),l[e.id].attr("transform","translate("+e.x+", "+e.y+")")}},"./src/dagre-wrapper/createLabel.js": +/*! exports provided: insertCluster, getClusterTitleWidth, clear, positionCluster */function(e,t,n){"use strict";n.r(t),n.d(t,"insertCluster",(function(){return d})),n.d(t,"getClusterTitleWidth",(function(){return u})),n.d(t,"clear",(function(){return h})),n.d(t,"positionCluster",(function(){return f}));var i=n(/*! ./intersect/intersect-rect */"./src/dagre-wrapper/intersect/intersect-rect.js"),r=n(/*! ../logger */"./src/logger.js"),o=n(/*! ./createLabel */"./src/dagre-wrapper/createLabel.js"),s=n(/*! d3 */"d3"),a=n(/*! ../config */"./src/config.js"),l={rect:function(e,t){r.logger.trace("Creating subgraph rect for ",t.id,t);var n=e.insert("g").attr("class","cluster"+(t.class?" "+t.class:"")).attr("id",t.id),l=n.insert("rect",":first-child"),c=n.insert("g").attr("class","cluster-label"),d=c.node().appendChild(Object(o.default)(t.labelText,t.labelStyle,void 0,!0)),u=d.getBBox();if(Object(a.getConfig)().flowchart.htmlLabels){var h=d.children[0],f=Object(s.select)(d);u=h.getBoundingClientRect(),f.attr("width",u.width),f.attr("height",u.height)}var g=0*t.padding,p=g/2;r.logger.trace("Data ",t,JSON.stringify(t)),l.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-p).attr("y",t.y-t.height/2-p).attr("width",t.width+g).attr("height",t.height+g),c.attr("transform","translate("+(t.x-u.width/2)+", "+(t.y-t.height/2+t.padding/3)+")");var m=l.node().getBBox();return t.width=m.width,t.height=m.height,t.intersect=function(e){return Object(i.default)(t,e)},n},roundedWithTitle:function(e,t){var n=e.insert("g").attr("class",t.classes).attr("id",t.id),r=n.insert("rect",":first-child"),l=n.insert("g").attr("class","cluster-label"),c=n.append("rect"),d=l.node().appendChild(Object(o.default)(t.labelText,t.labelStyle,void 0,!0)),u=d.getBBox();if(Object(a.getConfig)().flowchart.htmlLabels){var h=d.children[0],f=Object(s.select)(d);u=h.getBoundingClientRect(),f.attr("width",u.width),f.attr("height",u.height)}u=d.getBBox();var g=0*t.padding,p=g/2;r.attr("class","outer").attr("x",t.x-t.width/2-p).attr("y",t.y-t.height/2-p).attr("width",t.width+g).attr("height",t.height+g),c.attr("class","inner").attr("x",t.x-t.width/2-p).attr("y",t.y-t.height/2-p+u.height-1).attr("width",t.width+g).attr("height",t.height+g-u.height-3),l.attr("transform","translate("+(t.x-u.width/2)+", "+(t.y-t.height/2-t.padding/3+(Object(a.getConfig)().flowchart.htmlLabels?5:3))+")");var m=r.node().getBBox();return t.width=m.width,t.height=m.height,t.intersect=function(e){return Object(i.default)(t,e)},n},noteGroup:function(e,t){var n=e.insert("g").attr("class","note-cluster").attr("id",t.id),r=n.insert("rect",":first-child"),o=0*t.padding,s=o/2;r.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-s).attr("y",t.y-t.height/2-s).attr("width",t.width+o).attr("height",t.height+o).attr("fill","none");var a=r.node().getBBox();return t.width=a.width,t.height=a.height,t.intersect=function(e){return Object(i.default)(t,e)},n},divider:function(e,t){var n=e.insert("g").attr("class",t.classes).attr("id",t.id),r=n.insert("rect",":first-child"),o=0*t.padding,s=o/2;r.attr("class","divider").attr("x",t.x-t.width/2-s).attr("y",t.y-t.height/2).attr("width",t.width+o).attr("height",t.height+o);var a=r.node().getBBox();return t.width=a.width,t.height=a.height,t.intersect=function(e){return Object(i.default)(t,e)},n}},c={},d=function(e,t){r.logger.trace("Inserting cluster");var n=t.shape||"rect";c[t.id]=l[n](e,t)},u=function(e,t){var n=Object(o.default)(t.labelText,t.labelStyle,void 0,!0);e.node().appendChild(n);var i=n.getBBox().width;return e.node().removeChild(n),i},h=function(){c={}},f=function(e){r.logger.info("Position cluster"),c[e.id].attr("transform","translate("+e.x+", "+e.y+")")}},"./src/dagre-wrapper/createLabel.js": /*!******************************************!*\ !*** ./src/dagre-wrapper/createLabel.js ***! \******************************************/ -/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var r=n(/*! d3 */"d3"),i=n(/*! ../logger */"./src/logger.js"),o=n(/*! ../config */"./src/config.js");t.default=function(e,t,n,s){var a=e||"";if(Object(o.getConfig)().flowchart.htmlLabels)return a=a.replace(/\\n|\n/g,"<br />"),i.logger.info("vertexText"+a),function(e){var t,n,i=Object(r.select)(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),o=i.append("xhtml:div"),s=e.label,a=e.isNode?"nodeLabel":"edgeLabel";return o.html('<span class="'+a+'">'+s+"</span>"),t=o,(n=e.labelStyle)&&t.attr("style",n),o.style("display","inline-block"),o.style("white-space","nowrap"),o.attr("xmlns","http://www.w3.org/1999/xhtml"),i.node()}({isNode:s,label:a.replace(/fa[lrsb]?:fa-[\w-]+/g,(function(e){return"<i class='".concat(e.replace(":"," "),"'></i>")})),labelStyle:t.replace("fill:","color:")});var u=document.createElementNS("http://www.w3.org/2000/svg","text");u.setAttribute("style",t.replace("color:","fill:"));var l=[];l="string"==typeof a?a.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(a)?a:[];for(var c=0;c<l.length;c++){var d=document.createElementNS("http://www.w3.org/2000/svg","tspan");d.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),d.setAttribute("dy","1em"),d.setAttribute("x","0"),n?d.setAttribute("class","title-row"):d.setAttribute("class","row"),d.textContent=l[c].trim(),u.appendChild(d)}return u}},"./src/dagre-wrapper/edges.js": +/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var i=n(/*! d3 */"d3"),r=n(/*! ../logger */"./src/logger.js"),o=n(/*! ../config */"./src/config.js");t.default=function(e,t,n,s){var a=e||"";if(Object(o.getConfig)().flowchart.htmlLabels)return a=a.replace(/\\n|\n/g,"<br />"),r.logger.info("vertexText"+a),function(e){var t,n,r=Object(i.select)(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),o=r.append("xhtml:div"),s=e.label,a=e.isNode?"nodeLabel":"edgeLabel";return o.html('<span class="'+a+'">'+s+"</span>"),t=o,(n=e.labelStyle)&&t.attr("style",n),o.style("display","inline-block"),o.style("white-space","nowrap"),o.attr("xmlns","http://www.w3.org/1999/xhtml"),r.node()}({isNode:s,label:a.replace(/fa[lrsb]?:fa-[\w-]+/g,(function(e){return"<i class='".concat(e.replace(":"," "),"'></i>")})),labelStyle:t.replace("fill:","color:")});var l=document.createElementNS("http://www.w3.org/2000/svg","text");l.setAttribute("style",t.replace("color:","fill:"));var c=[];c="string"==typeof a?a.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(a)?a:[];for(var d=0;d<c.length;d++){var u=document.createElementNS("http://www.w3.org/2000/svg","tspan");u.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),u.setAttribute("dy","1em"),u.setAttribute("x","0"),n?u.setAttribute("class","title-row"):u.setAttribute("class","row"),u.textContent=c[d].trim(),l.appendChild(u)}return l}},"./src/dagre-wrapper/edges.js": /*!************************************!*\ !*** ./src/dagre-wrapper/edges.js ***! \************************************/ -/*! exports provided: clear, insertEdgeLabel, positionEdgeLabel, intersection, insertEdge */function(e,t,n){"use strict";n.r(t),n.d(t,"clear",(function(){return c})),n.d(t,"insertEdgeLabel",(function(){return d})),n.d(t,"positionEdgeLabel",(function(){return h})),n.d(t,"intersection",(function(){return p})),n.d(t,"insertEdge",(function(){return g}));var r=n(/*! ../logger */"./src/logger.js"),i=n(/*! ./createLabel */"./src/dagre-wrapper/createLabel.js"),o=n(/*! d3 */"d3"),s=n(/*! ../config */"./src/config.js"),a=n(/*! ../utils */"./src/utils.js"),u={},l={},c=function(){u={},l={}},d=function(e,t){var n=Object(i.default)(t.label,t.labelStyle),r=e.insert("g").attr("class","edgeLabel"),a=r.insert("g").attr("class","label");a.node().appendChild(n);var c=n.getBBox();if(Object(s.getConfig)().flowchart.htmlLabels){var d=n.children[0],h=Object(o.select)(n);c=d.getBoundingClientRect(),h.attr("width",c.width),h.attr("height",c.height)}if(a.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"),u[t.id]=r,t.width=c.width,t.height=c.height,t.startLabelLeft){var f=Object(i.default)(t.startLabelLeft,t.labelStyle),p=e.insert("g").attr("class","edgeTerminals"),g=p.insert("g").attr("class","inner");g.node().appendChild(f);var m=f.getBBox();g.attr("transform","translate("+-m.width/2+", "+-m.height/2+")"),l[t.id]||(l[t.id]={}),l[t.id].startLeft=p}if(t.startLabelRight){var _=Object(i.default)(t.startLabelRight,t.labelStyle),y=e.insert("g").attr("class","edgeTerminals"),v=y.insert("g").attr("class","inner");y.node().appendChild(_),v.node().appendChild(_);var b=_.getBBox();v.attr("transform","translate("+-b.width/2+", "+-b.height/2+")"),l[t.id]||(l[t.id]={}),l[t.id].startRight=y}if(t.endLabelLeft){var w=Object(i.default)(t.endLabelLeft,t.labelStyle),C=e.insert("g").attr("class","edgeTerminals"),S=C.insert("g").attr("class","inner");S.node().appendChild(w);var x=w.getBBox();S.attr("transform","translate("+-x.width/2+", "+-x.height/2+")"),C.node().appendChild(w),l[t.id]||(l[t.id]={}),l[t.id].endLeft=C}if(t.endLabelRight){var L=Object(i.default)(t.endLabelRight,t.labelStyle),k=e.insert("g").attr("class","edgeTerminals"),M=k.insert("g").attr("class","inner");M.node().appendChild(L);var D=L.getBBox();M.attr("transform","translate("+-D.width/2+", "+-D.height/2+")"),k.node().appendChild(L),l[t.id]||(l[t.id]={}),l[t.id].endRight=k}},h=function(e,t){r.logger.info("Moving label",e.id,e.label,u[e.id]);var n=t.updatedPath?t.updatedPath:t.originalPath;if(e.label){var i=u[e.id],o=e.x,s=e.y;if(n){var c=a.default.calcLabelPosition(n);r.logger.info("Moving label from (",o,",",s,") to (",c.x,",",c.y,")")}i.attr("transform","translate("+o+", "+s+")")}if(e.startLabelLeft){var d=l[e.id].startLeft,h=e.x,f=e.y;if(n){var p=a.default.calcTerminalLabelPosition(0,"start_left",n);h=p.x,f=p.y}d.attr("transform","translate("+h+", "+f+")")}if(e.startLabelRight){var g=l[e.id].startRight,m=e.x,_=e.y;if(n){var y=a.default.calcTerminalLabelPosition(0,"start_right",n);m=y.x,_=y.y}g.attr("transform","translate("+m+", "+_+")")}if(e.endLabelLeft){var v=l[e.id].endLeft,b=e.x,w=e.y;if(n){var C=a.default.calcTerminalLabelPosition(0,"end_left",n);b=C.x,w=C.y}v.attr("transform","translate("+b+", "+w+")")}if(e.endLabelRight){var S=l[e.id].endRight,x=e.x,L=e.y;if(n){var k=a.default.calcTerminalLabelPosition(0,"end_right",n);x=k.x,L=k.y}S.attr("transform","translate("+x+", "+L+")")}},f=function(e,t){var n=e.x,r=e.y,i=Math.abs(t.x-n),o=Math.abs(t.y-r),s=e.width/2,a=e.height/2;return i>=s||o>=a},p=function(e,t,n){r.logger.warn("intersection calc o:",t," i:",n,e);var i=e.x,o=e.y,s=Math.abs(i-n.x),a=e.width/2,u=n.x<t.x?a-s:a+s,l=e.height/2,c=i-a,d=i+a,h=o-l,f=o+l;if(t.x===c||t.x===d||t.y===h||t.y===f)return r.logger.warn("calc equals on edge"),t;var p=Math.abs(t.y-n.y),g=Math.abs(t.x-n.x);if(Math.abs(o-t.y)*a>Math.abs(i-t.x)*l){var m=n.y<t.y?t.y-l-o:o-l-t.y;u=g*m/p;var _={x:n.x<t.x?n.x+g-u:n.x-u,y:n.y<t.y?n.y+p-m:n.y-m};return r.logger.warn("topp/bott calc, Q ".concat(p,", q ").concat(m,", R ").concat(g,", r ").concat(u),_),_}var y=y=p*(u=n.x<t.x?t.x-a-i:i-a-t.x)/g;return r.logger.warn("sides calc, Q ".concat(p,", q ").concat(y,", R ").concat(g,", r ").concat(u),{x:n.x<t.x?n.x+g-u:n.x+s-a,y:n.y<t.y?n.y+y:n.y-y}),{x:n.x<t.x?n.x+g-u:n.x+s-a,y:n.y<t.y?n.y+y:n.y-y}},g=function(e,t,n,i,a,u){var l=n.points,c=!1,d=u.node(t.v),h=u.node(t.w);if(h.intersect&&d.intersect&&((l=l.slice(1,n.points.length-1)).unshift(d.intersect(l[0])),r.logger.info("Last point",l[l.length-1],h,h.intersect(l[l.length-1])),l.push(h.intersect(l[l.length-1]))),n.toCluster){var g;r.logger.trace("edge",n),r.logger.trace("to cluster",i[n.toCluster]),l=[];var m=!1;n.points.forEach((function(e){var t=i[n.toCluster].node;if(f(t,e)||m)m||l.push(e);else{r.logger.trace("inside",n.toCluster,e,g);var o=p(t,g,e),s=!1;l.forEach((function(e){s=s||e.x===o.x&&e.y===o.y})),l.find((function(e){return e.x===o.x&&e.y===o.y}))?r.logger.warn("no intersect",o,l):l.push(o),m=!0}g=e})),c=!0}if(n.fromCluster){r.logger.trace("edge",n),r.logger.warn("from cluster",i[n.fromCluster]);for(var _,y=[],v=!1,b=l.length-1;b>=0;b--){var w=l[b],C=i[n.fromCluster].node;if(f(C,w)||v)r.logger.trace("Outside point",w),v||y.unshift(w);else{r.logger.warn("inside",n.fromCluster,w,C);var S=p(C,_,w);y.unshift(S),v=!0}_=w}l=y,c=!0}var x,L=l.filter((function(e){return!Number.isNaN(e.y)})),k=Object(o.line)().x((function(e){return e.x})).y((function(e){return e.y})).curve(o.curveBasis);switch(n.thickness){case"normal":x="edge-thickness-normal";break;case"thick":x="edge-thickness-thick";break;default:x=""}switch(n.pattern){case"solid":x+=" edge-pattern-solid";break;case"dotted":x+=" edge-pattern-dotted";break;case"dashed":x+=" edge-pattern-dashed"}var M=e.append("path").attr("d",k(L)).attr("id",n.id).attr("class"," "+x+(n.classes?" "+n.classes:"")).attr("style",n.style),D="";switch(Object(s.getConfig)().state.arrowMarkerAbsolute&&(D=(D=(D=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),r.logger.info("arrowTypeStart",n.arrowTypeStart),r.logger.info("arrowTypeEnd",n.arrowTypeEnd),n.arrowTypeStart){case"arrow_cross":M.attr("marker-start","url("+D+"#"+a+"-crossStart)");break;case"arrow_point":M.attr("marker-start","url("+D+"#"+a+"-pointStart)");break;case"arrow_barb":M.attr("marker-start","url("+D+"#"+a+"-barbStart)");break;case"arrow_circle":M.attr("marker-start","url("+D+"#"+a+"-circleStart)");break;case"aggregation":M.attr("marker-start","url("+D+"#"+a+"-aggregationStart)");break;case"extension":M.attr("marker-start","url("+D+"#"+a+"-extensionStart)");break;case"composition":M.attr("marker-start","url("+D+"#"+a+"-compositionStart)");break;case"dependency":M.attr("marker-start","url("+D+"#"+a+"-dependencyStart)")}switch(n.arrowTypeEnd){case"arrow_cross":M.attr("marker-end","url("+D+"#"+a+"-crossEnd)");break;case"arrow_point":M.attr("marker-end","url("+D+"#"+a+"-pointEnd)");break;case"arrow_barb":M.attr("marker-end","url("+D+"#"+a+"-barbEnd)");break;case"arrow_circle":M.attr("marker-end","url("+D+"#"+a+"-circleEnd)");break;case"aggregation":M.attr("marker-end","url("+D+"#"+a+"-aggregationEnd)");break;case"extension":M.attr("marker-end","url("+D+"#"+a+"-extensionEnd)");break;case"composition":M.attr("marker-end","url("+D+"#"+a+"-compositionEnd)");break;case"dependency":M.attr("marker-end","url("+D+"#"+a+"-dependencyEnd)")}var E={};return c&&(E.updatedPath=l),E.originalPath=n.points,E}},"./src/dagre-wrapper/index.js": +/*! exports provided: clear, insertEdgeLabel, positionEdgeLabel, intersection, insertEdge */function(e,t,n){"use strict";n.r(t),n.d(t,"clear",(function(){return d})),n.d(t,"insertEdgeLabel",(function(){return u})),n.d(t,"positionEdgeLabel",(function(){return h})),n.d(t,"intersection",(function(){return g})),n.d(t,"insertEdge",(function(){return p}));var i=n(/*! ../logger */"./src/logger.js"),r=n(/*! ./createLabel */"./src/dagre-wrapper/createLabel.js"),o=n(/*! d3 */"d3"),s=n(/*! ../config */"./src/config.js"),a=n(/*! ../utils */"./src/utils.js"),l={},c={},d=function(){l={},c={}},u=function(e,t){var n=Object(r.default)(t.label,t.labelStyle),i=e.insert("g").attr("class","edgeLabel"),a=i.insert("g").attr("class","label");a.node().appendChild(n);var d=n.getBBox();if(Object(s.getConfig)().flowchart.htmlLabels){var u=n.children[0],h=Object(o.select)(n);d=u.getBoundingClientRect(),h.attr("width",d.width),h.attr("height",d.height)}if(a.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"),l[t.id]=i,t.width=d.width,t.height=d.height,t.startLabelLeft){var f=Object(r.default)(t.startLabelLeft,t.labelStyle),g=e.insert("g").attr("class","edgeTerminals"),p=g.insert("g").attr("class","inner");p.node().appendChild(f);var m=f.getBBox();p.attr("transform","translate("+-m.width/2+", "+-m.height/2+")"),c[t.id]||(c[t.id]={}),c[t.id].startLeft=g}if(t.startLabelRight){var _=Object(r.default)(t.startLabelRight,t.labelStyle),b=e.insert("g").attr("class","edgeTerminals"),v=b.insert("g").attr("class","inner");b.node().appendChild(_),v.node().appendChild(_);var y=_.getBBox();v.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),c[t.id]||(c[t.id]={}),c[t.id].startRight=b}if(t.endLabelLeft){var w=Object(r.default)(t.endLabelLeft,t.labelStyle),C=e.insert("g").attr("class","edgeTerminals"),S=C.insert("g").attr("class","inner");S.node().appendChild(w);var k=w.getBBox();S.attr("transform","translate("+-k.width/2+", "+-k.height/2+")"),C.node().appendChild(w),c[t.id]||(c[t.id]={}),c[t.id].endLeft=C}if(t.endLabelRight){var x=Object(r.default)(t.endLabelRight,t.labelStyle),L=e.insert("g").attr("class","edgeTerminals"),M=L.insert("g").attr("class","inner");M.node().appendChild(x);var D=x.getBBox();M.attr("transform","translate("+-D.width/2+", "+-D.height/2+")"),L.node().appendChild(x),c[t.id]||(c[t.id]={}),c[t.id].endRight=L}},h=function(e,t){i.logger.info("Moving label",e.id,e.label,l[e.id]);var n=t.updatedPath?t.updatedPath:t.originalPath;if(e.label){var r=l[e.id],o=e.x,s=e.y;if(n){var d=a.default.calcLabelPosition(n);i.logger.info("Moving label from (",o,",",s,") to (",d.x,",",d.y,")")}r.attr("transform","translate("+o+", "+s+")")}if(e.startLabelLeft){var u=c[e.id].startLeft,h=e.x,f=e.y;if(n){var g=a.default.calcTerminalLabelPosition(0,"start_left",n);h=g.x,f=g.y}u.attr("transform","translate("+h+", "+f+")")}if(e.startLabelRight){var p=c[e.id].startRight,m=e.x,_=e.y;if(n){var b=a.default.calcTerminalLabelPosition(0,"start_right",n);m=b.x,_=b.y}p.attr("transform","translate("+m+", "+_+")")}if(e.endLabelLeft){var v=c[e.id].endLeft,y=e.x,w=e.y;if(n){var C=a.default.calcTerminalLabelPosition(0,"end_left",n);y=C.x,w=C.y}v.attr("transform","translate("+y+", "+w+")")}if(e.endLabelRight){var S=c[e.id].endRight,k=e.x,x=e.y;if(n){var L=a.default.calcTerminalLabelPosition(0,"end_right",n);k=L.x,x=L.y}S.attr("transform","translate("+k+", "+x+")")}},f=function(e,t){var n=e.x,i=e.y,r=Math.abs(t.x-n),o=Math.abs(t.y-i),s=e.width/2,a=e.height/2;return r>=s||o>=a},g=function(e,t,n){i.logger.warn("intersection calc o:",t," i:",n,e);var r=e.x,o=e.y,s=Math.abs(r-n.x),a=e.width/2,l=n.x<t.x?a-s:a+s,c=e.height/2,d=r-a,u=r+a,h=o-c,f=o+c;if(t.x===d||t.x===u||t.y===h||t.y===f)return i.logger.warn("calc equals on edge"),t;var g=Math.abs(t.y-n.y),p=Math.abs(t.x-n.x);if(Math.abs(o-t.y)*a>Math.abs(r-t.x)*c){var m=n.y<t.y?t.y-c-o:o-c-t.y;l=p*m/g;var _={x:n.x<t.x?n.x+p-l:n.x-l,y:n.y<t.y?n.y+g-m:n.y-m};return i.logger.warn("topp/bott calc, Q ".concat(g,", q ").concat(m,", R ").concat(p,", r ").concat(l),_),_}var b=b=g*(l=n.x<t.x?t.x-a-r:r-a-t.x)/p;return i.logger.warn("sides calc, Q ".concat(g,", q ").concat(b,", R ").concat(p,", r ").concat(l),{x:n.x<t.x?n.x+p-l:n.x+s-a,y:n.y<t.y?n.y+b:n.y-b}),{x:n.x<t.x?n.x+p-l:n.x+s-a,y:n.y<t.y?n.y+b:n.y-b}},p=function(e,t,n,r,a,l){var c=n.points,d=!1,u=l.node(t.v),h=l.node(t.w);if(h.intersect&&u.intersect&&((c=c.slice(1,n.points.length-1)).unshift(u.intersect(c[0])),i.logger.info("Last point",c[c.length-1],h,h.intersect(c[c.length-1])),c.push(h.intersect(c[c.length-1]))),n.toCluster){var p;i.logger.trace("edge",n),i.logger.trace("to cluster",r[n.toCluster]),c=[];var m=!1;n.points.forEach((function(e){var t=r[n.toCluster].node;if(f(t,e)||m)m||c.push(e);else{i.logger.trace("inside",n.toCluster,e,p);var o=g(t,p,e),s=!1;c.forEach((function(e){s=s||e.x===o.x&&e.y===o.y})),c.find((function(e){return e.x===o.x&&e.y===o.y}))?i.logger.warn("no intersect",o,c):c.push(o),m=!0}p=e})),d=!0}if(n.fromCluster){i.logger.trace("edge",n),i.logger.warn("from cluster",r[n.fromCluster]);for(var _,b=[],v=!1,y=c.length-1;y>=0;y--){var w=c[y],C=r[n.fromCluster].node;if(f(C,w)||v)i.logger.trace("Outside point",w),v||b.unshift(w);else{i.logger.warn("inside",n.fromCluster,w,C);var S=g(C,_,w);b.unshift(S),v=!0}_=w}c=b,d=!0}var k,x=c.filter((function(e){return!Number.isNaN(e.y)})),L=Object(o.line)().x((function(e){return e.x})).y((function(e){return e.y})).curve(o.curveBasis);switch(n.thickness){case"normal":k="edge-thickness-normal";break;case"thick":k="edge-thickness-thick";break;default:k=""}switch(n.pattern){case"solid":k+=" edge-pattern-solid";break;case"dotted":k+=" edge-pattern-dotted";break;case"dashed":k+=" edge-pattern-dashed"}var M=e.append("path").attr("d",L(x)).attr("id",n.id).attr("class"," "+k+(n.classes?" "+n.classes:"")).attr("style",n.style),D="";switch(Object(s.getConfig)().state.arrowMarkerAbsolute&&(D=(D=(D=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),i.logger.info("arrowTypeStart",n.arrowTypeStart),i.logger.info("arrowTypeEnd",n.arrowTypeEnd),n.arrowTypeStart){case"arrow_cross":M.attr("marker-start","url("+D+"#"+a+"-crossStart)");break;case"arrow_point":M.attr("marker-start","url("+D+"#"+a+"-pointStart)");break;case"arrow_barb":M.attr("marker-start","url("+D+"#"+a+"-barbStart)");break;case"arrow_circle":M.attr("marker-start","url("+D+"#"+a+"-circleStart)");break;case"aggregation":M.attr("marker-start","url("+D+"#"+a+"-aggregationStart)");break;case"extension":M.attr("marker-start","url("+D+"#"+a+"-extensionStart)");break;case"composition":M.attr("marker-start","url("+D+"#"+a+"-compositionStart)");break;case"dependency":M.attr("marker-start","url("+D+"#"+a+"-dependencyStart)")}switch(n.arrowTypeEnd){case"arrow_cross":M.attr("marker-end","url("+D+"#"+a+"-crossEnd)");break;case"arrow_point":M.attr("marker-end","url("+D+"#"+a+"-pointEnd)");break;case"arrow_barb":M.attr("marker-end","url("+D+"#"+a+"-barbEnd)");break;case"arrow_circle":M.attr("marker-end","url("+D+"#"+a+"-circleEnd)");break;case"aggregation":M.attr("marker-end","url("+D+"#"+a+"-aggregationEnd)");break;case"extension":M.attr("marker-end","url("+D+"#"+a+"-extensionEnd)");break;case"composition":M.attr("marker-end","url("+D+"#"+a+"-compositionEnd)");break;case"dependency":M.attr("marker-end","url("+D+"#"+a+"-dependencyEnd)")}var E={};return d&&(E.updatedPath=c),E.originalPath=n.points,E}},"./src/dagre-wrapper/index.js": /*!************************************!*\ !*** ./src/dagre-wrapper/index.js ***! \************************************/ -/*! exports provided: render */function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return p}));var r=n(/*! dagre */"dagre"),i=n.n(r),o=n(/*! graphlib */"graphlib"),s=n.n(o),a=n(/*! ./markers */"./src/dagre-wrapper/markers.js"),u=n(/*! ./shapes/util */"./src/dagre-wrapper/shapes/util.js"),l=n(/*! ./mermaid-graphlib */"./src/dagre-wrapper/mermaid-graphlib.js"),c=n(/*! ./nodes */"./src/dagre-wrapper/nodes.js"),d=n(/*! ./clusters */"./src/dagre-wrapper/clusters.js"),h=n(/*! ./edges */"./src/dagre-wrapper/edges.js"),f=n(/*! ../logger */"./src/logger.js"),p=function(e,t,n,r,o){Object(a.default)(e,n,r,o),Object(c.clear)(),Object(h.clear)(),Object(d.clear)(),Object(l.clear)(),f.logger.warn("Graph at first:",s.a.json.write(t)),Object(l.adjustClustersAndEdges)(t),f.logger.warn("Graph after:",s.a.json.write(t)),function e(t,n,r,o){f.logger.info("Graph in recursive render: XXX",s.a.json.write(n),o);var a=n.graph().rankdir;f.logger.warn("Dir in recursive render - dir:",a);var p=t.insert("g").attr("class","root");n.nodes()?f.logger.info("Recursive render XXX",n.nodes()):f.logger.info("No nodes found for",n),n.edges().length>0&&f.logger.info("Recursive edges",n.edge(n.edges()[0]));var g=p.insert("g").attr("class","clusters"),m=p.insert("g").attr("class","edgePaths"),_=p.insert("g").attr("class","edgeLabels"),y=p.insert("g").attr("class","nodes");return n.nodes().forEach((function(t){var i=n.node(t);if(void 0!==o){var s=JSON.parse(JSON.stringify(o.clusterData));f.logger.info("Setting data for cluster XXX (",t,") ",s,o),n.setNode(o.id,s),n.parent(t)||(f.logger.warn("Setting parent",t,o.id),n.setParent(t,o.id,s))}if(f.logger.info("(Insert) Node XXX"+t+": "+JSON.stringify(n.node(t))),i&&i.clusterNode){f.logger.info("Cluster identified",t,i,n.node(t));var d=e(y,i.graph,r,n.node(t));Object(u.updateNodeBounds)(i,d),Object(c.setNodeElem)(d,i),f.logger.warn("Recursive render complete",d,i)}else n.children(t).length>0?(f.logger.info("Cluster - the non recursive path XXX",t,i.id,i,n),f.logger.info(Object(l.findNonClusterChild)(i.id,n)),l.clusterDb[i.id]={id:Object(l.findNonClusterChild)(i.id,n),node:i}):(f.logger.info("Node - the non recursive path",t,i.id,i),Object(c.insertNode)(y,n.node(t),a))})),n.edges().forEach((function(e){var t=n.edge(e.v,e.w,e.name);f.logger.info("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(e)),f.logger.info("Edge "+e.v+" -> "+e.w+": ",e," ",JSON.stringify(n.edge(e))),f.logger.info("Fix",l.clusterDb,"ids:",e.v,e.w,"Translateing: ",l.clusterDb[e.v],l.clusterDb[e.w]),Object(h.insertEdgeLabel)(_,t)})),n.edges().forEach((function(e){f.logger.info("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(e))})),f.logger.info("#############################################"),f.logger.info("### Layout ###"),f.logger.info("#############################################"),f.logger.info(n),i.a.layout(n),f.logger.info("Graph after layout:",s.a.json.write(n)),Object(l.sortNodesByHierarchy)(n).forEach((function(e){var t=n.node(e);f.logger.info("Position "+e+": "+JSON.stringify(n.node(e))),f.logger.info("Position "+e+": ("+t.x,","+t.y,") width: ",t.width," height: ",t.height),t&&t.clusterNode?Object(c.positionNode)(t):n.children(e).length>0?(Object(d.insertCluster)(g,t),l.clusterDb[t.id].node=t):Object(c.positionNode)(t)})),n.edges().forEach((function(e){var t=n.edge(e);f.logger.info("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(t),t);var i=Object(h.insertEdge)(m,e,t,l.clusterDb,r,n);Object(h.positionEdgeLabel)(t,i)})),p}(e,t,r)}},"./src/dagre-wrapper/intersect/index.js": +/*! exports provided: render */function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return g}));var i=n(/*! dagre */"dagre"),r=n.n(i),o=n(/*! graphlib */"graphlib"),s=n.n(o),a=n(/*! ./markers */"./src/dagre-wrapper/markers.js"),l=n(/*! ./shapes/util */"./src/dagre-wrapper/shapes/util.js"),c=n(/*! ./mermaid-graphlib */"./src/dagre-wrapper/mermaid-graphlib.js"),d=n(/*! ./nodes */"./src/dagre-wrapper/nodes.js"),u=n(/*! ./clusters */"./src/dagre-wrapper/clusters.js"),h=n(/*! ./edges */"./src/dagre-wrapper/edges.js"),f=n(/*! ../logger */"./src/logger.js"),g=function(e,t,n,i,o){Object(a.default)(e,n,i,o),Object(d.clear)(),Object(h.clear)(),Object(u.clear)(),Object(c.clear)(),f.logger.warn("Graph at first:",s.a.json.write(t)),Object(c.adjustClustersAndEdges)(t),f.logger.warn("Graph after:",s.a.json.write(t)),function e(t,n,i,o){f.logger.info("Graph in recursive render: XXX",s.a.json.write(n),o);var a=n.graph().rankdir;f.logger.warn("Dir in recursive render - dir:",a);var g=t.insert("g").attr("class","root");n.nodes()?f.logger.info("Recursive render XXX",n.nodes()):f.logger.info("No nodes found for",n),n.edges().length>0&&f.logger.info("Recursive edges",n.edge(n.edges()[0]));var p=g.insert("g").attr("class","clusters"),m=g.insert("g").attr("class","edgePaths"),_=g.insert("g").attr("class","edgeLabels"),b=g.insert("g").attr("class","nodes");return n.nodes().forEach((function(t){var r=n.node(t);if(void 0!==o){var s=JSON.parse(JSON.stringify(o.clusterData));f.logger.info("Setting data for cluster XXX (",t,") ",s,o),n.setNode(o.id,s),n.parent(t)||(f.logger.warn("Setting parent",t,o.id),n.setParent(t,o.id,s))}if(f.logger.info("(Insert) Node XXX"+t+": "+JSON.stringify(n.node(t))),r&&r.clusterNode){f.logger.info("Cluster identified",t,r,n.node(t));var u=e(b,r.graph,i,n.node(t));Object(l.updateNodeBounds)(r,u),Object(d.setNodeElem)(u,r),f.logger.warn("Recursive render complete",u,r)}else n.children(t).length>0?(f.logger.info("Cluster - the non recursive path XXX",t,r.id,r,n),f.logger.info(Object(c.findNonClusterChild)(r.id,n)),c.clusterDb[r.id]={id:Object(c.findNonClusterChild)(r.id,n),node:r}):(f.logger.info("Node - the non recursive path",t,r.id,r),Object(d.insertNode)(b,n.node(t),a))})),n.edges().forEach((function(e){var t=n.edge(e.v,e.w,e.name);f.logger.info("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(e)),f.logger.info("Edge "+e.v+" -> "+e.w+": ",e," ",JSON.stringify(n.edge(e))),f.logger.info("Fix",c.clusterDb,"ids:",e.v,e.w,"Translateing: ",c.clusterDb[e.v],c.clusterDb[e.w]),Object(h.insertEdgeLabel)(_,t)})),n.edges().forEach((function(e){f.logger.info("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(e))})),f.logger.info("#############################################"),f.logger.info("### Layout ###"),f.logger.info("#############################################"),f.logger.info(n),r.a.layout(n),f.logger.info("Graph after layout:",s.a.json.write(n)),Object(c.sortNodesByHierarchy)(n).forEach((function(e){var t=n.node(e);f.logger.info("Position "+e+": "+JSON.stringify(n.node(e))),f.logger.info("Position "+e+": ("+t.x,","+t.y,") width: ",t.width," height: ",t.height),t&&t.clusterNode?Object(d.positionNode)(t):n.children(e).length>0?(Object(u.insertCluster)(p,t),c.clusterDb[t.id].node=t):Object(d.positionNode)(t)})),n.edges().forEach((function(e){var t=n.edge(e);f.logger.info("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(t),t);var r=Object(h.insertEdge)(m,e,t,c.clusterDb,i,n);Object(h.positionEdgeLabel)(t,r)})),g}(e,t,i)}},"./src/dagre-wrapper/intersect/index.js": /*!**********************************************!*\ !*** ./src/dagre-wrapper/intersect/index.js ***! \**********************************************/ -/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var r=n(/*! ./intersect-node.js */"./src/dagre-wrapper/intersect/intersect-node.js"),i=n.n(r),o=n(/*! ./intersect-circle.js */"./src/dagre-wrapper/intersect/intersect-circle.js"),s=n(/*! ./intersect-ellipse.js */"./src/dagre-wrapper/intersect/intersect-ellipse.js"),a=n(/*! ./intersect-polygon.js */"./src/dagre-wrapper/intersect/intersect-polygon.js"),u=n(/*! ./intersect-rect.js */"./src/dagre-wrapper/intersect/intersect-rect.js");t.default={node:i.a,circle:o.default,ellipse:s.default,polygon:a.default,rect:u.default}},"./src/dagre-wrapper/intersect/intersect-circle.js": +/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var i=n(/*! ./intersect-node.js */"./src/dagre-wrapper/intersect/intersect-node.js"),r=n.n(i),o=n(/*! ./intersect-circle.js */"./src/dagre-wrapper/intersect/intersect-circle.js"),s=n(/*! ./intersect-ellipse.js */"./src/dagre-wrapper/intersect/intersect-ellipse.js"),a=n(/*! ./intersect-polygon.js */"./src/dagre-wrapper/intersect/intersect-polygon.js"),l=n(/*! ./intersect-rect.js */"./src/dagre-wrapper/intersect/intersect-rect.js");t.default={node:r.a,circle:o.default,ellipse:s.default,polygon:a.default,rect:l.default}},"./src/dagre-wrapper/intersect/intersect-circle.js": /*!*********************************************************!*\ !*** ./src/dagre-wrapper/intersect/intersect-circle.js ***! \*********************************************************/ -/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var r=n(/*! ./intersect-ellipse */"./src/dagre-wrapper/intersect/intersect-ellipse.js");t.default=function(e,t,n){return Object(r.default)(e,t,t,n)}},"./src/dagre-wrapper/intersect/intersect-ellipse.js": +/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var i=n(/*! ./intersect-ellipse */"./src/dagre-wrapper/intersect/intersect-ellipse.js");t.default=function(e,t,n){return Object(i.default)(e,t,t,n)}},"./src/dagre-wrapper/intersect/intersect-ellipse.js": /*!**********************************************************!*\ !*** ./src/dagre-wrapper/intersect/intersect-ellipse.js ***! \**********************************************************/ -/*! exports provided: default */function(e,t,n){"use strict";n.r(t),t.default=function(e,t,n,r){var i=e.x,o=e.y,s=i-r.x,a=o-r.y,u=Math.sqrt(t*t*a*a+n*n*s*s),l=Math.abs(t*n*s/u);r.x<i&&(l=-l);var c=Math.abs(t*n*a/u);return r.y<o&&(c=-c),{x:i+l,y:o+c}}},"./src/dagre-wrapper/intersect/intersect-line.js": +/*! exports provided: default */function(e,t,n){"use strict";n.r(t),t.default=function(e,t,n,i){var r=e.x,o=e.y,s=r-i.x,a=o-i.y,l=Math.sqrt(t*t*a*a+n*n*s*s),c=Math.abs(t*n*s/l);i.x<r&&(c=-c);var d=Math.abs(t*n*a/l);return i.y<o&&(d=-d),{x:r+c,y:o+d}}},"./src/dagre-wrapper/intersect/intersect-line.js": /*!*******************************************************!*\ !*** ./src/dagre-wrapper/intersect/intersect-line.js ***! \*******************************************************/ -/*! exports provided: default */function(e,t,n){"use strict";function r(e,t){return e*t>0}n.r(t),t.default=function(e,t,n,i){var o,s,a,u,l,c,d,h,f,p,g,m,_;if(o=t.y-e.y,a=e.x-t.x,l=t.x*e.y-e.x*t.y,f=o*n.x+a*n.y+l,p=o*i.x+a*i.y+l,!(0!==f&&0!==p&&r(f,p)||(s=i.y-n.y,u=n.x-i.x,c=i.x*n.y-n.x*i.y,d=s*e.x+u*e.y+c,h=s*t.x+u*t.y+c,0!==d&&0!==h&&r(d,h)||0==(g=o*u-s*a))))return m=Math.abs(g/2),{x:(_=a*c-u*l)<0?(_-m)/g:(_+m)/g,y:(_=s*l-o*c)<0?(_-m)/g:(_+m)/g}}},"./src/dagre-wrapper/intersect/intersect-node.js": +/*! exports provided: default */function(e,t,n){"use strict";function i(e,t){return e*t>0}n.r(t),t.default=function(e,t,n,r){var o,s,a,l,c,d,u,h,f,g,p,m,_;if(o=t.y-e.y,a=e.x-t.x,c=t.x*e.y-e.x*t.y,f=o*n.x+a*n.y+c,g=o*r.x+a*r.y+c,!(0!==f&&0!==g&&i(f,g)||(s=r.y-n.y,l=n.x-r.x,d=r.x*n.y-n.x*r.y,u=s*e.x+l*e.y+d,h=s*t.x+l*t.y+d,0!==u&&0!==h&&i(u,h)||0==(p=o*l-s*a))))return m=Math.abs(p/2),{x:(_=a*d-l*c)<0?(_-m)/p:(_+m)/p,y:(_=s*c-o*d)<0?(_-m)/p:(_+m)/p}}},"./src/dagre-wrapper/intersect/intersect-node.js": /*!*******************************************************!*\ !*** ./src/dagre-wrapper/intersect/intersect-node.js ***! \*******************************************************/ @@ -62,51 +62,51 @@ /*!**********************************************************!*\ !*** ./src/dagre-wrapper/intersect/intersect-polygon.js ***! \**********************************************************/ -/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var r=n(/*! ./intersect-line */"./src/dagre-wrapper/intersect/intersect-line.js");t.default=function(e,t,n){var i=e.x,o=e.y,s=[],a=Number.POSITIVE_INFINITY,u=Number.POSITIVE_INFINITY;"function"==typeof t.forEach?t.forEach((function(e){a=Math.min(a,e.x),u=Math.min(u,e.y)})):(a=Math.min(a,t.x),u=Math.min(u,t.y));for(var l=i-e.width/2-a,c=o-e.height/2-u,d=0;d<t.length;d++){var h=t[d],f=t[d<t.length-1?d+1:0],p=Object(r.default)(e,n,{x:l+h.x,y:c+h.y},{x:l+f.x,y:c+f.y});p&&s.push(p)}return s.length?(s.length>1&&s.sort((function(e,t){var r=e.x-n.x,i=e.y-n.y,o=Math.sqrt(r*r+i*i),s=t.x-n.x,a=t.y-n.y,u=Math.sqrt(s*s+a*a);return o<u?-1:o===u?0:1})),s[0]):e}},"./src/dagre-wrapper/intersect/intersect-rect.js": +/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var i=n(/*! ./intersect-line */"./src/dagre-wrapper/intersect/intersect-line.js");t.default=function(e,t,n){var r=e.x,o=e.y,s=[],a=Number.POSITIVE_INFINITY,l=Number.POSITIVE_INFINITY;"function"==typeof t.forEach?t.forEach((function(e){a=Math.min(a,e.x),l=Math.min(l,e.y)})):(a=Math.min(a,t.x),l=Math.min(l,t.y));for(var c=r-e.width/2-a,d=o-e.height/2-l,u=0;u<t.length;u++){var h=t[u],f=t[u<t.length-1?u+1:0],g=Object(i.default)(e,n,{x:c+h.x,y:d+h.y},{x:c+f.x,y:d+f.y});g&&s.push(g)}return s.length?(s.length>1&&s.sort((function(e,t){var i=e.x-n.x,r=e.y-n.y,o=Math.sqrt(i*i+r*r),s=t.x-n.x,a=t.y-n.y,l=Math.sqrt(s*s+a*a);return o<l?-1:o===l?0:1})),s[0]):e}},"./src/dagre-wrapper/intersect/intersect-rect.js": /*!*******************************************************!*\ !*** ./src/dagre-wrapper/intersect/intersect-rect.js ***! \*******************************************************/ -/*! exports provided: default */function(e,t,n){"use strict";n.r(t),t.default=function(e,t){var n,r,i=e.x,o=e.y,s=t.x-i,a=t.y-o,u=e.width/2,l=e.height/2;return Math.abs(a)*u>Math.abs(s)*l?(a<0&&(l=-l),n=0===a?0:l*s/a,r=l):(s<0&&(u=-u),n=u,r=0===s?0:u*a/s),{x:i+n,y:o+r}}},"./src/dagre-wrapper/markers.js": +/*! exports provided: default */function(e,t,n){"use strict";n.r(t),t.default=function(e,t){var n,i,r=e.x,o=e.y,s=t.x-r,a=t.y-o,l=e.width/2,c=e.height/2;return Math.abs(a)*l>Math.abs(s)*c?(a<0&&(c=-c),n=0===a?0:c*s/a,i=c):(s<0&&(l=-l),n=l,i=0===s?0:l*a/s),{x:r+n,y:o+i}}},"./src/dagre-wrapper/markers.js": /*!**************************************!*\ !*** ./src/dagre-wrapper/markers.js ***! \**************************************/ -/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var r=n(/*! ../logger */"./src/logger.js"),i={extension:function(e,t,n){r.logger.trace("Making markers for ",n),e.append("defs").append("marker").attr("id",t+"-extensionStart").attr("class","marker extension "+t).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},composition:function(e,t){e.append("defs").append("marker").attr("id",t+"-compositionStart").attr("class","marker composition "+t).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},aggregation:function(e,t){e.append("defs").append("marker").attr("id",t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},dependency:function(e,t){e.append("defs").append("marker").attr("id",t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},point:function(e,t){e.append("marker").attr("id",t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},circle:function(e,t){e.append("marker").attr("id",t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},cross:function(e,t){e.append("marker").attr("id",t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},barb:function(e,t){e.append("defs").append("marker").attr("id",t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")}};t.default=function(e,t,n,r){t.forEach((function(t){i[t](e,n,r)}))}},"./src/dagre-wrapper/mermaid-graphlib.js": +/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var i=n(/*! ../logger */"./src/logger.js"),r={extension:function(e,t,n){i.logger.trace("Making markers for ",n),e.append("defs").append("marker").attr("id",t+"-extensionStart").attr("class","marker extension "+t).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},composition:function(e,t){e.append("defs").append("marker").attr("id",t+"-compositionStart").attr("class","marker composition "+t).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},aggregation:function(e,t){e.append("defs").append("marker").attr("id",t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},dependency:function(e,t){e.append("defs").append("marker").attr("id",t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},point:function(e,t){e.append("marker").attr("id",t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},circle:function(e,t){e.append("marker").attr("id",t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},cross:function(e,t){e.append("marker").attr("id",t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},barb:function(e,t){e.append("defs").append("marker").attr("id",t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")}};t.default=function(e,t,n,i){t.forEach((function(t){r[t](e,n,i)}))}},"./src/dagre-wrapper/mermaid-graphlib.js": /*!***********************************************!*\ !*** ./src/dagre-wrapper/mermaid-graphlib.js ***! \***********************************************/ -/*! exports provided: clusterDb, clear, extractDecendants, validate, findNonClusterChild, adjustClustersAndEdges, extractor, sortNodesByHierarchy */function(e,t,n){"use strict";n.r(t),n.d(t,"clusterDb",(function(){return s})),n.d(t,"clear",(function(){return l})),n.d(t,"extractDecendants",(function(){return h})),n.d(t,"validate",(function(){return f})),n.d(t,"findNonClusterChild",(function(){return p})),n.d(t,"adjustClustersAndEdges",(function(){return m})),n.d(t,"extractor",(function(){return _})),n.d(t,"sortNodesByHierarchy",(function(){return y}));var r=n(/*! ../logger */"./src/logger.js"),i=n(/*! graphlib */"graphlib"),o=n.n(i),s={},a={},u={},l=function(){a={},u={},s={}},c=function(e,t){return r.logger.debug("In isDecendant",t," ",e," = ",a[t].indexOf(e)>=0),a[t].indexOf(e)>=0},d=function e(t,n,i,o){r.logger.warn("Copying children of ",t,"root",o,"data",n.node(t),o);var s=n.children(t)||[];t!==o&&s.push(t),r.logger.warn("Copying (nodes) clusterId",t,"nodes",s),s.forEach((function(s){if(n.children(s).length>0)e(s,n,i,o);else{var u=n.node(s);r.logger.info("cp ",s," to ",o," with parent ",t),i.setNode(s,u),o!==n.parent(s)&&(r.logger.warn("Setting parent",s,n.parent(s)),i.setParent(s,n.parent(s))),t!==o&&s!==t?(r.logger.debug("Setting parent",s,t),i.setParent(s,t)):(r.logger.info("In copy ",t,"root",o,"data",n.node(t),o),r.logger.debug("Not Setting parent for node=",s,"cluster!==rootId",t!==o,"node!==clusterId",s!==t));var l=n.edges(s);r.logger.debug("Copying Edges",l),l.forEach((function(e){r.logger.info("Edge",e);var s=n.edge(e.v,e.w,e.name);r.logger.info("Edge data",s,o);try{!function(e,t){return r.logger.info("Decendants of ",t," is ",a[t]),r.logger.info("Edge is ",e),e.v!==t&&e.w!==t&&(a[t]?(r.logger.info("Here "),a[t].indexOf(e.v)>=0||!!c(e.v,t)||!!c(e.w,t)||a[t].indexOf(e.w)>=0):(r.logger.debug("Tilt, ",t,",not in decendants"),!1))}(e,o)?r.logger.info("Skipping copy of edge ",e.v,"--\x3e",e.w," rootId: ",o," clusterId:",t):(r.logger.info("Copying as ",e.v,e.w,s,e.name),i.setEdge(e.v,e.w,s,e.name),r.logger.info("newGraph edges ",i.edges(),i.edge(i.edges()[0])))}catch(e){r.logger.error(e)}}))}r.logger.debug("Removing node",s),n.removeNode(s)}))},h=function e(t,n){for(var r=n.children(t),i=[].concat(r),o=0;o<r.length;o++)u[r[o]]=t,i=i.concat(e(r[o],n));return i},f=function(e){var t=e.edges();r.logger.trace("Edges: ",t);for(var n=0;n<t.length;n++){if(e.children(t[n].v).length>0)return r.logger.trace("The node ",t[n].v," is part of and edge even though it has children"),!1;if(e.children(t[n].w).length>0)return r.logger.trace("The node ",t[n].w," is part of and edge even though it has children"),!1}return!0},p=function e(t,n){r.logger.trace("Searching",t);var i=n.children(t);if(r.logger.trace("Searching children of id ",t,i),i.length<1)return r.logger.trace("This is a valid node",t),t;for(var o=0;o<i.length;o++){var s=e(i[o],n);if(s)return r.logger.trace("Found replacement for",t," => ",s),s}},g=function(e){return s[e]&&s[e].externalConnections&&s[e]?s[e].id:e},m=function(e,t){!e||t>10?r.logger.debug("Opting out, no graph "):(r.logger.debug("Opting in, graph "),e.nodes().forEach((function(t){e.children(t).length>0&&(r.logger.warn("Cluster identified",t," Replacement id in edges: ",p(t,e)),a[t]=h(t,e),s[t]={id:p(t,e),clusterData:e.node(t)})})),e.nodes().forEach((function(t){var n=e.children(t),i=e.edges();n.length>0?(r.logger.debug("Cluster identified",t,a),i.forEach((function(e){e.v!==t&&e.w!==t&&c(e.v,t)^c(e.w,t)&&(r.logger.warn("Edge: ",e," leaves cluster ",t),r.logger.warn("Decendants of XXX ",t,": ",a[t]),s[t].externalConnections=!0)}))):r.logger.debug("Not a cluster ",t,a)})),e.edges().forEach((function(t){var n=e.edge(t);r.logger.warn("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t)),r.logger.warn("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(e.edge(t)));var i=t.v,o=t.w;r.logger.warn("Fix XXX",s,"ids:",t.v,t.w,"Translateing: ",s[t.v]," --- ",s[t.w]),(s[t.v]||s[t.w])&&(r.logger.warn("Fixing and trixing - removing XXX",t.v,t.w,t.name),i=g(t.v),o=g(t.w),e.removeEdge(t.v,t.w,t.name),i!==t.v&&(n.fromCluster=t.v),o!==t.w&&(n.toCluster=t.w),r.logger.warn("Fix Replacing with XXX",i,o,t.name),e.setEdge(i,o,n,t.name))})),r.logger.warn("Adjusted Graph",o.a.json.write(e)),_(e,0),r.logger.trace(s))},_=function e(t,n){if(r.logger.warn("extractor - ",n,o.a.json.write(t),t.children("D")),n>10)r.logger.error("Bailing out");else{for(var i=t.nodes(),a=!1,u=0;u<i.length;u++){var l=i[u],c=t.children(l);a=a||c.length>0}if(a){r.logger.debug("Nodes = ",i,n);for(var h=0;h<i.length;h++){var f=i[h];if(r.logger.debug("Extracting node",f,s,s[f]&&!s[f].externalConnections,!t.parent(f),t.node(f),t.children("D")," Depth ",n),s[f])if(!s[f].externalConnections&&t.children(f)&&t.children(f).length>0){r.logger.warn("Cluster without external connections, without a parent and with children",f,n);var p=t.graph(),g=new o.a.Graph({multigraph:!0,compound:!0}).setGraph({rankdir:"TB"===p.rankdir?"LR":"TB",nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}}));r.logger.warn("Old graph before copy",o.a.json.write(t)),d(f,t,g,f),t.setNode(f,{clusterNode:!0,id:f,clusterData:s[f].clusterData,labelText:s[f].labelText,graph:g}),r.logger.warn("New graph after copy node: (",f,")",o.a.json.write(g)),r.logger.debug("Old graph after copy",o.a.json.write(t))}else r.logger.warn("Cluster ** ",f," **not meeting the criteria !externalConnections:",!s[f].externalConnections," no parent: ",!t.parent(f)," children ",t.children(f)&&t.children(f).length>0,t.children("D"),n),r.logger.debug(s);else r.logger.debug("Not a cluster",f,n)}i=t.nodes(),r.logger.warn("New list of nodes",i);for(var m=0;m<i.length;m++){var _=i[m],y=t.node(_);r.logger.warn(" Now next level",_,y),y.clusterNode&&e(y.graph,n+1)}}else r.logger.debug("Done, no node has children",t.nodes())}},y=function(e){return function e(t,n){if(0===n.length)return[];var r=Object.assign(n);return n.forEach((function(n){var i=t.children(n),o=e(t,i);r=r.concat(o)})),r}(e,e.children())}},"./src/dagre-wrapper/nodes.js": +/*! exports provided: clusterDb, clear, extractDecendants, validate, findNonClusterChild, adjustClustersAndEdges, extractor, sortNodesByHierarchy */function(e,t,n){"use strict";n.r(t),n.d(t,"clusterDb",(function(){return s})),n.d(t,"clear",(function(){return c})),n.d(t,"extractDecendants",(function(){return h})),n.d(t,"validate",(function(){return f})),n.d(t,"findNonClusterChild",(function(){return g})),n.d(t,"adjustClustersAndEdges",(function(){return m})),n.d(t,"extractor",(function(){return _})),n.d(t,"sortNodesByHierarchy",(function(){return b}));var i=n(/*! ../logger */"./src/logger.js"),r=n(/*! graphlib */"graphlib"),o=n.n(r),s={},a={},l={},c=function(){a={},l={},s={}},d=function(e,t){return i.logger.debug("In isDecendant",t," ",e," = ",a[t].indexOf(e)>=0),a[t].indexOf(e)>=0},u=function e(t,n,r,o){i.logger.warn("Copying children of ",t,"root",o,"data",n.node(t),o);var s=n.children(t)||[];t!==o&&s.push(t),i.logger.warn("Copying (nodes) clusterId",t,"nodes",s),s.forEach((function(s){if(n.children(s).length>0)e(s,n,r,o);else{var l=n.node(s);i.logger.info("cp ",s," to ",o," with parent ",t),r.setNode(s,l),o!==n.parent(s)&&(i.logger.warn("Setting parent",s,n.parent(s)),r.setParent(s,n.parent(s))),t!==o&&s!==t?(i.logger.debug("Setting parent",s,t),r.setParent(s,t)):(i.logger.info("In copy ",t,"root",o,"data",n.node(t),o),i.logger.debug("Not Setting parent for node=",s,"cluster!==rootId",t!==o,"node!==clusterId",s!==t));var c=n.edges(s);i.logger.debug("Copying Edges",c),c.forEach((function(e){i.logger.info("Edge",e);var s=n.edge(e.v,e.w,e.name);i.logger.info("Edge data",s,o);try{!function(e,t){return i.logger.info("Decendants of ",t," is ",a[t]),i.logger.info("Edge is ",e),e.v!==t&&e.w!==t&&(a[t]?(i.logger.info("Here "),a[t].indexOf(e.v)>=0||!!d(e.v,t)||!!d(e.w,t)||a[t].indexOf(e.w)>=0):(i.logger.debug("Tilt, ",t,",not in decendants"),!1))}(e,o)?i.logger.info("Skipping copy of edge ",e.v,"--\x3e",e.w," rootId: ",o," clusterId:",t):(i.logger.info("Copying as ",e.v,e.w,s,e.name),r.setEdge(e.v,e.w,s,e.name),i.logger.info("newGraph edges ",r.edges(),r.edge(r.edges()[0])))}catch(e){i.logger.error(e)}}))}i.logger.debug("Removing node",s),n.removeNode(s)}))},h=function e(t,n){for(var i=n.children(t),r=[].concat(i),o=0;o<i.length;o++)l[i[o]]=t,r=r.concat(e(i[o],n));return r},f=function(e){var t=e.edges();i.logger.trace("Edges: ",t);for(var n=0;n<t.length;n++){if(e.children(t[n].v).length>0)return i.logger.trace("The node ",t[n].v," is part of and edge even though it has children"),!1;if(e.children(t[n].w).length>0)return i.logger.trace("The node ",t[n].w," is part of and edge even though it has children"),!1}return!0},g=function e(t,n){i.logger.trace("Searching",t);var r=n.children(t);if(i.logger.trace("Searching children of id ",t,r),r.length<1)return i.logger.trace("This is a valid node",t),t;for(var o=0;o<r.length;o++){var s=e(r[o],n);if(s)return i.logger.trace("Found replacement for",t," => ",s),s}},p=function(e){return s[e]&&s[e].externalConnections&&s[e]?s[e].id:e},m=function(e,t){!e||t>10?i.logger.debug("Opting out, no graph "):(i.logger.debug("Opting in, graph "),e.nodes().forEach((function(t){e.children(t).length>0&&(i.logger.warn("Cluster identified",t," Replacement id in edges: ",g(t,e)),a[t]=h(t,e),s[t]={id:g(t,e),clusterData:e.node(t)})})),e.nodes().forEach((function(t){var n=e.children(t),r=e.edges();n.length>0?(i.logger.debug("Cluster identified",t,a),r.forEach((function(e){e.v!==t&&e.w!==t&&d(e.v,t)^d(e.w,t)&&(i.logger.warn("Edge: ",e," leaves cluster ",t),i.logger.warn("Decendants of XXX ",t,": ",a[t]),s[t].externalConnections=!0)}))):i.logger.debug("Not a cluster ",t,a)})),e.edges().forEach((function(t){var n=e.edge(t);i.logger.warn("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t)),i.logger.warn("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(e.edge(t)));var r=t.v,o=t.w;i.logger.warn("Fix XXX",s,"ids:",t.v,t.w,"Translateing: ",s[t.v]," --- ",s[t.w]),(s[t.v]||s[t.w])&&(i.logger.warn("Fixing and trixing - removing XXX",t.v,t.w,t.name),r=p(t.v),o=p(t.w),e.removeEdge(t.v,t.w,t.name),r!==t.v&&(n.fromCluster=t.v),o!==t.w&&(n.toCluster=t.w),i.logger.warn("Fix Replacing with XXX",r,o,t.name),e.setEdge(r,o,n,t.name))})),i.logger.warn("Adjusted Graph",o.a.json.write(e)),_(e,0),i.logger.trace(s))},_=function e(t,n){if(i.logger.warn("extractor - ",n,o.a.json.write(t),t.children("D")),n>10)i.logger.error("Bailing out");else{for(var r=t.nodes(),a=!1,l=0;l<r.length;l++){var c=r[l],d=t.children(c);a=a||d.length>0}if(a){i.logger.debug("Nodes = ",r,n);for(var h=0;h<r.length;h++){var f=r[h];if(i.logger.debug("Extracting node",f,s,s[f]&&!s[f].externalConnections,!t.parent(f),t.node(f),t.children("D")," Depth ",n),s[f])if(!s[f].externalConnections&&t.children(f)&&t.children(f).length>0){i.logger.warn("Cluster without external connections, without a parent and with children",f,n);var g=t.graph(),p=new o.a.Graph({multigraph:!0,compound:!0}).setGraph({rankdir:"TB"===g.rankdir?"LR":"TB",nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}}));i.logger.warn("Old graph before copy",o.a.json.write(t)),u(f,t,p,f),t.setNode(f,{clusterNode:!0,id:f,clusterData:s[f].clusterData,labelText:s[f].labelText,graph:p}),i.logger.warn("New graph after copy node: (",f,")",o.a.json.write(p)),i.logger.debug("Old graph after copy",o.a.json.write(t))}else i.logger.warn("Cluster ** ",f," **not meeting the criteria !externalConnections:",!s[f].externalConnections," no parent: ",!t.parent(f)," children ",t.children(f)&&t.children(f).length>0,t.children("D"),n),i.logger.debug(s);else i.logger.debug("Not a cluster",f,n)}r=t.nodes(),i.logger.warn("New list of nodes",r);for(var m=0;m<r.length;m++){var _=r[m],b=t.node(_);i.logger.warn(" Now next level",_,b),b.clusterNode&&e(b.graph,n+1)}}else i.logger.debug("Done, no node has children",t.nodes())}},b=function(e){return function e(t,n){if(0===n.length)return[];var i=Object.assign(n);return n.forEach((function(n){var r=t.children(n),o=e(t,r);i=i.concat(o)})),i}(e,e.children())}},"./src/dagre-wrapper/nodes.js": /*!************************************!*\ !*** ./src/dagre-wrapper/nodes.js ***! \************************************/ -/*! exports provided: insertNode, setNodeElem, clear, positionNode */function(e,t,n){"use strict";n.r(t),n.d(t,"insertNode",(function(){return p})),n.d(t,"setNodeElem",(function(){return g})),n.d(t,"clear",(function(){return m})),n.d(t,"positionNode",(function(){return _}));var r=n(/*! d3 */"d3"),i=n(/*! ../logger */"./src/logger.js"),o=n(/*! ./shapes/util */"./src/dagre-wrapper/shapes/util.js"),s=n(/*! ../config */"./src/config.js"),a=n(/*! ./intersect/index.js */"./src/dagre-wrapper/intersect/index.js"),u=n(/*! ./createLabel */"./src/dagre-wrapper/createLabel.js"),l=n(/*! ./shapes/note */"./src/dagre-wrapper/shapes/note.js"),c=n(/*! ../diagrams/class/svgDraw */"./src/diagrams/class/svgDraw.js"),d=function(e,t,n){var r=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=70,s=10;"LR"===n&&(i=10,s=70);var u=r.append("rect").style("stroke","black").style("fill","black").attr("x",-1*i/2).attr("y",-1*s/2).attr("width",i).attr("height",s).attr("class","fork-join");return Object(o.updateNodeBounds)(t,u),t.height=t.height+t.padding/2,t.width=t.width+t.padding/2,t.intersect=function(e){return a.default.rect(t,e)},r},h={question:function(e,t){var n=Object(o.labelHelper)(e,t,void 0,!0),r=n.shapeSvg,s=n.bbox,u=s.width+t.padding+(s.height+t.padding),l=[{x:u/2,y:0},{x:u,y:-u/2},{x:u/2,y:-u},{x:0,y:-u/2}];i.logger.info("Question main (Circle)");var c=Object(o.insertPolygonShape)(r,u,u,l);return Object(o.updateNodeBounds)(t,c),t.intersect=function(e){return i.logger.warn("Intersect called"),a.default.polygon(t,l,e)},r},rect:function(e,t){var n=Object(o.labelHelper)(e,t,"node "+t.classes,!0),r=n.shapeSvg,s=n.bbox,u=n.halfPadding;i.logger.trace("Classes = ",t.classes);var l=r.insert("rect",":first-child");return l.attr("class","basic label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",-s.width/2-u).attr("y",-s.height/2-u).attr("width",s.width+t.padding).attr("height",s.height+t.padding),Object(o.updateNodeBounds)(t,l),t.intersect=function(e){return a.default.rect(t,e)},r},rectWithTitle:function(e,t){var n;n=t.classes?"node "+t.classes:"node default";var l=e.insert("g").attr("class",n).attr("id",t.domId||t.id),c=l.insert("rect",":first-child"),d=l.insert("line"),h=l.insert("g").attr("class","label"),f=t.labelText.flat();i.logger.info("Label text",f[0]);var p,g=h.node().appendChild(Object(u.default)(f[0],t.labelStyle,!0,!0));if(Object(s.getConfig)().flowchart.htmlLabels){var m=g.children[0],_=Object(r.select)(g);p=m.getBoundingClientRect(),_.attr("width",p.width),_.attr("height",p.height)}i.logger.info("Text 2",f);var y=f.slice(1,f.length),v=g.getBBox(),b=h.node().appendChild(Object(u.default)(y.join("<br/>"),t.labelStyle,!0,!0));if(Object(s.getConfig)().flowchart.htmlLabels){var w=b.children[0],C=Object(r.select)(b);p=w.getBoundingClientRect(),C.attr("width",p.width),C.attr("height",p.height)}var S=t.padding/2;return Object(r.select)(b).attr("transform","translate( "+(p.width>v.width?0:(v.width-p.width)/2)+", "+(v.height+S+5)+")"),Object(r.select)(g).attr("transform","translate( "+(p.width<v.width?0:-(v.width-p.width)/2)+", 0)"),p=h.node().getBBox(),h.attr("transform","translate("+-p.width/2+", "+(-p.height/2-S+3)+")"),c.attr("class","outer title-state").attr("x",-p.width/2-S).attr("y",-p.height/2-S).attr("width",p.width+t.padding).attr("height",p.height+t.padding),d.attr("class","divider").attr("x1",-p.width/2-S).attr("x2",p.width/2+S).attr("y1",-p.height/2-S+v.height+S).attr("y2",-p.height/2-S+v.height+S),Object(o.updateNodeBounds)(t,c),t.intersect=function(e){return a.default.rect(t,e)},l},circle:function(e,t){var n=Object(o.labelHelper)(e,t,void 0,!0),r=n.shapeSvg,s=n.bbox,u=n.halfPadding,l=r.insert("circle",":first-child");return l.attr("rx",t.rx).attr("ry",t.ry).attr("r",s.width/2+u).attr("width",s.width+t.padding).attr("height",s.height+t.padding),i.logger.info("Circle main"),Object(o.updateNodeBounds)(t,l),t.intersect=function(e){return i.logger.info("Circle intersect",t,s.width/2+u,e),a.default.circle(t,s.width/2+u,e)},r},stadium:function(e,t){var n=Object(o.labelHelper)(e,t,void 0,!0),r=n.shapeSvg,i=n.bbox,s=i.height+t.padding,u=i.width+s/4+t.padding,l=r.insert("rect",":first-child").attr("rx",s/2).attr("ry",s/2).attr("x",-u/2).attr("y",-s/2).attr("width",u).attr("height",s);return Object(o.updateNodeBounds)(t,l),t.intersect=function(e){return a.default.rect(t,e)},r},hexagon:function(e,t){var n=Object(o.labelHelper)(e,t,void 0,!0),r=n.shapeSvg,i=n.bbox,s=i.height+t.padding,u=s/4,l=i.width+2*u+t.padding,c=[{x:u,y:0},{x:l-u,y:0},{x:l,y:-s/2},{x:l-u,y:-s},{x:u,y:-s},{x:0,y:-s/2}],d=Object(o.insertPolygonShape)(r,l,s,c);return Object(o.updateNodeBounds)(t,d),t.intersect=function(e){return a.default.polygon(t,e)},r},rect_left_inv_arrow:function(e,t){var n=Object(o.labelHelper)(e,t,void 0,!0),r=n.shapeSvg,i=n.bbox,s=i.width+t.padding,u=i.height+t.padding,l=[{x:-u/2,y:0},{x:s,y:0},{x:s,y:-u},{x:-u/2,y:-u},{x:0,y:-u/2}],c=Object(o.insertPolygonShape)(r,s,u,l);return Object(o.updateNodeBounds)(t,c),t.intersect=function(e){return a.default.polygon(t,e)},r},lean_right:function(e,t){var n=Object(o.labelHelper)(e,t,void 0,!0),r=n.shapeSvg,i=n.bbox,s=i.width+t.padding,u=i.height+t.padding,l=[{x:-2*u/6,y:0},{x:s-u/6,y:0},{x:s+2*u/6,y:-u},{x:u/6,y:-u}],c=Object(o.insertPolygonShape)(r,s,u,l);return Object(o.updateNodeBounds)(t,c),t.intersect=function(e){return a.default.polygon(t,e)},r},lean_left:function(e,t){var n=Object(o.labelHelper)(e,t,void 0,!0),r=n.shapeSvg,i=n.bbox,s=i.width+t.padding,u=i.height+t.padding,l=[{x:2*u/6,y:0},{x:s+u/6,y:0},{x:s-2*u/6,y:-u},{x:-u/6,y:-u}],c=Object(o.insertPolygonShape)(r,s,u,l);return Object(o.updateNodeBounds)(t,c),t.intersect=function(e){return a.default.polygon(t,e)},r},trapezoid:function(e,t){var n=Object(o.labelHelper)(e,t,void 0,!0),r=n.shapeSvg,i=n.bbox,s=i.width+t.padding,u=i.height+t.padding,l=[{x:-2*u/6,y:0},{x:s+2*u/6,y:0},{x:s-u/6,y:-u},{x:u/6,y:-u}],c=Object(o.insertPolygonShape)(r,s,u,l);return Object(o.updateNodeBounds)(t,c),t.intersect=function(e){return a.default.polygon(t,e)},r},inv_trapezoid:function(e,t){var n=Object(o.labelHelper)(e,t,void 0,!0),r=n.shapeSvg,i=n.bbox,s=i.width+t.padding,u=i.height+t.padding,l=[{x:u/6,y:0},{x:s-u/6,y:0},{x:s+2*u/6,y:-u},{x:-2*u/6,y:-u}],c=Object(o.insertPolygonShape)(r,s,u,l);return Object(o.updateNodeBounds)(t,c),t.intersect=function(e){return a.default.polygon(t,e)},r},rect_right_inv_arrow:function(e,t){var n=Object(o.labelHelper)(e,t,void 0,!0),r=n.shapeSvg,i=n.bbox,s=i.width+t.padding,u=i.height+t.padding,l=[{x:0,y:0},{x:s+u/2,y:0},{x:s,y:-u/2},{x:s+u/2,y:-u},{x:0,y:-u}],c=Object(o.insertPolygonShape)(r,s,u,l);return Object(o.updateNodeBounds)(t,c),t.intersect=function(e){return a.default.polygon(t,e)},r},cylinder:function(e,t){var n=Object(o.labelHelper)(e,t,void 0,!0),r=n.shapeSvg,i=n.bbox,s=i.width+t.padding,u=s/2,l=u/(2.5+s/50),c=i.height+l+t.padding,d="M 0,"+l+" a "+u+","+l+" 0,0,0 "+s+" 0 a "+u+","+l+" 0,0,0 "+-s+" 0 l 0,"+c+" a "+u+","+l+" 0,0,0 "+s+" 0 l 0,"+-c,h=r.attr("label-offset-y",l).insert("path",":first-child").attr("d",d).attr("transform","translate("+-s/2+","+-(c/2+l)+")");return Object(o.updateNodeBounds)(t,h),t.intersect=function(e){var n=a.default.rect(t,e),r=n.x-t.x;if(0!=u&&(Math.abs(r)<t.width/2||Math.abs(r)==t.width/2&&Math.abs(n.y-t.y)>t.height/2-l)){var i=l*l*(1-r*r/(u*u));0!=i&&(i=Math.sqrt(i)),i=l-i,e.y-t.y>0&&(i=-i),n.y+=i}return n},r},start:function(e,t){var n=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),r=n.insert("circle",":first-child");return r.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),Object(o.updateNodeBounds)(t,r),t.intersect=function(e){return a.default.circle(t,7,e)},n},end:function(e,t){var n=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),r=n.insert("circle",":first-child"),i=n.insert("circle",":first-child");return i.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),r.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),Object(o.updateNodeBounds)(t,i),t.intersect=function(e){return a.default.circle(t,7,e)},n},note:l.default,subroutine:function(e,t){var n=Object(o.labelHelper)(e,t,void 0,!0),r=n.shapeSvg,i=n.bbox,s=i.width+t.padding,u=i.height+t.padding,l=[{x:0,y:0},{x:s,y:0},{x:s,y:-u},{x:0,y:-u},{x:0,y:0},{x:-8,y:0},{x:s+8,y:0},{x:s+8,y:-u},{x:-8,y:-u},{x:-8,y:0}],c=Object(o.insertPolygonShape)(r,s,u,l);return Object(o.updateNodeBounds)(t,c),t.intersect=function(e){return a.default.polygon(t,e)},r},fork:d,join:d,class_box:function(e,t){var n,i=t.padding/2;n=t.classes?"node "+t.classes:"node default";var l=e.insert("g").attr("class",n).attr("id",t.domId||t.id),d=l.insert("rect",":first-child"),h=l.insert("line"),f=l.insert("line"),p=0,g=4,m=l.insert("g").attr("class","label"),_=0,y=t.classData.annotations&&t.classData.annotations[0],v=t.classData.annotations[0]?"«"+t.classData.annotations[0]+"»":"",b=m.node().appendChild(Object(u.default)(v,t.labelStyle,!0,!0)),w=b.getBBox();if(Object(s.getConfig)().flowchart.htmlLabels){var C=b.children[0],S=Object(r.select)(b);w=C.getBoundingClientRect(),S.attr("width",w.width),S.attr("height",w.height)}t.classData.annotations[0]&&(g+=w.height+4,p+=w.width);var x=t.classData.id;void 0!==t.classData.type&&""!==t.classData.type&&(x+="<"+t.classData.type+">");var L=m.node().appendChild(Object(u.default)(x,t.labelStyle,!0,!0));Object(r.select)(L).attr("class","classTitle");var k=L.getBBox();if(Object(s.getConfig)().flowchart.htmlLabels){var M=L.children[0],D=Object(r.select)(L);k=M.getBoundingClientRect(),D.attr("width",k.width),D.attr("height",k.height)}g+=k.height+4,k.width>p&&(p=k.width);var E=[];t.classData.members.forEach((function(e){var n=Object(c.parseMember)(e).displayText,i=m.node().appendChild(Object(u.default)(n,t.labelStyle,!0,!0)),o=i.getBBox();if(Object(s.getConfig)().flowchart.htmlLabels){var a=i.children[0],l=Object(r.select)(i);o=a.getBoundingClientRect(),l.attr("width",o.width),l.attr("height",o.height)}o.width>p&&(p=o.width),g+=o.height+4,E.push(i)})),g+=8;var T=[];if(t.classData.methods.forEach((function(e){var n=Object(c.parseMember)(e).displayText,i=m.node().appendChild(Object(u.default)(n,t.labelStyle,!0,!0)),o=i.getBBox();if(Object(s.getConfig)().flowchart.htmlLabels){var a=i.children[0],l=Object(r.select)(i);o=a.getBoundingClientRect(),l.attr("width",o.width),l.attr("height",o.height)}o.width>p&&(p=o.width),g+=o.height+4,T.push(i)})),g+=8,y){var N=(p-w.width)/2;Object(r.select)(b).attr("transform","translate( "+(-1*p/2+N)+", "+-1*g/2+")"),_=w.height+4}var O=(p-k.width)/2;return Object(r.select)(L).attr("transform","translate( "+(-1*p/2+O)+", "+(-1*g/2+_)+")"),_+=k.height+4,h.attr("class","divider").attr("x1",-p/2-i).attr("x2",p/2+i).attr("y1",-g/2-i+8+_).attr("y2",-g/2-i+8+_),_+=8,E.forEach((function(e){Object(r.select)(e).attr("transform","translate( "+-p/2+", "+(-1*g/2+_+4)+")"),_+=k.height+4})),_+=8,f.attr("class","divider").attr("x1",-p/2-i).attr("x2",p/2+i).attr("y1",-g/2-i+8+_).attr("y2",-g/2-i+8+_),_+=8,T.forEach((function(e){Object(r.select)(e).attr("transform","translate( "+-p/2+", "+(-1*g/2+_)+")"),_+=k.height+4})),d.attr("class","outer title-state").attr("x",-p/2-i).attr("y",-g/2-i).attr("width",p+t.padding).attr("height",g+t.padding),Object(o.updateNodeBounds)(t,d),t.intersect=function(e){return a.default.rect(t,e)},l}},f={},p=function(e,t,n){var r,i;t.link?(r=e.insert("svg:a").attr("xlink:href",t.link).attr("target",t.linkTarget||"_blank"),i=h[t.shape](r,t,n)):r=i=h[t.shape](e,t,n),t.tooltip&&i.attr("title",t.tooltip),t.class&&i.attr("class","node default "+t.class),f[t.id]=r,t.haveCallback&&f[t.id].attr("class",f[t.id].attr("class")+" clickable")},g=function(e,t){f[t.id]=e},m=function(){f={}},_=function(e){var t=f[e.id];i.logger.trace("Transforming node",e,"translate("+(e.x-e.width/2-5)+", "+(e.y-e.height/2-5)+")"),e.clusterNode?t.attr("transform","translate("+(e.x-e.width/2-8)+", "+(e.y-e.height/2-8)+")"):t.attr("transform","translate("+e.x+", "+e.y+")")}},"./src/dagre-wrapper/shapes/note.js": +/*! exports provided: insertNode, setNodeElem, clear, positionNode */function(e,t,n){"use strict";n.r(t),n.d(t,"insertNode",(function(){return g})),n.d(t,"setNodeElem",(function(){return p})),n.d(t,"clear",(function(){return m})),n.d(t,"positionNode",(function(){return _}));var i=n(/*! d3 */"d3"),r=n(/*! ../logger */"./src/logger.js"),o=n(/*! ./shapes/util */"./src/dagre-wrapper/shapes/util.js"),s=n(/*! ../config */"./src/config.js"),a=n(/*! ./intersect/index.js */"./src/dagre-wrapper/intersect/index.js"),l=n(/*! ./createLabel */"./src/dagre-wrapper/createLabel.js"),c=n(/*! ./shapes/note */"./src/dagre-wrapper/shapes/note.js"),d=n(/*! ../diagrams/class/svgDraw */"./src/diagrams/class/svgDraw.js"),u=function(e,t,n){var i=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),r=70,s=10;"LR"===n&&(r=10,s=70);var l=i.append("rect").style("stroke","black").style("fill","black").attr("x",-1*r/2).attr("y",-1*s/2).attr("width",r).attr("height",s).attr("class","fork-join");return Object(o.updateNodeBounds)(t,l),t.height=t.height+t.padding/2,t.width=t.width+t.padding/2,t.intersect=function(e){return a.default.rect(t,e)},i},h={question:function(e,t){var n=Object(o.labelHelper)(e,t,void 0,!0),i=n.shapeSvg,s=n.bbox,l=s.width+t.padding+(s.height+t.padding),c=[{x:l/2,y:0},{x:l,y:-l/2},{x:l/2,y:-l},{x:0,y:-l/2}];r.logger.info("Question main (Circle)");var d=Object(o.insertPolygonShape)(i,l,l,c);return Object(o.updateNodeBounds)(t,d),t.intersect=function(e){return r.logger.warn("Intersect called"),a.default.polygon(t,c,e)},i},rect:function(e,t){var n=Object(o.labelHelper)(e,t,"node "+t.classes,!0),i=n.shapeSvg,s=n.bbox,l=n.halfPadding;r.logger.trace("Classes = ",t.classes);var c=i.insert("rect",":first-child");return c.attr("class","basic label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",-s.width/2-l).attr("y",-s.height/2-l).attr("width",s.width+t.padding).attr("height",s.height+t.padding),Object(o.updateNodeBounds)(t,c),t.intersect=function(e){return a.default.rect(t,e)},i},rectWithTitle:function(e,t){var n;n=t.classes?"node "+t.classes:"node default";var c=e.insert("g").attr("class",n).attr("id",t.domId||t.id),d=c.insert("rect",":first-child"),u=c.insert("line"),h=c.insert("g").attr("class","label"),f=t.labelText.flat();r.logger.info("Label text",f[0]);var g,p=h.node().appendChild(Object(l.default)(f[0],t.labelStyle,!0,!0));if(Object(s.getConfig)().flowchart.htmlLabels){var m=p.children[0],_=Object(i.select)(p);g=m.getBoundingClientRect(),_.attr("width",g.width),_.attr("height",g.height)}r.logger.info("Text 2",f);var b=f.slice(1,f.length),v=p.getBBox(),y=h.node().appendChild(Object(l.default)(b.join("<br/>"),t.labelStyle,!0,!0));if(Object(s.getConfig)().flowchart.htmlLabels){var w=y.children[0],C=Object(i.select)(y);g=w.getBoundingClientRect(),C.attr("width",g.width),C.attr("height",g.height)}var S=t.padding/2;return Object(i.select)(y).attr("transform","translate( "+(g.width>v.width?0:(v.width-g.width)/2)+", "+(v.height+S+5)+")"),Object(i.select)(p).attr("transform","translate( "+(g.width<v.width?0:-(v.width-g.width)/2)+", 0)"),g=h.node().getBBox(),h.attr("transform","translate("+-g.width/2+", "+(-g.height/2-S+3)+")"),d.attr("class","outer title-state").attr("x",-g.width/2-S).attr("y",-g.height/2-S).attr("width",g.width+t.padding).attr("height",g.height+t.padding),u.attr("class","divider").attr("x1",-g.width/2-S).attr("x2",g.width/2+S).attr("y1",-g.height/2-S+v.height+S).attr("y2",-g.height/2-S+v.height+S),Object(o.updateNodeBounds)(t,d),t.intersect=function(e){return a.default.rect(t,e)},c},circle:function(e,t){var n=Object(o.labelHelper)(e,t,void 0,!0),i=n.shapeSvg,s=n.bbox,l=n.halfPadding,c=i.insert("circle",":first-child");return c.attr("rx",t.rx).attr("ry",t.ry).attr("r",s.width/2+l).attr("width",s.width+t.padding).attr("height",s.height+t.padding),r.logger.info("Circle main"),Object(o.updateNodeBounds)(t,c),t.intersect=function(e){return r.logger.info("Circle intersect",t,s.width/2+l,e),a.default.circle(t,s.width/2+l,e)},i},stadium:function(e,t){var n=Object(o.labelHelper)(e,t,void 0,!0),i=n.shapeSvg,r=n.bbox,s=r.height+t.padding,l=r.width+s/4+t.padding,c=i.insert("rect",":first-child").attr("rx",s/2).attr("ry",s/2).attr("x",-l/2).attr("y",-s/2).attr("width",l).attr("height",s);return Object(o.updateNodeBounds)(t,c),t.intersect=function(e){return a.default.rect(t,e)},i},hexagon:function(e,t){var n=Object(o.labelHelper)(e,t,void 0,!0),i=n.shapeSvg,r=n.bbox,s=r.height+t.padding,l=s/4,c=r.width+2*l+t.padding,d=[{x:l,y:0},{x:c-l,y:0},{x:c,y:-s/2},{x:c-l,y:-s},{x:l,y:-s},{x:0,y:-s/2}],u=Object(o.insertPolygonShape)(i,c,s,d);return Object(o.updateNodeBounds)(t,u),t.intersect=function(e){return a.default.polygon(t,e)},i},rect_left_inv_arrow:function(e,t){var n=Object(o.labelHelper)(e,t,void 0,!0),i=n.shapeSvg,r=n.bbox,s=r.width+t.padding,l=r.height+t.padding,c=[{x:-l/2,y:0},{x:s,y:0},{x:s,y:-l},{x:-l/2,y:-l},{x:0,y:-l/2}],d=Object(o.insertPolygonShape)(i,s,l,c);return Object(o.updateNodeBounds)(t,d),t.intersect=function(e){return a.default.polygon(t,e)},i},lean_right:function(e,t){var n=Object(o.labelHelper)(e,t,void 0,!0),i=n.shapeSvg,r=n.bbox,s=r.width+t.padding,l=r.height+t.padding,c=[{x:-2*l/6,y:0},{x:s-l/6,y:0},{x:s+2*l/6,y:-l},{x:l/6,y:-l}],d=Object(o.insertPolygonShape)(i,s,l,c);return Object(o.updateNodeBounds)(t,d),t.intersect=function(e){return a.default.polygon(t,e)},i},lean_left:function(e,t){var n=Object(o.labelHelper)(e,t,void 0,!0),i=n.shapeSvg,r=n.bbox,s=r.width+t.padding,l=r.height+t.padding,c=[{x:2*l/6,y:0},{x:s+l/6,y:0},{x:s-2*l/6,y:-l},{x:-l/6,y:-l}],d=Object(o.insertPolygonShape)(i,s,l,c);return Object(o.updateNodeBounds)(t,d),t.intersect=function(e){return a.default.polygon(t,e)},i},trapezoid:function(e,t){var n=Object(o.labelHelper)(e,t,void 0,!0),i=n.shapeSvg,r=n.bbox,s=r.width+t.padding,l=r.height+t.padding,c=[{x:-2*l/6,y:0},{x:s+2*l/6,y:0},{x:s-l/6,y:-l},{x:l/6,y:-l}],d=Object(o.insertPolygonShape)(i,s,l,c);return Object(o.updateNodeBounds)(t,d),t.intersect=function(e){return a.default.polygon(t,e)},i},inv_trapezoid:function(e,t){var n=Object(o.labelHelper)(e,t,void 0,!0),i=n.shapeSvg,r=n.bbox,s=r.width+t.padding,l=r.height+t.padding,c=[{x:l/6,y:0},{x:s-l/6,y:0},{x:s+2*l/6,y:-l},{x:-2*l/6,y:-l}],d=Object(o.insertPolygonShape)(i,s,l,c);return Object(o.updateNodeBounds)(t,d),t.intersect=function(e){return a.default.polygon(t,e)},i},rect_right_inv_arrow:function(e,t){var n=Object(o.labelHelper)(e,t,void 0,!0),i=n.shapeSvg,r=n.bbox,s=r.width+t.padding,l=r.height+t.padding,c=[{x:0,y:0},{x:s+l/2,y:0},{x:s,y:-l/2},{x:s+l/2,y:-l},{x:0,y:-l}],d=Object(o.insertPolygonShape)(i,s,l,c);return Object(o.updateNodeBounds)(t,d),t.intersect=function(e){return a.default.polygon(t,e)},i},cylinder:function(e,t){var n=Object(o.labelHelper)(e,t,void 0,!0),i=n.shapeSvg,r=n.bbox,s=r.width+t.padding,l=s/2,c=l/(2.5+s/50),d=r.height+c+t.padding,u="M 0,"+c+" a "+l+","+c+" 0,0,0 "+s+" 0 a "+l+","+c+" 0,0,0 "+-s+" 0 l 0,"+d+" a "+l+","+c+" 0,0,0 "+s+" 0 l 0,"+-d,h=i.attr("label-offset-y",c).insert("path",":first-child").attr("d",u).attr("transform","translate("+-s/2+","+-(d/2+c)+")");return Object(o.updateNodeBounds)(t,h),t.intersect=function(e){var n=a.default.rect(t,e),i=n.x-t.x;if(0!=l&&(Math.abs(i)<t.width/2||Math.abs(i)==t.width/2&&Math.abs(n.y-t.y)>t.height/2-c)){var r=c*c*(1-i*i/(l*l));0!=r&&(r=Math.sqrt(r)),r=c-r,e.y-t.y>0&&(r=-r),n.y+=r}return n},i},start:function(e,t){var n=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=n.insert("circle",":first-child");return i.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),Object(o.updateNodeBounds)(t,i),t.intersect=function(e){return a.default.circle(t,7,e)},n},end:function(e,t){var n=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=n.insert("circle",":first-child"),r=n.insert("circle",":first-child");return r.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),i.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),Object(o.updateNodeBounds)(t,r),t.intersect=function(e){return a.default.circle(t,7,e)},n},note:c.default,subroutine:function(e,t){var n=Object(o.labelHelper)(e,t,void 0,!0),i=n.shapeSvg,r=n.bbox,s=r.width+t.padding,l=r.height+t.padding,c=[{x:0,y:0},{x:s,y:0},{x:s,y:-l},{x:0,y:-l},{x:0,y:0},{x:-8,y:0},{x:s+8,y:0},{x:s+8,y:-l},{x:-8,y:-l},{x:-8,y:0}],d=Object(o.insertPolygonShape)(i,s,l,c);return Object(o.updateNodeBounds)(t,d),t.intersect=function(e){return a.default.polygon(t,e)},i},fork:u,join:u,class_box:function(e,t){var n,r=t.padding/2;n=t.classes?"node "+t.classes:"node default";var c=e.insert("g").attr("class",n).attr("id",t.domId||t.id),u=c.insert("rect",":first-child"),h=c.insert("line"),f=c.insert("line"),g=0,p=4,m=c.insert("g").attr("class","label"),_=0,b=t.classData.annotations&&t.classData.annotations[0],v=t.classData.annotations[0]?"«"+t.classData.annotations[0]+"»":"",y=m.node().appendChild(Object(l.default)(v,t.labelStyle,!0,!0)),w=y.getBBox();if(Object(s.getConfig)().flowchart.htmlLabels){var C=y.children[0],S=Object(i.select)(y);w=C.getBoundingClientRect(),S.attr("width",w.width),S.attr("height",w.height)}t.classData.annotations[0]&&(p+=w.height+4,g+=w.width);var k=t.classData.id;void 0!==t.classData.type&&""!==t.classData.type&&(k+="<"+t.classData.type+">");var x=m.node().appendChild(Object(l.default)(k,t.labelStyle,!0,!0));Object(i.select)(x).attr("class","classTitle");var L=x.getBBox();if(Object(s.getConfig)().flowchart.htmlLabels){var M=x.children[0],D=Object(i.select)(x);L=M.getBoundingClientRect(),D.attr("width",L.width),D.attr("height",L.height)}p+=L.height+4,L.width>g&&(g=L.width);var E=[];t.classData.members.forEach((function(e){var n=Object(d.parseMember)(e).displayText,r=m.node().appendChild(Object(l.default)(n,t.labelStyle,!0,!0)),o=r.getBBox();if(Object(s.getConfig)().flowchart.htmlLabels){var a=r.children[0],c=Object(i.select)(r);o=a.getBoundingClientRect(),c.attr("width",o.width),c.attr("height",o.height)}o.width>g&&(g=o.width),p+=o.height+4,E.push(r)})),p+=8;var T=[];if(t.classData.methods.forEach((function(e){var n=Object(d.parseMember)(e).displayText,r=m.node().appendChild(Object(l.default)(n,t.labelStyle,!0,!0)),o=r.getBBox();if(Object(s.getConfig)().flowchart.htmlLabels){var a=r.children[0],c=Object(i.select)(r);o=a.getBoundingClientRect(),c.attr("width",o.width),c.attr("height",o.height)}o.width>g&&(g=o.width),p+=o.height+4,T.push(r)})),p+=8,b){var O=(g-w.width)/2;Object(i.select)(y).attr("transform","translate( "+(-1*g/2+O)+", "+-1*p/2+")"),_=w.height+4}var N=(g-L.width)/2;return Object(i.select)(x).attr("transform","translate( "+(-1*g/2+N)+", "+(-1*p/2+_)+")"),_+=L.height+4,h.attr("class","divider").attr("x1",-g/2-r).attr("x2",g/2+r).attr("y1",-p/2-r+8+_).attr("y2",-p/2-r+8+_),_+=8,E.forEach((function(e){Object(i.select)(e).attr("transform","translate( "+-g/2+", "+(-1*p/2+_+4)+")"),_+=L.height+4})),_+=8,f.attr("class","divider").attr("x1",-g/2-r).attr("x2",g/2+r).attr("y1",-p/2-r+8+_).attr("y2",-p/2-r+8+_),_+=8,T.forEach((function(e){Object(i.select)(e).attr("transform","translate( "+-g/2+", "+(-1*p/2+_)+")"),_+=L.height+4})),u.attr("class","outer title-state").attr("x",-g/2-r).attr("y",-p/2-r).attr("width",g+t.padding).attr("height",p+t.padding),Object(o.updateNodeBounds)(t,u),t.intersect=function(e){return a.default.rect(t,e)},c}},f={},g=function(e,t,n){var i,r;t.link?(i=e.insert("svg:a").attr("xlink:href",t.link).attr("target",t.linkTarget||"_blank"),r=h[t.shape](i,t,n)):i=r=h[t.shape](e,t,n),t.tooltip&&r.attr("title",t.tooltip),t.class&&r.attr("class","node default "+t.class),f[t.id]=i,t.haveCallback&&f[t.id].attr("class",f[t.id].attr("class")+" clickable")},p=function(e,t){f[t.id]=e},m=function(){f={}},_=function(e){var t=f[e.id];r.logger.trace("Transforming node",e,"translate("+(e.x-e.width/2-5)+", "+(e.y-e.height/2-5)+")"),e.clusterNode?t.attr("transform","translate("+(e.x-e.width/2-8)+", "+(e.y-e.height/2-8)+")"):t.attr("transform","translate("+e.x+", "+e.y+")")}},"./src/dagre-wrapper/shapes/note.js": /*!******************************************!*\ !*** ./src/dagre-wrapper/shapes/note.js ***! \******************************************/ -/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var r=n(/*! ./util */"./src/dagre-wrapper/shapes/util.js"),i=n(/*! ../../logger */"./src/logger.js"),o=n(/*! ../intersect/index.js */"./src/dagre-wrapper/intersect/index.js");t.default=function(e,t){var n=Object(r.labelHelper)(e,t,"node "+t.classes,!0),s=n.shapeSvg,a=n.bbox,u=n.halfPadding;i.logger.info("Classes = ",t.classes);var l=s.insert("rect",":first-child");return l.attr("rx",t.rx).attr("ry",t.ry).attr("x",-a.width/2-u).attr("y",-a.height/2-u).attr("width",a.width+t.padding).attr("height",a.height+t.padding),Object(r.updateNodeBounds)(t,l),t.intersect=function(e){return o.default.rect(t,e)},s}},"./src/dagre-wrapper/shapes/util.js": +/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var i=n(/*! ./util */"./src/dagre-wrapper/shapes/util.js"),r=n(/*! ../../logger */"./src/logger.js"),o=n(/*! ../intersect/index.js */"./src/dagre-wrapper/intersect/index.js");t.default=function(e,t){var n=Object(i.labelHelper)(e,t,"node "+t.classes,!0),s=n.shapeSvg,a=n.bbox,l=n.halfPadding;r.logger.info("Classes = ",t.classes);var c=s.insert("rect",":first-child");return c.attr("rx",t.rx).attr("ry",t.ry).attr("x",-a.width/2-l).attr("y",-a.height/2-l).attr("width",a.width+t.padding).attr("height",a.height+t.padding),Object(i.updateNodeBounds)(t,c),t.intersect=function(e){return o.default.rect(t,e)},s}},"./src/dagre-wrapper/shapes/util.js": /*!******************************************!*\ !*** ./src/dagre-wrapper/shapes/util.js ***! \******************************************/ -/*! exports provided: labelHelper, updateNodeBounds, insertPolygonShape */function(e,t,n){"use strict";n.r(t),n.d(t,"labelHelper",(function(){return s})),n.d(t,"updateNodeBounds",(function(){return a})),n.d(t,"insertPolygonShape",(function(){return u}));var r=n(/*! ../createLabel */"./src/dagre-wrapper/createLabel.js"),i=n(/*! ../../config */"./src/config.js"),o=n(/*! d3 */"d3"),s=function(e,t,n,s){var a;a=n||"node default";var u=e.insert("g").attr("class",a).attr("id",t.domId||t.id),l=u.insert("g").attr("class","label").attr("style",t.labelStyle),c=l.node().appendChild(Object(r.default)(t.labelText,t.labelStyle,!1,s)),d=c.getBBox();if(Object(i.getConfig)().flowchart.htmlLabels){var h=c.children[0],f=Object(o.select)(c);d=h.getBoundingClientRect(),f.attr("width",d.width),f.attr("height",d.height)}var p=t.padding/2;return l.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"),{shapeSvg:u,bbox:d,halfPadding:p,label:l}},a=function(e,t){var n=t.node().getBBox();e.width=n.width,e.height=n.height};function u(e,t,n,r){return e.insert("polygon",":first-child").attr("points",r.map((function(e){return e.x+","+e.y})).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+n/2+")")}},"./src/defaultConfig.js": +/*! exports provided: labelHelper, updateNodeBounds, insertPolygonShape */function(e,t,n){"use strict";n.r(t),n.d(t,"labelHelper",(function(){return s})),n.d(t,"updateNodeBounds",(function(){return a})),n.d(t,"insertPolygonShape",(function(){return l}));var i=n(/*! ../createLabel */"./src/dagre-wrapper/createLabel.js"),r=n(/*! ../../config */"./src/config.js"),o=n(/*! d3 */"d3"),s=function(e,t,n,s){var a;a=n||"node default";var l=e.insert("g").attr("class",a).attr("id",t.domId||t.id),c=l.insert("g").attr("class","label").attr("style",t.labelStyle),d=c.node().appendChild(Object(i.default)(t.labelText,t.labelStyle,!1,s)),u=d.getBBox();if(Object(r.getConfig)().flowchart.htmlLabels){var h=d.children[0],f=Object(o.select)(d);u=h.getBoundingClientRect(),f.attr("width",u.width),f.attr("height",u.height)}var g=t.padding/2;return c.attr("transform","translate("+-u.width/2+", "+-u.height/2+")"),{shapeSvg:l,bbox:u,halfPadding:g,label:c}},a=function(e,t){var n=t.node().getBBox();e.width=n.width,e.height=n.height};function l(e,t,n,i){return e.insert("polygon",":first-child").attr("points",i.map((function(e){return e.x+","+e.y})).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+n/2+")")}},"./src/defaultConfig.js": /*!******************************!*\ !*** ./src/defaultConfig.js ***! \******************************/ -/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var r={theme:"default",themeVariables:n(/*! ./themes */"./src/themes/index.js").default.default.getThemeVariables(),themeCSS:void 0,maxTextSize:5e4,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize"],deterministicIds:!1,deterministicIDSeed:void 0,flowchart:{diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"linear",padding:15,useMaxWidth:!0},sequence:{activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open-Sans", "sans-serif"',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,leftPadding:75,gridLineStartPadding:35,fontSize:11,fontFamily:'"Open-Sans", "sans-serif"',numberSectionStyles:4,axisFormat:"%Y-%m-%d",useMaxWidth:!0,useWidth:void 0},journey:{diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1},class:{arrowMarkerAbsolute:!1,useMaxWidth:!0},git:{arrowMarkerAbsolute:!1,useWidth:void 0,useMaxWidth:!0},state:{dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,useMaxWidth:!0},er:{diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12,useMaxWidth:!0},pie:{useWidth:void 0,useMaxWidth:!0}};r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute,r.git.arrowMarkerAbsolute=r.arrowMarkerAbsolute,t.default=r},"./src/diagrams/class/classDb.js": +/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var i={theme:"default",themeVariables:n(/*! ./themes */"./src/themes/index.js").default.default.getThemeVariables(),themeCSS:void 0,maxTextSize:5e4,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize"],deterministicIds:!1,deterministicIDSeed:void 0,flowchart:{diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"linear",padding:15,useMaxWidth:!0},sequence:{activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open-Sans", "sans-serif"',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,leftPadding:75,gridLineStartPadding:35,fontSize:11,fontFamily:'"Open-Sans", "sans-serif"',numberSectionStyles:4,axisFormat:"%Y-%m-%d",useMaxWidth:!0,useWidth:void 0},journey:{diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1},class:{arrowMarkerAbsolute:!1,useMaxWidth:!0},git:{arrowMarkerAbsolute:!1,useWidth:void 0,useMaxWidth:!0},state:{dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,useMaxWidth:!0},er:{diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12,useMaxWidth:!0},pie:{useWidth:void 0,useMaxWidth:!0}};i.class.arrowMarkerAbsolute=i.arrowMarkerAbsolute,i.git.arrowMarkerAbsolute=i.arrowMarkerAbsolute,t.default=i},"./src/diagrams/class/classDb.js": /*!***************************************!*\ !*** ./src/diagrams/class/classDb.js ***! \***************************************/ -/*! exports provided: parseDirective, addClass, lookUpDomId, clear, getClass, getClasses, getRelations, addRelation, addAnnotation, addMember, addMembers, cleanupLabel, setCssClass, setLink, setClickEvent, bindFunctions, lineType, relationType, default */function(e,t,n){"use strict";n.r(t),n.d(t,"parseDirective",(function(){return f})),n.d(t,"addClass",(function(){return g})),n.d(t,"lookUpDomId",(function(){return m})),n.d(t,"clear",(function(){return _})),n.d(t,"getClass",(function(){return y})),n.d(t,"getClasses",(function(){return v})),n.d(t,"getRelations",(function(){return b})),n.d(t,"addRelation",(function(){return w})),n.d(t,"addAnnotation",(function(){return C})),n.d(t,"addMember",(function(){return S})),n.d(t,"addMembers",(function(){return x})),n.d(t,"cleanupLabel",(function(){return L})),n.d(t,"setCssClass",(function(){return k})),n.d(t,"setLink",(function(){return M})),n.d(t,"setClickEvent",(function(){return D})),n.d(t,"bindFunctions",(function(){return T})),n.d(t,"lineType",(function(){return N})),n.d(t,"relationType",(function(){return O}));var r=n(/*! d3 */"d3"),i=n(/*! ../../logger */"./src/logger.js"),o=n(/*! ../../config */"./src/config.js"),s=n(/*! ../common/common */"./src/diagrams/common/common.js"),a=n(/*! ../../utils */"./src/utils.js"),u=n(/*! ../../mermaidAPI */"./src/mermaidAPI.js"),l=[],c={},d=0,h=[],f=function(e,t,n){u.default.parseDirective(this,e,t,n)},p=function(e){var t="",n=e;if(e.indexOf("~")>0){var r=e.split("~");n=r[0],t=r[1]}return{className:n,type:t}},g=function(e){var t=p(e);void 0===c[t.className]&&(c[t.className]={id:t.className,type:t.type,cssClasses:[],methods:[],members:[],annotations:[],domId:"classid-"+t.className+"-"+d},d++)},m=function(e){for(var t=Object.keys(c),n=0;n<t.length;n++)if(c[t[n]].id===e)return c[t[n]].domId},_=function(){l=[],c={},(h=[]).push(A)},y=function(e){return c[e]},v=function(){return c},b=function(){return l},w=function(e){i.logger.debug("Adding relation: "+JSON.stringify(e)),g(e.id1),g(e.id2),e.id1=p(e.id1).className,e.id2=p(e.id2).className,l.push(e)},C=function(e,t){var n=p(e).className;c[n].annotations.push(t)},S=function(e,t){var n=p(e).className,r=c[n];if("string"==typeof t){var i=t.trim();i.startsWith("<<")&&i.endsWith(">>")?r.annotations.push(i.substring(2,i.length-2)):i.indexOf(")")>0?r.methods.push(i):i&&r.members.push(i)}},x=function(e,t){Array.isArray(t)&&(t.reverse(),t.forEach((function(t){return S(e,t)})))},L=function(e){return":"===e.substring(0,1)?e.substr(1).trim():e.trim()},k=function(e,t){e.split(",").forEach((function(e){var n=e;e[0].match(/\d/)&&(n="classid-"+n),void 0!==c[n]&&c[n].cssClasses.push(t)}))},M=function(e,t,n){var r=o.getConfig();e.split(",").forEach((function(e){var i=e;e[0].match(/\d/)&&(i="classid-"+i),void 0!==c[i]&&(c[i].link=a.default.formatUrl(t,r),n&&(c[i].tooltip=s.default.sanitizeText(n,r)))})),k(e,"clickable")},D=function(e,t,n){e.split(",").forEach((function(e){E(e,t,n),c[e].haveCallback=!0})),k(e,"clickable")},E=function(e,t,n){var r=o.getConfig(),i=e,u=m(i);"loose"===r.securityLevel&&void 0!==t&&void 0!==c[i]&&(n&&(c[i].tooltip=s.default.sanitizeText(n,r)),h.push((function(){var e=document.querySelector('[id="'.concat(u,'"]'));null!==e&&e.addEventListener("click",(function(){a.default.runFunc(t,u)}),!1)})))},T=function(e){h.forEach((function(t){t(e)}))},N={LINE:0,DOTTED_LINE:1},O={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},A=function(e){var t=Object(r.select)(".mermaidTooltip");null===(t._groups||t)[0][0]&&(t=Object(r.select)("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),Object(r.select)(e).select("svg").selectAll("g.node").on("mouseover",(function(){var e=Object(r.select)(this);if(null!==e.attr("title")){var n=this.getBoundingClientRect();t.transition().duration(200).style("opacity",".9"),t.html(e.attr("title")).style("left",window.scrollX+n.left+(n.right-n.left)/2+"px").style("top",window.scrollY+n.top-14+document.body.scrollTop+"px"),e.classed("hover",!0)}})).on("mouseout",(function(){t.transition().duration(500).style("opacity",0),Object(r.select)(this).classed("hover",!1)}))};h.push(A),t.default={parseDirective:f,getConfig:function(){return o.getConfig().class},addClass:g,bindFunctions:T,clear:_,getClass:y,getClasses:v,addAnnotation:C,getRelations:b,addRelation:w,addMember:S,addMembers:x,cleanupLabel:L,lineType:N,relationType:O,setClickEvent:D,setCssClass:k,setLink:M,lookUpDomId:m}},"./src/diagrams/class/classRenderer-v2.js": +/*! exports provided: parseDirective, addClass, lookUpDomId, clear, getClass, getClasses, getRelations, addRelation, addAnnotation, addMember, addMembers, cleanupLabel, setCssClass, setLink, setClickEvent, bindFunctions, lineType, relationType, default */function(e,t,n){"use strict";n.r(t),n.d(t,"parseDirective",(function(){return f})),n.d(t,"addClass",(function(){return p})),n.d(t,"lookUpDomId",(function(){return m})),n.d(t,"clear",(function(){return _})),n.d(t,"getClass",(function(){return b})),n.d(t,"getClasses",(function(){return v})),n.d(t,"getRelations",(function(){return y})),n.d(t,"addRelation",(function(){return w})),n.d(t,"addAnnotation",(function(){return C})),n.d(t,"addMember",(function(){return S})),n.d(t,"addMembers",(function(){return k})),n.d(t,"cleanupLabel",(function(){return x})),n.d(t,"setCssClass",(function(){return L})),n.d(t,"setLink",(function(){return M})),n.d(t,"setClickEvent",(function(){return D})),n.d(t,"bindFunctions",(function(){return T})),n.d(t,"lineType",(function(){return O})),n.d(t,"relationType",(function(){return N}));var i=n(/*! d3 */"d3"),r=n(/*! ../../logger */"./src/logger.js"),o=n(/*! ../../config */"./src/config.js"),s=n(/*! ../common/common */"./src/diagrams/common/common.js"),a=n(/*! ../../utils */"./src/utils.js"),l=n(/*! ../../mermaidAPI */"./src/mermaidAPI.js"),c=[],d={},u=0,h=[],f=function(e,t,n){l.default.parseDirective(this,e,t,n)},g=function(e){var t="",n=e;if(e.indexOf("~")>0){var i=e.split("~");n=i[0],t=i[1]}return{className:n,type:t}},p=function(e){var t=g(e);void 0===d[t.className]&&(d[t.className]={id:t.className,type:t.type,cssClasses:[],methods:[],members:[],annotations:[],domId:"classid-"+t.className+"-"+u},u++)},m=function(e){for(var t=Object.keys(d),n=0;n<t.length;n++)if(d[t[n]].id===e)return d[t[n]].domId},_=function(){c=[],d={},(h=[]).push(I)},b=function(e){return d[e]},v=function(){return d},y=function(){return c},w=function(e){r.logger.debug("Adding relation: "+JSON.stringify(e)),p(e.id1),p(e.id2),e.id1=g(e.id1).className,e.id2=g(e.id2).className,c.push(e)},C=function(e,t){var n=g(e).className;d[n].annotations.push(t)},S=function(e,t){var n=g(e).className,i=d[n];if("string"==typeof t){var r=t.trim();r.startsWith("<<")&&r.endsWith(">>")?i.annotations.push(r.substring(2,r.length-2)):r.indexOf(")")>0?i.methods.push(r):r&&i.members.push(r)}},k=function(e,t){Array.isArray(t)&&(t.reverse(),t.forEach((function(t){return S(e,t)})))},x=function(e){return":"===e.substring(0,1)?e.substr(1).trim():e.trim()},L=function(e,t){e.split(",").forEach((function(e){var n=e;e[0].match(/\d/)&&(n="classid-"+n),void 0!==d[n]&&d[n].cssClasses.push(t)}))},M=function(e,t,n){var i=o.getConfig();e.split(",").forEach((function(e){var r=e;e[0].match(/\d/)&&(r="classid-"+r),void 0!==d[r]&&(d[r].link=a.default.formatUrl(t,i),n&&(d[r].tooltip=s.default.sanitizeText(n,i)))})),L(e,"clickable")},D=function(e,t,n){e.split(",").forEach((function(e){E(e,t,n),d[e].haveCallback=!0})),L(e,"clickable")},E=function(e,t,n){var i=o.getConfig(),r=e,l=m(r);"loose"===i.securityLevel&&void 0!==t&&void 0!==d[r]&&(n&&(d[r].tooltip=s.default.sanitizeText(n,i)),h.push((function(){var e=document.querySelector('[id="'.concat(l,'"]'));null!==e&&e.addEventListener("click",(function(){a.default.runFunc(t,l)}),!1)})))},T=function(e){h.forEach((function(t){t(e)}))},O={LINE:0,DOTTED_LINE:1},N={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},I=function(e){var t=Object(i.select)(".mermaidTooltip");null===(t._groups||t)[0][0]&&(t=Object(i.select)("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),Object(i.select)(e).select("svg").selectAll("g.node").on("mouseover",(function(){var e=Object(i.select)(this);if(null!==e.attr("title")){var n=this.getBoundingClientRect();t.transition().duration(200).style("opacity",".9"),t.html(e.attr("title")).style("left",window.scrollX+n.left+(n.right-n.left)/2+"px").style("top",window.scrollY+n.top-14+document.body.scrollTop+"px"),e.classed("hover",!0)}})).on("mouseout",(function(){t.transition().duration(500).style("opacity",0),Object(i.select)(this).classed("hover",!1)}))};h.push(I),t.default={parseDirective:f,getConfig:function(){return o.getConfig().class},addClass:p,bindFunctions:T,clear:_,getClass:b,getClasses:v,addAnnotation:C,getRelations:y,addRelation:w,addMember:S,addMembers:k,cleanupLabel:x,lineType:O,relationType:N,setClickEvent:D,setCssClass:L,setLink:M,lookUpDomId:m}},"./src/diagrams/class/classRenderer-v2.js": /*!************************************************!*\ !*** ./src/diagrams/class/classRenderer-v2.js ***! \************************************************/ -/*! exports provided: addClasses, addRelations, setConf, drawOld, draw, default */function(e,t,n){"use strict";n.r(t),n.d(t,"addClasses",(function(){return y})),n.d(t,"addRelations",(function(){return v})),n.d(t,"setConf",(function(){return w})),n.d(t,"drawOld",(function(){return C})),n.d(t,"draw",(function(){return S}));var r=n(/*! d3 */"d3"),i=n(/*! dagre */"dagre"),o=n.n(i),s=n(/*! graphlib */"graphlib"),a=n.n(s),u=n(/*! ../../logger */"./src/logger.js"),l=n(/*! ./classDb */"./src/diagrams/class/classDb.js"),c=n(/*! ./parser/classDiagram */"./src/diagrams/class/parser/classDiagram.jison"),d=n(/*! ./svgDraw */"./src/diagrams/class/svgDraw.js"),h=n(/*! ../../config */"./src/config.js"),f=n(/*! ../../dagre-wrapper/index.js */"./src/dagre-wrapper/index.js"),p=n(/*! ../../utils */"./src/utils.js"),g=n(/*! ../common/common */"./src/diagrams/common/common.js");c.parser.yy=l.default;var m={},_={dividerMargin:10,padding:5,textHeight:10},y=function(e,t){var n=Object.keys(e);u.logger.info("keys:",n),u.logger.info(e),n.forEach((function(n){var r=e[n],i="";r.cssClasses.length>0&&(i=i+" "+r.cssClasses.join(" "));var o={labelStyle:""},s=void 0!==r.text?r.text:r.id,a="";switch(r.type){case"class":a="class_box";break;default:a="class_box"}t.setNode(r.id,{labelStyle:o.labelStyle,shape:a,labelText:s,classData:r,rx:0,ry:0,class:i,style:o.style,id:r.id,domId:r.domId,haveCallback:r.haveCallback,link:r.link,width:"group"===r.type?500:void 0,type:r.type,padding:Object(h.getConfig)().flowchart.padding}),u.logger.info("setNode",{labelStyle:o.labelStyle,shape:a,labelText:s,rx:0,ry:0,class:i,style:o.style,id:r.id,width:"group"===r.type?500:void 0,type:r.type,padding:Object(h.getConfig)().flowchart.padding})}))},v=function(e,t){var n=0;e.forEach((function(i){n++;var o={classes:"relation"};o.pattern=1==i.relation.lineType?"dashed":"solid",o.id="id"+n,"arrow_open"===i.type?o.arrowhead="none":o.arrowhead="normal",u.logger.info(o,i),o.startLabelRight="none"===i.relationTitle1?"":i.relationTitle1,o.endLabelLeft="none"===i.relationTitle2?"":i.relationTitle2,o.arrowTypeStart=x(i.relation.type1),o.arrowTypeEnd=x(i.relation.type2);var s="",a="";if(void 0!==i.style){var l=Object(p.getStylesFromArray)(i.style);s=l.style,a=l.labelStyle}else s="fill:none";o.style=s,o.labelStyle=a,void 0!==i.interpolate?o.curve=Object(p.interpolateToCurve)(i.interpolate,r.curveLinear):void 0!==e.defaultInterpolate?o.curve=Object(p.interpolateToCurve)(e.defaultInterpolate,r.curveLinear):o.curve=Object(p.interpolateToCurve)(_.curve,r.curveLinear),i.text=i.title,void 0===i.text?void 0!==i.style&&(o.arrowheadStyle="fill: #333"):(o.arrowheadStyle="fill: #333",o.labelpos="c",Object(h.getConfig)().flowchart.htmlLabels,o.labelType="text",o.label=i.text.replace(g.default.lineBreakRegex,"\n"),void 0===i.style&&(o.style=o.style||"stroke: #333; stroke-width: 1.5px;fill:none"),o.labelStyle=o.labelStyle.replace("color:","fill:")),t.setEdge(i.id1,i.id2,o,n)}))},b=function(e){for(var t=Object.keys(m),n=0;n<t.length;n++)if(m[t[n]].label===e)return t[n]},w=function(e){Object.keys(e).forEach((function(t){_[t]=e[t]}))},C=function(e,t){m={},c.parser.yy.clear(),c.parser.parse(e),u.logger.info("Rendering diagram "+e);var n=Object(r.select)("[id='".concat(t,"']")),i=new a.a.Graph({multigraph:!0});i.setGraph({isMultiGraph:!0}),i.setDefaultEdgeLabel((function(){return{}}));var s=l.default.getClasses();u.logger.info("classes:"),u.logger.info(s);for(var h=Object.keys(s),f=0;f<h.length;f++){var g=s[h[f]],y=d.default.drawClass(n,g,_);m[y.id]=y,i.setNode(y.id,y),u.logger.info("Org height: "+y.height)}var v=l.default.getRelations();u.logger.info("relations:",v),v.forEach((function(e){u.logger.info("tjoho"+b(e.id1)+b(e.id2)+JSON.stringify(e)),i.setEdge(b(e.id1),b(e.id2),{relation:e},e.title||"DEFAULT")})),o.a.layout(i),i.nodes().forEach((function(e){void 0!==e&&void 0!==i.node(e)&&(u.logger.debug("Node "+e+": "+JSON.stringify(i.node(e))),Object(r.select)("#"+Object(l.lookUpDomId)(e)).attr("transform","translate("+(i.node(e).x-i.node(e).width/2)+","+(i.node(e).y-i.node(e).height/2)+" )"))})),i.edges().forEach((function(e){void 0!==e&&void 0!==i.edge(e)&&(u.logger.debug("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(i.edge(e))),d.default.drawEdge(n,i.edge(e),i.edge(e).relation,_))}));var w=n.node().getBBox(),C=w.width+40,S=w.height+40;Object(p.configureSvgSize)(n,S,C,_.useMaxWidth);var x="".concat(w.x-20," ").concat(w.y-20," ").concat(C," ").concat(S);u.logger.debug("viewBox ".concat(x)),n.attr("viewBox",x)},S=function(e,t){u.logger.info("Drawing class"),l.default.clear(),c.parser.parse(e);var n=Object(h.getConfig)().flowchart;u.logger.info("config:",n);var i=n.nodeSpacing||50,o=n.rankSpacing||50,s=new a.a.Graph({multigraph:!0,compound:!0}).setGraph({rankdir:"TD",nodesep:i,ranksep:o,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}})),d=l.default.getClasses(),g=l.default.getRelations();u.logger.info(g),y(d,s,t),v(g,s);var m=Object(r.select)('[id="'.concat(t,'"]'));m.attr("xmlns:xlink","http://www.w3.org/1999/xlink");var _=Object(r.select)("#"+t+" g");Object(f.render)(_,s,["aggregation","extension","composition","dependency"],"classDiagram",t);var b=m.node().getBBox(),w=b.width+16,C=b.height+16;if(u.logger.debug("new ViewBox 0 0 ".concat(w," ").concat(C),"translate(".concat(8-s._label.marginx,", ").concat(8-s._label.marginy,")")),Object(p.configureSvgSize)(m,C,w,n.useMaxWidth),m.attr("viewBox","0 0 ".concat(w," ").concat(C)),m.select("g").attr("transform","translate(".concat(8-s._label.marginx,", ").concat(8-b.y,")")),!n.htmlLabels)for(var S=document.querySelectorAll('[id="'+t+'"] .edgeLabel .label'),x=0;x<S.length;x++){var L=S[x],k=L.getBBox(),M=document.createElementNS("http://www.w3.org/2000/svg","rect");M.setAttribute("rx",0),M.setAttribute("ry",0),M.setAttribute("width",k.width),M.setAttribute("height",k.height),M.setAttribute("style","fill:#e8e8e8;"),L.insertBefore(M,L.firstChild)}};function x(e){var t;switch(e){case 0:t="aggregation";break;case 1:t="extension";break;case 2:t="composition";break;case 3:t="dependency";break;default:t="none"}return t}t.default={setConf:w,draw:S}},"./src/diagrams/class/classRenderer.js": +/*! exports provided: addClasses, addRelations, setConf, drawOld, draw, default */function(e,t,n){"use strict";n.r(t),n.d(t,"addClasses",(function(){return b})),n.d(t,"addRelations",(function(){return v})),n.d(t,"setConf",(function(){return w})),n.d(t,"drawOld",(function(){return C})),n.d(t,"draw",(function(){return S}));var i=n(/*! d3 */"d3"),r=n(/*! dagre */"dagre"),o=n.n(r),s=n(/*! graphlib */"graphlib"),a=n.n(s),l=n(/*! ../../logger */"./src/logger.js"),c=n(/*! ./classDb */"./src/diagrams/class/classDb.js"),d=n(/*! ./parser/classDiagram */"./src/diagrams/class/parser/classDiagram.jison"),u=n(/*! ./svgDraw */"./src/diagrams/class/svgDraw.js"),h=n(/*! ../../config */"./src/config.js"),f=n(/*! ../../dagre-wrapper/index.js */"./src/dagre-wrapper/index.js"),g=n(/*! ../../utils */"./src/utils.js"),p=n(/*! ../common/common */"./src/diagrams/common/common.js");d.parser.yy=c.default;var m={},_={dividerMargin:10,padding:5,textHeight:10},b=function(e,t){var n=Object.keys(e);l.logger.info("keys:",n),l.logger.info(e),n.forEach((function(n){var i=e[n],r="";i.cssClasses.length>0&&(r=r+" "+i.cssClasses.join(" "));var o={labelStyle:""},s=void 0!==i.text?i.text:i.id,a="";switch(i.type){case"class":a="class_box";break;default:a="class_box"}t.setNode(i.id,{labelStyle:o.labelStyle,shape:a,labelText:s,classData:i,rx:0,ry:0,class:r,style:o.style,id:i.id,domId:i.domId,haveCallback:i.haveCallback,link:i.link,width:"group"===i.type?500:void 0,type:i.type,padding:Object(h.getConfig)().flowchart.padding}),l.logger.info("setNode",{labelStyle:o.labelStyle,shape:a,labelText:s,rx:0,ry:0,class:r,style:o.style,id:i.id,width:"group"===i.type?500:void 0,type:i.type,padding:Object(h.getConfig)().flowchart.padding})}))},v=function(e,t){var n=0;e.forEach((function(r){n++;var o={classes:"relation"};o.pattern=1==r.relation.lineType?"dashed":"solid",o.id="id"+n,"arrow_open"===r.type?o.arrowhead="none":o.arrowhead="normal",l.logger.info(o,r),o.startLabelRight="none"===r.relationTitle1?"":r.relationTitle1,o.endLabelLeft="none"===r.relationTitle2?"":r.relationTitle2,o.arrowTypeStart=k(r.relation.type1),o.arrowTypeEnd=k(r.relation.type2);var s="",a="";if(void 0!==r.style){var c=Object(g.getStylesFromArray)(r.style);s=c.style,a=c.labelStyle}else s="fill:none";o.style=s,o.labelStyle=a,void 0!==r.interpolate?o.curve=Object(g.interpolateToCurve)(r.interpolate,i.curveLinear):void 0!==e.defaultInterpolate?o.curve=Object(g.interpolateToCurve)(e.defaultInterpolate,i.curveLinear):o.curve=Object(g.interpolateToCurve)(_.curve,i.curveLinear),r.text=r.title,void 0===r.text?void 0!==r.style&&(o.arrowheadStyle="fill: #333"):(o.arrowheadStyle="fill: #333",o.labelpos="c",Object(h.getConfig)().flowchart.htmlLabels,o.labelType="text",o.label=r.text.replace(p.default.lineBreakRegex,"\n"),void 0===r.style&&(o.style=o.style||"stroke: #333; stroke-width: 1.5px;fill:none"),o.labelStyle=o.labelStyle.replace("color:","fill:")),t.setEdge(r.id1,r.id2,o,n)}))},y=function(e){for(var t=Object.keys(m),n=0;n<t.length;n++)if(m[t[n]].label===e)return t[n]},w=function(e){Object.keys(e).forEach((function(t){_[t]=e[t]}))},C=function(e,t){m={},d.parser.yy.clear(),d.parser.parse(e),l.logger.info("Rendering diagram "+e);var n=Object(i.select)("[id='".concat(t,"']")),r=new a.a.Graph({multigraph:!0});r.setGraph({isMultiGraph:!0}),r.setDefaultEdgeLabel((function(){return{}}));var s=c.default.getClasses();l.logger.info("classes:"),l.logger.info(s);for(var h=Object.keys(s),f=0;f<h.length;f++){var p=s[h[f]],b=u.default.drawClass(n,p,_);m[b.id]=b,r.setNode(b.id,b),l.logger.info("Org height: "+b.height)}var v=c.default.getRelations();l.logger.info("relations:",v),v.forEach((function(e){l.logger.info("tjoho"+y(e.id1)+y(e.id2)+JSON.stringify(e)),r.setEdge(y(e.id1),y(e.id2),{relation:e},e.title||"DEFAULT")})),o.a.layout(r),r.nodes().forEach((function(e){void 0!==e&&void 0!==r.node(e)&&(l.logger.debug("Node "+e+": "+JSON.stringify(r.node(e))),Object(i.select)("#"+Object(c.lookUpDomId)(e)).attr("transform","translate("+(r.node(e).x-r.node(e).width/2)+","+(r.node(e).y-r.node(e).height/2)+" )"))})),r.edges().forEach((function(e){void 0!==e&&void 0!==r.edge(e)&&(l.logger.debug("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(r.edge(e))),u.default.drawEdge(n,r.edge(e),r.edge(e).relation,_))}));var w=n.node().getBBox(),C=w.width+40,S=w.height+40;Object(g.configureSvgSize)(n,S,C,_.useMaxWidth);var k="".concat(w.x-20," ").concat(w.y-20," ").concat(C," ").concat(S);l.logger.debug("viewBox ".concat(k)),n.attr("viewBox",k)},S=function(e,t){l.logger.info("Drawing class"),c.default.clear(),d.parser.parse(e);var n=Object(h.getConfig)().flowchart;l.logger.info("config:",n);var r=n.nodeSpacing||50,o=n.rankSpacing||50,s=new a.a.Graph({multigraph:!0,compound:!0}).setGraph({rankdir:"TD",nodesep:r,ranksep:o,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}})),u=c.default.getClasses(),p=c.default.getRelations();l.logger.info(p),b(u,s,t),v(p,s);var m=Object(i.select)('[id="'.concat(t,'"]'));m.attr("xmlns:xlink","http://www.w3.org/1999/xlink");var _=Object(i.select)("#"+t+" g");Object(f.render)(_,s,["aggregation","extension","composition","dependency"],"classDiagram",t);var y=m.node().getBBox(),w=y.width+16,C=y.height+16;if(l.logger.debug("new ViewBox 0 0 ".concat(w," ").concat(C),"translate(".concat(8-s._label.marginx,", ").concat(8-s._label.marginy,")")),Object(g.configureSvgSize)(m,C,w,n.useMaxWidth),m.attr("viewBox","0 0 ".concat(w," ").concat(C)),m.select("g").attr("transform","translate(".concat(8-s._label.marginx,", ").concat(8-y.y,")")),!n.htmlLabels)for(var S=document.querySelectorAll('[id="'+t+'"] .edgeLabel .label'),k=0;k<S.length;k++){var x=S[k],L=x.getBBox(),M=document.createElementNS("http://www.w3.org/2000/svg","rect");M.setAttribute("rx",0),M.setAttribute("ry",0),M.setAttribute("width",L.width),M.setAttribute("height",L.height),M.setAttribute("style","fill:#e8e8e8;"),x.insertBefore(M,x.firstChild)}};function k(e){var t;switch(e){case 0:t="aggregation";break;case 1:t="extension";break;case 2:t="composition";break;case 3:t="dependency";break;default:t="none"}return t}t.default={setConf:w,draw:S}},"./src/diagrams/class/classRenderer.js": /*!*********************************************!*\ !*** ./src/diagrams/class/classRenderer.js ***! \*********************************************/ -/*! exports provided: setConf, draw, default */function(e,t,n){"use strict";n.r(t),n.d(t,"setConf",(function(){return m})),n.d(t,"draw",(function(){return _}));var r=n(/*! d3 */"d3"),i=n(/*! dagre */"dagre"),o=n.n(i),s=n(/*! graphlib */"graphlib"),a=n.n(s),u=n(/*! ../../logger */"./src/logger.js"),l=n(/*! ./classDb */"./src/diagrams/class/classDb.js"),c=n(/*! ./parser/classDiagram */"./src/diagrams/class/parser/classDiagram.jison"),d=n(/*! ./svgDraw */"./src/diagrams/class/svgDraw.js"),h=n(/*! ../../utils */"./src/utils.js");c.parser.yy=l.default;var f={},p={dividerMargin:10,padding:5,textHeight:10},g=function(e){for(var t=Object.keys(f),n=0;n<t.length;n++)if(f[t[n]].label===e)return t[n]},m=function(e){Object.keys(e).forEach((function(t){p[t]=e[t]}))},_=function(e,t){f={},c.parser.yy.clear(),c.parser.parse(e),u.logger.info("Rendering diagram "+e);var n,i=Object(r.select)("[id='".concat(t,"']"));i.attr("xmlns:xlink","http://www.w3.org/1999/xlink"),(n=i).append("defs").append("marker").attr("id","extensionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),n.append("defs").append("marker").attr("id","extensionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),n.append("defs").append("marker").attr("id","compositionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),n.append("defs").append("marker").attr("id","compositionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),n.append("defs").append("marker").attr("id","aggregationStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),n.append("defs").append("marker").attr("id","aggregationEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),n.append("defs").append("marker").attr("id","dependencyStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),n.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z");var s=new a.a.Graph({multigraph:!0});s.setGraph({isMultiGraph:!0}),s.setDefaultEdgeLabel((function(){return{}}));for(var m=l.default.getClasses(),_=Object.keys(m),y=0;y<_.length;y++){var v=m[_[y]],b=d.default.drawClass(i,v,p);f[b.id]=b,s.setNode(b.id,b),u.logger.info("Org height: "+b.height)}l.default.getRelations().forEach((function(e){u.logger.info("tjoho"+g(e.id1)+g(e.id2)+JSON.stringify(e)),s.setEdge(g(e.id1),g(e.id2),{relation:e},e.title||"DEFAULT")})),o.a.layout(s),s.nodes().forEach((function(e){void 0!==e&&void 0!==s.node(e)&&(u.logger.debug("Node "+e+": "+JSON.stringify(s.node(e))),Object(r.select)("#"+Object(l.lookUpDomId)(e)).attr("transform","translate("+(s.node(e).x-s.node(e).width/2)+","+(s.node(e).y-s.node(e).height/2)+" )"))})),s.edges().forEach((function(e){void 0!==e&&void 0!==s.edge(e)&&(u.logger.debug("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(s.edge(e))),d.default.drawEdge(i,s.edge(e),s.edge(e).relation,p))}));var w=i.node().getBBox(),C=w.width+40,S=w.height+40;Object(h.configureSvgSize)(i,S,C,p.useMaxWidth);var x="".concat(w.x-20," ").concat(w.y-20," ").concat(C," ").concat(S);u.logger.debug("viewBox ".concat(x)),i.attr("viewBox",x)};t.default={setConf:m,draw:_}},"./src/diagrams/class/parser/classDiagram.jison": +/*! exports provided: setConf, draw, default */function(e,t,n){"use strict";n.r(t),n.d(t,"setConf",(function(){return m})),n.d(t,"draw",(function(){return _}));var i=n(/*! d3 */"d3"),r=n(/*! dagre */"dagre"),o=n.n(r),s=n(/*! graphlib */"graphlib"),a=n.n(s),l=n(/*! ../../logger */"./src/logger.js"),c=n(/*! ./classDb */"./src/diagrams/class/classDb.js"),d=n(/*! ./parser/classDiagram */"./src/diagrams/class/parser/classDiagram.jison"),u=n(/*! ./svgDraw */"./src/diagrams/class/svgDraw.js"),h=n(/*! ../../utils */"./src/utils.js");d.parser.yy=c.default;var f={},g={dividerMargin:10,padding:5,textHeight:10},p=function(e){for(var t=Object.keys(f),n=0;n<t.length;n++)if(f[t[n]].label===e)return t[n]},m=function(e){Object.keys(e).forEach((function(t){g[t]=e[t]}))},_=function(e,t){f={},d.parser.yy.clear(),d.parser.parse(e),l.logger.info("Rendering diagram "+e);var n,r=Object(i.select)("[id='".concat(t,"']"));r.attr("xmlns:xlink","http://www.w3.org/1999/xlink"),(n=r).append("defs").append("marker").attr("id","extensionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),n.append("defs").append("marker").attr("id","extensionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),n.append("defs").append("marker").attr("id","compositionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),n.append("defs").append("marker").attr("id","compositionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),n.append("defs").append("marker").attr("id","aggregationStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),n.append("defs").append("marker").attr("id","aggregationEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),n.append("defs").append("marker").attr("id","dependencyStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),n.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z");var s=new a.a.Graph({multigraph:!0});s.setGraph({isMultiGraph:!0}),s.setDefaultEdgeLabel((function(){return{}}));for(var m=c.default.getClasses(),_=Object.keys(m),b=0;b<_.length;b++){var v=m[_[b]],y=u.default.drawClass(r,v,g);f[y.id]=y,s.setNode(y.id,y),l.logger.info("Org height: "+y.height)}c.default.getRelations().forEach((function(e){l.logger.info("tjoho"+p(e.id1)+p(e.id2)+JSON.stringify(e)),s.setEdge(p(e.id1),p(e.id2),{relation:e},e.title||"DEFAULT")})),o.a.layout(s),s.nodes().forEach((function(e){void 0!==e&&void 0!==s.node(e)&&(l.logger.debug("Node "+e+": "+JSON.stringify(s.node(e))),Object(i.select)("#"+Object(c.lookUpDomId)(e)).attr("transform","translate("+(s.node(e).x-s.node(e).width/2)+","+(s.node(e).y-s.node(e).height/2)+" )"))})),s.edges().forEach((function(e){void 0!==e&&void 0!==s.edge(e)&&(l.logger.debug("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(s.edge(e))),u.default.drawEdge(r,s.edge(e),s.edge(e).relation,g))}));var w=r.node().getBBox(),C=w.width+40,S=w.height+40;Object(h.configureSvgSize)(r,S,C,g.useMaxWidth);var k="".concat(w.x-20," ").concat(w.y-20," ").concat(C," ").concat(S);l.logger.debug("viewBox ".concat(k)),r.attr("viewBox",k)};t.default={setConf:m,draw:_}},"./src/diagrams/class/parser/classDiagram.jison": /*!******************************************************!*\ !*** ./src/diagrams/class/parser/classDiagram.jison ***! \******************************************************/ -/*! no static exports found */function(e,t,n){(function(e,r){var i=function(){var e=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},t=[1,7],n=[1,6],r=[1,14],i=[1,25],o=[1,28],s=[1,26],a=[1,27],u=[1,29],l=[1,30],c=[1,31],d=[1,33],h=[1,34],f=[1,35],p=[10,19],g=[1,47],m=[1,48],_=[1,49],y=[1,50],v=[1,51],b=[1,52],w=[10,19,25,32,33,41,44,45,46,47,48,49],C=[10,19,23,25,32,33,37,41,44,45,46,47,48,49,66,67,68],S=[10,13,17,19],x=[41,66,67,68],L=[41,48,49,66,67,68],k=[41,44,45,46,47,66,67,68],M=[10,19,25],D=[1,81],E={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,directive:5,graphConfig:6,openDirective:7,typeDirective:8,closeDirective:9,NEWLINE:10,":":11,argDirective:12,open_directive:13,type_directive:14,arg_directive:15,close_directive:16,CLASS_DIAGRAM:17,statements:18,EOF:19,statement:20,className:21,alphaNumToken:22,GENERICTYPE:23,relationStatement:24,LABEL:25,classStatement:26,methodStatement:27,annotationStatement:28,clickStatement:29,cssClassStatement:30,CLASS:31,STYLE_SEPARATOR:32,STRUCT_START:33,members:34,STRUCT_STOP:35,ANNOTATION_START:36,ANNOTATION_END:37,MEMBER:38,SEPARATOR:39,relation:40,STR:41,relationType:42,lineType:43,AGGREGATION:44,EXTENSION:45,COMPOSITION:46,DEPENDENCY:47,LINE:48,DOTTED_LINE:49,CALLBACK:50,LINK:51,CSSCLASS:52,commentToken:53,textToken:54,graphCodeTokens:55,textNoTagsToken:56,TAGSTART:57,TAGEND:58,"==":59,"--":60,PCT:61,DEFAULT:62,SPACE:63,MINUS:64,keywords:65,UNICODE_TEXT:66,NUM:67,ALPHA:68,$accept:0,$end:1},terminals_:{2:"error",10:"NEWLINE",11:":",13:"open_directive",14:"type_directive",15:"arg_directive",16:"close_directive",17:"CLASS_DIAGRAM",19:"EOF",23:"GENERICTYPE",25:"LABEL",31:"CLASS",32:"STYLE_SEPARATOR",33:"STRUCT_START",35:"STRUCT_STOP",36:"ANNOTATION_START",37:"ANNOTATION_END",38:"MEMBER",39:"SEPARATOR",41:"STR",44:"AGGREGATION",45:"EXTENSION",46:"COMPOSITION",47:"DEPENDENCY",48:"LINE",49:"DOTTED_LINE",50:"CALLBACK",51:"LINK",52:"CSSCLASS",55:"graphCodeTokens",57:"TAGSTART",58:"TAGEND",59:"==",60:"--",61:"PCT",62:"DEFAULT",63:"SPACE",64:"MINUS",65:"keywords",66:"UNICODE_TEXT",67:"NUM",68:"ALPHA"},productions_:[0,[3,1],[3,2],[4,1],[5,4],[5,6],[7,1],[8,1],[12,1],[9,1],[6,4],[18,1],[18,2],[18,3],[21,1],[21,2],[21,3],[21,2],[20,1],[20,2],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[26,2],[26,4],[26,5],[26,7],[28,4],[34,1],[34,2],[27,1],[27,2],[27,1],[27,1],[24,3],[24,4],[24,4],[24,5],[40,3],[40,2],[40,2],[40,1],[42,1],[42,1],[42,1],[42,1],[43,1],[43,1],[29,3],[29,4],[29,3],[29,4],[30,3],[53,1],[53,1],[54,1],[54,1],[54,1],[54,1],[54,1],[54,1],[54,1],[56,1],[56,1],[56,1],[56,1],[22,1],[22,1],[22,1]],performAction:function(e,t,n,r,i,o,s){var a=o.length-1;switch(i){case 6:r.parseDirective("%%{","open_directive");break;case 7:r.parseDirective(o[a],"type_directive");break;case 8:o[a]=o[a].trim().replace(/'/g,'"'),r.parseDirective(o[a],"arg_directive");break;case 9:r.parseDirective("}%%","close_directive","class");break;case 14:this.$=o[a];break;case 15:this.$=o[a-1]+o[a];break;case 16:this.$=o[a-2]+"~"+o[a-1]+o[a];break;case 17:this.$=o[a-1]+"~"+o[a];break;case 18:r.addRelation(o[a]);break;case 19:o[a-1].title=r.cleanupLabel(o[a]),r.addRelation(o[a-1]);break;case 26:r.addClass(o[a]);break;case 27:r.addClass(o[a-2]),r.setCssClass(o[a-2],o[a]);break;case 28:r.addClass(o[a-3]),r.addMembers(o[a-3],o[a-1]);break;case 29:r.addClass(o[a-5]),r.setCssClass(o[a-5],o[a-3]),r.addMembers(o[a-5],o[a-1]);break;case 30:r.addAnnotation(o[a],o[a-2]);break;case 31:this.$=[o[a]];break;case 32:o[a].push(o[a-1]),this.$=o[a];break;case 33:break;case 34:r.addMember(o[a-1],r.cleanupLabel(o[a]));break;case 35:case 36:break;case 37:this.$={id1:o[a-2],id2:o[a],relation:o[a-1],relationTitle1:"none",relationTitle2:"none"};break;case 38:this.$={id1:o[a-3],id2:o[a],relation:o[a-1],relationTitle1:o[a-2],relationTitle2:"none"};break;case 39:this.$={id1:o[a-3],id2:o[a],relation:o[a-2],relationTitle1:"none",relationTitle2:o[a-1]};break;case 40:this.$={id1:o[a-4],id2:o[a],relation:o[a-2],relationTitle1:o[a-3],relationTitle2:o[a-1]};break;case 41:this.$={type1:o[a-2],type2:o[a],lineType:o[a-1]};break;case 42:this.$={type1:"none",type2:o[a],lineType:o[a-1]};break;case 43:this.$={type1:o[a-1],type2:"none",lineType:o[a]};break;case 44:this.$={type1:"none",type2:"none",lineType:o[a]};break;case 45:this.$=r.relationType.AGGREGATION;break;case 46:this.$=r.relationType.EXTENSION;break;case 47:this.$=r.relationType.COMPOSITION;break;case 48:this.$=r.relationType.DEPENDENCY;break;case 49:this.$=r.lineType.LINE;break;case 50:this.$=r.lineType.DOTTED_LINE;break;case 51:this.$=o[a-2],r.setClickEvent(o[a-1],o[a],void 0);break;case 52:this.$=o[a-3],r.setClickEvent(o[a-2],o[a-1],o[a]);break;case 53:this.$=o[a-2],r.setLink(o[a-1],o[a],void 0);break;case 54:this.$=o[a-3],r.setLink(o[a-2],o[a-1],o[a]);break;case 55:r.setCssClass(o[a-1],o[a])}},table:[{3:1,4:2,5:3,6:4,7:5,13:t,17:n},{1:[3]},{1:[2,1]},{3:8,4:2,5:3,6:4,7:5,13:t,17:n},{1:[2,3]},{8:9,14:[1,10]},{10:[1,11]},{14:[2,6]},{1:[2,2]},{9:12,11:[1,13],16:r},e([11,16],[2,7]),{5:23,7:5,13:t,18:15,20:16,21:24,22:32,24:17,26:18,27:19,28:20,29:21,30:22,31:i,36:o,38:s,39:a,50:u,51:l,52:c,66:d,67:h,68:f},{10:[1,36]},{12:37,15:[1,38]},{10:[2,9]},{19:[1,39]},{10:[1,40],19:[2,11]},e(p,[2,18],{25:[1,41]}),e(p,[2,20]),e(p,[2,21]),e(p,[2,22]),e(p,[2,23]),e(p,[2,24]),e(p,[2,25]),e(p,[2,33],{40:42,42:45,43:46,25:[1,44],41:[1,43],44:g,45:m,46:_,47:y,48:v,49:b}),{21:53,22:32,66:d,67:h,68:f},e(p,[2,35]),e(p,[2,36]),{22:54,66:d,67:h,68:f},{21:55,22:32,66:d,67:h,68:f},{21:56,22:32,66:d,67:h,68:f},{41:[1,57]},e(w,[2,14],{22:32,21:58,23:[1,59],66:d,67:h,68:f}),e(C,[2,69]),e(C,[2,70]),e(C,[2,71]),e(S,[2,4]),{9:60,16:r},{16:[2,8]},{1:[2,10]},{5:23,7:5,13:t,18:61,19:[2,12],20:16,21:24,22:32,24:17,26:18,27:19,28:20,29:21,30:22,31:i,36:o,38:s,39:a,50:u,51:l,52:c,66:d,67:h,68:f},e(p,[2,19]),{21:62,22:32,41:[1,63],66:d,67:h,68:f},{40:64,42:45,43:46,44:g,45:m,46:_,47:y,48:v,49:b},e(p,[2,34]),{43:65,48:v,49:b},e(x,[2,44],{42:66,44:g,45:m,46:_,47:y}),e(L,[2,45]),e(L,[2,46]),e(L,[2,47]),e(L,[2,48]),e(k,[2,49]),e(k,[2,50]),e(p,[2,26],{32:[1,67],33:[1,68]}),{37:[1,69]},{41:[1,70]},{41:[1,71]},{22:72,66:d,67:h,68:f},e(w,[2,15]),e(w,[2,17],{22:32,21:73,66:d,67:h,68:f}),{10:[1,74]},{19:[2,13]},e(M,[2,37]),{21:75,22:32,66:d,67:h,68:f},{21:76,22:32,41:[1,77],66:d,67:h,68:f},e(x,[2,43],{42:78,44:g,45:m,46:_,47:y}),e(x,[2,42]),{22:79,66:d,67:h,68:f},{34:80,38:D},{21:82,22:32,66:d,67:h,68:f},e(p,[2,51],{41:[1,83]}),e(p,[2,53],{41:[1,84]}),e(p,[2,55]),e(w,[2,16]),e(S,[2,5]),e(M,[2,39]),e(M,[2,38]),{21:85,22:32,66:d,67:h,68:f},e(x,[2,41]),e(p,[2,27],{33:[1,86]}),{35:[1,87]},{34:88,35:[2,31],38:D},e(p,[2,30]),e(p,[2,52]),e(p,[2,54]),e(M,[2,40]),{34:89,38:D},e(p,[2,28]),{35:[2,32]},{35:[1,90]},e(p,[2,29])],defaultActions:{2:[2,1],4:[2,3],7:[2,6],8:[2,2],14:[2,9],38:[2,8],39:[2,10],61:[2,13],88:[2,32]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],r=[],i=[null],o=[],s=this.table,a="",u=0,l=0,c=0,d=2,h=1,f=o.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var m in this.yy)Object.prototype.hasOwnProperty.call(this.yy,m)&&(g.yy[m]=this.yy[m]);p.setInput(e,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var _=p.yylloc;o.push(_);var y=p.options&&p.options.ranges;function v(){var e;return"number"!=typeof(e=r.pop()||p.lex()||h)&&(e instanceof Array&&(e=(r=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,w,C,S,x,L,k,M,D,E={};;){if(C=n[n.length-1],this.defaultActions[C]?S=this.defaultActions[C]:(null==b&&(b=v()),S=s[C]&&s[C][b]),void 0===S||!S.length||!S[0]){var T="";for(L in D=[],s[C])this.terminals_[L]&&L>d&&D.push("'"+this.terminals_[L]+"'");T=p.showPosition?"Parse error on line "+(u+1)+":\n"+p.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(u+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(T,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:_,expected:D})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+b);switch(S[0]){case 1:n.push(b),i.push(p.yytext),o.push(p.yylloc),n.push(S[1]),b=null,w?(b=w,w=null):(l=p.yyleng,a=p.yytext,u=p.yylineno,_=p.yylloc,c>0&&c--);break;case 2:if(k=this.productions_[S[1]][1],E.$=i[i.length-k],E._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(E._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),void 0!==(x=this.performAction.apply(E,[a,l,u,g.yy,S[1],i,o].concat(f))))return x;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),o=o.slice(0,-1*k)),n.push(this.productions_[S[1]][0]),i.push(E.$),o.push(E._$),M=s[n[n.length-2]][n[n.length-1]],n.push(M);break;case 3:return!0}}return!0}},T={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;o<i.length;o++)if((n=this._input.match(this.rules[i[o]]))&&(!t||n[0].length>t[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(e,t,n,r){switch(n){case 0:return this.begin("open_directive"),13;case 1:return this.begin("type_directive"),14;case 2:return this.popState(),this.begin("arg_directive"),11;case 3:return this.popState(),this.popState(),16;case 4:return 15;case 5:case 6:break;case 7:return 10;case 8:break;case 9:case 10:return 17;case 11:return this.begin("struct"),33;case 12:return"EOF_IN_STRUCT";case 13:return"OPEN_IN_STRUCT";case 14:return this.popState(),35;case 15:break;case 16:return"MEMBER";case 17:return 31;case 18:return 52;case 19:return 50;case 20:return 51;case 21:return 36;case 22:return 37;case 23:this.begin("generic");break;case 24:this.popState();break;case 25:return"GENERICTYPE";case 26:this.begin("string");break;case 27:this.popState();break;case 28:return"STR";case 29:case 30:return 45;case 31:case 32:return 47;case 33:return 46;case 34:return 44;case 35:return 48;case 36:return 49;case 37:return 25;case 38:return 32;case 39:return 64;case 40:return"DOT";case 41:return"PLUS";case 42:return 61;case 43:case 44:return"EQUALS";case 45:return 68;case 46:return"PUNCTUATION";case 47:return 67;case 48:return 66;case 49:return 63;case 50:return 19}},rules:[/^(?:%%\{)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:[{])/,/^(?:$)/,/^(?:[{])/,/^(?:[}])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:class\b)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:[~])/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:$)/],conditions:{string:{rules:[27,28],inclusive:!1},generic:{rules:[24,25],inclusive:!1},struct:{rules:[12,13,14,15,16],inclusive:!1},open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,17,18,19,20,21,22,23,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],inclusive:!0}}};function N(){this.yy={}}return E.lexer=T,N.prototype=E,E.Parser=N,new N}();t.parser=i,t.Parser=i.Parser,t.parse=function(){return i.parse.apply(i,arguments)},t.main=function(r){r[1]||(console.log("Usage: "+r[0]+" FILE"),e.exit(1));var i=n(/*! fs */"./node_modules/node-libs-browser/mock/empty.js").readFileSync(n(/*! path */"./node_modules/path-browserify/index.js").normalize(r[1]),"utf8");return t.parser.parse(i)},n.c[n.s]===r&&t.main(e.argv.slice(1))}).call(this,n(/*! ./../../../../node_modules/process/browser.js */"./node_modules/process/browser.js"),n(/*! ./../../../../node_modules/webpack/buildin/module.js */"./node_modules/webpack/buildin/module.js")(e))},"./src/diagrams/class/styles.js": +/*! no static exports found */function(e,t,n){(function(e,i){var r=function(){var e=function(e,t,n,i){for(n=n||{},i=e.length;i--;n[e[i]]=t);return n},t=[1,7],n=[1,6],i=[1,14],r=[1,25],o=[1,28],s=[1,26],a=[1,27],l=[1,29],c=[1,30],d=[1,31],u=[1,33],h=[1,34],f=[1,35],g=[10,19],p=[1,47],m=[1,48],_=[1,49],b=[1,50],v=[1,51],y=[1,52],w=[10,19,25,32,33,41,44,45,46,47,48,49],C=[10,19,23,25,32,33,37,41,44,45,46,47,48,49,66,67,68],S=[10,13,17,19],k=[41,66,67,68],x=[41,48,49,66,67,68],L=[41,44,45,46,47,66,67,68],M=[10,19,25],D=[1,81],E={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,directive:5,graphConfig:6,openDirective:7,typeDirective:8,closeDirective:9,NEWLINE:10,":":11,argDirective:12,open_directive:13,type_directive:14,arg_directive:15,close_directive:16,CLASS_DIAGRAM:17,statements:18,EOF:19,statement:20,className:21,alphaNumToken:22,GENERICTYPE:23,relationStatement:24,LABEL:25,classStatement:26,methodStatement:27,annotationStatement:28,clickStatement:29,cssClassStatement:30,CLASS:31,STYLE_SEPARATOR:32,STRUCT_START:33,members:34,STRUCT_STOP:35,ANNOTATION_START:36,ANNOTATION_END:37,MEMBER:38,SEPARATOR:39,relation:40,STR:41,relationType:42,lineType:43,AGGREGATION:44,EXTENSION:45,COMPOSITION:46,DEPENDENCY:47,LINE:48,DOTTED_LINE:49,CALLBACK:50,LINK:51,CSSCLASS:52,commentToken:53,textToken:54,graphCodeTokens:55,textNoTagsToken:56,TAGSTART:57,TAGEND:58,"==":59,"--":60,PCT:61,DEFAULT:62,SPACE:63,MINUS:64,keywords:65,UNICODE_TEXT:66,NUM:67,ALPHA:68,$accept:0,$end:1},terminals_:{2:"error",10:"NEWLINE",11:":",13:"open_directive",14:"type_directive",15:"arg_directive",16:"close_directive",17:"CLASS_DIAGRAM",19:"EOF",23:"GENERICTYPE",25:"LABEL",31:"CLASS",32:"STYLE_SEPARATOR",33:"STRUCT_START",35:"STRUCT_STOP",36:"ANNOTATION_START",37:"ANNOTATION_END",38:"MEMBER",39:"SEPARATOR",41:"STR",44:"AGGREGATION",45:"EXTENSION",46:"COMPOSITION",47:"DEPENDENCY",48:"LINE",49:"DOTTED_LINE",50:"CALLBACK",51:"LINK",52:"CSSCLASS",55:"graphCodeTokens",57:"TAGSTART",58:"TAGEND",59:"==",60:"--",61:"PCT",62:"DEFAULT",63:"SPACE",64:"MINUS",65:"keywords",66:"UNICODE_TEXT",67:"NUM",68:"ALPHA"},productions_:[0,[3,1],[3,2],[4,1],[5,4],[5,6],[7,1],[8,1],[12,1],[9,1],[6,4],[18,1],[18,2],[18,3],[21,1],[21,2],[21,3],[21,2],[20,1],[20,2],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[26,2],[26,4],[26,5],[26,7],[28,4],[34,1],[34,2],[27,1],[27,2],[27,1],[27,1],[24,3],[24,4],[24,4],[24,5],[40,3],[40,2],[40,2],[40,1],[42,1],[42,1],[42,1],[42,1],[43,1],[43,1],[29,3],[29,4],[29,3],[29,4],[30,3],[53,1],[53,1],[54,1],[54,1],[54,1],[54,1],[54,1],[54,1],[54,1],[56,1],[56,1],[56,1],[56,1],[22,1],[22,1],[22,1]],performAction:function(e,t,n,i,r,o,s){var a=o.length-1;switch(r){case 6:i.parseDirective("%%{","open_directive");break;case 7:i.parseDirective(o[a],"type_directive");break;case 8:o[a]=o[a].trim().replace(/'/g,'"'),i.parseDirective(o[a],"arg_directive");break;case 9:i.parseDirective("}%%","close_directive","class");break;case 14:this.$=o[a];break;case 15:this.$=o[a-1]+o[a];break;case 16:this.$=o[a-2]+"~"+o[a-1]+o[a];break;case 17:this.$=o[a-1]+"~"+o[a];break;case 18:i.addRelation(o[a]);break;case 19:o[a-1].title=i.cleanupLabel(o[a]),i.addRelation(o[a-1]);break;case 26:i.addClass(o[a]);break;case 27:i.addClass(o[a-2]),i.setCssClass(o[a-2],o[a]);break;case 28:i.addClass(o[a-3]),i.addMembers(o[a-3],o[a-1]);break;case 29:i.addClass(o[a-5]),i.setCssClass(o[a-5],o[a-3]),i.addMembers(o[a-5],o[a-1]);break;case 30:i.addAnnotation(o[a],o[a-2]);break;case 31:this.$=[o[a]];break;case 32:o[a].push(o[a-1]),this.$=o[a];break;case 33:break;case 34:i.addMember(o[a-1],i.cleanupLabel(o[a]));break;case 35:case 36:break;case 37:this.$={id1:o[a-2],id2:o[a],relation:o[a-1],relationTitle1:"none",relationTitle2:"none"};break;case 38:this.$={id1:o[a-3],id2:o[a],relation:o[a-1],relationTitle1:o[a-2],relationTitle2:"none"};break;case 39:this.$={id1:o[a-3],id2:o[a],relation:o[a-2],relationTitle1:"none",relationTitle2:o[a-1]};break;case 40:this.$={id1:o[a-4],id2:o[a],relation:o[a-2],relationTitle1:o[a-3],relationTitle2:o[a-1]};break;case 41:this.$={type1:o[a-2],type2:o[a],lineType:o[a-1]};break;case 42:this.$={type1:"none",type2:o[a],lineType:o[a-1]};break;case 43:this.$={type1:o[a-1],type2:"none",lineType:o[a]};break;case 44:this.$={type1:"none",type2:"none",lineType:o[a]};break;case 45:this.$=i.relationType.AGGREGATION;break;case 46:this.$=i.relationType.EXTENSION;break;case 47:this.$=i.relationType.COMPOSITION;break;case 48:this.$=i.relationType.DEPENDENCY;break;case 49:this.$=i.lineType.LINE;break;case 50:this.$=i.lineType.DOTTED_LINE;break;case 51:this.$=o[a-2],i.setClickEvent(o[a-1],o[a],void 0);break;case 52:this.$=o[a-3],i.setClickEvent(o[a-2],o[a-1],o[a]);break;case 53:this.$=o[a-2],i.setLink(o[a-1],o[a],void 0);break;case 54:this.$=o[a-3],i.setLink(o[a-2],o[a-1],o[a]);break;case 55:i.setCssClass(o[a-1],o[a])}},table:[{3:1,4:2,5:3,6:4,7:5,13:t,17:n},{1:[3]},{1:[2,1]},{3:8,4:2,5:3,6:4,7:5,13:t,17:n},{1:[2,3]},{8:9,14:[1,10]},{10:[1,11]},{14:[2,6]},{1:[2,2]},{9:12,11:[1,13],16:i},e([11,16],[2,7]),{5:23,7:5,13:t,18:15,20:16,21:24,22:32,24:17,26:18,27:19,28:20,29:21,30:22,31:r,36:o,38:s,39:a,50:l,51:c,52:d,66:u,67:h,68:f},{10:[1,36]},{12:37,15:[1,38]},{10:[2,9]},{19:[1,39]},{10:[1,40],19:[2,11]},e(g,[2,18],{25:[1,41]}),e(g,[2,20]),e(g,[2,21]),e(g,[2,22]),e(g,[2,23]),e(g,[2,24]),e(g,[2,25]),e(g,[2,33],{40:42,42:45,43:46,25:[1,44],41:[1,43],44:p,45:m,46:_,47:b,48:v,49:y}),{21:53,22:32,66:u,67:h,68:f},e(g,[2,35]),e(g,[2,36]),{22:54,66:u,67:h,68:f},{21:55,22:32,66:u,67:h,68:f},{21:56,22:32,66:u,67:h,68:f},{41:[1,57]},e(w,[2,14],{22:32,21:58,23:[1,59],66:u,67:h,68:f}),e(C,[2,69]),e(C,[2,70]),e(C,[2,71]),e(S,[2,4]),{9:60,16:i},{16:[2,8]},{1:[2,10]},{5:23,7:5,13:t,18:61,19:[2,12],20:16,21:24,22:32,24:17,26:18,27:19,28:20,29:21,30:22,31:r,36:o,38:s,39:a,50:l,51:c,52:d,66:u,67:h,68:f},e(g,[2,19]),{21:62,22:32,41:[1,63],66:u,67:h,68:f},{40:64,42:45,43:46,44:p,45:m,46:_,47:b,48:v,49:y},e(g,[2,34]),{43:65,48:v,49:y},e(k,[2,44],{42:66,44:p,45:m,46:_,47:b}),e(x,[2,45]),e(x,[2,46]),e(x,[2,47]),e(x,[2,48]),e(L,[2,49]),e(L,[2,50]),e(g,[2,26],{32:[1,67],33:[1,68]}),{37:[1,69]},{41:[1,70]},{41:[1,71]},{22:72,66:u,67:h,68:f},e(w,[2,15]),e(w,[2,17],{22:32,21:73,66:u,67:h,68:f}),{10:[1,74]},{19:[2,13]},e(M,[2,37]),{21:75,22:32,66:u,67:h,68:f},{21:76,22:32,41:[1,77],66:u,67:h,68:f},e(k,[2,43],{42:78,44:p,45:m,46:_,47:b}),e(k,[2,42]),{22:79,66:u,67:h,68:f},{34:80,38:D},{21:82,22:32,66:u,67:h,68:f},e(g,[2,51],{41:[1,83]}),e(g,[2,53],{41:[1,84]}),e(g,[2,55]),e(w,[2,16]),e(S,[2,5]),e(M,[2,39]),e(M,[2,38]),{21:85,22:32,66:u,67:h,68:f},e(k,[2,41]),e(g,[2,27],{33:[1,86]}),{35:[1,87]},{34:88,35:[2,31],38:D},e(g,[2,30]),e(g,[2,52]),e(g,[2,54]),e(M,[2,40]),{34:89,38:D},e(g,[2,28]),{35:[2,32]},{35:[1,90]},e(g,[2,29])],defaultActions:{2:[2,1],4:[2,3],7:[2,6],8:[2,2],14:[2,9],38:[2,8],39:[2,10],61:[2,13],88:[2,32]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],i=[],r=[null],o=[],s=this.table,a="",l=0,c=0,d=0,u=2,h=1,f=o.slice.call(arguments,1),g=Object.create(this.lexer),p={yy:{}};for(var m in this.yy)Object.prototype.hasOwnProperty.call(this.yy,m)&&(p.yy[m]=this.yy[m]);g.setInput(e,p.yy),p.yy.lexer=g,p.yy.parser=this,void 0===g.yylloc&&(g.yylloc={});var _=g.yylloc;o.push(_);var b=g.options&&g.options.ranges;function v(){var e;return"number"!=typeof(e=i.pop()||g.lex()||h)&&(e instanceof Array&&(e=(i=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var y,w,C,S,k,x,L,M,D,E={};;){if(C=n[n.length-1],this.defaultActions[C]?S=this.defaultActions[C]:(null==y&&(y=v()),S=s[C]&&s[C][y]),void 0===S||!S.length||!S[0]){var T="";for(x in D=[],s[C])this.terminals_[x]&&x>u&&D.push("'"+this.terminals_[x]+"'");T=g.showPosition?"Parse error on line "+(l+1)+":\n"+g.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[y]||y)+"'":"Parse error on line "+(l+1)+": Unexpected "+(y==h?"end of input":"'"+(this.terminals_[y]||y)+"'"),this.parseError(T,{text:g.match,token:this.terminals_[y]||y,line:g.yylineno,loc:_,expected:D})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+y);switch(S[0]){case 1:n.push(y),r.push(g.yytext),o.push(g.yylloc),n.push(S[1]),y=null,w?(y=w,w=null):(c=g.yyleng,a=g.yytext,l=g.yylineno,_=g.yylloc,d>0&&d--);break;case 2:if(L=this.productions_[S[1]][1],E.$=r[r.length-L],E._$={first_line:o[o.length-(L||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(L||1)].first_column,last_column:o[o.length-1].last_column},b&&(E._$.range=[o[o.length-(L||1)].range[0],o[o.length-1].range[1]]),void 0!==(k=this.performAction.apply(E,[a,c,l,p.yy,S[1],r,o].concat(f))))return k;L&&(n=n.slice(0,-1*L*2),r=r.slice(0,-1*L),o=o.slice(0,-1*L)),n.push(this.productions_[S[1]][0]),r.push(E.$),o.push(E._$),M=s[n[n.length-2]][n[n.length-1]],n.push(M);break;case 3:return!0}}return!0}},T={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in r)this[o]=r[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),o=0;o<r.length;o++)if((n=this._input.match(this.rules[r[o]]))&&(!t||n[0].length>t[0].length)){if(t=n,i=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,r[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,r[i]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(e,t,n,i){switch(n){case 0:return this.begin("open_directive"),13;case 1:return this.begin("type_directive"),14;case 2:return this.popState(),this.begin("arg_directive"),11;case 3:return this.popState(),this.popState(),16;case 4:return 15;case 5:case 6:break;case 7:return 10;case 8:break;case 9:case 10:return 17;case 11:return this.begin("struct"),33;case 12:return"EOF_IN_STRUCT";case 13:return"OPEN_IN_STRUCT";case 14:return this.popState(),35;case 15:break;case 16:return"MEMBER";case 17:return 31;case 18:return 52;case 19:return 50;case 20:return 51;case 21:return 36;case 22:return 37;case 23:this.begin("generic");break;case 24:this.popState();break;case 25:return"GENERICTYPE";case 26:this.begin("string");break;case 27:this.popState();break;case 28:return"STR";case 29:case 30:return 45;case 31:case 32:return 47;case 33:return 46;case 34:return 44;case 35:return 48;case 36:return 49;case 37:return 25;case 38:return 32;case 39:return 64;case 40:return"DOT";case 41:return"PLUS";case 42:return 61;case 43:case 44:return"EQUALS";case 45:return 68;case 46:return"PUNCTUATION";case 47:return 67;case 48:return 66;case 49:return 63;case 50:return 19}},rules:[/^(?:%%\{)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:[{])/,/^(?:$)/,/^(?:[{])/,/^(?:[}])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:class\b)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:[~])/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:$)/],conditions:{string:{rules:[27,28],inclusive:!1},generic:{rules:[24,25],inclusive:!1},struct:{rules:[12,13,14,15,16],inclusive:!1},open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,17,18,19,20,21,22,23,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],inclusive:!0}}};function O(){this.yy={}}return E.lexer=T,O.prototype=E,E.Parser=O,new O}();t.parser=r,t.Parser=r.Parser,t.parse=function(){return r.parse.apply(r,arguments)},t.main=function(i){i[1]||(console.log("Usage: "+i[0]+" FILE"),e.exit(1));var r=n(/*! fs */"./node_modules/node-libs-browser/mock/empty.js").readFileSync(n(/*! path */"./node_modules/path-browserify/index.js").normalize(i[1]),"utf8");return t.parser.parse(r)},n.c[n.s]===i&&t.main(e.argv.slice(1))}).call(this,n(/*! ./../../../../node_modules/process/browser.js */"./node_modules/process/browser.js"),n(/*! ./../../../../node_modules/webpack/buildin/module.js */"./node_modules/webpack/buildin/module.js")(e))},"./src/diagrams/class/styles.js": /*!**************************************!*\ !*** ./src/diagrams/class/styles.js ***! \**************************************/ @@ -114,27 +114,27 @@ /*!***************************************!*\ !*** ./src/diagrams/class/svgDraw.js ***! \***************************************/ -/*! exports provided: drawEdge, drawClass, parseMember, default */function(e,t,n){"use strict";n.r(t),n.d(t,"drawEdge",(function(){return u})),n.d(t,"drawClass",(function(){return l})),n.d(t,"parseMember",(function(){return c}));var r=n(/*! d3 */"d3"),i=n(/*! ./classDb */"./src/diagrams/class/classDb.js"),o=n(/*! ../../utils */"./src/utils.js"),s=n(/*! ../../logger */"./src/logger.js"),a=0,u=function(e,t,n,u){var l=function(e){switch(e){case i.relationType.AGGREGATION:return"aggregation";case i.relationType.EXTENSION:return"extension";case i.relationType.COMPOSITION:return"composition";case i.relationType.DEPENDENCY:return"dependency"}};t.points=t.points.filter((function(e){return!Number.isNaN(e.y)}));var c,d,h=t.points,f=Object(r.line)().x((function(e){return e.x})).y((function(e){return e.y})).curve(r.curveBasis),p=e.append("path").attr("d",f(h)).attr("id","edge"+a).attr("class","relation"),g="";u.arrowMarkerAbsolute&&(g=(g=(g=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),1==n.relation.lineType&&p.attr("class","relation dashed-line"),"none"!==n.relation.type1&&p.attr("marker-start","url("+g+"#"+l(n.relation.type1)+"Start)"),"none"!==n.relation.type2&&p.attr("marker-end","url("+g+"#"+l(n.relation.type2)+"End)");var m,_,y,v,b=t.points.length,w=o.default.calcLabelPosition(t.points);if(c=w.x,d=w.y,b%2!=0&&b>1){var C=o.default.calcCardinalityPosition("none"!==n.relation.type1,t.points,t.points[0]),S=o.default.calcCardinalityPosition("none"!==n.relation.type2,t.points,t.points[b-1]);s.logger.debug("cardinality_1_point "+JSON.stringify(C)),s.logger.debug("cardinality_2_point "+JSON.stringify(S)),m=C.x,_=C.y,y=S.x,v=S.y}if(void 0!==n.title){var x=e.append("g").attr("class","classLabel"),L=x.append("text").attr("class","label").attr("x",c).attr("y",d).attr("fill","red").attr("text-anchor","middle").text(n.title);window.label=L;var k=L.node().getBBox();x.insert("rect",":first-child").attr("class","box").attr("x",k.x-u.padding/2).attr("y",k.y-u.padding/2).attr("width",k.width+u.padding).attr("height",k.height+u.padding)}s.logger.info("Rendering relation "+JSON.stringify(n)),void 0!==n.relationTitle1&&"none"!==n.relationTitle1&&e.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",m).attr("y",_).attr("fill","black").attr("font-size","6").text(n.relationTitle1),void 0!==n.relationTitle2&&"none"!==n.relationTitle2&&e.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",y).attr("y",v).attr("fill","black").attr("font-size","6").text(n.relationTitle2),a++},l=function(e,t,n){s.logger.info("Rendering class "+t);var r,o=t.id,a={id:o,label:t.id,width:0,height:0},u=e.append("g").attr("id",Object(i.lookUpDomId)(o)).attr("class","classGroup");r=t.link?u.append("svg:a").attr("xlink:href",t.link).attr("target","_blank").append("text").attr("y",n.textHeight+n.padding).attr("x",0):u.append("text").attr("y",n.textHeight+n.padding).attr("x",0);var l=!0;t.annotations.forEach((function(e){var t=r.append("tspan").text("«"+e+"»");l||t.attr("dy",n.textHeight),l=!1}));var c=t.id;void 0!==t.type&&""!==t.type&&(c+="<"+t.type+">");var d=r.append("tspan").text(c).attr("class","title");l||d.attr("dy",n.textHeight);var h=r.node().getBBox().height,f=u.append("line").attr("x1",0).attr("y1",n.padding+h+n.dividerMargin/2).attr("y2",n.padding+h+n.dividerMargin/2),g=u.append("text").attr("x",n.padding).attr("y",h+n.dividerMargin+n.textHeight).attr("fill","white").attr("class","classText");l=!0,t.members.forEach((function(e){p(g,e,l,n),l=!1}));var m=g.node().getBBox(),_=u.append("line").attr("x1",0).attr("y1",n.padding+h+n.dividerMargin+m.height).attr("y2",n.padding+h+n.dividerMargin+m.height),y=u.append("text").attr("x",n.padding).attr("y",h+2*n.dividerMargin+m.height+n.textHeight).attr("fill","white").attr("class","classText");l=!0,t.methods.forEach((function(e){p(y,e,l,n),l=!1}));var v=u.node().getBBox(),b=" ";t.cssClasses.length>0&&(b+=t.cssClasses.join(" "));var w=u.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",v.width+2*n.padding).attr("height",v.height+n.padding+.5*n.dividerMargin).attr("class",b).node().getBBox().width;return r.node().childNodes.forEach((function(e){e.setAttribute("x",(w-e.getBBox().width)/2)})),t.tooltip&&r.insert("title").text(t.tooltip),f.attr("x2",w),_.attr("x2",w),a.width=w,a.height=v.height+n.padding+.5*n.dividerMargin,a},c=function(e){var t=e.match(/(\+|-|~|#)?(\w+)(~\w+~|\[\])?\s+(\w+)/),n=e.match(/^([+|\-|~|#])?(\w+) *\( *(.*)\) *(\*|\$)? *(\w*[~|[\]]*\s*\w*~?)$/);return t&&!n?d(t):n?h(n):f(e)},d=function(e){var t="";try{t=(e[1]?e[1].trim():"")+(e[2]?e[2].trim():"")+(e[3]?g(e[3].trim()):"")+" "+(e[4]?e[4].trim():"")}catch(n){t=e}return{displayText:t,cssStyle:""}},h=function(e){var t="",n="";try{var r=e[1]?e[1].trim():"",i=e[2]?e[2].trim():"",o=e[3]?g(e[3].trim()):"",s=e[4]?e[4].trim():"";n=r+i+"("+o+")"+(e[5]?" : "+g(e[5]).trim():""),t=m(s)}catch(t){n=e}return{displayText:n,cssStyle:t}},f=function(e){var t="",n="",r="",i=e.indexOf("("),o=e.indexOf(")");if(i>1&&o>i&&o<=e.length){var s="",a="",u=e.substring(0,1);u.match(/\w/)?a=e.substring(0,i).trim():(u.match(/\+|-|~|#/)&&(s=u),a=e.substring(1,i).trim());var l=e.substring(i+1,o),c=e.substring(o+1,1);n=m(c),t=s+a+"("+g(l.trim())+")",o<"".length&&""!==(r=e.substring(o+2).trim())&&(r=" : "+g(r))}else t=g(e);return{displayText:t,cssStyle:n}},p=function(e,t,n,r){var i=c(t),o=e.append("tspan").attr("x",r.padding).text(i.displayText);""!==i.cssStyle&&o.attr("style",i.cssStyle),n||o.attr("dy",r.textHeight)},g=function e(t){var n=t;return-1!=t.indexOf("~")?e(n=(n=n.replace("~","<")).replace("~",">")):n},m=function(e){switch(e){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}};t.default={drawClass:l,drawEdge:u,parseMember:c}},"./src/diagrams/common/common.js": +/*! exports provided: drawEdge, drawClass, parseMember, default */function(e,t,n){"use strict";n.r(t),n.d(t,"drawEdge",(function(){return l})),n.d(t,"drawClass",(function(){return c})),n.d(t,"parseMember",(function(){return d}));var i=n(/*! d3 */"d3"),r=n(/*! ./classDb */"./src/diagrams/class/classDb.js"),o=n(/*! ../../utils */"./src/utils.js"),s=n(/*! ../../logger */"./src/logger.js"),a=0,l=function(e,t,n,l){var c=function(e){switch(e){case r.relationType.AGGREGATION:return"aggregation";case r.relationType.EXTENSION:return"extension";case r.relationType.COMPOSITION:return"composition";case r.relationType.DEPENDENCY:return"dependency"}};t.points=t.points.filter((function(e){return!Number.isNaN(e.y)}));var d,u,h=t.points,f=Object(i.line)().x((function(e){return e.x})).y((function(e){return e.y})).curve(i.curveBasis),g=e.append("path").attr("d",f(h)).attr("id","edge"+a).attr("class","relation"),p="";l.arrowMarkerAbsolute&&(p=(p=(p=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),1==n.relation.lineType&&g.attr("class","relation dashed-line"),"none"!==n.relation.type1&&g.attr("marker-start","url("+p+"#"+c(n.relation.type1)+"Start)"),"none"!==n.relation.type2&&g.attr("marker-end","url("+p+"#"+c(n.relation.type2)+"End)");var m,_,b,v,y=t.points.length,w=o.default.calcLabelPosition(t.points);if(d=w.x,u=w.y,y%2!=0&&y>1){var C=o.default.calcCardinalityPosition("none"!==n.relation.type1,t.points,t.points[0]),S=o.default.calcCardinalityPosition("none"!==n.relation.type2,t.points,t.points[y-1]);s.logger.debug("cardinality_1_point "+JSON.stringify(C)),s.logger.debug("cardinality_2_point "+JSON.stringify(S)),m=C.x,_=C.y,b=S.x,v=S.y}if(void 0!==n.title){var k=e.append("g").attr("class","classLabel"),x=k.append("text").attr("class","label").attr("x",d).attr("y",u).attr("fill","red").attr("text-anchor","middle").text(n.title);window.label=x;var L=x.node().getBBox();k.insert("rect",":first-child").attr("class","box").attr("x",L.x-l.padding/2).attr("y",L.y-l.padding/2).attr("width",L.width+l.padding).attr("height",L.height+l.padding)}s.logger.info("Rendering relation "+JSON.stringify(n)),void 0!==n.relationTitle1&&"none"!==n.relationTitle1&&e.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",m).attr("y",_).attr("fill","black").attr("font-size","6").text(n.relationTitle1),void 0!==n.relationTitle2&&"none"!==n.relationTitle2&&e.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",b).attr("y",v).attr("fill","black").attr("font-size","6").text(n.relationTitle2),a++},c=function(e,t,n){s.logger.info("Rendering class "+t);var i,o=t.id,a={id:o,label:t.id,width:0,height:0},l=e.append("g").attr("id",Object(r.lookUpDomId)(o)).attr("class","classGroup");i=t.link?l.append("svg:a").attr("xlink:href",t.link).attr("target","_blank").append("text").attr("y",n.textHeight+n.padding).attr("x",0):l.append("text").attr("y",n.textHeight+n.padding).attr("x",0);var c=!0;t.annotations.forEach((function(e){var t=i.append("tspan").text("«"+e+"»");c||t.attr("dy",n.textHeight),c=!1}));var d=t.id;void 0!==t.type&&""!==t.type&&(d+="<"+t.type+">");var u=i.append("tspan").text(d).attr("class","title");c||u.attr("dy",n.textHeight);var h=i.node().getBBox().height,f=l.append("line").attr("x1",0).attr("y1",n.padding+h+n.dividerMargin/2).attr("y2",n.padding+h+n.dividerMargin/2),p=l.append("text").attr("x",n.padding).attr("y",h+n.dividerMargin+n.textHeight).attr("fill","white").attr("class","classText");c=!0,t.members.forEach((function(e){g(p,e,c,n),c=!1}));var m=p.node().getBBox(),_=l.append("line").attr("x1",0).attr("y1",n.padding+h+n.dividerMargin+m.height).attr("y2",n.padding+h+n.dividerMargin+m.height),b=l.append("text").attr("x",n.padding).attr("y",h+2*n.dividerMargin+m.height+n.textHeight).attr("fill","white").attr("class","classText");c=!0,t.methods.forEach((function(e){g(b,e,c,n),c=!1}));var v=l.node().getBBox(),y=" ";t.cssClasses.length>0&&(y+=t.cssClasses.join(" "));var w=l.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",v.width+2*n.padding).attr("height",v.height+n.padding+.5*n.dividerMargin).attr("class",y).node().getBBox().width;return i.node().childNodes.forEach((function(e){e.setAttribute("x",(w-e.getBBox().width)/2)})),t.tooltip&&i.insert("title").text(t.tooltip),f.attr("x2",w),_.attr("x2",w),a.width=w,a.height=v.height+n.padding+.5*n.dividerMargin,a},d=function(e){var t=e.match(/(\+|-|~|#)?(\w+)(~\w+~|\[\])?\s+(\w+)/),n=e.match(/^([+|\-|~|#])?(\w+) *\( *(.*)\) *(\*|\$)? *(\w*[~|[\]]*\s*\w*~?)$/);return t&&!n?u(t):n?h(n):f(e)},u=function(e){var t="";try{t=(e[1]?e[1].trim():"")+(e[2]?e[2].trim():"")+(e[3]?p(e[3].trim()):"")+" "+(e[4]?e[4].trim():"")}catch(n){t=e}return{displayText:t,cssStyle:""}},h=function(e){var t="",n="";try{var i=e[1]?e[1].trim():"",r=e[2]?e[2].trim():"",o=e[3]?p(e[3].trim()):"",s=e[4]?e[4].trim():"";n=i+r+"("+o+")"+(e[5]?" : "+p(e[5]).trim():""),t=m(s)}catch(t){n=e}return{displayText:n,cssStyle:t}},f=function(e){var t="",n="",i="",r=e.indexOf("("),o=e.indexOf(")");if(r>1&&o>r&&o<=e.length){var s="",a="",l=e.substring(0,1);l.match(/\w/)?a=e.substring(0,r).trim():(l.match(/\+|-|~|#/)&&(s=l),a=e.substring(1,r).trim());var c=e.substring(r+1,o),d=e.substring(o+1,1);n=m(d),t=s+a+"("+p(c.trim())+")",o<"".length&&""!==(i=e.substring(o+2).trim())&&(i=" : "+p(i))}else t=p(e);return{displayText:t,cssStyle:n}},g=function(e,t,n,i){var r=d(t),o=e.append("tspan").attr("x",i.padding).text(r.displayText);""!==r.cssStyle&&o.attr("style",r.cssStyle),n||o.attr("dy",i.textHeight)},p=function e(t){var n=t;return-1!=t.indexOf("~")?e(n=(n=n.replace("~","<")).replace("~",">")):n},m=function(e){switch(e){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}};t.default={drawClass:c,drawEdge:l,parseMember:d}},"./src/diagrams/common/common.js": /*!***************************************!*\ !*** ./src/diagrams/common/common.js ***! \***************************************/ -/*! exports provided: getRows, removeScript, sanitizeText, lineBreakRegex, hasBreaks, splitBreaks, default */function(e,t,n){"use strict";n.r(t),n.d(t,"getRows",(function(){return r})),n.d(t,"removeScript",(function(){return i})),n.d(t,"sanitizeText",(function(){return o})),n.d(t,"lineBreakRegex",(function(){return s})),n.d(t,"hasBreaks",(function(){return a})),n.d(t,"splitBreaks",(function(){return u}));var r=function(e){if(!e)return 1;var t=l(e);return(t=t.replace(/\\n/g,"#br#")).split("#br#")},i=function(e){for(var t="",n=0;n>=0;){if(!((n=e.indexOf("<script"))>=0)){t+=e,n=-1;break}t+=e.substr(0,n),(n=(e=e.substr(n+1)).indexOf("<\/script>"))>=0&&(n+=9,e=e.substr(n))}return t},o=function(e,t){var n=e,r=!0;if(!t.flowchart||!1!==t.flowchart.htmlLabels&&"false"!==t.flowchart.htmlLabels||(r=!1),r){var o=t.securityLevel;"antiscript"===o?n=i(n):"loose"!==o&&(n=(n=(n=l(n)).replace(/</g,"<").replace(/>/g,">")).replace(/=/g,"="),n=c(n))}return n},s=/<br\s*\/?>/gi,a=function(e){return/<br\s*[/]?>/gi.test(e)},u=function(e){return e.split(/<br\s*[/]?>/gi)},l=function(e){return e.replace(s,"#br#")},c=function(e){return e.replace(/#br#/g,"<br/>")};t.default={getRows:r,sanitizeText:o,hasBreaks:a,splitBreaks:u,lineBreakRegex:s,removeScript:i}},"./src/diagrams/er/erDb.js": +/*! exports provided: getRows, removeScript, sanitizeText, lineBreakRegex, hasBreaks, splitBreaks, default */function(e,t,n){"use strict";n.r(t),n.d(t,"getRows",(function(){return i})),n.d(t,"removeScript",(function(){return r})),n.d(t,"sanitizeText",(function(){return o})),n.d(t,"lineBreakRegex",(function(){return s})),n.d(t,"hasBreaks",(function(){return a})),n.d(t,"splitBreaks",(function(){return l}));var i=function(e){if(!e)return 1;var t=c(e);return(t=t.replace(/\\n/g,"#br#")).split("#br#")},r=function(e){for(var t="",n=0;n>=0;){if(!((n=e.indexOf("<script"))>=0)){t+=e,n=-1;break}t+=e.substr(0,n),(n=(e=e.substr(n+1)).indexOf("<\/script>"))>=0&&(n+=9,e=e.substr(n))}return t},o=function(e,t){var n=e,i=!0;if(!t.flowchart||!1!==t.flowchart.htmlLabels&&"false"!==t.flowchart.htmlLabels||(i=!1),i){var o=t.securityLevel;"antiscript"===o?n=r(n):"loose"!==o&&(n=(n=(n=c(n)).replace(/</g,"<").replace(/>/g,">")).replace(/=/g,"="),n=d(n))}return n},s=/<br\s*\/?>/gi,a=function(e){return/<br\s*[/]?>/gi.test(e)},l=function(e){return e.split(/<br\s*[/]?>/gi)},c=function(e){return e.replace(s,"#br#")},d=function(e){return e.replace(/#br#/g,"<br/>")};t.default={getRows:i,sanitizeText:o,hasBreaks:a,splitBreaks:l,lineBreakRegex:s,removeScript:r}},"./src/diagrams/er/erDb.js": /*!*********************************!*\ !*** ./src/diagrams/er/erDb.js ***! \*********************************/ -/*! exports provided: parseDirective, default */function(e,t,n){"use strict";n.r(t),n.d(t,"parseDirective",(function(){return l}));var r=n(/*! ../../logger */"./src/logger.js"),i=n(/*! ../../mermaidAPI */"./src/mermaidAPI.js"),o=n(/*! ../../config */"./src/config.js"),s={},a=[],u="",l=function(e,t,n){i.default.parseDirective(this,e,t,n)},c=function(e){return void 0===s[e]&&(s[e]={attributes:[]},r.logger.info("Added new entity :",e)),s[e]};t.default={Cardinality:{ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE"},Identification:{NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},parseDirective:l,getConfig:function(){return o.getConfig().er},addEntity:c,addAttributes:function(e,t){var n,i=c(e);for(n=t.length-1;n>=0;n--)i.attributes.push(t[n]),r.logger.debug("Added attribute ",t[n].attributeName)},getEntities:function(){return s},addRelationship:function(e,t,n,i){var o={entityA:e,roleA:t,entityB:n,relSpec:i};a.push(o),r.logger.debug("Added new relationship :",o)},getRelationships:function(){return a},clear:function(){s={},a=[],u=""},setTitle:function(e){u=e},getTitle:function(){return u}}},"./src/diagrams/er/erMarkers.js": +/*! exports provided: parseDirective, default */function(e,t,n){"use strict";n.r(t),n.d(t,"parseDirective",(function(){return c}));var i=n(/*! ../../logger */"./src/logger.js"),r=n(/*! ../../mermaidAPI */"./src/mermaidAPI.js"),o=n(/*! ../../config */"./src/config.js"),s={},a=[],l="",c=function(e,t,n){r.default.parseDirective(this,e,t,n)},d=function(e){return void 0===s[e]&&(s[e]={attributes:[]},i.logger.info("Added new entity :",e)),s[e]};t.default={Cardinality:{ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE"},Identification:{NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},parseDirective:c,getConfig:function(){return o.getConfig().er},addEntity:d,addAttributes:function(e,t){var n,r=d(e);for(n=t.length-1;n>=0;n--)r.attributes.push(t[n]),i.logger.debug("Added attribute ",t[n].attributeName)},getEntities:function(){return s},addRelationship:function(e,t,n,r){var o={entityA:e,roleA:t,entityB:n,relSpec:r};a.push(o),i.logger.debug("Added new relationship :",o)},getRelationships:function(){return a},clear:function(){s={},a=[],l=""},setTitle:function(e){l=e},getTitle:function(){return l}}},"./src/diagrams/er/erMarkers.js": /*!**************************************!*\ !*** ./src/diagrams/er/erMarkers.js ***! \**************************************/ -/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var r={ONLY_ONE_START:"ONLY_ONE_START",ONLY_ONE_END:"ONLY_ONE_END",ZERO_OR_ONE_START:"ZERO_OR_ONE_START",ZERO_OR_ONE_END:"ZERO_OR_ONE_END",ONE_OR_MORE_START:"ONE_OR_MORE_START",ONE_OR_MORE_END:"ONE_OR_MORE_END",ZERO_OR_MORE_START:"ZERO_OR_MORE_START",ZERO_OR_MORE_END:"ZERO_OR_MORE_END"};t.default={ERMarkers:r,insertMarkers:function(e,t){var n;e.append("defs").append("marker").attr("id",r.ONLY_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M9,0 L9,18 M15,0 L15,18"),e.append("defs").append("marker").attr("id",r.ONLY_ONE_END).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M3,0 L3,18 M9,0 L9,18"),(n=e.append("defs").append("marker").attr("id",r.ZERO_OR_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto")).append("circle").attr("stroke",t.stroke).attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),n.append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M9,0 L9,18"),(n=e.append("defs").append("marker").attr("id",r.ZERO_OR_ONE_END).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto")).append("circle").attr("stroke",t.stroke).attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),n.append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M21,0 L21,18"),e.append("defs").append("marker").attr("id",r.ONE_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),e.append("defs").append("marker").attr("id",r.ONE_OR_MORE_END).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"),(n=e.append("defs").append("marker").attr("id",r.ZERO_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto")).append("circle").attr("stroke",t.stroke).attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),n.append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18"),(n=e.append("defs").append("marker").attr("id",r.ZERO_OR_MORE_END).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto")).append("circle").attr("stroke",t.stroke).attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),n.append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")}}},"./src/diagrams/er/erRenderer.js": +/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var i={ONLY_ONE_START:"ONLY_ONE_START",ONLY_ONE_END:"ONLY_ONE_END",ZERO_OR_ONE_START:"ZERO_OR_ONE_START",ZERO_OR_ONE_END:"ZERO_OR_ONE_END",ONE_OR_MORE_START:"ONE_OR_MORE_START",ONE_OR_MORE_END:"ONE_OR_MORE_END",ZERO_OR_MORE_START:"ZERO_OR_MORE_START",ZERO_OR_MORE_END:"ZERO_OR_MORE_END"};t.default={ERMarkers:i,insertMarkers:function(e,t){var n;e.append("defs").append("marker").attr("id",i.ONLY_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M9,0 L9,18 M15,0 L15,18"),e.append("defs").append("marker").attr("id",i.ONLY_ONE_END).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M3,0 L3,18 M9,0 L9,18"),(n=e.append("defs").append("marker").attr("id",i.ZERO_OR_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto")).append("circle").attr("stroke",t.stroke).attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),n.append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M9,0 L9,18"),(n=e.append("defs").append("marker").attr("id",i.ZERO_OR_ONE_END).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto")).append("circle").attr("stroke",t.stroke).attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),n.append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M21,0 L21,18"),e.append("defs").append("marker").attr("id",i.ONE_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),e.append("defs").append("marker").attr("id",i.ONE_OR_MORE_END).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"),(n=e.append("defs").append("marker").attr("id",i.ZERO_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto")).append("circle").attr("stroke",t.stroke).attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),n.append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18"),(n=e.append("defs").append("marker").attr("id",i.ZERO_OR_MORE_END).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto")).append("circle").attr("stroke",t.stroke).attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),n.append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")}}},"./src/diagrams/er/erRenderer.js": /*!***************************************!*\ !*** ./src/diagrams/er/erRenderer.js ***! \***************************************/ -/*! exports provided: setConf, draw, default */function(e,t,n){"use strict";n.r(t),n.d(t,"setConf",(function(){return m})),n.d(t,"draw",(function(){return b}));var r=n(/*! graphlib */"graphlib"),i=n.n(r),o=n(/*! d3 */"d3"),s=n(/*! ./erDb */"./src/diagrams/er/erDb.js"),a=n(/*! ./parser/erDiagram */"./src/diagrams/er/parser/erDiagram.jison"),u=n.n(a),l=n(/*! dagre */"dagre"),c=n.n(l),d=n(/*! ../../config */"./src/config.js"),h=n(/*! ../../logger */"./src/logger.js"),f=n(/*! ./erMarkers */"./src/diagrams/er/erMarkers.js"),p=n(/*! ../../utils */"./src/utils.js"),g={},m=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)g[t[n]]=e[t[n]]},_=function(e,t,n){var r;return Object.keys(t).forEach((function(i){var o=e.append("g").attr("id",i);r=void 0===r?i:r;var s="entity-"+i,a=o.append("text").attr("class","er entityLabel").attr("id",s).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("style","font-family: "+Object(d.getConfig)().fontFamily+"; font-size: "+g.fontSize+"px").text(i),u=function(e,t,n){var r=g.entityPadding/3,i=g.entityPadding/3,o=.85*g.fontSize,s=t.node().getBBox(),a=[],u=0,l=0,c=s.height+2*r,h=1;n.forEach((function(n){var i="".concat(t.node().id,"-attr-").concat(h),s=e.append("text").attr("class","er entityLabel").attr("id","".concat(i,"-type")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+Object(d.getConfig)().fontFamily+"; font-size: "+o+"px").text(n.attributeType),f=e.append("text").attr("class","er entityLabel").attr("id","".concat(i,"-name")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+Object(d.getConfig)().fontFamily+"; font-size: "+o+"px").text(n.attributeName);a.push({tn:s,nn:f});var p=s.node().getBBox(),g=f.node().getBBox();u=Math.max(u,p.width),l=Math.max(l,g.width),c+=Math.max(p.height,g.height)+2*r,h+=1}));var f={width:Math.max(g.minEntityWidth,Math.max(s.width+2*g.entityPadding,u+l+4*i)),height:n.length>0?c:Math.max(g.minEntityHeight,s.height+2*g.entityPadding)},p=Math.max(0,f.width-(u+l)-4*i);if(n.length>0){t.attr("transform","translate("+f.width/2+","+(r+s.height/2)+")");var m=s.height+2*r,_="attributeBoxOdd";a.forEach((function(t){var n=m+r+Math.max(t.tn.node().getBBox().height,t.nn.node().getBBox().height)/2;t.tn.attr("transform","translate("+i+","+n+")");var o=e.insert("rect","#"+t.tn.node().id).attr("class","er ".concat(_)).attr("fill",g.fill).attr("fill-opacity","100%").attr("stroke",g.stroke).attr("x",0).attr("y",m).attr("width",u+2*i+p/2).attr("height",t.tn.node().getBBox().height+2*r);t.nn.attr("transform","translate("+(parseFloat(o.attr("width"))+i)+","+n+")"),e.insert("rect","#"+t.nn.node().id).attr("class","er ".concat(_)).attr("fill",g.fill).attr("fill-opacity","100%").attr("stroke",g.stroke).attr("x","".concat(o.attr("x")+o.attr("width"))).attr("y",m).attr("width",l+2*i+p/2).attr("height",t.nn.node().getBBox().height+2*r),m+=Math.max(t.tn.node().getBBox().height,t.nn.node().getBBox().height)+2*r,_="attributeBoxOdd"==_?"attributeBoxEven":"attributeBoxOdd"}))}else f.height=Math.max(g.minEntityHeight,c),t.attr("transform","translate("+f.width/2+","+f.height/2+")");return f}(o,a,t[i].attributes),l=u.width,c=u.height,h=o.insert("rect","#"+s).attr("class","er entityBox").attr("fill",g.fill).attr("fill-opacity","100%").attr("stroke",g.stroke).attr("x",0).attr("y",0).attr("width",l).attr("height",c).node().getBBox();n.setNode(i,{width:h.width,height:h.height,shape:"rect",id:i})})),r},y=function(e){return(e.entityA+e.roleA+e.entityB).replace(/\s/g,"")},v=0,b=function(e,t){h.logger.info("Drawing ER diagram"),s.default.clear();var n=u.a.parser;n.yy=s.default;try{n.parse(e)}catch(e){h.logger.debug("Parsing failed")}var r,a=Object(o.select)("[id='".concat(t,"']"));f.default.insertMarkers(a,g),r=new i.a.Graph({multigraph:!0,directed:!0,compound:!1}).setGraph({rankdir:g.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel((function(){return{}}));var l,m,b=_(a,s.default.getEntities(),r),w=function(e,t){return e.forEach((function(e){t.setEdge(e.entityA,e.entityB,{relationship:e},y(e))})),e}(s.default.getRelationships(),r);c.a.layout(r),l=a,(m=r).nodes().forEach((function(e){void 0!==e&&void 0!==m.node(e)&&l.select("#"+e).attr("transform","translate("+(m.node(e).x-m.node(e).width/2)+","+(m.node(e).y-m.node(e).height/2)+" )")})),w.forEach((function(e){!function(e,t,n,r){v++;var i=n.edge(t.entityA,t.entityB,y(t)),a=Object(o.line)().x((function(e){return e.x})).y((function(e){return e.y})).curve(o.curveBasis),u=e.insert("path","#"+r).attr("class","er relationshipLine").attr("d",a(i.points)).attr("stroke",g.stroke).attr("fill","none");t.relSpec.relType===s.default.Identification.NON_IDENTIFYING&&u.attr("stroke-dasharray","8,8");var l="";switch(g.arrowMarkerAbsolute&&(l=(l=(l=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),t.relSpec.cardA){case s.default.Cardinality.ZERO_OR_ONE:u.attr("marker-end","url("+l+"#"+f.default.ERMarkers.ZERO_OR_ONE_END+")");break;case s.default.Cardinality.ZERO_OR_MORE:u.attr("marker-end","url("+l+"#"+f.default.ERMarkers.ZERO_OR_MORE_END+")");break;case s.default.Cardinality.ONE_OR_MORE:u.attr("marker-end","url("+l+"#"+f.default.ERMarkers.ONE_OR_MORE_END+")");break;case s.default.Cardinality.ONLY_ONE:u.attr("marker-end","url("+l+"#"+f.default.ERMarkers.ONLY_ONE_END+")")}switch(t.relSpec.cardB){case s.default.Cardinality.ZERO_OR_ONE:u.attr("marker-start","url("+l+"#"+f.default.ERMarkers.ZERO_OR_ONE_START+")");break;case s.default.Cardinality.ZERO_OR_MORE:u.attr("marker-start","url("+l+"#"+f.default.ERMarkers.ZERO_OR_MORE_START+")");break;case s.default.Cardinality.ONE_OR_MORE:u.attr("marker-start","url("+l+"#"+f.default.ERMarkers.ONE_OR_MORE_START+")");break;case s.default.Cardinality.ONLY_ONE:u.attr("marker-start","url("+l+"#"+f.default.ERMarkers.ONLY_ONE_START+")")}var c=u.node().getTotalLength(),h=u.node().getPointAtLength(.5*c),p="rel"+v,m=e.append("text").attr("class","er relationshipLabel").attr("id",p).attr("x",h.x).attr("y",h.y).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("style","font-family: "+Object(d.getConfig)().fontFamily+"; font-size: "+g.fontSize+"px").text(t.roleA).node().getBBox();e.insert("rect","#"+p).attr("class","er relationshipLabelBox").attr("x",h.x-m.width/2).attr("y",h.y-m.height/2).attr("width",m.width).attr("height",m.height).attr("fill","white").attr("fill-opacity","85%")}(a,e,r,b)}));var C=g.diagramPadding,S=a.node().getBBox(),x=S.width+2*C,L=S.height+2*C;Object(p.configureSvgSize)(a,L,x,g.useMaxWidth),a.attr("viewBox","".concat(S.x-C," ").concat(S.y-C," ").concat(x," ").concat(L))};t.default={setConf:m,draw:b}},"./src/diagrams/er/parser/erDiagram.jison": +/*! exports provided: setConf, draw, default */function(e,t,n){"use strict";n.r(t),n.d(t,"setConf",(function(){return m})),n.d(t,"draw",(function(){return y}));var i=n(/*! graphlib */"graphlib"),r=n.n(i),o=n(/*! d3 */"d3"),s=n(/*! ./erDb */"./src/diagrams/er/erDb.js"),a=n(/*! ./parser/erDiagram */"./src/diagrams/er/parser/erDiagram.jison"),l=n.n(a),c=n(/*! dagre */"dagre"),d=n.n(c),u=n(/*! ../../config */"./src/config.js"),h=n(/*! ../../logger */"./src/logger.js"),f=n(/*! ./erMarkers */"./src/diagrams/er/erMarkers.js"),g=n(/*! ../../utils */"./src/utils.js"),p={},m=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)p[t[n]]=e[t[n]]},_=function(e,t,n){var i;return Object.keys(t).forEach((function(r){var o=e.append("g").attr("id",r);i=void 0===i?r:i;var s="entity-"+r,a=o.append("text").attr("class","er entityLabel").attr("id",s).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("style","font-family: "+Object(u.getConfig)().fontFamily+"; font-size: "+p.fontSize+"px").text(r),l=function(e,t,n){var i=p.entityPadding/3,r=p.entityPadding/3,o=.85*p.fontSize,s=t.node().getBBox(),a=[],l=0,c=0,d=s.height+2*i,h=1;n.forEach((function(n){var r="".concat(t.node().id,"-attr-").concat(h),s=e.append("text").attr("class","er entityLabel").attr("id","".concat(r,"-type")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+Object(u.getConfig)().fontFamily+"; font-size: "+o+"px").text(n.attributeType),f=e.append("text").attr("class","er entityLabel").attr("id","".concat(r,"-name")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+Object(u.getConfig)().fontFamily+"; font-size: "+o+"px").text(n.attributeName);a.push({tn:s,nn:f});var g=s.node().getBBox(),p=f.node().getBBox();l=Math.max(l,g.width),c=Math.max(c,p.width),d+=Math.max(g.height,p.height)+2*i,h+=1}));var f={width:Math.max(p.minEntityWidth,Math.max(s.width+2*p.entityPadding,l+c+4*r)),height:n.length>0?d:Math.max(p.minEntityHeight,s.height+2*p.entityPadding)},g=Math.max(0,f.width-(l+c)-4*r);if(n.length>0){t.attr("transform","translate("+f.width/2+","+(i+s.height/2)+")");var m=s.height+2*i,_="attributeBoxOdd";a.forEach((function(t){var n=m+i+Math.max(t.tn.node().getBBox().height,t.nn.node().getBBox().height)/2;t.tn.attr("transform","translate("+r+","+n+")");var o=e.insert("rect","#"+t.tn.node().id).attr("class","er ".concat(_)).attr("fill",p.fill).attr("fill-opacity","100%").attr("stroke",p.stroke).attr("x",0).attr("y",m).attr("width",l+2*r+g/2).attr("height",t.tn.node().getBBox().height+2*i);t.nn.attr("transform","translate("+(parseFloat(o.attr("width"))+r)+","+n+")"),e.insert("rect","#"+t.nn.node().id).attr("class","er ".concat(_)).attr("fill",p.fill).attr("fill-opacity","100%").attr("stroke",p.stroke).attr("x","".concat(o.attr("x")+o.attr("width"))).attr("y",m).attr("width",c+2*r+g/2).attr("height",t.nn.node().getBBox().height+2*i),m+=Math.max(t.tn.node().getBBox().height,t.nn.node().getBBox().height)+2*i,_="attributeBoxOdd"==_?"attributeBoxEven":"attributeBoxOdd"}))}else f.height=Math.max(p.minEntityHeight,d),t.attr("transform","translate("+f.width/2+","+f.height/2+")");return f}(o,a,t[r].attributes),c=l.width,d=l.height,h=o.insert("rect","#"+s).attr("class","er entityBox").attr("fill",p.fill).attr("fill-opacity","100%").attr("stroke",p.stroke).attr("x",0).attr("y",0).attr("width",c).attr("height",d).node().getBBox();n.setNode(r,{width:h.width,height:h.height,shape:"rect",id:r})})),i},b=function(e){return(e.entityA+e.roleA+e.entityB).replace(/\s/g,"")},v=0,y=function(e,t){h.logger.info("Drawing ER diagram"),s.default.clear();var n=l.a.parser;n.yy=s.default;try{n.parse(e)}catch(e){h.logger.debug("Parsing failed")}var i,a=Object(o.select)("[id='".concat(t,"']"));f.default.insertMarkers(a,p),i=new r.a.Graph({multigraph:!0,directed:!0,compound:!1}).setGraph({rankdir:p.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel((function(){return{}}));var c,m,y=_(a,s.default.getEntities(),i),w=function(e,t){return e.forEach((function(e){t.setEdge(e.entityA,e.entityB,{relationship:e},b(e))})),e}(s.default.getRelationships(),i);d.a.layout(i),c=a,(m=i).nodes().forEach((function(e){void 0!==e&&void 0!==m.node(e)&&c.select("#"+e).attr("transform","translate("+(m.node(e).x-m.node(e).width/2)+","+(m.node(e).y-m.node(e).height/2)+" )")})),w.forEach((function(e){!function(e,t,n,i){v++;var r=n.edge(t.entityA,t.entityB,b(t)),a=Object(o.line)().x((function(e){return e.x})).y((function(e){return e.y})).curve(o.curveBasis),l=e.insert("path","#"+i).attr("class","er relationshipLine").attr("d",a(r.points)).attr("stroke",p.stroke).attr("fill","none");t.relSpec.relType===s.default.Identification.NON_IDENTIFYING&&l.attr("stroke-dasharray","8,8");var c="";switch(p.arrowMarkerAbsolute&&(c=(c=(c=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),t.relSpec.cardA){case s.default.Cardinality.ZERO_OR_ONE:l.attr("marker-end","url("+c+"#"+f.default.ERMarkers.ZERO_OR_ONE_END+")");break;case s.default.Cardinality.ZERO_OR_MORE:l.attr("marker-end","url("+c+"#"+f.default.ERMarkers.ZERO_OR_MORE_END+")");break;case s.default.Cardinality.ONE_OR_MORE:l.attr("marker-end","url("+c+"#"+f.default.ERMarkers.ONE_OR_MORE_END+")");break;case s.default.Cardinality.ONLY_ONE:l.attr("marker-end","url("+c+"#"+f.default.ERMarkers.ONLY_ONE_END+")")}switch(t.relSpec.cardB){case s.default.Cardinality.ZERO_OR_ONE:l.attr("marker-start","url("+c+"#"+f.default.ERMarkers.ZERO_OR_ONE_START+")");break;case s.default.Cardinality.ZERO_OR_MORE:l.attr("marker-start","url("+c+"#"+f.default.ERMarkers.ZERO_OR_MORE_START+")");break;case s.default.Cardinality.ONE_OR_MORE:l.attr("marker-start","url("+c+"#"+f.default.ERMarkers.ONE_OR_MORE_START+")");break;case s.default.Cardinality.ONLY_ONE:l.attr("marker-start","url("+c+"#"+f.default.ERMarkers.ONLY_ONE_START+")")}var d=l.node().getTotalLength(),h=l.node().getPointAtLength(.5*d),g="rel"+v,m=e.append("text").attr("class","er relationshipLabel").attr("id",g).attr("x",h.x).attr("y",h.y).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("style","font-family: "+Object(u.getConfig)().fontFamily+"; font-size: "+p.fontSize+"px").text(t.roleA).node().getBBox();e.insert("rect","#"+g).attr("class","er relationshipLabelBox").attr("x",h.x-m.width/2).attr("y",h.y-m.height/2).attr("width",m.width).attr("height",m.height).attr("fill","white").attr("fill-opacity","85%")}(a,e,i,y)}));var C=p.diagramPadding,S=a.node().getBBox(),k=S.width+2*C,x=S.height+2*C;Object(g.configureSvgSize)(a,x,k,p.useMaxWidth),a.attr("viewBox","".concat(S.x-C," ").concat(S.y-C," ").concat(k," ").concat(x))};t.default={setConf:m,draw:y}},"./src/diagrams/er/parser/erDiagram.jison": /*!************************************************!*\ !*** ./src/diagrams/er/parser/erDiagram.jison ***! \************************************************/ -/*! no static exports found */function(e,t,n){(function(e,r){var i=function(){var e=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},t=[1,2],n=[1,5],r=[6,9,11,23,37],i=[1,17],o=[1,20],s=[1,25],a=[1,26],u=[1,27],l=[1,28],c=[1,37],d=[23,34,35],h=[4,6,9,11,23,37],f=[30,31,32,33],p=[22,27],g={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,entityName:17,relSpec:18,role:19,BLOCK_START:20,attributes:21,BLOCK_STOP:22,ALPHANUM:23,attribute:24,attributeType:25,attributeName:26,ATTRIBUTE_WORD:27,cardinality:28,relType:29,ZERO_OR_ONE:30,ZERO_OR_MORE:31,ONE_OR_MORE:32,ONLY_ONE:33,NON_IDENTIFYING:34,IDENTIFYING:35,WORD:36,open_directive:37,type_directive:38,arg_directive:39,close_directive:40,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",20:"BLOCK_START",22:"BLOCK_STOP",23:"ALPHANUM",27:"ATTRIBUTE_WORD",30:"ZERO_OR_ONE",31:"ZERO_OR_MORE",32:"ONE_OR_MORE",33:"ONLY_ONE",34:"NON_IDENTIFYING",35:"IDENTIFYING",36:"WORD",37:"open_directive",38:"type_directive",39:"arg_directive",40:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,5],[10,4],[10,3],[10,1],[17,1],[21,1],[21,2],[24,2],[25,1],[26,1],[18,3],[28,1],[28,1],[28,1],[28,1],[29,1],[29,1],[19,1],[19,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(e,t,n,r,i,o,s){var a=o.length-1;switch(i){case 1:break;case 3:this.$=[];break;case 4:o[a-1].push(o[a]),this.$=o[a-1];break;case 5:case 6:this.$=o[a];break;case 7:case 8:this.$=[];break;case 12:r.addEntity(o[a-4]),r.addEntity(o[a-2]),r.addRelationship(o[a-4],o[a],o[a-2],o[a-3]);break;case 13:r.addEntity(o[a-3]),r.addAttributes(o[a-3],o[a-1]);break;case 14:r.addEntity(o[a-2]);break;case 15:r.addEntity(o[a]);break;case 16:this.$=o[a];break;case 17:this.$=[o[a]];break;case 18:o[a].push(o[a-1]),this.$=o[a];break;case 19:this.$={attributeType:o[a-1],attributeName:o[a]};break;case 20:case 21:this.$=o[a];break;case 22:this.$={cardA:o[a],relType:o[a-1],cardB:o[a-2]};break;case 23:this.$=r.Cardinality.ZERO_OR_ONE;break;case 24:this.$=r.Cardinality.ZERO_OR_MORE;break;case 25:this.$=r.Cardinality.ONE_OR_MORE;break;case 26:this.$=r.Cardinality.ONLY_ONE;break;case 27:this.$=r.Identification.NON_IDENTIFYING;break;case 28:this.$=r.Identification.IDENTIFYING;break;case 29:this.$=o[a].replace(/"/g,"");break;case 30:this.$=o[a];break;case 31:r.parseDirective("%%{","open_directive");break;case 32:r.parseDirective(o[a],"type_directive");break;case 33:o[a]=o[a].trim().replace(/'/g,'"'),r.parseDirective(o[a],"arg_directive");break;case 34:r.parseDirective("}%%","close_directive","er")}},table:[{3:1,4:t,7:3,12:4,37:n},{1:[3]},e(r,[2,3],{5:6}),{3:7,4:t,7:3,12:4,37:n},{13:8,38:[1,9]},{38:[2,31]},{6:[1,10],7:15,8:11,9:[1,12],10:13,11:[1,14],12:4,17:16,23:i,37:n},{1:[2,2]},{14:18,15:[1,19],40:o},e([15,40],[2,32]),e(r,[2,8],{1:[2,1]}),e(r,[2,4]),{7:15,10:21,12:4,17:16,23:i,37:n},e(r,[2,6]),e(r,[2,7]),e(r,[2,11]),e(r,[2,15],{18:22,28:24,20:[1,23],30:s,31:a,32:u,33:l}),e([6,9,11,15,20,23,30,31,32,33,37],[2,16]),{11:[1,29]},{16:30,39:[1,31]},{11:[2,34]},e(r,[2,5]),{17:32,23:i},{21:33,22:[1,34],24:35,25:36,27:c},{29:38,34:[1,39],35:[1,40]},e(d,[2,23]),e(d,[2,24]),e(d,[2,25]),e(d,[2,26]),e(h,[2,9]),{14:41,40:o},{40:[2,33]},{15:[1,42]},{22:[1,43]},e(r,[2,14]),{21:44,22:[2,17],24:35,25:36,27:c},{26:45,27:[1,46]},{27:[2,20]},{28:47,30:s,31:a,32:u,33:l},e(f,[2,27]),e(f,[2,28]),{11:[1,48]},{19:49,23:[1,51],36:[1,50]},e(r,[2,13]),{22:[2,18]},e(p,[2,19]),e(p,[2,21]),{23:[2,22]},e(h,[2,10]),e(r,[2,12]),e(r,[2,29]),e(r,[2,30])],defaultActions:{5:[2,31],7:[2,2],20:[2,34],31:[2,33],37:[2,20],44:[2,18],47:[2,22]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],r=[],i=[null],o=[],s=this.table,a="",u=0,l=0,c=0,d=2,h=1,f=o.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var m in this.yy)Object.prototype.hasOwnProperty.call(this.yy,m)&&(g.yy[m]=this.yy[m]);p.setInput(e,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var _=p.yylloc;o.push(_);var y=p.options&&p.options.ranges;function v(){var e;return"number"!=typeof(e=r.pop()||p.lex()||h)&&(e instanceof Array&&(e=(r=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,w,C,S,x,L,k,M,D,E={};;){if(C=n[n.length-1],this.defaultActions[C]?S=this.defaultActions[C]:(null==b&&(b=v()),S=s[C]&&s[C][b]),void 0===S||!S.length||!S[0]){var T="";for(L in D=[],s[C])this.terminals_[L]&&L>d&&D.push("'"+this.terminals_[L]+"'");T=p.showPosition?"Parse error on line "+(u+1)+":\n"+p.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(u+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(T,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:_,expected:D})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+b);switch(S[0]){case 1:n.push(b),i.push(p.yytext),o.push(p.yylloc),n.push(S[1]),b=null,w?(b=w,w=null):(l=p.yyleng,a=p.yytext,u=p.yylineno,_=p.yylloc,c>0&&c--);break;case 2:if(k=this.productions_[S[1]][1],E.$=i[i.length-k],E._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(E._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),void 0!==(x=this.performAction.apply(E,[a,l,u,g.yy,S[1],i,o].concat(f))))return x;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),o=o.slice(0,-1*k)),n.push(this.productions_[S[1]][0]),i.push(E.$),o.push(E._$),M=s[n[n.length-2]][n[n.length-1]],n.push(M);break;case 3:return!0}}return!0}},m={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;o<i.length;o++)if((n=this._input.match(this.rules[i[o]]))&&(!t||n[0].length>t[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return this.begin("open_directive"),37;case 1:return this.begin("type_directive"),38;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),40;case 4:return 39;case 5:case 6:break;case 7:return 11;case 8:break;case 9:return 9;case 10:return 36;case 11:return 4;case 12:return this.begin("block"),20;case 13:break;case 14:return 27;case 15:break;case 16:return this.popState(),22;case 17:return t.yytext[0];case 18:return 30;case 19:return 31;case 20:return 32;case 21:return 33;case 22:return 30;case 23:return 31;case 24:return 32;case 25:return 34;case 26:return 35;case 27:case 28:return 34;case 29:return 23;case 30:return t.yytext[0];case 31:return 6}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:\s+)/i,/^(?:[A-Za-z][A-Za-z0-9\-_]*)/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\|o\b)/i,/^(?:\}o\b)/i,/^(?:\}\|)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:[A-Za-z][A-Za-z0-9\-_]*)/i,/^(?:.)/i,/^(?:$)/i],conditions:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},block:{rules:[13,14,15,16,17],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,18,19,20,21,22,23,24,25,26,27,28,29,30,31],inclusive:!0}}};function _(){this.yy={}}return g.lexer=m,_.prototype=g,g.Parser=_,new _}();t.parser=i,t.Parser=i.Parser,t.parse=function(){return i.parse.apply(i,arguments)},t.main=function(r){r[1]||(console.log("Usage: "+r[0]+" FILE"),e.exit(1));var i=n(/*! fs */"./node_modules/node-libs-browser/mock/empty.js").readFileSync(n(/*! path */"./node_modules/path-browserify/index.js").normalize(r[1]),"utf8");return t.parser.parse(i)},n.c[n.s]===r&&t.main(e.argv.slice(1))}).call(this,n(/*! ./../../../../node_modules/process/browser.js */"./node_modules/process/browser.js"),n(/*! ./../../../../node_modules/webpack/buildin/module.js */"./node_modules/webpack/buildin/module.js")(e))},"./src/diagrams/er/styles.js": +/*! no static exports found */function(e,t,n){(function(e,i){var r=function(){var e=function(e,t,n,i){for(n=n||{},i=e.length;i--;n[e[i]]=t);return n},t=[1,2],n=[1,5],i=[6,9,11,23,37],r=[1,17],o=[1,20],s=[1,25],a=[1,26],l=[1,27],c=[1,28],d=[1,37],u=[23,34,35],h=[4,6,9,11,23,37],f=[30,31,32,33],g=[22,27],p={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,entityName:17,relSpec:18,role:19,BLOCK_START:20,attributes:21,BLOCK_STOP:22,ALPHANUM:23,attribute:24,attributeType:25,attributeName:26,ATTRIBUTE_WORD:27,cardinality:28,relType:29,ZERO_OR_ONE:30,ZERO_OR_MORE:31,ONE_OR_MORE:32,ONLY_ONE:33,NON_IDENTIFYING:34,IDENTIFYING:35,WORD:36,open_directive:37,type_directive:38,arg_directive:39,close_directive:40,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",20:"BLOCK_START",22:"BLOCK_STOP",23:"ALPHANUM",27:"ATTRIBUTE_WORD",30:"ZERO_OR_ONE",31:"ZERO_OR_MORE",32:"ONE_OR_MORE",33:"ONLY_ONE",34:"NON_IDENTIFYING",35:"IDENTIFYING",36:"WORD",37:"open_directive",38:"type_directive",39:"arg_directive",40:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,5],[10,4],[10,3],[10,1],[17,1],[21,1],[21,2],[24,2],[25,1],[26,1],[18,3],[28,1],[28,1],[28,1],[28,1],[29,1],[29,1],[19,1],[19,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(e,t,n,i,r,o,s){var a=o.length-1;switch(r){case 1:break;case 3:this.$=[];break;case 4:o[a-1].push(o[a]),this.$=o[a-1];break;case 5:case 6:this.$=o[a];break;case 7:case 8:this.$=[];break;case 12:i.addEntity(o[a-4]),i.addEntity(o[a-2]),i.addRelationship(o[a-4],o[a],o[a-2],o[a-3]);break;case 13:i.addEntity(o[a-3]),i.addAttributes(o[a-3],o[a-1]);break;case 14:i.addEntity(o[a-2]);break;case 15:i.addEntity(o[a]);break;case 16:this.$=o[a];break;case 17:this.$=[o[a]];break;case 18:o[a].push(o[a-1]),this.$=o[a];break;case 19:this.$={attributeType:o[a-1],attributeName:o[a]};break;case 20:case 21:this.$=o[a];break;case 22:this.$={cardA:o[a],relType:o[a-1],cardB:o[a-2]};break;case 23:this.$=i.Cardinality.ZERO_OR_ONE;break;case 24:this.$=i.Cardinality.ZERO_OR_MORE;break;case 25:this.$=i.Cardinality.ONE_OR_MORE;break;case 26:this.$=i.Cardinality.ONLY_ONE;break;case 27:this.$=i.Identification.NON_IDENTIFYING;break;case 28:this.$=i.Identification.IDENTIFYING;break;case 29:this.$=o[a].replace(/"/g,"");break;case 30:this.$=o[a];break;case 31:i.parseDirective("%%{","open_directive");break;case 32:i.parseDirective(o[a],"type_directive");break;case 33:o[a]=o[a].trim().replace(/'/g,'"'),i.parseDirective(o[a],"arg_directive");break;case 34:i.parseDirective("}%%","close_directive","er")}},table:[{3:1,4:t,7:3,12:4,37:n},{1:[3]},e(i,[2,3],{5:6}),{3:7,4:t,7:3,12:4,37:n},{13:8,38:[1,9]},{38:[2,31]},{6:[1,10],7:15,8:11,9:[1,12],10:13,11:[1,14],12:4,17:16,23:r,37:n},{1:[2,2]},{14:18,15:[1,19],40:o},e([15,40],[2,32]),e(i,[2,8],{1:[2,1]}),e(i,[2,4]),{7:15,10:21,12:4,17:16,23:r,37:n},e(i,[2,6]),e(i,[2,7]),e(i,[2,11]),e(i,[2,15],{18:22,28:24,20:[1,23],30:s,31:a,32:l,33:c}),e([6,9,11,15,20,23,30,31,32,33,37],[2,16]),{11:[1,29]},{16:30,39:[1,31]},{11:[2,34]},e(i,[2,5]),{17:32,23:r},{21:33,22:[1,34],24:35,25:36,27:d},{29:38,34:[1,39],35:[1,40]},e(u,[2,23]),e(u,[2,24]),e(u,[2,25]),e(u,[2,26]),e(h,[2,9]),{14:41,40:o},{40:[2,33]},{15:[1,42]},{22:[1,43]},e(i,[2,14]),{21:44,22:[2,17],24:35,25:36,27:d},{26:45,27:[1,46]},{27:[2,20]},{28:47,30:s,31:a,32:l,33:c},e(f,[2,27]),e(f,[2,28]),{11:[1,48]},{19:49,23:[1,51],36:[1,50]},e(i,[2,13]),{22:[2,18]},e(g,[2,19]),e(g,[2,21]),{23:[2,22]},e(h,[2,10]),e(i,[2,12]),e(i,[2,29]),e(i,[2,30])],defaultActions:{5:[2,31],7:[2,2],20:[2,34],31:[2,33],37:[2,20],44:[2,18],47:[2,22]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],i=[],r=[null],o=[],s=this.table,a="",l=0,c=0,d=0,u=2,h=1,f=o.slice.call(arguments,1),g=Object.create(this.lexer),p={yy:{}};for(var m in this.yy)Object.prototype.hasOwnProperty.call(this.yy,m)&&(p.yy[m]=this.yy[m]);g.setInput(e,p.yy),p.yy.lexer=g,p.yy.parser=this,void 0===g.yylloc&&(g.yylloc={});var _=g.yylloc;o.push(_);var b=g.options&&g.options.ranges;function v(){var e;return"number"!=typeof(e=i.pop()||g.lex()||h)&&(e instanceof Array&&(e=(i=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var y,w,C,S,k,x,L,M,D,E={};;){if(C=n[n.length-1],this.defaultActions[C]?S=this.defaultActions[C]:(null==y&&(y=v()),S=s[C]&&s[C][y]),void 0===S||!S.length||!S[0]){var T="";for(x in D=[],s[C])this.terminals_[x]&&x>u&&D.push("'"+this.terminals_[x]+"'");T=g.showPosition?"Parse error on line "+(l+1)+":\n"+g.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[y]||y)+"'":"Parse error on line "+(l+1)+": Unexpected "+(y==h?"end of input":"'"+(this.terminals_[y]||y)+"'"),this.parseError(T,{text:g.match,token:this.terminals_[y]||y,line:g.yylineno,loc:_,expected:D})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+y);switch(S[0]){case 1:n.push(y),r.push(g.yytext),o.push(g.yylloc),n.push(S[1]),y=null,w?(y=w,w=null):(c=g.yyleng,a=g.yytext,l=g.yylineno,_=g.yylloc,d>0&&d--);break;case 2:if(L=this.productions_[S[1]][1],E.$=r[r.length-L],E._$={first_line:o[o.length-(L||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(L||1)].first_column,last_column:o[o.length-1].last_column},b&&(E._$.range=[o[o.length-(L||1)].range[0],o[o.length-1].range[1]]),void 0!==(k=this.performAction.apply(E,[a,c,l,p.yy,S[1],r,o].concat(f))))return k;L&&(n=n.slice(0,-1*L*2),r=r.slice(0,-1*L),o=o.slice(0,-1*L)),n.push(this.productions_[S[1]][0]),r.push(E.$),o.push(E._$),M=s[n[n.length-2]][n[n.length-1]],n.push(M);break;case 3:return!0}}return!0}},m={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in r)this[o]=r[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),o=0;o<r.length;o++)if((n=this._input.match(this.rules[r[o]]))&&(!t||n[0].length>t[0].length)){if(t=n,i=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,r[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,r[i]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,i){switch(n){case 0:return this.begin("open_directive"),37;case 1:return this.begin("type_directive"),38;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),40;case 4:return 39;case 5:case 6:break;case 7:return 11;case 8:break;case 9:return 9;case 10:return 36;case 11:return 4;case 12:return this.begin("block"),20;case 13:break;case 14:return 27;case 15:break;case 16:return this.popState(),22;case 17:return t.yytext[0];case 18:return 30;case 19:return 31;case 20:return 32;case 21:return 33;case 22:return 30;case 23:return 31;case 24:return 32;case 25:return 34;case 26:return 35;case 27:case 28:return 34;case 29:return 23;case 30:return t.yytext[0];case 31:return 6}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:\s+)/i,/^(?:[A-Za-z][A-Za-z0-9\-_]*)/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\|o\b)/i,/^(?:\}o\b)/i,/^(?:\}\|)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:[A-Za-z][A-Za-z0-9\-_]*)/i,/^(?:.)/i,/^(?:$)/i],conditions:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},block:{rules:[13,14,15,16,17],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,18,19,20,21,22,23,24,25,26,27,28,29,30,31],inclusive:!0}}};function _(){this.yy={}}return p.lexer=m,_.prototype=p,p.Parser=_,new _}();t.parser=r,t.Parser=r.Parser,t.parse=function(){return r.parse.apply(r,arguments)},t.main=function(i){i[1]||(console.log("Usage: "+i[0]+" FILE"),e.exit(1));var r=n(/*! fs */"./node_modules/node-libs-browser/mock/empty.js").readFileSync(n(/*! path */"./node_modules/path-browserify/index.js").normalize(i[1]),"utf8");return t.parser.parse(r)},n.c[n.s]===i&&t.main(e.argv.slice(1))}).call(this,n(/*! ./../../../../node_modules/process/browser.js */"./node_modules/process/browser.js"),n(/*! ./../../../../node_modules/webpack/buildin/module.js */"./node_modules/webpack/buildin/module.js")(e))},"./src/diagrams/er/styles.js": /*!***********************************!*\ !*** ./src/diagrams/er/styles.js ***! \***********************************/ @@ -142,23 +142,23 @@ /*!***************************************************!*\ !*** ./src/diagrams/flowchart/flowChartShapes.js ***! \***************************************************/ -/*! exports provided: addToRender, addToRenderV2, default */function(e,t,n){"use strict";n.r(t),n.d(t,"addToRender",(function(){return m})),n.d(t,"addToRenderV2",(function(){return _}));var r=n(/*! dagre-d3 */"dagre-d3"),i=n.n(r);function o(e,t,n){var r=.9*(t.width+t.height),o=[{x:r/2,y:0},{x:r,y:-r/2},{x:r/2,y:-r},{x:0,y:-r/2}],s=y(e,r,r,o);return n.intersect=function(e){return i.a.intersect.polygon(n,o,e)},s}function s(e,t,n){var r=t.height,o=r/4,s=t.width+2*o,a=[{x:o,y:0},{x:s-o,y:0},{x:s,y:-r/2},{x:s-o,y:-r},{x:o,y:-r},{x:0,y:-r/2}],u=y(e,s,r,a);return n.intersect=function(e){return i.a.intersect.polygon(n,a,e)},u}function a(e,t,n){var r=t.width,o=t.height,s=[{x:-o/2,y:0},{x:r,y:0},{x:r,y:-o},{x:-o/2,y:-o},{x:0,y:-o/2}],a=y(e,r,o,s);return n.intersect=function(e){return i.a.intersect.polygon(n,s,e)},a}function u(e,t,n){var r=t.width,o=t.height,s=[{x:-2*o/6,y:0},{x:r-o/6,y:0},{x:r+2*o/6,y:-o},{x:o/6,y:-o}],a=y(e,r,o,s);return n.intersect=function(e){return i.a.intersect.polygon(n,s,e)},a}function l(e,t,n){var r=t.width,o=t.height,s=[{x:2*o/6,y:0},{x:r+o/6,y:0},{x:r-2*o/6,y:-o},{x:-o/6,y:-o}],a=y(e,r,o,s);return n.intersect=function(e){return i.a.intersect.polygon(n,s,e)},a}function c(e,t,n){var r=t.width,o=t.height,s=[{x:-2*o/6,y:0},{x:r+2*o/6,y:0},{x:r-o/6,y:-o},{x:o/6,y:-o}],a=y(e,r,o,s);return n.intersect=function(e){return i.a.intersect.polygon(n,s,e)},a}function d(e,t,n){var r=t.width,o=t.height,s=[{x:o/6,y:0},{x:r-o/6,y:0},{x:r+2*o/6,y:-o},{x:-2*o/6,y:-o}],a=y(e,r,o,s);return n.intersect=function(e){return i.a.intersect.polygon(n,s,e)},a}function h(e,t,n){var r=t.width,o=t.height,s=[{x:0,y:0},{x:r+o/2,y:0},{x:r,y:-o/2},{x:r+o/2,y:-o},{x:0,y:-o}],a=y(e,r,o,s);return n.intersect=function(e){return i.a.intersect.polygon(n,s,e)},a}function f(e,t,n){var r=t.height,o=t.width+r/4,s=e.insert("rect",":first-child").attr("rx",r/2).attr("ry",r/2).attr("x",-o/2).attr("y",-r/2).attr("width",o).attr("height",r);return n.intersect=function(e){return i.a.intersect.rect(n,e)},s}function p(e,t,n){var r=t.width,o=t.height,s=[{x:0,y:0},{x:r,y:0},{x:r,y:-o},{x:0,y:-o},{x:0,y:0},{x:-8,y:0},{x:r+8,y:0},{x:r+8,y:-o},{x:-8,y:-o},{x:-8,y:0}],a=y(e,r,o,s);return n.intersect=function(e){return i.a.intersect.polygon(n,s,e)},a}function g(e,t,n){var r=t.width,o=r/2,s=o/(2.5+r/50),a=t.height+s,u="M 0,"+s+" a "+o+","+s+" 0,0,0 "+r+" 0 a "+o+","+s+" 0,0,0 "+-r+" 0 l 0,"+a+" a "+o+","+s+" 0,0,0 "+r+" 0 l 0,"+-a,l=e.attr("label-offset-y",s).insert("path",":first-child").attr("d",u).attr("transform","translate("+-r/2+","+-(a/2+s)+")");return n.intersect=function(e){var t=i.a.intersect.rect(n,e),r=t.x-n.x;if(0!=o&&(Math.abs(r)<n.width/2||Math.abs(r)==n.width/2&&Math.abs(t.y-n.y)>n.height/2-s)){var a=s*s*(1-r*r/(o*o));0!=a&&(a=Math.sqrt(a)),a=s-a,e.y-n.y>0&&(a=-a),t.y+=a}return t},l}function m(e){e.shapes().question=o,e.shapes().hexagon=s,e.shapes().stadium=f,e.shapes().subroutine=p,e.shapes().cylinder=g,e.shapes().rect_left_inv_arrow=a,e.shapes().lean_right=u,e.shapes().lean_left=l,e.shapes().trapezoid=c,e.shapes().inv_trapezoid=d,e.shapes().rect_right_inv_arrow=h}function _(e){e({question:o}),e({hexagon:s}),e({stadium:f}),e({subroutine:p}),e({cylinder:g}),e({rect_left_inv_arrow:a}),e({lean_right:u}),e({lean_left:l}),e({trapezoid:c}),e({inv_trapezoid:d}),e({rect_right_inv_arrow:h})}function y(e,t,n,r){return e.insert("polygon",":first-child").attr("points",r.map((function(e){return e.x+","+e.y})).join(" ")).attr("transform","translate("+-t/2+","+n/2+")")}t.default={addToRender:m,addToRenderV2:_}},"./src/diagrams/flowchart/flowDb.js": +/*! exports provided: addToRender, addToRenderV2, default */function(e,t,n){"use strict";n.r(t),n.d(t,"addToRender",(function(){return m})),n.d(t,"addToRenderV2",(function(){return _}));var i=n(/*! dagre-d3 */"dagre-d3"),r=n.n(i);function o(e,t,n){var i=.9*(t.width+t.height),o=[{x:i/2,y:0},{x:i,y:-i/2},{x:i/2,y:-i},{x:0,y:-i/2}],s=b(e,i,i,o);return n.intersect=function(e){return r.a.intersect.polygon(n,o,e)},s}function s(e,t,n){var i=t.height,o=i/4,s=t.width+2*o,a=[{x:o,y:0},{x:s-o,y:0},{x:s,y:-i/2},{x:s-o,y:-i},{x:o,y:-i},{x:0,y:-i/2}],l=b(e,s,i,a);return n.intersect=function(e){return r.a.intersect.polygon(n,a,e)},l}function a(e,t,n){var i=t.width,o=t.height,s=[{x:-o/2,y:0},{x:i,y:0},{x:i,y:-o},{x:-o/2,y:-o},{x:0,y:-o/2}],a=b(e,i,o,s);return n.intersect=function(e){return r.a.intersect.polygon(n,s,e)},a}function l(e,t,n){var i=t.width,o=t.height,s=[{x:-2*o/6,y:0},{x:i-o/6,y:0},{x:i+2*o/6,y:-o},{x:o/6,y:-o}],a=b(e,i,o,s);return n.intersect=function(e){return r.a.intersect.polygon(n,s,e)},a}function c(e,t,n){var i=t.width,o=t.height,s=[{x:2*o/6,y:0},{x:i+o/6,y:0},{x:i-2*o/6,y:-o},{x:-o/6,y:-o}],a=b(e,i,o,s);return n.intersect=function(e){return r.a.intersect.polygon(n,s,e)},a}function d(e,t,n){var i=t.width,o=t.height,s=[{x:-2*o/6,y:0},{x:i+2*o/6,y:0},{x:i-o/6,y:-o},{x:o/6,y:-o}],a=b(e,i,o,s);return n.intersect=function(e){return r.a.intersect.polygon(n,s,e)},a}function u(e,t,n){var i=t.width,o=t.height,s=[{x:o/6,y:0},{x:i-o/6,y:0},{x:i+2*o/6,y:-o},{x:-2*o/6,y:-o}],a=b(e,i,o,s);return n.intersect=function(e){return r.a.intersect.polygon(n,s,e)},a}function h(e,t,n){var i=t.width,o=t.height,s=[{x:0,y:0},{x:i+o/2,y:0},{x:i,y:-o/2},{x:i+o/2,y:-o},{x:0,y:-o}],a=b(e,i,o,s);return n.intersect=function(e){return r.a.intersect.polygon(n,s,e)},a}function f(e,t,n){var i=t.height,o=t.width+i/4,s=e.insert("rect",":first-child").attr("rx",i/2).attr("ry",i/2).attr("x",-o/2).attr("y",-i/2).attr("width",o).attr("height",i);return n.intersect=function(e){return r.a.intersect.rect(n,e)},s}function g(e,t,n){var i=t.width,o=t.height,s=[{x:0,y:0},{x:i,y:0},{x:i,y:-o},{x:0,y:-o},{x:0,y:0},{x:-8,y:0},{x:i+8,y:0},{x:i+8,y:-o},{x:-8,y:-o},{x:-8,y:0}],a=b(e,i,o,s);return n.intersect=function(e){return r.a.intersect.polygon(n,s,e)},a}function p(e,t,n){var i=t.width,o=i/2,s=o/(2.5+i/50),a=t.height+s,l="M 0,"+s+" a "+o+","+s+" 0,0,0 "+i+" 0 a "+o+","+s+" 0,0,0 "+-i+" 0 l 0,"+a+" a "+o+","+s+" 0,0,0 "+i+" 0 l 0,"+-a,c=e.attr("label-offset-y",s).insert("path",":first-child").attr("d",l).attr("transform","translate("+-i/2+","+-(a/2+s)+")");return n.intersect=function(e){var t=r.a.intersect.rect(n,e),i=t.x-n.x;if(0!=o&&(Math.abs(i)<n.width/2||Math.abs(i)==n.width/2&&Math.abs(t.y-n.y)>n.height/2-s)){var a=s*s*(1-i*i/(o*o));0!=a&&(a=Math.sqrt(a)),a=s-a,e.y-n.y>0&&(a=-a),t.y+=a}return t},c}function m(e){e.shapes().question=o,e.shapes().hexagon=s,e.shapes().stadium=f,e.shapes().subroutine=g,e.shapes().cylinder=p,e.shapes().rect_left_inv_arrow=a,e.shapes().lean_right=l,e.shapes().lean_left=c,e.shapes().trapezoid=d,e.shapes().inv_trapezoid=u,e.shapes().rect_right_inv_arrow=h}function _(e){e({question:o}),e({hexagon:s}),e({stadium:f}),e({subroutine:g}),e({cylinder:p}),e({rect_left_inv_arrow:a}),e({lean_right:l}),e({lean_left:c}),e({trapezoid:d}),e({inv_trapezoid:u}),e({rect_right_inv_arrow:h})}function b(e,t,n,i){return e.insert("polygon",":first-child").attr("points",i.map((function(e){return e.x+","+e.y})).join(" ")).attr("transform","translate("+-t/2+","+n/2+")")}t.default={addToRender:m,addToRenderV2:_}},"./src/diagrams/flowchart/flowDb.js": /*!******************************************!*\ !*** ./src/diagrams/flowchart/flowDb.js ***! \******************************************/ -/*! exports provided: parseDirective, lookUpDomId, addVertex, addSingleLink, addLink, updateLinkInterpolate, updateLink, addClass, setDirection, setClass, setLink, getTooltip, setClickEvent, bindFunctions, getDirection, getVertices, getEdges, getClasses, clear, setGen, defaultStyle, addSubGraph, getDepthFirstPos, indexNodes, getSubGraphs, firstGraph, default */function(e,t,n){"use strict";n.r(t),n.d(t,"parseDirective",(function(){return S})),n.d(t,"lookUpDomId",(function(){return x})),n.d(t,"addVertex",(function(){return L})),n.d(t,"addSingleLink",(function(){return k})),n.d(t,"addLink",(function(){return M})),n.d(t,"updateLinkInterpolate",(function(){return D})),n.d(t,"updateLink",(function(){return E})),n.d(t,"addClass",(function(){return T})),n.d(t,"setDirection",(function(){return N})),n.d(t,"setClass",(function(){return O})),n.d(t,"setLink",(function(){return I})),n.d(t,"getTooltip",(function(){return P})),n.d(t,"setClickEvent",(function(){return R})),n.d(t,"bindFunctions",(function(){return F})),n.d(t,"getDirection",(function(){return Y})),n.d(t,"getVertices",(function(){return j})),n.d(t,"getEdges",(function(){return B})),n.d(t,"getClasses",(function(){return W})),n.d(t,"clear",(function(){return V})),n.d(t,"setGen",(function(){return z})),n.d(t,"defaultStyle",(function(){return U})),n.d(t,"addSubGraph",(function(){return q})),n.d(t,"getDepthFirstPos",(function(){return Z})),n.d(t,"indexNodes",(function(){return X})),n.d(t,"getSubGraphs",(function(){return J})),n.d(t,"firstGraph",(function(){return Q}));var r=n(/*! d3 */"d3"),i=n(/*! ../../utils */"./src/utils.js"),o=n(/*! ../../config */"./src/config.js"),s=n(/*! ../common/common */"./src/diagrams/common/common.js"),a=n(/*! ../../mermaidAPI */"./src/mermaidAPI.js"),u=n(/*! ../../logger */"./src/logger.js");function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var c,d,h=0,f=o.getConfig(),p={},g=[],m=[],_=[],y={},v={},b=0,w=!0,C=[],S=function(e,t,n){a.default.parseDirective(this,e,t,n)},x=function(e){for(var t=Object.keys(p),n=0;n<t.length;n++)if(p[t[n]].id===e)return p[t[n]].domId;return e},L=function(e,t,n,r,i){var a,u=e;void 0!==u&&0!==u.trim().length&&(void 0===p[u]&&(p[u]={id:u,domId:"flowchart-"+u+"-"+h,styles:[],classes:[]}),h++,void 0!==t?(f=o.getConfig(),'"'===(a=s.default.sanitizeText(t.trim(),f))[0]&&'"'===a[a.length-1]&&(a=a.substring(1,a.length-1)),p[u].text=a):void 0===p[u].text&&(p[u].text=e),void 0!==n&&(p[u].type=n),null!=r&&r.forEach((function(e){p[u].styles.push(e)})),null!=i&&i.forEach((function(e){p[u].classes.push(e)})))},k=function(e,t,n,r){var i={start:e,end:t,type:void 0,text:""};void 0!==(r=n.text)&&(i.text=s.default.sanitizeText(r.trim(),f),'"'===i.text[0]&&'"'===i.text[i.text.length-1]&&(i.text=i.text.substring(1,i.text.length-1))),void 0!==n&&(i.type=n.type,i.stroke=n.stroke,i.length=n.length),g.push(i)},M=function(e,t,n,r){var i,o;for(i=0;i<e.length;i++)for(o=0;o<t.length;o++)k(e[i],t[o],n,r)},D=function(e,t){e.forEach((function(e){"default"===e?g.defaultInterpolate=t:g[e].interpolate=t}))},E=function(e,t){e.forEach((function(e){"default"===e?g.defaultStyle=t:(-1===i.default.isSubstringInArray("fill",t)&&t.push("fill:none"),g[e].style=t)}))},T=function(e,t){void 0===m[e]&&(m[e]={id:e,styles:[],textStyles:[]}),null!=t&&t.forEach((function(t){if(t.match("color")){var n=t.replace("fill","bgFill").replace("color","fill");m[e].textStyles.push(n)}m[e].styles.push(t)}))},N=function(e){(c=e).match(/.*</)&&(c="RL"),c.match(/.*\^/)&&(c="BT"),c.match(/.*>/)&&(c="LR"),c.match(/.*v/)&&(c="TB")},O=function(e,t){e.split(",").forEach((function(e){var n=e;void 0!==p[n]&&p[n].classes.push(t),void 0!==y[n]&&y[n].classes.push(t)}))},A=function(e,t){e.split(",").forEach((function(e){void 0!==t&&(v["gen-1"===d?x(e):e]=s.default.sanitizeText(t,f))}))},I=function(e,t,n,r){e.split(",").forEach((function(e){void 0!==p[e]&&(p[e].link=i.default.formatUrl(t,f),p[e].linkTarget=r)})),A(e,n),O(e,"clickable")},P=function(e){return v[e]},R=function(e,t,n){e.split(",").forEach((function(e){!function(e,t){var n=x(e);"loose"===o.getConfig().securityLevel&&void 0!==t&&void 0!==p[e]&&(p[e].haveCallback=!0,C.push((function(){var r=document.querySelector('[id="'.concat(n,'"]'));null!==r&&r.addEventListener("click",(function(){i.default.runFunc(t,e)}),!1)})))}(e,t)})),A(e,n),O(e,"clickable")},F=function(e){C.forEach((function(t){t(e)}))},Y=function(){return c.trim()},j=function(){return p},B=function(){return g},W=function(){return m},H=function(e){var t=Object(r.select)(".mermaidTooltip");null===(t._groups||t)[0][0]&&(t=Object(r.select)("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),Object(r.select)(e).select("svg").selectAll("g.node").on("mouseover",(function(){var e=Object(r.select)(this);if(null!==e.attr("title")){var n=this.getBoundingClientRect();t.transition().duration(200).style("opacity",".9"),t.html(e.attr("title")).style("left",window.scrollX+n.left+(n.right-n.left)/2+"px").style("top",window.scrollY+n.top-14+document.body.scrollTop+"px"),e.classed("hover",!0)}})).on("mouseout",(function(){t.transition().duration(500).style("opacity",0),Object(r.select)(this).classed("hover",!1)}))};C.push(H);var V=function(e){p={},m={},g=[],(C=[]).push(H),_=[],y={},b=0,v=[],w=!0,d=e||"gen-1"},z=function(e){d=e||"gen-1"},U=function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},q=function(e,t,n){var r=e.trim(),i=n;e===n&&n.match(/\s/)&&(r=void 0);var o,a,c,h=[];if(o=h.concat.apply(h,t),a={boolean:{},number:{},string:{}},c=[],h=o.filter((function(e){var t=l(e);return""!==e.trim()&&(t in a?!a[t].hasOwnProperty(e)&&(a[t][e]=!0):!(c.indexOf(e)>=0)&&c.push(e))})),"gen-1"===d){u.logger.warn("LOOKING UP");for(var p=0;p<h.length;p++)h[p]=x(h[p])}r=r||"subGraph"+b,i=i||"",i=s.default.sanitizeText(i,f),b+=1;var g={id:r,nodes:h,title:i.trim(),classes:[]};return u.logger.info("Adding",g.id,g.nodes),g.nodes=te(g,_).nodes,_.push(g),y[r]=g,r},K=function(e){for(var t=0;t<_.length;t++)if(_[t].id===e)return t;return-1},G=-1,$=[],Z=function(e){return $[e]},X=function(){G=-1,_.length>0&&function e(t,n){var r=_[n].nodes;if(!((G+=1)>2e3)){if($[G]=n,_[n].id===t)return{result:!0,count:0};for(var i=0,o=1;i<r.length;){var s=K(r[i]);if(s>=0){var a=e(t,s);if(a.result)return{result:!0,count:o+a.count};o+=a.count}i+=1}return{result:!1,count:o}}}("none",_.length-1)},J=function(){return _},Q=function(){return!!w&&(w=!1,!0)},ee=function(e,t){var n=!1;return e.forEach((function(e){e.nodes.indexOf(t)>=0&&(n=!0)})),n},te=function(e,t){var n=[];return e.nodes.forEach((function(r,i){ee(t,r)||n.push(e.nodes[i])})),{nodes:n}};t.default={parseDirective:S,defaultConfig:function(){return o.defaultConfig.flowchart},addVertex:L,lookUpDomId:x,addLink:M,updateLinkInterpolate:D,updateLink:E,addClass:T,setDirection:N,setClass:O,getTooltip:P,setClickEvent:R,setLink:I,bindFunctions:F,getDirection:Y,getVertices:j,getEdges:B,getClasses:W,clear:V,setGen:z,defaultStyle:U,addSubGraph:q,getDepthFirstPos:Z,indexNodes:X,getSubGraphs:J,destructLink:function(e,t){var n,r=function(e){var t=e.trim(),n=t.slice(0,-1),r="arrow_open";switch(t.slice(-1)){case"x":r="arrow_cross","x"===t[0]&&(r="double_"+r,n=n.slice(1));break;case">":r="arrow_point","<"===t[0]&&(r="double_"+r,n=n.slice(1));break;case"o":r="arrow_circle","o"===t[0]&&(r="double_"+r,n=n.slice(1))}var i="normal",o=n.length-1;"="===n[0]&&(i="thick");var s=function(e,t){for(var n=t.length,r=0,i=0;i<n;++i)t[i]===e&&++r;return r}(".",n);return s&&(i="dotted",o=s),{type:r,stroke:i,length:o}}(e);if(t){if((n=function(e){var t=e.trim(),n="arrow_open";switch(t[0]){case"<":n="arrow_point",t=t.slice(1);break;case"x":n="arrow_cross",t=t.slice(1);break;case"o":n="arrow_circle",t=t.slice(1)}var r="normal";return-1!==t.indexOf("=")&&(r="thick"),-1!==t.indexOf(".")&&(r="dotted"),{type:n,stroke:r}}(t)).stroke!==r.stroke)return{type:"INVALID",stroke:"INVALID"};if("arrow_open"===n.type)n.type=r.type;else{if(n.type!==r.type)return{type:"INVALID",stroke:"INVALID"};n.type="double_"+n.type}return"double_arrow"===n.type&&(n.type="double_arrow_point"),n.length=r.length,n}return r},lex:{firstGraph:Q},exists:ee,makeUniq:te}},"./src/diagrams/flowchart/flowRenderer-v2.js": +/*! exports provided: parseDirective, lookUpDomId, addVertex, addSingleLink, addLink, updateLinkInterpolate, updateLink, addClass, setDirection, setClass, setLink, getTooltip, setClickEvent, bindFunctions, getDirection, getVertices, getEdges, getClasses, clear, setGen, defaultStyle, addSubGraph, getDepthFirstPos, indexNodes, getSubGraphs, firstGraph, default */function(e,t,n){"use strict";n.r(t),n.d(t,"parseDirective",(function(){return S})),n.d(t,"lookUpDomId",(function(){return k})),n.d(t,"addVertex",(function(){return x})),n.d(t,"addSingleLink",(function(){return L})),n.d(t,"addLink",(function(){return M})),n.d(t,"updateLinkInterpolate",(function(){return D})),n.d(t,"updateLink",(function(){return E})),n.d(t,"addClass",(function(){return T})),n.d(t,"setDirection",(function(){return O})),n.d(t,"setClass",(function(){return N})),n.d(t,"setLink",(function(){return A})),n.d(t,"getTooltip",(function(){return R})),n.d(t,"setClickEvent",(function(){return P})),n.d(t,"bindFunctions",(function(){return j})),n.d(t,"getDirection",(function(){return F})),n.d(t,"getVertices",(function(){return B})),n.d(t,"getEdges",(function(){return W})),n.d(t,"getClasses",(function(){return H})),n.d(t,"clear",(function(){return V})),n.d(t,"setGen",(function(){return z})),n.d(t,"defaultStyle",(function(){return U})),n.d(t,"addSubGraph",(function(){return $})),n.d(t,"getDepthFirstPos",(function(){return Z})),n.d(t,"indexNodes",(function(){return J})),n.d(t,"getSubGraphs",(function(){return X})),n.d(t,"firstGraph",(function(){return Q}));var i=n(/*! d3 */"d3"),r=n(/*! ../../utils */"./src/utils.js"),o=n(/*! ../../config */"./src/config.js"),s=n(/*! ../common/common */"./src/diagrams/common/common.js"),a=n(/*! ../../mermaidAPI */"./src/mermaidAPI.js"),l=n(/*! ../../logger */"./src/logger.js");function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var d,u,h=0,f=o.getConfig(),g={},p=[],m=[],_=[],b={},v={},y=0,w=!0,C=[],S=function(e,t,n){a.default.parseDirective(this,e,t,n)},k=function(e){for(var t=Object.keys(g),n=0;n<t.length;n++)if(g[t[n]].id===e)return g[t[n]].domId;return e},x=function(e,t,n,i,r){var a,l=e;void 0!==l&&0!==l.trim().length&&(void 0===g[l]&&(g[l]={id:l,domId:"flowchart-"+l+"-"+h,styles:[],classes:[]}),h++,void 0!==t?(f=o.getConfig(),'"'===(a=s.default.sanitizeText(t.trim(),f))[0]&&'"'===a[a.length-1]&&(a=a.substring(1,a.length-1)),g[l].text=a):void 0===g[l].text&&(g[l].text=e),void 0!==n&&(g[l].type=n),null!=i&&i.forEach((function(e){g[l].styles.push(e)})),null!=r&&r.forEach((function(e){g[l].classes.push(e)})))},L=function(e,t,n,i){var r={start:e,end:t,type:void 0,text:""};void 0!==(i=n.text)&&(r.text=s.default.sanitizeText(i.trim(),f),'"'===r.text[0]&&'"'===r.text[r.text.length-1]&&(r.text=r.text.substring(1,r.text.length-1))),void 0!==n&&(r.type=n.type,r.stroke=n.stroke,r.length=n.length),p.push(r)},M=function(e,t,n,i){var r,o;for(r=0;r<e.length;r++)for(o=0;o<t.length;o++)L(e[r],t[o],n,i)},D=function(e,t){e.forEach((function(e){"default"===e?p.defaultInterpolate=t:p[e].interpolate=t}))},E=function(e,t){e.forEach((function(e){"default"===e?p.defaultStyle=t:(-1===r.default.isSubstringInArray("fill",t)&&t.push("fill:none"),p[e].style=t)}))},T=function(e,t){void 0===m[e]&&(m[e]={id:e,styles:[],textStyles:[]}),null!=t&&t.forEach((function(t){if(t.match("color")){var n=t.replace("fill","bgFill").replace("color","fill");m[e].textStyles.push(n)}m[e].styles.push(t)}))},O=function(e){(d=e).match(/.*</)&&(d="RL"),d.match(/.*\^/)&&(d="BT"),d.match(/.*>/)&&(d="LR"),d.match(/.*v/)&&(d="TB")},N=function(e,t){e.split(",").forEach((function(e){var n=e;void 0!==g[n]&&g[n].classes.push(t),void 0!==b[n]&&b[n].classes.push(t)}))},I=function(e,t){e.split(",").forEach((function(e){void 0!==t&&(v["gen-1"===u?k(e):e]=s.default.sanitizeText(t,f))}))},A=function(e,t,n,i){e.split(",").forEach((function(e){void 0!==g[e]&&(g[e].link=r.default.formatUrl(t,f),g[e].linkTarget=i)})),I(e,n),N(e,"clickable")},R=function(e){return v[e]},P=function(e,t,n){e.split(",").forEach((function(e){!function(e,t){var n=k(e);"loose"===o.getConfig().securityLevel&&void 0!==t&&void 0!==g[e]&&(g[e].haveCallback=!0,C.push((function(){var i=document.querySelector('[id="'.concat(n,'"]'));null!==i&&i.addEventListener("click",(function(){r.default.runFunc(t,e)}),!1)})))}(e,t)})),I(e,n),N(e,"clickable")},j=function(e){C.forEach((function(t){t(e)}))},F=function(){return d.trim()},B=function(){return g},W=function(){return p},H=function(){return m},Y=function(e){var t=Object(i.select)(".mermaidTooltip");null===(t._groups||t)[0][0]&&(t=Object(i.select)("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),Object(i.select)(e).select("svg").selectAll("g.node").on("mouseover",(function(){var e=Object(i.select)(this);if(null!==e.attr("title")){var n=this.getBoundingClientRect();t.transition().duration(200).style("opacity",".9"),t.html(e.attr("title")).style("left",window.scrollX+n.left+(n.right-n.left)/2+"px").style("top",window.scrollY+n.top-14+document.body.scrollTop+"px"),e.classed("hover",!0)}})).on("mouseout",(function(){t.transition().duration(500).style("opacity",0),Object(i.select)(this).classed("hover",!1)}))};C.push(Y);var V=function(e){g={},m={},p=[],(C=[]).push(Y),_=[],b={},y=0,v=[],w=!0,u=e||"gen-1"},z=function(e){u=e||"gen-1"},U=function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},$=function(e,t,n){var i=e.trim(),r=n;e===n&&n.match(/\s/)&&(i=void 0);var o,a,d,h=[];if(o=h.concat.apply(h,t),a={boolean:{},number:{},string:{}},d=[],h=o.filter((function(e){var t=c(e);return""!==e.trim()&&(t in a?!a[t].hasOwnProperty(e)&&(a[t][e]=!0):!(d.indexOf(e)>=0)&&d.push(e))})),"gen-1"===u){l.logger.warn("LOOKING UP");for(var g=0;g<h.length;g++)h[g]=k(h[g])}i=i||"subGraph"+y,r=r||"",r=s.default.sanitizeText(r,f),y+=1;var p={id:i,nodes:h,title:r.trim(),classes:[]};return l.logger.info("Adding",p.id,p.nodes),p.nodes=te(p,_).nodes,_.push(p),b[i]=p,i},q=function(e){for(var t=0;t<_.length;t++)if(_[t].id===e)return t;return-1},K=-1,G=[],Z=function(e){return G[e]},J=function(){K=-1,_.length>0&&function e(t,n){var i=_[n].nodes;if(!((K+=1)>2e3)){if(G[K]=n,_[n].id===t)return{result:!0,count:0};for(var r=0,o=1;r<i.length;){var s=q(i[r]);if(s>=0){var a=e(t,s);if(a.result)return{result:!0,count:o+a.count};o+=a.count}r+=1}return{result:!1,count:o}}}("none",_.length-1)},X=function(){return _},Q=function(){return!!w&&(w=!1,!0)},ee=function(e,t){var n=!1;return e.forEach((function(e){e.nodes.indexOf(t)>=0&&(n=!0)})),n},te=function(e,t){var n=[];return e.nodes.forEach((function(i,r){ee(t,i)||n.push(e.nodes[r])})),{nodes:n}};t.default={parseDirective:S,defaultConfig:function(){return o.defaultConfig.flowchart},addVertex:x,lookUpDomId:k,addLink:M,updateLinkInterpolate:D,updateLink:E,addClass:T,setDirection:O,setClass:N,getTooltip:R,setClickEvent:P,setLink:A,bindFunctions:j,getDirection:F,getVertices:B,getEdges:W,getClasses:H,clear:V,setGen:z,defaultStyle:U,addSubGraph:$,getDepthFirstPos:Z,indexNodes:J,getSubGraphs:X,destructLink:function(e,t){var n,i=function(e){var t=e.trim(),n=t.slice(0,-1),i="arrow_open";switch(t.slice(-1)){case"x":i="arrow_cross","x"===t[0]&&(i="double_"+i,n=n.slice(1));break;case">":i="arrow_point","<"===t[0]&&(i="double_"+i,n=n.slice(1));break;case"o":i="arrow_circle","o"===t[0]&&(i="double_"+i,n=n.slice(1))}var r="normal",o=n.length-1;"="===n[0]&&(r="thick");var s=function(e,t){for(var n=t.length,i=0,r=0;r<n;++r)t[r]===e&&++i;return i}(".",n);return s&&(r="dotted",o=s),{type:i,stroke:r,length:o}}(e);if(t){if((n=function(e){var t=e.trim(),n="arrow_open";switch(t[0]){case"<":n="arrow_point",t=t.slice(1);break;case"x":n="arrow_cross",t=t.slice(1);break;case"o":n="arrow_circle",t=t.slice(1)}var i="normal";return-1!==t.indexOf("=")&&(i="thick"),-1!==t.indexOf(".")&&(i="dotted"),{type:n,stroke:i}}(t)).stroke!==i.stroke)return{type:"INVALID",stroke:"INVALID"};if("arrow_open"===n.type)n.type=i.type;else{if(n.type!==i.type)return{type:"INVALID",stroke:"INVALID"};n.type="double_"+n.type}return"double_arrow"===n.type&&(n.type="double_arrow_point"),n.length=i.length,n}return i},lex:{firstGraph:Q},exists:ee,makeUniq:te}},"./src/diagrams/flowchart/flowRenderer-v2.js": /*!***************************************************!*\ !*** ./src/diagrams/flowchart/flowRenderer-v2.js ***! \***************************************************/ -/*! exports provided: setConf, addVertices, addEdges, getClasses, draw, default */function(e,t,n){"use strict";n.r(t),n.d(t,"setConf",(function(){return _})),n.d(t,"addVertices",(function(){return y})),n.d(t,"addEdges",(function(){return v})),n.d(t,"getClasses",(function(){return b})),n.d(t,"draw",(function(){return w}));var r=n(/*! graphlib */"graphlib"),i=n.n(r),o=n(/*! d3 */"d3"),s=n(/*! ./flowDb */"./src/diagrams/flowchart/flowDb.js"),a=n(/*! ./parser/flow */"./src/diagrams/flowchart/parser/flow.jison"),u=n.n(a),l=n(/*! ../../config */"./src/config.js"),c=n(/*! ../../dagre-wrapper/index.js */"./src/dagre-wrapper/index.js"),d=n(/*! dagre-d3/lib/label/add-html-label.js */"dagre-d3/lib/label/add-html-label.js"),h=n.n(d),f=n(/*! ../../logger */"./src/logger.js"),p=n(/*! ../common/common */"./src/diagrams/common/common.js"),g=n(/*! ../../utils */"./src/utils.js"),m={},_=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)m[t[n]]=e[t[n]]},y=function(e,t,n){var r=Object(o.select)('[id="'.concat(n,'"]'));Object.keys(e).forEach((function(n){var i=e[n],o="default";i.classes.length>0&&(o=i.classes.join(" "));var a,u=Object(g.getStylesFromArray)(i.styles),c=void 0!==i.text?i.text:i.id;if(Object(l.getConfig)().flowchart.htmlLabels){var d={label:c.replace(/fa[lrsb]?:fa-[\w-]+/g,(function(e){return"<i class='".concat(e.replace(":"," "),"'></i>")}))};(a=h()(r,d).node()).parentNode.removeChild(a)}else{var m=document.createElementNS("http://www.w3.org/2000/svg","text");m.setAttribute("style",u.labelStyle.replace("color:","fill:"));for(var _=c.split(p.default.lineBreakRegex),y=0;y<_.length;y++){var v=document.createElementNS("http://www.w3.org/2000/svg","tspan");v.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),v.setAttribute("dy","1em"),v.setAttribute("x","1"),v.textContent=_[y],m.appendChild(v)}a=m}var b=0,w="";switch(i.type){case"round":b=5,w="rect";break;case"square":w="rect";break;case"diamond":w="question";break;case"hexagon":w="hexagon";break;case"odd":w="rect_left_inv_arrow";break;case"lean_right":w="lean_right";break;case"lean_left":w="lean_left";break;case"trapezoid":w="trapezoid";break;case"inv_trapezoid":w="inv_trapezoid";break;case"odd_right":w="rect_left_inv_arrow";break;case"circle":w="circle";break;case"ellipse":w="ellipse";break;case"stadium":w="stadium";break;case"subroutine":w="subroutine";break;case"cylinder":w="cylinder";break;case"group":w="rect";break;default:w="rect"}t.setNode(i.id,{labelStyle:u.labelStyle,shape:w,labelText:c,rx:b,ry:b,class:o,style:u.style,id:i.id,link:i.link,linkTarget:i.linkTarget,tooltip:s.default.getTooltip(i.id)||"",domId:s.default.lookUpDomId(i.id),haveCallback:i.haveCallback,width:"group"===i.type?500:void 0,type:i.type,padding:Object(l.getConfig)().flowchart.padding}),f.logger.info("setNode",{labelStyle:u.labelStyle,shape:w,labelText:c,rx:b,ry:b,class:o,style:u.style,id:i.id,domId:s.default.lookUpDomId(i.id),width:"group"===i.type?500:void 0,type:i.type,padding:Object(l.getConfig)().flowchart.padding})}))},v=function(e,t){var n,r,i=0;if(void 0!==e.defaultStyle){var s=Object(g.getStylesFromArray)(e.defaultStyle);n=s.style,r=s.labelStyle}e.forEach((function(s){i++;var a="L-"+s.start+"-"+s.end,u="LS-"+s.start,l="LE-"+s.end,c={style:"",labelStyle:""};switch(c.minlen=s.length||1,"arrow_open"===s.type?c.arrowhead="none":c.arrowhead="normal",c.arrowTypeStart="arrow_open",c.arrowTypeEnd="arrow_open",s.type){case"double_arrow_cross":c.arrowTypeStart="arrow_cross";case"arrow_cross":c.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":c.arrowTypeStart="arrow_point";case"arrow_point":c.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":c.arrowTypeStart="arrow_circle";case"arrow_circle":c.arrowTypeEnd="arrow_circle"}var d="",h="";switch(s.stroke){case"normal":d="fill:none;",void 0!==n&&(d=n),void 0!==r&&(h=r),c.thickness="normal",c.pattern="solid";break;case"dotted":c.thickness="normal",c.pattern="dotted",c.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":c.thickness="thick",c.pattern="solid",c.style="stroke-width: 3.5px;fill:none;"}if(void 0!==s.style){var f=Object(g.getStylesFromArray)(s.style);d=f.style,h=f.labelStyle}c.style=c.style+=d,c.labelStyle=c.labelStyle+=h,void 0!==s.interpolate?c.curve=Object(g.interpolateToCurve)(s.interpolate,o.curveLinear):void 0!==e.defaultInterpolate?c.curve=Object(g.interpolateToCurve)(e.defaultInterpolate,o.curveLinear):c.curve=Object(g.interpolateToCurve)(m.curve,o.curveLinear),void 0===s.text?void 0!==s.style&&(c.arrowheadStyle="fill: #333"):(c.arrowheadStyle="fill: #333",c.labelpos="c"),c.labelType="text",c.label=s.text.replace(p.default.lineBreakRegex,"\n"),void 0===s.style&&(c.style=c.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),c.labelStyle=c.labelStyle.replace("color:","fill:"),c.id=a,c.classes="flowchart-link "+u+" "+l,t.setEdge(s.start,s.end,c,i)}))},b=function(e){f.logger.info("Extracting classes"),s.default.clear();var t=u.a.parser;t.yy=s.default;try{t.parse(e)}catch(e){return}return s.default.getClasses()},w=function(e,t){f.logger.info("Drawing flowchart"),s.default.clear(),s.default.setGen("gen-2");var n=u.a.parser;n.yy=s.default,n.parse(e);var r=s.default.getDirection();void 0===r&&(r="TD");var a,d=Object(l.getConfig)().flowchart,h=d.nodeSpacing||50,p=d.rankSpacing||50,m=new i.a.Graph({multigraph:!0,compound:!0}).setGraph({rankdir:r,nodesep:h,ranksep:p,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}})),_=s.default.getSubGraphs();f.logger.info("Subgraphs - ",_);for(var b=_.length-1;b>=0;b--)a=_[b],f.logger.info("Subgraph - ",a),s.default.addVertex(a.id,a.title,"group",void 0,a.classes);var w=s.default.getVertices(),C=s.default.getEdges();f.logger.info(C);var S=0;for(S=_.length-1;S>=0;S--){a=_[S],Object(o.selectAll)("cluster").append("text");for(var x=0;x<a.nodes.length;x++)f.logger.info("Setting up subgraphs",a.nodes[x],a.id),m.setParent(a.nodes[x],a.id)}y(w,m,t),v(C,m);var L=Object(o.select)('[id="'.concat(t,'"]'));L.attr("xmlns:xlink","http://www.w3.org/1999/xlink");var k=Object(o.select)("#"+t+" g");Object(c.render)(k,m,["point","circle","cross"],"flowchart",t);var M=d.diagramPadding,D=L.node().getBBox(),E=D.width+2*M,T=D.height+2*M;if(f.logger.debug("new ViewBox 0 0 ".concat(E," ").concat(T),"translate(".concat(M-m._label.marginx,", ").concat(M-m._label.marginy,")")),Object(g.configureSvgSize)(L,T,E,d.useMaxWidth),L.attr("viewBox","0 0 ".concat(E," ").concat(T)),L.select("g").attr("transform","translate(".concat(M-m._label.marginx,", ").concat(M-D.y,")")),s.default.indexNodes("subGraph"+S),!d.htmlLabels)for(var N=document.querySelectorAll('[id="'+t+'"] .edgeLabel .label'),O=0;O<N.length;O++){var A=N[O],I=A.getBBox(),P=document.createElementNS("http://www.w3.org/2000/svg","rect");P.setAttribute("rx",0),P.setAttribute("ry",0),P.setAttribute("width",I.width),P.setAttribute("height",I.height),A.insertBefore(P,A.firstChild)}Object.keys(w).forEach((function(e){var n=w[e];if(n.link){var r=Object(o.select)("#"+t+' [id="'+e+'"]');if(r){var i=document.createElementNS("http://www.w3.org/2000/svg","a");i.setAttributeNS("http://www.w3.org/2000/svg","class",n.classes.join(" ")),i.setAttributeNS("http://www.w3.org/2000/svg","href",n.link),i.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),n.linkTarget&&i.setAttributeNS("http://www.w3.org/2000/svg","target",n.linkTarget);var s=r.insert((function(){return i}),":first-child"),a=r.select(".label-container");a&&s.append((function(){return a.node()}));var u=r.select(".label");u&&s.append((function(){return u.node()}))}}}))};t.default={setConf:_,addVertices:y,addEdges:v,getClasses:b,draw:w}},"./src/diagrams/flowchart/flowRenderer.js": +/*! exports provided: setConf, addVertices, addEdges, getClasses, draw, default */function(e,t,n){"use strict";n.r(t),n.d(t,"setConf",(function(){return _})),n.d(t,"addVertices",(function(){return b})),n.d(t,"addEdges",(function(){return v})),n.d(t,"getClasses",(function(){return y})),n.d(t,"draw",(function(){return w}));var i=n(/*! graphlib */"graphlib"),r=n.n(i),o=n(/*! d3 */"d3"),s=n(/*! ./flowDb */"./src/diagrams/flowchart/flowDb.js"),a=n(/*! ./parser/flow */"./src/diagrams/flowchart/parser/flow.jison"),l=n.n(a),c=n(/*! ../../config */"./src/config.js"),d=n(/*! ../../dagre-wrapper/index.js */"./src/dagre-wrapper/index.js"),u=n(/*! dagre-d3/lib/label/add-html-label.js */"dagre-d3/lib/label/add-html-label.js"),h=n.n(u),f=n(/*! ../../logger */"./src/logger.js"),g=n(/*! ../common/common */"./src/diagrams/common/common.js"),p=n(/*! ../../utils */"./src/utils.js"),m={},_=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)m[t[n]]=e[t[n]]},b=function(e,t,n){var i=Object(o.select)('[id="'.concat(n,'"]'));Object.keys(e).forEach((function(n){var r=e[n],o="default";r.classes.length>0&&(o=r.classes.join(" "));var a,l=Object(p.getStylesFromArray)(r.styles),d=void 0!==r.text?r.text:r.id;if(Object(c.getConfig)().flowchart.htmlLabels){var u={label:d.replace(/fa[lrsb]?:fa-[\w-]+/g,(function(e){return"<i class='".concat(e.replace(":"," "),"'></i>")}))};(a=h()(i,u).node()).parentNode.removeChild(a)}else{var m=document.createElementNS("http://www.w3.org/2000/svg","text");m.setAttribute("style",l.labelStyle.replace("color:","fill:"));for(var _=d.split(g.default.lineBreakRegex),b=0;b<_.length;b++){var v=document.createElementNS("http://www.w3.org/2000/svg","tspan");v.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),v.setAttribute("dy","1em"),v.setAttribute("x","1"),v.textContent=_[b],m.appendChild(v)}a=m}var y=0,w="";switch(r.type){case"round":y=5,w="rect";break;case"square":w="rect";break;case"diamond":w="question";break;case"hexagon":w="hexagon";break;case"odd":w="rect_left_inv_arrow";break;case"lean_right":w="lean_right";break;case"lean_left":w="lean_left";break;case"trapezoid":w="trapezoid";break;case"inv_trapezoid":w="inv_trapezoid";break;case"odd_right":w="rect_left_inv_arrow";break;case"circle":w="circle";break;case"ellipse":w="ellipse";break;case"stadium":w="stadium";break;case"subroutine":w="subroutine";break;case"cylinder":w="cylinder";break;case"group":w="rect";break;default:w="rect"}t.setNode(r.id,{labelStyle:l.labelStyle,shape:w,labelText:d,rx:y,ry:y,class:o,style:l.style,id:r.id,link:r.link,linkTarget:r.linkTarget,tooltip:s.default.getTooltip(r.id)||"",domId:s.default.lookUpDomId(r.id),haveCallback:r.haveCallback,width:"group"===r.type?500:void 0,type:r.type,padding:Object(c.getConfig)().flowchart.padding}),f.logger.info("setNode",{labelStyle:l.labelStyle,shape:w,labelText:d,rx:y,ry:y,class:o,style:l.style,id:r.id,domId:s.default.lookUpDomId(r.id),width:"group"===r.type?500:void 0,type:r.type,padding:Object(c.getConfig)().flowchart.padding})}))},v=function(e,t){var n,i,r=0;if(void 0!==e.defaultStyle){var s=Object(p.getStylesFromArray)(e.defaultStyle);n=s.style,i=s.labelStyle}e.forEach((function(s){r++;var a="L-"+s.start+"-"+s.end,l="LS-"+s.start,c="LE-"+s.end,d={style:"",labelStyle:""};switch(d.minlen=s.length||1,"arrow_open"===s.type?d.arrowhead="none":d.arrowhead="normal",d.arrowTypeStart="arrow_open",d.arrowTypeEnd="arrow_open",s.type){case"double_arrow_cross":d.arrowTypeStart="arrow_cross";case"arrow_cross":d.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":d.arrowTypeStart="arrow_point";case"arrow_point":d.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":d.arrowTypeStart="arrow_circle";case"arrow_circle":d.arrowTypeEnd="arrow_circle"}var u="",h="";switch(s.stroke){case"normal":u="fill:none;",void 0!==n&&(u=n),void 0!==i&&(h=i),d.thickness="normal",d.pattern="solid";break;case"dotted":d.thickness="normal",d.pattern="dotted",d.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":d.thickness="thick",d.pattern="solid",d.style="stroke-width: 3.5px;fill:none;"}if(void 0!==s.style){var f=Object(p.getStylesFromArray)(s.style);u=f.style,h=f.labelStyle}d.style=d.style+=u,d.labelStyle=d.labelStyle+=h,void 0!==s.interpolate?d.curve=Object(p.interpolateToCurve)(s.interpolate,o.curveLinear):void 0!==e.defaultInterpolate?d.curve=Object(p.interpolateToCurve)(e.defaultInterpolate,o.curveLinear):d.curve=Object(p.interpolateToCurve)(m.curve,o.curveLinear),void 0===s.text?void 0!==s.style&&(d.arrowheadStyle="fill: #333"):(d.arrowheadStyle="fill: #333",d.labelpos="c"),d.labelType="text",d.label=s.text.replace(g.default.lineBreakRegex,"\n"),void 0===s.style&&(d.style=d.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),d.labelStyle=d.labelStyle.replace("color:","fill:"),d.id=a,d.classes="flowchart-link "+l+" "+c,t.setEdge(s.start,s.end,d,r)}))},y=function(e){f.logger.info("Extracting classes"),s.default.clear();var t=l.a.parser;t.yy=s.default;try{t.parse(e)}catch(e){return}return s.default.getClasses()},w=function(e,t){f.logger.info("Drawing flowchart"),s.default.clear(),s.default.setGen("gen-2");var n=l.a.parser;n.yy=s.default,n.parse(e);var i=s.default.getDirection();void 0===i&&(i="TD");var a,u=Object(c.getConfig)().flowchart,h=u.nodeSpacing||50,g=u.rankSpacing||50,m=new r.a.Graph({multigraph:!0,compound:!0}).setGraph({rankdir:i,nodesep:h,ranksep:g,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}})),_=s.default.getSubGraphs();f.logger.info("Subgraphs - ",_);for(var y=_.length-1;y>=0;y--)a=_[y],f.logger.info("Subgraph - ",a),s.default.addVertex(a.id,a.title,"group",void 0,a.classes);var w=s.default.getVertices(),C=s.default.getEdges();f.logger.info(C);var S=0;for(S=_.length-1;S>=0;S--){a=_[S],Object(o.selectAll)("cluster").append("text");for(var k=0;k<a.nodes.length;k++)f.logger.info("Setting up subgraphs",a.nodes[k],a.id),m.setParent(a.nodes[k],a.id)}b(w,m,t),v(C,m);var x=Object(o.select)('[id="'.concat(t,'"]'));x.attr("xmlns:xlink","http://www.w3.org/1999/xlink");var L=Object(o.select)("#"+t+" g");Object(d.render)(L,m,["point","circle","cross"],"flowchart",t);var M=u.diagramPadding,D=x.node().getBBox(),E=D.width+2*M,T=D.height+2*M;if(f.logger.debug("new ViewBox 0 0 ".concat(E," ").concat(T),"translate(".concat(M-m._label.marginx,", ").concat(M-m._label.marginy,")")),Object(p.configureSvgSize)(x,T,E,u.useMaxWidth),x.attr("viewBox","0 0 ".concat(E," ").concat(T)),x.select("g").attr("transform","translate(".concat(M-m._label.marginx,", ").concat(M-D.y,")")),s.default.indexNodes("subGraph"+S),!u.htmlLabels)for(var O=document.querySelectorAll('[id="'+t+'"] .edgeLabel .label'),N=0;N<O.length;N++){var I=O[N],A=I.getBBox(),R=document.createElementNS("http://www.w3.org/2000/svg","rect");R.setAttribute("rx",0),R.setAttribute("ry",0),R.setAttribute("width",A.width),R.setAttribute("height",A.height),I.insertBefore(R,I.firstChild)}Object.keys(w).forEach((function(e){var n=w[e];if(n.link){var i=Object(o.select)("#"+t+' [id="'+e+'"]');if(i){var r=document.createElementNS("http://www.w3.org/2000/svg","a");r.setAttributeNS("http://www.w3.org/2000/svg","class",n.classes.join(" ")),r.setAttributeNS("http://www.w3.org/2000/svg","href",n.link),r.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),n.linkTarget&&r.setAttributeNS("http://www.w3.org/2000/svg","target",n.linkTarget);var s=i.insert((function(){return r}),":first-child"),a=i.select(".label-container");a&&s.append((function(){return a.node()}));var l=i.select(".label");l&&s.append((function(){return l.node()}))}}}))};t.default={setConf:_,addVertices:b,addEdges:v,getClasses:y,draw:w}},"./src/diagrams/flowchart/flowRenderer.js": /*!************************************************!*\ !*** ./src/diagrams/flowchart/flowRenderer.js ***! \************************************************/ -/*! exports provided: setConf, addVertices, addEdges, getClasses, draw, default */function(e,t,n){"use strict";n.r(t),n.d(t,"setConf",(function(){return v})),n.d(t,"addVertices",(function(){return b})),n.d(t,"addEdges",(function(){return w})),n.d(t,"getClasses",(function(){return C})),n.d(t,"draw",(function(){return S}));var r=n(/*! graphlib */"graphlib"),i=n.n(r),o=n(/*! d3 */"d3"),s=n(/*! ./flowDb */"./src/diagrams/flowchart/flowDb.js"),a=n(/*! ./parser/flow */"./src/diagrams/flowchart/parser/flow.jison"),u=n.n(a),l=n(/*! ../../config */"./src/config.js"),c=n(/*! dagre-d3 */"dagre-d3"),d=n.n(c),h=n(/*! dagre-d3/lib/label/add-html-label.js */"dagre-d3/lib/label/add-html-label.js"),f=n.n(h),p=n(/*! ../../logger */"./src/logger.js"),g=n(/*! ../common/common */"./src/diagrams/common/common.js"),m=n(/*! ../../utils */"./src/utils.js"),_=n(/*! ./flowChartShapes */"./src/diagrams/flowchart/flowChartShapes.js"),y={},v=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)y[t[n]]=e[t[n]]},b=function(e,t,n){var r=Object(o.select)('[id="'.concat(n,'"]'));Object.keys(e).forEach((function(n){var i=e[n],o="default";i.classes.length>0&&(o=i.classes.join(" "));var a,u=Object(m.getStylesFromArray)(i.styles),c=void 0!==i.text?i.text:i.id;if(Object(l.getConfig)().flowchart.htmlLabels){var d={label:c.replace(/fa[lrsb]?:fa-[\w-]+/g,(function(e){return"<i class='".concat(e.replace(":"," "),"'></i>")}))};(a=f()(r,d).node()).parentNode.removeChild(a)}else{var h=document.createElementNS("http://www.w3.org/2000/svg","text");h.setAttribute("style",u.labelStyle.replace("color:","fill:"));for(var _=c.split(g.default.lineBreakRegex),y=0;y<_.length;y++){var v=document.createElementNS("http://www.w3.org/2000/svg","tspan");v.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),v.setAttribute("dy","1em"),v.setAttribute("x","1"),v.textContent=_[y],h.appendChild(v)}a=h}var b=0,w="";switch(i.type){case"round":b=5,w="rect";break;case"square":w="rect";break;case"diamond":w="question";break;case"hexagon":w="hexagon";break;case"odd":w="rect_left_inv_arrow";break;case"lean_right":w="lean_right";break;case"lean_left":w="lean_left";break;case"trapezoid":w="trapezoid";break;case"inv_trapezoid":w="inv_trapezoid";break;case"odd_right":w="rect_left_inv_arrow";break;case"circle":w="circle";break;case"ellipse":w="ellipse";break;case"stadium":w="stadium";break;case"subroutine":w="subroutine";break;case"cylinder":w="cylinder";break;case"group":w="rect";break;default:w="rect"}p.logger.warn("Adding node",i.id,i.domId),t.setNode(s.default.lookUpDomId(i.id),{labelType:"svg",labelStyle:u.labelStyle,shape:w,label:a,rx:b,ry:b,class:o,style:u.style,id:s.default.lookUpDomId(i.id)})}))},w=function(e,t){var n,r,i=0;if(void 0!==e.defaultStyle){var a=Object(m.getStylesFromArray)(e.defaultStyle);n=a.style,r=a.labelStyle}e.forEach((function(a){i++;var u="L-"+a.start+"-"+a.end,c="LS-"+a.start,d="LE-"+a.end,h={};"arrow_open"===a.type?h.arrowhead="none":h.arrowhead="normal";var f="",p="";if(void 0!==a.style){var _=Object(m.getStylesFromArray)(a.style);f=_.style,p=_.labelStyle}else switch(a.stroke){case"normal":f="fill:none",void 0!==n&&(f=n),void 0!==r&&(p=r);break;case"dotted":f="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":f=" stroke-width: 3.5px;fill:none"}h.style=f,h.labelStyle=p,void 0!==a.interpolate?h.curve=Object(m.interpolateToCurve)(a.interpolate,o.curveLinear):void 0!==e.defaultInterpolate?h.curve=Object(m.interpolateToCurve)(e.defaultInterpolate,o.curveLinear):h.curve=Object(m.interpolateToCurve)(y.curve,o.curveLinear),void 0===a.text?void 0!==a.style&&(h.arrowheadStyle="fill: #333"):(h.arrowheadStyle="fill: #333",h.labelpos="c",Object(l.getConfig)().flowchart.htmlLabels?(h.labelType="html",h.label='<span id="L-'.concat(u,'" class="edgeLabel L-').concat(c,"' L-").concat(d,'">').concat(a.text.replace(/fa[lrsb]?:fa-[\w-]+/g,(function(e){return"<i class='".concat(e.replace(":"," "),"'></i>")})),"</span>")):(h.labelType="text",h.label=a.text.replace(g.default.lineBreakRegex,"\n"),void 0===a.style&&(h.style=h.style||"stroke: #333; stroke-width: 1.5px;fill:none"),h.labelStyle=h.labelStyle.replace("color:","fill:"))),h.id=u,h.class=c+" "+d,h.minlen=a.length||1,t.setEdge(s.default.lookUpDomId(a.start),s.default.lookUpDomId(a.end),h,i)}))},C=function(e){p.logger.info("Extracting classes"),s.default.clear();try{var t=u.a.parser;return t.yy=s.default,t.parse(e),s.default.getClasses()}catch(e){return}},S=function(e,t){p.logger.info("Drawing flowchart"),s.default.clear(),s.default.setGen("gen-1");var n=u.a.parser;n.yy=s.default,n.parse(e);var r=s.default.getDirection();void 0===r&&(r="TD");for(var a,c=Object(l.getConfig)().flowchart,h=c.nodeSpacing||50,f=c.rankSpacing||50,g=new i.a.Graph({multigraph:!0,compound:!0}).setGraph({rankdir:r,nodesep:h,ranksep:f,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}})),y=s.default.getSubGraphs(),v=y.length-1;v>=0;v--)a=y[v],s.default.addVertex(a.id,a.title,"group",void 0,a.classes);var C=s.default.getVertices();p.logger.warn("Get vertices",C);var S=s.default.getEdges(),x=0;for(x=y.length-1;x>=0;x--){a=y[x],Object(o.selectAll)("cluster").append("text");for(var L=0;L<a.nodes.length;L++)p.logger.warn("Setting subgraph",a.nodes[L],s.default.lookUpDomId(a.nodes[L]),s.default.lookUpDomId(a.id)),g.setParent(s.default.lookUpDomId(a.nodes[L]),s.default.lookUpDomId(a.id))}b(C,g,t),w(S,g);var k=new(0,d.a.render);_.default.addToRender(k),k.arrows().none=function(e,t,n,r){var i=e.append("marker").attr("id",t).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 0 0 L 0 0 z");d.a.util.applyStyle(i,n[r+"Style"])},k.arrows().normal=function(e,t){e.append("marker").attr("id",t).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowheadPath").style("stroke-width",1).style("stroke-dasharray","1,0")};var M=Object(o.select)('[id="'.concat(t,'"]'));M.attr("xmlns:xlink","http://www.w3.org/1999/xlink"),p.logger.warn(g);var D=Object(o.select)("#"+t+" g");k(D,g),D.selectAll("g.node").attr("title",(function(){return s.default.getTooltip(this.id)}));var E=c.diagramPadding,T=M.node().getBBox(),N=T.width+2*E,O=T.height+2*E;Object(m.configureSvgSize)(M,O,N,c.useMaxWidth);var A="".concat(T.x-E," ").concat(T.y-E," ").concat(N," ").concat(O);for(p.logger.debug("viewBox ".concat(A)),M.attr("viewBox",A),s.default.indexNodes("subGraph"+x),x=0;x<y.length;x++)if("undefined"!==(a=y[x]).title){var I=document.querySelectorAll("#"+t+' [id="'+s.default.lookUpDomId(a.id)+'"] rect'),P=document.querySelectorAll("#"+t+' [id="'+s.default.lookUpDomId(a.id)+'"]'),R=I[0].x.baseVal.value,F=I[0].y.baseVal.value,Y=I[0].width.baseVal.value,j=Object(o.select)(P[0]).select(".label");j.attr("transform","translate(".concat(R+Y/2,", ").concat(F+14,")")),j.attr("id",t+"Text");for(var B=0;B<a.classes.length;B++)P[0].classList.add(a.classes[B])}c.htmlLabels;for(var W=document.querySelectorAll('[id="'+t+'"] .edgeLabel .label'),H=0;H<W.length;H++){var V=W[H],z=V.getBBox(),U=document.createElementNS("http://www.w3.org/2000/svg","rect");U.setAttribute("rx",0),U.setAttribute("ry",0),U.setAttribute("width",z.width),U.setAttribute("height",z.height),V.insertBefore(U,V.firstChild)}Object.keys(C).forEach((function(e){var n=C[e];if(n.link){var r=Object(o.select)("#"+t+' [id="'+s.default.lookUpDomId(e)+'"]');if(r){var i=document.createElementNS("http://www.w3.org/2000/svg","a");i.setAttributeNS("http://www.w3.org/2000/svg","class",n.classes.join(" ")),i.setAttributeNS("http://www.w3.org/2000/svg","href",n.link),i.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),n.linkTarget&&i.setAttributeNS("http://www.w3.org/2000/svg","target",n.linkTarget);var a=r.insert((function(){return i}),":first-child"),u=r.select(".label-container");u&&a.append((function(){return u.node()}));var l=r.select(".label");l&&a.append((function(){return l.node()}))}}}))};t.default={setConf:v,addVertices:b,addEdges:w,getClasses:C,draw:S}},"./src/diagrams/flowchart/parser/flow.jison": +/*! exports provided: setConf, addVertices, addEdges, getClasses, draw, default */function(e,t,n){"use strict";n.r(t),n.d(t,"setConf",(function(){return v})),n.d(t,"addVertices",(function(){return y})),n.d(t,"addEdges",(function(){return w})),n.d(t,"getClasses",(function(){return C})),n.d(t,"draw",(function(){return S}));var i=n(/*! graphlib */"graphlib"),r=n.n(i),o=n(/*! d3 */"d3"),s=n(/*! ./flowDb */"./src/diagrams/flowchart/flowDb.js"),a=n(/*! ./parser/flow */"./src/diagrams/flowchart/parser/flow.jison"),l=n.n(a),c=n(/*! ../../config */"./src/config.js"),d=n(/*! dagre-d3 */"dagre-d3"),u=n.n(d),h=n(/*! dagre-d3/lib/label/add-html-label.js */"dagre-d3/lib/label/add-html-label.js"),f=n.n(h),g=n(/*! ../../logger */"./src/logger.js"),p=n(/*! ../common/common */"./src/diagrams/common/common.js"),m=n(/*! ../../utils */"./src/utils.js"),_=n(/*! ./flowChartShapes */"./src/diagrams/flowchart/flowChartShapes.js"),b={},v=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)b[t[n]]=e[t[n]]},y=function(e,t,n){var i=Object(o.select)('[id="'.concat(n,'"]'));Object.keys(e).forEach((function(n){var r=e[n],o="default";r.classes.length>0&&(o=r.classes.join(" "));var a,l=Object(m.getStylesFromArray)(r.styles),d=void 0!==r.text?r.text:r.id;if(Object(c.getConfig)().flowchart.htmlLabels){var u={label:d.replace(/fa[lrsb]?:fa-[\w-]+/g,(function(e){return"<i class='".concat(e.replace(":"," "),"'></i>")}))};(a=f()(i,u).node()).parentNode.removeChild(a)}else{var h=document.createElementNS("http://www.w3.org/2000/svg","text");h.setAttribute("style",l.labelStyle.replace("color:","fill:"));for(var _=d.split(p.default.lineBreakRegex),b=0;b<_.length;b++){var v=document.createElementNS("http://www.w3.org/2000/svg","tspan");v.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),v.setAttribute("dy","1em"),v.setAttribute("x","1"),v.textContent=_[b],h.appendChild(v)}a=h}var y=0,w="";switch(r.type){case"round":y=5,w="rect";break;case"square":w="rect";break;case"diamond":w="question";break;case"hexagon":w="hexagon";break;case"odd":w="rect_left_inv_arrow";break;case"lean_right":w="lean_right";break;case"lean_left":w="lean_left";break;case"trapezoid":w="trapezoid";break;case"inv_trapezoid":w="inv_trapezoid";break;case"odd_right":w="rect_left_inv_arrow";break;case"circle":w="circle";break;case"ellipse":w="ellipse";break;case"stadium":w="stadium";break;case"subroutine":w="subroutine";break;case"cylinder":w="cylinder";break;case"group":w="rect";break;default:w="rect"}g.logger.warn("Adding node",r.id,r.domId),t.setNode(s.default.lookUpDomId(r.id),{labelType:"svg",labelStyle:l.labelStyle,shape:w,label:a,rx:y,ry:y,class:o,style:l.style,id:s.default.lookUpDomId(r.id)})}))},w=function(e,t){var n,i,r=0;if(void 0!==e.defaultStyle){var a=Object(m.getStylesFromArray)(e.defaultStyle);n=a.style,i=a.labelStyle}e.forEach((function(a){r++;var l="L-"+a.start+"-"+a.end,d="LS-"+a.start,u="LE-"+a.end,h={};"arrow_open"===a.type?h.arrowhead="none":h.arrowhead="normal";var f="",g="";if(void 0!==a.style){var _=Object(m.getStylesFromArray)(a.style);f=_.style,g=_.labelStyle}else switch(a.stroke){case"normal":f="fill:none",void 0!==n&&(f=n),void 0!==i&&(g=i);break;case"dotted":f="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":f=" stroke-width: 3.5px;fill:none"}h.style=f,h.labelStyle=g,void 0!==a.interpolate?h.curve=Object(m.interpolateToCurve)(a.interpolate,o.curveLinear):void 0!==e.defaultInterpolate?h.curve=Object(m.interpolateToCurve)(e.defaultInterpolate,o.curveLinear):h.curve=Object(m.interpolateToCurve)(b.curve,o.curveLinear),void 0===a.text?void 0!==a.style&&(h.arrowheadStyle="fill: #333"):(h.arrowheadStyle="fill: #333",h.labelpos="c",Object(c.getConfig)().flowchart.htmlLabels?(h.labelType="html",h.label='<span id="L-'.concat(l,'" class="edgeLabel L-').concat(d,"' L-").concat(u,'">').concat(a.text.replace(/fa[lrsb]?:fa-[\w-]+/g,(function(e){return"<i class='".concat(e.replace(":"," "),"'></i>")})),"</span>")):(h.labelType="text",h.label=a.text.replace(p.default.lineBreakRegex,"\n"),void 0===a.style&&(h.style=h.style||"stroke: #333; stroke-width: 1.5px;fill:none"),h.labelStyle=h.labelStyle.replace("color:","fill:"))),h.id=l,h.class=d+" "+u,h.minlen=a.length||1,t.setEdge(s.default.lookUpDomId(a.start),s.default.lookUpDomId(a.end),h,r)}))},C=function(e){g.logger.info("Extracting classes"),s.default.clear();try{var t=l.a.parser;return t.yy=s.default,t.parse(e),s.default.getClasses()}catch(e){return}},S=function(e,t){g.logger.info("Drawing flowchart"),s.default.clear(),s.default.setGen("gen-1");var n=l.a.parser;n.yy=s.default,n.parse(e);var i=s.default.getDirection();void 0===i&&(i="TD");for(var a,d=Object(c.getConfig)().flowchart,h=d.nodeSpacing||50,f=d.rankSpacing||50,p=new r.a.Graph({multigraph:!0,compound:!0}).setGraph({rankdir:i,nodesep:h,ranksep:f,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}})),b=s.default.getSubGraphs(),v=b.length-1;v>=0;v--)a=b[v],s.default.addVertex(a.id,a.title,"group",void 0,a.classes);var C=s.default.getVertices();g.logger.warn("Get vertices",C);var S=s.default.getEdges(),k=0;for(k=b.length-1;k>=0;k--){a=b[k],Object(o.selectAll)("cluster").append("text");for(var x=0;x<a.nodes.length;x++)g.logger.warn("Setting subgraph",a.nodes[x],s.default.lookUpDomId(a.nodes[x]),s.default.lookUpDomId(a.id)),p.setParent(s.default.lookUpDomId(a.nodes[x]),s.default.lookUpDomId(a.id))}y(C,p,t),w(S,p);var L=new(0,u.a.render);_.default.addToRender(L),L.arrows().none=function(e,t,n,i){var r=e.append("marker").attr("id",t).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 0 0 L 0 0 z");u.a.util.applyStyle(r,n[i+"Style"])},L.arrows().normal=function(e,t){e.append("marker").attr("id",t).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowheadPath").style("stroke-width",1).style("stroke-dasharray","1,0")};var M=Object(o.select)('[id="'.concat(t,'"]'));M.attr("xmlns:xlink","http://www.w3.org/1999/xlink"),g.logger.warn(p);var D=Object(o.select)("#"+t+" g");L(D,p),D.selectAll("g.node").attr("title",(function(){return s.default.getTooltip(this.id)}));var E=d.diagramPadding,T=M.node().getBBox(),O=T.width+2*E,N=T.height+2*E;Object(m.configureSvgSize)(M,N,O,d.useMaxWidth);var I="".concat(T.x-E," ").concat(T.y-E," ").concat(O," ").concat(N);for(g.logger.debug("viewBox ".concat(I)),M.attr("viewBox",I),s.default.indexNodes("subGraph"+k),k=0;k<b.length;k++)if("undefined"!==(a=b[k]).title){var A=document.querySelectorAll("#"+t+' [id="'+s.default.lookUpDomId(a.id)+'"] rect'),R=document.querySelectorAll("#"+t+' [id="'+s.default.lookUpDomId(a.id)+'"]'),P=A[0].x.baseVal.value,j=A[0].y.baseVal.value,F=A[0].width.baseVal.value,B=Object(o.select)(R[0]).select(".label");B.attr("transform","translate(".concat(P+F/2,", ").concat(j+14,")")),B.attr("id",t+"Text");for(var W=0;W<a.classes.length;W++)R[0].classList.add(a.classes[W])}d.htmlLabels;for(var H=document.querySelectorAll('[id="'+t+'"] .edgeLabel .label'),Y=0;Y<H.length;Y++){var V=H[Y],z=V.getBBox(),U=document.createElementNS("http://www.w3.org/2000/svg","rect");U.setAttribute("rx",0),U.setAttribute("ry",0),U.setAttribute("width",z.width),U.setAttribute("height",z.height),V.insertBefore(U,V.firstChild)}Object.keys(C).forEach((function(e){var n=C[e];if(n.link){var i=Object(o.select)("#"+t+' [id="'+s.default.lookUpDomId(e)+'"]');if(i){var r=document.createElementNS("http://www.w3.org/2000/svg","a");r.setAttributeNS("http://www.w3.org/2000/svg","class",n.classes.join(" ")),r.setAttributeNS("http://www.w3.org/2000/svg","href",n.link),r.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),n.linkTarget&&r.setAttributeNS("http://www.w3.org/2000/svg","target",n.linkTarget);var a=i.insert((function(){return r}),":first-child"),l=i.select(".label-container");l&&a.append((function(){return l.node()}));var c=i.select(".label");c&&a.append((function(){return c.node()}))}}}))};t.default={setConf:v,addVertices:y,addEdges:w,getClasses:C,draw:S}},"./src/diagrams/flowchart/parser/flow.jison": /*!**************************************************!*\ !*** ./src/diagrams/flowchart/parser/flow.jison ***! \**************************************************/ -/*! no static exports found */function(e,t,n){(function(e,r){var i=function(){var e=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},t=[1,9],n=[1,7],r=[1,6],i=[1,8],o=[1,20,21,22,23,38,46,75,76,77,78,79,80,91,92,95,96,97,99,100,106,107,108,109,110,111],s=[2,10],a=[1,20],u=[1,21],l=[1,22],c=[1,23],d=[1,30],h=[1,54],f=[1,32],p=[1,33],g=[1,34],m=[1,35],_=[1,36],y=[1,48],v=[1,43],b=[1,45],w=[1,40],C=[1,44],S=[1,47],x=[1,51],L=[1,52],k=[1,53],M=[1,42],D=[1,46],E=[1,49],T=[1,50],N=[1,41],O=[1,57],A=[1,62],I=[1,20,21,22,23,38,42,46,75,76,77,78,79,80,91,92,95,96,97,99,100,106,107,108,109,110,111],P=[1,66],R=[1,65],F=[1,67],Y=[20,21,23,69,70],j=[20,21,22,23,69,70],B=[20,21,22,23,47,69,70],W=[20,21,22,23,40,46,47,49,51,53,55,57,59,61,62,64,69,70,80,91,92,95,96,97,99,100,106,107,108,109,110,111],H=[20,21,23],V=[20,21,23,46,69,70,80,91,92,95,96,97,99,100,106,107,108,109,110,111],z=[1,12,20,21,22,23,24,38,42,46,75,76,77,78,79,80,91,92,95,96,97,99,100,106,107,108,109,110,111],U=[46,80,91,92,95,96,97,99,100,106,107,108,109,110,111],q=[1,115],K=[1,136],G=[1,137],$=[1,138],Z=[1,139],X=[1,119],J=[1,110],Q=[1,111],ee=[1,107],te=[1,131],ne=[1,132],re=[1,133],ie=[1,134],oe=[1,135],se=[1,140],ae=[1,141],ue=[1,113],le=[1,121],ce=[1,124],de=[1,122],he=[1,123],fe=[1,116],pe=[1,129],ge=[1,128],me=[1,112],_e=[1,109],ye=[1,118],ve=[1,120],be=[1,125],we=[1,126],Ce=[1,127],Se=[1,130],xe=[20,21,22,23,38,42,46,75,76,77,78,79,80,91,92,95,96,97,99,100,106,107,108,109,110,111],Le=[1,144],ke=[1,148],Me=[1,150],De=[1,151],Ee=[12,21,22,24],Te=[20,21,22,23,24,26,38,40,41,42,46,50,52,54,56,58,60,61,63,65,69,70,71,75,76,77,78,79,80,81,84,91,92,95,96,97,99,100,101,102,106,107,108,109,110,111],Ne=[20,21,22,23,26,46,80,91,92,95,96,97,99,100,106,107,108,109,110,111],Oe=[22,92],Ae=[1,220],Ie=[1,224],Pe=[1,221],Re=[1,218],Fe=[1,215],Ye=[1,216],je=[1,217],Be=[1,219],We=[1,222],He=[1,223],Ve=[1,225],ze=[1,241],Ue=[20,21,23,92],qe=[20,21,22,23,75,88,91,92,95,96,97,98,99,100,101],Ke={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,directive:5,openDirective:6,typeDirective:7,closeDirective:8,separator:9,":":10,argDirective:11,open_directive:12,type_directive:13,arg_directive:14,close_directive:15,graphConfig:16,document:17,line:18,statement:19,SEMI:20,NEWLINE:21,SPACE:22,EOF:23,GRAPH:24,NODIR:25,DIR:26,FirstStmtSeperator:27,ending:28,endToken:29,spaceList:30,spaceListNewline:31,verticeStatement:32,styleStatement:33,linkStyleStatement:34,classDefStatement:35,classStatement:36,clickStatement:37,subgraph:38,text:39,SQS:40,SQE:41,end:42,link:43,node:44,vertex:45,AMP:46,STYLE_SEPARATOR:47,idString:48,PS:49,PE:50,"(-":51,"-)":52,STADIUMSTART:53,STADIUMEND:54,SUBROUTINESTART:55,SUBROUTINEEND:56,CYLINDERSTART:57,CYLINDEREND:58,DIAMOND_START:59,DIAMOND_STOP:60,TAGEND:61,TRAPSTART:62,TRAPEND:63,INVTRAPSTART:64,INVTRAPEND:65,linkStatement:66,arrowText:67,TESTSTR:68,START_LINK:69,LINK:70,PIPE:71,textToken:72,STR:73,keywords:74,STYLE:75,LINKSTYLE:76,CLASSDEF:77,CLASS:78,CLICK:79,DOWN:80,UP:81,textNoTags:82,textNoTagsToken:83,DEFAULT:84,stylesOpt:85,alphaNum:86,LINK_TARGET:87,HEX:88,numList:89,INTERPOLATE:90,NUM:91,COMMA:92,style:93,styleComponent:94,ALPHA:95,COLON:96,MINUS:97,UNIT:98,BRKT:99,DOT:100,PCT:101,TAGSTART:102,alphaNumToken:103,idStringToken:104,alphaNumStatement:105,PUNCTUATION:106,UNICODE_TEXT:107,PLUS:108,EQUALS:109,MULT:110,UNDERSCORE:111,graphCodeTokens:112,ARROW_CROSS:113,ARROW_POINT:114,ARROW_CIRCLE:115,ARROW_OPEN:116,QUOTE:117,$accept:0,$end:1},terminals_:{2:"error",10:":",12:"open_directive",13:"type_directive",14:"arg_directive",15:"close_directive",20:"SEMI",21:"NEWLINE",22:"SPACE",23:"EOF",24:"GRAPH",25:"NODIR",26:"DIR",38:"subgraph",40:"SQS",41:"SQE",42:"end",46:"AMP",47:"STYLE_SEPARATOR",49:"PS",50:"PE",51:"(-",52:"-)",53:"STADIUMSTART",54:"STADIUMEND",55:"SUBROUTINESTART",56:"SUBROUTINEEND",57:"CYLINDERSTART",58:"CYLINDEREND",59:"DIAMOND_START",60:"DIAMOND_STOP",61:"TAGEND",62:"TRAPSTART",63:"TRAPEND",64:"INVTRAPSTART",65:"INVTRAPEND",68:"TESTSTR",69:"START_LINK",70:"LINK",71:"PIPE",73:"STR",75:"STYLE",76:"LINKSTYLE",77:"CLASSDEF",78:"CLASS",79:"CLICK",80:"DOWN",81:"UP",84:"DEFAULT",87:"LINK_TARGET",88:"HEX",90:"INTERPOLATE",91:"NUM",92:"COMMA",95:"ALPHA",96:"COLON",97:"MINUS",98:"UNIT",99:"BRKT",100:"DOT",101:"PCT",102:"TAGSTART",106:"PUNCTUATION",107:"UNICODE_TEXT",108:"PLUS",109:"EQUALS",110:"MULT",111:"UNDERSCORE",113:"ARROW_CROSS",114:"ARROW_POINT",115:"ARROW_CIRCLE",116:"ARROW_OPEN",117:"QUOTE"},productions_:[0,[3,1],[3,2],[5,4],[5,6],[6,1],[7,1],[11,1],[8,1],[4,2],[17,0],[17,2],[18,1],[18,1],[18,1],[18,1],[18,1],[16,2],[16,2],[16,2],[16,3],[28,2],[28,1],[29,1],[29,1],[29,1],[27,1],[27,1],[27,2],[31,2],[31,2],[31,1],[31,1],[30,2],[30,1],[19,2],[19,2],[19,2],[19,2],[19,2],[19,2],[19,9],[19,6],[19,4],[9,1],[9,1],[9,1],[32,3],[32,4],[32,2],[32,1],[44,1],[44,5],[44,3],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[43,2],[43,3],[43,3],[43,1],[43,3],[66,1],[67,3],[39,1],[39,2],[39,1],[74,1],[74,1],[74,1],[74,1],[74,1],[74,1],[74,1],[74,1],[74,1],[74,1],[74,1],[82,1],[82,2],[35,5],[35,5],[36,5],[37,5],[37,7],[37,5],[37,7],[37,7],[37,9],[33,5],[33,5],[34,5],[34,5],[34,9],[34,9],[34,7],[34,7],[89,1],[89,3],[85,1],[85,3],[93,1],[93,2],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[72,1],[72,1],[72,1],[72,1],[72,1],[72,1],[83,1],[83,1],[83,1],[83,1],[48,1],[48,2],[86,1],[86,2],[105,1],[105,1],[105,1],[105,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1]],performAction:function(e,t,n,r,i,o,s){var a=o.length-1;switch(i){case 5:r.parseDirective("%%{","open_directive");break;case 6:r.parseDirective(o[a],"type_directive");break;case 7:o[a]=o[a].trim().replace(/'/g,'"'),r.parseDirective(o[a],"arg_directive");break;case 8:r.parseDirective("}%%","close_directive","flowchart");break;case 10:this.$=[];break;case 11:o[a]!==[]&&o[a-1].push(o[a]),this.$=o[a-1];break;case 12:case 76:case 78:case 90:case 138:case 140:case 141:this.$=o[a];break;case 19:r.setDirection("TB"),this.$="TB";break;case 20:r.setDirection(o[a-1]),this.$=o[a-1];break;case 35:this.$=o[a-1].nodes;break;case 36:case 37:case 38:case 39:case 40:this.$=[];break;case 41:this.$=r.addSubGraph(o[a-6],o[a-1],o[a-4]);break;case 42:this.$=r.addSubGraph(o[a-3],o[a-1],o[a-3]);break;case 43:this.$=r.addSubGraph(void 0,o[a-1],void 0);break;case 47:r.addLink(o[a-2].stmt,o[a],o[a-1]),this.$={stmt:o[a],nodes:o[a].concat(o[a-2].nodes)};break;case 48:r.addLink(o[a-3].stmt,o[a-1],o[a-2]),this.$={stmt:o[a-1],nodes:o[a-1].concat(o[a-3].nodes)};break;case 49:this.$={stmt:o[a-1],nodes:o[a-1]};break;case 50:this.$={stmt:o[a],nodes:o[a]};break;case 51:this.$=[o[a]];break;case 52:this.$=o[a-4].concat(o[a]);break;case 53:this.$=[o[a-2]],r.setClass(o[a-2],o[a]);break;case 54:this.$=o[a-3],r.addVertex(o[a-3],o[a-1],"square");break;case 55:this.$=o[a-5],r.addVertex(o[a-5],o[a-2],"circle");break;case 56:this.$=o[a-3],r.addVertex(o[a-3],o[a-1],"ellipse");break;case 57:this.$=o[a-3],r.addVertex(o[a-3],o[a-1],"stadium");break;case 58:this.$=o[a-3],r.addVertex(o[a-3],o[a-1],"subroutine");break;case 59:this.$=o[a-3],r.addVertex(o[a-3],o[a-1],"cylinder");break;case 60:this.$=o[a-3],r.addVertex(o[a-3],o[a-1],"round");break;case 61:this.$=o[a-3],r.addVertex(o[a-3],o[a-1],"diamond");break;case 62:this.$=o[a-5],r.addVertex(o[a-5],o[a-2],"hexagon");break;case 63:this.$=o[a-3],r.addVertex(o[a-3],o[a-1],"odd");break;case 64:this.$=o[a-3],r.addVertex(o[a-3],o[a-1],"trapezoid");break;case 65:this.$=o[a-3],r.addVertex(o[a-3],o[a-1],"inv_trapezoid");break;case 66:this.$=o[a-3],r.addVertex(o[a-3],o[a-1],"lean_right");break;case 67:this.$=o[a-3],r.addVertex(o[a-3],o[a-1],"lean_left");break;case 68:this.$=o[a],r.addVertex(o[a]);break;case 69:o[a-1].text=o[a],this.$=o[a-1];break;case 70:case 71:o[a-2].text=o[a-1],this.$=o[a-2];break;case 72:this.$=o[a];break;case 73:var u=r.destructLink(o[a],o[a-2]);this.$={type:u.type,stroke:u.stroke,length:u.length,text:o[a-1]};break;case 74:u=r.destructLink(o[a]),this.$={type:u.type,stroke:u.stroke,length:u.length};break;case 75:this.$=o[a-1];break;case 77:case 91:case 139:this.$=o[a-1]+""+o[a];break;case 92:case 93:this.$=o[a-4],r.addClass(o[a-2],o[a]);break;case 94:this.$=o[a-4],r.setClass(o[a-2],o[a]);break;case 95:this.$=o[a-4],r.setClickEvent(o[a-2],o[a],void 0);break;case 96:this.$=o[a-6],r.setClickEvent(o[a-4],o[a-2],o[a]);break;case 97:this.$=o[a-4],r.setLink(o[a-2],o[a],void 0,void 0);break;case 98:this.$=o[a-6],r.setLink(o[a-4],o[a-2],o[a],void 0);break;case 99:this.$=o[a-6],r.setLink(o[a-4],o[a-2],void 0,o[a]);break;case 100:this.$=o[a-8],r.setLink(o[a-6],o[a-4],o[a-2],o[a]);break;case 101:this.$=o[a-4],r.addVertex(o[a-2],void 0,void 0,o[a]);break;case 102:case 104:this.$=o[a-4],r.updateLink(o[a-2],o[a]);break;case 103:this.$=o[a-4],r.updateLink([o[a-2]],o[a]);break;case 105:this.$=o[a-8],r.updateLinkInterpolate([o[a-6]],o[a-2]),r.updateLink([o[a-6]],o[a]);break;case 106:this.$=o[a-8],r.updateLinkInterpolate(o[a-6],o[a-2]),r.updateLink(o[a-6],o[a]);break;case 107:this.$=o[a-6],r.updateLinkInterpolate([o[a-4]],o[a]);break;case 108:this.$=o[a-6],r.updateLinkInterpolate(o[a-4],o[a]);break;case 109:case 111:this.$=[o[a]];break;case 110:case 112:o[a-2].push(o[a]),this.$=o[a-2];break;case 114:this.$=o[a-1]+o[a];break;case 136:this.$=o[a];break;case 137:this.$=o[a-1]+""+o[a];break;case 142:this.$="v";break;case 143:this.$="-"}},table:[{3:1,4:2,5:3,6:5,12:t,16:4,21:n,22:r,24:i},{1:[3]},{1:[2,1]},{3:10,4:2,5:3,6:5,12:t,16:4,21:n,22:r,24:i},e(o,s,{17:11}),{7:12,13:[1,13]},{16:14,21:n,22:r,24:i},{16:15,21:n,22:r,24:i},{25:[1,16],26:[1,17]},{13:[2,5]},{1:[2,2]},{1:[2,9],18:18,19:19,20:a,21:u,22:l,23:c,32:24,33:25,34:26,35:27,36:28,37:29,38:d,44:31,45:37,46:h,48:38,75:f,76:p,77:g,78:m,79:_,80:y,91:v,92:b,95:w,96:C,97:S,99:x,100:L,104:39,106:k,107:M,108:D,109:E,110:T,111:N},{8:55,10:[1,56],15:O},e([10,15],[2,6]),e(o,[2,17]),e(o,[2,18]),e(o,[2,19]),{20:[1,59],21:[1,60],22:A,27:58,30:61},e(I,[2,11]),e(I,[2,12]),e(I,[2,13]),e(I,[2,14]),e(I,[2,15]),e(I,[2,16]),{9:63,20:P,21:R,23:F,43:64,66:68,69:[1,69],70:[1,70]},{9:71,20:P,21:R,23:F},{9:72,20:P,21:R,23:F},{9:73,20:P,21:R,23:F},{9:74,20:P,21:R,23:F},{9:75,20:P,21:R,23:F},{9:77,20:P,21:R,22:[1,76],23:F},e(Y,[2,50],{30:78,22:A}),{22:[1,79]},{22:[1,80]},{22:[1,81]},{22:[1,82]},{22:[1,83]},e(j,[2,51],{47:[1,84]}),e(B,[2,68],{104:95,40:[1,85],46:h,49:[1,86],51:[1,87],53:[1,88],55:[1,89],57:[1,90],59:[1,91],61:[1,92],62:[1,93],64:[1,94],80:y,91:v,92:b,95:w,96:C,97:S,99:x,100:L,106:k,107:M,108:D,109:E,110:T,111:N}),e(W,[2,136]),e(W,[2,157]),e(W,[2,158]),e(W,[2,159]),e(W,[2,160]),e(W,[2,161]),e(W,[2,162]),e(W,[2,163]),e(W,[2,164]),e(W,[2,165]),e(W,[2,166]),e(W,[2,167]),e(W,[2,168]),e(W,[2,169]),e(W,[2,170]),e(W,[2,171]),{9:96,20:P,21:R,23:F},{11:97,14:[1,98]},e(H,[2,8]),e(o,[2,20]),e(o,[2,26]),e(o,[2,27]),{21:[1,99]},e(V,[2,34],{30:100,22:A}),e(I,[2,35]),{44:101,45:37,46:h,48:38,80:y,91:v,92:b,95:w,96:C,97:S,99:x,100:L,104:39,106:k,107:M,108:D,109:E,110:T,111:N},e(z,[2,44]),e(z,[2,45]),e(z,[2,46]),e(U,[2,72],{67:102,68:[1,103],71:[1,104]}),{22:q,24:K,26:G,38:$,39:105,42:Z,46:X,61:J,69:Q,72:106,73:ee,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},e([46,68,71,80,91,92,95,96,97,99,100,106,107,108,109,110,111],[2,74]),e(I,[2,36]),e(I,[2,37]),e(I,[2,38]),e(I,[2,39]),e(I,[2,40]),{22:q,24:K,26:G,38:$,39:142,42:Z,46:X,61:J,69:Q,72:106,73:ee,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},e(xe,s,{17:143}),e(Y,[2,49],{46:Le}),{26:ke,46:X,80:Me,86:145,88:[1,146],91:le,92:ce,95:de,96:he,97:De,99:pe,100:ge,103:149,105:147,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{84:[1,152],89:153,91:[1,154]},{26:ke,46:X,80:Me,84:[1,155],86:156,91:le,92:ce,95:de,96:he,97:De,99:pe,100:ge,103:149,105:147,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{26:ke,46:X,80:Me,86:157,91:le,92:ce,95:de,96:he,97:De,99:pe,100:ge,103:149,105:147,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{26:ke,46:X,80:Me,86:158,91:le,92:ce,95:de,96:he,97:De,99:pe,100:ge,103:149,105:147,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{46:h,48:159,80:y,91:v,92:b,95:w,96:C,97:S,99:x,100:L,104:39,106:k,107:M,108:D,109:E,110:T,111:N},{22:q,24:K,26:G,38:$,39:160,42:Z,46:X,61:J,69:Q,72:106,73:ee,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{22:q,24:K,26:G,38:$,39:162,42:Z,46:X,49:[1,161],61:J,69:Q,72:106,73:ee,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{22:q,24:K,26:G,38:$,39:163,42:Z,46:X,61:J,69:Q,72:106,73:ee,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{22:q,24:K,26:G,38:$,39:164,42:Z,46:X,61:J,69:Q,72:106,73:ee,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{22:q,24:K,26:G,38:$,39:165,42:Z,46:X,61:J,69:Q,72:106,73:ee,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{22:q,24:K,26:G,38:$,39:166,42:Z,46:X,61:J,69:Q,72:106,73:ee,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{22:q,24:K,26:G,38:$,39:167,42:Z,46:X,59:[1,168],61:J,69:Q,72:106,73:ee,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{22:q,24:K,26:G,38:$,39:169,42:Z,46:X,61:J,69:Q,72:106,73:ee,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{22:q,24:K,26:G,38:$,39:170,42:Z,46:X,61:J,69:Q,72:106,73:ee,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{22:q,24:K,26:G,38:$,39:171,42:Z,46:X,61:J,69:Q,72:106,73:ee,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},e(W,[2,137]),e(Ee,[2,3]),{8:172,15:O},{15:[2,7]},e(o,[2,28]),e(V,[2,33]),e(Y,[2,47],{30:173,22:A}),e(U,[2,69],{22:[1,174]}),{22:[1,175]},{22:q,24:K,26:G,38:$,39:176,42:Z,46:X,61:J,69:Q,72:106,73:ee,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{22:q,24:K,26:G,38:$,42:Z,46:X,61:J,69:Q,70:[1,177],72:178,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},e(Te,[2,76]),e(Te,[2,78]),e(Te,[2,126]),e(Te,[2,127]),e(Te,[2,128]),e(Te,[2,129]),e(Te,[2,130]),e(Te,[2,131]),e(Te,[2,132]),e(Te,[2,133]),e(Te,[2,134]),e(Te,[2,135]),e(Te,[2,144]),e(Te,[2,145]),e(Te,[2,146]),e(Te,[2,147]),e(Te,[2,148]),e(Te,[2,149]),e(Te,[2,150]),e(Te,[2,151]),e(Te,[2,152]),e(Te,[2,153]),e(Te,[2,154]),e(Te,[2,155]),e(Te,[2,156]),e(Te,[2,79]),e(Te,[2,80]),e(Te,[2,81]),e(Te,[2,82]),e(Te,[2,83]),e(Te,[2,84]),e(Te,[2,85]),e(Te,[2,86]),e(Te,[2,87]),e(Te,[2,88]),e(Te,[2,89]),{9:180,20:P,21:R,22:q,23:F,24:K,26:G,38:$,40:[1,179],42:Z,46:X,61:J,69:Q,72:178,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{18:18,19:19,20:a,21:u,22:l,23:c,32:24,33:25,34:26,35:27,36:28,37:29,38:d,42:[1,181],44:31,45:37,46:h,48:38,75:f,76:p,77:g,78:m,79:_,80:y,91:v,92:b,95:w,96:C,97:S,99:x,100:L,104:39,106:k,107:M,108:D,109:E,110:T,111:N},{22:A,30:182},{22:[1,183],26:ke,46:X,80:Me,91:le,92:ce,95:de,96:he,97:De,99:pe,100:ge,103:149,105:184,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{22:[1,185]},e(Ne,[2,138]),e(Ne,[2,140]),e(Ne,[2,141]),e(Ne,[2,142]),e(Ne,[2,143]),{22:[1,186]},{22:[1,187],92:[1,188]},e(Oe,[2,109]),{22:[1,189]},{22:[1,190],26:ke,46:X,80:Me,91:le,92:ce,95:de,96:he,97:De,99:pe,100:ge,103:149,105:184,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{22:[1,191],26:ke,46:X,80:Me,91:le,92:ce,95:de,96:he,97:De,99:pe,100:ge,103:149,105:184,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{22:[1,192],26:ke,46:X,80:Me,91:le,92:ce,95:de,96:he,97:De,99:pe,100:ge,103:149,105:184,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},e(j,[2,53],{104:95,46:h,80:y,91:v,92:b,95:w,96:C,97:S,99:x,100:L,106:k,107:M,108:D,109:E,110:T,111:N}),{22:q,24:K,26:G,38:$,41:[1,193],42:Z,46:X,61:J,69:Q,72:178,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{22:q,24:K,26:G,38:$,39:194,42:Z,46:X,61:J,69:Q,72:106,73:ee,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{22:q,24:K,26:G,38:$,42:Z,46:X,50:[1,195],61:J,69:Q,72:178,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{22:q,24:K,26:G,38:$,42:Z,46:X,52:[1,196],61:J,69:Q,72:178,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{22:q,24:K,26:G,38:$,42:Z,46:X,54:[1,197],61:J,69:Q,72:178,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{22:q,24:K,26:G,38:$,42:Z,46:X,56:[1,198],61:J,69:Q,72:178,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{22:q,24:K,26:G,38:$,42:Z,46:X,58:[1,199],61:J,69:Q,72:178,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{22:q,24:K,26:G,38:$,42:Z,46:X,60:[1,200],61:J,69:Q,72:178,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{22:q,24:K,26:G,38:$,39:201,42:Z,46:X,61:J,69:Q,72:106,73:ee,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{22:q,24:K,26:G,38:$,41:[1,202],42:Z,46:X,61:J,69:Q,72:178,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{22:q,24:K,26:G,38:$,42:Z,46:X,61:J,63:[1,203],65:[1,204],69:Q,72:178,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{22:q,24:K,26:G,38:$,42:Z,46:X,61:J,63:[1,206],65:[1,205],69:Q,72:178,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{9:207,20:P,21:R,23:F},e(Y,[2,48],{46:Le}),e(U,[2,71]),e(U,[2,70]),{22:q,24:K,26:G,38:$,42:Z,46:X,61:J,69:Q,71:[1,208],72:178,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},e(U,[2,73]),e(Te,[2,77]),{22:q,24:K,26:G,38:$,39:209,42:Z,46:X,61:J,69:Q,72:106,73:ee,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},e(xe,s,{17:210}),e(I,[2,43]),{45:211,46:h,48:38,80:y,91:v,92:b,95:w,96:C,97:S,99:x,100:L,104:39,106:k,107:M,108:D,109:E,110:T,111:N},{22:Ae,75:Ie,85:212,88:Pe,91:Re,93:213,94:214,95:Fe,96:Ye,97:je,98:Be,99:We,100:He,101:Ve},e(Ne,[2,139]),{22:Ae,75:Ie,85:226,88:Pe,91:Re,93:213,94:214,95:Fe,96:Ye,97:je,98:Be,99:We,100:He,101:Ve},{22:Ae,75:Ie,85:227,88:Pe,90:[1,228],91:Re,93:213,94:214,95:Fe,96:Ye,97:je,98:Be,99:We,100:He,101:Ve},{22:Ae,75:Ie,85:229,88:Pe,90:[1,230],91:Re,93:213,94:214,95:Fe,96:Ye,97:je,98:Be,99:We,100:He,101:Ve},{91:[1,231]},{22:Ae,75:Ie,85:232,88:Pe,91:Re,93:213,94:214,95:Fe,96:Ye,97:je,98:Be,99:We,100:He,101:Ve},{22:Ae,75:Ie,85:233,88:Pe,91:Re,93:213,94:214,95:Fe,96:Ye,97:je,98:Be,99:We,100:He,101:Ve},{26:ke,46:X,80:Me,86:234,91:le,92:ce,95:de,96:he,97:De,99:pe,100:ge,103:149,105:147,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{26:ke,46:X,73:[1,236],80:Me,86:235,91:le,92:ce,95:de,96:he,97:De,99:pe,100:ge,103:149,105:147,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},e(B,[2,54]),{22:q,24:K,26:G,38:$,42:Z,46:X,50:[1,237],61:J,69:Q,72:178,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},e(B,[2,60]),e(B,[2,56]),e(B,[2,57]),e(B,[2,58]),e(B,[2,59]),e(B,[2,61]),{22:q,24:K,26:G,38:$,42:Z,46:X,60:[1,238],61:J,69:Q,72:178,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},e(B,[2,63]),e(B,[2,64]),e(B,[2,66]),e(B,[2,65]),e(B,[2,67]),e(Ee,[2,4]),e([22,46,80,91,92,95,96,97,99,100,106,107,108,109,110,111],[2,75]),{22:q,24:K,26:G,38:$,41:[1,239],42:Z,46:X,61:J,69:Q,72:178,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{18:18,19:19,20:a,21:u,22:l,23:c,32:24,33:25,34:26,35:27,36:28,37:29,38:d,42:[1,240],44:31,45:37,46:h,48:38,75:f,76:p,77:g,78:m,79:_,80:y,91:v,92:b,95:w,96:C,97:S,99:x,100:L,104:39,106:k,107:M,108:D,109:E,110:T,111:N},e(j,[2,52]),e(H,[2,101],{92:ze}),e(Ue,[2,111],{94:242,22:Ae,75:Ie,88:Pe,91:Re,95:Fe,96:Ye,97:je,98:Be,99:We,100:He,101:Ve}),e(qe,[2,113]),e(qe,[2,115]),e(qe,[2,116]),e(qe,[2,117]),e(qe,[2,118]),e(qe,[2,119]),e(qe,[2,120]),e(qe,[2,121]),e(qe,[2,122]),e(qe,[2,123]),e(qe,[2,124]),e(qe,[2,125]),e(H,[2,102],{92:ze}),e(H,[2,103],{92:ze}),{22:[1,243]},e(H,[2,104],{92:ze}),{22:[1,244]},e(Oe,[2,110]),e(H,[2,92],{92:ze}),e(H,[2,93],{92:ze}),e(H,[2,94],{103:149,105:184,26:ke,46:X,80:Me,91:le,92:ce,95:de,96:he,97:De,99:pe,100:ge,106:ye,107:ve,108:be,109:we,110:Ce,111:Se}),e(H,[2,95],{103:149,105:184,22:[1,245],26:ke,46:X,80:Me,91:le,92:ce,95:de,96:he,97:De,99:pe,100:ge,106:ye,107:ve,108:be,109:we,110:Ce,111:Se}),e(H,[2,97],{22:[1,246]}),{50:[1,247]},{60:[1,248]},{9:249,20:P,21:R,23:F},e(I,[2,42]),{22:Ae,75:Ie,88:Pe,91:Re,93:250,94:214,95:Fe,96:Ye,97:je,98:Be,99:We,100:He,101:Ve},e(qe,[2,114]),{26:ke,46:X,80:Me,86:251,91:le,92:ce,95:de,96:he,97:De,99:pe,100:ge,103:149,105:147,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{26:ke,46:X,80:Me,86:252,91:le,92:ce,95:de,96:he,97:De,99:pe,100:ge,103:149,105:147,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{73:[1,253]},{73:[1,254],87:[1,255]},e(B,[2,55]),e(B,[2,62]),e(xe,s,{17:256}),e(Ue,[2,112],{94:242,22:Ae,75:Ie,88:Pe,91:Re,95:Fe,96:Ye,97:je,98:Be,99:We,100:He,101:Ve}),e(H,[2,107],{103:149,105:184,22:[1,257],26:ke,46:X,80:Me,91:le,92:ce,95:de,96:he,97:De,99:pe,100:ge,106:ye,107:ve,108:be,109:we,110:Ce,111:Se}),e(H,[2,108],{103:149,105:184,22:[1,258],26:ke,46:X,80:Me,91:le,92:ce,95:de,96:he,97:De,99:pe,100:ge,106:ye,107:ve,108:be,109:we,110:Ce,111:Se}),e(H,[2,96]),e(H,[2,98],{22:[1,259]}),e(H,[2,99]),{18:18,19:19,20:a,21:u,22:l,23:c,32:24,33:25,34:26,35:27,36:28,37:29,38:d,42:[1,260],44:31,45:37,46:h,48:38,75:f,76:p,77:g,78:m,79:_,80:y,91:v,92:b,95:w,96:C,97:S,99:x,100:L,104:39,106:k,107:M,108:D,109:E,110:T,111:N},{22:Ae,75:Ie,85:261,88:Pe,91:Re,93:213,94:214,95:Fe,96:Ye,97:je,98:Be,99:We,100:He,101:Ve},{22:Ae,75:Ie,85:262,88:Pe,91:Re,93:213,94:214,95:Fe,96:Ye,97:je,98:Be,99:We,100:He,101:Ve},{87:[1,263]},e(I,[2,41]),e(H,[2,105],{92:ze}),e(H,[2,106],{92:ze}),e(H,[2,100])],defaultActions:{2:[2,1],9:[2,5],10:[2,2],98:[2,7]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],r=[],i=[null],o=[],s=this.table,a="",u=0,l=0,c=0,d=2,h=1,f=o.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var m in this.yy)Object.prototype.hasOwnProperty.call(this.yy,m)&&(g.yy[m]=this.yy[m]);p.setInput(e,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var _=p.yylloc;o.push(_);var y=p.options&&p.options.ranges;function v(){var e;return"number"!=typeof(e=r.pop()||p.lex()||h)&&(e instanceof Array&&(e=(r=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,w,C,S,x,L,k,M,D,E={};;){if(C=n[n.length-1],this.defaultActions[C]?S=this.defaultActions[C]:(null==b&&(b=v()),S=s[C]&&s[C][b]),void 0===S||!S.length||!S[0]){var T="";for(L in D=[],s[C])this.terminals_[L]&&L>d&&D.push("'"+this.terminals_[L]+"'");T=p.showPosition?"Parse error on line "+(u+1)+":\n"+p.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(u+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(T,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:_,expected:D})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+b);switch(S[0]){case 1:n.push(b),i.push(p.yytext),o.push(p.yylloc),n.push(S[1]),b=null,w?(b=w,w=null):(l=p.yyleng,a=p.yytext,u=p.yylineno,_=p.yylloc,c>0&&c--);break;case 2:if(k=this.productions_[S[1]][1],E.$=i[i.length-k],E._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(E._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),void 0!==(x=this.performAction.apply(E,[a,l,u,g.yy,S[1],i,o].concat(f))))return x;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),o=o.slice(0,-1*k)),n.push(this.productions_[S[1]][0]),i.push(E.$),o.push(E._$),M=s[n[n.length-2]][n[n.length-1]],n.push(M);break;case 3:return!0}}return!0}},Ge={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;o<i.length;o++)if((n=this._input.match(this.rules[i[o]]))&&(!t||n[0].length>t[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(e,t,n,r){switch(n){case 0:return this.begin("open_directive"),12;case 1:return this.begin("type_directive"),13;case 2:return this.popState(),this.begin("arg_directive"),10;case 3:return this.popState(),this.popState(),15;case 4:return 14;case 5:case 6:break;case 7:this.begin("string");break;case 8:this.popState();break;case 9:return"STR";case 10:return 75;case 11:return 84;case 12:return 76;case 13:return 90;case 14:return 77;case 15:return 78;case 16:return 79;case 17:case 18:return e.lex.firstGraph()&&this.begin("dir"),24;case 19:return 38;case 20:return 42;case 21:case 22:case 23:case 24:return 87;case 25:return this.popState(),25;case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 34:case 35:return this.popState(),26;case 36:return 91;case 37:return 99;case 38:return 47;case 39:return 96;case 40:return 46;case 41:return 20;case 42:return 92;case 43:return 110;case 44:case 45:case 46:return 70;case 47:case 48:case 49:return 69;case 50:return 51;case 51:return 52;case 52:return 53;case 53:return 54;case 54:return 55;case 55:return 56;case 56:return 57;case 57:return 58;case 58:return 97;case 59:return 100;case 60:return 111;case 61:return 108;case 62:return 101;case 63:case 64:return 109;case 65:return 102;case 66:return 61;case 67:return 81;case 68:return"SEP";case 69:return 80;case 70:return 95;case 71:return 63;case 72:return 62;case 73:return 65;case 74:return 64;case 75:return 106;case 76:return 107;case 77:return 71;case 78:return 49;case 79:return 50;case 80:return 40;case 81:return 41;case 82:return 59;case 83:return 60;case 84:return 117;case 85:return 21;case 86:return 22;case 87:return 23}},rules:[/^(?:%%\{)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)[^\n]*)/,/^(?:[^\}]%%[^\n]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:click\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\[)/,/^(?:\]\))/,/^(?:\[\[)/,/^(?:\]\])/,/^(?:\[\()/,/^(?:\)\])/,/^(?:-)/,/^(?:\.)/,/^(?:[\_])/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:[A-Za-z]+)/,/^(?:\\\])/,/^(?:\[\/)/,/^(?:\/\])/,/^(?:\[\\)/,/^(?:[!"#$%&'*+,-.`?\\_/])/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\()/,/^(?:\))/,/^(?:\[)/,/^(?:\])/,/^(?:\{)/,/^(?:\})/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},vertex:{rules:[],inclusive:!1},dir:{rules:[25,26,27,28,29,30,31,32,33,34,35],inclusive:!1},string:{rules:[8,9],inclusive:!1},INITIAL:{rules:[0,5,6,7,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87],inclusive:!0}}};function $e(){this.yy={}}return Ke.lexer=Ge,$e.prototype=Ke,Ke.Parser=$e,new $e}();t.parser=i,t.Parser=i.Parser,t.parse=function(){return i.parse.apply(i,arguments)},t.main=function(r){r[1]||(console.log("Usage: "+r[0]+" FILE"),e.exit(1));var i=n(/*! fs */"./node_modules/node-libs-browser/mock/empty.js").readFileSync(n(/*! path */"./node_modules/path-browserify/index.js").normalize(r[1]),"utf8");return t.parser.parse(i)},n.c[n.s]===r&&t.main(e.argv.slice(1))}).call(this,n(/*! ./../../../../node_modules/process/browser.js */"./node_modules/process/browser.js"),n(/*! ./../../../../node_modules/webpack/buildin/module.js */"./node_modules/webpack/buildin/module.js")(e))},"./src/diagrams/flowchart/styles.js": +/*! no static exports found */function(e,t,n){(function(e,i){var r=function(){var e=function(e,t,n,i){for(n=n||{},i=e.length;i--;n[e[i]]=t);return n},t=[1,9],n=[1,7],i=[1,6],r=[1,8],o=[1,20,21,22,23,38,46,75,76,77,78,79,80,91,92,95,96,97,99,100,106,107,108,109,110,111],s=[2,10],a=[1,20],l=[1,21],c=[1,22],d=[1,23],u=[1,30],h=[1,54],f=[1,32],g=[1,33],p=[1,34],m=[1,35],_=[1,36],b=[1,48],v=[1,43],y=[1,45],w=[1,40],C=[1,44],S=[1,47],k=[1,51],x=[1,52],L=[1,53],M=[1,42],D=[1,46],E=[1,49],T=[1,50],O=[1,41],N=[1,57],I=[1,62],A=[1,20,21,22,23,38,42,46,75,76,77,78,79,80,91,92,95,96,97,99,100,106,107,108,109,110,111],R=[1,66],P=[1,65],j=[1,67],F=[20,21,23,69,70],B=[20,21,22,23,69,70],W=[20,21,22,23,47,69,70],H=[20,21,22,23,40,46,47,49,51,53,55,57,59,61,62,64,69,70,80,91,92,95,96,97,99,100,106,107,108,109,110,111],Y=[20,21,23],V=[20,21,23,46,69,70,80,91,92,95,96,97,99,100,106,107,108,109,110,111],z=[1,12,20,21,22,23,24,38,42,46,75,76,77,78,79,80,91,92,95,96,97,99,100,106,107,108,109,110,111],U=[46,80,91,92,95,96,97,99,100,106,107,108,109,110,111],$=[1,115],q=[1,136],K=[1,137],G=[1,138],Z=[1,139],J=[1,119],X=[1,110],Q=[1,111],ee=[1,107],te=[1,131],ne=[1,132],ie=[1,133],re=[1,134],oe=[1,135],se=[1,140],ae=[1,141],le=[1,113],ce=[1,121],de=[1,124],ue=[1,122],he=[1,123],fe=[1,116],ge=[1,129],pe=[1,128],me=[1,112],_e=[1,109],be=[1,118],ve=[1,120],ye=[1,125],we=[1,126],Ce=[1,127],Se=[1,130],ke=[20,21,22,23,38,42,46,75,76,77,78,79,80,91,92,95,96,97,99,100,106,107,108,109,110,111],xe=[1,144],Le=[1,148],Me=[1,150],De=[1,151],Ee=[12,21,22,24],Te=[20,21,22,23,24,26,38,40,41,42,46,50,52,54,56,58,60,61,63,65,69,70,71,75,76,77,78,79,80,81,84,91,92,95,96,97,99,100,101,102,106,107,108,109,110,111],Oe=[20,21,22,23,26,46,80,91,92,95,96,97,99,100,106,107,108,109,110,111],Ne=[22,92],Ie=[1,220],Ae=[1,224],Re=[1,221],Pe=[1,218],je=[1,215],Fe=[1,216],Be=[1,217],We=[1,219],He=[1,222],Ye=[1,223],Ve=[1,225],ze=[1,241],Ue=[20,21,23,92],$e=[20,21,22,23,75,88,91,92,95,96,97,98,99,100,101],qe={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,directive:5,openDirective:6,typeDirective:7,closeDirective:8,separator:9,":":10,argDirective:11,open_directive:12,type_directive:13,arg_directive:14,close_directive:15,graphConfig:16,document:17,line:18,statement:19,SEMI:20,NEWLINE:21,SPACE:22,EOF:23,GRAPH:24,NODIR:25,DIR:26,FirstStmtSeperator:27,ending:28,endToken:29,spaceList:30,spaceListNewline:31,verticeStatement:32,styleStatement:33,linkStyleStatement:34,classDefStatement:35,classStatement:36,clickStatement:37,subgraph:38,text:39,SQS:40,SQE:41,end:42,link:43,node:44,vertex:45,AMP:46,STYLE_SEPARATOR:47,idString:48,PS:49,PE:50,"(-":51,"-)":52,STADIUMSTART:53,STADIUMEND:54,SUBROUTINESTART:55,SUBROUTINEEND:56,CYLINDERSTART:57,CYLINDEREND:58,DIAMOND_START:59,DIAMOND_STOP:60,TAGEND:61,TRAPSTART:62,TRAPEND:63,INVTRAPSTART:64,INVTRAPEND:65,linkStatement:66,arrowText:67,TESTSTR:68,START_LINK:69,LINK:70,PIPE:71,textToken:72,STR:73,keywords:74,STYLE:75,LINKSTYLE:76,CLASSDEF:77,CLASS:78,CLICK:79,DOWN:80,UP:81,textNoTags:82,textNoTagsToken:83,DEFAULT:84,stylesOpt:85,alphaNum:86,LINK_TARGET:87,HEX:88,numList:89,INTERPOLATE:90,NUM:91,COMMA:92,style:93,styleComponent:94,ALPHA:95,COLON:96,MINUS:97,UNIT:98,BRKT:99,DOT:100,PCT:101,TAGSTART:102,alphaNumToken:103,idStringToken:104,alphaNumStatement:105,PUNCTUATION:106,UNICODE_TEXT:107,PLUS:108,EQUALS:109,MULT:110,UNDERSCORE:111,graphCodeTokens:112,ARROW_CROSS:113,ARROW_POINT:114,ARROW_CIRCLE:115,ARROW_OPEN:116,QUOTE:117,$accept:0,$end:1},terminals_:{2:"error",10:":",12:"open_directive",13:"type_directive",14:"arg_directive",15:"close_directive",20:"SEMI",21:"NEWLINE",22:"SPACE",23:"EOF",24:"GRAPH",25:"NODIR",26:"DIR",38:"subgraph",40:"SQS",41:"SQE",42:"end",46:"AMP",47:"STYLE_SEPARATOR",49:"PS",50:"PE",51:"(-",52:"-)",53:"STADIUMSTART",54:"STADIUMEND",55:"SUBROUTINESTART",56:"SUBROUTINEEND",57:"CYLINDERSTART",58:"CYLINDEREND",59:"DIAMOND_START",60:"DIAMOND_STOP",61:"TAGEND",62:"TRAPSTART",63:"TRAPEND",64:"INVTRAPSTART",65:"INVTRAPEND",68:"TESTSTR",69:"START_LINK",70:"LINK",71:"PIPE",73:"STR",75:"STYLE",76:"LINKSTYLE",77:"CLASSDEF",78:"CLASS",79:"CLICK",80:"DOWN",81:"UP",84:"DEFAULT",87:"LINK_TARGET",88:"HEX",90:"INTERPOLATE",91:"NUM",92:"COMMA",95:"ALPHA",96:"COLON",97:"MINUS",98:"UNIT",99:"BRKT",100:"DOT",101:"PCT",102:"TAGSTART",106:"PUNCTUATION",107:"UNICODE_TEXT",108:"PLUS",109:"EQUALS",110:"MULT",111:"UNDERSCORE",113:"ARROW_CROSS",114:"ARROW_POINT",115:"ARROW_CIRCLE",116:"ARROW_OPEN",117:"QUOTE"},productions_:[0,[3,1],[3,2],[5,4],[5,6],[6,1],[7,1],[11,1],[8,1],[4,2],[17,0],[17,2],[18,1],[18,1],[18,1],[18,1],[18,1],[16,2],[16,2],[16,2],[16,3],[28,2],[28,1],[29,1],[29,1],[29,1],[27,1],[27,1],[27,2],[31,2],[31,2],[31,1],[31,1],[30,2],[30,1],[19,2],[19,2],[19,2],[19,2],[19,2],[19,2],[19,9],[19,6],[19,4],[9,1],[9,1],[9,1],[32,3],[32,4],[32,2],[32,1],[44,1],[44,5],[44,3],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[43,2],[43,3],[43,3],[43,1],[43,3],[66,1],[67,3],[39,1],[39,2],[39,1],[74,1],[74,1],[74,1],[74,1],[74,1],[74,1],[74,1],[74,1],[74,1],[74,1],[74,1],[82,1],[82,2],[35,5],[35,5],[36,5],[37,5],[37,7],[37,5],[37,7],[37,7],[37,9],[33,5],[33,5],[34,5],[34,5],[34,9],[34,9],[34,7],[34,7],[89,1],[89,3],[85,1],[85,3],[93,1],[93,2],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[72,1],[72,1],[72,1],[72,1],[72,1],[72,1],[83,1],[83,1],[83,1],[83,1],[48,1],[48,2],[86,1],[86,2],[105,1],[105,1],[105,1],[105,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1]],performAction:function(e,t,n,i,r,o,s){var a=o.length-1;switch(r){case 5:i.parseDirective("%%{","open_directive");break;case 6:i.parseDirective(o[a],"type_directive");break;case 7:o[a]=o[a].trim().replace(/'/g,'"'),i.parseDirective(o[a],"arg_directive");break;case 8:i.parseDirective("}%%","close_directive","flowchart");break;case 10:this.$=[];break;case 11:o[a]!==[]&&o[a-1].push(o[a]),this.$=o[a-1];break;case 12:case 76:case 78:case 90:case 138:case 140:case 141:this.$=o[a];break;case 19:i.setDirection("TB"),this.$="TB";break;case 20:i.setDirection(o[a-1]),this.$=o[a-1];break;case 35:this.$=o[a-1].nodes;break;case 36:case 37:case 38:case 39:case 40:this.$=[];break;case 41:this.$=i.addSubGraph(o[a-6],o[a-1],o[a-4]);break;case 42:this.$=i.addSubGraph(o[a-3],o[a-1],o[a-3]);break;case 43:this.$=i.addSubGraph(void 0,o[a-1],void 0);break;case 47:i.addLink(o[a-2].stmt,o[a],o[a-1]),this.$={stmt:o[a],nodes:o[a].concat(o[a-2].nodes)};break;case 48:i.addLink(o[a-3].stmt,o[a-1],o[a-2]),this.$={stmt:o[a-1],nodes:o[a-1].concat(o[a-3].nodes)};break;case 49:this.$={stmt:o[a-1],nodes:o[a-1]};break;case 50:this.$={stmt:o[a],nodes:o[a]};break;case 51:this.$=[o[a]];break;case 52:this.$=o[a-4].concat(o[a]);break;case 53:this.$=[o[a-2]],i.setClass(o[a-2],o[a]);break;case 54:this.$=o[a-3],i.addVertex(o[a-3],o[a-1],"square");break;case 55:this.$=o[a-5],i.addVertex(o[a-5],o[a-2],"circle");break;case 56:this.$=o[a-3],i.addVertex(o[a-3],o[a-1],"ellipse");break;case 57:this.$=o[a-3],i.addVertex(o[a-3],o[a-1],"stadium");break;case 58:this.$=o[a-3],i.addVertex(o[a-3],o[a-1],"subroutine");break;case 59:this.$=o[a-3],i.addVertex(o[a-3],o[a-1],"cylinder");break;case 60:this.$=o[a-3],i.addVertex(o[a-3],o[a-1],"round");break;case 61:this.$=o[a-3],i.addVertex(o[a-3],o[a-1],"diamond");break;case 62:this.$=o[a-5],i.addVertex(o[a-5],o[a-2],"hexagon");break;case 63:this.$=o[a-3],i.addVertex(o[a-3],o[a-1],"odd");break;case 64:this.$=o[a-3],i.addVertex(o[a-3],o[a-1],"trapezoid");break;case 65:this.$=o[a-3],i.addVertex(o[a-3],o[a-1],"inv_trapezoid");break;case 66:this.$=o[a-3],i.addVertex(o[a-3],o[a-1],"lean_right");break;case 67:this.$=o[a-3],i.addVertex(o[a-3],o[a-1],"lean_left");break;case 68:this.$=o[a],i.addVertex(o[a]);break;case 69:o[a-1].text=o[a],this.$=o[a-1];break;case 70:case 71:o[a-2].text=o[a-1],this.$=o[a-2];break;case 72:this.$=o[a];break;case 73:var l=i.destructLink(o[a],o[a-2]);this.$={type:l.type,stroke:l.stroke,length:l.length,text:o[a-1]};break;case 74:l=i.destructLink(o[a]),this.$={type:l.type,stroke:l.stroke,length:l.length};break;case 75:this.$=o[a-1];break;case 77:case 91:case 139:this.$=o[a-1]+""+o[a];break;case 92:case 93:this.$=o[a-4],i.addClass(o[a-2],o[a]);break;case 94:this.$=o[a-4],i.setClass(o[a-2],o[a]);break;case 95:this.$=o[a-4],i.setClickEvent(o[a-2],o[a],void 0);break;case 96:this.$=o[a-6],i.setClickEvent(o[a-4],o[a-2],o[a]);break;case 97:this.$=o[a-4],i.setLink(o[a-2],o[a],void 0,void 0);break;case 98:this.$=o[a-6],i.setLink(o[a-4],o[a-2],o[a],void 0);break;case 99:this.$=o[a-6],i.setLink(o[a-4],o[a-2],void 0,o[a]);break;case 100:this.$=o[a-8],i.setLink(o[a-6],o[a-4],o[a-2],o[a]);break;case 101:this.$=o[a-4],i.addVertex(o[a-2],void 0,void 0,o[a]);break;case 102:case 104:this.$=o[a-4],i.updateLink(o[a-2],o[a]);break;case 103:this.$=o[a-4],i.updateLink([o[a-2]],o[a]);break;case 105:this.$=o[a-8],i.updateLinkInterpolate([o[a-6]],o[a-2]),i.updateLink([o[a-6]],o[a]);break;case 106:this.$=o[a-8],i.updateLinkInterpolate(o[a-6],o[a-2]),i.updateLink(o[a-6],o[a]);break;case 107:this.$=o[a-6],i.updateLinkInterpolate([o[a-4]],o[a]);break;case 108:this.$=o[a-6],i.updateLinkInterpolate(o[a-4],o[a]);break;case 109:case 111:this.$=[o[a]];break;case 110:case 112:o[a-2].push(o[a]),this.$=o[a-2];break;case 114:this.$=o[a-1]+o[a];break;case 136:this.$=o[a];break;case 137:this.$=o[a-1]+""+o[a];break;case 142:this.$="v";break;case 143:this.$="-"}},table:[{3:1,4:2,5:3,6:5,12:t,16:4,21:n,22:i,24:r},{1:[3]},{1:[2,1]},{3:10,4:2,5:3,6:5,12:t,16:4,21:n,22:i,24:r},e(o,s,{17:11}),{7:12,13:[1,13]},{16:14,21:n,22:i,24:r},{16:15,21:n,22:i,24:r},{25:[1,16],26:[1,17]},{13:[2,5]},{1:[2,2]},{1:[2,9],18:18,19:19,20:a,21:l,22:c,23:d,32:24,33:25,34:26,35:27,36:28,37:29,38:u,44:31,45:37,46:h,48:38,75:f,76:g,77:p,78:m,79:_,80:b,91:v,92:y,95:w,96:C,97:S,99:k,100:x,104:39,106:L,107:M,108:D,109:E,110:T,111:O},{8:55,10:[1,56],15:N},e([10,15],[2,6]),e(o,[2,17]),e(o,[2,18]),e(o,[2,19]),{20:[1,59],21:[1,60],22:I,27:58,30:61},e(A,[2,11]),e(A,[2,12]),e(A,[2,13]),e(A,[2,14]),e(A,[2,15]),e(A,[2,16]),{9:63,20:R,21:P,23:j,43:64,66:68,69:[1,69],70:[1,70]},{9:71,20:R,21:P,23:j},{9:72,20:R,21:P,23:j},{9:73,20:R,21:P,23:j},{9:74,20:R,21:P,23:j},{9:75,20:R,21:P,23:j},{9:77,20:R,21:P,22:[1,76],23:j},e(F,[2,50],{30:78,22:I}),{22:[1,79]},{22:[1,80]},{22:[1,81]},{22:[1,82]},{22:[1,83]},e(B,[2,51],{47:[1,84]}),e(W,[2,68],{104:95,40:[1,85],46:h,49:[1,86],51:[1,87],53:[1,88],55:[1,89],57:[1,90],59:[1,91],61:[1,92],62:[1,93],64:[1,94],80:b,91:v,92:y,95:w,96:C,97:S,99:k,100:x,106:L,107:M,108:D,109:E,110:T,111:O}),e(H,[2,136]),e(H,[2,157]),e(H,[2,158]),e(H,[2,159]),e(H,[2,160]),e(H,[2,161]),e(H,[2,162]),e(H,[2,163]),e(H,[2,164]),e(H,[2,165]),e(H,[2,166]),e(H,[2,167]),e(H,[2,168]),e(H,[2,169]),e(H,[2,170]),e(H,[2,171]),{9:96,20:R,21:P,23:j},{11:97,14:[1,98]},e(Y,[2,8]),e(o,[2,20]),e(o,[2,26]),e(o,[2,27]),{21:[1,99]},e(V,[2,34],{30:100,22:I}),e(A,[2,35]),{44:101,45:37,46:h,48:38,80:b,91:v,92:y,95:w,96:C,97:S,99:k,100:x,104:39,106:L,107:M,108:D,109:E,110:T,111:O},e(z,[2,44]),e(z,[2,45]),e(z,[2,46]),e(U,[2,72],{67:102,68:[1,103],71:[1,104]}),{22:$,24:q,26:K,38:G,39:105,42:Z,46:J,61:X,69:Q,72:106,73:ee,74:117,75:te,76:ne,77:ie,78:re,79:oe,80:se,81:ae,83:108,84:le,91:ce,92:de,95:ue,96:he,97:fe,99:ge,100:pe,101:me,102:_e,103:114,106:be,107:ve,108:ye,109:we,110:Ce,111:Se},e([46,68,71,80,91,92,95,96,97,99,100,106,107,108,109,110,111],[2,74]),e(A,[2,36]),e(A,[2,37]),e(A,[2,38]),e(A,[2,39]),e(A,[2,40]),{22:$,24:q,26:K,38:G,39:142,42:Z,46:J,61:X,69:Q,72:106,73:ee,74:117,75:te,76:ne,77:ie,78:re,79:oe,80:se,81:ae,83:108,84:le,91:ce,92:de,95:ue,96:he,97:fe,99:ge,100:pe,101:me,102:_e,103:114,106:be,107:ve,108:ye,109:we,110:Ce,111:Se},e(ke,s,{17:143}),e(F,[2,49],{46:xe}),{26:Le,46:J,80:Me,86:145,88:[1,146],91:ce,92:de,95:ue,96:he,97:De,99:ge,100:pe,103:149,105:147,106:be,107:ve,108:ye,109:we,110:Ce,111:Se},{84:[1,152],89:153,91:[1,154]},{26:Le,46:J,80:Me,84:[1,155],86:156,91:ce,92:de,95:ue,96:he,97:De,99:ge,100:pe,103:149,105:147,106:be,107:ve,108:ye,109:we,110:Ce,111:Se},{26:Le,46:J,80:Me,86:157,91:ce,92:de,95:ue,96:he,97:De,99:ge,100:pe,103:149,105:147,106:be,107:ve,108:ye,109:we,110:Ce,111:Se},{26:Le,46:J,80:Me,86:158,91:ce,92:de,95:ue,96:he,97:De,99:ge,100:pe,103:149,105:147,106:be,107:ve,108:ye,109:we,110:Ce,111:Se},{46:h,48:159,80:b,91:v,92:y,95:w,96:C,97:S,99:k,100:x,104:39,106:L,107:M,108:D,109:E,110:T,111:O},{22:$,24:q,26:K,38:G,39:160,42:Z,46:J,61:X,69:Q,72:106,73:ee,74:117,75:te,76:ne,77:ie,78:re,79:oe,80:se,81:ae,83:108,84:le,91:ce,92:de,95:ue,96:he,97:fe,99:ge,100:pe,101:me,102:_e,103:114,106:be,107:ve,108:ye,109:we,110:Ce,111:Se},{22:$,24:q,26:K,38:G,39:162,42:Z,46:J,49:[1,161],61:X,69:Q,72:106,73:ee,74:117,75:te,76:ne,77:ie,78:re,79:oe,80:se,81:ae,83:108,84:le,91:ce,92:de,95:ue,96:he,97:fe,99:ge,100:pe,101:me,102:_e,103:114,106:be,107:ve,108:ye,109:we,110:Ce,111:Se},{22:$,24:q,26:K,38:G,39:163,42:Z,46:J,61:X,69:Q,72:106,73:ee,74:117,75:te,76:ne,77:ie,78:re,79:oe,80:se,81:ae,83:108,84:le,91:ce,92:de,95:ue,96:he,97:fe,99:ge,100:pe,101:me,102:_e,103:114,106:be,107:ve,108:ye,109:we,110:Ce,111:Se},{22:$,24:q,26:K,38:G,39:164,42:Z,46:J,61:X,69:Q,72:106,73:ee,74:117,75:te,76:ne,77:ie,78:re,79:oe,80:se,81:ae,83:108,84:le,91:ce,92:de,95:ue,96:he,97:fe,99:ge,100:pe,101:me,102:_e,103:114,106:be,107:ve,108:ye,109:we,110:Ce,111:Se},{22:$,24:q,26:K,38:G,39:165,42:Z,46:J,61:X,69:Q,72:106,73:ee,74:117,75:te,76:ne,77:ie,78:re,79:oe,80:se,81:ae,83:108,84:le,91:ce,92:de,95:ue,96:he,97:fe,99:ge,100:pe,101:me,102:_e,103:114,106:be,107:ve,108:ye,109:we,110:Ce,111:Se},{22:$,24:q,26:K,38:G,39:166,42:Z,46:J,61:X,69:Q,72:106,73:ee,74:117,75:te,76:ne,77:ie,78:re,79:oe,80:se,81:ae,83:108,84:le,91:ce,92:de,95:ue,96:he,97:fe,99:ge,100:pe,101:me,102:_e,103:114,106:be,107:ve,108:ye,109:we,110:Ce,111:Se},{22:$,24:q,26:K,38:G,39:167,42:Z,46:J,59:[1,168],61:X,69:Q,72:106,73:ee,74:117,75:te,76:ne,77:ie,78:re,79:oe,80:se,81:ae,83:108,84:le,91:ce,92:de,95:ue,96:he,97:fe,99:ge,100:pe,101:me,102:_e,103:114,106:be,107:ve,108:ye,109:we,110:Ce,111:Se},{22:$,24:q,26:K,38:G,39:169,42:Z,46:J,61:X,69:Q,72:106,73:ee,74:117,75:te,76:ne,77:ie,78:re,79:oe,80:se,81:ae,83:108,84:le,91:ce,92:de,95:ue,96:he,97:fe,99:ge,100:pe,101:me,102:_e,103:114,106:be,107:ve,108:ye,109:we,110:Ce,111:Se},{22:$,24:q,26:K,38:G,39:170,42:Z,46:J,61:X,69:Q,72:106,73:ee,74:117,75:te,76:ne,77:ie,78:re,79:oe,80:se,81:ae,83:108,84:le,91:ce,92:de,95:ue,96:he,97:fe,99:ge,100:pe,101:me,102:_e,103:114,106:be,107:ve,108:ye,109:we,110:Ce,111:Se},{22:$,24:q,26:K,38:G,39:171,42:Z,46:J,61:X,69:Q,72:106,73:ee,74:117,75:te,76:ne,77:ie,78:re,79:oe,80:se,81:ae,83:108,84:le,91:ce,92:de,95:ue,96:he,97:fe,99:ge,100:pe,101:me,102:_e,103:114,106:be,107:ve,108:ye,109:we,110:Ce,111:Se},e(H,[2,137]),e(Ee,[2,3]),{8:172,15:N},{15:[2,7]},e(o,[2,28]),e(V,[2,33]),e(F,[2,47],{30:173,22:I}),e(U,[2,69],{22:[1,174]}),{22:[1,175]},{22:$,24:q,26:K,38:G,39:176,42:Z,46:J,61:X,69:Q,72:106,73:ee,74:117,75:te,76:ne,77:ie,78:re,79:oe,80:se,81:ae,83:108,84:le,91:ce,92:de,95:ue,96:he,97:fe,99:ge,100:pe,101:me,102:_e,103:114,106:be,107:ve,108:ye,109:we,110:Ce,111:Se},{22:$,24:q,26:K,38:G,42:Z,46:J,61:X,69:Q,70:[1,177],72:178,74:117,75:te,76:ne,77:ie,78:re,79:oe,80:se,81:ae,83:108,84:le,91:ce,92:de,95:ue,96:he,97:fe,99:ge,100:pe,101:me,102:_e,103:114,106:be,107:ve,108:ye,109:we,110:Ce,111:Se},e(Te,[2,76]),e(Te,[2,78]),e(Te,[2,126]),e(Te,[2,127]),e(Te,[2,128]),e(Te,[2,129]),e(Te,[2,130]),e(Te,[2,131]),e(Te,[2,132]),e(Te,[2,133]),e(Te,[2,134]),e(Te,[2,135]),e(Te,[2,144]),e(Te,[2,145]),e(Te,[2,146]),e(Te,[2,147]),e(Te,[2,148]),e(Te,[2,149]),e(Te,[2,150]),e(Te,[2,151]),e(Te,[2,152]),e(Te,[2,153]),e(Te,[2,154]),e(Te,[2,155]),e(Te,[2,156]),e(Te,[2,79]),e(Te,[2,80]),e(Te,[2,81]),e(Te,[2,82]),e(Te,[2,83]),e(Te,[2,84]),e(Te,[2,85]),e(Te,[2,86]),e(Te,[2,87]),e(Te,[2,88]),e(Te,[2,89]),{9:180,20:R,21:P,22:$,23:j,24:q,26:K,38:G,40:[1,179],42:Z,46:J,61:X,69:Q,72:178,74:117,75:te,76:ne,77:ie,78:re,79:oe,80:se,81:ae,83:108,84:le,91:ce,92:de,95:ue,96:he,97:fe,99:ge,100:pe,101:me,102:_e,103:114,106:be,107:ve,108:ye,109:we,110:Ce,111:Se},{18:18,19:19,20:a,21:l,22:c,23:d,32:24,33:25,34:26,35:27,36:28,37:29,38:u,42:[1,181],44:31,45:37,46:h,48:38,75:f,76:g,77:p,78:m,79:_,80:b,91:v,92:y,95:w,96:C,97:S,99:k,100:x,104:39,106:L,107:M,108:D,109:E,110:T,111:O},{22:I,30:182},{22:[1,183],26:Le,46:J,80:Me,91:ce,92:de,95:ue,96:he,97:De,99:ge,100:pe,103:149,105:184,106:be,107:ve,108:ye,109:we,110:Ce,111:Se},{22:[1,185]},e(Oe,[2,138]),e(Oe,[2,140]),e(Oe,[2,141]),e(Oe,[2,142]),e(Oe,[2,143]),{22:[1,186]},{22:[1,187],92:[1,188]},e(Ne,[2,109]),{22:[1,189]},{22:[1,190],26:Le,46:J,80:Me,91:ce,92:de,95:ue,96:he,97:De,99:ge,100:pe,103:149,105:184,106:be,107:ve,108:ye,109:we,110:Ce,111:Se},{22:[1,191],26:Le,46:J,80:Me,91:ce,92:de,95:ue,96:he,97:De,99:ge,100:pe,103:149,105:184,106:be,107:ve,108:ye,109:we,110:Ce,111:Se},{22:[1,192],26:Le,46:J,80:Me,91:ce,92:de,95:ue,96:he,97:De,99:ge,100:pe,103:149,105:184,106:be,107:ve,108:ye,109:we,110:Ce,111:Se},e(B,[2,53],{104:95,46:h,80:b,91:v,92:y,95:w,96:C,97:S,99:k,100:x,106:L,107:M,108:D,109:E,110:T,111:O}),{22:$,24:q,26:K,38:G,41:[1,193],42:Z,46:J,61:X,69:Q,72:178,74:117,75:te,76:ne,77:ie,78:re,79:oe,80:se,81:ae,83:108,84:le,91:ce,92:de,95:ue,96:he,97:fe,99:ge,100:pe,101:me,102:_e,103:114,106:be,107:ve,108:ye,109:we,110:Ce,111:Se},{22:$,24:q,26:K,38:G,39:194,42:Z,46:J,61:X,69:Q,72:106,73:ee,74:117,75:te,76:ne,77:ie,78:re,79:oe,80:se,81:ae,83:108,84:le,91:ce,92:de,95:ue,96:he,97:fe,99:ge,100:pe,101:me,102:_e,103:114,106:be,107:ve,108:ye,109:we,110:Ce,111:Se},{22:$,24:q,26:K,38:G,42:Z,46:J,50:[1,195],61:X,69:Q,72:178,74:117,75:te,76:ne,77:ie,78:re,79:oe,80:se,81:ae,83:108,84:le,91:ce,92:de,95:ue,96:he,97:fe,99:ge,100:pe,101:me,102:_e,103:114,106:be,107:ve,108:ye,109:we,110:Ce,111:Se},{22:$,24:q,26:K,38:G,42:Z,46:J,52:[1,196],61:X,69:Q,72:178,74:117,75:te,76:ne,77:ie,78:re,79:oe,80:se,81:ae,83:108,84:le,91:ce,92:de,95:ue,96:he,97:fe,99:ge,100:pe,101:me,102:_e,103:114,106:be,107:ve,108:ye,109:we,110:Ce,111:Se},{22:$,24:q,26:K,38:G,42:Z,46:J,54:[1,197],61:X,69:Q,72:178,74:117,75:te,76:ne,77:ie,78:re,79:oe,80:se,81:ae,83:108,84:le,91:ce,92:de,95:ue,96:he,97:fe,99:ge,100:pe,101:me,102:_e,103:114,106:be,107:ve,108:ye,109:we,110:Ce,111:Se},{22:$,24:q,26:K,38:G,42:Z,46:J,56:[1,198],61:X,69:Q,72:178,74:117,75:te,76:ne,77:ie,78:re,79:oe,80:se,81:ae,83:108,84:le,91:ce,92:de,95:ue,96:he,97:fe,99:ge,100:pe,101:me,102:_e,103:114,106:be,107:ve,108:ye,109:we,110:Ce,111:Se},{22:$,24:q,26:K,38:G,42:Z,46:J,58:[1,199],61:X,69:Q,72:178,74:117,75:te,76:ne,77:ie,78:re,79:oe,80:se,81:ae,83:108,84:le,91:ce,92:de,95:ue,96:he,97:fe,99:ge,100:pe,101:me,102:_e,103:114,106:be,107:ve,108:ye,109:we,110:Ce,111:Se},{22:$,24:q,26:K,38:G,42:Z,46:J,60:[1,200],61:X,69:Q,72:178,74:117,75:te,76:ne,77:ie,78:re,79:oe,80:se,81:ae,83:108,84:le,91:ce,92:de,95:ue,96:he,97:fe,99:ge,100:pe,101:me,102:_e,103:114,106:be,107:ve,108:ye,109:we,110:Ce,111:Se},{22:$,24:q,26:K,38:G,39:201,42:Z,46:J,61:X,69:Q,72:106,73:ee,74:117,75:te,76:ne,77:ie,78:re,79:oe,80:se,81:ae,83:108,84:le,91:ce,92:de,95:ue,96:he,97:fe,99:ge,100:pe,101:me,102:_e,103:114,106:be,107:ve,108:ye,109:we,110:Ce,111:Se},{22:$,24:q,26:K,38:G,41:[1,202],42:Z,46:J,61:X,69:Q,72:178,74:117,75:te,76:ne,77:ie,78:re,79:oe,80:se,81:ae,83:108,84:le,91:ce,92:de,95:ue,96:he,97:fe,99:ge,100:pe,101:me,102:_e,103:114,106:be,107:ve,108:ye,109:we,110:Ce,111:Se},{22:$,24:q,26:K,38:G,42:Z,46:J,61:X,63:[1,203],65:[1,204],69:Q,72:178,74:117,75:te,76:ne,77:ie,78:re,79:oe,80:se,81:ae,83:108,84:le,91:ce,92:de,95:ue,96:he,97:fe,99:ge,100:pe,101:me,102:_e,103:114,106:be,107:ve,108:ye,109:we,110:Ce,111:Se},{22:$,24:q,26:K,38:G,42:Z,46:J,61:X,63:[1,206],65:[1,205],69:Q,72:178,74:117,75:te,76:ne,77:ie,78:re,79:oe,80:se,81:ae,83:108,84:le,91:ce,92:de,95:ue,96:he,97:fe,99:ge,100:pe,101:me,102:_e,103:114,106:be,107:ve,108:ye,109:we,110:Ce,111:Se},{9:207,20:R,21:P,23:j},e(F,[2,48],{46:xe}),e(U,[2,71]),e(U,[2,70]),{22:$,24:q,26:K,38:G,42:Z,46:J,61:X,69:Q,71:[1,208],72:178,74:117,75:te,76:ne,77:ie,78:re,79:oe,80:se,81:ae,83:108,84:le,91:ce,92:de,95:ue,96:he,97:fe,99:ge,100:pe,101:me,102:_e,103:114,106:be,107:ve,108:ye,109:we,110:Ce,111:Se},e(U,[2,73]),e(Te,[2,77]),{22:$,24:q,26:K,38:G,39:209,42:Z,46:J,61:X,69:Q,72:106,73:ee,74:117,75:te,76:ne,77:ie,78:re,79:oe,80:se,81:ae,83:108,84:le,91:ce,92:de,95:ue,96:he,97:fe,99:ge,100:pe,101:me,102:_e,103:114,106:be,107:ve,108:ye,109:we,110:Ce,111:Se},e(ke,s,{17:210}),e(A,[2,43]),{45:211,46:h,48:38,80:b,91:v,92:y,95:w,96:C,97:S,99:k,100:x,104:39,106:L,107:M,108:D,109:E,110:T,111:O},{22:Ie,75:Ae,85:212,88:Re,91:Pe,93:213,94:214,95:je,96:Fe,97:Be,98:We,99:He,100:Ye,101:Ve},e(Oe,[2,139]),{22:Ie,75:Ae,85:226,88:Re,91:Pe,93:213,94:214,95:je,96:Fe,97:Be,98:We,99:He,100:Ye,101:Ve},{22:Ie,75:Ae,85:227,88:Re,90:[1,228],91:Pe,93:213,94:214,95:je,96:Fe,97:Be,98:We,99:He,100:Ye,101:Ve},{22:Ie,75:Ae,85:229,88:Re,90:[1,230],91:Pe,93:213,94:214,95:je,96:Fe,97:Be,98:We,99:He,100:Ye,101:Ve},{91:[1,231]},{22:Ie,75:Ae,85:232,88:Re,91:Pe,93:213,94:214,95:je,96:Fe,97:Be,98:We,99:He,100:Ye,101:Ve},{22:Ie,75:Ae,85:233,88:Re,91:Pe,93:213,94:214,95:je,96:Fe,97:Be,98:We,99:He,100:Ye,101:Ve},{26:Le,46:J,80:Me,86:234,91:ce,92:de,95:ue,96:he,97:De,99:ge,100:pe,103:149,105:147,106:be,107:ve,108:ye,109:we,110:Ce,111:Se},{26:Le,46:J,73:[1,236],80:Me,86:235,91:ce,92:de,95:ue,96:he,97:De,99:ge,100:pe,103:149,105:147,106:be,107:ve,108:ye,109:we,110:Ce,111:Se},e(W,[2,54]),{22:$,24:q,26:K,38:G,42:Z,46:J,50:[1,237],61:X,69:Q,72:178,74:117,75:te,76:ne,77:ie,78:re,79:oe,80:se,81:ae,83:108,84:le,91:ce,92:de,95:ue,96:he,97:fe,99:ge,100:pe,101:me,102:_e,103:114,106:be,107:ve,108:ye,109:we,110:Ce,111:Se},e(W,[2,60]),e(W,[2,56]),e(W,[2,57]),e(W,[2,58]),e(W,[2,59]),e(W,[2,61]),{22:$,24:q,26:K,38:G,42:Z,46:J,60:[1,238],61:X,69:Q,72:178,74:117,75:te,76:ne,77:ie,78:re,79:oe,80:se,81:ae,83:108,84:le,91:ce,92:de,95:ue,96:he,97:fe,99:ge,100:pe,101:me,102:_e,103:114,106:be,107:ve,108:ye,109:we,110:Ce,111:Se},e(W,[2,63]),e(W,[2,64]),e(W,[2,66]),e(W,[2,65]),e(W,[2,67]),e(Ee,[2,4]),e([22,46,80,91,92,95,96,97,99,100,106,107,108,109,110,111],[2,75]),{22:$,24:q,26:K,38:G,41:[1,239],42:Z,46:J,61:X,69:Q,72:178,74:117,75:te,76:ne,77:ie,78:re,79:oe,80:se,81:ae,83:108,84:le,91:ce,92:de,95:ue,96:he,97:fe,99:ge,100:pe,101:me,102:_e,103:114,106:be,107:ve,108:ye,109:we,110:Ce,111:Se},{18:18,19:19,20:a,21:l,22:c,23:d,32:24,33:25,34:26,35:27,36:28,37:29,38:u,42:[1,240],44:31,45:37,46:h,48:38,75:f,76:g,77:p,78:m,79:_,80:b,91:v,92:y,95:w,96:C,97:S,99:k,100:x,104:39,106:L,107:M,108:D,109:E,110:T,111:O},e(B,[2,52]),e(Y,[2,101],{92:ze}),e(Ue,[2,111],{94:242,22:Ie,75:Ae,88:Re,91:Pe,95:je,96:Fe,97:Be,98:We,99:He,100:Ye,101:Ve}),e($e,[2,113]),e($e,[2,115]),e($e,[2,116]),e($e,[2,117]),e($e,[2,118]),e($e,[2,119]),e($e,[2,120]),e($e,[2,121]),e($e,[2,122]),e($e,[2,123]),e($e,[2,124]),e($e,[2,125]),e(Y,[2,102],{92:ze}),e(Y,[2,103],{92:ze}),{22:[1,243]},e(Y,[2,104],{92:ze}),{22:[1,244]},e(Ne,[2,110]),e(Y,[2,92],{92:ze}),e(Y,[2,93],{92:ze}),e(Y,[2,94],{103:149,105:184,26:Le,46:J,80:Me,91:ce,92:de,95:ue,96:he,97:De,99:ge,100:pe,106:be,107:ve,108:ye,109:we,110:Ce,111:Se}),e(Y,[2,95],{103:149,105:184,22:[1,245],26:Le,46:J,80:Me,91:ce,92:de,95:ue,96:he,97:De,99:ge,100:pe,106:be,107:ve,108:ye,109:we,110:Ce,111:Se}),e(Y,[2,97],{22:[1,246]}),{50:[1,247]},{60:[1,248]},{9:249,20:R,21:P,23:j},e(A,[2,42]),{22:Ie,75:Ae,88:Re,91:Pe,93:250,94:214,95:je,96:Fe,97:Be,98:We,99:He,100:Ye,101:Ve},e($e,[2,114]),{26:Le,46:J,80:Me,86:251,91:ce,92:de,95:ue,96:he,97:De,99:ge,100:pe,103:149,105:147,106:be,107:ve,108:ye,109:we,110:Ce,111:Se},{26:Le,46:J,80:Me,86:252,91:ce,92:de,95:ue,96:he,97:De,99:ge,100:pe,103:149,105:147,106:be,107:ve,108:ye,109:we,110:Ce,111:Se},{73:[1,253]},{73:[1,254],87:[1,255]},e(W,[2,55]),e(W,[2,62]),e(ke,s,{17:256}),e(Ue,[2,112],{94:242,22:Ie,75:Ae,88:Re,91:Pe,95:je,96:Fe,97:Be,98:We,99:He,100:Ye,101:Ve}),e(Y,[2,107],{103:149,105:184,22:[1,257],26:Le,46:J,80:Me,91:ce,92:de,95:ue,96:he,97:De,99:ge,100:pe,106:be,107:ve,108:ye,109:we,110:Ce,111:Se}),e(Y,[2,108],{103:149,105:184,22:[1,258],26:Le,46:J,80:Me,91:ce,92:de,95:ue,96:he,97:De,99:ge,100:pe,106:be,107:ve,108:ye,109:we,110:Ce,111:Se}),e(Y,[2,96]),e(Y,[2,98],{22:[1,259]}),e(Y,[2,99]),{18:18,19:19,20:a,21:l,22:c,23:d,32:24,33:25,34:26,35:27,36:28,37:29,38:u,42:[1,260],44:31,45:37,46:h,48:38,75:f,76:g,77:p,78:m,79:_,80:b,91:v,92:y,95:w,96:C,97:S,99:k,100:x,104:39,106:L,107:M,108:D,109:E,110:T,111:O},{22:Ie,75:Ae,85:261,88:Re,91:Pe,93:213,94:214,95:je,96:Fe,97:Be,98:We,99:He,100:Ye,101:Ve},{22:Ie,75:Ae,85:262,88:Re,91:Pe,93:213,94:214,95:je,96:Fe,97:Be,98:We,99:He,100:Ye,101:Ve},{87:[1,263]},e(A,[2,41]),e(Y,[2,105],{92:ze}),e(Y,[2,106],{92:ze}),e(Y,[2,100])],defaultActions:{2:[2,1],9:[2,5],10:[2,2],98:[2,7]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],i=[],r=[null],o=[],s=this.table,a="",l=0,c=0,d=0,u=2,h=1,f=o.slice.call(arguments,1),g=Object.create(this.lexer),p={yy:{}};for(var m in this.yy)Object.prototype.hasOwnProperty.call(this.yy,m)&&(p.yy[m]=this.yy[m]);g.setInput(e,p.yy),p.yy.lexer=g,p.yy.parser=this,void 0===g.yylloc&&(g.yylloc={});var _=g.yylloc;o.push(_);var b=g.options&&g.options.ranges;function v(){var e;return"number"!=typeof(e=i.pop()||g.lex()||h)&&(e instanceof Array&&(e=(i=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var y,w,C,S,k,x,L,M,D,E={};;){if(C=n[n.length-1],this.defaultActions[C]?S=this.defaultActions[C]:(null==y&&(y=v()),S=s[C]&&s[C][y]),void 0===S||!S.length||!S[0]){var T="";for(x in D=[],s[C])this.terminals_[x]&&x>u&&D.push("'"+this.terminals_[x]+"'");T=g.showPosition?"Parse error on line "+(l+1)+":\n"+g.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[y]||y)+"'":"Parse error on line "+(l+1)+": Unexpected "+(y==h?"end of input":"'"+(this.terminals_[y]||y)+"'"),this.parseError(T,{text:g.match,token:this.terminals_[y]||y,line:g.yylineno,loc:_,expected:D})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+y);switch(S[0]){case 1:n.push(y),r.push(g.yytext),o.push(g.yylloc),n.push(S[1]),y=null,w?(y=w,w=null):(c=g.yyleng,a=g.yytext,l=g.yylineno,_=g.yylloc,d>0&&d--);break;case 2:if(L=this.productions_[S[1]][1],E.$=r[r.length-L],E._$={first_line:o[o.length-(L||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(L||1)].first_column,last_column:o[o.length-1].last_column},b&&(E._$.range=[o[o.length-(L||1)].range[0],o[o.length-1].range[1]]),void 0!==(k=this.performAction.apply(E,[a,c,l,p.yy,S[1],r,o].concat(f))))return k;L&&(n=n.slice(0,-1*L*2),r=r.slice(0,-1*L),o=o.slice(0,-1*L)),n.push(this.productions_[S[1]][0]),r.push(E.$),o.push(E._$),M=s[n[n.length-2]][n[n.length-1]],n.push(M);break;case 3:return!0}}return!0}},Ke={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in r)this[o]=r[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),o=0;o<r.length;o++)if((n=this._input.match(this.rules[r[o]]))&&(!t||n[0].length>t[0].length)){if(t=n,i=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,r[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,r[i]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(e,t,n,i){switch(n){case 0:return this.begin("open_directive"),12;case 1:return this.begin("type_directive"),13;case 2:return this.popState(),this.begin("arg_directive"),10;case 3:return this.popState(),this.popState(),15;case 4:return 14;case 5:case 6:break;case 7:this.begin("string");break;case 8:this.popState();break;case 9:return"STR";case 10:return 75;case 11:return 84;case 12:return 76;case 13:return 90;case 14:return 77;case 15:return 78;case 16:return 79;case 17:case 18:return e.lex.firstGraph()&&this.begin("dir"),24;case 19:return 38;case 20:return 42;case 21:case 22:case 23:case 24:return 87;case 25:return this.popState(),25;case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 34:case 35:return this.popState(),26;case 36:return 91;case 37:return 99;case 38:return 47;case 39:return 96;case 40:return 46;case 41:return 20;case 42:return 92;case 43:return 110;case 44:case 45:case 46:return 70;case 47:case 48:case 49:return 69;case 50:return 51;case 51:return 52;case 52:return 53;case 53:return 54;case 54:return 55;case 55:return 56;case 56:return 57;case 57:return 58;case 58:return 97;case 59:return 100;case 60:return 111;case 61:return 108;case 62:return 101;case 63:case 64:return 109;case 65:return 102;case 66:return 61;case 67:return 81;case 68:return"SEP";case 69:return 80;case 70:return 95;case 71:return 63;case 72:return 62;case 73:return 65;case 74:return 64;case 75:return 106;case 76:return 107;case 77:return 71;case 78:return 49;case 79:return 50;case 80:return 40;case 81:return 41;case 82:return 59;case 83:return 60;case 84:return 117;case 85:return 21;case 86:return 22;case 87:return 23}},rules:[/^(?:%%\{)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)[^\n]*)/,/^(?:[^\}]%%[^\n]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:click\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\[)/,/^(?:\]\))/,/^(?:\[\[)/,/^(?:\]\])/,/^(?:\[\()/,/^(?:\)\])/,/^(?:-)/,/^(?:\.)/,/^(?:[\_])/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:[A-Za-z]+)/,/^(?:\\\])/,/^(?:\[\/)/,/^(?:\/\])/,/^(?:\[\\)/,/^(?:[!"#$%&'*+,-.`?\\_/])/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\()/,/^(?:\))/,/^(?:\[)/,/^(?:\])/,/^(?:\{)/,/^(?:\})/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},vertex:{rules:[],inclusive:!1},dir:{rules:[25,26,27,28,29,30,31,32,33,34,35],inclusive:!1},string:{rules:[8,9],inclusive:!1},INITIAL:{rules:[0,5,6,7,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87],inclusive:!0}}};function Ge(){this.yy={}}return qe.lexer=Ke,Ge.prototype=qe,qe.Parser=Ge,new Ge}();t.parser=r,t.Parser=r.Parser,t.parse=function(){return r.parse.apply(r,arguments)},t.main=function(i){i[1]||(console.log("Usage: "+i[0]+" FILE"),e.exit(1));var r=n(/*! fs */"./node_modules/node-libs-browser/mock/empty.js").readFileSync(n(/*! path */"./node_modules/path-browserify/index.js").normalize(i[1]),"utf8");return t.parser.parse(r)},n.c[n.s]===i&&t.main(e.argv.slice(1))}).call(this,n(/*! ./../../../../node_modules/process/browser.js */"./node_modules/process/browser.js"),n(/*! ./../../../../node_modules/webpack/buildin/module.js */"./node_modules/webpack/buildin/module.js")(e))},"./src/diagrams/flowchart/styles.js": /*!******************************************!*\ !*** ./src/diagrams/flowchart/styles.js ***! \******************************************/ @@ -166,15 +166,15 @@ /*!***************************************!*\ !*** ./src/diagrams/gantt/ganttDb.js ***! \***************************************/ -/*! exports provided: parseDirective, clear, setAxisFormat, getAxisFormat, setTodayMarker, getTodayMarker, setDateFormat, enableInclusiveEndDates, endDatesAreInclusive, getDateFormat, setExcludes, getExcludes, setTitle, getTitle, addSection, getSections, getTasks, addTask, findTaskById, addTaskOrg, setLink, setClass, setClickEvent, bindFunctions, default */function(e,t,n){"use strict";n.r(t),n.d(t,"parseDirective",(function(){return L})),n.d(t,"clear",(function(){return k})),n.d(t,"setAxisFormat",(function(){return M})),n.d(t,"getAxisFormat",(function(){return D})),n.d(t,"setTodayMarker",(function(){return E})),n.d(t,"getTodayMarker",(function(){return T})),n.d(t,"setDateFormat",(function(){return N})),n.d(t,"enableInclusiveEndDates",(function(){return O})),n.d(t,"endDatesAreInclusive",(function(){return A})),n.d(t,"getDateFormat",(function(){return I})),n.d(t,"setExcludes",(function(){return P})),n.d(t,"getExcludes",(function(){return R})),n.d(t,"setTitle",(function(){return F})),n.d(t,"getTitle",(function(){return Y})),n.d(t,"addSection",(function(){return j})),n.d(t,"getSections",(function(){return B})),n.d(t,"getTasks",(function(){return W})),n.d(t,"addTask",(function(){return J})),n.d(t,"findTaskById",(function(){return Q})),n.d(t,"addTaskOrg",(function(){return ee})),n.d(t,"setLink",(function(){return ne})),n.d(t,"setClass",(function(){return re})),n.d(t,"setClickEvent",(function(){return oe})),n.d(t,"bindFunctions",(function(){return se}));var r=n(/*! moment-mini */"moment-mini"),i=n.n(r),o=n(/*! @braintree/sanitize-url */"@braintree/sanitize-url"),s=n(/*! ../../logger */"./src/logger.js"),a=n(/*! ../../config */"./src/config.js"),u=n(/*! ../../utils */"./src/utils.js"),l=n(/*! ../../mermaidAPI */"./src/mermaidAPI.js");function c(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var d,h,f="",p="",g="",m=[],_="",y=[],v=[],b="",w=["active","done","crit","milestone"],C=[],S=!1,x=0,L=function(e,t,n){l.default.parseDirective(this,e,t,n)},k=function(){y=[],v=[],b="",C=[],_="",G=0,d=void 0,h=void 0,Z=[],f="",p="",g="",m=[],S=!1,x=0},M=function(e){p=e},D=function(){return p},E=function(e){g=e},T=function(){return g},N=function(e){f=e},O=function(){S=!0},A=function(){return S},I=function(){return f},P=function(e){m=e.toLowerCase().split(/[\s,]+/)},R=function(){return m},F=function(e){_=e},Y=function(){return _},j=function(e){b=e,y.push(e)},B=function(){return y},W=function(){for(var e=te(),t=0;!e&&t<10;)e=te(),t++;return v=Z},H=function(e,t,n){return e.isoWeekday()>=6&&n.indexOf("weekends")>=0||n.indexOf(e.format("dddd").toLowerCase())>=0||n.indexOf(e.format(t.trim()))>=0},V=function(e,t,n){if(n.length&&!e.manualEndTime){var r=i()(e.startTime,t,!0);r.add(1,"d");var o=i()(e.endTime,t,!0),s=z(r,o,t,n);e.endTime=o.toDate(),e.renderEndTime=s}},z=function(e,t,n,r){for(var i=!1,o=null;e<=t;)i||(o=t.toDate()),(i=H(e,n,r))&&t.add(1,"d"),e.add(1,"d");return o},U=function(e,t,n){n=n.trim();var r=/^after\s+([\d\w- ]+)/.exec(n.trim());if(null!==r){var o=null;if(r[1].split(" ").forEach((function(e){var t=Q(e);void 0!==t&&(o?t.endTime>o.endTime&&(o=t):o=t)})),o)return o.endTime;var a=new Date;return a.setHours(0,0,0,0),a}var u=i()(n,t.trim(),!0);return u.isValid()?u.toDate():(s.logger.debug("Invalid date:"+n),s.logger.debug("With date format:"+t.trim()),new Date)},q=function(e,t){if(null!==e)switch(e[2]){case"s":t.add(e[1],"seconds");break;case"m":t.add(e[1],"minutes");break;case"h":t.add(e[1],"hours");break;case"d":t.add(e[1],"days");break;case"w":t.add(e[1],"weeks")}return t.toDate()},K=function(e,t,n,r){r=r||!1,n=n.trim();var o=i()(n,t.trim(),!0);return o.isValid()?(r&&o.add(1,"d"),o.toDate()):q(/^([\d]+)([wdhms])/.exec(n.trim()),i()(e))},G=0,$=function(e){return void 0===e?"task"+(G+=1):e},Z=[],X={},J=function(e,t){var n={section:b,type:b,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:t},task:e,classes:[]},r=function(e,t){var n=(":"===t.substr(0,1)?t.substr(1,t.length):t).split(","),r={};ae(n,r,w);for(var i=0;i<n.length;i++)n[i]=n[i].trim();switch(n.length){case 1:r.id=$(),r.startTime={type:"prevTaskEnd",id:e},r.endTime={data:n[0]};break;case 2:r.id=$(),r.startTime={type:"getStartDate",startData:n[0]},r.endTime={data:n[1]};break;case 3:r.id=$(n[0]),r.startTime={type:"getStartDate",startData:n[1]},r.endTime={data:n[2]}}return r}(h,t);n.raw.startTime=r.startTime,n.raw.endTime=r.endTime,n.id=r.id,n.prevTaskId=h,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,n.order=x,x++;var i=Z.push(n);h=n.id,X[n.id]=i-1},Q=function(e){var t=X[e];return Z[t]},ee=function(e,t){var n={section:b,type:b,description:e,task:e,classes:[]},r=function(e,t){var n=(":"===t.substr(0,1)?t.substr(1,t.length):t).split(","),r={};ae(n,r,w);for(var o=0;o<n.length;o++)n[o]=n[o].trim();var s="";switch(n.length){case 1:r.id=$(),r.startTime=e.endTime,s=n[0];break;case 2:r.id=$(),r.startTime=U(0,f,n[0]),s=n[1];break;case 3:r.id=$(n[0]),r.startTime=U(0,f,n[1]),s=n[2]}return s&&(r.endTime=K(r.startTime,f,s,S),r.manualEndTime=i()(s,"YYYY-MM-DD",!0).isValid(),V(r,f,m)),r}(d,t);n.startTime=r.startTime,n.endTime=r.endTime,n.id=r.id,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,d=n,v.push(n)},te=function(){for(var e=function(e){var t=Z[e],n="";switch(Z[e].raw.startTime.type){case"prevTaskEnd":var r=Q(t.prevTaskId);t.startTime=r.endTime;break;case"getStartDate":(n=U(0,f,Z[e].raw.startTime.startData))&&(Z[e].startTime=n)}return Z[e].startTime&&(Z[e].endTime=K(Z[e].startTime,f,Z[e].raw.endTime.data,S),Z[e].endTime&&(Z[e].processed=!0,Z[e].manualEndTime=i()(Z[e].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),V(Z[e],f,m))),Z[e].processed},t=!0,n=0;n<Z.length;n++)e(n),t=t&&Z[n].processed;return t},ne=function(e,t){var n=t;"loose"!==a.getConfig().securityLevel&&(n=Object(o.sanitizeUrl)(t)),e.split(",").forEach((function(e){void 0!==Q(e)&&ie(e,(function(){window.open(n,"_self")}))})),re(e,"clickable")},re=function(e,t){e.split(",").forEach((function(e){var n=Q(e);void 0!==n&&n.classes.push(t)}))},ie=function(e,t){C.push((function(){var n=document.querySelector('[id="'.concat(e,'"]'));null!==n&&n.addEventListener("click",(function(){t()}))})),C.push((function(){var n=document.querySelector('[id="'.concat(e,'-text"]'));null!==n&&n.addEventListener("click",(function(){t()}))}))},oe=function(e,t,n){e.split(",").forEach((function(e){!function(e,t,n){if("loose"===a.getConfig().securityLevel&&void 0!==t){var r=[];if("string"==typeof n){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var i=0;i<r.length;i++){var o=r[i].trim();'"'===o.charAt(0)&&'"'===o.charAt(o.length-1)&&(o=o.substr(1,o.length-2)),r[i]=o}}0===r.length&&r.push(e),void 0!==Q(e)&&ie(e,(function(){u.default.runFunc.apply(u.default,[t].concat(c(r)))}))}}(e,t,n)})),re(e,"clickable")},se=function(e){C.forEach((function(t){t(e)}))};function ae(e,t,n){for(var r=!0;r;)r=!1,n.forEach((function(n){var i=new RegExp("^\\s*"+n+"\\s*$");e[0].match(i)&&(t[n]=!0,e.shift(1),r=!0)}))}t.default={parseDirective:L,getConfig:function(){return a.getConfig().gantt},clear:k,setDateFormat:N,getDateFormat:I,enableInclusiveEndDates:O,endDatesAreInclusive:A,setAxisFormat:M,getAxisFormat:D,setTodayMarker:E,getTodayMarker:T,setTitle:F,getTitle:Y,addSection:j,getSections:B,getTasks:W,addTask:J,findTaskById:Q,addTaskOrg:ee,setExcludes:P,getExcludes:R,setClickEvent:oe,setLink:ne,bindFunctions:se,durationToDate:q}},"./src/diagrams/gantt/ganttRenderer.js": +/*! exports provided: parseDirective, clear, setAxisFormat, getAxisFormat, setTodayMarker, getTodayMarker, setDateFormat, enableInclusiveEndDates, endDatesAreInclusive, getDateFormat, setExcludes, getExcludes, setTitle, getTitle, addSection, getSections, getTasks, addTask, findTaskById, addTaskOrg, setLink, setClass, setClickEvent, bindFunctions, default */function(e,t,n){"use strict";n.r(t),n.d(t,"parseDirective",(function(){return x})),n.d(t,"clear",(function(){return L})),n.d(t,"setAxisFormat",(function(){return M})),n.d(t,"getAxisFormat",(function(){return D})),n.d(t,"setTodayMarker",(function(){return E})),n.d(t,"getTodayMarker",(function(){return T})),n.d(t,"setDateFormat",(function(){return O})),n.d(t,"enableInclusiveEndDates",(function(){return N})),n.d(t,"endDatesAreInclusive",(function(){return I})),n.d(t,"getDateFormat",(function(){return A})),n.d(t,"setExcludes",(function(){return R})),n.d(t,"getExcludes",(function(){return P})),n.d(t,"setTitle",(function(){return j})),n.d(t,"getTitle",(function(){return F})),n.d(t,"addSection",(function(){return B})),n.d(t,"getSections",(function(){return W})),n.d(t,"getTasks",(function(){return H})),n.d(t,"addTask",(function(){return X})),n.d(t,"findTaskById",(function(){return Q})),n.d(t,"addTaskOrg",(function(){return ee})),n.d(t,"setLink",(function(){return ne})),n.d(t,"setClass",(function(){return ie})),n.d(t,"setClickEvent",(function(){return oe})),n.d(t,"bindFunctions",(function(){return se}));var i=n(/*! moment-mini */"moment-mini"),r=n.n(i),o=n(/*! @braintree/sanitize-url */"@braintree/sanitize-url"),s=n(/*! ../../logger */"./src/logger.js"),a=n(/*! ../../config */"./src/config.js"),l=n(/*! ../../utils */"./src/utils.js"),c=n(/*! ../../mermaidAPI */"./src/mermaidAPI.js");function d(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var u,h,f="",g="",p="",m=[],_="",b=[],v=[],y="",w=["active","done","crit","milestone"],C=[],S=!1,k=0,x=function(e,t,n){c.default.parseDirective(this,e,t,n)},L=function(){b=[],v=[],y="",C=[],_="",K=0,u=void 0,h=void 0,Z=[],f="",g="",p="",m=[],S=!1,k=0},M=function(e){g=e},D=function(){return g},E=function(e){p=e},T=function(){return p},O=function(e){f=e},N=function(){S=!0},I=function(){return S},A=function(){return f},R=function(e){m=e.toLowerCase().split(/[\s,]+/)},P=function(){return m},j=function(e){_=e},F=function(){return _},B=function(e){y=e,b.push(e)},W=function(){return b},H=function(){for(var e=te(),t=0;!e&&t<10;)e=te(),t++;return v=Z},Y=function(e,t,n){return e.isoWeekday()>=6&&n.indexOf("weekends")>=0||n.indexOf(e.format("dddd").toLowerCase())>=0||n.indexOf(e.format(t.trim()))>=0},V=function(e,t,n){if(n.length&&!e.manualEndTime){var i=r()(e.startTime,t,!0);i.add(1,"d");var o=r()(e.endTime,t,!0),s=z(i,o,t,n);e.endTime=o.toDate(),e.renderEndTime=s}},z=function(e,t,n,i){for(var r=!1,o=null;e<=t;)r||(o=t.toDate()),(r=Y(e,n,i))&&t.add(1,"d"),e.add(1,"d");return o},U=function(e,t,n){n=n.trim();var i=/^after\s+([\d\w- ]+)/.exec(n.trim());if(null!==i){var o=null;if(i[1].split(" ").forEach((function(e){var t=Q(e);void 0!==t&&(o?t.endTime>o.endTime&&(o=t):o=t)})),o)return o.endTime;var a=new Date;return a.setHours(0,0,0,0),a}var l=r()(n,t.trim(),!0);return l.isValid()?l.toDate():(s.logger.debug("Invalid date:"+n),s.logger.debug("With date format:"+t.trim()),new Date)},$=function(e,t){if(null!==e)switch(e[2]){case"s":t.add(e[1],"seconds");break;case"m":t.add(e[1],"minutes");break;case"h":t.add(e[1],"hours");break;case"d":t.add(e[1],"days");break;case"w":t.add(e[1],"weeks")}return t.toDate()},q=function(e,t,n,i){i=i||!1,n=n.trim();var o=r()(n,t.trim(),!0);return o.isValid()?(i&&o.add(1,"d"),o.toDate()):$(/^([\d]+)([wdhms])/.exec(n.trim()),r()(e))},K=0,G=function(e){return void 0===e?"task"+(K+=1):e},Z=[],J={},X=function(e,t){var n={section:y,type:y,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:t},task:e,classes:[]},i=function(e,t){var n=(":"===t.substr(0,1)?t.substr(1,t.length):t).split(","),i={};ae(n,i,w);for(var r=0;r<n.length;r++)n[r]=n[r].trim();switch(n.length){case 1:i.id=G(),i.startTime={type:"prevTaskEnd",id:e},i.endTime={data:n[0]};break;case 2:i.id=G(),i.startTime={type:"getStartDate",startData:n[0]},i.endTime={data:n[1]};break;case 3:i.id=G(n[0]),i.startTime={type:"getStartDate",startData:n[1]},i.endTime={data:n[2]}}return i}(h,t);n.raw.startTime=i.startTime,n.raw.endTime=i.endTime,n.id=i.id,n.prevTaskId=h,n.active=i.active,n.done=i.done,n.crit=i.crit,n.milestone=i.milestone,n.order=k,k++;var r=Z.push(n);h=n.id,J[n.id]=r-1},Q=function(e){var t=J[e];return Z[t]},ee=function(e,t){var n={section:y,type:y,description:e,task:e,classes:[]},i=function(e,t){var n=(":"===t.substr(0,1)?t.substr(1,t.length):t).split(","),i={};ae(n,i,w);for(var o=0;o<n.length;o++)n[o]=n[o].trim();var s="";switch(n.length){case 1:i.id=G(),i.startTime=e.endTime,s=n[0];break;case 2:i.id=G(),i.startTime=U(0,f,n[0]),s=n[1];break;case 3:i.id=G(n[0]),i.startTime=U(0,f,n[1]),s=n[2]}return s&&(i.endTime=q(i.startTime,f,s,S),i.manualEndTime=r()(s,"YYYY-MM-DD",!0).isValid(),V(i,f,m)),i}(u,t);n.startTime=i.startTime,n.endTime=i.endTime,n.id=i.id,n.active=i.active,n.done=i.done,n.crit=i.crit,n.milestone=i.milestone,u=n,v.push(n)},te=function(){for(var e=function(e){var t=Z[e],n="";switch(Z[e].raw.startTime.type){case"prevTaskEnd":var i=Q(t.prevTaskId);t.startTime=i.endTime;break;case"getStartDate":(n=U(0,f,Z[e].raw.startTime.startData))&&(Z[e].startTime=n)}return Z[e].startTime&&(Z[e].endTime=q(Z[e].startTime,f,Z[e].raw.endTime.data,S),Z[e].endTime&&(Z[e].processed=!0,Z[e].manualEndTime=r()(Z[e].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),V(Z[e],f,m))),Z[e].processed},t=!0,n=0;n<Z.length;n++)e(n),t=t&&Z[n].processed;return t},ne=function(e,t){var n=t;"loose"!==a.getConfig().securityLevel&&(n=Object(o.sanitizeUrl)(t)),e.split(",").forEach((function(e){void 0!==Q(e)&&re(e,(function(){window.open(n,"_self")}))})),ie(e,"clickable")},ie=function(e,t){e.split(",").forEach((function(e){var n=Q(e);void 0!==n&&n.classes.push(t)}))},re=function(e,t){C.push((function(){var n=document.querySelector('[id="'.concat(e,'"]'));null!==n&&n.addEventListener("click",(function(){t()}))})),C.push((function(){var n=document.querySelector('[id="'.concat(e,'-text"]'));null!==n&&n.addEventListener("click",(function(){t()}))}))},oe=function(e,t,n){e.split(",").forEach((function(e){!function(e,t,n){if("loose"===a.getConfig().securityLevel&&void 0!==t){var i=[];if("string"==typeof n){i=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var r=0;r<i.length;r++){var o=i[r].trim();'"'===o.charAt(0)&&'"'===o.charAt(o.length-1)&&(o=o.substr(1,o.length-2)),i[r]=o}}0===i.length&&i.push(e),void 0!==Q(e)&&re(e,(function(){l.default.runFunc.apply(l.default,[t].concat(d(i)))}))}}(e,t,n)})),ie(e,"clickable")},se=function(e){C.forEach((function(t){t(e)}))};function ae(e,t,n){for(var i=!0;i;)i=!1,n.forEach((function(n){var r=new RegExp("^\\s*"+n+"\\s*$");e[0].match(r)&&(t[n]=!0,e.shift(1),i=!0)}))}t.default={parseDirective:x,getConfig:function(){return a.getConfig().gantt},clear:L,setDateFormat:O,getDateFormat:A,enableInclusiveEndDates:N,endDatesAreInclusive:I,setAxisFormat:M,getAxisFormat:D,setTodayMarker:E,getTodayMarker:T,setTitle:j,getTitle:F,addSection:B,getSections:W,getTasks:H,addTask:X,findTaskById:Q,addTaskOrg:ee,setExcludes:R,getExcludes:P,setClickEvent:oe,setLink:ne,bindFunctions:se,durationToDate:$}},"./src/diagrams/gantt/ganttRenderer.js": /*!*********************************************!*\ !*** ./src/diagrams/gantt/ganttRenderer.js ***! \*********************************************/ -/*! exports provided: setConf, draw, default */function(e,t,n){"use strict";n.r(t),n.d(t,"setConf",(function(){return c})),n.d(t,"draw",(function(){return d}));var r=n(/*! d3 */"d3"),i=n(/*! ./parser/gantt */"./src/diagrams/gantt/parser/gantt.jison"),o=n(/*! ../common/common */"./src/diagrams/common/common.js"),s=n(/*! ./ganttDb */"./src/diagrams/gantt/ganttDb.js"),a=n(/*! ../../utils */"./src/utils.js");i.parser.yy=s.default;var u,l={titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,fontFamily:'"Open-Sans", "sans-serif"'},c=function(e){Object.keys(e).forEach((function(t){l[t]=e[t]}))},d=function(e,t){i.parser.yy.clear(),i.parser.parse(e);var n=document.getElementById(t);void 0===(u=n.parentElement.offsetWidth)&&(u=1200),void 0!==l.useWidth&&(u=l.useWidth);var c=i.parser.yy.getTasks(),d=c.length*(l.barHeight+l.barGap)+2*l.topPadding;n.setAttribute("viewBox","0 0 "+u+" "+d);for(var h=Object(r.select)('[id="'.concat(t,'"]')),f=Object(r.scaleTime)().domain([Object(r.min)(c,(function(e){return e.startTime})),Object(r.max)(c,(function(e){return e.endTime}))]).rangeRound([0,u-l.leftPadding-l.rightPadding]),p=[],g=0;g<c.length;g++)p.push(c[g].type);var m,_,y,v,b,w,C,S=p;function x(e){for(var t=e.length,n={};t;)n[e[--t]]=(n[e[t]]||0)+1;return n}p=function(e){for(var t={},n=[],r=0,i=e.length;r<i;++r)t.hasOwnProperty(e[r])||(t[e[r]]=!0,n.push(e[r]));return n}(p),c.sort((function(e,t){var n=e.startTime,r=t.startTime,i=0;return n>r?i=1:n<r&&(i=-1),i})),m=c,_=u,y=d,v=l.barHeight,b=v+l.barGap,w=l.topPadding,C=l.leftPadding,Object(r.scaleLinear)().domain([0,p.length]).range(["#00B9FA","#F95002"]).interpolate(r.interpolateHcl),function(e,t,n,o){var s=Object(r.axisBottom)(f).tickSize(-o+t+l.gridLineStartPadding).tickFormat(Object(r.timeFormat)(i.parser.yy.getAxisFormat()||l.axisFormat||"%Y-%m-%d"));h.append("g").attr("class","grid").attr("transform","translate("+e+", "+(o-50)+")").call(s).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em")}(C,w,0,y),function(e,t,n,r,i,o,s){h.append("g").selectAll("rect").data(e).enter().append("rect").attr("x",0).attr("y",(function(e,r){return e.order*t+n-2})).attr("width",(function(){return s-l.rightPadding/2})).attr("height",t).attr("class",(function(e){for(var t=0;t<p.length;t++)if(e.type===p[t])return"section section"+t%l.numberSectionStyles;return"section section0"}));var a=h.append("g").selectAll("rect").data(e).enter();a.append("rect").attr("id",(function(e){return e.id})).attr("rx",3).attr("ry",3).attr("x",(function(e){return e.milestone?f(e.startTime)+r+.5*(f(e.endTime)-f(e.startTime))-.5*i:f(e.startTime)+r})).attr("y",(function(e,r){return e.order*t+n})).attr("width",(function(e){return e.milestone?i:f(e.renderEndTime||e.endTime)-f(e.startTime)})).attr("height",i).attr("transform-origin",(function(e,o){return(f(e.startTime)+r+.5*(f(e.endTime)-f(e.startTime))).toString()+"px "+(o*t+n+.5*i).toString()+"px"})).attr("class",(function(e){var t="";e.classes.length>0&&(t=e.classes.join(" "));for(var n=0,r=0;r<p.length;r++)e.type===p[r]&&(n=r%l.numberSectionStyles);var i="";return e.active?e.crit?i+=" activeCrit":i=" active":e.done?i=e.crit?" doneCrit":" done":e.crit&&(i+=" crit"),0===i.length&&(i=" task"),e.milestone&&(i=" milestone "+i),i+=n,"task"+(i+=" "+t)})),a.append("text").attr("id",(function(e){return e.id+"-text"})).text((function(e){return e.task})).attr("font-size",l.fontSize).attr("x",(function(e){var t=f(e.startTime),n=f(e.renderEndTime||e.endTime);e.milestone&&(t+=.5*(f(e.endTime)-f(e.startTime))-.5*i),e.milestone&&(n=t+i);var o=this.getBBox().width;return o>n-t?n+o+1.5*l.leftPadding>s?t+r-5:n+r+5:(n-t)/2+t+r})).attr("y",(function(e,r){return e.order*t+l.barHeight/2+(l.fontSize/2-2)+n})).attr("text-height",i).attr("class",(function(e){var t=f(e.startTime),n=f(e.endTime);e.milestone&&(n=t+i);var r=this.getBBox().width,o="";e.classes.length>0&&(o=e.classes.join(" "));for(var a=0,u=0;u<p.length;u++)e.type===p[u]&&(a=u%l.numberSectionStyles);var c="";return e.active&&(c=e.crit?"activeCritText"+a:"activeText"+a),e.done?c=e.crit?c+" doneCritText"+a:c+" doneText"+a:e.crit&&(c=c+" critText"+a),e.milestone&&(c+=" milestoneText"),r>n-t?n+r+1.5*l.leftPadding>s?o+" taskTextOutsideLeft taskTextOutside"+a+" "+c:o+" taskTextOutsideRight taskTextOutside"+a+" "+c+" width-"+r:o+" taskText taskText"+a+" "+c+" width-"+r}))}(m,b,w,C,v,0,_),function(e,t){for(var n=[],r=0,i=0;i<p.length;i++)n[i]=[p[i],(s=p[i],a=S,x(a)[s]||0)];var s,a;h.append("g").selectAll("text").data(n).enter().append((function(e){var t=e[0].split(o.default.lineBreakRegex),n=-(t.length-1)/2,r=document.createElementNS("http://www.w3.org/2000/svg","text");r.setAttribute("dy",n+"em");for(var i=0;i<t.length;i++){var s=document.createElementNS("http://www.w3.org/2000/svg","tspan");s.setAttribute("alignment-baseline","central"),s.setAttribute("x","10"),i>0&&s.setAttribute("dy","1em"),s.textContent=t[i],r.appendChild(s)}return r})).attr("x",10).attr("y",(function(i,o){if(!(o>0))return i[1]*e/2+t;for(var s=0;s<o;s++)return r+=n[o-1][1],i[1]*e/2+r*e+t})).attr("class",(function(e){for(var t=0;t<p.length;t++)if(e[0]===p[t])return"sectionTitle sectionTitle"+t%l.numberSectionStyles;return"sectionTitle"}))}(b,w),function(e,t,n,r){var i=s.default.getTodayMarker();if("off"!==i){var o=h.append("g").attr("class","today"),a=new Date,u=o.append("line");u.attr("x1",f(a)+e).attr("x2",f(a)+e).attr("y1",l.titleTopMargin).attr("y2",r-l.titleTopMargin).attr("class","today"),""!==i&&u.attr("style",i.replace(/,/g,";"))}}(C,0,0,y),Object(a.configureSvgSize)(h,d,u,l.useMaxWidth),h.append("text").text(i.parser.yy.getTitle()).attr("x",u/2).attr("y",l.titleTopMargin).attr("class","titleText")};t.default={setConf:c,draw:d}},"./src/diagrams/gantt/parser/gantt.jison": +/*! exports provided: setConf, draw, default */function(e,t,n){"use strict";n.r(t),n.d(t,"setConf",(function(){return d})),n.d(t,"draw",(function(){return u}));var i=n(/*! d3 */"d3"),r=n(/*! ./parser/gantt */"./src/diagrams/gantt/parser/gantt.jison"),o=n(/*! ../common/common */"./src/diagrams/common/common.js"),s=n(/*! ./ganttDb */"./src/diagrams/gantt/ganttDb.js"),a=n(/*! ../../utils */"./src/utils.js");r.parser.yy=s.default;var l,c={titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,fontFamily:'"Open-Sans", "sans-serif"'},d=function(e){Object.keys(e).forEach((function(t){c[t]=e[t]}))},u=function(e,t){r.parser.yy.clear(),r.parser.parse(e);var n=document.getElementById(t);void 0===(l=n.parentElement.offsetWidth)&&(l=1200),void 0!==c.useWidth&&(l=c.useWidth);var d=r.parser.yy.getTasks(),u=d.length*(c.barHeight+c.barGap)+2*c.topPadding;n.setAttribute("viewBox","0 0 "+l+" "+u);for(var h=Object(i.select)('[id="'.concat(t,'"]')),f=Object(i.scaleTime)().domain([Object(i.min)(d,(function(e){return e.startTime})),Object(i.max)(d,(function(e){return e.endTime}))]).rangeRound([0,l-c.leftPadding-c.rightPadding]),g=[],p=0;p<d.length;p++)g.push(d[p].type);var m,_,b,v,y,w,C,S=g;function k(e){for(var t=e.length,n={};t;)n[e[--t]]=(n[e[t]]||0)+1;return n}g=function(e){for(var t={},n=[],i=0,r=e.length;i<r;++i)t.hasOwnProperty(e[i])||(t[e[i]]=!0,n.push(e[i]));return n}(g),d.sort((function(e,t){var n=e.startTime,i=t.startTime,r=0;return n>i?r=1:n<i&&(r=-1),r})),m=d,_=l,b=u,v=c.barHeight,y=v+c.barGap,w=c.topPadding,C=c.leftPadding,Object(i.scaleLinear)().domain([0,g.length]).range(["#00B9FA","#F95002"]).interpolate(i.interpolateHcl),function(e,t,n,o){var s=Object(i.axisBottom)(f).tickSize(-o+t+c.gridLineStartPadding).tickFormat(Object(i.timeFormat)(r.parser.yy.getAxisFormat()||c.axisFormat||"%Y-%m-%d"));h.append("g").attr("class","grid").attr("transform","translate("+e+", "+(o-50)+")").call(s).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em")}(C,w,0,b),function(e,t,n,i,r,o,s){h.append("g").selectAll("rect").data(e).enter().append("rect").attr("x",0).attr("y",(function(e,i){return e.order*t+n-2})).attr("width",(function(){return s-c.rightPadding/2})).attr("height",t).attr("class",(function(e){for(var t=0;t<g.length;t++)if(e.type===g[t])return"section section"+t%c.numberSectionStyles;return"section section0"}));var a=h.append("g").selectAll("rect").data(e).enter();a.append("rect").attr("id",(function(e){return e.id})).attr("rx",3).attr("ry",3).attr("x",(function(e){return e.milestone?f(e.startTime)+i+.5*(f(e.endTime)-f(e.startTime))-.5*r:f(e.startTime)+i})).attr("y",(function(e,i){return e.order*t+n})).attr("width",(function(e){return e.milestone?r:f(e.renderEndTime||e.endTime)-f(e.startTime)})).attr("height",r).attr("transform-origin",(function(e,o){return(f(e.startTime)+i+.5*(f(e.endTime)-f(e.startTime))).toString()+"px "+(o*t+n+.5*r).toString()+"px"})).attr("class",(function(e){var t="";e.classes.length>0&&(t=e.classes.join(" "));for(var n=0,i=0;i<g.length;i++)e.type===g[i]&&(n=i%c.numberSectionStyles);var r="";return e.active?e.crit?r+=" activeCrit":r=" active":e.done?r=e.crit?" doneCrit":" done":e.crit&&(r+=" crit"),0===r.length&&(r=" task"),e.milestone&&(r=" milestone "+r),r+=n,"task"+(r+=" "+t)})),a.append("text").attr("id",(function(e){return e.id+"-text"})).text((function(e){return e.task})).attr("font-size",c.fontSize).attr("x",(function(e){var t=f(e.startTime),n=f(e.renderEndTime||e.endTime);e.milestone&&(t+=.5*(f(e.endTime)-f(e.startTime))-.5*r),e.milestone&&(n=t+r);var o=this.getBBox().width;return o>n-t?n+o+1.5*c.leftPadding>s?t+i-5:n+i+5:(n-t)/2+t+i})).attr("y",(function(e,i){return e.order*t+c.barHeight/2+(c.fontSize/2-2)+n})).attr("text-height",r).attr("class",(function(e){var t=f(e.startTime),n=f(e.endTime);e.milestone&&(n=t+r);var i=this.getBBox().width,o="";e.classes.length>0&&(o=e.classes.join(" "));for(var a=0,l=0;l<g.length;l++)e.type===g[l]&&(a=l%c.numberSectionStyles);var d="";return e.active&&(d=e.crit?"activeCritText"+a:"activeText"+a),e.done?d=e.crit?d+" doneCritText"+a:d+" doneText"+a:e.crit&&(d=d+" critText"+a),e.milestone&&(d+=" milestoneText"),i>n-t?n+i+1.5*c.leftPadding>s?o+" taskTextOutsideLeft taskTextOutside"+a+" "+d:o+" taskTextOutsideRight taskTextOutside"+a+" "+d+" width-"+i:o+" taskText taskText"+a+" "+d+" width-"+i}))}(m,y,w,C,v,0,_),function(e,t){for(var n=[],i=0,r=0;r<g.length;r++)n[r]=[g[r],(s=g[r],a=S,k(a)[s]||0)];var s,a;h.append("g").selectAll("text").data(n).enter().append((function(e){var t=e[0].split(o.default.lineBreakRegex),n=-(t.length-1)/2,i=document.createElementNS("http://www.w3.org/2000/svg","text");i.setAttribute("dy",n+"em");for(var r=0;r<t.length;r++){var s=document.createElementNS("http://www.w3.org/2000/svg","tspan");s.setAttribute("alignment-baseline","central"),s.setAttribute("x","10"),r>0&&s.setAttribute("dy","1em"),s.textContent=t[r],i.appendChild(s)}return i})).attr("x",10).attr("y",(function(r,o){if(!(o>0))return r[1]*e/2+t;for(var s=0;s<o;s++)return i+=n[o-1][1],r[1]*e/2+i*e+t})).attr("class",(function(e){for(var t=0;t<g.length;t++)if(e[0]===g[t])return"sectionTitle sectionTitle"+t%c.numberSectionStyles;return"sectionTitle"}))}(y,w),function(e,t,n,i){var r=s.default.getTodayMarker();if("off"!==r){var o=h.append("g").attr("class","today"),a=new Date,l=o.append("line");l.attr("x1",f(a)+e).attr("x2",f(a)+e).attr("y1",c.titleTopMargin).attr("y2",i-c.titleTopMargin).attr("class","today"),""!==r&&l.attr("style",r.replace(/,/g,";"))}}(C,0,0,b),Object(a.configureSvgSize)(h,u,l,c.useMaxWidth),h.append("text").text(r.parser.yy.getTitle()).attr("x",l/2).attr("y",c.titleTopMargin).attr("class","titleText")};t.default={setConf:d,draw:u}},"./src/diagrams/gantt/parser/gantt.jison": /*!***********************************************!*\ !*** ./src/diagrams/gantt/parser/gantt.jison ***! \***********************************************/ -/*! no static exports found */function(e,t,n){(function(e,r){var i=function(){var e=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},t=[1,3],n=[1,5],r=[7,9,11,12,13,14,15,16,17,18,20,27,32],i=[1,15],o=[1,16],s=[1,17],a=[1,18],u=[1,19],l=[1,20],c=[1,21],d=[1,23],h=[1,25],f=[1,28],p=[5,7,9,11,12,13,14,15,16,17,18,20,27,32],g={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,gantt:5,document:6,EOF:7,line:8,SPACE:9,statement:10,NL:11,dateFormat:12,inclusiveEndDates:13,axisFormat:14,excludes:15,todayMarker:16,title:17,section:18,clickStatement:19,taskTxt:20,taskData:21,openDirective:22,typeDirective:23,closeDirective:24,":":25,argDirective:26,click:27,callbackname:28,callbackargs:29,href:30,clickStatementDebug:31,open_directive:32,type_directive:33,arg_directive:34,close_directive:35,$accept:0,$end:1},terminals_:{2:"error",5:"gantt",7:"EOF",9:"SPACE",11:"NL",12:"dateFormat",13:"inclusiveEndDates",14:"axisFormat",15:"excludes",16:"todayMarker",17:"title",18:"section",20:"taskTxt",21:"taskData",25:":",27:"click",28:"callbackname",29:"callbackargs",30:"href",32:"open_directive",33:"type_directive",34:"arg_directive",35:"close_directive"},productions_:[0,[3,2],[3,3],[6,0],[6,2],[8,2],[8,1],[8,1],[8,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,1],[4,4],[4,6],[19,2],[19,3],[19,3],[19,4],[19,3],[19,4],[19,2],[31,2],[31,3],[31,3],[31,4],[31,3],[31,4],[31,2],[22,1],[23,1],[26,1],[24,1]],performAction:function(e,t,n,r,i,o,s){var a=o.length-1;switch(i){case 2:return o[a-1];case 3:this.$=[];break;case 4:o[a-1].push(o[a]),this.$=o[a-1];break;case 5:case 6:this.$=o[a];break;case 7:case 8:this.$=[];break;case 9:r.setDateFormat(o[a].substr(11)),this.$=o[a].substr(11);break;case 10:r.enableInclusiveEndDates(),this.$=o[a].substr(18);break;case 11:r.setAxisFormat(o[a].substr(11)),this.$=o[a].substr(11);break;case 12:r.setExcludes(o[a].substr(9)),this.$=o[a].substr(9);break;case 13:r.setTodayMarker(o[a].substr(12)),this.$=o[a].substr(12);break;case 14:r.setTitle(o[a].substr(6)),this.$=o[a].substr(6);break;case 15:r.addSection(o[a].substr(8)),this.$=o[a].substr(8);break;case 17:r.addTask(o[a-1],o[a]),this.$="task";break;case 21:this.$=o[a-1],r.setClickEvent(o[a-1],o[a],null);break;case 22:this.$=o[a-2],r.setClickEvent(o[a-2],o[a-1],o[a]);break;case 23:this.$=o[a-2],r.setClickEvent(o[a-2],o[a-1],null),r.setLink(o[a-2],o[a]);break;case 24:this.$=o[a-3],r.setClickEvent(o[a-3],o[a-2],o[a-1]),r.setLink(o[a-3],o[a]);break;case 25:this.$=o[a-2],r.setClickEvent(o[a-2],o[a],null),r.setLink(o[a-2],o[a-1]);break;case 26:this.$=o[a-3],r.setClickEvent(o[a-3],o[a-1],o[a]),r.setLink(o[a-3],o[a-2]);break;case 27:this.$=o[a-1],r.setLink(o[a-1],o[a]);break;case 28:case 34:this.$=o[a-1]+" "+o[a];break;case 29:case 30:case 32:this.$=o[a-2]+" "+o[a-1]+" "+o[a];break;case 31:case 33:this.$=o[a-3]+" "+o[a-2]+" "+o[a-1]+" "+o[a];break;case 35:r.parseDirective("%%{","open_directive");break;case 36:r.parseDirective(o[a],"type_directive");break;case 37:o[a]=o[a].trim().replace(/'/g,'"'),r.parseDirective(o[a],"arg_directive");break;case 38:r.parseDirective("}%%","close_directive","gantt")}},table:[{3:1,4:2,5:t,22:4,32:n},{1:[3]},{3:6,4:2,5:t,22:4,32:n},e(r,[2,3],{6:7}),{23:8,33:[1,9]},{33:[2,35]},{1:[2,1]},{4:24,7:[1,10],8:11,9:[1,12],10:13,11:[1,14],12:i,13:o,14:s,15:a,16:u,17:l,18:c,19:22,20:d,22:4,27:h,32:n},{24:26,25:[1,27],35:f},e([25,35],[2,36]),e(r,[2,8],{1:[2,2]}),e(r,[2,4]),{4:24,10:29,12:i,13:o,14:s,15:a,16:u,17:l,18:c,19:22,20:d,22:4,27:h,32:n},e(r,[2,6]),e(r,[2,7]),e(r,[2,9]),e(r,[2,10]),e(r,[2,11]),e(r,[2,12]),e(r,[2,13]),e(r,[2,14]),e(r,[2,15]),e(r,[2,16]),{21:[1,30]},e(r,[2,18]),{28:[1,31],30:[1,32]},{11:[1,33]},{26:34,34:[1,35]},{11:[2,38]},e(r,[2,5]),e(r,[2,17]),e(r,[2,21],{29:[1,36],30:[1,37]}),e(r,[2,27],{28:[1,38]}),e(p,[2,19]),{24:39,35:f},{35:[2,37]},e(r,[2,22],{30:[1,40]}),e(r,[2,23]),e(r,[2,25],{29:[1,41]}),{11:[1,42]},e(r,[2,24]),e(r,[2,26]),e(p,[2,20])],defaultActions:{5:[2,35],6:[2,1],28:[2,38],35:[2,37]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],r=[],i=[null],o=[],s=this.table,a="",u=0,l=0,c=0,d=2,h=1,f=o.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var m in this.yy)Object.prototype.hasOwnProperty.call(this.yy,m)&&(g.yy[m]=this.yy[m]);p.setInput(e,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var _=p.yylloc;o.push(_);var y=p.options&&p.options.ranges;function v(){var e;return"number"!=typeof(e=r.pop()||p.lex()||h)&&(e instanceof Array&&(e=(r=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,w,C,S,x,L,k,M,D,E={};;){if(C=n[n.length-1],this.defaultActions[C]?S=this.defaultActions[C]:(null==b&&(b=v()),S=s[C]&&s[C][b]),void 0===S||!S.length||!S[0]){var T="";for(L in D=[],s[C])this.terminals_[L]&&L>d&&D.push("'"+this.terminals_[L]+"'");T=p.showPosition?"Parse error on line "+(u+1)+":\n"+p.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(u+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(T,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:_,expected:D})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+b);switch(S[0]){case 1:n.push(b),i.push(p.yytext),o.push(p.yylloc),n.push(S[1]),b=null,w?(b=w,w=null):(l=p.yyleng,a=p.yytext,u=p.yylineno,_=p.yylloc,c>0&&c--);break;case 2:if(k=this.productions_[S[1]][1],E.$=i[i.length-k],E._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(E._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),void 0!==(x=this.performAction.apply(E,[a,l,u,g.yy,S[1],i,o].concat(f))))return x;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),o=o.slice(0,-1*k)),n.push(this.productions_[S[1]][0]),i.push(E.$),o.push(E._$),M=s[n[n.length-2]][n[n.length-1]],n.push(M);break;case 3:return!0}}return!0}},m={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;o<i.length;o++)if((n=this._input.match(this.rules[i[o]]))&&(!t||n[0].length>t[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return this.begin("open_directive"),32;case 1:return this.begin("type_directive"),33;case 2:return this.popState(),this.begin("arg_directive"),25;case 3:return this.popState(),this.popState(),35;case 4:return 34;case 5:case 6:case 7:break;case 8:return 11;case 9:case 10:case 11:break;case 12:this.begin("href");break;case 13:this.popState();break;case 14:return 30;case 15:this.begin("callbackname");break;case 16:this.popState();break;case 17:this.popState(),this.begin("callbackargs");break;case 18:return 28;case 19:this.popState();break;case 20:return 29;case 21:this.begin("click");break;case 22:this.popState();break;case 23:return 27;case 24:return 5;case 25:return 12;case 26:return 13;case 27:return 14;case 28:return 15;case 29:return 16;case 30:return"date";case 31:return 17;case 32:return 18;case 33:return 20;case 34:return 21;case 35:return 25;case 36:return 7;case 37:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},callbackargs:{rules:[19,20],inclusive:!1},callbackname:{rules:[16,17,18],inclusive:!1},href:{rules:[13,14],inclusive:!1},click:{rules:[22,23],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,15,21,24,25,26,27,28,29,30,31,32,33,34,35,36,37],inclusive:!0}}};function _(){this.yy={}}return g.lexer=m,_.prototype=g,g.Parser=_,new _}();t.parser=i,t.Parser=i.Parser,t.parse=function(){return i.parse.apply(i,arguments)},t.main=function(r){r[1]||(console.log("Usage: "+r[0]+" FILE"),e.exit(1));var i=n(/*! fs */"./node_modules/node-libs-browser/mock/empty.js").readFileSync(n(/*! path */"./node_modules/path-browserify/index.js").normalize(r[1]),"utf8");return t.parser.parse(i)},n.c[n.s]===r&&t.main(e.argv.slice(1))}).call(this,n(/*! ./../../../../node_modules/process/browser.js */"./node_modules/process/browser.js"),n(/*! ./../../../../node_modules/webpack/buildin/module.js */"./node_modules/webpack/buildin/module.js")(e))},"./src/diagrams/gantt/styles.js": +/*! no static exports found */function(e,t,n){(function(e,i){var r=function(){var e=function(e,t,n,i){for(n=n||{},i=e.length;i--;n[e[i]]=t);return n},t=[1,3],n=[1,5],i=[7,9,11,12,13,14,15,16,17,18,20,27,32],r=[1,15],o=[1,16],s=[1,17],a=[1,18],l=[1,19],c=[1,20],d=[1,21],u=[1,23],h=[1,25],f=[1,28],g=[5,7,9,11,12,13,14,15,16,17,18,20,27,32],p={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,gantt:5,document:6,EOF:7,line:8,SPACE:9,statement:10,NL:11,dateFormat:12,inclusiveEndDates:13,axisFormat:14,excludes:15,todayMarker:16,title:17,section:18,clickStatement:19,taskTxt:20,taskData:21,openDirective:22,typeDirective:23,closeDirective:24,":":25,argDirective:26,click:27,callbackname:28,callbackargs:29,href:30,clickStatementDebug:31,open_directive:32,type_directive:33,arg_directive:34,close_directive:35,$accept:0,$end:1},terminals_:{2:"error",5:"gantt",7:"EOF",9:"SPACE",11:"NL",12:"dateFormat",13:"inclusiveEndDates",14:"axisFormat",15:"excludes",16:"todayMarker",17:"title",18:"section",20:"taskTxt",21:"taskData",25:":",27:"click",28:"callbackname",29:"callbackargs",30:"href",32:"open_directive",33:"type_directive",34:"arg_directive",35:"close_directive"},productions_:[0,[3,2],[3,3],[6,0],[6,2],[8,2],[8,1],[8,1],[8,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,1],[4,4],[4,6],[19,2],[19,3],[19,3],[19,4],[19,3],[19,4],[19,2],[31,2],[31,3],[31,3],[31,4],[31,3],[31,4],[31,2],[22,1],[23,1],[26,1],[24,1]],performAction:function(e,t,n,i,r,o,s){var a=o.length-1;switch(r){case 2:return o[a-1];case 3:this.$=[];break;case 4:o[a-1].push(o[a]),this.$=o[a-1];break;case 5:case 6:this.$=o[a];break;case 7:case 8:this.$=[];break;case 9:i.setDateFormat(o[a].substr(11)),this.$=o[a].substr(11);break;case 10:i.enableInclusiveEndDates(),this.$=o[a].substr(18);break;case 11:i.setAxisFormat(o[a].substr(11)),this.$=o[a].substr(11);break;case 12:i.setExcludes(o[a].substr(9)),this.$=o[a].substr(9);break;case 13:i.setTodayMarker(o[a].substr(12)),this.$=o[a].substr(12);break;case 14:i.setTitle(o[a].substr(6)),this.$=o[a].substr(6);break;case 15:i.addSection(o[a].substr(8)),this.$=o[a].substr(8);break;case 17:i.addTask(o[a-1],o[a]),this.$="task";break;case 21:this.$=o[a-1],i.setClickEvent(o[a-1],o[a],null);break;case 22:this.$=o[a-2],i.setClickEvent(o[a-2],o[a-1],o[a]);break;case 23:this.$=o[a-2],i.setClickEvent(o[a-2],o[a-1],null),i.setLink(o[a-2],o[a]);break;case 24:this.$=o[a-3],i.setClickEvent(o[a-3],o[a-2],o[a-1]),i.setLink(o[a-3],o[a]);break;case 25:this.$=o[a-2],i.setClickEvent(o[a-2],o[a],null),i.setLink(o[a-2],o[a-1]);break;case 26:this.$=o[a-3],i.setClickEvent(o[a-3],o[a-1],o[a]),i.setLink(o[a-3],o[a-2]);break;case 27:this.$=o[a-1],i.setLink(o[a-1],o[a]);break;case 28:case 34:this.$=o[a-1]+" "+o[a];break;case 29:case 30:case 32:this.$=o[a-2]+" "+o[a-1]+" "+o[a];break;case 31:case 33:this.$=o[a-3]+" "+o[a-2]+" "+o[a-1]+" "+o[a];break;case 35:i.parseDirective("%%{","open_directive");break;case 36:i.parseDirective(o[a],"type_directive");break;case 37:o[a]=o[a].trim().replace(/'/g,'"'),i.parseDirective(o[a],"arg_directive");break;case 38:i.parseDirective("}%%","close_directive","gantt")}},table:[{3:1,4:2,5:t,22:4,32:n},{1:[3]},{3:6,4:2,5:t,22:4,32:n},e(i,[2,3],{6:7}),{23:8,33:[1,9]},{33:[2,35]},{1:[2,1]},{4:24,7:[1,10],8:11,9:[1,12],10:13,11:[1,14],12:r,13:o,14:s,15:a,16:l,17:c,18:d,19:22,20:u,22:4,27:h,32:n},{24:26,25:[1,27],35:f},e([25,35],[2,36]),e(i,[2,8],{1:[2,2]}),e(i,[2,4]),{4:24,10:29,12:r,13:o,14:s,15:a,16:l,17:c,18:d,19:22,20:u,22:4,27:h,32:n},e(i,[2,6]),e(i,[2,7]),e(i,[2,9]),e(i,[2,10]),e(i,[2,11]),e(i,[2,12]),e(i,[2,13]),e(i,[2,14]),e(i,[2,15]),e(i,[2,16]),{21:[1,30]},e(i,[2,18]),{28:[1,31],30:[1,32]},{11:[1,33]},{26:34,34:[1,35]},{11:[2,38]},e(i,[2,5]),e(i,[2,17]),e(i,[2,21],{29:[1,36],30:[1,37]}),e(i,[2,27],{28:[1,38]}),e(g,[2,19]),{24:39,35:f},{35:[2,37]},e(i,[2,22],{30:[1,40]}),e(i,[2,23]),e(i,[2,25],{29:[1,41]}),{11:[1,42]},e(i,[2,24]),e(i,[2,26]),e(g,[2,20])],defaultActions:{5:[2,35],6:[2,1],28:[2,38],35:[2,37]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],i=[],r=[null],o=[],s=this.table,a="",l=0,c=0,d=0,u=2,h=1,f=o.slice.call(arguments,1),g=Object.create(this.lexer),p={yy:{}};for(var m in this.yy)Object.prototype.hasOwnProperty.call(this.yy,m)&&(p.yy[m]=this.yy[m]);g.setInput(e,p.yy),p.yy.lexer=g,p.yy.parser=this,void 0===g.yylloc&&(g.yylloc={});var _=g.yylloc;o.push(_);var b=g.options&&g.options.ranges;function v(){var e;return"number"!=typeof(e=i.pop()||g.lex()||h)&&(e instanceof Array&&(e=(i=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var y,w,C,S,k,x,L,M,D,E={};;){if(C=n[n.length-1],this.defaultActions[C]?S=this.defaultActions[C]:(null==y&&(y=v()),S=s[C]&&s[C][y]),void 0===S||!S.length||!S[0]){var T="";for(x in D=[],s[C])this.terminals_[x]&&x>u&&D.push("'"+this.terminals_[x]+"'");T=g.showPosition?"Parse error on line "+(l+1)+":\n"+g.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[y]||y)+"'":"Parse error on line "+(l+1)+": Unexpected "+(y==h?"end of input":"'"+(this.terminals_[y]||y)+"'"),this.parseError(T,{text:g.match,token:this.terminals_[y]||y,line:g.yylineno,loc:_,expected:D})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+y);switch(S[0]){case 1:n.push(y),r.push(g.yytext),o.push(g.yylloc),n.push(S[1]),y=null,w?(y=w,w=null):(c=g.yyleng,a=g.yytext,l=g.yylineno,_=g.yylloc,d>0&&d--);break;case 2:if(L=this.productions_[S[1]][1],E.$=r[r.length-L],E._$={first_line:o[o.length-(L||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(L||1)].first_column,last_column:o[o.length-1].last_column},b&&(E._$.range=[o[o.length-(L||1)].range[0],o[o.length-1].range[1]]),void 0!==(k=this.performAction.apply(E,[a,c,l,p.yy,S[1],r,o].concat(f))))return k;L&&(n=n.slice(0,-1*L*2),r=r.slice(0,-1*L),o=o.slice(0,-1*L)),n.push(this.productions_[S[1]][0]),r.push(E.$),o.push(E._$),M=s[n[n.length-2]][n[n.length-1]],n.push(M);break;case 3:return!0}}return!0}},m={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in r)this[o]=r[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),o=0;o<r.length;o++)if((n=this._input.match(this.rules[r[o]]))&&(!t||n[0].length>t[0].length)){if(t=n,i=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,r[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,r[i]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,i){switch(n){case 0:return this.begin("open_directive"),32;case 1:return this.begin("type_directive"),33;case 2:return this.popState(),this.begin("arg_directive"),25;case 3:return this.popState(),this.popState(),35;case 4:return 34;case 5:case 6:case 7:break;case 8:return 11;case 9:case 10:case 11:break;case 12:this.begin("href");break;case 13:this.popState();break;case 14:return 30;case 15:this.begin("callbackname");break;case 16:this.popState();break;case 17:this.popState(),this.begin("callbackargs");break;case 18:return 28;case 19:this.popState();break;case 20:return 29;case 21:this.begin("click");break;case 22:this.popState();break;case 23:return 27;case 24:return 5;case 25:return 12;case 26:return 13;case 27:return 14;case 28:return 15;case 29:return 16;case 30:return"date";case 31:return 17;case 32:return 18;case 33:return 20;case 34:return 21;case 35:return 25;case 36:return 7;case 37:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},callbackargs:{rules:[19,20],inclusive:!1},callbackname:{rules:[16,17,18],inclusive:!1},href:{rules:[13,14],inclusive:!1},click:{rules:[22,23],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,15,21,24,25,26,27,28,29,30,31,32,33,34,35,36,37],inclusive:!0}}};function _(){this.yy={}}return p.lexer=m,_.prototype=p,p.Parser=_,new _}();t.parser=r,t.Parser=r.Parser,t.parse=function(){return r.parse.apply(r,arguments)},t.main=function(i){i[1]||(console.log("Usage: "+i[0]+" FILE"),e.exit(1));var r=n(/*! fs */"./node_modules/node-libs-browser/mock/empty.js").readFileSync(n(/*! path */"./node_modules/path-browserify/index.js").normalize(i[1]),"utf8");return t.parser.parse(r)},n.c[n.s]===i&&t.main(e.argv.slice(1))}).call(this,n(/*! ./../../../../node_modules/process/browser.js */"./node_modules/process/browser.js"),n(/*! ./../../../../node_modules/webpack/buildin/module.js */"./node_modules/webpack/buildin/module.js")(e))},"./src/diagrams/gantt/styles.js": /*!**************************************!*\ !*** ./src/diagrams/gantt/styles.js ***! \**************************************/ @@ -182,15 +182,15 @@ /*!*****************************************!*\ !*** ./src/diagrams/git/gitGraphAst.js ***! \*****************************************/ -/*! exports provided: setDirection, setOptions, getOptions, commit, branch, merge, checkout, reset, prettyPrint, clear, getBranchesAsObjArray, getBranches, getCommits, getCommitsArray, getCurrentBranch, getDirection, getHead, default */function(e,t,n){"use strict";n.r(t),n.d(t,"setDirection",(function(){return f})),n.d(t,"setOptions",(function(){return g})),n.d(t,"getOptions",(function(){return m})),n.d(t,"commit",(function(){return _})),n.d(t,"branch",(function(){return y})),n.d(t,"merge",(function(){return v})),n.d(t,"checkout",(function(){return b})),n.d(t,"reset",(function(){return w})),n.d(t,"prettyPrint",(function(){return x})),n.d(t,"clear",(function(){return L})),n.d(t,"getBranchesAsObjArray",(function(){return k})),n.d(t,"getBranches",(function(){return M})),n.d(t,"getCommits",(function(){return D})),n.d(t,"getCommitsArray",(function(){return E})),n.d(t,"getCurrentBranch",(function(){return T})),n.d(t,"getDirection",(function(){return N})),n.d(t,"getHead",(function(){return O}));var r=n(/*! ../../logger */"./src/logger.js"),i=n(/*! ../../utils */"./src/utils.js"),o={},s=null,a={master:s},u="master",l="LR",c=0;function d(){return Object(i.random)({length:7})}function h(e,t){for(r.logger.debug("Entering isfastforwardable:",e.id,t.id);e.seq<=t.seq&&e!==t&&null!=t.parent;){if(Array.isArray(t.parent))return r.logger.debug("In merge commit:",t.parent),h(e,o[t.parent[0]])||h(e,o[t.parent[1]]);t=o[t.parent]}return r.logger.debug(e.id,t.id),e.id===t.id}var f=function(e){l=e},p={},g=function(e){r.logger.debug("options str",e),e=(e=e&&e.trim())||"{}";try{p=JSON.parse(e)}catch(e){r.logger.error("error while parsing gitGraph options",e.message)}},m=function(){return p},_=function(e){var t={id:d(),message:e,seq:c++,parent:null==s?null:s.id};s=t,o[t.id]=t,a[u]=t.id,r.logger.debug("in pushCommit "+t.id)},y=function(e){a[e]=null!=s?s.id:null,r.logger.debug("in createBranch")},v=function(e){var t=o[a[u]],n=o[a[e]];if(function(e,t){return e.seq>t.seq&&h(t,e)}(t,n))r.logger.debug("Already merged");else{if(h(t,n))a[u]=a[e],s=o[a[u]];else{var i={id:d(),message:"merged branch "+e+" into "+u,seq:c++,parent:[null==s?null:s.id,a[e]]};s=i,o[i.id]=i,a[u]=i.id}r.logger.debug(a),r.logger.debug("in mergeBranch")}},b=function(e){r.logger.debug("in checkout");var t=a[u=e];s=o[t]},w=function(e){r.logger.debug("in reset",e);var t=e.split(":")[0],n=parseInt(e.split(":")[1]),i="HEAD"===t?s:o[a[t]];for(r.logger.debug(i,n);n>0;)if(n--,!(i=o[i.parent])){var l="Critical error - unique parent commit not found during reset";throw r.logger.error(l),l}s=i,a[u]=i.id};function C(e,t,n){var r=e.indexOf(t);-1===r?e.push(n):e.splice(r,1,n)}function S(e){var t=e.reduce((function(e,t){return e.seq>t.seq?e:t}),e[0]),n="";e.forEach((function(e){n+=e===t?"\t*":"\t|"}));var i,s,u,l=[n,t.id,t.seq];for(var c in a)a[c]===t.id&&l.push(c);if(r.logger.debug(l.join(" ")),Array.isArray(t.parent)){var d=o[t.parent[0]];C(e,t,d),e.push(o[t.parent[1]])}else{if(null==t.parent)return;var h=o[t.parent];C(e,t,h)}i=e,s=function(e){return e.id},u=Object.create(null),S(e=i.reduce((function(e,t){var n=s(t);return u[n]||(u[n]=!0,e.push(t)),e}),[]))}var x=function(){r.logger.debug(o),S([E()[0]])},L=function(){o={},a={master:s=null},u="master",c=0},k=function(){var e=[];for(var t in a)e.push({name:t,commit:o[a[t]]});return e},M=function(){return a},D=function(){return o},E=function(){var e=Object.keys(o).map((function(e){return o[e]}));return e.forEach((function(e){r.logger.debug(e.id)})),e.sort((function(e,t){return t.seq-e.seq})),e},T=function(){return u},N=function(){return l},O=function(){return s};t.default={setDirection:f,setOptions:g,getOptions:m,commit:_,branch:y,merge:v,checkout:b,reset:w,prettyPrint:x,clear:L,getBranchesAsObjArray:k,getBranches:M,getCommits:D,getCommitsArray:E,getCurrentBranch:T,getDirection:N,getHead:O}},"./src/diagrams/git/gitGraphRenderer.js": +/*! exports provided: setDirection, setOptions, getOptions, commit, branch, merge, checkout, reset, prettyPrint, clear, getBranchesAsObjArray, getBranches, getCommits, getCommitsArray, getCurrentBranch, getDirection, getHead, default */function(e,t,n){"use strict";n.r(t),n.d(t,"setDirection",(function(){return f})),n.d(t,"setOptions",(function(){return p})),n.d(t,"getOptions",(function(){return m})),n.d(t,"commit",(function(){return _})),n.d(t,"branch",(function(){return b})),n.d(t,"merge",(function(){return v})),n.d(t,"checkout",(function(){return y})),n.d(t,"reset",(function(){return w})),n.d(t,"prettyPrint",(function(){return k})),n.d(t,"clear",(function(){return x})),n.d(t,"getBranchesAsObjArray",(function(){return L})),n.d(t,"getBranches",(function(){return M})),n.d(t,"getCommits",(function(){return D})),n.d(t,"getCommitsArray",(function(){return E})),n.d(t,"getCurrentBranch",(function(){return T})),n.d(t,"getDirection",(function(){return O})),n.d(t,"getHead",(function(){return N}));var i=n(/*! ../../logger */"./src/logger.js"),r=n(/*! ../../utils */"./src/utils.js"),o={},s=null,a={master:s},l="master",c="LR",d=0;function u(){return Object(r.random)({length:7})}function h(e,t){for(i.logger.debug("Entering isfastforwardable:",e.id,t.id);e.seq<=t.seq&&e!==t&&null!=t.parent;){if(Array.isArray(t.parent))return i.logger.debug("In merge commit:",t.parent),h(e,o[t.parent[0]])||h(e,o[t.parent[1]]);t=o[t.parent]}return i.logger.debug(e.id,t.id),e.id===t.id}var f=function(e){c=e},g={},p=function(e){i.logger.debug("options str",e),e=(e=e&&e.trim())||"{}";try{g=JSON.parse(e)}catch(e){i.logger.error("error while parsing gitGraph options",e.message)}},m=function(){return g},_=function(e){var t={id:u(),message:e,seq:d++,parent:null==s?null:s.id};s=t,o[t.id]=t,a[l]=t.id,i.logger.debug("in pushCommit "+t.id)},b=function(e){a[e]=null!=s?s.id:null,i.logger.debug("in createBranch")},v=function(e){var t=o[a[l]],n=o[a[e]];if(function(e,t){return e.seq>t.seq&&h(t,e)}(t,n))i.logger.debug("Already merged");else{if(h(t,n))a[l]=a[e],s=o[a[l]];else{var r={id:u(),message:"merged branch "+e+" into "+l,seq:d++,parent:[null==s?null:s.id,a[e]]};s=r,o[r.id]=r,a[l]=r.id}i.logger.debug(a),i.logger.debug("in mergeBranch")}},y=function(e){i.logger.debug("in checkout");var t=a[l=e];s=o[t]},w=function(e){i.logger.debug("in reset",e);var t=e.split(":")[0],n=parseInt(e.split(":")[1]),r="HEAD"===t?s:o[a[t]];for(i.logger.debug(r,n);n>0;)if(n--,!(r=o[r.parent])){var c="Critical error - unique parent commit not found during reset";throw i.logger.error(c),c}s=r,a[l]=r.id};function C(e,t,n){var i=e.indexOf(t);-1===i?e.push(n):e.splice(i,1,n)}function S(e){var t=e.reduce((function(e,t){return e.seq>t.seq?e:t}),e[0]),n="";e.forEach((function(e){n+=e===t?"\t*":"\t|"}));var r,s,l,c=[n,t.id,t.seq];for(var d in a)a[d]===t.id&&c.push(d);if(i.logger.debug(c.join(" ")),Array.isArray(t.parent)){var u=o[t.parent[0]];C(e,t,u),e.push(o[t.parent[1]])}else{if(null==t.parent)return;var h=o[t.parent];C(e,t,h)}r=e,s=function(e){return e.id},l=Object.create(null),S(e=r.reduce((function(e,t){var n=s(t);return l[n]||(l[n]=!0,e.push(t)),e}),[]))}var k=function(){i.logger.debug(o),S([E()[0]])},x=function(){o={},a={master:s=null},l="master",d=0},L=function(){var e=[];for(var t in a)e.push({name:t,commit:o[a[t]]});return e},M=function(){return a},D=function(){return o},E=function(){var e=Object.keys(o).map((function(e){return o[e]}));return e.forEach((function(e){i.logger.debug(e.id)})),e.sort((function(e,t){return t.seq-e.seq})),e},T=function(){return l},O=function(){return c},N=function(){return s};t.default={setDirection:f,setOptions:p,getOptions:m,commit:_,branch:b,merge:v,checkout:y,reset:w,prettyPrint:k,clear:x,getBranchesAsObjArray:L,getBranches:M,getCommits:D,getCommitsArray:E,getCurrentBranch:T,getDirection:O,getHead:N}},"./src/diagrams/git/gitGraphRenderer.js": /*!**********************************************!*\ !*** ./src/diagrams/git/gitGraphRenderer.js ***! \**********************************************/ -/*! exports provided: setConf, draw, default */function(e,t,n){"use strict";n.r(t),n.d(t,"setConf",(function(){return f})),n.d(t,"draw",(function(){return b}));var r,i=n(/*! d3 */"d3"),o=n(/*! ./gitGraphAst */"./src/diagrams/git/gitGraphAst.js"),s=n(/*! ./parser/gitGraph */"./src/diagrams/git/parser/gitGraph.jison"),a=n.n(s),u=n(/*! ../../logger */"./src/logger.js"),l=n(/*! ../../utils */"./src/utils.js"),c={},d={nodeSpacing:150,nodeFillColor:"yellow",nodeStrokeWidth:2,nodeStrokeColor:"grey",lineStrokeWidth:4,branchOffset:50,lineColor:"grey",leftMargin:50,branchColors:["#442f74","#983351","#609732","#AA9A39"],nodeRadius:10,nodeLabel:{width:75,height:100,x:-25,y:0}},h={},f=function(e){h=e};function p(e,t,n,r){var o=Object(l.interpolateToCurve)(r,i.curveBasis),s=d.branchColors[n%d.branchColors.length],a=Object(i.line)().x((function(e){return Math.round(e.x)})).y((function(e){return Math.round(e.y)})).curve(o);e.append("svg:path").attr("d",a(t)).style("stroke",s).style("stroke-width",d.lineStrokeWidth).style("fill","none")}function g(e,t){t=t||e.node().getBBox();var n=e.node().getCTM();return{left:n.e+t.x*n.a,top:n.f+t.y*n.d,width:t.width,height:t.height}}function m(e,t,n,r,i){u.logger.debug("svgDrawLineForCommits: ",t,n);var o=g(e.select("#node-"+t+" circle")),s=g(e.select("#node-"+n+" circle"));switch(r){case"LR":if(o.left-s.left>d.nodeSpacing){var a={x:o.left-d.nodeSpacing,y:s.top+s.height/2};p(e,[a,{x:s.left+s.width,y:s.top+s.height/2}],i,"linear"),p(e,[{x:o.left,y:o.top+o.height/2},{x:o.left-d.nodeSpacing/2,y:o.top+o.height/2},{x:o.left-d.nodeSpacing/2,y:a.y},a],i)}else p(e,[{x:o.left,y:o.top+o.height/2},{x:o.left-d.nodeSpacing/2,y:o.top+o.height/2},{x:o.left-d.nodeSpacing/2,y:s.top+s.height/2},{x:s.left+s.width,y:s.top+s.height/2}],i);break;case"BT":if(s.top-o.top>d.nodeSpacing){var l={x:s.left+s.width/2,y:o.top+o.height+d.nodeSpacing};p(e,[l,{x:s.left+s.width/2,y:s.top}],i,"linear"),p(e,[{x:o.left+o.width/2,y:o.top+o.height},{x:o.left+o.width/2,y:o.top+o.height+d.nodeSpacing/2},{x:s.left+s.width/2,y:l.y-d.nodeSpacing/2},l],i)}else p(e,[{x:o.left+o.width/2,y:o.top+o.height},{x:o.left+o.width/2,y:o.top+d.nodeSpacing/2},{x:s.left+s.width/2,y:s.top-d.nodeSpacing/2},{x:s.left+s.width/2,y:s.top}],i)}}function _(e,t){return e.select(t).node().cloneNode(!0)}function y(e,t,n,i){var o,s=Object.keys(c).length;if("string"==typeof t)do{if(o=c[t],u.logger.debug("in renderCommitHistory",o.id,o.seq),e.select("#node-"+t).size()>0)return;e.append((function(){return _(e,"#def-commit")})).attr("class","commit").attr("id",(function(){return"node-"+o.id})).attr("transform",(function(){switch(i){case"LR":return"translate("+(o.seq*d.nodeSpacing+d.leftMargin)+", "+r*d.branchOffset+")";case"BT":return"translate("+(r*d.branchOffset+d.leftMargin)+", "+(s-o.seq)*d.nodeSpacing+")"}})).attr("fill",d.nodeFillColor).attr("stroke",d.nodeStrokeColor).attr("stroke-width",d.nodeStrokeWidth);var a=void 0;for(var l in n)if(n[l].commit===o){a=n[l];break}a&&(u.logger.debug("found branch ",a.name),e.select("#node-"+o.id+" p").append("xhtml:span").attr("class","branch-label").text(a.name+", ")),e.select("#node-"+o.id+" p").append("xhtml:span").attr("class","commit-id").text(o.id),""!==o.message&&"BT"===i&&e.select("#node-"+o.id+" p").append("xhtml:span").attr("class","commit-msg").text(", "+o.message),t=o.parent}while(t&&c[t]);Array.isArray(t)&&(u.logger.debug("found merge commmit",t),y(e,t[0],n,i),r++,y(e,t[1],n,i),r--)}function v(e,t,n,r){for(r=r||0;t.seq>0&&!t.lineDrawn;)"string"==typeof t.parent?(m(e,t.id,t.parent,n,r),t.lineDrawn=!0,t=c[t.parent]):Array.isArray(t.parent)&&(m(e,t.id,t.parent[0],n,r),m(e,t.id,t.parent[1],n,r+1),v(e,c[t.parent[1]],n,r+1),t.lineDrawn=!0,t=c[t.parent[0]])}var b=function(e,t,n){try{var s=a.a.parser;s.yy=o.default,s.yy.clear(),u.logger.debug("in gitgraph renderer",e+"\n","id:",t,n),s.parse(e+"\n"),d=Object.assign(d,h,o.default.getOptions()),u.logger.debug("effective options",d);var l=o.default.getDirection();c=o.default.getCommits();var f=o.default.getBranchesAsObjArray();"BT"===l&&(d.nodeLabel.x=f.length*d.branchOffset,d.nodeLabel.width="100%",d.nodeLabel.y=-2*d.nodeRadius);var p=Object(i.select)('[id="'.concat(t,'"]'));for(var g in function(e){e.append("defs").append("g").attr("id","def-commit").append("circle").attr("r",d.nodeRadius).attr("cx",0).attr("cy",0),e.select("#def-commit").append("foreignObject").attr("width",d.nodeLabel.width).attr("height",d.nodeLabel.height).attr("x",d.nodeLabel.x).attr("y",d.nodeLabel.y).attr("class","node-label").attr("requiredFeatures","http://www.w3.org/TR/SVG11/feature#Extensibility").append("p").html("")}(p),r=1,f){var m=f[g];y(p,m.commit.id,f,l),v(p,m.commit,l),r++}p.attr("height",(function(){return"BT"===l?Object.keys(c).length*d.nodeSpacing:(f.length+1)*d.branchOffset}))}catch(e){u.logger.error("Error while rendering gitgraph"),u.logger.error(e.message)}};t.default={setConf:f,draw:b}},"./src/diagrams/git/parser/gitGraph.jison": +/*! exports provided: setConf, draw, default */function(e,t,n){"use strict";n.r(t),n.d(t,"setConf",(function(){return f})),n.d(t,"draw",(function(){return y}));var i,r=n(/*! d3 */"d3"),o=n(/*! ./gitGraphAst */"./src/diagrams/git/gitGraphAst.js"),s=n(/*! ./parser/gitGraph */"./src/diagrams/git/parser/gitGraph.jison"),a=n.n(s),l=n(/*! ../../logger */"./src/logger.js"),c=n(/*! ../../utils */"./src/utils.js"),d={},u={nodeSpacing:150,nodeFillColor:"yellow",nodeStrokeWidth:2,nodeStrokeColor:"grey",lineStrokeWidth:4,branchOffset:50,lineColor:"grey",leftMargin:50,branchColors:["#442f74","#983351","#609732","#AA9A39"],nodeRadius:10,nodeLabel:{width:75,height:100,x:-25,y:0}},h={},f=function(e){h=e};function g(e,t,n,i){var o=Object(c.interpolateToCurve)(i,r.curveBasis),s=u.branchColors[n%u.branchColors.length],a=Object(r.line)().x((function(e){return Math.round(e.x)})).y((function(e){return Math.round(e.y)})).curve(o);e.append("svg:path").attr("d",a(t)).style("stroke",s).style("stroke-width",u.lineStrokeWidth).style("fill","none")}function p(e,t){t=t||e.node().getBBox();var n=e.node().getCTM();return{left:n.e+t.x*n.a,top:n.f+t.y*n.d,width:t.width,height:t.height}}function m(e,t,n,i,r){l.logger.debug("svgDrawLineForCommits: ",t,n);var o=p(e.select("#node-"+t+" circle")),s=p(e.select("#node-"+n+" circle"));switch(i){case"LR":if(o.left-s.left>u.nodeSpacing){var a={x:o.left-u.nodeSpacing,y:s.top+s.height/2};g(e,[a,{x:s.left+s.width,y:s.top+s.height/2}],r,"linear"),g(e,[{x:o.left,y:o.top+o.height/2},{x:o.left-u.nodeSpacing/2,y:o.top+o.height/2},{x:o.left-u.nodeSpacing/2,y:a.y},a],r)}else g(e,[{x:o.left,y:o.top+o.height/2},{x:o.left-u.nodeSpacing/2,y:o.top+o.height/2},{x:o.left-u.nodeSpacing/2,y:s.top+s.height/2},{x:s.left+s.width,y:s.top+s.height/2}],r);break;case"BT":if(s.top-o.top>u.nodeSpacing){var c={x:s.left+s.width/2,y:o.top+o.height+u.nodeSpacing};g(e,[c,{x:s.left+s.width/2,y:s.top}],r,"linear"),g(e,[{x:o.left+o.width/2,y:o.top+o.height},{x:o.left+o.width/2,y:o.top+o.height+u.nodeSpacing/2},{x:s.left+s.width/2,y:c.y-u.nodeSpacing/2},c],r)}else g(e,[{x:o.left+o.width/2,y:o.top+o.height},{x:o.left+o.width/2,y:o.top+u.nodeSpacing/2},{x:s.left+s.width/2,y:s.top-u.nodeSpacing/2},{x:s.left+s.width/2,y:s.top}],r)}}function _(e,t){return e.select(t).node().cloneNode(!0)}function b(e,t,n,r){var o,s=Object.keys(d).length;if("string"==typeof t)do{if(o=d[t],l.logger.debug("in renderCommitHistory",o.id,o.seq),e.select("#node-"+t).size()>0)return;e.append((function(){return _(e,"#def-commit")})).attr("class","commit").attr("id",(function(){return"node-"+o.id})).attr("transform",(function(){switch(r){case"LR":return"translate("+(o.seq*u.nodeSpacing+u.leftMargin)+", "+i*u.branchOffset+")";case"BT":return"translate("+(i*u.branchOffset+u.leftMargin)+", "+(s-o.seq)*u.nodeSpacing+")"}})).attr("fill",u.nodeFillColor).attr("stroke",u.nodeStrokeColor).attr("stroke-width",u.nodeStrokeWidth);var a=void 0;for(var c in n)if(n[c].commit===o){a=n[c];break}a&&(l.logger.debug("found branch ",a.name),e.select("#node-"+o.id+" p").append("xhtml:span").attr("class","branch-label").text(a.name+", ")),e.select("#node-"+o.id+" p").append("xhtml:span").attr("class","commit-id").text(o.id),""!==o.message&&"BT"===r&&e.select("#node-"+o.id+" p").append("xhtml:span").attr("class","commit-msg").text(", "+o.message),t=o.parent}while(t&&d[t]);Array.isArray(t)&&(l.logger.debug("found merge commmit",t),b(e,t[0],n,r),i++,b(e,t[1],n,r),i--)}function v(e,t,n,i){for(i=i||0;t.seq>0&&!t.lineDrawn;)"string"==typeof t.parent?(m(e,t.id,t.parent,n,i),t.lineDrawn=!0,t=d[t.parent]):Array.isArray(t.parent)&&(m(e,t.id,t.parent[0],n,i),m(e,t.id,t.parent[1],n,i+1),v(e,d[t.parent[1]],n,i+1),t.lineDrawn=!0,t=d[t.parent[0]])}var y=function(e,t,n){try{var s=a.a.parser;s.yy=o.default,s.yy.clear(),l.logger.debug("in gitgraph renderer",e+"\n","id:",t,n),s.parse(e+"\n"),u=Object.assign(u,h,o.default.getOptions()),l.logger.debug("effective options",u);var c=o.default.getDirection();d=o.default.getCommits();var f=o.default.getBranchesAsObjArray();"BT"===c&&(u.nodeLabel.x=f.length*u.branchOffset,u.nodeLabel.width="100%",u.nodeLabel.y=-2*u.nodeRadius);var g=Object(r.select)('[id="'.concat(t,'"]'));for(var p in function(e){e.append("defs").append("g").attr("id","def-commit").append("circle").attr("r",u.nodeRadius).attr("cx",0).attr("cy",0),e.select("#def-commit").append("foreignObject").attr("width",u.nodeLabel.width).attr("height",u.nodeLabel.height).attr("x",u.nodeLabel.x).attr("y",u.nodeLabel.y).attr("class","node-label").attr("requiredFeatures","http://www.w3.org/TR/SVG11/feature#Extensibility").append("p").html("")}(g),i=1,f){var m=f[p];b(g,m.commit.id,f,c),v(g,m.commit,c),i++}g.attr("height",(function(){return"BT"===c?Object.keys(d).length*u.nodeSpacing:(f.length+1)*u.branchOffset}))}catch(e){l.logger.error("Error while rendering gitgraph"),l.logger.error(e.message)}};t.default={setConf:f,draw:y}},"./src/diagrams/git/parser/gitGraph.jison": /*!************************************************!*\ !*** ./src/diagrams/git/parser/gitGraph.jison ***! \************************************************/ -/*! no static exports found */function(e,t,n){(function(e,r){var i=function(){var e=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},t=[2,3],n=[1,7],r=[7,12,15,17,19,20,21],i=[7,11,12,15,17,19,20,21],o=[2,20],s=[1,32],a={trace:function(){},yy:{},symbols_:{error:2,start:3,GG:4,":":5,document:6,EOF:7,DIR:8,options:9,body:10,OPT:11,NL:12,line:13,statement:14,COMMIT:15,commit_arg:16,BRANCH:17,ID:18,CHECKOUT:19,MERGE:20,RESET:21,reset_arg:22,STR:23,HEAD:24,reset_parents:25,CARET:26,$accept:0,$end:1},terminals_:{2:"error",4:"GG",5:":",7:"EOF",8:"DIR",11:"OPT",12:"NL",15:"COMMIT",17:"BRANCH",18:"ID",19:"CHECKOUT",20:"MERGE",21:"RESET",23:"STR",24:"HEAD",26:"CARET"},productions_:[0,[3,4],[3,5],[6,0],[6,2],[9,2],[9,1],[10,0],[10,2],[13,2],[13,1],[14,2],[14,2],[14,2],[14,2],[14,2],[16,0],[16,1],[22,2],[22,2],[25,0],[25,2]],performAction:function(e,t,n,r,i,o,s){var a=o.length-1;switch(i){case 1:return o[a-1];case 2:return r.setDirection(o[a-3]),o[a-1];case 4:r.setOptions(o[a-1]),this.$=o[a];break;case 5:o[a-1]+=o[a],this.$=o[a-1];break;case 7:this.$=[];break;case 8:o[a-1].push(o[a]),this.$=o[a-1];break;case 9:this.$=o[a-1];break;case 11:r.commit(o[a]);break;case 12:r.branch(o[a]);break;case 13:r.checkout(o[a]);break;case 14:r.merge(o[a]);break;case 15:r.reset(o[a]);break;case 16:this.$="";break;case 17:this.$=o[a];break;case 18:this.$=o[a-1]+":"+o[a];break;case 19:this.$=o[a-1]+":"+r.count,r.count=0;break;case 20:r.count=0;break;case 21:r.count+=1}},table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3],8:[1,4]},{6:5,7:t,9:6,12:n},{5:[1,8]},{7:[1,9]},e(r,[2,7],{10:10,11:[1,11]}),e(i,[2,6]),{6:12,7:t,9:6,12:n},{1:[2,1]},{7:[2,4],12:[1,15],13:13,14:14,15:[1,16],17:[1,17],19:[1,18],20:[1,19],21:[1,20]},e(i,[2,5]),{7:[1,21]},e(r,[2,8]),{12:[1,22]},e(r,[2,10]),{12:[2,16],16:23,23:[1,24]},{18:[1,25]},{18:[1,26]},{18:[1,27]},{18:[1,30],22:28,24:[1,29]},{1:[2,2]},e(r,[2,9]),{12:[2,11]},{12:[2,17]},{12:[2,12]},{12:[2,13]},{12:[2,14]},{12:[2,15]},{12:o,25:31,26:s},{12:o,25:33,26:s},{12:[2,18]},{12:o,25:34,26:s},{12:[2,19]},{12:[2,21]}],defaultActions:{9:[2,1],21:[2,2],23:[2,11],24:[2,17],25:[2,12],26:[2,13],27:[2,14],28:[2,15],31:[2,18],33:[2,19],34:[2,21]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],r=[],i=[null],o=[],s=this.table,a="",u=0,l=0,c=0,d=2,h=1,f=o.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var m in this.yy)Object.prototype.hasOwnProperty.call(this.yy,m)&&(g.yy[m]=this.yy[m]);p.setInput(e,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var _=p.yylloc;o.push(_);var y=p.options&&p.options.ranges;function v(){var e;return"number"!=typeof(e=r.pop()||p.lex()||h)&&(e instanceof Array&&(e=(r=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,w,C,S,x,L,k,M,D,E={};;){if(C=n[n.length-1],this.defaultActions[C]?S=this.defaultActions[C]:(null==b&&(b=v()),S=s[C]&&s[C][b]),void 0===S||!S.length||!S[0]){var T="";for(L in D=[],s[C])this.terminals_[L]&&L>d&&D.push("'"+this.terminals_[L]+"'");T=p.showPosition?"Parse error on line "+(u+1)+":\n"+p.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(u+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(T,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:_,expected:D})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+b);switch(S[0]){case 1:n.push(b),i.push(p.yytext),o.push(p.yylloc),n.push(S[1]),b=null,w?(b=w,w=null):(l=p.yyleng,a=p.yytext,u=p.yylineno,_=p.yylloc,c>0&&c--);break;case 2:if(k=this.productions_[S[1]][1],E.$=i[i.length-k],E._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(E._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),void 0!==(x=this.performAction.apply(E,[a,l,u,g.yy,S[1],i,o].concat(f))))return x;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),o=o.slice(0,-1*k)),n.push(this.productions_[S[1]][0]),i.push(E.$),o.push(E._$),M=s[n[n.length-2]][n[n.length-1]],n.push(M);break;case 3:return!0}}return!0}},u={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;o<i.length;o++)if((n=this._input.match(this.rules[i[o]]))&&(!t||n[0].length>t[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return 12;case 1:case 2:case 3:break;case 4:return 4;case 5:return 15;case 6:return 17;case 7:return 20;case 8:return 21;case 9:return 19;case 10:case 11:return 8;case 12:return 5;case 13:return 26;case 14:this.begin("options");break;case 15:this.popState();break;case 16:return 11;case 17:this.begin("string");break;case 18:this.popState();break;case 19:return 23;case 20:return 18;case 21:return 7}},rules:[/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:gitGraph\b)/i,/^(?:commit\b)/i,/^(?:branch\b)/i,/^(?:merge\b)/i,/^(?:reset\b)/i,/^(?:checkout\b)/i,/^(?:LR\b)/i,/^(?:BT\b)/i,/^(?::)/i,/^(?:\^)/i,/^(?:options\r?\n)/i,/^(?:end\r?\n)/i,/^(?:[^\n]+\r?\n)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[a-zA-Z][-_\.a-zA-Z0-9]*[-_a-zA-Z0-9])/i,/^(?:$)/i],conditions:{options:{rules:[15,16],inclusive:!1},string:{rules:[18,19],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,17,20,21],inclusive:!0}}};function l(){this.yy={}}return a.lexer=u,l.prototype=a,a.Parser=l,new l}();t.parser=i,t.Parser=i.Parser,t.parse=function(){return i.parse.apply(i,arguments)},t.main=function(r){r[1]||(console.log("Usage: "+r[0]+" FILE"),e.exit(1));var i=n(/*! fs */"./node_modules/node-libs-browser/mock/empty.js").readFileSync(n(/*! path */"./node_modules/path-browserify/index.js").normalize(r[1]),"utf8");return t.parser.parse(i)},n.c[n.s]===r&&t.main(e.argv.slice(1))}).call(this,n(/*! ./../../../../node_modules/process/browser.js */"./node_modules/process/browser.js"),n(/*! ./../../../../node_modules/webpack/buildin/module.js */"./node_modules/webpack/buildin/module.js")(e))},"./src/diagrams/git/styles.js": +/*! no static exports found */function(e,t,n){(function(e,i){var r=function(){var e=function(e,t,n,i){for(n=n||{},i=e.length;i--;n[e[i]]=t);return n},t=[2,3],n=[1,7],i=[7,12,15,17,19,20,21],r=[7,11,12,15,17,19,20,21],o=[2,20],s=[1,32],a={trace:function(){},yy:{},symbols_:{error:2,start:3,GG:4,":":5,document:6,EOF:7,DIR:8,options:9,body:10,OPT:11,NL:12,line:13,statement:14,COMMIT:15,commit_arg:16,BRANCH:17,ID:18,CHECKOUT:19,MERGE:20,RESET:21,reset_arg:22,STR:23,HEAD:24,reset_parents:25,CARET:26,$accept:0,$end:1},terminals_:{2:"error",4:"GG",5:":",7:"EOF",8:"DIR",11:"OPT",12:"NL",15:"COMMIT",17:"BRANCH",18:"ID",19:"CHECKOUT",20:"MERGE",21:"RESET",23:"STR",24:"HEAD",26:"CARET"},productions_:[0,[3,4],[3,5],[6,0],[6,2],[9,2],[9,1],[10,0],[10,2],[13,2],[13,1],[14,2],[14,2],[14,2],[14,2],[14,2],[16,0],[16,1],[22,2],[22,2],[25,0],[25,2]],performAction:function(e,t,n,i,r,o,s){var a=o.length-1;switch(r){case 1:return o[a-1];case 2:return i.setDirection(o[a-3]),o[a-1];case 4:i.setOptions(o[a-1]),this.$=o[a];break;case 5:o[a-1]+=o[a],this.$=o[a-1];break;case 7:this.$=[];break;case 8:o[a-1].push(o[a]),this.$=o[a-1];break;case 9:this.$=o[a-1];break;case 11:i.commit(o[a]);break;case 12:i.branch(o[a]);break;case 13:i.checkout(o[a]);break;case 14:i.merge(o[a]);break;case 15:i.reset(o[a]);break;case 16:this.$="";break;case 17:this.$=o[a];break;case 18:this.$=o[a-1]+":"+o[a];break;case 19:this.$=o[a-1]+":"+i.count,i.count=0;break;case 20:i.count=0;break;case 21:i.count+=1}},table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3],8:[1,4]},{6:5,7:t,9:6,12:n},{5:[1,8]},{7:[1,9]},e(i,[2,7],{10:10,11:[1,11]}),e(r,[2,6]),{6:12,7:t,9:6,12:n},{1:[2,1]},{7:[2,4],12:[1,15],13:13,14:14,15:[1,16],17:[1,17],19:[1,18],20:[1,19],21:[1,20]},e(r,[2,5]),{7:[1,21]},e(i,[2,8]),{12:[1,22]},e(i,[2,10]),{12:[2,16],16:23,23:[1,24]},{18:[1,25]},{18:[1,26]},{18:[1,27]},{18:[1,30],22:28,24:[1,29]},{1:[2,2]},e(i,[2,9]),{12:[2,11]},{12:[2,17]},{12:[2,12]},{12:[2,13]},{12:[2,14]},{12:[2,15]},{12:o,25:31,26:s},{12:o,25:33,26:s},{12:[2,18]},{12:o,25:34,26:s},{12:[2,19]},{12:[2,21]}],defaultActions:{9:[2,1],21:[2,2],23:[2,11],24:[2,17],25:[2,12],26:[2,13],27:[2,14],28:[2,15],31:[2,18],33:[2,19],34:[2,21]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],i=[],r=[null],o=[],s=this.table,a="",l=0,c=0,d=0,u=2,h=1,f=o.slice.call(arguments,1),g=Object.create(this.lexer),p={yy:{}};for(var m in this.yy)Object.prototype.hasOwnProperty.call(this.yy,m)&&(p.yy[m]=this.yy[m]);g.setInput(e,p.yy),p.yy.lexer=g,p.yy.parser=this,void 0===g.yylloc&&(g.yylloc={});var _=g.yylloc;o.push(_);var b=g.options&&g.options.ranges;function v(){var e;return"number"!=typeof(e=i.pop()||g.lex()||h)&&(e instanceof Array&&(e=(i=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var y,w,C,S,k,x,L,M,D,E={};;){if(C=n[n.length-1],this.defaultActions[C]?S=this.defaultActions[C]:(null==y&&(y=v()),S=s[C]&&s[C][y]),void 0===S||!S.length||!S[0]){var T="";for(x in D=[],s[C])this.terminals_[x]&&x>u&&D.push("'"+this.terminals_[x]+"'");T=g.showPosition?"Parse error on line "+(l+1)+":\n"+g.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[y]||y)+"'":"Parse error on line "+(l+1)+": Unexpected "+(y==h?"end of input":"'"+(this.terminals_[y]||y)+"'"),this.parseError(T,{text:g.match,token:this.terminals_[y]||y,line:g.yylineno,loc:_,expected:D})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+y);switch(S[0]){case 1:n.push(y),r.push(g.yytext),o.push(g.yylloc),n.push(S[1]),y=null,w?(y=w,w=null):(c=g.yyleng,a=g.yytext,l=g.yylineno,_=g.yylloc,d>0&&d--);break;case 2:if(L=this.productions_[S[1]][1],E.$=r[r.length-L],E._$={first_line:o[o.length-(L||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(L||1)].first_column,last_column:o[o.length-1].last_column},b&&(E._$.range=[o[o.length-(L||1)].range[0],o[o.length-1].range[1]]),void 0!==(k=this.performAction.apply(E,[a,c,l,p.yy,S[1],r,o].concat(f))))return k;L&&(n=n.slice(0,-1*L*2),r=r.slice(0,-1*L),o=o.slice(0,-1*L)),n.push(this.productions_[S[1]][0]),r.push(E.$),o.push(E._$),M=s[n[n.length-2]][n[n.length-1]],n.push(M);break;case 3:return!0}}return!0}},l={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in r)this[o]=r[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),o=0;o<r.length;o++)if((n=this._input.match(this.rules[r[o]]))&&(!t||n[0].length>t[0].length)){if(t=n,i=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,r[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,r[i]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,i){switch(n){case 0:return 12;case 1:case 2:case 3:break;case 4:return 4;case 5:return 15;case 6:return 17;case 7:return 20;case 8:return 21;case 9:return 19;case 10:case 11:return 8;case 12:return 5;case 13:return 26;case 14:this.begin("options");break;case 15:this.popState();break;case 16:return 11;case 17:this.begin("string");break;case 18:this.popState();break;case 19:return 23;case 20:return 18;case 21:return 7}},rules:[/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:gitGraph\b)/i,/^(?:commit\b)/i,/^(?:branch\b)/i,/^(?:merge\b)/i,/^(?:reset\b)/i,/^(?:checkout\b)/i,/^(?:LR\b)/i,/^(?:BT\b)/i,/^(?::)/i,/^(?:\^)/i,/^(?:options\r?\n)/i,/^(?:end\r?\n)/i,/^(?:[^\n]+\r?\n)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[a-zA-Z][-_\.a-zA-Z0-9]*[-_a-zA-Z0-9])/i,/^(?:$)/i],conditions:{options:{rules:[15,16],inclusive:!1},string:{rules:[18,19],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,17,20,21],inclusive:!0}}};function c(){this.yy={}}return a.lexer=l,c.prototype=a,a.Parser=c,new c}();t.parser=r,t.Parser=r.Parser,t.parse=function(){return r.parse.apply(r,arguments)},t.main=function(i){i[1]||(console.log("Usage: "+i[0]+" FILE"),e.exit(1));var r=n(/*! fs */"./node_modules/node-libs-browser/mock/empty.js").readFileSync(n(/*! path */"./node_modules/path-browserify/index.js").normalize(i[1]),"utf8");return t.parser.parse(r)},n.c[n.s]===i&&t.main(e.argv.slice(1))}).call(this,n(/*! ./../../../../node_modules/process/browser.js */"./node_modules/process/browser.js"),n(/*! ./../../../../node_modules/webpack/buildin/module.js */"./node_modules/webpack/buildin/module.js")(e))},"./src/diagrams/git/styles.js": /*!************************************!*\ !*** ./src/diagrams/git/styles.js ***! \************************************/ @@ -198,15 +198,15 @@ /*!*************************************!*\ !*** ./src/diagrams/info/infoDb.js ***! \*************************************/ -/*! exports provided: setMessage, getMessage, setInfo, getInfo, default */function(e,t,n){"use strict";n.r(t),n.d(t,"setMessage",(function(){return s})),n.d(t,"getMessage",(function(){return a})),n.d(t,"setInfo",(function(){return u})),n.d(t,"getInfo",(function(){return l}));var r=n(/*! ../../logger */"./src/logger.js"),i="",o=!1,s=function(e){r.logger.debug("Setting message to: "+e),i=e},a=function(){return i},u=function(e){o=e},l=function(){return o};t.default={setMessage:s,getMessage:a,setInfo:u,getInfo:l}},"./src/diagrams/info/infoRenderer.js": +/*! exports provided: setMessage, getMessage, setInfo, getInfo, default */function(e,t,n){"use strict";n.r(t),n.d(t,"setMessage",(function(){return s})),n.d(t,"getMessage",(function(){return a})),n.d(t,"setInfo",(function(){return l})),n.d(t,"getInfo",(function(){return c}));var i=n(/*! ../../logger */"./src/logger.js"),r="",o=!1,s=function(e){i.logger.debug("Setting message to: "+e),r=e},a=function(){return r},l=function(e){o=e},c=function(){return o};t.default={setMessage:s,getMessage:a,setInfo:l,getInfo:c}},"./src/diagrams/info/infoRenderer.js": /*!*******************************************!*\ !*** ./src/diagrams/info/infoRenderer.js ***! \*******************************************/ -/*! exports provided: setConf, draw, default */function(e,t,n){"use strict";n.r(t),n.d(t,"setConf",(function(){return l})),n.d(t,"draw",(function(){return c}));var r=n(/*! d3 */"d3"),i=n(/*! ./infoDb */"./src/diagrams/info/infoDb.js"),o=n(/*! ./parser/info */"./src/diagrams/info/parser/info.jison"),s=n.n(o),a=n(/*! ../../logger */"./src/logger.js"),u={},l=function(e){Object.keys(e).forEach((function(t){u[t]=e[t]}))},c=function(e,t,n){try{var o=s.a.parser;o.yy=i.default,a.logger.debug("Renering info diagram\n"+e),o.parse(e),a.logger.debug("Parsed info diagram");var u=Object(r.select)("#"+t);u.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size","32px").style("text-anchor","middle").text("v "+n),u.attr("height",100),u.attr("width",400)}catch(e){a.logger.error("Error while rendering info diagram"),a.logger.error(e.message)}};t.default={setConf:l,draw:c}},"./src/diagrams/info/parser/info.jison": +/*! exports provided: setConf, draw, default */function(e,t,n){"use strict";n.r(t),n.d(t,"setConf",(function(){return c})),n.d(t,"draw",(function(){return d}));var i=n(/*! d3 */"d3"),r=n(/*! ./infoDb */"./src/diagrams/info/infoDb.js"),o=n(/*! ./parser/info */"./src/diagrams/info/parser/info.jison"),s=n.n(o),a=n(/*! ../../logger */"./src/logger.js"),l={},c=function(e){Object.keys(e).forEach((function(t){l[t]=e[t]}))},d=function(e,t,n){try{var o=s.a.parser;o.yy=r.default,a.logger.debug("Renering info diagram\n"+e),o.parse(e),a.logger.debug("Parsed info diagram");var l=Object(i.select)("#"+t);l.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size","32px").style("text-anchor","middle").text("v "+n),l.attr("height",100),l.attr("width",400)}catch(e){a.logger.error("Error while rendering info diagram"),a.logger.error(e.message)}};t.default={setConf:c,draw:d}},"./src/diagrams/info/parser/info.jison": /*!*********************************************!*\ !*** ./src/diagrams/info/parser/info.jison ***! \*********************************************/ -/*! no static exports found */function(e,t,n){(function(e,r){var i=function(){var e=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},t=[6,9,10],n={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(e,t,n,r,i,o,s){switch(o.length,i){case 1:return r;case 4:break;case 6:r.setInfo(!0)}},table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},e(t,[2,3]),e(t,[2,4]),e(t,[2,5]),e(t,[2,6])],defaultActions:{4:[2,1]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],r=[],i=[null],o=[],s=this.table,a="",u=0,l=0,c=0,d=2,h=1,f=o.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var m in this.yy)Object.prototype.hasOwnProperty.call(this.yy,m)&&(g.yy[m]=this.yy[m]);p.setInput(e,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var _=p.yylloc;o.push(_);var y=p.options&&p.options.ranges;function v(){var e;return"number"!=typeof(e=r.pop()||p.lex()||h)&&(e instanceof Array&&(e=(r=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,w,C,S,x,L,k,M,D,E={};;){if(C=n[n.length-1],this.defaultActions[C]?S=this.defaultActions[C]:(null==b&&(b=v()),S=s[C]&&s[C][b]),void 0===S||!S.length||!S[0]){var T="";for(L in D=[],s[C])this.terminals_[L]&&L>d&&D.push("'"+this.terminals_[L]+"'");T=p.showPosition?"Parse error on line "+(u+1)+":\n"+p.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(u+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(T,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:_,expected:D})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+b);switch(S[0]){case 1:n.push(b),i.push(p.yytext),o.push(p.yylloc),n.push(S[1]),b=null,w?(b=w,w=null):(l=p.yyleng,a=p.yytext,u=p.yylineno,_=p.yylloc,c>0&&c--);break;case 2:if(k=this.productions_[S[1]][1],E.$=i[i.length-k],E._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(E._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),void 0!==(x=this.performAction.apply(E,[a,l,u,g.yy,S[1],i,o].concat(f))))return x;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),o=o.slice(0,-1*k)),n.push(this.productions_[S[1]][0]),i.push(E.$),o.push(E._$),M=s[n[n.length-2]][n[n.length-1]],n.push(M);break;case 3:return!0}}return!0}},r={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;o<i.length;o++)if((n=this._input.match(this.rules[i[o]]))&&(!t||n[0].length>t[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return 4;case 1:return 9;case 2:return"space";case 3:return 10;case 4:return 6;case 5:return"TXT"}},rules:[/^(?:info\b)/i,/^(?:[\s\n\r]+)/i,/^(?:[\s]+)/i,/^(?:showInfo\b)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5],inclusive:!0}}};function i(){this.yy={}}return n.lexer=r,i.prototype=n,n.Parser=i,new i}();t.parser=i,t.Parser=i.Parser,t.parse=function(){return i.parse.apply(i,arguments)},t.main=function(r){r[1]||(console.log("Usage: "+r[0]+" FILE"),e.exit(1));var i=n(/*! fs */"./node_modules/node-libs-browser/mock/empty.js").readFileSync(n(/*! path */"./node_modules/path-browserify/index.js").normalize(r[1]),"utf8");return t.parser.parse(i)},n.c[n.s]===r&&t.main(e.argv.slice(1))}).call(this,n(/*! ./../../../../node_modules/process/browser.js */"./node_modules/process/browser.js"),n(/*! ./../../../../node_modules/webpack/buildin/module.js */"./node_modules/webpack/buildin/module.js")(e))},"./src/diagrams/info/styles.js": +/*! no static exports found */function(e,t,n){(function(e,i){var r=function(){var e=function(e,t,n,i){for(n=n||{},i=e.length;i--;n[e[i]]=t);return n},t=[6,9,10],n={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(e,t,n,i,r,o,s){switch(o.length,r){case 1:return i;case 4:break;case 6:i.setInfo(!0)}},table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},e(t,[2,3]),e(t,[2,4]),e(t,[2,5]),e(t,[2,6])],defaultActions:{4:[2,1]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],i=[],r=[null],o=[],s=this.table,a="",l=0,c=0,d=0,u=2,h=1,f=o.slice.call(arguments,1),g=Object.create(this.lexer),p={yy:{}};for(var m in this.yy)Object.prototype.hasOwnProperty.call(this.yy,m)&&(p.yy[m]=this.yy[m]);g.setInput(e,p.yy),p.yy.lexer=g,p.yy.parser=this,void 0===g.yylloc&&(g.yylloc={});var _=g.yylloc;o.push(_);var b=g.options&&g.options.ranges;function v(){var e;return"number"!=typeof(e=i.pop()||g.lex()||h)&&(e instanceof Array&&(e=(i=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var y,w,C,S,k,x,L,M,D,E={};;){if(C=n[n.length-1],this.defaultActions[C]?S=this.defaultActions[C]:(null==y&&(y=v()),S=s[C]&&s[C][y]),void 0===S||!S.length||!S[0]){var T="";for(x in D=[],s[C])this.terminals_[x]&&x>u&&D.push("'"+this.terminals_[x]+"'");T=g.showPosition?"Parse error on line "+(l+1)+":\n"+g.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[y]||y)+"'":"Parse error on line "+(l+1)+": Unexpected "+(y==h?"end of input":"'"+(this.terminals_[y]||y)+"'"),this.parseError(T,{text:g.match,token:this.terminals_[y]||y,line:g.yylineno,loc:_,expected:D})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+y);switch(S[0]){case 1:n.push(y),r.push(g.yytext),o.push(g.yylloc),n.push(S[1]),y=null,w?(y=w,w=null):(c=g.yyleng,a=g.yytext,l=g.yylineno,_=g.yylloc,d>0&&d--);break;case 2:if(L=this.productions_[S[1]][1],E.$=r[r.length-L],E._$={first_line:o[o.length-(L||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(L||1)].first_column,last_column:o[o.length-1].last_column},b&&(E._$.range=[o[o.length-(L||1)].range[0],o[o.length-1].range[1]]),void 0!==(k=this.performAction.apply(E,[a,c,l,p.yy,S[1],r,o].concat(f))))return k;L&&(n=n.slice(0,-1*L*2),r=r.slice(0,-1*L),o=o.slice(0,-1*L)),n.push(this.productions_[S[1]][0]),r.push(E.$),o.push(E._$),M=s[n[n.length-2]][n[n.length-1]],n.push(M);break;case 3:return!0}}return!0}},i={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in r)this[o]=r[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),o=0;o<r.length;o++)if((n=this._input.match(this.rules[r[o]]))&&(!t||n[0].length>t[0].length)){if(t=n,i=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,r[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,r[i]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,i){switch(n){case 0:return 4;case 1:return 9;case 2:return"space";case 3:return 10;case 4:return 6;case 5:return"TXT"}},rules:[/^(?:info\b)/i,/^(?:[\s\n\r]+)/i,/^(?:[\s]+)/i,/^(?:showInfo\b)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5],inclusive:!0}}};function r(){this.yy={}}return n.lexer=i,r.prototype=n,n.Parser=r,new r}();t.parser=r,t.Parser=r.Parser,t.parse=function(){return r.parse.apply(r,arguments)},t.main=function(i){i[1]||(console.log("Usage: "+i[0]+" FILE"),e.exit(1));var r=n(/*! fs */"./node_modules/node-libs-browser/mock/empty.js").readFileSync(n(/*! path */"./node_modules/path-browserify/index.js").normalize(i[1]),"utf8");return t.parser.parse(r)},n.c[n.s]===i&&t.main(e.argv.slice(1))}).call(this,n(/*! ./../../../../node_modules/process/browser.js */"./node_modules/process/browser.js"),n(/*! ./../../../../node_modules/webpack/buildin/module.js */"./node_modules/webpack/buildin/module.js")(e))},"./src/diagrams/info/styles.js": /*!*************************************!*\ !*** ./src/diagrams/info/styles.js ***! \*************************************/ @@ -214,15 +214,15 @@ /*!*******************************************!*\ !*** ./src/diagrams/pie/parser/pie.jison ***! \*******************************************/ -/*! no static exports found */function(e,t,n){(function(e,r){var i=function(){var e=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},t=[1,4],n=[1,5],r=[1,6],i=[1,7],o=[1,9],s=[1,10,12,19,20,21,22],a=[1,6,10,12,19,20,21,22],u=[19,20,21],l=[1,22],c=[6,19,20,21,22],d={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,PIE:6,document:7,line:8,statement:9,txt:10,value:11,title:12,title_value:13,openDirective:14,typeDirective:15,closeDirective:16,":":17,argDirective:18,NEWLINE:19,";":20,EOF:21,open_directive:22,type_directive:23,arg_directive:24,close_directive:25,$accept:0,$end:1},terminals_:{2:"error",6:"PIE",10:"txt",11:"value",12:"title",13:"title_value",17:":",19:"NEWLINE",20:";",21:"EOF",22:"open_directive",23:"type_directive",24:"arg_directive",25:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[9,0],[9,2],[9,2],[9,1],[5,3],[5,5],[4,1],[4,1],[4,1],[14,1],[15,1],[18,1],[16,1]],performAction:function(e,t,n,r,i,o,s){var a=o.length-1;switch(i){case 6:this.$=o[a-1];break;case 8:r.addSection(o[a-1],r.cleanupValue(o[a]));break;case 9:this.$=o[a].trim(),r.setTitle(this.$);break;case 16:r.parseDirective("%%{","open_directive");break;case 17:r.parseDirective(o[a],"type_directive");break;case 18:o[a]=o[a].trim().replace(/'/g,'"'),r.parseDirective(o[a],"arg_directive");break;case 19:r.parseDirective("}%%","close_directive","pie")}},table:[{3:1,4:2,5:3,6:t,14:8,19:n,20:r,21:i,22:o},{1:[3]},{3:10,4:2,5:3,6:t,14:8,19:n,20:r,21:i,22:o},{3:11,4:2,5:3,6:t,14:8,19:n,20:r,21:i,22:o},e(s,[2,4],{7:12}),e(a,[2,13]),e(a,[2,14]),e(a,[2,15]),{15:13,23:[1,14]},{23:[2,16]},{1:[2,1]},{1:[2,2]},e(u,[2,7],{14:8,8:15,9:16,5:19,1:[2,3],10:[1,17],12:[1,18],22:o}),{16:20,17:[1,21],25:l},e([17,25],[2,17]),e(s,[2,5]),{4:23,19:n,20:r,21:i},{11:[1,24]},{13:[1,25]},e(u,[2,10]),e(c,[2,11]),{18:26,24:[1,27]},e(c,[2,19]),e(s,[2,6]),e(u,[2,8]),e(u,[2,9]),{16:28,25:l},{25:[2,18]},e(c,[2,12])],defaultActions:{9:[2,16],10:[2,1],11:[2,2],27:[2,18]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],r=[],i=[null],o=[],s=this.table,a="",u=0,l=0,c=0,d=2,h=1,f=o.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var m in this.yy)Object.prototype.hasOwnProperty.call(this.yy,m)&&(g.yy[m]=this.yy[m]);p.setInput(e,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var _=p.yylloc;o.push(_);var y=p.options&&p.options.ranges;function v(){var e;return"number"!=typeof(e=r.pop()||p.lex()||h)&&(e instanceof Array&&(e=(r=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,w,C,S,x,L,k,M,D,E={};;){if(C=n[n.length-1],this.defaultActions[C]?S=this.defaultActions[C]:(null==b&&(b=v()),S=s[C]&&s[C][b]),void 0===S||!S.length||!S[0]){var T="";for(L in D=[],s[C])this.terminals_[L]&&L>d&&D.push("'"+this.terminals_[L]+"'");T=p.showPosition?"Parse error on line "+(u+1)+":\n"+p.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(u+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(T,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:_,expected:D})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+b);switch(S[0]){case 1:n.push(b),i.push(p.yytext),o.push(p.yylloc),n.push(S[1]),b=null,w?(b=w,w=null):(l=p.yyleng,a=p.yytext,u=p.yylineno,_=p.yylloc,c>0&&c--);break;case 2:if(k=this.productions_[S[1]][1],E.$=i[i.length-k],E._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(E._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),void 0!==(x=this.performAction.apply(E,[a,l,u,g.yy,S[1],i,o].concat(f))))return x;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),o=o.slice(0,-1*k)),n.push(this.productions_[S[1]][0]),i.push(E.$),o.push(E._$),M=s[n[n.length-2]][n[n.length-1]],n.push(M);break;case 3:return!0}}return!0}},h={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;o<i.length;o++)if((n=this._input.match(this.rules[i[o]]))&&(!t||n[0].length>t[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return this.begin("open_directive"),22;case 1:return this.begin("type_directive"),23;case 2:return this.popState(),this.begin("arg_directive"),17;case 3:return this.popState(),this.popState(),25;case 4:return 24;case 5:case 6:break;case 7:return 19;case 8:case 9:break;case 10:return this.begin("title"),12;case 11:return this.popState(),"title_value";case 12:this.begin("string");break;case 13:this.popState();break;case 14:return"txt";case 15:return 6;case 16:return"value";case 17:return 21}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[\s]+)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:pie\b)/i,/^(?::[\s]*[\d]+(?:\.[\d]+)?)/i,/^(?:$)/i],conditions:{close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},title:{rules:[11],inclusive:!1},string:{rules:[13,14],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,12,15,16,17],inclusive:!0}}};function f(){this.yy={}}return d.lexer=h,f.prototype=d,d.Parser=f,new f}();t.parser=i,t.Parser=i.Parser,t.parse=function(){return i.parse.apply(i,arguments)},t.main=function(r){r[1]||(console.log("Usage: "+r[0]+" FILE"),e.exit(1));var i=n(/*! fs */"./node_modules/node-libs-browser/mock/empty.js").readFileSync(n(/*! path */"./node_modules/path-browserify/index.js").normalize(r[1]),"utf8");return t.parser.parse(i)},n.c[n.s]===r&&t.main(e.argv.slice(1))}).call(this,n(/*! ./../../../../node_modules/process/browser.js */"./node_modules/process/browser.js"),n(/*! ./../../../../node_modules/webpack/buildin/module.js */"./node_modules/webpack/buildin/module.js")(e))},"./src/diagrams/pie/pieDb.js": +/*! no static exports found */function(e,t,n){(function(e,i){var r=function(){var e=function(e,t,n,i){for(n=n||{},i=e.length;i--;n[e[i]]=t);return n},t=[1,4],n=[1,5],i=[1,6],r=[1,7],o=[1,9],s=[1,10,12,19,20,21,22],a=[1,6,10,12,19,20,21,22],l=[19,20,21],c=[1,22],d=[6,19,20,21,22],u={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,PIE:6,document:7,line:8,statement:9,txt:10,value:11,title:12,title_value:13,openDirective:14,typeDirective:15,closeDirective:16,":":17,argDirective:18,NEWLINE:19,";":20,EOF:21,open_directive:22,type_directive:23,arg_directive:24,close_directive:25,$accept:0,$end:1},terminals_:{2:"error",6:"PIE",10:"txt",11:"value",12:"title",13:"title_value",17:":",19:"NEWLINE",20:";",21:"EOF",22:"open_directive",23:"type_directive",24:"arg_directive",25:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[9,0],[9,2],[9,2],[9,1],[5,3],[5,5],[4,1],[4,1],[4,1],[14,1],[15,1],[18,1],[16,1]],performAction:function(e,t,n,i,r,o,s){var a=o.length-1;switch(r){case 6:this.$=o[a-1];break;case 8:i.addSection(o[a-1],i.cleanupValue(o[a]));break;case 9:this.$=o[a].trim(),i.setTitle(this.$);break;case 16:i.parseDirective("%%{","open_directive");break;case 17:i.parseDirective(o[a],"type_directive");break;case 18:o[a]=o[a].trim().replace(/'/g,'"'),i.parseDirective(o[a],"arg_directive");break;case 19:i.parseDirective("}%%","close_directive","pie")}},table:[{3:1,4:2,5:3,6:t,14:8,19:n,20:i,21:r,22:o},{1:[3]},{3:10,4:2,5:3,6:t,14:8,19:n,20:i,21:r,22:o},{3:11,4:2,5:3,6:t,14:8,19:n,20:i,21:r,22:o},e(s,[2,4],{7:12}),e(a,[2,13]),e(a,[2,14]),e(a,[2,15]),{15:13,23:[1,14]},{23:[2,16]},{1:[2,1]},{1:[2,2]},e(l,[2,7],{14:8,8:15,9:16,5:19,1:[2,3],10:[1,17],12:[1,18],22:o}),{16:20,17:[1,21],25:c},e([17,25],[2,17]),e(s,[2,5]),{4:23,19:n,20:i,21:r},{11:[1,24]},{13:[1,25]},e(l,[2,10]),e(d,[2,11]),{18:26,24:[1,27]},e(d,[2,19]),e(s,[2,6]),e(l,[2,8]),e(l,[2,9]),{16:28,25:c},{25:[2,18]},e(d,[2,12])],defaultActions:{9:[2,16],10:[2,1],11:[2,2],27:[2,18]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],i=[],r=[null],o=[],s=this.table,a="",l=0,c=0,d=0,u=2,h=1,f=o.slice.call(arguments,1),g=Object.create(this.lexer),p={yy:{}};for(var m in this.yy)Object.prototype.hasOwnProperty.call(this.yy,m)&&(p.yy[m]=this.yy[m]);g.setInput(e,p.yy),p.yy.lexer=g,p.yy.parser=this,void 0===g.yylloc&&(g.yylloc={});var _=g.yylloc;o.push(_);var b=g.options&&g.options.ranges;function v(){var e;return"number"!=typeof(e=i.pop()||g.lex()||h)&&(e instanceof Array&&(e=(i=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var y,w,C,S,k,x,L,M,D,E={};;){if(C=n[n.length-1],this.defaultActions[C]?S=this.defaultActions[C]:(null==y&&(y=v()),S=s[C]&&s[C][y]),void 0===S||!S.length||!S[0]){var T="";for(x in D=[],s[C])this.terminals_[x]&&x>u&&D.push("'"+this.terminals_[x]+"'");T=g.showPosition?"Parse error on line "+(l+1)+":\n"+g.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[y]||y)+"'":"Parse error on line "+(l+1)+": Unexpected "+(y==h?"end of input":"'"+(this.terminals_[y]||y)+"'"),this.parseError(T,{text:g.match,token:this.terminals_[y]||y,line:g.yylineno,loc:_,expected:D})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+y);switch(S[0]){case 1:n.push(y),r.push(g.yytext),o.push(g.yylloc),n.push(S[1]),y=null,w?(y=w,w=null):(c=g.yyleng,a=g.yytext,l=g.yylineno,_=g.yylloc,d>0&&d--);break;case 2:if(L=this.productions_[S[1]][1],E.$=r[r.length-L],E._$={first_line:o[o.length-(L||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(L||1)].first_column,last_column:o[o.length-1].last_column},b&&(E._$.range=[o[o.length-(L||1)].range[0],o[o.length-1].range[1]]),void 0!==(k=this.performAction.apply(E,[a,c,l,p.yy,S[1],r,o].concat(f))))return k;L&&(n=n.slice(0,-1*L*2),r=r.slice(0,-1*L),o=o.slice(0,-1*L)),n.push(this.productions_[S[1]][0]),r.push(E.$),o.push(E._$),M=s[n[n.length-2]][n[n.length-1]],n.push(M);break;case 3:return!0}}return!0}},h={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in r)this[o]=r[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),o=0;o<r.length;o++)if((n=this._input.match(this.rules[r[o]]))&&(!t||n[0].length>t[0].length)){if(t=n,i=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,r[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,r[i]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,i){switch(n){case 0:return this.begin("open_directive"),22;case 1:return this.begin("type_directive"),23;case 2:return this.popState(),this.begin("arg_directive"),17;case 3:return this.popState(),this.popState(),25;case 4:return 24;case 5:case 6:break;case 7:return 19;case 8:case 9:break;case 10:return this.begin("title"),12;case 11:return this.popState(),"title_value";case 12:this.begin("string");break;case 13:this.popState();break;case 14:return"txt";case 15:return 6;case 16:return"value";case 17:return 21}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[\s]+)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:pie\b)/i,/^(?::[\s]*[\d]+(?:\.[\d]+)?)/i,/^(?:$)/i],conditions:{close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},title:{rules:[11],inclusive:!1},string:{rules:[13,14],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,12,15,16,17],inclusive:!0}}};function f(){this.yy={}}return u.lexer=h,f.prototype=u,u.Parser=f,new f}();t.parser=r,t.Parser=r.Parser,t.parse=function(){return r.parse.apply(r,arguments)},t.main=function(i){i[1]||(console.log("Usage: "+i[0]+" FILE"),e.exit(1));var r=n(/*! fs */"./node_modules/node-libs-browser/mock/empty.js").readFileSync(n(/*! path */"./node_modules/path-browserify/index.js").normalize(i[1]),"utf8");return t.parser.parse(r)},n.c[n.s]===i&&t.main(e.argv.slice(1))}).call(this,n(/*! ./../../../../node_modules/process/browser.js */"./node_modules/process/browser.js"),n(/*! ./../../../../node_modules/webpack/buildin/module.js */"./node_modules/webpack/buildin/module.js")(e))},"./src/diagrams/pie/pieDb.js": /*!***********************************!*\ !*** ./src/diagrams/pie/pieDb.js ***! \***********************************/ -/*! exports provided: parseDirective, default */function(e,t,n){"use strict";n.r(t),n.d(t,"parseDirective",(function(){return u}));var r=n(/*! ../../logger */"./src/logger.js"),i=n(/*! ../../mermaidAPI */"./src/mermaidAPI.js"),o=n(/*! ../../config */"./src/config.js"),s={},a="",u=function(e,t,n){i.default.parseDirective(this,e,t,n)};t.default={parseDirective:u,getConfig:function(){return o.getConfig().pie},addSection:function(e,t){void 0===s[e]&&(s[e]=t,r.logger.debug("Added new section :",e))},getSections:function(){return s},cleanupValue:function(e){return":"===e.substring(0,1)?(e=e.substring(1).trim(),Number(e.trim())):Number(e.trim())},clear:function(){s={},a=""},setTitle:function(e){a=e},getTitle:function(){return a}}},"./src/diagrams/pie/pieRenderer.js": +/*! exports provided: parseDirective, default */function(e,t,n){"use strict";n.r(t),n.d(t,"parseDirective",(function(){return l}));var i=n(/*! ../../logger */"./src/logger.js"),r=n(/*! ../../mermaidAPI */"./src/mermaidAPI.js"),o=n(/*! ../../config */"./src/config.js"),s={},a="",l=function(e,t,n){r.default.parseDirective(this,e,t,n)};t.default={parseDirective:l,getConfig:function(){return o.getConfig().pie},addSection:function(e,t){void 0===s[e]&&(s[e]=t,i.logger.debug("Added new section :",e))},getSections:function(){return s},cleanupValue:function(e){return":"===e.substring(0,1)?(e=e.substring(1).trim(),Number(e.trim())):Number(e.trim())},clear:function(){s={},a=""},setTitle:function(e){a=e},getTitle:function(){return a}}},"./src/diagrams/pie/pieRenderer.js": /*!*****************************************!*\ !*** ./src/diagrams/pie/pieRenderer.js ***! \*****************************************/ -/*! exports provided: setConf, draw, default */function(e,t,n){"use strict";n.r(t),n.d(t,"setConf",(function(){return d})),n.d(t,"draw",(function(){return h}));var r,i=n(/*! d3 */"d3"),o=n(/*! ./pieDb */"./src/diagrams/pie/pieDb.js"),s=n(/*! ./parser/pie */"./src/diagrams/pie/parser/pie.jison"),a=n.n(s),u=n(/*! ../../logger */"./src/logger.js"),l=n(/*! ../../utils */"./src/utils.js"),c={},d=function(e){Object.keys(e).forEach((function(t){c[t]=e[t]}))},h=function(e,t){try{var n=a.a.parser;n.yy=o.default,u.logger.debug("Rendering info diagram\n"+e),n.yy.clear(),n.parse(e),u.logger.debug("Parsed info diagram");var s=document.getElementById(t);void 0===(r=s.parentElement.offsetWidth)&&(r=1200),void 0!==c.useWidth&&(r=c.useWidth);var d=Object(i.select)("#"+t);Object(l.configureSvgSize)(d,450,r,c.useMaxWidth),s.setAttribute("viewBox","0 0 "+r+" 450");var h=Math.min(r,450)/2-40,f=d.append("g").attr("transform","translate("+r/2+",225)"),p=o.default.getSections(),g=0;Object.keys(p).forEach((function(e){g+=p[e]}));var m=Object(i.scaleOrdinal)().domain(p).range(i.schemeSet2),_=Object(i.pie)().value((function(e){return e.value}))(Object(i.entries)(p)),y=Object(i.arc)().innerRadius(0).outerRadius(h);f.selectAll("mySlices").data(_).enter().append("path").attr("d",y).attr("fill",(function(e){return m(e.data.key)})).attr("stroke","black").style("stroke-width","2px").style("opacity",.7),f.selectAll("mySlices").data(_).enter().append("text").text((function(e){return(e.data.value/g*100).toFixed(0)+"%"})).attr("transform",(function(e){return"translate("+y.centroid(e)+")"})).style("text-anchor","middle").attr("class","slice").style("font-size",17),f.append("text").text(n.yy.getTitle()).attr("x",0).attr("y",-200).attr("class","pieTitleText");var v=f.selectAll(".legend").data(m.domain()).enter().append("g").attr("class","legend").attr("transform",(function(e,t){return"translate(216,"+(22*t-22*m.domain().length/2)+")"}));v.append("rect").attr("width",18).attr("height",18).style("fill",m).style("stroke",m),v.append("text").attr("x",22).attr("y",14).text((function(e){return e}))}catch(e){u.logger.error("Error while rendering info diagram"),u.logger.error(e)}};t.default={setConf:d,draw:h}},"./src/diagrams/pie/styles.js": +/*! exports provided: setConf, draw, default */function(e,t,n){"use strict";n.r(t),n.d(t,"setConf",(function(){return u})),n.d(t,"draw",(function(){return h}));var i,r=n(/*! d3 */"d3"),o=n(/*! ./pieDb */"./src/diagrams/pie/pieDb.js"),s=n(/*! ./parser/pie */"./src/diagrams/pie/parser/pie.jison"),a=n.n(s),l=n(/*! ../../logger */"./src/logger.js"),c=n(/*! ../../utils */"./src/utils.js"),d={},u=function(e){Object.keys(e).forEach((function(t){d[t]=e[t]}))},h=function(e,t){try{var n=a.a.parser;n.yy=o.default,l.logger.debug("Rendering info diagram\n"+e),n.yy.clear(),n.parse(e),l.logger.debug("Parsed info diagram");var s=document.getElementById(t);void 0===(i=s.parentElement.offsetWidth)&&(i=1200),void 0!==d.useWidth&&(i=d.useWidth);var u=Object(r.select)("#"+t);Object(c.configureSvgSize)(u,450,i,d.useMaxWidth),s.setAttribute("viewBox","0 0 "+i+" 450");var h=Math.min(i,450)/2-40,f=u.append("g").attr("transform","translate("+i/2+",225)"),g=o.default.getSections(),p=0;Object.keys(g).forEach((function(e){p+=g[e]}));var m=Object(r.scaleOrdinal)().domain(g).range(r.schemeSet2),_=Object(r.pie)().value((function(e){return e.value}))(Object(r.entries)(g)),b=Object(r.arc)().innerRadius(0).outerRadius(h);f.selectAll("mySlices").data(_).enter().append("path").attr("d",b).attr("fill",(function(e){return m(e.data.key)})).attr("stroke","black").style("stroke-width","2px").style("opacity",.7),f.selectAll("mySlices").data(_).enter().append("text").text((function(e){return(e.data.value/p*100).toFixed(0)+"%"})).attr("transform",(function(e){return"translate("+b.centroid(e)+")"})).style("text-anchor","middle").attr("class","slice").style("font-size",17),f.append("text").text(n.yy.getTitle()).attr("x",0).attr("y",-200).attr("class","pieTitleText");var v=f.selectAll(".legend").data(m.domain()).enter().append("g").attr("class","legend").attr("transform",(function(e,t){return"translate(216,"+(22*t-22*m.domain().length/2)+")"}));v.append("rect").attr("width",18).attr("height",18).style("fill",m).style("stroke",m),v.append("text").attr("x",22).attr("y",14).text((function(e){return e}))}catch(e){l.logger.error("Error while rendering info diagram"),l.logger.error(e)}};t.default={setConf:u,draw:h}},"./src/diagrams/pie/styles.js": /*!************************************!*\ !*** ./src/diagrams/pie/styles.js ***! \************************************/ @@ -230,15 +230,15 @@ /*!************************************************************!*\ !*** ./src/diagrams/sequence/parser/sequenceDiagram.jison ***! \************************************************************/ -/*! no static exports found */function(e,t,n){(function(e,r){var i=function(){var e=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},t=[1,2],n=[1,3],r=[1,5],i=[1,7],o=[2,5],s=[1,15],a=[1,17],u=[1,18],l=[1,20],c=[1,21],d=[1,22],h=[1,24],f=[1,25],p=[1,26],g=[1,27],m=[1,28],_=[1,29],y=[1,32],v=[1,33],b=[1,36],w=[1,4,5,16,21,22,23,25,27,28,29,30,31,33,35,36,37,48,56],C=[1,44],S=[4,5,16,21,22,23,25,27,28,29,30,31,33,37,48,56],x=[4,5,16,21,22,23,25,27,28,29,30,31,33,36,37,48,56],L=[4,5,16,21,22,23,25,27,28,29,30,31,33,35,37,48,56],k=[46,47,48],M=[1,4,5,7,16,21,22,23,25,27,28,29,30,31,33,35,36,37,48,56],D={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,directive:6,SD:7,document:8,line:9,statement:10,openDirective:11,typeDirective:12,closeDirective:13,":":14,argDirective:15,participant:16,actor:17,AS:18,restOfLine:19,signal:20,autonumber:21,activate:22,deactivate:23,note_statement:24,title:25,text2:26,loop:27,end:28,rect:29,opt:30,alt:31,else_sections:32,par:33,par_sections:34,and:35,else:36,note:37,placement:38,over:39,actor_pair:40,spaceList:41,",":42,left_of:43,right_of:44,signaltype:45,"+":46,"-":47,ACTOR:48,SOLID_OPEN_ARROW:49,DOTTED_OPEN_ARROW:50,SOLID_ARROW:51,DOTTED_ARROW:52,SOLID_CROSS:53,DOTTED_CROSS:54,TXT:55,open_directive:56,type_directive:57,arg_directive:58,close_directive:59,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",7:"SD",14:":",16:"participant",18:"AS",19:"restOfLine",21:"autonumber",22:"activate",23:"deactivate",25:"title",27:"loop",28:"end",29:"rect",30:"opt",31:"alt",33:"par",35:"and",36:"else",37:"note",39:"over",42:",",43:"left_of",44:"right_of",46:"+",47:"-",48:"ACTOR",49:"SOLID_OPEN_ARROW",50:"DOTTED_OPEN_ARROW",51:"SOLID_ARROW",52:"DOTTED_ARROW",53:"SOLID_CROSS",54:"DOTTED_CROSS",55:"TXT",56:"open_directive",57:"type_directive",58:"arg_directive",59:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[6,4],[6,6],[10,5],[10,3],[10,2],[10,1],[10,3],[10,3],[10,2],[10,3],[10,4],[10,4],[10,4],[10,4],[10,4],[10,1],[34,1],[34,4],[32,1],[32,4],[24,4],[24,4],[41,2],[41,1],[40,3],[40,1],[38,1],[38,1],[20,5],[20,5],[20,4],[17,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[26,1],[11,1],[12,1],[15,1],[13,1]],performAction:function(e,t,n,r,i,o,s){var a=o.length-1;switch(i){case 4:return r.apply(o[a]),o[a];case 5:this.$=[];break;case 6:o[a-1].push(o[a]),this.$=o[a-1];break;case 7:case 8:this.$=o[a];break;case 9:this.$=[];break;case 12:o[a-3].description=r.parseMessage(o[a-1]),this.$=o[a-3];break;case 13:this.$=o[a-1];break;case 15:r.enableSequenceNumbers();break;case 16:this.$={type:"activeStart",signalType:r.LINETYPE.ACTIVE_START,actor:o[a-1]};break;case 17:this.$={type:"activeEnd",signalType:r.LINETYPE.ACTIVE_END,actor:o[a-1]};break;case 19:this.$=[{type:"setTitle",text:o[a-1]}];break;case 20:o[a-1].unshift({type:"loopStart",loopText:r.parseMessage(o[a-2]),signalType:r.LINETYPE.LOOP_START}),o[a-1].push({type:"loopEnd",loopText:o[a-2],signalType:r.LINETYPE.LOOP_END}),this.$=o[a-1];break;case 21:o[a-1].unshift({type:"rectStart",color:r.parseMessage(o[a-2]),signalType:r.LINETYPE.RECT_START}),o[a-1].push({type:"rectEnd",color:r.parseMessage(o[a-2]),signalType:r.LINETYPE.RECT_END}),this.$=o[a-1];break;case 22:o[a-1].unshift({type:"optStart",optText:r.parseMessage(o[a-2]),signalType:r.LINETYPE.OPT_START}),o[a-1].push({type:"optEnd",optText:r.parseMessage(o[a-2]),signalType:r.LINETYPE.OPT_END}),this.$=o[a-1];break;case 23:o[a-1].unshift({type:"altStart",altText:r.parseMessage(o[a-2]),signalType:r.LINETYPE.ALT_START}),o[a-1].push({type:"altEnd",signalType:r.LINETYPE.ALT_END}),this.$=o[a-1];break;case 24:o[a-1].unshift({type:"parStart",parText:r.parseMessage(o[a-2]),signalType:r.LINETYPE.PAR_START}),o[a-1].push({type:"parEnd",signalType:r.LINETYPE.PAR_END}),this.$=o[a-1];break;case 27:this.$=o[a-3].concat([{type:"and",parText:r.parseMessage(o[a-1]),signalType:r.LINETYPE.PAR_AND},o[a]]);break;case 29:this.$=o[a-3].concat([{type:"else",altText:r.parseMessage(o[a-1]),signalType:r.LINETYPE.ALT_ELSE},o[a]]);break;case 30:this.$=[o[a-1],{type:"addNote",placement:o[a-2],actor:o[a-1].actor,text:o[a]}];break;case 31:o[a-2]=[].concat(o[a-1],o[a-1]).slice(0,2),o[a-2][0]=o[a-2][0].actor,o[a-2][1]=o[a-2][1].actor,this.$=[o[a-1],{type:"addNote",placement:r.PLACEMENT.OVER,actor:o[a-2].slice(0,2),text:o[a]}];break;case 34:this.$=[o[a-2],o[a]];break;case 35:this.$=o[a];break;case 36:this.$=r.PLACEMENT.LEFTOF;break;case 37:this.$=r.PLACEMENT.RIGHTOF;break;case 38:this.$=[o[a-4],o[a-1],{type:"addMessage",from:o[a-4].actor,to:o[a-1].actor,signalType:o[a-3],msg:o[a]},{type:"activeStart",signalType:r.LINETYPE.ACTIVE_START,actor:o[a-1]}];break;case 39:this.$=[o[a-4],o[a-1],{type:"addMessage",from:o[a-4].actor,to:o[a-1].actor,signalType:o[a-3],msg:o[a]},{type:"activeEnd",signalType:r.LINETYPE.ACTIVE_END,actor:o[a-4]}];break;case 40:this.$=[o[a-3],o[a-1],{type:"addMessage",from:o[a-3].actor,to:o[a-1].actor,signalType:o[a-2],msg:o[a]}];break;case 41:this.$={type:"addActor",actor:o[a]};break;case 42:this.$=r.LINETYPE.SOLID_OPEN;break;case 43:this.$=r.LINETYPE.DOTTED_OPEN;break;case 44:this.$=r.LINETYPE.SOLID;break;case 45:this.$=r.LINETYPE.DOTTED;break;case 46:this.$=r.LINETYPE.SOLID_CROSS;break;case 47:this.$=r.LINETYPE.DOTTED_CROSS;break;case 48:this.$=r.parseMessage(o[a].trim().substring(1));break;case 49:r.parseDirective("%%{","open_directive");break;case 50:r.parseDirective(o[a],"type_directive");break;case 51:o[a]=o[a].trim().replace(/'/g,'"'),r.parseDirective(o[a],"arg_directive");break;case 52:r.parseDirective("}%%","close_directive","sequence")}},table:[{3:1,4:t,5:n,6:4,7:r,11:6,56:i},{1:[3]},{3:8,4:t,5:n,6:4,7:r,11:6,56:i},{3:9,4:t,5:n,6:4,7:r,11:6,56:i},{3:10,4:t,5:n,6:4,7:r,11:6,56:i},e([1,4,5,16,21,22,23,25,27,29,30,31,33,37,48,56],o,{8:11}),{12:12,57:[1,13]},{57:[2,49]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:s,5:a,6:30,9:14,10:16,11:6,16:u,17:31,20:19,21:l,22:c,23:d,24:23,25:h,27:f,29:p,30:g,31:m,33:_,37:y,48:v,56:i},{13:34,14:[1,35],59:b},e([14,59],[2,50]),e(w,[2,6]),{6:30,10:37,11:6,16:u,17:31,20:19,21:l,22:c,23:d,24:23,25:h,27:f,29:p,30:g,31:m,33:_,37:y,48:v,56:i},e(w,[2,8]),e(w,[2,9]),{17:38,48:v},{5:[1,39]},e(w,[2,15]),{17:40,48:v},{17:41,48:v},{5:[1,42]},{26:43,55:C},{19:[1,45]},{19:[1,46]},{19:[1,47]},{19:[1,48]},{19:[1,49]},e(w,[2,25]),{45:50,49:[1,51],50:[1,52],51:[1,53],52:[1,54],53:[1,55],54:[1,56]},{38:57,39:[1,58],43:[1,59],44:[1,60]},e([5,18,42,49,50,51,52,53,54,55],[2,41]),{5:[1,61]},{15:62,58:[1,63]},{5:[2,52]},e(w,[2,7]),{5:[1,65],18:[1,64]},e(w,[2,14]),{5:[1,66]},{5:[1,67]},e(w,[2,18]),{5:[1,68]},{5:[2,48]},e(S,o,{8:69}),e(S,o,{8:70}),e(S,o,{8:71}),e(x,o,{32:72,8:73}),e(L,o,{34:74,8:75}),{17:78,46:[1,76],47:[1,77],48:v},e(k,[2,42]),e(k,[2,43]),e(k,[2,44]),e(k,[2,45]),e(k,[2,46]),e(k,[2,47]),{17:79,48:v},{17:81,40:80,48:v},{48:[2,36]},{48:[2,37]},e(M,[2,10]),{13:82,59:b},{59:[2,51]},{19:[1,83]},e(w,[2,13]),e(w,[2,16]),e(w,[2,17]),e(w,[2,19]),{4:s,5:a,6:30,9:14,10:16,11:6,16:u,17:31,20:19,21:l,22:c,23:d,24:23,25:h,27:f,28:[1,84],29:p,30:g,31:m,33:_,37:y,48:v,56:i},{4:s,5:a,6:30,9:14,10:16,11:6,16:u,17:31,20:19,21:l,22:c,23:d,24:23,25:h,27:f,28:[1,85],29:p,30:g,31:m,33:_,37:y,48:v,56:i},{4:s,5:a,6:30,9:14,10:16,11:6,16:u,17:31,20:19,21:l,22:c,23:d,24:23,25:h,27:f,28:[1,86],29:p,30:g,31:m,33:_,37:y,48:v,56:i},{28:[1,87]},{4:s,5:a,6:30,9:14,10:16,11:6,16:u,17:31,20:19,21:l,22:c,23:d,24:23,25:h,27:f,28:[2,28],29:p,30:g,31:m,33:_,36:[1,88],37:y,48:v,56:i},{28:[1,89]},{4:s,5:a,6:30,9:14,10:16,11:6,16:u,17:31,20:19,21:l,22:c,23:d,24:23,25:h,27:f,28:[2,26],29:p,30:g,31:m,33:_,35:[1,90],37:y,48:v,56:i},{17:91,48:v},{17:92,48:v},{26:93,55:C},{26:94,55:C},{26:95,55:C},{42:[1,96],55:[2,35]},{5:[1,97]},{5:[1,98]},e(w,[2,20]),e(w,[2,21]),e(w,[2,22]),e(w,[2,23]),{19:[1,99]},e(w,[2,24]),{19:[1,100]},{26:101,55:C},{26:102,55:C},{5:[2,40]},{5:[2,30]},{5:[2,31]},{17:103,48:v},e(M,[2,11]),e(w,[2,12]),e(x,o,{8:73,32:104}),e(L,o,{8:75,34:105}),{5:[2,38]},{5:[2,39]},{55:[2,34]},{28:[2,29]},{28:[2,27]}],defaultActions:{7:[2,49],8:[2,1],9:[2,2],10:[2,3],36:[2,52],44:[2,48],59:[2,36],60:[2,37],63:[2,51],93:[2,40],94:[2,30],95:[2,31],101:[2,38],102:[2,39],103:[2,34],104:[2,29],105:[2,27]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],r=[],i=[null],o=[],s=this.table,a="",u=0,l=0,c=0,d=2,h=1,f=o.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var m in this.yy)Object.prototype.hasOwnProperty.call(this.yy,m)&&(g.yy[m]=this.yy[m]);p.setInput(e,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var _=p.yylloc;o.push(_);var y=p.options&&p.options.ranges;function v(){var e;return"number"!=typeof(e=r.pop()||p.lex()||h)&&(e instanceof Array&&(e=(r=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,w,C,S,x,L,k,M,D,E={};;){if(C=n[n.length-1],this.defaultActions[C]?S=this.defaultActions[C]:(null==b&&(b=v()),S=s[C]&&s[C][b]),void 0===S||!S.length||!S[0]){var T="";for(L in D=[],s[C])this.terminals_[L]&&L>d&&D.push("'"+this.terminals_[L]+"'");T=p.showPosition?"Parse error on line "+(u+1)+":\n"+p.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(u+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(T,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:_,expected:D})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+b);switch(S[0]){case 1:n.push(b),i.push(p.yytext),o.push(p.yylloc),n.push(S[1]),b=null,w?(b=w,w=null):(l=p.yyleng,a=p.yytext,u=p.yylineno,_=p.yylloc,c>0&&c--);break;case 2:if(k=this.productions_[S[1]][1],E.$=i[i.length-k],E._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(E._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),void 0!==(x=this.performAction.apply(E,[a,l,u,g.yy,S[1],i,o].concat(f))))return x;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),o=o.slice(0,-1*k)),n.push(this.productions_[S[1]][0]),i.push(E.$),o.push(E._$),M=s[n[n.length-2]][n[n.length-1]],n.push(M);break;case 3:return!0}}return!0}},E={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;o<i.length;o++)if((n=this._input.match(this.rules[i[o]]))&&(!t||n[0].length>t[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return this.begin("open_directive"),56;case 1:return this.begin("type_directive"),57;case 2:return this.popState(),this.begin("arg_directive"),14;case 3:return this.popState(),this.popState(),59;case 4:return 58;case 5:return 5;case 6:case 7:case 8:case 9:case 10:break;case 11:return this.begin("ID"),16;case 12:return t.yytext=t.yytext.trim(),this.begin("ALIAS"),48;case 13:return this.popState(),this.popState(),this.begin("LINE"),18;case 14:return this.popState(),this.popState(),5;case 15:return this.begin("LINE"),27;case 16:return this.begin("LINE"),29;case 17:return this.begin("LINE"),30;case 18:return this.begin("LINE"),31;case 19:return this.begin("LINE"),36;case 20:return this.begin("LINE"),33;case 21:return this.begin("LINE"),35;case 22:return this.popState(),19;case 23:return 28;case 24:return 43;case 25:return 44;case 26:return 39;case 27:return 37;case 28:return this.begin("ID"),22;case 29:return this.begin("ID"),23;case 30:return 25;case 31:return 7;case 32:return 21;case 33:return 42;case 34:return 5;case 35:return t.yytext=t.yytext.trim(),48;case 36:return 51;case 37:return 52;case 38:return 49;case 39:return 50;case 40:return 53;case 41:return 54;case 42:return 55;case 43:return 46;case 44:return 47;case 45:return 5;case 46:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:participant\b)/i,/^(?:[^\->:\n,;]+?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:and\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\b)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\+\->:\n,;]+((?!(-x|--x))[\-]*[^\+\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?::(?:(?:no)?wrap)?[^#\n;]+)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],conditions:{open_directive:{rules:[1,8],inclusive:!1},type_directive:{rules:[2,3,8],inclusive:!1},arg_directive:{rules:[3,4,8],inclusive:!1},ID:{rules:[7,8,12],inclusive:!1},ALIAS:{rules:[7,8,13,14],inclusive:!1},LINE:{rules:[7,8,22],inclusive:!1},INITIAL:{rules:[0,5,6,8,9,10,11,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0}}};function T(){this.yy={}}return D.lexer=E,T.prototype=D,D.Parser=T,new T}();t.parser=i,t.Parser=i.Parser,t.parse=function(){return i.parse.apply(i,arguments)},t.main=function(r){r[1]||(console.log("Usage: "+r[0]+" FILE"),e.exit(1));var i=n(/*! fs */"./node_modules/node-libs-browser/mock/empty.js").readFileSync(n(/*! path */"./node_modules/path-browserify/index.js").normalize(r[1]),"utf8");return t.parser.parse(i)},n.c[n.s]===r&&t.main(e.argv.slice(1))}).call(this,n(/*! ./../../../../node_modules/process/browser.js */"./node_modules/process/browser.js"),n(/*! ./../../../../node_modules/webpack/buildin/module.js */"./node_modules/webpack/buildin/module.js")(e))},"./src/diagrams/sequence/sequenceDb.js": +/*! no static exports found */function(e,t,n){(function(e,i){var r=function(){var e=function(e,t,n,i){for(n=n||{},i=e.length;i--;n[e[i]]=t);return n},t=[1,2],n=[1,3],i=[1,5],r=[1,7],o=[2,5],s=[1,15],a=[1,17],l=[1,18],c=[1,20],d=[1,21],u=[1,22],h=[1,24],f=[1,25],g=[1,26],p=[1,27],m=[1,28],_=[1,29],b=[1,32],v=[1,33],y=[1,36],w=[1,4,5,16,21,22,23,25,27,28,29,30,31,33,35,36,37,48,56],C=[1,44],S=[4,5,16,21,22,23,25,27,28,29,30,31,33,37,48,56],k=[4,5,16,21,22,23,25,27,28,29,30,31,33,36,37,48,56],x=[4,5,16,21,22,23,25,27,28,29,30,31,33,35,37,48,56],L=[46,47,48],M=[1,4,5,7,16,21,22,23,25,27,28,29,30,31,33,35,36,37,48,56],D={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,directive:6,SD:7,document:8,line:9,statement:10,openDirective:11,typeDirective:12,closeDirective:13,":":14,argDirective:15,participant:16,actor:17,AS:18,restOfLine:19,signal:20,autonumber:21,activate:22,deactivate:23,note_statement:24,title:25,text2:26,loop:27,end:28,rect:29,opt:30,alt:31,else_sections:32,par:33,par_sections:34,and:35,else:36,note:37,placement:38,over:39,actor_pair:40,spaceList:41,",":42,left_of:43,right_of:44,signaltype:45,"+":46,"-":47,ACTOR:48,SOLID_OPEN_ARROW:49,DOTTED_OPEN_ARROW:50,SOLID_ARROW:51,DOTTED_ARROW:52,SOLID_CROSS:53,DOTTED_CROSS:54,TXT:55,open_directive:56,type_directive:57,arg_directive:58,close_directive:59,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",7:"SD",14:":",16:"participant",18:"AS",19:"restOfLine",21:"autonumber",22:"activate",23:"deactivate",25:"title",27:"loop",28:"end",29:"rect",30:"opt",31:"alt",33:"par",35:"and",36:"else",37:"note",39:"over",42:",",43:"left_of",44:"right_of",46:"+",47:"-",48:"ACTOR",49:"SOLID_OPEN_ARROW",50:"DOTTED_OPEN_ARROW",51:"SOLID_ARROW",52:"DOTTED_ARROW",53:"SOLID_CROSS",54:"DOTTED_CROSS",55:"TXT",56:"open_directive",57:"type_directive",58:"arg_directive",59:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[6,4],[6,6],[10,5],[10,3],[10,2],[10,1],[10,3],[10,3],[10,2],[10,3],[10,4],[10,4],[10,4],[10,4],[10,4],[10,1],[34,1],[34,4],[32,1],[32,4],[24,4],[24,4],[41,2],[41,1],[40,3],[40,1],[38,1],[38,1],[20,5],[20,5],[20,4],[17,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[26,1],[11,1],[12,1],[15,1],[13,1]],performAction:function(e,t,n,i,r,o,s){var a=o.length-1;switch(r){case 4:return i.apply(o[a]),o[a];case 5:this.$=[];break;case 6:o[a-1].push(o[a]),this.$=o[a-1];break;case 7:case 8:this.$=o[a];break;case 9:this.$=[];break;case 12:o[a-3].description=i.parseMessage(o[a-1]),this.$=o[a-3];break;case 13:this.$=o[a-1];break;case 15:i.enableSequenceNumbers();break;case 16:this.$={type:"activeStart",signalType:i.LINETYPE.ACTIVE_START,actor:o[a-1]};break;case 17:this.$={type:"activeEnd",signalType:i.LINETYPE.ACTIVE_END,actor:o[a-1]};break;case 19:this.$=[{type:"setTitle",text:o[a-1]}];break;case 20:o[a-1].unshift({type:"loopStart",loopText:i.parseMessage(o[a-2]),signalType:i.LINETYPE.LOOP_START}),o[a-1].push({type:"loopEnd",loopText:o[a-2],signalType:i.LINETYPE.LOOP_END}),this.$=o[a-1];break;case 21:o[a-1].unshift({type:"rectStart",color:i.parseMessage(o[a-2]),signalType:i.LINETYPE.RECT_START}),o[a-1].push({type:"rectEnd",color:i.parseMessage(o[a-2]),signalType:i.LINETYPE.RECT_END}),this.$=o[a-1];break;case 22:o[a-1].unshift({type:"optStart",optText:i.parseMessage(o[a-2]),signalType:i.LINETYPE.OPT_START}),o[a-1].push({type:"optEnd",optText:i.parseMessage(o[a-2]),signalType:i.LINETYPE.OPT_END}),this.$=o[a-1];break;case 23:o[a-1].unshift({type:"altStart",altText:i.parseMessage(o[a-2]),signalType:i.LINETYPE.ALT_START}),o[a-1].push({type:"altEnd",signalType:i.LINETYPE.ALT_END}),this.$=o[a-1];break;case 24:o[a-1].unshift({type:"parStart",parText:i.parseMessage(o[a-2]),signalType:i.LINETYPE.PAR_START}),o[a-1].push({type:"parEnd",signalType:i.LINETYPE.PAR_END}),this.$=o[a-1];break;case 27:this.$=o[a-3].concat([{type:"and",parText:i.parseMessage(o[a-1]),signalType:i.LINETYPE.PAR_AND},o[a]]);break;case 29:this.$=o[a-3].concat([{type:"else",altText:i.parseMessage(o[a-1]),signalType:i.LINETYPE.ALT_ELSE},o[a]]);break;case 30:this.$=[o[a-1],{type:"addNote",placement:o[a-2],actor:o[a-1].actor,text:o[a]}];break;case 31:o[a-2]=[].concat(o[a-1],o[a-1]).slice(0,2),o[a-2][0]=o[a-2][0].actor,o[a-2][1]=o[a-2][1].actor,this.$=[o[a-1],{type:"addNote",placement:i.PLACEMENT.OVER,actor:o[a-2].slice(0,2),text:o[a]}];break;case 34:this.$=[o[a-2],o[a]];break;case 35:this.$=o[a];break;case 36:this.$=i.PLACEMENT.LEFTOF;break;case 37:this.$=i.PLACEMENT.RIGHTOF;break;case 38:this.$=[o[a-4],o[a-1],{type:"addMessage",from:o[a-4].actor,to:o[a-1].actor,signalType:o[a-3],msg:o[a]},{type:"activeStart",signalType:i.LINETYPE.ACTIVE_START,actor:o[a-1]}];break;case 39:this.$=[o[a-4],o[a-1],{type:"addMessage",from:o[a-4].actor,to:o[a-1].actor,signalType:o[a-3],msg:o[a]},{type:"activeEnd",signalType:i.LINETYPE.ACTIVE_END,actor:o[a-4]}];break;case 40:this.$=[o[a-3],o[a-1],{type:"addMessage",from:o[a-3].actor,to:o[a-1].actor,signalType:o[a-2],msg:o[a]}];break;case 41:this.$={type:"addActor",actor:o[a]};break;case 42:this.$=i.LINETYPE.SOLID_OPEN;break;case 43:this.$=i.LINETYPE.DOTTED_OPEN;break;case 44:this.$=i.LINETYPE.SOLID;break;case 45:this.$=i.LINETYPE.DOTTED;break;case 46:this.$=i.LINETYPE.SOLID_CROSS;break;case 47:this.$=i.LINETYPE.DOTTED_CROSS;break;case 48:this.$=i.parseMessage(o[a].trim().substring(1));break;case 49:i.parseDirective("%%{","open_directive");break;case 50:i.parseDirective(o[a],"type_directive");break;case 51:o[a]=o[a].trim().replace(/'/g,'"'),i.parseDirective(o[a],"arg_directive");break;case 52:i.parseDirective("}%%","close_directive","sequence")}},table:[{3:1,4:t,5:n,6:4,7:i,11:6,56:r},{1:[3]},{3:8,4:t,5:n,6:4,7:i,11:6,56:r},{3:9,4:t,5:n,6:4,7:i,11:6,56:r},{3:10,4:t,5:n,6:4,7:i,11:6,56:r},e([1,4,5,16,21,22,23,25,27,29,30,31,33,37,48,56],o,{8:11}),{12:12,57:[1,13]},{57:[2,49]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:s,5:a,6:30,9:14,10:16,11:6,16:l,17:31,20:19,21:c,22:d,23:u,24:23,25:h,27:f,29:g,30:p,31:m,33:_,37:b,48:v,56:r},{13:34,14:[1,35],59:y},e([14,59],[2,50]),e(w,[2,6]),{6:30,10:37,11:6,16:l,17:31,20:19,21:c,22:d,23:u,24:23,25:h,27:f,29:g,30:p,31:m,33:_,37:b,48:v,56:r},e(w,[2,8]),e(w,[2,9]),{17:38,48:v},{5:[1,39]},e(w,[2,15]),{17:40,48:v},{17:41,48:v},{5:[1,42]},{26:43,55:C},{19:[1,45]},{19:[1,46]},{19:[1,47]},{19:[1,48]},{19:[1,49]},e(w,[2,25]),{45:50,49:[1,51],50:[1,52],51:[1,53],52:[1,54],53:[1,55],54:[1,56]},{38:57,39:[1,58],43:[1,59],44:[1,60]},e([5,18,42,49,50,51,52,53,54,55],[2,41]),{5:[1,61]},{15:62,58:[1,63]},{5:[2,52]},e(w,[2,7]),{5:[1,65],18:[1,64]},e(w,[2,14]),{5:[1,66]},{5:[1,67]},e(w,[2,18]),{5:[1,68]},{5:[2,48]},e(S,o,{8:69}),e(S,o,{8:70}),e(S,o,{8:71}),e(k,o,{32:72,8:73}),e(x,o,{34:74,8:75}),{17:78,46:[1,76],47:[1,77],48:v},e(L,[2,42]),e(L,[2,43]),e(L,[2,44]),e(L,[2,45]),e(L,[2,46]),e(L,[2,47]),{17:79,48:v},{17:81,40:80,48:v},{48:[2,36]},{48:[2,37]},e(M,[2,10]),{13:82,59:y},{59:[2,51]},{19:[1,83]},e(w,[2,13]),e(w,[2,16]),e(w,[2,17]),e(w,[2,19]),{4:s,5:a,6:30,9:14,10:16,11:6,16:l,17:31,20:19,21:c,22:d,23:u,24:23,25:h,27:f,28:[1,84],29:g,30:p,31:m,33:_,37:b,48:v,56:r},{4:s,5:a,6:30,9:14,10:16,11:6,16:l,17:31,20:19,21:c,22:d,23:u,24:23,25:h,27:f,28:[1,85],29:g,30:p,31:m,33:_,37:b,48:v,56:r},{4:s,5:a,6:30,9:14,10:16,11:6,16:l,17:31,20:19,21:c,22:d,23:u,24:23,25:h,27:f,28:[1,86],29:g,30:p,31:m,33:_,37:b,48:v,56:r},{28:[1,87]},{4:s,5:a,6:30,9:14,10:16,11:6,16:l,17:31,20:19,21:c,22:d,23:u,24:23,25:h,27:f,28:[2,28],29:g,30:p,31:m,33:_,36:[1,88],37:b,48:v,56:r},{28:[1,89]},{4:s,5:a,6:30,9:14,10:16,11:6,16:l,17:31,20:19,21:c,22:d,23:u,24:23,25:h,27:f,28:[2,26],29:g,30:p,31:m,33:_,35:[1,90],37:b,48:v,56:r},{17:91,48:v},{17:92,48:v},{26:93,55:C},{26:94,55:C},{26:95,55:C},{42:[1,96],55:[2,35]},{5:[1,97]},{5:[1,98]},e(w,[2,20]),e(w,[2,21]),e(w,[2,22]),e(w,[2,23]),{19:[1,99]},e(w,[2,24]),{19:[1,100]},{26:101,55:C},{26:102,55:C},{5:[2,40]},{5:[2,30]},{5:[2,31]},{17:103,48:v},e(M,[2,11]),e(w,[2,12]),e(k,o,{8:73,32:104}),e(x,o,{8:75,34:105}),{5:[2,38]},{5:[2,39]},{55:[2,34]},{28:[2,29]},{28:[2,27]}],defaultActions:{7:[2,49],8:[2,1],9:[2,2],10:[2,3],36:[2,52],44:[2,48],59:[2,36],60:[2,37],63:[2,51],93:[2,40],94:[2,30],95:[2,31],101:[2,38],102:[2,39],103:[2,34],104:[2,29],105:[2,27]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],i=[],r=[null],o=[],s=this.table,a="",l=0,c=0,d=0,u=2,h=1,f=o.slice.call(arguments,1),g=Object.create(this.lexer),p={yy:{}};for(var m in this.yy)Object.prototype.hasOwnProperty.call(this.yy,m)&&(p.yy[m]=this.yy[m]);g.setInput(e,p.yy),p.yy.lexer=g,p.yy.parser=this,void 0===g.yylloc&&(g.yylloc={});var _=g.yylloc;o.push(_);var b=g.options&&g.options.ranges;function v(){var e;return"number"!=typeof(e=i.pop()||g.lex()||h)&&(e instanceof Array&&(e=(i=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var y,w,C,S,k,x,L,M,D,E={};;){if(C=n[n.length-1],this.defaultActions[C]?S=this.defaultActions[C]:(null==y&&(y=v()),S=s[C]&&s[C][y]),void 0===S||!S.length||!S[0]){var T="";for(x in D=[],s[C])this.terminals_[x]&&x>u&&D.push("'"+this.terminals_[x]+"'");T=g.showPosition?"Parse error on line "+(l+1)+":\n"+g.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[y]||y)+"'":"Parse error on line "+(l+1)+": Unexpected "+(y==h?"end of input":"'"+(this.terminals_[y]||y)+"'"),this.parseError(T,{text:g.match,token:this.terminals_[y]||y,line:g.yylineno,loc:_,expected:D})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+y);switch(S[0]){case 1:n.push(y),r.push(g.yytext),o.push(g.yylloc),n.push(S[1]),y=null,w?(y=w,w=null):(c=g.yyleng,a=g.yytext,l=g.yylineno,_=g.yylloc,d>0&&d--);break;case 2:if(L=this.productions_[S[1]][1],E.$=r[r.length-L],E._$={first_line:o[o.length-(L||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(L||1)].first_column,last_column:o[o.length-1].last_column},b&&(E._$.range=[o[o.length-(L||1)].range[0],o[o.length-1].range[1]]),void 0!==(k=this.performAction.apply(E,[a,c,l,p.yy,S[1],r,o].concat(f))))return k;L&&(n=n.slice(0,-1*L*2),r=r.slice(0,-1*L),o=o.slice(0,-1*L)),n.push(this.productions_[S[1]][0]),r.push(E.$),o.push(E._$),M=s[n[n.length-2]][n[n.length-1]],n.push(M);break;case 3:return!0}}return!0}},E={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in r)this[o]=r[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),o=0;o<r.length;o++)if((n=this._input.match(this.rules[r[o]]))&&(!t||n[0].length>t[0].length)){if(t=n,i=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,r[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,r[i]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,i){switch(n){case 0:return this.begin("open_directive"),56;case 1:return this.begin("type_directive"),57;case 2:return this.popState(),this.begin("arg_directive"),14;case 3:return this.popState(),this.popState(),59;case 4:return 58;case 5:return 5;case 6:case 7:case 8:case 9:case 10:break;case 11:return this.begin("ID"),16;case 12:return t.yytext=t.yytext.trim(),this.begin("ALIAS"),48;case 13:return this.popState(),this.popState(),this.begin("LINE"),18;case 14:return this.popState(),this.popState(),5;case 15:return this.begin("LINE"),27;case 16:return this.begin("LINE"),29;case 17:return this.begin("LINE"),30;case 18:return this.begin("LINE"),31;case 19:return this.begin("LINE"),36;case 20:return this.begin("LINE"),33;case 21:return this.begin("LINE"),35;case 22:return this.popState(),19;case 23:return 28;case 24:return 43;case 25:return 44;case 26:return 39;case 27:return 37;case 28:return this.begin("ID"),22;case 29:return this.begin("ID"),23;case 30:return 25;case 31:return 7;case 32:return 21;case 33:return 42;case 34:return 5;case 35:return t.yytext=t.yytext.trim(),48;case 36:return 51;case 37:return 52;case 38:return 49;case 39:return 50;case 40:return 53;case 41:return 54;case 42:return 55;case 43:return 46;case 44:return 47;case 45:return 5;case 46:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:participant\b)/i,/^(?:[^\->:\n,;]+?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:and\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\b)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\+\->:\n,;]+((?!(-x|--x))[\-]*[^\+\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?::(?:(?:no)?wrap)?[^#\n;]+)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],conditions:{open_directive:{rules:[1,8],inclusive:!1},type_directive:{rules:[2,3,8],inclusive:!1},arg_directive:{rules:[3,4,8],inclusive:!1},ID:{rules:[7,8,12],inclusive:!1},ALIAS:{rules:[7,8,13,14],inclusive:!1},LINE:{rules:[7,8,22],inclusive:!1},INITIAL:{rules:[0,5,6,8,9,10,11,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0}}};function T(){this.yy={}}return D.lexer=E,T.prototype=D,D.Parser=T,new T}();t.parser=r,t.Parser=r.Parser,t.parse=function(){return r.parse.apply(r,arguments)},t.main=function(i){i[1]||(console.log("Usage: "+i[0]+" FILE"),e.exit(1));var r=n(/*! fs */"./node_modules/node-libs-browser/mock/empty.js").readFileSync(n(/*! path */"./node_modules/path-browserify/index.js").normalize(i[1]),"utf8");return t.parser.parse(r)},n.c[n.s]===i&&t.main(e.argv.slice(1))}).call(this,n(/*! ./../../../../node_modules/process/browser.js */"./node_modules/process/browser.js"),n(/*! ./../../../../node_modules/webpack/buildin/module.js */"./node_modules/webpack/buildin/module.js")(e))},"./src/diagrams/sequence/sequenceDb.js": /*!*********************************************!*\ !*** ./src/diagrams/sequence/sequenceDb.js ***! \*********************************************/ -/*! exports provided: parseDirective, addActor, addMessage, addSignal, getMessages, getActors, getActor, getActorKeys, getTitle, getTitleWrapped, enableSequenceNumbers, showSequenceNumbers, setWrap, autoWrap, clear, parseMessage, LINETYPE, ARROWTYPE, PLACEMENT, addNote, setTitle, apply, default */function(e,t,n){"use strict";n.r(t),n.d(t,"parseDirective",(function(){return g})),n.d(t,"addActor",(function(){return m})),n.d(t,"addMessage",(function(){return y})),n.d(t,"addSignal",(function(){return v})),n.d(t,"getMessages",(function(){return b})),n.d(t,"getActors",(function(){return w})),n.d(t,"getActor",(function(){return C})),n.d(t,"getActorKeys",(function(){return S})),n.d(t,"getTitle",(function(){return x})),n.d(t,"getTitleWrapped",(function(){return L})),n.d(t,"enableSequenceNumbers",(function(){return k})),n.d(t,"showSequenceNumbers",(function(){return M})),n.d(t,"setWrap",(function(){return D})),n.d(t,"autoWrap",(function(){return E})),n.d(t,"clear",(function(){return T})),n.d(t,"parseMessage",(function(){return N})),n.d(t,"LINETYPE",(function(){return O})),n.d(t,"ARROWTYPE",(function(){return A})),n.d(t,"PLACEMENT",(function(){return I})),n.d(t,"addNote",(function(){return P})),n.d(t,"setTitle",(function(){return R})),n.d(t,"apply",(function(){return F}));var r=n(/*! ../../mermaidAPI */"./src/mermaidAPI.js"),i=n(/*! ../../config */"./src/config.js"),o=n(/*! ../common/common */"./src/diagrams/common/common.js"),s=n(/*! ../../logger */"./src/logger.js"),a=void 0,u={},l=[],c=[],d="",h=!1,f=!1,p=!1,g=function(e,t,n){r.default.parseDirective(this,e,t,n)},m=function(e,t,n){var r=u[e];r&&t===r.name&&null==n||(null!=n&&null!=n.text||(n={text:t,wrap:null}),u[e]={name:t,description:n.text,wrap:void 0===n.wrap&&E()||!!n.wrap,prevActor:a},a&&u[a]&&(u[a].nextActor=e),a=e)},_=function(e){var t,n=0;for(t=0;t<l.length;t++)l[t].type===O.ACTIVE_START&&l[t].from.actor===e&&n++,l[t].type===O.ACTIVE_END&&l[t].from.actor===e&&n--;return n},y=function(e,t,n,r){l.push({from:e,to:t,message:n.text,wrap:void 0===n.wrap&&E()||!!n.wrap,answer:r})},v=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{text:void 0,wrap:void 0},r=arguments.length>3?arguments[3]:void 0;if(r===O.ACTIVE_END){var i=_(e.actor);if(i<1){var o=new Error("Trying to inactivate an inactive participant ("+e.actor+")");throw o.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},o}}return l.push({from:e,to:t,message:n.text,wrap:void 0===n.wrap&&E()||!!n.wrap,type:r}),!0},b=function(){return l},w=function(){return u},C=function(e){return u[e]},S=function(){return Object.keys(u)},x=function(){return d},L=function(){return h},k=function(){f=!0},M=function(){return f},D=function(e){p=e},E=function(){return p},T=function(){u={},l=[]},N=function(e){var t=e.trim(),n={text:t.replace(/^[:]?(?:no)?wrap:/,"").trim(),wrap:null===t.match(/^[:]?(?:no)?wrap:/)?o.default.hasBreaks(t)||void 0:null!==t.match(/^[:]?wrap:/)||null===t.match(/^[:]?nowrap:/)&&void 0};return s.logger.debug("parseMessage:",n),n},O={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23},A={FILLED:0,OPEN:1},I={LEFTOF:0,RIGHTOF:1,OVER:2},P=function(e,t,n){var r={actor:e,placement:t,message:n.text,wrap:void 0===n.wrap&&E()||!!n.wrap},i=[].concat(e,e);c.push(r),l.push({from:i[0],to:i[1],message:n.text,wrap:void 0===n.wrap&&E()||!!n.wrap,type:O.NOTE,placement:t})},R=function(e){d=e.text,h=void 0===e.wrap&&E()||!!e.wrap},F=function e(t){if(t instanceof Array)t.forEach((function(t){e(t)}));else switch(t.type){case"addActor":m(t.actor,t.actor,t.description);break;case"activeStart":case"activeEnd":v(t.actor,void 0,void 0,t.signalType);break;case"addNote":P(t.actor,t.placement,t.text);break;case"addMessage":v(t.from,t.to,t.msg,t.signalType);break;case"loopStart":v(void 0,void 0,t.loopText,t.signalType);break;case"loopEnd":v(void 0,void 0,void 0,t.signalType);break;case"rectStart":v(void 0,void 0,t.color,t.signalType);break;case"rectEnd":v(void 0,void 0,void 0,t.signalType);break;case"optStart":v(void 0,void 0,t.optText,t.signalType);break;case"optEnd":v(void 0,void 0,void 0,t.signalType);break;case"altStart":case"else":v(void 0,void 0,t.altText,t.signalType);break;case"altEnd":v(void 0,void 0,void 0,t.signalType);break;case"setTitle":R(t.text);break;case"parStart":case"and":v(void 0,void 0,t.parText,t.signalType);break;case"parEnd":v(void 0,void 0,void 0,t.signalType)}};t.default={addActor:m,addMessage:y,addSignal:v,autoWrap:E,setWrap:D,enableSequenceNumbers:k,showSequenceNumbers:M,getMessages:b,getActors:w,getActor:C,getActorKeys:S,getTitle:x,parseDirective:g,getConfig:function(){return i.getConfig().sequence},getTitleWrapped:L,clear:T,parseMessage:N,LINETYPE:O,ARROWTYPE:A,PLACEMENT:I,addNote:P,setTitle:R,apply:F}},"./src/diagrams/sequence/sequenceRenderer.js": +/*! exports provided: parseDirective, addActor, addMessage, addSignal, getMessages, getActors, getActor, getActorKeys, getTitle, getTitleWrapped, enableSequenceNumbers, showSequenceNumbers, setWrap, autoWrap, clear, parseMessage, LINETYPE, ARROWTYPE, PLACEMENT, addNote, setTitle, apply, default */function(e,t,n){"use strict";n.r(t),n.d(t,"parseDirective",(function(){return p})),n.d(t,"addActor",(function(){return m})),n.d(t,"addMessage",(function(){return b})),n.d(t,"addSignal",(function(){return v})),n.d(t,"getMessages",(function(){return y})),n.d(t,"getActors",(function(){return w})),n.d(t,"getActor",(function(){return C})),n.d(t,"getActorKeys",(function(){return S})),n.d(t,"getTitle",(function(){return k})),n.d(t,"getTitleWrapped",(function(){return x})),n.d(t,"enableSequenceNumbers",(function(){return L})),n.d(t,"showSequenceNumbers",(function(){return M})),n.d(t,"setWrap",(function(){return D})),n.d(t,"autoWrap",(function(){return E})),n.d(t,"clear",(function(){return T})),n.d(t,"parseMessage",(function(){return O})),n.d(t,"LINETYPE",(function(){return N})),n.d(t,"ARROWTYPE",(function(){return I})),n.d(t,"PLACEMENT",(function(){return A})),n.d(t,"addNote",(function(){return R})),n.d(t,"setTitle",(function(){return P})),n.d(t,"apply",(function(){return j}));var i=n(/*! ../../mermaidAPI */"./src/mermaidAPI.js"),r=n(/*! ../../config */"./src/config.js"),o=n(/*! ../common/common */"./src/diagrams/common/common.js"),s=n(/*! ../../logger */"./src/logger.js"),a=void 0,l={},c=[],d=[],u="",h=!1,f=!1,g=!1,p=function(e,t,n){i.default.parseDirective(this,e,t,n)},m=function(e,t,n){var i=l[e];i&&t===i.name&&null==n||(null!=n&&null!=n.text||(n={text:t,wrap:null}),l[e]={name:t,description:n.text,wrap:void 0===n.wrap&&E()||!!n.wrap,prevActor:a},a&&l[a]&&(l[a].nextActor=e),a=e)},_=function(e){var t,n=0;for(t=0;t<c.length;t++)c[t].type===N.ACTIVE_START&&c[t].from.actor===e&&n++,c[t].type===N.ACTIVE_END&&c[t].from.actor===e&&n--;return n},b=function(e,t,n,i){c.push({from:e,to:t,message:n.text,wrap:void 0===n.wrap&&E()||!!n.wrap,answer:i})},v=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{text:void 0,wrap:void 0},i=arguments.length>3?arguments[3]:void 0;if(i===N.ACTIVE_END){var r=_(e.actor);if(r<1){var o=new Error("Trying to inactivate an inactive participant ("+e.actor+")");throw o.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},o}}return c.push({from:e,to:t,message:n.text,wrap:void 0===n.wrap&&E()||!!n.wrap,type:i}),!0},y=function(){return c},w=function(){return l},C=function(e){return l[e]},S=function(){return Object.keys(l)},k=function(){return u},x=function(){return h},L=function(){f=!0},M=function(){return f},D=function(e){g=e},E=function(){return g},T=function(){l={},c=[]},O=function(e){var t=e.trim(),n={text:t.replace(/^[:]?(?:no)?wrap:/,"").trim(),wrap:null===t.match(/^[:]?(?:no)?wrap:/)?o.default.hasBreaks(t)||void 0:null!==t.match(/^[:]?wrap:/)||null===t.match(/^[:]?nowrap:/)&&void 0};return s.logger.debug("parseMessage:",n),n},N={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23},I={FILLED:0,OPEN:1},A={LEFTOF:0,RIGHTOF:1,OVER:2},R=function(e,t,n){var i={actor:e,placement:t,message:n.text,wrap:void 0===n.wrap&&E()||!!n.wrap},r=[].concat(e,e);d.push(i),c.push({from:r[0],to:r[1],message:n.text,wrap:void 0===n.wrap&&E()||!!n.wrap,type:N.NOTE,placement:t})},P=function(e){u=e.text,h=void 0===e.wrap&&E()||!!e.wrap},j=function e(t){if(t instanceof Array)t.forEach((function(t){e(t)}));else switch(t.type){case"addActor":m(t.actor,t.actor,t.description);break;case"activeStart":case"activeEnd":v(t.actor,void 0,void 0,t.signalType);break;case"addNote":R(t.actor,t.placement,t.text);break;case"addMessage":v(t.from,t.to,t.msg,t.signalType);break;case"loopStart":v(void 0,void 0,t.loopText,t.signalType);break;case"loopEnd":v(void 0,void 0,void 0,t.signalType);break;case"rectStart":v(void 0,void 0,t.color,t.signalType);break;case"rectEnd":v(void 0,void 0,void 0,t.signalType);break;case"optStart":v(void 0,void 0,t.optText,t.signalType);break;case"optEnd":v(void 0,void 0,void 0,t.signalType);break;case"altStart":case"else":v(void 0,void 0,t.altText,t.signalType);break;case"altEnd":v(void 0,void 0,void 0,t.signalType);break;case"setTitle":P(t.text);break;case"parStart":case"and":v(void 0,void 0,t.parText,t.signalType);break;case"parEnd":v(void 0,void 0,void 0,t.signalType)}};t.default={addActor:m,addMessage:b,addSignal:v,autoWrap:E,setWrap:D,enableSequenceNumbers:L,showSequenceNumbers:M,getMessages:y,getActors:w,getActor:C,getActorKeys:S,getTitle:k,parseDirective:p,getConfig:function(){return r.getConfig().sequence},getTitleWrapped:x,clear:T,parseMessage:O,LINETYPE:N,ARROWTYPE:I,PLACEMENT:A,addNote:R,setTitle:P,apply:j}},"./src/diagrams/sequence/sequenceRenderer.js": /*!***************************************************!*\ !*** ./src/diagrams/sequence/sequenceRenderer.js ***! \***************************************************/ -/*! exports provided: bounds, drawActors, setConf, draw, default */function(e,t,n){"use strict";n.r(t),n.d(t,"bounds",(function(){return h})),n.d(t,"drawActors",(function(){return m})),n.d(t,"setConf",(function(){return _})),n.d(t,"draw",(function(){return w}));var r=n(/*! d3 */"d3"),i=n(/*! ./svgDraw */"./src/diagrams/sequence/svgDraw.js"),o=n(/*! ../../logger */"./src/logger.js"),s=n(/*! ./parser/sequenceDiagram */"./src/diagrams/sequence/parser/sequenceDiagram.jison"),a=n(/*! ../common/common */"./src/diagrams/common/common.js"),u=n(/*! ./sequenceDb */"./src/diagrams/sequence/sequenceDb.js"),l=n(/*! ../../config */"./src/config.js"),c=n(/*! ../../utils */"./src/utils.js");s.parser.yy=u.default;var d={},h={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],activations:[],models:{getHeight:function(){return Math.max.apply(null,0===this.actors.length?[0]:this.actors.map((function(e){return e.height||0})))+(0===this.loops.length?0:this.loops.map((function(e){return e.height||0})).reduce((function(e,t){return e+t})))+(0===this.messages.length?0:this.messages.map((function(e){return e.height||0})).reduce((function(e,t){return e+t})))+(0===this.notes.length?0:this.notes.map((function(e){return e.height||0})).reduce((function(e,t){return e+t})))},clear:function(){this.actors=[],this.loops=[],this.messages=[],this.notes=[]},addActor:function(e){this.actors.push(e)},addLoop:function(e){this.loops.push(e)},addMessage:function(e){this.messages.push(e)},addNote:function(e){this.notes.push(e)},lastActor:function(){return this.actors[this.actors.length-1]},lastLoop:function(){return this.loops[this.loops.length-1]},lastMessage:function(){return this.messages[this.messages.length-1]},lastNote:function(){return this.notes[this.notes.length-1]},actors:[],loops:[],messages:[],notes:[]},init:function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,_(s.parser.yy.getConfig())},updateVal:function(e,t,n,r){void 0===e[t]?e[t]=n:e[t]=r(n,e[t])},updateBounds:function(e,t,n,r){var i=this,o=0;function s(s){return function(a){o++;var u=i.sequenceItems.length-o+1;i.updateVal(a,"starty",t-u*d.boxMargin,Math.min),i.updateVal(a,"stopy",r+u*d.boxMargin,Math.max),i.updateVal(h.data,"startx",e-u*d.boxMargin,Math.min),i.updateVal(h.data,"stopx",n+u*d.boxMargin,Math.max),"activation"!==s&&(i.updateVal(a,"startx",e-u*d.boxMargin,Math.min),i.updateVal(a,"stopx",n+u*d.boxMargin,Math.max),i.updateVal(h.data,"starty",t-u*d.boxMargin,Math.min),i.updateVal(h.data,"stopy",r+u*d.boxMargin,Math.max))}}this.sequenceItems.forEach(s()),this.activations.forEach(s("activation"))},insert:function(e,t,n,r){var i=Math.min(e,n),o=Math.max(e,n),s=Math.min(t,r),a=Math.max(t,r);this.updateVal(h.data,"startx",i,Math.min),this.updateVal(h.data,"starty",s,Math.min),this.updateVal(h.data,"stopx",o,Math.max),this.updateVal(h.data,"stopy",a,Math.max),this.updateBounds(i,s,o,a)},newActivation:function(e,t,n){var r=n[e.from.actor],o=y(e.from.actor).length||0,s=r.x+r.width/2+(o-1)*d.activationWidth/2;this.activations.push({startx:s,starty:this.verticalPos+2,stopx:s+d.activationWidth,stopy:void 0,actor:e.from.actor,anchored:i.default.anchorElement(t)})},endActivation:function(e){var t=this.activations.map((function(e){return e.actor})).lastIndexOf(e.from.actor);return this.activations.splice(t,1)[0]},createLoop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{message:void 0,wrap:!1,width:void 0},t=arguments.length>1?arguments[1]:void 0;return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:e.message,wrap:e.wrap,width:e.width,height:0,fill:t}},newLoop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{message:void 0,wrap:!1,width:void 0},t=arguments.length>1?arguments[1]:void 0;this.sequenceItems.push(this.createLoop(e,t))},endLoop:function(){return this.sequenceItems.pop()},addSectionToLoop:function(e){var t=this.sequenceItems.pop();t.sections=t.sections||[],t.sectionTitles=t.sectionTitles||[],t.sections.push({y:h.getVerticalPos(),height:0}),t.sectionTitles.push(e),this.sequenceItems.push(t)},bumpVerticalPos:function(e){this.verticalPos=this.verticalPos+e,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return{bounds:this.data,models:this.models}}},f=function(e){return{fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight}},p=function(e){return{fontFamily:e.noteFontFamily,fontSize:e.noteFontSize,fontWeight:e.noteFontWeight}},g=function(e){return{fontFamily:e.actorFontFamily,fontSize:e.actorFontSize,fontWeight:e.actorFontWeight}},m=function(e,t,n,r){for(var o=0,s=0,a=0;a<n.length;a++){var u=t[n[a]];u.width=u.width||d.width,u.height=Math.max(u.height||d.height,d.height),u.margin=u.margin||d.actorMargin,u.x=o+s,u.y=r,i.default.drawActor(e,u,d),h.insert(u.x,r,u.x+u.width,u.height),o+=u.width,s+=u.margin,h.models.addActor(u)}h.bumpVerticalPos(d.height)},_=function(e){Object(c.assignWithDepth)(d,e),e.fontFamily&&(d.actorFontFamily=d.noteFontFamily=d.messageFontFamily=e.fontFamily),e.fontSize&&(d.actorFontSize=d.noteFontSize=d.messageFontSize=e.fontSize),e.fontWeight&&(d.actorFontWeight=d.noteFontWeight=d.messageFontWeight=e.fontWeight)},y=function(e){return h.activations.filter((function(t){return t.actor===e}))},v=function(e,t){var n=t[e],r=y(e);return[r.reduce((function(e,t){return Math.min(e,t.startx)}),n.x+n.width/2),r.reduce((function(e,t){return Math.max(e,t.stopx)}),n.x+n.width/2)]};function b(e,t,n,r,i){h.bumpVerticalPos(n);var s=r;if(t.id&&t.message&&e[t.id]){var a=e[t.id].width,u=f(d);t.message=c.default.wrapLabel("[".concat(t.message,"]"),a-2*d.wrapPadding,u),t.width=a,t.wrap=!0;var l=c.default.calculateTextDimensions(t.message,u),p=Math.max(l.height,d.labelBoxHeight);s=r+p,o.logger.debug("".concat(p," - ").concat(t.message))}i(t),h.bumpVerticalPos(s)}var w=function(e,t){d=l.getConfig().sequence,s.parser.yy.clear(),s.parser.yy.setWrap(d.wrap),s.parser.parse(e+"\n"),h.init(),o.logger.debug("C:".concat(JSON.stringify(d,null,2)));var n=Object(r.select)('[id="'.concat(t,'"]')),p=s.parser.yy.getActors(),g=s.parser.yy.getActorKeys(),_=s.parser.yy.getMessages(),v=s.parser.yy.getTitle(),w=C(p,_);d.height=S(p,w),m(n,p,g,0);var L=x(_,p,w);i.default.insertArrowHead(n),i.default.insertArrowCrossHead(n),i.default.insertSequenceNumber(n);var k=1;_.forEach((function(e){var t,r,l;switch(e.type){case s.parser.yy.LINETYPE.NOTE:r=e.noteModel,function(e,t){h.bumpVerticalPos(d.boxMargin),t.height=d.boxMargin,t.starty=h.getVerticalPos();var n=i.default.getNoteRect();n.x=t.startx,n.y=t.starty,n.width=t.width||d.width,n.class="note";var r=e.append("g"),o=i.default.drawRect(r,n),s=i.default.getTextObj();s.x=t.startx,s.y=t.starty,s.width=n.width,s.dy="1em",s.text=t.message,s.class="noteText",s.fontFamily=d.noteFontFamily,s.fontSize=d.noteFontSize,s.fontWeight=d.noteFontWeight,s.anchor=d.noteAlign,s.textMargin=d.noteMargin,s.valign=d.noteAlign,s.wrap=!0;var a=Object(i.drawText)(r,s),u=Math.round(a.map((function(e){return(e._groups||e)[0][0].getBBox().height})).reduce((function(e,t){return e+t})));o.attr("height",u+2*d.noteMargin),t.height+=u+2*d.noteMargin,h.bumpVerticalPos(u+2*d.noteMargin),t.stopy=t.starty+u+2*d.noteMargin,t.stopx=t.startx+n.width,h.insert(t.startx,t.starty,t.stopx,t.stopy),h.models.addNote(t)}(n,r);break;case s.parser.yy.LINETYPE.ACTIVE_START:h.newActivation(e,n,p);break;case s.parser.yy.LINETYPE.ACTIVE_END:!function(e,t){var r=h.endActivation(e);r.starty+18>t&&(r.starty=t-6,t+=12),i.default.drawActivation(n,r,t,d,y(e.from.actor).length),h.insert(r.startx,t-10,r.stopx,t)}(e,h.getVerticalPos());break;case s.parser.yy.LINETYPE.LOOP_START:b(L,e,d.boxMargin,d.boxMargin+d.boxTextMargin,(function(e){return h.newLoop(e)}));break;case s.parser.yy.LINETYPE.LOOP_END:t=h.endLoop(),i.default.drawLoop(n,t,"loop",d),h.bumpVerticalPos(t.stopy-h.getVerticalPos()),h.models.addLoop(t);break;case s.parser.yy.LINETYPE.RECT_START:b(L,e,d.boxMargin,d.boxMargin,(function(e){return h.newLoop(void 0,e.message)}));break;case s.parser.yy.LINETYPE.RECT_END:t=h.endLoop(),i.default.drawBackgroundRect(n,t),h.models.addLoop(t),h.bumpVerticalPos(t.stopy-h.getVerticalPos());break;case s.parser.yy.LINETYPE.OPT_START:b(L,e,d.boxMargin,d.boxMargin+d.boxTextMargin,(function(e){return h.newLoop(e)}));break;case s.parser.yy.LINETYPE.OPT_END:t=h.endLoop(),i.default.drawLoop(n,t,"opt",d),h.bumpVerticalPos(t.stopy-h.getVerticalPos()),h.models.addLoop(t);break;case s.parser.yy.LINETYPE.ALT_START:b(L,e,d.boxMargin,d.boxMargin+d.boxTextMargin,(function(e){return h.newLoop(e)}));break;case s.parser.yy.LINETYPE.ALT_ELSE:b(L,e,d.boxMargin+d.boxTextMargin,d.boxMargin,(function(e){return h.addSectionToLoop(e)}));break;case s.parser.yy.LINETYPE.ALT_END:t=h.endLoop(),i.default.drawLoop(n,t,"alt",d),h.bumpVerticalPos(t.stopy-h.getVerticalPos()),h.models.addLoop(t);break;case s.parser.yy.LINETYPE.PAR_START:b(L,e,d.boxMargin,d.boxMargin+d.boxTextMargin,(function(e){return h.newLoop(e)}));break;case s.parser.yy.LINETYPE.PAR_AND:b(L,e,d.boxMargin+d.boxTextMargin,d.boxMargin,(function(e){return h.addSectionToLoop(e)}));break;case s.parser.yy.LINETYPE.PAR_END:t=h.endLoop(),i.default.drawLoop(n,t,"par",d),h.bumpVerticalPos(t.stopy-h.getVerticalPos()),h.models.addLoop(t);break;default:try{(l=e.msgModel).starty=h.getVerticalPos(),l.sequenceIndex=k,function(e,t){h.bumpVerticalPos(10);var n=t.startx,r=t.stopx,o=t.starty,l=t.message,p=t.type,g=t.sequenceIndex,m=t.wrap,_=a.default.splitBreaks(l).length,y=c.default.calculateTextDimensions(l,f(d)),v=y.height/_;t.height+=v,h.bumpVerticalPos(v);var b=i.default.getTextObj();b.x=n,b.y=o+10,b.width=r-n,b.class="messageText",b.dy="1em",b.text=l,b.fontFamily=d.messageFontFamily,b.fontSize=d.messageFontSize,b.fontWeight=d.messageFontWeight,b.anchor=d.messageAlign,b.valign=d.messageAlign,b.textMargin=d.wrapPadding,b.tspan=!1,b.wrap=m,Object(i.drawText)(e,b);var w,C,S=y.height-10,x=y.width;if(n===r){C=h.getVerticalPos()+S,d.rightAngles?w=e.append("path").attr("d","M ".concat(n,",").concat(C," H ").concat(n+Math.max(d.width/2,x/2)," V ").concat(C+25," H ").concat(n)):(S+=d.boxMargin,C=h.getVerticalPos()+S,w=e.append("path").attr("d","M "+n+","+C+" C "+(n+60)+","+(C-10)+" "+(n+60)+","+(C+30)+" "+n+","+(C+20))),S+=30;var L=Math.max(x/2,d.width/2);h.insert(n-L,h.getVerticalPos()-10+S,r+L,h.getVerticalPos()+30+S)}else S+=d.boxMargin,C=h.getVerticalPos()+S,(w=e.append("line")).attr("x1",n),w.attr("y1",C),w.attr("x2",r),w.attr("y2",C),h.insert(n,C-10,r,C);p===s.parser.yy.LINETYPE.DOTTED||p===s.parser.yy.LINETYPE.DOTTED_CROSS||p===s.parser.yy.LINETYPE.DOTTED_OPEN?(w.style("stroke-dasharray","3, 3"),w.attr("class","messageLine1")):w.attr("class","messageLine0");var k="";d.arrowMarkerAbsolute&&(k=(k=(k=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),w.attr("stroke-width",2),w.attr("stroke","none"),w.style("fill","none"),p!==s.parser.yy.LINETYPE.SOLID&&p!==s.parser.yy.LINETYPE.DOTTED||w.attr("marker-end","url("+k+"#arrowhead)"),p!==s.parser.yy.LINETYPE.SOLID_CROSS&&p!==s.parser.yy.LINETYPE.DOTTED_CROSS||w.attr("marker-end","url("+k+"#crosshead)"),(u.default.showSequenceNumbers()||d.showSequenceNumbers)&&(w.attr("marker-start","url("+k+"#sequencenumber)"),e.append("text").attr("x",n).attr("y",C+4).attr("font-family","sans-serif").attr("font-size","12px").attr("text-anchor","middle").attr("textLength","16px").attr("class","sequenceNumber").text(g)),h.bumpVerticalPos(S),t.height+=S,t.stopy=t.starty+t.height,h.insert(t.fromBounds,t.starty,t.toBounds,t.stopy)}(n,l),h.models.addMessage(l)}catch(e){o.logger.error("error while drawing message",e)}}[s.parser.yy.LINETYPE.SOLID_OPEN,s.parser.yy.LINETYPE.DOTTED_OPEN,s.parser.yy.LINETYPE.SOLID,s.parser.yy.LINETYPE.DOTTED,s.parser.yy.LINETYPE.SOLID_CROSS,s.parser.yy.LINETYPE.DOTTED_CROSS].includes(e.type)&&k++})),d.mirrorActors&&(h.bumpVerticalPos(2*d.boxMargin),m(n,p,g,h.getVerticalPos()));var M=h.getBounds().bounds;o.logger.debug("For line height fix Querying: #"+t+" .actor-line"),Object(r.selectAll)("#"+t+" .actor-line").attr("y2",M.stopy);var D=M.stopy-M.starty+2*d.diagramMarginY;d.mirrorActors&&(D=D-d.boxMargin+d.bottomMarginAdj);var E=M.stopx-M.startx+2*d.diagramMarginX;v&&n.append("text").text(v).attr("x",(M.stopx-M.startx)/2-2*d.diagramMarginX).attr("y",-25),Object(c.configureSvgSize)(n,D,E,d.useMaxWidth);var T=v?40:0;n.attr("viewBox",M.startx-d.diagramMarginX+" -"+(d.diagramMarginY+T)+" "+E+" "+(D+T)),o.logger.debug("models:",h.models)},C=function(e,t){var n={};return t.forEach((function(t){if(e[t.to]&&e[t.from]){var r=e[t.to];if(t.placement===s.parser.yy.PLACEMENT.LEFTOF&&!r.prevActor)return;if(t.placement===s.parser.yy.PLACEMENT.RIGHTOF&&!r.nextActor)return;var i=void 0!==t.placement,o=!i,a=i?p(d):f(d),u=t.wrap?c.default.wrapLabel(t.message,d.width-2*d.wrapPadding,a):t.message,l=c.default.calculateTextDimensions(u,a).width+2*d.wrapPadding;o&&t.from===r.nextActor?n[t.to]=Math.max(n[t.to]||0,l):o&&t.from===r.prevActor?n[t.from]=Math.max(n[t.from]||0,l):o&&t.from===t.to?(n[t.from]=Math.max(n[t.from]||0,l/2),n[t.to]=Math.max(n[t.to]||0,l/2)):t.placement===s.parser.yy.PLACEMENT.RIGHTOF?n[t.from]=Math.max(n[t.from]||0,l):t.placement===s.parser.yy.PLACEMENT.LEFTOF?n[r.prevActor]=Math.max(n[r.prevActor]||0,l):t.placement===s.parser.yy.PLACEMENT.OVER&&(r.prevActor&&(n[r.prevActor]=Math.max(n[r.prevActor]||0,l/2)),r.nextActor&&(n[t.from]=Math.max(n[t.from]||0,l/2)))}})),o.logger.debug("maxMessageWidthPerActor:",n),n},S=function(e,t){var n=0;for(var r in Object.keys(e).forEach((function(t){var r=e[t];r.wrap&&(r.description=c.default.wrapLabel(r.description,d.width-2*d.wrapPadding,g(d)));var i=c.default.calculateTextDimensions(r.description,g(d));r.width=r.wrap?d.width:Math.max(d.width,i.width+2*d.wrapPadding),r.height=r.wrap?Math.max(i.height,d.height):d.height,n=Math.max(n,r.height)})),t){var i=e[r];if(i){var o=e[i.nextActor];if(o){var s=t[r]+d.actorMargin-i.width/2-o.width/2;i.margin=Math.max(s,d.actorMargin)}}}return Math.max(n,d.height)},x=function(e,t){var n,r,i,a={},u=[];return e.forEach((function(e){switch(e.id=c.default.random({length:10}),e.type){case s.parser.yy.LINETYPE.LOOP_START:case s.parser.yy.LINETYPE.ALT_START:case s.parser.yy.LINETYPE.OPT_START:case s.parser.yy.LINETYPE.PAR_START:u.push({id:e.id,msg:e.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case s.parser.yy.LINETYPE.ALT_ELSE:case s.parser.yy.LINETYPE.PAR_AND:e.message&&(n=u.pop(),a[n.id]=n,a[e.id]=n,u.push(n));break;case s.parser.yy.LINETYPE.LOOP_END:case s.parser.yy.LINETYPE.ALT_END:case s.parser.yy.LINETYPE.OPT_END:case s.parser.yy.LINETYPE.PAR_END:n=u.pop(),a[n.id]=n;break;case s.parser.yy.LINETYPE.ACTIVE_START:var l=t[e.from?e.from.actor:e.to.actor],g=y(e.from?e.from.actor:e.to.actor).length,m=l.x+l.width/2+(g-1)*d.activationWidth/2,_={startx:m,stopx:m+d.activationWidth,actor:e.from.actor,enabled:!0};h.activations.push(_);break;case s.parser.yy.LINETYPE.ACTIVE_END:var b=h.activations.map((function(e){return e.actor})).lastIndexOf(e.from.actor);delete h.activations.splice(b,1)[0]}void 0!==e.placement?(r=function(e,t){var n=t[e.from].x,r=t[e.to].x,i=e.wrap&&e.message,a=c.default.calculateTextDimensions(i?c.default.wrapLabel(e.message,d.width,p(d)):e.message,p(d)),u={width:i?d.width:Math.max(d.width,a.width+2*d.noteMargin),height:0,startx:t[e.from].x,stopx:0,starty:0,stopy:0,message:e.message};return e.placement===s.parser.yy.PLACEMENT.RIGHTOF?(u.width=i?Math.max(d.width,a.width):Math.max(t[e.from].width/2+t[e.to].width/2,a.width+2*d.noteMargin),u.startx=n+(t[e.from].width+d.actorMargin)/2):e.placement===s.parser.yy.PLACEMENT.LEFTOF?(u.width=i?Math.max(d.width,a.width+2*d.noteMargin):Math.max(t[e.from].width/2+t[e.to].width/2,a.width+2*d.noteMargin),u.startx=n-u.width+(t[e.from].width-d.actorMargin)/2):e.to===e.from?(a=c.default.calculateTextDimensions(i?c.default.wrapLabel(e.message,Math.max(d.width,t[e.from].width),p(d)):e.message,p(d)),u.width=i?Math.max(d.width,t[e.from].width):Math.max(t[e.from].width,d.width,a.width+2*d.noteMargin),u.startx=n+(t[e.from].width-u.width)/2):(u.width=Math.abs(n+t[e.from].width/2-(r+t[e.to].width/2))+d.actorMargin,u.startx=n<r?n+t[e.from].width/2-d.actorMargin/2:r+t[e.to].width/2-d.actorMargin/2),i&&(u.message=c.default.wrapLabel(e.message,u.width-2*d.wrapPadding,p(d))),o.logger.debug("NM:[".concat(u.startx,",").concat(u.stopx,",").concat(u.starty,",").concat(u.stopy,":").concat(u.width,",").concat(u.height,"=").concat(e.message,"]")),u}(e,t),e.noteModel=r,u.forEach((function(e){(n=e).from=Math.min(n.from,r.startx),n.to=Math.max(n.to,r.startx+r.width),n.width=Math.max(n.width,Math.abs(n.from-n.to))-d.labelBoxWidth}))):(i=function(e,t){var n=!1;if([s.parser.yy.LINETYPE.SOLID_OPEN,s.parser.yy.LINETYPE.DOTTED_OPEN,s.parser.yy.LINETYPE.SOLID,s.parser.yy.LINETYPE.DOTTED,s.parser.yy.LINETYPE.SOLID_CROSS,s.parser.yy.LINETYPE.DOTTED_CROSS].includes(e.type)&&(n=!0),!n)return{};var r=v(e.from,t),i=v(e.to,t),o=r[0]<=i[0]?1:0,a=r[0]<i[0]?0:1,u=r.concat(i),l=Math.abs(i[a]-r[o]),h=c.default.calculateTextDimensions(e.message,f(d));return e.wrap&&e.message&&(e.message=c.default.wrapLabel(e.message,Math.max(l+2*d.wrapPadding,d.width),f(d))),{width:Math.max(e.wrap?0:h.width+2*d.wrapPadding,l+2*d.wrapPadding,d.width),height:0,startx:r[o],stopx:i[a],starty:0,stopy:0,message:e.message,type:e.type,wrap:e.wrap,fromBounds:Math.min.apply(null,u),toBounds:Math.max.apply(null,u)}}(e,t),e.msgModel=i,i.startx&&i.stopx&&u.length>0&&u.forEach((function(r){if(n=r,i.startx===i.stopx){var o=t[e.from],s=t[e.to];n.from=Math.min(o.x-i.width/2,o.x-o.width/2,n.from),n.to=Math.max(s.x+i.width/2,s.x+o.width/2,n.to),n.width=Math.max(n.width,Math.abs(n.to-n.from))-d.labelBoxWidth}else n.from=Math.min(i.startx,n.from),n.to=Math.max(i.stopx,n.to),n.width=Math.max(n.width,i.width)-d.labelBoxWidth})))})),h.activations=[],o.logger.debug("Loop type widths:",a),a};t.default={bounds:h,drawActors:m,setConf:_,draw:w}},"./src/diagrams/sequence/styles.js": +/*! exports provided: bounds, drawActors, setConf, draw, default */function(e,t,n){"use strict";n.r(t),n.d(t,"bounds",(function(){return h})),n.d(t,"drawActors",(function(){return m})),n.d(t,"setConf",(function(){return _})),n.d(t,"draw",(function(){return w}));var i=n(/*! d3 */"d3"),r=n(/*! ./svgDraw */"./src/diagrams/sequence/svgDraw.js"),o=n(/*! ../../logger */"./src/logger.js"),s=n(/*! ./parser/sequenceDiagram */"./src/diagrams/sequence/parser/sequenceDiagram.jison"),a=n(/*! ../common/common */"./src/diagrams/common/common.js"),l=n(/*! ./sequenceDb */"./src/diagrams/sequence/sequenceDb.js"),c=n(/*! ../../config */"./src/config.js"),d=n(/*! ../../utils */"./src/utils.js");s.parser.yy=l.default;var u={},h={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],activations:[],models:{getHeight:function(){return Math.max.apply(null,0===this.actors.length?[0]:this.actors.map((function(e){return e.height||0})))+(0===this.loops.length?0:this.loops.map((function(e){return e.height||0})).reduce((function(e,t){return e+t})))+(0===this.messages.length?0:this.messages.map((function(e){return e.height||0})).reduce((function(e,t){return e+t})))+(0===this.notes.length?0:this.notes.map((function(e){return e.height||0})).reduce((function(e,t){return e+t})))},clear:function(){this.actors=[],this.loops=[],this.messages=[],this.notes=[]},addActor:function(e){this.actors.push(e)},addLoop:function(e){this.loops.push(e)},addMessage:function(e){this.messages.push(e)},addNote:function(e){this.notes.push(e)},lastActor:function(){return this.actors[this.actors.length-1]},lastLoop:function(){return this.loops[this.loops.length-1]},lastMessage:function(){return this.messages[this.messages.length-1]},lastNote:function(){return this.notes[this.notes.length-1]},actors:[],loops:[],messages:[],notes:[]},init:function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,_(s.parser.yy.getConfig())},updateVal:function(e,t,n,i){void 0===e[t]?e[t]=n:e[t]=i(n,e[t])},updateBounds:function(e,t,n,i){var r=this,o=0;function s(s){return function(a){o++;var l=r.sequenceItems.length-o+1;r.updateVal(a,"starty",t-l*u.boxMargin,Math.min),r.updateVal(a,"stopy",i+l*u.boxMargin,Math.max),r.updateVal(h.data,"startx",e-l*u.boxMargin,Math.min),r.updateVal(h.data,"stopx",n+l*u.boxMargin,Math.max),"activation"!==s&&(r.updateVal(a,"startx",e-l*u.boxMargin,Math.min),r.updateVal(a,"stopx",n+l*u.boxMargin,Math.max),r.updateVal(h.data,"starty",t-l*u.boxMargin,Math.min),r.updateVal(h.data,"stopy",i+l*u.boxMargin,Math.max))}}this.sequenceItems.forEach(s()),this.activations.forEach(s("activation"))},insert:function(e,t,n,i){var r=Math.min(e,n),o=Math.max(e,n),s=Math.min(t,i),a=Math.max(t,i);this.updateVal(h.data,"startx",r,Math.min),this.updateVal(h.data,"starty",s,Math.min),this.updateVal(h.data,"stopx",o,Math.max),this.updateVal(h.data,"stopy",a,Math.max),this.updateBounds(r,s,o,a)},newActivation:function(e,t,n){var i=n[e.from.actor],o=b(e.from.actor).length||0,s=i.x+i.width/2+(o-1)*u.activationWidth/2;this.activations.push({startx:s,starty:this.verticalPos+2,stopx:s+u.activationWidth,stopy:void 0,actor:e.from.actor,anchored:r.default.anchorElement(t)})},endActivation:function(e){var t=this.activations.map((function(e){return e.actor})).lastIndexOf(e.from.actor);return this.activations.splice(t,1)[0]},createLoop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{message:void 0,wrap:!1,width:void 0},t=arguments.length>1?arguments[1]:void 0;return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:e.message,wrap:e.wrap,width:e.width,height:0,fill:t}},newLoop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{message:void 0,wrap:!1,width:void 0},t=arguments.length>1?arguments[1]:void 0;this.sequenceItems.push(this.createLoop(e,t))},endLoop:function(){return this.sequenceItems.pop()},addSectionToLoop:function(e){var t=this.sequenceItems.pop();t.sections=t.sections||[],t.sectionTitles=t.sectionTitles||[],t.sections.push({y:h.getVerticalPos(),height:0}),t.sectionTitles.push(e),this.sequenceItems.push(t)},bumpVerticalPos:function(e){this.verticalPos=this.verticalPos+e,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return{bounds:this.data,models:this.models}}},f=function(e){return{fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight}},g=function(e){return{fontFamily:e.noteFontFamily,fontSize:e.noteFontSize,fontWeight:e.noteFontWeight}},p=function(e){return{fontFamily:e.actorFontFamily,fontSize:e.actorFontSize,fontWeight:e.actorFontWeight}},m=function(e,t,n,i){for(var o=0,s=0,a=0;a<n.length;a++){var l=t[n[a]];l.width=l.width||u.width,l.height=Math.max(l.height||u.height,u.height),l.margin=l.margin||u.actorMargin,l.x=o+s,l.y=i,r.default.drawActor(e,l,u),h.insert(l.x,i,l.x+l.width,l.height),o+=l.width,s+=l.margin,h.models.addActor(l)}h.bumpVerticalPos(u.height)},_=function(e){Object(d.assignWithDepth)(u,e),e.fontFamily&&(u.actorFontFamily=u.noteFontFamily=u.messageFontFamily=e.fontFamily),e.fontSize&&(u.actorFontSize=u.noteFontSize=u.messageFontSize=e.fontSize),e.fontWeight&&(u.actorFontWeight=u.noteFontWeight=u.messageFontWeight=e.fontWeight)},b=function(e){return h.activations.filter((function(t){return t.actor===e}))},v=function(e,t){var n=t[e],i=b(e);return[i.reduce((function(e,t){return Math.min(e,t.startx)}),n.x+n.width/2),i.reduce((function(e,t){return Math.max(e,t.stopx)}),n.x+n.width/2)]};function y(e,t,n,i,r){h.bumpVerticalPos(n);var s=i;if(t.id&&t.message&&e[t.id]){var a=e[t.id].width,l=f(u);t.message=d.default.wrapLabel("[".concat(t.message,"]"),a-2*u.wrapPadding,l),t.width=a,t.wrap=!0;var c=d.default.calculateTextDimensions(t.message,l),g=Math.max(c.height,u.labelBoxHeight);s=i+g,o.logger.debug("".concat(g," - ").concat(t.message))}r(t),h.bumpVerticalPos(s)}var w=function(e,t){u=c.getConfig().sequence,s.parser.yy.clear(),s.parser.yy.setWrap(u.wrap),s.parser.parse(e+"\n"),h.init(),o.logger.debug("C:".concat(JSON.stringify(u,null,2)));var n=Object(i.select)('[id="'.concat(t,'"]')),g=s.parser.yy.getActors(),p=s.parser.yy.getActorKeys(),_=s.parser.yy.getMessages(),v=s.parser.yy.getTitle(),w=C(g,_);u.height=S(g,w),m(n,g,p,0);var x=k(_,g,w);r.default.insertArrowHead(n),r.default.insertArrowCrossHead(n),r.default.insertSequenceNumber(n);var L=1;_.forEach((function(e){var t,i,c;switch(e.type){case s.parser.yy.LINETYPE.NOTE:i=e.noteModel,function(e,t){h.bumpVerticalPos(u.boxMargin),t.height=u.boxMargin,t.starty=h.getVerticalPos();var n=r.default.getNoteRect();n.x=t.startx,n.y=t.starty,n.width=t.width||u.width,n.class="note";var i=e.append("g"),o=r.default.drawRect(i,n),s=r.default.getTextObj();s.x=t.startx,s.y=t.starty,s.width=n.width,s.dy="1em",s.text=t.message,s.class="noteText",s.fontFamily=u.noteFontFamily,s.fontSize=u.noteFontSize,s.fontWeight=u.noteFontWeight,s.anchor=u.noteAlign,s.textMargin=u.noteMargin,s.valign=u.noteAlign,s.wrap=!0;var a=Object(r.drawText)(i,s),l=Math.round(a.map((function(e){return(e._groups||e)[0][0].getBBox().height})).reduce((function(e,t){return e+t})));o.attr("height",l+2*u.noteMargin),t.height+=l+2*u.noteMargin,h.bumpVerticalPos(l+2*u.noteMargin),t.stopy=t.starty+l+2*u.noteMargin,t.stopx=t.startx+n.width,h.insert(t.startx,t.starty,t.stopx,t.stopy),h.models.addNote(t)}(n,i);break;case s.parser.yy.LINETYPE.ACTIVE_START:h.newActivation(e,n,g);break;case s.parser.yy.LINETYPE.ACTIVE_END:!function(e,t){var i=h.endActivation(e);i.starty+18>t&&(i.starty=t-6,t+=12),r.default.drawActivation(n,i,t,u,b(e.from.actor).length),h.insert(i.startx,t-10,i.stopx,t)}(e,h.getVerticalPos());break;case s.parser.yy.LINETYPE.LOOP_START:y(x,e,u.boxMargin,u.boxMargin+u.boxTextMargin,(function(e){return h.newLoop(e)}));break;case s.parser.yy.LINETYPE.LOOP_END:t=h.endLoop(),r.default.drawLoop(n,t,"loop",u),h.bumpVerticalPos(t.stopy-h.getVerticalPos()),h.models.addLoop(t);break;case s.parser.yy.LINETYPE.RECT_START:y(x,e,u.boxMargin,u.boxMargin,(function(e){return h.newLoop(void 0,e.message)}));break;case s.parser.yy.LINETYPE.RECT_END:t=h.endLoop(),r.default.drawBackgroundRect(n,t),h.models.addLoop(t),h.bumpVerticalPos(t.stopy-h.getVerticalPos());break;case s.parser.yy.LINETYPE.OPT_START:y(x,e,u.boxMargin,u.boxMargin+u.boxTextMargin,(function(e){return h.newLoop(e)}));break;case s.parser.yy.LINETYPE.OPT_END:t=h.endLoop(),r.default.drawLoop(n,t,"opt",u),h.bumpVerticalPos(t.stopy-h.getVerticalPos()),h.models.addLoop(t);break;case s.parser.yy.LINETYPE.ALT_START:y(x,e,u.boxMargin,u.boxMargin+u.boxTextMargin,(function(e){return h.newLoop(e)}));break;case s.parser.yy.LINETYPE.ALT_ELSE:y(x,e,u.boxMargin+u.boxTextMargin,u.boxMargin,(function(e){return h.addSectionToLoop(e)}));break;case s.parser.yy.LINETYPE.ALT_END:t=h.endLoop(),r.default.drawLoop(n,t,"alt",u),h.bumpVerticalPos(t.stopy-h.getVerticalPos()),h.models.addLoop(t);break;case s.parser.yy.LINETYPE.PAR_START:y(x,e,u.boxMargin,u.boxMargin+u.boxTextMargin,(function(e){return h.newLoop(e)}));break;case s.parser.yy.LINETYPE.PAR_AND:y(x,e,u.boxMargin+u.boxTextMargin,u.boxMargin,(function(e){return h.addSectionToLoop(e)}));break;case s.parser.yy.LINETYPE.PAR_END:t=h.endLoop(),r.default.drawLoop(n,t,"par",u),h.bumpVerticalPos(t.stopy-h.getVerticalPos()),h.models.addLoop(t);break;default:try{(c=e.msgModel).starty=h.getVerticalPos(),c.sequenceIndex=L,function(e,t){h.bumpVerticalPos(10);var n=t.startx,i=t.stopx,o=t.starty,c=t.message,g=t.type,p=t.sequenceIndex,m=t.wrap,_=a.default.splitBreaks(c).length,b=d.default.calculateTextDimensions(c,f(u)),v=b.height/_;t.height+=v,h.bumpVerticalPos(v);var y=r.default.getTextObj();y.x=n,y.y=o+10,y.width=i-n,y.class="messageText",y.dy="1em",y.text=c,y.fontFamily=u.messageFontFamily,y.fontSize=u.messageFontSize,y.fontWeight=u.messageFontWeight,y.anchor=u.messageAlign,y.valign=u.messageAlign,y.textMargin=u.wrapPadding,y.tspan=!1,y.wrap=m,Object(r.drawText)(e,y);var w,C,S=b.height-10,k=b.width;if(n===i){C=h.getVerticalPos()+S,u.rightAngles?w=e.append("path").attr("d","M ".concat(n,",").concat(C," H ").concat(n+Math.max(u.width/2,k/2)," V ").concat(C+25," H ").concat(n)):(S+=u.boxMargin,C=h.getVerticalPos()+S,w=e.append("path").attr("d","M "+n+","+C+" C "+(n+60)+","+(C-10)+" "+(n+60)+","+(C+30)+" "+n+","+(C+20))),S+=30;var x=Math.max(k/2,u.width/2);h.insert(n-x,h.getVerticalPos()-10+S,i+x,h.getVerticalPos()+30+S)}else S+=u.boxMargin,C=h.getVerticalPos()+S,(w=e.append("line")).attr("x1",n),w.attr("y1",C),w.attr("x2",i),w.attr("y2",C),h.insert(n,C-10,i,C);g===s.parser.yy.LINETYPE.DOTTED||g===s.parser.yy.LINETYPE.DOTTED_CROSS||g===s.parser.yy.LINETYPE.DOTTED_OPEN?(w.style("stroke-dasharray","3, 3"),w.attr("class","messageLine1")):w.attr("class","messageLine0");var L="";u.arrowMarkerAbsolute&&(L=(L=(L=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),w.attr("stroke-width",2),w.attr("stroke","none"),w.style("fill","none"),g!==s.parser.yy.LINETYPE.SOLID&&g!==s.parser.yy.LINETYPE.DOTTED||w.attr("marker-end","url("+L+"#arrowhead)"),g!==s.parser.yy.LINETYPE.SOLID_CROSS&&g!==s.parser.yy.LINETYPE.DOTTED_CROSS||w.attr("marker-end","url("+L+"#crosshead)"),(l.default.showSequenceNumbers()||u.showSequenceNumbers)&&(w.attr("marker-start","url("+L+"#sequencenumber)"),e.append("text").attr("x",n).attr("y",C+4).attr("font-family","sans-serif").attr("font-size","12px").attr("text-anchor","middle").attr("textLength","16px").attr("class","sequenceNumber").text(p)),h.bumpVerticalPos(S),t.height+=S,t.stopy=t.starty+t.height,h.insert(t.fromBounds,t.starty,t.toBounds,t.stopy)}(n,c),h.models.addMessage(c)}catch(e){o.logger.error("error while drawing message",e)}}[s.parser.yy.LINETYPE.SOLID_OPEN,s.parser.yy.LINETYPE.DOTTED_OPEN,s.parser.yy.LINETYPE.SOLID,s.parser.yy.LINETYPE.DOTTED,s.parser.yy.LINETYPE.SOLID_CROSS,s.parser.yy.LINETYPE.DOTTED_CROSS].includes(e.type)&&L++})),u.mirrorActors&&(h.bumpVerticalPos(2*u.boxMargin),m(n,g,p,h.getVerticalPos()));var M=h.getBounds().bounds;o.logger.debug("For line height fix Querying: #"+t+" .actor-line"),Object(i.selectAll)("#"+t+" .actor-line").attr("y2",M.stopy);var D=M.stopy-M.starty+2*u.diagramMarginY;u.mirrorActors&&(D=D-u.boxMargin+u.bottomMarginAdj);var E=M.stopx-M.startx+2*u.diagramMarginX;v&&n.append("text").text(v).attr("x",(M.stopx-M.startx)/2-2*u.diagramMarginX).attr("y",-25),Object(d.configureSvgSize)(n,D,E,u.useMaxWidth);var T=v?40:0;n.attr("viewBox",M.startx-u.diagramMarginX+" -"+(u.diagramMarginY+T)+" "+E+" "+(D+T)),o.logger.debug("models:",h.models)},C=function(e,t){var n={};return t.forEach((function(t){if(e[t.to]&&e[t.from]){var i=e[t.to];if(t.placement===s.parser.yy.PLACEMENT.LEFTOF&&!i.prevActor)return;if(t.placement===s.parser.yy.PLACEMENT.RIGHTOF&&!i.nextActor)return;var r=void 0!==t.placement,o=!r,a=r?g(u):f(u),l=t.wrap?d.default.wrapLabel(t.message,u.width-2*u.wrapPadding,a):t.message,c=d.default.calculateTextDimensions(l,a).width+2*u.wrapPadding;o&&t.from===i.nextActor?n[t.to]=Math.max(n[t.to]||0,c):o&&t.from===i.prevActor?n[t.from]=Math.max(n[t.from]||0,c):o&&t.from===t.to?(n[t.from]=Math.max(n[t.from]||0,c/2),n[t.to]=Math.max(n[t.to]||0,c/2)):t.placement===s.parser.yy.PLACEMENT.RIGHTOF?n[t.from]=Math.max(n[t.from]||0,c):t.placement===s.parser.yy.PLACEMENT.LEFTOF?n[i.prevActor]=Math.max(n[i.prevActor]||0,c):t.placement===s.parser.yy.PLACEMENT.OVER&&(i.prevActor&&(n[i.prevActor]=Math.max(n[i.prevActor]||0,c/2)),i.nextActor&&(n[t.from]=Math.max(n[t.from]||0,c/2)))}})),o.logger.debug("maxMessageWidthPerActor:",n),n},S=function(e,t){var n=0;for(var i in Object.keys(e).forEach((function(t){var i=e[t];i.wrap&&(i.description=d.default.wrapLabel(i.description,u.width-2*u.wrapPadding,p(u)));var r=d.default.calculateTextDimensions(i.description,p(u));i.width=i.wrap?u.width:Math.max(u.width,r.width+2*u.wrapPadding),i.height=i.wrap?Math.max(r.height,u.height):u.height,n=Math.max(n,i.height)})),t){var r=e[i];if(r){var o=e[r.nextActor];if(o){var s=t[i]+u.actorMargin-r.width/2-o.width/2;r.margin=Math.max(s,u.actorMargin)}}}return Math.max(n,u.height)},k=function(e,t){var n,i,r,a={},l=[];return e.forEach((function(e){switch(e.id=d.default.random({length:10}),e.type){case s.parser.yy.LINETYPE.LOOP_START:case s.parser.yy.LINETYPE.ALT_START:case s.parser.yy.LINETYPE.OPT_START:case s.parser.yy.LINETYPE.PAR_START:l.push({id:e.id,msg:e.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case s.parser.yy.LINETYPE.ALT_ELSE:case s.parser.yy.LINETYPE.PAR_AND:e.message&&(n=l.pop(),a[n.id]=n,a[e.id]=n,l.push(n));break;case s.parser.yy.LINETYPE.LOOP_END:case s.parser.yy.LINETYPE.ALT_END:case s.parser.yy.LINETYPE.OPT_END:case s.parser.yy.LINETYPE.PAR_END:n=l.pop(),a[n.id]=n;break;case s.parser.yy.LINETYPE.ACTIVE_START:var c=t[e.from?e.from.actor:e.to.actor],p=b(e.from?e.from.actor:e.to.actor).length,m=c.x+c.width/2+(p-1)*u.activationWidth/2,_={startx:m,stopx:m+u.activationWidth,actor:e.from.actor,enabled:!0};h.activations.push(_);break;case s.parser.yy.LINETYPE.ACTIVE_END:var y=h.activations.map((function(e){return e.actor})).lastIndexOf(e.from.actor);delete h.activations.splice(y,1)[0]}void 0!==e.placement?(i=function(e,t){var n=t[e.from].x,i=t[e.to].x,r=e.wrap&&e.message,a=d.default.calculateTextDimensions(r?d.default.wrapLabel(e.message,u.width,g(u)):e.message,g(u)),l={width:r?u.width:Math.max(u.width,a.width+2*u.noteMargin),height:0,startx:t[e.from].x,stopx:0,starty:0,stopy:0,message:e.message};return e.placement===s.parser.yy.PLACEMENT.RIGHTOF?(l.width=r?Math.max(u.width,a.width):Math.max(t[e.from].width/2+t[e.to].width/2,a.width+2*u.noteMargin),l.startx=n+(t[e.from].width+u.actorMargin)/2):e.placement===s.parser.yy.PLACEMENT.LEFTOF?(l.width=r?Math.max(u.width,a.width+2*u.noteMargin):Math.max(t[e.from].width/2+t[e.to].width/2,a.width+2*u.noteMargin),l.startx=n-l.width+(t[e.from].width-u.actorMargin)/2):e.to===e.from?(a=d.default.calculateTextDimensions(r?d.default.wrapLabel(e.message,Math.max(u.width,t[e.from].width),g(u)):e.message,g(u)),l.width=r?Math.max(u.width,t[e.from].width):Math.max(t[e.from].width,u.width,a.width+2*u.noteMargin),l.startx=n+(t[e.from].width-l.width)/2):(l.width=Math.abs(n+t[e.from].width/2-(i+t[e.to].width/2))+u.actorMargin,l.startx=n<i?n+t[e.from].width/2-u.actorMargin/2:i+t[e.to].width/2-u.actorMargin/2),r&&(l.message=d.default.wrapLabel(e.message,l.width-2*u.wrapPadding,g(u))),o.logger.debug("NM:[".concat(l.startx,",").concat(l.stopx,",").concat(l.starty,",").concat(l.stopy,":").concat(l.width,",").concat(l.height,"=").concat(e.message,"]")),l}(e,t),e.noteModel=i,l.forEach((function(e){(n=e).from=Math.min(n.from,i.startx),n.to=Math.max(n.to,i.startx+i.width),n.width=Math.max(n.width,Math.abs(n.from-n.to))-u.labelBoxWidth}))):(r=function(e,t){var n=!1;if([s.parser.yy.LINETYPE.SOLID_OPEN,s.parser.yy.LINETYPE.DOTTED_OPEN,s.parser.yy.LINETYPE.SOLID,s.parser.yy.LINETYPE.DOTTED,s.parser.yy.LINETYPE.SOLID_CROSS,s.parser.yy.LINETYPE.DOTTED_CROSS].includes(e.type)&&(n=!0),!n)return{};var i=v(e.from,t),r=v(e.to,t),o=i[0]<=r[0]?1:0,a=i[0]<r[0]?0:1,l=i.concat(r),c=Math.abs(r[a]-i[o]),h=d.default.calculateTextDimensions(e.message,f(u));return e.wrap&&e.message&&(e.message=d.default.wrapLabel(e.message,Math.max(c+2*u.wrapPadding,u.width),f(u))),{width:Math.max(e.wrap?0:h.width+2*u.wrapPadding,c+2*u.wrapPadding,u.width),height:0,startx:i[o],stopx:r[a],starty:0,stopy:0,message:e.message,type:e.type,wrap:e.wrap,fromBounds:Math.min.apply(null,l),toBounds:Math.max.apply(null,l)}}(e,t),e.msgModel=r,r.startx&&r.stopx&&l.length>0&&l.forEach((function(i){if(n=i,r.startx===r.stopx){var o=t[e.from],s=t[e.to];n.from=Math.min(o.x-r.width/2,o.x-o.width/2,n.from),n.to=Math.max(s.x+r.width/2,s.x+o.width/2,n.to),n.width=Math.max(n.width,Math.abs(n.to-n.from))-u.labelBoxWidth}else n.from=Math.min(r.startx,n.from),n.to=Math.max(r.stopx,n.to),n.width=Math.max(n.width,r.width)-u.labelBoxWidth})))})),h.activations=[],o.logger.debug("Loop type widths:",a),a};t.default={bounds:h,drawActors:m,setConf:_,draw:w}},"./src/diagrams/sequence/styles.js": /*!*****************************************!*\ !*** ./src/diagrams/sequence/styles.js ***! \*****************************************/ @@ -246,31 +246,31 @@ /*!******************************************!*\ !*** ./src/diagrams/sequence/svgDraw.js ***! \******************************************/ -/*! exports provided: drawRect, drawText, drawLabel, drawActor, anchorElement, drawActivation, drawLoop, drawBackgroundRect, insertArrowHead, insertSequenceNumber, insertArrowCrossHead, getTextObj, getNoteRect, default */function(e,t,n){"use strict";n.r(t),n.d(t,"drawRect",(function(){return i})),n.d(t,"drawText",(function(){return o})),n.d(t,"drawLabel",(function(){return s})),n.d(t,"drawActor",(function(){return u})),n.d(t,"anchorElement",(function(){return l})),n.d(t,"drawActivation",(function(){return c})),n.d(t,"drawLoop",(function(){return d})),n.d(t,"drawBackgroundRect",(function(){return h})),n.d(t,"insertArrowHead",(function(){return f})),n.d(t,"insertSequenceNumber",(function(){return p})),n.d(t,"insertArrowCrossHead",(function(){return g})),n.d(t,"getTextObj",(function(){return m})),n.d(t,"getNoteRect",(function(){return _}));var r=n(/*! ../common/common */"./src/diagrams/common/common.js"),i=function(e,t){var n=e.append("rect");return n.attr("x",t.x),n.attr("y",t.y),n.attr("fill",t.fill),n.attr("stroke",t.stroke),n.attr("width",t.width),n.attr("height",t.height),n.attr("rx",t.rx),n.attr("ry",t.ry),void 0!==t.class&&n.attr("class",t.class),n},o=function(e,t){var n=0,i=0,o=t.wrap?t.text.split(r.default.lineBreakRegex):[t.text.replace(r.default.lineBreakRegex," ")],s=[],a=0,u=function(){return t.y};if(void 0!==t.valign&&void 0!==t.textMargin&&t.textMargin>0)switch(t.valign){case"top":case"start":u=function(){return Math.round(t.y+t.textMargin)};break;case"middle":case"center":u=function(){return Math.round(t.y+(n+i+t.textMargin)/2)};break;case"bottom":case"end":u=function(){return Math.round(t.y+(n+i+2*t.textMargin)-t.textMargin)}}if(void 0!==t.anchor&&void 0!==t.textMargin&&void 0!==t.width)switch(t.anchor){case"left":case"start":t.x=Math.round(t.x+t.textMargin),t.anchor="start",t.dominantBaseline="text-after-edge",t.alignmentBaseline="middle";break;case"middle":case"center":t.x=Math.round(t.x+t.width/2),t.anchor="middle",t.dominantBaseline="middle",t.alignmentBaseline="middle";break;case"right":case"end":t.x=Math.round(t.x+t.width-t.textMargin),t.anchor="end",t.dominantBaseline="text-before-edge",t.alignmentBaseline="middle"}for(var l=0;l<o.length;l++){var c=o[l];void 0!==t.textMargin&&0===t.textMargin&&void 0!==t.fontSize&&(a=l*t.fontSize);var d=e.append("text");if(d.attr("x",t.x),d.attr("y",u()),void 0!==t.anchor&&d.attr("text-anchor",t.anchor).attr("dominant-baseline",t.dominantBaseline).attr("alignment-baseline",t.alignmentBaseline),void 0!==t.fontFamily&&d.style("font-family",t.fontFamily),void 0!==t.fontSize&&d.style("font-size",t.fontSize),void 0!==t.fontWeight&&d.style("font-weight",t.fontWeight),void 0!==t.fill&&d.attr("fill",t.fill),void 0!==t.class&&d.attr("class",t.class),void 0!==t.dy?d.attr("dy",t.dy):0!==a&&d.attr("dy",a),t.tspan){var h=d.append("tspan");h.attr("x",t.x),void 0!==t.fill&&h.attr("fill",t.fill),h.text(c)}else d.text(c);void 0!==t.valign&&void 0!==t.textMargin&&t.textMargin>0&&(i+=(d._groups||d)[0][0].getBBox().height,n=i),s.push(d)}return s},s=function(e,t){var n,r,i,s,a,u=e.append("polygon");return u.attr("points",(n=t.x,r=t.y,i=t.width,s=t.height,n+","+r+" "+(n+i)+","+r+" "+(n+i)+","+(r+s-(a=7))+" "+(n+i-1.2*a)+","+(r+s)+" "+n+","+(r+s))),u.attr("class","labelBox"),t.y=t.y+t.height/2,o(e,t),u},a=-1,u=function(e,t,n){var r=t.x+t.width/2,o=e.append("g");0===t.y&&(a++,o.append("line").attr("id","actor"+a).attr("x1",r).attr("y1",5).attr("x2",r).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"));var s=_();s.x=t.x,s.y=t.y,s.fill="#eaeaea",s.width=t.width,s.height=t.height,s.class="actor",s.rx=3,s.ry=3,i(o,s),y(n)(t.description,o,s.x,s.y,s.width,s.height,{class:"actor"},n)},l=function(e){return e.append("g")},c=function(e,t,n,r,o){var s=_(),a=t.anchored;s.x=t.startx,s.y=t.starty,s.class="activation"+o%3,s.width=t.stopx-t.startx,s.height=n-t.starty,i(a,s)},d=function(e,t,n,r){var i=r.boxMargin,a=r.boxTextMargin,u=r.labelBoxHeight,l=r.labelBoxWidth,c=r.messageFontFamily,d=r.messageFontSize,h=r.messageFontWeight,f=e.append("g"),p=function(e,t,n,r){return f.append("line").attr("x1",e).attr("y1",t).attr("x2",n).attr("y2",r).attr("class","loopLine")};p(t.startx,t.starty,t.stopx,t.starty),p(t.stopx,t.starty,t.stopx,t.stopy),p(t.startx,t.stopy,t.stopx,t.stopy),p(t.startx,t.starty,t.startx,t.stopy),void 0!==t.sections&&t.sections.forEach((function(e){p(t.startx,e.y,t.stopx,e.y).style("stroke-dasharray","3, 3")}));var g=m();g.text=n,g.x=t.startx,g.y=t.starty,g.fontFamily=c,g.fontSize=d,g.fontWeight=h,g.anchor="middle",g.valign="middle",g.tspan=!1,g.width=l||50,g.height=u||20,g.textMargin=a,g.class="labelText",s(f,g),(g=m()).text=t.title,g.x=t.startx+l/2+(t.stopx-t.startx)/2,g.y=t.starty+i+a,g.anchor="middle",g.valign="middle",g.textMargin=a,g.class="loopText",g.fontFamily=c,g.fontSize=d,g.fontWeight=h,g.wrap=!0;var _=o(f,g);return void 0!==t.sectionTitles&&t.sectionTitles.forEach((function(e,n){if(e.message){g.text=e.message,g.x=t.startx+(t.stopx-t.startx)/2,g.y=t.sections[n].y+i+a,g.class="loopText",g.anchor="middle",g.valign="middle",g.tspan=!1,g.fontFamily=c,g.fontSize=d,g.fontWeight=h,g.wrap=t.wrap,_=o(f,g);var r=Math.round(_.map((function(e){return(e._groups||e)[0][0].getBBox().height})).reduce((function(e,t){return e+t})));t.sections[n].height+=r-(i+a)}})),t.height=Math.round(t.stopy-t.starty),f},h=function(e,t){i(e,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,class:"rect"}).lower()},f=function(e){e.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},p=function(e){e.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},g=function(e){var t=e.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);t.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),t.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")},m=function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},_=function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},y=function(){function e(e,t,n,r,o,s,a){i(t.append("text").attr("x",n+o/2).attr("y",r+s/2+5).style("text-anchor","middle").text(e),a)}function t(e,t,n,o,s,a,u,l){for(var c=l.actorFontSize,d=l.actorFontFamily,h=l.actorFontWeight,f=e.split(r.default.lineBreakRegex),p=0;p<f.length;p++){var g=p*c-c*(f.length-1)/2,m=t.append("text").attr("x",n+s/2).attr("y",o).style("text-anchor","middle").style("font-size",c).style("font-weight",h).style("font-family",d);m.append("tspan").attr("x",n+s/2).attr("dy",g).text(f[p]),m.attr("y",o+a/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),i(m,u)}}function n(e,n,r,o,s,a,u,l){var c=n.append("switch"),d=c.append("foreignObject").attr("x",r).attr("y",o).attr("width",s).attr("height",a).append("div").style("display","table").style("height","100%").style("width","100%");d.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(e),t(e,c,r,o,s,a,u,l),i(d,u)}function i(e,t){for(var n in t)t.hasOwnProperty(n)&&e.attr(n,t[n])}return function(r){return"fo"===r.textPlacement?n:"old"===r.textPlacement?e:t}}();t.default={drawRect:i,drawText:o,drawLabel:s,drawActor:u,anchorElement:l,drawActivation:c,drawLoop:d,drawBackgroundRect:h,insertArrowHead:f,insertSequenceNumber:p,insertArrowCrossHead:g,getTextObj:m,getNoteRect:_}},"./src/diagrams/state/id-cache.js": +/*! exports provided: drawRect, drawText, drawLabel, drawActor, anchorElement, drawActivation, drawLoop, drawBackgroundRect, insertArrowHead, insertSequenceNumber, insertArrowCrossHead, getTextObj, getNoteRect, default */function(e,t,n){"use strict";n.r(t),n.d(t,"drawRect",(function(){return r})),n.d(t,"drawText",(function(){return o})),n.d(t,"drawLabel",(function(){return s})),n.d(t,"drawActor",(function(){return l})),n.d(t,"anchorElement",(function(){return c})),n.d(t,"drawActivation",(function(){return d})),n.d(t,"drawLoop",(function(){return u})),n.d(t,"drawBackgroundRect",(function(){return h})),n.d(t,"insertArrowHead",(function(){return f})),n.d(t,"insertSequenceNumber",(function(){return g})),n.d(t,"insertArrowCrossHead",(function(){return p})),n.d(t,"getTextObj",(function(){return m})),n.d(t,"getNoteRect",(function(){return _}));var i=n(/*! ../common/common */"./src/diagrams/common/common.js"),r=function(e,t){var n=e.append("rect");return n.attr("x",t.x),n.attr("y",t.y),n.attr("fill",t.fill),n.attr("stroke",t.stroke),n.attr("width",t.width),n.attr("height",t.height),n.attr("rx",t.rx),n.attr("ry",t.ry),void 0!==t.class&&n.attr("class",t.class),n},o=function(e,t){var n=0,r=0,o=t.wrap?t.text.split(i.default.lineBreakRegex):[t.text.replace(i.default.lineBreakRegex," ")],s=[],a=0,l=function(){return t.y};if(void 0!==t.valign&&void 0!==t.textMargin&&t.textMargin>0)switch(t.valign){case"top":case"start":l=function(){return Math.round(t.y+t.textMargin)};break;case"middle":case"center":l=function(){return Math.round(t.y+(n+r+t.textMargin)/2)};break;case"bottom":case"end":l=function(){return Math.round(t.y+(n+r+2*t.textMargin)-t.textMargin)}}if(void 0!==t.anchor&&void 0!==t.textMargin&&void 0!==t.width)switch(t.anchor){case"left":case"start":t.x=Math.round(t.x+t.textMargin),t.anchor="start",t.dominantBaseline="text-after-edge",t.alignmentBaseline="middle";break;case"middle":case"center":t.x=Math.round(t.x+t.width/2),t.anchor="middle",t.dominantBaseline="middle",t.alignmentBaseline="middle";break;case"right":case"end":t.x=Math.round(t.x+t.width-t.textMargin),t.anchor="end",t.dominantBaseline="text-before-edge",t.alignmentBaseline="middle"}for(var c=0;c<o.length;c++){var d=o[c];void 0!==t.textMargin&&0===t.textMargin&&void 0!==t.fontSize&&(a=c*t.fontSize);var u=e.append("text");if(u.attr("x",t.x),u.attr("y",l()),void 0!==t.anchor&&u.attr("text-anchor",t.anchor).attr("dominant-baseline",t.dominantBaseline).attr("alignment-baseline",t.alignmentBaseline),void 0!==t.fontFamily&&u.style("font-family",t.fontFamily),void 0!==t.fontSize&&u.style("font-size",t.fontSize),void 0!==t.fontWeight&&u.style("font-weight",t.fontWeight),void 0!==t.fill&&u.attr("fill",t.fill),void 0!==t.class&&u.attr("class",t.class),void 0!==t.dy?u.attr("dy",t.dy):0!==a&&u.attr("dy",a),t.tspan){var h=u.append("tspan");h.attr("x",t.x),void 0!==t.fill&&h.attr("fill",t.fill),h.text(d)}else u.text(d);void 0!==t.valign&&void 0!==t.textMargin&&t.textMargin>0&&(r+=(u._groups||u)[0][0].getBBox().height,n=r),s.push(u)}return s},s=function(e,t){var n,i,r,s,a,l=e.append("polygon");return l.attr("points",(n=t.x,i=t.y,r=t.width,s=t.height,n+","+i+" "+(n+r)+","+i+" "+(n+r)+","+(i+s-(a=7))+" "+(n+r-1.2*a)+","+(i+s)+" "+n+","+(i+s))),l.attr("class","labelBox"),t.y=t.y+t.height/2,o(e,t),l},a=-1,l=function(e,t,n){var i=t.x+t.width/2,o=e.append("g");0===t.y&&(a++,o.append("line").attr("id","actor"+a).attr("x1",i).attr("y1",5).attr("x2",i).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"));var s=_();s.x=t.x,s.y=t.y,s.fill="#eaeaea",s.width=t.width,s.height=t.height,s.class="actor",s.rx=3,s.ry=3,r(o,s),b(n)(t.description,o,s.x,s.y,s.width,s.height,{class:"actor"},n)},c=function(e){return e.append("g")},d=function(e,t,n,i,o){var s=_(),a=t.anchored;s.x=t.startx,s.y=t.starty,s.class="activation"+o%3,s.width=t.stopx-t.startx,s.height=n-t.starty,r(a,s)},u=function(e,t,n,i){var r=i.boxMargin,a=i.boxTextMargin,l=i.labelBoxHeight,c=i.labelBoxWidth,d=i.messageFontFamily,u=i.messageFontSize,h=i.messageFontWeight,f=e.append("g"),g=function(e,t,n,i){return f.append("line").attr("x1",e).attr("y1",t).attr("x2",n).attr("y2",i).attr("class","loopLine")};g(t.startx,t.starty,t.stopx,t.starty),g(t.stopx,t.starty,t.stopx,t.stopy),g(t.startx,t.stopy,t.stopx,t.stopy),g(t.startx,t.starty,t.startx,t.stopy),void 0!==t.sections&&t.sections.forEach((function(e){g(t.startx,e.y,t.stopx,e.y).style("stroke-dasharray","3, 3")}));var p=m();p.text=n,p.x=t.startx,p.y=t.starty,p.fontFamily=d,p.fontSize=u,p.fontWeight=h,p.anchor="middle",p.valign="middle",p.tspan=!1,p.width=c||50,p.height=l||20,p.textMargin=a,p.class="labelText",s(f,p),(p=m()).text=t.title,p.x=t.startx+c/2+(t.stopx-t.startx)/2,p.y=t.starty+r+a,p.anchor="middle",p.valign="middle",p.textMargin=a,p.class="loopText",p.fontFamily=d,p.fontSize=u,p.fontWeight=h,p.wrap=!0;var _=o(f,p);return void 0!==t.sectionTitles&&t.sectionTitles.forEach((function(e,n){if(e.message){p.text=e.message,p.x=t.startx+(t.stopx-t.startx)/2,p.y=t.sections[n].y+r+a,p.class="loopText",p.anchor="middle",p.valign="middle",p.tspan=!1,p.fontFamily=d,p.fontSize=u,p.fontWeight=h,p.wrap=t.wrap,_=o(f,p);var i=Math.round(_.map((function(e){return(e._groups||e)[0][0].getBBox().height})).reduce((function(e,t){return e+t})));t.sections[n].height+=i-(r+a)}})),t.height=Math.round(t.stopy-t.starty),f},h=function(e,t){r(e,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,class:"rect"}).lower()},f=function(e){e.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},g=function(e){e.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},p=function(e){var t=e.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);t.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),t.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")},m=function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},_=function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},b=function(){function e(e,t,n,i,o,s,a){r(t.append("text").attr("x",n+o/2).attr("y",i+s/2+5).style("text-anchor","middle").text(e),a)}function t(e,t,n,o,s,a,l,c){for(var d=c.actorFontSize,u=c.actorFontFamily,h=c.actorFontWeight,f=e.split(i.default.lineBreakRegex),g=0;g<f.length;g++){var p=g*d-d*(f.length-1)/2,m=t.append("text").attr("x",n+s/2).attr("y",o).style("text-anchor","middle").style("font-size",d).style("font-weight",h).style("font-family",u);m.append("tspan").attr("x",n+s/2).attr("dy",p).text(f[g]),m.attr("y",o+a/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),r(m,l)}}function n(e,n,i,o,s,a,l,c){var d=n.append("switch"),u=d.append("foreignObject").attr("x",i).attr("y",o).attr("width",s).attr("height",a).append("div").style("display","table").style("height","100%").style("width","100%");u.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(e),t(e,d,i,o,s,a,l,c),r(u,l)}function r(e,t){for(var n in t)t.hasOwnProperty(n)&&e.attr(n,t[n])}return function(i){return"fo"===i.textPlacement?n:"old"===i.textPlacement?e:t}}();t.default={drawRect:r,drawText:o,drawLabel:s,drawActor:l,anchorElement:c,drawActivation:d,drawLoop:u,drawBackgroundRect:h,insertArrowHead:f,insertSequenceNumber:g,insertArrowCrossHead:p,getTextObj:m,getNoteRect:_}},"./src/diagrams/state/id-cache.js": /*!****************************************!*\ !*** ./src/diagrams/state/id-cache.js ***! \****************************************/ -/*! exports provided: set, get, keys, size, default */function(e,t,n){"use strict";n.r(t),n.d(t,"set",(function(){return i})),n.d(t,"get",(function(){return o})),n.d(t,"keys",(function(){return s})),n.d(t,"size",(function(){return a}));var r={},i=function(e,t){r[e]=t},o=function(e){return r[e]},s=function(){return Object.keys(r)},a=function(){return s().length};t.default={get:o,set:i,keys:s,size:a}},"./src/diagrams/state/parser/stateDiagram.jison": +/*! exports provided: set, get, keys, size, default */function(e,t,n){"use strict";n.r(t),n.d(t,"set",(function(){return r})),n.d(t,"get",(function(){return o})),n.d(t,"keys",(function(){return s})),n.d(t,"size",(function(){return a}));var i={},r=function(e,t){i[e]=t},o=function(e){return i[e]},s=function(){return Object.keys(i)},a=function(){return s().length};t.default={get:o,set:r,keys:s,size:a}},"./src/diagrams/state/parser/stateDiagram.jison": /*!******************************************************!*\ !*** ./src/diagrams/state/parser/stateDiagram.jison ***! \******************************************************/ -/*! no static exports found */function(e,t,n){(function(e,r){var i=function(){var e=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},t=[1,2],n=[1,3],r=[1,5],i=[1,7],o=[2,5],s=[1,15],a=[1,17],u=[1,19],l=[1,20],c=[1,21],d=[1,22],h=[1,28],f=[1,23],p=[1,24],g=[1,25],m=[1,26],_=[1,29],y=[1,32],v=[1,4,5,14,15,17,19,20,22,23,24,25,26,36,39],b=[1,4,5,12,13,14,15,17,19,20,22,23,24,25,26,36,39],w=[1,4,5,7,14,15,17,19,20,22,23,24,25,26,36,39],C=[4,5,14,15,17,19,20,22,23,24,25,26,36,39],S={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,directive:6,SD:7,document:8,line:9,statement:10,idStatement:11,DESCR:12,"--\x3e":13,HIDE_EMPTY:14,scale:15,WIDTH:16,COMPOSIT_STATE:17,STRUCT_START:18,STRUCT_STOP:19,STATE_DESCR:20,AS:21,ID:22,FORK:23,JOIN:24,CONCURRENT:25,note:26,notePosition:27,NOTE_TEXT:28,openDirective:29,typeDirective:30,closeDirective:31,":":32,argDirective:33,eol:34,";":35,EDGE_STATE:36,left_of:37,right_of:38,open_directive:39,type_directive:40,arg_directive:41,close_directive:42,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",7:"SD",12:"DESCR",13:"--\x3e",14:"HIDE_EMPTY",15:"scale",16:"WIDTH",17:"COMPOSIT_STATE",18:"STRUCT_START",19:"STRUCT_STOP",20:"STATE_DESCR",21:"AS",22:"ID",23:"FORK",24:"JOIN",25:"CONCURRENT",26:"note",28:"NOTE_TEXT",32:":",35:";",36:"EDGE_STATE",37:"left_of",38:"right_of",39:"open_directive",40:"type_directive",41:"arg_directive",42:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[10,1],[10,2],[10,3],[10,4],[10,1],[10,2],[10,1],[10,4],[10,3],[10,6],[10,1],[10,1],[10,1],[10,4],[10,4],[10,1],[6,3],[6,5],[34,1],[34,1],[11,1],[11,1],[27,1],[27,1],[29,1],[30,1],[33,1],[31,1]],performAction:function(e,t,n,r,i,o,s){var a=o.length-1;switch(i){case 4:return r.setRootDoc(o[a]),o[a];case 5:this.$=[];break;case 6:"nl"!=o[a]&&(o[a-1].push(o[a]),this.$=o[a-1]);break;case 7:case 8:this.$=o[a];break;case 9:this.$="nl";break;case 10:this.$={stmt:"state",id:o[a],type:"default",description:""};break;case 11:this.$={stmt:"state",id:o[a-1],type:"default",description:r.trimColon(o[a])};break;case 12:this.$={stmt:"relation",state1:{stmt:"state",id:o[a-2],type:"default",description:""},state2:{stmt:"state",id:o[a],type:"default",description:""}};break;case 13:this.$={stmt:"relation",state1:{stmt:"state",id:o[a-3],type:"default",description:""},state2:{stmt:"state",id:o[a-1],type:"default",description:""},description:o[a].substr(1).trim()};break;case 17:this.$={stmt:"state",id:o[a-3],type:"default",description:"",doc:o[a-1]};break;case 18:var u=o[a],l=o[a-2].trim();if(o[a].match(":")){var c=o[a].split(":");u=c[0],l=[l,c[1]]}this.$={stmt:"state",id:u,type:"default",description:l};break;case 19:this.$={stmt:"state",id:o[a-3],type:"default",description:o[a-5],doc:o[a-1]};break;case 20:this.$={stmt:"state",id:o[a],type:"fork"};break;case 21:this.$={stmt:"state",id:o[a],type:"join"};break;case 22:this.$={stmt:"state",id:r.getDividerId(),type:"divider"};break;case 23:this.$={stmt:"state",id:o[a-1].trim(),note:{position:o[a-2].trim(),text:o[a].trim()}};break;case 30:case 31:this.$=o[a];break;case 34:r.parseDirective("%%{","open_directive");break;case 35:r.parseDirective(o[a],"type_directive");break;case 36:o[a]=o[a].trim().replace(/'/g,'"'),r.parseDirective(o[a],"arg_directive");break;case 37:r.parseDirective("}%%","close_directive","state")}},table:[{3:1,4:t,5:n,6:4,7:r,29:6,39:i},{1:[3]},{3:8,4:t,5:n,6:4,7:r,29:6,39:i},{3:9,4:t,5:n,6:4,7:r,29:6,39:i},{3:10,4:t,5:n,6:4,7:r,29:6,39:i},e([1,4,5,14,15,17,20,22,23,24,25,26,36,39],o,{8:11}),{30:12,40:[1,13]},{40:[2,34]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:s,5:a,6:27,9:14,10:16,11:18,14:u,15:l,17:c,20:d,22:h,23:f,24:p,25:g,26:m,29:6,36:_,39:i},{31:30,32:[1,31],42:y},e([32,42],[2,35]),e(v,[2,6]),{6:27,10:33,11:18,14:u,15:l,17:c,20:d,22:h,23:f,24:p,25:g,26:m,29:6,36:_,39:i},e(v,[2,8]),e(v,[2,9]),e(v,[2,10],{12:[1,34],13:[1,35]}),e(v,[2,14]),{16:[1,36]},e(v,[2,16],{18:[1,37]}),{21:[1,38]},e(v,[2,20]),e(v,[2,21]),e(v,[2,22]),{27:39,28:[1,40],37:[1,41],38:[1,42]},e(v,[2,25]),e(b,[2,30]),e(b,[2,31]),e(w,[2,26]),{33:43,41:[1,44]},e(w,[2,37]),e(v,[2,7]),e(v,[2,11]),{11:45,22:h,36:_},e(v,[2,15]),e(C,o,{8:46}),{22:[1,47]},{22:[1,48]},{21:[1,49]},{22:[2,32]},{22:[2,33]},{31:50,42:y},{42:[2,36]},e(v,[2,12],{12:[1,51]}),{4:s,5:a,6:27,9:14,10:16,11:18,14:u,15:l,17:c,19:[1,52],20:d,22:h,23:f,24:p,25:g,26:m,29:6,36:_,39:i},e(v,[2,18],{18:[1,53]}),{28:[1,54]},{22:[1,55]},e(w,[2,27]),e(v,[2,13]),e(v,[2,17]),e(C,o,{8:56}),e(v,[2,23]),e(v,[2,24]),{4:s,5:a,6:27,9:14,10:16,11:18,14:u,15:l,17:c,19:[1,57],20:d,22:h,23:f,24:p,25:g,26:m,29:6,36:_,39:i},e(v,[2,19])],defaultActions:{7:[2,34],8:[2,1],9:[2,2],10:[2,3],41:[2,32],42:[2,33],44:[2,36]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],r=[],i=[null],o=[],s=this.table,a="",u=0,l=0,c=0,d=2,h=1,f=o.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var m in this.yy)Object.prototype.hasOwnProperty.call(this.yy,m)&&(g.yy[m]=this.yy[m]);p.setInput(e,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var _=p.yylloc;o.push(_);var y=p.options&&p.options.ranges;function v(){var e;return"number"!=typeof(e=r.pop()||p.lex()||h)&&(e instanceof Array&&(e=(r=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,w,C,S,x,L,k,M,D,E={};;){if(C=n[n.length-1],this.defaultActions[C]?S=this.defaultActions[C]:(null==b&&(b=v()),S=s[C]&&s[C][b]),void 0===S||!S.length||!S[0]){var T="";for(L in D=[],s[C])this.terminals_[L]&&L>d&&D.push("'"+this.terminals_[L]+"'");T=p.showPosition?"Parse error on line "+(u+1)+":\n"+p.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(u+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(T,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:_,expected:D})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+b);switch(S[0]){case 1:n.push(b),i.push(p.yytext),o.push(p.yylloc),n.push(S[1]),b=null,w?(b=w,w=null):(l=p.yyleng,a=p.yytext,u=p.yylineno,_=p.yylloc,c>0&&c--);break;case 2:if(k=this.productions_[S[1]][1],E.$=i[i.length-k],E._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(E._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),void 0!==(x=this.performAction.apply(E,[a,l,u,g.yy,S[1],i,o].concat(f))))return x;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),o=o.slice(0,-1*k)),n.push(this.productions_[S[1]][0]),i.push(E.$),o.push(E._$),M=s[n[n.length-2]][n[n.length-1]],n.push(M);break;case 3:return!0}}return!0}},x={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;o<i.length;o++)if((n=this._input.match(this.rules[i[o]]))&&(!t||n[0].length>t[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return this.begin("open_directive"),39;case 1:return this.begin("type_directive"),40;case 2:return this.popState(),this.begin("arg_directive"),32;case 3:return this.popState(),this.popState(),42;case 4:return 41;case 5:break;case 6:console.log("Crap after close");break;case 7:return 5;case 8:case 9:case 10:case 11:break;case 12:return this.pushState("SCALE"),15;case 13:return 16;case 14:this.popState();break;case 15:this.pushState("STATE");break;case 16:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),23;case 17:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),24;case 18:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),23;case 19:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),24;case 20:this.begin("STATE_STRING");break;case 21:return this.popState(),this.pushState("STATE_ID"),"AS";case 22:return this.popState(),"ID";case 23:this.popState();break;case 24:return"STATE_DESCR";case 25:return 17;case 26:this.popState();break;case 27:return this.popState(),this.pushState("struct"),18;case 28:return this.popState(),19;case 29:break;case 30:return this.begin("NOTE"),26;case 31:return this.popState(),this.pushState("NOTE_ID"),37;case 32:return this.popState(),this.pushState("NOTE_ID"),38;case 33:this.popState(),this.pushState("FLOATING_NOTE");break;case 34:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 35:break;case 36:return"NOTE_TEXT";case 37:return this.popState(),"ID";case 38:return this.popState(),this.pushState("NOTE_TEXT"),22;case 39:return this.popState(),t.yytext=t.yytext.substr(2).trim(),28;case 40:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),28;case 41:case 42:return 7;case 43:return 14;case 44:return 36;case 45:return 22;case 46:return t.yytext=t.yytext.trim(),12;case 47:return 13;case 48:return 25;case 49:return 5;case 50:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[9,10],inclusive:!1},close_directive:{rules:[9,10],inclusive:!1},arg_directive:{rules:[3,4,9,10],inclusive:!1},type_directive:{rules:[2,3,9,10],inclusive:!1},open_directive:{rules:[1,9,10],inclusive:!1},struct:{rules:[9,10,15,28,29,30,44,45,46,47,48],inclusive:!1},FLOATING_NOTE_ID:{rules:[37],inclusive:!1},FLOATING_NOTE:{rules:[34,35,36],inclusive:!1},NOTE_TEXT:{rules:[39,40],inclusive:!1},NOTE_ID:{rules:[38],inclusive:!1},NOTE:{rules:[31,32,33],inclusive:!1},SCALE:{rules:[13,14],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[22],inclusive:!1},STATE_STRING:{rules:[23,24],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[9,10,16,17,18,19,20,21,25,26,27],inclusive:!1},ID:{rules:[9,10],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,10,11,12,15,27,30,41,42,43,44,45,46,47,49,50],inclusive:!0}}};function L(){this.yy={}}return S.lexer=x,L.prototype=S,S.Parser=L,new L}();t.parser=i,t.Parser=i.Parser,t.parse=function(){return i.parse.apply(i,arguments)},t.main=function(r){r[1]||(console.log("Usage: "+r[0]+" FILE"),e.exit(1));var i=n(/*! fs */"./node_modules/node-libs-browser/mock/empty.js").readFileSync(n(/*! path */"./node_modules/path-browserify/index.js").normalize(r[1]),"utf8");return t.parser.parse(i)},n.c[n.s]===r&&t.main(e.argv.slice(1))}).call(this,n(/*! ./../../../../node_modules/process/browser.js */"./node_modules/process/browser.js"),n(/*! ./../../../../node_modules/webpack/buildin/module.js */"./node_modules/webpack/buildin/module.js")(e))},"./src/diagrams/state/shapes.js": +/*! no static exports found */function(e,t,n){(function(e,i){var r=function(){var e=function(e,t,n,i){for(n=n||{},i=e.length;i--;n[e[i]]=t);return n},t=[1,2],n=[1,3],i=[1,5],r=[1,7],o=[2,5],s=[1,15],a=[1,17],l=[1,19],c=[1,20],d=[1,21],u=[1,22],h=[1,28],f=[1,23],g=[1,24],p=[1,25],m=[1,26],_=[1,29],b=[1,32],v=[1,4,5,14,15,17,19,20,22,23,24,25,26,36,39],y=[1,4,5,12,13,14,15,17,19,20,22,23,24,25,26,36,39],w=[1,4,5,7,14,15,17,19,20,22,23,24,25,26,36,39],C=[4,5,14,15,17,19,20,22,23,24,25,26,36,39],S={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,directive:6,SD:7,document:8,line:9,statement:10,idStatement:11,DESCR:12,"--\x3e":13,HIDE_EMPTY:14,scale:15,WIDTH:16,COMPOSIT_STATE:17,STRUCT_START:18,STRUCT_STOP:19,STATE_DESCR:20,AS:21,ID:22,FORK:23,JOIN:24,CONCURRENT:25,note:26,notePosition:27,NOTE_TEXT:28,openDirective:29,typeDirective:30,closeDirective:31,":":32,argDirective:33,eol:34,";":35,EDGE_STATE:36,left_of:37,right_of:38,open_directive:39,type_directive:40,arg_directive:41,close_directive:42,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",7:"SD",12:"DESCR",13:"--\x3e",14:"HIDE_EMPTY",15:"scale",16:"WIDTH",17:"COMPOSIT_STATE",18:"STRUCT_START",19:"STRUCT_STOP",20:"STATE_DESCR",21:"AS",22:"ID",23:"FORK",24:"JOIN",25:"CONCURRENT",26:"note",28:"NOTE_TEXT",32:":",35:";",36:"EDGE_STATE",37:"left_of",38:"right_of",39:"open_directive",40:"type_directive",41:"arg_directive",42:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[10,1],[10,2],[10,3],[10,4],[10,1],[10,2],[10,1],[10,4],[10,3],[10,6],[10,1],[10,1],[10,1],[10,4],[10,4],[10,1],[6,3],[6,5],[34,1],[34,1],[11,1],[11,1],[27,1],[27,1],[29,1],[30,1],[33,1],[31,1]],performAction:function(e,t,n,i,r,o,s){var a=o.length-1;switch(r){case 4:return i.setRootDoc(o[a]),o[a];case 5:this.$=[];break;case 6:"nl"!=o[a]&&(o[a-1].push(o[a]),this.$=o[a-1]);break;case 7:case 8:this.$=o[a];break;case 9:this.$="nl";break;case 10:this.$={stmt:"state",id:o[a],type:"default",description:""};break;case 11:this.$={stmt:"state",id:o[a-1],type:"default",description:i.trimColon(o[a])};break;case 12:this.$={stmt:"relation",state1:{stmt:"state",id:o[a-2],type:"default",description:""},state2:{stmt:"state",id:o[a],type:"default",description:""}};break;case 13:this.$={stmt:"relation",state1:{stmt:"state",id:o[a-3],type:"default",description:""},state2:{stmt:"state",id:o[a-1],type:"default",description:""},description:o[a].substr(1).trim()};break;case 17:this.$={stmt:"state",id:o[a-3],type:"default",description:"",doc:o[a-1]};break;case 18:var l=o[a],c=o[a-2].trim();if(o[a].match(":")){var d=o[a].split(":");l=d[0],c=[c,d[1]]}this.$={stmt:"state",id:l,type:"default",description:c};break;case 19:this.$={stmt:"state",id:o[a-3],type:"default",description:o[a-5],doc:o[a-1]};break;case 20:this.$={stmt:"state",id:o[a],type:"fork"};break;case 21:this.$={stmt:"state",id:o[a],type:"join"};break;case 22:this.$={stmt:"state",id:i.getDividerId(),type:"divider"};break;case 23:this.$={stmt:"state",id:o[a-1].trim(),note:{position:o[a-2].trim(),text:o[a].trim()}};break;case 30:case 31:this.$=o[a];break;case 34:i.parseDirective("%%{","open_directive");break;case 35:i.parseDirective(o[a],"type_directive");break;case 36:o[a]=o[a].trim().replace(/'/g,'"'),i.parseDirective(o[a],"arg_directive");break;case 37:i.parseDirective("}%%","close_directive","state")}},table:[{3:1,4:t,5:n,6:4,7:i,29:6,39:r},{1:[3]},{3:8,4:t,5:n,6:4,7:i,29:6,39:r},{3:9,4:t,5:n,6:4,7:i,29:6,39:r},{3:10,4:t,5:n,6:4,7:i,29:6,39:r},e([1,4,5,14,15,17,20,22,23,24,25,26,36,39],o,{8:11}),{30:12,40:[1,13]},{40:[2,34]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:s,5:a,6:27,9:14,10:16,11:18,14:l,15:c,17:d,20:u,22:h,23:f,24:g,25:p,26:m,29:6,36:_,39:r},{31:30,32:[1,31],42:b},e([32,42],[2,35]),e(v,[2,6]),{6:27,10:33,11:18,14:l,15:c,17:d,20:u,22:h,23:f,24:g,25:p,26:m,29:6,36:_,39:r},e(v,[2,8]),e(v,[2,9]),e(v,[2,10],{12:[1,34],13:[1,35]}),e(v,[2,14]),{16:[1,36]},e(v,[2,16],{18:[1,37]}),{21:[1,38]},e(v,[2,20]),e(v,[2,21]),e(v,[2,22]),{27:39,28:[1,40],37:[1,41],38:[1,42]},e(v,[2,25]),e(y,[2,30]),e(y,[2,31]),e(w,[2,26]),{33:43,41:[1,44]},e(w,[2,37]),e(v,[2,7]),e(v,[2,11]),{11:45,22:h,36:_},e(v,[2,15]),e(C,o,{8:46}),{22:[1,47]},{22:[1,48]},{21:[1,49]},{22:[2,32]},{22:[2,33]},{31:50,42:b},{42:[2,36]},e(v,[2,12],{12:[1,51]}),{4:s,5:a,6:27,9:14,10:16,11:18,14:l,15:c,17:d,19:[1,52],20:u,22:h,23:f,24:g,25:p,26:m,29:6,36:_,39:r},e(v,[2,18],{18:[1,53]}),{28:[1,54]},{22:[1,55]},e(w,[2,27]),e(v,[2,13]),e(v,[2,17]),e(C,o,{8:56}),e(v,[2,23]),e(v,[2,24]),{4:s,5:a,6:27,9:14,10:16,11:18,14:l,15:c,17:d,19:[1,57],20:u,22:h,23:f,24:g,25:p,26:m,29:6,36:_,39:r},e(v,[2,19])],defaultActions:{7:[2,34],8:[2,1],9:[2,2],10:[2,3],41:[2,32],42:[2,33],44:[2,36]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],i=[],r=[null],o=[],s=this.table,a="",l=0,c=0,d=0,u=2,h=1,f=o.slice.call(arguments,1),g=Object.create(this.lexer),p={yy:{}};for(var m in this.yy)Object.prototype.hasOwnProperty.call(this.yy,m)&&(p.yy[m]=this.yy[m]);g.setInput(e,p.yy),p.yy.lexer=g,p.yy.parser=this,void 0===g.yylloc&&(g.yylloc={});var _=g.yylloc;o.push(_);var b=g.options&&g.options.ranges;function v(){var e;return"number"!=typeof(e=i.pop()||g.lex()||h)&&(e instanceof Array&&(e=(i=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var y,w,C,S,k,x,L,M,D,E={};;){if(C=n[n.length-1],this.defaultActions[C]?S=this.defaultActions[C]:(null==y&&(y=v()),S=s[C]&&s[C][y]),void 0===S||!S.length||!S[0]){var T="";for(x in D=[],s[C])this.terminals_[x]&&x>u&&D.push("'"+this.terminals_[x]+"'");T=g.showPosition?"Parse error on line "+(l+1)+":\n"+g.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[y]||y)+"'":"Parse error on line "+(l+1)+": Unexpected "+(y==h?"end of input":"'"+(this.terminals_[y]||y)+"'"),this.parseError(T,{text:g.match,token:this.terminals_[y]||y,line:g.yylineno,loc:_,expected:D})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+y);switch(S[0]){case 1:n.push(y),r.push(g.yytext),o.push(g.yylloc),n.push(S[1]),y=null,w?(y=w,w=null):(c=g.yyleng,a=g.yytext,l=g.yylineno,_=g.yylloc,d>0&&d--);break;case 2:if(L=this.productions_[S[1]][1],E.$=r[r.length-L],E._$={first_line:o[o.length-(L||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(L||1)].first_column,last_column:o[o.length-1].last_column},b&&(E._$.range=[o[o.length-(L||1)].range[0],o[o.length-1].range[1]]),void 0!==(k=this.performAction.apply(E,[a,c,l,p.yy,S[1],r,o].concat(f))))return k;L&&(n=n.slice(0,-1*L*2),r=r.slice(0,-1*L),o=o.slice(0,-1*L)),n.push(this.productions_[S[1]][0]),r.push(E.$),o.push(E._$),M=s[n[n.length-2]][n[n.length-1]],n.push(M);break;case 3:return!0}}return!0}},k={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in r)this[o]=r[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),o=0;o<r.length;o++)if((n=this._input.match(this.rules[r[o]]))&&(!t||n[0].length>t[0].length)){if(t=n,i=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,r[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,r[i]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,i){switch(n){case 0:return this.begin("open_directive"),39;case 1:return this.begin("type_directive"),40;case 2:return this.popState(),this.begin("arg_directive"),32;case 3:return this.popState(),this.popState(),42;case 4:return 41;case 5:break;case 6:console.log("Crap after close");break;case 7:return 5;case 8:case 9:case 10:case 11:break;case 12:return this.pushState("SCALE"),15;case 13:return 16;case 14:this.popState();break;case 15:this.pushState("STATE");break;case 16:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),23;case 17:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),24;case 18:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),23;case 19:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),24;case 20:this.begin("STATE_STRING");break;case 21:return this.popState(),this.pushState("STATE_ID"),"AS";case 22:return this.popState(),"ID";case 23:this.popState();break;case 24:return"STATE_DESCR";case 25:return 17;case 26:this.popState();break;case 27:return this.popState(),this.pushState("struct"),18;case 28:return this.popState(),19;case 29:break;case 30:return this.begin("NOTE"),26;case 31:return this.popState(),this.pushState("NOTE_ID"),37;case 32:return this.popState(),this.pushState("NOTE_ID"),38;case 33:this.popState(),this.pushState("FLOATING_NOTE");break;case 34:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 35:break;case 36:return"NOTE_TEXT";case 37:return this.popState(),"ID";case 38:return this.popState(),this.pushState("NOTE_TEXT"),22;case 39:return this.popState(),t.yytext=t.yytext.substr(2).trim(),28;case 40:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),28;case 41:case 42:return 7;case 43:return 14;case 44:return 36;case 45:return 22;case 46:return t.yytext=t.yytext.trim(),12;case 47:return 13;case 48:return 25;case 49:return 5;case 50:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[9,10],inclusive:!1},close_directive:{rules:[9,10],inclusive:!1},arg_directive:{rules:[3,4,9,10],inclusive:!1},type_directive:{rules:[2,3,9,10],inclusive:!1},open_directive:{rules:[1,9,10],inclusive:!1},struct:{rules:[9,10,15,28,29,30,44,45,46,47,48],inclusive:!1},FLOATING_NOTE_ID:{rules:[37],inclusive:!1},FLOATING_NOTE:{rules:[34,35,36],inclusive:!1},NOTE_TEXT:{rules:[39,40],inclusive:!1},NOTE_ID:{rules:[38],inclusive:!1},NOTE:{rules:[31,32,33],inclusive:!1},SCALE:{rules:[13,14],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[22],inclusive:!1},STATE_STRING:{rules:[23,24],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[9,10,16,17,18,19,20,21,25,26,27],inclusive:!1},ID:{rules:[9,10],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,10,11,12,15,27,30,41,42,43,44,45,46,47,49,50],inclusive:!0}}};function x(){this.yy={}}return S.lexer=k,x.prototype=S,S.Parser=x,new x}();t.parser=r,t.Parser=r.Parser,t.parse=function(){return r.parse.apply(r,arguments)},t.main=function(i){i[1]||(console.log("Usage: "+i[0]+" FILE"),e.exit(1));var r=n(/*! fs */"./node_modules/node-libs-browser/mock/empty.js").readFileSync(n(/*! path */"./node_modules/path-browserify/index.js").normalize(i[1]),"utf8");return t.parser.parse(r)},n.c[n.s]===i&&t.main(e.argv.slice(1))}).call(this,n(/*! ./../../../../node_modules/process/browser.js */"./node_modules/process/browser.js"),n(/*! ./../../../../node_modules/webpack/buildin/module.js */"./node_modules/webpack/buildin/module.js")(e))},"./src/diagrams/state/shapes.js": /*!**************************************!*\ !*** ./src/diagrams/state/shapes.js ***! \**************************************/ -/*! exports provided: drawStartState, drawDivider, drawSimpleState, drawDescrState, addTitleAndBox, drawText, drawNote, drawState, drawEdge */function(e,t,n){"use strict";n.r(t),n.d(t,"drawStartState",(function(){return c})),n.d(t,"drawDivider",(function(){return d})),n.d(t,"drawSimpleState",(function(){return h})),n.d(t,"drawDescrState",(function(){return f})),n.d(t,"addTitleAndBox",(function(){return p})),n.d(t,"drawText",(function(){return g})),n.d(t,"drawNote",(function(){return m})),n.d(t,"drawState",(function(){return _})),n.d(t,"drawEdge",(function(){return v}));var r=n(/*! d3 */"d3"),i=n(/*! ./id-cache.js */"./src/diagrams/state/id-cache.js"),o=n(/*! ./stateDb */"./src/diagrams/state/stateDb.js"),s=n(/*! ../../utils */"./src/utils.js"),a=n(/*! ../common/common */"./src/diagrams/common/common.js"),u=n(/*! ../../config */"./src/config.js"),l=n(/*! ../../logger */"./src/logger.js"),c=function(e){return e.append("circle").attr("class","start-state").attr("r",Object(u.getConfig)().state.sizeUnit).attr("cx",Object(u.getConfig)().state.padding+Object(u.getConfig)().state.sizeUnit).attr("cy",Object(u.getConfig)().state.padding+Object(u.getConfig)().state.sizeUnit)},d=function(e){return e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",Object(u.getConfig)().state.textHeight).attr("class","divider").attr("x2",2*Object(u.getConfig)().state.textHeight).attr("y1",0).attr("y2",0)},h=function(e,t){var n=e.append("text").attr("x",2*Object(u.getConfig)().state.padding).attr("y",Object(u.getConfig)().state.textHeight+2*Object(u.getConfig)().state.padding).attr("font-size",Object(u.getConfig)().state.fontSize).attr("class","state-title").text(t.id),r=n.node().getBBox();return e.insert("rect",":first-child").attr("x",Object(u.getConfig)().state.padding).attr("y",Object(u.getConfig)().state.padding).attr("width",r.width+2*Object(u.getConfig)().state.padding).attr("height",r.height+2*Object(u.getConfig)().state.padding).attr("rx",Object(u.getConfig)().state.radius),n},f=function(e,t){var n=e.append("text").attr("x",2*Object(u.getConfig)().state.padding).attr("y",Object(u.getConfig)().state.textHeight+1.3*Object(u.getConfig)().state.padding).attr("font-size",Object(u.getConfig)().state.fontSize).attr("class","state-title").text(t.descriptions[0]).node().getBBox(),r=n.height,i=e.append("text").attr("x",Object(u.getConfig)().state.padding).attr("y",r+.4*Object(u.getConfig)().state.padding+Object(u.getConfig)().state.dividerMargin+Object(u.getConfig)().state.textHeight).attr("class","state-description"),o=!0,s=!0;t.descriptions.forEach((function(e){o||(function(e,t,n){var r=e.append("tspan").attr("x",2*Object(u.getConfig)().state.padding).text(t);n||r.attr("dy",Object(u.getConfig)().state.textHeight)}(i,e,s),s=!1),o=!1}));var a=e.append("line").attr("x1",Object(u.getConfig)().state.padding).attr("y1",Object(u.getConfig)().state.padding+r+Object(u.getConfig)().state.dividerMargin/2).attr("y2",Object(u.getConfig)().state.padding+r+Object(u.getConfig)().state.dividerMargin/2).attr("class","descr-divider"),l=i.node().getBBox(),c=Math.max(l.width,n.width);return a.attr("x2",c+3*Object(u.getConfig)().state.padding),e.insert("rect",":first-child").attr("x",Object(u.getConfig)().state.padding).attr("y",Object(u.getConfig)().state.padding).attr("width",c+2*Object(u.getConfig)().state.padding).attr("height",l.height+r+2*Object(u.getConfig)().state.padding).attr("rx",Object(u.getConfig)().state.radius),e},p=function(e,t,n){var r,i=Object(u.getConfig)().state.padding,o=2*Object(u.getConfig)().state.padding,s=e.node().getBBox(),a=s.width,l=s.x,c=e.append("text").attr("x",0).attr("y",Object(u.getConfig)().state.titleShift).attr("font-size",Object(u.getConfig)().state.fontSize).attr("class","state-title").text(t.id),d=c.node().getBBox().width+o,h=Math.max(d,a);h===a&&(h+=o);var f=e.node().getBBox();t.doc,r=l-i,d>a&&(r=(a-h)/2+i),Math.abs(l-f.x)<i&&d>a&&(r=l-(d-a)/2);var p=1-Object(u.getConfig)().state.textHeight;return e.insert("rect",":first-child").attr("x",r).attr("y",p).attr("class",n?"alt-composit":"composit").attr("width",h).attr("height",f.height+Object(u.getConfig)().state.textHeight+Object(u.getConfig)().state.titleShift+1).attr("rx","0"),c.attr("x",r+i),d<=a&&c.attr("x",l+(h-o)/2-d/2+i),e.insert("rect",":first-child").attr("x",r).attr("y",Object(u.getConfig)().state.titleShift-Object(u.getConfig)().state.textHeight-Object(u.getConfig)().state.padding).attr("width",h).attr("height",3*Object(u.getConfig)().state.textHeight).attr("rx",Object(u.getConfig)().state.radius),e.insert("rect",":first-child").attr("x",r).attr("y",Object(u.getConfig)().state.titleShift-Object(u.getConfig)().state.textHeight-Object(u.getConfig)().state.padding).attr("width",h).attr("height",f.height+3+2*Object(u.getConfig)().state.textHeight).attr("rx",Object(u.getConfig)().state.radius),e},g=function(e,t){var n=t.text.replace(a.default.lineBreakRegex," "),r=e.append("text");r.attr("x",t.x),r.attr("y",t.y),r.style("text-anchor",t.anchor),r.attr("fill",t.fill),void 0!==t.class&&r.attr("class",t.class);var i=r.append("tspan");return i.attr("x",t.x+2*t.textMargin),i.attr("fill",t.fill),i.text(n),r},m=function(e,t){t.attr("class","state-note");var n=t.append("rect").attr("x",0).attr("y",Object(u.getConfig)().state.padding),r=function(e,t,n,r){var i=0,o=r.append("text");o.style("text-anchor","start"),o.attr("class","noteText");var s=e.replace(/\r\n/g,"<br/>"),l=(s=s.replace(/\n/g,"<br/>")).split(a.default.lineBreakRegex),c=1.25*Object(u.getConfig)().state.noteMargin,d=!0,h=!1,f=void 0;try{for(var p,g=l[Symbol.iterator]();!(d=(p=g.next()).done);d=!0){var m=p.value.trim();if(m.length>0){var _=o.append("tspan");_.text(m),0===c&&(c+=_.node().getBBox().height),i+=c,_.attr("x",t+Object(u.getConfig)().state.noteMargin),_.attr("y",n+i+1.25*Object(u.getConfig)().state.noteMargin)}}}catch(e){h=!0,f=e}finally{try{d||null==g.return||g.return()}finally{if(h)throw f}}return{textWidth:o.node().getBBox().width,textHeight:i}}(e,0,0,t.append("g")),i=r.textWidth,o=r.textHeight;return n.attr("height",o+2*Object(u.getConfig)().state.noteMargin),n.attr("width",i+2*Object(u.getConfig)().state.noteMargin),n},_=function(e,t){var n=t.id,r={id:n,label:t.id,width:0,height:0},o=e.append("g").attr("id",n).attr("class","stateGroup");"start"===t.type&&c(o),"end"===t.type&&function(e){e.append("circle").attr("class","end-state-outer").attr("r",Object(u.getConfig)().state.sizeUnit+Object(u.getConfig)().state.miniPadding).attr("cx",Object(u.getConfig)().state.padding+Object(u.getConfig)().state.sizeUnit+Object(u.getConfig)().state.miniPadding).attr("cy",Object(u.getConfig)().state.padding+Object(u.getConfig)().state.sizeUnit+Object(u.getConfig)().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",Object(u.getConfig)().state.sizeUnit).attr("cx",Object(u.getConfig)().state.padding+Object(u.getConfig)().state.sizeUnit+2).attr("cy",Object(u.getConfig)().state.padding+Object(u.getConfig)().state.sizeUnit+2)}(o),"fork"!==t.type&&"join"!==t.type||function(e,t){var n=Object(u.getConfig)().state.forkWidth,r=Object(u.getConfig)().state.forkHeight;if(t.parentId){var i=n;n=r,r=i}e.append("rect").style("stroke","black").style("fill","black").attr("width",n).attr("height",r).attr("x",Object(u.getConfig)().state.padding).attr("y",Object(u.getConfig)().state.padding)}(o,t),"note"===t.type&&m(t.note.text,o),"divider"===t.type&&d(o),"default"===t.type&&0===t.descriptions.length&&h(o,t),"default"===t.type&&t.descriptions.length>0&&f(o,t);var s=o.node().getBBox();return r.width=s.width+2*Object(u.getConfig)().state.padding,r.height=s.height+2*Object(u.getConfig)().state.padding,i.default.set(n,r),r},y=0,v=function(e,t,n){t.points=t.points.filter((function(e){return!Number.isNaN(e.y)}));var i=t.points,c=Object(r.line)().x((function(e){return e.x})).y((function(e){return e.y})).curve(r.curveBasis),d=e.append("path").attr("d",c(i)).attr("id","edge"+y).attr("class","transition"),h="";if(Object(u.getConfig)().state.arrowMarkerAbsolute&&(h=(h=(h=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),d.attr("marker-end","url("+h+"#"+function(e){switch(e){case o.default.relationType.AGGREGATION:return"aggregation";case o.default.relationType.EXTENSION:return"extension";case o.default.relationType.COMPOSITION:return"composition";case o.default.relationType.DEPENDENCY:return"dependency"}}(o.default.relationType.DEPENDENCY)+"End)"),void 0!==n.title){for(var f=e.append("g").attr("class","stateLabel"),p=s.default.calcLabelPosition(t.points),g=p.x,m=p.y,_=a.default.getRows(n.title),v=0,b=[],w=0,C=0,S=0;S<=_.length;S++){var x=f.append("text").attr("text-anchor","middle").text(_[S]).attr("x",g).attr("y",m+v),L=x.node().getBBox();if(w=Math.max(w,L.width),C=Math.min(C,L.x),l.logger.info(L.x,g,m+v),0===v){var k=x.node().getBBox();v=k.height,l.logger.info("Title height",v,m)}b.push(x)}var M=v*_.length;if(_.length>1){var D=(_.length-1)*v*.5;b.forEach((function(e,t){return e.attr("y",m+t*v-D)})),M=v*_.length}var E=f.node().getBBox();f.insert("rect",":first-child").attr("class","box").attr("x",g-w/2-Object(u.getConfig)().state.padding/2).attr("y",m-M/2-Object(u.getConfig)().state.padding/2-3.5).attr("width",w+Object(u.getConfig)().state.padding).attr("height",M+Object(u.getConfig)().state.padding),l.logger.info(E)}y++}},"./src/diagrams/state/stateDb.js": +/*! exports provided: drawStartState, drawDivider, drawSimpleState, drawDescrState, addTitleAndBox, drawText, drawNote, drawState, drawEdge */function(e,t,n){"use strict";n.r(t),n.d(t,"drawStartState",(function(){return d})),n.d(t,"drawDivider",(function(){return u})),n.d(t,"drawSimpleState",(function(){return h})),n.d(t,"drawDescrState",(function(){return f})),n.d(t,"addTitleAndBox",(function(){return g})),n.d(t,"drawText",(function(){return p})),n.d(t,"drawNote",(function(){return m})),n.d(t,"drawState",(function(){return _})),n.d(t,"drawEdge",(function(){return v}));var i=n(/*! d3 */"d3"),r=n(/*! ./id-cache.js */"./src/diagrams/state/id-cache.js"),o=n(/*! ./stateDb */"./src/diagrams/state/stateDb.js"),s=n(/*! ../../utils */"./src/utils.js"),a=n(/*! ../common/common */"./src/diagrams/common/common.js"),l=n(/*! ../../config */"./src/config.js"),c=n(/*! ../../logger */"./src/logger.js"),d=function(e){return e.append("circle").attr("class","start-state").attr("r",Object(l.getConfig)().state.sizeUnit).attr("cx",Object(l.getConfig)().state.padding+Object(l.getConfig)().state.sizeUnit).attr("cy",Object(l.getConfig)().state.padding+Object(l.getConfig)().state.sizeUnit)},u=function(e){return e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",Object(l.getConfig)().state.textHeight).attr("class","divider").attr("x2",2*Object(l.getConfig)().state.textHeight).attr("y1",0).attr("y2",0)},h=function(e,t){var n=e.append("text").attr("x",2*Object(l.getConfig)().state.padding).attr("y",Object(l.getConfig)().state.textHeight+2*Object(l.getConfig)().state.padding).attr("font-size",Object(l.getConfig)().state.fontSize).attr("class","state-title").text(t.id),i=n.node().getBBox();return e.insert("rect",":first-child").attr("x",Object(l.getConfig)().state.padding).attr("y",Object(l.getConfig)().state.padding).attr("width",i.width+2*Object(l.getConfig)().state.padding).attr("height",i.height+2*Object(l.getConfig)().state.padding).attr("rx",Object(l.getConfig)().state.radius),n},f=function(e,t){var n=e.append("text").attr("x",2*Object(l.getConfig)().state.padding).attr("y",Object(l.getConfig)().state.textHeight+1.3*Object(l.getConfig)().state.padding).attr("font-size",Object(l.getConfig)().state.fontSize).attr("class","state-title").text(t.descriptions[0]).node().getBBox(),i=n.height,r=e.append("text").attr("x",Object(l.getConfig)().state.padding).attr("y",i+.4*Object(l.getConfig)().state.padding+Object(l.getConfig)().state.dividerMargin+Object(l.getConfig)().state.textHeight).attr("class","state-description"),o=!0,s=!0;t.descriptions.forEach((function(e){o||(function(e,t,n){var i=e.append("tspan").attr("x",2*Object(l.getConfig)().state.padding).text(t);n||i.attr("dy",Object(l.getConfig)().state.textHeight)}(r,e,s),s=!1),o=!1}));var a=e.append("line").attr("x1",Object(l.getConfig)().state.padding).attr("y1",Object(l.getConfig)().state.padding+i+Object(l.getConfig)().state.dividerMargin/2).attr("y2",Object(l.getConfig)().state.padding+i+Object(l.getConfig)().state.dividerMargin/2).attr("class","descr-divider"),c=r.node().getBBox(),d=Math.max(c.width,n.width);return a.attr("x2",d+3*Object(l.getConfig)().state.padding),e.insert("rect",":first-child").attr("x",Object(l.getConfig)().state.padding).attr("y",Object(l.getConfig)().state.padding).attr("width",d+2*Object(l.getConfig)().state.padding).attr("height",c.height+i+2*Object(l.getConfig)().state.padding).attr("rx",Object(l.getConfig)().state.radius),e},g=function(e,t,n){var i,r=Object(l.getConfig)().state.padding,o=2*Object(l.getConfig)().state.padding,s=e.node().getBBox(),a=s.width,c=s.x,d=e.append("text").attr("x",0).attr("y",Object(l.getConfig)().state.titleShift).attr("font-size",Object(l.getConfig)().state.fontSize).attr("class","state-title").text(t.id),u=d.node().getBBox().width+o,h=Math.max(u,a);h===a&&(h+=o);var f=e.node().getBBox();t.doc,i=c-r,u>a&&(i=(a-h)/2+r),Math.abs(c-f.x)<r&&u>a&&(i=c-(u-a)/2);var g=1-Object(l.getConfig)().state.textHeight;return e.insert("rect",":first-child").attr("x",i).attr("y",g).attr("class",n?"alt-composit":"composit").attr("width",h).attr("height",f.height+Object(l.getConfig)().state.textHeight+Object(l.getConfig)().state.titleShift+1).attr("rx","0"),d.attr("x",i+r),u<=a&&d.attr("x",c+(h-o)/2-u/2+r),e.insert("rect",":first-child").attr("x",i).attr("y",Object(l.getConfig)().state.titleShift-Object(l.getConfig)().state.textHeight-Object(l.getConfig)().state.padding).attr("width",h).attr("height",3*Object(l.getConfig)().state.textHeight).attr("rx",Object(l.getConfig)().state.radius),e.insert("rect",":first-child").attr("x",i).attr("y",Object(l.getConfig)().state.titleShift-Object(l.getConfig)().state.textHeight-Object(l.getConfig)().state.padding).attr("width",h).attr("height",f.height+3+2*Object(l.getConfig)().state.textHeight).attr("rx",Object(l.getConfig)().state.radius),e},p=function(e,t){var n=t.text.replace(a.default.lineBreakRegex," "),i=e.append("text");i.attr("x",t.x),i.attr("y",t.y),i.style("text-anchor",t.anchor),i.attr("fill",t.fill),void 0!==t.class&&i.attr("class",t.class);var r=i.append("tspan");return r.attr("x",t.x+2*t.textMargin),r.attr("fill",t.fill),r.text(n),i},m=function(e,t){t.attr("class","state-note");var n=t.append("rect").attr("x",0).attr("y",Object(l.getConfig)().state.padding),i=function(e,t,n,i){var r=0,o=i.append("text");o.style("text-anchor","start"),o.attr("class","noteText");var s=e.replace(/\r\n/g,"<br/>"),c=(s=s.replace(/\n/g,"<br/>")).split(a.default.lineBreakRegex),d=1.25*Object(l.getConfig)().state.noteMargin,u=!0,h=!1,f=void 0;try{for(var g,p=c[Symbol.iterator]();!(u=(g=p.next()).done);u=!0){var m=g.value.trim();if(m.length>0){var _=o.append("tspan");_.text(m),0===d&&(d+=_.node().getBBox().height),r+=d,_.attr("x",t+Object(l.getConfig)().state.noteMargin),_.attr("y",n+r+1.25*Object(l.getConfig)().state.noteMargin)}}}catch(e){h=!0,f=e}finally{try{u||null==p.return||p.return()}finally{if(h)throw f}}return{textWidth:o.node().getBBox().width,textHeight:r}}(e,0,0,t.append("g")),r=i.textWidth,o=i.textHeight;return n.attr("height",o+2*Object(l.getConfig)().state.noteMargin),n.attr("width",r+2*Object(l.getConfig)().state.noteMargin),n},_=function(e,t){var n=t.id,i={id:n,label:t.id,width:0,height:0},o=e.append("g").attr("id",n).attr("class","stateGroup");"start"===t.type&&d(o),"end"===t.type&&function(e){e.append("circle").attr("class","end-state-outer").attr("r",Object(l.getConfig)().state.sizeUnit+Object(l.getConfig)().state.miniPadding).attr("cx",Object(l.getConfig)().state.padding+Object(l.getConfig)().state.sizeUnit+Object(l.getConfig)().state.miniPadding).attr("cy",Object(l.getConfig)().state.padding+Object(l.getConfig)().state.sizeUnit+Object(l.getConfig)().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",Object(l.getConfig)().state.sizeUnit).attr("cx",Object(l.getConfig)().state.padding+Object(l.getConfig)().state.sizeUnit+2).attr("cy",Object(l.getConfig)().state.padding+Object(l.getConfig)().state.sizeUnit+2)}(o),"fork"!==t.type&&"join"!==t.type||function(e,t){var n=Object(l.getConfig)().state.forkWidth,i=Object(l.getConfig)().state.forkHeight;if(t.parentId){var r=n;n=i,i=r}e.append("rect").style("stroke","black").style("fill","black").attr("width",n).attr("height",i).attr("x",Object(l.getConfig)().state.padding).attr("y",Object(l.getConfig)().state.padding)}(o,t),"note"===t.type&&m(t.note.text,o),"divider"===t.type&&u(o),"default"===t.type&&0===t.descriptions.length&&h(o,t),"default"===t.type&&t.descriptions.length>0&&f(o,t);var s=o.node().getBBox();return i.width=s.width+2*Object(l.getConfig)().state.padding,i.height=s.height+2*Object(l.getConfig)().state.padding,r.default.set(n,i),i},b=0,v=function(e,t,n){t.points=t.points.filter((function(e){return!Number.isNaN(e.y)}));var r=t.points,d=Object(i.line)().x((function(e){return e.x})).y((function(e){return e.y})).curve(i.curveBasis),u=e.append("path").attr("d",d(r)).attr("id","edge"+b).attr("class","transition"),h="";if(Object(l.getConfig)().state.arrowMarkerAbsolute&&(h=(h=(h=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),u.attr("marker-end","url("+h+"#"+function(e){switch(e){case o.default.relationType.AGGREGATION:return"aggregation";case o.default.relationType.EXTENSION:return"extension";case o.default.relationType.COMPOSITION:return"composition";case o.default.relationType.DEPENDENCY:return"dependency"}}(o.default.relationType.DEPENDENCY)+"End)"),void 0!==n.title){for(var f=e.append("g").attr("class","stateLabel"),g=s.default.calcLabelPosition(t.points),p=g.x,m=g.y,_=a.default.getRows(n.title),v=0,y=[],w=0,C=0,S=0;S<=_.length;S++){var k=f.append("text").attr("text-anchor","middle").text(_[S]).attr("x",p).attr("y",m+v),x=k.node().getBBox();if(w=Math.max(w,x.width),C=Math.min(C,x.x),c.logger.info(x.x,p,m+v),0===v){var L=k.node().getBBox();v=L.height,c.logger.info("Title height",v,m)}y.push(k)}var M=v*_.length;if(_.length>1){var D=(_.length-1)*v*.5;y.forEach((function(e,t){return e.attr("y",m+t*v-D)})),M=v*_.length}var E=f.node().getBBox();f.insert("rect",":first-child").attr("class","box").attr("x",p-w/2-Object(l.getConfig)().state.padding/2).attr("y",m-M/2-Object(l.getConfig)().state.padding/2-3.5).attr("width",w+Object(l.getConfig)().state.padding).attr("height",M+Object(l.getConfig)().state.padding),c.logger.info(E)}b++}},"./src/diagrams/state/stateDb.js": /*!***************************************!*\ !*** ./src/diagrams/state/stateDb.js ***! \***************************************/ -/*! exports provided: parseDirective, addState, clear, getState, getStates, logDocuments, getRelations, addRelation, cleanupLabel, lineType, relationType, default */function(e,t,n){"use strict";n.r(t),n.d(t,"parseDirective",(function(){return c})),n.d(t,"addState",(function(){return p})),n.d(t,"clear",(function(){return g})),n.d(t,"getState",(function(){return m})),n.d(t,"getStates",(function(){return _})),n.d(t,"logDocuments",(function(){return y})),n.d(t,"getRelations",(function(){return v})),n.d(t,"addRelation",(function(){return b})),n.d(t,"cleanupLabel",(function(){return C})),n.d(t,"lineType",(function(){return S})),n.d(t,"relationType",(function(){return k}));var r=n(/*! ../../logger */"./src/logger.js"),i=n(/*! ../../utils */"./src/utils.js"),o=n(/*! ../../mermaidAPI */"./src/mermaidAPI.js"),s=n(/*! ../../config */"./src/config.js");function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var u=function(e){return JSON.parse(JSON.stringify(e))},l=[],c=function(e,t,n){o.default.parseDirective(this,e,t,n)},d={root:{relations:[],states:{},documents:{}}},h=d.root,f=0,p=function(e,t,n,i,o){void 0===h.states[e]?h.states[e]={id:e,descriptions:[],type:t,doc:n,note:o}:(h.states[e].doc||(h.states[e].doc=n),h.states[e].type||(h.states[e].type=t)),i&&(r.logger.info("Adding state ",e,i),"string"==typeof i&&w(e,i.trim()),"object"===a(i)&&i.forEach((function(t){return w(e,t.trim())}))),o&&(h.states[e].note=o)},g=function(){h=(d={root:{relations:[],states:{},documents:{}}}).root,h=d.root,f=0,L=[]},m=function(e){return h.states[e]},_=function(){return h.states},y=function(){r.logger.info("Documents = ",d)},v=function(){return h.relations},b=function(e,t,n){var r=e,i=t,o="default",s="default";"[*]"===e&&(r="start"+ ++f,o="start"),"[*]"===t&&(i="end"+f,s="end"),p(r,o),p(i,s),h.relations.push({id1:r,id2:i,title:n})},w=function(e,t){var n=h.states[e],r=t;":"===r[0]&&(r=r.substr(1).trim()),n.descriptions.push(r)},C=function(e){return":"===e.substring(0,1)?e.substr(2).trim():e.trim()},S={LINE:0,DOTTED_LINE:1},x=0,L=[],k={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3};t.default={parseDirective:c,getConfig:function(){return s.getConfig().state},addState:p,clear:g,getState:m,getStates:_,getRelations:v,getClasses:function(){return L},getDirection:function(){return"TB"},addRelation:b,getDividerId:function(){return"divider-id-"+ ++x},cleanupLabel:C,lineType:S,relationType:k,logDocuments:y,getRootDoc:function(){return l},setRootDoc:function(e){r.logger.info("Setting root doc",e),l=e},getRootDocV2:function(){return function e(t,n,r){if("relation"===n.stmt)e(t,n.state1,!0),e(t,n.state2,!1);else if("state"===n.stmt&&"[*]"===n.id&&(n.id=r?t.id+"_start":t.id+"_end",n.start=r),n.doc){var o=[],s=0,a=[];for(s=0;s<n.doc.length;s++)if("divider"===n.doc[s].type){var l=u(n.doc[s]);l.doc=u(a),o.push(l),a=[]}else a.push(n.doc[s]);if(o.length>0&&a.length>0){var c={stmt:"state",id:Object(i.generateId)(),type:"divider",doc:u(a)};o.push(u(c)),n.doc=o}n.doc.forEach((function(t){return e(n,t,!0)}))}}({id:"root"},{id:"root",doc:l},!0),{id:"root",doc:l}},extract:function(e){var t;t=e.doc?e.doc:e,r.logger.info(t),g(),r.logger.info("Extract",t),t.forEach((function(e){"state"===e.stmt&&p(e.id,e.type,e.doc,e.description,e.note),"relation"===e.stmt&&b(e.state1.id,e.state2.id,e.description)}))},trimColon:function(e){return e&&":"===e[0]?e.substr(1).trim():e.trim()}}},"./src/diagrams/state/stateRenderer-v2.js": +/*! exports provided: parseDirective, addState, clear, getState, getStates, logDocuments, getRelations, addRelation, cleanupLabel, lineType, relationType, default */function(e,t,n){"use strict";n.r(t),n.d(t,"parseDirective",(function(){return d})),n.d(t,"addState",(function(){return g})),n.d(t,"clear",(function(){return p})),n.d(t,"getState",(function(){return m})),n.d(t,"getStates",(function(){return _})),n.d(t,"logDocuments",(function(){return b})),n.d(t,"getRelations",(function(){return v})),n.d(t,"addRelation",(function(){return y})),n.d(t,"cleanupLabel",(function(){return C})),n.d(t,"lineType",(function(){return S})),n.d(t,"relationType",(function(){return L}));var i=n(/*! ../../logger */"./src/logger.js"),r=n(/*! ../../utils */"./src/utils.js"),o=n(/*! ../../mermaidAPI */"./src/mermaidAPI.js"),s=n(/*! ../../config */"./src/config.js");function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var l=function(e){return JSON.parse(JSON.stringify(e))},c=[],d=function(e,t,n){o.default.parseDirective(this,e,t,n)},u={root:{relations:[],states:{},documents:{}}},h=u.root,f=0,g=function(e,t,n,r,o){void 0===h.states[e]?h.states[e]={id:e,descriptions:[],type:t,doc:n,note:o}:(h.states[e].doc||(h.states[e].doc=n),h.states[e].type||(h.states[e].type=t)),r&&(i.logger.info("Adding state ",e,r),"string"==typeof r&&w(e,r.trim()),"object"===a(r)&&r.forEach((function(t){return w(e,t.trim())}))),o&&(h.states[e].note=o)},p=function(){h=(u={root:{relations:[],states:{},documents:{}}}).root,h=u.root,f=0,x=[]},m=function(e){return h.states[e]},_=function(){return h.states},b=function(){i.logger.info("Documents = ",u)},v=function(){return h.relations},y=function(e,t,n){var i=e,r=t,o="default",s="default";"[*]"===e&&(i="start"+ ++f,o="start"),"[*]"===t&&(r="end"+f,s="end"),g(i,o),g(r,s),h.relations.push({id1:i,id2:r,title:n})},w=function(e,t){var n=h.states[e],i=t;":"===i[0]&&(i=i.substr(1).trim()),n.descriptions.push(i)},C=function(e){return":"===e.substring(0,1)?e.substr(2).trim():e.trim()},S={LINE:0,DOTTED_LINE:1},k=0,x=[],L={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3};t.default={parseDirective:d,getConfig:function(){return s.getConfig().state},addState:g,clear:p,getState:m,getStates:_,getRelations:v,getClasses:function(){return x},getDirection:function(){return"TB"},addRelation:y,getDividerId:function(){return"divider-id-"+ ++k},cleanupLabel:C,lineType:S,relationType:L,logDocuments:b,getRootDoc:function(){return c},setRootDoc:function(e){i.logger.info("Setting root doc",e),c=e},getRootDocV2:function(){return function e(t,n,i){if("relation"===n.stmt)e(t,n.state1,!0),e(t,n.state2,!1);else if("state"===n.stmt&&"[*]"===n.id&&(n.id=i?t.id+"_start":t.id+"_end",n.start=i),n.doc){var o=[],s=0,a=[];for(s=0;s<n.doc.length;s++)if("divider"===n.doc[s].type){var c=l(n.doc[s]);c.doc=l(a),o.push(c),a=[]}else a.push(n.doc[s]);if(o.length>0&&a.length>0){var d={stmt:"state",id:Object(r.generateId)(),type:"divider",doc:l(a)};o.push(l(d)),n.doc=o}n.doc.forEach((function(t){return e(n,t,!0)}))}}({id:"root"},{id:"root",doc:c},!0),{id:"root",doc:c}},extract:function(e){var t;t=e.doc?e.doc:e,i.logger.info(t),p(),i.logger.info("Extract",t),t.forEach((function(e){"state"===e.stmt&&g(e.id,e.type,e.doc,e.description,e.note),"relation"===e.stmt&&y(e.state1.id,e.state2.id,e.description)}))},trimColon:function(e){return e&&":"===e[0]?e.substr(1).trim():e.trim()}}},"./src/diagrams/state/stateRenderer-v2.js": /*!************************************************!*\ !*** ./src/diagrams/state/stateRenderer-v2.js ***! \************************************************/ -/*! exports provided: setConf, getClasses, draw, default */function(e,t,n){"use strict";n.r(t),n.d(t,"setConf",(function(){return p})),n.d(t,"getClasses",(function(){return m})),n.d(t,"draw",(function(){return b}));var r=n(/*! graphlib */"graphlib"),i=n.n(r),o=n(/*! d3 */"d3"),s=n(/*! ./stateDb */"./src/diagrams/state/stateDb.js"),a=n(/*! ./parser/stateDiagram */"./src/diagrams/state/parser/stateDiagram.jison"),u=n.n(a),l=n(/*! ../../config */"./src/config.js"),c=n(/*! ../../dagre-wrapper/index.js */"./src/dagre-wrapper/index.js"),d=n(/*! ../../logger */"./src/logger.js"),h=n(/*! ../../utils */"./src/utils.js"),f={},p=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)f[t[n]]=e[t[n]]},g={},m=function(e){d.logger.trace("Extracting classes"),s.default.clear();var t=u.a.parser;return t.yy=s.default,t.parse(e),s.default.getClasses()},_=function(e,t,n,r){if("root"!==n.id){var i="rect";!0===n.start&&(i="start"),!1===n.start&&(i="end"),"default"!==n.type&&(i=n.type),g[n.id]||(g[n.id]={id:n.id,shape:i,description:n.id,classes:"statediagram-state"}),n.description&&(Array.isArray(g[n.id].description)?(g[n.id].shape="rectWithTitle",g[n.id].description.push(n.description)):g[n.id].description.length>0?(g[n.id].shape="rectWithTitle",g[n.id].description===n.id?g[n.id].description=[n.description]:g[n.id].description=[g[n.id].description,n.description]):(g[n.id].shape="rect",g[n.id].description=n.description)),!g[n.id].type&&n.doc&&(d.logger.info("Setting cluser for ",n.id),g[n.id].type="group",g[n.id].shape="divider"===n.type?"divider":"roundedWithTitle",g[n.id].classes=g[n.id].classes+" "+(r?"statediagram-cluster statediagram-cluster-alt":"statediagram-cluster"));var o={labelStyle:"",shape:g[n.id].shape,labelText:g[n.id].description,classes:g[n.id].classes,style:"",id:n.id,domId:"state-"+n.id+"-"+y,type:g[n.id].type,padding:15};if(n.note){var s={labelStyle:"",shape:"note",labelText:n.note.text,classes:"statediagram-note",style:"",id:n.id+"----note",domId:"state-"+n.id+"----note-"+y,type:g[n.id].type,padding:15},a={labelStyle:"",shape:"noteGroup",labelText:n.note.text,classes:g[n.id].classes,style:"",id:n.id+"----parent",domId:"state-"+n.id+"----parent-"+y,type:"group",padding:0};y++,e.setNode(n.id+"----parent",a),e.setNode(s.id,s),e.setNode(n.id,o),e.setParent(n.id,n.id+"----parent"),e.setParent(s.id,n.id+"----parent");var u=n.id,l=s.id;"left of"===n.note.position&&(u=s.id,l=n.id),e.setEdge(u,l,{arrowhead:"none",arrowType:"",style:"fill:none",labelStyle:"",classes:"transition note-edge",arrowheadStyle:"fill: #333",labelpos:"c",labelType:"text",thickness:"normal"})}else e.setNode(n.id,o)}t&&"root"!==t.id&&(d.logger.info("Setting node ",n.id," to be child of its parent ",t.id),e.setParent(n.id,t.id)),n.doc&&(d.logger.info("Adding nodes children "),v(e,n,n.doc,!r))},y=0,v=function(e,t,n,r){y=0,d.logger.trace("items",n),n.forEach((function(n){if("state"===n.stmt||"default"===n.stmt)_(e,t,n,r);else if("relation"===n.stmt){_(e,t,n.state1,r),_(e,t,n.state2,r);var i={id:"edge"+y,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:"fill:none",labelStyle:"",label:n.description,arrowheadStyle:"fill: #333",labelpos:"c",labelType:"text",thickness:"normal",classes:"transition"},o=n.state1.id,s=n.state2.id;e.setEdge(o,s,i,y),y++}}))},b=function(e,t){d.logger.info("Drawing state diagram (v2)",t),s.default.clear(),g={};var n=u.a.parser;n.yy=s.default,n.parse(e);var r=s.default.getDirection();void 0===r&&(r="LR");var a=Object(l.getConfig)().state,f=a.nodeSpacing||50,p=a.rankSpacing||50,m=new i.a.Graph({multigraph:!0,compound:!0}).setGraph({rankdir:"TB",nodesep:f,ranksep:p,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}}));d.logger.info(s.default.getRootDocV2()),s.default.extract(s.default.getRootDocV2()),d.logger.info(s.default.getRootDocV2()),_(m,void 0,s.default.getRootDocV2(),!0);var y=Object(o.select)('[id="'.concat(t,'"]')),v=Object(o.select)("#"+t+" g");Object(c.render)(v,m,["barb"],"statediagram",t);var b=y.node().getBBox(),w=b.width+16,C=b.height+16;y.attr("class","statediagram");var S=y.node().getBBox();Object(h.configureSvgSize)(y,C,1.75*w,a.useMaxWidth);var x="".concat(S.x-8," ").concat(S.y-8," ").concat(w," ").concat(C);if(d.logger.debug("viewBox ".concat(x)),y.attr("viewBox",x),!a.htmlLabels)for(var L=document.querySelectorAll('[id="'+t+'"] .edgeLabel .label'),k=0;k<L.length;k++){var M=L[k],D=M.getBBox(),E=document.createElementNS("http://www.w3.org/2000/svg","rect");E.setAttribute("rx",0),E.setAttribute("ry",0),E.setAttribute("width",D.width),E.setAttribute("height",D.height),M.insertBefore(E,M.firstChild)}};t.default={setConf:p,getClasses:m,draw:b}},"./src/diagrams/state/stateRenderer.js": +/*! exports provided: setConf, getClasses, draw, default */function(e,t,n){"use strict";n.r(t),n.d(t,"setConf",(function(){return g})),n.d(t,"getClasses",(function(){return m})),n.d(t,"draw",(function(){return y}));var i=n(/*! graphlib */"graphlib"),r=n.n(i),o=n(/*! d3 */"d3"),s=n(/*! ./stateDb */"./src/diagrams/state/stateDb.js"),a=n(/*! ./parser/stateDiagram */"./src/diagrams/state/parser/stateDiagram.jison"),l=n.n(a),c=n(/*! ../../config */"./src/config.js"),d=n(/*! ../../dagre-wrapper/index.js */"./src/dagre-wrapper/index.js"),u=n(/*! ../../logger */"./src/logger.js"),h=n(/*! ../../utils */"./src/utils.js"),f={},g=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)f[t[n]]=e[t[n]]},p={},m=function(e){u.logger.trace("Extracting classes"),s.default.clear();var t=l.a.parser;return t.yy=s.default,t.parse(e),s.default.getClasses()},_=function(e,t,n,i){if("root"!==n.id){var r="rect";!0===n.start&&(r="start"),!1===n.start&&(r="end"),"default"!==n.type&&(r=n.type),p[n.id]||(p[n.id]={id:n.id,shape:r,description:n.id,classes:"statediagram-state"}),n.description&&(Array.isArray(p[n.id].description)?(p[n.id].shape="rectWithTitle",p[n.id].description.push(n.description)):p[n.id].description.length>0?(p[n.id].shape="rectWithTitle",p[n.id].description===n.id?p[n.id].description=[n.description]:p[n.id].description=[p[n.id].description,n.description]):(p[n.id].shape="rect",p[n.id].description=n.description)),!p[n.id].type&&n.doc&&(u.logger.info("Setting cluser for ",n.id),p[n.id].type="group",p[n.id].shape="divider"===n.type?"divider":"roundedWithTitle",p[n.id].classes=p[n.id].classes+" "+(i?"statediagram-cluster statediagram-cluster-alt":"statediagram-cluster"));var o={labelStyle:"",shape:p[n.id].shape,labelText:p[n.id].description,classes:p[n.id].classes,style:"",id:n.id,domId:"state-"+n.id+"-"+b,type:p[n.id].type,padding:15};if(n.note){var s={labelStyle:"",shape:"note",labelText:n.note.text,classes:"statediagram-note",style:"",id:n.id+"----note",domId:"state-"+n.id+"----note-"+b,type:p[n.id].type,padding:15},a={labelStyle:"",shape:"noteGroup",labelText:n.note.text,classes:p[n.id].classes,style:"",id:n.id+"----parent",domId:"state-"+n.id+"----parent-"+b,type:"group",padding:0};b++,e.setNode(n.id+"----parent",a),e.setNode(s.id,s),e.setNode(n.id,o),e.setParent(n.id,n.id+"----parent"),e.setParent(s.id,n.id+"----parent");var l=n.id,c=s.id;"left of"===n.note.position&&(l=s.id,c=n.id),e.setEdge(l,c,{arrowhead:"none",arrowType:"",style:"fill:none",labelStyle:"",classes:"transition note-edge",arrowheadStyle:"fill: #333",labelpos:"c",labelType:"text",thickness:"normal"})}else e.setNode(n.id,o)}t&&"root"!==t.id&&(u.logger.info("Setting node ",n.id," to be child of its parent ",t.id),e.setParent(n.id,t.id)),n.doc&&(u.logger.info("Adding nodes children "),v(e,n,n.doc,!i))},b=0,v=function(e,t,n,i){b=0,u.logger.trace("items",n),n.forEach((function(n){if("state"===n.stmt||"default"===n.stmt)_(e,t,n,i);else if("relation"===n.stmt){_(e,t,n.state1,i),_(e,t,n.state2,i);var r={id:"edge"+b,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:"fill:none",labelStyle:"",label:n.description,arrowheadStyle:"fill: #333",labelpos:"c",labelType:"text",thickness:"normal",classes:"transition"},o=n.state1.id,s=n.state2.id;e.setEdge(o,s,r,b),b++}}))},y=function(e,t){u.logger.info("Drawing state diagram (v2)",t),s.default.clear(),p={};var n=l.a.parser;n.yy=s.default,n.parse(e);var i=s.default.getDirection();void 0===i&&(i="LR");var a=Object(c.getConfig)().state,f=a.nodeSpacing||50,g=a.rankSpacing||50,m=new r.a.Graph({multigraph:!0,compound:!0}).setGraph({rankdir:"TB",nodesep:f,ranksep:g,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}}));u.logger.info(s.default.getRootDocV2()),s.default.extract(s.default.getRootDocV2()),u.logger.info(s.default.getRootDocV2()),_(m,void 0,s.default.getRootDocV2(),!0);var b=Object(o.select)('[id="'.concat(t,'"]')),v=Object(o.select)("#"+t+" g");Object(d.render)(v,m,["barb"],"statediagram",t);var y=b.node().getBBox(),w=y.width+16,C=y.height+16;b.attr("class","statediagram");var S=b.node().getBBox();Object(h.configureSvgSize)(b,C,1.75*w,a.useMaxWidth);var k="".concat(S.x-8," ").concat(S.y-8," ").concat(w," ").concat(C);if(u.logger.debug("viewBox ".concat(k)),b.attr("viewBox",k),!a.htmlLabels)for(var x=document.querySelectorAll('[id="'+t+'"] .edgeLabel .label'),L=0;L<x.length;L++){var M=x[L],D=M.getBBox(),E=document.createElementNS("http://www.w3.org/2000/svg","rect");E.setAttribute("rx",0),E.setAttribute("ry",0),E.setAttribute("width",D.width),E.setAttribute("height",D.height),M.insertBefore(E,M.firstChild)}};t.default={setConf:g,getClasses:m,draw:y}},"./src/diagrams/state/stateRenderer.js": /*!*********************************************!*\ !*** ./src/diagrams/state/stateRenderer.js ***! \*********************************************/ -/*! exports provided: setConf, draw, default */function(e,t,n){"use strict";n.r(t),n.d(t,"setConf",(function(){return _})),n.d(t,"draw",(function(){return y}));var r,i=n(/*! d3 */"d3"),o=n(/*! dagre */"dagre"),s=n.n(o),a=n(/*! graphlib */"graphlib"),u=n.n(a),l=n(/*! ../../logger */"./src/logger.js"),c=n(/*! ./stateDb */"./src/diagrams/state/stateDb.js"),d=n(/*! ../common/common */"./src/diagrams/common/common.js"),h=n(/*! ./parser/stateDiagram */"./src/diagrams/state/parser/stateDiagram.jison"),f=n(/*! ./shapes */"./src/diagrams/state/shapes.js"),p=n(/*! ../../config */"./src/config.js"),g=n(/*! ../../utils */"./src/utils.js");h.parser.yy=c.default;var m={},_=function(){},y=function(e,t){r=Object(p.getConfig)().state,h.parser.yy.clear(),h.parser.parse(e),l.logger.debug("Rendering diagram "+e);var n=Object(i.select)("[id='".concat(t,"']"));n.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z"),new u.a.Graph({multigraph:!0,compound:!0,rankdir:"RL"}).setDefaultEdgeLabel((function(){return{}}));var o=c.default.getRootDoc();v(o,n,void 0,!1);var s=r.padding,a=n.node().getBBox(),d=a.width+2*s,f=a.height+2*s,m=1.75*d;Object(g.configureSvgSize)(n,f,m,r.useMaxWidth),n.attr("viewBox","".concat(a.x-r.padding," ").concat(a.y-r.padding," ")+d+" "+f)},v=function e(t,n,o,a){var h,p=new u.a.Graph({compound:!0,multigraph:!0}),g=!0;for(h=0;h<t.length;h++)if("relation"===t[h].stmt){g=!1;break}o?p.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:g?1:r.edgeLengthFactor,nodeSep:g?1:50,isMultiGraph:!0}):p.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:g?1:r.edgeLengthFactor,nodeSep:g?1:50,ranker:"tight-tree",isMultiGraph:!0}),p.setDefaultEdgeLabel((function(){return{}})),c.default.extract(t);for(var _=c.default.getStates(),y=c.default.getRelations(),v=Object.keys(_),b=0;b<v.length;b++){var w=_[v[b]];o&&(w.parentId=o);var C=void 0;if(w.doc){var S=n.append("g").attr("id",w.id).attr("class","stateGroup");C=e(w.doc,S,w.id,!a);var x=(S=Object(f.addTitleAndBox)(S,w,a)).node().getBBox();C.width=x.width,C.height=x.height+r.padding/2,m[w.id]={y:r.compositTitleSize}}else C=Object(f.drawState)(n,w,p);if(w.note){var L={descriptions:[],id:w.id+"-note",note:w.note,type:"note"},k=Object(f.drawState)(n,L,p);"left of"===w.note.position?(p.setNode(C.id+"-note",k),p.setNode(C.id,C)):(p.setNode(C.id,C),p.setNode(C.id+"-note",k)),p.setParent(C.id,C.id+"-group"),p.setParent(C.id+"-note",C.id+"-group")}else p.setNode(C.id,C)}l.logger.debug("Count=",p.nodeCount(),p);var M=0;y.forEach((function(e){var t;M++,l.logger.debug("Setting edge",e),p.setEdge(e.id1,e.id2,{relation:e,width:(t=e.title,t?t.length*r.fontSizeFactor:1),height:r.labelHeight*d.default.getRows(e.title).length,labelpos:"c"},"id"+M)})),s.a.layout(p),l.logger.debug("Graph after layout",p.nodes());var D=n.node();p.nodes().forEach((function(e){void 0!==e&&void 0!==p.node(e)?(l.logger.warn("Node "+e+": "+JSON.stringify(p.node(e))),Object(i.select)("#"+D.id+" #"+e).attr("transform","translate("+(p.node(e).x-p.node(e).width/2)+","+(p.node(e).y+(m[e]?m[e].y:0)-p.node(e).height/2)+" )"),Object(i.select)("#"+D.id+" #"+e).attr("data-x-shift",p.node(e).x-p.node(e).width/2),document.querySelectorAll("#"+D.id+" #"+e+" .divider").forEach((function(e){var t=e.parentElement,n=0,r=0;t&&(t.parentElement&&(n=t.parentElement.getBBox().width),r=parseInt(t.getAttribute("data-x-shift"),10),Number.isNaN(r)&&(r=0)),e.setAttribute("x1",0-r+8),e.setAttribute("x2",n-r-8)}))):l.logger.debug("No Node "+e+": "+JSON.stringify(p.node(e)))}));var E=D.getBBox();p.edges().forEach((function(e){void 0!==e&&void 0!==p.edge(e)&&(l.logger.debug("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(p.edge(e))),Object(f.drawEdge)(n,p.edge(e),p.edge(e).relation))})),E=D.getBBox();var T={id:o||"root",label:o||"root",width:0,height:0};return T.width=E.width+2*r.padding,T.height=E.height+2*r.padding,l.logger.debug("Doc rendered",T,p),T};t.default={setConf:_,draw:y}},"./src/diagrams/state/styles.js": +/*! exports provided: setConf, draw, default */function(e,t,n){"use strict";n.r(t),n.d(t,"setConf",(function(){return _})),n.d(t,"draw",(function(){return b}));var i,r=n(/*! d3 */"d3"),o=n(/*! dagre */"dagre"),s=n.n(o),a=n(/*! graphlib */"graphlib"),l=n.n(a),c=n(/*! ../../logger */"./src/logger.js"),d=n(/*! ./stateDb */"./src/diagrams/state/stateDb.js"),u=n(/*! ../common/common */"./src/diagrams/common/common.js"),h=n(/*! ./parser/stateDiagram */"./src/diagrams/state/parser/stateDiagram.jison"),f=n(/*! ./shapes */"./src/diagrams/state/shapes.js"),g=n(/*! ../../config */"./src/config.js"),p=n(/*! ../../utils */"./src/utils.js");h.parser.yy=d.default;var m={},_=function(){},b=function(e,t){i=Object(g.getConfig)().state,h.parser.yy.clear(),h.parser.parse(e),c.logger.debug("Rendering diagram "+e);var n=Object(r.select)("[id='".concat(t,"']"));n.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z"),new l.a.Graph({multigraph:!0,compound:!0,rankdir:"RL"}).setDefaultEdgeLabel((function(){return{}}));var o=d.default.getRootDoc();v(o,n,void 0,!1);var s=i.padding,a=n.node().getBBox(),u=a.width+2*s,f=a.height+2*s,m=1.75*u;Object(p.configureSvgSize)(n,f,m,i.useMaxWidth),n.attr("viewBox","".concat(a.x-i.padding," ").concat(a.y-i.padding," ")+u+" "+f)},v=function e(t,n,o,a){var h,g=new l.a.Graph({compound:!0,multigraph:!0}),p=!0;for(h=0;h<t.length;h++)if("relation"===t[h].stmt){p=!1;break}o?g.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:p?1:i.edgeLengthFactor,nodeSep:p?1:50,isMultiGraph:!0}):g.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:p?1:i.edgeLengthFactor,nodeSep:p?1:50,ranker:"tight-tree",isMultiGraph:!0}),g.setDefaultEdgeLabel((function(){return{}})),d.default.extract(t);for(var _=d.default.getStates(),b=d.default.getRelations(),v=Object.keys(_),y=0;y<v.length;y++){var w=_[v[y]];o&&(w.parentId=o);var C=void 0;if(w.doc){var S=n.append("g").attr("id",w.id).attr("class","stateGroup");C=e(w.doc,S,w.id,!a);var k=(S=Object(f.addTitleAndBox)(S,w,a)).node().getBBox();C.width=k.width,C.height=k.height+i.padding/2,m[w.id]={y:i.compositTitleSize}}else C=Object(f.drawState)(n,w,g);if(w.note){var x={descriptions:[],id:w.id+"-note",note:w.note,type:"note"},L=Object(f.drawState)(n,x,g);"left of"===w.note.position?(g.setNode(C.id+"-note",L),g.setNode(C.id,C)):(g.setNode(C.id,C),g.setNode(C.id+"-note",L)),g.setParent(C.id,C.id+"-group"),g.setParent(C.id+"-note",C.id+"-group")}else g.setNode(C.id,C)}c.logger.debug("Count=",g.nodeCount(),g);var M=0;b.forEach((function(e){var t;M++,c.logger.debug("Setting edge",e),g.setEdge(e.id1,e.id2,{relation:e,width:(t=e.title,t?t.length*i.fontSizeFactor:1),height:i.labelHeight*u.default.getRows(e.title).length,labelpos:"c"},"id"+M)})),s.a.layout(g),c.logger.debug("Graph after layout",g.nodes());var D=n.node();g.nodes().forEach((function(e){void 0!==e&&void 0!==g.node(e)?(c.logger.warn("Node "+e+": "+JSON.stringify(g.node(e))),Object(r.select)("#"+D.id+" #"+e).attr("transform","translate("+(g.node(e).x-g.node(e).width/2)+","+(g.node(e).y+(m[e]?m[e].y:0)-g.node(e).height/2)+" )"),Object(r.select)("#"+D.id+" #"+e).attr("data-x-shift",g.node(e).x-g.node(e).width/2),document.querySelectorAll("#"+D.id+" #"+e+" .divider").forEach((function(e){var t=e.parentElement,n=0,i=0;t&&(t.parentElement&&(n=t.parentElement.getBBox().width),i=parseInt(t.getAttribute("data-x-shift"),10),Number.isNaN(i)&&(i=0)),e.setAttribute("x1",0-i+8),e.setAttribute("x2",n-i-8)}))):c.logger.debug("No Node "+e+": "+JSON.stringify(g.node(e)))}));var E=D.getBBox();g.edges().forEach((function(e){void 0!==e&&void 0!==g.edge(e)&&(c.logger.debug("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(g.edge(e))),Object(f.drawEdge)(n,g.edge(e),g.edge(e).relation))})),E=D.getBBox();var T={id:o||"root",label:o||"root",width:0,height:0};return T.width=E.width+2*i.padding,T.height=E.height+2*i.padding,c.logger.debug("Doc rendered",T,g),T};t.default={setConf:_,draw:b}},"./src/diagrams/state/styles.js": /*!**************************************!*\ !*** ./src/diagrams/state/styles.js ***! \**************************************/ @@ -278,15 +278,15 @@ /*!************************************************!*\ !*** ./src/diagrams/user-journey/journeyDb.js ***! \************************************************/ -/*! exports provided: parseDirective, clear, setTitle, getTitle, addSection, getSections, getTasks, addTask, addTaskOrg, default */function(e,t,n){"use strict";n.r(t),n.d(t,"parseDirective",(function(){return d})),n.d(t,"clear",(function(){return h})),n.d(t,"setTitle",(function(){return f})),n.d(t,"getTitle",(function(){return p})),n.d(t,"addSection",(function(){return g})),n.d(t,"getSections",(function(){return m})),n.d(t,"getTasks",(function(){return _})),n.d(t,"addTask",(function(){return y})),n.d(t,"addTaskOrg",(function(){return v}));var r=n(/*! ../../mermaidAPI */"./src/mermaidAPI.js"),i=n(/*! ../../config */"./src/config.js");function o(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var s="",a="",u=[],l=[],c=[],d=function(e,t,n){r.default.parseDirective(this,e,t,n)},h=function(){u.length=0,l.length=0,a="",s="",c.length=0},f=function(e){s=e},p=function(){return s},g=function(e){a=e,u.push(e)},m=function(){return u},_=function(){for(var e=b(),t=0;!e&&t<100;)e=b(),t++;return l.push.apply(l,c),l},y=function(e,t){var n=t.substr(1).split(":"),r=0,i=[];1===n.length?(r=Number(n[0]),i=[]):(r=Number(n[0]),i=n[1].split(","));var o=i.map((function(e){return e.trim()})),s={section:a,type:a,people:o,task:e,score:r};c.push(s)},v=function(e){var t={section:a,type:a,description:e,task:e,classes:[]};l.push(t)},b=function(){for(var e=!0,t=0;t<c.length;t++)c[t].processed,e=e&&c[t].processed;return e};t.default={parseDirective:d,getConfig:function(){return i.getConfig().journey},clear:h,setTitle:f,getTitle:p,addSection:g,getSections:m,getTasks:_,addTask:y,addTaskOrg:v,getActors:function(){return e=[],l.forEach((function(t){t.people&&e.push.apply(e,o(t.people))})),o(new Set(e)).sort();var e}}},"./src/diagrams/user-journey/journeyRenderer.js": +/*! exports provided: parseDirective, clear, setTitle, getTitle, addSection, getSections, getTasks, addTask, addTaskOrg, default */function(e,t,n){"use strict";n.r(t),n.d(t,"parseDirective",(function(){return u})),n.d(t,"clear",(function(){return h})),n.d(t,"setTitle",(function(){return f})),n.d(t,"getTitle",(function(){return g})),n.d(t,"addSection",(function(){return p})),n.d(t,"getSections",(function(){return m})),n.d(t,"getTasks",(function(){return _})),n.d(t,"addTask",(function(){return b})),n.d(t,"addTaskOrg",(function(){return v}));var i=n(/*! ../../mermaidAPI */"./src/mermaidAPI.js"),r=n(/*! ../../config */"./src/config.js");function o(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var s="",a="",l=[],c=[],d=[],u=function(e,t,n){i.default.parseDirective(this,e,t,n)},h=function(){l.length=0,c.length=0,a="",s="",d.length=0},f=function(e){s=e},g=function(){return s},p=function(e){a=e,l.push(e)},m=function(){return l},_=function(){for(var e=y(),t=0;!e&&t<100;)e=y(),t++;return c.push.apply(c,d),c},b=function(e,t){var n=t.substr(1).split(":"),i=0,r=[];1===n.length?(i=Number(n[0]),r=[]):(i=Number(n[0]),r=n[1].split(","));var o=r.map((function(e){return e.trim()})),s={section:a,type:a,people:o,task:e,score:i};d.push(s)},v=function(e){var t={section:a,type:a,description:e,task:e,classes:[]};c.push(t)},y=function(){for(var e=!0,t=0;t<d.length;t++)d[t].processed,e=e&&d[t].processed;return e};t.default={parseDirective:u,getConfig:function(){return r.getConfig().journey},clear:h,setTitle:f,getTitle:g,addSection:p,getSections:m,getTasks:_,addTask:b,addTaskOrg:v,getActors:function(){return e=[],c.forEach((function(t){t.people&&e.push.apply(e,o(t.people))})),o(new Set(e)).sort();var e}}},"./src/diagrams/user-journey/journeyRenderer.js": /*!******************************************************!*\ !*** ./src/diagrams/user-journey/journeyRenderer.js ***! \******************************************************/ -/*! exports provided: setConf, draw, bounds, drawTasks, default */function(e,t,n){"use strict";n.r(t),n.d(t,"setConf",(function(){return l})),n.d(t,"draw",(function(){return h})),n.d(t,"bounds",(function(){return f})),n.d(t,"drawTasks",(function(){return m}));var r=n(/*! d3 */"d3"),i=n(/*! ./parser/journey */"./src/diagrams/user-journey/parser/journey.jison"),o=n(/*! ./journeyDb */"./src/diagrams/user-journey/journeyDb.js"),s=n(/*! ./svgDraw */"./src/diagrams/user-journey/svgDraw.js"),a=n(/*! ../../utils */"./src/utils.js");i.parser.yy=o.default;var u={leftMargin:150,diagramMarginX:50,diagramMarginY:20,taskMargin:50,width:150,height:50,taskFontSize:14,taskFontFamily:'"Open-Sans", "sans-serif"',boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},l=function(e){Object.keys(e).forEach((function(t){u[t]=e[t]}))},c={},d=u.leftMargin,h=function(e,t){i.parser.yy.clear(),i.parser.parse(e+"\n"),f.init();var n=Object(r.select)("#"+t);n.attr("xmlns:xlink","http://www.w3.org/1999/xlink"),s.default.initGraphics(n);var o=i.parser.yy.getTasks(),l=i.parser.yy.getTitle(),h=i.parser.yy.getActors();for(var p in c)delete c[p];var g=0;h.forEach((function(e){c[e]=u.actorColours[g%u.actorColours.length],g++})),function(e){var t=60;Object.keys(c).forEach((function(n){var r=c[n],i={cx:20,cy:t,r:7,fill:r,stroke:"#000"};s.default.drawCircle(e,i);var o={x:40,y:t+7,fill:"#666",text:n,textMargin:5|u.boxTextMargin};s.default.drawText(e,o),t+=20}))}(n),f.insert(0,0,d,50*Object.keys(c).length),m(n,o,0);var _=f.getBounds();l&&n.append("text").text(l).attr("x",d).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);var y=_.stopy-_.starty+2*u.diagramMarginY,v=d+_.stopx+2*u.diagramMarginX;Object(a.configureSvgSize)(n,y,v,u.useMaxWidth),n.append("line").attr("x1",d).attr("y1",4*u.height).attr("x2",v-d-4).attr("y2",4*u.height).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");var b=l?70:0;n.attr("viewBox","".concat(_.startx," -25 ").concat(v," ").concat(y+b)),n.attr("preserveAspectRatio","xMinYMin meet")},f={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},updateVal:function(e,t,n,r){void 0===e[t]?e[t]=n:e[t]=r(n,e[t])},updateBounds:function(e,t,n,r){var i,o=this,s=0;this.sequenceItems.forEach((function(a){s++;var l=o.sequenceItems.length-s+1;o.updateVal(a,"starty",t-l*u.boxMargin,Math.min),o.updateVal(a,"stopy",r+l*u.boxMargin,Math.max),o.updateVal(f.data,"startx",e-l*u.boxMargin,Math.min),o.updateVal(f.data,"stopx",n+l*u.boxMargin,Math.max),"activation"!==i&&(o.updateVal(a,"startx",e-l*u.boxMargin,Math.min),o.updateVal(a,"stopx",n+l*u.boxMargin,Math.max),o.updateVal(f.data,"starty",t-l*u.boxMargin,Math.min),o.updateVal(f.data,"stopy",r+l*u.boxMargin,Math.max))}))},insert:function(e,t,n,r){var i=Math.min(e,n),o=Math.max(e,n),s=Math.min(t,r),a=Math.max(t,r);this.updateVal(f.data,"startx",i,Math.min),this.updateVal(f.data,"starty",s,Math.min),this.updateVal(f.data,"stopx",o,Math.max),this.updateVal(f.data,"stopy",a,Math.max),this.updateBounds(i,s,o,a)},bumpVerticalPos:function(e){this.verticalPos=this.verticalPos+e,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return this.data}},p=u.sectionFills,g=u.sectionColours,m=function(e,t,n){for(var r="",i=n+(2*u.height+u.diagramMarginY),o=0,a="#CCC",l="black",h=0,m=0;m<t.length;m++){var _=t[m];if(r!==_.section){a=p[o%p.length],h=o%p.length,l=g[o%g.length];var y={x:m*u.taskMargin+m*u.width+d,y:50,text:_.section,fill:a,num:h,colour:l};s.default.drawSection(e,y,u),r=_.section,o++}var v=_.people.reduce((function(e,t){return c[t]&&(e[t]=c[t]),e}),{});_.x=m*u.taskMargin+m*u.width+d,_.y=i,_.width=u.diagramMarginX,_.height=u.diagramMarginY,_.colour=l,_.fill=a,_.num=h,_.actors=v,s.default.drawTask(e,_,u),f.insert(_.x,_.y,_.x+_.width+u.taskMargin,450)}};t.default={setConf:l,draw:h}},"./src/diagrams/user-journey/parser/journey.jison": +/*! exports provided: setConf, draw, bounds, drawTasks, default */function(e,t,n){"use strict";n.r(t),n.d(t,"setConf",(function(){return c})),n.d(t,"draw",(function(){return h})),n.d(t,"bounds",(function(){return f})),n.d(t,"drawTasks",(function(){return m}));var i=n(/*! d3 */"d3"),r=n(/*! ./parser/journey */"./src/diagrams/user-journey/parser/journey.jison"),o=n(/*! ./journeyDb */"./src/diagrams/user-journey/journeyDb.js"),s=n(/*! ./svgDraw */"./src/diagrams/user-journey/svgDraw.js"),a=n(/*! ../../utils */"./src/utils.js");r.parser.yy=o.default;var l={leftMargin:150,diagramMarginX:50,diagramMarginY:20,taskMargin:50,width:150,height:50,taskFontSize:14,taskFontFamily:'"Open-Sans", "sans-serif"',boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},c=function(e){Object.keys(e).forEach((function(t){l[t]=e[t]}))},d={},u=l.leftMargin,h=function(e,t){r.parser.yy.clear(),r.parser.parse(e+"\n"),f.init();var n=Object(i.select)("#"+t);n.attr("xmlns:xlink","http://www.w3.org/1999/xlink"),s.default.initGraphics(n);var o=r.parser.yy.getTasks(),c=r.parser.yy.getTitle(),h=r.parser.yy.getActors();for(var g in d)delete d[g];var p=0;h.forEach((function(e){d[e]=l.actorColours[p%l.actorColours.length],p++})),function(e){var t=60;Object.keys(d).forEach((function(n){var i=d[n],r={cx:20,cy:t,r:7,fill:i,stroke:"#000"};s.default.drawCircle(e,r);var o={x:40,y:t+7,fill:"#666",text:n,textMargin:5|l.boxTextMargin};s.default.drawText(e,o),t+=20}))}(n),f.insert(0,0,u,50*Object.keys(d).length),m(n,o,0);var _=f.getBounds();c&&n.append("text").text(c).attr("x",u).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);var b=_.stopy-_.starty+2*l.diagramMarginY,v=u+_.stopx+2*l.diagramMarginX;Object(a.configureSvgSize)(n,b,v,l.useMaxWidth),n.append("line").attr("x1",u).attr("y1",4*l.height).attr("x2",v-u-4).attr("y2",4*l.height).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");var y=c?70:0;n.attr("viewBox","".concat(_.startx," -25 ").concat(v," ").concat(b+y)),n.attr("preserveAspectRatio","xMinYMin meet")},f={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},updateVal:function(e,t,n,i){void 0===e[t]?e[t]=n:e[t]=i(n,e[t])},updateBounds:function(e,t,n,i){var r,o=this,s=0;this.sequenceItems.forEach((function(a){s++;var c=o.sequenceItems.length-s+1;o.updateVal(a,"starty",t-c*l.boxMargin,Math.min),o.updateVal(a,"stopy",i+c*l.boxMargin,Math.max),o.updateVal(f.data,"startx",e-c*l.boxMargin,Math.min),o.updateVal(f.data,"stopx",n+c*l.boxMargin,Math.max),"activation"!==r&&(o.updateVal(a,"startx",e-c*l.boxMargin,Math.min),o.updateVal(a,"stopx",n+c*l.boxMargin,Math.max),o.updateVal(f.data,"starty",t-c*l.boxMargin,Math.min),o.updateVal(f.data,"stopy",i+c*l.boxMargin,Math.max))}))},insert:function(e,t,n,i){var r=Math.min(e,n),o=Math.max(e,n),s=Math.min(t,i),a=Math.max(t,i);this.updateVal(f.data,"startx",r,Math.min),this.updateVal(f.data,"starty",s,Math.min),this.updateVal(f.data,"stopx",o,Math.max),this.updateVal(f.data,"stopy",a,Math.max),this.updateBounds(r,s,o,a)},bumpVerticalPos:function(e){this.verticalPos=this.verticalPos+e,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return this.data}},g=l.sectionFills,p=l.sectionColours,m=function(e,t,n){for(var i="",r=n+(2*l.height+l.diagramMarginY),o=0,a="#CCC",c="black",h=0,m=0;m<t.length;m++){var _=t[m];if(i!==_.section){a=g[o%g.length],h=o%g.length,c=p[o%p.length];var b={x:m*l.taskMargin+m*l.width+u,y:50,text:_.section,fill:a,num:h,colour:c};s.default.drawSection(e,b,l),i=_.section,o++}var v=_.people.reduce((function(e,t){return d[t]&&(e[t]=d[t]),e}),{});_.x=m*l.taskMargin+m*l.width+u,_.y=r,_.width=l.diagramMarginX,_.height=l.diagramMarginY,_.colour=c,_.fill=a,_.num=h,_.actors=v,s.default.drawTask(e,_,l),f.insert(_.x,_.y,_.x+_.width+l.taskMargin,450)}};t.default={setConf:c,draw:h}},"./src/diagrams/user-journey/parser/journey.jison": /*!********************************************************!*\ !*** ./src/diagrams/user-journey/parser/journey.jison ***! \********************************************************/ -/*! no static exports found */function(e,t,n){(function(e,r){var i=function(){var e=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},t=[1,2],n=[1,5],r=[6,9,11,17,18,19,21],i=[1,15],o=[1,16],s=[1,17],a=[1,21],u=[4,6,9,11,17,18,19,21],l={trace:function(){},yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,title:17,section:18,taskName:19,taskData:20,open_directive:21,type_directive:22,arg_directive:23,close_directive:24,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",17:"title",18:"section",19:"taskName",20:"taskData",21:"open_directive",22:"type_directive",23:"arg_directive",24:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,1],[10,2],[10,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(e,t,n,r,i,o,s){var a=o.length-1;switch(i){case 1:return o[a-1];case 3:this.$=[];break;case 4:o[a-1].push(o[a]),this.$=o[a-1];break;case 5:case 6:this.$=o[a];break;case 7:case 8:this.$=[];break;case 11:r.setTitle(o[a].substr(6)),this.$=o[a].substr(6);break;case 12:r.addSection(o[a].substr(8)),this.$=o[a].substr(8);break;case 13:r.addTask(o[a-1],o[a]),this.$="task";break;case 15:r.parseDirective("%%{","open_directive");break;case 16:r.parseDirective(o[a],"type_directive");break;case 17:o[a]=o[a].trim().replace(/'/g,'"'),r.parseDirective(o[a],"arg_directive");break;case 18:r.parseDirective("}%%","close_directive","journey")}},table:[{3:1,4:t,7:3,12:4,21:n},{1:[3]},e(r,[2,3],{5:6}),{3:7,4:t,7:3,12:4,21:n},{13:8,22:[1,9]},{22:[2,15]},{6:[1,10],7:18,8:11,9:[1,12],10:13,11:[1,14],12:4,17:i,18:o,19:s,21:n},{1:[2,2]},{14:19,15:[1,20],24:a},e([15,24],[2,16]),e(r,[2,8],{1:[2,1]}),e(r,[2,4]),{7:18,10:22,12:4,17:i,18:o,19:s,21:n},e(r,[2,6]),e(r,[2,7]),e(r,[2,11]),e(r,[2,12]),{20:[1,23]},e(r,[2,14]),{11:[1,24]},{16:25,23:[1,26]},{11:[2,18]},e(r,[2,5]),e(r,[2,13]),e(u,[2,9]),{14:27,24:a},{24:[2,17]},{11:[1,28]},e(u,[2,10])],defaultActions:{5:[2,15],7:[2,2],21:[2,18],26:[2,17]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],r=[],i=[null],o=[],s=this.table,a="",u=0,l=0,c=0,d=2,h=1,f=o.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var m in this.yy)Object.prototype.hasOwnProperty.call(this.yy,m)&&(g.yy[m]=this.yy[m]);p.setInput(e,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var _=p.yylloc;o.push(_);var y=p.options&&p.options.ranges;function v(){var e;return"number"!=typeof(e=r.pop()||p.lex()||h)&&(e instanceof Array&&(e=(r=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,w,C,S,x,L,k,M,D,E={};;){if(C=n[n.length-1],this.defaultActions[C]?S=this.defaultActions[C]:(null==b&&(b=v()),S=s[C]&&s[C][b]),void 0===S||!S.length||!S[0]){var T="";for(L in D=[],s[C])this.terminals_[L]&&L>d&&D.push("'"+this.terminals_[L]+"'");T=p.showPosition?"Parse error on line "+(u+1)+":\n"+p.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(u+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(T,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:_,expected:D})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+b);switch(S[0]){case 1:n.push(b),i.push(p.yytext),o.push(p.yylloc),n.push(S[1]),b=null,w?(b=w,w=null):(l=p.yyleng,a=p.yytext,u=p.yylineno,_=p.yylloc,c>0&&c--);break;case 2:if(k=this.productions_[S[1]][1],E.$=i[i.length-k],E._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(E._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),void 0!==(x=this.performAction.apply(E,[a,l,u,g.yy,S[1],i,o].concat(f))))return x;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),o=o.slice(0,-1*k)),n.push(this.productions_[S[1]][0]),i.push(E.$),o.push(E._$),M=s[n[n.length-2]][n[n.length-1]],n.push(M);break;case 3:return!0}}return!0}},c={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;o<i.length;o++)if((n=this._input.match(this.rules[i[o]]))&&(!t||n[0].length>t[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return this.begin("open_directive"),21;case 1:return this.begin("type_directive"),22;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),24;case 4:return 23;case 5:case 6:break;case 7:return 11;case 8:case 9:break;case 10:return 4;case 11:return 17;case 12:return 18;case 13:return 19;case 14:return 20;case 15:return 15;case 16:return 6;case 17:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,13,14,15,16,17],inclusive:!0}}};function d(){this.yy={}}return l.lexer=c,d.prototype=l,l.Parser=d,new d}();t.parser=i,t.Parser=i.Parser,t.parse=function(){return i.parse.apply(i,arguments)},t.main=function(r){r[1]||(console.log("Usage: "+r[0]+" FILE"),e.exit(1));var i=n(/*! fs */"./node_modules/node-libs-browser/mock/empty.js").readFileSync(n(/*! path */"./node_modules/path-browserify/index.js").normalize(r[1]),"utf8");return t.parser.parse(i)},n.c[n.s]===r&&t.main(e.argv.slice(1))}).call(this,n(/*! ./../../../../node_modules/process/browser.js */"./node_modules/process/browser.js"),n(/*! ./../../../../node_modules/webpack/buildin/module.js */"./node_modules/webpack/buildin/module.js")(e))},"./src/diagrams/user-journey/styles.js": +/*! no static exports found */function(e,t,n){(function(e,i){var r=function(){var e=function(e,t,n,i){for(n=n||{},i=e.length;i--;n[e[i]]=t);return n},t=[1,2],n=[1,5],i=[6,9,11,17,18,19,21],r=[1,15],o=[1,16],s=[1,17],a=[1,21],l=[4,6,9,11,17,18,19,21],c={trace:function(){},yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,title:17,section:18,taskName:19,taskData:20,open_directive:21,type_directive:22,arg_directive:23,close_directive:24,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",17:"title",18:"section",19:"taskName",20:"taskData",21:"open_directive",22:"type_directive",23:"arg_directive",24:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,1],[10,2],[10,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(e,t,n,i,r,o,s){var a=o.length-1;switch(r){case 1:return o[a-1];case 3:this.$=[];break;case 4:o[a-1].push(o[a]),this.$=o[a-1];break;case 5:case 6:this.$=o[a];break;case 7:case 8:this.$=[];break;case 11:i.setTitle(o[a].substr(6)),this.$=o[a].substr(6);break;case 12:i.addSection(o[a].substr(8)),this.$=o[a].substr(8);break;case 13:i.addTask(o[a-1],o[a]),this.$="task";break;case 15:i.parseDirective("%%{","open_directive");break;case 16:i.parseDirective(o[a],"type_directive");break;case 17:o[a]=o[a].trim().replace(/'/g,'"'),i.parseDirective(o[a],"arg_directive");break;case 18:i.parseDirective("}%%","close_directive","journey")}},table:[{3:1,4:t,7:3,12:4,21:n},{1:[3]},e(i,[2,3],{5:6}),{3:7,4:t,7:3,12:4,21:n},{13:8,22:[1,9]},{22:[2,15]},{6:[1,10],7:18,8:11,9:[1,12],10:13,11:[1,14],12:4,17:r,18:o,19:s,21:n},{1:[2,2]},{14:19,15:[1,20],24:a},e([15,24],[2,16]),e(i,[2,8],{1:[2,1]}),e(i,[2,4]),{7:18,10:22,12:4,17:r,18:o,19:s,21:n},e(i,[2,6]),e(i,[2,7]),e(i,[2,11]),e(i,[2,12]),{20:[1,23]},e(i,[2,14]),{11:[1,24]},{16:25,23:[1,26]},{11:[2,18]},e(i,[2,5]),e(i,[2,13]),e(l,[2,9]),{14:27,24:a},{24:[2,17]},{11:[1,28]},e(l,[2,10])],defaultActions:{5:[2,15],7:[2,2],21:[2,18],26:[2,17]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],i=[],r=[null],o=[],s=this.table,a="",l=0,c=0,d=0,u=2,h=1,f=o.slice.call(arguments,1),g=Object.create(this.lexer),p={yy:{}};for(var m in this.yy)Object.prototype.hasOwnProperty.call(this.yy,m)&&(p.yy[m]=this.yy[m]);g.setInput(e,p.yy),p.yy.lexer=g,p.yy.parser=this,void 0===g.yylloc&&(g.yylloc={});var _=g.yylloc;o.push(_);var b=g.options&&g.options.ranges;function v(){var e;return"number"!=typeof(e=i.pop()||g.lex()||h)&&(e instanceof Array&&(e=(i=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var y,w,C,S,k,x,L,M,D,E={};;){if(C=n[n.length-1],this.defaultActions[C]?S=this.defaultActions[C]:(null==y&&(y=v()),S=s[C]&&s[C][y]),void 0===S||!S.length||!S[0]){var T="";for(x in D=[],s[C])this.terminals_[x]&&x>u&&D.push("'"+this.terminals_[x]+"'");T=g.showPosition?"Parse error on line "+(l+1)+":\n"+g.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[y]||y)+"'":"Parse error on line "+(l+1)+": Unexpected "+(y==h?"end of input":"'"+(this.terminals_[y]||y)+"'"),this.parseError(T,{text:g.match,token:this.terminals_[y]||y,line:g.yylineno,loc:_,expected:D})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+y);switch(S[0]){case 1:n.push(y),r.push(g.yytext),o.push(g.yylloc),n.push(S[1]),y=null,w?(y=w,w=null):(c=g.yyleng,a=g.yytext,l=g.yylineno,_=g.yylloc,d>0&&d--);break;case 2:if(L=this.productions_[S[1]][1],E.$=r[r.length-L],E._$={first_line:o[o.length-(L||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(L||1)].first_column,last_column:o[o.length-1].last_column},b&&(E._$.range=[o[o.length-(L||1)].range[0],o[o.length-1].range[1]]),void 0!==(k=this.performAction.apply(E,[a,c,l,p.yy,S[1],r,o].concat(f))))return k;L&&(n=n.slice(0,-1*L*2),r=r.slice(0,-1*L),o=o.slice(0,-1*L)),n.push(this.productions_[S[1]][0]),r.push(E.$),o.push(E._$),M=s[n[n.length-2]][n[n.length-1]],n.push(M);break;case 3:return!0}}return!0}},d={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in r)this[o]=r[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),o=0;o<r.length;o++)if((n=this._input.match(this.rules[r[o]]))&&(!t||n[0].length>t[0].length)){if(t=n,i=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,r[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,r[i]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,i){switch(n){case 0:return this.begin("open_directive"),21;case 1:return this.begin("type_directive"),22;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),24;case 4:return 23;case 5:case 6:break;case 7:return 11;case 8:case 9:break;case 10:return 4;case 11:return 17;case 12:return 18;case 13:return 19;case 14:return 20;case 15:return 15;case 16:return 6;case 17:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,13,14,15,16,17],inclusive:!0}}};function u(){this.yy={}}return c.lexer=d,u.prototype=c,c.Parser=u,new u}();t.parser=r,t.Parser=r.Parser,t.parse=function(){return r.parse.apply(r,arguments)},t.main=function(i){i[1]||(console.log("Usage: "+i[0]+" FILE"),e.exit(1));var r=n(/*! fs */"./node_modules/node-libs-browser/mock/empty.js").readFileSync(n(/*! path */"./node_modules/path-browserify/index.js").normalize(i[1]),"utf8");return t.parser.parse(r)},n.c[n.s]===i&&t.main(e.argv.slice(1))}).call(this,n(/*! ./../../../../node_modules/process/browser.js */"./node_modules/process/browser.js"),n(/*! ./../../../../node_modules/webpack/buildin/module.js */"./node_modules/webpack/buildin/module.js")(e))},"./src/diagrams/user-journey/styles.js": /*!*********************************************!*\ !*** ./src/diagrams/user-journey/styles.js ***! \*********************************************/ @@ -294,106 +294,113 @@ /*!**********************************************!*\ !*** ./src/diagrams/user-journey/svgDraw.js ***! \**********************************************/ -/*! exports provided: drawRect, drawFace, drawCircle, drawText, drawLabel, drawSection, drawTask, drawBackgroundRect, getTextObj, getNoteRect, default */function(e,t,n){"use strict";n.r(t),n.d(t,"drawRect",(function(){return i})),n.d(t,"drawFace",(function(){return o})),n.d(t,"drawCircle",(function(){return s})),n.d(t,"drawText",(function(){return a})),n.d(t,"drawLabel",(function(){return u})),n.d(t,"drawSection",(function(){return l})),n.d(t,"drawTask",(function(){return d})),n.d(t,"drawBackgroundRect",(function(){return h})),n.d(t,"getTextObj",(function(){return f})),n.d(t,"getNoteRect",(function(){return p}));var r=n(/*! d3 */"d3"),i=function(e,t){var n=e.append("rect");return n.attr("x",t.x),n.attr("y",t.y),n.attr("fill",t.fill),n.attr("stroke",t.stroke),n.attr("width",t.width),n.attr("height",t.height),n.attr("rx",t.rx),n.attr("ry",t.ry),void 0!==t.class&&n.attr("class",t.class),n},o=function(e,t){var n=15,i=e.append("circle").attr("cx",t.cx).attr("cy",t.cy).attr("class","face").attr("r",n).attr("stroke-width",2).attr("overflow","visible"),o=e.append("g");return o.append("circle").attr("cx",t.cx-n/3).attr("cy",t.cy-n/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),o.append("circle").attr("cx",t.cx+n/3).attr("cy",t.cy-n/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),t.score>3?function(e){var i=Object(r.arc)().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(n/2).outerRadius(n/2.2);e.append("path").attr("class","mouth").attr("d",i).attr("transform","translate("+t.cx+","+(t.cy+2)+")")}(o):t.score<3?function(e){var i=Object(r.arc)().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(n/2).outerRadius(n/2.2);e.append("path").attr("class","mouth").attr("d",i).attr("transform","translate("+t.cx+","+(t.cy+7)+")")}(o):function(e){e.append("line").attr("class","mouth").attr("stroke",2).attr("x1",t.cx-5).attr("y1",t.cy+7).attr("x2",t.cx+5).attr("y2",t.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}(o),i},s=function(e,t){var n=e.append("circle");return n.attr("cx",t.cx),n.attr("cy",t.cy),n.attr("fill",t.fill),n.attr("stroke",t.stroke),n.attr("r",t.r),void 0!==n.class&&n.attr("class",n.class),void 0!==t.title&&n.append("title").text(t.title),n},a=function(e,t){var n=t.text.replace(/<br\s*\/?>/gi," "),r=e.append("text");r.attr("x",t.x),r.attr("y",t.y),r.attr("class","legend"),r.style("text-anchor",t.anchor),void 0!==t.class&&r.attr("class",t.class);var i=r.append("tspan");return i.attr("x",t.x+2*t.textMargin),i.text(n),r},u=function(e,t){var n,r,i,o,s,u=e.append("polygon");u.attr("points",(n=t.x,r=t.y,n+","+r+" "+(n+(i=50))+","+r+" "+(n+i)+","+(r+(o=20)-(s=7))+" "+(n+i-1.2*s)+","+(r+o)+" "+n+","+(r+o))),u.attr("class","labelBox"),t.y=t.y+t.labelMargin,t.x=t.x+.5*t.labelMargin,a(e,t)},l=function(e,t,n){var r=e.append("g"),o=p();o.x=t.x,o.y=t.y,o.fill=t.fill,o.width=n.width,o.height=n.height,o.class="journey-section section-type-"+t.num,o.rx=3,o.ry=3,i(r,o),g(n)(t.text,r,o.x,o.y,o.width,o.height,{class:"journey-section section-type-"+t.num},n,t.colour)},c=-1,d=function(e,t,n){var r=t.x+n.width/2,a=e.append("g");c++,a.append("line").attr("id","task"+c).attr("x1",r).attr("y1",t.y).attr("x2",r).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),o(a,{cx:r,cy:300+30*(5-t.score),score:t.score});var u=p();u.x=t.x,u.y=t.y,u.fill=t.fill,u.width=n.width,u.height=n.height,u.class="task task-type-"+t.num,u.rx=3,u.ry=3,i(a,u);var l=t.x+14;t.people.forEach((function(e){var n=t.actors[e],r={cx:l,cy:t.y,r:7,fill:n,stroke:"#000",title:e};s(a,r),l+=10})),g(n)(t.task,a,u.x,u.y,u.width,u.height,{class:"task"},n,t.colour)},h=function(e,t){i(e,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,class:"rect"}).lower()},f=function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},p=function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},g=function(){function e(e,t,n,i,o,s,a,u){r(t.append("text").attr("x",n+o/2).attr("y",i+s/2+5).style("font-color",u).style("text-anchor","middle").text(e),a)}function t(e,t,n,i,o,s,a,u,l){for(var c=u.taskFontSize,d=u.taskFontFamily,h=e.split(/<br\s*\/?>/gi),f=0;f<h.length;f++){var p=f*c-c*(h.length-1)/2,g=t.append("text").attr("x",n+o/2).attr("y",i).attr("fill",l).style("text-anchor","middle").style("font-size",c).style("font-family",d);g.append("tspan").attr("x",n+o/2).attr("dy",p).text(h[f]),g.attr("y",i+s/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),r(g,a)}}function n(e,n,i,o,s,a,u,l){var c=n.append("switch"),d=c.append("foreignObject").attr("x",i).attr("y",o).attr("width",s).attr("height",a).attr("position","fixed").append("div").style("display","table").style("height","100%").style("width","100%");d.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(e),t(e,c,i,o,s,a,u,l),r(d,u)}function r(e,t){for(var n in t)n in t&&e.attr(n,t[n])}return function(r){return"fo"===r.textPlacement?n:"old"===r.textPlacement?e:t}}();t.default={drawRect:i,drawCircle:s,drawSection:l,drawText:a,drawLabel:u,drawTask:d,drawBackgroundRect:h,getTextObj:f,getNoteRect:p,initGraphics:function(e){e.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")}}},"./src/errorRenderer.js": +/*! exports provided: drawRect, drawFace, drawCircle, drawText, drawLabel, drawSection, drawTask, drawBackgroundRect, getTextObj, getNoteRect, default */function(e,t,n){"use strict";n.r(t),n.d(t,"drawRect",(function(){return r})),n.d(t,"drawFace",(function(){return o})),n.d(t,"drawCircle",(function(){return s})),n.d(t,"drawText",(function(){return a})),n.d(t,"drawLabel",(function(){return l})),n.d(t,"drawSection",(function(){return c})),n.d(t,"drawTask",(function(){return u})),n.d(t,"drawBackgroundRect",(function(){return h})),n.d(t,"getTextObj",(function(){return f})),n.d(t,"getNoteRect",(function(){return g}));var i=n(/*! d3 */"d3"),r=function(e,t){var n=e.append("rect");return n.attr("x",t.x),n.attr("y",t.y),n.attr("fill",t.fill),n.attr("stroke",t.stroke),n.attr("width",t.width),n.attr("height",t.height),n.attr("rx",t.rx),n.attr("ry",t.ry),void 0!==t.class&&n.attr("class",t.class),n},o=function(e,t){var n=15,r=e.append("circle").attr("cx",t.cx).attr("cy",t.cy).attr("class","face").attr("r",n).attr("stroke-width",2).attr("overflow","visible"),o=e.append("g");return o.append("circle").attr("cx",t.cx-n/3).attr("cy",t.cy-n/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),o.append("circle").attr("cx",t.cx+n/3).attr("cy",t.cy-n/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),t.score>3?function(e){var r=Object(i.arc)().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(n/2).outerRadius(n/2.2);e.append("path").attr("class","mouth").attr("d",r).attr("transform","translate("+t.cx+","+(t.cy+2)+")")}(o):t.score<3?function(e){var r=Object(i.arc)().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(n/2).outerRadius(n/2.2);e.append("path").attr("class","mouth").attr("d",r).attr("transform","translate("+t.cx+","+(t.cy+7)+")")}(o):function(e){e.append("line").attr("class","mouth").attr("stroke",2).attr("x1",t.cx-5).attr("y1",t.cy+7).attr("x2",t.cx+5).attr("y2",t.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}(o),r},s=function(e,t){var n=e.append("circle");return n.attr("cx",t.cx),n.attr("cy",t.cy),n.attr("fill",t.fill),n.attr("stroke",t.stroke),n.attr("r",t.r),void 0!==n.class&&n.attr("class",n.class),void 0!==t.title&&n.append("title").text(t.title),n},a=function(e,t){var n=t.text.replace(/<br\s*\/?>/gi," "),i=e.append("text");i.attr("x",t.x),i.attr("y",t.y),i.attr("class","legend"),i.style("text-anchor",t.anchor),void 0!==t.class&&i.attr("class",t.class);var r=i.append("tspan");return r.attr("x",t.x+2*t.textMargin),r.text(n),i},l=function(e,t){var n,i,r,o,s,l=e.append("polygon");l.attr("points",(n=t.x,i=t.y,n+","+i+" "+(n+(r=50))+","+i+" "+(n+r)+","+(i+(o=20)-(s=7))+" "+(n+r-1.2*s)+","+(i+o)+" "+n+","+(i+o))),l.attr("class","labelBox"),t.y=t.y+t.labelMargin,t.x=t.x+.5*t.labelMargin,a(e,t)},c=function(e,t,n){var i=e.append("g"),o=g();o.x=t.x,o.y=t.y,o.fill=t.fill,o.width=n.width,o.height=n.height,o.class="journey-section section-type-"+t.num,o.rx=3,o.ry=3,r(i,o),p(n)(t.text,i,o.x,o.y,o.width,o.height,{class:"journey-section section-type-"+t.num},n,t.colour)},d=-1,u=function(e,t,n){var i=t.x+n.width/2,a=e.append("g");d++,a.append("line").attr("id","task"+d).attr("x1",i).attr("y1",t.y).attr("x2",i).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),o(a,{cx:i,cy:300+30*(5-t.score),score:t.score});var l=g();l.x=t.x,l.y=t.y,l.fill=t.fill,l.width=n.width,l.height=n.height,l.class="task task-type-"+t.num,l.rx=3,l.ry=3,r(a,l);var c=t.x+14;t.people.forEach((function(e){var n=t.actors[e],i={cx:c,cy:t.y,r:7,fill:n,stroke:"#000",title:e};s(a,i),c+=10})),p(n)(t.task,a,l.x,l.y,l.width,l.height,{class:"task"},n,t.colour)},h=function(e,t){r(e,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,class:"rect"}).lower()},f=function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},g=function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},p=function(){function e(e,t,n,r,o,s,a,l){i(t.append("text").attr("x",n+o/2).attr("y",r+s/2+5).style("font-color",l).style("text-anchor","middle").text(e),a)}function t(e,t,n,r,o,s,a,l,c){for(var d=l.taskFontSize,u=l.taskFontFamily,h=e.split(/<br\s*\/?>/gi),f=0;f<h.length;f++){var g=f*d-d*(h.length-1)/2,p=t.append("text").attr("x",n+o/2).attr("y",r).attr("fill",c).style("text-anchor","middle").style("font-size",d).style("font-family",u);p.append("tspan").attr("x",n+o/2).attr("dy",g).text(h[f]),p.attr("y",r+s/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),i(p,a)}}function n(e,n,r,o,s,a,l,c){var d=n.append("switch"),u=d.append("foreignObject").attr("x",r).attr("y",o).attr("width",s).attr("height",a).attr("position","fixed").append("div").style("display","table").style("height","100%").style("width","100%");u.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(e),t(e,d,r,o,s,a,l,c),i(u,l)}function i(e,t){for(var n in t)n in t&&e.attr(n,t[n])}return function(i){return"fo"===i.textPlacement?n:"old"===i.textPlacement?e:t}}();t.default={drawRect:r,drawCircle:s,drawSection:c,drawText:a,drawLabel:l,drawTask:u,drawBackgroundRect:h,getTextObj:f,getNoteRect:g,initGraphics:function(e){e.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")}}},"./src/errorRenderer.js": /*!******************************!*\ !*** ./src/errorRenderer.js ***! \******************************/ -/*! exports provided: setConf, draw, default */function(e,t,n){"use strict";n.r(t),n.d(t,"setConf",(function(){return s})),n.d(t,"draw",(function(){return a}));var r=n(/*! d3 */"d3"),i=n(/*! ./logger */"./src/logger.js"),o={},s=function(e){Object.keys(e).forEach((function(t){o[t]=e[t]}))},a=function(e,t){try{i.logger.debug("Renering svg for syntax error\n");var n=Object(r.select)("#"+e),o=n.append("g");o.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),o.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),o.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),o.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),o.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),o.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),o.append("text").attr("class","error-text").attr("x",1240).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in graph"),o.append("text").attr("class","error-text").attr("x",1050).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text("mermaid version "+t),n.attr("height",100),n.attr("width",400),n.attr("viewBox","768 0 512 512")}catch(e){i.logger.error("Error while rendering info diagram"),i.logger.error(e.message)}};t.default={setConf:s,draw:a}},"./src/logger.js": +/*! exports provided: setConf, draw, default */function(e,t,n){"use strict";n.r(t),n.d(t,"setConf",(function(){return s})),n.d(t,"draw",(function(){return a}));var i=n(/*! d3 */"d3"),r=n(/*! ./logger */"./src/logger.js"),o={},s=function(e){Object.keys(e).forEach((function(t){o[t]=e[t]}))},a=function(e,t){try{r.logger.debug("Renering svg for syntax error\n");var n=Object(i.select)("#"+e),o=n.append("g");o.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),o.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),o.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),o.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),o.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),o.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),o.append("text").attr("class","error-text").attr("x",1240).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in graph"),o.append("text").attr("class","error-text").attr("x",1050).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text("mermaid version "+t),n.attr("height",100),n.attr("width",400),n.attr("viewBox","768 0 512 512")}catch(e){r.logger.error("Error while rendering info diagram"),r.logger.error(e.message)}};t.default={setConf:s,draw:a}},"./src/logger.js": /*!***********************!*\ !*** ./src/logger.js ***! \***********************/ -/*! exports provided: LEVELS, logger, setLogLevel */function(e,t,n){"use strict";n.r(t),n.d(t,"LEVELS",(function(){return o})),n.d(t,"logger",(function(){return s})),n.d(t,"setLogLevel",(function(){return a}));var r=n(/*! moment-mini */"moment-mini"),i=n.n(r),o={debug:1,info:2,warn:3,error:4,fatal:5},s={debug:function(){},info:function(){},warn:function(){},error:function(){},fatal:function(){}},a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"fatal";isNaN(e)&&(e=e.toLowerCase(),void 0!==o[e]&&(e=o[e])),s.trace=function(){},s.debug=function(){},s.info=function(){},s.warn=function(){},s.error=function(){},s.fatal=function(){},e<=o.fatal&&(s.fatal=console.error?console.error.bind(console,u("FATAL"),"color: orange"):console.log.bind(console,"",u("FATAL"))),e<=o.error&&(s.error=console.error?console.error.bind(console,u("ERROR"),"color: orange"):console.log.bind(console,"",u("ERROR"))),e<=o.warn&&(s.warn=console.warn?console.warn.bind(console,u("WARN"),"color: orange"):console.log.bind(console,"",u("WARN"))),e<=o.info&&(s.info=console.info?console.info.bind(console,u("INFO"),"color: lightblue"):console.log.bind(console,"",u("INFO"))),e<=o.debug&&(s.debug=console.debug?console.debug.bind(console,u("DEBUG"),"color: lightgreen"):console.log.bind(console,"",u("DEBUG")))},u=function(e){var t=i()().format("ss.SSS");return"%c".concat(t," : ").concat(e," : ")}},"./src/mermaid.js": +/*! exports provided: LEVELS, logger, setLogLevel */function(e,t,n){"use strict";n.r(t),n.d(t,"LEVELS",(function(){return o})),n.d(t,"logger",(function(){return s})),n.d(t,"setLogLevel",(function(){return a}));var i=n(/*! moment-mini */"moment-mini"),r=n.n(i),o={debug:1,info:2,warn:3,error:4,fatal:5},s={debug:function(){},info:function(){},warn:function(){},error:function(){},fatal:function(){}},a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"fatal";isNaN(e)&&(e=e.toLowerCase(),void 0!==o[e]&&(e=o[e])),s.trace=function(){},s.debug=function(){},s.info=function(){},s.warn=function(){},s.error=function(){},s.fatal=function(){},e<=o.fatal&&(s.fatal=console.error?console.error.bind(console,l("FATAL"),"color: orange"):console.log.bind(console,"",l("FATAL"))),e<=o.error&&(s.error=console.error?console.error.bind(console,l("ERROR"),"color: orange"):console.log.bind(console,"",l("ERROR"))),e<=o.warn&&(s.warn=console.warn?console.warn.bind(console,l("WARN"),"color: orange"):console.log.bind(console,"",l("WARN"))),e<=o.info&&(s.info=console.info?console.info.bind(console,l("INFO"),"color: lightblue"):console.log.bind(console,"",l("INFO"))),e<=o.debug&&(s.debug=console.debug?console.debug.bind(console,l("DEBUG"),"color: lightgreen"):console.log.bind(console,"",l("DEBUG")))},l=function(e){var t=r()().format("ss.SSS");return"%c".concat(t," : ").concat(e," : ")}},"./src/mermaid.js": /*!************************!*\ !*** ./src/mermaid.js ***! \************************/ -/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var r=n(/*! entity-decode/browser */"entity-decode/browser"),i=n.n(r),o=n(/*! ./logger */"./src/logger.js"),s=n(/*! ./mermaidAPI */"./src/mermaidAPI.js"),a=n(/*! ./utils */"./src/utils.js"),u=function(){l.startOnLoad?s.default.getConfig().startOnLoad&&l.init():void 0===l.startOnLoad&&(o.logger.debug("In start, no config"),s.default.getConfig().startOnLoad&&l.init())};"undefined"!=typeof document&& +/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var i=n(/*! entity-decode/browser */"entity-decode/browser"),r=n.n(i),o=n(/*! ./logger */"./src/logger.js"),s=n(/*! ./mermaidAPI */"./src/mermaidAPI.js"),a=n(/*! ./utils */"./src/utils.js"),l=function(){c.startOnLoad?s.default.getConfig().startOnLoad&&c.init():void 0===c.startOnLoad&&(o.logger.debug("In start, no config"),s.default.getConfig().startOnLoad&&c.init())};"undefined"!=typeof document&& /*! * Wait for document loaded before starting the execution */ -window.addEventListener("load",(function(){u()}),!1);var l={startOnLoad:!0,htmlLabels:!0,mermaidAPI:s.default,parse:s.default.parse,render:s.default.render,init:function(){var e,t,n=this,r=s.default.getConfig();arguments.length>=2?( +window.addEventListener("load",(function(){l()}),!1);var c={startOnLoad:!0,htmlLabels:!0,mermaidAPI:s.default,parse:s.default.parse,render:s.default.render,init:function(){var e,t,n=this,i=s.default.getConfig();arguments.length>=2?( /*! sequence config was passed as #1 */ -void 0!==arguments[0]&&(l.sequenceConfig=arguments[0]),e=arguments[1]):e=arguments[0],"function"==typeof arguments[arguments.length-1]?(t=arguments[arguments.length-1],o.logger.debug("Callback function found")):void 0!==r.mermaid&&("function"==typeof r.mermaid.callback?(t=r.mermaid.callback,o.logger.debug("Callback function found")):o.logger.debug("No Callback function found")),e=void 0===e?document.querySelectorAll(".mermaid"):"string"==typeof e?document.querySelectorAll(e):e instanceof window.Node?[e]:e,o.logger.debug("Start On Load before: "+l.startOnLoad),void 0!==l.startOnLoad&&(o.logger.debug("Start On Load inner: "+l.startOnLoad),s.default.updateSiteConfig({startOnLoad:l.startOnLoad})),void 0!==l.ganttConfig&&s.default.updateSiteConfig({gantt:l.ganttConfig});for(var u,c=a.default.initIdGeneratior(r.deterministicIds,r.deterministicIDSeed).next,d=function(r){var l=e[r]; -/*! Check if previously processed */if(l.getAttribute("data-processed"))return"continue";l.setAttribute("data-processed",!0);var d="mermaid-".concat(c());u=l.innerHTML,u=i()(u).trim().replace(/<br\s*\/?>/gi,"<br/>");var h=a.default.detectInit(u);h&&o.logger.debug("Detected early reinit: ",h);try{s.default.render(d,u,(function(e,n){l.innerHTML=e,void 0!==t&&t(d),n&&n(l)}),l)}catch(e){o.logger.warn("Syntax Error rendering"),o.logger.warn(e),n.parseError&&n.parseError(e)}},h=0;h<e.length;h++)d(h)},initialize:function(e){void 0!==e.mermaid&&(void 0!==e.mermaid.startOnLoad&&(l.startOnLoad=e.mermaid.startOnLoad),void 0!==e.mermaid.htmlLabels&&(l.htmlLabels=e.mermaid.htmlLabels)),s.default.initialize(e)},contentLoaded:u};t.default=l},"./src/mermaidAPI.js": +void 0!==arguments[0]&&(c.sequenceConfig=arguments[0]),e=arguments[1]):e=arguments[0],"function"==typeof arguments[arguments.length-1]?(t=arguments[arguments.length-1],o.logger.debug("Callback function found")):void 0!==i.mermaid&&("function"==typeof i.mermaid.callback?(t=i.mermaid.callback,o.logger.debug("Callback function found")):o.logger.debug("No Callback function found")),e=void 0===e?document.querySelectorAll(".mermaid"):"string"==typeof e?document.querySelectorAll(e):e instanceof window.Node?[e]:e,o.logger.debug("Start On Load before: "+c.startOnLoad),void 0!==c.startOnLoad&&(o.logger.debug("Start On Load inner: "+c.startOnLoad),s.default.updateSiteConfig({startOnLoad:c.startOnLoad})),void 0!==c.ganttConfig&&s.default.updateSiteConfig({gantt:c.ganttConfig});for(var l,d=a.default.initIdGeneratior(i.deterministicIds,i.deterministicIDSeed).next,u=function(i){var c=e[i]; +/*! Check if previously processed */if(c.getAttribute("data-processed"))return"continue";c.setAttribute("data-processed",!0);var u="mermaid-".concat(d());l=c.innerHTML,l=r()(l).trim().replace(/<br\s*\/?>/gi,"<br/>");var h=a.default.detectInit(l);h&&o.logger.debug("Detected early reinit: ",h);try{s.default.render(u,l,(function(e,n){c.innerHTML=e,void 0!==t&&t(u),n&&n(c)}),c)}catch(e){o.logger.warn("Syntax Error rendering"),o.logger.warn(e),n.parseError&&n.parseError(e)}},h=0;h<e.length;h++)u(h)},initialize:function(e){void 0!==e.mermaid&&(void 0!==e.mermaid.startOnLoad&&(c.startOnLoad=e.mermaid.startOnLoad),void 0!==e.mermaid.htmlLabels&&(c.htmlLabels=e.mermaid.htmlLabels)),s.default.initialize(e)},contentLoaded:l};t.default=c},"./src/mermaidAPI.js": /*!***************************!*\ !*** ./src/mermaidAPI.js ***! \***************************/ -/*! exports provided: encodeEntities, decodeEntities, default */function(e,t,n){"use strict";n.r(t),n.d(t,"encodeEntities",(function(){return re})),n.d(t,"decodeEntities",(function(){return ie}));var r=n(/*! stylis */"stylis"),i=n.n(r),o=n(/*! d3 */"d3"),s=n(/*! ../package.json */"./package.json"),a=n(/*! ./logger */"./src/logger.js"),u=n(/*! ./utils */"./src/utils.js"),l=n(/*! ./diagrams/flowchart/flowRenderer */"./src/diagrams/flowchart/flowRenderer.js"),c=n(/*! ./diagrams/flowchart/flowRenderer-v2 */"./src/diagrams/flowchart/flowRenderer-v2.js"),d=n(/*! ./diagrams/flowchart/parser/flow */"./src/diagrams/flowchart/parser/flow.jison"),h=n.n(d),f=n(/*! ./diagrams/flowchart/flowDb */"./src/diagrams/flowchart/flowDb.js"),p=n(/*! ./diagrams/sequence/sequenceRenderer */"./src/diagrams/sequence/sequenceRenderer.js"),g=n(/*! ./diagrams/sequence/parser/sequenceDiagram */"./src/diagrams/sequence/parser/sequenceDiagram.jison"),m=n.n(g),_=n(/*! ./diagrams/sequence/sequenceDb */"./src/diagrams/sequence/sequenceDb.js"),y=n(/*! ./diagrams/gantt/ganttRenderer */"./src/diagrams/gantt/ganttRenderer.js"),v=n(/*! ./diagrams/gantt/parser/gantt */"./src/diagrams/gantt/parser/gantt.jison"),b=n.n(v),w=n(/*! ./diagrams/gantt/ganttDb */"./src/diagrams/gantt/ganttDb.js"),C=n(/*! ./diagrams/class/classRenderer */"./src/diagrams/class/classRenderer.js"),S=n(/*! ./diagrams/class/classRenderer-v2 */"./src/diagrams/class/classRenderer-v2.js"),x=n(/*! ./diagrams/class/parser/classDiagram */"./src/diagrams/class/parser/classDiagram.jison"),L=n.n(x),k=n(/*! ./diagrams/class/classDb */"./src/diagrams/class/classDb.js"),M=n(/*! ./diagrams/state/stateRenderer */"./src/diagrams/state/stateRenderer.js"),D=n(/*! ./diagrams/state/stateRenderer-v2 */"./src/diagrams/state/stateRenderer-v2.js"),E=n(/*! ./diagrams/state/parser/stateDiagram */"./src/diagrams/state/parser/stateDiagram.jison"),T=n.n(E),N=n(/*! ./diagrams/state/stateDb */"./src/diagrams/state/stateDb.js"),O=n(/*! ./diagrams/git/gitGraphRenderer */"./src/diagrams/git/gitGraphRenderer.js"),A=n(/*! ./diagrams/git/parser/gitGraph */"./src/diagrams/git/parser/gitGraph.jison"),I=n.n(A),P=n(/*! ./diagrams/git/gitGraphAst */"./src/diagrams/git/gitGraphAst.js"),R=n(/*! ./diagrams/info/infoRenderer */"./src/diagrams/info/infoRenderer.js"),F=n(/*! ./errorRenderer */"./src/errorRenderer.js"),Y=n(/*! ./diagrams/info/parser/info */"./src/diagrams/info/parser/info.jison"),j=n.n(Y),B=n(/*! ./diagrams/info/infoDb */"./src/diagrams/info/infoDb.js"),W=n(/*! ./diagrams/pie/pieRenderer */"./src/diagrams/pie/pieRenderer.js"),H=n(/*! ./diagrams/pie/parser/pie */"./src/diagrams/pie/parser/pie.jison"),V=n.n(H),z=n(/*! ./diagrams/pie/pieDb */"./src/diagrams/pie/pieDb.js"),U=n(/*! ./diagrams/er/erDb */"./src/diagrams/er/erDb.js"),q=n(/*! ./diagrams/er/parser/erDiagram */"./src/diagrams/er/parser/erDiagram.jison"),K=n.n(q),G=n(/*! ./diagrams/er/erRenderer */"./src/diagrams/er/erRenderer.js"),$=n(/*! ./diagrams/user-journey/parser/journey */"./src/diagrams/user-journey/parser/journey.jison"),Z=n.n($),X=n(/*! ./diagrams/user-journey/journeyDb */"./src/diagrams/user-journey/journeyDb.js"),J=n(/*! ./diagrams/user-journey/journeyRenderer */"./src/diagrams/user-journey/journeyRenderer.js"),Q=n(/*! ./config */"./src/config.js"),ee=n(/*! ./styles */"./src/styles.js"),te=n(/*! ./themes */"./src/themes/index.js");function ne(e){return(ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var re=function(e){var t=e;return t=(t=(t=t.replace(/style.*:\S*#.*;/g,(function(e){return e.substring(0,e.length-1)}))).replace(/classDef.*:\S*#.*;/g,(function(e){return e.substring(0,e.length-1)}))).replace(/#\w+;/g,(function(e){var t=e.substring(1,e.length-1);return/^\+?\d+$/.test(t)?"fl°°"+t+"¶ß":"fl°"+t+"¶ß"}))},ie=function(e){var t=e;return t=(t=(t=t.replace(/fl°°/g,(function(){return"&#"}))).replace(/fl°/g,(function(){return"&"}))).replace(/¶ß/g,(function(){return";"}))},oe={},se=function(e,t,n){switch(a.logger.debug("Directive type=".concat(t.type," with args:"),t.args),t.type){case"init":case"initialize":["config"].forEach((function(e){void 0!==t.args[e]&&("flowchart-v2"===n&&(n="flowchart"),t.args[n]=t.args[e],delete t.args[e])})),t.args,Q.addDirective(t.args);break;case"wrap":case"nowrap":e&&e.setWrap&&e.setWrap("wrap"===t.type);break;default:a.logger.warn("Unhandled directive: source: '%%{".concat(t.type,": ").concat(JSON.stringify(t.args?t.args:{}),"}%%"),t)}};function ae(e){O.default.setConf(e.git),l.default.setConf(e.flowchart),c.default.setConf(e.flowchart),void 0!==e.sequenceDiagram&&p.default.setConf(Object(u.assignWithDepth)(e.sequence,e.sequenceDiagram)),p.default.setConf(e.sequence),y.default.setConf(e.gantt),C.default.setConf(e.class),M.default.setConf(e.state),D.default.setConf(e.state),R.default.setConf(e.class),W.default.setConf(e.class),G.default.setConf(e.er),J.default.setConf(e.journey),F.default.setConf(e.class)}function ue(){}var le=Object.freeze({render:function(e,t,n,r){Q.reset();var d=t,h=u.default.detectInit(d);h&&Q.addDirective(h);var g=Q.getConfig();if(t.length>g.maxTextSize&&(d="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa"),void 0!==r)r.innerHTML="",Object(o.select)(r).append("div").attr("id","d"+e).attr("style","font-family: "+g.fontFamily).append("svg").attr("id",e).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg").append("g");else{var m=document.getElementById(e);m&&m.remove();var _=document.querySelector("#d"+e);_&&_.remove(),Object(o.select)("body").append("div").attr("id","d"+e).append("svg").attr("id",e).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg").append("g")}window.txt=d,d=re(d);var v=Object(o.select)("#d"+e).node(),b=u.default.detectType(d),x=v.firstChild,L=x.firstChild,E="";if(void 0!==g.themeCSS&&(E+="\n".concat(g.themeCSS)),void 0!==g.fontFamily&&(E+="\n:root { --mermaid-font-family: ".concat(g.fontFamily,"}")),void 0!==g.altFontFamily&&(E+="\n:root { --mermaid-alt-font-family: ".concat(g.altFontFamily,"}")),"flowchart"===b||"flowchart-v2"===b||"graph"===b){var T=l.default.getClasses(d);for(var N in T)E+="\n.".concat(N," > * { ").concat(T[N].styles.join(" !important; ")," !important; }"),T[N].textStyles&&(E+="\n.".concat(N," tspan { ").concat(T[N].textStyles.join(" !important; ")," !important; }"))}var A=(new i.a)("#".concat(e),Object(ee.default)(b,E,g.themeVariables)),I=document.createElement("style");I.innerHTML=A,x.insertBefore(I,L);try{switch(b){case"git":g.flowchart.arrowMarkerAbsolute=g.arrowMarkerAbsolute,O.default.setConf(g.git),O.default.draw(d,e,!1);break;case"flowchart":g.flowchart.arrowMarkerAbsolute=g.arrowMarkerAbsolute,l.default.setConf(g.flowchart),l.default.draw(d,e,!1);break;case"flowchart-v2":g.flowchart.arrowMarkerAbsolute=g.arrowMarkerAbsolute,c.default.setConf(g.flowchart),c.default.draw(d,e,!1);break;case"sequence":g.sequence.arrowMarkerAbsolute=g.arrowMarkerAbsolute,g.sequenceDiagram?(p.default.setConf(Object.assign(g.sequence,g.sequenceDiagram)),console.error("`mermaid config.sequenceDiagram` has been renamed to `config.sequence`. Please update your mermaid config.")):p.default.setConf(g.sequence),p.default.draw(d,e);break;case"gantt":g.gantt.arrowMarkerAbsolute=g.arrowMarkerAbsolute,y.default.setConf(g.gantt),y.default.draw(d,e);break;case"class":g.class.arrowMarkerAbsolute=g.arrowMarkerAbsolute,C.default.setConf(g.class),C.default.draw(d,e);break;case"classDiagram":g.class.arrowMarkerAbsolute=g.arrowMarkerAbsolute,S.default.setConf(g.class),S.default.draw(d,e);break;case"state":g.class.arrowMarkerAbsolute=g.arrowMarkerAbsolute,M.default.setConf(g.state),M.default.draw(d,e);break;case"stateDiagram":g.class.arrowMarkerAbsolute=g.arrowMarkerAbsolute,D.default.setConf(g.state),D.default.draw(d,e);break;case"info":g.class.arrowMarkerAbsolute=g.arrowMarkerAbsolute,R.default.setConf(g.class),R.default.draw(d,e,s.version);break;case"pie":g.class.arrowMarkerAbsolute=g.arrowMarkerAbsolute,W.default.setConf(g.pie),W.default.draw(d,e,s.version);break;case"er":G.default.setConf(g.er),G.default.draw(d,e,s.version);break;case"journey":J.default.setConf(g.journey),J.default.draw(d,e,s.version)}}catch(t){throw F.default.draw(e,s.version),t}Object(o.select)('[id="'.concat(e,'"]')).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");var P=Object(o.select)("#d"+e).node().innerHTML;if(a.logger.debug("cnf.arrowMarkerAbsolute",g.arrowMarkerAbsolute),g.arrowMarkerAbsolute&&"false"!==g.arrowMarkerAbsolute||(P=P.replace(/marker-end="url\(.*?#/g,'marker-end="url(#',"g")),P=ie(P),void 0!==n)switch(b){case"flowchart":case"flowchart-v2":n(P,f.default.bindFunctions);break;case"gantt":n(P,w.default.bindFunctions);break;case"class":case"classDiagram":n(P,k.default.bindFunctions);break;default:n(P)}else a.logger.debug("CB = undefined!");var Y=Object(o.select)("#d"+e).node();return null!==Y&&"function"==typeof Y.remove&&Object(o.select)("#d"+e).node().remove(),P},parse:function(e){var t=u.default.detectInit(e);t&&a.logger.debug("reinit ",t);var n,r=u.default.detectType(e);switch(a.logger.debug("Type "+r),r){case"git":(n=I.a).parser.yy=P.default;break;case"flowchart":case"flowchart-v2":f.default.clear(),(n=h.a).parser.yy=f.default;break;case"sequence":(n=m.a).parser.yy=_.default;break;case"gantt":(n=b.a).parser.yy=w.default;break;case"class":case"classDiagram":(n=L.a).parser.yy=k.default;break;case"state":case"stateDiagram":(n=T.a).parser.yy=N.default;break;case"info":a.logger.debug("info info info"),(n=j.a).parser.yy=B.default;break;case"pie":a.logger.debug("pie"),(n=V.a).parser.yy=z.default;break;case"er":a.logger.debug("er"),(n=K.a).parser.yy=U.default;break;case"journey":a.logger.debug("Journey"),(n=Z.a).parser.yy=X.default}return n.parser.yy.graphType=r,n.parser.yy.parseError=function(e,t){throw{str:e,hash:t}},n.parse(e),n},parseDirective:function(e,t,n,r){try{if(void 0!==t)switch(t=t.trim(),n){case"open_directive":oe={};break;case"type_directive":oe.type=t.toLowerCase();break;case"arg_directive":oe.args=JSON.parse(t);break;case"close_directive":se(e,oe,r),oe=null}}catch(e){a.logger.error("Error while rendering sequenceDiagram directive: ".concat(t," jison context: ").concat(n)),a.logger.error(e.message)}},initialize:function(e){e&&e.fontFamily&&(e.themeVariables&&e.themeVariables.fontFamily||(e.themeVariables={fontFamily:e.fontFamily})),Q.setSiteConfigDelta(e),e&&e.theme&&te.default[e.theme]?e.themeVariables=te.default[e.theme].getThemeVariables(e.themeVariables):e&&(e.themeVariables=te.default.default.getThemeVariables(e.themeVariables));var t="object"===ne(e)?Q.setSiteConfig(e):Q.getSiteConfig();ae(t),Object(a.setLogLevel)(t.logLevel)},reinitialize:ue,getConfig:Q.getConfig,setConfig:Q.setConfig,getSiteConfig:Q.getSiteConfig,updateSiteConfig:Q.updateSiteConfig,reset:function(){Q.reset()},globalReset:function(){Q.reset(Q.defaultConfig),ae(Q.getConfig())},defaultConfig:Q.defaultConfig});Object(a.setLogLevel)(Q.getConfig().logLevel),Q.reset(Q.getConfig()),t.default=le},"./src/styles.js": +/*! exports provided: encodeEntities, decodeEntities, default */function(e,t,n){"use strict";n.r(t),n.d(t,"encodeEntities",(function(){return ie})),n.d(t,"decodeEntities",(function(){return re}));var i=n(/*! stylis */"stylis"),r=n.n(i),o=n(/*! d3 */"d3"),s=n(/*! ../package.json */"./package.json"),a=n(/*! ./logger */"./src/logger.js"),l=n(/*! ./utils */"./src/utils.js"),c=n(/*! ./diagrams/flowchart/flowRenderer */"./src/diagrams/flowchart/flowRenderer.js"),d=n(/*! ./diagrams/flowchart/flowRenderer-v2 */"./src/diagrams/flowchart/flowRenderer-v2.js"),u=n(/*! ./diagrams/flowchart/parser/flow */"./src/diagrams/flowchart/parser/flow.jison"),h=n.n(u),f=n(/*! ./diagrams/flowchart/flowDb */"./src/diagrams/flowchart/flowDb.js"),g=n(/*! ./diagrams/sequence/sequenceRenderer */"./src/diagrams/sequence/sequenceRenderer.js"),p=n(/*! ./diagrams/sequence/parser/sequenceDiagram */"./src/diagrams/sequence/parser/sequenceDiagram.jison"),m=n.n(p),_=n(/*! ./diagrams/sequence/sequenceDb */"./src/diagrams/sequence/sequenceDb.js"),b=n(/*! ./diagrams/gantt/ganttRenderer */"./src/diagrams/gantt/ganttRenderer.js"),v=n(/*! ./diagrams/gantt/parser/gantt */"./src/diagrams/gantt/parser/gantt.jison"),y=n.n(v),w=n(/*! ./diagrams/gantt/ganttDb */"./src/diagrams/gantt/ganttDb.js"),C=n(/*! ./diagrams/class/classRenderer */"./src/diagrams/class/classRenderer.js"),S=n(/*! ./diagrams/class/classRenderer-v2 */"./src/diagrams/class/classRenderer-v2.js"),k=n(/*! ./diagrams/class/parser/classDiagram */"./src/diagrams/class/parser/classDiagram.jison"),x=n.n(k),L=n(/*! ./diagrams/class/classDb */"./src/diagrams/class/classDb.js"),M=n(/*! ./diagrams/state/stateRenderer */"./src/diagrams/state/stateRenderer.js"),D=n(/*! ./diagrams/state/stateRenderer-v2 */"./src/diagrams/state/stateRenderer-v2.js"),E=n(/*! ./diagrams/state/parser/stateDiagram */"./src/diagrams/state/parser/stateDiagram.jison"),T=n.n(E),O=n(/*! ./diagrams/state/stateDb */"./src/diagrams/state/stateDb.js"),N=n(/*! ./diagrams/git/gitGraphRenderer */"./src/diagrams/git/gitGraphRenderer.js"),I=n(/*! ./diagrams/git/parser/gitGraph */"./src/diagrams/git/parser/gitGraph.jison"),A=n.n(I),R=n(/*! ./diagrams/git/gitGraphAst */"./src/diagrams/git/gitGraphAst.js"),P=n(/*! ./diagrams/info/infoRenderer */"./src/diagrams/info/infoRenderer.js"),j=n(/*! ./errorRenderer */"./src/errorRenderer.js"),F=n(/*! ./diagrams/info/parser/info */"./src/diagrams/info/parser/info.jison"),B=n.n(F),W=n(/*! ./diagrams/info/infoDb */"./src/diagrams/info/infoDb.js"),H=n(/*! ./diagrams/pie/pieRenderer */"./src/diagrams/pie/pieRenderer.js"),Y=n(/*! ./diagrams/pie/parser/pie */"./src/diagrams/pie/parser/pie.jison"),V=n.n(Y),z=n(/*! ./diagrams/pie/pieDb */"./src/diagrams/pie/pieDb.js"),U=n(/*! ./diagrams/er/erDb */"./src/diagrams/er/erDb.js"),$=n(/*! ./diagrams/er/parser/erDiagram */"./src/diagrams/er/parser/erDiagram.jison"),q=n.n($),K=n(/*! ./diagrams/er/erRenderer */"./src/diagrams/er/erRenderer.js"),G=n(/*! ./diagrams/user-journey/parser/journey */"./src/diagrams/user-journey/parser/journey.jison"),Z=n.n(G),J=n(/*! ./diagrams/user-journey/journeyDb */"./src/diagrams/user-journey/journeyDb.js"),X=n(/*! ./diagrams/user-journey/journeyRenderer */"./src/diagrams/user-journey/journeyRenderer.js"),Q=n(/*! ./config */"./src/config.js"),ee=n(/*! ./styles */"./src/styles.js"),te=n(/*! ./themes */"./src/themes/index.js");function ne(e){return(ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var ie=function(e){var t=e;return t=(t=(t=t.replace(/style.*:\S*#.*;/g,(function(e){return e.substring(0,e.length-1)}))).replace(/classDef.*:\S*#.*;/g,(function(e){return e.substring(0,e.length-1)}))).replace(/#\w+;/g,(function(e){var t=e.substring(1,e.length-1);return/^\+?\d+$/.test(t)?"fl°°"+t+"¶ß":"fl°"+t+"¶ß"}))},re=function(e){var t=e;return t=(t=(t=t.replace(/fl°°/g,(function(){return"&#"}))).replace(/fl°/g,(function(){return"&"}))).replace(/¶ß/g,(function(){return";"}))},oe={},se=function(e,t,n){switch(a.logger.debug("Directive type=".concat(t.type," with args:"),t.args),t.type){case"init":case"initialize":["config"].forEach((function(e){void 0!==t.args[e]&&("flowchart-v2"===n&&(n="flowchart"),t.args[n]=t.args[e],delete t.args[e])})),t.args,Q.addDirective(t.args);break;case"wrap":case"nowrap":e&&e.setWrap&&e.setWrap("wrap"===t.type);break;default:a.logger.warn("Unhandled directive: source: '%%{".concat(t.type,": ").concat(JSON.stringify(t.args?t.args:{}),"}%%"),t)}};function ae(e){N.default.setConf(e.git),c.default.setConf(e.flowchart),d.default.setConf(e.flowchart),void 0!==e.sequenceDiagram&&g.default.setConf(Object(l.assignWithDepth)(e.sequence,e.sequenceDiagram)),g.default.setConf(e.sequence),b.default.setConf(e.gantt),C.default.setConf(e.class),M.default.setConf(e.state),D.default.setConf(e.state),P.default.setConf(e.class),H.default.setConf(e.class),K.default.setConf(e.er),X.default.setConf(e.journey),j.default.setConf(e.class)}function le(){}var ce=Object.freeze({render:function(e,t,n,i){Q.reset();var u=t,h=l.default.detectInit(u);h&&Q.addDirective(h);var p=Q.getConfig();if(t.length>p.maxTextSize&&(u="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa"),void 0!==i)i.innerHTML="",Object(o.select)(i).append("div").attr("id","d"+e).attr("style","font-family: "+p.fontFamily).append("svg").attr("id",e).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg").append("g");else{var m=document.getElementById(e);m&&m.remove();var _=document.querySelector("#d"+e);_&&_.remove(),Object(o.select)("body").append("div").attr("id","d"+e).append("svg").attr("id",e).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg").append("g")}window.txt=u,u=ie(u);var v=Object(o.select)("#d"+e).node(),y=l.default.detectType(u),k=v.firstChild,x=k.firstChild,E="";if(void 0!==p.themeCSS&&(E+="\n".concat(p.themeCSS)),void 0!==p.fontFamily&&(E+="\n:root { --mermaid-font-family: ".concat(p.fontFamily,"}")),void 0!==p.altFontFamily&&(E+="\n:root { --mermaid-alt-font-family: ".concat(p.altFontFamily,"}")),"flowchart"===y||"flowchart-v2"===y||"graph"===y){var T=c.default.getClasses(u);for(var O in T)E+="\n.".concat(O," > * { ").concat(T[O].styles.join(" !important; ")," !important; }"),T[O].textStyles&&(E+="\n.".concat(O," tspan { ").concat(T[O].textStyles.join(" !important; ")," !important; }"))}var I=(new r.a)("#".concat(e),Object(ee.default)(y,E,p.themeVariables)),A=document.createElement("style");A.innerHTML=I,k.insertBefore(A,x);try{switch(y){case"git":p.flowchart.arrowMarkerAbsolute=p.arrowMarkerAbsolute,N.default.setConf(p.git),N.default.draw(u,e,!1);break;case"flowchart":p.flowchart.arrowMarkerAbsolute=p.arrowMarkerAbsolute,c.default.setConf(p.flowchart),c.default.draw(u,e,!1);break;case"flowchart-v2":p.flowchart.arrowMarkerAbsolute=p.arrowMarkerAbsolute,d.default.setConf(p.flowchart),d.default.draw(u,e,!1);break;case"sequence":p.sequence.arrowMarkerAbsolute=p.arrowMarkerAbsolute,p.sequenceDiagram?(g.default.setConf(Object.assign(p.sequence,p.sequenceDiagram)),console.error("`mermaid config.sequenceDiagram` has been renamed to `config.sequence`. Please update your mermaid config.")):g.default.setConf(p.sequence),g.default.draw(u,e);break;case"gantt":p.gantt.arrowMarkerAbsolute=p.arrowMarkerAbsolute,b.default.setConf(p.gantt),b.default.draw(u,e);break;case"class":p.class.arrowMarkerAbsolute=p.arrowMarkerAbsolute,C.default.setConf(p.class),C.default.draw(u,e);break;case"classDiagram":p.class.arrowMarkerAbsolute=p.arrowMarkerAbsolute,S.default.setConf(p.class),S.default.draw(u,e);break;case"state":p.class.arrowMarkerAbsolute=p.arrowMarkerAbsolute,M.default.setConf(p.state),M.default.draw(u,e);break;case"stateDiagram":p.class.arrowMarkerAbsolute=p.arrowMarkerAbsolute,D.default.setConf(p.state),D.default.draw(u,e);break;case"info":p.class.arrowMarkerAbsolute=p.arrowMarkerAbsolute,P.default.setConf(p.class),P.default.draw(u,e,s.version);break;case"pie":p.class.arrowMarkerAbsolute=p.arrowMarkerAbsolute,H.default.setConf(p.pie),H.default.draw(u,e,s.version);break;case"er":K.default.setConf(p.er),K.default.draw(u,e,s.version);break;case"journey":X.default.setConf(p.journey),X.default.draw(u,e,s.version)}}catch(t){throw j.default.draw(e,s.version),t}Object(o.select)('[id="'.concat(e,'"]')).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");var R=Object(o.select)("#d"+e).node().innerHTML;if(a.logger.debug("cnf.arrowMarkerAbsolute",p.arrowMarkerAbsolute),p.arrowMarkerAbsolute&&"false"!==p.arrowMarkerAbsolute||(R=R.replace(/marker-end="url\(.*?#/g,'marker-end="url(#',"g")),R=re(R),void 0!==n)switch(y){case"flowchart":case"flowchart-v2":n(R,f.default.bindFunctions);break;case"gantt":n(R,w.default.bindFunctions);break;case"class":case"classDiagram":n(R,L.default.bindFunctions);break;default:n(R)}else a.logger.debug("CB = undefined!");var F=Object(o.select)("#d"+e).node();return null!==F&&"function"==typeof F.remove&&Object(o.select)("#d"+e).node().remove(),R},parse:function(e){var t=l.default.detectInit(e);t&&a.logger.debug("reinit ",t);var n,i=l.default.detectType(e);switch(a.logger.debug("Type "+i),i){case"git":(n=A.a).parser.yy=R.default;break;case"flowchart":case"flowchart-v2":f.default.clear(),(n=h.a).parser.yy=f.default;break;case"sequence":(n=m.a).parser.yy=_.default;break;case"gantt":(n=y.a).parser.yy=w.default;break;case"class":case"classDiagram":(n=x.a).parser.yy=L.default;break;case"state":case"stateDiagram":(n=T.a).parser.yy=O.default;break;case"info":a.logger.debug("info info info"),(n=B.a).parser.yy=W.default;break;case"pie":a.logger.debug("pie"),(n=V.a).parser.yy=z.default;break;case"er":a.logger.debug("er"),(n=q.a).parser.yy=U.default;break;case"journey":a.logger.debug("Journey"),(n=Z.a).parser.yy=J.default}return n.parser.yy.graphType=i,n.parser.yy.parseError=function(e,t){throw{str:e,hash:t}},n.parse(e),n},parseDirective:function(e,t,n,i){try{if(void 0!==t)switch(t=t.trim(),n){case"open_directive":oe={};break;case"type_directive":oe.type=t.toLowerCase();break;case"arg_directive":oe.args=JSON.parse(t);break;case"close_directive":se(e,oe,i),oe=null}}catch(e){a.logger.error("Error while rendering sequenceDiagram directive: ".concat(t," jison context: ").concat(n)),a.logger.error(e.message)}},initialize:function(e){e&&e.fontFamily&&(e.themeVariables&&e.themeVariables.fontFamily||(e.themeVariables={fontFamily:e.fontFamily})),Q.setSiteConfigDelta(e),e&&e.theme&&te.default[e.theme]?e.themeVariables=te.default[e.theme].getThemeVariables(e.themeVariables):e&&(e.themeVariables=te.default.default.getThemeVariables(e.themeVariables));var t="object"===ne(e)?Q.setSiteConfig(e):Q.getSiteConfig();ae(t),Object(a.setLogLevel)(t.logLevel)},reinitialize:le,getConfig:Q.getConfig,setConfig:Q.setConfig,getSiteConfig:Q.getSiteConfig,updateSiteConfig:Q.updateSiteConfig,reset:function(){Q.reset()},globalReset:function(){Q.reset(Q.defaultConfig),ae(Q.getConfig())},defaultConfig:Q.defaultConfig});Object(a.setLogLevel)(Q.getConfig().logLevel),Q.reset(Q.getConfig()),t.default=ce},"./src/styles.js": /*!***********************!*\ !*** ./src/styles.js ***! \***********************/ -/*! exports provided: calcThemeVariables, default */function(e,t,n){"use strict";n.r(t),n.d(t,"calcThemeVariables",(function(){return p}));var r=n(/*! ./diagrams/class/styles */"./src/diagrams/class/styles.js"),i=n(/*! ./diagrams/er/styles */"./src/diagrams/er/styles.js"),o=n(/*! ./diagrams/flowchart/styles */"./src/diagrams/flowchart/styles.js"),s=n(/*! ./diagrams/gantt/styles */"./src/diagrams/gantt/styles.js"),a=n(/*! ./diagrams/git/styles */"./src/diagrams/git/styles.js"),u=n(/*! ./diagrams/info/styles */"./src/diagrams/info/styles.js"),l=n(/*! ./diagrams/pie/styles */"./src/diagrams/pie/styles.js"),c=n(/*! ./diagrams/sequence/styles */"./src/diagrams/sequence/styles.js"),d=n(/*! ./diagrams/state/styles */"./src/diagrams/state/styles.js"),h=n(/*! ./diagrams/user-journey/styles */"./src/diagrams/user-journey/styles.js"),f={flowchart:o.default,"flowchart-v2":o.default,sequence:c.default,gantt:s.default,classDiagram:r.default,"classDiagram-v2":r.default,class:r.default,stateDiagram:d.default,state:d.default,git:a.default,info:u.default,pie:l.default,er:i.default,journey:h.default},p=function(e,t){return e.calcColors(t)};t.default=function(e,t,n){return" {\n font-family: ".concat(n.fontFamily,";\n font-size: ").concat(n.fontSize,";\n fill: ").concat(n.textColor,"\n }\n\n /* Classes common for multiple diagrams */\n\n .error-icon {\n fill: ").concat(n.errorBkgColor,";\n }\n .error-text {\n fill: ").concat(n.errorTextColor,";\n stroke: ").concat(n.errorTextColor,";\n }\n\n .edge-thickness-normal {\n stroke-width: 2px;\n }\n .edge-thickness-thick {\n stroke-width: 3.5px\n }\n .edge-pattern-solid {\n stroke-dasharray: 0;\n }\n\n .edge-pattern-dashed{\n stroke-dasharray: 3;\n }\n .edge-pattern-dotted {\n stroke-dasharray: 2;\n }\n\n .marker {\n fill: ").concat(n.lineColor,";\n }\n .marker.cross {\n stroke: ").concat(n.lineColor,";\n }\n\n svg {\n font-family: ").concat(n.fontFamily,";\n font-size: ").concat(n.fontSize,";\n }\n\n ").concat(f[e](n),"\n\n ").concat(t,"\n\n ").concat(e," { fill: apa;}\n")}},"./src/themes/index.js": +/*! exports provided: calcThemeVariables, default */function(e,t,n){"use strict";n.r(t),n.d(t,"calcThemeVariables",(function(){return g}));var i=n(/*! ./diagrams/class/styles */"./src/diagrams/class/styles.js"),r=n(/*! ./diagrams/er/styles */"./src/diagrams/er/styles.js"),o=n(/*! ./diagrams/flowchart/styles */"./src/diagrams/flowchart/styles.js"),s=n(/*! ./diagrams/gantt/styles */"./src/diagrams/gantt/styles.js"),a=n(/*! ./diagrams/git/styles */"./src/diagrams/git/styles.js"),l=n(/*! ./diagrams/info/styles */"./src/diagrams/info/styles.js"),c=n(/*! ./diagrams/pie/styles */"./src/diagrams/pie/styles.js"),d=n(/*! ./diagrams/sequence/styles */"./src/diagrams/sequence/styles.js"),u=n(/*! ./diagrams/state/styles */"./src/diagrams/state/styles.js"),h=n(/*! ./diagrams/user-journey/styles */"./src/diagrams/user-journey/styles.js"),f={flowchart:o.default,"flowchart-v2":o.default,sequence:d.default,gantt:s.default,classDiagram:i.default,"classDiagram-v2":i.default,class:i.default,stateDiagram:u.default,state:u.default,git:a.default,info:l.default,pie:c.default,er:r.default,journey:h.default},g=function(e,t){return e.calcColors(t)};t.default=function(e,t,n){return" {\n font-family: ".concat(n.fontFamily,";\n font-size: ").concat(n.fontSize,";\n fill: ").concat(n.textColor,"\n }\n\n /* Classes common for multiple diagrams */\n\n .error-icon {\n fill: ").concat(n.errorBkgColor,";\n }\n .error-text {\n fill: ").concat(n.errorTextColor,";\n stroke: ").concat(n.errorTextColor,";\n }\n\n .edge-thickness-normal {\n stroke-width: 2px;\n }\n .edge-thickness-thick {\n stroke-width: 3.5px\n }\n .edge-pattern-solid {\n stroke-dasharray: 0;\n }\n\n .edge-pattern-dashed{\n stroke-dasharray: 3;\n }\n .edge-pattern-dotted {\n stroke-dasharray: 2;\n }\n\n .marker {\n fill: ").concat(n.lineColor,";\n }\n .marker.cross {\n stroke: ").concat(n.lineColor,";\n }\n\n svg {\n font-family: ").concat(n.fontFamily,";\n font-size: ").concat(n.fontSize,";\n }\n\n ").concat(f[e](n),"\n\n ").concat(t,"\n\n ").concat(e," { fill: apa;}\n")}},"./src/themes/index.js": /*!*****************************!*\ !*** ./src/themes/index.js ***! \*****************************/ -/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var r=n(/*! ./theme-base */"./src/themes/theme-base.js"),i=n(/*! ./theme-dark */"./src/themes/theme-dark.js"),o=n(/*! ./theme-default */"./src/themes/theme-default.js"),s=n(/*! ./theme-forest */"./src/themes/theme-forest.js"),a=n(/*! ./theme-neutral */"./src/themes/theme-neutral.js");t.default={base:{getThemeVariables:r.getThemeVariables},dark:{getThemeVariables:i.getThemeVariables},default:{getThemeVariables:o.getThemeVariables},forest:{getThemeVariables:s.getThemeVariables},neutral:{getThemeVariables:a.getThemeVariables}}},"./src/themes/theme-base.js": +/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var i=n(/*! ./theme-base */"./src/themes/theme-base.js"),r=n(/*! ./theme-dark */"./src/themes/theme-dark.js"),o=n(/*! ./theme-default */"./src/themes/theme-default.js"),s=n(/*! ./theme-forest */"./src/themes/theme-forest.js"),a=n(/*! ./theme-neutral */"./src/themes/theme-neutral.js");t.default={base:{getThemeVariables:i.getThemeVariables},dark:{getThemeVariables:r.getThemeVariables},default:{getThemeVariables:o.getThemeVariables},forest:{getThemeVariables:s.getThemeVariables},neutral:{getThemeVariables:a.getThemeVariables}}},"./src/themes/theme-base.js": /*!**********************************!*\ !*** ./src/themes/theme-base.js ***! \**********************************/ -/*! exports provided: getThemeVariables */function(e,t,n){"use strict";n.r(t),n.d(t,"getThemeVariables",(function(){return u}));var r=n(/*! khroma */"khroma"),i=n(/*! ./theme-helpers */"./src/themes/theme-helpers.js");function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.background="#f4f4f4",this.darkMode=!1,this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}var t,n,a;return t=e,(n=[{key:"updateColors",value:function(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#ddd":"#333"),this.secondaryColor=this.secondaryColor||Object(r.adjust)(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||Object(r.adjust)(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Object(i.mkBorder)(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Object(i.mkBorder)(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Object(i.mkBorder)(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Object(i.mkBorder)(this.noteBkgColor,this.darkMode),this.secondaryTextColor=this.secondaryTextColor||Object(r.invert)(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Object(r.invert)(this.tertiaryColor),this.lineColor=this.lineColor||Object(r.invert)(this.background),this.textColor=this.textColor||this.primaryTextColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?Object(r.darken)(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||"grey",this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||Object(r.darken)(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Object(r.invert)(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||Object(r.lighten)(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.labelColor=this.labelColor||this.primaryTextColor,this.altBackground=this.altBackground||this.tertiaryColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||Object(r.adjust)(this.primaryColor,{h:64}),this.fillType3=this.fillType3||Object(r.adjust)(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||Object(r.adjust)(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||Object(r.adjust)(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||Object(r.adjust)(this.primaryColor,{h:128}),this.fillType7=this.fillType7||Object(r.adjust)(this.secondaryColor,{h:128})}},{key:"calculate",value:function(e){var t=this;if("object"===o(e)){var n=Object.keys(e);n.forEach((function(n){t[n]=e[n]})),this.updateColors(),n.forEach((function(n){t[n]=e[n]}))}else this.updateColors()}}])&&s(t.prototype,n),a&&s(t,a),e}(),u=function(e){var t=new a;return t.calculate(e),t}},"./src/themes/theme-dark.js": +/*! exports provided: getThemeVariables */function(e,t,n){"use strict";n.r(t),n.d(t,"getThemeVariables",(function(){return l}));var i=n(/*! khroma */"khroma"),r=n(/*! ./theme-helpers */"./src/themes/theme-helpers.js");function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.background="#f4f4f4",this.darkMode=!1,this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}var t,n,a;return t=e,(n=[{key:"updateColors",value:function(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#ddd":"#333"),this.secondaryColor=this.secondaryColor||Object(i.adjust)(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||Object(i.adjust)(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Object(r.mkBorder)(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Object(r.mkBorder)(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Object(r.mkBorder)(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Object(r.mkBorder)(this.noteBkgColor,this.darkMode),this.secondaryTextColor=this.secondaryTextColor||Object(i.invert)(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Object(i.invert)(this.tertiaryColor),this.lineColor=this.lineColor||Object(i.invert)(this.background),this.textColor=this.textColor||this.primaryTextColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?Object(i.darken)(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||"grey",this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||Object(i.darken)(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Object(i.invert)(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||Object(i.lighten)(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.labelColor=this.labelColor||this.primaryTextColor,this.altBackground=this.altBackground||this.tertiaryColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||Object(i.adjust)(this.primaryColor,{h:64}),this.fillType3=this.fillType3||Object(i.adjust)(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||Object(i.adjust)(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||Object(i.adjust)(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||Object(i.adjust)(this.primaryColor,{h:128}),this.fillType7=this.fillType7||Object(i.adjust)(this.secondaryColor,{h:128})}},{key:"calculate",value:function(e){var t=this;if("object"===o(e)){var n=Object.keys(e);n.forEach((function(n){t[n]=e[n]})),this.updateColors(),n.forEach((function(n){t[n]=e[n]}))}else this.updateColors()}}])&&s(t.prototype,n),a&&s(t,a),e}(),l=function(e){var t=new a;return t.calculate(e),t}},"./src/themes/theme-dark.js": /*!**********************************!*\ !*** ./src/themes/theme-dark.js ***! \**********************************/ -/*! exports provided: getThemeVariables */function(e,t,n){"use strict";n.r(t),n.d(t,"getThemeVariables",(function(){return u}));var r=n(/*! khroma */"khroma"),i=n(/*! ./theme-helpers */"./src/themes/theme-helpers.js");function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=Object(r.lighten)(this.primaryColor,16),this.tertiaryColor=Object(r.adjust)(this.primaryColor,{h:-160}),this.primaryBorderColor=Object(i.mkBorder)(this.primaryColor,this.darkMode),this.secondaryBorderColor=Object(i.mkBorder)(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Object(i.mkBorder)(this.tertiaryColor,this.darkMode),this.primaryTextColor=Object(r.invert)(this.primaryColor),this.secondaryTextColor=Object(r.invert)(this.secondaryColor),this.tertiaryTextColor=Object(r.invert)(this.tertiaryColor),this.lineColor=Object(r.invert)(this.background),this.textColor=Object(r.invert)(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=Object(r.lighten)(Object(r.invert)("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=Object(r.rgba)(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=Object(r.darken)("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.taskBorderColor=Object(r.rgba)(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Object(r.rgba)(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}var t,n,a;return t=e,(n=[{key:"updateColors",value:function(){this.secondBkg=Object(r.lighten)(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=Object(r.lighten)(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.border2,this.noteTextColor=this.mainBkg,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=Object(r.lighten)(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.labelColor=this.textColor,this.altBackground=Object(r.lighten)(this.background,20),this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=Object(r.adjust)(this.primaryColor,{h:64}),this.fillType3=Object(r.adjust)(this.secondaryColor,{h:64}),this.fillType4=Object(r.adjust)(this.primaryColor,{h:-64}),this.fillType5=Object(r.adjust)(this.secondaryColor,{h:-64}),this.fillType6=Object(r.adjust)(this.primaryColor,{h:128}),this.fillType7=Object(r.adjust)(this.secondaryColor,{h:128}),this.classText=this.primaryTextColor}},{key:"calculate",value:function(e){var t=this;if("object"===o(e)){var n=Object.keys(e);n.forEach((function(n){t[n]=e[n]})),this.updateColors(),n.forEach((function(n){t[n]=e[n]}))}else this.updateColors()}}])&&s(t.prototype,n),a&&s(t,a),e}(),u=function(e){var t=new a;return t.calculate(e),t}},"./src/themes/theme-default.js": +/*! exports provided: getThemeVariables */function(e,t,n){"use strict";n.r(t),n.d(t,"getThemeVariables",(function(){return l}));var i=n(/*! khroma */"khroma"),r=n(/*! ./theme-helpers */"./src/themes/theme-helpers.js");function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=Object(i.lighten)(this.primaryColor,16),this.tertiaryColor=Object(i.adjust)(this.primaryColor,{h:-160}),this.primaryBorderColor=Object(r.mkBorder)(this.primaryColor,this.darkMode),this.secondaryBorderColor=Object(r.mkBorder)(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Object(r.mkBorder)(this.tertiaryColor,this.darkMode),this.primaryTextColor=Object(i.invert)(this.primaryColor),this.secondaryTextColor=Object(i.invert)(this.secondaryColor),this.tertiaryTextColor=Object(i.invert)(this.tertiaryColor),this.lineColor=Object(i.invert)(this.background),this.textColor=Object(i.invert)(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=Object(i.lighten)(Object(i.invert)("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=Object(i.rgba)(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=Object(i.darken)("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.taskBorderColor=Object(i.rgba)(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Object(i.rgba)(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}var t,n,a;return t=e,(n=[{key:"updateColors",value:function(){this.secondBkg=Object(i.lighten)(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=Object(i.lighten)(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.border2,this.noteTextColor=this.mainBkg,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=Object(i.lighten)(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.labelColor=this.textColor,this.altBackground=Object(i.lighten)(this.background,20),this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=Object(i.adjust)(this.primaryColor,{h:64}),this.fillType3=Object(i.adjust)(this.secondaryColor,{h:64}),this.fillType4=Object(i.adjust)(this.primaryColor,{h:-64}),this.fillType5=Object(i.adjust)(this.secondaryColor,{h:-64}),this.fillType6=Object(i.adjust)(this.primaryColor,{h:128}),this.fillType7=Object(i.adjust)(this.secondaryColor,{h:128}),this.classText=this.primaryTextColor}},{key:"calculate",value:function(e){var t=this;if("object"===o(e)){var n=Object.keys(e);n.forEach((function(n){t[n]=e[n]})),this.updateColors(),n.forEach((function(n){t[n]=e[n]}))}else this.updateColors()}}])&&s(t.prototype,n),a&&s(t,a),e}(),l=function(e){var t=new a;return t.calculate(e),t}},"./src/themes/theme-default.js": /*!*************************************!*\ !*** ./src/themes/theme-default.js ***! \*************************************/ -/*! exports provided: getThemeVariables */function(e,t,n){"use strict";n.r(t),n.d(t,"getThemeVariables",(function(){return u}));var r=n(/*! khroma */"khroma"),i=n(/*! ./theme-helpers */"./src/themes/theme-helpers.js");function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=Object(r.adjust)(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=Object(r.adjust)(this.primaryColor,{h:-160}),this.primaryBorderColor=Object(i.mkBorder)(this.primaryColor,this.darkMode),this.secondaryBorderColor=Object(i.mkBorder)(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Object(i.mkBorder)(this.tertiaryColor,this.darkMode),this.primaryTextColor=Object(r.invert)(this.primaryColor),this.secondaryTextColor=Object(r.invert)(this.secondaryColor),this.tertiaryTextColor=Object(r.invert)(this.tertiaryColor),this.lineColor=Object(r.invert)(this.background),this.textColor=Object(r.invert)(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=Object(r.rgba)(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}var t,n,a;return t=e,(n=[{key:"updateColors",value:function(){this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=Object(r.lighten)(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=Object(r.adjust)(this.primaryColor,{h:64}),this.fillType3=Object(r.adjust)(this.secondaryColor,{h:64}),this.fillType4=Object(r.adjust)(this.primaryColor,{h:-64}),this.fillType5=Object(r.adjust)(this.secondaryColor,{h:-64}),this.fillType6=Object(r.adjust)(this.primaryColor,{h:128}),this.fillType7=Object(r.adjust)(this.secondaryColor,{h:128})}},{key:"calculate",value:function(e){var t=this;if("object"===o(e)){var n=Object.keys(e);n.forEach((function(n){t[n]=e[n]})),this.updateColors(),n.forEach((function(n){t[n]=e[n]}))}else this.updateColors()}}])&&s(t.prototype,n),a&&s(t,a),e}(),u=function(e){var t=new a;return t.calculate(e),t}},"./src/themes/theme-forest.js": +/*! exports provided: getThemeVariables */function(e,t,n){"use strict";n.r(t),n.d(t,"getThemeVariables",(function(){return l}));var i=n(/*! khroma */"khroma"),r=n(/*! ./theme-helpers */"./src/themes/theme-helpers.js");function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=Object(i.adjust)(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=Object(i.adjust)(this.primaryColor,{h:-160}),this.primaryBorderColor=Object(r.mkBorder)(this.primaryColor,this.darkMode),this.secondaryBorderColor=Object(r.mkBorder)(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Object(r.mkBorder)(this.tertiaryColor,this.darkMode),this.primaryTextColor=Object(i.invert)(this.primaryColor),this.secondaryTextColor=Object(i.invert)(this.secondaryColor),this.tertiaryTextColor=Object(i.invert)(this.tertiaryColor),this.lineColor=Object(i.invert)(this.background),this.textColor=Object(i.invert)(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=Object(i.rgba)(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}var t,n,a;return t=e,(n=[{key:"updateColors",value:function(){this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=Object(i.lighten)(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=Object(i.adjust)(this.primaryColor,{h:64}),this.fillType3=Object(i.adjust)(this.secondaryColor,{h:64}),this.fillType4=Object(i.adjust)(this.primaryColor,{h:-64}),this.fillType5=Object(i.adjust)(this.secondaryColor,{h:-64}),this.fillType6=Object(i.adjust)(this.primaryColor,{h:128}),this.fillType7=Object(i.adjust)(this.secondaryColor,{h:128})}},{key:"calculate",value:function(e){var t=this;if("object"===o(e)){var n=Object.keys(e);n.forEach((function(n){t[n]=e[n]})),this.updateColors(),n.forEach((function(n){t[n]=e[n]}))}else this.updateColors()}}])&&s(t.prototype,n),a&&s(t,a),e}(),l=function(e){var t=new a;return t.calculate(e),t}},"./src/themes/theme-forest.js": /*!************************************!*\ !*** ./src/themes/theme-forest.js ***! \************************************/ -/*! exports provided: getThemeVariables */function(e,t,n){"use strict";n.r(t),n.d(t,"getThemeVariables",(function(){return u}));var r=n(/*! khroma */"khroma"),i=n(/*! ./theme-helpers */"./src/themes/theme-helpers.js");function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=Object(r.lighten)("#cde498",10),this.primaryBorderColor=Object(i.mkBorder)(this.primaryColor,this.darkMode),this.secondaryBorderColor=Object(i.mkBorder)(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Object(i.mkBorder)(this.tertiaryColor,this.darkMode),this.primaryTextColor=Object(r.invert)(this.primaryColor),this.secondaryTextColor=Object(r.invert)(this.secondaryColor),this.tertiaryTextColor=Object(r.invert)(this.primaryColor),this.lineColor=Object(r.invert)(this.background),this.textColor=Object(r.invert)(this.background),this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}var t,n,a;return t=e,(n=[{key:"updateColors",value:function(){this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.actorBorder=Object(r.darken)(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=Object(r.adjust)(this.primaryColor,{h:64}),this.fillType3=Object(r.adjust)(this.secondaryColor,{h:64}),this.fillType4=Object(r.adjust)(this.primaryColor,{h:-64}),this.fillType5=Object(r.adjust)(this.secondaryColor,{h:-64}),this.fillType6=Object(r.adjust)(this.primaryColor,{h:128}),this.fillType7=Object(r.adjust)(this.secondaryColor,{h:128})}},{key:"calculate",value:function(e){var t=this;if("object"===o(e)){var n=Object.keys(e);n.forEach((function(n){t[n]=e[n]})),this.updateColors(),n.forEach((function(n){t[n]=e[n]}))}else this.updateColors()}}])&&s(t.prototype,n),a&&s(t,a),e}(),u=function(e){var t=new a;return t.calculate(e),t}},"./src/themes/theme-helpers.js": +/*! exports provided: getThemeVariables */function(e,t,n){"use strict";n.r(t),n.d(t,"getThemeVariables",(function(){return l}));var i=n(/*! khroma */"khroma"),r=n(/*! ./theme-helpers */"./src/themes/theme-helpers.js");function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=Object(i.lighten)("#cde498",10),this.primaryBorderColor=Object(r.mkBorder)(this.primaryColor,this.darkMode),this.secondaryBorderColor=Object(r.mkBorder)(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Object(r.mkBorder)(this.tertiaryColor,this.darkMode),this.primaryTextColor=Object(i.invert)(this.primaryColor),this.secondaryTextColor=Object(i.invert)(this.secondaryColor),this.tertiaryTextColor=Object(i.invert)(this.primaryColor),this.lineColor=Object(i.invert)(this.background),this.textColor=Object(i.invert)(this.background),this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}var t,n,a;return t=e,(n=[{key:"updateColors",value:function(){this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.actorBorder=Object(i.darken)(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=Object(i.adjust)(this.primaryColor,{h:64}),this.fillType3=Object(i.adjust)(this.secondaryColor,{h:64}),this.fillType4=Object(i.adjust)(this.primaryColor,{h:-64}),this.fillType5=Object(i.adjust)(this.secondaryColor,{h:-64}),this.fillType6=Object(i.adjust)(this.primaryColor,{h:128}),this.fillType7=Object(i.adjust)(this.secondaryColor,{h:128})}},{key:"calculate",value:function(e){var t=this;if("object"===o(e)){var n=Object.keys(e);n.forEach((function(n){t[n]=e[n]})),this.updateColors(),n.forEach((function(n){t[n]=e[n]}))}else this.updateColors()}}])&&s(t.prototype,n),a&&s(t,a),e}(),l=function(e){var t=new a;return t.calculate(e),t}},"./src/themes/theme-helpers.js": /*!*************************************!*\ !*** ./src/themes/theme-helpers.js ***! \*************************************/ -/*! exports provided: mkBorder */function(e,t,n){"use strict";n.r(t),n.d(t,"mkBorder",(function(){return i}));var r=n(/*! khroma */"khroma"),i=function(e,t){return t?Object(r.adjust)(e,{s:-40,l:10}):Object(r.adjust)(e,{s:-40,l:-10})}},"./src/themes/theme-neutral.js": +/*! exports provided: mkBorder */function(e,t,n){"use strict";n.r(t),n.d(t,"mkBorder",(function(){return r}));var i=n(/*! khroma */"khroma"),r=function(e,t){return t?Object(i.adjust)(e,{s:-40,l:10}):Object(i.adjust)(e,{s:-40,l:-10})}},"./src/themes/theme-neutral.js": /*!*************************************!*\ !*** ./src/themes/theme-neutral.js ***! \*************************************/ -/*! exports provided: getThemeVariables */function(e,t,n){"use strict";n.r(t),n.d(t,"getThemeVariables",(function(){return u}));var r=n(/*! khroma */"khroma"),i=n(/*! ./theme-helpers */"./src/themes/theme-helpers.js");function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.primaryColor="#eee",this.contrast="#26a",this.secondaryColor=Object(r.lighten)(this.contrast,55),this.background="#ffffff",this.tertiaryColor=Object(r.adjust)(this.primaryColor,{h:-160}),this.primaryBorderColor=Object(i.mkBorder)(this.primaryColor,this.darkMode),this.secondaryBorderColor=Object(i.mkBorder)(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Object(i.mkBorder)(this.tertiaryColor,this.darkMode),this.primaryTextColor=Object(r.invert)(this.primaryColor),this.secondaryTextColor=Object(r.invert)(this.secondaryColor),this.tertiaryTextColor=Object(r.invert)(this.tertiaryColor),this.lineColor=Object(r.invert)(this.background),this.textColor=Object(r.invert)(this.background),this.altBackground=Object(r.lighten)(this.contrast,55),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}var t,n,a;return t=e,(n=[{key:"updateColors",value:function(){this.secondBkg=Object(r.lighten)(this.contrast,55),this.border2=this.contrast,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.actorBorder=Object(r.lighten)(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor=Object(r.darken)(this.note,60),this.noteBkgColor=this.note,this.noteTextColor=this.actorTextColor,this.sectionBkgColor=Object(r.lighten)(this.contrast,30),this.sectionBkgColor2=Object(r.lighten)(this.contrast,30),this.taskBorderColor=Object(r.darken)(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=Object(r.lighten)(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=Object(r.darken)(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=Object(r.adjust)(this.primaryColor,{h:64}),this.fillType3=Object(r.adjust)(this.secondaryColor,{h:64}),this.fillType4=Object(r.adjust)(this.primaryColor,{h:-64}),this.fillType5=Object(r.adjust)(this.secondaryColor,{h:-64}),this.fillType6=Object(r.adjust)(this.primaryColor,{h:128}),this.fillType7=Object(r.adjust)(this.secondaryColor,{h:128})}},{key:"calculate",value:function(e){var t=this;if("object"===o(e)){var n=Object.keys(e);n.forEach((function(n){t[n]=e[n]})),this.updateColors(),n.forEach((function(n){t[n]=e[n]}))}else this.updateColors()}}])&&s(t.prototype,n),a&&s(t,a),e}(),u=function(e){var t=new a;return t.calculate(e),t}},"./src/utils.js": +/*! exports provided: getThemeVariables */function(e,t,n){"use strict";n.r(t),n.d(t,"getThemeVariables",(function(){return l}));var i=n(/*! khroma */"khroma"),r=n(/*! ./theme-helpers */"./src/themes/theme-helpers.js");function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.primaryColor="#eee",this.contrast="#26a",this.secondaryColor=Object(i.lighten)(this.contrast,55),this.background="#ffffff",this.tertiaryColor=Object(i.adjust)(this.primaryColor,{h:-160}),this.primaryBorderColor=Object(r.mkBorder)(this.primaryColor,this.darkMode),this.secondaryBorderColor=Object(r.mkBorder)(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Object(r.mkBorder)(this.tertiaryColor,this.darkMode),this.primaryTextColor=Object(i.invert)(this.primaryColor),this.secondaryTextColor=Object(i.invert)(this.secondaryColor),this.tertiaryTextColor=Object(i.invert)(this.tertiaryColor),this.lineColor=Object(i.invert)(this.background),this.textColor=Object(i.invert)(this.background),this.altBackground=Object(i.lighten)(this.contrast,55),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}var t,n,a;return t=e,(n=[{key:"updateColors",value:function(){this.secondBkg=Object(i.lighten)(this.contrast,55),this.border2=this.contrast,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.actorBorder=Object(i.lighten)(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor=Object(i.darken)(this.note,60),this.noteBkgColor=this.note,this.noteTextColor=this.actorTextColor,this.sectionBkgColor=Object(i.lighten)(this.contrast,30),this.sectionBkgColor2=Object(i.lighten)(this.contrast,30),this.taskBorderColor=Object(i.darken)(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=Object(i.lighten)(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=Object(i.darken)(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=Object(i.adjust)(this.primaryColor,{h:64}),this.fillType3=Object(i.adjust)(this.secondaryColor,{h:64}),this.fillType4=Object(i.adjust)(this.primaryColor,{h:-64}),this.fillType5=Object(i.adjust)(this.secondaryColor,{h:-64}),this.fillType6=Object(i.adjust)(this.primaryColor,{h:128}),this.fillType7=Object(i.adjust)(this.secondaryColor,{h:128})}},{key:"calculate",value:function(e){var t=this;if("object"===o(e)){var n=Object.keys(e);n.forEach((function(n){t[n]=e[n]})),this.updateColors(),n.forEach((function(n){t[n]=e[n]}))}else this.updateColors()}}])&&s(t.prototype,n),a&&s(t,a),e}(),l=function(e){var t=new a;return t.calculate(e),t}},"./src/utils.js": /*!**********************!*\ !*** ./src/utils.js ***! \**********************/ -/*! exports provided: detectInit, detectDirective, detectType, isSubstringInArray, interpolateToCurve, formatUrl, runFunc, getStylesFromArray, generateId, random, assignWithDepth, getTextObj, drawSimpleText, wrapLabel, calculateTextHeight, calculateTextWidth, calculateTextDimensions, calculateSvgSizeAttrs, configureSvgSize, initIdGeneratior, default */function(e,t,n){"use strict";n.r(t),n.d(t,"detectInit",(function(){return p})),n.d(t,"detectDirective",(function(){return g})),n.d(t,"detectType",(function(){return m})),n.d(t,"isSubstringInArray",(function(){return y})),n.d(t,"interpolateToCurve",(function(){return v})),n.d(t,"formatUrl",(function(){return b})),n.d(t,"runFunc",(function(){return w})),n.d(t,"getStylesFromArray",(function(){return S})),n.d(t,"generateId",(function(){return L})),n.d(t,"random",(function(){return k})),n.d(t,"assignWithDepth",(function(){return M})),n.d(t,"getTextObj",(function(){return D})),n.d(t,"drawSimpleText",(function(){return E})),n.d(t,"wrapLabel",(function(){return T})),n.d(t,"calculateTextHeight",(function(){return O})),n.d(t,"calculateTextWidth",(function(){return A})),n.d(t,"calculateTextDimensions",(function(){return I})),n.d(t,"calculateSvgSizeAttrs",(function(){return P})),n.d(t,"configureSvgSize",(function(){return R})),n.d(t,"initIdGeneratior",(function(){return F}));var r=n(/*! @braintree/sanitize-url */"@braintree/sanitize-url"),i=n(/*! d3 */"d3"),o=n(/*! ./diagrams/common/common */"./src/diagrams/common/common.js"),s=n(/*! ./logger */"./src/logger.js");function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var c={curveBasis:i.curveBasis,curveBasisClosed:i.curveBasisClosed,curveBasisOpen:i.curveBasisOpen,curveLinear:i.curveLinear,curveLinearClosed:i.curveLinearClosed,curveMonotoneX:i.curveMonotoneX,curveMonotoneY:i.curveMonotoneY,curveNatural:i.curveNatural,curveStep:i.curveStep,curveStepAfter:i.curveStepAfter,curveStepBefore:i.curveStepBefore},d=/[%]{2}[{]\s*(?:(?:(\w+)\s*:|(\w+))\s*(?:(?:(\w+))|((?:(?![}][%]{2}).|\r?\n)*))?\s*)(?:[}][%]{2})?/gi,h=/\s*(?:(?:(\w+)(?=:):|(\w+))\s*(?:(?:(\w+))|((?:(?![}][%]{2}).|\r?\n)*))?\s*)(?:[}][%]{2})?/gi,f=/\s*%%.*\n/gm,p=function(e){var t=g(e,/(?:init\b)|(?:initialize\b)/),n={};if(Array.isArray(t)){var r=t.map((function(e){return e.args}));n=M(n,l(r))}else n=t.args;if(n){var i=m(e);["config"].forEach((function(e){void 0!==n[e]&&("flowchart-v2"===i&&(i="flowchart"),n[i]=n[e],delete n[e])}))}return n},g=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;try{var n=new RegExp("[%]{2}(?![{]".concat(h.source,")(?=[}][%]{2}).*\n"),"ig");e=e.trim().replace(n,"").replace(/'/gm,'"'),s.logger.debug("Detecting diagram directive".concat(null!==t?" type:"+t:""," based on the text:").concat(e));for(var r,i=[];null!==(r=d.exec(e));)if(r.index===d.lastIndex&&d.lastIndex++,r&&!t||t&&r[1]&&r[1].match(t)||t&&r[2]&&r[2].match(t)){var o=r[1]?r[1]:r[2],a=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;i.push({type:o,args:a})}return 0===i.length&&i.push({type:e,args:null}),1===i.length?i[0]:i}catch(n){return s.logger.error("ERROR: ".concat(n.message," - Unable to parse directive").concat(null!==t?" type:"+t:""," based on the text:").concat(e)),{type:null,args:null}}},m=function(e){return e=e.replace(d,"").replace(f,"\n"),s.logger.debug("Detecting diagram type based on the text "+e),e.match(/^\s*sequenceDiagram/)?"sequence":e.match(/^\s*gantt/)?"gantt":e.match(/^\s*classDiagram-v2/)?"classDiagram":e.match(/^\s*classDiagram/)?"class":e.match(/^\s*stateDiagram-v2/)?"stateDiagram":e.match(/^\s*stateDiagram/)?"state":e.match(/^\s*gitGraph/)?"git":e.match(/^\s*flowchart/)?"flowchart-v2":e.match(/^\s*info/)?"info":e.match(/^\s*pie/)?"pie":e.match(/^\s*erDiagram/)?"er":e.match(/^\s*journey/)?"journey":"flowchart"},_=function(e,t){var n={};return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var s=t?t.apply(void 0,i):i[0];if(s in n)return n[s];var a=e.apply(void 0,i);return n[s]=a,a}},y=function(e,t){for(var n=0;n<t.length;n++)if(t[n].match(e))return n;return-1},v=function(e,t){if(!e)return t;var n="curve".concat(e.charAt(0).toUpperCase()+e.slice(1));return c[n]||t},b=function(e,t){var n=e.trim();if(n)return"loose"!==t.securityLevel?Object(r.sanitizeUrl)(n):n},w=function(e){for(var t,n=e.split("."),r=n.length-1,i=n[r],o=window,s=0;s<r;s++)if(!(o=o[n[s]]))return;for(var a=arguments.length,u=new Array(a>1?a-1:0),l=1;l<a;l++)u[l-1]=arguments[l];(t=o)[i].apply(t,u)},C=function(e,t){return e&&t?Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)):0},S=function(e){for(var t="",n="",r=0;r<e.length;r++)void 0!==e[r]&&(e[r].startsWith("color:")||e[r].startsWith("text-align:")?n=n+e[r]+";":t=t+e[r]+";");return{style:t,labelStyle:n}},x=0,L=function(){return x++,"id-"+Math.random().toString(36).substr(2,12)+"-"+x},k=function(e){return function(e){for(var t="",n="0123456789abcdef".length,r=0;r<e;r++)t+="0123456789abcdef".charAt(Math.floor(Math.random()*n));return t}(e.length)},M=function e(t,n,r){var i=Object.assign({depth:2,clobber:!1},r),o=i.depth,s=i.clobber;return Array.isArray(n)&&!Array.isArray(t)?(n.forEach((function(n){return e(t,n,r)})),t):Array.isArray(n)&&Array.isArray(t)?(n.forEach((function(e){-1===t.indexOf(e)&&t.push(e)})),t):void 0===t||o<=0?null!=t&&"object"===u(t)&&"object"===u(n)?Object.assign(t,n):n:(void 0!==n&&"object"===u(t)&&"object"===u(n)&&Object.keys(n).forEach((function(r){"object"!==u(n[r])||void 0!==t[r]&&"object"!==u(t[r])?(s||"object"!==u(t[r])&&"object"!==u(n[r]))&&(t[r]=n[r]):(void 0===t[r]&&(t[r]=Array.isArray(n[r])?[]:{}),t[r]=e(t[r],n[r],{depth:o-1,clobber:s}))})),t)},D=function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0}},E=function(e,t){var n=t.text.replace(o.default.lineBreakRegex," "),r=e.append("text");r.attr("x",t.x),r.attr("y",t.y),r.style("text-anchor",t.anchor),r.style("font-family",t.fontFamily),r.style("font-size",t.fontSize),r.style("font-weight",t.fontWeight),r.attr("fill",t.fill),void 0!==t.class&&r.attr("class",t.class);var i=r.append("tspan");return i.attr("x",t.x+2*t.textMargin),i.attr("fill",t.fill),i.text(n),r},T=_((function(e,t,n){if(!e)return e;if(n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},n),o.default.lineBreakRegex.test(e))return e;var r=e.split(" "),i=[],s="";return r.forEach((function(e,o){var a=A("".concat(e," "),n),u=A(s,n);if(a>t){var c=N(e,t,"-",n),d=c.hyphenatedStrings,h=c.remainingWord;i.push.apply(i,[s].concat(l(d))),s=h}else u+a>=t?(i.push(s),s=e):s=[s,e].filter(Boolean).join(" ");o+1===r.length&&i.push(s)})),i.filter((function(e){return""!==e})).join(n.joinWith)}),(function(e,t,n){return"".concat(e,"-").concat(t,"-").concat(n.fontSize,"-").concat(n.fontWeight,"-").concat(n.fontFamily,"-").concat(n.joinWith)})),N=_((function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",r=arguments.length>3?arguments[3]:void 0;r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);var i=e.split(""),o=[],s="";return i.forEach((function(e,a){var u="".concat(s).concat(e);if(A(u,r)>=t){var l=a+1,c=i.length===l,d="".concat(u).concat(n);o.push(c?u:d),s=""}else s=u})),{hyphenatedStrings:o,remainingWord:s}}),(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",r=arguments.length>3?arguments[3]:void 0;return"".concat(e,"-").concat(t,"-").concat(n,"-").concat(r.fontSize,"-").concat(r.fontWeight,"-").concat(r.fontFamily)})),O=function(e,t){return t=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:15},t),I(e,t).height},A=function(e,t){return t=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},t),I(e,t).width},I=_((function(e,t){var n=t=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},t),r=n.fontSize,s=n.fontFamily,a=n.fontWeight;if(!e)return{width:0,height:0};var u=["sans-serif",s],l=e.split(o.default.lineBreakRegex),c=[],d=Object(i.select)("body");if(!d.remove)return{width:0,height:0,lineHeight:0};for(var h=d.append("svg"),f=0,p=u;f<p.length;f++){var g=p[f],m=0,_={width:0,height:0,lineHeight:0},y=!0,v=!1,b=void 0;try{for(var w,C=l[Symbol.iterator]();!(y=(w=C.next()).done);y=!0){var S=w.value,x=D();x.text=S;var L=E(h,x).style("font-size",r).style("font-weight",a).style("font-family",g),k=(L._groups||L)[0][0].getBBox();_.width=Math.round(Math.max(_.width,k.width)),m=Math.round(k.height),_.height+=m,_.lineHeight=Math.round(Math.max(_.lineHeight,m))}}catch(e){v=!0,b=e}finally{try{y||null==C.return||C.return()}finally{if(v)throw b}}c.push(_)}return h.remove(),c[isNaN(c[1].height)||isNaN(c[1].width)||isNaN(c[1].lineHeight)||c[0].height>c[1].height&&c[0].width>c[1].width&&c[0].lineHeight>c[1].lineHeight?0:1]}),(function(e,t){return"".concat(e,"-").concat(t.fontSize,"-").concat(t.fontWeight,"-").concat(t.fontFamily)})),P=function(e,t,n){var r=new Map;return r.set("height",e),n?(r.set("width","100%"),r.set("style","max-width: ".concat(t,"px;"))):r.set("width",t),r},R=function(e,t,n,r){!function(e,t){var n=!0,r=!1,i=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var a=o.value;e.attr(a[0],a[1])}}catch(e){r=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(r)throw i}}}(e,P(t,n,r))},F=function(e,t){return e?new(function(){function e(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.count=t?t.length:0}var n,r,i;return n=e,(r=[{key:"next",value:function(){return this.count++}}])&&a(n.prototype,r),i&&a(n,i),e}()):{next:function(){return Date.now()}}};t.default={assignWithDepth:M,wrapLabel:T,calculateTextHeight:O,calculateTextWidth:A,calculateTextDimensions:I,calculateSvgSizeAttrs:P,configureSvgSize:R,detectInit:p,detectDirective:g,detectType:m,isSubstringInArray:y,interpolateToCurve:v,calcLabelPosition:function(e){return function(e){var t,n=0;e.forEach((function(e){n+=C(e,t),t=e}));var r=n/2,i=void 0;return t=void 0,e.forEach((function(e){if(t&&!i){var n=C(e,t);if(n<r)r-=n;else{var o=r/n;o<=0&&(i=t),o>=1&&(i={x:e.x,y:e.y}),o>0&&o<1&&(i={x:(1-o)*t.x+o*e.x,y:(1-o)*t.y+o*e.y})}}t=e})),i}(e)},calcCardinalityPosition:function(e,t,n){var r;s.logger.info("our points",t),t[0]!==n&&(t=t.reverse()),t.forEach((function(e){C(e,r),r=e}));var i,o=25;r=void 0,t.forEach((function(e){if(r&&!i){var t=C(e,r);if(t<o)o-=t;else{var n=o/t;n<=0&&(i=r),n>=1&&(i={x:e.x,y:e.y}),n>0&&n<1&&(i={x:(1-n)*r.x+n*e.x,y:(1-n)*r.y+n*e.y})}}r=e}));var a=e?10:5,u=Math.atan2(t[0].y-i.y,t[0].x-i.x),l={x:0,y:0};return l.x=Math.sin(u)*a+(t[0].x+i.x)/2,l.y=-Math.cos(u)*a+(t[0].y+i.y)/2,l},calcTerminalLabelPosition:function(e,t,n){var r,i=JSON.parse(JSON.stringify(n));s.logger.info("our points",i),"start_left"!==t&&"start_right"!==t&&(i=i.reverse()),i.forEach((function(e){C(e,r),r=e}));var o,a=25;r=void 0,i.forEach((function(e){if(r&&!o){var t=C(e,r);if(t<a)a-=t;else{var n=a/t;n<=0&&(o=r),n>=1&&(o={x:e.x,y:e.y}),n>0&&n<1&&(o={x:(1-n)*r.x+n*e.x,y:(1-n)*r.y+n*e.y})}}r=e}));var u=10,l=Math.atan2(i[0].y-o.y,i[0].x-o.x),c={x:0,y:0};return c.x=Math.sin(l)*u+(i[0].x+o.x)/2,c.y=-Math.cos(l)*u+(i[0].y+o.y)/2,"start_left"===t&&(c.x=Math.sin(l+Math.PI)*u+(i[0].x+o.x)/2,c.y=-Math.cos(l+Math.PI)*u+(i[0].y+o.y)/2),"end_right"===t&&(c.x=Math.sin(l-Math.PI)*u+(i[0].x+o.x)/2-5,c.y=-Math.cos(l-Math.PI)*u+(i[0].y+o.y)/2-5),"end_left"===t&&(c.x=Math.sin(l)*u+(i[0].x+o.x)/2-5,c.y=-Math.cos(l)*u+(i[0].y+o.y)/2-5),c},formatUrl:b,getStylesFromArray:S,generateId:L,random:k,memoize:_,runFunc:w,initIdGeneratior:F}},"@braintree/sanitize-url": +/*! exports provided: detectInit, detectDirective, detectType, isSubstringInArray, interpolateToCurve, formatUrl, runFunc, getStylesFromArray, generateId, random, assignWithDepth, getTextObj, drawSimpleText, wrapLabel, calculateTextHeight, calculateTextWidth, calculateTextDimensions, calculateSvgSizeAttrs, configureSvgSize, initIdGeneratior, default */function(e,t,n){"use strict";n.r(t),n.d(t,"detectInit",(function(){return g})),n.d(t,"detectDirective",(function(){return p})),n.d(t,"detectType",(function(){return m})),n.d(t,"isSubstringInArray",(function(){return b})),n.d(t,"interpolateToCurve",(function(){return v})),n.d(t,"formatUrl",(function(){return y})),n.d(t,"runFunc",(function(){return w})),n.d(t,"getStylesFromArray",(function(){return S})),n.d(t,"generateId",(function(){return x})),n.d(t,"random",(function(){return L})),n.d(t,"assignWithDepth",(function(){return M})),n.d(t,"getTextObj",(function(){return D})),n.d(t,"drawSimpleText",(function(){return E})),n.d(t,"wrapLabel",(function(){return T})),n.d(t,"calculateTextHeight",(function(){return N})),n.d(t,"calculateTextWidth",(function(){return I})),n.d(t,"calculateTextDimensions",(function(){return A})),n.d(t,"calculateSvgSizeAttrs",(function(){return R})),n.d(t,"configureSvgSize",(function(){return P})),n.d(t,"initIdGeneratior",(function(){return j}));var i=n(/*! @braintree/sanitize-url */"@braintree/sanitize-url"),r=n(/*! d3 */"d3"),o=n(/*! ./diagrams/common/common */"./src/diagrams/common/common.js"),s=n(/*! ./logger */"./src/logger.js");function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var d={curveBasis:r.curveBasis,curveBasisClosed:r.curveBasisClosed,curveBasisOpen:r.curveBasisOpen,curveLinear:r.curveLinear,curveLinearClosed:r.curveLinearClosed,curveMonotoneX:r.curveMonotoneX,curveMonotoneY:r.curveMonotoneY,curveNatural:r.curveNatural,curveStep:r.curveStep,curveStepAfter:r.curveStepAfter,curveStepBefore:r.curveStepBefore},u=/[%]{2}[{]\s*(?:(?:(\w+)\s*:|(\w+))\s*(?:(?:(\w+))|((?:(?![}][%]{2}).|\r?\n)*))?\s*)(?:[}][%]{2})?/gi,h=/\s*(?:(?:(\w+)(?=:):|(\w+))\s*(?:(?:(\w+))|((?:(?![}][%]{2}).|\r?\n)*))?\s*)(?:[}][%]{2})?/gi,f=/\s*%%.*\n/gm,g=function(e){var t=p(e,/(?:init\b)|(?:initialize\b)/),n={};if(Array.isArray(t)){var i=t.map((function(e){return e.args}));n=M(n,c(i))}else n=t.args;if(n){var r=m(e);["config"].forEach((function(e){void 0!==n[e]&&("flowchart-v2"===r&&(r="flowchart"),n[r]=n[e],delete n[e])}))}return n},p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;try{var n=new RegExp("[%]{2}(?![{]".concat(h.source,")(?=[}][%]{2}).*\n"),"ig");e=e.trim().replace(n,"").replace(/'/gm,'"'),s.logger.debug("Detecting diagram directive".concat(null!==t?" type:"+t:""," based on the text:").concat(e));for(var i,r=[];null!==(i=u.exec(e));)if(i.index===u.lastIndex&&u.lastIndex++,i&&!t||t&&i[1]&&i[1].match(t)||t&&i[2]&&i[2].match(t)){var o=i[1]?i[1]:i[2],a=i[3]?i[3].trim():i[4]?JSON.parse(i[4].trim()):null;r.push({type:o,args:a})}return 0===r.length&&r.push({type:e,args:null}),1===r.length?r[0]:r}catch(n){return s.logger.error("ERROR: ".concat(n.message," - Unable to parse directive").concat(null!==t?" type:"+t:""," based on the text:").concat(e)),{type:null,args:null}}},m=function(e){return e=e.replace(u,"").replace(f,"\n"),s.logger.debug("Detecting diagram type based on the text "+e),e.match(/^\s*sequenceDiagram/)?"sequence":e.match(/^\s*gantt/)?"gantt":e.match(/^\s*classDiagram-v2/)?"classDiagram":e.match(/^\s*classDiagram/)?"class":e.match(/^\s*stateDiagram-v2/)?"stateDiagram":e.match(/^\s*stateDiagram/)?"state":e.match(/^\s*gitGraph/)?"git":e.match(/^\s*flowchart/)?"flowchart-v2":e.match(/^\s*info/)?"info":e.match(/^\s*pie/)?"pie":e.match(/^\s*erDiagram/)?"er":e.match(/^\s*journey/)?"journey":"flowchart"},_=function(e,t){var n={};return function(){for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];var s=t?t.apply(void 0,r):r[0];if(s in n)return n[s];var a=e.apply(void 0,r);return n[s]=a,a}},b=function(e,t){for(var n=0;n<t.length;n++)if(t[n].match(e))return n;return-1},v=function(e,t){if(!e)return t;var n="curve".concat(e.charAt(0).toUpperCase()+e.slice(1));return d[n]||t},y=function(e,t){var n=e.trim();if(n)return"loose"!==t.securityLevel?Object(i.sanitizeUrl)(n):n},w=function(e){for(var t,n=e.split("."),i=n.length-1,r=n[i],o=window,s=0;s<i;s++)if(!(o=o[n[s]]))return;for(var a=arguments.length,l=new Array(a>1?a-1:0),c=1;c<a;c++)l[c-1]=arguments[c];(t=o)[r].apply(t,l)},C=function(e,t){return e&&t?Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)):0},S=function(e){for(var t="",n="",i=0;i<e.length;i++)void 0!==e[i]&&(e[i].startsWith("color:")||e[i].startsWith("text-align:")?n=n+e[i]+";":t=t+e[i]+";");return{style:t,labelStyle:n}},k=0,x=function(){return k++,"id-"+Math.random().toString(36).substr(2,12)+"-"+k},L=function(e){return function(e){for(var t="",n="0123456789abcdef".length,i=0;i<e;i++)t+="0123456789abcdef".charAt(Math.floor(Math.random()*n));return t}(e.length)},M=function e(t,n,i){var r=Object.assign({depth:2,clobber:!1},i),o=r.depth,s=r.clobber;return Array.isArray(n)&&!Array.isArray(t)?(n.forEach((function(n){return e(t,n,i)})),t):Array.isArray(n)&&Array.isArray(t)?(n.forEach((function(e){-1===t.indexOf(e)&&t.push(e)})),t):void 0===t||o<=0?null!=t&&"object"===l(t)&&"object"===l(n)?Object.assign(t,n):n:(void 0!==n&&"object"===l(t)&&"object"===l(n)&&Object.keys(n).forEach((function(i){"object"!==l(n[i])||void 0!==t[i]&&"object"!==l(t[i])?(s||"object"!==l(t[i])&&"object"!==l(n[i]))&&(t[i]=n[i]):(void 0===t[i]&&(t[i]=Array.isArray(n[i])?[]:{}),t[i]=e(t[i],n[i],{depth:o-1,clobber:s}))})),t)},D=function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0}},E=function(e,t){var n=t.text.replace(o.default.lineBreakRegex," "),i=e.append("text");i.attr("x",t.x),i.attr("y",t.y),i.style("text-anchor",t.anchor),i.style("font-family",t.fontFamily),i.style("font-size",t.fontSize),i.style("font-weight",t.fontWeight),i.attr("fill",t.fill),void 0!==t.class&&i.attr("class",t.class);var r=i.append("tspan");return r.attr("x",t.x+2*t.textMargin),r.attr("fill",t.fill),r.text(n),i},T=_((function(e,t,n){if(!e)return e;if(n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},n),o.default.lineBreakRegex.test(e))return e;var i=e.split(" "),r=[],s="";return i.forEach((function(e,o){var a=I("".concat(e," "),n),l=I(s,n);if(a>t){var d=O(e,t,"-",n),u=d.hyphenatedStrings,h=d.remainingWord;r.push.apply(r,[s].concat(c(u))),s=h}else l+a>=t?(r.push(s),s=e):s=[s,e].filter(Boolean).join(" ");o+1===i.length&&r.push(s)})),r.filter((function(e){return""!==e})).join(n.joinWith)}),(function(e,t,n){return"".concat(e,"-").concat(t,"-").concat(n.fontSize,"-").concat(n.fontWeight,"-").concat(n.fontFamily,"-").concat(n.joinWith)})),O=_((function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",i=arguments.length>3?arguments[3]:void 0;i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},i);var r=e.split(""),o=[],s="";return r.forEach((function(e,a){var l="".concat(s).concat(e);if(I(l,i)>=t){var c=a+1,d=r.length===c,u="".concat(l).concat(n);o.push(d?l:u),s=""}else s=l})),{hyphenatedStrings:o,remainingWord:s}}),(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",i=arguments.length>3?arguments[3]:void 0;return"".concat(e,"-").concat(t,"-").concat(n,"-").concat(i.fontSize,"-").concat(i.fontWeight,"-").concat(i.fontFamily)})),N=function(e,t){return t=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:15},t),A(e,t).height},I=function(e,t){return t=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},t),A(e,t).width},A=_((function(e,t){var n=t=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},t),i=n.fontSize,s=n.fontFamily,a=n.fontWeight;if(!e)return{width:0,height:0};var l=["sans-serif",s],c=e.split(o.default.lineBreakRegex),d=[],u=Object(r.select)("body");if(!u.remove)return{width:0,height:0,lineHeight:0};for(var h=u.append("svg"),f=0,g=l;f<g.length;f++){var p=g[f],m=0,_={width:0,height:0,lineHeight:0},b=!0,v=!1,y=void 0;try{for(var w,C=c[Symbol.iterator]();!(b=(w=C.next()).done);b=!0){var S=w.value,k=D();k.text=S;var x=E(h,k).style("font-size",i).style("font-weight",a).style("font-family",p),L=(x._groups||x)[0][0].getBBox();_.width=Math.round(Math.max(_.width,L.width)),m=Math.round(L.height),_.height+=m,_.lineHeight=Math.round(Math.max(_.lineHeight,m))}}catch(e){v=!0,y=e}finally{try{b||null==C.return||C.return()}finally{if(v)throw y}}d.push(_)}return h.remove(),d[isNaN(d[1].height)||isNaN(d[1].width)||isNaN(d[1].lineHeight)||d[0].height>d[1].height&&d[0].width>d[1].width&&d[0].lineHeight>d[1].lineHeight?0:1]}),(function(e,t){return"".concat(e,"-").concat(t.fontSize,"-").concat(t.fontWeight,"-").concat(t.fontFamily)})),R=function(e,t,n){var i=new Map;return i.set("height",e),n?(i.set("width","100%"),i.set("style","max-width: ".concat(t,"px;"))):i.set("width",t),i},P=function(e,t,n,i){!function(e,t){var n=!0,i=!1,r=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var a=o.value;e.attr(a[0],a[1])}}catch(e){i=!0,r=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw r}}}(e,R(t,n,i))},j=function(e,t){return e?new(function(){function e(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.count=t?t.length:0}var n,i,r;return n=e,(i=[{key:"next",value:function(){return this.count++}}])&&a(n.prototype,i),r&&a(n,r),e}()):{next:function(){return Date.now()}}};t.default={assignWithDepth:M,wrapLabel:T,calculateTextHeight:N,calculateTextWidth:I,calculateTextDimensions:A,calculateSvgSizeAttrs:R,configureSvgSize:P,detectInit:g,detectDirective:p,detectType:m,isSubstringInArray:b,interpolateToCurve:v,calcLabelPosition:function(e){return function(e){var t,n=0;e.forEach((function(e){n+=C(e,t),t=e}));var i=n/2,r=void 0;return t=void 0,e.forEach((function(e){if(t&&!r){var n=C(e,t);if(n<i)i-=n;else{var o=i/n;o<=0&&(r=t),o>=1&&(r={x:e.x,y:e.y}),o>0&&o<1&&(r={x:(1-o)*t.x+o*e.x,y:(1-o)*t.y+o*e.y})}}t=e})),r}(e)},calcCardinalityPosition:function(e,t,n){var i;s.logger.info("our points",t),t[0]!==n&&(t=t.reverse()),t.forEach((function(e){C(e,i),i=e}));var r,o=25;i=void 0,t.forEach((function(e){if(i&&!r){var t=C(e,i);if(t<o)o-=t;else{var n=o/t;n<=0&&(r=i),n>=1&&(r={x:e.x,y:e.y}),n>0&&n<1&&(r={x:(1-n)*i.x+n*e.x,y:(1-n)*i.y+n*e.y})}}i=e}));var a=e?10:5,l=Math.atan2(t[0].y-r.y,t[0].x-r.x),c={x:0,y:0};return c.x=Math.sin(l)*a+(t[0].x+r.x)/2,c.y=-Math.cos(l)*a+(t[0].y+r.y)/2,c},calcTerminalLabelPosition:function(e,t,n){var i,r=JSON.parse(JSON.stringify(n));s.logger.info("our points",r),"start_left"!==t&&"start_right"!==t&&(r=r.reverse()),r.forEach((function(e){C(e,i),i=e}));var o,a=25;i=void 0,r.forEach((function(e){if(i&&!o){var t=C(e,i);if(t<a)a-=t;else{var n=a/t;n<=0&&(o=i),n>=1&&(o={x:e.x,y:e.y}),n>0&&n<1&&(o={x:(1-n)*i.x+n*e.x,y:(1-n)*i.y+n*e.y})}}i=e}));var l=10,c=Math.atan2(r[0].y-o.y,r[0].x-o.x),d={x:0,y:0};return d.x=Math.sin(c)*l+(r[0].x+o.x)/2,d.y=-Math.cos(c)*l+(r[0].y+o.y)/2,"start_left"===t&&(d.x=Math.sin(c+Math.PI)*l+(r[0].x+o.x)/2,d.y=-Math.cos(c+Math.PI)*l+(r[0].y+o.y)/2),"end_right"===t&&(d.x=Math.sin(c-Math.PI)*l+(r[0].x+o.x)/2-5,d.y=-Math.cos(c-Math.PI)*l+(r[0].y+o.y)/2-5),"end_left"===t&&(d.x=Math.sin(c)*l+(r[0].x+o.x)/2-5,d.y=-Math.cos(c)*l+(r[0].y+o.y)/2-5),d},formatUrl:y,getStylesFromArray:S,generateId:x,random:L,memoize:_,runFunc:w,initIdGeneratior:j}},"@braintree/sanitize-url": /*!******************************************!*\ !*** external "@braintree/sanitize-url" ***! \******************************************/ -/*! no static exports found */function(e,t){e.exports=n(368)},d3: +/*! no static exports found */function(e,t){e.exports=n(652)},d3: /*!*********************!*\ !*** external "d3" ***! \*********************/ -/*! no static exports found */function(e,t){e.exports=n(316)},dagre: +/*! no static exports found */function(e,t){e.exports=n(564)},dagre: /*!************************!*\ !*** external "dagre" ***! \************************/ -/*! no static exports found */function(e,t){e.exports=n(369)},"dagre-d3": +/*! no static exports found */function(e,t){e.exports=n(653)},"dagre-d3": /*!***************************!*\ !*** external "dagre-d3" ***! \***************************/ -/*! no static exports found */function(e,t){e.exports=n(521)},"dagre-d3/lib/label/add-html-label.js": +/*! no static exports found */function(e,t){e.exports=n(805)},"dagre-d3/lib/label/add-html-label.js": /*!*******************************************************!*\ !*** external "dagre-d3/lib/label/add-html-label.js" ***! \*******************************************************/ -/*! no static exports found */function(e,t){e.exports=n(178)},"entity-decode/browser": +/*! no static exports found */function(e,t){e.exports=n(426)},"entity-decode/browser": /*!****************************************!*\ !*** external "entity-decode/browser" ***! \****************************************/ -/*! no static exports found */function(e,t){e.exports=n(575)},graphlib: +/*! no static exports found */function(e,t){e.exports=n(859)},graphlib: /*!***************************!*\ !*** external "graphlib" ***! \***************************/ -/*! no static exports found */function(e,t){e.exports=n(103)},khroma: +/*! no static exports found */function(e,t){e.exports=n(351)},khroma: /*!*************************!*\ !*** external "khroma" ***! \*************************/ -/*! no static exports found */function(e,t){e.exports=n(576)},"moment-mini": +/*! no static exports found */function(e,t){e.exports=n(860)},"moment-mini": /*!******************************!*\ !*** external "moment-mini" ***! \******************************/ -/*! no static exports found */function(e,t){e.exports=n(603)},stylis: +/*! no static exports found */function(e,t){e.exports=n(887)},stylis: /*!*************************!*\ !*** external "stylis" ***! \*************************/ -/*! no static exports found */function(e,t){e.exports=n(605)}}).default},e.exports=r()},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(14).Symbol;e.exports=r},function(e,t,n){(function(e){var r=n(14),i=n(402),o=t&&!t.nodeType&&t,s=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=s&&s.exports===o?r.Buffer:void 0,u=(a?a.isBuffer:void 0)||i;e.exports=u}).call(this,n(40)(e))},function(e,t,n){var r=n(109),i=n(406),o=n(20);e.exports=function(e){return o(e)?r(e,!0):i(e)}},function(e,t,n){var r=n(411),i=n(74),o=n(412),s=n(118),a=n(413),u=n(26),l=n(107),c=l(r),d=l(i),h=l(o),f=l(s),p=l(a),g=u;(r&&"[object DataView]"!=g(new r(new ArrayBuffer(1)))||i&&"[object Map]"!=g(new i)||o&&"[object Promise]"!=g(o.resolve())||s&&"[object Set]"!=g(new s)||a&&"[object WeakMap]"!=g(new a))&&(g=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,r=n?l(n):"";if(r)switch(r){case c:return"[object DataView]";case d:return"[object Map]";case h:return"[object Promise]";case f:return"[object Set]";case p:return"[object WeakMap]"}return t}),e.exports=g},function(e,t,n){var r=n(26),i=n(18),o="[object Symbol]";e.exports=function(e){return"symbol"==typeof e||i(e)&&r(e)==o}},function(e,t,n){var r;try{r={defaults:n(90),each:n(43),isFunction:n(25),isPlainObject:n(157),pick:n(93),has:n(45),range:n(94),uniqueId:n(95)}}catch(e){}r||(r=window._),e.exports=r},function(e,t,n){var r=n(52),i=n(53);e.exports=function(e,t,n,o){var s=!n;n||(n={});for(var a=-1,u=t.length;++a<u;){var l=t[a],c=o?o(n[l],e[l],l,n,e):void 0;void 0===c&&(c=e[l]),s?i(n,l,c):r(n,l,c)}return n}},function(e,t,n){var r=n(401),i=n(18),o=Object.prototype,s=o.hasOwnProperty,a=o.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return i(e)&&s.call(e,"callee")&&!a.call(e,"callee")};e.exports=u},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){var r=n(403),i=n(55),o=n(78),s=o&&o.isTypedArray,a=s?i(s):r;e.exports=a},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t,n){e.exports=n(83)},function(e,t,n){var r=n(36),i=1/0;e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}},function(e,t,n){var r=n(445),i=n(132);e.exports=function(e,t){return null!=e&&i(e,t,r)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=new(n(581).default)({r:0,g:0,b:0,a:0},"transparent");t.default=r},function(e,t,n){var r=n(48),i=n(376),o=n(377),s=n(378),a=n(379),u=n(380);function l(e){var t=this.__data__=new r(e);this.size=t.size}l.prototype.clear=i,l.prototype.delete=o,l.prototype.get=s,l.prototype.has=a,l.prototype.set=u,e.exports=l},function(e,t,n){var r=n(371),i=n(372),o=n(373),s=n(374),a=n(375);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=s,u.prototype.set=a,e.exports=u},function(e,t,n){var r=n(31);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(24)(Object,"create");e.exports=r},function(e,t,n){var r=n(395);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){var r=n(53),i=n(31),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var s=e[t];o.call(e,t)&&i(s,n)&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){var r=n(108);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var i=typeof e;return!!(t=null==t?n:t)&&("number"==i||"symbol"!=i&&r.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(110)(Object.getPrototypeOf,Object);e.exports=r},function(e,t,n){var r=n(84),i=n(424)(r);e.exports=i},function(e,t,n){var r=n(113),i=n(425),o=n(21),s=n(4);e.exports=function(e,t){return(s(e)?r:i)(e,o(t,3))}},function(e,t,n){var r=n(4),i=n(88),o=n(438),s=n(130);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:o(s(e))}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},function(e,t){e.exports=function(e){return void 0===e}},function(e,t,n){var r=n(61),i=n(21),o=n(135),s=n(4);e.exports=function(e,t){return(s(e)?r:o)(e,i(t,3))}},function(e,t,n){var r=n(446),i=n(58),o=n(21),s=n(447),a=n(4);e.exports=function(e,t,n){var u=a(e)?r:s,l=arguments.length<3;return u(e,o(t,4),n,l,i)}},function(e,t,n){var r=n(27),i=n(139),o=n(140);e.exports=function(e,t){return o(i(e,t,r),e+"")}},function(e,t,n){var r=n(465),i=n(19);e.exports=function(e){return null==e?[]:r(e,i(e))}},function(e,t,n){var r=n(31),i=n(20),o=n(54),s=n(8);e.exports=function(e,t,n){if(!s(n))return!1;var a=typeof t;return!!("number"==a?i(n)&&o(t,n.length):"string"==a&&t in n)&&r(n[t],e)}},function(e,t,n){"use strict";var r=n(2);e.exports={longestPath:function(e){var t={};r.forEach(e.sources(),(function n(i){var o=e.node(i);if(r.has(t,i))return o.rank;t[i]=!0;var s=r.min(r.map(e.outEdges(i),(function(t){return n(t.w)-e.edge(t).minlen})));return s!==Number.POSITIVE_INFINITY&&null!=s||(s=0),o.rank=s}))},slack:function(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}}},function(e,t,n){"use strict";var r=n(3);e.exports={longestPath:function(e){var t={};r.forEach(e.sources(),(function n(i){var o=e.node(i);if(r.has(t,i))return o.rank;t[i]=!0;var s=r.min(r.map(e.outEdges(i),(function(t){return n(t.w)-e.edge(t).minlen})));return s!==Number.POSITIVE_INFINITY&&null!=s||(s=0),o.rank=s}))},slack:function(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(11),i=n(46),o=n(16),s=n(71);t.default=function(e,t,n,a){if(void 0===n&&(n=0),void 0===a&&(a=1),"number"!=typeof e)return s.default(e,{a:t});var u=i.default.set({r:r.default.channel.clamp.r(e),g:r.default.channel.clamp.g(t),b:r.default.channel.clamp.b(n),a:r.default.channel.clamp.a(a)});return o.default.stringify(u)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(11),i=n(16);t.default=function(e,t){var n=i.default.parse(e);for(var o in t)n[o]=r.default.channel.clamp[o](t[o]);return i.default.stringify(n)}},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(e){r=s}}();var u,l=[],c=!1,d=-1;function h(){c&&u&&(c=!1,u.length?l=u.concat(l):d=-1,l.length&&f())}function f(){if(!c){var e=a(h);c=!0;for(var t=l.length;t;){for(u=l,l=[];++d<t;)u&&u[d].run();d=-1,t=l.length}u=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function g(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new p(e,t)),1!==l.length||c||a(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){"use strict";var r=n(7);e.exports=a;var i="\0",o="\0",s="";function a(e){this._isDirected=!r.has(e,"directed")||e.directed,this._isMultigraph=!!r.has(e,"multigraph")&&e.multigraph,this._isCompound=!!r.has(e,"compound")&&e.compound,this._label=void 0,this._defaultNodeLabelFn=r.constant(void 0),this._defaultEdgeLabelFn=r.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[o]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function u(e,t){e[t]?e[t]++:e[t]=1}function l(e,t){--e[t]||delete e[t]}function c(e,t,n,o){var a=""+t,u=""+n;if(!e&&a>u){var l=a;a=u,u=l}return a+s+u+s+(r.isUndefined(o)?i:o)}function d(e,t,n,r){var i=""+t,o=""+n;if(!e&&i>o){var s=i;i=o,o=s}var a={v:i,w:o};return r&&(a.name=r),a}function h(e,t){return c(e,t.v,t.w,t.name)}a.prototype._nodeCount=0,a.prototype._edgeCount=0,a.prototype.isDirected=function(){return this._isDirected},a.prototype.isMultigraph=function(){return this._isMultigraph},a.prototype.isCompound=function(){return this._isCompound},a.prototype.setGraph=function(e){return this._label=e,this},a.prototype.graph=function(){return this._label},a.prototype.setDefaultNodeLabel=function(e){return r.isFunction(e)||(e=r.constant(e)),this._defaultNodeLabelFn=e,this},a.prototype.nodeCount=function(){return this._nodeCount},a.prototype.nodes=function(){return r.keys(this._nodes)},a.prototype.sources=function(){var e=this;return r.filter(this.nodes(),(function(t){return r.isEmpty(e._in[t])}))},a.prototype.sinks=function(){var e=this;return r.filter(this.nodes(),(function(t){return r.isEmpty(e._out[t])}))},a.prototype.setNodes=function(e,t){var n=arguments,i=this;return r.each(e,(function(e){n.length>1?i.setNode(e,t):i.setNode(e)})),this},a.prototype.setNode=function(e,t){return r.has(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=o,this._children[e]={},this._children[o][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)},a.prototype.node=function(e){return this._nodes[e]},a.prototype.hasNode=function(e){return r.has(this._nodes,e)},a.prototype.removeNode=function(e){var t=this;if(r.has(this._nodes,e)){var n=function(e){t.removeEdge(t._edgeObjs[e])};delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],r.each(this.children(e),(function(e){t.setParent(e)})),delete this._children[e]),r.each(r.keys(this._in[e]),n),delete this._in[e],delete this._preds[e],r.each(r.keys(this._out[e]),n),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this},a.prototype.setParent=function(e,t){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(t))t=o;else{for(var n=t+="";!r.isUndefined(n);n=this.parent(n))if(n===e)throw new Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this},a.prototype._removeFromParentsChildList=function(e){delete this._children[this._parent[e]][e]},a.prototype.parent=function(e){if(this._isCompound){var t=this._parent[e];if(t!==o)return t}},a.prototype.children=function(e){if(r.isUndefined(e)&&(e=o),this._isCompound){var t=this._children[e];if(t)return r.keys(t)}else{if(e===o)return this.nodes();if(this.hasNode(e))return[]}},a.prototype.predecessors=function(e){var t=this._preds[e];if(t)return r.keys(t)},a.prototype.successors=function(e){var t=this._sucs[e];if(t)return r.keys(t)},a.prototype.neighbors=function(e){var t=this.predecessors(e);if(t)return r.union(t,this.successors(e))},a.prototype.isLeaf=function(e){return 0===(this.isDirected()?this.successors(e):this.neighbors(e)).length},a.prototype.filterNodes=function(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var n=this;r.each(this._nodes,(function(n,r){e(r)&&t.setNode(r,n)})),r.each(this._edgeObjs,(function(e){t.hasNode(e.v)&&t.hasNode(e.w)&&t.setEdge(e,n.edge(e))}));var i={};return this._isCompound&&r.each(t.nodes(),(function(e){t.setParent(e,function e(r){var o=n.parent(r);return void 0===o||t.hasNode(o)?(i[r]=o,o):o in i?i[o]:e(o)}(e))})),t},a.prototype.setDefaultEdgeLabel=function(e){return r.isFunction(e)||(e=r.constant(e)),this._defaultEdgeLabelFn=e,this},a.prototype.edgeCount=function(){return this._edgeCount},a.prototype.edges=function(){return r.values(this._edgeObjs)},a.prototype.setPath=function(e,t){var n=this,i=arguments;return r.reduce(e,(function(e,r){return i.length>1?n.setEdge(e,r,t):n.setEdge(e,r),r})),this},a.prototype.setEdge=function(){var e,t,n,i,o=!1,s=arguments[0];"object"==typeof s&&null!==s&&"v"in s?(e=s.v,t=s.w,n=s.name,2===arguments.length&&(i=arguments[1],o=!0)):(e=s,t=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],o=!0)),e=""+e,t=""+t,r.isUndefined(n)||(n=""+n);var a=c(this._isDirected,e,t,n);if(r.has(this._edgeLabels,a))return o&&(this._edgeLabels[a]=i),this;if(!r.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[a]=o?i:this._defaultEdgeLabelFn(e,t,n);var l=d(this._isDirected,e,t,n);return e=l.v,t=l.w,Object.freeze(l),this._edgeObjs[a]=l,u(this._preds[t],e),u(this._sucs[e],t),this._in[t][a]=l,this._out[e][a]=l,this._edgeCount++,this},a.prototype.edge=function(e,t,n){var r=1===arguments.length?h(this._isDirected,arguments[0]):c(this._isDirected,e,t,n);return this._edgeLabels[r]},a.prototype.hasEdge=function(e,t,n){var i=1===arguments.length?h(this._isDirected,arguments[0]):c(this._isDirected,e,t,n);return r.has(this._edgeLabels,i)},a.prototype.removeEdge=function(e,t,n){var r=1===arguments.length?h(this._isDirected,arguments[0]):c(this._isDirected,e,t,n),i=this._edgeObjs[r];return i&&(e=i.v,t=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],l(this._preds[t],e),l(this._sucs[e],t),delete this._in[t][r],delete this._out[e][r],this._edgeCount--),this},a.prototype.inEdges=function(e,t){var n=this._in[e];if(n){var i=r.values(n);return t?r.filter(i,(function(e){return e.v===t})):i}},a.prototype.outEdges=function(e,t){var n=this._out[e];if(n){var i=r.values(n);return t?r.filter(i,(function(e){return e.w===t})):i}},a.prototype.nodeEdges=function(e,t){var n=this.inEdges(e,t);if(n)return n.concat(this.outEdges(e,t))}},function(e,t,n){var r=n(24)(n(14),"Map");e.exports=r},function(e,t,n){var r=n(387),i=n(394),o=n(396),s=n(397),a=n(398);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=s,u.prototype.set=a,e.exports=u},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},function(e,t){var n=9007199254740991;e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}},function(e,t,n){(function(e){var r=n(106),i=t&&!t.nodeType&&t,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,s=o&&o.exports===i&&r.process,a=function(){try{var e=o&&o.require&&o.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=a}).call(this,n(40)(e))},function(e,t,n){var r=n(56),i=n(404),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t,n){var r=n(113),i=n(114),o=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,a=s?function(e){return null==e?[]:(e=Object(e),r(s(e),(function(t){return o.call(e,t)})))}:i;e.exports=a},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},function(e,t,n){var r=n(119);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},function(e,t,n){var r=n(76),i=n(58),o=n(123),s=n(4);e.exports=function(e,t){return(s(e)?r:i)(e,o(t))}},function(e,t,n){var r=n(85),i=n(19);e.exports=function(e,t){return e&&r(e,t,i)}},function(e,t,n){var r=n(423)();e.exports=r},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},function(e,t,n){var r=n(60),i=n(44);e.exports=function(e,t){for(var n=0,o=(t=r(t,e)).length;null!=e&&n<o;)e=e[i(t[n++])];return n&&n==o?e:void 0}},function(e,t,n){var r=n(4),i=n(36),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||(s.test(e)||!o.test(e)||null!=t&&e in Object(t))}},function(e,t,n){var r=n(81),i=n(453);e.exports=function e(t,n,o,s,a){var u=-1,l=t.length;for(o||(o=i),a||(a=[]);++u<l;){var c=t[u];n>0&&o(c)?n>1?e(c,n-1,o,s,a):r(a,c):s||(a[a.length]=c)}return a}},function(e,t,n){var r=n(65),i=n(31),o=n(67),s=n(34),a=Object.prototype,u=a.hasOwnProperty,l=r((function(e,t){e=Object(e);var n=-1,r=t.length,l=r>2?t[2]:void 0;for(l&&o(t[0],t[1],l)&&(r=1);++n<r;)for(var c=t[n],d=s(c),h=-1,f=d.length;++h<f;){var p=d[h],g=e[p];(void 0===g||i(g,a[p])&&!u.call(e,p))&&(e[p]=c[p])}return e}));e.exports=l},function(e,t,n){var r=n(89);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},function(e,t,n){var r=n(36);e.exports=function(e,t,n){for(var i=-1,o=e.length;++i<o;){var s=e[i],a=t(s);if(null!=a&&(void 0===u?a==a&&!r(a):n(a,u)))var u=a,l=s}return l}},function(e,t,n){var r=n(487),i=n(490)((function(e,t){return null==e?{}:r(e,t)}));e.exports=i},function(e,t,n){var r=n(491)();e.exports=r},function(e,t,n){var r=n(130),i=0;e.exports=function(e){var t=++i;return r(e)+t}},function(e,t,n){"use strict";var r=n(9);e.exports=a;var i="\0",o="\0",s="";function a(e){this._isDirected=!r.has(e,"directed")||e.directed,this._isMultigraph=!!r.has(e,"multigraph")&&e.multigraph,this._isCompound=!!r.has(e,"compound")&&e.compound,this._label=void 0,this._defaultNodeLabelFn=r.constant(void 0),this._defaultEdgeLabelFn=r.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[o]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function u(e,t){e[t]?e[t]++:e[t]=1}function l(e,t){--e[t]||delete e[t]}function c(e,t,n,o){var a=""+t,u=""+n;if(!e&&a>u){var l=a;a=u,u=l}return a+s+u+s+(r.isUndefined(o)?i:o)}function d(e,t,n,r){var i=""+t,o=""+n;if(!e&&i>o){var s=i;i=o,o=s}var a={v:i,w:o};return r&&(a.name=r),a}function h(e,t){return c(e,t.v,t.w,t.name)}a.prototype._nodeCount=0,a.prototype._edgeCount=0,a.prototype.isDirected=function(){return this._isDirected},a.prototype.isMultigraph=function(){return this._isMultigraph},a.prototype.isCompound=function(){return this._isCompound},a.prototype.setGraph=function(e){return this._label=e,this},a.prototype.graph=function(){return this._label},a.prototype.setDefaultNodeLabel=function(e){return r.isFunction(e)||(e=r.constant(e)),this._defaultNodeLabelFn=e,this},a.prototype.nodeCount=function(){return this._nodeCount},a.prototype.nodes=function(){return r.keys(this._nodes)},a.prototype.sources=function(){var e=this;return r.filter(this.nodes(),(function(t){return r.isEmpty(e._in[t])}))},a.prototype.sinks=function(){var e=this;return r.filter(this.nodes(),(function(t){return r.isEmpty(e._out[t])}))},a.prototype.setNodes=function(e,t){var n=arguments,i=this;return r.each(e,(function(e){n.length>1?i.setNode(e,t):i.setNode(e)})),this},a.prototype.setNode=function(e,t){return r.has(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=o,this._children[e]={},this._children[o][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)},a.prototype.node=function(e){return this._nodes[e]},a.prototype.hasNode=function(e){return r.has(this._nodes,e)},a.prototype.removeNode=function(e){var t=this;if(r.has(this._nodes,e)){var n=function(e){t.removeEdge(t._edgeObjs[e])};delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],r.each(this.children(e),(function(e){t.setParent(e)})),delete this._children[e]),r.each(r.keys(this._in[e]),n),delete this._in[e],delete this._preds[e],r.each(r.keys(this._out[e]),n),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this},a.prototype.setParent=function(e,t){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(t))t=o;else{for(var n=t+="";!r.isUndefined(n);n=this.parent(n))if(n===e)throw new Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this},a.prototype._removeFromParentsChildList=function(e){delete this._children[this._parent[e]][e]},a.prototype.parent=function(e){if(this._isCompound){var t=this._parent[e];if(t!==o)return t}},a.prototype.children=function(e){if(r.isUndefined(e)&&(e=o),this._isCompound){var t=this._children[e];if(t)return r.keys(t)}else{if(e===o)return this.nodes();if(this.hasNode(e))return[]}},a.prototype.predecessors=function(e){var t=this._preds[e];if(t)return r.keys(t)},a.prototype.successors=function(e){var t=this._sucs[e];if(t)return r.keys(t)},a.prototype.neighbors=function(e){var t=this.predecessors(e);if(t)return r.union(t,this.successors(e))},a.prototype.isLeaf=function(e){return 0===(this.isDirected()?this.successors(e):this.neighbors(e)).length},a.prototype.filterNodes=function(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var n=this;r.each(this._nodes,(function(n,r){e(r)&&t.setNode(r,n)})),r.each(this._edgeObjs,(function(e){t.hasNode(e.v)&&t.hasNode(e.w)&&t.setEdge(e,n.edge(e))}));var i={};return this._isCompound&&r.each(t.nodes(),(function(e){t.setParent(e,function e(r){var o=n.parent(r);return void 0===o||t.hasNode(o)?(i[r]=o,o):o in i?i[o]:e(o)}(e))})),t},a.prototype.setDefaultEdgeLabel=function(e){return r.isFunction(e)||(e=r.constant(e)),this._defaultEdgeLabelFn=e,this},a.prototype.edgeCount=function(){return this._edgeCount},a.prototype.edges=function(){return r.values(this._edgeObjs)},a.prototype.setPath=function(e,t){var n=this,i=arguments;return r.reduce(e,(function(e,r){return i.length>1?n.setEdge(e,r,t):n.setEdge(e,r),r})),this},a.prototype.setEdge=function(){var e,t,n,i,o=!1,s=arguments[0];"object"==typeof s&&null!==s&&"v"in s?(e=s.v,t=s.w,n=s.name,2===arguments.length&&(i=arguments[1],o=!0)):(e=s,t=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],o=!0)),e=""+e,t=""+t,r.isUndefined(n)||(n=""+n);var a=c(this._isDirected,e,t,n);if(r.has(this._edgeLabels,a))return o&&(this._edgeLabels[a]=i),this;if(!r.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[a]=o?i:this._defaultEdgeLabelFn(e,t,n);var l=d(this._isDirected,e,t,n);return e=l.v,t=l.w,Object.freeze(l),this._edgeObjs[a]=l,u(this._preds[t],e),u(this._sucs[e],t),this._in[t][a]=l,this._out[e][a]=l,this._edgeCount++,this},a.prototype.edge=function(e,t,n){var r=1===arguments.length?h(this._isDirected,arguments[0]):c(this._isDirected,e,t,n);return this._edgeLabels[r]},a.prototype.hasEdge=function(e,t,n){var i=1===arguments.length?h(this._isDirected,arguments[0]):c(this._isDirected,e,t,n);return r.has(this._edgeLabels,i)},a.prototype.removeEdge=function(e,t,n){var r=1===arguments.length?h(this._isDirected,arguments[0]):c(this._isDirected,e,t,n),i=this._edgeObjs[r];return i&&(e=i.v,t=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],l(this._preds[t],e),l(this._sucs[e],t),delete this._in[t][r],delete this._out[e][r],this._edgeCount--),this},a.prototype.inEdges=function(e,t){var n=this._in[e];if(n){var i=r.values(n);return t?r.filter(i,(function(e){return e.v===t})):i}},a.prototype.outEdges=function(e,t){var n=this._out[e];if(n){var i=r.values(n);return t?r.filter(i,(function(e){return e.w===t})):i}},a.prototype.nodeEdges=function(e,t){var n=this.inEdges(e,t);if(n)return n.concat(this.outEdges(e,t))}},function(e,t){e.exports=function(e,t,n,r){var i=e.x,o=e.y,s=i-r.x,a=o-r.y,u=Math.sqrt(t*t*a*a+n*n*s*s),l=Math.abs(t*n*s/u);r.x<i&&(l=-l);var c=Math.abs(t*n*a/u);r.y<o&&(c=-c);return{x:i+l,y:o+c}}},function(e,t,n){var r=n(564),i=n(178),o=n(565);e.exports=function(e,t,n){var s=t.label,a=e.append("g");"svg"===t.labelType?o(a,t):"string"!=typeof s||"html"===t.labelType?i(a,t):r(a,t);var u,l=a.node().getBBox();switch(n){case"top":u=-t.height/2;break;case"bottom":u=t.height/2-l.height;break;default:u=-l.height/2}return a.attr("transform","translate("+-l.width/2+","+u+")"),a}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.ALL=0]="ALL",e[e.RGB=1]="RGB",e[e.HSL=2]="HSL"}(r||(r={})),t.TYPE=r},function(e,t,n){},function(e,t,n){"use strict";(e.exports={}).forEach=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n]);if(r)return r}}},function(e,t,n){"use strict";var r=e.exports={};r.isIE=function(e){return(-1!==(t=navigator.userAgent.toLowerCase()).indexOf("msie")||-1!==t.indexOf("trident")||-1!==t.indexOf(" edge/"))&&(!e||e===function(){var e=3,t=document.createElement("div"),n=t.getElementsByTagName("i");do{t.innerHTML="\x3c!--[if gt IE "+ ++e+"]><i></i><![endif]--\x3e"}while(n[0]);return e>4?e:void 0}());var t},r.isLegacyOpera=function(){return!!window.opera}},function(e,t,n){var r=n(370);e.exports={Graph:r.Graph,json:n(467),alg:n(468),version:r.version}},function(e,t,n){var r=n(105),i=4;e.exports=function(e){return r(e,i)}},function(e,t,n){var r=n(47),i=n(76),o=n(52),s=n(399),a=n(405),u=n(111),l=n(112),c=n(408),d=n(409),h=n(116),f=n(410),p=n(35),g=n(414),m=n(415),_=n(121),y=n(4),v=n(33),b=n(419),w=n(8),C=n(421),S=n(19),x=1,L=2,k=4,M="[object Arguments]",D="[object Function]",E="[object GeneratorFunction]",T="[object Object]",N={};N[M]=N["[object Array]"]=N["[object ArrayBuffer]"]=N["[object DataView]"]=N["[object Boolean]"]=N["[object Date]"]=N["[object Float32Array]"]=N["[object Float64Array]"]=N["[object Int8Array]"]=N["[object Int16Array]"]=N["[object Int32Array]"]=N["[object Map]"]=N["[object Number]"]=N[T]=N["[object RegExp]"]=N["[object Set]"]=N["[object String]"]=N["[object Symbol]"]=N["[object Uint8Array]"]=N["[object Uint8ClampedArray]"]=N["[object Uint16Array]"]=N["[object Uint32Array]"]=!0,N["[object Error]"]=N[D]=N["[object WeakMap]"]=!1,e.exports=function e(t,n,O,A,I,P){var R,F=n&x,Y=n&L,j=n&k;if(O&&(R=I?O(t,A,I,P):O(t)),void 0!==R)return R;if(!w(t))return t;var B=y(t);if(B){if(R=g(t),!F)return l(t,R)}else{var W=p(t),H=W==D||W==E;if(v(t))return u(t,F);if(W==T||W==M||H&&!I){if(R=Y||H?{}:_(t),!F)return Y?d(t,a(R,t)):c(t,s(R,t))}else{if(!N[W])return I?t:{};R=m(t,W,F)}}P||(P=new r);var V=P.get(t);if(V)return V;P.set(t,R),C(t)?t.forEach((function(r){R.add(e(r,n,O,r,t,P))})):b(t)&&t.forEach((function(r,i){R.set(i,e(r,n,O,i,t,P))}));var z=j?Y?f:h:Y?keysIn:S,U=B?void 0:z(t);return i(U||t,(function(r,i){U&&(r=t[i=r]),o(R,i,e(r,n,O,i,t,P))})),R}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(30))},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){var r=n(24),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},function(e,t,n){var r=n(400),i=n(39),o=n(4),s=n(33),a=n(54),u=n(41),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),c=!n&&i(e),d=!n&&!c&&s(e),h=!n&&!c&&!d&&u(e),f=n||c||d||h,p=f?r(e.length,String):[],g=p.length;for(var m in e)!t&&!l.call(e,m)||f&&("length"==m||d&&("offset"==m||"parent"==m)||h&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||a(m,g))||p.push(m);return p}},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){(function(e){var r=n(14),i=t&&!t.nodeType&&t,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,s=o&&o.exports===i?r.Buffer:void 0,a=s?s.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=a?a(n):new e.constructor(n);return e.copy(r),r}}).call(this,n(40)(e))},function(e,t){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var s=e[n];t(s,n,e)&&(o[i++]=s)}return o}},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(81),i=n(57),o=n(80),s=n(114),a=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,o(e)),e=i(e);return t}:s;e.exports=a},function(e,t,n){var r=n(117),i=n(80),o=n(19);e.exports=function(e){return r(e,o,i)}},function(e,t,n){var r=n(81),i=n(4);e.exports=function(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}},function(e,t,n){var r=n(24)(n(14),"Set");e.exports=r},function(e,t,n){var r=n(14).Uint8Array;e.exports=r},function(e,t,n){var r=n(82);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},function(e,t,n){var r=n(122),i=n(57),o=n(56);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:r(i(e))}},function(e,t,n){var r=n(8),i=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},function(e,t,n){var r=n(27);e.exports=function(e){return"function"==typeof e?e:r}},function(e,t,n){var r=n(428),i=n(18);e.exports=function e(t,n,o,s,a){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!=t&&n!=n:r(t,n,o,s,e,a))}},function(e,t,n){var r=n(126),i=n(431),o=n(127),s=1,a=2;e.exports=function(e,t,n,u,l,c){var d=n&s,h=e.length,f=t.length;if(h!=f&&!(d&&f>h))return!1;var p=c.get(e);if(p&&c.get(t))return p==t;var g=-1,m=!0,_=n&a?new r:void 0;for(c.set(e,t),c.set(t,e);++g<h;){var y=e[g],v=t[g];if(u)var b=d?u(v,y,g,t,e,c):u(y,v,g,e,t,c);if(void 0!==b){if(b)continue;m=!1;break}if(_){if(!i(t,(function(e,t){if(!o(_,t)&&(y===e||l(y,e,n,u,c)))return _.push(t)}))){m=!1;break}}else if(y!==v&&!l(y,v,n,u,c)){m=!1;break}}return c.delete(e),c.delete(t),m}},function(e,t,n){var r=n(75),i=n(429),o=n(430);function s(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}s.prototype.add=s.prototype.push=i,s.prototype.has=o,e.exports=s},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t,n){var r=n(8);e.exports=function(e){return e==e&&!r(e)}},function(e,t){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},function(e,t,n){var r=n(441);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(442),i=n(132);e.exports=function(e,t){return null!=e&&i(e,t,r)}},function(e,t,n){var r=n(60),i=n(39),o=n(4),s=n(54),a=n(77),u=n(44);e.exports=function(e,t,n){for(var l=-1,c=(t=r(t,e)).length,d=!1;++l<c;){var h=u(t[l]);if(!(d=null!=e&&n(e,h)))break;e=e[h]}return d||++l!=c?d:!!(c=null==e?0:e.length)&&a(c)&&s(h,c)&&(o(e)||i(e))}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,n){var r=n(79),i=n(35),o=n(39),s=n(4),a=n(20),u=n(33),l=n(56),c=n(41),d="[object Map]",h="[object Set]",f=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(a(e)&&(s(e)||"string"==typeof e||"function"==typeof e.splice||u(e)||c(e)||o(e)))return!e.length;var t=i(e);if(t==d||t==h)return!e.size;if(l(e))return!r(e).length;for(var n in e)if(f.call(e,n))return!1;return!0}},function(e,t,n){var r=n(58),i=n(20);e.exports=function(e,t){var n=-1,o=i(e)?Array(e.length):[];return r(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}},function(e,t,n){var r=n(79),i=n(35),o=n(20),s=n(448),a=n(449),u="[object Map]",l="[object Set]";e.exports=function(e){if(null==e)return 0;if(o(e))return s(e)?a(e):e.length;var t=i(e);return t==u||t==l?e.size:r(e).length}},function(e,t,n){var r=n(76),i=n(122),o=n(84),s=n(21),a=n(57),u=n(4),l=n(33),c=n(25),d=n(8),h=n(41);e.exports=function(e,t,n){var f=u(e),p=f||l(e)||h(e);if(t=s(t,4),null==n){var g=e&&e.constructor;n=p?f?new g:[]:d(e)&&c(g)?i(a(e)):{}}return(p?r:o)(e,(function(e,r,i){return t(n,e,r,i)})),n}},function(e,t,n){var r=n(89),i=n(65),o=n(457),s=n(142),a=i((function(e){return o(r(e,1,s,!0))}));e.exports=a},function(e,t,n){var r=n(454),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,s=-1,a=i(o.length-t,0),u=Array(a);++s<a;)u[s]=o[t+s];s=-1;for(var l=Array(t+1);++s<t;)l[s]=o[s];return l[t]=n(u),r(e,this,l)}}},function(e,t,n){var r=n(455),i=n(456)(r);e.exports=i},function(e,t){e.exports=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}},function(e,t,n){var r=n(20),i=n(18);e.exports=function(e){return i(e)&&r(e)}},function(e,t,n){var r=n(7),i=n(144);e.exports=function(e,t,n,r){return function(e,t,n,r){var o,s,a={},u=new i,l=function(e){var t=e.v!==o?e.v:e.w,r=a[t],i=n(e),l=s.distance+i;if(i<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+e+" Weight: "+i);l<r.distance&&(r.distance=l,r.predecessor=o,u.decrease(t,l))};e.nodes().forEach((function(e){var n=e===t?0:Number.POSITIVE_INFINITY;a[e]={distance:n},u.add(e,n)}));for(;u.size()>0&&(o=u.removeMin(),(s=a[o]).distance!==Number.POSITIVE_INFINITY);)r(o).forEach(l);return a}(e,String(t),n||o,r||function(t){return e.outEdges(t)})};var o=r.constant(1)},function(e,t,n){var r=n(7);function i(){this._arr=[],this._keyIndices={}}e.exports=i,i.prototype.size=function(){return this._arr.length},i.prototype.keys=function(){return this._arr.map((function(e){return e.key}))},i.prototype.has=function(e){return r.has(this._keyIndices,e)},i.prototype.priority=function(e){var t=this._keyIndices[e];if(void 0!==t)return this._arr[t].priority},i.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},i.prototype.add=function(e,t){var n=this._keyIndices;if(e=String(e),!r.has(n,e)){var i=this._arr,o=i.length;return n[e]=o,i.push({key:e,priority:t}),this._decrease(o),!0}return!1},i.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var e=this._arr.pop();return delete this._keyIndices[e.key],this._heapify(0),e.key},i.prototype.decrease=function(e,t){var n=this._keyIndices[e];if(t>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+e+" Old: "+this._arr[n].priority+" New: "+t);this._arr[n].priority=t,this._decrease(n)},i.prototype._heapify=function(e){var t=this._arr,n=2*e,r=n+1,i=e;n<t.length&&(i=t[n].priority<t[i].priority?n:i,r<t.length&&(i=t[r].priority<t[i].priority?r:i),i!==e&&(this._swap(e,i),this._heapify(i)))},i.prototype._decrease=function(e){for(var t,n=this._arr,r=n[e].priority;0!==e&&!(n[t=e>>1].priority<r);)this._swap(e,t),e=t},i.prototype._swap=function(e,t){var n=this._arr,r=this._keyIndices,i=n[e],o=n[t];n[e]=o,n[t]=i,r[o.key]=e,r[i.key]=t}},function(e,t,n){var r=n(7);e.exports=function(e){var t=0,n=[],i={},o=[];return e.nodes().forEach((function(s){r.has(i,s)||function s(a){var u=i[a]={onStack:!0,lowlink:t,index:t++};if(n.push(a),e.successors(a).forEach((function(e){r.has(i,e)?i[e].onStack&&(u.lowlink=Math.min(u.lowlink,i[e].index)):(s(e),u.lowlink=Math.min(u.lowlink,i[e].lowlink))})),u.lowlink===u.index){var l,c=[];do{l=n.pop(),i[l].onStack=!1,c.push(l)}while(a!==l);o.push(c)}}(s)})),o}},function(e,t,n){var r=n(7);function i(e){var t={},n={},i=[];if(r.each(e.sinks(),(function s(a){if(r.has(n,a))throw new o;r.has(t,a)||(n[a]=!0,t[a]=!0,r.each(e.predecessors(a),s),delete n[a],i.push(a))})),r.size(t)!==e.nodeCount())throw new o;return i}function o(){}e.exports=i,i.CycleException=o,o.prototype=new Error},function(e,t,n){var r=n(7);e.exports=function(e,t,n){r.isArray(t)||(t=[t]);var i=(e.isDirected()?e.successors:e.neighbors).bind(e),o=[],s={};return r.each(t,(function(t){if(!e.hasNode(t))throw new Error("Graph does not have node: "+t);!function e(t,n,i,o,s,a){r.has(o,n)||(o[n]=!0,i||a.push(n),r.each(s(n),(function(n){e(t,n,i,o,s,a)})),i&&a.push(n))}(e,t,"post"===n,s,i,o)})),o}},function(e,t,n){var r=n(105),i=1,o=4;e.exports=function(e){return r(e,i|o)}},function(e,t,n){var r=n(478)(n(479));e.exports=r},function(e,t,n){var r=n(481),i=1/0,o=17976931348623157e292;e.exports=function(e){return e?(e=r(e))===i||e===-i?(e<0?-1:1)*o:e==e?e:0:0===e?e:0}},function(e,t,n){var r=n(85),i=n(123),o=n(34);e.exports=function(e,t){return null==e?e:r(e,i(t),o)}},function(e,t){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},function(e,t,n){var r=n(53),i=n(84),o=n(21);e.exports=function(e,t){var n={};return t=o(t,3),i(e,(function(e,i,o){r(n,i,t(e,i,o))})),n}},function(e,t,n){var r=n(92),i=n(482),o=n(27);e.exports=function(e){return e&&e.length?r(e,o,i):void 0}},function(e,t,n){var r=n(483),i=n(486)((function(e,t,n){r(e,t,n)}));e.exports=i},function(e,t,n){var r=n(53),i=n(31);e.exports=function(e,t,n){(void 0===n||i(e[t],n))&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){var r=n(26),i=n(57),o=n(18),s="[object Object]",a=Function.prototype,u=Object.prototype,l=a.toString,c=u.hasOwnProperty,d=l.call(Object);e.exports=function(e){if(!o(e)||r(e)!=s)return!1;var t=i(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==d}},function(e,t){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},function(e,t,n){var r=n(92),i=n(160),o=n(27);e.exports=function(e){return e&&e.length?r(e,o,i):void 0}},function(e,t){e.exports=function(e,t){return e<t}},function(e,t,n){var r=n(92),i=n(21),o=n(160);e.exports=function(e,t){return e&&e.length?r(e,i(t,2),o):void 0}},function(e,t,n){var r=n(14);e.exports=function(){return r.Date.now()}},function(e,t,n){var r=n(89),i=n(493),o=n(65),s=n(67),a=o((function(e,t){if(null==e)return[];var n=t.length;return n>1&&s(e,t[0],t[1])?t=[]:n>2&&s(t[0],t[1],t[2])&&(t=[t[0]]),i(e,r(t,1),[])}));e.exports=a},function(e,t,n){var r=n(52),i=n(497);e.exports=function(e,t){return i(e||[],t||[],r)}},function(e,t,n){"use strict";var r=n(2),i=n(13).Graph,o=n(68).slack;function s(e,t){return r.forEach(e.nodes(),(function n(i){r.forEach(t.nodeEdges(i),(function(r){var s=r.v,a=i===s?r.w:s;e.hasNode(a)||o(t,r)||(e.setNode(a,{}),e.setEdge(i,a,{}),n(a))}))})),e.nodeCount()}function a(e,t){return r.minBy(t.edges(),(function(n){if(e.hasNode(n.v)!==e.hasNode(n.w))return o(t,n)}))}function u(e,t,n){r.forEach(e.nodes(),(function(e){t.node(e).rank+=n}))}e.exports=function(e){var t,n,r=new i({directed:!1}),l=e.nodes()[0],c=e.nodeCount();r.setNode(l,{});for(;s(r,e)<c;)t=a(r,e),n=r.hasNode(t.v)?o(e,t):-o(e,t),u(r,e,n);return r}},function(e,t,n){var r=n(523);e.exports={Graph:r.Graph,json:n(525),alg:n(526),version:r.version}},function(e,t,n){var r=n(9),i=n(168);e.exports=function(e,t,n,r){return function(e,t,n,r){var o,s,a={},u=new i,l=function(e){var t=e.v!==o?e.v:e.w,r=a[t],i=n(e),l=s.distance+i;if(i<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+e+" Weight: "+i);l<r.distance&&(r.distance=l,r.predecessor=o,u.decrease(t,l))};e.nodes().forEach((function(e){var n=e===t?0:Number.POSITIVE_INFINITY;a[e]={distance:n},u.add(e,n)}));for(;u.size()>0&&(o=u.removeMin(),(s=a[o]).distance!==Number.POSITIVE_INFINITY);)r(o).forEach(l);return a}(e,String(t),n||o,r||function(t){return e.outEdges(t)})};var o=r.constant(1)},function(e,t,n){var r=n(9);function i(){this._arr=[],this._keyIndices={}}e.exports=i,i.prototype.size=function(){return this._arr.length},i.prototype.keys=function(){return this._arr.map((function(e){return e.key}))},i.prototype.has=function(e){return r.has(this._keyIndices,e)},i.prototype.priority=function(e){var t=this._keyIndices[e];if(void 0!==t)return this._arr[t].priority},i.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},i.prototype.add=function(e,t){var n=this._keyIndices;if(e=String(e),!r.has(n,e)){var i=this._arr,o=i.length;return n[e]=o,i.push({key:e,priority:t}),this._decrease(o),!0}return!1},i.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var e=this._arr.pop();return delete this._keyIndices[e.key],this._heapify(0),e.key},i.prototype.decrease=function(e,t){var n=this._keyIndices[e];if(t>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+e+" Old: "+this._arr[n].priority+" New: "+t);this._arr[n].priority=t,this._decrease(n)},i.prototype._heapify=function(e){var t=this._arr,n=2*e,r=n+1,i=e;n<t.length&&(i=t[n].priority<t[i].priority?n:i,r<t.length&&(i=t[r].priority<t[i].priority?r:i),i!==e&&(this._swap(e,i),this._heapify(i)))},i.prototype._decrease=function(e){for(var t,n=this._arr,r=n[e].priority;0!==e&&!(n[t=e>>1].priority<r);)this._swap(e,t),e=t},i.prototype._swap=function(e,t){var n=this._arr,r=this._keyIndices,i=n[e],o=n[t];n[e]=o,n[t]=i,r[o.key]=e,r[i.key]=t}},function(e,t,n){var r=n(9);e.exports=function(e){var t=0,n=[],i={},o=[];return e.nodes().forEach((function(s){r.has(i,s)||function s(a){var u=i[a]={onStack:!0,lowlink:t,index:t++};if(n.push(a),e.successors(a).forEach((function(e){r.has(i,e)?i[e].onStack&&(u.lowlink=Math.min(u.lowlink,i[e].index)):(s(e),u.lowlink=Math.min(u.lowlink,i[e].lowlink))})),u.lowlink===u.index){var l,c=[];do{l=n.pop(),i[l].onStack=!1,c.push(l)}while(a!==l);o.push(c)}}(s)})),o}},function(e,t,n){var r=n(9);function i(e){var t={},n={},i=[];if(r.each(e.sinks(),(function s(a){if(r.has(n,a))throw new o;r.has(t,a)||(n[a]=!0,t[a]=!0,r.each(e.predecessors(a),s),delete n[a],i.push(a))})),r.size(t)!==e.nodeCount())throw new o;return i}function o(){}e.exports=i,i.CycleException=o,o.prototype=new Error},function(e,t,n){var r=n(9);e.exports=function(e,t,n){r.isArray(t)||(t=[t]);var i=(e.isDirected()?e.successors:e.neighbors).bind(e),o=[],s={};return r.each(t,(function(t){if(!e.hasNode(t))throw new Error("Graph does not have node: "+t);!function e(t,n,i,o,s,a){r.has(o,n)||(o[n]=!0,i||a.push(n),r.each(s(n),(function(n){e(t,n,i,o,s,a)})),i&&a.push(n))}(e,t,"post"===n,s,i,o)})),o}},function(e,t,n){var r;try{r=n(535)}catch(e){}r||(r=window.dagre),e.exports=r},function(e,t,n){"use strict";var r=n(3),i=n(15).Graph,o=n(69).slack;function s(e,t){return r.forEach(e.nodes(),(function n(i){r.forEach(t.nodeEdges(i),(function(r){var s=r.v,a=i===s?r.w:s;e.hasNode(a)||o(t,r)||(e.setNode(a,{}),e.setEdge(i,a,{}),n(a))}))})),e.nodeCount()}function a(e,t){return r.minBy(t.edges(),(function(n){if(e.hasNode(n.v)!==e.hasNode(n.w))return o(t,n)}))}function u(e,t,n){r.forEach(e.nodes(),(function(e){t.node(e).rank+=n}))}e.exports=function(e){var t,n,r=new i({directed:!1}),l=e.nodes()[0],c=e.nodeCount();r.setNode(l,{});for(;s(r,e)<c;)t=a(r,e),n=r.hasNode(t.v)?o(e,t):-o(e,t),u(r,e,n);return r}},function(e,t){e.exports=function(e,t){return e.intersect(t)}},function(e,t,n){var r=n(97);e.exports=function(e,t,n){return r(e,t,t,n)}},function(e,t,n){var r=n(561);e.exports=function(e,t,n){var i=e.x,o=e.y,s=[],a=Number.POSITIVE_INFINITY,u=Number.POSITIVE_INFINITY;t.forEach((function(e){a=Math.min(a,e.x),u=Math.min(u,e.y)}));for(var l=i-e.width/2-a,c=o-e.height/2-u,d=0;d<t.length;d++){var h=t[d],f=t[d<t.length-1?d+1:0],p=r(e,n,{x:l+h.x,y:c+h.y},{x:l+f.x,y:c+f.y});p&&s.push(p)}if(!s.length)return console.log("NO INTERSECTION FOUND, RETURN NODE CENTER",e),e;s.length>1&&s.sort((function(e,t){var r=e.x-n.x,i=e.y-n.y,o=Math.sqrt(r*r+i*i),s=t.x-n.x,a=t.y-n.y,u=Math.sqrt(s*s+a*a);return o<u?-1:o===u?0:1}));return s[0]}},function(e,t){e.exports=function(e,t){var n,r,i=e.x,o=e.y,s=t.x-i,a=t.y-o,u=e.width/2,l=e.height/2;Math.abs(a)*u>Math.abs(s)*l?(a<0&&(l=-l),n=0===a?0:l*s/a,r=l):(s<0&&(u=-u),n=u,r=0===s?0:u*a/s);return{x:i+n,y:o+r}}},function(e,t,n){var r=n(10);e.exports=function(e,t){var n=e.append("foreignObject").attr("width","100000"),i=n.append("xhtml:div");i.attr("xmlns","http://www.w3.org/1999/xhtml");var o=t.label;switch(typeof o){case"function":i.insert(o);break;case"object":i.insert((function(){return o}));break;default:i.html(o)}r.applyStyle(i,t.labelStyle),i.style("display","inline-block"),i.style("white-space","nowrap");var s=i.node().getBoundingClientRect();return n.attr("width",s.width).attr("height",s.height),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(11),i=n(46),o=n(583),s={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:function(e){if(35===e.charCodeAt(0)){var t=e.match(s.re);if(t){var n=t[1],r=parseInt(n,16),o=n.length,a=o%4==0,u=o>4,l=u?1:17,c=u?8:4,d=a?0:-1,h=u?255:15;return i.default.set({r:(r>>c*(d+3)&h)*l,g:(r>>c*(d+2)&h)*l,b:(r>>c*(d+1)&h)*l,a:a?(r&h)*l/255:1},e)}}},stringify:function(e){return e.a<1?"#"+o.DEC2HEX[Math.round(e.r)]+o.DEC2HEX[Math.round(e.g)]+o.DEC2HEX[Math.round(e.b)]+r.default.unit.frac2hex(e.a):"#"+o.DEC2HEX[Math.round(e.r)]+o.DEC2HEX[Math.round(e.g)]+o.DEC2HEX[Math.round(e.b)]}};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(11),i=n(46),o=n(16);t.default=function(e,t,n,s){void 0===s&&(s=1);var a=i.default.set({h:r.default.channel.clamp.h(e),s:r.default.channel.clamp.s(t),l:r.default.channel.clamp.l(n),a:r.default.channel.clamp.a(s)});return o.default.stringify(a)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(23);t.default=function(e){return r.default(e,"a")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(11),i=n(16);t.default=function(e){var t=i.default.parse(e),n=t.r,o=t.g,s=t.b,a=.2126*r.default.channel.toLinear(n)+.7152*r.default.channel.toLinear(o)+.0722*r.default.channel.toLinear(s);return r.default.lang.round(a)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(182);t.default=function(e){return r.default(e)>=.5}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(28);t.default=function(e,t){return r.default(e,"a",t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(28);t.default=function(e,t){return r.default(e,"a",-t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(16),i=n(71);t.default=function(e,t){var n=r.default.parse(e),o={};for(var s in t)t[s]&&(o[s]=n[s]+t[s]);return i.default(e,o)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(16),i=n(70);t.default=function(e,t,n){void 0===n&&(n=50);var o=r.default.parse(e),s=o.r,a=o.g,u=o.b,l=o.a,c=r.default.parse(t),d=c.r,h=c.g,f=c.b,p=c.a,g=n/100,m=2*g-1,_=l-p,y=((m*_==-1?m:(m+_)/(1+m*_))+1)/2,v=1-y,b=s*y+d*v,w=a*y+h*v,C=u*y+f*v,S=l*g+p*(1-g);return i.default(b,w,C,S)}},function(e,t){},function(e,t,n){!function(e){"use strict";e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},r=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},i={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},o=function(e){return function(t,n,o,s){var a=r(t),u=i[e][r(t)];return 2===a&&(u=u[n?0:1]),u.replace(/%d/i,t)}},s=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar",{months:s,monthsShort:s,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:o("s"),ss:o("s"),m:o("m"),mm:o("m"),h:o("h"),hh:o("h"),d:o("d"),dd:o("d"),M:o("M"),MM:o("M"),y:o("y"),yy:o("y")},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("ar-dz",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"أح_إث_ثلا_أر_خم_جم_سب".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},r={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},i=function(e){return function(t,i,o,s){var a=n(t),u=r[e][n(t)];return 2===a&&(u=u[i?0:1]),u.replace(/%d/i,t)}},o=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-ly",{months:o,monthsShort:o,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:i("s"),ss:i("s"),m:i("m"),mm:i("m"),h:i("h"),hh:i("h"),d:i("d"),dd:i("d"),M:i("M"),MM:i("M"),y:i("y"),yy:i("y")},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:6,doy:12}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};e.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:0,doy:6}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"birneçə saniyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(e){return/^(gündüz|axşam)$/.test(e)},meridiem:function(e,t,n){return e<4?"gecə":e<12?"səhər":e<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(e){if(0===e)return e+"-ıncı";var n=e%10;return e+(t[n]||t[e%100-n]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";function t(e,t,n){var r,i;return"m"===n?t?"хвіліна":"хвіліну":"h"===n?t?"гадзіна":"гадзіну":e+" "+(r=+e,i={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:t?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[n].split("_"),r%10==1&&r%100!=11?i[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?i[1]:i[2])}e.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:t,mm:t,h:t,hh:t,d:"дзень",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[В изминалата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[В изминалия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дни",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};e.defineLocale("bn",{months:"জানুয়ারী_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব_মার্চ_এপ্র_মে_জুন_জুল_আগ_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t&&e>=4||"দুপুর"===t&&e<5||"বিকাল"===t?e+12:e},meridiem:function(e,t,n){return e<4?"রাত":e<10?"সকাল":e<17?"দুপুর":e<20?"বিকাল":"রাত"},week:{dow:0,doy:6}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},n={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};e.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(e){return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(e,t){return 12===e&&(e=0),"མཚན་མོ"===t&&e>=4||"ཉིན་གུང"===t&&e<5||"དགོང་དག"===t?e+12:e},meridiem:function(e,t,n){return e<4?"མཚན་མོ":e<10?"ཞོགས་ཀས":e<17?"ཉིན་གུང":e<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})}(n(0))},function(e,t,n){!function(e){"use strict";function t(e,t,n){return e+" "+function(e,t){return 2===t?function(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}(e):e}({mm:"munutenn",MM:"miz",dd:"devezh"}[n],e)}e.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY h[e]mm A",LLLL:"dddd, D [a viz] MMMM YYYY h[e]mm A"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:function(e){switch(function e(t){return t>9?e(t%10):t}(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(e){return e+(1===e?"añ":"vet")},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";function t(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return r+=1===e?"dan":"dana";case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";var t="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),n="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),r=[/^led/i,/^úno/i,/^bře/i,/^dub/i,/^kvě/i,/^(čvn|červen$|června)/i,/^(čvc|červenec|července)/i,/^srp/i,/^zář/i,/^říj/i,/^lis/i,/^pro/i],i=/^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;function o(e){return e>1&&e<5&&1!=~~(e/10)}function s(e,t,n,r){var i=e+" ";switch(n){case"s":return t||r?"pár sekund":"pár sekundami";case"ss":return t||r?i+(o(e)?"sekundy":"sekund"):i+"sekundami";case"m":return t?"minuta":r?"minutu":"minutou";case"mm":return t||r?i+(o(e)?"minuty":"minut"):i+"minutami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?i+(o(e)?"hodiny":"hodin"):i+"hodinami";case"d":return t||r?"den":"dnem";case"dd":return t||r?i+(o(e)?"dny":"dní"):i+"dny";case"M":return t||r?"měsíc":"měsícem";case"MM":return t||r?i+(o(e)?"měsíce":"měsíců"):i+"měsíci";case"y":return t||r?"rok":"rokem";case"yy":return t||r?i+(o(e)?"roky":"let"):i+"lety"}}e.defineLocale("cs",{months:t,monthsShort:n,monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:s,ss:s,m:s,mm:s,h:s,hh:s,d:s,dd:s,M:s,MM:s,y:s,yy:s},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(e){return e+(/сехет$/i.exec(e)?"рен":/ҫул$/i.exec(e)?"тан":"ран")},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t="";return e>20?t=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(t=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+t},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?i[n][0]:i[n][1]}e.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?i[n][0]:i[n][1]}e.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?i[n][0]:i[n][1]}e.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";var t=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],n=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];e.defineLocale("dv",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(e){return"މފ"===e},meridiem:function(e,t,n){return e<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:7,doy:12}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(e,t){return e?"string"==typeof t&&/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(e,t,n){return e>11?n?"μμ":"ΜΜ":n?"πμ":"ΠΜ"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(e,t){var n,r=this._calendarEl[e],i=t&&t.hours();return((n=r)instanceof Function||"[object Function]"===Object.prototype.toString.call(n))&&(r=r.apply(t)),r.replace("{}",i%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-SG",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D[-a de] MMMM, YYYY",LLL:"D[-a de] MMMM, YYYY HH:mm",LLLL:"dddd, [la] D[-a de] MMMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,n){return e>11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"sekundoj",ss:"%d sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}})}(n(0))},function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return t?i[n][2]?i[n][2]:i[n][1]:r?i[n][0]:i[n][1]}e.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d päeva",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},n={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};e.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(e){return/بعد از ظهر/.test(e)},meridiem:function(e,t,n){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"ثانیه d%",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[۰-۹]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})}(n(0))},function(e,t,n){!function(e){"use strict";var t="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),n=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",t[7],t[8],t[9]];function r(e,r,i,o){var s="";switch(i){case"s":return o?"muutaman sekunnin":"muutama sekunti";case"ss":return o?"sekunnin":"sekuntia";case"m":return o?"minuutin":"minuutti";case"mm":s=o?"minuutin":"minuuttia";break;case"h":return o?"tunnin":"tunti";case"hh":s=o?"tunnin":"tuntia";break;case"d":return o?"päivän":"päivä";case"dd":s=o?"päivän":"päivää";break;case"M":return o?"kuukauden":"kuukausi";case"MM":s=o?"kuukauden":"kuukautta";break;case"y":return o?"vuoden":"vuosi";case"yy":s=o?"vuoden":"vuotta"}return s=function(e,r){return e<10?r?n[e]:t[e]:e}(e,o)+" "+s}e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaður",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("ga",{months:["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Méitheamh","Iúil","Lúnasa","Meán Fómhair","Deaireadh Fómhair","Samhain","Nollaig"],monthsShort:["Eaná","Feab","Márt","Aibr","Beal","Méit","Iúil","Lúna","Meán","Deai","Samh","Noll"],monthsParseExact:!0,weekdays:["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Satharn"],weekdaysShort:["Dom","Lua","Mái","Céa","Déa","hAo","Sat"],weekdaysMin:["Do","Lu","Má","Ce","Dé","hA","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Amárach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inné aig] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s ó shin",s:"cúpla soicind",ss:"%d soicind",m:"nóiméad",mm:"%d nóiméad",h:"uair an chloig",hh:"%d uair an chloig",d:"lá",dd:"%d lá",M:"mí",MM:"%d mí",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],monthsShort:["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],monthsParseExact:!0,weekdays:["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={s:["thodde secondanim","thodde second"],ss:[e+" secondanim",e+" second"],m:["eka mintan","ek minute"],mm:[e+" mintanim",e+" mintam"],h:["eka voran","ek vor"],hh:[e+" voranim",e+" voram"],d:["eka disan","ek dis"],dd:[e+" disanim",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineanim",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsanim",e+" vorsam"]};return t?i[n][0]:i[n][1]}e.defineLocale("gom-latn",{months:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budvar_Brestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Ieta to] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fatlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){switch(t){case"D":return e+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:1,doy:4},meridiemParse:/rati|sokalli|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokalli"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"rati":e<12?"sokalli":e<16?"donparam":e<20?"sanje":"rati"}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},n={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"};e.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પેહલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(e){return e.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(e,t){return 12===e&&(e=0),"રાત"===t?e<4?e:e+12:"સવાર"===t?e:"બપોર"===t?e>=10?e:e+12:"સાંજ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"રાત":e<10?"સવાર":e<17?"બપોર":e<20?"સાંજ":"રાત"},week:{dow:0,doy:6}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(e){return 2===e?"שעתיים":e+" שעות"},d:"יום",dd:function(e){return 2===e?"יומיים":e+" ימים"},M:"חודש",MM:function(e){return 2===e?"חודשיים":e+" חודשים"},y:"שנה",yy:function(e){return 2===e?"שנתיים":e%10==0&&10!==e?e+" שנה":e+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(e){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(e)},meridiem:function(e,t,n){return e<5?"לפנות בוקר":e<10?"בבוקר":e<12?n?'לפנה"צ':"לפני הצהריים":e<18?n?'אחה"צ':"אחרי הצהריים":"בערב"}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};e.defineLocale("hi",{months:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात"===t?e<4?e:e+12:"सुबह"===t?e:"दोपहर"===t?e>=10?e:e+12:"शाम"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},week:{dow:0,doy:6}})}(n(0))},function(e,t,n){!function(e){"use strict";function t(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return r+=1===e?"dan":"dana";case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}e.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";var t="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function n(e,t,n,r){var i=e;switch(n){case"s":return r||t?"néhány másodperc":"néhány másodperce";case"ss":return i+(r||t)?" másodperc":" másodperce";case"m":return"egy"+(r||t?" perc":" perce");case"mm":return i+(r||t?" perc":" perce");case"h":return"egy"+(r||t?" óra":" órája");case"hh":return i+(r||t?" óra":" órája");case"d":return"egy"+(r||t?" nap":" napja");case"dd":return i+(r||t?" nap":" napja");case"M":return"egy"+(r||t?" hónap":" hónapja");case"MM":return i+(r||t?" hónap":" hónapja");case"y":return"egy"+(r||t?" év":" éve");case"yy":return i+(r||t?" év":" éve")}return""}function r(e){return(e?"":"[múlt] ")+"["+t[this.day()]+"] LT[-kor]"}e.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,n){return e<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return r.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return r.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",ss:"%d վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(e){return/^(ցերեկվա|երեկոյան)$/.test(e)},meridiem:function(e){return e<4?"գիշերվա":e<12?"առավոտվա":e<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-ին":e+"-րդ";default:return e}},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";function t(e){return e%100==11||e%10!=1}function n(e,n,r,i){var o=e+" ";switch(r){case"s":return n||i?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return t(e)?o+(n||i?"sekúndur":"sekúndum"):o+"sekúnda";case"m":return n?"mínúta":"mínútu";case"mm":return t(e)?o+(n||i?"mínútur":"mínútum"):n?o+"mínúta":o+"mínútu";case"hh":return t(e)?o+(n||i?"klukkustundir":"klukkustundum"):o+"klukkustund";case"d":return n?"dagur":i?"dag":"degi";case"dd":return t(e)?n?o+"dagar":o+(i?"daga":"dögum"):n?o+"dagur":o+(i?"dag":"degi");case"M":return n?"mánuður":i?"mánuð":"mánuði";case"MM":return t(e)?n?o+"mánuðir":o+(i?"mánuði":"mánuðum"):n?o+"mánuður":o+(i?"mánuð":"mánuði");case"y":return n||i?"ár":"ári";case"yy":return t(e)?o+(n||i?"ár":"árum"):o+(n||i?"ár":"ári")}}e.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("ja",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e,t,n){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(e){return e.week()<this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(e){return this.week()<e.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,t){return 12===e&&(e=0),"enjing"===t?e:"siyang"===t?e>=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("ka",{months:{standalone:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),format:"იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს".split("_")},monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return/(წამი|წუთი|საათი|წელი)/.test(e)?e.replace(/ი$/,"ში"):e+"ში"},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(e)?e.replace(/წელი$/,"წლის წინ"):void 0},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(e){return 0===e?e:1===e?e+"-ლი":e<20||e<=100&&e%20==0||e%100==0?"მე-"+e:e+"-ე"},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};e.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},n={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"};e.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysMin:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ព្រឹក|ល្ងាច/,isPM:function(e){return"ល្ងាច"===e},meridiem:function(e,t,n){return e<12?"ព្រឹក":"ល្ងាច"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},dayOfMonthOrdinalParse:/ទី\d{1,2}/,ordinal:"ទី%d",preparse:function(e){return e.replace(/[១២៣៤៥៦៧៨៩០]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},n={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"};e.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(e){return e.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ರಾತ್ರಿ"===t?e<4?e:e+12:"ಬೆಳಿಗ್ಗೆ"===t?e:"ಮಧ್ಯಾಹ್ನ"===t?e>=10?e:e+12:"ಸಂಜೆ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ರಾತ್ರಿ":e<10?"ಬೆಳಿಗ್ಗೆ":e<17?"ಮಧ್ಯಾಹ್ನ":e<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(e){return e+"ನೇ"},week:{dow:0,doy:6}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"일";case"M":return e+"월";case"w":case"W":return e+"주";default:return e}},meridiemParse:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e,t,n){return e<12?"오전":"오후"}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},r=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"];e.defineLocale("ku",{months:r,monthsShort:r,weekdays:"یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌".split("_"),weekdaysShort:"یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌".split("_"),weekdaysMin:"ی_د_س_چ_پ_ه_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ئێواره‌|به‌یانی/,isPM:function(e){return/ئێواره‌/.test(e)},meridiem:function(e,t,n){return e<12?"به‌یانی":"ئێواره‌"},calendar:{sameDay:"[ئه‌مرۆ كاتژمێر] LT",nextDay:"[به‌یانی كاتژمێر] LT",nextWeek:"dddd [كاتژمێر] LT",lastDay:"[دوێنێ كاتژمێر] LT",lastWeek:"dddd [كاتژمێر] LT",sameElse:"L"},relativeTime:{future:"له‌ %s",past:"%s",s:"چه‌ند چركه‌یه‌ك",ss:"چركه‌ %d",m:"یه‌ك خوله‌ك",mm:"%d خوله‌ك",h:"یه‌ك كاتژمێر",hh:"%d كاتژمێر",d:"یه‌ك ڕۆژ",dd:"%d ڕۆژ",M:"یه‌ك مانگ",MM:"%d مانگ",y:"یه‌ك ساڵ",yy:"%d ساڵ"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"};e.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кечээ саат] LT",lastWeek:"[Өткөн аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?i[n][0]:i[n][1]}function n(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10;return n(0===t?e/10:t)}if(e<1e4){for(;e>=10;)e/=10;return n(e)}return n(e/=1e3)}e.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function(e){return n(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e},past:function(e){return n(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e},s:"e puer Sekonnen",ss:"%d Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d Méint",y:t,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(e){return"ຕອນແລງ"===e},meridiem:function(e,t,n){return e<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",ss:"%d ວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(ທີ່)\d{1,2}/,ordinal:function(e){return"ທີ່"+e}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function n(e,t,n,r){return t?i(n)[0]:r?i(n)[1]:i(n)[2]}function r(e){return e%10==0||e>10&&e<20}function i(e){return t[e].split("_")}function o(e,t,o,s){var a=e+" ";return 1===e?a+n(0,t,o[0],s):t?a+(r(e)?i(o)[1]:i(o)[0]):s?a+i(o)[1]:a+(r(e)?i(o)[1]:i(o)[2])}e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:function(e,t,n,r){return t?"kelios sekundės":r?"kelių sekundžių":"kelias sekundes"},ss:o,m:n,mm:o,h:n,hh:o,d:n,dd:o,M:n,MM:o,y:n,yy:o},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function n(e,t,n){return n?t%10==1&&t%100!=11?e[2]:e[3]:t%10==1&&t%100!=11?e[0]:e[1]}function r(e,r,i){return e+" "+n(t[i],e,r)}function i(e,r,i){return n(t[i],e,r)}e.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:function(e,t){return t?"dažas sekundes":"dažām sekundēm"},ss:r,m:i,mm:r,h:i,hh:r,d:i,dd:r,M:i,MM:r,y:i,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var i=t.words[r];return 1===r.length?n?i[0]:i[1]:e+" "+t.correctGrammaticalCase(e,i)}};e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"после %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеци",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(e,t){return 12===e&&(e=0),"രാത്രി"===t&&e>=4||"ഉച്ച കഴിഞ്ഞ്"===t||"വൈകുന്നേരം"===t?e+12:e},meridiem:function(e,t,n){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}})}(n(0))},function(e,t,n){!function(e){"use strict";function t(e,t,n,r){switch(n){case"s":return t?"хэдхэн секунд":"хэдхэн секундын";case"ss":return e+(t?" секунд":" секундын");case"m":case"mm":return e+(t?" минут":" минутын");case"h":case"hh":return e+(t?" цаг":" цагийн");case"d":case"dd":return e+(t?" өдөр":" өдрийн");case"M":case"MM":return e+(t?" сар":" сарын");case"y":case"yy":return e+(t?" жил":" жилийн");default:return e}}e.defineLocale("mn",{months:"Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар".split("_"),monthsShort:"1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар".split("_"),monthsParseExact:!0,weekdays:"Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба".split("_"),weekdaysShort:"Ням_Дав_Мяг_Лха_Пүр_Баа_Бям".split("_"),weekdaysMin:"Ня_Да_Мя_Лх_Пү_Ба_Бя".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY оны MMMMын D",LLL:"YYYY оны MMMMын D HH:mm",LLLL:"dddd, YYYY оны MMMMын D HH:mm"},meridiemParse:/ҮӨ|ҮХ/i,isPM:function(e){return"ҮХ"===e},meridiem:function(e,t,n){return e<12?"ҮӨ":"ҮХ"},calendar:{sameDay:"[Өнөөдөр] LT",nextDay:"[Маргааш] LT",nextWeek:"[Ирэх] dddd LT",lastDay:"[Өчигдөр] LT",lastWeek:"[Өнгөрсөн] dddd LT",sameElse:"L"},relativeTime:{future:"%s дараа",past:"%s өмнө",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2} өдөр/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+" өдөр";default:return e}}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function r(e,t,n,r){var i="";if(t)switch(n){case"s":i="काही सेकंद";break;case"ss":i="%d सेकंद";break;case"m":i="एक मिनिट";break;case"mm":i="%d मिनिटे";break;case"h":i="एक तास";break;case"hh":i="%d तास";break;case"d":i="एक दिवस";break;case"dd":i="%d दिवस";break;case"M":i="एक महिना";break;case"MM":i="%d महिने";break;case"y":i="एक वर्ष";break;case"yy":i="%d वर्षे"}else switch(n){case"s":i="काही सेकंदां";break;case"ss":i="%d सेकंदां";break;case"m":i="एका मिनिटा";break;case"mm":i="%d मिनिटां";break;case"h":i="एका तासा";break;case"hh":i="%d तासां";break;case"d":i="एका दिवसा";break;case"dd":i="%d दिवसां";break;case"M":i="एका महिन्या";break;case"MM":i="%d महिन्यां";break;case"y":i="एका वर्षा";break;case"yy":i="%d वर्षां"}return i.replace(/%d/i,e)}e.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/रात्री|सकाळी|दुपारी|सायंकाळी/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात्री"===t?e<4?e:e+12:"सकाळी"===t?e:"दुपारी"===t?e>=10?e:e+12:"सायंकाळी"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"रात्री":e<10?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},n={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};e.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",ss:"%d စက္ကန့်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(e){return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};e.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(e,t){return 12===e&&(e=0),"राति"===t?e<4?e:e+12:"बिहान"===t?e:"दिउँसो"===t?e>=10?e:e+12:"साँझ"===t?e+12:void 0},meridiem:function(e,t,n){return e<3?"राति":e<12?"बिहान":e<16?"दिउँसो":e<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}})}(n(0))},function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],i=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],i=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_mån_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_må_ty_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},n={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"};e.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"[ਅਗਲਾ] dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(e){return e.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ਰਾਤ"===t?e<4?e:e+12:"ਸਵੇਰ"===t?e:"ਦੁਪਹਿਰ"===t?e>=10?e:e+12:"ਸ਼ਾਮ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ਰਾਤ":e<10?"ਸਵੇਰ":e<17?"ਦੁਪਹਿਰ":e<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}})}(n(0))},function(e,t,n){!function(e){"use strict";var t="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_");function r(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function i(e,t,n){var i=e+" ";switch(n){case"ss":return i+(r(e)?"sekundy":"sekund");case"m":return t?"minuta":"minutę";case"mm":return i+(r(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return i+(r(e)?"godziny":"godzin");case"MM":return i+(r(e)?"miesiące":"miesięcy");case"yy":return i+(r(e)?"lata":"lat")}}e.defineLocale("pl",{months:function(e,r){return e?""===r?"("+n[e.month()]+"|"+t[e.month()]+")":/D MMMM/.test(r)?n[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:i,m:i,mm:i,h:i,hh:i,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:i,y:"rok",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("pt",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("pt-br",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº"})}(n(0))},function(e,t,n){!function(e){"use strict";function t(e,t,n){var r=" ";return(e%100>=20||e>=100&&e%100==0)&&(r=" de "),e+r+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"}[n]}e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:t,m:"un minut",mm:t,h:"o oră",hh:t,d:"o zi",dd:t,M:"o lună",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";function t(e,t,n){var r,i;return"m"===n?t?"минута":"минуту":e+" "+(r=+e,i={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[n].split("_"),r%10==1&&r%100!=11?i[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?i[1]:i[2])}var n=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];e.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:n,longMonthsParse:n,shortMonthsParse:n,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:t,m:t,mm:t,h:"час",hh:t,d:"день",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";var t=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],n=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];e.defineLocale("sd",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(e){return e+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(e){return"ප.ව."===e||"පස් වරු"===e},meridiem:function(e,t,n){return e>11?n?"ප.ව.":"පස් වරු":n?"පෙ.ව.":"පෙර වරු"}})}(n(0))},function(e,t,n){!function(e){"use strict";var t="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),n="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function r(e){return e>1&&e<5}function i(e,t,n,i){var o=e+" ";switch(n){case"s":return t||i?"pár sekúnd":"pár sekundami";case"ss":return t||i?o+(r(e)?"sekundy":"sekúnd"):o+"sekundami";case"m":return t?"minúta":i?"minútu":"minútou";case"mm":return t||i?o+(r(e)?"minúty":"minút"):o+"minútami";case"h":return t?"hodina":i?"hodinu":"hodinou";case"hh":return t||i?o+(r(e)?"hodiny":"hodín"):o+"hodinami";case"d":return t||i?"deň":"dňom";case"dd":return t||i?o+(r(e)?"dni":"dní"):o+"dňami";case"M":return t||i?"mesiac":"mesiacom";case"MM":return t||i?o+(r(e)?"mesiace":"mesiacov"):o+"mesiacmi";case"y":return t||i?"rok":"rokom";case"yy":return t||i?o+(r(e)?"roky":"rokov"):o+"rokmi"}}e.defineLocale("sk",{months:t,monthsShort:n,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i=e+" ";switch(n){case"s":return t||r?"nekaj sekund":"nekaj sekundami";case"ss":return i+=1===e?t?"sekundo":"sekundi":2===e?t||r?"sekundi":"sekundah":e<5?t||r?"sekunde":"sekundah":"sekund";case"m":return t?"ena minuta":"eno minuto";case"mm":return i+=1===e?t?"minuta":"minuto":2===e?t||r?"minuti":"minutama":e<5?t||r?"minute":"minutami":t||r?"minut":"minutami";case"h":return t?"ena ura":"eno uro";case"hh":return i+=1===e?t?"ura":"uro":2===e?t||r?"uri":"urama":e<5?t||r?"ure":"urami":t||r?"ur":"urami";case"d":return t||r?"en dan":"enim dnem";case"dd":return i+=1===e?t||r?"dan":"dnem":2===e?t||r?"dni":"dnevoma":t||r?"dni":"dnevi";case"M":return t||r?"en mesec":"enim mesecem";case"MM":return i+=1===e?t||r?"mesec":"mesecem":2===e?t||r?"meseca":"mesecema":e<5?t||r?"mesece":"meseci":t||r?"mesecev":"meseci";case"y":return t||r?"eno leto":"enim letom";case"yy":return i+=1===e?t||r?"leto":"letom":2===e?t||r?"leti":"letoma":e<5?t||r?"leta":"leti":t||r?"let":"leti"}}e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,t,n){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var i=t.words[r];return 1===r.length?n?i[0]:i[1]:e+" "+t.correctGrammaticalCase(e,i)}};e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={words:{ss:["секунда","секунде","секунди"],m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var i=t.words[r];return 1===r.length?n?i[0]:i[1]:e+" "+t.correctGrammaticalCase(e,i)}};e.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"дан",dd:t.translate,M:"месец",MM:t.translate,y:"годину",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,t,n){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?e>=11?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(e|a)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"e":1===t?"a":2===t?"a":"e")},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"masiku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},n={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"};e.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}வது/,ordinal:function(e){return e+"வது"},preparse:function(e){return e.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(e,t,n){return e<2?" யாமம்":e<6?" வைகறை":e<10?" காலை":e<14?" நண்பகல்":e<18?" எற்பாடு":e<22?" மாலை":" யாமம்"},meridiemHour:function(e,t){return 12===e&&(e=0),"யாமம்"===t?e<2?e:e+12:"வைகறை"===t||"காலை"===t?e:"நண்பகல்"===t&&e>=10?e:e+12},week:{dow:0,doy:6}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(e,t){return 12===e&&(e=0),"రాత్రి"===t?e<4?e:e+12:"ఉదయం"===t?e:"మధ్యాహ్నం"===t?e>=10?e:e+12:"సాయంత్రం"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"రాత్రి":e<10?"ఉదయం":e<17?"మధ్యాహ్నం":e<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"minutu balun",ss:"minutu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"};e.defineLocale("tg",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Пагоҳ соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(e,t){return 12===e&&(e=0),"шаб"===t?e<4?e:e+12:"субҳ"===t?e:"рӯз"===t?e>=11?e:e+12:"бегоҳ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"шаб":e<11?"субҳ":e<16?"рӯз":e<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,t,n){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";var t="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(e,n,r,i){var o=function(e){var n=Math.floor(e%1e3/100),r=Math.floor(e%100/10),i=e%10,o="";return n>0&&(o+=t[n]+"vatlh"),r>0&&(o+=(""!==o?" ":"")+t[r]+"maH"),i>0&&(o+=(""!==o?" ":"")+t[i]),""===o?"pagh":o}(e);switch(r){case"ss":return o+" lup";case"mm":return o+" tup";case"hh":return o+" rep";case"dd":return o+" jaj";case"MM":return o+" jar";case"yy":return o+" DIS"}}e.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"},past:function(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu’":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"},s:"puS lup",ss:n,m:"wa’ tup",mm:n,h:"wa’ rep",hh:n,d:"wa’ jaj",dd:n,M:"wa’ jar",MM:n,y:"wa’ DIS",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};e.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'ıncı";var r=e%10;return e+(t[r]||t[e%100-r]||t[e>=100?100:null])}},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n míut","'iens míut"],mm:[e+" míuts",e+" míuts"],h:["'n þora","'iensa þora"],hh:[e+" þoras",e+" þoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return r?i[n][0]:t?i[n][0]:i[n][1]}e.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,n){return e>11?n?"d'o":"D'O":n?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",ss:"%d ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,meridiemHour:function(e,t){return 12===e&&(e=0),"يېرىم كېچە"===t||"سەھەر"===t||"چۈشتىن بۇرۇن"===t?e:"چۈشتىن كېيىن"===t||"كەچ"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?"يېرىم كېچە":r<900?"سەھەر":r<1130?"چۈشتىن بۇرۇن":r<1230?"چۈش":r<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"-كۈنى";case"w":case"W":return e+"-ھەپتە";default:return e}},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";function t(e,t,n){var r,i;return"m"===n?t?"хвилина":"хвилину":"h"===n?t?"година":"годину":e+" "+(r=+e,i={ss:t?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:t?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:t?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[n].split("_"),r%10==1&&r%100!=11?i[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?i[1]:i[2])}function n(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:function(e,t){var n={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return!0===e?n.nominative.slice(1,7).concat(n.nominative.slice(0,1)):e?n[/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]:n.nominative},weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:n("[Сьогодні "),nextDay:n("[Завтра "),lastDay:n("[Вчора "),nextWeek:n("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return n("[Минулої] dddd [").call(this);case 1:case 2:case 4:return n("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:t,m:t,mm:t,h:"годину",hh:t,d:"день",dd:t,M:"місяць",MM:t,y:"рік",yy:t},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";var t=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],n=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];e.defineLocale("ur",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"sa":"SA":n?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần rồi lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s内",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(0))},function(e,t,n){"use strict";n.r(t);var r=function(e,t){return e<t?-1:e>t?1:e>=t?0:NaN},i=function(e){var t;return 1===e.length&&(t=e,e=function(e,n){return r(t(e),n)}),{left:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){var o=r+i>>>1;e(t[o],n)<0?r=o+1:i=o}return r},right:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){var o=r+i>>>1;e(t[o],n)>0?i=o:r=o+1}return r}}};var o=i(r),s=o.right,a=o.left,u=s,l=function(e,t){null==t&&(t=c);for(var n=0,r=e.length-1,i=e[0],o=new Array(r<0?0:r);n<r;)o[n]=t(i,i=e[++n]);return o};function c(e,t){return[e,t]}var d=function(e,t,n){var r,i,o,s,a=e.length,u=t.length,l=new Array(a*u);for(null==n&&(n=c),r=o=0;r<a;++r)for(s=e[r],i=0;i<u;++i,++o)l[o]=n(s,t[i]);return l},h=function(e,t){return t<e?-1:t>e?1:t>=e?0:NaN},f=function(e){return null===e?NaN:+e},p=function(e,t){var n,r,i=e.length,o=0,s=-1,a=0,u=0;if(null==t)for(;++s<i;)isNaN(n=f(e[s]))||(u+=(r=n-a)*(n-(a+=r/++o)));else for(;++s<i;)isNaN(n=f(t(e[s],s,e)))||(u+=(r=n-a)*(n-(a+=r/++o)));if(o>1)return u/(o-1)},g=function(e,t){var n=p(e,t);return n?Math.sqrt(n):n},m=function(e,t){var n,r,i,o=e.length,s=-1;if(null==t){for(;++s<o;)if(null!=(n=e[s])&&n>=n)for(r=i=n;++s<o;)null!=(n=e[s])&&(r>n&&(r=n),i<n&&(i=n))}else for(;++s<o;)if(null!=(n=t(e[s],s,e))&&n>=n)for(r=i=n;++s<o;)null!=(n=t(e[s],s,e))&&(r>n&&(r=n),i<n&&(i=n));return[r,i]},_=Array.prototype,y=_.slice,v=_.map,b=function(e){return function(){return e}},w=function(e){return e},C=function(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),o=new Array(i);++r<i;)o[r]=e+r*n;return o},S=Math.sqrt(50),x=Math.sqrt(10),L=Math.sqrt(2),k=function(e,t,n){var r,i,o,s,a=-1;if(n=+n,(e=+e)===(t=+t)&&n>0)return[e];if((r=t<e)&&(i=e,e=t,t=i),0===(s=M(e,t,n))||!isFinite(s))return[];if(s>0)for(e=Math.ceil(e/s),t=Math.floor(t/s),o=new Array(i=Math.ceil(t-e+1));++a<i;)o[a]=(e+a)*s;else for(e=Math.floor(e*s),t=Math.ceil(t*s),o=new Array(i=Math.ceil(e-t+1));++a<i;)o[a]=(e-a)/s;return r&&o.reverse(),o};function M(e,t,n){var r=(t-e)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=S?10:o>=x?5:o>=L?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=S?10:o>=x?5:o>=L?2:1)}function D(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=S?i*=10:o>=x?i*=5:o>=L&&(i*=2),t<e?-i:i}var E=function(e){return Math.ceil(Math.log(e.length)/Math.LN2)+1},T=function(){var e=w,t=m,n=E;function r(r){var i,o,s=r.length,a=new Array(s);for(i=0;i<s;++i)a[i]=e(r[i],i,r);var l=t(a),c=l[0],d=l[1],h=n(a,c,d);Array.isArray(h)||(h=D(c,d,h),h=C(Math.ceil(c/h)*h,d,h));for(var f=h.length;h[0]<=c;)h.shift(),--f;for(;h[f-1]>d;)h.pop(),--f;var p,g=new Array(f+1);for(i=0;i<=f;++i)(p=g[i]=[]).x0=i>0?h[i-1]:c,p.x1=i<f?h[i]:d;for(i=0;i<s;++i)c<=(o=a[i])&&o<=d&&g[u(h,o,0,f)].push(r[i]);return g}return r.value=function(t){return arguments.length?(e="function"==typeof t?t:b(t),r):e},r.domain=function(e){return arguments.length?(t="function"==typeof e?e:b([e[0],e[1]]),r):t},r.thresholds=function(e){return arguments.length?(n="function"==typeof e?e:Array.isArray(e)?b(y.call(e)):b(e),r):n},r},N=function(e,t,n){if(null==n&&(n=f),r=e.length){if((t=+t)<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),s=+n(e[o],o,e);return s+(+n(e[o+1],o+1,e)-s)*(i-o)}},O=function(e,t,n){return e=v.call(e,f).sort(r),Math.ceil((n-t)/(2*(N(e,.75)-N(e,.25))*Math.pow(e.length,-1/3)))},A=function(e,t,n){return Math.ceil((n-t)/(3.5*g(e)*Math.pow(e.length,-1/3)))},I=function(e,t){var n,r,i=e.length,o=-1;if(null==t){for(;++o<i;)if(null!=(n=e[o])&&n>=n)for(r=n;++o<i;)null!=(n=e[o])&&n>r&&(r=n)}else for(;++o<i;)if(null!=(n=t(e[o],o,e))&&n>=n)for(r=n;++o<i;)null!=(n=t(e[o],o,e))&&n>r&&(r=n);return r},P=function(e,t){var n,r=e.length,i=r,o=-1,s=0;if(null==t)for(;++o<r;)isNaN(n=f(e[o]))?--i:s+=n;else for(;++o<r;)isNaN(n=f(t(e[o],o,e)))?--i:s+=n;if(i)return s/i},R=function(e,t){var n,i=e.length,o=-1,s=[];if(null==t)for(;++o<i;)isNaN(n=f(e[o]))||s.push(n);else for(;++o<i;)isNaN(n=f(t(e[o],o,e)))||s.push(n);return N(s.sort(r),.5)},F=function(e){for(var t,n,r,i=e.length,o=-1,s=0;++o<i;)s+=e[o].length;for(n=new Array(s);--i>=0;)for(t=(r=e[i]).length;--t>=0;)n[--s]=r[t];return n},Y=function(e,t){var n,r,i=e.length,o=-1;if(null==t){for(;++o<i;)if(null!=(n=e[o])&&n>=n)for(r=n;++o<i;)null!=(n=e[o])&&r>n&&(r=n)}else for(;++o<i;)if(null!=(n=t(e[o],o,e))&&n>=n)for(r=n;++o<i;)null!=(n=t(e[o],o,e))&&r>n&&(r=n);return r},j=function(e,t){for(var n=t.length,r=new Array(n);n--;)r[n]=e[t[n]];return r},B=function(e,t){if(n=e.length){var n,i,o=0,s=0,a=e[s];for(null==t&&(t=r);++o<n;)(t(i=e[o],a)<0||0!==t(a,a))&&(a=i,s=o);return 0===t(a,a)?s:void 0}},W=function(e,t,n){for(var r,i,o=(null==n?e.length:n)-(t=null==t?0:+t);o;)i=Math.random()*o--|0,r=e[o+t],e[o+t]=e[i+t],e[i+t]=r;return e},H=function(e,t){var n,r=e.length,i=-1,o=0;if(null==t)for(;++i<r;)(n=+e[i])&&(o+=n);else for(;++i<r;)(n=+t(e[i],i,e))&&(o+=n);return o},V=function(e){if(!(i=e.length))return[];for(var t=-1,n=Y(e,z),r=new Array(n);++t<n;)for(var i,o=-1,s=r[t]=new Array(i);++o<i;)s[o]=e[o][t];return r};function z(e){return e.length}var U=function(){return V(arguments)},q=Array.prototype.slice,K=function(e){return e},G=1,$=2,Z=3,X=4,J=1e-6;function Q(e){return"translate("+(e+.5)+",0)"}function ee(e){return"translate(0,"+(e+.5)+")"}function te(e){return function(t){return+e(t)}}function ne(e){var t=Math.max(0,e.bandwidth()-1)/2;return e.round()&&(t=Math.round(t)),function(n){return+e(n)+t}}function re(){return!this.__axis}function ie(e,t){var n=[],r=null,i=null,o=6,s=6,a=3,u=e===G||e===X?-1:1,l=e===X||e===$?"x":"y",c=e===G||e===Z?Q:ee;function d(d){var h=null==r?t.ticks?t.ticks.apply(t,n):t.domain():r,f=null==i?t.tickFormat?t.tickFormat.apply(t,n):K:i,p=Math.max(o,0)+a,g=t.range(),m=+g[0]+.5,_=+g[g.length-1]+.5,y=(t.bandwidth?ne:te)(t.copy()),v=d.selection?d.selection():d,b=v.selectAll(".domain").data([null]),w=v.selectAll(".tick").data(h,t).order(),C=w.exit(),S=w.enter().append("g").attr("class","tick"),x=w.select("line"),L=w.select("text");b=b.merge(b.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),w=w.merge(S),x=x.merge(S.append("line").attr("stroke","currentColor").attr(l+"2",u*o)),L=L.merge(S.append("text").attr("fill","currentColor").attr(l,u*p).attr("dy",e===G?"0em":e===Z?"0.71em":"0.32em")),d!==v&&(b=b.transition(d),w=w.transition(d),x=x.transition(d),L=L.transition(d),C=C.transition(d).attr("opacity",J).attr("transform",(function(e){return isFinite(e=y(e))?c(e):this.getAttribute("transform")})),S.attr("opacity",J).attr("transform",(function(e){var t=this.parentNode.__axis;return c(t&&isFinite(t=t(e))?t:y(e))}))),C.remove(),b.attr("d",e===X||e==$?s?"M"+u*s+","+m+"H0.5V"+_+"H"+u*s:"M0.5,"+m+"V"+_:s?"M"+m+","+u*s+"V0.5H"+_+"V"+u*s:"M"+m+",0.5H"+_),w.attr("opacity",1).attr("transform",(function(e){return c(y(e))})),x.attr(l+"2",u*o),L.attr(l,u*p).text(f),v.filter(re).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===$?"start":e===X?"end":"middle"),v.each((function(){this.__axis=y}))}return d.scale=function(e){return arguments.length?(t=e,d):t},d.ticks=function(){return n=q.call(arguments),d},d.tickArguments=function(e){return arguments.length?(n=null==e?[]:q.call(e),d):n.slice()},d.tickValues=function(e){return arguments.length?(r=null==e?null:q.call(e),d):r&&r.slice()},d.tickFormat=function(e){return arguments.length?(i=e,d):i},d.tickSize=function(e){return arguments.length?(o=s=+e,d):o},d.tickSizeInner=function(e){return arguments.length?(o=+e,d):o},d.tickSizeOuter=function(e){return arguments.length?(s=+e,d):s},d.tickPadding=function(e){return arguments.length?(a=+e,d):a},d}function oe(e){return ie(G,e)}function se(e){return ie($,e)}function ae(e){return ie(Z,e)}function ue(e){return ie(X,e)}var le={value:function(){}};function ce(){for(var e,t=0,n=arguments.length,r={};t<n;++t){if(!(e=arguments[t]+"")||e in r||/[\s.]/.test(e))throw new Error("illegal type: "+e);r[e]=[]}return new de(r)}function de(e){this._=e}function he(e,t){return e.trim().split(/^|\s+/).map((function(e){var n="",r=e.indexOf(".");if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:n}}))}function fe(e,t){for(var n,r=0,i=e.length;r<i;++r)if((n=e[r]).name===t)return n.value}function pe(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=le,e=e.slice(0,r).concat(e.slice(r+1));break}return null!=n&&e.push({name:t,value:n}),e}de.prototype=ce.prototype={constructor:de,on:function(e,t){var n,r=this._,i=he(e+"",r),o=-1,s=i.length;if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t);for(;++o<s;)if(n=(e=i[o]).type)r[n]=pe(r[n],e.name,t);else if(null==t)for(n in r)r[n]=pe(r[n],e.name,null);return this}for(;++o<s;)if((n=(e=i[o]).type)&&(n=fe(r[n],e.name)))return n},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new de(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=0,n=(r=this._[e]).length;o<n;++o)r[o].value.apply(t,i)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,o=r.length;i<o;++i)r[i].value.apply(t,n)}};var ge=ce;function me(){}var _e=function(e){return null==e?me:function(){return this.querySelector(e)}};function ye(){return[]}var ve=function(e){return null==e?ye:function(){return this.querySelectorAll(e)}},be=function(e){return function(){return this.matches(e)}},we=function(e){return new Array(e.length)};function Ce(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Ce.prototype={constructor:Ce,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var Se="$";function xe(e,t,n,r,i,o){for(var s,a=0,u=t.length,l=o.length;a<l;++a)(s=t[a])?(s.__data__=o[a],r[a]=s):n[a]=new Ce(e,o[a]);for(;a<u;++a)(s=t[a])&&(i[a]=s)}function Le(e,t,n,r,i,o,s){var a,u,l,c={},d=t.length,h=o.length,f=new Array(d);for(a=0;a<d;++a)(u=t[a])&&(f[a]=l=Se+s.call(u,u.__data__,a,t),l in c?i[a]=u:c[l]=u);for(a=0;a<h;++a)(u=c[l=Se+s.call(e,o[a],a,o)])?(r[a]=u,u.__data__=o[a],c[l]=null):n[a]=new Ce(e,o[a]);for(a=0;a<d;++a)(u=t[a])&&c[f[a]]===u&&(i[a]=u)}function ke(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}var Me="http://www.w3.org/1999/xhtml",De={svg:"http://www.w3.org/2000/svg",xhtml:Me,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Ee=function(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),De.hasOwnProperty(t)?{space:De[t],local:e}:e};function Te(e){return function(){this.removeAttribute(e)}}function Ne(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Oe(e,t){return function(){this.setAttribute(e,t)}}function Ae(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Ie(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function Pe(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}var Re=function(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView};function Fe(e){return function(){this.style.removeProperty(e)}}function Ye(e,t,n){return function(){this.style.setProperty(e,t,n)}}function je(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Be(e,t){return e.style.getPropertyValue(t)||Re(e).getComputedStyle(e,null).getPropertyValue(t)}function We(e){return function(){delete this[e]}}function He(e,t){return function(){this[e]=t}}function Ve(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function ze(e){return e.trim().split(/^|\s+/)}function Ue(e){return e.classList||new qe(e)}function qe(e){this._node=e,this._names=ze(e.getAttribute("class")||"")}function Ke(e,t){for(var n=Ue(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function Ge(e,t){for(var n=Ue(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function $e(e){return function(){Ke(this,e)}}function Ze(e){return function(){Ge(this,e)}}function Xe(e,t){return function(){(t.apply(this,arguments)?Ke:Ge)(this,e)}}qe.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Je(){this.textContent=""}function Qe(e){return function(){this.textContent=e}}function et(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function tt(){this.innerHTML=""}function nt(e){return function(){this.innerHTML=e}}function rt(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function it(){this.nextSibling&&this.parentNode.appendChild(this)}function ot(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function st(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Me&&t.documentElement.namespaceURI===Me?t.createElement(e):t.createElementNS(n,e)}}function at(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}var ut=function(e){var t=Ee(e);return(t.local?at:st)(t)};function lt(){return null}function ct(){var e=this.parentNode;e&&e.removeChild(this)}function dt(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function ht(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}var ft={},pt=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(ft={mouseenter:"mouseover",mouseleave:"mouseout"}));function gt(e,t,n){return e=mt(e,t,n),function(t){var n=t.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||e.call(this,t)}}function mt(e,t,n){return function(r){var i=pt;pt=r;try{e.call(this,this.__data__,t,n)}finally{pt=i}}}function _t(e){return e.trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}function yt(e){return function(){var t=this.__on;if(t){for(var n,r=0,i=-1,o=t.length;r<o;++r)n=t[r],e.type&&n.type!==e.type||n.name!==e.name?t[++i]=n:this.removeEventListener(n.type,n.listener,n.capture);++i?t.length=i:delete this.__on}}}function vt(e,t,n){var r=ft.hasOwnProperty(e.type)?gt:mt;return function(i,o,s){var a,u=this.__on,l=r(t,o,s);if(u)for(var c=0,d=u.length;c<d;++c)if((a=u[c]).type===e.type&&a.name===e.name)return this.removeEventListener(a.type,a.listener,a.capture),this.addEventListener(a.type,a.listener=l,a.capture=n),void(a.value=t);this.addEventListener(e.type,l,n),a={type:e.type,name:e.name,value:t,listener:l,capture:n},u?u.push(a):this.__on=[a]}}function bt(e,t,n,r){var i=pt;e.sourceEvent=pt,pt=e;try{return t.apply(n,r)}finally{pt=i}}function wt(e,t,n){var r=Re(e),i=r.CustomEvent;"function"==typeof i?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Ct(e,t){return function(){return wt(this,e,t)}}function St(e,t){return function(){return wt(this,e,t.apply(this,arguments))}}var xt=[null];function Lt(e,t){this._groups=e,this._parents=t}function kt(){return new Lt([[document.documentElement]],xt)}Lt.prototype=kt.prototype={constructor:Lt,select:function(e){"function"!=typeof e&&(e=_e(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,s,a=t[i],u=a.length,l=r[i]=new Array(u),c=0;c<u;++c)(o=a[c])&&(s=e.call(o,o.__data__,c,a))&&("__data__"in o&&(s.__data__=o.__data__),l[c]=s);return new Lt(r,this._parents)},selectAll:function(e){"function"!=typeof e&&(e=ve(e));for(var t=this._groups,n=t.length,r=[],i=[],o=0;o<n;++o)for(var s,a=t[o],u=a.length,l=0;l<u;++l)(s=a[l])&&(r.push(e.call(s,s.__data__,l,a)),i.push(s));return new Lt(r,i)},filter:function(e){"function"!=typeof e&&(e=be(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,s=t[i],a=s.length,u=r[i]=[],l=0;l<a;++l)(o=s[l])&&e.call(o,o.__data__,l,s)&&u.push(o);return new Lt(r,this._parents)},data:function(e,t){if(!e)return p=new Array(this.size()),c=-1,this.each((function(e){p[++c]=e})),p;var n,r=t?Le:xe,i=this._parents,o=this._groups;"function"!=typeof e&&(n=e,e=function(){return n});for(var s=o.length,a=new Array(s),u=new Array(s),l=new Array(s),c=0;c<s;++c){var d=i[c],h=o[c],f=h.length,p=e.call(d,d&&d.__data__,c,i),g=p.length,m=u[c]=new Array(g),_=a[c]=new Array(g);r(d,h,m,_,l[c]=new Array(f),p,t);for(var y,v,b=0,w=0;b<g;++b)if(y=m[b]){for(b>=w&&(w=b+1);!(v=_[w])&&++w<g;);y._next=v||null}}return(a=new Lt(a,i))._enter=u,a._exit=l,a},enter:function(){return new Lt(this._enter||this._groups.map(we),this._parents)},exit:function(){return new Lt(this._exit||this._groups.map(we),this._parents)},join:function(e,t,n){var r=this.enter(),i=this,o=this.exit();return r="function"==typeof e?e(r):r.append(e+""),null!=t&&(i=t(i)),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},merge:function(e){for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),s=new Array(r),a=0;a<o;++a)for(var u,l=t[a],c=n[a],d=l.length,h=s[a]=new Array(d),f=0;f<d;++f)(u=l[f]||c[f])&&(h[f]=u);for(;a<r;++a)s[a]=t[a];return new Lt(s,this._parents)},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,i=e[t],o=i.length-1,s=i[o];--o>=0;)(r=i[o])&&(s&&4^r.compareDocumentPosition(s)&&s.parentNode.insertBefore(r,s),s=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=ke);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var s,a=n[o],u=a.length,l=i[o]=new Array(u),c=0;c<u;++c)(s=a[c])&&(l[c]=s);l.sort(t)}return new Lt(i,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){var e=new Array(this.size()),t=-1;return this.each((function(){e[++t]=this})),e},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length;i<o;++i){var s=r[i];if(s)return s}return null},size:function(){var e=0;return this.each((function(){++e})),e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i,o=t[n],s=0,a=o.length;s<a;++s)(i=o[s])&&e.call(i,i.__data__,s,o);return this},attr:function(e,t){var n=Ee(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?Ne:Te:"function"==typeof t?n.local?Pe:Ie:n.local?Ae:Oe)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?Fe:"function"==typeof t?je:Ye)(e,t,null==n?"":n)):Be(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?We:"function"==typeof t?Ve:He)(e,t)):this.node()[e]},classed:function(e,t){var n=ze(e+"");if(arguments.length<2){for(var r=Ue(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof t?Xe:t?$e:Ze)(n,t))},text:function(e){return arguments.length?this.each(null==e?Je:("function"==typeof e?et:Qe)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?tt:("function"==typeof e?rt:nt)(e)):this.node().innerHTML},raise:function(){return this.each(it)},lower:function(){return this.each(ot)},append:function(e){var t="function"==typeof e?e:ut(e);return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"==typeof e?e:ut(e),r=null==t?lt:"function"==typeof t?t:_e(t);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(ct)},clone:function(e){return this.select(e?ht:dt)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,i,o=_t(e+""),s=o.length;if(!(arguments.length<2)){for(a=t?vt:yt,null==n&&(n=!1),r=0;r<s;++r)this.each(a(o[r],t,n));return this}var a=this.node().__on;if(a)for(var u,l=0,c=a.length;l<c;++l)for(r=0,u=a[l];r<s;++r)if((i=o[r]).type===u.type&&i.name===u.name)return u.value},dispatch:function(e,t){return this.each(("function"==typeof t?St:Ct)(e,t))}};var Mt=kt,Dt=function(e){return"string"==typeof e?new Lt([[document.querySelector(e)]],[document.documentElement]):new Lt([[e]],xt)};function Et(){pt.stopImmediatePropagation()}var Tt=function(){pt.preventDefault(),pt.stopImmediatePropagation()},Nt=function(e){var t=e.document.documentElement,n=Dt(e).on("dragstart.drag",Tt,!0);"onselectstart"in t?n.on("selectstart.drag",Tt,!0):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")};function Ot(e,t){var n=e.document.documentElement,r=Dt(e).on("dragstart.drag",null);t&&(r.on("click.drag",Tt,!0),setTimeout((function(){r.on("click.drag",null)}),0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}var At=function(e,t,n){e.prototype=t.prototype=n,n.constructor=e};function It(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Pt(){}var Rt="\\s*([+-]?\\d+)\\s*",Ft="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Yt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",jt=/^#([0-9a-f]{3,8})$/,Bt=new RegExp("^rgb\\("+[Rt,Rt,Rt]+"\\)$"),Wt=new RegExp("^rgb\\("+[Yt,Yt,Yt]+"\\)$"),Ht=new RegExp("^rgba\\("+[Rt,Rt,Rt,Ft]+"\\)$"),Vt=new RegExp("^rgba\\("+[Yt,Yt,Yt,Ft]+"\\)$"),zt=new RegExp("^hsl\\("+[Ft,Yt,Yt]+"\\)$"),Ut=new RegExp("^hsla\\("+[Ft,Yt,Yt,Ft]+"\\)$"),qt={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Kt(){return this.rgb().formatHex()}function Gt(){return this.rgb().formatRgb()}function $t(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=jt.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Zt(t):3===n?new en(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?new en(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?new en(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Bt.exec(e))?new en(t[1],t[2],t[3],1):(t=Wt.exec(e))?new en(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Ht.exec(e))?Xt(t[1],t[2],t[3],t[4]):(t=Vt.exec(e))?Xt(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=zt.exec(e))?on(t[1],t[2]/100,t[3]/100,1):(t=Ut.exec(e))?on(t[1],t[2]/100,t[3]/100,t[4]):qt.hasOwnProperty(e)?Zt(qt[e]):"transparent"===e?new en(NaN,NaN,NaN,0):null}function Zt(e){return new en(e>>16&255,e>>8&255,255&e,1)}function Xt(e,t,n,r){return r<=0&&(e=t=n=NaN),new en(e,t,n,r)}function Jt(e){return e instanceof Pt||(e=$t(e)),e?new en((e=e.rgb()).r,e.g,e.b,e.opacity):new en}function Qt(e,t,n,r){return 1===arguments.length?Jt(e):new en(e,t,n,null==r?1:r)}function en(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function tn(){return"#"+rn(this.r)+rn(this.g)+rn(this.b)}function nn(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function rn(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function on(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new un(e,t,n,r)}function sn(e){if(e instanceof un)return new un(e.h,e.s,e.l,e.opacity);if(e instanceof Pt||(e=$t(e)),!e)return new un;if(e instanceof un)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),s=NaN,a=o-i,u=(o+i)/2;return a?(s=t===o?(n-r)/a+6*(n<r):n===o?(r-t)/a+2:(t-n)/a+4,a/=u<.5?o+i:2-o-i,s*=60):a=u>0&&u<1?0:s,new un(s,a,u,e.opacity)}function an(e,t,n,r){return 1===arguments.length?sn(e):new un(e,t,n,null==r?1:r)}function un(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ln(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function cn(e,t,n,r,i){var o=e*e,s=o*e;return((1-3*e+3*o-s)*t+(4-6*o+3*s)*n+(1+3*e+3*o-3*s)*r+s*i)/6}At(Pt,$t,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:Kt,formatHex:Kt,formatHsl:function(){return sn(this).formatHsl()},formatRgb:Gt,toString:Gt}),At(en,Qt,It(Pt,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new en(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new en(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:tn,formatHex:tn,formatRgb:nn,toString:nn})),At(un,an,It(Pt,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new un(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new un(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new en(ln(e>=240?e-240:e+120,i,r),ln(e,i,r),ln(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var dn=function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],s=r>0?e[r-1]:2*i-o,a=r<t-1?e[r+2]:2*o-i;return cn((n-r/t)*t,s,i,o,a)}},hn=function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),i=e[(r+t-1)%t],o=e[r%t],s=e[(r+1)%t],a=e[(r+2)%t];return cn((n-r/t)*t,i,o,s,a)}},fn=function(e){return function(){return e}};function pn(e,t){return function(n){return e+n*t}}function gn(e,t){var n=t-e;return n?pn(e,n>180||n<-180?n-360*Math.round(n/360):n):fn(isNaN(e)?t:e)}function mn(e){return 1==(e=+e)?_n:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):fn(isNaN(t)?n:t)}}function _n(e,t){var n=t-e;return n?pn(e,n):fn(isNaN(e)?t:e)}var yn=function e(t){var n=mn(t);function r(e,t){var r=n((e=Qt(e)).r,(t=Qt(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),s=_n(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=s(t),e+""}}return r.gamma=e,r}(1);function vn(e){return function(t){var n,r,i=t.length,o=new Array(i),s=new Array(i),a=new Array(i);for(n=0;n<i;++n)r=Qt(t[n]),o[n]=r.r||0,s[n]=r.g||0,a[n]=r.b||0;return o=e(o),s=e(s),a=e(a),r.opacity=1,function(e){return r.r=o(e),r.g=s(e),r.b=a(e),r+""}}}var bn=vn(dn),wn=vn(hn),Cn=function(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,i=t.slice();return function(o){for(n=0;n<r;++n)i[n]=e[n]*(1-o)+t[n]*o;return i}};function Sn(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}var xn=function(e,t){return(Sn(t)?Cn:Ln)(e,t)};function Ln(e,t){var n,r=t?t.length:0,i=e?Math.min(r,e.length):0,o=new Array(i),s=new Array(r);for(n=0;n<i;++n)o[n]=In(e[n],t[n]);for(;n<r;++n)s[n]=t[n];return function(e){for(n=0;n<i;++n)s[n]=o[n](e);return s}}var kn=function(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}},Mn=function(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}},Dn=function(e,t){var n,r={},i={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=In(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}},En=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Tn=new RegExp(En.source,"g");var Nn,On,An=function(e,t){var n,r,i,o=En.lastIndex=Tn.lastIndex=0,s=-1,a=[],u=[];for(e+="",t+="";(n=En.exec(e))&&(r=Tn.exec(t));)(i=r.index)>o&&(i=t.slice(o,i),a[s]?a[s]+=i:a[++s]=i),(n=n[0])===(r=r[0])?a[s]?a[s]+=r:a[++s]=r:(a[++s]=null,u.push({i:s,x:Mn(n,r)})),o=Tn.lastIndex;return o<t.length&&(i=t.slice(o),a[s]?a[s]+=i:a[++s]=i),a.length<2?u[0]?function(e){return function(t){return e(t)+""}}(u[0].x):function(e){return function(){return e}}(t):(t=u.length,function(e){for(var n,r=0;r<t;++r)a[(n=u[r]).i]=n.x(e);return a.join("")})},In=function(e,t){var n,r=typeof t;return null==t||"boolean"===r?fn(t):("number"===r?Mn:"string"===r?(n=$t(t))?(t=n,yn):An:t instanceof $t?yn:t instanceof Date?kn:Sn(t)?Cn:Array.isArray(t)?Ln:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?Dn:Mn)(e,t)},Pn=function(){for(var e,t=pt;e=t.sourceEvent;)t=e;return t},Rn=function(e,t){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,[(r=r.matrixTransform(e.getScreenCTM().inverse())).x,r.y]}var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]},Fn=function(e,t,n){arguments.length<3&&(n=t,t=Pn().changedTouches);for(var r,i=0,o=t?t.length:0;i<o;++i)if((r=t[i]).identifier===n)return Rn(e,r);return null},Yn=function(e){var t=Pn();return t.changedTouches&&(t=t.changedTouches[0]),Rn(e,t)},jn=0,Bn=0,Wn=0,Hn=1e3,Vn=0,zn=0,Un=0,qn="object"==typeof performance&&performance.now?performance:Date,Kn="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Gn(){return zn||(Kn($n),zn=qn.now()+Un)}function $n(){zn=0}function Zn(){this._call=this._time=this._next=null}function Xn(e,t,n){var r=new Zn;return r.restart(e,t,n),r}function Jn(){Gn(),++jn;for(var e,t=Nn;t;)(e=zn-t._time)>=0&&t._call.call(null,e),t=t._next;--jn}function Qn(){zn=(Vn=qn.now())+Un,jn=Bn=0;try{Jn()}finally{jn=0,function(){var e,t,n=Nn,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:Nn=t);On=e,tr(r)}(),zn=0}}function er(){var e=qn.now(),t=e-Vn;t>Hn&&(Un-=t,Vn=e)}function tr(e){jn||(Bn&&(Bn=clearTimeout(Bn)),e-zn>24?(e<1/0&&(Bn=setTimeout(Qn,e-qn.now()-Un)),Wn&&(Wn=clearInterval(Wn))):(Wn||(Vn=qn.now(),Wn=setInterval(er,Hn)),jn=1,Kn(Qn)))}Zn.prototype=Xn.prototype={constructor:Zn,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function");n=(null==n?Gn():+n)+(null==t?0:+t),this._next||On===this||(On?On._next=this:Nn=this,On=this),this._call=e,this._time=n,tr()},stop:function(){this._call&&(this._call=null,this._time=1/0,tr())}};var nr=function(e,t,n){var r=new Zn;return t=null==t?0:+t,r.restart((function(n){r.stop(),e(n+t)}),t,n),r},rr=ge("start","end","cancel","interrupt"),ir=[],or=0,sr=1,ar=2,ur=3,lr=4,cr=5,dr=6,hr=function(e,t,n,r,i,o){var s=e.__transition;if(s){if(n in s)return}else e.__transition={};!function(e,t,n){var r,i=e.__transition;function o(u){var l,c,d,h;if(n.state!==sr)return a();for(l in i)if((h=i[l]).name===n.name){if(h.state===ur)return nr(o);h.state===lr?(h.state=dr,h.timer.stop(),h.on.call("interrupt",e,e.__data__,h.index,h.group),delete i[l]):+l<t&&(h.state=dr,h.timer.stop(),h.on.call("cancel",e,e.__data__,h.index,h.group),delete i[l])}if(nr((function(){n.state===ur&&(n.state=lr,n.timer.restart(s,n.delay,n.time),s(u))})),n.state=ar,n.on.call("start",e,e.__data__,n.index,n.group),n.state===ar){for(n.state=ur,r=new Array(d=n.tween.length),l=0,c=-1;l<d;++l)(h=n.tween[l].value.call(e,e.__data__,n.index,n.group))&&(r[++c]=h);r.length=c+1}}function s(t){for(var i=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(a),n.state=cr,1),o=-1,s=r.length;++o<s;)r[o].call(e,i);n.state===cr&&(n.on.call("end",e,e.__data__,n.index,n.group),a())}function a(){for(var r in n.state=dr,n.timer.stop(),delete i[t],i)return;delete e.__transition}i[t]=n,n.timer=Xn((function(e){n.state=sr,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)}),0,n.time)}(e,n,{name:t,index:r,group:i,on:rr,tween:ir,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:or})};function fr(e,t){var n=gr(e,t);if(n.state>or)throw new Error("too late; already scheduled");return n}function pr(e,t){var n=gr(e,t);if(n.state>ur)throw new Error("too late; already running");return n}function gr(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}var mr,_r,yr,vr,br=function(e,t){var n,r,i,o=e.__transition,s=!0;if(o){for(i in t=null==t?null:t+"",o)(n=o[i]).name===t?(r=n.state>ar&&n.state<cr,n.state=dr,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete o[i]):s=!1;s&&delete e.__transition}},wr=180/Math.PI,Cr={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},Sr=function(e,t,n,r,i,o){var s,a,u;return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(u=e*n+t*r)&&(n-=e*u,r-=t*u),(a=Math.sqrt(n*n+r*r))&&(n/=a,r/=a,u/=a),e*r<t*n&&(e=-e,t=-t,u=-u,s=-s),{translateX:i,translateY:o,rotate:Math.atan2(t,e)*wr,skewX:Math.atan(u)*wr,scaleX:s,scaleY:a}};function xr(e,t,n,r){function i(e){return e.length?e.pop()+" ":""}return function(o,s){var a=[],u=[];return o=e(o),s=e(s),function(e,r,i,o,s,a){if(e!==i||r!==o){var u=s.push("translate(",null,t,null,n);a.push({i:u-4,x:Mn(e,i)},{i:u-2,x:Mn(r,o)})}else(i||o)&&s.push("translate("+i+t+o+n)}(o.translateX,o.translateY,s.translateX,s.translateY,a,u),function(e,t,n,o){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:Mn(e,t)})):t&&n.push(i(n)+"rotate("+t+r)}(o.rotate,s.rotate,a,u),function(e,t,n,o){e!==t?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:Mn(e,t)}):t&&n.push(i(n)+"skewX("+t+r)}(o.skewX,s.skewX,a,u),function(e,t,n,r,o,s){if(e!==n||t!==r){var a=o.push(i(o)+"scale(",null,",",null,")");s.push({i:a-4,x:Mn(e,n)},{i:a-2,x:Mn(t,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,s.scaleX,s.scaleY,a,u),o=s=null,function(e){for(var t,n=-1,r=u.length;++n<r;)a[(t=u[n]).i]=t.x(e);return a.join("")}}}var Lr=xr((function(e){return"none"===e?Cr:(mr||(mr=document.createElement("DIV"),_r=document.documentElement,yr=document.defaultView),mr.style.transform=e,e=yr.getComputedStyle(_r.appendChild(mr),null).getPropertyValue("transform"),_r.removeChild(mr),e=e.slice(7,-1).split(","),Sr(+e[0],+e[1],+e[2],+e[3],+e[4],+e[5]))}),"px, ","px)","deg)"),kr=xr((function(e){return null==e?Cr:(vr||(vr=document.createElementNS("http://www.w3.org/2000/svg","g")),vr.setAttribute("transform",e),(e=vr.transform.baseVal.consolidate())?(e=e.matrix,Sr(e.a,e.b,e.c,e.d,e.e,e.f)):Cr)}),", ",")",")");function Mr(e,t){var n,r;return function(){var i=pr(this,e),o=i.tween;if(o!==n)for(var s=0,a=(r=n=o).length;s<a;++s)if(r[s].name===t){(r=r.slice()).splice(s,1);break}i.tween=r}}function Dr(e,t,n){var r,i;if("function"!=typeof n)throw new Error;return function(){var o=pr(this,e),s=o.tween;if(s!==r){i=(r=s).slice();for(var a={name:t,value:n},u=0,l=i.length;u<l;++u)if(i[u].name===t){i[u]=a;break}u===l&&i.push(a)}o.tween=i}}function Er(e,t,n){var r=e._id;return e.each((function(){var e=pr(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)})),function(e){return gr(e,r).value[t]}}var Tr=function(e,t){var n;return("number"==typeof t?Mn:t instanceof $t?yn:(n=$t(t))?(t=n,yn):An)(e,t)};function Nr(e){return function(){this.removeAttribute(e)}}function Or(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Ar(e,t,n){var r,i,o=n+"";return function(){var s=this.getAttribute(e);return s===o?null:s===r?i:i=t(r=s,n)}}function Ir(e,t,n){var r,i,o=n+"";return function(){var s=this.getAttributeNS(e.space,e.local);return s===o?null:s===r?i:i=t(r=s,n)}}function Pr(e,t,n){var r,i,o;return function(){var s,a,u=n(this);if(null!=u)return(s=this.getAttribute(e))===(a=u+"")?null:s===r&&a===i?o:(i=a,o=t(r=s,u));this.removeAttribute(e)}}function Rr(e,t,n){var r,i,o;return function(){var s,a,u=n(this);if(null!=u)return(s=this.getAttributeNS(e.space,e.local))===(a=u+"")?null:s===r&&a===i?o:(i=a,o=t(r=s,u));this.removeAttributeNS(e.space,e.local)}}function Fr(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&function(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}(e,i)),n}return i._value=t,i}function Yr(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&function(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}(e,i)),n}return i._value=t,i}function jr(e,t){return function(){fr(this,e).delay=+t.apply(this,arguments)}}function Br(e,t){return t=+t,function(){fr(this,e).delay=t}}function Wr(e,t){return function(){pr(this,e).duration=+t.apply(this,arguments)}}function Hr(e,t){return t=+t,function(){pr(this,e).duration=t}}function Vr(e,t){if("function"!=typeof t)throw new Error;return function(){pr(this,e).ease=t}}function zr(e,t,n){var r,i,o=function(e){return(e+"").trim().split(/^|\s+/).every((function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?fr:pr;return function(){var s=o(this,e),a=s.on;a!==r&&(i=(r=a).copy()).on(t,n),s.on=i}}var Ur=Mt.prototype.constructor;function qr(e){return function(){this.style.removeProperty(e)}}function Kr(e,t,n){var r,i;function o(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&function(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}(e,o,n)),r}return o._value=t,o}function Gr(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&function(e){return function(t){this.textContent=e.call(this,t)}}(r)),t}return r._value=e,r}var $r=0;function Zr(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Xr(e){return Mt().transition(e)}function Jr(){return++$r}var Qr=Mt.prototype;function ei(e){return e*e*e}function ti(e){return--e*e*e+1}function ni(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}Zr.prototype=Xr.prototype={constructor:Zr,select:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=_e(e));for(var r=this._groups,i=r.length,o=new Array(i),s=0;s<i;++s)for(var a,u,l=r[s],c=l.length,d=o[s]=new Array(c),h=0;h<c;++h)(a=l[h])&&(u=e.call(a,a.__data__,h,l))&&("__data__"in a&&(u.__data__=a.__data__),d[h]=u,hr(d[h],t,n,h,d,gr(a,n)));return new Zr(o,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=ve(e));for(var r=this._groups,i=r.length,o=[],s=[],a=0;a<i;++a)for(var u,l=r[a],c=l.length,d=0;d<c;++d)if(u=l[d]){for(var h,f=e.call(u,u.__data__,d,l),p=gr(u,n),g=0,m=f.length;g<m;++g)(h=f[g])&&hr(h,t,n,g,f,p);o.push(f),s.push(u)}return new Zr(o,s,t,n)},filter:function(e){"function"!=typeof e&&(e=be(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,s=t[i],a=s.length,u=r[i]=[],l=0;l<a;++l)(o=s[l])&&e.call(o,o.__data__,l,s)&&u.push(o);return new Zr(r,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),s=new Array(r),a=0;a<o;++a)for(var u,l=t[a],c=n[a],d=l.length,h=s[a]=new Array(d),f=0;f<d;++f)(u=l[f]||c[f])&&(h[f]=u);for(;a<r;++a)s[a]=t[a];return new Zr(s,this._parents,this._name,this._id)},selection:function(){return new Ur(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=Jr(),r=this._groups,i=r.length,o=0;o<i;++o)for(var s,a=r[o],u=a.length,l=0;l<u;++l)if(s=a[l]){var c=gr(s,t);hr(s,e,n,l,a,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new Zr(r,this._parents,e,n)},call:Qr.call,nodes:Qr.nodes,node:Qr.node,size:Qr.size,empty:Qr.empty,each:Qr.each,on:function(e,t){var n=this._id;return arguments.length<2?gr(this.node(),n).on.on(e):this.each(zr(n,e,t))},attr:function(e,t){var n=Ee(e),r="transform"===n?kr:Tr;return this.attrTween(e,"function"==typeof t?(n.local?Rr:Pr)(n,r,Er(this,"attr."+e,t)):null==t?(n.local?Or:Nr)(n):(n.local?Ir:Ar)(n,r,t))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;var r=Ee(e);return this.tween(n,(r.local?Fr:Yr)(r,t))},style:function(e,t,n){var r="transform"==(e+="")?Lr:Tr;return null==t?this.styleTween(e,function(e,t){var n,r,i;return function(){var o=Be(this,e),s=(this.style.removeProperty(e),Be(this,e));return o===s?null:o===n&&s===r?i:i=t(n=o,r=s)}}(e,r)).on("end.style."+e,qr(e)):"function"==typeof t?this.styleTween(e,function(e,t,n){var r,i,o;return function(){var s=Be(this,e),a=n(this),u=a+"";return null==a&&(this.style.removeProperty(e),u=a=Be(this,e)),s===u?null:s===r&&u===i?o:(i=u,o=t(r=s,a))}}(e,r,Er(this,"style."+e,t))).each(function(e,t){var n,r,i,o,s="style."+t,a="end."+s;return function(){var u=pr(this,e),l=u.on,c=null==u.value[s]?o||(o=qr(t)):void 0;l===n&&i===c||(r=(n=l).copy()).on(a,i=c),u.on=r}}(this._id,e)):this.styleTween(e,function(e,t,n){var r,i,o=n+"";return function(){var s=Be(this,e);return s===o?null:s===r?i:i=t(r=s,n)}}(e,r,t),n).on("end.style."+e,null)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw new Error;return this.tween(r,Kr(e,t,null==n?"":n))},text:function(e){return this.tween("text","function"==typeof e?function(e){return function(){var t=e(this);this.textContent=null==t?"":t}}(Er(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!=typeof e)throw new Error;return this.tween(t,Gr(e))},remove:function(){return this.on("end.remove",(e=this._id,function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}));var e},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,i=gr(this.node(),n).tween,o=0,s=i.length;o<s;++o)if((r=i[o]).name===e)return r.value;return null}return this.each((null==t?Mr:Dr)(n,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?jr:Br)(t,e)):gr(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?Wr:Hr)(t,e)):gr(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(Vr(t,e)):gr(this.node(),t).ease},end:function(){var e,t,n=this,r=n._id,i=n.size();return new Promise((function(o,s){var a={value:s},u={value:function(){0==--i&&o()}};n.each((function(){var n=pr(this,r),i=n.on;i!==e&&((t=(e=i).copy())._.cancel.push(a),t._.interrupt.push(a),t._.end.push(u)),n.on=t}))}))}};var ri={time:null,delay:0,duration:250,ease:ni};function ii(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))return ri.time=Gn(),ri;return n}Mt.prototype.interrupt=function(e){return this.each((function(){br(this,e)}))},Mt.prototype.transition=function(e){var t,n;e instanceof Zr?(t=e._id,e=e._name):(t=Jr(),(n=ri).time=Gn(),e=null==e?null:e+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var s,a=r[o],u=a.length,l=0;l<u;++l)(s=a[l])&&hr(s,e,t,l,a,n||ii(s,t));return new Zr(r,this._parents,e,t)};var oi=[null],si=function(e,t){var n,r,i=e.__transition;if(i)for(r in t=null==t?null:t+"",i)if((n=i[r]).state>sr&&n.name===t)return new Zr([[e]],oi,t,+r);return null},ai=function(e){return function(){return e}},ui=function(e,t,n){this.target=e,this.type=t,this.selection=n};function li(){pt.stopImmediatePropagation()}var ci=function(){pt.preventDefault(),pt.stopImmediatePropagation()},di={name:"drag"},hi={name:"space"},fi={name:"handle"},pi={name:"center"};function gi(e){return[+e[0],+e[1]]}function mi(e){return[gi(e[0]),gi(e[1])]}var _i={name:"x",handles:["w","e"].map(Li),input:function(e,t){return null==e?null:[[+e[0],t[0][1]],[+e[1],t[1][1]]]},output:function(e){return e&&[e[0][0],e[1][0]]}},yi={name:"y",handles:["n","s"].map(Li),input:function(e,t){return null==e?null:[[t[0][0],+e[0]],[t[1][0],+e[1]]]},output:function(e){return e&&[e[0][1],e[1][1]]}},vi={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(Li),input:function(e){return null==e?null:mi(e)},output:function(e){return e}},bi={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},wi={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Ci={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},Si={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},xi={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Li(e){return{type:e}}function ki(){return!pt.ctrlKey&&!pt.button}function Mi(){var e=this.ownerSVGElement||this;return e.hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]}function Di(){return navigator.maxTouchPoints||"ontouchstart"in this}function Ei(e){for(;!e.__brush;)if(!(e=e.parentNode))return;return e.__brush}function Ti(e){var t=e.__brush;return t?t.dim.output(t.selection):null}function Ni(){return Ii(_i)}function Oi(){return Ii(yi)}var Ai=function(){return Ii(vi)};function Ii(e){var t,n=Mi,r=ki,i=Di,o=!0,s=ge("start","brush","end"),a=6;function u(t){var n=t.property("__brush",g).selectAll(".overlay").data([Li("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",bi.overlay).merge(n).each((function(){var e=Ei(this).extent;Dt(this).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1])})),t.selectAll(".selection").data([Li("selection")]).enter().append("rect").attr("class","selection").attr("cursor",bi.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=t.selectAll(".handle").data(e.handles,(function(e){return e.type}));r.exit().remove(),r.enter().append("rect").attr("class",(function(e){return"handle handle--"+e.type})).attr("cursor",(function(e){return bi[e.type]})),t.each(l).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",h).filter(i).on("touchstart.brush",h).on("touchmove.brush",f).on("touchend.brush touchcancel.brush",p).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function l(){var e=Dt(this),t=Ei(this).selection;t?(e.selectAll(".selection").style("display",null).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1]),e.selectAll(".handle").style("display",null).attr("x",(function(e){return"e"===e.type[e.type.length-1]?t[1][0]-a/2:t[0][0]-a/2})).attr("y",(function(e){return"s"===e.type[0]?t[1][1]-a/2:t[0][1]-a/2})).attr("width",(function(e){return"n"===e.type||"s"===e.type?t[1][0]-t[0][0]+a:a})).attr("height",(function(e){return"e"===e.type||"w"===e.type?t[1][1]-t[0][1]+a:a}))):e.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function c(e,t,n){return!n&&e.__brush.emitter||new d(e,t)}function d(e,t){this.that=e,this.args=t,this.state=e.__brush,this.active=0}function h(){if((!t||pt.touches)&&r.apply(this,arguments)){var n,i,s,a,u,d,h,f,p,g,m,_,y=this,v=pt.target.__data__.type,b="selection"===(o&&pt.metaKey?v="overlay":v)?di:o&&pt.altKey?pi:fi,w=e===yi?null:Si[v],C=e===_i?null:xi[v],S=Ei(y),x=S.extent,L=S.selection,k=x[0][0],M=x[0][1],D=x[1][0],E=x[1][1],T=0,N=0,O=w&&C&&o&&pt.shiftKey,A=pt.touches?(_=pt.changedTouches[0].identifier,function(e){return Fn(e,pt.touches,_)}):Yn,I=A(y),P=I,R=c(y,arguments,!0).beforestart();"overlay"===v?(L&&(p=!0),S.selection=L=[[n=e===yi?k:I[0],s=e===_i?M:I[1]],[u=e===yi?D:n,h=e===_i?E:s]]):(n=L[0][0],s=L[0][1],u=L[1][0],h=L[1][1]),i=n,a=s,d=u,f=h;var F=Dt(y).attr("pointer-events","none"),Y=F.selectAll(".overlay").attr("cursor",bi[v]);if(pt.touches)R.moved=B,R.ended=H;else{var j=Dt(pt.view).on("mousemove.brush",B,!0).on("mouseup.brush",H,!0);o&&j.on("keydown.brush",(function(){switch(pt.keyCode){case 16:O=w&&C;break;case 18:b===fi&&(w&&(u=d-T*w,n=i+T*w),C&&(h=f-N*C,s=a+N*C),b=pi,W());break;case 32:b!==fi&&b!==pi||(w<0?u=d-T:w>0&&(n=i-T),C<0?h=f-N:C>0&&(s=a-N),b=hi,Y.attr("cursor",bi.selection),W());break;default:return}ci()}),!0).on("keyup.brush",(function(){switch(pt.keyCode){case 16:O&&(g=m=O=!1,W());break;case 18:b===pi&&(w<0?u=d:w>0&&(n=i),C<0?h=f:C>0&&(s=a),b=fi,W());break;case 32:b===hi&&(pt.altKey?(w&&(u=d-T*w,n=i+T*w),C&&(h=f-N*C,s=a+N*C),b=pi):(w<0?u=d:w>0&&(n=i),C<0?h=f:C>0&&(s=a),b=fi),Y.attr("cursor",bi[v]),W());break;default:return}ci()}),!0),Nt(pt.view)}li(),br(y),l.call(y),R.start()}function B(){var e=A(y);!O||g||m||(Math.abs(e[0]-P[0])>Math.abs(e[1]-P[1])?m=!0:g=!0),P=e,p=!0,ci(),W()}function W(){var e;switch(T=P[0]-I[0],N=P[1]-I[1],b){case hi:case di:w&&(T=Math.max(k-n,Math.min(D-u,T)),i=n+T,d=u+T),C&&(N=Math.max(M-s,Math.min(E-h,N)),a=s+N,f=h+N);break;case fi:w<0?(T=Math.max(k-n,Math.min(D-n,T)),i=n+T,d=u):w>0&&(T=Math.max(k-u,Math.min(D-u,T)),i=n,d=u+T),C<0?(N=Math.max(M-s,Math.min(E-s,N)),a=s+N,f=h):C>0&&(N=Math.max(M-h,Math.min(E-h,N)),a=s,f=h+N);break;case pi:w&&(i=Math.max(k,Math.min(D,n-T*w)),d=Math.max(k,Math.min(D,u+T*w))),C&&(a=Math.max(M,Math.min(E,s-N*C)),f=Math.max(M,Math.min(E,h+N*C)))}d<i&&(w*=-1,e=n,n=u,u=e,e=i,i=d,d=e,v in wi&&Y.attr("cursor",bi[v=wi[v]])),f<a&&(C*=-1,e=s,s=h,h=e,e=a,a=f,f=e,v in Ci&&Y.attr("cursor",bi[v=Ci[v]])),S.selection&&(L=S.selection),g&&(i=L[0][0],d=L[1][0]),m&&(a=L[0][1],f=L[1][1]),L[0][0]===i&&L[0][1]===a&&L[1][0]===d&&L[1][1]===f||(S.selection=[[i,a],[d,f]],l.call(y),R.brush())}function H(){if(li(),pt.touches){if(pt.touches.length)return;t&&clearTimeout(t),t=setTimeout((function(){t=null}),500)}else Ot(pt.view,p),j.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);F.attr("pointer-events","all"),Y.attr("cursor",bi.overlay),S.selection&&(L=S.selection),function(e){return e[0][0]===e[1][0]||e[0][1]===e[1][1]}(L)&&(S.selection=null,l.call(y)),R.end()}}function f(){c(this,arguments).moved()}function p(){c(this,arguments).ended()}function g(){var t=this.__brush||{selection:null};return t.extent=mi(n.apply(this,arguments)),t.dim=e,t}return u.move=function(t,n){t.selection?t.on("start.brush",(function(){c(this,arguments).beforestart().start()})).on("interrupt.brush end.brush",(function(){c(this,arguments).end()})).tween("brush",(function(){var t=this,r=t.__brush,i=c(t,arguments),o=r.selection,s=e.input("function"==typeof n?n.apply(this,arguments):n,r.extent),a=In(o,s);function u(e){r.selection=1===e&&null===s?null:a(e),l.call(t),i.brush()}return null!==o&&null!==s?u:u(1)})):t.each((function(){var t=this,r=arguments,i=t.__brush,o=e.input("function"==typeof n?n.apply(t,r):n,i.extent),s=c(t,r).beforestart();br(t),i.selection=null===o?null:o,l.call(t),s.start().brush().end()}))},u.clear=function(e){u.move(e,null)},d.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting?(this.starting=!1,this.emit("start")):this.emit("brush"),this},brush:function(){return this.emit("brush"),this},end:function(){return 0==--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(t){bt(new ui(u,t,e.output(this.state.selection)),s.apply,s,[t,this.that,this.args])}},u.extent=function(e){return arguments.length?(n="function"==typeof e?e:ai(mi(e)),u):n},u.filter=function(e){return arguments.length?(r="function"==typeof e?e:ai(!!e),u):r},u.touchable=function(e){return arguments.length?(i="function"==typeof e?e:ai(!!e),u):i},u.handleSize=function(e){return arguments.length?(a=+e,u):a},u.keyModifiers=function(e){return arguments.length?(o=!!e,u):o},u.on=function(){var e=s.on.apply(s,arguments);return e===s?u:e},u}var Pi=Math.cos,Ri=Math.sin,Fi=Math.PI,Yi=Fi/2,ji=2*Fi,Bi=Math.max;function Wi(e){return function(t,n){return e(t.source.value+t.target.value,n.source.value+n.target.value)}}var Hi=function(){var e=0,t=null,n=null,r=null;function i(i){var o,s,a,u,l,c,d=i.length,h=[],f=C(d),p=[],g=[],m=g.groups=new Array(d),_=new Array(d*d);for(o=0,l=-1;++l<d;){for(s=0,c=-1;++c<d;)s+=i[l][c];h.push(s),p.push(C(d)),o+=s}for(t&&f.sort((function(e,n){return t(h[e],h[n])})),n&&p.forEach((function(e,t){e.sort((function(e,r){return n(i[t][e],i[t][r])}))})),u=(o=Bi(0,ji-e*d)/o)?e:ji/d,s=0,l=-1;++l<d;){for(a=s,c=-1;++c<d;){var y=f[l],v=p[y][c],b=i[y][v],w=s,S=s+=b*o;_[v*d+y]={index:y,subindex:v,startAngle:w,endAngle:S,value:b}}m[y]={index:y,startAngle:a,endAngle:s,value:h[y]},s+=u}for(l=-1;++l<d;)for(c=l-1;++c<d;){var x=_[c*d+l],L=_[l*d+c];(x.value||L.value)&&g.push(x.value<L.value?{source:L,target:x}:{source:x,target:L})}return r?g.sort(r):g}return i.padAngle=function(t){return arguments.length?(e=Bi(0,t),i):e},i.sortGroups=function(e){return arguments.length?(t=e,i):t},i.sortSubgroups=function(e){return arguments.length?(n=e,i):n},i.sortChords=function(e){return arguments.length?(null==e?r=null:(r=Wi(e))._=e,i):r&&r._},i},Vi=Array.prototype.slice,zi=function(e){return function(){return e}},Ui=Math.PI,qi=2*Ui,Ki=qi-1e-6;function Gi(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function $i(){return new Gi}Gi.prototype=$i.prototype={constructor:Gi,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,i,o){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(e,t,n,r,i){e=+e,t=+t,n=+n,r=+r,i=+i;var o=this._x1,s=this._y1,a=n-e,u=r-t,l=o-e,c=s-t,d=l*l+c*c;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(d>1e-6)if(Math.abs(c*a-u*l)>1e-6&&i){var h=n-o,f=r-s,p=a*a+u*u,g=h*h+f*f,m=Math.sqrt(p),_=Math.sqrt(d),y=i*Math.tan((Ui-Math.acos((p+d-g)/(2*m*_)))/2),v=y/_,b=y/m;Math.abs(v-1)>1e-6&&(this._+="L"+(e+v*l)+","+(t+v*c)),this._+="A"+i+","+i+",0,0,"+ +(c*h>l*f)+","+(this._x1=e+b*a)+","+(this._y1=t+b*u)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,n,r,i,o){e=+e,t=+t,o=!!o;var s=(n=+n)*Math.cos(r),a=n*Math.sin(r),u=e+s,l=t+a,c=1^o,d=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+u+","+l:(Math.abs(this._x1-u)>1e-6||Math.abs(this._y1-l)>1e-6)&&(this._+="L"+u+","+l),n&&(d<0&&(d=d%qi+qi),d>Ki?this._+="A"+n+","+n+",0,1,"+c+","+(e-s)+","+(t-a)+"A"+n+","+n+",0,1,"+c+","+(this._x1=u)+","+(this._y1=l):d>1e-6&&(this._+="A"+n+","+n+",0,"+ +(d>=Ui)+","+c+","+(this._x1=e+n*Math.cos(i))+","+(this._y1=t+n*Math.sin(i))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var Zi=$i;function Xi(e){return e.source}function Ji(e){return e.target}function Qi(e){return e.radius}function eo(e){return e.startAngle}function to(e){return e.endAngle}var no=function(){var e=Xi,t=Ji,n=Qi,r=eo,i=to,o=null;function s(){var s,a=Vi.call(arguments),u=e.apply(this,a),l=t.apply(this,a),c=+n.apply(this,(a[0]=u,a)),d=r.apply(this,a)-Yi,h=i.apply(this,a)-Yi,f=c*Pi(d),p=c*Ri(d),g=+n.apply(this,(a[0]=l,a)),m=r.apply(this,a)-Yi,_=i.apply(this,a)-Yi;if(o||(o=s=Zi()),o.moveTo(f,p),o.arc(0,0,c,d,h),d===m&&h===_||(o.quadraticCurveTo(0,0,g*Pi(m),g*Ri(m)),o.arc(0,0,g,m,_)),o.quadraticCurveTo(0,0,f,p),o.closePath(),s)return o=null,s+""||null}return s.radius=function(e){return arguments.length?(n="function"==typeof e?e:zi(+e),s):n},s.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:zi(+e),s):r},s.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:zi(+e),s):i},s.source=function(t){return arguments.length?(e=t,s):e},s.target=function(e){return arguments.length?(t=e,s):t},s.context=function(e){return arguments.length?(o=null==e?null:e,s):o},s};function ro(){}function io(e,t){var n=new ro;if(e instanceof ro)e.each((function(e,t){n.set(t,e)}));else if(Array.isArray(e)){var r,i=-1,o=e.length;if(null==t)for(;++i<o;)n.set(i,e[i]);else for(;++i<o;)n.set(t(r=e[i],i,e),r)}else if(e)for(var s in e)n.set(s,e[s]);return n}ro.prototype=io.prototype={constructor:ro,has:function(e){return"$"+e in this},get:function(e){return this["$"+e]},set:function(e,t){return this["$"+e]=t,this},remove:function(e){var t="$"+e;return t in this&&delete this[t]},clear:function(){for(var e in this)"$"===e[0]&&delete this[e]},keys:function(){var e=[];for(var t in this)"$"===t[0]&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)"$"===t[0]&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)"$"===t[0]&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)"$"===t[0]&&++e;return e},empty:function(){for(var e in this)if("$"===e[0])return!1;return!0},each:function(e){for(var t in this)"$"===t[0]&&e(this[t],t.slice(1),this)}};var oo=io,so=function(){var e,t,n,r=[],i=[];function o(n,i,s,a){if(i>=r.length)return null!=e&&n.sort(e),null!=t?t(n):n;for(var u,l,c,d=-1,h=n.length,f=r[i++],p=oo(),g=s();++d<h;)(c=p.get(u=f(l=n[d])+""))?c.push(l):p.set(u,[l]);return p.each((function(e,t){a(g,t,o(e,i,s,a))})),g}return n={object:function(e){return o(e,0,ao,uo)},map:function(e){return o(e,0,lo,co)},entries:function(e){return function e(n,o){if(++o>r.length)return n;var s,a=i[o-1];return null!=t&&o>=r.length?s=n.entries():(s=[],n.each((function(t,n){s.push({key:n,values:e(t,o)})}))),null!=a?s.sort((function(e,t){return a(e.key,t.key)})):s}(o(e,0,lo,co),0)},key:function(e){return r.push(e),n},sortKeys:function(e){return i[r.length-1]=e,n},sortValues:function(t){return e=t,n},rollup:function(e){return t=e,n}}};function ao(){return{}}function uo(e,t,n){e[t]=n}function lo(){return oo()}function co(e,t,n){e.set(t,n)}function ho(){}var fo=oo.prototype;function po(e,t){var n=new ho;if(e instanceof ho)e.each((function(e){n.add(e)}));else if(e){var r=-1,i=e.length;if(null==t)for(;++r<i;)n.add(e[r]);else for(;++r<i;)n.add(t(e[r],r,e))}return n}ho.prototype=po.prototype={constructor:ho,has:fo.has,add:function(e){return this["$"+(e+="")]=e,this},remove:fo.remove,clear:fo.clear,values:fo.keys,size:fo.size,empty:fo.empty,each:fo.each};var go=po,mo=function(e){var t=[];for(var n in e)t.push(n);return t},_o=function(e){var t=[];for(var n in e)t.push(e[n]);return t},yo=function(e){var t=[];for(var n in e)t.push({key:n,value:e[n]});return t},vo=Math.PI/180,bo=180/Math.PI,wo=.96422,Co=1,So=.82521,xo=4/29,Lo=6/29,ko=3*Lo*Lo,Mo=Lo*Lo*Lo;function Do(e){if(e instanceof No)return new No(e.l,e.a,e.b,e.opacity);if(e instanceof jo)return Bo(e);e instanceof en||(e=Jt(e));var t,n,r=Po(e.r),i=Po(e.g),o=Po(e.b),s=Oo((.2225045*r+.7168786*i+.0606169*o)/Co);return r===i&&i===o?t=n=s:(t=Oo((.4360747*r+.3850649*i+.1430804*o)/wo),n=Oo((.0139322*r+.0971045*i+.7141733*o)/So)),new No(116*s-16,500*(t-s),200*(s-n),e.opacity)}function Eo(e,t){return new No(e,0,0,null==t?1:t)}function To(e,t,n,r){return 1===arguments.length?Do(e):new No(e,t,n,null==r?1:r)}function No(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Oo(e){return e>Mo?Math.pow(e,1/3):e/ko+xo}function Ao(e){return e>Lo?e*e*e:ko*(e-xo)}function Io(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Po(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Ro(e){if(e instanceof jo)return new jo(e.h,e.c,e.l,e.opacity);if(e instanceof No||(e=Do(e)),0===e.a&&0===e.b)return new jo(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*bo;return new jo(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function Fo(e,t,n,r){return 1===arguments.length?Ro(e):new jo(n,t,e,null==r?1:r)}function Yo(e,t,n,r){return 1===arguments.length?Ro(e):new jo(e,t,n,null==r?1:r)}function jo(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Bo(e){if(isNaN(e.h))return new No(e.l,0,0,e.opacity);var t=e.h*vo;return new No(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}At(No,To,It(Pt,{brighter:function(e){return new No(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new No(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new en(Io(3.1338561*(t=wo*Ao(t))-1.6168667*(e=Co*Ao(e))-.4906146*(n=So*Ao(n))),Io(-.9787684*t+1.9161415*e+.033454*n),Io(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),At(jo,Yo,It(Pt,{brighter:function(e){return new jo(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new jo(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return Bo(this).rgb()}}));var Wo=-.29227,Ho=-.90649,Vo=1.97294,zo=Vo*Ho,Uo=1.78277*Vo,qo=1.78277*Wo- -.14861*Ho;function Ko(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Go)return new Go(e.h,e.s,e.l,e.opacity);e instanceof en||(e=Jt(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(qo*r+zo*t-Uo*n)/(qo+zo-Uo),o=r-i,s=(Vo*(n-i)-Wo*o)/Ho,a=Math.sqrt(s*s+o*o)/(Vo*i*(1-i)),u=a?Math.atan2(s,o)*bo-120:NaN;return new Go(u<0?u+360:u,a,i,e.opacity)}(e):new Go(e,t,n,null==r?1:r)}function Go(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}At(Go,Ko,It(Pt,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new Go(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Go(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*vo,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new en(255*(t+n*(-.14861*r+1.78277*i)),255*(t+n*(Wo*r+Ho*i)),255*(t+n*(Vo*r)),this.opacity)}}));var $o=Array.prototype.slice,Zo=function(e,t){return e-t},Xo=function(e){for(var t=0,n=e.length,r=e[n-1][1]*e[0][0]-e[n-1][0]*e[0][1];++t<n;)r+=e[t-1][1]*e[t][0]-e[t-1][0]*e[t][1];return r},Jo=function(e){return function(){return e}},Qo=function(e,t){for(var n,r=-1,i=t.length;++r<i;)if(n=es(e,t[r]))return n;return 0};function es(e,t){for(var n=t[0],r=t[1],i=-1,o=0,s=e.length,a=s-1;o<s;a=o++){var u=e[o],l=u[0],c=u[1],d=e[a],h=d[0],f=d[1];if(ts(u,d,t))return 0;c>r!=f>r&&n<(h-l)*(r-c)/(f-c)+l&&(i=-i)}return i}function ts(e,t,n){var r,i,o,s;return function(e,t,n){return(t[0]-e[0])*(n[1]-e[1])==(n[0]-e[0])*(t[1]-e[1])}(e,t,n)&&(i=e[r=+(e[0]===t[0])],o=n[r],s=t[r],i<=o&&o<=s||s<=o&&o<=i)}var ns=function(){},rs=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]],is=function(){var e=1,t=1,n=E,r=a;function i(e){var t=n(e);if(Array.isArray(t))t=t.slice().sort(Zo);else{var r=m(e),i=r[0],s=r[1];t=D(i,s,t),t=C(Math.floor(i/t)*t,Math.floor(s/t)*t,t)}return t.map((function(t){return o(e,t)}))}function o(n,i){var o=[],a=[];return function(n,r,i){var o,a,u,l,c,d,h=new Array,f=new Array;o=a=-1,l=n[0]>=r,rs[l<<1].forEach(p);for(;++o<e-1;)u=l,l=n[o+1]>=r,rs[u|l<<1].forEach(p);rs[l<<0].forEach(p);for(;++a<t-1;){for(o=-1,l=n[a*e+e]>=r,c=n[a*e]>=r,rs[l<<1|c<<2].forEach(p);++o<e-1;)u=l,l=n[a*e+e+o+1]>=r,d=c,c=n[a*e+o+1]>=r,rs[u|l<<1|c<<2|d<<3].forEach(p);rs[l|c<<3].forEach(p)}o=-1,c=n[a*e]>=r,rs[c<<2].forEach(p);for(;++o<e-1;)d=c,c=n[a*e+o+1]>=r,rs[c<<2|d<<3].forEach(p);function p(e){var t,n,r=[e[0][0]+o,e[0][1]+a],u=[e[1][0]+o,e[1][1]+a],l=s(r),c=s(u);(t=f[l])?(n=h[c])?(delete f[t.end],delete h[n.start],t===n?(t.ring.push(u),i(t.ring)):h[t.start]=f[n.end]={start:t.start,end:n.end,ring:t.ring.concat(n.ring)}):(delete f[t.end],t.ring.push(u),f[t.end=c]=t):(t=h[c])?(n=f[l])?(delete h[t.start],delete f[n.end],t===n?(t.ring.push(u),i(t.ring)):h[n.start]=f[t.end]={start:n.start,end:t.end,ring:n.ring.concat(t.ring)}):(delete h[t.start],t.ring.unshift(r),h[t.start=l]=t):h[l]=f[c]={start:l,end:c,ring:[r,u]}}rs[c<<3].forEach(p)}(n,i,(function(e){r(e,n,i),Xo(e)>0?o.push([e]):a.push(e)})),a.forEach((function(e){for(var t,n=0,r=o.length;n<r;++n)if(-1!==Qo((t=o[n])[0],e))return void t.push(e)})),{type:"MultiPolygon",value:i,coordinates:o}}function s(t){return 2*t[0]+t[1]*(e+1)*4}function a(n,r,i){n.forEach((function(n){var o,s=n[0],a=n[1],u=0|s,l=0|a,c=r[l*e+u];s>0&&s<e&&u===s&&(o=r[l*e+u-1],n[0]=s+(i-o)/(c-o)-.5),a>0&&a<t&&l===a&&(o=r[(l-1)*e+u],n[1]=a+(i-o)/(c-o)-.5)}))}return i.contour=o,i.size=function(n){if(!arguments.length)return[e,t];var r=Math.ceil(n[0]),o=Math.ceil(n[1]);if(!(r>0&&o>0))throw new Error("invalid size");return e=r,t=o,i},i.thresholds=function(e){return arguments.length?(n="function"==typeof e?e:Array.isArray(e)?Jo($o.call(e)):Jo(e),i):n},i.smooth=function(e){return arguments.length?(r=e?a:ns,i):r===a},i};function os(e,t,n){for(var r=e.width,i=e.height,o=1+(n<<1),s=0;s<i;++s)for(var a=0,u=0;a<r+n;++a)a<r&&(u+=e.data[a+s*r]),a>=n&&(a>=o&&(u-=e.data[a-o+s*r]),t.data[a-n+s*r]=u/Math.min(a+1,r-1+o-a,o))}function ss(e,t,n){for(var r=e.width,i=e.height,o=1+(n<<1),s=0;s<r;++s)for(var a=0,u=0;a<i+n;++a)a<i&&(u+=e.data[s+a*r]),a>=n&&(a>=o&&(u-=e.data[s+(a-o)*r]),t.data[s+(a-n)*r]=u/Math.min(a+1,i-1+o-a,o))}function as(e){return e[0]}function us(e){return e[1]}function ls(){return 1}var cs=function(){var e=as,t=us,n=ls,r=960,i=500,o=20,s=2,a=3*o,u=r+2*a>>s,l=i+2*a>>s,c=Jo(20);function d(r){var i=new Float32Array(u*l),d=new Float32Array(u*l);r.forEach((function(r,o,c){var d=+e(r,o,c)+a>>s,h=+t(r,o,c)+a>>s,f=+n(r,o,c);d>=0&&d<u&&h>=0&&h<l&&(i[d+h*u]+=f)})),os({width:u,height:l,data:i},{width:u,height:l,data:d},o>>s),ss({width:u,height:l,data:d},{width:u,height:l,data:i},o>>s),os({width:u,height:l,data:i},{width:u,height:l,data:d},o>>s),ss({width:u,height:l,data:d},{width:u,height:l,data:i},o>>s),os({width:u,height:l,data:i},{width:u,height:l,data:d},o>>s),ss({width:u,height:l,data:d},{width:u,height:l,data:i},o>>s);var f=c(i);if(!Array.isArray(f)){var p=I(i);f=D(0,p,f),(f=C(0,Math.floor(p/f)*f,f)).shift()}return is().thresholds(f).size([u,l])(i).map(h)}function h(e){return e.value*=Math.pow(2,-2*s),e.coordinates.forEach(f),e}function f(e){e.forEach(p)}function p(e){e.forEach(g)}function g(e){e[0]=e[0]*Math.pow(2,s)-a,e[1]=e[1]*Math.pow(2,s)-a}function m(){return u=r+2*(a=3*o)>>s,l=i+2*a>>s,d}return d.x=function(t){return arguments.length?(e="function"==typeof t?t:Jo(+t),d):e},d.y=function(e){return arguments.length?(t="function"==typeof e?e:Jo(+e),d):t},d.weight=function(e){return arguments.length?(n="function"==typeof e?e:Jo(+e),d):n},d.size=function(e){if(!arguments.length)return[r,i];var t=Math.ceil(e[0]),n=Math.ceil(e[1]);if(!(t>=0||t>=0))throw new Error("invalid size");return r=t,i=n,m()},d.cellSize=function(e){if(!arguments.length)return 1<<s;if(!((e=+e)>=1))throw new Error("invalid cell size");return s=Math.floor(Math.log(e)/Math.LN2),m()},d.thresholds=function(e){return arguments.length?(c="function"==typeof e?e:Array.isArray(e)?Jo($o.call(e)):Jo(e),d):c},d.bandwidth=function(e){if(!arguments.length)return Math.sqrt(o*(o+1));if(!((e=+e)>=0))throw new Error("invalid bandwidth");return o=Math.round((Math.sqrt(4*e*e+1)-1)/2),m()},d},ds=function(e){return function(){return e}};function hs(e,t,n,r,i,o,s,a,u,l){this.target=e,this.type=t,this.subject=n,this.identifier=r,this.active=i,this.x=o,this.y=s,this.dx=a,this.dy=u,this._=l}function fs(){return!pt.ctrlKey&&!pt.button}function ps(){return this.parentNode}function gs(e){return null==e?{x:pt.x,y:pt.y}:e}function ms(){return navigator.maxTouchPoints||"ontouchstart"in this}hs.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};var _s=function(){var e,t,n,r,i=fs,o=ps,s=gs,a=ms,u={},l=ge("start","drag","end"),c=0,d=0;function h(e){e.on("mousedown.drag",f).filter(a).on("touchstart.drag",m).on("touchmove.drag",_).on("touchend.drag touchcancel.drag",y).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function f(){if(!r&&i.apply(this,arguments)){var s=v("mouse",o.apply(this,arguments),Yn,this,arguments);s&&(Dt(pt.view).on("mousemove.drag",p,!0).on("mouseup.drag",g,!0),Nt(pt.view),Et(),n=!1,e=pt.clientX,t=pt.clientY,s("start"))}}function p(){if(Tt(),!n){var r=pt.clientX-e,i=pt.clientY-t;n=r*r+i*i>d}u.mouse("drag")}function g(){Dt(pt.view).on("mousemove.drag mouseup.drag",null),Ot(pt.view,n),Tt(),u.mouse("end")}function m(){if(i.apply(this,arguments)){var e,t,n=pt.changedTouches,r=o.apply(this,arguments),s=n.length;for(e=0;e<s;++e)(t=v(n[e].identifier,r,Fn,this,arguments))&&(Et(),t("start"))}}function _(){var e,t,n=pt.changedTouches,r=n.length;for(e=0;e<r;++e)(t=u[n[e].identifier])&&(Tt(),t("drag"))}function y(){var e,t,n=pt.changedTouches,i=n.length;for(r&&clearTimeout(r),r=setTimeout((function(){r=null}),500),e=0;e<i;++e)(t=u[n[e].identifier])&&(Et(),t("end"))}function v(e,t,n,r,i){var o,a,d,f=n(t,e),p=l.copy();if(bt(new hs(h,"beforestart",o,e,c,f[0],f[1],0,0,p),(function(){return null!=(pt.subject=o=s.apply(r,i))&&(a=o.x-f[0]||0,d=o.y-f[1]||0,!0)})))return function s(l){var g,m=f;switch(l){case"start":u[e]=s,g=c++;break;case"end":delete u[e],--c;case"drag":f=n(t,e),g=c}bt(new hs(h,l,o,e,g,f[0]+a,f[1]+d,f[0]-m[0],f[1]-m[1],p),p.apply,p,[l,r,i])}}return h.filter=function(e){return arguments.length?(i="function"==typeof e?e:ds(!!e),h):i},h.container=function(e){return arguments.length?(o="function"==typeof e?e:ds(e),h):o},h.subject=function(e){return arguments.length?(s="function"==typeof e?e:ds(e),h):s},h.touchable=function(e){return arguments.length?(a="function"==typeof e?e:ds(!!e),h):a},h.on=function(){var e=l.on.apply(l,arguments);return e===l?h:e},h.clickDistance=function(e){return arguments.length?(d=(e=+e)*e,h):Math.sqrt(d)},h},ys={},vs={},bs=34,ws=10,Cs=13;function Ss(e){return new Function("d","return {"+e.map((function(e,t){return JSON.stringify(e)+": d["+t+'] || ""'})).join(",")+"}")}function xs(e){var t=Object.create(null),n=[];return e.forEach((function(e){for(var r in e)r in t||n.push(t[r]=r)})),n}function Ls(e,t){var n=e+"",r=n.length;return r<t?new Array(t-r+1).join(0)+n:n}function ks(e){var t,n=e.getUTCHours(),r=e.getUTCMinutes(),i=e.getUTCSeconds(),o=e.getUTCMilliseconds();return isNaN(e)?"Invalid Date":((t=e.getUTCFullYear())<0?"-"+Ls(-t,6):t>9999?"+"+Ls(t,6):Ls(t,4))+"-"+Ls(e.getUTCMonth()+1,2)+"-"+Ls(e.getUTCDate(),2)+(o?"T"+Ls(n,2)+":"+Ls(r,2)+":"+Ls(i,2)+"."+Ls(o,3)+"Z":i?"T"+Ls(n,2)+":"+Ls(r,2)+":"+Ls(i,2)+"Z":r||n?"T"+Ls(n,2)+":"+Ls(r,2)+"Z":"")}var Ms=function(e){var t=new RegExp('["'+e+"\n\r]"),n=e.charCodeAt(0);function r(e,t){var r,i=[],o=e.length,s=0,a=0,u=o<=0,l=!1;function c(){if(u)return vs;if(l)return l=!1,ys;var t,r,i=s;if(e.charCodeAt(i)===bs){for(;s++<o&&e.charCodeAt(s)!==bs||e.charCodeAt(++s)===bs;);return(t=s)>=o?u=!0:(r=e.charCodeAt(s++))===ws?l=!0:r===Cs&&(l=!0,e.charCodeAt(s)===ws&&++s),e.slice(i+1,t-1).replace(/""/g,'"')}for(;s<o;){if((r=e.charCodeAt(t=s++))===ws)l=!0;else if(r===Cs)l=!0,e.charCodeAt(s)===ws&&++s;else if(r!==n)continue;return e.slice(i,t)}return u=!0,e.slice(i,o)}for(e.charCodeAt(o-1)===ws&&--o,e.charCodeAt(o-1)===Cs&&--o;(r=c())!==vs;){for(var d=[];r!==ys&&r!==vs;)d.push(r),r=c();t&&null==(d=t(d,a++))||i.push(d)}return i}function i(t,n){return t.map((function(t){return n.map((function(e){return s(t[e])})).join(e)}))}function o(t){return t.map(s).join(e)}function s(e){return null==e?"":e instanceof Date?ks(e):t.test(e+="")?'"'+e.replace(/"/g,'""')+'"':e}return{parse:function(e,t){var n,i,o=r(e,(function(e,r){if(n)return n(e,r-1);i=e,n=t?function(e,t){var n=Ss(e);return function(r,i){return t(n(r),i,e)}}(e,t):Ss(e)}));return o.columns=i||[],o},parseRows:r,format:function(t,n){return null==n&&(n=xs(t)),[n.map(s).join(e)].concat(i(t,n)).join("\n")},formatBody:function(e,t){return null==t&&(t=xs(e)),i(e,t).join("\n")},formatRows:function(e){return e.map(o).join("\n")},formatRow:o,formatValue:s}},Ds=Ms(","),Es=Ds.parse,Ts=Ds.parseRows,Ns=Ds.format,Os=Ds.formatBody,As=Ds.formatRows,Is=Ds.formatRow,Ps=Ds.formatValue,Rs=Ms("\t"),Fs=Rs.parse,Ys=Rs.parseRows,js=Rs.format,Bs=Rs.formatBody,Ws=Rs.formatRows,Hs=Rs.formatRow,Vs=Rs.formatValue;function zs(e){for(var t in e){var n,r,i=e[t].trim();if(i)if("true"===i)i=!0;else if("false"===i)i=!1;else if("NaN"===i)i=NaN;else if(isNaN(n=+i)){if(!(r=i.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)))continue;Us&&r[4]&&!r[7]&&(i=i.replace(/-/g,"/").replace(/T/," ")),i=new Date(i)}else i=n;else i=null;e[t]=i}return e}var Us=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours();function qs(e){return+e}function Ks(e){return e*e}function Gs(e){return e*(2-e)}function $s(e){return((e*=2)<=1?e*e:--e*(2-e)+1)/2}var Zs=function e(t){function n(e){return Math.pow(e,t)}return t=+t,n.exponent=e,n}(3),Xs=function e(t){function n(e){return 1-Math.pow(1-e,t)}return t=+t,n.exponent=e,n}(3),Js=function e(t){function n(e){return((e*=2)<=1?Math.pow(e,t):2-Math.pow(2-e,t))/2}return t=+t,n.exponent=e,n}(3),Qs=Math.PI,ea=Qs/2;function ta(e){return 1-Math.cos(e*ea)}function na(e){return Math.sin(e*ea)}function ra(e){return(1-Math.cos(Qs*e))/2}function ia(e){return Math.pow(2,10*e-10)}function oa(e){return 1-Math.pow(2,-10*e)}function sa(e){return((e*=2)<=1?Math.pow(2,10*e-10):2-Math.pow(2,10-10*e))/2}function aa(e){return 1-Math.sqrt(1-e*e)}function ua(e){return Math.sqrt(1- --e*e)}function la(e){return((e*=2)<=1?1-Math.sqrt(1-e*e):Math.sqrt(1-(e-=2)*e)+1)/2}var ca=4/11,da=6/11,ha=8/11,fa=.75,pa=9/11,ga=10/11,ma=.9375,_a=21/22,ya=63/64,va=1/ca/ca;function ba(e){return 1-wa(1-e)}function wa(e){return(e=+e)<ca?va*e*e:e<ha?va*(e-=da)*e+fa:e<ga?va*(e-=pa)*e+ma:va*(e-=_a)*e+ya}function Ca(e){return((e*=2)<=1?1-wa(1-e):wa(e-1)+1)/2}var Sa=function e(t){function n(e){return e*e*((t+1)*e-t)}return t=+t,n.overshoot=e,n}(1.70158),xa=function e(t){function n(e){return--e*e*((t+1)*e+t)+1}return t=+t,n.overshoot=e,n}(1.70158),La=function e(t){function n(e){return((e*=2)<1?e*e*((t+1)*e-t):(e-=2)*e*((t+1)*e+t)+2)/2}return t=+t,n.overshoot=e,n}(1.70158),ka=2*Math.PI,Ma=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=ka);function i(e){return t*Math.pow(2,10*--e)*Math.sin((r-e)/n)}return i.amplitude=function(t){return e(t,n*ka)},i.period=function(n){return e(t,n)},i}(1,.3),Da=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=ka);function i(e){return 1-t*Math.pow(2,-10*(e=+e))*Math.sin((e+r)/n)}return i.amplitude=function(t){return e(t,n*ka)},i.period=function(n){return e(t,n)},i}(1,.3),Ea=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=ka);function i(e){return((e=2*e-1)<0?t*Math.pow(2,10*e)*Math.sin((r-e)/n):2-t*Math.pow(2,-10*e)*Math.sin((r+e)/n))/2}return i.amplitude=function(t){return e(t,n*ka)},i.period=function(n){return e(t,n)},i}(1,.3);function Ta(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.blob()}var Na=function(e,t){return fetch(e,t).then(Ta)};function Oa(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.arrayBuffer()}var Aa=function(e,t){return fetch(e,t).then(Oa)};function Ia(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.text()}var Pa=function(e,t){return fetch(e,t).then(Ia)};function Ra(e){return function(t,n,r){return 2===arguments.length&&"function"==typeof n&&(r=n,n=void 0),Pa(t,n).then((function(t){return e(t,r)}))}}function Fa(e,t,n,r){3===arguments.length&&"function"==typeof n&&(r=n,n=void 0);var i=Ms(e);return Pa(t,n).then((function(e){return i.parse(e,r)}))}var Ya=Ra(Es),ja=Ra(Fs),Ba=function(e,t){return new Promise((function(n,r){var i=new Image;for(var o in t)i[o]=t[o];i.onerror=r,i.onload=function(){n(i)},i.src=e}))};function Wa(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.json()}var Ha=function(e,t){return fetch(e,t).then(Wa)};function Va(e){return function(t,n){return Pa(t,n).then((function(t){return(new DOMParser).parseFromString(t,e)}))}}var za=Va("application/xml"),Ua=Va("text/html"),qa=Va("image/svg+xml"),Ka=function(e,t){var n;function r(){var r,i,o=n.length,s=0,a=0;for(r=0;r<o;++r)s+=(i=n[r]).x,a+=i.y;for(s=s/o-e,a=a/o-t,r=0;r<o;++r)(i=n[r]).x-=s,i.y-=a}return null==e&&(e=0),null==t&&(t=0),r.initialize=function(e){n=e},r.x=function(t){return arguments.length?(e=+t,r):e},r.y=function(e){return arguments.length?(t=+e,r):t},r},Ga=function(e){return function(){return e}},$a=function(){return 1e-6*(Math.random()-.5)};function Za(e,t,n,r){if(isNaN(t)||isNaN(n))return e;var i,o,s,a,u,l,c,d,h,f=e._root,p={data:r},g=e._x0,m=e._y0,_=e._x1,y=e._y1;if(!f)return e._root=p,e;for(;f.length;)if((l=t>=(o=(g+_)/2))?g=o:_=o,(c=n>=(s=(m+y)/2))?m=s:y=s,i=f,!(f=f[d=c<<1|l]))return i[d]=p,e;if(a=+e._x.call(null,f.data),u=+e._y.call(null,f.data),t===a&&n===u)return p.next=f,i?i[d]=p:e._root=p,e;do{i=i?i[d]=new Array(4):e._root=new Array(4),(l=t>=(o=(g+_)/2))?g=o:_=o,(c=n>=(s=(m+y)/2))?m=s:y=s}while((d=c<<1|l)==(h=(u>=s)<<1|a>=o));return i[h]=f,i[d]=p,e}var Xa=function(e,t,n,r,i){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=i};function Ja(e){return e[0]}function Qa(e){return e[1]}function eu(e,t,n){var r=new tu(null==t?Ja:t,null==n?Qa:n,NaN,NaN,NaN,NaN);return null==e?r:r.addAll(e)}function tu(e,t,n,r,i,o){this._x=e,this._y=t,this._x0=n,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function nu(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var ru=eu.prototype=tu.prototype;function iu(e){return e.x+e.vx}function ou(e){return e.y+e.vy}ru.copy=function(){var e,t,n=new tu(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=nu(r),n;for(e=[{source:r,target:n._root=new Array(4)}];r=e.pop();)for(var i=0;i<4;++i)(t=r.source[i])&&(t.length?e.push({source:t,target:r.target[i]=new Array(4)}):r.target[i]=nu(t));return n},ru.add=function(e){var t=+this._x.call(null,e),n=+this._y.call(null,e);return Za(this.cover(t,n),t,n,e)},ru.addAll=function(e){var t,n,r,i,o=e.length,s=new Array(o),a=new Array(o),u=1/0,l=1/0,c=-1/0,d=-1/0;for(n=0;n<o;++n)isNaN(r=+this._x.call(null,t=e[n]))||isNaN(i=+this._y.call(null,t))||(s[n]=r,a[n]=i,r<u&&(u=r),r>c&&(c=r),i<l&&(l=i),i>d&&(d=i));if(u>c||l>d)return this;for(this.cover(u,l).cover(c,d),n=0;n<o;++n)Za(this,s[n],a[n],e[n]);return this},ru.cover=function(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,r=this._y0,i=this._x1,o=this._y1;if(isNaN(n))i=(n=Math.floor(e))+1,o=(r=Math.floor(t))+1;else{for(var s,a,u=i-n,l=this._root;n>e||e>=i||r>t||t>=o;)switch(a=(t<r)<<1|e<n,(s=new Array(4))[a]=l,l=s,u*=2,a){case 0:i=n+u,o=r+u;break;case 1:n=i-u,o=r+u;break;case 2:i=n+u,r=o-u;break;case 3:n=i-u,r=o-u}this._root&&this._root.length&&(this._root=l)}return this._x0=n,this._y0=r,this._x1=i,this._y1=o,this},ru.data=function(){var e=[];return this.visit((function(t){if(!t.length)do{e.push(t.data)}while(t=t.next)})),e},ru.extent=function(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},ru.find=function(e,t,n){var r,i,o,s,a,u,l,c=this._x0,d=this._y0,h=this._x1,f=this._y1,p=[],g=this._root;for(g&&p.push(new Xa(g,c,d,h,f)),null==n?n=1/0:(c=e-n,d=t-n,h=e+n,f=t+n,n*=n);u=p.pop();)if(!(!(g=u.node)||(i=u.x0)>h||(o=u.y0)>f||(s=u.x1)<c||(a=u.y1)<d))if(g.length){var m=(i+s)/2,_=(o+a)/2;p.push(new Xa(g[3],m,_,s,a),new Xa(g[2],i,_,m,a),new Xa(g[1],m,o,s,_),new Xa(g[0],i,o,m,_)),(l=(t>=_)<<1|e>=m)&&(u=p[p.length-1],p[p.length-1]=p[p.length-1-l],p[p.length-1-l]=u)}else{var y=e-+this._x.call(null,g.data),v=t-+this._y.call(null,g.data),b=y*y+v*v;if(b<n){var w=Math.sqrt(n=b);c=e-w,d=t-w,h=e+w,f=t+w,r=g.data}}return r},ru.remove=function(e){if(isNaN(o=+this._x.call(null,e))||isNaN(s=+this._y.call(null,e)))return this;var t,n,r,i,o,s,a,u,l,c,d,h,f=this._root,p=this._x0,g=this._y0,m=this._x1,_=this._y1;if(!f)return this;if(f.length)for(;;){if((l=o>=(a=(p+m)/2))?p=a:m=a,(c=s>=(u=(g+_)/2))?g=u:_=u,t=f,!(f=f[d=c<<1|l]))return this;if(!f.length)break;(t[d+1&3]||t[d+2&3]||t[d+3&3])&&(n=t,h=d)}for(;f.data!==e;)if(r=f,!(f=f.next))return this;return(i=f.next)&&delete f.next,r?(i?r.next=i:delete r.next,this):t?(i?t[d]=i:delete t[d],(f=t[0]||t[1]||t[2]||t[3])&&f===(t[3]||t[2]||t[1]||t[0])&&!f.length&&(n?n[h]=f:this._root=f),this):(this._root=i,this)},ru.removeAll=function(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this},ru.root=function(){return this._root},ru.size=function(){var e=0;return this.visit((function(t){if(!t.length)do{++e}while(t=t.next)})),e},ru.visit=function(e){var t,n,r,i,o,s,a=[],u=this._root;for(u&&a.push(new Xa(u,this._x0,this._y0,this._x1,this._y1));t=a.pop();)if(!e(u=t.node,r=t.x0,i=t.y0,o=t.x1,s=t.y1)&&u.length){var l=(r+o)/2,c=(i+s)/2;(n=u[3])&&a.push(new Xa(n,l,c,o,s)),(n=u[2])&&a.push(new Xa(n,r,c,l,s)),(n=u[1])&&a.push(new Xa(n,l,i,o,c)),(n=u[0])&&a.push(new Xa(n,r,i,l,c))}return this},ru.visitAfter=function(e){var t,n=[],r=[];for(this._root&&n.push(new Xa(this._root,this._x0,this._y0,this._x1,this._y1));t=n.pop();){var i=t.node;if(i.length){var o,s=t.x0,a=t.y0,u=t.x1,l=t.y1,c=(s+u)/2,d=(a+l)/2;(o=i[0])&&n.push(new Xa(o,s,a,c,d)),(o=i[1])&&n.push(new Xa(o,c,a,u,d)),(o=i[2])&&n.push(new Xa(o,s,d,c,l)),(o=i[3])&&n.push(new Xa(o,c,d,u,l))}r.push(t)}for(;t=r.pop();)e(t.node,t.x0,t.y0,t.x1,t.y1);return this},ru.x=function(e){return arguments.length?(this._x=e,this):this._x},ru.y=function(e){return arguments.length?(this._y=e,this):this._y};var su=function(e){var t,n,r=1,i=1;function o(){for(var e,o,a,u,l,c,d,h=t.length,f=0;f<i;++f)for(o=eu(t,iu,ou).visitAfter(s),e=0;e<h;++e)a=t[e],c=n[a.index],d=c*c,u=a.x+a.vx,l=a.y+a.vy,o.visit(p);function p(e,t,n,i,o){var s=e.data,h=e.r,f=c+h;if(!s)return t>u+f||i<u-f||n>l+f||o<l-f;if(s.index>a.index){var p=u-s.x-s.vx,g=l-s.y-s.vy,m=p*p+g*g;m<f*f&&(0===p&&(m+=(p=$a())*p),0===g&&(m+=(g=$a())*g),m=(f-(m=Math.sqrt(m)))/m*r,a.vx+=(p*=m)*(f=(h*=h)/(d+h)),a.vy+=(g*=m)*f,s.vx-=p*(f=1-f),s.vy-=g*f)}}}function s(e){if(e.data)return e.r=n[e.data.index];for(var t=e.r=0;t<4;++t)e[t]&&e[t].r>e.r&&(e.r=e[t].r)}function a(){if(t){var r,i,o=t.length;for(n=new Array(o),r=0;r<o;++r)i=t[r],n[i.index]=+e(i,r,t)}}return"function"!=typeof e&&(e=Ga(null==e?1:+e)),o.initialize=function(e){t=e,a()},o.iterations=function(e){return arguments.length?(i=+e,o):i},o.strength=function(e){return arguments.length?(r=+e,o):r},o.radius=function(t){return arguments.length?(e="function"==typeof t?t:Ga(+t),a(),o):e},o};function au(e){return e.index}function uu(e,t){var n=e.get(t);if(!n)throw new Error("missing: "+t);return n}var lu=function(e){var t,n,r,i,o,s=au,a=function(e){return 1/Math.min(i[e.source.index],i[e.target.index])},u=Ga(30),l=1;function c(r){for(var i=0,s=e.length;i<l;++i)for(var a,u,c,d,h,f,p,g=0;g<s;++g)u=(a=e[g]).source,d=(c=a.target).x+c.vx-u.x-u.vx||$a(),h=c.y+c.vy-u.y-u.vy||$a(),d*=f=((f=Math.sqrt(d*d+h*h))-n[g])/f*r*t[g],h*=f,c.vx-=d*(p=o[g]),c.vy-=h*p,u.vx+=d*(p=1-p),u.vy+=h*p}function d(){if(r){var a,u,l=r.length,c=e.length,d=oo(r,s);for(a=0,i=new Array(l);a<c;++a)(u=e[a]).index=a,"object"!=typeof u.source&&(u.source=uu(d,u.source)),"object"!=typeof u.target&&(u.target=uu(d,u.target)),i[u.source.index]=(i[u.source.index]||0)+1,i[u.target.index]=(i[u.target.index]||0)+1;for(a=0,o=new Array(c);a<c;++a)u=e[a],o[a]=i[u.source.index]/(i[u.source.index]+i[u.target.index]);t=new Array(c),h(),n=new Array(c),f()}}function h(){if(r)for(var n=0,i=e.length;n<i;++n)t[n]=+a(e[n],n,e)}function f(){if(r)for(var t=0,i=e.length;t<i;++t)n[t]=+u(e[t],t,e)}return null==e&&(e=[]),c.initialize=function(e){r=e,d()},c.links=function(t){return arguments.length?(e=t,d(),c):e},c.id=function(e){return arguments.length?(s=e,c):s},c.iterations=function(e){return arguments.length?(l=+e,c):l},c.strength=function(e){return arguments.length?(a="function"==typeof e?e:Ga(+e),h(),c):a},c.distance=function(e){return arguments.length?(u="function"==typeof e?e:Ga(+e),f(),c):u},c};function cu(e){return e.x}function du(e){return e.y}var hu=10,fu=Math.PI*(3-Math.sqrt(5)),pu=function(e){var t,n=1,r=.001,i=1-Math.pow(r,1/300),o=0,s=.6,a=oo(),u=Xn(c),l=ge("tick","end");function c(){d(),l.call("tick",t),n<r&&(u.stop(),l.call("end",t))}function d(r){var u,l,c=e.length;void 0===r&&(r=1);for(var d=0;d<r;++d)for(n+=(o-n)*i,a.each((function(e){e(n)})),u=0;u<c;++u)null==(l=e[u]).fx?l.x+=l.vx*=s:(l.x=l.fx,l.vx=0),null==l.fy?l.y+=l.vy*=s:(l.y=l.fy,l.vy=0);return t}function h(){for(var t,n=0,r=e.length;n<r;++n){if((t=e[n]).index=n,null!=t.fx&&(t.x=t.fx),null!=t.fy&&(t.y=t.fy),isNaN(t.x)||isNaN(t.y)){var i=hu*Math.sqrt(n),o=n*fu;t.x=i*Math.cos(o),t.y=i*Math.sin(o)}(isNaN(t.vx)||isNaN(t.vy))&&(t.vx=t.vy=0)}}function f(t){return t.initialize&&t.initialize(e),t}return null==e&&(e=[]),h(),t={tick:d,restart:function(){return u.restart(c),t},stop:function(){return u.stop(),t},nodes:function(n){return arguments.length?(e=n,h(),a.each(f),t):e},alpha:function(e){return arguments.length?(n=+e,t):n},alphaMin:function(e){return arguments.length?(r=+e,t):r},alphaDecay:function(e){return arguments.length?(i=+e,t):+i},alphaTarget:function(e){return arguments.length?(o=+e,t):o},velocityDecay:function(e){return arguments.length?(s=1-e,t):1-s},force:function(e,n){return arguments.length>1?(null==n?a.remove(e):a.set(e,f(n)),t):a.get(e)},find:function(t,n,r){var i,o,s,a,u,l=0,c=e.length;for(null==r?r=1/0:r*=r,l=0;l<c;++l)(s=(i=t-(a=e[l]).x)*i+(o=n-a.y)*o)<r&&(u=a,r=s);return u},on:function(e,n){return arguments.length>1?(l.on(e,n),t):l.on(e)}}},gu=function(){var e,t,n,r,i=Ga(-30),o=1,s=1/0,a=.81;function u(r){var i,o=e.length,s=eu(e,cu,du).visitAfter(c);for(n=r,i=0;i<o;++i)t=e[i],s.visit(d)}function l(){if(e){var t,n,o=e.length;for(r=new Array(o),t=0;t<o;++t)n=e[t],r[n.index]=+i(n,t,e)}}function c(e){var t,n,i,o,s,a=0,u=0;if(e.length){for(i=o=s=0;s<4;++s)(t=e[s])&&(n=Math.abs(t.value))&&(a+=t.value,u+=n,i+=n*t.x,o+=n*t.y);e.x=i/u,e.y=o/u}else{(t=e).x=t.data.x,t.y=t.data.y;do{a+=r[t.data.index]}while(t=t.next)}e.value=a}function d(e,i,u,l){if(!e.value)return!0;var c=e.x-t.x,d=e.y-t.y,h=l-i,f=c*c+d*d;if(h*h/a<f)return f<s&&(0===c&&(f+=(c=$a())*c),0===d&&(f+=(d=$a())*d),f<o&&(f=Math.sqrt(o*f)),t.vx+=c*e.value*n/f,t.vy+=d*e.value*n/f),!0;if(!(e.length||f>=s)){(e.data!==t||e.next)&&(0===c&&(f+=(c=$a())*c),0===d&&(f+=(d=$a())*d),f<o&&(f=Math.sqrt(o*f)));do{e.data!==t&&(h=r[e.data.index]*n/f,t.vx+=c*h,t.vy+=d*h)}while(e=e.next)}}return u.initialize=function(t){e=t,l()},u.strength=function(e){return arguments.length?(i="function"==typeof e?e:Ga(+e),l(),u):i},u.distanceMin=function(e){return arguments.length?(o=e*e,u):Math.sqrt(o)},u.distanceMax=function(e){return arguments.length?(s=e*e,u):Math.sqrt(s)},u.theta=function(e){return arguments.length?(a=e*e,u):Math.sqrt(a)},u},mu=function(e,t,n){var r,i,o,s=Ga(.1);function a(e){for(var s=0,a=r.length;s<a;++s){var u=r[s],l=u.x-t||1e-6,c=u.y-n||1e-6,d=Math.sqrt(l*l+c*c),h=(o[s]-d)*i[s]*e/d;u.vx+=l*h,u.vy+=c*h}}function u(){if(r){var t,n=r.length;for(i=new Array(n),o=new Array(n),t=0;t<n;++t)o[t]=+e(r[t],t,r),i[t]=isNaN(o[t])?0:+s(r[t],t,r)}}return"function"!=typeof e&&(e=Ga(+e)),null==t&&(t=0),null==n&&(n=0),a.initialize=function(e){r=e,u()},a.strength=function(e){return arguments.length?(s="function"==typeof e?e:Ga(+e),u(),a):s},a.radius=function(t){return arguments.length?(e="function"==typeof t?t:Ga(+t),u(),a):e},a.x=function(e){return arguments.length?(t=+e,a):t},a.y=function(e){return arguments.length?(n=+e,a):n},a},_u=function(e){var t,n,r,i=Ga(.1);function o(e){for(var i,o=0,s=t.length;o<s;++o)(i=t[o]).vx+=(r[o]-i.x)*n[o]*e}function s(){if(t){var o,s=t.length;for(n=new Array(s),r=new Array(s),o=0;o<s;++o)n[o]=isNaN(r[o]=+e(t[o],o,t))?0:+i(t[o],o,t)}}return"function"!=typeof e&&(e=Ga(null==e?0:+e)),o.initialize=function(e){t=e,s()},o.strength=function(e){return arguments.length?(i="function"==typeof e?e:Ga(+e),s(),o):i},o.x=function(t){return arguments.length?(e="function"==typeof t?t:Ga(+t),s(),o):e},o},yu=function(e){var t,n,r,i=Ga(.1);function o(e){for(var i,o=0,s=t.length;o<s;++o)(i=t[o]).vy+=(r[o]-i.y)*n[o]*e}function s(){if(t){var o,s=t.length;for(n=new Array(s),r=new Array(s),o=0;o<s;++o)n[o]=isNaN(r[o]=+e(t[o],o,t))?0:+i(t[o],o,t)}}return"function"!=typeof e&&(e=Ga(null==e?0:+e)),o.initialize=function(e){t=e,s()},o.strength=function(e){return arguments.length?(i="function"==typeof e?e:Ga(+e),s(),o):i},o.y=function(t){return arguments.length?(e="function"==typeof t?t:Ga(+t),s(),o):e},o},vu=function(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]},bu=function(e){return(e=vu(Math.abs(e)))?e[1]:NaN},wu=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Cu(e){if(!(t=wu.exec(e)))throw new Error("invalid format: "+e);var t;return new Su({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function Su(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}Cu.prototype=Su.prototype,Su.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var xu,Lu,ku,Mu,Du=function(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(i>0){if(!+e[r])break e;i=0}}return i>0?e.slice(0,i)+e.slice(t+1):e},Eu=function(e,t){var n=vu(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")},Tu={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return Eu(100*e,t)},r:Eu,s:function(e,t){var n=vu(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(xu=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,s=r.length;return o===s?r:o>s?r+new Array(o-s+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+vu(e,Math.max(0,t+o-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}},Nu=function(e){return e},Ou=Array.prototype.map,Au=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],Iu=function(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?Nu:(t=Ou.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],s=0,a=t[0],u=0;i>0&&a>0&&(u+a+1>r&&(a=Math.max(1,r-u)),o.push(e.substring(i-=a,i+a)),!((u+=a+1)>r));)a=t[s=(s+1)%t.length];return o.reverse().join(n)}),i=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",s=void 0===e.decimal?".":e.decimal+"",a=void 0===e.numerals?Nu:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(Ou.call(e.numerals,String)),u=void 0===e.percent?"%":e.percent+"",l=void 0===e.minus?"-":e.minus+"",c=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=Cu(e)).fill,n=e.align,d=e.sign,h=e.symbol,f=e.zero,p=e.width,g=e.comma,m=e.precision,_=e.trim,y=e.type;"n"===y?(g=!0,y="g"):Tu[y]||(void 0===m&&(m=12),_=!0,y="g"),(f||"0"===t&&"="===n)&&(f=!0,t="0",n="=");var v="$"===h?i:"#"===h&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",b="$"===h?o:/[%p]/.test(y)?u:"",w=Tu[y],C=/[defgprs%]/.test(y);function S(e){var i,o,u,h=v,S=b;if("c"===y)S=w(e)+S,e="";else{var x=(e=+e)<0;if(e=isNaN(e)?c:w(Math.abs(e),m),_&&(e=Du(e)),x&&0==+e&&(x=!1),h=(x?"("===d?d:l:"-"===d||"("===d?"":d)+h,S=("s"===y?Au[8+xu/3]:"")+S+(x&&"("===d?")":""),C)for(i=-1,o=e.length;++i<o;)if(48>(u=e.charCodeAt(i))||u>57){S=(46===u?s+e.slice(i+1):e.slice(i))+S,e=e.slice(0,i);break}}g&&!f&&(e=r(e,1/0));var L=h.length+e.length+S.length,k=L<p?new Array(p-L+1).join(t):"";switch(g&&f&&(e=r(k+e,k.length?p-S.length:1/0),k=""),n){case"<":e=h+e+S+k;break;case"=":e=h+k+e+S;break;case"^":e=k.slice(0,L=k.length>>1)+h+e+S+k.slice(L);break;default:e=k+h+e+S}return a(e)}return m=void 0===m?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),S.toString=function(){return e+""},S}return{format:d,formatPrefix:function(e,t){var n=d(((e=Cu(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(bu(t)/3))),i=Math.pow(10,-r),o=Au[8+r/3];return function(e){return n(i*e)+o}}}};function Pu(e){return Lu=Iu(e),ku=Lu.format,Mu=Lu.formatPrefix,Lu}Pu({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});var Ru=function(e){return Math.max(0,-bu(Math.abs(e)))},Fu=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(bu(t)/3)))-bu(Math.abs(e)))},Yu=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,bu(t)-bu(e))+1},ju=function(){return new Bu};function Bu(){this.reset()}Bu.prototype={constructor:Bu,reset:function(){this.s=this.t=0},add:function(e){Hu(Wu,e,this.t),Hu(this,Wu.s,this.s),this.s?this.t+=Wu.t:this.s=Wu.t},valueOf:function(){return this.s}};var Wu=new Bu;function Hu(e,t,n){var r=e.s=t+n,i=r-t,o=r-i;e.t=t-o+(n-i)}var Vu=1e-6,zu=1e-12,Uu=Math.PI,qu=Uu/2,Ku=Uu/4,Gu=2*Uu,$u=180/Uu,Zu=Uu/180,Xu=Math.abs,Ju=Math.atan,Qu=Math.atan2,el=Math.cos,tl=Math.ceil,nl=Math.exp,rl=(Math.floor,Math.log),il=Math.pow,ol=Math.sin,sl=Math.sign||function(e){return e>0?1:e<0?-1:0},al=Math.sqrt,ul=Math.tan;function ll(e){return e>1?0:e<-1?Uu:Math.acos(e)}function cl(e){return e>1?qu:e<-1?-qu:Math.asin(e)}function dl(e){return(e=ol(e/2))*e}function hl(){}function fl(e,t){e&&gl.hasOwnProperty(e.type)&&gl[e.type](e,t)}var pl={Feature:function(e,t){fl(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r<i;)fl(n[r].geometry,t)}},gl={Sphere:function(e,t){t.sphere()},Point:function(e,t){e=e.coordinates,t.point(e[0],e[1],e[2])},MultiPoint:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)e=n[r],t.point(e[0],e[1],e[2])},LineString:function(e,t){ml(e.coordinates,t,0)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)ml(n[r],t,0)},Polygon:function(e,t){_l(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)_l(n[r],t)},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,i=n.length;++r<i;)fl(n[r],t)}};function ml(e,t,n){var r,i=-1,o=e.length-n;for(t.lineStart();++i<o;)r=e[i],t.point(r[0],r[1],r[2]);t.lineEnd()}function _l(e,t){var n=-1,r=e.length;for(t.polygonStart();++n<r;)ml(e[n],t,1);t.polygonEnd()}var yl,vl,bl,wl,Cl,Sl=function(e,t){e&&pl.hasOwnProperty(e.type)?pl[e.type](e,t):fl(e,t)},xl=ju(),Ll=ju(),kl={point:hl,lineStart:hl,lineEnd:hl,polygonStart:function(){xl.reset(),kl.lineStart=Ml,kl.lineEnd=Dl},polygonEnd:function(){var e=+xl;Ll.add(e<0?Gu+e:e),this.lineStart=this.lineEnd=this.point=hl},sphere:function(){Ll.add(Gu)}};function Ml(){kl.point=El}function Dl(){Tl(yl,vl)}function El(e,t){kl.point=Tl,yl=e,vl=t,bl=e*=Zu,wl=el(t=(t*=Zu)/2+Ku),Cl=ol(t)}function Tl(e,t){var n=(e*=Zu)-bl,r=n>=0?1:-1,i=r*n,o=el(t=(t*=Zu)/2+Ku),s=ol(t),a=Cl*s,u=wl*o+a*el(i),l=a*r*ol(i);xl.add(Qu(l,u)),bl=e,wl=o,Cl=s}var Nl=function(e){return Ll.reset(),Sl(e,kl),2*Ll};function Ol(e){return[Qu(e[1],e[0]),cl(e[2])]}function Al(e){var t=e[0],n=e[1],r=el(n);return[r*el(t),r*ol(t),ol(n)]}function Il(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function Pl(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function Rl(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function Fl(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function Yl(e){var t=al(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}var jl,Bl,Wl,Hl,Vl,zl,Ul,ql,Kl,Gl,$l=ju(),Zl={point:Xl,lineStart:Ql,lineEnd:ec,polygonStart:function(){Zl.point=tc,Zl.lineStart=nc,Zl.lineEnd=rc,$l.reset(),kl.polygonStart()},polygonEnd:function(){kl.polygonEnd(),Zl.point=Xl,Zl.lineStart=Ql,Zl.lineEnd=ec,xl<0?(jl=-(Wl=180),Bl=-(Hl=90)):$l>Vu?Hl=90:$l<-Vu&&(Bl=-90),Gl[0]=jl,Gl[1]=Wl},sphere:function(){jl=-(Wl=180),Bl=-(Hl=90)}};function Xl(e,t){Kl.push(Gl=[jl=e,Wl=e]),t<Bl&&(Bl=t),t>Hl&&(Hl=t)}function Jl(e,t){var n=Al([e*Zu,t*Zu]);if(ql){var r=Pl(ql,n),i=Pl([r[1],-r[0],0],r);Yl(i),i=Ol(i);var o,s=e-Vl,a=s>0?1:-1,u=i[0]*$u*a,l=Xu(s)>180;l^(a*Vl<u&&u<a*e)?(o=i[1]*$u)>Hl&&(Hl=o):l^(a*Vl<(u=(u+360)%360-180)&&u<a*e)?(o=-i[1]*$u)<Bl&&(Bl=o):(t<Bl&&(Bl=t),t>Hl&&(Hl=t)),l?e<Vl?ic(jl,e)>ic(jl,Wl)&&(Wl=e):ic(e,Wl)>ic(jl,Wl)&&(jl=e):Wl>=jl?(e<jl&&(jl=e),e>Wl&&(Wl=e)):e>Vl?ic(jl,e)>ic(jl,Wl)&&(Wl=e):ic(e,Wl)>ic(jl,Wl)&&(jl=e)}else Kl.push(Gl=[jl=e,Wl=e]);t<Bl&&(Bl=t),t>Hl&&(Hl=t),ql=n,Vl=e}function Ql(){Zl.point=Jl}function ec(){Gl[0]=jl,Gl[1]=Wl,Zl.point=Xl,ql=null}function tc(e,t){if(ql){var n=e-Vl;$l.add(Xu(n)>180?n+(n>0?360:-360):n)}else zl=e,Ul=t;kl.point(e,t),Jl(e,t)}function nc(){kl.lineStart()}function rc(){tc(zl,Ul),kl.lineEnd(),Xu($l)>Vu&&(jl=-(Wl=180)),Gl[0]=jl,Gl[1]=Wl,ql=null}function ic(e,t){return(t-=e)<0?t+360:t}function oc(e,t){return e[0]-t[0]}function sc(e,t){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:t<e[0]||e[1]<t}var ac,uc,lc,cc,dc,hc,fc,pc,gc,mc,_c,yc,vc,bc,wc,Cc,Sc=function(e){var t,n,r,i,o,s,a;if(Hl=Wl=-(jl=Bl=1/0),Kl=[],Sl(e,Zl),n=Kl.length){for(Kl.sort(oc),t=1,o=[r=Kl[0]];t<n;++t)sc(r,(i=Kl[t])[0])||sc(r,i[1])?(ic(r[0],i[1])>ic(r[0],r[1])&&(r[1]=i[1]),ic(i[0],r[1])>ic(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(s=-1/0,t=0,r=o[n=o.length-1];t<=n;r=i,++t)i=o[t],(a=ic(r[1],i[0]))>s&&(s=a,jl=i[0],Wl=r[1])}return Kl=Gl=null,jl===1/0||Bl===1/0?[[NaN,NaN],[NaN,NaN]]:[[jl,Bl],[Wl,Hl]]},xc={sphere:hl,point:Lc,lineStart:Mc,lineEnd:Tc,polygonStart:function(){xc.lineStart=Nc,xc.lineEnd=Oc},polygonEnd:function(){xc.lineStart=Mc,xc.lineEnd=Tc}};function Lc(e,t){e*=Zu;var n=el(t*=Zu);kc(n*el(e),n*ol(e),ol(t))}function kc(e,t,n){++ac,lc+=(e-lc)/ac,cc+=(t-cc)/ac,dc+=(n-dc)/ac}function Mc(){xc.point=Dc}function Dc(e,t){e*=Zu;var n=el(t*=Zu);bc=n*el(e),wc=n*ol(e),Cc=ol(t),xc.point=Ec,kc(bc,wc,Cc)}function Ec(e,t){e*=Zu;var n=el(t*=Zu),r=n*el(e),i=n*ol(e),o=ol(t),s=Qu(al((s=wc*o-Cc*i)*s+(s=Cc*r-bc*o)*s+(s=bc*i-wc*r)*s),bc*r+wc*i+Cc*o);uc+=s,hc+=s*(bc+(bc=r)),fc+=s*(wc+(wc=i)),pc+=s*(Cc+(Cc=o)),kc(bc,wc,Cc)}function Tc(){xc.point=Lc}function Nc(){xc.point=Ac}function Oc(){Ic(yc,vc),xc.point=Lc}function Ac(e,t){yc=e,vc=t,e*=Zu,t*=Zu,xc.point=Ic;var n=el(t);bc=n*el(e),wc=n*ol(e),Cc=ol(t),kc(bc,wc,Cc)}function Ic(e,t){e*=Zu;var n=el(t*=Zu),r=n*el(e),i=n*ol(e),o=ol(t),s=wc*o-Cc*i,a=Cc*r-bc*o,u=bc*i-wc*r,l=al(s*s+a*a+u*u),c=cl(l),d=l&&-c/l;gc+=d*s,mc+=d*a,_c+=d*u,uc+=c,hc+=c*(bc+(bc=r)),fc+=c*(wc+(wc=i)),pc+=c*(Cc+(Cc=o)),kc(bc,wc,Cc)}var Pc=function(e){ac=uc=lc=cc=dc=hc=fc=pc=gc=mc=_c=0,Sl(e,xc);var t=gc,n=mc,r=_c,i=t*t+n*n+r*r;return i<zu&&(t=hc,n=fc,r=pc,uc<Vu&&(t=lc,n=cc,r=dc),(i=t*t+n*n+r*r)<zu)?[NaN,NaN]:[Qu(n,t)*$u,cl(r/al(i))*$u]},Rc=function(e){return function(){return e}},Fc=function(e,t){function n(n,r){return n=e(n,r),t(n[0],n[1])}return e.invert&&t.invert&&(n.invert=function(n,r){return(n=t.invert(n,r))&&e.invert(n[0],n[1])}),n};function Yc(e,t){return[Xu(e)>Uu?e+Math.round(-e/Gu)*Gu:e,t]}function jc(e,t,n){return(e%=Gu)?t||n?Fc(Wc(e),Hc(t,n)):Wc(e):t||n?Hc(t,n):Yc}function Bc(e){return function(t,n){return[(t+=e)>Uu?t-Gu:t<-Uu?t+Gu:t,n]}}function Wc(e){var t=Bc(e);return t.invert=Bc(-e),t}function Hc(e,t){var n=el(e),r=ol(e),i=el(t),o=ol(t);function s(e,t){var s=el(t),a=el(e)*s,u=ol(e)*s,l=ol(t),c=l*n+a*r;return[Qu(u*i-c*o,a*n-l*r),cl(c*i+u*o)]}return s.invert=function(e,t){var s=el(t),a=el(e)*s,u=ol(e)*s,l=ol(t),c=l*i-u*o;return[Qu(u*i+l*o,a*n+c*r),cl(c*n-a*r)]},s}Yc.invert=Yc;var Vc=function(e){function t(t){return(t=e(t[0]*Zu,t[1]*Zu))[0]*=$u,t[1]*=$u,t}return e=jc(e[0]*Zu,e[1]*Zu,e.length>2?e[2]*Zu:0),t.invert=function(t){return(t=e.invert(t[0]*Zu,t[1]*Zu))[0]*=$u,t[1]*=$u,t},t};function zc(e,t,n,r,i,o){if(n){var s=el(t),a=ol(t),u=r*n;null==i?(i=t+r*Gu,o=t-u/2):(i=Uc(s,i),o=Uc(s,o),(r>0?i<o:i>o)&&(i+=r*Gu));for(var l,c=i;r>0?c>o:c<o;c-=u)l=Ol([s,-a*el(c),-a*ol(c)]),e.point(l[0],l[1])}}function Uc(e,t){(t=Al(t))[0]-=e,Yl(t);var n=ll(-t[1]);return((-t[2]<0?-n:n)+Gu-Vu)%Gu}var qc=function(){var e,t,n=Rc([0,0]),r=Rc(90),i=Rc(6),o={point:function(n,r){e.push(n=t(n,r)),n[0]*=$u,n[1]*=$u}};function s(){var s=n.apply(this,arguments),a=r.apply(this,arguments)*Zu,u=i.apply(this,arguments)*Zu;return e=[],t=jc(-s[0]*Zu,-s[1]*Zu,0).invert,zc(o,a,u,1),s={type:"Polygon",coordinates:[e]},e=t=null,s}return s.center=function(e){return arguments.length?(n="function"==typeof e?e:Rc([+e[0],+e[1]]),s):n},s.radius=function(e){return arguments.length?(r="function"==typeof e?e:Rc(+e),s):r},s.precision=function(e){return arguments.length?(i="function"==typeof e?e:Rc(+e),s):i},s},Kc=function(){var e,t=[];return{point:function(t,n){e.push([t,n])},lineStart:function(){t.push(e=[])},lineEnd:hl,rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))},result:function(){var n=t;return t=[],e=null,n}}},Gc=function(e,t){return Xu(e[0]-t[0])<Vu&&Xu(e[1]-t[1])<Vu};function $c(e,t,n,r){this.x=e,this.z=t,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}var Zc=function(e,t,n,r,i){var o,s,a=[],u=[];if(e.forEach((function(e){if(!((t=e.length-1)<=0)){var t,n,r=e[0],s=e[t];if(Gc(r,s)){for(i.lineStart(),o=0;o<t;++o)i.point((r=e[o])[0],r[1]);i.lineEnd()}else a.push(n=new $c(r,e,null,!0)),u.push(n.o=new $c(r,null,n,!1)),a.push(n=new $c(s,e,null,!1)),u.push(n.o=new $c(s,null,n,!0))}})),a.length){for(u.sort(t),Xc(a),Xc(u),o=0,s=u.length;o<s;++o)u[o].e=n=!n;for(var l,c,d=a[0];;){for(var h=d,f=!0;h.v;)if((h=h.n)===d)return;l=h.z,i.lineStart();do{if(h.v=h.o.v=!0,h.e){if(f)for(o=0,s=l.length;o<s;++o)i.point((c=l[o])[0],c[1]);else r(h.x,h.n.x,1,i);h=h.n}else{if(f)for(l=h.p.z,o=l.length-1;o>=0;--o)i.point((c=l[o])[0],c[1]);else r(h.x,h.p.x,-1,i);h=h.p}l=(h=h.o).z,f=!f}while(!h.v);i.lineEnd()}}};function Xc(e){if(t=e.length){for(var t,n,r=0,i=e[0];++r<t;)i.n=n=e[r],n.p=i,i=n;i.n=n=e[0],n.p=i}}var Jc=ju();function Qc(e){return Xu(e[0])<=Uu?e[0]:sl(e[0])*((Xu(e[0])+Uu)%Gu-Uu)}var ed=function(e,t){var n=Qc(t),r=t[1],i=ol(r),o=[ol(n),-el(n),0],s=0,a=0;Jc.reset(),1===i?r=qu+Vu:-1===i&&(r=-qu-Vu);for(var u=0,l=e.length;u<l;++u)if(d=(c=e[u]).length)for(var c,d,h=c[d-1],f=Qc(h),p=h[1]/2+Ku,g=ol(p),m=el(p),_=0;_<d;++_,f=v,g=w,m=C,h=y){var y=c[_],v=Qc(y),b=y[1]/2+Ku,w=ol(b),C=el(b),S=v-f,x=S>=0?1:-1,L=x*S,k=L>Uu,M=g*w;if(Jc.add(Qu(M*x*ol(L),m*C+M*el(L))),s+=k?S+x*Gu:S,k^f>=n^v>=n){var D=Pl(Al(h),Al(y));Yl(D);var E=Pl(o,D);Yl(E);var T=(k^S>=0?-1:1)*cl(E[2]);(r>T||r===T&&(D[0]||D[1]))&&(a+=k^S>=0?1:-1)}}return(s<-Vu||s<Vu&&Jc<-Vu)^1&a},td=function(e,t,n,r){return function(i){var o,s,a,u=t(i),l=Kc(),c=t(l),d=!1,h={point:f,lineStart:g,lineEnd:m,polygonStart:function(){h.point=_,h.lineStart=y,h.lineEnd=v,s=[],o=[]},polygonEnd:function(){h.point=f,h.lineStart=g,h.lineEnd=m,s=F(s);var e=ed(o,r);s.length?(d||(i.polygonStart(),d=!0),Zc(s,rd,e,n,i)):e&&(d||(i.polygonStart(),d=!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),d&&(i.polygonEnd(),d=!1),s=o=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function f(t,n){e(t,n)&&i.point(t,n)}function p(e,t){u.point(e,t)}function g(){h.point=p,u.lineStart()}function m(){h.point=f,u.lineEnd()}function _(e,t){a.push([e,t]),c.point(e,t)}function y(){c.lineStart(),a=[]}function v(){_(a[0][0],a[0][1]),c.lineEnd();var e,t,n,r,u=c.clean(),h=l.result(),f=h.length;if(a.pop(),o.push(a),a=null,f)if(1&u){if((t=(n=h[0]).length-1)>0){for(d||(i.polygonStart(),d=!0),i.lineStart(),e=0;e<t;++e)i.point((r=n[e])[0],r[1]);i.lineEnd()}}else f>1&&2&u&&h.push(h.pop().concat(h.shift())),s.push(h.filter(nd))}return h}};function nd(e){return e.length>1}function rd(e,t){return((e=e.x)[0]<0?e[1]-qu-Vu:qu-e[1])-((t=t.x)[0]<0?t[1]-qu-Vu:qu-t[1])}var id=td((function(){return!0}),(function(e){var t,n=NaN,r=NaN,i=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(o,s){var a=o>0?Uu:-Uu,u=Xu(o-n);Xu(u-Uu)<Vu?(e.point(n,r=(r+s)/2>0?qu:-qu),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(a,r),e.point(o,r),t=0):i!==a&&u>=Uu&&(Xu(n-i)<Vu&&(n-=i*Vu),Xu(o-a)<Vu&&(o-=a*Vu),r=function(e,t,n,r){var i,o,s=ol(e-n);return Xu(s)>Vu?Ju((ol(t)*(o=el(r))*ol(n)-ol(r)*(i=el(t))*ol(e))/(i*o*s)):(t+r)/2}(n,r,o,s),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(a,r),t=0),e.point(n=o,r=s),i=a},lineEnd:function(){e.lineEnd(),n=r=NaN},clean:function(){return 2-t}}}),(function(e,t,n,r){var i;if(null==e)i=n*qu,r.point(-Uu,i),r.point(0,i),r.point(Uu,i),r.point(Uu,0),r.point(Uu,-i),r.point(0,-i),r.point(-Uu,-i),r.point(-Uu,0),r.point(-Uu,i);else if(Xu(e[0]-t[0])>Vu){var o=e[0]<t[0]?Uu:-Uu;i=n*o/2,r.point(-o,i),r.point(0,i),r.point(o,i)}else r.point(t[0],t[1])}),[-Uu,-qu]);var od=function(e){var t=el(e),n=6*Zu,r=t>0,i=Xu(t)>Vu;function o(e,n){return el(e)*el(n)>t}function s(e,n,r){var i=[1,0,0],o=Pl(Al(e),Al(n)),s=Il(o,o),a=o[0],u=s-a*a;if(!u)return!r&&e;var l=t*s/u,c=-t*a/u,d=Pl(i,o),h=Fl(i,l);Rl(h,Fl(o,c));var f=d,p=Il(h,f),g=Il(f,f),m=p*p-g*(Il(h,h)-1);if(!(m<0)){var _=al(m),y=Fl(f,(-p-_)/g);if(Rl(y,h),y=Ol(y),!r)return y;var v,b=e[0],w=n[0],C=e[1],S=n[1];w<b&&(v=b,b=w,w=v);var x=w-b,L=Xu(x-Uu)<Vu;if(!L&&S<C&&(v=C,C=S,S=v),L||x<Vu?L?C+S>0^y[1]<(Xu(y[0]-b)<Vu?C:S):C<=y[1]&&y[1]<=S:x>Uu^(b<=y[0]&&y[0]<=w)){var k=Fl(f,(-p+_)/g);return Rl(k,h),[y,Ol(k)]}}}function a(t,n){var i=r?e:Uu-e,o=0;return t<-i?o|=1:t>i&&(o|=2),n<-i?o|=4:n>i&&(o|=8),o}return td(o,(function(e){var t,n,u,l,c;return{lineStart:function(){l=u=!1,c=1},point:function(d,h){var f,p=[d,h],g=o(d,h),m=r?g?0:a(d,h):g?a(d+(d<0?Uu:-Uu),h):0;if(!t&&(l=u=g)&&e.lineStart(),g!==u&&(!(f=s(t,p))||Gc(t,f)||Gc(p,f))&&(p[0]+=Vu,p[1]+=Vu,g=o(p[0],p[1])),g!==u)c=0,g?(e.lineStart(),f=s(p,t),e.point(f[0],f[1])):(f=s(t,p),e.point(f[0],f[1]),e.lineEnd()),t=f;else if(i&&t&&r^g){var _;m&n||!(_=s(p,t,!0))||(c=0,r?(e.lineStart(),e.point(_[0][0],_[0][1]),e.point(_[1][0],_[1][1]),e.lineEnd()):(e.point(_[1][0],_[1][1]),e.lineEnd(),e.lineStart(),e.point(_[0][0],_[0][1])))}!g||t&&Gc(t,p)||e.point(p[0],p[1]),t=p,u=g,n=m},lineEnd:function(){u&&e.lineEnd(),t=null},clean:function(){return c|(l&&u)<<1}}}),(function(t,r,i,o){zc(o,e,n,i,t,r)}),r?[0,-e]:[-Uu,e-Uu])},sd=function(e,t,n,r,i,o){var s,a=e[0],u=e[1],l=0,c=1,d=t[0]-a,h=t[1]-u;if(s=n-a,d||!(s>0)){if(s/=d,d<0){if(s<l)return;s<c&&(c=s)}else if(d>0){if(s>c)return;s>l&&(l=s)}if(s=i-a,d||!(s<0)){if(s/=d,d<0){if(s>c)return;s>l&&(l=s)}else if(d>0){if(s<l)return;s<c&&(c=s)}if(s=r-u,h||!(s>0)){if(s/=h,h<0){if(s<l)return;s<c&&(c=s)}else if(h>0){if(s>c)return;s>l&&(l=s)}if(s=o-u,h||!(s<0)){if(s/=h,h<0){if(s>c)return;s>l&&(l=s)}else if(h>0){if(s<l)return;s<c&&(c=s)}return l>0&&(e[0]=a+l*d,e[1]=u+l*h),c<1&&(t[0]=a+c*d,t[1]=u+c*h),!0}}}}},ad=1e9,ud=-ad;function ld(e,t,n,r){function i(i,o){return e<=i&&i<=n&&t<=o&&o<=r}function o(i,o,a,l){var c=0,d=0;if(null==i||(c=s(i,a))!==(d=s(o,a))||u(i,o)<0^a>0)do{l.point(0===c||3===c?e:n,c>1?r:t)}while((c=(c+a+4)%4)!==d);else l.point(o[0],o[1])}function s(r,i){return Xu(r[0]-e)<Vu?i>0?0:3:Xu(r[0]-n)<Vu?i>0?2:1:Xu(r[1]-t)<Vu?i>0?1:0:i>0?3:2}function a(e,t){return u(e.x,t.x)}function u(e,t){var n=s(e,1),r=s(t,1);return n!==r?n-r:0===n?t[1]-e[1]:1===n?e[0]-t[0]:2===n?e[1]-t[1]:t[0]-e[0]}return function(s){var u,l,c,d,h,f,p,g,m,_,y,v=s,b=Kc(),w={point:C,lineStart:function(){w.point=S,l&&l.push(c=[]);_=!0,m=!1,p=g=NaN},lineEnd:function(){u&&(S(d,h),f&&m&&b.rejoin(),u.push(b.result()));w.point=C,m&&v.lineEnd()},polygonStart:function(){v=b,u=[],l=[],y=!0},polygonEnd:function(){var t=function(){for(var t=0,n=0,i=l.length;n<i;++n)for(var o,s,a=l[n],u=1,c=a.length,d=a[0],h=d[0],f=d[1];u<c;++u)o=h,s=f,d=a[u],h=d[0],f=d[1],s<=r?f>r&&(h-o)*(r-s)>(f-s)*(e-o)&&++t:f<=r&&(h-o)*(r-s)<(f-s)*(e-o)&&--t;return t}(),n=y&&t,i=(u=F(u)).length;(n||i)&&(s.polygonStart(),n&&(s.lineStart(),o(null,null,1,s),s.lineEnd()),i&&Zc(u,a,t,o,s),s.polygonEnd());v=s,u=l=c=null}};function C(e,t){i(e,t)&&v.point(e,t)}function S(o,s){var a=i(o,s);if(l&&c.push([o,s]),_)d=o,h=s,f=a,_=!1,a&&(v.lineStart(),v.point(o,s));else if(a&&m)v.point(o,s);else{var u=[p=Math.max(ud,Math.min(ad,p)),g=Math.max(ud,Math.min(ad,g))],b=[o=Math.max(ud,Math.min(ad,o)),s=Math.max(ud,Math.min(ad,s))];sd(u,b,e,t,n,r)?(m||(v.lineStart(),v.point(u[0],u[1])),v.point(b[0],b[1]),a||v.lineEnd(),y=!1):a&&(v.lineStart(),v.point(o,s),y=!1)}p=o,g=s,m=a}return w}}var cd,dd,hd,fd=function(){var e,t,n,r=0,i=0,o=960,s=500;return n={stream:function(n){return e&&t===n?e:e=ld(r,i,o,s)(t=n)},extent:function(a){return arguments.length?(r=+a[0][0],i=+a[0][1],o=+a[1][0],s=+a[1][1],e=t=null,n):[[r,i],[o,s]]}}},pd=ju(),gd={sphere:hl,point:hl,lineStart:function(){gd.point=_d,gd.lineEnd=md},lineEnd:hl,polygonStart:hl,polygonEnd:hl};function md(){gd.point=gd.lineEnd=hl}function _d(e,t){cd=e*=Zu,dd=ol(t*=Zu),hd=el(t),gd.point=yd}function yd(e,t){e*=Zu;var n=ol(t*=Zu),r=el(t),i=Xu(e-cd),o=el(i),s=r*ol(i),a=hd*n-dd*r*o,u=dd*n+hd*r*o;pd.add(Qu(al(s*s+a*a),u)),cd=e,dd=n,hd=r}var vd=function(e){return pd.reset(),Sl(e,gd),+pd},bd=[null,null],wd={type:"LineString",coordinates:bd},Cd=function(e,t){return bd[0]=e,bd[1]=t,vd(wd)},Sd={Feature:function(e,t){return Ld(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r<i;)if(Ld(n[r].geometry,t))return!0;return!1}},xd={Sphere:function(){return!0},Point:function(e,t){return kd(e.coordinates,t)},MultiPoint:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)if(kd(n[r],t))return!0;return!1},LineString:function(e,t){return Md(e.coordinates,t)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)if(Md(n[r],t))return!0;return!1},Polygon:function(e,t){return Dd(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)if(Dd(n[r],t))return!0;return!1},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,i=n.length;++r<i;)if(Ld(n[r],t))return!0;return!1}};function Ld(e,t){return!(!e||!xd.hasOwnProperty(e.type))&&xd[e.type](e,t)}function kd(e,t){return 0===Cd(e,t)}function Md(e,t){for(var n,r,i,o=0,s=e.length;o<s;o++){if(0===(r=Cd(e[o],t)))return!0;if(o>0&&(i=Cd(e[o],e[o-1]))>0&&n<=i&&r<=i&&(n+r-i)*(1-Math.pow((n-r)/i,2))<zu*i)return!0;n=r}return!1}function Dd(e,t){return!!ed(e.map(Ed),Td(t))}function Ed(e){return(e=e.map(Td)).pop(),e}function Td(e){return[e[0]*Zu,e[1]*Zu]}var Nd=function(e,t){return(e&&Sd.hasOwnProperty(e.type)?Sd[e.type]:Ld)(e,t)};function Od(e,t,n){var r=C(e,t-Vu,n).concat(t);return function(e){return r.map((function(t){return[e,t]}))}}function Ad(e,t,n){var r=C(e,t-Vu,n).concat(t);return function(e){return r.map((function(t){return[t,e]}))}}function Id(){var e,t,n,r,i,o,s,a,u,l,c,d,h=10,f=h,p=90,g=360,m=2.5;function _(){return{type:"MultiLineString",coordinates:y()}}function y(){return C(tl(r/p)*p,n,p).map(c).concat(C(tl(a/g)*g,s,g).map(d)).concat(C(tl(t/h)*h,e,h).filter((function(e){return Xu(e%p)>Vu})).map(u)).concat(C(tl(o/f)*f,i,f).filter((function(e){return Xu(e%g)>Vu})).map(l))}return _.lines=function(){return y().map((function(e){return{type:"LineString",coordinates:e}}))},_.outline=function(){return{type:"Polygon",coordinates:[c(r).concat(d(s).slice(1),c(n).reverse().slice(1),d(a).reverse().slice(1))]}},_.extent=function(e){return arguments.length?_.extentMajor(e).extentMinor(e):_.extentMinor()},_.extentMajor=function(e){return arguments.length?(r=+e[0][0],n=+e[1][0],a=+e[0][1],s=+e[1][1],r>n&&(e=r,r=n,n=e),a>s&&(e=a,a=s,s=e),_.precision(m)):[[r,a],[n,s]]},_.extentMinor=function(n){return arguments.length?(t=+n[0][0],e=+n[1][0],o=+n[0][1],i=+n[1][1],t>e&&(n=t,t=e,e=n),o>i&&(n=o,o=i,i=n),_.precision(m)):[[t,o],[e,i]]},_.step=function(e){return arguments.length?_.stepMajor(e).stepMinor(e):_.stepMinor()},_.stepMajor=function(e){return arguments.length?(p=+e[0],g=+e[1],_):[p,g]},_.stepMinor=function(e){return arguments.length?(h=+e[0],f=+e[1],_):[h,f]},_.precision=function(h){return arguments.length?(m=+h,u=Od(o,i,90),l=Ad(t,e,m),c=Od(a,s,90),d=Ad(r,n,m),_):m},_.extentMajor([[-180,-90+Vu],[180,90-Vu]]).extentMinor([[-180,-80-Vu],[180,80+Vu]])}function Pd(){return Id()()}var Rd,Fd,Yd,jd,Bd=function(e,t){var n=e[0]*Zu,r=e[1]*Zu,i=t[0]*Zu,o=t[1]*Zu,s=el(r),a=ol(r),u=el(o),l=ol(o),c=s*el(n),d=s*ol(n),h=u*el(i),f=u*ol(i),p=2*cl(al(dl(o-r)+s*u*dl(i-n))),g=ol(p),m=p?function(e){var t=ol(e*=p)/g,n=ol(p-e)/g,r=n*c+t*h,i=n*d+t*f,o=n*a+t*l;return[Qu(i,r)*$u,Qu(o,al(r*r+i*i))*$u]}:function(){return[n*$u,r*$u]};return m.distance=p,m},Wd=function(e){return e},Hd=ju(),Vd=ju(),zd={point:hl,lineStart:hl,lineEnd:hl,polygonStart:function(){zd.lineStart=Ud,zd.lineEnd=Gd},polygonEnd:function(){zd.lineStart=zd.lineEnd=zd.point=hl,Hd.add(Xu(Vd)),Vd.reset()},result:function(){var e=Hd/2;return Hd.reset(),e}};function Ud(){zd.point=qd}function qd(e,t){zd.point=Kd,Rd=Yd=e,Fd=jd=t}function Kd(e,t){Vd.add(jd*e-Yd*t),Yd=e,jd=t}function Gd(){Kd(Rd,Fd)}var $d=zd,Zd=1/0,Xd=Zd,Jd=-Zd,Qd=Jd;var eh,th,nh,rh,ih={point:function(e,t){e<Zd&&(Zd=e);e>Jd&&(Jd=e);t<Xd&&(Xd=t);t>Qd&&(Qd=t)},lineStart:hl,lineEnd:hl,polygonStart:hl,polygonEnd:hl,result:function(){var e=[[Zd,Xd],[Jd,Qd]];return Jd=Qd=-(Xd=Zd=1/0),e}},oh=0,sh=0,ah=0,uh=0,lh=0,ch=0,dh=0,hh=0,fh=0,ph={point:gh,lineStart:mh,lineEnd:vh,polygonStart:function(){ph.lineStart=bh,ph.lineEnd=wh},polygonEnd:function(){ph.point=gh,ph.lineStart=mh,ph.lineEnd=vh},result:function(){var e=fh?[dh/fh,hh/fh]:ch?[uh/ch,lh/ch]:ah?[oh/ah,sh/ah]:[NaN,NaN];return oh=sh=ah=uh=lh=ch=dh=hh=fh=0,e}};function gh(e,t){oh+=e,sh+=t,++ah}function mh(){ph.point=_h}function _h(e,t){ph.point=yh,gh(nh=e,rh=t)}function yh(e,t){var n=e-nh,r=t-rh,i=al(n*n+r*r);uh+=i*(nh+e)/2,lh+=i*(rh+t)/2,ch+=i,gh(nh=e,rh=t)}function vh(){ph.point=gh}function bh(){ph.point=Ch}function wh(){Sh(eh,th)}function Ch(e,t){ph.point=Sh,gh(eh=nh=e,th=rh=t)}function Sh(e,t){var n=e-nh,r=t-rh,i=al(n*n+r*r);uh+=i*(nh+e)/2,lh+=i*(rh+t)/2,ch+=i,dh+=(i=rh*e-nh*t)*(nh+e),hh+=i*(rh+t),fh+=3*i,gh(nh=e,rh=t)}var xh=ph;function Lh(e){this._context=e}Lh.prototype={_radius:4.5,pointRadius:function(e){return this._radius=e,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._context.moveTo(e,t),this._point=1;break;case 1:this._context.lineTo(e,t);break;default:this._context.moveTo(e+this._radius,t),this._context.arc(e,t,this._radius,0,Gu)}},result:hl};var kh,Mh,Dh,Eh,Th,Nh=ju(),Oh={point:hl,lineStart:function(){Oh.point=Ah},lineEnd:function(){kh&&Ih(Mh,Dh),Oh.point=hl},polygonStart:function(){kh=!0},polygonEnd:function(){kh=null},result:function(){var e=+Nh;return Nh.reset(),e}};function Ah(e,t){Oh.point=Ih,Mh=Eh=e,Dh=Th=t}function Ih(e,t){Eh-=e,Th-=t,Nh.add(al(Eh*Eh+Th*Th)),Eh=e,Th=t}var Ph=Oh;function Rh(){this._string=[]}function Fh(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}Rh.prototype={_radius:4.5,_circle:Fh(4.5),pointRadius:function(e){return(e=+e)!==this._radius&&(this._radius=e,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._string.push("M",e,",",t),this._point=1;break;case 1:this._string.push("L",e,",",t);break;default:null==this._circle&&(this._circle=Fh(this._radius)),this._string.push("M",e,",",t,this._circle)}},result:function(){if(this._string.length){var e=this._string.join("");return this._string=[],e}return null}};var Yh=function(e,t){var n,r,i=4.5;function o(e){return e&&("function"==typeof i&&r.pointRadius(+i.apply(this,arguments)),Sl(e,n(r))),r.result()}return o.area=function(e){return Sl(e,n($d)),$d.result()},o.measure=function(e){return Sl(e,n(Ph)),Ph.result()},o.bounds=function(e){return Sl(e,n(ih)),ih.result()},o.centroid=function(e){return Sl(e,n(xh)),xh.result()},o.projection=function(t){return arguments.length?(n=null==t?(e=null,Wd):(e=t).stream,o):e},o.context=function(e){return arguments.length?(r=null==e?(t=null,new Rh):new Lh(t=e),"function"!=typeof i&&r.pointRadius(i),o):t},o.pointRadius=function(e){return arguments.length?(i="function"==typeof e?e:(r.pointRadius(+e),+e),o):i},o.projection(e).context(t)},jh=function(e){return{stream:Bh(e)}};function Bh(e){return function(t){var n=new Wh;for(var r in e)n[r]=e[r];return n.stream=t,n}}function Wh(){}function Hh(e,t,n){var r=e.clipExtent&&e.clipExtent();return e.scale(150).translate([0,0]),null!=r&&e.clipExtent(null),Sl(n,e.stream(ih)),t(ih.result()),null!=r&&e.clipExtent(r),e}function Vh(e,t,n){return Hh(e,(function(n){var r=t[1][0]-t[0][0],i=t[1][1]-t[0][1],o=Math.min(r/(n[1][0]-n[0][0]),i/(n[1][1]-n[0][1])),s=+t[0][0]+(r-o*(n[1][0]+n[0][0]))/2,a=+t[0][1]+(i-o*(n[1][1]+n[0][1]))/2;e.scale(150*o).translate([s,a])}),n)}function zh(e,t,n){return Vh(e,[[0,0],t],n)}function Uh(e,t,n){return Hh(e,(function(n){var r=+t,i=r/(n[1][0]-n[0][0]),o=(r-i*(n[1][0]+n[0][0]))/2,s=-i*n[0][1];e.scale(150*i).translate([o,s])}),n)}function qh(e,t,n){return Hh(e,(function(n){var r=+t,i=r/(n[1][1]-n[0][1]),o=-i*n[0][0],s=(r-i*(n[1][1]+n[0][1]))/2;e.scale(150*i).translate([o,s])}),n)}Wh.prototype={constructor:Wh,point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var Kh=16,Gh=el(30*Zu),$h=function(e,t){return+t?function(e,t){function n(r,i,o,s,a,u,l,c,d,h,f,p,g,m){var _=l-r,y=c-i,v=_*_+y*y;if(v>4*t&&g--){var b=s+h,w=a+f,C=u+p,S=al(b*b+w*w+C*C),x=cl(C/=S),L=Xu(Xu(C)-1)<Vu||Xu(o-d)<Vu?(o+d)/2:Qu(w,b),k=e(L,x),M=k[0],D=k[1],E=M-r,T=D-i,N=y*E-_*T;(N*N/v>t||Xu((_*E+y*T)/v-.5)>.3||s*h+a*f+u*p<Gh)&&(n(r,i,o,s,a,u,M,D,L,b/=S,w/=S,C,g,m),m.point(M,D),n(M,D,L,b,w,C,l,c,d,h,f,p,g,m))}}return function(t){var r,i,o,s,a,u,l,c,d,h,f,p,g={point:m,lineStart:_,lineEnd:v,polygonStart:function(){t.polygonStart(),g.lineStart=b},polygonEnd:function(){t.polygonEnd(),g.lineStart=_}};function m(n,r){n=e(n,r),t.point(n[0],n[1])}function _(){c=NaN,g.point=y,t.lineStart()}function y(r,i){var o=Al([r,i]),s=e(r,i);n(c,d,l,h,f,p,c=s[0],d=s[1],l=r,h=o[0],f=o[1],p=o[2],Kh,t),t.point(c,d)}function v(){g.point=m,t.lineEnd()}function b(){_(),g.point=w,g.lineEnd=C}function w(e,t){y(r=e,t),i=c,o=d,s=h,a=f,u=p,g.point=y}function C(){n(c,d,l,h,f,p,i,o,r,s,a,u,Kh,t),g.lineEnd=v,v()}return g}}(e,t):function(e){return Bh({point:function(t,n){t=e(t,n),this.stream.point(t[0],t[1])}})}(e)};var Zh=Bh({point:function(e,t){this.stream.point(e*Zu,t*Zu)}});function Xh(e,t,n){function r(r,i){return[t+e*r,n-e*i]}return r.invert=function(r,i){return[(r-t)/e,(n-i)/e]},r}function Jh(e,t,n,r){var i=el(r),o=ol(r),s=i*e,a=o*e,u=i/e,l=o/e,c=(o*n-i*t)/e,d=(o*t+i*n)/e;function h(e,r){return[s*e-a*r+t,n-a*e-s*r]}return h.invert=function(e,t){return[u*e-l*t+c,d-l*e-u*t]},h}function Qh(e){return ef((function(){return e}))()}function ef(e){var t,n,r,i,o,s,a,u,l,c,d=150,h=480,f=250,p=0,g=0,m=0,_=0,y=0,v=0,b=null,w=id,C=null,S=Wd,x=.5;function L(e){return u(e[0]*Zu,e[1]*Zu)}function k(e){return(e=u.invert(e[0],e[1]))&&[e[0]*$u,e[1]*$u]}function M(){var e=Jh(d,0,0,v).apply(null,t(p,g)),r=(v?Jh:Xh)(d,h-e[0],f-e[1],v);return n=jc(m,_,y),a=Fc(t,r),u=Fc(n,a),s=$h(a,x),D()}function D(){return l=c=null,L}return L.stream=function(e){return l&&c===e?l:l=Zh(function(e){return Bh({point:function(t,n){var r=e(t,n);return this.stream.point(r[0],r[1])}})}(n)(w(s(S(c=e)))))},L.preclip=function(e){return arguments.length?(w=e,b=void 0,D()):w},L.postclip=function(e){return arguments.length?(S=e,C=r=i=o=null,D()):S},L.clipAngle=function(e){return arguments.length?(w=+e?od(b=e*Zu):(b=null,id),D()):b*$u},L.clipExtent=function(e){return arguments.length?(S=null==e?(C=r=i=o=null,Wd):ld(C=+e[0][0],r=+e[0][1],i=+e[1][0],o=+e[1][1]),D()):null==C?null:[[C,r],[i,o]]},L.scale=function(e){return arguments.length?(d=+e,M()):d},L.translate=function(e){return arguments.length?(h=+e[0],f=+e[1],M()):[h,f]},L.center=function(e){return arguments.length?(p=e[0]%360*Zu,g=e[1]%360*Zu,M()):[p*$u,g*$u]},L.rotate=function(e){return arguments.length?(m=e[0]%360*Zu,_=e[1]%360*Zu,y=e.length>2?e[2]%360*Zu:0,M()):[m*$u,_*$u,y*$u]},L.angle=function(e){return arguments.length?(v=e%360*Zu,M()):v*$u},L.precision=function(e){return arguments.length?(s=$h(a,x=e*e),D()):al(x)},L.fitExtent=function(e,t){return Vh(L,e,t)},L.fitSize=function(e,t){return zh(L,e,t)},L.fitWidth=function(e,t){return Uh(L,e,t)},L.fitHeight=function(e,t){return qh(L,e,t)},function(){return t=e.apply(this,arguments),L.invert=t.invert&&k,M()}}function tf(e){var t=0,n=Uu/3,r=ef(e),i=r(t,n);return i.parallels=function(e){return arguments.length?r(t=e[0]*Zu,n=e[1]*Zu):[t*$u,n*$u]},i}function nf(e,t){var n=ol(e),r=(n+ol(t))/2;if(Xu(r)<Vu)return function(e){var t=el(e);function n(e,n){return[e*t,ol(n)/t]}return n.invert=function(e,n){return[e/t,cl(n*t)]},n}(e);var i=1+n*(2*r-n),o=al(i)/r;function s(e,t){var n=al(i-2*r*ol(t))/r;return[n*ol(e*=r),o-n*el(e)]}return s.invert=function(e,t){var n=o-t;return[Qu(e,Xu(n))/r*sl(n),cl((i-(e*e+n*n)*r*r)/(2*r))]},s}var rf=function(){return tf(nf).scale(155.424).center([0,33.6442])},of=function(){return rf().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])};var sf=function(){var e,t,n,r,i,o,s=of(),a=rf().rotate([154,0]).center([-2,58.5]).parallels([55,65]),u=rf().rotate([157,0]).center([-3,19.9]).parallels([8,18]),l={point:function(e,t){o=[e,t]}};function c(e){var t=e[0],s=e[1];return o=null,n.point(t,s),o||(r.point(t,s),o)||(i.point(t,s),o)}function d(){return e=t=null,c}return c.invert=function(e){var t=s.scale(),n=s.translate(),r=(e[0]-n[0])/t,i=(e[1]-n[1])/t;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?a:i>=.166&&i<.234&&r>=-.214&&r<-.115?u:s).invert(e)},c.stream=function(n){return e&&t===n?e:(r=[s.stream(t=n),a.stream(n),u.stream(n)],i=r.length,e={point:function(e,t){for(var n=-1;++n<i;)r[n].point(e,t)},sphere:function(){for(var e=-1;++e<i;)r[e].sphere()},lineStart:function(){for(var e=-1;++e<i;)r[e].lineStart()},lineEnd:function(){for(var e=-1;++e<i;)r[e].lineEnd()},polygonStart:function(){for(var e=-1;++e<i;)r[e].polygonStart()},polygonEnd:function(){for(var e=-1;++e<i;)r[e].polygonEnd()}});var r,i},c.precision=function(e){return arguments.length?(s.precision(e),a.precision(e),u.precision(e),d()):s.precision()},c.scale=function(e){return arguments.length?(s.scale(e),a.scale(.35*e),u.scale(e),c.translate(s.translate())):s.scale()},c.translate=function(e){if(!arguments.length)return s.translate();var t=s.scale(),o=+e[0],c=+e[1];return n=s.translate(e).clipExtent([[o-.455*t,c-.238*t],[o+.455*t,c+.238*t]]).stream(l),r=a.translate([o-.307*t,c+.201*t]).clipExtent([[o-.425*t+Vu,c+.12*t+Vu],[o-.214*t-Vu,c+.234*t-Vu]]).stream(l),i=u.translate([o-.205*t,c+.212*t]).clipExtent([[o-.214*t+Vu,c+.166*t+Vu],[o-.115*t-Vu,c+.234*t-Vu]]).stream(l),d()},c.fitExtent=function(e,t){return Vh(c,e,t)},c.fitSize=function(e,t){return zh(c,e,t)},c.fitWidth=function(e,t){return Uh(c,e,t)},c.fitHeight=function(e,t){return qh(c,e,t)},c.scale(1070)};function af(e){return function(t,n){var r=el(t),i=el(n),o=e(r*i);return[o*i*ol(t),o*ol(n)]}}function uf(e){return function(t,n){var r=al(t*t+n*n),i=e(r),o=ol(i),s=el(i);return[Qu(t*o,r*s),cl(r&&n*o/r)]}}var lf=af((function(e){return al(2/(1+e))}));lf.invert=uf((function(e){return 2*cl(e/2)}));var cf=function(){return Qh(lf).scale(124.75).clipAngle(179.999)},df=af((function(e){return(e=ll(e))&&e/ol(e)}));df.invert=uf((function(e){return e}));var hf=function(){return Qh(df).scale(79.4188).clipAngle(179.999)};function ff(e,t){return[e,rl(ul((qu+t)/2))]}ff.invert=function(e,t){return[e,2*Ju(nl(t))-qu]};var pf=function(){return gf(ff).scale(961/Gu)};function gf(e){var t,n,r,i=Qh(e),o=i.center,s=i.scale,a=i.translate,u=i.clipExtent,l=null;function c(){var o=Uu*s(),a=i(Vc(i.rotate()).invert([0,0]));return u(null==l?[[a[0]-o,a[1]-o],[a[0]+o,a[1]+o]]:e===ff?[[Math.max(a[0]-o,l),t],[Math.min(a[0]+o,n),r]]:[[l,Math.max(a[1]-o,t)],[n,Math.min(a[1]+o,r)]])}return i.scale=function(e){return arguments.length?(s(e),c()):s()},i.translate=function(e){return arguments.length?(a(e),c()):a()},i.center=function(e){return arguments.length?(o(e),c()):o()},i.clipExtent=function(e){return arguments.length?(null==e?l=t=n=r=null:(l=+e[0][0],t=+e[0][1],n=+e[1][0],r=+e[1][1]),c()):null==l?null:[[l,t],[n,r]]},c()}function mf(e){return ul((qu+e)/2)}function _f(e,t){var n=el(e),r=e===t?ol(e):rl(n/el(t))/rl(mf(t)/mf(e)),i=n*il(mf(e),r)/r;if(!r)return ff;function o(e,t){i>0?t<-qu+Vu&&(t=-qu+Vu):t>qu-Vu&&(t=qu-Vu);var n=i/il(mf(t),r);return[n*ol(r*e),i-n*el(r*e)]}return o.invert=function(e,t){var n=i-t,o=sl(r)*al(e*e+n*n);return[Qu(e,Xu(n))/r*sl(n),2*Ju(il(i/o,1/r))-qu]},o}var yf=function(){return tf(_f).scale(109.5).parallels([30,30])};function vf(e,t){return[e,t]}vf.invert=vf;var bf=function(){return Qh(vf).scale(152.63)};function wf(e,t){var n=el(e),r=e===t?ol(e):(n-el(t))/(t-e),i=n/r+e;if(Xu(r)<Vu)return vf;function o(e,t){var n=i-t,o=r*e;return[n*ol(o),i-n*el(o)]}return o.invert=function(e,t){var n=i-t;return[Qu(e,Xu(n))/r*sl(n),i-sl(r)*al(e*e+n*n)]},o}var Cf=function(){return tf(wf).scale(131.154).center([0,13.9389])},Sf=1.340264,xf=-.081106,Lf=893e-6,kf=.003796,Mf=al(3)/2;function Df(e,t){var n=cl(Mf*ol(t)),r=n*n,i=r*r*r;return[e*el(n)/(Mf*(Sf+3*xf*r+i*(7*Lf+9*kf*r))),n*(Sf+xf*r+i*(Lf+kf*r))]}Df.invert=function(e,t){for(var n,r=t,i=r*r,o=i*i*i,s=0;s<12&&(o=(i=(r-=n=(r*(Sf+xf*i+o*(Lf+kf*i))-t)/(Sf+3*xf*i+o*(7*Lf+9*kf*i)))*r)*i*i,!(Xu(n)<zu));++s);return[Mf*e*(Sf+3*xf*i+o*(7*Lf+9*kf*i))/el(r),cl(ol(r)/Mf)]};var Ef=function(){return Qh(Df).scale(177.158)};function Tf(e,t){var n=el(t),r=el(e)*n;return[n*ol(e)/r,ol(t)/r]}Tf.invert=uf(Ju);var Nf=function(){return Qh(Tf).scale(144.049).clipAngle(60)};function Of(e,t,n,r){return 1===e&&1===t&&0===n&&0===r?Wd:Bh({point:function(i,o){this.stream.point(i*e+n,o*t+r)}})}var Af=function(){var e,t,n,r,i,o,s=1,a=0,u=0,l=1,c=1,d=Wd,h=null,f=Wd;function p(){return r=i=null,o}return o={stream:function(e){return r&&i===e?r:r=d(f(i=e))},postclip:function(r){return arguments.length?(f=r,h=e=t=n=null,p()):f},clipExtent:function(r){return arguments.length?(f=null==r?(h=e=t=n=null,Wd):ld(h=+r[0][0],e=+r[0][1],t=+r[1][0],n=+r[1][1]),p()):null==h?null:[[h,e],[t,n]]},scale:function(e){return arguments.length?(d=Of((s=+e)*l,s*c,a,u),p()):s},translate:function(e){return arguments.length?(d=Of(s*l,s*c,a=+e[0],u=+e[1]),p()):[a,u]},reflectX:function(e){return arguments.length?(d=Of(s*(l=e?-1:1),s*c,a,u),p()):l<0},reflectY:function(e){return arguments.length?(d=Of(s*l,s*(c=e?-1:1),a,u),p()):c<0},fitExtent:function(e,t){return Vh(o,e,t)},fitSize:function(e,t){return zh(o,e,t)},fitWidth:function(e,t){return Uh(o,e,t)},fitHeight:function(e,t){return qh(o,e,t)}}};function If(e,t){var n=t*t,r=n*n;return[e*(.8707-.131979*n+r*(r*(.003971*n-.001529*r)-.013791)),t*(1.007226+n*(.015085+r*(.028874*n-.044475-.005916*r)))]}If.invert=function(e,t){var n,r=t,i=25;do{var o=r*r,s=o*o;r-=n=(r*(1.007226+o*(.015085+s*(.028874*o-.044475-.005916*s)))-t)/(1.007226+o*(.045255+s*(.259866*o-.311325-.005916*11*s)))}while(Xu(n)>Vu&&--i>0);return[e/(.8707+(o=r*r)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),r]};var Pf=function(){return Qh(If).scale(175.295)};function Rf(e,t){return[el(t)*ol(e),ol(t)]}Rf.invert=uf(cl);var Ff=function(){return Qh(Rf).scale(249.5).clipAngle(90+Vu)};function Yf(e,t){var n=el(t),r=1+el(e)*n;return[n*ol(e)/r,ol(t)/r]}Yf.invert=uf((function(e){return 2*Ju(e)}));var jf=function(){return Qh(Yf).scale(250).clipAngle(142)};function Bf(e,t){return[rl(ul((qu+t)/2)),-e]}Bf.invert=function(e,t){return[-t,2*Ju(nl(e))-qu]};var Wf=function(){var e=gf(Bf),t=e.center,n=e.rotate;return e.center=function(e){return arguments.length?t([-e[1],e[0]]):[(e=t())[1],-e[0]]},e.rotate=function(e){return arguments.length?n([e[0],e[1],e.length>2?e[2]+90:90]):[(e=n())[0],e[1],e[2]-90]},n([0,0,90]).scale(159.155)};function Hf(e,t){return e.parent===t.parent?1:2}function Vf(e,t){return e+t.x}function zf(e,t){return Math.max(e,t.y)}var Uf=function(){var e=Hf,t=1,n=1,r=!1;function i(i){var o,s=0;i.eachAfter((function(t){var n=t.children;n?(t.x=function(e){return e.reduce(Vf,0)/e.length}(n),t.y=function(e){return 1+e.reduce(zf,0)}(n)):(t.x=o?s+=e(t,o):0,t.y=0,o=t)}));var a=function(e){for(var t;t=e.children;)e=t[0];return e}(i),u=function(e){for(var t;t=e.children;)e=t[t.length-1];return e}(i),l=a.x-e(a,u)/2,c=u.x+e(u,a)/2;return i.eachAfter(r?function(e){e.x=(e.x-i.x)*t,e.y=(i.y-e.y)*n}:function(e){e.x=(e.x-l)/(c-l)*t,e.y=(1-(i.y?e.y/i.y:1))*n})}return i.separation=function(t){return arguments.length?(e=t,i):e},i.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],i):r?null:[t,n]},i.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],i):r?[t,n]:null},i};function qf(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function Kf(e,t){var n,r,i,o,s,a=new Xf(e),u=+e.value&&(a.value=e.value),l=[a];for(null==t&&(t=Gf);n=l.pop();)if(u&&(n.value=+n.data.value),(i=t(n.data))&&(s=i.length))for(n.children=new Array(s),o=s-1;o>=0;--o)l.push(r=n.children[o]=new Xf(i[o])),r.parent=n,r.depth=n.depth+1;return a.eachBefore(Zf)}function Gf(e){return e.children}function $f(e){e.data=e.data.data}function Zf(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Xf(e){this.data=e,this.depth=this.height=0,this.parent=null}Xf.prototype=Kf.prototype={constructor:Xf,count:function(){return this.eachAfter(qf)},each:function(e){var t,n,r,i,o=this,s=[o];do{for(t=s.reverse(),s=[];o=t.pop();)if(e(o),n=o.children)for(r=0,i=n.length;r<i;++r)s.push(n[r])}while(s.length);return this},eachAfter:function(e){for(var t,n,r,i=this,o=[i],s=[];i=o.pop();)if(s.push(i),t=i.children)for(n=0,r=t.length;n<r;++n)o.push(t[n]);for(;i=s.pop();)e(i);return this},eachBefore:function(e){for(var t,n,r=this,i=[r];r=i.pop();)if(e(r),t=r.children)for(n=t.length-1;n>=0;--n)i.push(t[n]);return this},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;e=n.pop(),t=r.pop();for(;e===t;)i=e,e=n.pop(),t=r.pop();return i}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){var e=[];return this.each((function(t){e.push(t)})),e},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return Kf(this).eachBefore($f)}};var Jf=Array.prototype.slice;var Qf=function(e){for(var t,n,r=0,i=(e=function(e){for(var t,n,r=e.length;r;)n=Math.random()*r--|0,t=e[r],e[r]=e[n],e[n]=t;return e}(Jf.call(e))).length,o=[];r<i;)t=e[r],n&&np(n,t)?++r:(n=ip(o=ep(o,t)),r=0);return n};function ep(e,t){var n,r;if(rp(t,e))return[t];for(n=0;n<e.length;++n)if(tp(t,e[n])&&rp(op(e[n],t),e))return[e[n],t];for(n=0;n<e.length-1;++n)for(r=n+1;r<e.length;++r)if(tp(op(e[n],e[r]),t)&&tp(op(e[n],t),e[r])&&tp(op(e[r],t),e[n])&&rp(sp(e[n],e[r],t),e))return[e[n],e[r],t];throw new Error}function tp(e,t){var n=e.r-t.r,r=t.x-e.x,i=t.y-e.y;return n<0||n*n<r*r+i*i}function np(e,t){var n=e.r-t.r+1e-6,r=t.x-e.x,i=t.y-e.y;return n>0&&n*n>r*r+i*i}function rp(e,t){for(var n=0;n<t.length;++n)if(!np(e,t[n]))return!1;return!0}function ip(e){switch(e.length){case 1:return{x:(t=e[0]).x,y:t.y,r:t.r};case 2:return op(e[0],e[1]);case 3:return sp(e[0],e[1],e[2])}var t}function op(e,t){var n=e.x,r=e.y,i=e.r,o=t.x,s=t.y,a=t.r,u=o-n,l=s-r,c=a-i,d=Math.sqrt(u*u+l*l);return{x:(n+o+u/d*c)/2,y:(r+s+l/d*c)/2,r:(d+i+a)/2}}function sp(e,t,n){var r=e.x,i=e.y,o=e.r,s=t.x,a=t.y,u=t.r,l=n.x,c=n.y,d=n.r,h=r-s,f=r-l,p=i-a,g=i-c,m=u-o,_=d-o,y=r*r+i*i-o*o,v=y-s*s-a*a+u*u,b=y-l*l-c*c+d*d,w=f*p-h*g,C=(p*b-g*v)/(2*w)-r,S=(g*m-p*_)/w,x=(f*v-h*b)/(2*w)-i,L=(h*_-f*m)/w,k=S*S+L*L-1,M=2*(o+C*S+x*L),D=C*C+x*x-o*o,E=-(k?(M+Math.sqrt(M*M-4*k*D))/(2*k):D/M);return{x:r+C+S*E,y:i+x+L*E,r:E}}function ap(e,t,n){var r,i,o,s,a=e.x-t.x,u=e.y-t.y,l=a*a+u*u;l?(i=t.r+n.r,i*=i,s=e.r+n.r,i>(s*=s)?(r=(l+s-i)/(2*l),o=Math.sqrt(Math.max(0,s/l-r*r)),n.x=e.x-r*a-o*u,n.y=e.y-r*u+o*a):(r=(l+i-s)/(2*l),o=Math.sqrt(Math.max(0,i/l-r*r)),n.x=t.x+r*a-o*u,n.y=t.y+r*u+o*a)):(n.x=t.x+n.r,n.y=t.y)}function up(e,t){var n=e.r+t.r-1e-6,r=t.x-e.x,i=t.y-e.y;return n>0&&n*n>r*r+i*i}function lp(e){var t=e._,n=e.next._,r=t.r+n.r,i=(t.x*n.r+n.x*t.r)/r,o=(t.y*n.r+n.y*t.r)/r;return i*i+o*o}function cp(e){this._=e,this.next=null,this.previous=null}function dp(e){if(!(i=e.length))return 0;var t,n,r,i,o,s,a,u,l,c,d;if((t=e[0]).x=0,t.y=0,!(i>1))return t.r;if(n=e[1],t.x=-n.r,n.x=t.r,n.y=0,!(i>2))return t.r+n.r;ap(n,t,r=e[2]),t=new cp(t),n=new cp(n),r=new cp(r),t.next=r.previous=n,n.next=t.previous=r,r.next=n.previous=t;e:for(a=3;a<i;++a){ap(t._,n._,r=e[a]),r=new cp(r),u=n.next,l=t.previous,c=n._.r,d=t._.r;do{if(c<=d){if(up(u._,r._)){n=u,t.next=n,n.previous=t,--a;continue e}c+=u._.r,u=u.next}else{if(up(l._,r._)){(t=l).next=n,n.previous=t,--a;continue e}d+=l._.r,l=l.previous}}while(u!==l.next);for(r.previous=t,r.next=n,t.next=n.previous=n=r,o=lp(t);(r=r.next)!==n;)(s=lp(r))<o&&(t=r,o=s);n=t.next}for(t=[n._],r=n;(r=r.next)!==n;)t.push(r._);for(r=Qf(t),a=0;a<i;++a)(t=e[a]).x-=r.x,t.y-=r.y;return r.r}var hp=function(e){return dp(e),e};function fp(e){return null==e?null:pp(e)}function pp(e){if("function"!=typeof e)throw new Error;return e}function gp(){return 0}var mp=function(e){return function(){return e}};function _p(e){return Math.sqrt(e.value)}var yp=function(){var e=null,t=1,n=1,r=gp;function i(i){return i.x=t/2,i.y=n/2,e?i.eachBefore(vp(e)).eachAfter(bp(r,.5)).eachBefore(wp(1)):i.eachBefore(vp(_p)).eachAfter(bp(gp,1)).eachAfter(bp(r,i.r/Math.min(t,n))).eachBefore(wp(Math.min(t,n)/(2*i.r))),i}return i.radius=function(t){return arguments.length?(e=fp(t),i):e},i.size=function(e){return arguments.length?(t=+e[0],n=+e[1],i):[t,n]},i.padding=function(e){return arguments.length?(r="function"==typeof e?e:mp(+e),i):r},i};function vp(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function bp(e,t){return function(n){if(r=n.children){var r,i,o,s=r.length,a=e(n)*t||0;if(a)for(i=0;i<s;++i)r[i].r+=a;if(o=dp(r),a)for(i=0;i<s;++i)r[i].r-=a;n.r=o+a}}}function wp(e){return function(t){var n=t.parent;t.r*=e,n&&(t.x=n.x+e*t.x,t.y=n.y+e*t.y)}}var Cp=function(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)},Sp=function(e,t,n,r,i){for(var o,s=e.children,a=-1,u=s.length,l=e.value&&(r-t)/e.value;++a<u;)(o=s[a]).y0=n,o.y1=i,o.x0=t,o.x1=t+=o.value*l},xp=function(){var e=1,t=1,n=0,r=!1;function i(i){var o=i.height+1;return i.x0=i.y0=n,i.x1=e,i.y1=t/o,i.eachBefore(function(e,t){return function(r){r.children&&Sp(r,r.x0,e*(r.depth+1)/t,r.x1,e*(r.depth+2)/t);var i=r.x0,o=r.y0,s=r.x1-n,a=r.y1-n;s<i&&(i=s=(i+s)/2),a<o&&(o=a=(o+a)/2),r.x0=i,r.y0=o,r.x1=s,r.y1=a}}(t,o)),r&&i.eachBefore(Cp),i}return i.round=function(e){return arguments.length?(r=!!e,i):r},i.size=function(n){return arguments.length?(e=+n[0],t=+n[1],i):[e,t]},i.padding=function(e){return arguments.length?(n=+e,i):n},i},Lp="$",kp={depth:-1},Mp={};function Dp(e){return e.id}function Ep(e){return e.parentId}var Tp=function(){var e=Dp,t=Ep;function n(n){var r,i,o,s,a,u,l,c=n.length,d=new Array(c),h={};for(i=0;i<c;++i)r=n[i],a=d[i]=new Xf(r),null!=(u=e(r,i,n))&&(u+="")&&(h[l=Lp+(a.id=u)]=l in h?Mp:a);for(i=0;i<c;++i)if(a=d[i],null!=(u=t(n[i],i,n))&&(u+="")){if(!(s=h[Lp+u]))throw new Error("missing: "+u);if(s===Mp)throw new Error("ambiguous: "+u);s.children?s.children.push(a):s.children=[a],a.parent=s}else{if(o)throw new Error("multiple roots");o=a}if(!o)throw new Error("no root");if(o.parent=kp,o.eachBefore((function(e){e.depth=e.parent.depth+1,--c})).eachBefore(Zf),o.parent=null,c>0)throw new Error("cycle");return o}return n.id=function(t){return arguments.length?(e=pp(t),n):e},n.parentId=function(e){return arguments.length?(t=pp(e),n):t},n};function Np(e,t){return e.parent===t.parent?1:2}function Op(e){var t=e.children;return t?t[0]:e.t}function Ap(e){var t=e.children;return t?t[t.length-1]:e.t}function Ip(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function Pp(e,t,n){return e.a.parent===t.parent?e.a:n}function Rp(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}Rp.prototype=Object.create(Xf.prototype);var Fp=function(){var e=Np,t=1,n=1,r=null;function i(i){var u=function(e){for(var t,n,r,i,o,s=new Rp(e,0),a=[s];t=a.pop();)if(r=t._.children)for(t.children=new Array(o=r.length),i=o-1;i>=0;--i)a.push(n=t.children[i]=new Rp(r[i],i)),n.parent=t;return(s.parent=new Rp(null,0)).children=[s],s}(i);if(u.eachAfter(o),u.parent.m=-u.z,u.eachBefore(s),r)i.eachBefore(a);else{var l=i,c=i,d=i;i.eachBefore((function(e){e.x<l.x&&(l=e),e.x>c.x&&(c=e),e.depth>d.depth&&(d=e)}));var h=l===c?1:e(l,c)/2,f=h-l.x,p=t/(c.x+h+f),g=n/(d.depth||1);i.eachBefore((function(e){e.x=(e.x+f)*p,e.y=e.depth*g}))}return i}function o(t){var n=t.children,r=t.parent.children,i=t.i?r[t.i-1]:null;if(n){!function(e){for(var t,n=0,r=0,i=e.children,o=i.length;--o>=0;)(t=i[o]).z+=n,t.m+=n,n+=t.s+(r+=t.c)}(t);var o=(n[0].z+n[n.length-1].z)/2;i?(t.z=i.z+e(t._,i._),t.m=t.z-o):t.z=o}else i&&(t.z=i.z+e(t._,i._));t.parent.A=function(t,n,r){if(n){for(var i,o=t,s=t,a=n,u=o.parent.children[0],l=o.m,c=s.m,d=a.m,h=u.m;a=Ap(a),o=Op(o),a&&o;)u=Op(u),(s=Ap(s)).a=t,(i=a.z+d-o.z-l+e(a._,o._))>0&&(Ip(Pp(a,t,r),t,i),l+=i,c+=i),d+=a.m,l+=o.m,h+=u.m,c+=s.m;a&&!Ap(s)&&(s.t=a,s.m+=d-c),o&&!Op(u)&&(u.t=o,u.m+=l-h,r=t)}return r}(t,i,t.parent.A||r[0])}function s(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function a(e){e.x*=t,e.y=e.depth*n}return i.separation=function(t){return arguments.length?(e=t,i):e},i.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],i):r?null:[t,n]},i.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],i):r?[t,n]:null},i},Yp=function(e,t,n,r,i){for(var o,s=e.children,a=-1,u=s.length,l=e.value&&(i-n)/e.value;++a<u;)(o=s[a]).x0=t,o.x1=r,o.y0=n,o.y1=n+=o.value*l},jp=(1+Math.sqrt(5))/2;function Bp(e,t,n,r,i,o){for(var s,a,u,l,c,d,h,f,p,g,m,_=[],y=t.children,v=0,b=0,w=y.length,C=t.value;v<w;){u=i-n,l=o-r;do{c=y[b++].value}while(!c&&b<w);for(d=h=c,m=c*c*(g=Math.max(l/u,u/l)/(C*e)),p=Math.max(h/m,m/d);b<w;++b){if(c+=a=y[b].value,a<d&&(d=a),a>h&&(h=a),m=c*c*g,(f=Math.max(h/m,m/d))>p){c-=a;break}p=f}_.push(s={value:c,dice:u<l,children:y.slice(v,b)}),s.dice?Sp(s,n,r,i,C?r+=l*c/C:o):Yp(s,n,r,C?n+=u*c/C:i,o),C-=c,v=b}return _}var Wp=function e(t){function n(e,n,r,i,o){Bp(t,e,n,r,i,o)}return n.ratio=function(t){return e((t=+t)>1?t:1)},n}(jp),Hp=function(){var e=Wp,t=!1,n=1,r=1,i=[0],o=gp,s=gp,a=gp,u=gp,l=gp;function c(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(d),i=[0],t&&e.eachBefore(Cp),e}function d(t){var n=i[t.depth],r=t.x0+n,c=t.y0+n,d=t.x1-n,h=t.y1-n;d<r&&(r=d=(r+d)/2),h<c&&(c=h=(c+h)/2),t.x0=r,t.y0=c,t.x1=d,t.y1=h,t.children&&(n=i[t.depth+1]=o(t)/2,r+=l(t)-n,c+=s(t)-n,(d-=a(t)-n)<r&&(r=d=(r+d)/2),(h-=u(t)-n)<c&&(c=h=(c+h)/2),e(t,r,c,d,h))}return c.round=function(e){return arguments.length?(t=!!e,c):t},c.size=function(e){return arguments.length?(n=+e[0],r=+e[1],c):[n,r]},c.tile=function(t){return arguments.length?(e=pp(t),c):e},c.padding=function(e){return arguments.length?c.paddingInner(e).paddingOuter(e):c.paddingInner()},c.paddingInner=function(e){return arguments.length?(o="function"==typeof e?e:mp(+e),c):o},c.paddingOuter=function(e){return arguments.length?c.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):c.paddingTop()},c.paddingTop=function(e){return arguments.length?(s="function"==typeof e?e:mp(+e),c):s},c.paddingRight=function(e){return arguments.length?(a="function"==typeof e?e:mp(+e),c):a},c.paddingBottom=function(e){return arguments.length?(u="function"==typeof e?e:mp(+e),c):u},c.paddingLeft=function(e){return arguments.length?(l="function"==typeof e?e:mp(+e),c):l},c},Vp=function(e,t,n,r,i){var o,s,a=e.children,u=a.length,l=new Array(u+1);for(l[0]=s=o=0;o<u;++o)l[o+1]=s+=a[o].value;!function e(t,n,r,i,o,s,u){if(t>=n-1){var c=a[t];return c.x0=i,c.y0=o,c.x1=s,void(c.y1=u)}var d=l[t],h=r/2+d,f=t+1,p=n-1;for(;f<p;){var g=f+p>>>1;l[g]<h?f=g+1:p=g}h-l[f-1]<l[f]-h&&t+1<f&&--f;var m=l[f]-d,_=r-m;if(s-i>u-o){var y=(i*_+s*m)/r;e(t,f,m,i,o,y,u),e(f,n,_,y,o,s,u)}else{var v=(o*_+u*m)/r;e(t,f,m,i,o,s,v),e(f,n,_,i,v,s,u)}}(0,u,e.value,t,n,r,i)},zp=function(e,t,n,r,i){(1&e.depth?Yp:Sp)(e,t,n,r,i)},Up=function e(t){function n(e,n,r,i,o){if((s=e._squarify)&&s.ratio===t)for(var s,a,u,l,c,d=-1,h=s.length,f=e.value;++d<h;){for(u=(a=s[d]).children,l=a.value=0,c=u.length;l<c;++l)a.value+=u[l].value;a.dice?Sp(a,n,r,i,r+=(o-r)*a.value/f):Yp(a,n,r,n+=(i-n)*a.value/f,o),f-=a.value}else e._squarify=s=Bp(t,e,n,r,i,o),s.ratio=t}return n.ratio=function(t){return e((t=+t)>1?t:1)},n}(jp),qp=function(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}},Kp=function(e,t){var n=gn(+e,+t);return function(e){var t=n(e);return t-360*Math.floor(t/360)}},Gp=function(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}},$p=Math.SQRT2;function Zp(e){return((e=Math.exp(e))+1/e)/2}var Xp=function(e,t){var n,r,i=e[0],o=e[1],s=e[2],a=t[0],u=t[1],l=t[2],c=a-i,d=u-o,h=c*c+d*d;if(h<1e-12)r=Math.log(l/s)/$p,n=function(e){return[i+e*c,o+e*d,s*Math.exp($p*e*r)]};else{var f=Math.sqrt(h),p=(l*l-s*s+4*h)/(2*s*2*f),g=(l*l-s*s-4*h)/(2*l*2*f),m=Math.log(Math.sqrt(p*p+1)-p),_=Math.log(Math.sqrt(g*g+1)-g);r=(_-m)/$p,n=function(e){var t,n=e*r,a=Zp(m),u=s/(2*f)*(a*(t=$p*n+m,((t=Math.exp(2*t))-1)/(t+1))-function(e){return((e=Math.exp(e))-1/e)/2}(m));return[i+u*c,o+u*d,s*a/Zp($p*n+m)]}}return n.duration=1e3*r,n};function Jp(e){return function(t,n){var r=e((t=an(t)).h,(n=an(n)).h),i=_n(t.s,n.s),o=_n(t.l,n.l),s=_n(t.opacity,n.opacity);return function(e){return t.h=r(e),t.s=i(e),t.l=o(e),t.opacity=s(e),t+""}}}var Qp=Jp(gn),eg=Jp(_n);function tg(e,t){var n=_n((e=To(e)).l,(t=To(t)).l),r=_n(e.a,t.a),i=_n(e.b,t.b),o=_n(e.opacity,t.opacity);return function(t){return e.l=n(t),e.a=r(t),e.b=i(t),e.opacity=o(t),e+""}}function ng(e){return function(t,n){var r=e((t=Yo(t)).h,(n=Yo(n)).h),i=_n(t.c,n.c),o=_n(t.l,n.l),s=_n(t.opacity,n.opacity);return function(e){return t.h=r(e),t.c=i(e),t.l=o(e),t.opacity=s(e),t+""}}}var rg=ng(gn),ig=ng(_n);function og(e){return function t(n){function r(t,r){var i=e((t=Ko(t)).h,(r=Ko(r)).h),o=_n(t.s,r.s),s=_n(t.l,r.l),a=_n(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=o(e),t.l=s(Math.pow(e,n)),t.opacity=a(e),t+""}}return n=+n,r.gamma=t,r}(1)}var sg=og(gn),ag=og(_n);function ug(e,t){for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(i,i=t[++n]);return function(e){var t=Math.max(0,Math.min(r-1,Math.floor(e*=r)));return o[t](e-t)}}var lg=function(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e(r/(t-1));return n},cg=function(e){for(var t,n=-1,r=e.length,i=e[r-1],o=0;++n<r;)t=i,i=e[n],o+=t[1]*i[0]-t[0]*i[1];return o/2},dg=function(e){for(var t,n,r=-1,i=e.length,o=0,s=0,a=e[i-1],u=0;++r<i;)t=a,a=e[r],u+=n=t[0]*a[1]-a[0]*t[1],o+=(t[0]+a[0])*n,s+=(t[1]+a[1])*n;return[o/(u*=3),s/u]},hg=function(e,t,n){return(t[0]-e[0])*(n[1]-e[1])-(t[1]-e[1])*(n[0]-e[0])};function fg(e,t){return e[0]-t[0]||e[1]-t[1]}function pg(e){for(var t=e.length,n=[0,1],r=2,i=2;i<t;++i){for(;r>1&&hg(e[n[r-2]],e[n[r-1]],e[i])<=0;)--r;n[r++]=i}return n.slice(0,r)}var gg=function(e){if((n=e.length)<3)return null;var t,n,r=new Array(n),i=new Array(n);for(t=0;t<n;++t)r[t]=[+e[t][0],+e[t][1],t];for(r.sort(fg),t=0;t<n;++t)i[t]=[r[t][0],-r[t][1]];var o=pg(r),s=pg(i),a=s[0]===o[0],u=s[s.length-1]===o[o.length-1],l=[];for(t=o.length-1;t>=0;--t)l.push(e[r[o[t]][2]]);for(t=+a;t<s.length-u;++t)l.push(e[r[s[t]][2]]);return l},mg=function(e,t){for(var n,r,i=e.length,o=e[i-1],s=t[0],a=t[1],u=o[0],l=o[1],c=!1,d=0;d<i;++d)n=(o=e[d])[0],(r=o[1])>a!=l>a&&s<(u-n)*(a-r)/(l-r)+n&&(c=!c),u=n,l=r;return c},_g=function(e){for(var t,n,r=-1,i=e.length,o=e[i-1],s=o[0],a=o[1],u=0;++r<i;)t=s,n=a,t-=s=(o=e[r])[0],n-=a=o[1],u+=Math.sqrt(t*t+n*n);return u},yg=function(){return Math.random()},vg=function e(t){function n(e,n){return e=null==e?0:+e,n=null==n?1:+n,1===arguments.length?(n=e,e=0):n-=e,function(){return t()*n+e}}return n.source=e,n}(yg),bg=function e(t){function n(e,n){var r,i;return e=null==e?0:+e,n=null==n?1:+n,function(){var o;if(null!=r)o=r,r=null;else do{r=2*t()-1,o=2*t()-1,i=r*r+o*o}while(!i||i>1);return e+n*o*Math.sqrt(-2*Math.log(i)/i)}}return n.source=e,n}(yg),wg=function e(t){function n(){var e=bg.source(t).apply(this,arguments);return function(){return Math.exp(e())}}return n.source=e,n}(yg),Cg=function e(t){function n(e){return function(){for(var n=0,r=0;r<e;++r)n+=t();return n}}return n.source=e,n}(yg),Sg=function e(t){function n(e){var n=Cg.source(t)(e);return function(){return n()/e}}return n.source=e,n}(yg),xg=function e(t){function n(e){return function(){return-Math.log(1-t())/e}}return n.source=e,n}(yg);function Lg(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function kg(e,t){switch(arguments.length){case 0:break;case 1:this.interpolator(e);break;default:this.interpolator(t).domain(e)}return this}var Mg=Array.prototype,Dg=Mg.map,Eg=Mg.slice,Tg={name:"implicit"};function Ng(){var e=oo(),t=[],n=[],r=Tg;function i(i){var o=i+"",s=e.get(o);if(!s){if(r!==Tg)return r;e.set(o,s=t.push(i))}return n[(s-1)%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=oo();for(var r,o,s=-1,a=n.length;++s<a;)e.has(o=(r=n[s])+"")||e.set(o,t.push(r));return i},i.range=function(e){return arguments.length?(n=Eg.call(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return Ng(t,n).unknown(r)},Lg.apply(i,arguments),i}function Og(){var e,t,n=Ng().unknown(void 0),r=n.domain,i=n.range,o=[0,1],s=!1,a=0,u=0,l=.5;function c(){var n=r().length,c=o[1]<o[0],d=o[c-0],h=o[1-c];e=(h-d)/Math.max(1,n-a+2*u),s&&(e=Math.floor(e)),d+=(h-d-e*(n-a))*l,t=e*(1-a),s&&(d=Math.round(d),t=Math.round(t));var f=C(n).map((function(t){return d+e*t}));return i(c?f.reverse():f)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),c()):r()},n.range=function(e){return arguments.length?(o=[+e[0],+e[1]],c()):o.slice()},n.rangeRound=function(e){return o=[+e[0],+e[1]],s=!0,c()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(s=!!e,c()):s},n.padding=function(e){return arguments.length?(a=Math.min(1,u=+e),c()):a},n.paddingInner=function(e){return arguments.length?(a=Math.min(1,e),c()):a},n.paddingOuter=function(e){return arguments.length?(u=+e,c()):u},n.align=function(e){return arguments.length?(l=Math.max(0,Math.min(1,e)),c()):l},n.copy=function(){return Og(r(),o).round(s).paddingInner(a).paddingOuter(u).align(l)},Lg.apply(c(),arguments)}function Ag(){return function e(t){var n=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return e(n())},t}(Og.apply(null,arguments).paddingInner(1))}var Ig=function(e){return function(){return e}},Pg=function(e){return+e},Rg=[0,1];function Fg(e){return e}function Yg(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Ig(isNaN(t)?NaN:.5)}function jg(e){var t,n=e[0],r=e[e.length-1];return n>r&&(t=n,n=r,r=t),function(e){return Math.max(n,Math.min(r,e))}}function Bg(e,t,n){var r=e[0],i=e[1],o=t[0],s=t[1];return i<r?(r=Yg(i,r),o=n(s,o)):(r=Yg(r,i),o=n(o,s)),function(e){return o(r(e))}}function Wg(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),s=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<r;)i[s]=Yg(e[s],e[s+1]),o[s]=n(t[s],t[s+1]);return function(t){var n=u(e,t,1,r)-1;return o[n](i[n](t))}}function Hg(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Vg(){var e,t,n,r,i,o,s=Rg,a=Rg,u=In,l=Fg;function c(){return r=Math.min(s.length,a.length)>2?Wg:Bg,i=o=null,d}function d(t){return isNaN(t=+t)?n:(i||(i=r(s.map(e),a,u)))(e(l(t)))}return d.invert=function(n){return l(t((o||(o=r(a,s.map(e),Mn)))(n)))},d.domain=function(e){return arguments.length?(s=Dg.call(e,Pg),l===Fg||(l=jg(s)),c()):s.slice()},d.range=function(e){return arguments.length?(a=Eg.call(e),c()):a.slice()},d.rangeRound=function(e){return a=Eg.call(e),u=Gp,c()},d.clamp=function(e){return arguments.length?(l=e?jg(s):Fg,d):l!==Fg},d.interpolate=function(e){return arguments.length?(u=e,c()):u},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,c()}}function zg(e,t){return Vg()(e,t)}var Ug=function(e,t,n,r){var i,o=D(e,t,n);switch((r=Cu(null==r?",f":r)).type){case"s":var s=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(i=Fu(o,s))||(r.precision=i),Mu(r,s);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=Yu(o,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=Ru(o))||(r.precision=i-2*("%"===r.type))}return ku(r)};function qg(e){var t=e.domain;return e.ticks=function(e){var n=t();return k(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return Ug(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,i=t(),o=0,s=i.length-1,a=i[o],u=i[s];return u<a&&(r=a,a=u,u=r,r=o,o=s,s=r),(r=M(a,u,n))>0?r=M(a=Math.floor(a/r)*r,u=Math.ceil(u/r)*r,n):r<0&&(r=M(a=Math.ceil(a*r)/r,u=Math.floor(u*r)/r,n)),r>0?(i[o]=Math.floor(a/r)*r,i[s]=Math.ceil(u/r)*r,t(i)):r<0&&(i[o]=Math.ceil(a*r)/r,i[s]=Math.floor(u*r)/r,t(i)),e},e}function Kg(){var e=zg(Fg,Fg);return e.copy=function(){return Hg(e,Kg())},Lg.apply(e,arguments),qg(e)}function Gg(e){var t;function n(e){return isNaN(e=+e)?t:e}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=Dg.call(t,Pg),n):e.slice()},n.unknown=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return Gg(e).unknown(t)},e=arguments.length?Dg.call(e,Pg):[0,1],qg(n)}var $g=function(e,t){var n,r=0,i=(e=e.slice()).length-1,o=e[r],s=e[i];return s<o&&(n=r,r=i,i=n,n=o,o=s,s=n),e[r]=t.floor(o),e[i]=t.ceil(s),e};function Zg(e){return Math.log(e)}function Xg(e){return Math.exp(e)}function Jg(e){return-Math.log(-e)}function Qg(e){return-Math.exp(-e)}function em(e){return isFinite(e)?+("1e"+e):e<0?0:e}function tm(e){return function(t){return-e(-t)}}function nm(e){var t,n,r=e(Zg,Xg),i=r.domain,o=10;function s(){return t=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),function(t){return Math.log(t)/e})}(o),n=function(e){return 10===e?em:e===Math.E?Math.exp:function(t){return Math.pow(e,t)}}(o),i()[0]<0?(t=tm(t),n=tm(n),e(Jg,Qg)):e(Zg,Xg),r}return r.base=function(e){return arguments.length?(o=+e,s()):o},r.domain=function(e){return arguments.length?(i(e),s()):i()},r.ticks=function(e){var r,s=i(),a=s[0],u=s[s.length-1];(r=u<a)&&(h=a,a=u,u=h);var l,c,d,h=t(a),f=t(u),p=null==e?10:+e,g=[];if(!(o%1)&&f-h<p){if(h=Math.round(h)-1,f=Math.round(f)+1,a>0){for(;h<f;++h)for(c=1,l=n(h);c<o;++c)if(!((d=l*c)<a)){if(d>u)break;g.push(d)}}else for(;h<f;++h)for(c=o-1,l=n(h);c>=1;--c)if(!((d=l*c)<a)){if(d>u)break;g.push(d)}}else g=k(h,f,Math.min(f-h,p)).map(n);return r?g.reverse():g},r.tickFormat=function(e,i){if(null==i&&(i=10===o?".0e":","),"function"!=typeof i&&(i=ku(i)),e===1/0)return i;null==e&&(e=10);var s=Math.max(1,o*e/r.ticks().length);return function(e){var r=e/n(Math.round(t(e)));return r*o<o-.5&&(r*=o),r<=s?i(e):""}},r.nice=function(){return i($g(i(),{floor:function(e){return n(Math.floor(t(e)))},ceil:function(e){return n(Math.ceil(t(e)))}}))},r}function rm(){var e=nm(Vg()).domain([1,10]);return e.copy=function(){return Hg(e,rm()).base(e.base())},Lg.apply(e,arguments),e}function im(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function om(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function sm(e){var t=1,n=e(im(t),om(t));return n.constant=function(n){return arguments.length?e(im(t=+n),om(t)):t},qg(n)}function am(){var e=sm(Vg());return e.copy=function(){return Hg(e,am()).constant(e.constant())},Lg.apply(e,arguments)}function um(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function lm(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function cm(e){return e<0?-e*e:e*e}function dm(e){var t=e(Fg,Fg),n=1;function r(){return 1===n?e(Fg,Fg):.5===n?e(lm,cm):e(um(n),um(1/n))}return t.exponent=function(e){return arguments.length?(n=+e,r()):n},qg(t)}function hm(){var e=dm(Vg());return e.copy=function(){return Hg(e,hm()).exponent(e.exponent())},Lg.apply(e,arguments),e}function fm(){return hm.apply(null,arguments).exponent(.5)}function pm(){var e,t=[],n=[],i=[];function o(){var e=0,r=Math.max(1,n.length);for(i=new Array(r-1);++e<r;)i[e-1]=N(t,e/r);return s}function s(t){return isNaN(t=+t)?e:n[u(i,t)]}return s.invertExtent=function(e){var r=n.indexOf(e);return r<0?[NaN,NaN]:[r>0?i[r-1]:t[0],r<i.length?i[r]:t[t.length-1]]},s.domain=function(e){if(!arguments.length)return t.slice();t=[];for(var n,i=0,s=e.length;i<s;++i)null==(n=e[i])||isNaN(n=+n)||t.push(n);return t.sort(r),o()},s.range=function(e){return arguments.length?(n=Eg.call(e),o()):n.slice()},s.unknown=function(t){return arguments.length?(e=t,s):e},s.quantiles=function(){return i.slice()},s.copy=function(){return pm().domain(t).range(n).unknown(e)},Lg.apply(s,arguments)}function gm(){var e,t=0,n=1,r=1,i=[.5],o=[0,1];function s(t){return t<=t?o[u(i,t,0,r)]:e}function a(){var e=-1;for(i=new Array(r);++e<r;)i[e]=((e+1)*n-(e-r)*t)/(r+1);return s}return s.domain=function(e){return arguments.length?(t=+e[0],n=+e[1],a()):[t,n]},s.range=function(e){return arguments.length?(r=(o=Eg.call(e)).length-1,a()):o.slice()},s.invertExtent=function(e){var s=o.indexOf(e);return s<0?[NaN,NaN]:s<1?[t,i[0]]:s>=r?[i[r-1],n]:[i[s-1],i[s]]},s.unknown=function(t){return arguments.length?(e=t,s):s},s.thresholds=function(){return i.slice()},s.copy=function(){return gm().domain([t,n]).range(o).unknown(e)},Lg.apply(qg(s),arguments)}function mm(){var e,t=[.5],n=[0,1],r=1;function i(i){return i<=i?n[u(t,i,0,r)]:e}return i.domain=function(e){return arguments.length?(t=Eg.call(e),r=Math.min(t.length,n.length-1),i):t.slice()},i.range=function(e){return arguments.length?(n=Eg.call(e),r=Math.min(t.length,n.length-1),i):n.slice()},i.invertExtent=function(e){var r=n.indexOf(e);return[t[r-1],t[r]]},i.unknown=function(t){return arguments.length?(e=t,i):e},i.copy=function(){return mm().domain(t).range(n).unknown(e)},Lg.apply(i,arguments)}var _m=new Date,ym=new Date;function vm(e,t,n,r){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=function(t){return e(t=new Date(+t)),t},i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},i.range=function(n,r,o){var s,a=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return a;do{a.push(s=new Date(+n)),t(n,o),e(n)}while(s<n&&n<r);return a},i.filter=function(n){return vm((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(i.count=function(t,r){return _m.setTime(+t),ym.setTime(+r),e(_m),e(ym),Math.floor(n(_m,ym))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?function(t){return r(t)%e==0}:function(t){return i.count(0,t)%e==0}):i:null}),i}var bm=vm((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));bm.every=function(e){return isFinite(e=Math.floor(e))&&e>0?vm((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null};var wm=bm,Cm=bm.range,Sm=vm((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()})),xm=Sm,Lm=Sm.range,km=6e4,Mm=6048e5;function Dm(e){return vm((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*km)/Mm}))}var Em=Dm(0),Tm=Dm(1),Nm=Dm(2),Om=Dm(3),Am=Dm(4),Im=Dm(5),Pm=Dm(6),Rm=Em.range,Fm=Tm.range,Ym=Nm.range,jm=Om.range,Bm=Am.range,Wm=Im.range,Hm=Pm.range,Vm=vm((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*km)/864e5}),(function(e){return e.getDate()-1})),zm=Vm,Um=Vm.range,qm=vm((function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-e.getMinutes()*km)}),(function(e,t){e.setTime(+e+36e5*t)}),(function(e,t){return(t-e)/36e5}),(function(e){return e.getHours()})),Km=qm,Gm=qm.range,$m=vm((function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())}),(function(e,t){e.setTime(+e+t*km)}),(function(e,t){return(t-e)/km}),(function(e){return e.getMinutes()})),Zm=$m,Xm=$m.range,Jm=vm((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+1e3*t)}),(function(e,t){return(t-e)/1e3}),(function(e){return e.getUTCSeconds()})),Qm=Jm,e_=Jm.range,t_=vm((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));t_.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?vm((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):t_:null};var n_=t_,r_=t_.range;function i_(e){return vm((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/Mm}))}var o_=i_(0),s_=i_(1),a_=i_(2),u_=i_(3),l_=i_(4),c_=i_(5),d_=i_(6),h_=o_.range,f_=s_.range,p_=a_.range,g_=u_.range,m_=l_.range,__=c_.range,y_=d_.range,v_=vm((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/864e5}),(function(e){return e.getUTCDate()-1})),b_=v_,w_=v_.range,C_=vm((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));C_.every=function(e){return isFinite(e=Math.floor(e))&&e>0?vm((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null};var S_=C_,x_=C_.range;function L_(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function k_(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function M_(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function D_(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,s=e.shortDays,a=e.months,u=e.shortMonths,l=B_(i),c=W_(i),d=B_(o),h=W_(o),f=B_(s),p=W_(s),g=B_(a),m=W_(a),_=B_(u),y=W_(u),v={a:function(e){return s[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return u[e.getMonth()]},B:function(e){return a[e.getMonth()]},c:null,d:uy,e:uy,f:fy,H:ly,I:cy,j:dy,L:hy,m:py,M:gy,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:Vy,s:zy,S:my,u:_y,U:yy,V:vy,w:by,W:wy,x:null,X:null,y:Cy,Y:Sy,Z:xy,"%":Hy},b={a:function(e){return s[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return u[e.getUTCMonth()]},B:function(e){return a[e.getUTCMonth()]},c:null,d:Ly,e:Ly,f:Ty,H:ky,I:My,j:Dy,L:Ey,m:Ny,M:Oy,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:Vy,s:zy,S:Ay,u:Iy,U:Py,V:Ry,w:Fy,W:Yy,x:null,X:null,y:jy,Y:By,Z:Wy,"%":Hy},w={a:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=p[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=h[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=_.exec(t.slice(n));return r?(e.m=y[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=m[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return x(e,t,n,r)},d:J_,e:J_,f:iy,H:ey,I:ey,j:Q_,L:ry,m:X_,M:ty,p:function(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=c[r[0].toLowerCase()],n+r[0].length):-1},q:Z_,Q:sy,s:ay,S:ny,u:V_,U:z_,V:U_,w:H_,W:q_,x:function(e,t,r){return x(e,n,t,r)},X:function(e,t,n){return x(e,r,t,n)},y:G_,Y:K_,Z:$_,"%":oy};function C(e,t){return function(n){var r,i,o,s=[],a=-1,u=0,l=e.length;for(n instanceof Date||(n=new Date(+n));++a<l;)37===e.charCodeAt(a)&&(s.push(e.slice(u,a)),null!=(i=I_[r=e.charAt(++a)])?r=e.charAt(++a):i="e"===r?" ":"0",(o=t[r])&&(r=o(n,i)),s.push(r),u=a+1);return s.push(e.slice(u,a)),s.join("")}}function S(e,t){return function(n){var r,i,o=M_(1900,void 0,1);if(x(o,e,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(!t||"Z"in o||(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=k_(M_(o.y,0,1))).getUTCDay(),r=i>4||0===i?s_.ceil(r):s_(r),r=b_.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=L_(M_(o.y,0,1))).getDay(),r=i>4||0===i?Tm.ceil(r):Tm(r),r=zm.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?k_(M_(o.y,0,1)).getUTCDay():L_(M_(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,k_(o)):L_(o)}}function x(e,t,n,r){for(var i,o,s=0,a=t.length,u=n.length;s<a;){if(r>=u)return-1;if(37===(i=t.charCodeAt(s++))){if(i=t.charAt(s++),!(o=w[i in I_?t.charAt(s++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return(v.x=C(n,v),v.X=C(r,v),v.c=C(t,v),b.x=C(n,b),b.X=C(r,b),b.c=C(t,b),{format:function(e){var t=C(e+="",v);return t.toString=function(){return e},t},parse:function(e){var t=S(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=C(e+="",b);return t.toString=function(){return e},t},utcParse:function(e){var t=S(e+="",!0);return t.toString=function(){return e},t}})}var E_,T_,N_,O_,A_,I_={"-":"",_:" ",0:"0"},P_=/^\s*\d+/,R_=/^%/,F_=/[\\^$*+?|[\]().{}]/g;function Y_(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function j_(e){return e.replace(F_,"\\$&")}function B_(e){return new RegExp("^(?:"+e.map(j_).join("|")+")","i")}function W_(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function H_(e,t,n){var r=P_.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function V_(e,t,n){var r=P_.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function z_(e,t,n){var r=P_.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function U_(e,t,n){var r=P_.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function q_(e,t,n){var r=P_.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function K_(e,t,n){var r=P_.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function G_(e,t,n){var r=P_.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function $_(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Z_(e,t,n){var r=P_.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function X_(e,t,n){var r=P_.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function J_(e,t,n){var r=P_.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Q_(e,t,n){var r=P_.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function ey(e,t,n){var r=P_.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function ty(e,t,n){var r=P_.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function ny(e,t,n){var r=P_.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function ry(e,t,n){var r=P_.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function iy(e,t,n){var r=P_.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function oy(e,t,n){var r=R_.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function sy(e,t,n){var r=P_.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function ay(e,t,n){var r=P_.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function uy(e,t){return Y_(e.getDate(),t,2)}function ly(e,t){return Y_(e.getHours(),t,2)}function cy(e,t){return Y_(e.getHours()%12||12,t,2)}function dy(e,t){return Y_(1+zm.count(wm(e),e),t,3)}function hy(e,t){return Y_(e.getMilliseconds(),t,3)}function fy(e,t){return hy(e,t)+"000"}function py(e,t){return Y_(e.getMonth()+1,t,2)}function gy(e,t){return Y_(e.getMinutes(),t,2)}function my(e,t){return Y_(e.getSeconds(),t,2)}function _y(e){var t=e.getDay();return 0===t?7:t}function yy(e,t){return Y_(Em.count(wm(e)-1,e),t,2)}function vy(e,t){var n=e.getDay();return e=n>=4||0===n?Am(e):Am.ceil(e),Y_(Am.count(wm(e),e)+(4===wm(e).getDay()),t,2)}function by(e){return e.getDay()}function wy(e,t){return Y_(Tm.count(wm(e)-1,e),t,2)}function Cy(e,t){return Y_(e.getFullYear()%100,t,2)}function Sy(e,t){return Y_(e.getFullYear()%1e4,t,4)}function xy(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Y_(t/60|0,"0",2)+Y_(t%60,"0",2)}function Ly(e,t){return Y_(e.getUTCDate(),t,2)}function ky(e,t){return Y_(e.getUTCHours(),t,2)}function My(e,t){return Y_(e.getUTCHours()%12||12,t,2)}function Dy(e,t){return Y_(1+b_.count(S_(e),e),t,3)}function Ey(e,t){return Y_(e.getUTCMilliseconds(),t,3)}function Ty(e,t){return Ey(e,t)+"000"}function Ny(e,t){return Y_(e.getUTCMonth()+1,t,2)}function Oy(e,t){return Y_(e.getUTCMinutes(),t,2)}function Ay(e,t){return Y_(e.getUTCSeconds(),t,2)}function Iy(e){var t=e.getUTCDay();return 0===t?7:t}function Py(e,t){return Y_(o_.count(S_(e)-1,e),t,2)}function Ry(e,t){var n=e.getUTCDay();return e=n>=4||0===n?l_(e):l_.ceil(e),Y_(l_.count(S_(e),e)+(4===S_(e).getUTCDay()),t,2)}function Fy(e){return e.getUTCDay()}function Yy(e,t){return Y_(s_.count(S_(e)-1,e),t,2)}function jy(e,t){return Y_(e.getUTCFullYear()%100,t,2)}function By(e,t){return Y_(e.getUTCFullYear()%1e4,t,4)}function Wy(){return"+0000"}function Hy(){return"%"}function Vy(e){return+e}function zy(e){return Math.floor(+e/1e3)}function Uy(e){return E_=D_(e),T_=E_.format,N_=E_.parse,O_=E_.utcFormat,A_=E_.utcParse,E_}Uy({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var qy=1e3,Ky=60*qy,Gy=60*Ky,$y=24*Gy,Zy=7*$y,Xy=30*$y,Jy=365*$y;function Qy(e){return new Date(e)}function ev(e){return e instanceof Date?+e:+new Date(+e)}function tv(e,t,n,r,o,s,a,u,l){var c=zg(Fg,Fg),d=c.invert,h=c.domain,f=l(".%L"),p=l(":%S"),g=l("%I:%M"),m=l("%I %p"),_=l("%a %d"),y=l("%b %d"),v=l("%B"),b=l("%Y"),w=[[a,1,qy],[a,5,5*qy],[a,15,15*qy],[a,30,30*qy],[s,1,Ky],[s,5,5*Ky],[s,15,15*Ky],[s,30,30*Ky],[o,1,Gy],[o,3,3*Gy],[o,6,6*Gy],[o,12,12*Gy],[r,1,$y],[r,2,2*$y],[n,1,Zy],[t,1,Xy],[t,3,3*Xy],[e,1,Jy]];function C(i){return(a(i)<i?f:s(i)<i?p:o(i)<i?g:r(i)<i?m:t(i)<i?n(i)<i?_:y:e(i)<i?v:b)(i)}function S(t,n,r,o){if(null==t&&(t=10),"number"==typeof t){var s=Math.abs(r-n)/t,a=i((function(e){return e[2]})).right(w,s);a===w.length?(o=D(n/Jy,r/Jy,t),t=e):a?(o=(a=w[s/w[a-1][2]<w[a][2]/s?a-1:a])[1],t=a[0]):(o=Math.max(D(n,r,t),1),t=u)}return null==o?t:t.every(o)}return c.invert=function(e){return new Date(d(e))},c.domain=function(e){return arguments.length?h(Dg.call(e,ev)):h().map(Qy)},c.ticks=function(e,t){var n,r=h(),i=r[0],o=r[r.length-1],s=o<i;return s&&(n=i,i=o,o=n),n=(n=S(e,i,o,t))?n.range(i,o+1):[],s?n.reverse():n},c.tickFormat=function(e,t){return null==t?C:l(t)},c.nice=function(e,t){var n=h();return(e=S(e,n[0],n[n.length-1],t))?h($g(n,e)):c},c.copy=function(){return Hg(c,tv(e,t,n,r,o,s,a,u,l))},c}var nv=function(){return Lg.apply(tv(wm,xm,Em,zm,Km,Zm,Qm,n_,T_).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},rv=vm((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()})),iv=rv,ov=rv.range,sv=vm((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+36e5*t)}),(function(e,t){return(t-e)/36e5}),(function(e){return e.getUTCHours()})),av=sv,uv=sv.range,lv=vm((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*km)}),(function(e,t){return(t-e)/km}),(function(e){return e.getUTCMinutes()})),cv=lv,dv=lv.range,hv=function(){return Lg.apply(tv(S_,iv,o_,b_,av,cv,Qm,n_,O_).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)};function fv(){var e,t,n,r,i,o=0,s=1,a=Fg,u=!1;function l(t){return isNaN(t=+t)?i:a(0===n?.5:(t=(r(t)-e)*n,u?Math.max(0,Math.min(1,t)):t))}return l.domain=function(i){return arguments.length?(e=r(o=+i[0]),t=r(s=+i[1]),n=e===t?0:1/(t-e),l):[o,s]},l.clamp=function(e){return arguments.length?(u=!!e,l):u},l.interpolator=function(e){return arguments.length?(a=e,l):a},l.unknown=function(e){return arguments.length?(i=e,l):i},function(i){return r=i,e=i(o),t=i(s),n=e===t?0:1/(t-e),l}}function pv(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function gv(){var e=qg(fv()(Fg));return e.copy=function(){return pv(e,gv())},kg.apply(e,arguments)}function mv(){var e=nm(fv()).domain([1,10]);return e.copy=function(){return pv(e,mv()).base(e.base())},kg.apply(e,arguments)}function _v(){var e=sm(fv());return e.copy=function(){return pv(e,_v()).constant(e.constant())},kg.apply(e,arguments)}function yv(){var e=dm(fv());return e.copy=function(){return pv(e,yv()).exponent(e.exponent())},kg.apply(e,arguments)}function vv(){return yv.apply(null,arguments).exponent(.5)}function bv(){var e=[],t=Fg;function n(n){if(!isNaN(n=+n))return t((u(e,n)-1)/(e.length-1))}return n.domain=function(t){if(!arguments.length)return e.slice();e=[];for(var i,o=0,s=t.length;o<s;++o)null==(i=t[o])||isNaN(i=+i)||e.push(i);return e.sort(r),n},n.interpolator=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return bv(t).domain(e)},kg.apply(n,arguments)}function wv(){var e,t,n,r,i,o,s,a=0,u=.5,l=1,c=Fg,d=!1;function h(e){return isNaN(e=+e)?s:(e=.5+((e=+o(e))-t)*(e<t?r:i),c(d?Math.max(0,Math.min(1,e)):e))}return h.domain=function(s){return arguments.length?(e=o(a=+s[0]),t=o(u=+s[1]),n=o(l=+s[2]),r=e===t?0:.5/(t-e),i=t===n?0:.5/(n-t),h):[a,u,l]},h.clamp=function(e){return arguments.length?(d=!!e,h):d},h.interpolator=function(e){return arguments.length?(c=e,h):c},h.unknown=function(e){return arguments.length?(s=e,h):s},function(s){return o=s,e=s(a),t=s(u),n=s(l),r=e===t?0:.5/(t-e),i=t===n?0:.5/(n-t),h}}function Cv(){var e=qg(wv()(Fg));return e.copy=function(){return pv(e,Cv())},kg.apply(e,arguments)}function Sv(){var e=nm(wv()).domain([.1,1,10]);return e.copy=function(){return pv(e,Sv()).base(e.base())},kg.apply(e,arguments)}function xv(){var e=sm(wv());return e.copy=function(){return pv(e,xv()).constant(e.constant())},kg.apply(e,arguments)}function Lv(){var e=dm(wv());return e.copy=function(){return pv(e,Lv()).exponent(e.exponent())},kg.apply(e,arguments)}function kv(){return Lv.apply(null,arguments).exponent(.5)}var Mv=function(e){for(var t=e.length/6|0,n=new Array(t),r=0;r<t;)n[r]="#"+e.slice(6*r,6*++r);return n},Dv=Mv("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),Ev=Mv("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),Tv=Mv("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),Nv=Mv("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),Ov=Mv("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),Av=Mv("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),Iv=Mv("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),Pv=Mv("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),Rv=Mv("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),Fv=Mv("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),Yv=function(e){return bn(e[e.length-1])},jv=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Mv),Bv=Yv(jv),Wv=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Mv),Hv=Yv(Wv),Vv=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Mv),zv=Yv(Vv),Uv=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Mv),qv=Yv(Uv),Kv=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Mv),Gv=Yv(Kv),$v=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Mv),Zv=Yv($v),Xv=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Mv),Jv=Yv(Xv),Qv=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Mv),eb=Yv(Qv),tb=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Mv),nb=Yv(tb),rb=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Mv),ib=Yv(rb),ob=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Mv),sb=Yv(ob),ab=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Mv),ub=Yv(ab),lb=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Mv),cb=Yv(lb),db=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Mv),hb=Yv(db),fb=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Mv),pb=Yv(fb),gb=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Mv),mb=Yv(gb),_b=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Mv),yb=Yv(_b),vb=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Mv),bb=Yv(vb),wb=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Mv),Cb=Yv(wb),Sb=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Mv),xb=Yv(Sb),Lb=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Mv),kb=Yv(Lb),Mb=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Mv),Db=Yv(Mb),Eb=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Mv),Tb=Yv(Eb),Nb=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Mv),Ob=Yv(Nb),Ab=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Mv),Ib=Yv(Ab),Pb=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Mv),Rb=Yv(Pb),Fb=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Mv),Yb=Yv(Fb),jb=function(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-e*(35.34-e*(2381.73-e*(6402.7-e*(7024.72-2710.57*e)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+e*(170.73+e*(52.82-e*(131.46-e*(176.58-67.37*e)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+e*(442.36-e*(2482.43-e*(6167.24-e*(6614.94-2475.67*e)))))))+")"},Bb=ag(Ko(300,.5,0),Ko(-240,.5,1)),Wb=ag(Ko(-100,.75,.35),Ko(80,1.5,.8)),Hb=ag(Ko(260,.75,.35),Ko(80,1.5,.8)),Vb=Ko(),zb=function(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return Vb.h=360*e-100,Vb.s=1.5-1.5*t,Vb.l=.8-.9*t,Vb+""},Ub=Qt(),qb=Math.PI/3,Kb=2*Math.PI/3,Gb=function(e){var t;return e=(.5-e)*Math.PI,Ub.r=255*(t=Math.sin(e))*t,Ub.g=255*(t=Math.sin(e+qb))*t,Ub.b=255*(t=Math.sin(e+Kb))*t,Ub+""},$b=function(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+e*(1172.33-e*(10793.56-e*(33300.12-e*(38394.49-14825.05*e)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+707.56*e)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-6838.66*e)))))))+")"};function Zb(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}var Xb=Zb(Mv("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),Jb=Zb(Mv("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),Qb=Zb(Mv("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),ew=Zb(Mv("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),tw=function(e){return Dt(ut(e).call(document.documentElement))},nw=0;function rw(){return new iw}function iw(){this._="@"+(++nw).toString(36)}iw.prototype=rw.prototype={constructor:iw,get:function(e){for(var t=this._;!(t in e);)if(!(e=e.parentNode))return;return e[t]},set:function(e,t){return e[this._]=t},remove:function(e){return this._ in e&&delete e[this._]},toString:function(){return this._}};var ow=function(e){return"string"==typeof e?new Lt([document.querySelectorAll(e)],[document.documentElement]):new Lt([null==e?[]:e],xt)},sw=function(e,t){null==t&&(t=Pn().touches);for(var n=0,r=t?t.length:0,i=new Array(r);n<r;++n)i[n]=Rn(e,t[n]);return i},aw=function(e){return function(){return e}},uw=Math.abs,lw=Math.atan2,cw=Math.cos,dw=Math.max,hw=Math.min,fw=Math.sin,pw=Math.sqrt,gw=1e-12,mw=Math.PI,_w=mw/2,yw=2*mw;function vw(e){return e>=1?_w:e<=-1?-_w:Math.asin(e)}function bw(e){return e.innerRadius}function ww(e){return e.outerRadius}function Cw(e){return e.startAngle}function Sw(e){return e.endAngle}function xw(e){return e&&e.padAngle}function Lw(e,t,n,r,i,o,s){var a=e-n,u=t-r,l=(s?o:-o)/pw(a*a+u*u),c=l*u,d=-l*a,h=e+c,f=t+d,p=n+c,g=r+d,m=(h+p)/2,_=(f+g)/2,y=p-h,v=g-f,b=y*y+v*v,w=i-o,C=h*g-p*f,S=(v<0?-1:1)*pw(dw(0,w*w*b-C*C)),x=(C*v-y*S)/b,L=(-C*y-v*S)/b,k=(C*v+y*S)/b,M=(-C*y+v*S)/b,D=x-m,E=L-_,T=k-m,N=M-_;return D*D+E*E>T*T+N*N&&(x=k,L=M),{cx:x,cy:L,x01:-c,y01:-d,x11:x*(i/w-1),y11:L*(i/w-1)}}var kw=function(){var e=bw,t=ww,n=aw(0),r=null,i=Cw,o=Sw,s=xw,a=null;function u(){var u,l,c,d=+e.apply(this,arguments),h=+t.apply(this,arguments),f=i.apply(this,arguments)-_w,p=o.apply(this,arguments)-_w,g=uw(p-f),m=p>f;if(a||(a=u=Zi()),h<d&&(l=h,h=d,d=l),h>gw)if(g>yw-gw)a.moveTo(h*cw(f),h*fw(f)),a.arc(0,0,h,f,p,!m),d>gw&&(a.moveTo(d*cw(p),d*fw(p)),a.arc(0,0,d,p,f,m));else{var _,y,v=f,b=p,w=f,C=p,S=g,x=g,L=s.apply(this,arguments)/2,k=L>gw&&(r?+r.apply(this,arguments):pw(d*d+h*h)),M=hw(uw(h-d)/2,+n.apply(this,arguments)),D=M,E=M;if(k>gw){var T=vw(k/d*fw(L)),N=vw(k/h*fw(L));(S-=2*T)>gw?(w+=T*=m?1:-1,C-=T):(S=0,w=C=(f+p)/2),(x-=2*N)>gw?(v+=N*=m?1:-1,b-=N):(x=0,v=b=(f+p)/2)}var O=h*cw(v),A=h*fw(v),I=d*cw(C),P=d*fw(C);if(M>gw){var R,F=h*cw(b),Y=h*fw(b),j=d*cw(w),B=d*fw(w);if(g<mw&&(R=function(e,t,n,r,i,o,s,a){var u=n-e,l=r-t,c=s-i,d=a-o,h=d*u-c*l;if(!(h*h<gw))return[e+(h=(c*(t-o)-d*(e-i))/h)*u,t+h*l]}(O,A,j,B,F,Y,I,P))){var W=O-R[0],H=A-R[1],V=F-R[0],z=Y-R[1],U=1/fw(((c=(W*V+H*z)/(pw(W*W+H*H)*pw(V*V+z*z)))>1?0:c<-1?mw:Math.acos(c))/2),q=pw(R[0]*R[0]+R[1]*R[1]);D=hw(M,(d-q)/(U-1)),E=hw(M,(h-q)/(U+1))}}x>gw?E>gw?(_=Lw(j,B,O,A,h,E,m),y=Lw(F,Y,I,P,h,E,m),a.moveTo(_.cx+_.x01,_.cy+_.y01),E<M?a.arc(_.cx,_.cy,E,lw(_.y01,_.x01),lw(y.y01,y.x01),!m):(a.arc(_.cx,_.cy,E,lw(_.y01,_.x01),lw(_.y11,_.x11),!m),a.arc(0,0,h,lw(_.cy+_.y11,_.cx+_.x11),lw(y.cy+y.y11,y.cx+y.x11),!m),a.arc(y.cx,y.cy,E,lw(y.y11,y.x11),lw(y.y01,y.x01),!m))):(a.moveTo(O,A),a.arc(0,0,h,v,b,!m)):a.moveTo(O,A),d>gw&&S>gw?D>gw?(_=Lw(I,P,F,Y,d,-D,m),y=Lw(O,A,j,B,d,-D,m),a.lineTo(_.cx+_.x01,_.cy+_.y01),D<M?a.arc(_.cx,_.cy,D,lw(_.y01,_.x01),lw(y.y01,y.x01),!m):(a.arc(_.cx,_.cy,D,lw(_.y01,_.x01),lw(_.y11,_.x11),!m),a.arc(0,0,d,lw(_.cy+_.y11,_.cx+_.x11),lw(y.cy+y.y11,y.cx+y.x11),m),a.arc(y.cx,y.cy,D,lw(y.y11,y.x11),lw(y.y01,y.x01),!m))):a.arc(0,0,d,C,w,m):a.lineTo(I,P)}else a.moveTo(0,0);if(a.closePath(),u)return a=null,u+""||null}return u.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-mw/2;return[cw(r)*n,fw(r)*n]},u.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:aw(+t),u):e},u.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:aw(+e),u):t},u.cornerRadius=function(e){return arguments.length?(n="function"==typeof e?e:aw(+e),u):n},u.padRadius=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:aw(+e),u):r},u.startAngle=function(e){return arguments.length?(i="function"==typeof e?e:aw(+e),u):i},u.endAngle=function(e){return arguments.length?(o="function"==typeof e?e:aw(+e),u):o},u.padAngle=function(e){return arguments.length?(s="function"==typeof e?e:aw(+e),u):s},u.context=function(e){return arguments.length?(a=null==e?null:e,u):a},u};function Mw(e){this._context=e}Mw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};var Dw=function(e){return new Mw(e)};function Ew(e){return e[0]}function Tw(e){return e[1]}var Nw=function(){var e=Ew,t=Tw,n=aw(!0),r=null,i=Dw,o=null;function s(s){var a,u,l,c=s.length,d=!1;for(null==r&&(o=i(l=Zi())),a=0;a<=c;++a)!(a<c&&n(u=s[a],a,s))===d&&((d=!d)?o.lineStart():o.lineEnd()),d&&o.point(+e(u,a,s),+t(u,a,s));if(l)return o=null,l+""||null}return s.x=function(t){return arguments.length?(e="function"==typeof t?t:aw(+t),s):e},s.y=function(e){return arguments.length?(t="function"==typeof e?e:aw(+e),s):t},s.defined=function(e){return arguments.length?(n="function"==typeof e?e:aw(!!e),s):n},s.curve=function(e){return arguments.length?(i=e,null!=r&&(o=i(r)),s):i},s.context=function(e){return arguments.length?(null==e?r=o=null:o=i(r=e),s):r},s},Ow=function(){var e=Ew,t=null,n=aw(0),r=Tw,i=aw(!0),o=null,s=Dw,a=null;function u(u){var l,c,d,h,f,p=u.length,g=!1,m=new Array(p),_=new Array(p);for(null==o&&(a=s(f=Zi())),l=0;l<=p;++l){if(!(l<p&&i(h=u[l],l,u))===g)if(g=!g)c=l,a.areaStart(),a.lineStart();else{for(a.lineEnd(),a.lineStart(),d=l-1;d>=c;--d)a.point(m[d],_[d]);a.lineEnd(),a.areaEnd()}g&&(m[l]=+e(h,l,u),_[l]=+n(h,l,u),a.point(t?+t(h,l,u):m[l],r?+r(h,l,u):_[l]))}if(f)return a=null,f+""||null}function l(){return Nw().defined(i).curve(s).context(o)}return u.x=function(n){return arguments.length?(e="function"==typeof n?n:aw(+n),t=null,u):e},u.x0=function(t){return arguments.length?(e="function"==typeof t?t:aw(+t),u):e},u.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:aw(+e),u):t},u.y=function(e){return arguments.length?(n="function"==typeof e?e:aw(+e),r=null,u):n},u.y0=function(e){return arguments.length?(n="function"==typeof e?e:aw(+e),u):n},u.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:aw(+e),u):r},u.lineX0=u.lineY0=function(){return l().x(e).y(n)},u.lineY1=function(){return l().x(e).y(r)},u.lineX1=function(){return l().x(t).y(n)},u.defined=function(e){return arguments.length?(i="function"==typeof e?e:aw(!!e),u):i},u.curve=function(e){return arguments.length?(s=e,null!=o&&(a=s(o)),u):s},u.context=function(e){return arguments.length?(null==e?o=a=null:a=s(o=e),u):o},u},Aw=function(e,t){return t<e?-1:t>e?1:t>=e?0:NaN},Iw=function(e){return e},Pw=function(){var e=Iw,t=Aw,n=null,r=aw(0),i=aw(yw),o=aw(0);function s(s){var a,u,l,c,d,h=s.length,f=0,p=new Array(h),g=new Array(h),m=+r.apply(this,arguments),_=Math.min(yw,Math.max(-yw,i.apply(this,arguments)-m)),y=Math.min(Math.abs(_)/h,o.apply(this,arguments)),v=y*(_<0?-1:1);for(a=0;a<h;++a)(d=g[p[a]=a]=+e(s[a],a,s))>0&&(f+=d);for(null!=t?p.sort((function(e,n){return t(g[e],g[n])})):null!=n&&p.sort((function(e,t){return n(s[e],s[t])})),a=0,l=f?(_-h*v)/f:0;a<h;++a,m=c)u=p[a],c=m+((d=g[u])>0?d*l:0)+v,g[u]={data:s[u],index:a,value:d,startAngle:m,endAngle:c,padAngle:y};return g}return s.value=function(t){return arguments.length?(e="function"==typeof t?t:aw(+t),s):e},s.sortValues=function(e){return arguments.length?(t=e,n=null,s):t},s.sort=function(e){return arguments.length?(n=e,t=null,s):n},s.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:aw(+e),s):r},s.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:aw(+e),s):i},s.padAngle=function(e){return arguments.length?(o="function"==typeof e?e:aw(+e),s):o},s},Rw=Yw(Dw);function Fw(e){this._curve=e}function Yw(e){function t(t){return new Fw(e(t))}return t._curve=e,t}function jw(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(e){return arguments.length?t(Yw(e)):t()._curve},e}Fw.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};var Bw=function(){return jw(Nw().curve(Rw))},Ww=function(){var e=Ow().curve(Rw),t=e.curve,n=e.lineX0,r=e.lineX1,i=e.lineY0,o=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return jw(n())},delete e.lineX0,e.lineEndAngle=function(){return jw(r())},delete e.lineX1,e.lineInnerRadius=function(){return jw(i())},delete e.lineY0,e.lineOuterRadius=function(){return jw(o())},delete e.lineY1,e.curve=function(e){return arguments.length?t(Yw(e)):t()._curve},e},Hw=function(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]},Vw=Array.prototype.slice;function zw(e){return e.source}function Uw(e){return e.target}function qw(e){var t=zw,n=Uw,r=Ew,i=Tw,o=null;function s(){var s,a=Vw.call(arguments),u=t.apply(this,a),l=n.apply(this,a);if(o||(o=s=Zi()),e(o,+r.apply(this,(a[0]=u,a)),+i.apply(this,a),+r.apply(this,(a[0]=l,a)),+i.apply(this,a)),s)return o=null,s+""||null}return s.source=function(e){return arguments.length?(t=e,s):t},s.target=function(e){return arguments.length?(n=e,s):n},s.x=function(e){return arguments.length?(r="function"==typeof e?e:aw(+e),s):r},s.y=function(e){return arguments.length?(i="function"==typeof e?e:aw(+e),s):i},s.context=function(e){return arguments.length?(o=null==e?null:e,s):o},s}function Kw(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,i,r,i)}function Gw(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+i)/2,r,n,r,i)}function $w(e,t,n,r,i){var o=Hw(t,n),s=Hw(t,n=(n+i)/2),a=Hw(r,n),u=Hw(r,i);e.moveTo(o[0],o[1]),e.bezierCurveTo(s[0],s[1],a[0],a[1],u[0],u[1])}function Zw(){return qw(Kw)}function Xw(){return qw(Gw)}function Jw(){var e=qw($w);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}var Qw={draw:function(e,t){var n=Math.sqrt(t/mw);e.moveTo(n,0),e.arc(0,0,n,0,yw)}},eC={draw:function(e,t){var n=Math.sqrt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},tC=Math.sqrt(1/3),nC=2*tC,rC={draw:function(e,t){var n=Math.sqrt(t/nC),r=n*tC;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},iC=Math.sin(mw/10)/Math.sin(7*mw/10),oC=Math.sin(yw/10)*iC,sC=-Math.cos(yw/10)*iC,aC={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),r=oC*n,i=sC*n;e.moveTo(0,-n),e.lineTo(r,i);for(var o=1;o<5;++o){var s=yw*o/5,a=Math.cos(s),u=Math.sin(s);e.lineTo(u*n,-a*n),e.lineTo(a*r-u*i,u*r+a*i)}e.closePath()}},uC={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}},lC=Math.sqrt(3),cC={draw:function(e,t){var n=-Math.sqrt(t/(3*lC));e.moveTo(0,2*n),e.lineTo(-lC*n,-n),e.lineTo(lC*n,-n),e.closePath()}},dC=Math.sqrt(3)/2,hC=1/Math.sqrt(12),fC=3*(hC/2+1),pC={draw:function(e,t){var n=Math.sqrt(t/fC),r=n/2,i=n*hC,o=r,s=n*hC+n,a=-o,u=s;e.moveTo(r,i),e.lineTo(o,s),e.lineTo(a,u),e.lineTo(-.5*r-dC*i,dC*r+-.5*i),e.lineTo(-.5*o-dC*s,dC*o+-.5*s),e.lineTo(-.5*a-dC*u,dC*a+-.5*u),e.lineTo(-.5*r+dC*i,-.5*i-dC*r),e.lineTo(-.5*o+dC*s,-.5*s-dC*o),e.lineTo(-.5*a+dC*u,-.5*u-dC*a),e.closePath()}},gC=[Qw,eC,rC,uC,aC,cC,pC],mC=function(){var e=aw(Qw),t=aw(64),n=null;function r(){var r;if(n||(n=r=Zi()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),r)return n=null,r+""||null}return r.type=function(t){return arguments.length?(e="function"==typeof t?t:aw(t),r):e},r.size=function(e){return arguments.length?(t="function"==typeof e?e:aw(+e),r):t},r.context=function(e){return arguments.length?(n=null==e?null:e,r):n},r},_C=function(){};function yC(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function vC(e){this._context=e}vC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:yC(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:yC(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var bC=function(e){return new vC(e)};function wC(e){this._context=e}wC.prototype={areaStart:_C,areaEnd:_C,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:yC(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var CC=function(e){return new wC(e)};function SC(e){this._context=e}SC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:yC(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var xC=function(e){return new SC(e)};function LC(e,t){this._basis=new vC(e),this._beta=t}LC.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,i=e[0],o=t[0],s=e[n]-i,a=t[n]-o,u=-1;++u<=n;)r=u/n,this._basis.point(this._beta*e[u]+(1-this._beta)*(i+r*s),this._beta*t[u]+(1-this._beta)*(o+r*a));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var kC=function e(t){function n(e){return 1===t?new vC(e):new LC(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function MC(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function DC(e,t){this._context=e,this._k=(1-t)/6}DC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:MC(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:MC(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var EC=function e(t){function n(e){return new DC(e,t)}return n.tension=function(t){return e(+t)},n}(0);function TC(e,t){this._context=e,this._k=(1-t)/6}TC.prototype={areaStart:_C,areaEnd:_C,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:MC(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var NC=function e(t){function n(e){return new TC(e,t)}return n.tension=function(t){return e(+t)},n}(0);function OC(e,t){this._context=e,this._k=(1-t)/6}OC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:MC(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var AC=function e(t){function n(e){return new OC(e,t)}return n.tension=function(t){return e(+t)},n}(0);function IC(e,t,n){var r=e._x1,i=e._y1,o=e._x2,s=e._y2;if(e._l01_a>gw){var a=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,u=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*a-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,i=(i*a-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}if(e._l23_a>gw){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*l+e._x1*e._l23_2a-t*e._l12_2a)/c,s=(s*l+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,i,o,s,e._x2,e._y2)}function PC(e,t){this._context=e,this._alpha=t}PC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:IC(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var RC=function e(t){function n(e){return t?new PC(e,t):new DC(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function FC(e,t){this._context=e,this._alpha=t}FC.prototype={areaStart:_C,areaEnd:_C,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:IC(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var YC=function e(t){function n(e){return t?new FC(e,t):new TC(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function jC(e,t){this._context=e,this._alpha=t}jC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:IC(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var BC=function e(t){function n(e){return t?new jC(e,t):new OC(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function WC(e){this._context=e}WC.prototype={areaStart:_C,areaEnd:_C,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};var HC=function(e){return new WC(e)};function VC(e){return e<0?-1:1}function zC(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),s=(n-e._y1)/(i||r<0&&-0),a=(o*i+s*r)/(r+i);return(VC(o)+VC(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(a))||0}function UC(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function qC(e,t,n){var r=e._x0,i=e._y0,o=e._x1,s=e._y1,a=(o-r)/3;e._context.bezierCurveTo(r+a,i+a*t,o-a,s-a*n,o,s)}function KC(e){this._context=e}function GC(e){this._context=new $C(e)}function $C(e){this._context=e}function ZC(e){return new KC(e)}function XC(e){return new GC(e)}function JC(e){this._context=e}function QC(e){var t,n,r=e.length-1,i=new Array(r),o=new Array(r),s=new Array(r);for(i[0]=0,o[0]=2,s[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,o[t]=4,s[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,o[r-1]=7,s[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/o[t-1],o[t]-=n,s[t]-=n*s[t-1];for(i[r-1]=s[r-1]/o[r-1],t=r-2;t>=0;--t)i[t]=(s[t]-i[t+1])/o[t];for(o[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}KC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:qC(this,this._t0,UC(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,qC(this,UC(this,n=zC(this,e,t)),n);break;default:qC(this,this._t0,n=zC(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(GC.prototype=Object.create(KC.prototype)).point=function(e,t){KC.prototype.point.call(this,t,e)},$C.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}},JC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=QC(e),i=QC(t),o=0,s=1;s<n;++o,++s)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[s],t[s]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var eS=function(e){return new JC(e)};function tS(e,t){this._context=e,this._t=t}tS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var nS=function(e){return new tS(e,.5)};function rS(e){return new tS(e,0)}function iS(e){return new tS(e,1)}var oS=function(e,t){if((i=e.length)>1)for(var n,r,i,o=1,s=e[t[0]],a=s.length;o<i;++o)for(r=s,s=e[t[o]],n=0;n<a;++n)s[n][1]+=s[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]},sS=function(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n};function aS(e,t){return e[t]}var uS=function(){var e=aw([]),t=sS,n=oS,r=aS;function i(i){var o,s,a=e.apply(this,arguments),u=i.length,l=a.length,c=new Array(l);for(o=0;o<l;++o){for(var d,h=a[o],f=c[o]=new Array(u),p=0;p<u;++p)f[p]=d=[0,+r(i[p],h,p,i)],d.data=i[p];f.key=h}for(o=0,s=t(c);o<l;++o)c[s[o]].index=o;return n(c,s),c}return i.keys=function(t){return arguments.length?(e="function"==typeof t?t:aw(Vw.call(t)),i):e},i.value=function(e){return arguments.length?(r="function"==typeof e?e:aw(+e),i):r},i.order=function(e){return arguments.length?(t=null==e?sS:"function"==typeof e?e:aw(Vw.call(e)),i):t},i.offset=function(e){return arguments.length?(n=null==e?oS:e,i):n},i},lS=function(e,t){if((r=e.length)>0){for(var n,r,i,o=0,s=e[0].length;o<s;++o){for(i=n=0;n<r;++n)i+=e[n][o][1]||0;if(i)for(n=0;n<r;++n)e[n][o][1]/=i}oS(e,t)}},cS=function(e,t){if((a=e.length)>0)for(var n,r,i,o,s,a,u=0,l=e[t[0]].length;u<l;++u)for(o=s=0,n=0;n<a;++n)(i=(r=e[t[n]][u])[1]-r[0])>0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=s,r[0]=s+=i):(r[0]=0,r[1]=i)},dS=function(e,t){if((n=e.length)>0){for(var n,r=0,i=e[t[0]],o=i.length;r<o;++r){for(var s=0,a=0;s<n;++s)a+=e[s][r][1]||0;i[r][1]+=i[r][0]=-a/2}oS(e,t)}},hS=function(e,t){if((i=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,i,o=0,s=1;s<r;++s){for(var a=0,u=0,l=0;a<i;++a){for(var c=e[t[a]],d=c[s][1]||0,h=(d-(c[s-1][1]||0))/2,f=0;f<a;++f){var p=e[t[f]];h+=(p[s][1]||0)-(p[s-1][1]||0)}u+=d,l+=h*d}n[s-1][1]+=n[s-1][0]=o,u&&(o-=l/u)}n[s-1][1]+=n[s-1][0]=o,oS(e,t)}},fS=function(e){var t=e.map(pS);return sS(e).sort((function(e,n){return t[e]-t[n]}))};function pS(e){for(var t,n=-1,r=0,i=e.length,o=-1/0;++n<i;)(t=+e[n][1])>o&&(o=t,r=n);return r}var gS=function(e){var t=e.map(mS);return sS(e).sort((function(e,n){return t[e]-t[n]}))};function mS(e){for(var t,n=0,r=-1,i=e.length;++r<i;)(t=+e[r][1])&&(n+=t);return n}var _S=function(e){return gS(e).reverse()},yS=function(e){var t,n,r=e.length,i=e.map(mS),o=fS(e),s=0,a=0,u=[],l=[];for(t=0;t<r;++t)n=o[t],s<a?(s+=i[n],u.push(n)):(a+=i[n],l.push(n));return l.reverse().concat(u)},vS=function(e){return sS(e).reverse()};var bS=Date.prototype.toISOString?function(e){return e.toISOString()}:O_("%Y-%m-%dT%H:%M:%S.%LZ");var wS=+new Date("2000-01-01T00:00:00.000Z")?function(e){var t=new Date(e);return isNaN(t)?null:t}:A_("%Y-%m-%dT%H:%M:%S.%LZ"),CS=function(e,t,n){var r=new Zn,i=t;return null==t?(r.restart(e,t,n),r):(t=+t,n=null==n?Gn():+n,r.restart((function o(s){s+=i,r.restart(o,i+=t,n),e(s)}),t,n),r)},SS=function(e){return function(){return e}};function xS(e){return e[0]}function LS(e){return e[1]}function kS(){this._=null}function MS(e){e.U=e.C=e.L=e.R=e.P=e.N=null}function DS(e,t){var n=t,r=t.R,i=n.U;i?i.L===n?i.L=r:i.R=r:e._=r,r.U=i,n.U=r,n.R=r.L,n.R&&(n.R.U=n),r.L=n}function ES(e,t){var n=t,r=t.L,i=n.U;i?i.L===n?i.L=r:i.R=r:e._=r,r.U=i,n.U=r,n.L=r.R,n.L&&(n.L.U=n),r.R=n}function TS(e){for(;e.L;)e=e.L;return e}kS.prototype={constructor:kS,insert:function(e,t){var n,r,i;if(e){if(t.P=e,t.N=e.N,e.N&&(e.N.P=t),e.N=t,e.R){for(e=e.R;e.L;)e=e.L;e.L=t}else e.R=t;n=e}else this._?(e=TS(this._),t.P=null,t.N=e,e.P=e.L=t,n=e):(t.P=t.N=null,this._=t,n=null);for(t.L=t.R=null,t.U=n,t.C=!0,e=t;n&&n.C;)n===(r=n.U).L?(i=r.R)&&i.C?(n.C=i.C=!1,r.C=!0,e=r):(e===n.R&&(DS(this,n),n=(e=n).U),n.C=!1,r.C=!0,ES(this,r)):(i=r.L)&&i.C?(n.C=i.C=!1,r.C=!0,e=r):(e===n.L&&(ES(this,n),n=(e=n).U),n.C=!1,r.C=!0,DS(this,r)),n=e.U;this._.C=!1},remove:function(e){e.N&&(e.N.P=e.P),e.P&&(e.P.N=e.N),e.N=e.P=null;var t,n,r,i=e.U,o=e.L,s=e.R;if(n=o?s?TS(s):o:s,i?i.L===e?i.L=n:i.R=n:this._=n,o&&s?(r=n.C,n.C=e.C,n.L=o,o.U=n,n!==s?(i=n.U,n.U=e.U,e=n.R,i.L=e,n.R=s,s.U=n):(n.U=i,i=n,e=n.R)):(r=e.C,e=n),e&&(e.U=i),!r)if(e&&e.C)e.C=!1;else{do{if(e===this._)break;if(e===i.L){if((t=i.R).C&&(t.C=!1,i.C=!0,DS(this,i),t=i.R),t.L&&t.L.C||t.R&&t.R.C){t.R&&t.R.C||(t.L.C=!1,t.C=!0,ES(this,t),t=i.R),t.C=i.C,i.C=t.R.C=!1,DS(this,i),e=this._;break}}else if((t=i.L).C&&(t.C=!1,i.C=!0,ES(this,i),t=i.L),t.L&&t.L.C||t.R&&t.R.C){t.L&&t.L.C||(t.R.C=!1,t.C=!0,DS(this,t),t=i.L),t.C=i.C,i.C=t.L.C=!1,ES(this,i),e=this._;break}t.C=!0,e=i,i=i.U}while(!e.C);e&&(e.C=!1)}}};var NS=kS;function OS(e,t,n,r){var i=[null,null],o=nx.push(i)-1;return i.left=e,i.right=t,n&&IS(i,e,t,n),r&&IS(i,t,e,r),ex[e.index].halfedges.push(o),ex[t.index].halfedges.push(o),i}function AS(e,t,n){var r=[t,n];return r.left=e,r}function IS(e,t,n,r){e[0]||e[1]?e.left===n?e[1]=r:e[0]=r:(e[0]=r,e.left=t,e.right=n)}function PS(e,t,n,r,i){var o,s=e[0],a=e[1],u=s[0],l=s[1],c=0,d=1,h=a[0]-u,f=a[1]-l;if(o=t-u,h||!(o>0)){if(o/=h,h<0){if(o<c)return;o<d&&(d=o)}else if(h>0){if(o>d)return;o>c&&(c=o)}if(o=r-u,h||!(o<0)){if(o/=h,h<0){if(o>d)return;o>c&&(c=o)}else if(h>0){if(o<c)return;o<d&&(d=o)}if(o=n-l,f||!(o>0)){if(o/=f,f<0){if(o<c)return;o<d&&(d=o)}else if(f>0){if(o>d)return;o>c&&(c=o)}if(o=i-l,f||!(o<0)){if(o/=f,f<0){if(o>d)return;o>c&&(c=o)}else if(f>0){if(o<c)return;o<d&&(d=o)}return!(c>0||d<1)||(c>0&&(e[0]=[u+c*h,l+c*f]),d<1&&(e[1]=[u+d*h,l+d*f]),!0)}}}}}function RS(e,t,n,r,i){var o=e[1];if(o)return!0;var s,a,u=e[0],l=e.left,c=e.right,d=l[0],h=l[1],f=c[0],p=c[1],g=(d+f)/2,m=(h+p)/2;if(p===h){if(g<t||g>=r)return;if(d>f){if(u){if(u[1]>=i)return}else u=[g,n];o=[g,i]}else{if(u){if(u[1]<n)return}else u=[g,i];o=[g,n]}}else if(a=m-(s=(d-f)/(p-h))*g,s<-1||s>1)if(d>f){if(u){if(u[1]>=i)return}else u=[(n-a)/s,n];o=[(i-a)/s,i]}else{if(u){if(u[1]<n)return}else u=[(i-a)/s,i];o=[(n-a)/s,n]}else if(h<p){if(u){if(u[0]>=r)return}else u=[t,s*t+a];o=[r,s*r+a]}else{if(u){if(u[0]<t)return}else u=[r,s*r+a];o=[t,s*t+a]}return e[0]=u,e[1]=o,!0}function FS(e,t){var n=e.site,r=t.left,i=t.right;return n===i&&(i=r,r=n),i?Math.atan2(i[1]-r[1],i[0]-r[0]):(n===r?(r=t[1],i=t[0]):(r=t[0],i=t[1]),Math.atan2(r[0]-i[0],i[1]-r[1]))}function YS(e,t){return t[+(t.left!==e.site)]}function jS(e,t){return t[+(t.left===e.site)]}var BS,WS=[];function HS(){MS(this),this.x=this.y=this.arc=this.site=this.cy=null}function VS(e){var t=e.P,n=e.N;if(t&&n){var r=t.site,i=e.site,o=n.site;if(r!==o){var s=i[0],a=i[1],u=r[0]-s,l=r[1]-a,c=o[0]-s,d=o[1]-a,h=2*(u*d-l*c);if(!(h>=-ix)){var f=u*u+l*l,p=c*c+d*d,g=(d*f-l*p)/h,m=(u*p-c*f)/h,_=WS.pop()||new HS;_.arc=e,_.site=i,_.x=g+s,_.y=(_.cy=m+a)+Math.sqrt(g*g+m*m),e.circle=_;for(var y=null,v=tx._;v;)if(_.y<v.y||_.y===v.y&&_.x<=v.x){if(!v.L){y=v.P;break}v=v.L}else{if(!v.R){y=v;break}v=v.R}tx.insert(y,_),y||(BS=_)}}}}function zS(e){var t=e.circle;t&&(t.P||(BS=t.N),tx.remove(t),WS.push(t),MS(t),e.circle=null)}var US=[];function qS(){MS(this),this.edge=this.site=this.circle=null}function KS(e){var t=US.pop()||new qS;return t.site=e,t}function GS(e){zS(e),QS.remove(e),US.push(e),MS(e)}function $S(e){var t=e.circle,n=t.x,r=t.cy,i=[n,r],o=e.P,s=e.N,a=[e];GS(e);for(var u=o;u.circle&&Math.abs(n-u.circle.x)<rx&&Math.abs(r-u.circle.cy)<rx;)o=u.P,a.unshift(u),GS(u),u=o;a.unshift(u),zS(u);for(var l=s;l.circle&&Math.abs(n-l.circle.x)<rx&&Math.abs(r-l.circle.cy)<rx;)s=l.N,a.push(l),GS(l),l=s;a.push(l),zS(l);var c,d=a.length;for(c=1;c<d;++c)l=a[c],u=a[c-1],IS(l.edge,u.site,l.site,i);u=a[0],(l=a[d-1]).edge=OS(u.site,l.site,null,i),VS(u),VS(l)}function ZS(e){for(var t,n,r,i,o=e[0],s=e[1],a=QS._;a;)if((r=XS(a,s)-o)>rx)a=a.L;else{if(!((i=o-JS(a,s))>rx)){r>-rx?(t=a.P,n=a):i>-rx?(t=a,n=a.N):t=n=a;break}if(!a.R){t=a;break}a=a.R}!function(e){ex[e.index]={site:e,halfedges:[]}}(e);var u=KS(e);if(QS.insert(t,u),t||n){if(t===n)return zS(t),n=KS(t.site),QS.insert(u,n),u.edge=n.edge=OS(t.site,u.site),VS(t),void VS(n);if(n){zS(t),zS(n);var l=t.site,c=l[0],d=l[1],h=e[0]-c,f=e[1]-d,p=n.site,g=p[0]-c,m=p[1]-d,_=2*(h*m-f*g),y=h*h+f*f,v=g*g+m*m,b=[(m*y-f*v)/_+c,(h*v-g*y)/_+d];IS(n.edge,l,p,b),u.edge=OS(l,e,null,b),n.edge=OS(e,p,null,b),VS(t),VS(n)}else u.edge=OS(t.site,u.site)}}function XS(e,t){var n=e.site,r=n[0],i=n[1],o=i-t;if(!o)return r;var s=e.P;if(!s)return-1/0;var a=(n=s.site)[0],u=n[1],l=u-t;if(!l)return a;var c=a-r,d=1/o-1/l,h=c/l;return d?(-h+Math.sqrt(h*h-2*d*(c*c/(-2*l)-u+l/2+i-o/2)))/d+r:(r+a)/2}function JS(e,t){var n=e.N;if(n)return XS(n,t);var r=e.site;return r[1]===t?r[0]:1/0}var QS,ex,tx,nx,rx=1e-6,ix=1e-12;function ox(e,t){return t[1]-e[1]||t[0]-e[0]}function sx(e,t){var n,r,i,o=e.sort(ox).pop();for(nx=[],ex=new Array(e.length),QS=new NS,tx=new NS;;)if(i=BS,o&&(!i||o[1]<i.y||o[1]===i.y&&o[0]<i.x))o[0]===n&&o[1]===r||(ZS(o),n=o[0],r=o[1]),o=e.pop();else{if(!i)break;$S(i.arc)}if(function(){for(var e,t,n,r,i=0,o=ex.length;i<o;++i)if((e=ex[i])&&(r=(t=e.halfedges).length)){var s=new Array(r),a=new Array(r);for(n=0;n<r;++n)s[n]=n,a[n]=FS(e,nx[t[n]]);for(s.sort((function(e,t){return a[t]-a[e]})),n=0;n<r;++n)a[n]=t[s[n]];for(n=0;n<r;++n)t[n]=a[n]}}(),t){var s=+t[0][0],a=+t[0][1],u=+t[1][0],l=+t[1][1];!function(e,t,n,r){for(var i,o=nx.length;o--;)RS(i=nx[o],e,t,n,r)&&PS(i,e,t,n,r)&&(Math.abs(i[0][0]-i[1][0])>rx||Math.abs(i[0][1]-i[1][1])>rx)||delete nx[o]}(s,a,u,l),function(e,t,n,r){var i,o,s,a,u,l,c,d,h,f,p,g,m=ex.length,_=!0;for(i=0;i<m;++i)if(o=ex[i]){for(s=o.site,a=(u=o.halfedges).length;a--;)nx[u[a]]||u.splice(a,1);for(a=0,l=u.length;a<l;)p=(f=jS(o,nx[u[a]]))[0],g=f[1],d=(c=YS(o,nx[u[++a%l]]))[0],h=c[1],(Math.abs(p-d)>rx||Math.abs(g-h)>rx)&&(u.splice(a,0,nx.push(AS(s,f,Math.abs(p-e)<rx&&r-g>rx?[e,Math.abs(d-e)<rx?h:r]:Math.abs(g-r)<rx&&n-p>rx?[Math.abs(h-r)<rx?d:n,r]:Math.abs(p-n)<rx&&g-t>rx?[n,Math.abs(d-n)<rx?h:t]:Math.abs(g-t)<rx&&p-e>rx?[Math.abs(h-t)<rx?d:e,t]:null))-1),++l);l&&(_=!1)}if(_){var y,v,b,w=1/0;for(i=0,_=null;i<m;++i)(o=ex[i])&&(b=(y=(s=o.site)[0]-e)*y+(v=s[1]-t)*v)<w&&(w=b,_=o);if(_){var C=[e,t],S=[e,r],x=[n,r],L=[n,t];_.halfedges.push(nx.push(AS(s=_.site,C,S))-1,nx.push(AS(s,S,x))-1,nx.push(AS(s,x,L))-1,nx.push(AS(s,L,C))-1)}}for(i=0;i<m;++i)(o=ex[i])&&(o.halfedges.length||delete ex[i])}(s,a,u,l)}this.edges=nx,this.cells=ex,QS=tx=nx=ex=null}sx.prototype={constructor:sx,polygons:function(){var e=this.edges;return this.cells.map((function(t){var n=t.halfedges.map((function(n){return YS(t,e[n])}));return n.data=t.site.data,n}))},triangles:function(){var e=[],t=this.edges;return this.cells.forEach((function(n,r){if(o=(i=n.halfedges).length)for(var i,o,s,a,u,l,c=n.site,d=-1,h=t[i[o-1]],f=h.left===c?h.right:h.left;++d<o;)s=f,f=(h=t[i[d]]).left===c?h.right:h.left,s&&f&&r<s.index&&r<f.index&&(u=s,l=f,((a=c)[0]-l[0])*(u[1]-a[1])-(a[0]-u[0])*(l[1]-a[1])<0)&&e.push([c.data,s.data,f.data])})),e},links:function(){return this.edges.filter((function(e){return e.right})).map((function(e){return{source:e.left.data,target:e.right.data}}))},find:function(e,t,n){for(var r,i,o=this,s=o._found||0,a=o.cells.length;!(i=o.cells[s]);)if(++s>=a)return null;var u=e-i.site[0],l=t-i.site[1],c=u*u+l*l;do{i=o.cells[r=s],s=null,i.halfedges.forEach((function(n){var r=o.edges[n],a=r.left;if(a!==i.site&&a||(a=r.right)){var u=e-a[0],l=t-a[1],d=u*u+l*l;d<c&&(c=d,s=a.index)}}))}while(null!==s);return o._found=r,null==n||c<=n*n?i.site:null}};var ax=function(){var e=xS,t=LS,n=null;function r(r){return new sx(r.map((function(n,i){var o=[Math.round(e(n,i,r)/rx)*rx,Math.round(t(n,i,r)/rx)*rx];return o.index=i,o.data=n,o})),n)}return r.polygons=function(e){return r(e).polygons()},r.links=function(e){return r(e).links()},r.triangles=function(e){return r(e).triangles()},r.x=function(t){return arguments.length?(e="function"==typeof t?t:SS(+t),r):e},r.y=function(e){return arguments.length?(t="function"==typeof e?e:SS(+e),r):t},r.extent=function(e){return arguments.length?(n=null==e?null:[[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]],r):n&&[[n[0][0],n[0][1]],[n[1][0],n[1][1]]]},r.size=function(e){return arguments.length?(n=null==e?null:[[0,0],[+e[0],+e[1]]],r):n&&[n[1][0]-n[0][0],n[1][1]-n[0][1]]},r},ux=function(e){return function(){return e}};function lx(e,t,n){this.target=e,this.type=t,this.transform=n}function cx(e,t,n){this.k=e,this.x=t,this.y=n}cx.prototype={constructor:cx,scale:function(e){return 1===e?this:new cx(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new cx(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var dx=new cx(1,0,0);function hx(e){for(;!e.__zoom;)if(!(e=e.parentNode))return dx;return e.__zoom}function fx(){pt.stopImmediatePropagation()}hx.prototype=cx.prototype;var px=function(){pt.preventDefault(),pt.stopImmediatePropagation()};function gx(){return!pt.ctrlKey&&!pt.button}function mx(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e).hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]:[[0,0],[e.clientWidth,e.clientHeight]]}function _x(){return this.__zoom||dx}function yx(){return-pt.deltaY*(1===pt.deltaMode?.05:pt.deltaMode?1:.002)}function vx(){return navigator.maxTouchPoints||"ontouchstart"in this}function bx(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],o=e.invertY(t[0][1])-n[0][1],s=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),s>o?(o+s)/2:Math.min(0,o)||Math.max(0,s))}var wx=function(){var e,t,n=gx,r=mx,i=bx,o=yx,s=vx,a=[0,1/0],u=[[-1/0,-1/0],[1/0,1/0]],l=250,c=Xp,d=ge("start","zoom","end"),h=500,f=150,p=0;function g(e){e.property("__zoom",_x).on("wheel.zoom",C).on("mousedown.zoom",S).on("dblclick.zoom",x).filter(s).on("touchstart.zoom",L).on("touchmove.zoom",k).on("touchend.zoom touchcancel.zoom",M).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function m(e,t){return(t=Math.max(a[0],Math.min(a[1],t)))===e.k?e:new cx(t,e.x,e.y)}function _(e,t,n){var r=t[0]-n[0]*e.k,i=t[1]-n[1]*e.k;return r===e.x&&i===e.y?e:new cx(e.k,r,i)}function y(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function v(e,t,n){e.on("start.zoom",(function(){b(this,arguments).start()})).on("interrupt.zoom end.zoom",(function(){b(this,arguments).end()})).tween("zoom",(function(){var e=this,i=arguments,o=b(e,i),s=r.apply(e,i),a=null==n?y(s):"function"==typeof n?n.apply(e,i):n,u=Math.max(s[1][0]-s[0][0],s[1][1]-s[0][1]),l=e.__zoom,d="function"==typeof t?t.apply(e,i):t,h=c(l.invert(a).concat(u/l.k),d.invert(a).concat(u/d.k));return function(e){if(1===e)e=d;else{var t=h(e),n=u/t[2];e=new cx(n,a[0]-t[0]*n,a[1]-t[1]*n)}o.zoom(null,e)}}))}function b(e,t,n){return!n&&e.__zooming||new w(e,t)}function w(e,t){this.that=e,this.args=t,this.active=0,this.extent=r.apply(e,t),this.taps=0}function C(){if(n.apply(this,arguments)){var e=b(this,arguments),t=this.__zoom,r=Math.max(a[0],Math.min(a[1],t.k*Math.pow(2,o.apply(this,arguments)))),s=Yn(this);if(e.wheel)e.mouse[0][0]===s[0]&&e.mouse[0][1]===s[1]||(e.mouse[1]=t.invert(e.mouse[0]=s)),clearTimeout(e.wheel);else{if(t.k===r)return;e.mouse=[s,t.invert(s)],br(this),e.start()}px(),e.wheel=setTimeout((function(){e.wheel=null,e.end()}),f),e.zoom("mouse",i(_(m(t,r),e.mouse[0],e.mouse[1]),e.extent,u))}}function S(){if(!t&&n.apply(this,arguments)){var e=b(this,arguments,!0),r=Dt(pt.view).on("mousemove.zoom",(function(){if(px(),!e.moved){var t=pt.clientX-s,n=pt.clientY-a;e.moved=t*t+n*n>p}e.zoom("mouse",i(_(e.that.__zoom,e.mouse[0]=Yn(e.that),e.mouse[1]),e.extent,u))}),!0).on("mouseup.zoom",(function(){r.on("mousemove.zoom mouseup.zoom",null),Ot(pt.view,e.moved),px(),e.end()}),!0),o=Yn(this),s=pt.clientX,a=pt.clientY;Nt(pt.view),fx(),e.mouse=[o,this.__zoom.invert(o)],br(this),e.start()}}function x(){if(n.apply(this,arguments)){var e=this.__zoom,t=Yn(this),o=e.invert(t),s=e.k*(pt.shiftKey?.5:2),a=i(_(m(e,s),t,o),r.apply(this,arguments),u);px(),l>0?Dt(this).transition().duration(l).call(v,a,t):Dt(this).call(g.transform,a)}}function L(){if(n.apply(this,arguments)){var t,r,i,o,s=pt.touches,a=s.length,u=b(this,arguments,pt.changedTouches.length===a);for(fx(),r=0;r<a;++r)i=s[r],o=[o=Fn(this,s,i.identifier),this.__zoom.invert(o),i.identifier],u.touch0?u.touch1||u.touch0[2]===o[2]||(u.touch1=o,u.taps=0):(u.touch0=o,t=!0,u.taps=1+!!e);e&&(e=clearTimeout(e)),t&&(u.taps<2&&(e=setTimeout((function(){e=null}),h)),br(this),u.start())}}function k(){if(this.__zooming){var t,n,r,o,s=b(this,arguments),a=pt.changedTouches,l=a.length;for(px(),e&&(e=clearTimeout(e)),s.taps=0,t=0;t<l;++t)n=a[t],r=Fn(this,a,n.identifier),s.touch0&&s.touch0[2]===n.identifier?s.touch0[0]=r:s.touch1&&s.touch1[2]===n.identifier&&(s.touch1[0]=r);if(n=s.that.__zoom,s.touch1){var c=s.touch0[0],d=s.touch0[1],h=s.touch1[0],f=s.touch1[1],p=(p=h[0]-c[0])*p+(p=h[1]-c[1])*p,g=(g=f[0]-d[0])*g+(g=f[1]-d[1])*g;n=m(n,Math.sqrt(p/g)),r=[(c[0]+h[0])/2,(c[1]+h[1])/2],o=[(d[0]+f[0])/2,(d[1]+f[1])/2]}else{if(!s.touch0)return;r=s.touch0[0],o=s.touch0[1]}s.zoom("touch",i(_(n,r,o),s.extent,u))}}function M(){if(this.__zooming){var e,n,r=b(this,arguments),i=pt.changedTouches,o=i.length;for(fx(),t&&clearTimeout(t),t=setTimeout((function(){t=null}),h),e=0;e<o;++e)n=i[e],r.touch0&&r.touch0[2]===n.identifier?delete r.touch0:r.touch1&&r.touch1[2]===n.identifier&&delete r.touch1;if(r.touch1&&!r.touch0&&(r.touch0=r.touch1,delete r.touch1),r.touch0)r.touch0[1]=this.__zoom.invert(r.touch0[0]);else if(r.end(),2===r.taps){var s=Dt(this).on("dblclick.zoom");s&&s.apply(this,arguments)}}}return g.transform=function(e,t,n){var r=e.selection?e.selection():e;r.property("__zoom",_x),e!==r?v(e,t,n):r.interrupt().each((function(){b(this,arguments).start().zoom(null,"function"==typeof t?t.apply(this,arguments):t).end()}))},g.scaleBy=function(e,t,n){g.scaleTo(e,(function(){var e=this.__zoom.k,n="function"==typeof t?t.apply(this,arguments):t;return e*n}),n)},g.scaleTo=function(e,t,n){g.transform(e,(function(){var e=r.apply(this,arguments),o=this.__zoom,s=null==n?y(e):"function"==typeof n?n.apply(this,arguments):n,a=o.invert(s),l="function"==typeof t?t.apply(this,arguments):t;return i(_(m(o,l),s,a),e,u)}),n)},g.translateBy=function(e,t,n){g.transform(e,(function(){return i(this.__zoom.translate("function"==typeof t?t.apply(this,arguments):t,"function"==typeof n?n.apply(this,arguments):n),r.apply(this,arguments),u)}))},g.translateTo=function(e,t,n,o){g.transform(e,(function(){var e=r.apply(this,arguments),s=this.__zoom,a=null==o?y(e):"function"==typeof o?o.apply(this,arguments):o;return i(dx.translate(a[0],a[1]).scale(s.k).translate("function"==typeof t?-t.apply(this,arguments):-t,"function"==typeof n?-n.apply(this,arguments):-n),e,u)}),o)},w.prototype={start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(e,t){return this.mouse&&"mouse"!==e&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&"touch"!==e&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&"touch"!==e&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(e){bt(new lx(g,e,this.that.__zoom),d.apply,d,[e,this.that,this.args])}},g.wheelDelta=function(e){return arguments.length?(o="function"==typeof e?e:ux(+e),g):o},g.filter=function(e){return arguments.length?(n="function"==typeof e?e:ux(!!e),g):n},g.touchable=function(e){return arguments.length?(s="function"==typeof e?e:ux(!!e),g):s},g.extent=function(e){return arguments.length?(r="function"==typeof e?e:ux([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),g):r},g.scaleExtent=function(e){return arguments.length?(a[0]=+e[0],a[1]=+e[1],g):[a[0],a[1]]},g.translateExtent=function(e){return arguments.length?(u[0][0]=+e[0][0],u[1][0]=+e[1][0],u[0][1]=+e[0][1],u[1][1]=+e[1][1],g):[[u[0][0],u[0][1]],[u[1][0],u[1][1]]]},g.constrain=function(e){return arguments.length?(i=e,g):i},g.duration=function(e){return arguments.length?(l=+e,g):l},g.interpolate=function(e){return arguments.length?(c=e,g):c},g.on=function(){var e=d.on.apply(d,arguments);return e===d?g:e},g.clickDistance=function(e){return arguments.length?(p=(e=+e)*e,g):Math.sqrt(p)},g};n.d(t,"version",(function(){return"5.14.2"})),n.d(t,"bisect",(function(){return u})),n.d(t,"bisectRight",(function(){return s})),n.d(t,"bisectLeft",(function(){return a})),n.d(t,"ascending",(function(){return r})),n.d(t,"bisector",(function(){return i})),n.d(t,"cross",(function(){return d})),n.d(t,"descending",(function(){return h})),n.d(t,"deviation",(function(){return g})),n.d(t,"extent",(function(){return m})),n.d(t,"histogram",(function(){return T})),n.d(t,"thresholdFreedmanDiaconis",(function(){return O})),n.d(t,"thresholdScott",(function(){return A})),n.d(t,"thresholdSturges",(function(){return E})),n.d(t,"max",(function(){return I})),n.d(t,"mean",(function(){return P})),n.d(t,"median",(function(){return R})),n.d(t,"merge",(function(){return F})),n.d(t,"min",(function(){return Y})),n.d(t,"pairs",(function(){return l})),n.d(t,"permute",(function(){return j})),n.d(t,"quantile",(function(){return N})),n.d(t,"range",(function(){return C})),n.d(t,"scan",(function(){return B})),n.d(t,"shuffle",(function(){return W})),n.d(t,"sum",(function(){return H})),n.d(t,"ticks",(function(){return k})),n.d(t,"tickIncrement",(function(){return M})),n.d(t,"tickStep",(function(){return D})),n.d(t,"transpose",(function(){return V})),n.d(t,"variance",(function(){return p})),n.d(t,"zip",(function(){return U})),n.d(t,"axisTop",(function(){return oe})),n.d(t,"axisRight",(function(){return se})),n.d(t,"axisBottom",(function(){return ae})),n.d(t,"axisLeft",(function(){return ue})),n.d(t,"brush",(function(){return Ai})),n.d(t,"brushX",(function(){return Ni})),n.d(t,"brushY",(function(){return Oi})),n.d(t,"brushSelection",(function(){return Ti})),n.d(t,"chord",(function(){return Hi})),n.d(t,"ribbon",(function(){return no})),n.d(t,"nest",(function(){return so})),n.d(t,"set",(function(){return go})),n.d(t,"map",(function(){return oo})),n.d(t,"keys",(function(){return mo})),n.d(t,"values",(function(){return _o})),n.d(t,"entries",(function(){return yo})),n.d(t,"color",(function(){return $t})),n.d(t,"rgb",(function(){return Qt})),n.d(t,"hsl",(function(){return an})),n.d(t,"lab",(function(){return To})),n.d(t,"hcl",(function(){return Yo})),n.d(t,"lch",(function(){return Fo})),n.d(t,"gray",(function(){return Eo})),n.d(t,"cubehelix",(function(){return Ko})),n.d(t,"contours",(function(){return is})),n.d(t,"contourDensity",(function(){return cs})),n.d(t,"dispatch",(function(){return ge})),n.d(t,"drag",(function(){return _s})),n.d(t,"dragDisable",(function(){return Nt})),n.d(t,"dragEnable",(function(){return Ot})),n.d(t,"dsvFormat",(function(){return Ms})),n.d(t,"csvParse",(function(){return Es})),n.d(t,"csvParseRows",(function(){return Ts})),n.d(t,"csvFormat",(function(){return Ns})),n.d(t,"csvFormatBody",(function(){return Os})),n.d(t,"csvFormatRows",(function(){return As})),n.d(t,"csvFormatRow",(function(){return Is})),n.d(t,"csvFormatValue",(function(){return Ps})),n.d(t,"tsvParse",(function(){return Fs})),n.d(t,"tsvParseRows",(function(){return Ys})),n.d(t,"tsvFormat",(function(){return js})),n.d(t,"tsvFormatBody",(function(){return Bs})),n.d(t,"tsvFormatRows",(function(){return Ws})),n.d(t,"tsvFormatRow",(function(){return Hs})),n.d(t,"tsvFormatValue",(function(){return Vs})),n.d(t,"autoType",(function(){return zs})),n.d(t,"easeLinear",(function(){return qs})),n.d(t,"easeQuad",(function(){return $s})),n.d(t,"easeQuadIn",(function(){return Ks})),n.d(t,"easeQuadOut",(function(){return Gs})),n.d(t,"easeQuadInOut",(function(){return $s})),n.d(t,"easeCubic",(function(){return ni})),n.d(t,"easeCubicIn",(function(){return ei})),n.d(t,"easeCubicOut",(function(){return ti})),n.d(t,"easeCubicInOut",(function(){return ni})),n.d(t,"easePoly",(function(){return Js})),n.d(t,"easePolyIn",(function(){return Zs})),n.d(t,"easePolyOut",(function(){return Xs})),n.d(t,"easePolyInOut",(function(){return Js})),n.d(t,"easeSin",(function(){return ra})),n.d(t,"easeSinIn",(function(){return ta})),n.d(t,"easeSinOut",(function(){return na})),n.d(t,"easeSinInOut",(function(){return ra})),n.d(t,"easeExp",(function(){return sa})),n.d(t,"easeExpIn",(function(){return ia})),n.d(t,"easeExpOut",(function(){return oa})),n.d(t,"easeExpInOut",(function(){return sa})),n.d(t,"easeCircle",(function(){return la})),n.d(t,"easeCircleIn",(function(){return aa})),n.d(t,"easeCircleOut",(function(){return ua})),n.d(t,"easeCircleInOut",(function(){return la})),n.d(t,"easeBounce",(function(){return wa})),n.d(t,"easeBounceIn",(function(){return ba})),n.d(t,"easeBounceOut",(function(){return wa})),n.d(t,"easeBounceInOut",(function(){return Ca})),n.d(t,"easeBack",(function(){return La})),n.d(t,"easeBackIn",(function(){return Sa})),n.d(t,"easeBackOut",(function(){return xa})),n.d(t,"easeBackInOut",(function(){return La})),n.d(t,"easeElastic",(function(){return Da})),n.d(t,"easeElasticIn",(function(){return Ma})),n.d(t,"easeElasticOut",(function(){return Da})),n.d(t,"easeElasticInOut",(function(){return Ea})),n.d(t,"blob",(function(){return Na})),n.d(t,"buffer",(function(){return Aa})),n.d(t,"dsv",(function(){return Fa})),n.d(t,"csv",(function(){return Ya})),n.d(t,"tsv",(function(){return ja})),n.d(t,"image",(function(){return Ba})),n.d(t,"json",(function(){return Ha})),n.d(t,"text",(function(){return Pa})),n.d(t,"xml",(function(){return za})),n.d(t,"html",(function(){return Ua})),n.d(t,"svg",(function(){return qa})),n.d(t,"forceCenter",(function(){return Ka})),n.d(t,"forceCollide",(function(){return su})),n.d(t,"forceLink",(function(){return lu})),n.d(t,"forceManyBody",(function(){return gu})),n.d(t,"forceRadial",(function(){return mu})),n.d(t,"forceSimulation",(function(){return pu})),n.d(t,"forceX",(function(){return _u})),n.d(t,"forceY",(function(){return yu})),n.d(t,"formatDefaultLocale",(function(){return Pu})),n.d(t,"format",(function(){return ku})),n.d(t,"formatPrefix",(function(){return Mu})),n.d(t,"formatLocale",(function(){return Iu})),n.d(t,"formatSpecifier",(function(){return Cu})),n.d(t,"FormatSpecifier",(function(){return Su})),n.d(t,"precisionFixed",(function(){return Ru})),n.d(t,"precisionPrefix",(function(){return Fu})),n.d(t,"precisionRound",(function(){return Yu})),n.d(t,"geoArea",(function(){return Nl})),n.d(t,"geoBounds",(function(){return Sc})),n.d(t,"geoCentroid",(function(){return Pc})),n.d(t,"geoCircle",(function(){return qc})),n.d(t,"geoClipAntimeridian",(function(){return id})),n.d(t,"geoClipCircle",(function(){return od})),n.d(t,"geoClipExtent",(function(){return fd})),n.d(t,"geoClipRectangle",(function(){return ld})),n.d(t,"geoContains",(function(){return Nd})),n.d(t,"geoDistance",(function(){return Cd})),n.d(t,"geoGraticule",(function(){return Id})),n.d(t,"geoGraticule10",(function(){return Pd})),n.d(t,"geoInterpolate",(function(){return Bd})),n.d(t,"geoLength",(function(){return vd})),n.d(t,"geoPath",(function(){return Yh})),n.d(t,"geoAlbers",(function(){return of})),n.d(t,"geoAlbersUsa",(function(){return sf})),n.d(t,"geoAzimuthalEqualArea",(function(){return cf})),n.d(t,"geoAzimuthalEqualAreaRaw",(function(){return lf})),n.d(t,"geoAzimuthalEquidistant",(function(){return hf})),n.d(t,"geoAzimuthalEquidistantRaw",(function(){return df})),n.d(t,"geoConicConformal",(function(){return yf})),n.d(t,"geoConicConformalRaw",(function(){return _f})),n.d(t,"geoConicEqualArea",(function(){return rf})),n.d(t,"geoConicEqualAreaRaw",(function(){return nf})),n.d(t,"geoConicEquidistant",(function(){return Cf})),n.d(t,"geoConicEquidistantRaw",(function(){return wf})),n.d(t,"geoEqualEarth",(function(){return Ef})),n.d(t,"geoEqualEarthRaw",(function(){return Df})),n.d(t,"geoEquirectangular",(function(){return bf})),n.d(t,"geoEquirectangularRaw",(function(){return vf})),n.d(t,"geoGnomonic",(function(){return Nf})),n.d(t,"geoGnomonicRaw",(function(){return Tf})),n.d(t,"geoIdentity",(function(){return Af})),n.d(t,"geoProjection",(function(){return Qh})),n.d(t,"geoProjectionMutator",(function(){return ef})),n.d(t,"geoMercator",(function(){return pf})),n.d(t,"geoMercatorRaw",(function(){return ff})),n.d(t,"geoNaturalEarth1",(function(){return Pf})),n.d(t,"geoNaturalEarth1Raw",(function(){return If})),n.d(t,"geoOrthographic",(function(){return Ff})),n.d(t,"geoOrthographicRaw",(function(){return Rf})),n.d(t,"geoStereographic",(function(){return jf})),n.d(t,"geoStereographicRaw",(function(){return Yf})),n.d(t,"geoTransverseMercator",(function(){return Wf})),n.d(t,"geoTransverseMercatorRaw",(function(){return Bf})),n.d(t,"geoRotation",(function(){return Vc})),n.d(t,"geoStream",(function(){return Sl})),n.d(t,"geoTransform",(function(){return jh})),n.d(t,"cluster",(function(){return Uf})),n.d(t,"hierarchy",(function(){return Kf})),n.d(t,"pack",(function(){return yp})),n.d(t,"packSiblings",(function(){return hp})),n.d(t,"packEnclose",(function(){return Qf})),n.d(t,"partition",(function(){return xp})),n.d(t,"stratify",(function(){return Tp})),n.d(t,"tree",(function(){return Fp})),n.d(t,"treemap",(function(){return Hp})),n.d(t,"treemapBinary",(function(){return Vp})),n.d(t,"treemapDice",(function(){return Sp})),n.d(t,"treemapSlice",(function(){return Yp})),n.d(t,"treemapSliceDice",(function(){return zp})),n.d(t,"treemapSquarify",(function(){return Wp})),n.d(t,"treemapResquarify",(function(){return Up})),n.d(t,"interpolate",(function(){return In})),n.d(t,"interpolateArray",(function(){return xn})),n.d(t,"interpolateBasis",(function(){return dn})),n.d(t,"interpolateBasisClosed",(function(){return hn})),n.d(t,"interpolateDate",(function(){return kn})),n.d(t,"interpolateDiscrete",(function(){return qp})),n.d(t,"interpolateHue",(function(){return Kp})),n.d(t,"interpolateNumber",(function(){return Mn})),n.d(t,"interpolateNumberArray",(function(){return Cn})),n.d(t,"interpolateObject",(function(){return Dn})),n.d(t,"interpolateRound",(function(){return Gp})),n.d(t,"interpolateString",(function(){return An})),n.d(t,"interpolateTransformCss",(function(){return Lr})),n.d(t,"interpolateTransformSvg",(function(){return kr})),n.d(t,"interpolateZoom",(function(){return Xp})),n.d(t,"interpolateRgb",(function(){return yn})),n.d(t,"interpolateRgbBasis",(function(){return bn})),n.d(t,"interpolateRgbBasisClosed",(function(){return wn})),n.d(t,"interpolateHsl",(function(){return Qp})),n.d(t,"interpolateHslLong",(function(){return eg})),n.d(t,"interpolateLab",(function(){return tg})),n.d(t,"interpolateHcl",(function(){return rg})),n.d(t,"interpolateHclLong",(function(){return ig})),n.d(t,"interpolateCubehelix",(function(){return sg})),n.d(t,"interpolateCubehelixLong",(function(){return ag})),n.d(t,"piecewise",(function(){return ug})),n.d(t,"quantize",(function(){return lg})),n.d(t,"path",(function(){return Zi})),n.d(t,"polygonArea",(function(){return cg})),n.d(t,"polygonCentroid",(function(){return dg})),n.d(t,"polygonHull",(function(){return gg})),n.d(t,"polygonContains",(function(){return mg})),n.d(t,"polygonLength",(function(){return _g})),n.d(t,"quadtree",(function(){return eu})),n.d(t,"randomUniform",(function(){return vg})),n.d(t,"randomNormal",(function(){return bg})),n.d(t,"randomLogNormal",(function(){return wg})),n.d(t,"randomBates",(function(){return Sg})),n.d(t,"randomIrwinHall",(function(){return Cg})),n.d(t,"randomExponential",(function(){return xg})),n.d(t,"scaleBand",(function(){return Og})),n.d(t,"scalePoint",(function(){return Ag})),n.d(t,"scaleIdentity",(function(){return Gg})),n.d(t,"scaleLinear",(function(){return Kg})),n.d(t,"scaleLog",(function(){return rm})),n.d(t,"scaleSymlog",(function(){return am})),n.d(t,"scaleOrdinal",(function(){return Ng})),n.d(t,"scaleImplicit",(function(){return Tg})),n.d(t,"scalePow",(function(){return hm})),n.d(t,"scaleSqrt",(function(){return fm})),n.d(t,"scaleQuantile",(function(){return pm})),n.d(t,"scaleQuantize",(function(){return gm})),n.d(t,"scaleThreshold",(function(){return mm})),n.d(t,"scaleTime",(function(){return nv})),n.d(t,"scaleUtc",(function(){return hv})),n.d(t,"scaleSequential",(function(){return gv})),n.d(t,"scaleSequentialLog",(function(){return mv})),n.d(t,"scaleSequentialPow",(function(){return yv})),n.d(t,"scaleSequentialSqrt",(function(){return vv})),n.d(t,"scaleSequentialSymlog",(function(){return _v})),n.d(t,"scaleSequentialQuantile",(function(){return bv})),n.d(t,"scaleDiverging",(function(){return Cv})),n.d(t,"scaleDivergingLog",(function(){return Sv})),n.d(t,"scaleDivergingPow",(function(){return Lv})),n.d(t,"scaleDivergingSqrt",(function(){return kv})),n.d(t,"scaleDivergingSymlog",(function(){return xv})),n.d(t,"tickFormat",(function(){return Ug})),n.d(t,"schemeCategory10",(function(){return Dv})),n.d(t,"schemeAccent",(function(){return Ev})),n.d(t,"schemeDark2",(function(){return Tv})),n.d(t,"schemePaired",(function(){return Nv})),n.d(t,"schemePastel1",(function(){return Ov})),n.d(t,"schemePastel2",(function(){return Av})),n.d(t,"schemeSet1",(function(){return Iv})),n.d(t,"schemeSet2",(function(){return Pv})),n.d(t,"schemeSet3",(function(){return Rv})),n.d(t,"schemeTableau10",(function(){return Fv})),n.d(t,"interpolateBrBG",(function(){return Bv})),n.d(t,"schemeBrBG",(function(){return jv})),n.d(t,"interpolatePRGn",(function(){return Hv})),n.d(t,"schemePRGn",(function(){return Wv})),n.d(t,"interpolatePiYG",(function(){return zv})),n.d(t,"schemePiYG",(function(){return Vv})),n.d(t,"interpolatePuOr",(function(){return qv})),n.d(t,"schemePuOr",(function(){return Uv})),n.d(t,"interpolateRdBu",(function(){return Gv})),n.d(t,"schemeRdBu",(function(){return Kv})),n.d(t,"interpolateRdGy",(function(){return Zv})),n.d(t,"schemeRdGy",(function(){return $v})),n.d(t,"interpolateRdYlBu",(function(){return Jv})),n.d(t,"schemeRdYlBu",(function(){return Xv})),n.d(t,"interpolateRdYlGn",(function(){return eb})),n.d(t,"schemeRdYlGn",(function(){return Qv})),n.d(t,"interpolateSpectral",(function(){return nb})),n.d(t,"schemeSpectral",(function(){return tb})),n.d(t,"interpolateBuGn",(function(){return ib})),n.d(t,"schemeBuGn",(function(){return rb})),n.d(t,"interpolateBuPu",(function(){return sb})),n.d(t,"schemeBuPu",(function(){return ob})),n.d(t,"interpolateGnBu",(function(){return ub})),n.d(t,"schemeGnBu",(function(){return ab})),n.d(t,"interpolateOrRd",(function(){return cb})),n.d(t,"schemeOrRd",(function(){return lb})),n.d(t,"interpolatePuBuGn",(function(){return hb})),n.d(t,"schemePuBuGn",(function(){return db})),n.d(t,"interpolatePuBu",(function(){return pb})),n.d(t,"schemePuBu",(function(){return fb})),n.d(t,"interpolatePuRd",(function(){return mb})),n.d(t,"schemePuRd",(function(){return gb})),n.d(t,"interpolateRdPu",(function(){return yb})),n.d(t,"schemeRdPu",(function(){return _b})),n.d(t,"interpolateYlGnBu",(function(){return bb})),n.d(t,"schemeYlGnBu",(function(){return vb})),n.d(t,"interpolateYlGn",(function(){return Cb})),n.d(t,"schemeYlGn",(function(){return wb})),n.d(t,"interpolateYlOrBr",(function(){return xb})),n.d(t,"schemeYlOrBr",(function(){return Sb})),n.d(t,"interpolateYlOrRd",(function(){return kb})),n.d(t,"schemeYlOrRd",(function(){return Lb})),n.d(t,"interpolateBlues",(function(){return Db})),n.d(t,"schemeBlues",(function(){return Mb})),n.d(t,"interpolateGreens",(function(){return Tb})),n.d(t,"schemeGreens",(function(){return Eb})),n.d(t,"interpolateGreys",(function(){return Ob})),n.d(t,"schemeGreys",(function(){return Nb})),n.d(t,"interpolatePurples",(function(){return Ib})),n.d(t,"schemePurples",(function(){return Ab})),n.d(t,"interpolateReds",(function(){return Rb})),n.d(t,"schemeReds",(function(){return Pb})),n.d(t,"interpolateOranges",(function(){return Yb})),n.d(t,"schemeOranges",(function(){return Fb})),n.d(t,"interpolateCividis",(function(){return jb})),n.d(t,"interpolateCubehelixDefault",(function(){return Bb})),n.d(t,"interpolateRainbow",(function(){return zb})),n.d(t,"interpolateWarm",(function(){return Wb})),n.d(t,"interpolateCool",(function(){return Hb})),n.d(t,"interpolateSinebow",(function(){return Gb})),n.d(t,"interpolateTurbo",(function(){return $b})),n.d(t,"interpolateViridis",(function(){return Xb})),n.d(t,"interpolateMagma",(function(){return Jb})),n.d(t,"interpolateInferno",(function(){return Qb})),n.d(t,"interpolatePlasma",(function(){return ew})),n.d(t,"create",(function(){return tw})),n.d(t,"creator",(function(){return ut})),n.d(t,"local",(function(){return rw})),n.d(t,"matcher",(function(){return be})),n.d(t,"mouse",(function(){return Yn})),n.d(t,"namespace",(function(){return Ee})),n.d(t,"namespaces",(function(){return De})),n.d(t,"clientPoint",(function(){return Rn})),n.d(t,"select",(function(){return Dt})),n.d(t,"selectAll",(function(){return ow})),n.d(t,"selection",(function(){return Mt})),n.d(t,"selector",(function(){return _e})),n.d(t,"selectorAll",(function(){return ve})),n.d(t,"style",(function(){return Be})),n.d(t,"touch",(function(){return Fn})),n.d(t,"touches",(function(){return sw})),n.d(t,"window",(function(){return Re})),n.d(t,"event",(function(){return pt})),n.d(t,"customEvent",(function(){return bt})),n.d(t,"arc",(function(){return kw})),n.d(t,"area",(function(){return Ow})),n.d(t,"line",(function(){return Nw})),n.d(t,"pie",(function(){return Pw})),n.d(t,"areaRadial",(function(){return Ww})),n.d(t,"radialArea",(function(){return Ww})),n.d(t,"lineRadial",(function(){return Bw})),n.d(t,"radialLine",(function(){return Bw})),n.d(t,"pointRadial",(function(){return Hw})),n.d(t,"linkHorizontal",(function(){return Zw})),n.d(t,"linkVertical",(function(){return Xw})),n.d(t,"linkRadial",(function(){return Jw})),n.d(t,"symbol",(function(){return mC})),n.d(t,"symbols",(function(){return gC})),n.d(t,"symbolCircle",(function(){return Qw})),n.d(t,"symbolCross",(function(){return eC})),n.d(t,"symbolDiamond",(function(){return rC})),n.d(t,"symbolSquare",(function(){return uC})),n.d(t,"symbolStar",(function(){return aC})),n.d(t,"symbolTriangle",(function(){return cC})),n.d(t,"symbolWye",(function(){return pC})),n.d(t,"curveBasisClosed",(function(){return CC})),n.d(t,"curveBasisOpen",(function(){return xC})),n.d(t,"curveBasis",(function(){return bC})),n.d(t,"curveBundle",(function(){return kC})),n.d(t,"curveCardinalClosed",(function(){return NC})),n.d(t,"curveCardinalOpen",(function(){return AC})),n.d(t,"curveCardinal",(function(){return EC})),n.d(t,"curveCatmullRomClosed",(function(){return YC})),n.d(t,"curveCatmullRomOpen",(function(){return BC})),n.d(t,"curveCatmullRom",(function(){return RC})),n.d(t,"curveLinearClosed",(function(){return HC})),n.d(t,"curveLinear",(function(){return Dw})),n.d(t,"curveMonotoneX",(function(){return ZC})),n.d(t,"curveMonotoneY",(function(){return XC})),n.d(t,"curveNatural",(function(){return eS})),n.d(t,"curveStep",(function(){return nS})),n.d(t,"curveStepAfter",(function(){return iS})),n.d(t,"curveStepBefore",(function(){return rS})),n.d(t,"stack",(function(){return uS})),n.d(t,"stackOffsetExpand",(function(){return lS})),n.d(t,"stackOffsetDiverging",(function(){return cS})),n.d(t,"stackOffsetNone",(function(){return oS})),n.d(t,"stackOffsetSilhouette",(function(){return dS})),n.d(t,"stackOffsetWiggle",(function(){return hS})),n.d(t,"stackOrderAppearance",(function(){return fS})),n.d(t,"stackOrderAscending",(function(){return gS})),n.d(t,"stackOrderDescending",(function(){return _S})),n.d(t,"stackOrderInsideOut",(function(){return yS})),n.d(t,"stackOrderNone",(function(){return sS})),n.d(t,"stackOrderReverse",(function(){return vS})),n.d(t,"timeInterval",(function(){return vm})),n.d(t,"timeMillisecond",(function(){return n_})),n.d(t,"timeMilliseconds",(function(){return r_})),n.d(t,"utcMillisecond",(function(){return n_})),n.d(t,"utcMilliseconds",(function(){return r_})),n.d(t,"timeSecond",(function(){return Qm})),n.d(t,"timeSeconds",(function(){return e_})),n.d(t,"utcSecond",(function(){return Qm})),n.d(t,"utcSeconds",(function(){return e_})),n.d(t,"timeMinute",(function(){return Zm})),n.d(t,"timeMinutes",(function(){return Xm})),n.d(t,"timeHour",(function(){return Km})),n.d(t,"timeHours",(function(){return Gm})),n.d(t,"timeDay",(function(){return zm})),n.d(t,"timeDays",(function(){return Um})),n.d(t,"timeWeek",(function(){return Em})),n.d(t,"timeWeeks",(function(){return Rm})),n.d(t,"timeSunday",(function(){return Em})),n.d(t,"timeSundays",(function(){return Rm})),n.d(t,"timeMonday",(function(){return Tm})),n.d(t,"timeMondays",(function(){return Fm})),n.d(t,"timeTuesday",(function(){return Nm})),n.d(t,"timeTuesdays",(function(){return Ym})),n.d(t,"timeWednesday",(function(){return Om})),n.d(t,"timeWednesdays",(function(){return jm})),n.d(t,"timeThursday",(function(){return Am})),n.d(t,"timeThursdays",(function(){return Bm})),n.d(t,"timeFriday",(function(){return Im})),n.d(t,"timeFridays",(function(){return Wm})),n.d(t,"timeSaturday",(function(){return Pm})),n.d(t,"timeSaturdays",(function(){return Hm})),n.d(t,"timeMonth",(function(){return xm})),n.d(t,"timeMonths",(function(){return Lm})),n.d(t,"timeYear",(function(){return wm})),n.d(t,"timeYears",(function(){return Cm})),n.d(t,"utcMinute",(function(){return cv})),n.d(t,"utcMinutes",(function(){return dv})),n.d(t,"utcHour",(function(){return av})),n.d(t,"utcHours",(function(){return uv})),n.d(t,"utcDay",(function(){return b_})),n.d(t,"utcDays",(function(){return w_})),n.d(t,"utcWeek",(function(){return o_})),n.d(t,"utcWeeks",(function(){return h_})),n.d(t,"utcSunday",(function(){return o_})),n.d(t,"utcSundays",(function(){return h_})),n.d(t,"utcMonday",(function(){return s_})),n.d(t,"utcMondays",(function(){return f_})),n.d(t,"utcTuesday",(function(){return a_})),n.d(t,"utcTuesdays",(function(){return p_})),n.d(t,"utcWednesday",(function(){return u_})),n.d(t,"utcWednesdays",(function(){return g_})),n.d(t,"utcThursday",(function(){return l_})),n.d(t,"utcThursdays",(function(){return m_})),n.d(t,"utcFriday",(function(){return c_})),n.d(t,"utcFridays",(function(){return __})),n.d(t,"utcSaturday",(function(){return d_})),n.d(t,"utcSaturdays",(function(){return y_})),n.d(t,"utcMonth",(function(){return iv})),n.d(t,"utcMonths",(function(){return ov})),n.d(t,"utcYear",(function(){return S_})),n.d(t,"utcYears",(function(){return x_})),n.d(t,"timeFormatDefaultLocale",(function(){return Uy})),n.d(t,"timeFormat",(function(){return T_})),n.d(t,"timeParse",(function(){return N_})),n.d(t,"utcFormat",(function(){return O_})),n.d(t,"utcParse",(function(){return A_})),n.d(t,"timeFormatLocale",(function(){return D_})),n.d(t,"isoFormat",(function(){return bS})),n.d(t,"isoParse",(function(){return wS})),n.d(t,"now",(function(){return Gn})),n.d(t,"timer",(function(){return Xn})),n.d(t,"timerFlush",(function(){return Jn})),n.d(t,"timeout",(function(){return nr})),n.d(t,"interval",(function(){return CS})),n.d(t,"transition",(function(){return Xr})),n.d(t,"active",(function(){return si})),n.d(t,"interrupt",(function(){return br})),n.d(t,"voronoi",(function(){return ax})),n.d(t,"zoom",(function(){return wx})),n.d(t,"zoomTransform",(function(){return hx})),n.d(t,"zoomIdentity",(function(){return dx}))},function(e,t,n){"use strict";var r=n(101).forEach,i=n(358),o=n(359),s=n(360),a=n(361),u=n(362),l=n(102),c=n(363),d=n(365),h=n(366),f=n(367);function p(e){return Array.isArray(e)||void 0!==e.length}function g(e){if(Array.isArray(e))return e;var t=[];return r(e,(function(e){t.push(e)})),t}function m(e){return e&&1===e.nodeType}function _(e,t,n){var r=e[t];return null==r&&void 0!==n?n:r}e.exports=function(e){var t;if((e=e||{}).idHandler)t={get:function(t){return e.idHandler.get(t,!0)},set:e.idHandler.set};else{var n=s(),y=a({idGenerator:n,stateHandler:d});t=y}var v=e.reporter;v||(v=u(!1===v));var b=_(e,"batchProcessor",c({reporter:v})),w={};w.callOnAdd=!!_(e,"callOnAdd",!0),w.debug=!!_(e,"debug",!1);var C,S=o(t),x=i({stateHandler:d}),L=_(e,"strategy","object"),k=_(e,"important",!1),M={reporter:v,batchProcessor:b,stateHandler:d,idHandler:t,important:k};if("scroll"===L&&(l.isLegacyOpera()?(v.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),L="object"):l.isIE(9)&&(v.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),L="object")),"scroll"===L)C=f(M);else{if("object"!==L)throw new Error("Invalid strategy name: "+L);C=h(M)}var D={};return{listenTo:function(e,n,i){function o(e){var t=S.get(e);r(t,(function(t){t(e)}))}function s(e,t,n){S.add(t,n),e&&n(t)}if(i||(i=n,n=e,e={}),!n)throw new Error("At least one element required.");if(!i)throw new Error("Listener required.");if(m(n))n=[n];else{if(!p(n))return v.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");n=g(n)}var a=0,u=_(e,"callOnAdd",w.callOnAdd),l=_(e,"onReady",(function(){})),c=_(e,"debug",w.debug);r(n,(function(e){d.getState(e)||(d.initState(e),t.set(e));var h=t.get(e);if(c&&v.log("Attaching listener to element",h,e),!x.isDetectable(e))return c&&v.log(h,"Not detectable."),x.isBusy(e)?(c&&v.log(h,"System busy making it detectable"),s(u,e,i),D[h]=D[h]||[],void D[h].push((function(){++a===n.length&&l()}))):(c&&v.log(h,"Making detectable..."),x.markBusy(e,!0),C.makeDetectable({debug:c,important:k},e,(function(e){if(c&&v.log(h,"onElementDetectable"),d.getState(e)){x.markAsDetectable(e),x.markBusy(e,!1),C.addListener(e,o),s(u,e,i);var t=d.getState(e);if(t&&t.startSize){var f=e.offsetWidth,p=e.offsetHeight;t.startSize.width===f&&t.startSize.height===p||o(e)}D[h]&&r(D[h],(function(e){e()}))}else c&&v.log(h,"Element uninstalled before being detectable.");delete D[h],++a===n.length&&l()})));c&&v.log(h,"Already detecable, adding listener."),s(u,e,i),a++})),a===n.length&&l()},removeListener:S.removeListener,removeAllListeners:S.removeAllListeners,uninstall:function(e){if(!e)return v.error("At least one element is required.");if(m(e))e=[e];else{if(!p(e))return v.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");e=g(e)}r(e,(function(e){S.removeAllListeners(e),C.uninstall(e),d.cleanState(e)}))},initDocument:function(e){C.initDocument&&C.initDocument(e)}}}},function(e){e.exports=JSON.parse('{"name":"mermaid","version":"8.8.4","description":"Markdownish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.","main":"dist/mermaid.core.js","keywords":["diagram","markdown","flowchart","sequence diagram","gantt","class diagram","git graph"],"scripts":{"build:development":"webpack --progress --colors","build:production":"yarn build:development -p --config webpack.config.prod.babel.js","build":"yarn build:development && yarn build:production","postbuild":"documentation build src/mermaidAPI.js src/config.js --shallow -f md --markdown-toc false > docs/Setup.md","build:watch":"yarn build --watch","minify":"minify ./dist/mermaid.js > ./dist/mermaid.min.js","release":"yarn build","lint":"eslint src","e2e:depr":"yarn lint && jest e2e --config e2e/jest.config.js","cypress":"percy exec -- cypress run","e2e":"start-server-and-test dev http://localhost:9000/ cypress","e2e-upd":"yarn lint && jest e2e -u --config e2e/jest.config.js","dev":"webpack-dev-server --config webpack.config.e2e.js","test":"yarn lint && jest src/.*","test:watch":"jest --watch src","prepublishOnly":"yarn build && yarn test","prepare":"yarn build"},"repository":{"type":"git","url":"https://github.com/knsv/mermaid"},"author":"Knut Sveidqvist","license":"MIT","standard":{"ignore":["**/parser/*.js","dist/**/*.js","cypress/**/*.js"],"globals":["page"]},"dependencies":{"@braintree/sanitize-url":"^3.1.0","d3":"^5.7.0","dagre":"^0.8.4","dagre-d3":"^0.6.4","entity-decode":"^2.0.2","graphlib":"^2.1.7","he":"^1.2.0","khroma":"^1.1.0","minify":"^4.1.1","moment-mini":"^2.22.1","stylis":"^3.5.2"},"devDependencies":{"@babel/core":"^7.2.2","@babel/preset-env":"^7.8.4","@babel/register":"^7.0.0","@percy/cypress":"*","babel-core":"7.0.0-bridge.0","babel-eslint":"^10.1.0","babel-jest":"^24.9.0","babel-loader":"^8.0.4","coveralls":"^3.0.2","css-loader":"^2.0.1","css-to-string-loader":"^0.1.3","cypress":"4.0.1","documentation":"^12.0.1","eslint":"^6.3.0","eslint-config-prettier":"^6.3.0","eslint-plugin-prettier":"^3.1.0","husky":"^1.2.1","identity-obj-proxy":"^3.0.0","jest":"^24.9.0","jison":"^0.4.18","moment":"^2.23.0","node-sass":"^4.12.0","prettier":"^1.18.2","puppeteer":"^1.17.0","sass-loader":"^7.1.0","start-server-and-test":"^1.10.6","terser-webpack-plugin":"^2.2.2","webpack":"^4.41.2","webpack-bundle-analyzer":"^3.7.0","webpack-cli":"^3.1.2","webpack-dev-server":"^3.4.1","webpack-node-externals":"^1.7.2","yarn-upgrade-all":"^0.5.0"},"files":["dist"],"yarn-upgrade-all":{"ignore":["babel-core"]},"sideEffects":["**/*.css","**/*.scss"],"husky":{"hooks":{"pre-push":"yarn test"}}}')},function(e,t,n){e.exports=n(615)},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){(function(e,t){(function(){"use strict";function n(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){return t.reject(n)}))}))}var r=setTimeout;function i(){}function o(e){if(!(this instanceof o))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],d(e,this)}function s(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,o._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(e){return void u(t.promise,e)}a(t.promise,r)}else(1===e._state?a:u)(t.promise,e._value)}))):e._deferreds.push(t)}function a(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof o)return e._state=3,e._value=t,void l(e);if("function"==typeof n)return void d((r=n,i=t,function(){r.apply(i,arguments)}),e)}e._state=1,e._value=t,l(e)}catch(t){u(e,t)}var r,i}function u(e,t){e._state=2,e._value=t,l(e)}function l(e){2===e._state&&0===e._deferreds.length&&o._immediateFn((function(){e._handled||o._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)s(e,e._deferreds[t]);e._deferreds=null}function c(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function d(e,t){var n=!1;try{e((function(e){n||(n=!0,a(t,e))}),(function(e){n||(n=!0,u(t,e))}))}catch(e){if(n)return;n=!0,u(t,e)}}o.prototype.catch=function(e){return this.then(null,e)},o.prototype.then=function(e,t){var n=new this.constructor(i);return s(this,new c(e,t,n)),n},o.prototype.finally=n,o.all=function(e){return new o((function(t,n){if(!e||void 0===e.length)throw new TypeError("Promise.all accepts an array");var r=Array.prototype.slice.call(e);if(0===r.length)return t([]);var i=r.length;function o(e,s){try{if(s&&("object"==typeof s||"function"==typeof s)){var a=s.then;if("function"==typeof a)return void a.call(s,(function(t){o(e,t)}),n)}r[e]=s,0==--i&&t(r)}catch(e){n(e)}}for(var s=0;s<r.length;s++)o(s,r[s])}))},o.resolve=function(e){return e&&"object"==typeof e&&e.constructor===o?e:new o((function(t){t(e)}))},o.reject=function(e){return new o((function(t,n){n(e)}))},o.race=function(e){return new o((function(t,n){for(var r=0,i=e.length;r<i;r++)e[r].then(t,n)}))},o._immediateFn="function"==typeof e&&function(t){e(t)}||function(e){r(e,0)},o._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var h=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==t)return t;throw new Error("unable to locate global object")}();"Promise"in h?h.Promise.prototype.finally||(h.Promise.prototype.finally=n):h.Promise=o})()}).call(this,n(330).setImmediate,n(30))},function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function o(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new o(i.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new o(i.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(331),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(30))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,i,o,s,a,u=1,l={},c=!1,d=e.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(e);h=h&&h.setTimeout?h:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){p(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){p(e.data)},r=function(e){o.port2.postMessage(e)}):d&&"onreadystatechange"in d.createElement("script")?(i=d.documentElement,r=function(e){var t=d.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):r=function(e){setTimeout(p,0,e)}:(s="setImmediate$"+Math.random()+"$",a=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(s)&&p(+t.data.slice(s.length))},e.addEventListener?e.addEventListener("message",a,!1):e.attachEvent("onmessage",a),r=function(t){e.postMessage(s+t,"*")}),h.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var i={callback:e,args:t};return l[u]=i,r(u),u++},h.clearImmediate=f}function f(e){delete l[e]}function p(e){if(c)setTimeout(p,0,e);else{var t=l[e];if(t){c=!0;try{!function(e){var t=e.callback,r=e.args;switch(r.length){case 0:t();break;case 1:t(r[0]);break;case 2:t(r[0],r[1]);break;case 3:t(r[0],r[1],r[2]);break;default:t.apply(n,r)}}(t)}finally{f(e),c=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(30),n(72))},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";e.exports=function(e){var t=e.stateHandler.getState;return{isDetectable:function(e){var n=t(e);return n&&!!n.isDetectable},markAsDetectable:function(e){t(e).isDetectable=!0},isBusy:function(e){return!!t(e).busy},markBusy:function(e,n){t(e).busy=!!n}}}},function(e,t,n){"use strict";e.exports=function(e){var t={};function n(n){var r=e.get(n);return void 0===r?[]:t[r]||[]}return{get:n,add:function(n,r){var i=e.get(n);t[i]||(t[i]=[]),t[i].push(r)},removeListener:function(e,t){for(var r=n(e),i=0,o=r.length;i<o;++i)if(r[i]===t){r.splice(i,1);break}},removeAllListeners:function(e){var t=n(e);t&&(t.length=0)}}}},function(e,t,n){"use strict";e.exports=function(){var e=1;return{generate:function(){return e++}}}},function(e,t,n){"use strict";e.exports=function(e){var t=e.idGenerator,n=e.stateHandler.getState;return{get:function(e){var t=n(e);return t&&void 0!==t.id?t.id:null},set:function(e){var r=n(e);if(!r)throw new Error("setId required the element to have a resize detection state.");var i=t.generate();return r.id=i,i}}}},function(e,t,n){"use strict";e.exports=function(e){function t(){}var n={log:t,warn:t,error:t};if(!e&&window.console){var r=function(e,t){e[t]=function(){var e=console[t];if(e.apply)e.apply(console,arguments);else for(var n=0;n<arguments.length;n++)e(arguments[n])}};r(n,"log"),r(n,"warn"),r(n,"error")}return n}},function(e,t,n){"use strict";var r=n(364);function i(){var e={},t=0,n=0,r=0;return{add:function(i,o){o||(o=i,i=0),i>n?n=i:i<r&&(r=i),e[i]||(e[i]=[]),e[i].push(o),t++},process:function(){for(var t=r;t<=n;t++)for(var i=e[t],o=0;o<i.length;o++){(0,i[o])()}},size:function(){return t}}}e.exports=function(e){var t=(e=e||{}).reporter,n=r.getOption(e,"async",!0),o=r.getOption(e,"auto",!0);o&&!n&&(t&&t.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),n=!0);var s,a=i(),u=!1;function l(){for(u=!0;a.size();){var e=a;a=i(),e.process()}u=!1}function c(){var e;e=l,s=setTimeout(e,0)}return{add:function(e,t){!u&&o&&n&&0===a.size()&&c(),a.add(e,t)},force:function(e){u||(void 0===e&&(e=n),s&&(clearTimeout(s),s=null),e?c():l())}}}},function(e,t,n){"use strict";(e.exports={}).getOption=function(e,t,n){var r=e[t];if(null==r&&void 0!==n)return n;return r}},function(e,t,n){"use strict";var r="_erd";function i(e){return e[r]}e.exports={initState:function(e){return e[r]={},i(e)},getState:i,cleanState:function(e){delete e[r]}}},function(e,t,n){"use strict";var r=n(102);e.exports=function(e){var t=(e=e||{}).reporter,n=e.batchProcessor,i=e.stateHandler.getState;if(!t)throw new Error("Missing required dependency: reporter.");function o(t){var n=e.important?" !important; ":"; ";return(t.join(n)+n).trim()}function s(e){return i(e).object}return{makeDetectable:function(e,s,a){a||(a=s,s=e,e=null),(e=e||{}).debug,r.isIE(8)?a(s):function(s,a){var u=o(["display: block","position: absolute","top: 0","left: 0","width: 100%","height: 100%","border: none","padding: 0","margin: 0","opacity: 0","z-index: -1000","pointer-events: none"]),l=!1,c=window.getComputedStyle(s),d=s.offsetWidth,h=s.offsetHeight;function f(){function n(){if("static"===c.position){s.style.setProperty("position","relative",e.important?"important":"");var n=function(t,n,r,i){var o=r[i];"auto"!==o&&"0"!==function(e){return e.replace(/[^-\d\.]/g,"")}(o)&&(t.warn("An element that is positioned static has style."+i+"="+o+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+i+" will be set to 0. Element: ",n),n.style.setProperty(i,"0",e.important?"important":""))};n(t,s,c,"top"),n(t,s,c,"right"),n(t,s,c,"bottom"),n(t,s,c,"left")}}""!==c.position&&(n(),l=!0);var o=document.createElement("object");o.style.cssText=u,o.tabIndex=-1,o.type="text/html",o.setAttribute("aria-hidden","true"),o.onload=function(){l||n(),function e(t,n){if(!t.contentDocument){var r=i(t);return r.checkForObjectDocumentTimeoutId&&window.clearTimeout(r.checkForObjectDocumentTimeoutId),void(r.checkForObjectDocumentTimeoutId=setTimeout((function(){r.checkForObjectDocumentTimeoutId=0,e(t,n)}),100))}n(t.contentDocument)}(this,(function(e){a(s)}))},r.isIE()||(o.data="about:blank"),i(s)&&(s.appendChild(o),i(s).object=o,r.isIE()&&(o.data="about:blank"))}i(s).startSize={width:d,height:h},n?n.add(f):f()}(s,a)},addListener:function(e,t){function n(){t(e)}if(r.isIE(8))i(e).object={proxy:n},e.attachEvent("onresize",n);else{var o=s(e);if(!o)throw new Error("Element is not detectable by this strategy.");o.contentDocument.defaultView.addEventListener("resize",n)}},uninstall:function(e){if(i(e)){var t=s(e);t&&(r.isIE(8)?e.detachEvent("onresize",t.proxy):e.removeChild(t),i(e).checkForObjectDocumentTimeoutId&&window.clearTimeout(i(e).checkForObjectDocumentTimeoutId),delete i(e).object)}}}}},function(e,t,n){"use strict";var r=n(101).forEach;e.exports=function(e){var t=(e=e||{}).reporter,n=e.batchProcessor,i=e.stateHandler.getState,o=(e.stateHandler.hasState,e.idHandler);if(!n)throw new Error("Missing required dependency: batchProcessor");if(!t)throw new Error("Missing required dependency: reporter.");var s=function(){var e=document.createElement("div");e.style.cssText=c(["position: absolute","width: 1000px","height: 1000px","visibility: hidden","margin: 0","padding: 0"]);var t=document.createElement("div");t.style.cssText=c(["position: absolute","width: 500px","height: 500px","overflow: scroll","visibility: none","top: -1500px","left: -1500px","visibility: hidden","margin: 0","padding: 0"]),t.appendChild(e),document.body.insertBefore(t,document.body.firstChild);var n=500-t.clientWidth,r=500-t.clientHeight;return document.body.removeChild(t),{width:n,height:r}}(),a="erd_scroll_detection_scrollbar_style",u="erd_scroll_detection_container";function l(e){!function(e,t,n){if(!e.getElementById(t)){var r=n+"_animation",i=n+"_animation_active",o="/* Created by the element-resize-detector library. */\n";o+="."+n+" > div::-webkit-scrollbar { "+c(["display: none"])+" }\n\n",o+="."+i+" { "+c(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+r,"animation-name: "+r])+" }\n",o+="@-webkit-keyframes "+r+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n",function(n,r){r=r||function(t){e.head.appendChild(t)};var i=e.createElement("style");i.innerHTML=n,i.id=t,r(i)}(o+="@keyframes "+r+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }")}}(e,a,u)}function c(t){var n=e.important?" !important; ":"; ";return(t.join(n)+n).trim()}function d(e,n,r){if(e.addEventListener)e.addEventListener(n,r);else{if(!e.attachEvent)return t.error("[scroll] Don't know how to add event listeners.");e.attachEvent("on"+n,r)}}function h(e,n,r){if(e.removeEventListener)e.removeEventListener(n,r);else{if(!e.detachEvent)return t.error("[scroll] Don't know how to remove event listeners.");e.detachEvent("on"+n,r)}}function f(e){return i(e).container.childNodes[0].childNodes[0].childNodes[0]}function p(e){return i(e).container.childNodes[0].childNodes[0].childNodes[1]}return l(window.document),{makeDetectable:function(e,a,l){function h(){if(e.debug){var n=Array.prototype.slice.call(arguments);if(n.unshift(o.get(a),"Scroll: "),t.log.apply)t.log.apply(null,n);else for(var r=0;r<n.length;r++)t.log(n[r])}}function g(e){var t=i(e).container.childNodes[0],n=window.getComputedStyle(t);return!n.width||-1===n.width.indexOf("px")}function m(){var e=window.getComputedStyle(a),t={};return t.position=e.position,t.width=a.offsetWidth,t.height=a.offsetHeight,t.top=e.top,t.right=e.right,t.bottom=e.bottom,t.left=e.left,t.widthCSS=e.width,t.heightCSS=e.height,t}function _(){if(h("storeStyle invoked."),i(a)){var e=m();i(a).style=e}else h("Aborting because element has been uninstalled")}function y(e,t,n){i(e).lastWidth=t,i(e).lastHeight=n}function v(){return 2*s.width+1}function b(){return 2*s.height+1}function w(e){return e+10+v()}function C(e){return e+10+b()}function S(e,t,n){var r=f(e),i=p(e),o=w(t),s=C(n),a=function(e){return 2*e+v()}(t),u=function(e){return 2*e+b()}(n);r.scrollLeft=o,r.scrollTop=s,i.scrollLeft=a,i.scrollTop=u}function x(){var e=i(a).container;if(!e){(e=document.createElement("div")).className=u,e.style.cssText=c(["visibility: hidden","display: inline","width: 0px","height: 0px","z-index: -1","overflow: hidden","margin: 0","padding: 0"]),i(a).container=e,function(e){e.className+=" "+u+"_animation_active"}(e),a.appendChild(e);var t=function(){i(a).onRendered&&i(a).onRendered()};d(e,"animationstart",t),i(a).onAnimationStart=t}return e}function L(){if(h("Injecting elements"),i(a)){!function(){var n=i(a).style;if("static"===n.position){a.style.setProperty("position","relative",e.important?"important":"");var r=function(e,t,n,r){var i=n[r];"auto"!==i&&"0"!==function(e){return e.replace(/[^-\d\.]/g,"")}(i)&&(e.warn("An element that is positioned static has style."+r+"="+i+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+r+" will be set to 0. Element: ",t),t.style[r]=0)};r(t,a,n,"top"),r(t,a,n,"right"),r(t,a,n,"bottom"),r(t,a,n,"left")}}();var n=i(a).container;n||(n=x());var r,o,l,f,p=s.width,g=s.height,m=c(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden","width: 100%","height: 100%","left: 0px","top: 0px"]),_=c(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden"].concat(["left: "+(r=(r=-(1+p))?r+"px":"0"),"top: "+(o=(o=-(1+g))?o+"px":"0"),"right: "+(f=(f=-p)?f+"px":"0"),"bottom: "+(l=(l=-g)?l+"px":"0")])),y=c(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),v=c(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),b=c(["position: absolute","left: 0","top: 0"]),w=c(["position: absolute","width: 200%","height: 200%"]),C=document.createElement("div"),S=document.createElement("div"),L=document.createElement("div"),k=document.createElement("div"),M=document.createElement("div"),D=document.createElement("div");C.dir="ltr",C.style.cssText=m,C.className=u,S.className=u,S.style.cssText=_,L.style.cssText=y,k.style.cssText=b,M.style.cssText=v,D.style.cssText=w,L.appendChild(k),M.appendChild(D),S.appendChild(L),S.appendChild(M),C.appendChild(S),n.appendChild(C),d(L,"scroll",E),d(M,"scroll",T),i(a).onExpandScroll=E,i(a).onShrinkScroll=T}else h("Aborting because element has been uninstalled");function E(){i(a).onExpand&&i(a).onExpand()}function T(){i(a).onShrink&&i(a).onShrink()}}function k(){function s(t,n,r){var i=function(e){return f(e).childNodes[0]}(t),o=w(n),s=C(r);i.style.setProperty("width",o+"px",e.important?"important":""),i.style.setProperty("height",s+"px",e.important?"important":"")}function u(r){var u=a.offsetWidth,c=a.offsetHeight,d=u!==i(a).lastWidth||c!==i(a).lastHeight;h("Storing current size",u,c),y(a,u,c),n.add(0,(function(){if(d)if(i(a))if(l()){if(e.debug){var n=a.offsetWidth,r=a.offsetHeight;n===u&&r===c||t.warn(o.get(a),"Scroll: Size changed before updating detector elements.")}s(a,u,c)}else h("Aborting because element container has not been initialized");else h("Aborting because element has been uninstalled")})),n.add(1,(function(){i(a)?l()?S(a,u,c):h("Aborting because element container has not been initialized"):h("Aborting because element has been uninstalled")})),d&&r&&n.add(2,(function(){i(a)?l()?r():h("Aborting because element container has not been initialized"):h("Aborting because element has been uninstalled")}))}function l(){return!!i(a).container}function c(){h("notifyListenersIfNeeded invoked");var e=i(a);return void 0===i(a).lastNotifiedWidth&&e.lastWidth===e.startSize.width&&e.lastHeight===e.startSize.height?h("Not notifying: Size is the same as the start size, and there has been no notification yet."):e.lastWidth===e.lastNotifiedWidth&&e.lastHeight===e.lastNotifiedHeight?h("Not notifying: Size already notified"):(h("Current size not notified, notifying..."),e.lastNotifiedWidth=e.lastWidth,e.lastNotifiedHeight=e.lastHeight,void r(i(a).listeners,(function(e){e(a)})))}function d(){h("Scroll detected."),g(a)?h("Scroll event fired while unrendered. Ignoring..."):u(c)}if(h("registerListenersAndPositionElements invoked."),i(a)){i(a).onRendered=function(){if(h("startanimation triggered."),g(a))h("Ignoring since element is still unrendered...");else{h("Element rendered.");var e=f(a),t=p(a);0!==e.scrollLeft&&0!==e.scrollTop&&0!==t.scrollLeft&&0!==t.scrollTop||(h("Scrollbars out of sync. Updating detector elements..."),u(c))}},i(a).onExpand=d,i(a).onShrink=d;var m=i(a).style;s(a,m.width,m.height)}else h("Aborting because element has been uninstalled")}function M(){if(h("finalizeDomMutation invoked."),i(a)){var e=i(a).style;y(a,e.width,e.height),S(a,e.width,e.height)}else h("Aborting because element has been uninstalled")}function D(){l(a)}function E(){var e;h("Installing..."),i(a).listeners=[],e=m(),i(a).startSize={width:e.width,height:e.height},h("Element start size",i(a).startSize),n.add(0,_),n.add(1,L),n.add(2,k),n.add(3,M),n.add(4,D)}l||(l=a,a=e,e=null),e=e||{},h("Making detectable..."),!function(e){return!function(e){return e===e.ownerDocument.body||e.ownerDocument.body.contains(e)}(e)||null===window.getComputedStyle(e)}(a)?E():(h("Element is detached"),x(),h("Waiting until element is attached..."),i(a).onRendered=function(){h("Element is now attached"),E()})},addListener:function(e,t){if(!i(e).listeners.push)throw new Error("Cannot add listener to an element that is not detectable.");i(e).listeners.push(t)},uninstall:function(e){var t=i(e);t&&(t.onExpandScroll&&h(f(e),"scroll",t.onExpandScroll),t.onShrinkScroll&&h(p(e),"scroll",t.onShrinkScroll),t.onAnimationStart&&h(t.container,"animationstart",t.onAnimationStart),t.container&&e.removeChild(t.container))},initDocument:l}}},function(e,t,n){"use strict";var r=/^(%20|\s)*(javascript|data)/im,i=/[^\x20-\x7E]/gim,o=/^([^:]+):/gm,s=[".","/"];e.exports={sanitizeUrl:function(e){if(!e)return"about:blank";var t,n,a=e.replace(i,"").trim();return function(e){return s.indexOf(e[0])>-1}(a)?a:(n=a.match(o))?(t=n[0],r.test(t)?"about:blank":a):"about:blank"}}},function(e,t,n){e.exports={graphlib:n(13),layout:n(477),debug:n(519),util:{time:n(5).time,notime:n(5).notime},version:n(520)}},function(e,t,n){e.exports={Graph:n(73),version:n(466)}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(49),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():i.call(t,n,1),--this.size,!0)}},function(e,t,n){var r=n(49);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(49);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(49);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},function(e,t,n){var r=n(48);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(48),i=n(74),o=n(75),s=200;e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<s-1)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var r=n(25),i=n(384),o=n(8),s=n(107),a=/^\[object .+?Constructor\]$/,u=Function.prototype,l=Object.prototype,c=u.toString,d=l.hasOwnProperty,h=RegExp("^"+c.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?h:a).test(s(e))}},function(e,t,n){var r=n(32),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,a),n=e[a];try{e[a]=void 0;var r=!0}catch(e){}var i=s.call(e);return r&&(t?e[a]=n:delete e[a]),i}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r,i=n(385),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!o&&o in e}},function(e,t,n){var r=n(14)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(388),i=n(48),o=n(74);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},function(e,t,n){var r=n(389),i=n(390),o=n(391),s=n(392),a=n(393);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=s,u.prototype.set=a,e.exports=u},function(e,t,n){var r=n(50);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(50),i="__lodash_hash_undefined__",o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return n===i?void 0:n}return o.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(50),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},function(e,t,n){var r=n(50),i="__lodash_hash_undefined__";e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?i:t,this}},function(e,t,n){var r=n(51);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(51);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(51);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(51);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},function(e,t,n){var r=n(38),i=n(19);e.exports=function(e,t){return e&&r(t,i(t),e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t,n){var r=n(26),i=n(18),o="[object Arguments]";e.exports=function(e){return i(e)&&r(e)==o}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(26),i=n(77),o=n(18),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!s[r(e)]}},function(e,t,n){var r=n(110)(Object.keys,Object);e.exports=r},function(e,t,n){var r=n(38),i=n(34);e.exports=function(e,t){return e&&r(t,i(t),e)}},function(e,t,n){var r=n(8),i=n(56),o=n(407),s=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=i(e),n=[];for(var a in e)("constructor"!=a||!t&&s.call(e,a))&&n.push(a);return n}},function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},function(e,t,n){var r=n(38),i=n(80);e.exports=function(e,t){return r(e,i(e),t)}},function(e,t,n){var r=n(38),i=n(115);e.exports=function(e,t){return r(e,i(e),t)}},function(e,t,n){var r=n(117),i=n(115),o=n(34);e.exports=function(e){return r(e,o,i)}},function(e,t,n){var r=n(24)(n(14),"DataView");e.exports=r},function(e,t,n){var r=n(24)(n(14),"Promise");e.exports=r},function(e,t,n){var r=n(24)(n(14),"WeakMap");e.exports=r},function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&n.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},function(e,t,n){var r=n(82),i=n(416),o=n(417),s=n(418),a=n(120),u="[object Boolean]",l="[object Date]",c="[object Map]",d="[object Number]",h="[object RegExp]",f="[object Set]",p="[object String]",g="[object Symbol]",m="[object ArrayBuffer]",_="[object DataView]",y="[object Float32Array]",v="[object Float64Array]",b="[object Int8Array]",w="[object Int16Array]",C="[object Int32Array]",S="[object Uint8Array]",x="[object Uint8ClampedArray]",L="[object Uint16Array]",k="[object Uint32Array]";e.exports=function(e,t,n){var M=e.constructor;switch(t){case m:return r(e);case u:case l:return new M(+e);case _:return i(e,n);case y:case v:case b:case w:case C:case S:case x:case L:case k:return a(e,n);case c:return new M;case d:case p:return new M(e);case h:return o(e);case f:return new M;case g:return s(e)}}},function(e,t,n){var r=n(82);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},function(e,t){var n=/\w*$/;e.exports=function(e){var t=new e.constructor(e.source,n.exec(e));return t.lastIndex=e.lastIndex,t}},function(e,t,n){var r=n(32),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},function(e,t,n){var r=n(420),i=n(55),o=n(78),s=o&&o.isMap,a=s?i(s):r;e.exports=a},function(e,t,n){var r=n(35),i=n(18),o="[object Map]";e.exports=function(e){return i(e)&&r(e)==o}},function(e,t,n){var r=n(422),i=n(55),o=n(78),s=o&&o.isSet,a=s?i(s):r;e.exports=a},function(e,t,n){var r=n(35),i=n(18),o="[object Set]";e.exports=function(e){return i(e)&&r(e)==o}},function(e,t){e.exports=function(e){return function(t,n,r){for(var i=-1,o=Object(t),s=r(t),a=s.length;a--;){var u=s[e?a:++i];if(!1===n(o[u],u,o))break}return t}}},function(e,t,n){var r=n(20);e.exports=function(e,t){return function(n,i){if(null==n)return n;if(!r(n))return e(n,i);for(var o=n.length,s=t?o:-1,a=Object(n);(t?s--:++s<o)&&!1!==i(a[s],s,a););return n}}},function(e,t,n){var r=n(58);e.exports=function(e,t){var n=[];return r(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}},function(e,t,n){var r=n(427),i=n(435),o=n(129);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},function(e,t,n){var r=n(47),i=n(124),o=1,s=2;e.exports=function(e,t,n,a){var u=n.length,l=u,c=!a;if(null==e)return!l;for(e=Object(e);u--;){var d=n[u];if(c&&d[2]?d[1]!==e[d[0]]:!(d[0]in e))return!1}for(;++u<l;){var h=(d=n[u])[0],f=e[h],p=d[1];if(c&&d[2]){if(void 0===f&&!(h in e))return!1}else{var g=new r;if(a)var m=a(f,p,h,e,t,g);if(!(void 0===m?i(p,f,o|s,a,g):m))return!1}}return!0}},function(e,t,n){var r=n(47),i=n(125),o=n(432),s=n(434),a=n(35),u=n(4),l=n(33),c=n(41),d=1,h="[object Arguments]",f="[object Array]",p="[object Object]",g=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,_,y){var v=u(e),b=u(t),w=v?f:a(e),C=b?f:a(t),S=(w=w==h?p:w)==p,x=(C=C==h?p:C)==p,L=w==C;if(L&&l(e)){if(!l(t))return!1;v=!0,S=!1}if(L&&!S)return y||(y=new r),v||c(e)?i(e,t,n,m,_,y):o(e,t,w,n,m,_,y);if(!(n&d)){var k=S&&g.call(e,"__wrapped__"),M=x&&g.call(t,"__wrapped__");if(k||M){var D=k?e.value():e,E=M?t.value():t;return y||(y=new r),_(D,E,n,m,y)}}return!!L&&(y||(y=new r),s(e,t,n,m,_,y))}},function(e,t){var n="__lodash_hash_undefined__";e.exports=function(e){return this.__data__.set(e,n),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t,n){var r=n(32),i=n(119),o=n(31),s=n(125),a=n(433),u=n(86),l=1,c=2,d="[object Boolean]",h="[object Date]",f="[object Error]",p="[object Map]",g="[object Number]",m="[object RegExp]",_="[object Set]",y="[object String]",v="[object Symbol]",b="[object ArrayBuffer]",w="[object DataView]",C=r?r.prototype:void 0,S=C?C.valueOf:void 0;e.exports=function(e,t,n,r,C,x,L){switch(n){case w:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case b:return!(e.byteLength!=t.byteLength||!x(new i(e),new i(t)));case d:case h:case g:return o(+e,+t);case f:return e.name==t.name&&e.message==t.message;case m:case y:return e==t+"";case p:var k=a;case _:var M=r&l;if(k||(k=u),e.size!=t.size&&!M)return!1;var D=L.get(e);if(D)return D==t;r|=c,L.set(e,t);var E=s(k(e),k(t),r,C,x,L);return L.delete(e),E;case v:if(S)return S.call(e)==S.call(t)}return!1}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},function(e,t,n){var r=n(116),i=1,o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,s,a,u){var l=n&i,c=r(e),d=c.length;if(d!=r(t).length&&!l)return!1;for(var h=d;h--;){var f=c[h];if(!(l?f in t:o.call(t,f)))return!1}var p=u.get(e);if(p&&u.get(t))return p==t;var g=!0;u.set(e,t),u.set(t,e);for(var m=l;++h<d;){var _=e[f=c[h]],y=t[f];if(s)var v=l?s(y,_,f,t,e,u):s(_,y,f,e,t,u);if(!(void 0===v?_===y||a(_,y,n,s,u):v)){g=!1;break}m||(m="constructor"==f)}if(g&&!m){var b=e.constructor,w=t.constructor;b!=w&&"constructor"in e&&"constructor"in t&&!("function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w)&&(g=!1)}return u.delete(e),u.delete(t),g}},function(e,t,n){var r=n(128),i=n(19);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var o=t[n],s=e[o];t[n]=[o,s,r(s)]}return t}},function(e,t,n){var r=n(124),i=n(437),o=n(131),s=n(88),a=n(128),u=n(129),l=n(44),c=1,d=2;e.exports=function(e,t){return s(e)&&a(t)?u(l(e),t):function(n){var s=i(n,e);return void 0===s&&s===t?o(n,e):r(t,s,c|d)}}},function(e,t,n){var r=n(87);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},function(e,t,n){var r=n(439),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,s=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)})),t}));e.exports=s},function(e,t,n){var r=n(440),i=500;e.exports=function(e){var t=r(e,(function(e){return n.size===i&&n.clear(),e})),n=t.cache;return t}},function(e,t,n){var r=n(75),i="Expected a function";function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(i);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=e.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},function(e,t,n){var r=n(32),i=n(61),o=n(4),s=n(36),a=1/0,u=r?r.prototype:void 0,l=u?u.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(s(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-a?"-0":n}},function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t,n){var r=n(133),i=n(444),o=n(88),s=n(44);e.exports=function(e){return o(e)?r(s(e)):i(e)}},function(e,t,n){var r=n(87);e.exports=function(e){return function(t){return r(t,e)}}},function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e,t){return null!=e&&n.call(e,t)}},function(e,t){e.exports=function(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}},function(e,t){e.exports=function(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}},function(e,t,n){var r=n(26),i=n(4),o=n(18),s="[object String]";e.exports=function(e){return"string"==typeof e||!i(e)&&o(e)&&r(e)==s}},function(e,t,n){var r=n(450),i=n(451),o=n(452);e.exports=function(e){return i(e)?o(e):r(e)}},function(e,t,n){var r=n(133)("length");e.exports=r},function(e,t){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return n.test(e)}},function(e,t){var n="[\\ud800-\\udfff]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",o="[^\\ud800-\\udfff]",s="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",u="(?:"+r+"|"+i+")"+"?",l="[\\ufe0e\\ufe0f]?"+u+("(?:\\u200d(?:"+[o,s,a].join("|")+")[\\ufe0e\\ufe0f]?"+u+")*"),c="(?:"+[o+r+"?",r,s,a,n].join("|")+")",d=RegExp(i+"(?="+i+")|"+c+l,"g");e.exports=function(e){for(var t=d.lastIndex=0;d.test(e);)++t;return t}},function(e,t,n){var r=n(32),i=n(39),o=n(4),s=r?r.isConcatSpreadable:void 0;e.exports=function(e){return o(e)||i(e)||!!(s&&e&&e[s])}},function(e,t){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},function(e,t,n){var r=n(42),i=n(108),o=n(27),s=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:o;e.exports=s},function(e,t){var n=800,r=16,i=Date.now;e.exports=function(e){var t=0,o=0;return function(){var s=i(),a=r-(s-o);if(o=s,a>0){if(++t>=n)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,n){var r=n(126),i=n(458),o=n(462),s=n(127),a=n(463),u=n(86),l=200;e.exports=function(e,t,n){var c=-1,d=i,h=e.length,f=!0,p=[],g=p;if(n)f=!1,d=o;else if(h>=l){var m=t?null:a(e);if(m)return u(m);f=!1,d=s,g=new r}else g=t?[]:p;e:for(;++c<h;){var _=e[c],y=t?t(_):_;if(_=n||0!==_?_:0,f&&y==y){for(var v=g.length;v--;)if(g[v]===y)continue e;t&&g.push(y),p.push(_)}else d(g,y,n)||(g!==p&&g.push(y),p.push(_))}return p}},function(e,t,n){var r=n(459);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},function(e,t,n){var r=n(141),i=n(460),o=n(461);e.exports=function(e,t,n){return t==t?o(e,t,n):r(e,i,n)}},function(e,t){e.exports=function(e){return e!=e}},function(e,t){e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}},function(e,t){e.exports=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}},function(e,t,n){var r=n(118),i=n(464),o=n(86),s=r&&1/o(new r([,-0]))[1]==1/0?function(e){return new r(e)}:i;e.exports=s},function(e,t){e.exports=function(){}},function(e,t,n){var r=n(61);e.exports=function(e,t){return r(t,(function(t){return e[t]}))}},function(e,t){e.exports="2.1.7"},function(e,t,n){var r=n(7),i=n(73);function o(e){return r.map(e.nodes(),(function(t){var n=e.node(t),i=e.parent(t),o={v:t};return r.isUndefined(n)||(o.value=n),r.isUndefined(i)||(o.parent=i),o}))}function s(e){return r.map(e.edges(),(function(t){var n=e.edge(t),i={v:t.v,w:t.w};return r.isUndefined(t.name)||(i.name=t.name),r.isUndefined(n)||(i.value=n),i}))}e.exports={write:function(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:o(e),edges:s(e)};r.isUndefined(e.graph())||(t.value=r.clone(e.graph()));return t},read:function(e){var t=new i(e.options).setGraph(e.value);return r.each(e.nodes,(function(e){t.setNode(e.v,e.value),e.parent&&t.setParent(e.v,e.parent)})),r.each(e.edges,(function(e){t.setEdge({v:e.v,w:e.w,name:e.name},e.value)})),t}}},function(e,t,n){e.exports={components:n(469),dijkstra:n(143),dijkstraAll:n(470),findCycles:n(471),floydWarshall:n(472),isAcyclic:n(473),postorder:n(474),preorder:n(475),prim:n(476),tarjan:n(145),topsort:n(146)}},function(e,t,n){var r=n(7);e.exports=function(e){var t,n={},i=[];function o(i){r.has(n,i)||(n[i]=!0,t.push(i),r.each(e.successors(i),o),r.each(e.predecessors(i),o))}return r.each(e.nodes(),(function(e){t=[],o(e),t.length&&i.push(t)})),i}},function(e,t,n){var r=n(143),i=n(7);e.exports=function(e,t,n){return i.transform(e.nodes(),(function(i,o){i[o]=r(e,o,t,n)}),{})}},function(e,t,n){var r=n(7),i=n(145);e.exports=function(e){return r.filter(i(e),(function(t){return t.length>1||1===t.length&&e.hasEdge(t[0],t[0])}))}},function(e,t,n){var r=n(7);e.exports=function(e,t,n){return function(e,t,n){var r={},i=e.nodes();return i.forEach((function(e){r[e]={},r[e][e]={distance:0},i.forEach((function(t){e!==t&&(r[e][t]={distance:Number.POSITIVE_INFINITY})})),n(e).forEach((function(n){var i=n.v===e?n.w:n.v,o=t(n);r[e][i]={distance:o,predecessor:e}}))})),i.forEach((function(e){var t=r[e];i.forEach((function(n){var o=r[n];i.forEach((function(n){var r=o[e],i=t[n],s=o[n],a=r.distance+i.distance;a<s.distance&&(s.distance=a,s.predecessor=i.predecessor)}))}))})),r}(e,t||i,n||function(t){return e.outEdges(t)})};var i=r.constant(1)},function(e,t,n){var r=n(146);e.exports=function(e){try{r(e)}catch(e){if(e instanceof r.CycleException)return!1;throw e}return!0}},function(e,t,n){var r=n(147);e.exports=function(e,t){return r(e,t,"post")}},function(e,t,n){var r=n(147);e.exports=function(e,t){return r(e,t,"pre")}},function(e,t,n){var r=n(7),i=n(73),o=n(144);e.exports=function(e,t){var n,s=new i,a={},u=new o;function l(e){var r=e.v===n?e.w:e.v,i=u.priority(r);if(void 0!==i){var o=t(e);o<i&&(a[r]=n,u.decrease(r,o))}}if(0===e.nodeCount())return s;r.each(e.nodes(),(function(e){u.add(e,Number.POSITIVE_INFINITY),s.setNode(e)})),u.decrease(e.nodes()[0],0);var c=!1;for(;u.size()>0;){if(n=u.removeMin(),r.has(a,n))s.setEdge(n,a[n]);else{if(c)throw new Error("Input graph is not connected: "+e);c=!0}e.nodeEdges(n).forEach(l)}return s}},function(e,t,n){"use strict";var r=n(2),i=n(498),o=n(501),s=n(502),a=n(5).normalizeRanks,u=n(504),l=n(5).removeEmptyRanks,c=n(505),d=n(506),h=n(507),f=n(508),p=n(517),g=n(5),m=n(13).Graph;e.exports=function(e,t){var n=t&&t.debugTiming?g.time:g.notime;n("layout",(function(){var t=n(" buildLayoutGraph",(function(){return function(e){var t=new m({multigraph:!0,compound:!0}),n=k(e.graph());return t.setGraph(r.merge({},y,L(n,_),r.pick(n,v))),r.forEach(e.nodes(),(function(n){var i=k(e.node(n));t.setNode(n,r.defaults(L(i,b),w)),t.setParent(n,e.parent(n))})),r.forEach(e.edges(),(function(n){var i=k(e.edge(n));t.setEdge(n,r.merge({},S,L(i,C),r.pick(i,x)))})),t}(e)}));n(" runLayout",(function(){!function(e,t){t(" makeSpaceForEdgeLabels",(function(){!function(e){var t=e.graph();t.ranksep/=2,r.forEach(e.edges(),(function(n){var r=e.edge(n);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===t.rankdir||"BT"===t.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)}))}(e)})),t(" removeSelfEdges",(function(){!function(e){r.forEach(e.edges(),(function(t){if(t.v===t.w){var n=e.node(t.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}}))}(e)})),t(" acyclic",(function(){i.run(e)})),t(" nestingGraph.run",(function(){c.run(e)})),t(" rank",(function(){s(g.asNonCompoundGraph(e))})),t(" injectEdgeLabelProxies",(function(){!function(e){r.forEach(e.edges(),(function(t){var n=e.edge(t);if(n.width&&n.height){var r=e.node(t.v),i={rank:(e.node(t.w).rank-r.rank)/2+r.rank,e:t};g.addDummyNode(e,"edge-proxy",i,"_ep")}}))}(e)})),t(" removeEmptyRanks",(function(){l(e)})),t(" nestingGraph.cleanup",(function(){c.cleanup(e)})),t(" normalizeRanks",(function(){a(e)})),t(" assignRankMinMax",(function(){!function(e){var t=0;r.forEach(e.nodes(),(function(n){var i=e.node(n);i.borderTop&&(i.minRank=e.node(i.borderTop).rank,i.maxRank=e.node(i.borderBottom).rank,t=r.max(t,i.maxRank))})),e.graph().maxRank=t}(e)})),t(" removeEdgeLabelProxies",(function(){!function(e){r.forEach(e.nodes(),(function(t){var n=e.node(t);"edge-proxy"===n.dummy&&(e.edge(n.e).labelRank=n.rank,e.removeNode(t))}))}(e)})),t(" normalize.run",(function(){o.run(e)})),t(" parentDummyChains",(function(){u(e)})),t(" addBorderSegments",(function(){d(e)})),t(" order",(function(){f(e)})),t(" insertSelfEdges",(function(){!function(e){var t=g.buildLayerMatrix(e);r.forEach(t,(function(t){var n=0;r.forEach(t,(function(t,i){var o=e.node(t);o.order=i+n,r.forEach(o.selfEdges,(function(t){g.addDummyNode(e,"selfedge",{width:t.label.width,height:t.label.height,rank:o.rank,order:i+ ++n,e:t.e,label:t.label},"_se")})),delete o.selfEdges}))}))}(e)})),t(" adjustCoordinateSystem",(function(){h.adjust(e)})),t(" position",(function(){p(e)})),t(" positionSelfEdges",(function(){!function(e){r.forEach(e.nodes(),(function(t){var n=e.node(t);if("selfedge"===n.dummy){var r=e.node(n.e.v),i=r.x+r.width/2,o=r.y,s=n.x-i,a=r.height/2;e.setEdge(n.e,n.label),e.removeNode(t),n.label.points=[{x:i+2*s/3,y:o-a},{x:i+5*s/6,y:o-a},{x:i+s,y:o},{x:i+5*s/6,y:o+a},{x:i+2*s/3,y:o+a}],n.label.x=n.x,n.label.y=n.y}}))}(e)})),t(" removeBorderNodes",(function(){!function(e){r.forEach(e.nodes(),(function(t){if(e.children(t).length){var n=e.node(t),i=e.node(n.borderTop),o=e.node(n.borderBottom),s=e.node(r.last(n.borderLeft)),a=e.node(r.last(n.borderRight));n.width=Math.abs(a.x-s.x),n.height=Math.abs(o.y-i.y),n.x=s.x+n.width/2,n.y=i.y+n.height/2}})),r.forEach(e.nodes(),(function(t){"border"===e.node(t).dummy&&e.removeNode(t)}))}(e)})),t(" normalize.undo",(function(){o.undo(e)})),t(" fixupEdgeLabelCoords",(function(){!function(e){r.forEach(e.edges(),(function(t){var n=e.edge(t);if(r.has(n,"x"))switch("l"!==n.labelpos&&"r"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}}))}(e)})),t(" undoCoordinateSystem",(function(){h.undo(e)})),t(" translateGraph",(function(){!function(e){var t=Number.POSITIVE_INFINITY,n=0,i=Number.POSITIVE_INFINITY,o=0,s=e.graph(),a=s.marginx||0,u=s.marginy||0;function l(e){var r=e.x,s=e.y,a=e.width,u=e.height;t=Math.min(t,r-a/2),n=Math.max(n,r+a/2),i=Math.min(i,s-u/2),o=Math.max(o,s+u/2)}r.forEach(e.nodes(),(function(t){l(e.node(t))})),r.forEach(e.edges(),(function(t){var n=e.edge(t);r.has(n,"x")&&l(n)})),t-=a,i-=u,r.forEach(e.nodes(),(function(n){var r=e.node(n);r.x-=t,r.y-=i})),r.forEach(e.edges(),(function(n){var o=e.edge(n);r.forEach(o.points,(function(e){e.x-=t,e.y-=i})),r.has(o,"x")&&(o.x-=t),r.has(o,"y")&&(o.y-=i)})),s.width=n-t+a,s.height=o-i+u}(e)})),t(" assignNodeIntersects",(function(){!function(e){r.forEach(e.edges(),(function(t){var n,r,i=e.edge(t),o=e.node(t.v),s=e.node(t.w);i.points?(n=i.points[0],r=i.points[i.points.length-1]):(i.points=[],n=s,r=o),i.points.unshift(g.intersectRect(o,n)),i.points.push(g.intersectRect(s,r))}))}(e)})),t(" reversePoints",(function(){!function(e){r.forEach(e.edges(),(function(t){var n=e.edge(t);n.reversed&&n.points.reverse()}))}(e)})),t(" acyclic.undo",(function(){i.undo(e)}))}(t,n)})),n(" updateInputGraph",(function(){!function(e,t){r.forEach(e.nodes(),(function(n){var r=e.node(n),i=t.node(n);r&&(r.x=i.x,r.y=i.y,t.children(n).length&&(r.width=i.width,r.height=i.height))})),r.forEach(e.edges(),(function(n){var i=e.edge(n),o=t.edge(n);i.points=o.points,r.has(o,"x")&&(i.x=o.x,i.y=o.y)})),e.graph().width=t.graph().width,e.graph().height=t.graph().height}(e,t)}))}))};var _=["nodesep","edgesep","ranksep","marginx","marginy"],y={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},v=["acyclicer","ranker","rankdir","align"],b=["width","height"],w={width:0,height:0},C=["minlen","weight","width","height","labeloffset"],S={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},x=["labelpos"];function L(e,t){return r.mapValues(r.pick(e,t),Number)}function k(e){var t={};return r.forEach(e,(function(e,n){t[n.toLowerCase()]=e})),t}},function(e,t,n){var r=n(21),i=n(20),o=n(19);e.exports=function(e){return function(t,n,s){var a=Object(t);if(!i(t)){var u=r(n,3);t=o(t),n=function(e){return u(a[e],e,a)}}var l=e(t,n,s);return l>-1?a[u?t[l]:l]:void 0}}},function(e,t,n){var r=n(141),i=n(21),o=n(480),s=Math.max;e.exports=function(e,t,n){var a=null==e?0:e.length;if(!a)return-1;var u=null==n?0:o(n);return u<0&&(u=s(a+u,0)),r(e,i(t,3),u)}},function(e,t,n){var r=n(150);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},function(e,t,n){var r=n(8),i=n(36),o=NaN,s=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return o;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(s,"");var n=u.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):a.test(e)?o:+e}},function(e,t){e.exports=function(e,t){return e>t}},function(e,t,n){var r=n(47),i=n(156),o=n(85),s=n(484),a=n(8),u=n(34),l=n(158);e.exports=function e(t,n,c,d,h){t!==n&&o(n,(function(o,u){if(h||(h=new r),a(o))s(t,n,u,c,e,d,h);else{var f=d?d(l(t,u),o,u+"",t,n,h):void 0;void 0===f&&(f=o),i(t,u,f)}}),u)}},function(e,t,n){var r=n(156),i=n(111),o=n(120),s=n(112),a=n(121),u=n(39),l=n(4),c=n(142),d=n(33),h=n(25),f=n(8),p=n(157),g=n(41),m=n(158),_=n(485);e.exports=function(e,t,n,y,v,b,w){var C=m(e,n),S=m(t,n),x=w.get(S);if(x)r(e,n,x);else{var L=b?b(C,S,n+"",e,t,w):void 0,k=void 0===L;if(k){var M=l(S),D=!M&&d(S),E=!M&&!D&&g(S);L=S,M||D||E?l(C)?L=C:c(C)?L=s(C):D?(k=!1,L=i(S,!0)):E?(k=!1,L=o(S,!0)):L=[]:p(S)||u(S)?(L=C,u(C)?L=_(C):f(C)&&!h(C)||(L=a(S))):k=!1}k&&(w.set(S,L),v(L,S,y,b,w),w.delete(S)),r(e,n,L)}}},function(e,t,n){var r=n(38),i=n(34);e.exports=function(e){return r(e,i(e))}},function(e,t,n){var r=n(65),i=n(67);e.exports=function(e){return r((function(t,n){var r=-1,o=n.length,s=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(s=e.length>3&&"function"==typeof s?(o--,s):void 0,a&&i(n[0],n[1],a)&&(s=o<3?void 0:s,o=1),t=Object(t);++r<o;){var u=n[r];u&&e(t,u,r,s)}return t}))}},function(e,t,n){var r=n(488),i=n(131);e.exports=function(e,t){return r(e,t,(function(t,n){return i(e,n)}))}},function(e,t,n){var r=n(87),i=n(489),o=n(60);e.exports=function(e,t,n){for(var s=-1,a=t.length,u={};++s<a;){var l=t[s],c=r(e,l);n(c,l)&&i(u,o(l,e),c)}return u}},function(e,t,n){var r=n(52),i=n(60),o=n(54),s=n(8),a=n(44);e.exports=function(e,t,n,u){if(!s(e))return e;for(var l=-1,c=(t=i(t,e)).length,d=c-1,h=e;null!=h&&++l<c;){var f=a(t[l]),p=n;if(l!=d){var g=h[f];void 0===(p=u?u(g,f,h):void 0)&&(p=s(g)?g:o(t[l+1])?[]:{})}r(h,f,p),h=h[f]}return e}},function(e,t,n){var r=n(91),i=n(139),o=n(140);e.exports=function(e){return o(i(e,void 0,r),e+"")}},function(e,t,n){var r=n(492),i=n(67),o=n(150);e.exports=function(e){return function(t,n,s){return s&&"number"!=typeof s&&i(t,n,s)&&(n=s=void 0),t=o(t),void 0===n?(n=t,t=0):n=o(n),s=void 0===s?t<n?1:-1:o(s),r(t,n,s,e)}}},function(e,t){var n=Math.ceil,r=Math.max;e.exports=function(e,t,i,o){for(var s=-1,a=r(n((t-e)/(i||1)),0),u=Array(a);a--;)u[o?a:++s]=e,e+=i;return u}},function(e,t,n){var r=n(61),i=n(21),o=n(135),s=n(494),a=n(55),u=n(495),l=n(27);e.exports=function(e,t,n){var c=-1;t=r(t.length?t:[l],a(i));var d=o(e,(function(e,n,i){return{criteria:r(t,(function(t){return t(e)})),index:++c,value:e}}));return s(d,(function(e,t){return u(e,t,n)}))}},function(e,t){e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},function(e,t,n){var r=n(496);e.exports=function(e,t,n){for(var i=-1,o=e.criteria,s=t.criteria,a=o.length,u=n.length;++i<a;){var l=r(o[i],s[i]);if(l)return i>=u?l:l*("desc"==n[i]?-1:1)}return e.index-t.index}},function(e,t,n){var r=n(36);e.exports=function(e,t){if(e!==t){var n=void 0!==e,i=null===e,o=e==e,s=r(e),a=void 0!==t,u=null===t,l=t==t,c=r(t);if(!u&&!c&&!s&&e>t||s&&a&&l&&!u&&!c||i&&a&&l||!n&&l||!o)return 1;if(!i&&!s&&!c&&e<t||c&&n&&o&&!i&&!s||u&&n&&o||!a&&o||!l)return-1}return 0}},function(e,t){e.exports=function(e,t,n){for(var r=-1,i=e.length,o=t.length,s={};++r<i;){var a=r<o?t[r]:void 0;n(s,e[r],a)}return s}},function(e,t,n){"use strict";var r=n(2),i=n(499);e.exports={run:function(e){var t="greedy"===e.graph().acyclicer?i(e,function(e){return function(t){return e.edge(t).weight}}(e)):function(e){var t=[],n={},i={};return r.forEach(e.nodes(),(function o(s){if(r.has(i,s))return;i[s]=!0,n[s]=!0,r.forEach(e.outEdges(s),(function(e){r.has(n,e.w)?t.push(e):o(e.w)})),delete n[s]})),t}(e);r.forEach(t,(function(t){var n=e.edge(t);e.removeEdge(t),n.forwardName=t.name,n.reversed=!0,e.setEdge(t.w,t.v,n,r.uniqueId("rev"))}))},undo:function(e){r.forEach(e.edges(),(function(t){var n=e.edge(t);if(n.reversed){e.removeEdge(t);var r=n.forwardName;delete n.reversed,delete n.forwardName,e.setEdge(t.w,t.v,n,r)}}))}}},function(e,t,n){var r=n(2),i=n(13).Graph,o=n(500);e.exports=function(e,t){if(e.nodeCount()<=1)return[];var n=function(e,t){var n=new i,s=0,a=0;r.forEach(e.nodes(),(function(e){n.setNode(e,{v:e,in:0,out:0})})),r.forEach(e.edges(),(function(e){var r=n.edge(e.v,e.w)||0,i=t(e),o=r+i;n.setEdge(e.v,e.w,o),a=Math.max(a,n.node(e.v).out+=i),s=Math.max(s,n.node(e.w).in+=i)}));var l=r.range(a+s+3).map((function(){return new o})),c=s+1;return r.forEach(n.nodes(),(function(e){u(l,c,n.node(e))})),{graph:n,buckets:l,zeroIdx:c}}(e,t||s),l=function(e,t,n){var r,i=[],o=t[t.length-1],s=t[0];for(;e.nodeCount();){for(;r=s.dequeue();)a(e,t,n,r);for(;r=o.dequeue();)a(e,t,n,r);if(e.nodeCount())for(var u=t.length-2;u>0;--u)if(r=t[u].dequeue()){i=i.concat(a(e,t,n,r,!0));break}}return i}(n.graph,n.buckets,n.zeroIdx);return r.flatten(r.map(l,(function(t){return e.outEdges(t.v,t.w)})),!0)};var s=r.constant(1);function a(e,t,n,i,o){var s=o?[]:void 0;return r.forEach(e.inEdges(i.v),(function(r){var i=e.edge(r),a=e.node(r.v);o&&s.push({v:r.v,w:r.w}),a.out-=i,u(t,n,a)})),r.forEach(e.outEdges(i.v),(function(r){var i=e.edge(r),o=r.w,s=e.node(o);s.in-=i,u(t,n,s)})),e.removeNode(i.v),s}function u(e,t,n){n.out?n.in?e[n.out-n.in+t].enqueue(n):e[e.length-1].enqueue(n):e[0].enqueue(n)}},function(e,t){function n(){var e={};e._next=e._prev=e,this._sentinel=e}function r(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function i(e,t){if("_next"!==e&&"_prev"!==e)return t}e.exports=n,n.prototype.dequeue=function(){var e=this._sentinel,t=e._prev;if(t!==e)return r(t),t},n.prototype.enqueue=function(e){var t=this._sentinel;e._prev&&e._next&&r(e),e._next=t._next,t._next._prev=e,t._next=e,e._prev=t},n.prototype.toString=function(){for(var e=[],t=this._sentinel,n=t._prev;n!==t;)e.push(JSON.stringify(n,i)),n=n._prev;return"["+e.join(", ")+"]"}},function(e,t,n){"use strict";var r=n(2),i=n(5);e.exports={run:function(e){e.graph().dummyChains=[],r.forEach(e.edges(),(function(t){!function(e,t){var n,r,o,s=t.v,a=e.node(s).rank,u=t.w,l=e.node(u).rank,c=t.name,d=e.edge(t),h=d.labelRank;if(l===a+1)return;for(e.removeEdge(t),o=0,++a;a<l;++o,++a)d.points=[],r={width:0,height:0,edgeLabel:d,edgeObj:t,rank:a},n=i.addDummyNode(e,"edge",r,"_d"),a===h&&(r.width=d.width,r.height=d.height,r.dummy="edge-label",r.labelpos=d.labelpos),e.setEdge(s,n,{weight:d.weight},c),0===o&&e.graph().dummyChains.push(n),s=n;e.setEdge(s,u,{weight:d.weight},c)}(e,t)}))},undo:function(e){r.forEach(e.graph().dummyChains,(function(t){var n,r=e.node(t),i=r.edgeLabel;for(e.setEdge(r.edgeObj,i);r.dummy;)n=e.successors(t)[0],e.removeNode(t),i.points.push({x:r.x,y:r.y}),"edge-label"===r.dummy&&(i.x=r.x,i.y=r.y,i.width=r.width,i.height=r.height),t=n,r=e.node(t)}))}}},function(e,t,n){"use strict";var r=n(68).longestPath,i=n(165),o=n(503);e.exports=function(e){switch(e.graph().ranker){case"network-simplex":a(e);break;case"tight-tree":!function(e){r(e),i(e)}(e);break;case"longest-path":s(e);break;default:a(e)}};var s=r;function a(e){o(e)}},function(e,t,n){"use strict";var r=n(2),i=n(165),o=n(68).slack,s=n(68).longestPath,a=n(13).alg.preorder,u=n(13).alg.postorder,l=n(5).simplify;function c(e){e=l(e),s(e);var t,n=i(e);for(f(n),d(n,e);t=p(n);)m(n,e,t,g(n,e,t))}function d(e,t){var n=u(e,e.nodes());n=n.slice(0,n.length-1),r.forEach(n,(function(n){!function(e,t,n){var r=e.node(n).parent;e.edge(n,r).cutvalue=h(e,t,n)}(e,t,n)}))}function h(e,t,n){var i=e.node(n).parent,o=!0,s=t.edge(n,i),a=0;return s||(o=!1,s=t.edge(i,n)),a=s.weight,r.forEach(t.nodeEdges(n),(function(r){var s,u,l=r.v===n,c=l?r.w:r.v;if(c!==i){var d=l===o,h=t.edge(r).weight;if(a+=d?h:-h,s=n,u=c,e.hasEdge(s,u)){var f=e.edge(n,c).cutvalue;a+=d?-f:f}}})),a}function f(e,t){arguments.length<2&&(t=e.nodes()[0]),function e(t,n,i,o,s){var a=i,u=t.node(o);n[o]=!0,r.forEach(t.neighbors(o),(function(s){r.has(n,s)||(i=e(t,n,i,s,o))})),u.low=a,u.lim=i++,s?u.parent=s:delete u.parent;return i}(e,{},1,t)}function p(e){return r.find(e.edges(),(function(t){return e.edge(t).cutvalue<0}))}function g(e,t,n){var i=n.v,s=n.w;t.hasEdge(i,s)||(i=n.w,s=n.v);var a=e.node(i),u=e.node(s),l=a,c=!1;a.lim>u.lim&&(l=u,c=!0);var d=r.filter(t.edges(),(function(t){return c===_(e,e.node(t.v),l)&&c!==_(e,e.node(t.w),l)}));return r.minBy(d,(function(e){return o(t,e)}))}function m(e,t,n,i){var o=n.v,s=n.w;e.removeEdge(o,s),e.setEdge(i.v,i.w,{}),f(e),d(e,t),function(e,t){var n=r.find(e.nodes(),(function(e){return!t.node(e).parent})),i=a(e,n);i=i.slice(1),r.forEach(i,(function(n){var r=e.node(n).parent,i=t.edge(n,r),o=!1;i||(i=t.edge(r,n),o=!0),t.node(n).rank=t.node(r).rank+(o?i.minlen:-i.minlen)}))}(e,t)}function _(e,t,n){return n.low<=t.lim&&t.lim<=n.lim}e.exports=c,c.initLowLimValues=f,c.initCutValues=d,c.calcCutValue=h,c.leaveEdge=p,c.enterEdge=g,c.exchangeEdges=m},function(e,t,n){var r=n(2);e.exports=function(e){var t=function(e){var t={},n=0;return r.forEach(e.children(),(function i(o){var s=n;r.forEach(e.children(o),i),t[o]={low:s,lim:n++}})),t}(e);r.forEach(e.graph().dummyChains,(function(n){for(var r=e.node(n),i=r.edgeObj,o=function(e,t,n,r){var i,o,s=[],a=[],u=Math.min(t[n].low,t[r].low),l=Math.max(t[n].lim,t[r].lim);i=n;do{i=e.parent(i),s.push(i)}while(i&&(t[i].low>u||l>t[i].lim));o=i,i=r;for(;(i=e.parent(i))!==o;)a.push(i);return{path:s.concat(a.reverse()),lca:o}}(e,t,i.v,i.w),s=o.path,a=o.lca,u=0,l=s[u],c=!0;n!==i.w;){if(r=e.node(n),c){for(;(l=s[u])!==a&&e.node(l).maxRank<r.rank;)u++;l===a&&(c=!1)}if(!c){for(;u<s.length-1&&e.node(l=s[u+1]).minRank<=r.rank;)u++;l=s[u]}e.setParent(n,l),n=e.successors(n)[0]}}))}},function(e,t,n){var r=n(2),i=n(5);e.exports={run:function(e){var t=i.addDummyNode(e,"root",{},"_root"),n=function(e){var t={};return r.forEach(e.children(),(function(n){!function n(i,o){var s=e.children(i);s&&s.length&&r.forEach(s,(function(e){n(e,o+1)}));t[i]=o}(n,1)})),t}(e),o=r.max(r.values(n))-1,s=2*o+1;e.graph().nestingRoot=t,r.forEach(e.edges(),(function(t){e.edge(t).minlen*=s}));var a=function(e){return r.reduce(e.edges(),(function(t,n){return t+e.edge(n).weight}),0)}(e)+1;r.forEach(e.children(),(function(u){!function e(t,n,o,s,a,u,l){var c=t.children(l);if(!c.length)return void(l!==n&&t.setEdge(n,l,{weight:0,minlen:o}));var d=i.addBorderNode(t,"_bt"),h=i.addBorderNode(t,"_bb"),f=t.node(l);t.setParent(d,l),f.borderTop=d,t.setParent(h,l),f.borderBottom=h,r.forEach(c,(function(r){e(t,n,o,s,a,u,r);var i=t.node(r),c=i.borderTop?i.borderTop:r,f=i.borderBottom?i.borderBottom:r,p=i.borderTop?s:2*s,g=c!==f?1:a-u[l]+1;t.setEdge(d,c,{weight:p,minlen:g,nestingEdge:!0}),t.setEdge(f,h,{weight:p,minlen:g,nestingEdge:!0})})),t.parent(l)||t.setEdge(n,d,{weight:0,minlen:a+u[l]})}(e,t,s,a,o,n,u)})),e.graph().nodeRankFactor=s},cleanup:function(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,r.forEach(e.edges(),(function(t){e.edge(t).nestingEdge&&e.removeEdge(t)}))}}},function(e,t,n){var r=n(2),i=n(5);function o(e,t,n,r,o,s){var a={width:0,height:0,rank:s,borderType:t},u=o[t][s-1],l=i.addDummyNode(e,"border",a,n);o[t][s]=l,e.setParent(l,r),u&&e.setEdge(u,l,{weight:1})}e.exports=function(e){r.forEach(e.children(),(function t(n){var i=e.children(n),s=e.node(n);if(i.length&&r.forEach(i,t),r.has(s,"minRank")){s.borderLeft=[],s.borderRight=[];for(var a=s.minRank,u=s.maxRank+1;a<u;++a)o(e,"borderLeft","_bl",n,s,a),o(e,"borderRight","_br",n,s,a)}}))}},function(e,t,n){"use strict";var r=n(2);function i(e){r.forEach(e.nodes(),(function(t){o(e.node(t))})),r.forEach(e.edges(),(function(t){o(e.edge(t))}))}function o(e){var t=e.width;e.width=e.height,e.height=t}function s(e){e.y=-e.y}function a(e){var t=e.x;e.x=e.y,e.y=t}e.exports={adjust:function(e){var t=e.graph().rankdir.toLowerCase();"lr"!==t&&"rl"!==t||i(e)},undo:function(e){var t=e.graph().rankdir.toLowerCase();"bt"!==t&&"rl"!==t||function(e){r.forEach(e.nodes(),(function(t){s(e.node(t))})),r.forEach(e.edges(),(function(t){var n=e.edge(t);r.forEach(n.points,s),r.has(n,"y")&&s(n)}))}(e);"lr"!==t&&"rl"!==t||(!function(e){r.forEach(e.nodes(),(function(t){a(e.node(t))})),r.forEach(e.edges(),(function(t){var n=e.edge(t);r.forEach(n.points,a),r.has(n,"x")&&a(n)}))}(e),i(e))}}},function(e,t,n){"use strict";var r=n(2),i=n(509),o=n(510),s=n(511),a=n(515),u=n(516),l=n(13).Graph,c=n(5);function d(e,t,n){return r.map(t,(function(t){return a(e,t,n)}))}function h(e,t){var n=new l;r.forEach(e,(function(e){var i=e.graph().root,o=s(e,i,n,t);r.forEach(o.vs,(function(t,n){e.node(t).order=n})),u(e,n,o.vs)}))}function f(e,t){r.forEach(t,(function(t){r.forEach(t,(function(t,n){e.node(t).order=n}))}))}e.exports=function(e){var t=c.maxRank(e),n=d(e,r.range(1,t+1),"inEdges"),s=d(e,r.range(t-1,-1,-1),"outEdges"),a=i(e);f(e,a);for(var u,l=Number.POSITIVE_INFINITY,p=0,g=0;g<4;++p,++g){h(p%2?n:s,p%4>=2),a=c.buildLayerMatrix(e);var m=o(e,a);m<l&&(g=0,u=r.cloneDeep(a),l=m)}f(e,u)}},function(e,t,n){"use strict";var r=n(2);e.exports=function(e){var t={},n=r.filter(e.nodes(),(function(t){return!e.children(t).length})),i=r.max(r.map(n,(function(t){return e.node(t).rank}))),o=r.map(r.range(i+1),(function(){return[]}));var s=r.sortBy(n,(function(t){return e.node(t).rank}));return r.forEach(s,(function n(i){if(r.has(t,i))return;t[i]=!0;var s=e.node(i);o[s.rank].push(i),r.forEach(e.successors(i),n)})),o}},function(e,t,n){"use strict";var r=n(2);function i(e,t,n){for(var i=r.zipObject(n,r.map(n,(function(e,t){return t}))),o=r.flatten(r.map(t,(function(t){return r.sortBy(r.map(e.outEdges(t),(function(t){return{pos:i[t.w],weight:e.edge(t).weight}})),"pos")})),!0),s=1;s<n.length;)s<<=1;var a=2*s-1;s-=1;var u=r.map(new Array(a),(function(){return 0})),l=0;return r.forEach(o.forEach((function(e){var t=e.pos+s;u[t]+=e.weight;for(var n=0;t>0;)t%2&&(n+=u[t+1]),u[t=t-1>>1]+=e.weight;l+=e.weight*n}))),l}e.exports=function(e,t){for(var n=0,r=1;r<t.length;++r)n+=i(e,t[r-1],t[r]);return n}},function(e,t,n){var r=n(2),i=n(512),o=n(513),s=n(514);e.exports=function e(t,n,a,u){var l=t.children(n),c=t.node(n),d=c?c.borderLeft:void 0,h=c?c.borderRight:void 0,f={};d&&(l=r.filter(l,(function(e){return e!==d&&e!==h})));var p=i(t,l);r.forEach(p,(function(n){if(t.children(n.v).length){var i=e(t,n.v,a,u);f[n.v]=i,r.has(i,"barycenter")&&(o=n,s=i,r.isUndefined(o.barycenter)?(o.barycenter=s.barycenter,o.weight=s.weight):(o.barycenter=(o.barycenter*o.weight+s.barycenter*s.weight)/(o.weight+s.weight),o.weight+=s.weight))}var o,s}));var g=o(p,a);!function(e,t){r.forEach(e,(function(e){e.vs=r.flatten(e.vs.map((function(e){return t[e]?t[e].vs:e})),!0)}))}(g,f);var m=s(g,u);if(d&&(m.vs=r.flatten([d,m.vs,h],!0),t.predecessors(d).length)){var _=t.node(t.predecessors(d)[0]),y=t.node(t.predecessors(h)[0]);r.has(m,"barycenter")||(m.barycenter=0,m.weight=0),m.barycenter=(m.barycenter*m.weight+_.order+y.order)/(m.weight+2),m.weight+=2}return m}},function(e,t,n){var r=n(2);e.exports=function(e,t){return r.map(t,(function(t){var n=e.inEdges(t);if(n.length){var i=r.reduce(n,(function(t,n){var r=e.edge(n),i=e.node(n.v);return{sum:t.sum+r.weight*i.order,weight:t.weight+r.weight}}),{sum:0,weight:0});return{v:t,barycenter:i.sum/i.weight,weight:i.weight}}return{v:t}}))}},function(e,t,n){"use strict";var r=n(2);e.exports=function(e,t){var n={};return r.forEach(e,(function(e,t){var i=n[e.v]={indegree:0,in:[],out:[],vs:[e.v],i:t};r.isUndefined(e.barycenter)||(i.barycenter=e.barycenter,i.weight=e.weight)})),r.forEach(t.edges(),(function(e){var t=n[e.v],i=n[e.w];r.isUndefined(t)||r.isUndefined(i)||(i.indegree++,t.out.push(n[e.w]))})),function(e){var t=[];function n(e){return function(t){t.merged||(r.isUndefined(t.barycenter)||r.isUndefined(e.barycenter)||t.barycenter>=e.barycenter)&&function(e,t){var n=0,r=0;e.weight&&(n+=e.barycenter*e.weight,r+=e.weight);t.weight&&(n+=t.barycenter*t.weight,r+=t.weight);e.vs=t.vs.concat(e.vs),e.barycenter=n/r,e.weight=r,e.i=Math.min(t.i,e.i),t.merged=!0}(e,t)}}function i(t){return function(n){n.in.push(t),0==--n.indegree&&e.push(n)}}for(;e.length;){var o=e.pop();t.push(o),r.forEach(o.in.reverse(),n(o)),r.forEach(o.out,i(o))}return r.map(r.filter(t,(function(e){return!e.merged})),(function(e){return r.pick(e,["vs","i","barycenter","weight"])}))}(r.filter(n,(function(e){return!e.indegree})))}},function(e,t,n){var r=n(2),i=n(5);function o(e,t,n){for(var i;t.length&&(i=r.last(t)).i<=n;)t.pop(),e.push(i.vs),n++;return n}e.exports=function(e,t){var n=i.partition(e,(function(e){return r.has(e,"barycenter")})),s=n.lhs,a=r.sortBy(n.rhs,(function(e){return-e.i})),u=[],l=0,c=0,d=0;s.sort((h=!!t,function(e,t){return e.barycenter<t.barycenter?-1:e.barycenter>t.barycenter?1:h?t.i-e.i:e.i-t.i})),d=o(u,a,d),r.forEach(s,(function(e){d+=e.vs.length,u.push(e.vs),l+=e.barycenter*e.weight,c+=e.weight,d=o(u,a,d)}));var h;var f={vs:r.flatten(u,!0)};c&&(f.barycenter=l/c,f.weight=c);return f}},function(e,t,n){var r=n(2),i=n(13).Graph;e.exports=function(e,t,n){var o=function(e){var t;for(;e.hasNode(t=r.uniqueId("_root")););return t}(e),s=new i({compound:!0}).setGraph({root:o}).setDefaultNodeLabel((function(t){return e.node(t)}));return r.forEach(e.nodes(),(function(i){var a=e.node(i),u=e.parent(i);(a.rank===t||a.minRank<=t&&t<=a.maxRank)&&(s.setNode(i),s.setParent(i,u||o),r.forEach(e[n](i),(function(t){var n=t.v===i?t.w:t.v,o=s.edge(n,i),a=r.isUndefined(o)?0:o.weight;s.setEdge(n,i,{weight:e.edge(t).weight+a})})),r.has(a,"minRank")&&s.setNode(i,{borderLeft:a.borderLeft[t],borderRight:a.borderRight[t]}))})),s}},function(e,t,n){var r=n(2);e.exports=function(e,t,n){var i,o={};r.forEach(n,(function(n){for(var r,s,a=e.parent(n);a;){if((r=e.parent(a))?(s=o[r],o[r]=a):(s=i,i=a),s&&s!==a)return void t.setEdge(s,a);a=r}}))}},function(e,t,n){"use strict";var r=n(2),i=n(5),o=n(518).positionX;e.exports=function(e){(function(e){var t=i.buildLayerMatrix(e),n=e.graph().ranksep,o=0;r.forEach(t,(function(t){var i=r.max(r.map(t,(function(t){return e.node(t).height})));r.forEach(t,(function(t){e.node(t).y=o+i/2})),o+=i+n}))})(e=i.asNonCompoundGraph(e)),r.forEach(o(e),(function(t,n){e.node(n).x=t}))}},function(e,t,n){"use strict";var r=n(2),i=n(13).Graph,o=n(5);function s(e,t){var n={};return r.reduce(t,(function(t,i){var o=0,s=0,a=t.length,l=r.last(i);return r.forEach(i,(function(t,c){var d=function(e,t){if(e.node(t).dummy)return r.find(e.predecessors(t),(function(t){return e.node(t).dummy}))}(e,t),h=d?e.node(d).order:a;(d||t===l)&&(r.forEach(i.slice(s,c+1),(function(t){r.forEach(e.predecessors(t),(function(r){var i=e.node(r),s=i.order;!(s<o||h<s)||i.dummy&&e.node(t).dummy||u(n,r,t)}))})),s=c+1,o=h)})),i})),n}function a(e,t){var n={};function i(t,i,o,s,a){var l;r.forEach(r.range(i,o),(function(i){l=t[i],e.node(l).dummy&&r.forEach(e.predecessors(l),(function(t){var r=e.node(t);r.dummy&&(r.order<s||r.order>a)&&u(n,t,l)}))}))}return r.reduce(t,(function(t,n){var o,s=-1,a=0;return r.forEach(n,(function(r,u){if("border"===e.node(r).dummy){var l=e.predecessors(r);l.length&&(o=e.node(l[0]).order,i(n,a,u,s,o),a=u,s=o)}i(n,a,n.length,o,t.length)})),n})),n}function u(e,t,n){if(t>n){var r=t;t=n,n=r}var i=e[t];i||(e[t]=i={}),i[n]=!0}function l(e,t,n){if(t>n){var i=t;t=n,n=i}return r.has(e[t],n)}function c(e,t,n,i){var o={},s={},a={};return r.forEach(t,(function(e){r.forEach(e,(function(e,t){o[e]=e,s[e]=e,a[e]=t}))})),r.forEach(t,(function(e){var t=-1;r.forEach(e,(function(e){var u=i(e);if(u.length)for(var c=((u=r.sortBy(u,(function(e){return a[e]}))).length-1)/2,d=Math.floor(c),h=Math.ceil(c);d<=h;++d){var f=u[d];s[e]===e&&t<a[f]&&!l(n,e,f)&&(s[f]=e,s[e]=o[e]=o[f],t=a[f])}}))})),{root:o,align:s}}function d(e,t,n,o,s){var a={},u=function(e,t,n,o){var s=new i,a=e.graph(),u=function(e,t,n){return function(i,o,s){var a,u=i.node(o),l=i.node(s),c=0;if(c+=u.width/2,r.has(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":a=-u.width/2;break;case"r":a=u.width/2}if(a&&(c+=n?a:-a),a=0,c+=(u.dummy?t:e)/2,c+=(l.dummy?t:e)/2,c+=l.width/2,r.has(l,"labelpos"))switch(l.labelpos.toLowerCase()){case"l":a=l.width/2;break;case"r":a=-l.width/2}return a&&(c+=n?a:-a),a=0,c}}(a.nodesep,a.edgesep,o);return r.forEach(t,(function(t){var i;r.forEach(t,(function(t){var r=n[t];if(s.setNode(r),i){var o=n[i],a=s.edge(o,r);s.setEdge(o,r,Math.max(u(e,t,i),a||0))}i=t}))})),s}(e,t,n,s),l=s?"borderLeft":"borderRight";function c(e,t){for(var n=u.nodes(),r=n.pop(),i={};r;)i[r]?e(r):(i[r]=!0,n.push(r),n=n.concat(t(r))),r=n.pop()}return c((function(e){a[e]=u.inEdges(e).reduce((function(e,t){return Math.max(e,a[t.v]+u.edge(t))}),0)}),u.predecessors.bind(u)),c((function(t){var n=u.outEdges(t).reduce((function(e,t){return Math.min(e,a[t.w]-u.edge(t))}),Number.POSITIVE_INFINITY),r=e.node(t);n!==Number.POSITIVE_INFINITY&&r.borderType!==l&&(a[t]=Math.max(a[t],n))}),u.successors.bind(u)),r.forEach(o,(function(e){a[e]=a[n[e]]})),a}function h(e,t){return r.minBy(r.values(t),(function(t){var n=Number.NEGATIVE_INFINITY,i=Number.POSITIVE_INFINITY;return r.forIn(t,(function(t,r){var o=function(e,t){return e.node(t).width}(e,r)/2;n=Math.max(t+o,n),i=Math.min(t-o,i)})),n-i}))}function f(e,t){var n=r.values(t),i=r.min(n),o=r.max(n);r.forEach(["u","d"],(function(n){r.forEach(["l","r"],(function(s){var a,u=n+s,l=e[u];if(l!==t){var c=r.values(l);(a="l"===s?i-r.min(c):o-r.max(c))&&(e[u]=r.mapValues(l,(function(e){return e+a})))}}))}))}function p(e,t){return r.mapValues(e.ul,(function(n,i){if(t)return e[t.toLowerCase()][i];var o=r.sortBy(r.map(e,i));return(o[1]+o[2])/2}))}e.exports={positionX:function(e){var t,n=o.buildLayerMatrix(e),i=r.merge(s(e,n),a(e,n)),u={};r.forEach(["u","d"],(function(o){t="u"===o?n:r.values(n).reverse(),r.forEach(["l","r"],(function(n){"r"===n&&(t=r.map(t,(function(e){return r.values(e).reverse()})));var s=("u"===o?e.predecessors:e.successors).bind(e),a=c(e,t,i,s),l=d(e,t,a.root,a.align,"r"===n);"r"===n&&(l=r.mapValues(l,(function(e){return-e}))),u[o+n]=l}))}));var l=h(e,u);return f(u,l),p(u,e.graph().align)},findType1Conflicts:s,findType2Conflicts:a,addConflict:u,hasConflict:l,verticalAlignment:c,horizontalCompaction:d,alignCoordinates:f,findSmallestWidthAlignment:h,balance:p}},function(e,t,n){var r=n(2),i=n(5),o=n(13).Graph;e.exports={debugOrdering:function(e){var t=i.buildLayerMatrix(e),n=new o({compound:!0,multigraph:!0}).setGraph({});return r.forEach(e.nodes(),(function(t){n.setNode(t,{label:t}),n.setParent(t,"layer"+e.node(t).rank)})),r.forEach(e.edges(),(function(e){n.setEdge(e.v,e.w,{},e.name)})),r.forEach(t,(function(e,t){var i="layer"+t;n.setNode(i,{rank:"same"}),r.reduce(e,(function(e,t){return n.setEdge(e,t,{style:"invis"}),t}))})),n}}},function(e,t){e.exports="0.8.4"},function(e,t,n){ +/*! no static exports found */function(e,t){e.exports=n(889)}}).default},e.exports=i()},function(e,t,n){"use strict";n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return p})),n.d(t,"c",(function(){return m}));var i=n(30),r=n(1),o=n(19),s=n(6),a=n(2),l=n(12),c=n(8),d=n(117),u=n(10),h=n(22),f=n(136);const g={forceCopyWithSyntaxHighlighting:!1};class p{constructor(){this._lastState=null}set(e,t){this._lastState={lastCopiedValue:e,data:t}}get(e){return this._lastState&&this._lastState.lastCopiedValue===e?this._lastState.data:(this._lastState=null,null)}}p.INSTANCE=new p;class m extends a.a{constructor(e,t){super(),this.textArea=t,this._onFocus=this._register(new s.a),this.onFocus=this._onFocus.event,this._onBlur=this._register(new s.a),this.onBlur=this._onBlur.event,this._onKeyDown=this._register(new s.a),this.onKeyDown=this._onKeyDown.event,this._onKeyUp=this._register(new s.a),this.onKeyUp=this._onKeyUp.event,this._onCut=this._register(new s.a),this.onCut=this._onCut.event,this._onPaste=this._register(new s.a),this.onPaste=this._onPaste.event,this._onType=this._register(new s.a),this.onType=this._onType.event,this._onCompositionStart=this._register(new s.a),this.onCompositionStart=this._onCompositionStart.event,this._onCompositionUpdate=this._register(new s.a),this.onCompositionUpdate=this._onCompositionUpdate.event,this._onCompositionEnd=this._register(new s.a),this.onCompositionEnd=this._onCompositionEnd.event,this._onSelectionChangeRequest=this._register(new s.a),this.onSelectionChangeRequest=this._onSelectionChangeRequest.event,this._host=e,this._textArea=this._register(new b(t)),this._asyncTriggerCut=this._register(new o.d(()=>this._onCut.fire(),0)),this._textAreaState=d.b.EMPTY,this._selectionChangeListener=null,this.writeScreenReaderContent("ctor"),this._hasFocus=!1,this._isDoingComposition=!1,this._nextCommand=0;let n=null;this._register(r.n(t.domNode,"keydown",e=>{(109===e.keyCode||this._isDoingComposition&&1===e.keyCode)&&e.stopPropagation(),e.equals(9)&&e.preventDefault(),n=e,this._onKeyDown.fire(e)})),this._register(r.n(t.domNode,"keyup",e=>{this._onKeyUp.fire(e)})),this._register(r.i(t.domNode,"compositionstart",e=>{if(this._isDoingComposition)return;this._isDoingComposition=!0;let t=!1;l.f&&n&&n.equals(109)&&this._textAreaState.selectionStart===this._textAreaState.selectionEnd&&this._textAreaState.selectionStart>0&&this._textAreaState.value.substr(this._textAreaState.selectionStart-1,1)===e.data&&("ArrowRight"!==n.code&&"ArrowLeft"!==n.code||(t=!0)),t?this._textAreaState=new d.b(this._textAreaState.value,this._textAreaState.selectionStart-1,this._textAreaState.selectionEnd,this._textAreaState.selectionStartPosition?new u.a(this._textAreaState.selectionStartPosition.lineNumber,this._textAreaState.selectionStartPosition.column-1):null,this._textAreaState.selectionEndPosition):i.f||this._setAndWriteTextAreaState("compositionstart",d.b.EMPTY),this._onCompositionStart.fire({moveOneCharacterLeft:t})}));const a=e=>{const t=this._textAreaState,n=d.b.readFromTextArea(this._textArea);return[n,d.b.deduceInput(t,n,e)]},h=e=>{const t=this._textAreaState,n=d.b.selectedText(e);return[n,{text:n.value,replaceCharCnt:t.selectionEnd-t.selectionStart}]},f=e=>!(!i.f||"ja"!==e);this._register(r.i(t.domNode,"compositionupdate",e=>{if(f(e.locale)){const[t,n]=a(!1);return this._textAreaState=t,this._onType.fire(n),void this._onCompositionUpdate.fire(e)}const[t,n]=h(e.data||"");this._textAreaState=t,this._onType.fire(n),this._onCompositionUpdate.fire(e)})),this._register(r.i(t.domNode,"compositionend",e=>{if(this._isDoingComposition){if(f(e.locale)){const[e,t]=a(!1);this._textAreaState=e,this._onType.fire(t)}else{const[t,n]=h(e.data||"");this._textAreaState=t,this._onType.fire(n)}(i.f||i.e)&&(this._textAreaState=d.b.readFromTextArea(this._textArea)),this._isDoingComposition&&(this._isDoingComposition=!1,this._onCompositionEnd.fire())}})),this._register(r.i(t.domNode,"input",()=>{if(this._textArea.setIgnoreSelectionChangeTime("received input event"),this._isDoingComposition)return;const[e,t]=a(l.f);0===t.replaceCharCnt&&1===t.text.length&&c.F(t.text.charCodeAt(0))||(this._textAreaState=e,0===this._nextCommand?""!==t.text&&this._onType.fire(t):(""===t.text&&0===t.replaceCharCnt||this._firePaste(t.text,null),this._nextCommand=0))})),this._register(r.i(t.domNode,"cut",e=>{this._textArea.setIgnoreSelectionChangeTime("received cut event"),this._ensureClipboardGetsEditorSelection(e),this._asyncTriggerCut.schedule()})),this._register(r.i(t.domNode,"copy",e=>{this._ensureClipboardGetsEditorSelection(e)})),this._register(r.i(t.domNode,"paste",e=>{if(this._textArea.setIgnoreSelectionChangeTime("received paste event"),_.canUseTextData(e)){const[t,n]=_.getTextData(e);""!==t&&this._firePaste(t,n)}else this._textArea.getSelectionStart()!==this._textArea.getSelectionEnd()&&this._setAndWriteTextAreaState("paste",d.b.EMPTY),this._nextCommand=1})),this._register(r.i(t.domNode,"focus",()=>{this._setHasFocus(!0)})),this._register(r.i(t.domNode,"blur",()=>{this._setHasFocus(!1)}))}_installSelectionChangeListener(){let e=0;return r.i(document,"selectionchange",t=>{if(!this._hasFocus)return;if(this._isDoingComposition)return;if(!i.e)return;const n=Date.now(),r=n-e;if(e=n,r<5)return;const o=n-this._textArea.getIgnoreSelectionChangeTime();if(this._textArea.resetSelectionChangeTime(),o<100)return;if(!this._textAreaState.selectionStartPosition||!this._textAreaState.selectionEndPosition)return;const s=this._textArea.getValue();if(this._textAreaState.value!==s)return;const a=this._textArea.getSelectionStart(),l=this._textArea.getSelectionEnd();if(this._textAreaState.selectionStart===a&&this._textAreaState.selectionEnd===l)return;const c=this._textAreaState.deduceEditorPosition(a),d=this._host.deduceModelPosition(c[0],c[1],c[2]),u=this._textAreaState.deduceEditorPosition(l),f=this._host.deduceModelPosition(u[0],u[1],u[2]),g=new h.a(d.lineNumber,d.column,f.lineNumber,f.column);this._onSelectionChangeRequest.fire(g)})}dispose(){super.dispose(),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)}focusTextArea(){this._setHasFocus(!0),this.refreshFocusState()}isFocused(){return this._hasFocus}refreshFocusState(){const e=r.E(this.textArea.domNode);e?this._setHasFocus(e.activeElement===this.textArea.domNode):r.N(this.textArea.domNode)?this._setHasFocus(document.activeElement===this.textArea.domNode):this._setHasFocus(!1)}_setHasFocus(e){this._hasFocus!==e&&(this._hasFocus=e,this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null),this._hasFocus&&(this._selectionChangeListener=this._installSelectionChangeListener()),this._hasFocus&&(i.f?this._setAndWriteTextAreaState("focusgain",d.b.EMPTY):this.writeScreenReaderContent("focusgain")),this._hasFocus?this._onFocus.fire():this._onBlur.fire())}_setAndWriteTextAreaState(e,t){this._hasFocus||(t=t.collapseSelection()),t.writeToTextArea(e,this._textArea,this._hasFocus),this._textAreaState=t}writeScreenReaderContent(e){this._isDoingComposition||this._setAndWriteTextAreaState(e,this._host.getScreenReaderContent(this._textAreaState))}_ensureClipboardGetsEditorSelection(e){const t=this._host.getDataToCopy(_.canUseTextData(e)&&f.a.clipboard.richText),n={version:1,isFromEmptySelection:t.isFromEmptySelection,multicursorText:t.multicursorText,mode:t.mode};p.INSTANCE.set(i.h?t.text.replace(/\r\n/g,"\n"):t.text,n),_.canUseTextData(e)?_.setTextData(e,t.text,t.html,n):this._setAndWriteTextAreaState("copy or cut",d.b.selectedText(t.text))}_firePaste(e,t){t||(t=p.INSTANCE.get(e)),this._onPaste.fire({text:e,metadata:t})}}class _{static canUseTextData(e){return!!e.clipboardData||!!window.clipboardData}static getTextData(e){if(e.clipboardData){e.preventDefault();const t=e.clipboardData.getData("text/plain");let n=null;const i=e.clipboardData.getData("vscode-editor-data");if("string"==typeof i)try{1!==(n=JSON.parse(i)).version&&(n=null)}catch(e){}return[t,n]}if(window.clipboardData){return e.preventDefault(),[window.clipboardData.getData("Text"),null]}throw new Error("ClipboardEventUtils.getTextData: Cannot use text data!")}static setTextData(e,t,n,i){if(e.clipboardData)return e.clipboardData.setData("text/plain",t),"string"==typeof n&&e.clipboardData.setData("text/html",n),e.clipboardData.setData("vscode-editor-data",JSON.stringify(i)),void e.preventDefault();if(window.clipboardData)return window.clipboardData.setData("Text",t),void e.preventDefault();throw new Error("ClipboardEventUtils.setTextData: Cannot use text data!")}}class b extends a.a{constructor(e){super(),this._actual=e,this._ignoreSelectionChangeTime=0}setIgnoreSelectionChangeTime(e){this._ignoreSelectionChangeTime=Date.now()}getIgnoreSelectionChangeTime(){return this._ignoreSelectionChangeTime}resetSelectionChangeTime(){this._ignoreSelectionChangeTime=0}getValue(){return this._actual.domNode.value}setValue(e,t){const n=this._actual.domNode;n.value!==t&&(this.setIgnoreSelectionChangeTime("setValue"),n.value=t)}getSelectionStart(){return this._actual.domNode.selectionStart}getSelectionEnd(){return this._actual.domNode.selectionEnd}setSelectionRange(e,t,n){const o=this._actual.domNode;let s=null;const a=r.E(o),l=(s=a?a.activeElement:document.activeElement)===o,c=o.selectionStart,d=o.selectionEnd;if(l&&c===t&&d===n)i.h&&window.parent!==window&&o.focus();else{if(l)return this.setIgnoreSelectionChangeTime("setSelectionRange"),o.setSelectionRange(t,n),void(i.h&&window.parent!==window&&o.focus());try{const e=r.X(o);this.setIgnoreSelectionChangeTime("setSelectionRange"),o.focus(),o.setSelectionRange(t,n),r.V(o,e)}catch(e){}}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));class i{constructor(e,t,n){this.from=0|e,this.to=0|t,this.colorId=0|n}static compare(e,t){return e.colorId===t.colorId?e.from===t.from?e.to-t.to:e.from-t.from:e.colorId-t.colorId}}class r{constructor(e,t,n){this.startLineNumber=e,this.endLineNumber=t,this.color=n,this._colorZone=null}static compare(e,t){return e.color===t.color?e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber:e.color<t.color?-1:1}setColorZone(e){this._colorZone=e}getColorZones(){return this._colorZone}}class o{constructor(e){this._getVerticalOffsetForLine=e,this._zones=[],this._colorZonesInvalid=!1,this._lineHeight=0,this._domWidth=0,this._domHeight=0,this._outerHeight=0,this._pixelRatio=1,this._lastAssignedId=0,this._color2Id=Object.create(null),this._id2Color=[]}getId2Color(){return this._id2Color}setZones(e){this._zones=e,this._zones.sort(r.compare)}setLineHeight(e){return this._lineHeight!==e&&(this._lineHeight=e,this._colorZonesInvalid=!0,!0)}setPixelRatio(e){this._pixelRatio=e,this._colorZonesInvalid=!0}getDOMWidth(){return this._domWidth}getCanvasWidth(){return this._domWidth*this._pixelRatio}setDOMWidth(e){return this._domWidth!==e&&(this._domWidth=e,this._colorZonesInvalid=!0,!0)}getDOMHeight(){return this._domHeight}getCanvasHeight(){return this._domHeight*this._pixelRatio}setDOMHeight(e){return this._domHeight!==e&&(this._domHeight=e,this._colorZonesInvalid=!0,!0)}getOuterHeight(){return this._outerHeight}setOuterHeight(e){return this._outerHeight!==e&&(this._outerHeight=e,this._colorZonesInvalid=!0,!0)}resolveColorZones(){const e=this._colorZonesInvalid,t=Math.floor(this._lineHeight),n=Math.floor(this.getCanvasHeight()),r=n/Math.floor(this._outerHeight),o=Math.floor(4*this._pixelRatio/2);let s=[];for(let a=0,l=this._zones.length;a<l;a++){const l=this._zones[a];if(!e){const e=l.getColorZones();if(e){s.push(e);continue}}const c=Math.floor(r*this._getVerticalOffsetForLine(l.startLineNumber)),d=Math.floor(r*(this._getVerticalOffsetForLine(l.endLineNumber)+t));let u=Math.floor((c+d)/2),h=d-u;h<o&&(h=o),u-h<0&&(u=h),u+h>n&&(u=n-h);const f=l.color;let g=this._color2Id[f];g||(g=++this._lastAssignedId,this._color2Id[f]=g,this._id2Color[g]=f);const p=new i(u-h,u+h,g);l.setColorZone(p),s.push(p)}return this._colorZonesInvalid=!1,s.sort(i.compare),s}}},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var i=n(142).Symbol;e.exports=i},function(e,t,n){(function(e){var i=n(142),r=n(686),o=t&&!t.nodeType&&t,s=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=s&&s.exports===o?i.Buffer:void 0,l=(a?a.isBuffer:void 0)||r;e.exports=l}).call(this,n(215)(e))},function(e,t,n){var i=n(357),r=n(690),o=n(159);e.exports=function(e){return o(e)?i(e,!0):r(e)}},function(e,t,n){var i=n(695),r=n(296),o=n(696),s=n(366),a=n(697),l=n(181),c=n(355),d=c(i),u=c(r),h=c(o),f=c(s),g=c(a),p=l;(i&&"[object DataView]"!=p(new i(new ArrayBuffer(1)))||r&&"[object Map]"!=p(new r)||o&&"[object Promise]"!=p(o.resolve())||s&&"[object Set]"!=p(new s)||a&&"[object WeakMap]"!=p(new a))&&(p=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,i=n?c(n):"";if(i)switch(i){case d:return"[object DataView]";case u:return"[object Map]";case h:return"[object Promise]";case f:return"[object Set]";case g:return"[object WeakMap]"}return t}),e.exports=p},function(e,t,n){var i=n(181),r=n(149),o="[object Symbol]";e.exports=function(e){return"symbol"==typeof e||r(e)&&i(e)==o}},function(e,t,n){var i;try{i={defaults:n(312),each:n(218),isFunction:n(180),isPlainObject:n(405),pick:n(315),has:n(220),range:n(316),uniqueId:n(317)}}catch(e){}i||(i=window._),e.exports=i},function(e,t,n){"use strict";n.r(t),n.d(t,"ToggleTabFocusModeAction",(function(){return a}));var i=n(0),r=n(55),o=n(4),s=n(174);class a extends o.b{constructor(){super({id:a.ID,label:i.a({key:"toggle.tabMovesFocus",comment:["Turn on/off use of tab key for moving focus around VS Code"]},"Toggle Tab Key Moves Focus"),alias:"Toggle Tab Key Moves Focus",precondition:void 0,kbOpts:{kbExpr:null,primary:2091,mac:{primary:1323},weight:100}})}run(e,t){const n=!s.b.getTabFocusMode();s.b.setTabFocusMode(n),n?Object(r.a)(i.a("toggle.tabMovesFocus.on","Pressing Tab will now move focus to the next focusable element")):Object(r.a)(i.a("toggle.tabMovesFocus.off","Pressing Tab will now insert the tab character"))}}a.ID="editor.action.toggleTabFocusMode",Object(o.k)(a)},function(e,t,n){"use strict";var i=n(87);n.o(i,"Emitter")&&n.d(t,"Emitter",(function(){return i.Emitter})),n.o(i,"MarkerSeverity")&&n.d(t,"MarkerSeverity",(function(){return i.MarkerSeverity})),n.o(i,"MarkerTag")&&n.d(t,"MarkerTag",(function(){return i.MarkerTag})),n.o(i,"Range")&&n.d(t,"Range",(function(){return i.Range})),n.o(i,"Uri")&&n.d(t,"Uri",(function(){return i.Uri})),n.o(i,"editor")&&n.d(t,"editor",(function(){return i.editor})),n.o(i,"languages")&&n.d(t,"languages",(function(){return i.languages}))},function(e,t,n){"use strict";var i=n(87);n.o(i,"Emitter")&&n.d(t,"Emitter",(function(){return i.Emitter})),n.o(i,"MarkerSeverity")&&n.d(t,"MarkerSeverity",(function(){return i.MarkerSeverity})),n.o(i,"Range")&&n.d(t,"Range",(function(){return i.Range})),n.o(i,"Uri")&&n.d(t,"Uri",(function(){return i.Uri})),n.o(i,"editor")&&n.d(t,"editor",(function(){return i.editor})),n.o(i,"languages")&&n.d(t,"languages",(function(){return i.languages}))},function(e,t,n){"use strict";var i=n(87);n.o(i,"Emitter")&&n.d(t,"Emitter",(function(){return i.Emitter})),n.o(i,"MarkerSeverity")&&n.d(t,"MarkerSeverity",(function(){return i.MarkerSeverity})),n.o(i,"Range")&&n.d(t,"Range",(function(){return i.Range})),n.o(i,"Uri")&&n.d(t,"Uri",(function(){return i.Uri})),n.o(i,"editor")&&n.d(t,"editor",(function(){return i.editor})),n.o(i,"languages")&&n.d(t,"languages",(function(){return i.languages}))},function(e,t,n){"use strict";n.r(t);var i,r=n(0),o=n(2),s=n(9),a=n(10),l=n(3),c=n(4),d=n(7),u=(n(587),n(1)),h=n(52),f=n(5),g=n(18),p=n(13),m=n(94),_=n(176),b=n(14),v=n(6),y=n(53),w=n(42),C=n(58),S=n(16);(i||(i={})).className=function(e){switch(e){case C.a.Ignore:return"severity-ignore "+S.a.info.classNames;case C.a.Info:return S.a.info.classNames;case C.a.Warning:return S.a.warning.classNames;case C.a.Error:return S.a.error.classNames;default:return""}},Object(g.g)((e,t)=>{const n=e.getColor(f.Zb);if(n){const e=S.a.error.cssSelector;t.addRule(`\n\t\t\t.monaco-editor .zone-widget ${e},\n\t\t\t.markers-panel .marker-icon${e},\n\t\t\t.extensions-viewlet > .extensions ${e} {\n\t\t\t\tcolor: ${n};\n\t\t\t}\n\t\t`)}const i=e.getColor(f.bc);if(i){const e=S.a.warning.cssSelector;t.addRule(`\n\t\t\t.monaco-editor .zone-widget ${e},\n\t\t\t.markers-panel .marker-icon${e},\n\t\t\t.extensions-viewlet > .extensions ${e},\n\t\t\t.extension-editor ${e} {\n\t\t\t\tcolor: ${i};\n\t\t\t}\n\t\t`)}const r=e.getColor(f.ac);if(r){const e=S.a.info.cssSelector;t.addRule(`\n\t\t\t.monaco-editor .zone-widget ${e},\n\t\t\t.markers-panel .marker-icon${e},\n\t\t\t.extensions-viewlet > .extensions ${e},\n\t\t\t.extension-editor ${e} {\n\t\t\t\tcolor: ${r};\n\t\t\t}\n\t\t`)}});var k=n(66),x=n(25),L=n(236),M=n(17),D=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},E=function(e,t){return function(n,i){t(n,i,e)}};class T{constructor(e,t,n,i){this._openerService=i,this._lines=0,this._longestLineLength=0,this._relatedDiagnostics=new WeakMap,this._disposables=new o.b,this._editor=t;const r=document.createElement("div");r.className="descriptioncontainer",this._messageBlock=document.createElement("div"),u.e(this._messageBlock,"message"),this._messageBlock.setAttribute("aria-live","assertive"),this._messageBlock.setAttribute("role","alert"),r.appendChild(this._messageBlock),this._relatedBlock=document.createElement("div"),r.appendChild(this._relatedBlock),this._disposables.add(u.n(this._relatedBlock,"click",e=>{e.preventDefault();const t=this._relatedDiagnostics.get(e.target);t&&n(t)})),this._scrollable=new m.b(r,{horizontal:1,vertical:1,useShadows:!1,horizontalScrollbarSize:3,verticalScrollbarSize:3}),e.appendChild(this._scrollable.getDomNode()),this._disposables.add(this._scrollable.onScroll(e=>{r.style.left=`-${e.scrollLeft}px`,r.style.top=`-${e.scrollTop}px`})),this._disposables.add(this._scrollable)}dispose(){Object(o.f)(this._disposables)}update(e){const{source:t,message:n,relatedInformation:i,code:r}=e;let o=((null==t?void 0:t.length)||0)+"()".length;r&&(o+="string"==typeof r?r.length:r.value.length);const s=n.split(/\r\n|\r|\n/g);this._lines=s.length,this._longestLineLength=0;for(const e of s)this._longestLineLength=Math.max(e.length+o,this._longestLineLength);u.s(this._messageBlock),this._messageBlock.setAttribute("aria-label",this.getAriaLabel(e)),this._editor.applyFontInfo(this._messageBlock);let a=this._messageBlock;for(const e of s)(a=document.createElement("div")).innerText=e,""===e&&(a.style.height=this._messageBlock.style.lineHeight),this._messageBlock.appendChild(a);if(t||r){const e=document.createElement("span");if(u.e(e,"details"),a.appendChild(e),t){const n=document.createElement("span");n.innerText=t,u.e(n,"source"),e.appendChild(n)}if(r)if("string"==typeof r){const t=document.createElement("span");t.innerText=`(${r})`,u.e(t,"code"),e.appendChild(t)}else{this._codeLink=u.a("a.code-link"),this._codeLink.setAttribute("href",`${r.target.toString()}`),this._codeLink.onclick=e=>{this._openerService.open(r.target),e.preventDefault(),e.stopPropagation()},u.p(this._codeLink,u.a("span")).innerText=r.value,e.appendChild(this._codeLink)}}if(u.s(this._relatedBlock),this._editor.applyFontInfo(this._relatedBlock),Object(b.o)(i)){const e=this._relatedBlock.appendChild(document.createElement("div"));e.style.paddingTop=`${Math.floor(.66*this._editor.getOption(51))}px`,this._lines+=1;for(const t of i){let n=document.createElement("div"),i=document.createElement("a");u.e(i,"filename"),i.innerText=`${Object(_.a)(t.resource)}(${t.startLineNumber}, ${t.startColumn}): `,i.title=Object(_.b)(t.resource,void 0),this._relatedDiagnostics.set(i,t);let r=document.createElement("span");r.innerText=t.message,n.appendChild(i),n.appendChild(r),this._lines+=1,e.appendChild(n)}}const l=this._editor.getOption(36),c=Math.ceil(l.typicalFullwidthCharacterWidth*this._longestLineLength*.75),d=l.lineHeight*this._lines;this._scrollable.setScrollDimensions({scrollWidth:c,scrollHeight:d})}layout(e,t){this._scrollable.getDomNode().style.height=`${e}px`,this._scrollable.getDomNode().style.width=`${t}px`,this._scrollable.setScrollDimensions({width:t,height:e})}getHeightInLines(){return Math.min(17,this._lines)}getAriaLabel(e){let t="";switch(e.severity){case h.c.Error:t=r.a("Error","Error");break;case h.c.Warning:t=r.a("Warning","Warning");break;case h.c.Info:t=r.a("Info","Info");break;case h.c.Hint:t=r.a("Hint","Hint")}let n=r.a("marker aria","{0} at {1}. ",t,e.startLineNumber+":"+e.startColumn);const i=this._editor.getModel();if(i&&e.startLineNumber<=i.getLineCount()&&e.startLineNumber>=1){n=`${i.getLineContent(e.startLineNumber)}, ${n}`}return n}}let O=class e extends y.c{constructor(e,t,n,i,r,s){super(e,{showArrow:!0,showFrame:!0,isAccessible:!0},r),this._themeService=t,this._openerService=n,this._menuService=i,this._contextKeyService=s,this._callOnDispose=new o.b,this._onDidSelectRelatedInformation=new v.a,this.onDidSelectRelatedInformation=this._onDidSelectRelatedInformation.event,this._severity=h.c.Warning,this._backgroundColor=p.a.white,this._applyTheme(t.getColorTheme()),this._callOnDispose.add(t.onDidColorThemeChange(this._applyTheme.bind(this))),this.create()}_applyTheme(e){this._backgroundColor=e.getColor(F);let t=R;this._severity===h.c.Warning?t=P:this._severity===h.c.Info&&(t=j);const n=e.getColor(t);this.style({arrowColor:n,frameColor:n,headerBackgroundColor:this._backgroundColor,primaryHeadingColor:e.getColor(y.q),secondaryHeadingColor:e.getColor(y.r)})}_applyStyles(){this._parentContainer&&(this._parentContainer.style.backgroundColor=this._backgroundColor?this._backgroundColor.toString():""),super._applyStyles()}dispose(){this._callOnDispose.dispose(),super.dispose()}_fillHead(t){super._fillHead(t),this._disposables.add(this._actionbarWidget.actionRunner.onDidBeforeRun(e=>this.editor.focus()));const n=[],i=this._menuService.createMenu(e.TitleMenu,this._contextKeyService);Object(L.c)(i,void 0,n),this._actionbarWidget.push(n,{label:!1,icon:!0,index:0}),i.dispose()}_fillTitleIcon(e){this._icon=u.p(e,u.a(""))}_getActionBarOptions(){return Object.assign(Object.assign({},super._getActionBarOptions()),{orientation:0})}_fillBody(e){this._parentContainer=e,u.e(e,"marker-widget"),this._parentContainer.tabIndex=0,this._parentContainer.setAttribute("role","tooltip"),this._container=document.createElement("div"),e.appendChild(this._container),this._message=new T(this._container,this.editor,e=>this._onDidSelectRelatedInformation.fire(e),this._openerService),this._disposables.add(this._message)}show(){throw new Error("call showAtMarker")}showAtMarker(e,t,n){this._container.classList.remove("stale"),this._message.update(e),this._severity=e.severity,this._applyTheme(this._themeService.getColorTheme());let o=l.a.lift(e);const s=this.editor.getPosition();let a=s&&o.containsPosition(s)?s:o.getStartPosition();super.show(a,this.computeRequiredHeight());const c=this.editor.getModel();if(c){const e=n>1?r.a("problems","{0} of {1} problems",t,n):r.a("change","{0} of {1} problem",t,n);this.setTitle(Object(w.b)(c.uri),e)}this._icon.className=`codicon ${i.className(h.c.toSeverity(this._severity))}`,this.editor.revealPositionNearTop(a,0),this.editor.focus()}updateMarker(e){this._container.classList.remove("stale"),this._message.update(e)}showStale(){this._container.classList.add("stale"),this._relayout()}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._heightInPixel=e,this._message.layout(e,t),this._container.style.height=`${e}px`}_onWidth(e){this._message.layout(this._heightInPixel,e)}_relayout(){super._relayout(this.computeRequiredHeight())}computeRequiredHeight(){return 3+this._message.getHeightInLines()}};O.TitleMenu=new x.b("gotoErrorTitleMenu"),O=D([E(1,g.c),E(2,k.a),E(3,x.a),E(4,M.a),E(5,s.b)],O);let N=Object(f.Ub)(f.u,f.t),I=Object(f.Ub)(f.T,f.S),A=Object(f.Ub)(f.L,f.K);const R=Object(f.gc)("editorMarkerNavigationError.background",{dark:N,light:N,hc:N},r.a("editorMarkerNavigationError","Editor marker navigation widget error color.")),P=Object(f.gc)("editorMarkerNavigationWarning.background",{dark:I,light:I,hc:I},r.a("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),j=Object(f.gc)("editorMarkerNavigationInfo.background",{dark:A,light:A,hc:A},r.a("editorMarkerNavigationInfo","Editor marker navigation widget info color.")),F=Object(f.gc)("editorMarkerNavigation.background",{dark:"#2D2D30",light:p.a.white,hc:"#0C141F"},r.a("editorMarkerNavigationBackground","Editor marker navigation widget background."));Object(g.g)((e,t)=>{const n=e.getColor(f.rc);n&&(t.addRule(`.monaco-editor .marker-widget a { color: ${n}; }`),t.addRule(`.monaco-editor .marker-widget a.code-link span:hover { color: ${n}; }`))});var B=n(33),W=n(24),H=n(8),Y=n(103),V=n(84),z=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},U=function(e,t){return function(n,i){t(n,i,e)}};class ${constructor(e,t,n){this.marker=e,this.index=t,this.total=n}}let q=class e{constructor(t,n){this._markerService=n,this._onDidChange=new v.a,this.onDidChange=this._onDidChange.event,this._dispoables=new o.b,this._markers=[],this._nextIdx=-1,W.a.isUri(t)?this._resourceFilter=e=>e.toString()===t.toString():t&&(this._resourceFilter=t);const i=()=>{this._markers=this._markerService.read({resource:W.a.isUri(t)?t:void 0,severities:h.c.Error|h.c.Warning|h.c.Info}),"function"==typeof t&&(this._markers=this._markers.filter(e=>this._resourceFilter(e.resource))),this._markers.sort(e._compareMarker)};i(),this._dispoables.add(n.onMarkerChanged(e=>{this._resourceFilter&&!e.some(e=>this._resourceFilter(e))||(i(),this._nextIdx=-1,this._onDidChange.fire())}))}dispose(){this._dispoables.dispose(),this._onDidChange.dispose()}matches(e){return!this._resourceFilter&&!e||!(!this._resourceFilter||!e)&&this._resourceFilter(e)}get selected(){const e=this._markers[this._nextIdx];return e&&new $(e,this._nextIdx+1,this._markers.length)}_initIdx(e,t,n){let i=!1,r=this._markers.findIndex(t=>t.resource.toString()===e.uri.toString());r<0&&(r=Object(b.c)(this._markers,{resource:e.uri},(e,t)=>Object(H.f)(e.resource.toString(),t.resource.toString())))<0&&(r=~r);for(let n=r;n<this._markers.length;n++){let r=l.a.lift(this._markers[n]);if(r.isEmpty()){const t=e.getWordAtPosition(r.getStartPosition());t&&(r=new l.a(r.startLineNumber,t.startColumn,r.startLineNumber,t.endColumn))}if(t&&(r.containsPosition(t)||t.isBeforeOrEqual(r.getStartPosition()))){this._nextIdx=n,i=!0;break}if(this._markers[n].resource.toString()!==e.uri.toString())break}i||(this._nextIdx=n?0:this._markers.length-1),this._nextIdx<0&&(this._nextIdx=this._markers.length-1)}resetIndex(){this._nextIdx=-1}move(e,t,n){if(0===this._markers.length)return!1;let i=this._nextIdx;return-1===this._nextIdx?this._initIdx(t,n,e):e?this._nextIdx=(this._nextIdx+1)%this._markers.length:e||(this._nextIdx=(this._nextIdx-1+this._markers.length)%this._markers.length),i!==this._nextIdx}find(e,t){let n=this._markers.findIndex(t=>t.resource.toString()===e.toString());if(!(n<0))for(;n<this._markers.length;n++)if(l.a.containsPosition(this._markers[n],t))return new $(this._markers[n],n+1,this._markers.length)}static _compareMarker(e,t){let n=Object(H.f)(e.resource.toString(),t.resource.toString());return 0===n&&(n=h.c.compare(e.severity,t.severity)),0===n&&(n=l.a.compareRangesUsingStarts(e,t)),n}};q=z([U(1,h.b)],q);const K=Object(M.c)("IMarkerNavigationService");let G=class{constructor(e){this._markerService=e,this._provider=new V.a}getMarkerList(e){for(let t of this._provider){const n=t.getMarkerList(e);if(n)return n}return new q(e,this._markerService)}};G=z([U(0,h.b)],G),Object(Y.b)(K,G,!0),n.d(t,"MarkerController",(function(){return Q})),n.d(t,"NextMarkerAction",(function(){return te}));var Z=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},J=function(e,t){return function(n,i){t(n,i,e)}},X=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};let Q=class e{constructor(e,t,n,i,r){this._markerNavigationService=t,this._contextKeyService=n,this._editorService=i,this._instantiationService=r,this._sessionDispoables=new o.b,this._editor=e,this._widgetVisible=ie.bindTo(this._contextKeyService)}static get(t){return t.getContribution(e.ID)}dispose(){this._cleanUp(),this._sessionDispoables.dispose()}_cleanUp(){this._widgetVisible.reset(),this._sessionDispoables.clear(),this._widget=void 0,this._model=void 0}_getOrCreateModel(e){if(this._model&&this._model.matches(e))return this._model;let t=!1;return this._model&&(t=!0,this._cleanUp()),this._model=this._markerNavigationService.getMarkerList(e),t&&this._model.move(!0,this._editor.getModel(),this._editor.getPosition()),this._widget=this._instantiationService.createInstance(O,this._editor),this._widget.onDidClose(()=>this.close(),this,this._sessionDispoables),this._widgetVisible.set(!0),this._sessionDispoables.add(this._model),this._sessionDispoables.add(this._widget),this._sessionDispoables.add(this._editor.onDidChangeCursorPosition(e=>{var t,n,i;(null===(t=this._model)||void 0===t?void 0:t.selected)&&l.a.containsPosition(null===(n=this._model)||void 0===n?void 0:n.selected.marker,e.position)||null===(i=this._model)||void 0===i||i.resetIndex()})),this._sessionDispoables.add(this._model.onDidChange(()=>{if(!this._widget||!this._widget.position||!this._model)return;const e=this._model.find(this._editor.getModel().uri,this._widget.position);e?this._widget.updateMarker(e.marker):this._widget.showStale()})),this._sessionDispoables.add(this._widget.onDidSelectRelatedInformation(e=>{this._editorService.openCodeEditor({resource:e.resource,options:{pinned:!0,revealIfOpened:!0,selection:l.a.lift(e).collapseToStart()}},this._editor),this.close(!1)})),this._sessionDispoables.add(this._editor.onDidChangeModel(()=>this._cleanUp())),this._model}close(e=!0){this._cleanUp(),e&&this._editor.focus()}showAtMarker(e){if(this._editor.hasModel()){const t=this._getOrCreateModel(this._editor.getModel().uri);t.resetIndex(),t.move(!0,this._editor.getModel(),new a.a(e.startLineNumber,e.startColumn)),t.selected&&this._widget.showAtMarker(t.selected.marker,t.selected.index,t.selected.total)}}nagivate(t,n){return X(this,void 0,void 0,(function*(){if(this._editor.hasModel()){const i=this._getOrCreateModel(n?void 0:this._editor.getModel().uri);if(i.move(t,this._editor.getModel(),this._editor.getPosition()),!i.selected)return;if(i.selected.marker.resource.toString()!==this._editor.getModel().uri.toString()){this._cleanUp();const r=yield this._editorService.openCodeEditor({resource:i.selected.marker.resource,options:{pinned:!1,revealIfOpened:!0,selectionRevealType:2,selection:i.selected.marker}},this._editor);r&&(e.get(r).close(),e.get(r).nagivate(t,n))}else this._widget.showAtMarker(i.selected.marker,i.selected.index,i.selected.total)}}))}};Q.ID="editor.contrib.markerController",Q=Z([J(1,K),J(2,s.b),J(3,B.a),J(4,M.a)],Q);class ee extends c.b{constructor(e,t,n){super(n),this._next=e,this._multiFile=t}run(e,t){return X(this,void 0,void 0,(function*(){t.hasModel()&&Q.get(t).nagivate(this._next,this._multiFile)}))}}class te extends ee{constructor(){super(!0,!1,{id:te.ID,label:te.LABEL,alias:"Go to Next Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:d.a.focus,primary:578,weight:100},menuOpts:{menuId:O.TitleMenu,title:te.LABEL,icon:Object(S.e)("marker-navigation-next",S.a.chevronDown),group:"navigation",order:1}})}}te.ID="editor.action.marker.next",te.LABEL=r.a("markerAction.next.label","Go to Next Problem (Error, Warning, Info)");class ne extends ee{constructor(){super(!1,!1,{id:ne.ID,label:ne.LABEL,alias:"Go to Previous Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:d.a.focus,primary:1602,weight:100},menuOpts:{menuId:O.TitleMenu,title:te.LABEL,icon:Object(S.e)("marker-navigation-previous",S.a.chevronUp),group:"navigation",order:2}})}}ne.ID="editor.action.marker.prev",ne.LABEL=r.a("markerAction.previous.label","Go to Previous Problem (Error, Warning, Info)");Object(c.m)(Q.ID,Q),Object(c.k)(te),Object(c.k)(ne),Object(c.k)(class extends ee{constructor(){super(!0,!0,{id:"editor.action.marker.nextInFiles",label:r.a("markerAction.nextInFiles.label","Go to Next Problem in Files (Error, Warning, Info)"),alias:"Go to Next Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:d.a.focus,primary:66,weight:100},menuOpts:{menuId:x.b.MenubarGoMenu,title:r.a({key:"miGotoNextProblem",comment:["&& denotes a mnemonic"]},"Next &&Problem"),group:"6_problem_nav",order:1}})}}),Object(c.k)(class extends ee{constructor(){super(!1,!0,{id:"editor.action.marker.prevInFiles",label:r.a("markerAction.previousInFiles.label","Go to Previous Problem in Files (Error, Warning, Info)"),alias:"Go to Previous Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:d.a.focus,primary:1090,weight:100},menuOpts:{menuId:x.b.MenubarGoMenu,title:r.a({key:"miGotoPreviousProblem",comment:["&& denotes a mnemonic"]},"Previous &&Problem"),group:"6_problem_nav",order:2}})}});const ie=new s.c("markersNavigationVisible",!1),re=c.c.bindToContribution(Q.get);Object(c.l)(new re({id:"closeMarkersNavigation",precondition:ie,handler:e=>e.close(),kbOpts:{weight:150,kbExpr:d.a.focus,primary:9,secondary:[1033]}}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n(6),r=n(2);class o{constructor(e,t,n,i,r,o){e|=0,t|=0,n|=0,i|=0,r|=0,o|=0,this.rawScrollLeft=n,this.rawScrollTop=o,e<0&&(e=0),n+e>t&&(n=t-e),n<0&&(n=0),i<0&&(i=0),o+i>r&&(o=r-i),o<0&&(o=0),this.width=e,this.scrollWidth=t,this.scrollLeft=n,this.height=i,this.scrollHeight=r,this.scrollTop=o}equals(e){return this.rawScrollLeft===e.rawScrollLeft&&this.rawScrollTop===e.rawScrollTop&&this.width===e.width&&this.scrollWidth===e.scrollWidth&&this.scrollLeft===e.scrollLeft&&this.height===e.height&&this.scrollHeight===e.scrollHeight&&this.scrollTop===e.scrollTop}withScrollDimensions(e,t){return new o(void 0!==e.width?e.width:this.width,void 0!==e.scrollWidth?e.scrollWidth:this.scrollWidth,t?this.rawScrollLeft:this.scrollLeft,void 0!==e.height?e.height:this.height,void 0!==e.scrollHeight?e.scrollHeight:this.scrollHeight,t?this.rawScrollTop:this.scrollTop)}withScrollPosition(e){return new o(this.width,this.scrollWidth,void 0!==e.scrollLeft?e.scrollLeft:this.rawScrollLeft,this.height,this.scrollHeight,void 0!==e.scrollTop?e.scrollTop:this.rawScrollTop)}createScrollEvent(e){const t=this.width!==e.width,n=this.scrollWidth!==e.scrollWidth,i=this.scrollLeft!==e.scrollLeft,r=this.height!==e.height,o=this.scrollHeight!==e.scrollHeight,s=this.scrollTop!==e.scrollTop;return{oldWidth:e.width,oldScrollWidth:e.scrollWidth,oldScrollLeft:e.scrollLeft,width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,oldHeight:e.height,oldScrollHeight:e.scrollHeight,oldScrollTop:e.scrollTop,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:t,scrollWidthChanged:n,scrollLeftChanged:i,heightChanged:r,scrollHeightChanged:o,scrollTopChanged:s}}}class s extends r.a{constructor(e,t){super(),this._onScroll=this._register(new i.a),this.onScroll=this._onScroll.event,this._smoothScrollDuration=e,this._scheduleAtNextAnimationFrame=t,this._state=new o(0,0,0,0,0,0),this._smoothScrolling=null}dispose(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),super.dispose()}setSmoothScrollDuration(e){this._smoothScrollDuration=e}validateScrollPosition(e){return this._state.withScrollPosition(e)}getScrollDimensions(){return this._state}setScrollDimensions(e,t){const n=this._state.withScrollDimensions(e,t);this._setState(n),this._smoothScrolling&&this._smoothScrolling.acceptScrollDimensions(this._state)}getFutureScrollPosition(){return this._smoothScrolling?this._smoothScrolling.to:this._state}getCurrentScrollPosition(){return this._state}setScrollPositionNow(e){const t=this._state.withScrollPosition(e);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(t)}setScrollPositionSmooth(e){if(0===this._smoothScrollDuration)return this.setScrollPositionNow(e);if(this._smoothScrolling){e={scrollLeft:void 0===e.scrollLeft?this._smoothScrolling.to.scrollLeft:e.scrollLeft,scrollTop:void 0===e.scrollTop?this._smoothScrolling.to.scrollTop:e.scrollTop};const t=this._state.withScrollPosition(e);if(this._smoothScrolling.to.scrollLeft===t.scrollLeft&&this._smoothScrolling.to.scrollTop===t.scrollTop)return;const n=this._smoothScrolling.combine(this._state,t,this._smoothScrollDuration);this._smoothScrolling.dispose(),this._smoothScrolling=n}else{const t=this._state.withScrollPosition(e);this._smoothScrolling=c.start(this._state,t,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})}_performSmoothScrolling(){if(!this._smoothScrolling)return;const e=this._smoothScrolling.tick(),t=this._state.withScrollPosition(e);return this._setState(t),this._smoothScrolling?e.isDone?(this._smoothScrolling.dispose(),void(this._smoothScrolling=null)):void(this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})):void 0}_setState(e){const t=this._state;t.equals(e)||(this._state=e,this._onScroll.fire(this._state.createScrollEvent(t)))}}class a{constructor(e,t,n){this.scrollLeft=e,this.scrollTop=t,this.isDone=n}}function l(e,t){const n=t-e;return function(t){return e+n*(1-function(e){return Math.pow(e,3)}(1-t))}}class c{constructor(e,t,n,i){this.from=e,this.to=t,this.duration=i,this._startTime=n,this.animationFrameDisposable=null,this._initAnimations()}_initAnimations(){this.scrollLeft=this._initAnimation(this.from.scrollLeft,this.to.scrollLeft,this.to.width),this.scrollTop=this._initAnimation(this.from.scrollTop,this.to.scrollTop,this.to.height)}_initAnimation(e,t,n){if(Math.abs(e-t)>2.5*n){let s,a;return e<t?(s=e+.75*n,a=t-.75*n):(s=e-.75*n,a=t+.75*n),i=l(e,s),r=l(a,t),o=.33,function(e){return e<o?i(e/o):r((e-o)/(1-o))}}var i,r,o;return l(e,t)}dispose(){null!==this.animationFrameDisposable&&(this.animationFrameDisposable.dispose(),this.animationFrameDisposable=null)}acceptScrollDimensions(e){this.to=e.withScrollPosition(this.to),this._initAnimations()}tick(){return this._tick(Date.now())}_tick(e){const t=(e-this._startTime)/this.duration;if(t<1){const e=this.scrollLeft(t),n=this.scrollTop(t);return new a(e,n,!1)}return new a(this.to.scrollLeft,this.to.scrollTop,!0)}combine(e,t,n){return c.start(e,t,n)}static start(e,t,n){n+=10;const i=Date.now()-10;return new c(e,t,i,n)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));n(608);var i=n(1),r=n(165),o=n(2),s=n(91),a=n(37);class l{constructor(e){this._element=e}get element(){return this._element}set textContent(e){this.disposed||e===this._textContent||(this._textContent=e,this._element.textContent=e)}set className(e){this.disposed||e===this._className||(this._className=e,this._element.className=e)}set title(e){this.disposed||e===this._title||(this._title=e,this._title?this._element.title=e:this._element.removeAttribute("title"))}set empty(e){this.disposed||e===this._empty||(this._empty=e,this._element.style.marginLeft=e?"0":"")}dispose(){this.disposed=!0}}class c extends o.a{constructor(e,t){super(),this.domNode=this._register(new l(i.p(e,i.a(".monaco-icon-label"))));const n=i.p(this.domNode.element,i.a(".monaco-icon-label-container")),o=i.p(n,i.a("span.monaco-icon-name-container"));this.descriptionContainer=this._register(new l(i.p(n,i.a("span.monaco-icon-description-container")))),(null==t?void 0:t.supportHighlights)?this.nameNode=new u(o,!!t.supportCodicons):this.nameNode=new d(o),(null==t?void 0:t.supportDescriptionHighlights)?this.descriptionNodeFactory=()=>new r.a(i.p(this.descriptionContainer.element,i.a("span.label-description")),!!t.supportCodicons):this.descriptionNodeFactory=()=>this._register(new l(i.p(this.descriptionContainer.element,i.a("span.label-description"))))}setLabel(e,t,n){const i=["monaco-icon-label"];n&&(n.extraClasses&&i.push(...n.extraClasses),n.italic&&i.push("italic"),n.strikethrough&&i.push("strikethrough")),this.domNode.className=i.join(" "),this.domNode.title=(null==n?void 0:n.title)||"",this.nameNode.setLabel(e,n),(t||this.descriptionNode)&&(this.descriptionNode||(this.descriptionNode=this.descriptionNodeFactory()),this.descriptionNode instanceof r.a?(this.descriptionNode.set(t||"",n?n.descriptionMatches:void 0),(null==n?void 0:n.descriptionTitle)?this.descriptionNode.element.title=n.descriptionTitle:this.descriptionNode.element.removeAttribute("title")):(this.descriptionNode.textContent=t||"",this.descriptionNode.title=(null==n?void 0:n.descriptionTitle)||"",this.descriptionNode.empty=!t))}}class d{constructor(e){this.container=e,this.label=void 0,this.singleLabel=void 0}setLabel(e,t){if(this.label!==e||!Object(a.e)(this.options,t))if(this.label=e,this.options=t,"string"==typeof e)this.singleLabel||(this.container.innerText="",i.Q(this.container,"multiple"),this.singleLabel=i.p(this.container,i.a("a.label-name",{id:null==t?void 0:t.domId}))),this.singleLabel.textContent=e;else{this.container.innerText="",i.e(this.container,"multiple"),this.singleLabel=void 0;for(let n=0;n<e.length;n++){const r=e[n],o=(null==t?void 0:t.domId)&&`${null==t?void 0:t.domId}_${n}`;i.p(this.container,i.a("a.label-name",{id:o,"data-icon-label-count":e.length,"data-icon-label-index":n,role:"treeitem"},r)),n<e.length-1&&i.p(this.container,i.a("span.label-separator",void 0,(null==t?void 0:t.separator)||"/"))}}}}class u{constructor(e,t){this.container=e,this.supportCodicons=t,this.label=void 0,this.singleLabel=void 0}setLabel(e,t){if(this.label!==e||!Object(a.e)(this.options,t))if(this.label=e,this.options=t,"string"==typeof e)this.singleLabel||(this.container.innerText="",i.Q(this.container,"multiple"),this.singleLabel=new r.a(i.p(this.container,i.a("a.label-name",{id:null==t?void 0:t.domId})),this.supportCodicons)),this.singleLabel.set(e,null==t?void 0:t.matches,null==t?void 0:t.title,null==t?void 0:t.labelEscapeNewLines);else{this.container.innerText="",i.e(this.container,"multiple"),this.singleLabel=void 0;const n=(null==t?void 0:t.separator)||"/",o=function(e,t,n){if(!n)return;let i=0;return e.map(e=>{const r={start:i,end:i+e.length},o=n.map(e=>s.a.intersect(r,e)).filter(e=>!s.a.isEmpty(e)).map(({start:e,end:t})=>({start:e-i,end:t-i}));return i=r.end+t.length,o})}(e,n,null==t?void 0:t.matches);for(let s=0;s<e.length;s++){const a=e[s],l=o?o[s]:void 0,c=(null==t?void 0:t.domId)&&`${null==t?void 0:t.domId}_${s}`,d=i.a("a.label-name",{id:c,"data-icon-label-count":e.length,"data-icon-label-index":s,role:"treeitem"});new r.a(i.p(this.container,d),this.supportCodicons).set(a,l,null==t?void 0:t.title,null==t?void 0:t.labelEscapeNewLines),s<e.length-1&&i.p(d,i.a("span.label-separator",void 0,n))}}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return c}));var i=n(24),r=n(42),o=n(17);n(65);const s=Object(o.c)("contextService");var a,l;!function(e){e.isIWorkspace=function(e){return!(!e||"object"!=typeof e||"string"!=typeof e.id||!Array.isArray(e.folders))}}(a||(a={})),function(e){e.isIWorkspaceFolder=function(e){return!(!e||"object"!=typeof e||!i.a.isUri(e.uri)||"string"!=typeof e.name||"function"!=typeof e.toResource)}}(l||(l={}));class c{constructor(e,t){this.raw=t,this.uri=e.uri,this.index=e.index,this.name=e.name}toResource(e){return r.g(this.uri,e)}toJSON(){return{uri:this.uri,name:this.name,index:this.index}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n(17);const r=Object(i.c)("dialogService")},function(e,t,n){"use strict";n(584);var i=n(0),r=n(1),o=n(185),s=n(55),a=n(104),l=n(6),c=n(69),d=n(13),u=n(37);class h{constructor(e,t=0,n=e.length,i=t-1){this.items=e,this.start=t,this.end=n,this.index=i}current(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]}next(){return this.index=Math.min(this.index+1,this.end),this.current()}previous(){return this.index=Math.max(this.index-1,this.start-1),this.current()}first(){return this.index=this.start,this.current()}last(){return this.index=this.end-1,this.current()}}class f{constructor(e=[],t=10){this._initialize(e),this._limit=t,this._onChange()}add(e){this._history.delete(e),this._history.add(e),this._onChange()}next(){return this._currentPosition()!==this._elements.length-1?this._navigator.next():null}previous(){return 0!==this._currentPosition()?this._navigator.previous():null}current(){return this._navigator.current()}first(){return this._navigator.first()}last(){return this._navigator.last()}has(e){return this._history.has(e)}_onChange(){this._reduceToLimit();const e=this._elements;this._navigator=new h(e,0,e.length,e.length)}_reduceToLimit(){const e=this._elements;e.length>this._limit&&this._initialize(e.slice(e.length-this._limit))}_currentPosition(){const e=this._navigator.current();return e?this._elements.indexOf(e):-1}_initialize(e){this._history=new Set;for(const t of e)this._history.add(t)}get _elements(){const e=[];return this._history.forEach(t=>e.push(t)),e}}var g=n(94),p=n(34);n.d(t,"b",(function(){return b})),n.d(t,"a",(function(){return v}));const m=r.a,_={inputBackground:d.a.fromHex("#3C3C3C"),inputForeground:d.a.fromHex("#CCCCCC"),inputValidationInfoBorder:d.a.fromHex("#55AAFF"),inputValidationInfoBackground:d.a.fromHex("#063B49"),inputValidationWarningBorder:d.a.fromHex("#B89500"),inputValidationWarningBackground:d.a.fromHex("#352A05"),inputValidationErrorBorder:d.a.fromHex("#BE1100"),inputValidationErrorBackground:d.a.fromHex("#5A1D1D")};class b extends c.a{constructor(e,t,n){super(),this.state="idle",this.maxHeight=Number.POSITIVE_INFINITY,this._onDidChange=this._register(new l.a),this.onDidChange=this._onDidChange.event,this._onDidHeightChange=this._register(new l.a),this.onDidHeightChange=this._onDidHeightChange.event,this.contextViewProvider=t,this.options=n||Object.create(null),Object(u.g)(this.options,_,!1),this.message=null,this.placeholder=this.options.placeholder||"",this.ariaLabel=this.options.ariaLabel||"",this.inputBackground=this.options.inputBackground,this.inputForeground=this.options.inputForeground,this.inputBorder=this.options.inputBorder,this.inputValidationInfoBorder=this.options.inputValidationInfoBorder,this.inputValidationInfoBackground=this.options.inputValidationInfoBackground,this.inputValidationInfoForeground=this.options.inputValidationInfoForeground,this.inputValidationWarningBorder=this.options.inputValidationWarningBorder,this.inputValidationWarningBackground=this.options.inputValidationWarningBackground,this.inputValidationWarningForeground=this.options.inputValidationWarningForeground,this.inputValidationErrorBorder=this.options.inputValidationErrorBorder,this.inputValidationErrorBackground=this.options.inputValidationErrorBackground,this.inputValidationErrorForeground=this.options.inputValidationErrorForeground,this.options.validationOptions&&(this.validation=this.options.validationOptions.validation),this.element=r.p(e,m(".monaco-inputbox.idle"));let i=this.options.flexibleHeight?"textarea":"input",o=r.p(this.element,m(".wrapper"));if(this.input=r.p(o,m(i+".input.empty")),this.input.setAttribute("autocorrect","off"),this.input.setAttribute("autocapitalize","off"),this.input.setAttribute("spellcheck","false"),this.onfocus(this.input,()=>this.element.classList.add("synthetic-focus")),this.onblur(this.input,()=>this.element.classList.remove("synthetic-focus")),this.options.flexibleHeight){this.maxHeight="number"==typeof this.options.flexibleMaxHeight?this.options.flexibleMaxHeight:Number.POSITIVE_INFINITY,this.mirror=r.p(o,m("div.mirror")),this.mirror.innerText=" ",this.scrollableElement=new g.b(this.element,{vertical:1}),this.options.flexibleWidth&&(this.input.setAttribute("wrap","off"),this.mirror.style.whiteSpace="pre",this.mirror.style.wordWrap="initial"),r.p(e,this.scrollableElement.getDomNode()),this._register(this.scrollableElement),this._register(this.scrollableElement.onScroll(e=>this.input.scrollTop=e.scrollTop));const t=l.b.filter(Object(p.a)(document,"selectionchange"),()=>{const e=document.getSelection();return(null==e?void 0:e.anchorNode)===o});this._register(t(this.updateScrollDimensions,this)),this._register(this.onDidHeightChange(this.updateScrollDimensions,this))}else this.input.type=this.options.type||"text",this.input.setAttribute("wrap","off");this.ariaLabel&&this.input.setAttribute("aria-label",this.ariaLabel),this.placeholder&&this.setPlaceHolder(this.placeholder),this.oninput(this.input,()=>this.onValueChange()),this.onblur(this.input,()=>this.onBlur()),this.onfocus(this.input,()=>this.onFocus()),this.ignoreGesture(this.input),setTimeout(()=>this.updateMirror(),0),this.options.actions&&(this.actionbar=this._register(new a.a(this.element)),this.actionbar.push(this.options.actions,{icon:!0,label:!1})),this.applyStyles()}onBlur(){this._hideMessage()}onFocus(){this._showMessage()}setPlaceHolder(e){this.placeholder=e,this.input.setAttribute("placeholder",e),this.input.title=e}setAriaLabel(e){this.ariaLabel=e,e?this.input.setAttribute("aria-label",this.ariaLabel):this.input.removeAttribute("aria-label")}getAriaLabel(){return this.ariaLabel}get inputElement(){return this.input}get value(){return this.input.value}set value(e){this.input.value!==e&&(this.input.value=e,this.onValueChange())}get height(){return"number"==typeof this.cachedHeight?this.cachedHeight:r.G(this.element)}focus(){this.input.focus()}blur(){this.input.blur()}hasFocus(){return document.activeElement===this.input}select(e=null){this.input.select(),e&&this.input.setSelectionRange(e.start,e.end)}isSelectionAtEnd(){return this.input.selectionEnd===this.input.value.length&&this.input.selectionStart===this.input.selectionEnd}enable(){this.input.removeAttribute("disabled")}disable(){this.blur(),this.input.disabled=!0,this._hideMessage()}get width(){return r.H(this.input)}set width(e){if(this.options.flexibleHeight&&this.options.flexibleWidth){let t=0;if(this.mirror){t=(parseFloat(this.mirror.style.paddingLeft||"")||0)+(parseFloat(this.mirror.style.paddingRight||"")||0)}this.input.style.width=e-t+"px"}else this.input.style.width=e+"px";this.mirror&&(this.mirror.style.width=e+"px")}set paddingRight(e){this.options.flexibleHeight&&this.options.flexibleWidth?this.input.style.width=`calc(100% - ${e}px)`:this.input.style.paddingRight=e+"px",this.mirror&&(this.mirror.style.paddingRight=e+"px")}updateScrollDimensions(){if("number"!=typeof this.cachedContentHeight||"number"!=typeof this.cachedHeight||!this.scrollableElement)return;const e=this.cachedContentHeight,t=this.cachedHeight,n=this.input.scrollTop;this.scrollableElement.setScrollDimensions({scrollHeight:e,height:t}),this.scrollableElement.setScrollPosition({scrollTop:n})}showMessage(e,t){this.message=e,this.element.classList.remove("idle"),this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add(this.classForType(e.type));const n=this.stylesForType(this.message.type);this.element.style.border=n.border?`1px solid ${n.border}`:"",(this.hasFocus()||t)&&this._showMessage()}hideMessage(){this.message=null,this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add("idle"),this._hideMessage(),this.applyStyles()}validate(){let e=null;return this.validation&&((e=this.validation(this.value))?(this.inputElement.setAttribute("aria-invalid","true"),this.showMessage(e)):this.inputElement.hasAttribute("aria-invalid")&&(this.inputElement.removeAttribute("aria-invalid"),this.hideMessage())),!e}stylesForType(e){switch(e){case 1:return{border:this.inputValidationInfoBorder,background:this.inputValidationInfoBackground,foreground:this.inputValidationInfoForeground};case 2:return{border:this.inputValidationWarningBorder,background:this.inputValidationWarningBackground,foreground:this.inputValidationWarningForeground};default:return{border:this.inputValidationErrorBorder,background:this.inputValidationErrorBackground,foreground:this.inputValidationErrorForeground}}}classForType(e){switch(e){case 1:return"info";case 2:return"warning";default:return"error"}}_showMessage(){if(!this.contextViewProvider||!this.message)return;let e,t,n=()=>e.style.width=r.H(this.element)+"px";this.contextViewProvider.showContextView({getAnchor:()=>this.element,anchorAlignment:1,render:t=>{if(!this.message)return null;e=r.p(t,m(".monaco-inputbox-container")),n();const i={inline:!0,className:"monaco-inputbox-message"},s=this.message.formatContent?Object(o.b)(this.message.content,i):Object(o.c)(this.message.content,i);s.classList.add(this.classForType(this.message.type));const a=this.stylesForType(this.message.type);return s.style.backgroundColor=a.background?a.background.toString():"",s.style.color=a.foreground?a.foreground.toString():"",s.style.border=a.border?`1px solid ${a.border}`:"",r.p(e,s),null},onHide:()=>{this.state="closed"},layout:n}),t=3===this.message.type?i.a("alertErrorMessage","Error: {0}",this.message.content):2===this.message.type?i.a("alertWarningMessage","Warning: {0}",this.message.content):i.a("alertInfoMessage","Info: {0}",this.message.content),s.a(t),this.state="open"}_hideMessage(){this.contextViewProvider&&("open"===this.state&&this.contextViewProvider.hideContextView(),this.state="idle")}onValueChange(){this._onDidChange.fire(this.value),this.validate(),this.updateMirror(),this.input.classList.toggle("empty",!this.value),"open"===this.state&&this.contextViewProvider&&this.contextViewProvider.layout()}updateMirror(){if(!this.mirror)return;const e=this.value,t=10===e.charCodeAt(e.length-1)?" ":"";e+t?this.mirror.textContent=e+t:this.mirror.innerText=" ",this.layout()}style(e){this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()}applyStyles(){const e=this.inputBackground?this.inputBackground.toString():"",t=this.inputForeground?this.inputForeground.toString():"",n=this.inputBorder?this.inputBorder.toString():"";this.element.style.backgroundColor=e,this.element.style.color=t,this.input.style.backgroundColor="inherit",this.input.style.color=t,this.element.style.borderWidth=n?"1px":"",this.element.style.borderStyle=n?"solid":"",this.element.style.borderColor=n}layout(){if(!this.mirror)return;const e=this.cachedContentHeight;this.cachedContentHeight=r.G(this.mirror),e!==this.cachedContentHeight&&(this.cachedHeight=Math.min(this.cachedContentHeight,this.maxHeight),this.input.style.height=this.cachedHeight+"px",this._onDidHeightChange.fire(this.cachedContentHeight))}insertAtCursor(e){const t=this.inputElement,n=t.selectionStart,i=t.selectionEnd,r=t.value;null!==n&&null!==i&&(this.value=r.substr(0,n)+e+r.substr(i),t.setSelectionRange(n+1,n+1),this.layout())}dispose(){this._hideMessage(),this.message=null,this.actionbar&&this.actionbar.dispose(),super.dispose()}}class v extends b{constructor(e,t,n){super(e,t,n),this.history=new f(n.history,100)}addToHistory(){this.value&&this.value!==this.getCurrentValue()&&this.history.add(this.value)}showNextValue(){this.history.has(this.value)||this.addToHistory();let e=this.getNextValue();e&&(e=e===this.value?this.getNextValue():e),e&&(this.value=e,s.c(this.value))}showPreviousValue(){this.history.has(this.value)||this.addToHistory();let e=this.getPreviousValue();e&&(e=e===this.value?this.getPreviousValue():e),e&&(this.value=e,s.c(this.value))}getCurrentValue(){let e=this.history.current();return e||(e=this.history.last(),this.history.next()),e}getPreviousValue(){return this.history.previous()||this.history.first()}getNextValue(){return this.history.next()||this.history.last()}}},function(e,t,n){"use strict";function i(e,t){if(!e)throw new Error(t?`Assertion failed (${t})`:"Assertion Failed")}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return g})),n.d(t,"a",(function(){return p}));var i=n(0),r=n(15),o=n(22),s=n(24),a=n(227),l=n(62);function c(e){return e.toString()}class d{constructor(e,t,n,i,r,o,s){this.beforeVersionId=e,this.afterVersionId=t,this.beforeEOL=n,this.afterEOL=i,this.beforeCursorState=r,this.afterCursorState=o,this.changes=s}static create(e,t){const n=e.getAlternativeVersionId(),i=f(e);return new d(n,n,i,i,t,t,[])}append(e,t,n,i,r){t.length>0&&(this.changes=Object(a.b)(this.changes,t)),this.afterEOL=n,this.afterVersionId=i,this.afterCursorState=r}static _writeSelectionsSize(e){return 4+16*(e?e.length:0)}static _writeSelections(e,t,n){if(l.f(e,t?t.length:0,n),n+=4,t)for(const i of t)l.f(e,i.selectionStartLineNumber,n),n+=4,l.f(e,i.selectionStartColumn,n),n+=4,l.f(e,i.positionLineNumber,n),n+=4,l.f(e,i.positionColumn,n),n+=4;return n}static _readSelections(e,t,n){const i=l.c(e,t);t+=4;for(let r=0;r<i;r++){const i=l.c(e,t);t+=4;const r=l.c(e,t);t+=4;const s=l.c(e,t);t+=4;const a=l.c(e,t);t+=4,n.push(new o.a(i,r,s,a))}return t}serialize(){let e=10+d._writeSelectionsSize(this.beforeCursorState)+d._writeSelectionsSize(this.afterCursorState)+4;for(const t of this.changes)e+=t.writeSize();const t=new Uint8Array(e);let n=0;l.f(t,this.beforeVersionId,n),n+=4,l.f(t,this.afterVersionId,n),n+=4,l.g(t,this.beforeEOL,n),n+=1,l.g(t,this.afterEOL,n),n+=1,n=d._writeSelections(t,this.beforeCursorState,n),n=d._writeSelections(t,this.afterCursorState,n),l.f(t,this.changes.length,n),n+=4;for(const e of this.changes)n=e.write(t,n);return t.buffer}static deserialize(e){const t=new Uint8Array(e);let n=0;const i=l.c(t,n);n+=4;const r=l.c(t,n);n+=4;const o=l.d(t,n);n+=1;const s=l.d(t,n);n+=1;const c=[];n=d._readSelections(t,n,c);const u=[];n=d._readSelections(t,n,u);const h=l.c(t,n);n+=4;const f=[];for(let e=0;e<h;e++)n=a.a.read(t,n,f);return new d(i,r,o,s,c,u,f)}}class u{constructor(e,t){this.model=e,this._data=d.create(e,t)}get type(){return 0}get resource(){return s.a.isUri(this.model)?this.model:this.model.uri}get label(){return i.a("edit","Typing")}toString(){return(this._data instanceof d?this._data:d.deserialize(this._data)).changes.map(e=>e.toString()).join(", ")}matchesResource(e){return(s.a.isUri(this.model)?this.model:this.model.uri).toString()===e.toString()}setModel(e){this.model=e}canAppend(e){return this.model===e&&this._data instanceof d}append(e,t,n,i,r){this._data instanceof d&&this._data.append(e,t,n,i,r)}close(){this._data instanceof d&&(this._data=this._data.serialize())}undo(){if(s.a.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof d&&(this._data=this._data.serialize());const e=d.deserialize(this._data);this.model._applyUndo(e.changes,e.beforeEOL,e.beforeVersionId,e.beforeCursorState)}redo(){if(s.a.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof d&&(this._data=this._data.serialize());const e=d.deserialize(this._data);this.model._applyRedo(e.changes,e.afterEOL,e.afterVersionId,e.afterCursorState)}}class h{constructor(e,t){this.type=1,this.label=e,this._isOpen=!0,this._editStackElementsArr=t.slice(0),this._editStackElementsMap=new Map;for(const e of this._editStackElementsArr){const t=c(e.resource);this._editStackElementsMap.set(t,e)}this._delegate=null}get resources(){return this._editStackElementsArr.map(e=>e.resource)}prepareUndoRedo(){if(this._delegate)return this._delegate.prepareUndoRedo(this)}matchesResource(e){const t=c(e);return this._editStackElementsMap.has(t)}setModel(e){const t=c(s.a.isUri(e)?e:e.uri);this._editStackElementsMap.has(t)&&this._editStackElementsMap.get(t).setModel(e)}canAppend(e){if(!this._isOpen)return!1;const t=c(e.uri);if(this._editStackElementsMap.has(t)){return this._editStackElementsMap.get(t).canAppend(e)}return!1}append(e,t,n,i,r){const o=c(e.uri);this._editStackElementsMap.get(o).append(e,t,n,i,r)}close(){this._isOpen=!1}undo(){this._isOpen=!1;for(const e of this._editStackElementsArr)e.undo()}redo(){for(const e of this._editStackElementsArr)e.redo()}split(){return this._editStackElementsArr}}function f(e){return"\n"===e.getEOL()?0:1}function g(e){return!!e&&(e instanceof u||e instanceof h)}class p{constructor(e,t){this._model=e,this._undoRedoService=t}pushStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);g(e)&&e.close()}clear(){this._undoRedoService.removeElements(this._model.uri)}_getOrCreateEditStackElement(e){const t=this._undoRedoService.getLastElement(this._model.uri);if(g(t)&&t.canAppend(this._model))return t;const n=new u(this._model,e);return this._undoRedoService.pushElement(n),n}pushEOL(e){const t=this._getOrCreateEditStackElement(null);this._model.setEOL(e),t.append(this._model,[],f(this._model),this._model.getAlternativeVersionId(),null)}pushEditOperation(e,t,n){const i=this._getOrCreateEditStackElement(e),r=this._model.applyEdits(t,!0),o=p._computeCursorState(n,r),s=r.map((e,t)=>({index:t,textChange:e.textChange}));return s.sort((e,t)=>e.textChange.oldPosition===t.textChange.oldPosition?e.index-t.index:e.textChange.oldPosition-t.textChange.oldPosition),i.append(this._model,s.map(e=>e.textChange),f(this._model),this._model.getAlternativeVersionId(),o),o}static _computeCursorState(e,t){try{return e?e(t):null}catch(e){return Object(r.e)(e),null}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return f}));var i=n(14),r=n(26),o=n(15),s=n(65),a=n(11),l=n(38),c=n(106);class d{remove(){this.parent&&this.parent.children.delete(this.id)}static findId(e,t){let n;"string"==typeof e?n=`${t.id}/${e}`:(n=`${t.id}/${e.name}`,void 0!==t.children.get(n)&&(n=`${t.id}/${e.name}_${e.range.startLineNumber}_${e.range.startColumn}`));let i=n;for(let e=0;void 0!==t.children.get(i);e++)i=`${n}_${e}`;return i}static empty(e){return 0===e.children.size}}class u extends d{constructor(e,t,n){super(),this.id=e,this.parent=t,this.symbol=n,this.children=new Map}}class h extends d{constructor(e,t,n,i){super(),this.id=e,this.parent=t,this.label=n,this.order=i,this.children=new Map}}class f extends d{constructor(e){super(),this.uri=e,this.id="root",this.parent=void 0,this._groups=new Map,this.children=new Map,this.id="root",this.parent=void 0}static create(e,t){let n=this._keys.for(e,!0),i=f._requests.get(n);if(!i){let t=new r.b;i={promiseCnt:0,source:t,promise:f._create(e,t.token),model:void 0},f._requests.set(n,i);const o=Date.now();i.promise.then(()=>{let t=this._keys.for(e,!1),n=this._requestDurations.get(t);n||(n=new c.a,this._requestDurations.set(t,n)),n.update(Date.now()-o)})}return i.model?Promise.resolve(i.model):(i.promiseCnt+=1,t.onCancellationRequested(()=>{0==--i.promiseCnt&&(i.source.cancel(),f._requests.delete(n))}),new Promise((e,t)=>{i.promise.then(t=>{i.model=t,e(t)},e=>{f._requests.delete(n),t(e)})}))}static _create(e,t){const n=new r.b(t),s=new f(e.uri),l=a.m.ordered(e),c=l.map((t,i)=>{var r;let a=d.findId(`provider_${i}`,s),l=new h(a,s,null!==(r=t.displayName)&&void 0!==r?r:"Unknown Outline Provider",i);return Promise.resolve(t.provideDocumentSymbols(e,n.token)).then(e=>{for(const t of e||[])f._makeOutlineElement(t,l);return l},e=>(Object(o.f)(e),l)).then(e=>{d.empty(e)?e.remove():s._groups.set(a,e)})}),u=a.m.onDidChange(()=>{const t=a.m.ordered(e);Object(i.g)(t,l)||n.cancel()});return Promise.all(c).then(()=>n.token.isCancellationRequested&&!t.isCancellationRequested?f._create(e,t):s._compact()).finally(()=>{u.dispose()})}static _makeOutlineElement(e,t){let n=d.findId(e,t),i=new u(n,t,e);if(e.children)for(const t of e.children)f._makeOutlineElement(t,i);t.children.set(i.id,i)}_compact(){let e=0;for(const[t,n]of this._groups)0===n.children.size?this._groups.delete(t):e+=1;if(1!==e)this.children=this._groups;else{let e=l.a.first(this._groups.values());for(let[,t]of e.children)t.parent=this,this.children.set(t.id,t)}return this}}f._requestDurations=new s.a(50,.7),f._requests=new s.a(9,.75),f._keys=new class{constructor(){this._counter=1,this._data=new WeakMap}for(e,t){return`${e.id}/${t?e.getVersionId():""}/${this._hash(a.m.all(e))}`}_hash(e){let t="";for(const n of e){let e=this._data.get(n);void 0===e&&(e=this._counter++,this._data.set(n,e)),t+=e}return t}}},function(e,t,n){"use strict";var i=n(0),r=n(15),o=n(2),s=n(33),a=n(17),l=n(9),c=n(43),d=n(88),u=n(72),h=(n(607),n(1)),f=n(13),g=n(6),p=n(35),m=n(42),_=n(187),b=n(3),v=n(29),y=n(110),w=n(204),C=n(232),S=n(171),k=n(18),x=n(82),L=n(176),M=n(41),D=n(61),E=n(165),T=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},O=function(e,t){return function(n,i){t(n,i,e)}};let N=class{constructor(e){this._resolverService=e}hasChildren(e){return e instanceof u.c||e instanceof u.a}getChildren(e){if(e instanceof u.c)return e.groups;if(e instanceof u.a)return e.resolve(this._resolverService).then(e=>e.children);throw new Error("bad tree")}};N=T([O(0,y.a)],N);class I{getHeight(){return 23}getTemplateId(e){return e instanceof u.a?j.id:B.id}}let A=class{constructor(e){this._keybindingService=e}getKeyboardNavigationLabel(e){var t;if(e instanceof u.b){const n=null===(t=e.parent.getPreview(e))||void 0===t?void 0:t.preview(e.range);if(n)return n.value}return Object(m.b)(e.uri)}};A=T([O(0,M.a)],A);class R{getId(e){return e instanceof u.b?e.id:e.uri}}let P=class extends o.a{constructor(e,t,n){super(),this._uriLabel=t;const i=document.createElement("div");i.classList.add("reference-file"),this.file=this._register(new w.a(i,{supportHighlights:!0})),this.badge=new C.a(h.p(i,h.a(".count"))),this._register(Object(x.a)(this.badge,n)),e.appendChild(i)}set(e,t){let n=Object(m.d)(e.uri);this.file.setLabel(Object(L.a)(e.uri),this._uriLabel.getUriLabel(n,{relative:!0}),{title:this._uriLabel.getUriLabel(e.uri),matches:t});const r=e.children.length;this.badge.setCount(r),r>1?this.badge.setTitleFormat(Object(i.a)("referencesCount","{0} references",r)):this.badge.setTitleFormat(Object(i.a)("referenceCount","{0} reference",r))}};P=T([O(1,S.a),O(2,k.c)],P);let j=class e{constructor(t){this._instantiationService=t,this.templateId=e.id}renderTemplate(e){return this._instantiationService.createInstance(P,e)}renderElement(e,t,n){n.set(e.element,Object(D.c)(e.filterData))}disposeTemplate(e){e.dispose()}};j.id="FileReferencesRenderer",j=T([O(0,a.a)],j);class F{constructor(e){this.label=new E.a(e,!1)}set(e,t){var n;const i=null===(n=e.parent.getPreview(e))||void 0===n?void 0:n.preview(e.range);if(i&&i.value){const{value:e,highlight:n}=i;t&&!D.a.isDefault(t)?(this.label.element.classList.toggle("referenceMatch",!1),this.label.set(e,Object(D.c)(t))):(this.label.element.classList.toggle("referenceMatch",!0),this.label.set(e,[n]))}else this.label.set(`${Object(m.b)(e.uri)}:${e.range.startLineNumber+1}:${e.range.startColumn+1}`)}}class B{constructor(){this.templateId=B.id}renderTemplate(e){return new F(e)}renderElement(e,t,n){n.set(e.element,e.filterData)}disposeTemplate(){}}B.id="OneReferenceRenderer";class W{getWidgetAriaLabel(){return Object(i.a)("treeAriaLabel","References")}getAriaLabel(e){return e.ariaMessage}}var H=n(129),Y=n(5),V=n(53),z=(n(611),n(20)),U=n(106),$=n(14),q=n(161),K=n(34);const G={separatorBorder:f.a.transparent};class Z{constructor(e,t,n,i){this.container=e,this.view=t,this.disposable=i,this._cachedVisibleSize=void 0,"number"==typeof n?(this._size=n,this._cachedVisibleSize=void 0,h.e(e,"visible")):(this._size=0,this._cachedVisibleSize=n.cachedVisibleSize)}set size(e){this._size=e}get size(){return this._size}get visible(){return void 0===this._cachedVisibleSize}setVisible(e,t){e!==this.visible&&(e?(this.size=Object(U.b)(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize="number"==typeof t?t:this.size,this.size=0),h.ab(this.container,"visible",e),this.view.setVisible&&this.view.setVisible(e))}get minimumSize(){return this.visible?this.view.minimumSize:0}get viewMinimumSize(){return this.view.minimumSize}get maximumSize(){return this.visible?this.view.maximumSize:0}get viewMaximumSize(){return this.view.maximumSize}get priority(){return this.view.priority}get snap(){return!!this.view.snap}set enabled(e){this.container.style.pointerEvents=e?"":"none"}layout(e,t){this.layoutContainer(e),this.view.layout(this.size,e,t)}dispose(){return this.disposable.dispose(),this.view}}class J extends Z{layoutContainer(e){this.container.style.top=`${e}px`,this.container.style.height=`${this.size}px`}}class X extends Z{layoutContainer(e){this.container.style.left=`${e}px`,this.container.style.width=`${this.size}px`}}var Q,ee;!function(e){e[e.Idle=0]="Idle",e[e.Busy=1]="Busy"}(Q||(Q={})),function(e){e.Distribute={type:"distribute"},e.Split=function(e){return{type:"split",index:e}},e.Invisible=function(e){return{type:"invisible",cachedVisibleSize:e}}}(ee||(ee={}));class te extends o.a{constructor(e,t={}){super(),this.size=0,this.contentSize=0,this.proportions=void 0,this.viewItems=[],this.sashItems=[],this.state=Q.Idle,this._onDidSashChange=this._register(new g.a),this.onDidSashChange=this._onDidSashChange.event,this._onDidSashReset=this._register(new g.a),this._startSnappingEnabled=!0,this._endSnappingEnabled=!0,this.orientation=z.k(t.orientation)?0:t.orientation,this.inverseAltBehavior=!!t.inverseAltBehavior,this.proportionalLayout=!!z.k(t.proportionalLayout)||!!t.proportionalLayout,this.el=document.createElement("div"),h.e(this.el,"monaco-split-view2"),h.e(this.el,0===this.orientation?"vertical":"horizontal"),e.appendChild(this.el),this.sashContainer=h.p(this.el,h.a(".sash-container")),this.viewContainer=h.p(this.el,h.a(".split-view-container")),this.style(t.styles||G),t.descriptor&&(this.size=t.descriptor.size,t.descriptor.views.forEach((e,t)=>{const n=z.k(e.visible)||e.visible?e.size:{type:"invisible",cachedVisibleSize:e.size},i=e.view;this.doAddView(i,n,t,!0)}),this.contentSize=this.viewItems.reduce((e,t)=>e+t.size,0),this.saveProportions())}get orthogonalStartSash(){return this._orthogonalStartSash}set orthogonalStartSash(e){for(const t of this.sashItems)t.sash.orthogonalStartSash=e;this._orthogonalStartSash=e}get orthogonalEndSash(){return this._orthogonalEndSash}set orthogonalEndSash(e){for(const t of this.sashItems)t.sash.orthogonalEndSash=e;this._orthogonalEndSash=e}get startSnappingEnabled(){return this._startSnappingEnabled}set startSnappingEnabled(e){this._startSnappingEnabled!==e&&(this._startSnappingEnabled=e,this.updateSashEnablement())}get endSnappingEnabled(){return this._endSnappingEnabled}set endSnappingEnabled(e){this._endSnappingEnabled!==e&&(this._endSnappingEnabled=e,this.updateSashEnablement())}style(e){e.separatorBorder.isTransparent()?(h.Q(this.el,"separator-border"),this.el.style.removeProperty("--separator-border")):(h.e(this.el,"separator-border"),this.el.style.setProperty("--separator-border",e.separatorBorder.toString()))}addView(e,t,n=this.viewItems.length,i){this.doAddView(e,t,n,i)}layout(e,t){const n=Math.max(this.size,this.contentSize);if(this.size=e,this.layoutContext=t,this.proportions)for(let t=0;t<this.viewItems.length;t++){const n=this.viewItems[t];n.size=Object(U.b)(Math.round(this.proportions[t]*e),n.minimumSize,n.maximumSize)}else{const t=Object($.s)(this.viewItems.length),i=t.filter(e=>1===this.viewItems[e].priority),r=t.filter(e=>2===this.viewItems[e].priority);this.resize(this.viewItems.length-1,e-n,void 0,i,r)}this.distributeEmptySpace(),this.layoutViews()}saveProportions(){this.proportionalLayout&&this.contentSize>0&&(this.proportions=this.viewItems.map(e=>e.size/this.contentSize))}onSashStart({sash:e,start:t,alt:n}){for(const e of this.viewItems)e.enabled=!1;const i=Object($.j)(this.sashItems,t=>t.sash===e),r=Object(o.e)(Object(K.a)(document.body,"keydown")(e=>s(this.sashDragState.current,e.altKey)),Object(K.a)(document.body,"keyup")(()=>s(this.sashDragState.current,!1))),s=(e,t)=>{const n=this.viewItems.map(e=>e.size);let o,s,a=Number.NEGATIVE_INFINITY,l=Number.POSITIVE_INFINITY;if(this.inverseAltBehavior&&(t=!t),t){if(i===this.sashItems.length-1){const e=this.viewItems[i];a=(e.minimumSize-e.size)/2,l=(e.maximumSize-e.size)/2}else{const e=this.viewItems[i+1];a=(e.size-e.maximumSize)/2,l=(e.size-e.minimumSize)/2}}if(!t){const e=Object($.s)(i,-1),t=Object($.s)(i+1,this.viewItems.length),r=e.reduce((e,t)=>e+(this.viewItems[t].minimumSize-n[t]),0),a=e.reduce((e,t)=>e+(this.viewItems[t].viewMaximumSize-n[t]),0),l=0===t.length?Number.POSITIVE_INFINITY:t.reduce((e,t)=>e+(n[t]-this.viewItems[t].minimumSize),0),c=0===t.length?Number.NEGATIVE_INFINITY:t.reduce((e,t)=>e+(n[t]-this.viewItems[t].viewMaximumSize),0),d=Math.max(r,c),u=Math.min(l,a),h=this.findFirstSnapIndex(e),f=this.findFirstSnapIndex(t);if("number"==typeof h){const e=this.viewItems[h],t=Math.floor(e.viewMinimumSize/2);o={index:h,limitDelta:e.visible?d-t:d+t,size:e.size}}if("number"==typeof f){const e=this.viewItems[f],t=Math.floor(e.viewMinimumSize/2);s={index:f,limitDelta:e.visible?u+t:u-t,size:e.size}}}this.sashDragState={start:e,current:e,index:i,sizes:n,minDelta:a,maxDelta:l,alt:t,snapBefore:o,snapAfter:s,disposable:r}};s(t,n)}onSashChange({current:e}){const{index:t,start:n,sizes:i,alt:r,minDelta:o,maxDelta:s,snapBefore:a,snapAfter:l}=this.sashDragState;this.sashDragState.current=e;const c=e-n,d=this.resize(t,c,i,void 0,void 0,o,s,a,l);if(r){const e=t===this.sashItems.length-1,n=this.viewItems.map(e=>e.size),i=e?t:t+1,r=this.viewItems[i],o=r.size-r.maximumSize,s=r.size-r.minimumSize,a=e?t-1:t+1;this.resize(a,-d,n,void 0,void 0,o,s)}this.distributeEmptySpace(),this.layoutViews()}onSashEnd(e){this._onDidSashChange.fire(e),this.sashDragState.disposable.dispose(),this.saveProportions();for(const e of this.viewItems)e.enabled=!0}onViewChange(e,t){const n=this.viewItems.indexOf(e);n<0||n>=this.viewItems.length||(t="number"==typeof t?t:e.size,t=Object(U.b)(t,e.minimumSize,e.maximumSize),this.inverseAltBehavior&&n>0?(this.resize(n-1,Math.floor((e.size-t)/2)),this.distributeEmptySpace(),this.layoutViews()):(e.size=t,this.relayout([n],void 0)))}resizeView(e,t){if(this.state!==Q.Idle)throw new Error("Cant modify splitview");if(this.state=Q.Busy,e<0||e>=this.viewItems.length)return;const n=Object($.s)(this.viewItems.length).filter(t=>t!==e),i=[...n.filter(e=>1===this.viewItems[e].priority),e],r=n.filter(e=>2===this.viewItems[e].priority),o=this.viewItems[e];t=Math.round(t),t=Object(U.b)(t,o.minimumSize,Math.min(o.maximumSize,this.size)),o.size=t,this.relayout(i,r),this.state=Q.Idle}distributeViewSizes(){const e=[];let t=0;for(const n of this.viewItems)n.maximumSize-n.minimumSize>0&&(e.push(n),t+=n.size);const n=Math.floor(t/e.length);for(const t of e)t.size=Object(U.b)(n,t.minimumSize,t.maximumSize);const i=Object($.s)(this.viewItems.length),r=i.filter(e=>1===this.viewItems[e].priority),o=i.filter(e=>2===this.viewItems[e].priority);this.relayout(r,o)}getViewSize(e){return e<0||e>=this.viewItems.length?-1:this.viewItems[e].size}doAddView(e,t,n=this.viewItems.length,i){if(this.state!==Q.Idle)throw new Error("Cant modify splitview");this.state=Q.Busy;const r=h.a(".split-view-view");n===this.viewItems.length?this.viewContainer.appendChild(r):this.viewContainer.insertBefore(r,this.viewContainer.children.item(n));const s=e.onDidChange(e=>this.onViewChange(d,e)),a=Object(o.h)(()=>this.viewContainer.removeChild(r)),l=Object(o.e)(s,a);let c;c="number"==typeof t?t:"split"===t.type?this.getViewSize(t.index)/2:"invisible"===t.type?{cachedVisibleSize:t.cachedVisibleSize}:e.minimumSize;const d=0===this.orientation?new J(r,e,c,l):new X(r,e,c,l);if(this.viewItems.splice(n,0,d),this.viewItems.length>1){const e=0===this.orientation?new q.a(this.sashContainer,{getHorizontalSashTop:e=>this.getSashPosition(e)},{orientation:1,orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash}):new q.a(this.sashContainer,{getVerticalSashLeft:e=>this.getSashPosition(e)},{orientation:0,orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash}),t=0===this.orientation?t=>({sash:e,start:t.startY,current:t.currentY,alt:t.altKey}):t=>({sash:e,start:t.startX,current:t.currentX,alt:t.altKey}),i=g.b.map(e.onDidStart,t)(this.onSashStart,this),r=g.b.map(e.onDidChange,t)(this.onSashChange,this),s=g.b.map(e.onDidEnd,()=>Object($.j)(this.sashItems,t=>t.sash===e))(this.onSashEnd,this),a=e.onDidReset(()=>{const t=Object($.j)(this.sashItems,t=>t.sash===e),n=Object($.s)(t,-1),i=Object($.s)(t+1,this.viewItems.length),r=this.findFirstSnapIndex(n),o=this.findFirstSnapIndex(i);("number"!=typeof r||this.viewItems[r].visible)&&("number"!=typeof o||this.viewItems[o].visible)&&this._onDidSashReset.fire(t)}),l=Object(o.e)(i,r,s,a,e),c={sash:e,disposable:l};this.sashItems.splice(n-1,0,c)}let u;r.appendChild(e.element),"number"!=typeof t&&"split"===t.type&&(u=[t.index]),i||this.relayout([n],u),this.state=Q.Idle,i||"number"==typeof t||"distribute"!==t.type||this.distributeViewSizes()}relayout(e,t){const n=this.viewItems.reduce((e,t)=>e+t.size,0);this.resize(this.viewItems.length-1,this.size-n,void 0,e,t),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()}resize(e,t,n=this.viewItems.map(e=>e.size),i,r,o=Number.NEGATIVE_INFINITY,s=Number.POSITIVE_INFINITY,a,l){if(e<0||e>=this.viewItems.length)return 0;const c=Object($.s)(e,-1),d=Object($.s)(e+1,this.viewItems.length);if(r)for(const e of r)Object($.r)(c,e),Object($.r)(d,e);if(i)for(const e of i)Object($.q)(c,e),Object($.q)(d,e);const u=c.map(e=>this.viewItems[e]),h=c.map(e=>n[e]),f=d.map(e=>this.viewItems[e]),g=d.map(e=>n[e]),p=c.reduce((e,t)=>e+(this.viewItems[t].minimumSize-n[t]),0),m=c.reduce((e,t)=>e+(this.viewItems[t].maximumSize-n[t]),0),_=0===d.length?Number.POSITIVE_INFINITY:d.reduce((e,t)=>e+(n[t]-this.viewItems[t].minimumSize),0),b=0===d.length?Number.NEGATIVE_INFINITY:d.reduce((e,t)=>e+(n[t]-this.viewItems[t].maximumSize),0),v=Math.max(p,b,o),y=Math.min(_,m,s);let w=!1;if(a){const e=this.viewItems[a.index],n=t>=a.limitDelta;w=n!==e.visible,e.setVisible(n,a.size)}if(!w&&l){const e=this.viewItems[l.index],n=t<l.limitDelta;w=n!==e.visible,e.setVisible(n,l.size)}if(w)return this.resize(e,t,n,i,r,o,s);for(let e=0,n=t=Object(U.b)(t,v,y);e<u.length;e++){const t=u[e],i=Object(U.b)(h[e]+n,t.minimumSize,t.maximumSize);n-=i-h[e],t.size=i}for(let e=0,n=t;e<f.length;e++){const t=f[e],i=Object(U.b)(g[e]-n,t.minimumSize,t.maximumSize);n+=i-g[e],t.size=i}return t}distributeEmptySpace(e){const t=this.viewItems.reduce((e,t)=>e+t.size,0);let n=this.size-t;const i=Object($.s)(this.viewItems.length-1,-1),r=i.filter(e=>1===this.viewItems[e].priority),o=i.filter(e=>2===this.viewItems[e].priority);for(const e of o)Object($.r)(i,e);for(const e of r)Object($.q)(i,e);"number"==typeof e&&Object($.q)(i,e);for(let e=0;0!==n&&e<i.length;e++){const t=this.viewItems[i[e]],r=Object(U.b)(t.size+n,t.minimumSize,t.maximumSize);n-=r-t.size,t.size=r}}layoutViews(){this.contentSize=this.viewItems.reduce((e,t)=>e+t.size,0);let e=0;for(const t of this.viewItems)t.layout(e,this.layoutContext),e+=t.size;this.sashItems.forEach(e=>e.sash.layout()),this.updateSashEnablement()}updateSashEnablement(){let e=!1;const t=this.viewItems.map(t=>e=t.size-t.minimumSize>0||e);e=!1;const n=this.viewItems.map(t=>e=t.maximumSize-t.size>0||e),i=[...this.viewItems].reverse();e=!1;const r=i.map(t=>e=t.size-t.minimumSize>0||e).reverse();e=!1;const o=i.map(t=>e=t.maximumSize-t.size>0||e).reverse();let s=0;for(let e=0;e<this.sashItems.length;e++){const{sash:i}=this.sashItems[e];s+=this.viewItems[e].size;const a=!(t[e]&&o[e+1]),l=!(n[e]&&r[e+1]);if(a&&l){const n=Object($.s)(e,-1),o=Object($.s)(e+1,this.viewItems.length),a=this.findFirstSnapIndex(n),l=this.findFirstSnapIndex(o),c="number"==typeof a&&!this.viewItems[a].visible,d="number"==typeof l&&!this.viewItems[l].visible;c&&r[e]&&(s>0||this.startSnappingEnabled)?i.state=1:d&&t[e]&&(s<this.contentSize||this.endSnappingEnabled)?i.state=2:i.state=0}else i.state=a&&!l?1:!a&&l?2:3}}getSashPosition(e){let t=0;for(let n=0;n<this.sashItems.length;n++)if(t+=this.viewItems[n].size,this.sashItems[n].sash===e)return t;return 0}findFirstSnapIndex(e){for(const t of e){const e=this.viewItems[t];if(e.visible&&e.snap)return t}for(const t of e){const e=this.viewItems[t];if(e.visible&&e.maximumSize-e.minimumSize>0)return;if(!e.visible&&e.snap)return t}}dispose(){super.dispose(),this.viewItems.forEach(e=>e.dispose()),this.viewItems=[],this.sashItems.forEach(e=>e.disposable.dispose()),this.sashItems=[]}}var ne=n(155),ie=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},re=function(e,t){return function(n,i){t(n,i,e)}},oe=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};class se{constructor(e,t){this._editor=e,this._model=t,this._decorations=new Map,this._decorationIgnoreSet=new Set,this._callOnDispose=new o.b,this._callOnModelChange=new o.b,this._callOnDispose.add(this._editor.onDidChangeModel(()=>this._onModelChanged())),this._onModelChanged()}dispose(){this._callOnModelChange.dispose(),this._callOnDispose.dispose(),this.removeDecorations()}_onModelChanged(){this._callOnModelChange.clear();const e=this._editor.getModel();if(e)for(let t of this._model.references)if(t.uri.toString()===e.uri.toString())return void this._addDecorations(t.parent)}_addDecorations(e){if(!this._editor.hasModel())return;this._callOnModelChange.add(this._editor.getModel().onDidChangeDecorations(()=>this._onDecorationChanged()));const t=[],n=[];for(let i=0,r=e.children.length;i<r;i++){let r=e.children[i];this._decorationIgnoreSet.has(r.id)||r.uri.toString()===this._editor.getModel().uri.toString()&&(t.push({range:r.range,options:se.DecorationOptions}),n.push(i))}const i=this._editor.deltaDecorations([],t);for(let t=0;t<i.length;t++)this._decorations.set(i[t],e.children[n[t]])}_onDecorationChanged(){const e=[],t=this._editor.getModel();if(t){for(let[n,i]of this._decorations){const r=t.getDecorationRange(n);if(!r)continue;let o=!1;if(!b.a.equalsRange(r,i.range)){if(b.a.spansMultipleLines(r))o=!0;else{i.range.endColumn-i.range.startColumn!==r.endColumn-r.startColumn&&(o=!0)}o?(this._decorationIgnoreSet.add(i.id),e.push(n)):i.range=r}}for(let t=0,n=e.length;t<n;t++)this._decorations.delete(e[t]);this._editor.deltaDecorations(e,[])}}removeDecorations(){this._editor.deltaDecorations([...this._decorations.keys()],[]),this._decorations.clear()}}se.DecorationOptions=v.a.register({stickiness:1,className:"reference-decoration"});class ae extends H.c{}let le=class extends V.c{constructor(e,t,n,i,r,s,a,l,c,d){super(e,{showFrame:!1,showArrow:!0,isResizeable:!0,isAccessible:!0},s),this._defaultTreeKeyboardSupport=t,this.layoutData=n,this._textModelResolverService=r,this._instantiationService=s,this._peekViewService=a,this._uriLabel=l,this._undoRedoService=c,this._keybindingService=d,this._disposeOnNewModel=new o.b,this._callOnDispose=new o.b,this._onDidSelectReference=new g.a,this.onDidSelectReference=this._onDidSelectReference.event,this._dim={height:0,width:0},this._applyTheme(i.getColorTheme()),this._callOnDispose.add(i.onDidColorThemeChange(this._applyTheme.bind(this))),this._peekViewService.addExclusiveWidget(e,this),this.create()}dispose(){this.setModel(void 0),this._callOnDispose.dispose(),this._disposeOnNewModel.dispose(),Object(o.f)(this._preview),Object(o.f)(this._previewNotAvailableMessage),Object(o.f)(this._tree),Object(o.f)(this._previewModelReference),this._splitView.dispose(),super.dispose()}_applyTheme(e){const t=e.getColor(V.e)||f.a.transparent;this.style({arrowColor:t,frameColor:t,headerBackgroundColor:e.getColor(V.p)||f.a.transparent,primaryHeadingColor:e.getColor(V.q),secondaryHeadingColor:e.getColor(V.r)})}show(e){this.editor.revealRangeInCenterIfOutsideViewport(e,0),super.show(e,this.layoutData.heightInLines||18)}focusOnReferenceTree(){this._tree.domFocus()}focusOnPreviewEditor(){this._preview.focus()}isPreviewEditorFocused(){return this._preview.hasTextFocus()}_onTitleClick(e){this._preview&&this._preview.getModel()&&this._onDidSelectReference.fire({element:this._getFocusedReference(),kind:e.ctrlKey||e.metaKey||e.altKey?"side":"open",source:"title"})}_fillBody(e){this.setCssClass("reference-zone-widget"),this._messageContainer=h.p(e,h.a("div.messages")),h.K(this._messageContainer),this._splitView=new te(e,{orientation:1}),this._previewContainer=h.p(e,h.a("div.preview.inline"));this._preview=this._instantiationService.createInstance(_.a,this._previewContainer,{scrollBeyondLastLine:!1,scrollbar:{verticalScrollbarSize:14,horizontal:"auto",useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,alwaysConsumeMouseWheel:!1},overviewRulerLanes:2,fixedOverflowWidgets:!0,minimap:{enabled:!1}},this.editor),h.K(this._previewContainer),this._previewNotAvailableMessage=new v.b(i.a("missingPreviewMessage","no preview available"),v.b.DEFAULT_CREATION_OPTIONS,null,null,this._undoRedoService),this._treeContainer=h.p(e,h.a("div.ref-tree.inline"));const t={keyboardSupport:this._defaultTreeKeyboardSupport,accessibilityProvider:new W,keyboardNavigationLabelProvider:this._instantiationService.createInstance(A),identityProvider:new R,openOnSingleClick:!0,openOnFocus:!0,overrideStyles:{listBackground:V.j}};this._defaultTreeKeyboardSupport&&this._callOnDispose.add(h.n(this._treeContainer,"keydown",e=>{e.equals(9)&&(this._keybindingService.dispatchEvent(e,e.target),e.stopPropagation())},!0)),this._tree=this._instantiationService.createInstance(ae,"ReferencesWidget",this._treeContainer,new I,[this._instantiationService.createInstance(j),this._instantiationService.createInstance(B)],this._instantiationService.createInstance(N),t),this._splitView.addView({onDidChange:g.b.None,element:this._previewContainer,minimumSize:200,maximumSize:Number.MAX_VALUE,layout:e=>{this._preview.layout({height:this._dim.height,width:e})}},ee.Distribute),this._splitView.addView({onDidChange:g.b.None,element:this._treeContainer,minimumSize:100,maximumSize:Number.MAX_VALUE,layout:e=>{this._treeContainer.style.height=`${this._dim.height}px`,this._treeContainer.style.width=`${e}px`,this._tree.layout(this._dim.height,e)}},ee.Distribute),this._disposables.add(this._splitView.onDidSashChange(()=>{this._dim.width&&(this.layoutData.ratio=this._splitView.getViewSize(0)/this._dim.width)},void 0));let n=(e,t)=>{e instanceof u.b&&("show"===t&&this._revealReference(e,!1),this._onDidSelectReference.fire({element:e,kind:t,source:"tree"}))};this._tree.onDidOpen(e=>{e.sideBySide?n(e.element,"side"):e.editorOptions.pinned?n(e.element,"goto"):n(e.element,"show")}),h.K(this._treeContainer)}_onWidth(e){this._dim&&this._doLayoutBody(this._dim.height,e)}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._dim={height:e,width:t},this.layoutData.heightInLines=this._viewZone?this._viewZone.heightInLines:this.layoutData.heightInLines,this._splitView.layout(t),this._splitView.resizeView(0,t*this.layoutData.ratio)}setSelection(e){return this._revealReference(e,!0).then(()=>{this._model&&(this._tree.setSelection([e]),this._tree.setFocus([e]))})}setModel(e){return this._disposeOnNewModel.clear(),this._model=e,this._model?this._onNewModel():Promise.resolve()}_onNewModel(){return this._model?this._model.isEmpty?(this.setTitle(""),this._messageContainer.innerText=i.a("noResults","No results"),h.Z(this._messageContainer),Promise.resolve(void 0)):(h.K(this._messageContainer),this._decorationsManager=new se(this._preview,this._model),this._disposeOnNewModel.add(this._decorationsManager),this._disposeOnNewModel.add(this._model.onDidChangeReferenceRange(e=>this._tree.rerender(e))),this._disposeOnNewModel.add(this._preview.onMouseDown(e=>{const{event:t,target:n}=e;if(2!==t.detail)return;const i=this._getFocusedReference();i&&this._onDidSelectReference.fire({element:{uri:i.uri,range:n.range},kind:t.ctrlKey||t.metaKey||t.altKey?"side":"open",source:"editor"})})),this.container.classList.add("results-loaded"),h.Z(this._treeContainer),h.Z(this._previewContainer),this._splitView.layout(this._dim.width),this.focusOnReferenceTree(),this._tree.setInput(1===this._model.groups.length?this._model.groups[0]:this._model)):Promise.resolve(void 0)}_getFocusedReference(){const[e]=this._tree.getFocus();return e instanceof u.b?e:e instanceof u.a&&e.children.length>0?e.children[0]:void 0}revealReference(e){return oe(this,void 0,void 0,(function*(){yield this._revealReference(e,!1),this._onDidSelectReference.fire({element:e,kind:"goto",source:"tree"})}))}_revealReference(e,t){return oe(this,void 0,void 0,(function*(){if(this._revealedReference===e)return;this._revealedReference=e,e.uri.scheme!==p.b.inMemory?this.setTitle(Object(m.c)(e.uri),this._uriLabel.getUriLabel(Object(m.d)(e.uri))):this.setTitle(i.a("peekView.alternateTitle","References"));const n=this._textModelResolverService.createModelReference(e.uri);this._tree.getInput()===e.parent?this._tree.reveal(e):(t&&this._tree.reveal(e.parent),yield this._tree.expand(e.parent),this._tree.reveal(e));const r=yield n;if(!this._model)return void r.dispose();Object(o.f)(this._previewModelReference);const s=r.object;if(s){const t=this._preview.getModel()===s.textEditorModel?0:1,n=b.a.lift(e.range).collapseToStart();this._previewModelReference=r,this._preview.setModel(s.textEditorModel),this._preview.setSelection(n),this._preview.revealRangeInCenter(n,t)}else this._preview.setModel(this._previewNotAvailableMessage),r.dispose()}))}};le=ie([re(3,k.c),re(4,y.a),re(5,a.a),re(6,V.a),re(7,S.a),re(8,ne.a),re(9,M.a)],le),Object(k.g)((e,t)=>{const n=e.getColor(V.m);n&&t.addRule(`.monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight { background-color: ${n}; }`);const i=e.getColor(V.h);i&&t.addRule(`.monaco-editor .reference-zone-widget .preview .reference-decoration { background-color: ${i}; }`);const r=e.getColor(V.i);r&&t.addRule(`.monaco-editor .reference-zone-widget .preview .reference-decoration { border: 2px solid ${r}; box-sizing: border-box; }`);const o=e.getColor(Y.b);o&&t.addRule(`.monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight { border: 1px dotted ${o}; box-sizing: border-box; }`);const s=e.getColor(V.j);s&&t.addRule(`.monaco-editor .reference-zone-widget .ref-tree { background-color: ${s}; }`);const a=e.getColor(V.l);a&&t.addRule(`.monaco-editor .reference-zone-widget .ref-tree { color: ${a}; }`);const l=e.getColor(V.k);l&&t.addRule(`.monaco-editor .reference-zone-widget .ref-tree .reference-file { color: ${l}; }`);const c=e.getColor(V.n);c&&t.addRule(`.monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows > .monaco-list-row.selected:not(.highlighted) { background-color: ${c}; }`);const d=e.getColor(V.o);d&&t.addRule(`.monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows > .monaco-list-row.selected:not(.highlighted) { color: ${d} !important; }`);const u=e.getColor(V.f);u&&t.addRule(".monaco-editor .reference-zone-widget .preview .monaco-editor .monaco-editor-background,.monaco-editor .reference-zone-widget .preview .monaco-editor .inputarea.ime-input {"+`\tbackground-color: ${u};`+"}");const h=e.getColor(V.g);h&&t.addRule(".monaco-editor .reference-zone-widget .preview .monaco-editor .margin {"+`\tbackground-color: ${h};`+"}")});var ce=n(10),de=n(40),ue=n(19),he=n(80),fe=n(39),ge=n(28);n.d(t,"a",(function(){return ve}));var pe=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},me=function(e,t){return function(n,i){t(n,i,e)}},_e=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};const be=new l.c("referenceSearchVisible",!1);let ve=class e{constructor(e,t,n,i,r,s,a,l){this._defaultTreeKeyboardSupport=e,this._editor=t,this._editorService=i,this._notificationService=r,this._instantiationService=s,this._storageService=a,this._configurationService=l,this._disposables=new o.b,this._requestIdPool=0,this._ignoreModelChangeEvent=!1,this._referenceSearchVisible=be.bindTo(n)}static get(t){return t.getContribution(e.ID)}dispose(){this._referenceSearchVisible.reset(),this._disposables.dispose(),Object(o.f)(this._widget),Object(o.f)(this._model),this._widget=void 0,this._model=void 0}toggleWidget(e,t,n){let r;if(this._widget&&(r=this._widget.position),this.closeWidget(),r&&e.containsPosition(r))return;this._peekMode=n,this._referenceSearchVisible.set(!0),this._disposables.add(this._editor.onDidChangeModelLanguage(()=>{this.closeWidget()})),this._disposables.add(this._editor.onDidChangeModel(()=>{this._ignoreModelChangeEvent||this.closeWidget()}));const o=class{constructor(){this.ratio=.7,this.heightInLines=18}static fromJSON(e){let t,n;try{const i=JSON.parse(e);t=i.ratio,n=i.heightInLines}catch(e){}return{ratio:t||.7,heightInLines:n||18}}}.fromJSON(this._storageService.get("peekViewLayout",0,"{}"));this._widget=this._instantiationService.createInstance(le,this._editor,this._defaultTreeKeyboardSupport,o),this._widget.setTitle(i.a("labelLoading","Loading...")),this._widget.show(e),this._disposables.add(this._widget.onDidClose(()=>{t.cancel(),this._widget&&(this._storageService.store("peekViewLayout",JSON.stringify(this._widget.layoutData),0),this._widget=void 0),this.closeWidget()})),this._disposables.add(this._widget.onDidSelectReference(e=>{let{element:t,kind:i}=e;if(t)switch(i){case"open":"editor"===e.source&&this._configurationService.getValue("editor.stablePeek")||this.openReference(t,!1);break;case"side":this.openReference(t,!0);break;case"goto":n?this._gotoReference(t):this.openReference(t,!1)}}));const s=++this._requestIdPool;t.then(t=>{if(s===this._requestIdPool&&this._widget)return this._model&&this._model.dispose(),this._model=t,this._widget.setModel(this._model).then(()=>{if(this._widget&&this._model&&this._editor.hasModel()){this._model.isEmpty?this._widget.setMetaTitle(""):this._widget.setMetaTitle(i.a("metaTitle.N","{0} ({1})",this._model.title,this._model.references.length));let t=this._editor.getModel().uri,n=new ce.a(e.startLineNumber,e.startColumn),r=this._model.nearestReference(t,n);if(r)return this._widget.setSelection(r).then(()=>{this._widget&&"editor"===this._editor.getOption(68)&&this._widget.focusOnPreviewEditor()})}})},e=>{this._notificationService.error(e)})}changeFocusBetweenPreviewAndReferences(){this._widget&&(this._widget.isPreviewEditorFocused()?this._widget.focusOnReferenceTree():this._widget.focusOnPreviewEditor())}goToNextOrPreviousReference(e){return _e(this,void 0,void 0,(function*(){if(!this._editor.hasModel()||!this._model||!this._widget)return;const t=this._widget.position;if(!t)return;const n=this._model.nearestReference(this._editor.getModel().uri,t);if(!n)return;const i=this._model.nextOrPreviousReference(n,e),r=this._editor.hasTextFocus(),o=this._widget.isPreviewEditorFocused();yield this._widget.setSelection(i),yield this._gotoReference(i),r?this._editor.focus():this._widget&&o&&this._widget.focusOnPreviewEditor()}))}revealReference(e){return _e(this,void 0,void 0,(function*(){this._editor.hasModel()&&this._model&&this._widget&&(yield this._widget.revealReference(e))}))}closeWidget(e=!0){Object(o.f)(this._widget),Object(o.f)(this._model),this._referenceSearchVisible.reset(),this._disposables.clear(),this._widget=void 0,this._model=void 0,e&&this._editor.focus(),this._requestIdPool+=1}_gotoReference(t){this._widget&&this._widget.hide(),this._ignoreModelChangeEvent=!0;const n=b.a.lift(t.range).collapseToStart();return this._editorService.openCodeEditor({resource:t.uri,options:{selection:n}},this._editor).then(t=>{var i;if(this._ignoreModelChangeEvent=!1,t&&this._widget)if(this._editor===t)this._widget.show(n),this._widget.focusOnReferenceTree();else{const r=e.get(t),o=this._model.clone();this.closeWidget(),t.focus(),r.toggleWidget(n,Object(ue.f)(e=>Promise.resolve(o)),null!==(i=this._peekMode)&&void 0!==i&&i)}else this.closeWidget()},e=>{this._ignoreModelChangeEvent=!1,Object(r.e)(e)})}openReference(e,t){t||this.closeWidget();const{uri:n,range:i}=e;this._editorService.openCodeEditor({resource:n,options:{selection:i}},this._editor,t)}};function ye(e,t){const n=Object(V.d)(e);if(!n)return;let i=ve.get(n);i&&t(i)}ve.ID="editor.contrib.referencesController",ve=pe([me(2,l.b),me(3,s.a),me(4,de.a),me(5,a.a),me(6,d.a),me(7,c.a)],ve),he.a.registerCommandAndKeybindingRule({id:"togglePeekWidgetFocus",weight:100,primary:Object(fe.a)(2089,60),when:l.a.or(be,V.b.inPeekEditor),handler(e){ye(e,e=>{e.changeFocusBetweenPreviewAndReferences()})}}),he.a.registerCommandAndKeybindingRule({id:"goToNextReference",weight:90,primary:62,secondary:[70],when:l.a.or(be,V.b.inPeekEditor),handler(e){ye(e,e=>{e.goToNextOrPreviousReference(!0)})}}),he.a.registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:90,primary:1086,secondary:[1094],when:l.a.or(be,V.b.inPeekEditor),handler(e){ye(e,e=>{e.goToNextOrPreviousReference(!1)})}}),ge.a.registerCommandAlias("goToNextReferenceFromEmbeddedEditor","goToNextReference"),ge.a.registerCommandAlias("goToPreviousReferenceFromEmbeddedEditor","goToPreviousReference"),ge.a.registerCommandAlias("closeReferenceSearchEditor","closeReferenceSearch"),ge.a.registerCommand("closeReferenceSearch",e=>ye(e,e=>e.closeWidget())),he.a.registerKeybindingRule({id:"closeReferenceSearch",weight:-1,primary:9,secondary:[1033],when:l.a.and(V.b.inPeekEditor,l.a.not("config.editor.stablePeek"))}),he.a.registerKeybindingRule({id:"closeReferenceSearch",weight:250,primary:9,secondary:[1033],when:l.a.and(be,l.a.not("config.editor.stablePeek"))}),he.a.registerCommandAndKeybindingRule({id:"revealReference",weight:200,primary:3,mac:{primary:3,secondary:[2066]},when:l.a.and(be,H.e),handler(e){var t;const n=null===(t=e.get(H.a).lastFocusedList)||void 0===t?void 0:t.getFocus();Array.isArray(n)&&n[0]instanceof u.b&&ye(e,e=>e.revealReference(n[0]))}}),he.a.registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2051,mac:{primary:259},when:l.a.and(be,H.e),handler(e){var t;const n=null===(t=e.get(H.a).lastFocusedList)||void 0===t?void 0:t.getFocus();Array.isArray(n)&&n[0]instanceof u.b&&ye(e,e=>e.openReference(n[0],!0))}}),ge.a.registerCommand("openReference",e=>{var t;const n=null===(t=e.get(H.a).lastFocusedList)||void 0===t?void 0:t.getFocus();Array.isArray(n)&&n[0]instanceof u.b&&ye(e,e=>e.openReference(n[0],!1))})},function(e,t,n){"use strict";var i=n(87);n.o(i,"languages")&&n.d(t,"languages",(function(){return i.languages}))},function(e,t,n){var i=n(244),r=n(245);e.exports=function(e,t,n,o){var s=!n;n||(n={});for(var a=-1,l=t.length;++a<l;){var c=t[a],d=o?o(n[c],e[c],c,n,e):void 0;void 0===d&&(d=e[c]),s?r(n,c,d):i(n,c,d)}return n}},function(e,t,n){var i=n(685),r=n(149),o=Object.prototype,s=o.hasOwnProperty,a=o.propertyIsEnumerable,l=i(function(){return arguments}())?i:function(e){return r(e)&&s.call(e,"callee")&&!a.call(e,"callee")};e.exports=l},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){var i=n(687),r=n(247),o=n(300),s=o&&o.isTypedArray,a=s?r(s):i;e.exports=a},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t,n){e.exports=n(305)},function(e,t,n){var i=n(196),r=1/0;e.exports=function(e){if("string"==typeof e||i(e))return e;var t=e+"";return"0"==t&&1/e==-r?"-0":t}},function(e,t,n){var i=n(729),r=n(380);e.exports=function(e,t){return null!=e&&r(e,t,i)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=new(n(865).default)({r:0,g:0,b:0,a:0},"transparent");t.default=i},function(e,t,n){"use strict";n.r(t),n.d(t,"ColorDetector",(function(){return _}));var i=n(19),r=n(13),o=n(15),s=n(170),a=n(2),l=n(4),c=n(33),d=n(3),u=n(29),h=n(11),f=n(229),g=n(43),p=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},m=function(e,t){return function(n,i){t(n,i,e)}};let _=class e extends a.a{constructor(e,t,n){super(),this._editor=e,this._codeEditorService=t,this._configurationService=n,this._localToDispose=this._register(new a.b),this._decorationsIds=[],this._colorDatas=new Map,this._colorDecoratorIds=[],this._decorationsTypes=new Set,this._register(e.onDidChangeModel(e=>{this._isEnabled=this.isEnabled(),this.onModelChanged()})),this._register(e.onDidChangeModelLanguage(e=>this.onModelChanged())),this._register(h.c.onDidChange(e=>this.onModelChanged())),this._register(e.onDidChangeConfiguration(e=>{let t=this._isEnabled;this._isEnabled=this.isEnabled(),t!==this._isEnabled&&(this._isEnabled?this.onModelChanged():this.removeAllDecorations())})),this._timeoutTimer=null,this._computePromise=null,this._isEnabled=this.isEnabled(),this.onModelChanged()}isEnabled(){const e=this._editor.getModel();if(!e)return!1;const t=e.getLanguageIdentifier(),n=this._configurationService.getValue(t.language);if(n){const e=n.colorDecorators;if(e&&void 0!==e.enable&&!e.enable)return e.enable}return this._editor.getOption(12)}static get(e){return e.getContribution(this.ID)}dispose(){this.stop(),this.removeAllDecorations(),super.dispose()}onModelChanged(){if(this.stop(),!this._isEnabled)return;const t=this._editor.getModel();t&&h.c.has(t)&&(this._localToDispose.add(this._editor.onDidChangeModelContent(t=>{this._timeoutTimer||(this._timeoutTimer=new i.e,this._timeoutTimer.cancelAndSet(()=>{this._timeoutTimer=null,this.beginCompute()},e.RECOMPUTE_TIME))})),this.beginCompute())}beginCompute(){this._computePromise=Object(i.f)(e=>{const t=this._editor.getModel();return t?Object(f.b)(t,e):Promise.resolve([])}),this._computePromise.then(e=>{this.updateDecorations(e),this.updateColorDecorators(e),this._computePromise=null},o.e)}stop(){this._timeoutTimer&&(this._timeoutTimer.cancel(),this._timeoutTimer=null),this._computePromise&&(this._computePromise.cancel(),this._computePromise=null),this._localToDispose.clear()}updateDecorations(e){const t=e.map(e=>({range:{startLineNumber:e.colorInfo.range.startLineNumber,startColumn:e.colorInfo.range.startColumn,endLineNumber:e.colorInfo.range.endLineNumber,endColumn:e.colorInfo.range.endColumn},options:u.a.EMPTY}));this._decorationsIds=this._editor.deltaDecorations(this._decorationsIds,t),this._colorDatas=new Map,this._decorationsIds.forEach((t,n)=>this._colorDatas.set(t,e[n]))}updateColorDecorators(e){let t=[],n={};for(let i=0;i<e.length&&t.length<500;i++){const{red:o,green:a,blue:l,alpha:c}=e[i].colorInfo.color,d=new r.c(Math.round(255*o),Math.round(255*a),Math.round(255*l),c);let u=Object(s.b)(`rgba(${d.r},${d.g},${d.b},${d.a})`).toString(16),h=`rgba(${d.r}, ${d.g}, ${d.b}, ${d.a})`,f="colorBox-"+u;this._decorationsTypes.has(f)||n[f]||this._codeEditorService.registerDecorationType(f,{before:{contentText:" ",border:"solid 0.1em #000",margin:"0.1em 0.2em 0 0.2em",width:"0.8em",height:"0.8em",backgroundColor:h},dark:{before:{border:"solid 0.1em #eee"}}},void 0,this._editor),n[f]=!0,t.push({range:{startLineNumber:e[i].colorInfo.range.startLineNumber,startColumn:e[i].colorInfo.range.startColumn,endLineNumber:e[i].colorInfo.range.endLineNumber,endColumn:e[i].colorInfo.range.endColumn},options:this._codeEditorService.resolveDecorationOptions(f,!0)})}this._decorationsTypes.forEach(e=>{n[e]||this._codeEditorService.removeDecorationType(e)}),this._colorDecoratorIds=this._editor.deltaDecorations(this._colorDecoratorIds,t)}removeAllDecorations(){this._decorationsIds=this._editor.deltaDecorations(this._decorationsIds,[]),this._colorDecoratorIds=this._editor.deltaDecorations(this._colorDecoratorIds,[]),this._decorationsTypes.forEach(e=>{this._codeEditorService.removeDecorationType(e)})}getColorData(e){const t=this._editor.getModel();if(!t)return null;const n=t.getDecorationsInRange(d.a.fromPositions(e,e)).filter(e=>this._colorDatas.has(e.id));return 0===n.length?null:this._colorDatas.get(n[0].id)}};_.ID="editor.contrib.colorDetector",_.RECOMPUTE_TIME=1e3,_=p([m(1,c.a),m(2,g.a)],_),Object(l.m)(_.ID,_)},function(e,t,n){"use strict";n.r(t),n.d(t,"GotoDefinitionAtPositionEditorContribution",(function(){return x}));n(612);var i=n(0),r=n(19),o=n(15),s=n(81),a=n(98),l=n(3),c=n(11),d=n(4),u=n(157),h=n(2),f=n(110),g=n(18),p=n(5),m=n(76),_=n(225),b=n(271),v=n(10),y=n(20),w=n(53),C=n(9),S=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},k=function(e,t){return function(n,i){t(n,i,e)}};let x=class e{constructor(e,t,n){this.textModelResolverService=t,this.modeService=n,this.toUnhook=new h.b,this.toUnhookForKeyboard=new h.b,this.linkDecorations=[],this.currentWordAtPosition=null,this.previousPromise=null,this.editor=e;let i=new b.a(e);this.toUnhook.add(i),this.toUnhook.add(i.onMouseMoveOrRelevantKeyDown(([e,t])=>{this.startFindDefinitionFromMouse(e,Object(y.n)(t))})),this.toUnhook.add(i.onExecute(e=>{this.isEnabled(e)&&this.gotoDefinition(e.target.position,e.hasSideBySideModifier).then(()=>{this.removeLinkDecorations()},e=>{this.removeLinkDecorations(),Object(o.e)(e)})})),this.toUnhook.add(i.onCancel(()=>{this.removeLinkDecorations(),this.currentWordAtPosition=null}))}static get(t){return t.getContribution(e.ID)}startFindDefinitionFromCursor(e){return this.startFindDefinition(e).then(()=>{this.toUnhookForKeyboard.add(this.editor.onDidChangeCursorPosition(()=>{this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear()})),this.toUnhookForKeyboard.add(this.editor.onKeyDown(e=>{e&&(this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear())}))})}startFindDefinitionFromMouse(e,t){if(9===e.target.type&&this.linkDecorations.length>0)return;if(!this.editor.hasModel()||!this.isEnabled(e,t))return this.currentWordAtPosition=null,void this.removeLinkDecorations();const n=e.target.position;this.startFindDefinition(n)}startFindDefinition(e){var t;this.toUnhookForKeyboard.clear();const n=e?null===(t=this.editor.getModel())||void 0===t?void 0:t.getWordAtPosition(e):null;if(!n)return this.currentWordAtPosition=null,this.removeLinkDecorations(),Promise.resolve(0);if(this.currentWordAtPosition&&this.currentWordAtPosition.startColumn===n.startColumn&&this.currentWordAtPosition.endColumn===n.endColumn&&this.currentWordAtPosition.word===n.word)return Promise.resolve(0);this.currentWordAtPosition=n;let a=new m.a(this.editor,15);return this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=Object(r.f)(t=>this.findDefinition(e,t)),this.previousPromise.then(t=>{if(t&&t.length&&a.validate(this.editor))if(t.length>1)this.addDecoration(new l.a(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),(new s.a).appendText(i.a("multipleResults","Click to show {0} definitions.",t.length)));else{let i=t[0];if(!i.uri)return;this.textModelResolverService.createModelReference(i.uri).then(t=>{if(!t.object||!t.object.textEditorModel)return void t.dispose();const{object:{textEditorModel:r}}=t,{startLineNumber:o}=i.range;if(o<1||o>r.getLineCount())return void t.dispose();const a=this.getPreviewValue(r,o,i);let c;c=i.originSelectionRange?l.a.lift(i.originSelectionRange):new l.a(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn);const d=this.modeService.getModeIdByFilepathOrFirstLine(r.uri);this.addDecoration(c,(new s.a).appendCodeblock(d||"",a)),t.dispose()})}else this.removeLinkDecorations()}).then(void 0,o.e)}getPreviewValue(t,n,i){let r=i.targetSelectionRange?i.range:this.getPreviewRangeBasedOnBrackets(t,n);return r.endLineNumber-r.startLineNumber>=e.MAX_SOURCE_PREVIEW_LINES&&(r=this.getPreviewRangeBasedOnIndentation(t,n)),this.stripIndentationFromPreviewRange(t,n,r)}stripIndentationFromPreviewRange(e,t,n){let i=e.getLineFirstNonWhitespaceColumn(t);for(let r=t+1;r<n.endLineNumber;r++){const t=e.getLineFirstNonWhitespaceColumn(r);i=Math.min(i,t)}return e.getValueInRange(n).replace(new RegExp(`^\\s{${i-1}}`,"gm"),"").trim()}getPreviewRangeBasedOnIndentation(t,n){const i=t.getLineFirstNonWhitespaceColumn(n),r=Math.min(t.getLineCount(),n+e.MAX_SOURCE_PREVIEW_LINES);let o=n+1;for(;o<r;o++){if(i===t.getLineFirstNonWhitespaceColumn(o))break}return new l.a(n,1,o+1,1)}getPreviewRangeBasedOnBrackets(t,n){const i=Math.min(t.getLineCount(),n+e.MAX_SOURCE_PREVIEW_LINES),r=[];let o=!0,s=t.findNextBracket(new v.a(n,1));for(;null!==s;){if(0===r.length)r.push(s);else{const e=r[r.length-1];if(e.open[0]===s.open[0]&&e.isOpen&&!s.isOpen?r.pop():r.push(s),0===r.length){if(!o)return new l.a(n,1,s.range.endLineNumber+1,1);o=!1}}const e=t.getLineMaxColumn(n);let a=s.range.endLineNumber,c=s.range.endColumn;if(e===s.range.endColumn&&(a++,c=1),a>i)return new l.a(n,1,i+1,1);s=t.findNextBracket(new v.a(a,c))}return new l.a(n,1,i+1,1)}addDecoration(e,t){const n={range:e,options:{inlineClassName:"goto-definition-link",hoverMessage:t}};this.linkDecorations=this.editor.deltaDecorations(this.linkDecorations,[n])}removeLinkDecorations(){this.linkDecorations.length>0&&(this.linkDecorations=this.editor.deltaDecorations(this.linkDecorations,[]))}isEnabled(e,t){return this.editor.hasModel()&&e.isNoneOrSingleMouseDown&&6===e.target.type&&(e.hasTriggerModifier||!!t&&t.keyCodeIsTriggerKey)&&c.f.has(this.editor.getModel())}findDefinition(e,t){const n=this.editor.getModel();return n?Object(u.b)(n,e,t):Promise.resolve(null)}gotoDefinition(e,t){return this.editor.setPosition(e),this.editor.invokeWithinContext(e=>{const n=!t&&this.editor.getOption(69)&&!this.isInPeekEditor(e);return new _.DefinitionAction({openToSide:t,openInPeek:n,muteMessage:!0},{alias:"",label:"",id:"",precondition:void 0}).run(e,this.editor)})}isInPeekEditor(e){const t=e.get(C.b);return w.b.inPeekEditor.getValue(t)}dispose(){this.toUnhook.dispose()}};x.ID="editor.contrib.gotodefinitionatposition",x.MAX_SOURCE_PREVIEW_LINES=8,x=S([k(1,f.a),k(2,a.a)],x),Object(d.m)(x.ID,x),Object(g.g)((e,t)=>{const n=e.getColor(p.r);n&&t.addRule(`.monaco-editor .goto-definition-link { color: ${n} !important; }`)})},function(e,t,n){"use strict";var i=n(87);n.o(i,"Emitter")&&n.d(t,"Emitter",(function(){return i.Emitter})),n.o(i,"MarkerSeverity")&&n.d(t,"MarkerSeverity",(function(){return i.MarkerSeverity})),n.o(i,"Range")&&n.d(t,"Range",(function(){return i.Range})),n.o(i,"Uri")&&n.d(t,"Uri",(function(){return i.Uri})),n.o(i,"editor")&&n.d(t,"editor",(function(){return i.editor})),n.o(i,"languages")&&n.d(t,"languages",(function(){return i.languages}))},function(e,t,n){"use strict";n.r(t);var i=n(55),r=n(19),o=n(39),s=n(12),a=n(100),l=n(4),c=n(33),d=n(10),u=n(3),h=n(7),f=n(11),g=n(153),p=n(53),m=n(211),_=n(72),b=n(0),v=n(25),y=n(9),w=n(40),C=n(70),S=n(157),k=n(28),x=n(76),L=n(17),M=n(103),D=n(80),E=n(2),T=n(6),O=n(41),N=n(42),I=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},A=function(e,t){return function(n,i){t(n,i,e)}};const R=new y.c("hasSymbols",!1),P=Object(L.c)("ISymbolNavigationService");let j=class{constructor(e,t,n,i){this._editorService=t,this._notificationService=n,this._keybindingService=i,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=R.bindTo(e)}reset(){this._ctxHasSymbols.reset(),Object(E.f)(this._currentState),Object(E.f)(this._currentMessage),this._currentModel=void 0,this._currentIdx=-1}put(e){const t=e.parent.parent;if(t.references.length<=1)return void this.reset();this._currentModel=t,this._currentIdx=t.references.indexOf(e),this._ctxHasSymbols.set(!0),this._showMessage();const n=new F(this._editorService),i=n.onDidChange(e=>{if(this._ignoreEditorChange)return;const n=this._editorService.getActiveCodeEditor();if(!n)return;const i=n.getModel(),r=n.getPosition();if(!i||!r)return;let o=!1,s=!1;for(const e of t.references)if(Object(N.f)(e.uri,i.uri))o=!0,s=s||u.a.containsPosition(e.range,r);else if(o)break;o&&s||this.reset()});this._currentState=Object(E.e)(n,i)}revealNext(e){if(!this._currentModel)return Promise.resolve();this._currentIdx+=1,this._currentIdx%=this._currentModel.references.length;const t=this._currentModel.references[this._currentIdx];return this._showMessage(),this._ignoreEditorChange=!0,this._editorService.openCodeEditor({resource:t.uri,options:{selection:u.a.collapseToStart(t.range),selectionRevealType:3}},e).finally(()=>{this._ignoreEditorChange=!1})}_showMessage(){Object(E.f)(this._currentMessage);const e=this._keybindingService.lookupKeybinding("editor.gotoNextSymbolFromResult"),t=e?Object(b.a)("location.kb","Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,e.getLabel()):Object(b.a)("location","Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(t)}};j=I([A(0,y.b),A(1,c.a),A(2,w.a),A(3,O.a)],j),Object(M.b)(P,j,!0),Object(l.l)(new class extends l.c{constructor(){super({id:"editor.gotoNextSymbolFromResult",precondition:R,kbOpts:{weight:100,primary:70}})}runEditorCommand(e,t){return e.get(P).revealNext(t)}}),D.a.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:R,primary:9,handler(e){e.get(P).reset()}});let F=class{constructor(e){this._listener=new Map,this._disposables=new E.b,this._onDidChange=new T.a,this.onDidChange=this._onDidChange.event,this._disposables.add(e.onCodeEditorRemove(this._onDidRemoveEditor,this)),this._disposables.add(e.onCodeEditorAdd(this._onDidAddEditor,this)),e.listCodeEditors().forEach(this._onDidAddEditor,this)}dispose(){this._disposables.dispose(),this._onDidChange.dispose(),Object(E.f)(this._listener.values())}_onDidAddEditor(e){this._listener.set(e,Object(E.e)(e.onDidChangeCursorPosition(t=>this._onDidChange.fire({editor:e})),e.onDidChangeModelContent(t=>this._onDidChange.fire({editor:e}))))}_onDidRemoveEditor(e){Object(E.f)(this._listener.get(e)),this._listener.delete(e)}};F=I([A(0,c.a)],F);var B=n(30),W=n(24),H=n(20),Y=n(187);n.d(t,"DefinitionAction",(function(){return Q}));var V,z,U,$,q,K,G,Z,J=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};v.d.appendMenuItem(v.b.EditorContext,{submenu:v.b.EditorContextPeek,title:b.a("peek.submenu","Peek"),group:"navigation",order:100});class X extends l.b{constructor(e,t){super(t),this._configuration=e}run(e,t){if(!t.hasModel())return Promise.resolve(void 0);const n=e.get(w.a),o=e.get(c.a),s=e.get(C.a),a=e.get(P),l=t.getModel(),d=t.getPosition(),u=new x.b(t,5),h=Object(r.j)(this._getLocationModel(l,d,u.token),u.token).then(e=>J(this,void 0,void 0,(function*(){if(!e||u.token.isCancellationRequested)return;let n;if(Object(i.a)(e.ariaMessage),e.referenceAt(l.uri,d)){const e=this._getAlternativeCommand(t);e!==this.id&&(n=t.getAction(e))}const r=e.references.length;if(0===r){if(!this._configuration.muteMessage){const e=l.getWordAtPosition(d);g.a.get(t).showMessage(this._getNoResultFoundMessage(e),d)}}else{if(1!==r||!n)return this._onResult(o,a,t,e);n.run()}})),e=>{n.error(e)}).finally(()=>{u.dispose()});return s.showWhile(h,250),h}_onResult(e,t,n,i){return J(this,void 0,void 0,(function*(){const r=this._getGoToPreference(n);if(n instanceof Y.a||!(this._configuration.openInPeek||"peek"===r&&i.references.length>1)){const o=i.firstReference(),s=i.references.length>1&&"gotoAndPeek"===r,a=yield this._openReference(n,e,o,this._configuration.openToSide,!s);s&&a?this._openInPeek(a,i):i.dispose(),"goto"===r&&t.put(o)}else this._openInPeek(n,i)}))}_openReference(e,t,n,i,r){return J(this,void 0,void 0,(function*(){let o=void 0;Object(f.G)(n)&&(o=n.targetSelectionRange),o||(o=n.range);const s=yield t.openCodeEditor({resource:n.uri,options:{selection:u.a.collapseToStart(o),selectionRevealType:3}},e,i);if(s){if(r){const e=s.getModel(),t=s.deltaDecorations([],[{range:o,options:{className:"symbolHighlight"}}]);setTimeout(()=>{s.getModel()===e&&s.deltaDecorations(t,[])},350)}return s}}))}_openInPeek(e,t){let n=m.a.get(e);n&&e.hasModel()?n.toggleWidget(e.getSelection(),Object(r.f)(e=>Promise.resolve(t)),this._configuration.openInPeek):t.dispose()}}class Q extends X{_getLocationModel(e,t,n){return J(this,void 0,void 0,(function*(){return new _.c(yield Object(S.b)(e,t,n),b.a("def.title","Definitions"))}))}_getNoResultFoundMessage(e){return e&&e.word?b.a("noResultWord","No definition found for '{0}'",e.word):b.a("generic.noResults","No definition found")}_getAlternativeCommand(e){return e.getOption(43).alternativeDefinitionCommand}_getGoToPreference(e){return e.getOption(43).multipleDefinitions}}const ee=s.h&&!B.k?2118:70;Object(l.k)(((V=class e extends Q{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:e.id,label:b.a("actions.goToDecl.label","Go to Definition"),alias:"Go to Definition",precondition:y.a.and(h.a.hasDefinitionProvider,h.a.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:h.a.editorTextFocus,primary:ee,weight:100},contextMenuOpts:{group:"navigation",order:1.1},menuOpts:{menuId:v.b.MenubarGoMenu,group:"4_symbol_nav",order:2,title:b.a({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")}}),k.a.registerCommandAlias("editor.action.goToDeclaration",e.id)}}).id="editor.action.revealDefinition",V)),Object(l.k)(((z=class e extends Q{constructor(){super({openToSide:!0,openInPeek:!1,muteMessage:!1},{id:e.id,label:b.a("actions.goToDeclToSide.label","Open Definition to the Side"),alias:"Open Definition to the Side",precondition:y.a.and(h.a.hasDefinitionProvider,h.a.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:h.a.editorTextFocus,primary:Object(o.a)(2089,ee),weight:100}}),k.a.registerCommandAlias("editor.action.openDeclarationToTheSide",e.id)}}).id="editor.action.revealDefinitionAside",z)),Object(l.k)(((U=class e extends Q{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:e.id,label:b.a("actions.previewDecl.label","Peek Definition"),alias:"Peek Definition",precondition:y.a.and(h.a.hasDefinitionProvider,p.b.notInPeekEditor,h.a.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:h.a.editorTextFocus,primary:582,linux:{primary:3140},weight:100},contextMenuOpts:{menuId:v.b.EditorContextPeek,group:"peek",order:2}}),k.a.registerCommandAlias("editor.action.previewDeclaration",e.id)}}).id="editor.action.peekDefinition",U));class te extends X{_getLocationModel(e,t,n){return J(this,void 0,void 0,(function*(){return new _.c(yield Object(S.a)(e,t,n),b.a("decl.title","Declarations"))}))}_getNoResultFoundMessage(e){return e&&e.word?b.a("decl.noResultWord","No declaration found for '{0}'",e.word):b.a("decl.generic.noResults","No declaration found")}_getAlternativeCommand(e){return e.getOption(43).alternativeDeclarationCommand}_getGoToPreference(e){return e.getOption(43).multipleDeclarations}}Object(l.k)((($=class e extends te{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:e.id,label:b.a("actions.goToDeclaration.label","Go to Declaration"),alias:"Go to Declaration",precondition:y.a.and(h.a.hasDeclarationProvider,h.a.isInWalkThroughSnippet.toNegated()),contextMenuOpts:{group:"navigation",order:1.3},menuOpts:{menuId:v.b.MenubarGoMenu,group:"4_symbol_nav",order:3,title:b.a({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")}})}_getNoResultFoundMessage(e){return e&&e.word?b.a("decl.noResultWord","No declaration found for '{0}'",e.word):b.a("decl.generic.noResults","No declaration found")}}).id="editor.action.revealDeclaration",$)),Object(l.k)(class extends te{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",label:b.a("actions.peekDecl.label","Peek Declaration"),alias:"Peek Declaration",precondition:y.a.and(h.a.hasDeclarationProvider,p.b.notInPeekEditor,h.a.isInWalkThroughSnippet.toNegated()),contextMenuOpts:{menuId:v.b.EditorContextPeek,group:"peek",order:3}})}});class ne extends X{_getLocationModel(e,t,n){return J(this,void 0,void 0,(function*(){return new _.c(yield Object(S.e)(e,t,n),b.a("typedef.title","Type Definitions"))}))}_getNoResultFoundMessage(e){return e&&e.word?b.a("goToTypeDefinition.noResultWord","No type definition found for '{0}'",e.word):b.a("goToTypeDefinition.generic.noResults","No type definition found")}_getAlternativeCommand(e){return e.getOption(43).alternativeTypeDefinitionCommand}_getGoToPreference(e){return e.getOption(43).multipleTypeDefinitions}}Object(l.k)(((q=class e extends ne{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:e.ID,label:b.a("actions.goToTypeDefinition.label","Go to Type Definition"),alias:"Go to Type Definition",precondition:y.a.and(h.a.hasTypeDefinitionProvider,h.a.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:h.a.editorTextFocus,primary:0,weight:100},contextMenuOpts:{group:"navigation",order:1.4},menuOpts:{menuId:v.b.MenubarGoMenu,group:"4_symbol_nav",order:3,title:b.a({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")}})}}).ID="editor.action.goToTypeDefinition",q)),Object(l.k)(((K=class e extends ne{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:e.ID,label:b.a("actions.peekTypeDefinition.label","Peek Type Definition"),alias:"Peek Type Definition",precondition:y.a.and(h.a.hasTypeDefinitionProvider,p.b.notInPeekEditor,h.a.isInWalkThroughSnippet.toNegated()),contextMenuOpts:{menuId:v.b.EditorContextPeek,group:"peek",order:4}})}}).ID="editor.action.peekTypeDefinition",K));class ie extends X{_getLocationModel(e,t,n){return J(this,void 0,void 0,(function*(){return new _.c(yield Object(S.c)(e,t,n),b.a("impl.title","Implementations"))}))}_getNoResultFoundMessage(e){return e&&e.word?b.a("goToImplementation.noResultWord","No implementation found for '{0}'",e.word):b.a("goToImplementation.generic.noResults","No implementation found")}_getAlternativeCommand(e){return e.getOption(43).alternativeImplementationCommand}_getGoToPreference(e){return e.getOption(43).multipleImplementations}}Object(l.k)(((G=class e extends ie{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:e.ID,label:b.a("actions.goToImplementation.label","Go to Implementations"),alias:"Go to Implementations",precondition:y.a.and(h.a.hasImplementationProvider,h.a.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:h.a.editorTextFocus,primary:2118,weight:100},menuOpts:{menuId:v.b.MenubarGoMenu,group:"4_symbol_nav",order:4,title:b.a({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},contextMenuOpts:{group:"navigation",order:1.45}})}}).ID="editor.action.goToImplementation",G)),Object(l.k)(((Z=class e extends ie{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:e.ID,label:b.a("actions.peekImplementation.label","Peek Implementations"),alias:"Peek Implementations",precondition:y.a.and(h.a.hasImplementationProvider,p.b.notInPeekEditor,h.a.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:h.a.editorTextFocus,primary:3142,weight:100},contextMenuOpts:{menuId:v.b.EditorContextPeek,group:"peek",order:5}})}}).ID="editor.action.peekImplementation",Z));class re extends X{_getNoResultFoundMessage(e){return e?b.a("references.no","No references found for '{0}'",e.word):b.a("references.noGeneric","No references found")}_getAlternativeCommand(e){return e.getOption(43).alternativeReferenceCommand}_getGoToPreference(e){return e.getOption(43).multipleReferences}}Object(l.k)(class extends re{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",label:b.a("goToReferences.label","Go to References"),alias:"Go to References",precondition:y.a.and(h.a.hasReferenceProvider,p.b.notInPeekEditor,h.a.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:h.a.editorTextFocus,primary:1094,weight:100},contextMenuOpts:{group:"navigation",order:1.45},menuOpts:{menuId:v.b.MenubarGoMenu,group:"4_symbol_nav",order:5,title:b.a({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")}})}_getLocationModel(e,t,n){return J(this,void 0,void 0,(function*(){return new _.c(yield Object(S.d)(e,t,!0,n),b.a("ref.title","References"))}))}}),Object(l.k)(class extends re{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",label:b.a("references.action.label","Peek References"),alias:"Peek References",precondition:y.a.and(h.a.hasReferenceProvider,p.b.notInPeekEditor,h.a.isInWalkThroughSnippet.toNegated()),contextMenuOpts:{menuId:v.b.EditorContextPeek,group:"peek",order:6}})}_getLocationModel(e,t,n){return J(this,void 0,void 0,(function*(){return new _.c(yield Object(S.d)(e,t,!1,n),b.a("ref.title","References"))}))}});class oe extends X{constructor(e,t,n){super(e,{id:"editor.action.goToLocation",label:b.a("label.generic","Go To Any Symbol"),alias:"Go To Any Symbol",precondition:y.a.and(p.b.notInPeekEditor,h.a.isInWalkThroughSnippet.toNegated())}),this._references=t,this._gotoMultipleBehaviour=n}_getLocationModel(e,t,n){return J(this,void 0,void 0,(function*(){return new _.c(this._references,b.a("generic.title","Locations"))}))}_getNoResultFoundMessage(e){return e&&b.a("generic.noResult","No results for '{0}'",e.word)||""}_getGoToPreference(e){var t;return null!==(t=this._gotoMultipleBehaviour)&&void 0!==t?t:e.getOption(43).multipleReferences}_getAlternativeCommand(){return""}}k.a.registerCommand({id:"editor.action.goToLocations",description:{description:"Go to locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:W.a},{name:"position",description:"The position at which to start",constraint:d.a.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"},{name:"noResultsMessage",description:"Human readable message that shows when locations is empty."}]},handler:(e,t,n,i,r,o,s)=>J(void 0,void 0,void 0,(function*(){Object(H.b)(W.a.isUri(t)),Object(H.b)(d.a.isIPosition(n)),Object(H.b)(Array.isArray(i)),Object(H.b)(void 0===r||"string"==typeof r),Object(H.b)(void 0===s||"boolean"==typeof s);const l=e.get(c.a),u=yield l.openCodeEditor({resource:t},l.getFocusedCodeEditor());if(Object(a.b)(u))return u.setPosition(n),u.revealPositionInCenterIfOutsideViewport(n,0),u.invokeWithinContext(e=>{const t=new class extends oe{_getNoResultFoundMessage(e){return o||super._getNoResultFoundMessage(e)}}({muteMessage:!Boolean(o),openInPeek:Boolean(s),openToSide:!1},i,r);e.get(L.a).invokeFunction(t.run.bind(t),u)})}))}),k.a.registerCommand({id:"editor.action.peekLocations",description:{description:"Peek locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:W.a},{name:"position",description:"The position at which to start",constraint:d.a.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"}]},handler:(e,t,n,i,r)=>J(void 0,void 0,void 0,(function*(){e.get(k.b).executeCommand("editor.action.goToLocations",t,n,i,r,void 0,!0)}))}),k.a.registerCommand({id:"editor.action.findReferences",handler:(e,t,n)=>{Object(H.b)(W.a.isUri(t)),Object(H.b)(d.a.isIPosition(n));const i=e.get(c.a);return i.openCodeEditor({resource:t},i.getFocusedCodeEditor()).then(e=>{if(!Object(a.b)(e)||!e.hasModel())return;const t=m.a.get(e);if(!t)return;const i=Object(r.f)(t=>Object(S.d)(e.getModel(),d.a.lift(n),!1,t).then(e=>new _.c(e,b.a("ref.title","References")))),o=new u.a(n.lineNumber,n.column,n.lineNumber,n.column);return Promise.resolve(t.toggleWidget(o,i,!1))})}}),k.a.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations")},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));let i=!1,r=null;function o(e){if(!e.parent||e.parent===e)return null;try{let t=e.location,n=e.parent.location;if("null"!==t.origin&&"null"!==n.origin&&(t.protocol!==n.protocol||t.hostname!==n.hostname||t.port!==n.port))return i=!0,null}catch(e){return i=!0,null}return e.parent}class s{static getSameOriginWindowChain(){if(!r){r=[];let e,t=window;do{(e=o(t))?r.push({window:t,iframeElement:t.frameElement||null}):r.push({window:t,iframeElement:null}),t=e}while(t)}return r.slice(0)}static hasDifferentOriginAncestor(){return r||this.getSameOriginWindowChain(),i}static getPositionOfChildWindowRelativeToAncestorWindow(e,t){if(!t||e===t)return{top:0,left:0};let n=0,i=0,r=this.getSameOriginWindowChain();for(const e of r){if(n+=e.window.scrollY,i+=e.window.scrollX,e.window===t)break;if(!e.iframeElement)break;let r=e.iframeElement.getBoundingClientRect();n+=r.top,i+=r.left}return{top:n,left:i}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return s}));var i=n(62),r=n(125);class o{constructor(e,t,n,i){this.oldPosition=e,this.oldText=t,this.newPosition=n,this.newText=i}get oldLength(){return this.oldText.length}get oldEnd(){return this.oldPosition+this.oldText.length}get newLength(){return this.newText.length}get newEnd(){return this.newPosition+this.newText.length}toString(){return 0===this.oldText.length?`(insert@${this.oldPosition} "${this.newText}")`:0===this.newText.length?`(delete@${this.oldPosition} "${this.oldText}")`:`(replace@${this.oldPosition} "${this.oldText}" with "${this.newText}")`}static _writeStringSize(e){return 4+2*e.length}static _writeString(e,t,n){const r=t.length;i.f(e,r,n),n+=4;for(let o=0;o<r;o++)i.e(e,t.charCodeAt(o),n),n+=2;return n}static _readString(e,t){const n=i.c(e,t);return t+=4,Object(r.b)(e,t,n)}writeSize(){return 8+o._writeStringSize(this.oldText)+o._writeStringSize(this.newText)}write(e,t){return i.f(e,this.oldPosition,t),t+=4,i.f(e,this.newPosition,t),t+=4,t=o._writeString(e,this.oldText,t),t=o._writeString(e,this.newText,t)}static read(e,t,n){const r=i.c(e,t);t+=4;const s=i.c(e,t);t+=4;const a=o._readString(e,t);t+=o._writeStringSize(a);const l=o._readString(e,t);return t+=o._writeStringSize(l),n.push(new o(r,a,s,l)),t}}function s(e,t){if(null===e||0===e.length)return t;return new a(e,t).compress()}class a{constructor(e,t){this._prevEdits=e,this._currEdits=t,this._result=[],this._resultLen=0,this._prevLen=this._prevEdits.length,this._prevDeltaOffset=0,this._currLen=this._currEdits.length,this._currDeltaOffset=0}compress(){let e=0,t=0,n=this._getPrev(e),i=this._getCurr(t);for(;e<this._prevLen||t<this._currLen;){if(null===n){this._acceptCurr(i),i=this._getCurr(++t);continue}if(null===i){this._acceptPrev(n),n=this._getPrev(++e);continue}if(i.oldEnd<=n.newPosition){this._acceptCurr(i),i=this._getCurr(++t);continue}if(n.newEnd<=i.oldPosition){this._acceptPrev(n),n=this._getPrev(++e);continue}if(i.oldPosition<n.newPosition){const[e,t]=a._splitCurr(i,n.newPosition-i.oldPosition);this._acceptCurr(e),i=t;continue}if(n.newPosition<i.oldPosition){const[e,t]=a._splitPrev(n,i.oldPosition-n.newPosition);this._acceptPrev(e),n=t;continue}let r,s;if(i.oldEnd===n.newEnd)r=n,s=i,n=this._getPrev(++e),i=this._getCurr(++t);else if(i.oldEnd<n.newEnd){const[e,o]=a._splitPrev(n,i.oldLength);r=e,s=i,n=o,i=this._getCurr(++t)}else{const[t,o]=a._splitCurr(i,n.newLength);r=n,s=t,n=this._getPrev(++e),i=o}this._result[this._resultLen++]=new o(r.oldPosition,r.oldText,s.newPosition,s.newText),this._prevDeltaOffset+=r.newLength-r.oldLength,this._currDeltaOffset+=s.newLength-s.oldLength}const r=a._merge(this._result);return a._removeNoOps(r)}_acceptCurr(e){this._result[this._resultLen++]=a._rebaseCurr(this._prevDeltaOffset,e),this._currDeltaOffset+=e.newLength-e.oldLength}_getCurr(e){return e<this._currLen?this._currEdits[e]:null}_acceptPrev(e){this._result[this._resultLen++]=a._rebasePrev(this._currDeltaOffset,e),this._prevDeltaOffset+=e.newLength-e.oldLength}_getPrev(e){return e<this._prevLen?this._prevEdits[e]:null}static _rebaseCurr(e,t){return new o(t.oldPosition-e,t.oldText,t.newPosition,t.newText)}static _rebasePrev(e,t){return new o(t.oldPosition,t.oldText,t.newPosition+e,t.newText)}static _splitPrev(e,t){const n=e.newText.substr(0,t),i=e.newText.substr(t);return[new o(e.oldPosition,e.oldText,e.newPosition,n),new o(e.oldEnd,"",e.newPosition+t,i)]}static _splitCurr(e,t){const n=e.oldText.substr(0,t),i=e.oldText.substr(t);return[new o(e.oldPosition,n,e.newPosition,e.newText),new o(e.oldPosition+t,i,e.newEnd,"")]}static _merge(e){if(0===e.length)return e;let t=[],n=0,i=e[0];for(let r=1;r<e.length;r++){const s=e[r];i.oldEnd===s.oldPosition?i=new o(i.oldPosition,i.oldText+s.oldText,i.newPosition,i.newText+s.newText):(t[n++]=i,i=s)}return t[n++]=i,t}static _removeNoOps(e){if(0===e.length)return e;let t=[],n=0;for(let i=0;i<e.length;i++){const r=e[i];r.oldText!==r.newText&&(t[n++]=r)}return t}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return s}));var i=n(8),r=n(45);function o(e){return e.replace(/[\\/]/g,r.e.sep)}function s(e,t,n,o=r.h){if(e===t)return!0;if(!e||!t)return!1;if(t.length>e.length)return!1;if(n){if(!Object(i.T)(e,t))return!1;if(t.length===e.length)return!0;let n=t.length;return t.charAt(t.length-1)===o&&n--,e.charAt(n)===o}return t.charAt(t.length-1)!==o&&(t+=o),0===e.indexOf(t)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return u}));var i=n(26),r=n(15),o=n(24),s=n(4),a=n(3),l=n(11),c=n(54);function d(e,t){const n=[],i=l.c.ordered(e).reverse().map(i=>Promise.resolve(i.provideDocumentColors(e,t)).then(e=>{if(Array.isArray(e))for(let t of e)n.push({colorInfo:t,provider:i})}));return Promise.all(i).then(()=>n)}function u(e,t,n,i){return Promise.resolve(n.provideColorPresentations(e,t,i))}Object(s.o)("_executeDocumentColorProvider",(function(e,t){const{resource:n}=t;if(!(n instanceof o.a))throw Object(r.b)();const s=e.get(c.a).getModel(n);if(!s)throw Object(r.b)();const a=[],d=l.c.ordered(s).reverse().map(e=>Promise.resolve(e.provideDocumentColors(s,i.a.None)).then(e=>{if(Array.isArray(e))for(let t of e)a.push({range:t.range,color:[t.color.red,t.color.green,t.color.blue,t.color.alpha]})}));return Promise.all(d).then(()=>a)})),Object(s.o)("_executeColorPresentationProvider",(function(e,t){const{resource:n,color:s,range:d}=t;if(!(n instanceof o.a&&Array.isArray(s)&&4===s.length&&a.a.isIRange(d)))throw Object(r.b)();const[u,h,f,g]=s,p=e.get(c.a).getModel(n);if(!p)throw Object(r.b)();const m={range:d,color:{red:u,green:h,blue:f,alpha:g}},_=[],b=l.c.ordered(p).reverse().map(e=>Promise.resolve(e.provideColorPresentations(p,m,i.a.None)).then(e=>{Array.isArray(e)&&_.push(...e)}));return Promise.all(b).then(()=>_)}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var i=n(8),r=n(51),o=n(23),s=n(68),a=n(3);class l{static deleteRight(e,t,n,i){let o=[],l=3!==e;for(let e=0,c=i.length;e<c;e++){const c=i[e];let d=c;if(d.isEmpty()){let e=c.getPosition(),i=s.a.right(t,n,e.lineNumber,e.column);d=new a.a(i.lineNumber,i.column,e.lineNumber,e.column)}d.isEmpty()?o[e]=null:(d.startLineNumber!==d.endLineNumber&&(l=!0),o[e]=new r.a(d,""))}return[l,o]}static _isAutoClosingPairDelete(e,t,n){if("never"===e.autoClosingBrackets&&"never"===e.autoClosingQuotes)return!1;for(let i=0,r=n.length;i<r;i++){const r=n[i],s=r.getPosition();if(!r.isEmpty())return!1;const a=t.getLineContent(s.lineNumber),l=a[s.column-2],c=e.autoClosingPairsOpen2.get(l);if(!c)return!1;if(Object(o.g)(l)){if("never"===e.autoClosingQuotes)return!1}else if("never"===e.autoClosingBrackets)return!1;const d=a[s.column-1];let u=!1;for(const e of c)e.open===l&&e.close===d&&(u=!0);if(!u)return!1}return!0}static _runAutoClosingPairDelete(e,t,n){let i=[];for(let e=0,t=n.length;e<t;e++){const t=n[e].getPosition(),o=new a.a(t.lineNumber,t.column-1,t.lineNumber,t.column+1);i[e]=new r.a(o,"")}return[!0,i]}static deleteLeft(e,t,n,l){if(this._isAutoClosingPairDelete(t,n,l))return this._runAutoClosingPairDelete(t,n,l);let c=[],d=2!==e;for(let e=0,u=l.length;e<u;e++){const u=l[e];let h=u;if(h.isEmpty()){let e=u.getPosition();if(t.useTabStops&&e.column>1){let r=n.getLineContent(e.lineNumber),s=i.w(r),l=-1===s?r.length+1:s+1;if(e.column<=l){let i=o.a.visibleColumnFromColumn2(t,n,e),r=o.a.prevIndentTabStop(i,t.indentSize),s=o.a.columnFromVisibleColumn2(t,n,e.lineNumber,r);h=new a.a(e.lineNumber,s,e.lineNumber,e.column)}else h=new a.a(e.lineNumber,e.column-1,e.lineNumber,e.column)}else{let i=s.a.left(t,n,e.lineNumber,e.column);h=new a.a(i.lineNumber,i.column,e.lineNumber,e.column)}}h.isEmpty()?c[e]=null:(h.startLineNumber!==h.endLineNumber&&(d=!0),c[e]=new r.a(h,""))}return[d,c]}static cut(e,t,n){let i=[];for(let o=0,s=n.length;o<s;o++){const s=n[o];if(s.isEmpty())if(e.emptySelectionClipboard){let e,n,l,c,d=s.getPosition();d.lineNumber<t.getLineCount()?(e=d.lineNumber,n=1,l=d.lineNumber+1,c=1):d.lineNumber>1?(e=d.lineNumber-1,n=t.getLineMaxColumn(d.lineNumber-1),l=d.lineNumber,c=t.getLineMaxColumn(d.lineNumber)):(e=d.lineNumber,n=1,l=d.lineNumber,c=t.getLineMaxColumn(d.lineNumber));let u=new a.a(e,n,l,c);u.isEmpty()?i[o]=null:i[o]=new r.a(u,"")}else i[o]=null;else i[o]=new r.a(s,"")}return new o.e(0,i,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return l}));var i=n(8),r=n(99),o=n(78);const s={getInitialState:()=>o.c,tokenize2:(e,t,n)=>Object(o.e)(0,e,t,n)};function a(e,t=s){return function(e,t){let n='<div class="monaco-tokenized-source">',o=e.split(/\r\n|\r|\n/),s=t.getInitialState();for(let e=0,a=o.length;e<a;e++){let a=o[e];e>0&&(n+="<br/>");let l=t.tokenize2(a,s,0);r.a.convertToEndOffset(l.tokens,a.length);let c=new r.a(l.tokens,a).inflate(),d=0;for(let e=0,t=c.getCount();e<t;e++){const t=c.getClassName(e),r=c.getEndOffset(e);n+=`<span class="${t}">${i.u(a.substring(d,r))}</span>`,d=r}s=l.endState}return n+="</div>"}(e,t||s)}function l(e,t,n,i,r,o,s){let a="<div>",l=i,c=0;for(let d=0,u=t.getCount();d<u;d++){const u=t.getEndOffset(d);if(u<=i)continue;let h="";for(;l<u&&l<r;l++){const t=e.charCodeAt(l);switch(t){case 9:let e=o-(l+c)%o;for(c+=e-1;e>0;)h+=s?" ":" ",e--;break;case 60:h+="<";break;case 62:h+=">";break;case 38:h+="&";break;case 0:h+="�";break;case 65279:case 8232:case 8233:case 133:h+="�";break;case 13:h+="​";break;case 32:h+=s?" ":" ";break;default:h+=String.fromCharCode(t)}}if(a+=`<span style="${t.getInlineStyle(d,n)}">${h}</span>`,u>r||l>=r)break}return a+="</div>"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));n(609);var i=n(1),r=n(8),o=n(13),s=n(37);const a={badgeBackground:o.a.fromHex("#4D4D4D"),badgeForeground:o.a.fromHex("#FFFFFF")};class l{constructor(e,t){this.count=0,this.options=t||Object.create(null),Object(s.g)(this.options,a,!1),this.badgeBackground=this.options.badgeBackground,this.badgeForeground=this.options.badgeForeground,this.badgeBorder=this.options.badgeBorder,this.element=Object(i.p)(e,Object(i.a)(".monaco-count-badge")),this.countFormat=this.options.countFormat||"{0}",this.titleFormat=this.options.titleFormat||"",this.setCount(this.options.count||0)}setCount(e){this.count=e,this.render()}setTitleFormat(e){this.titleFormat=e,this.render()}render(){this.element.textContent=Object(r.x)(this.countFormat,this.count),this.element.title=Object(r.x)(this.titleFormat,this.count),this.applyStyles()}style(e){this.badgeBackground=e.badgeBackground,this.badgeForeground=e.badgeForeground,this.badgeBorder=e.badgeBorder,this.applyStyles()}applyStyles(){if(this.element){const e=this.badgeBackground?this.badgeBackground.toString():"",t=this.badgeForeground?this.badgeForeground.toString():"",n=this.badgeBorder?this.badgeBorder.toString():"";this.element.style.backgroundColor=e,this.element.style.color=t,this.element.style.borderWidth=n?"1px":"",this.element.style.borderStyle=n?"solid":"",this.element.style.borderColor=n}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(62),r=n(24);function o(e){let t=JSON.parse(e);return t=function e(t,n=0){if(!t||n>200)return t;if("object"==typeof t){switch(t.$mid){case 1:return r.a.revive(t);case 2:return new RegExp(t.source,t.flags)}if(t instanceof i.a||t instanceof Uint8Array)return t;if(Array.isArray(t))for(let i=0;i<t.length;++i)t[i]=e(t[i],n+1);else for(const i in t)Object.hasOwnProperty.call(t,i)&&(t[i]=e(t[i],n+1))}return t}(t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return a}));var i=n(11),r=n(92),o=n(113);class s{constructor(e,t,n){this._legend=e,this._themeService=t,this._logService=n,this._hashTable=new c}getMetadata(e,t,n){const o=this._hashTable.get(e,t,n.id);let s;if(o)s=o.metadata,this._logService.getLevel()===r.c.Trace&&this._logService.trace(`SemanticTokensProviderStyling [CACHED] ${e} / ${t}: foreground ${i.B.getForeground(s)}, fontStyle ${i.B.getFontStyle(s).toString(2)}`);else{let o=this._legend.tokenTypes[e];const a=[];if(o){let e=t;for(let t=0;e>0&&t<this._legend.tokenModifiers.length;t++)1&e&&a.push(this._legend.tokenModifiers[t]),e>>=1;e>0&&this._logService.getLevel()===r.c.Trace&&(this._logService.trace(`SemanticTokensProviderStyling: unknown token modifier index: ${t.toString(2)} for legend: ${JSON.stringify(this._legend.tokenModifiers)}`),a.push("not-in-legend"));const i=this._themeService.getColorTheme().getTokenStyleMetadata(o,a,n.language);if(void 0===i)s=2147483647;else{if(s=0,void 0!==i.italic){s|=1|(i.italic?1:0)<<11}if(void 0!==i.bold){s|=2|(i.bold?2:0)<<11}if(void 0!==i.underline){s|=4|(i.underline?4:0)<<11}if(i.foreground){s|=8|i.foreground<<14}0===s&&(s=2147483647)}}else this._logService.getLevel()===r.c.Trace&&this._logService.trace(`SemanticTokensProviderStyling: unknown token type index: ${e} for legend: ${JSON.stringify(this._legend.tokenTypes)}`),s=2147483647,o="not-in-legend";this._hashTable.add(e,t,n.id,s),this._logService.getLevel()===r.c.Trace&&this._logService.trace(`SemanticTokensProviderStyling ${e} (${o}) / ${t} (${a.join(" ")}): foreground ${i.B.getForeground(s)}, fontStyle ${i.B.getFontStyle(s).toString(2)}`)}return s}}function a(e,t,n){const i=e.data,r=e.data.length/5|0,s=Math.max(Math.ceil(r/1024),400),a=[];let l=0,c=1,d=0;for(;l<r;){const e=l;let u=Math.min(e+s,r);if(u<r){let t=u;for(;t-1>e&&0===i[5*t];)t--;if(t-1===e){let e=u;for(;e+1<r&&0===i[5*e];)e++;u=e}else u=t}let h=new Uint32Array(4*(u-e)),f=0,g=0;for(;l<u;){const e=5*l,r=i[e],o=i[e+1],s=c+r,a=0===r?d+o:o,u=i[e+2],p=i[e+3],m=i[e+4],_=t.getMetadata(p,m,n);2147483647!==_&&(0===g&&(g=s),h[f]=s-g,h[f+1]=a,h[f+2]=a+u,h[f+3]=_,f+=4),c=s,d=a,l++}f!==h.length&&(h=h.subarray(0,f));const p=new o.a(g,new o.c(h));a.push(p)}return a}class l{constructor(e,t,n,i){this.tokenTypeIndex=e,this.tokenModifierSet=t,this.languageId=n,this.metadata=i,this.next=null}}class c{constructor(){this._elementsCount=0,this._currentLengthIndex=0,this._currentLength=c._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<c._SIZES.length?2/3*this._currentLength:0),this._elements=[],c._nullOutEntries(this._elements,this._currentLength)}static _nullOutEntries(e,t){for(let n=0;n<t;n++)e[n]=null}_hash2(e,t){return(e<<5)-e+t|0}_hashFunc(e,t,n){return this._hash2(this._hash2(e,t),n)%this._currentLength}get(e,t,n){const i=this._hashFunc(e,t,n);let r=this._elements[i];for(;r;){if(r.tokenTypeIndex===e&&r.tokenModifierSet===t&&r.languageId===n)return r;r=r.next}return null}add(e,t,n,i){if(this._elementsCount++,0!==this._growCount&&this._elementsCount>=this._growCount){const e=this._elements;this._currentLengthIndex++,this._currentLength=c._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<c._SIZES.length?2/3*this._currentLength:0),this._elements=[],c._nullOutEntries(this._elements,this._currentLength);for(const t of e){let e=t;for(;e;){const t=e.next;e.next=null,this._add(e),e=t}}}this._add(new l(e,t,n,i))}_add(e){const t=this._hashFunc(e.tokenTypeIndex,e.tokenModifierSet,e.languageId);e.next=this._elements[t],this._elements[t]=e}}c._SIZES=[3,7,13,31,61,127,251,509,1021,2039,4093,8191,16381,32749,65521,131071,262139,524287,1048573,2097143]},function(e,t,n){"use strict";n.d(t,"a",(function(){return L})),n.d(t,"b",(function(){return M})),n.d(t,"c",(function(){return D}));var i=n(6),r=n(2),o=n(12),s=n(15),a=n(27),l=n(29),c=n(11),d=n(148),u=n(162),h=n(43),f=n(19),g=n(26),p=n(18),m=n(92),_=n(155),b=n(170),v=n(209),y=n(234),w=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},C=function(e,t){return function(n,i){t(n,i,e)}};function S(e){return e.toString()}class k{constructor(e,t,n){this._modelEventListeners=new r.b,this.model=e,this._languageSelection=null,this._languageSelectionListener=null,this._modelEventListeners.add(e.onWillDispose(()=>t(e))),this._modelEventListeners.add(e.onDidChangeLanguage(t=>n(e,t)))}_disposeLanguageSelection(){this._languageSelectionListener&&(this._languageSelectionListener.dispose(),this._languageSelectionListener=null),this._languageSelection&&(this._languageSelection.dispose(),this._languageSelection=null)}dispose(){this._modelEventListeners.dispose(),this._disposeLanguageSelection()}setLanguage(e){this._disposeLanguageSelection(),this._languageSelection=e,this._languageSelectionListener=this._languageSelection.onDidChange(()=>this.model.setMode(e.languageIdentifier)),this.model.setMode(e.languageIdentifier)}}const x=o.d||o.f?1:2;let L=class e extends r.a{constructor(e,t,n,r,o){super(),this._configurationService=e,this._resourcePropertiesService=t,this._themeService=n,this._logService=r,this._undoRedoService=o,this._onModelAdded=this._register(new i.a),this.onModelAdded=this._onModelAdded.event,this._onModelRemoved=this._register(new i.a),this.onModelRemoved=this._onModelRemoved.event,this._onModelModeChanged=this._register(new i.a),this.onModelModeChanged=this._onModelModeChanged.event,this._modelCreationOptionsByLanguageAndResource=Object.create(null),this._models={},this._disposedModels=new Map,this._disposedModelsHeapSize=0,this._semanticStyling=this._register(new T(this._themeService,this._logService)),this._register(this._configurationService.onDidChangeConfiguration(()=>this._updateModelOptions())),this._updateModelOptions(),this._register(new E(this,this._themeService,this._configurationService,this._semanticStyling))}static _readModelOptions(e,t){let n=a.d.tabSize;if(e.editor&&void 0!==e.editor.tabSize){const t=parseInt(e.editor.tabSize,10);isNaN(t)||(n=t),n<1&&(n=1)}let i=n;if(e.editor&&void 0!==e.editor.indentSize&&"tabSize"!==e.editor.indentSize){const t=parseInt(e.editor.indentSize,10);isNaN(t)||(i=t),i<1&&(i=1)}let r=a.d.insertSpaces;e.editor&&void 0!==e.editor.insertSpaces&&(r="false"!==e.editor.insertSpaces&&Boolean(e.editor.insertSpaces));let o=x;const s=e.eol;"\r\n"===s?o=2:"\n"===s&&(o=1);let l=a.d.trimAutoWhitespace;e.editor&&void 0!==e.editor.trimAutoWhitespace&&(l="false"!==e.editor.trimAutoWhitespace&&Boolean(e.editor.trimAutoWhitespace));let c=a.d.detectIndentation;e.editor&&void 0!==e.editor.detectIndentation&&(c="false"!==e.editor.detectIndentation&&Boolean(e.editor.detectIndentation));let d=a.d.largeFileOptimizations;return e.editor&&void 0!==e.editor.largeFileOptimizations&&(d="false"!==e.editor.largeFileOptimizations&&Boolean(e.editor.largeFileOptimizations)),{isForSimpleWidget:t,tabSize:n,indentSize:i,insertSpaces:r,detectIndentation:c,defaultEOL:o,trimAutoWhitespace:l,largeFileOptimizations:d}}_getEOL(e,t){if(e)return this._resourcePropertiesService.getEOL(e,t);const n=this._configurationService.getValue("files.eol",{overrideIdentifier:t});return n&&"auto"!==n?n:3===o.a||2===o.a?"\n":"\r\n"}getCreationOptions(t,n,i){let r=this._modelCreationOptionsByLanguageAndResource[t+n];if(!r){const o=this._configurationService.getValue("editor",{overrideIdentifier:t,resource:n}),s=this._getEOL(n,t);r=e._readModelOptions({editor:o,eol:s},i),this._modelCreationOptionsByLanguageAndResource[t+n]=r}return r}_updateModelOptions(){const t=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);const n=Object.keys(this._models);for(let i=0,r=n.length;i<r;i++){const r=n[i],o=this._models[r],s=o.model.getLanguageIdentifier().language,a=o.model.uri,l=t[s+a],c=this.getCreationOptions(s,a,o.model.isForSimpleWidget);e._setModelOptionsForModel(o.model,c,l)}}static _setModelOptionsForModel(e,t,n){n&&n.defaultEOL!==t.defaultEOL&&1===e.getLineCount()&&e.setEOL(1===t.defaultEOL?0:1),n&&n.detectIndentation===t.detectIndentation&&n.insertSpaces===t.insertSpaces&&n.tabSize===t.tabSize&&n.indentSize===t.indentSize&&n.trimAutoWhitespace===t.trimAutoWhitespace||(t.detectIndentation?(e.detectIndentation(t.insertSpaces,t.tabSize),e.updateOptions({trimAutoWhitespace:t.trimAutoWhitespace})):e.updateOptions({insertSpaces:t.insertSpaces,tabSize:t.tabSize,indentSize:t.indentSize,trimAutoWhitespace:t.trimAutoWhitespace}))}_removeDisposedModel(e){const t=this._disposedModels.get(S(e));return t&&(this._disposedModelsHeapSize-=t.heapSize),this._disposedModels.delete(S(e)),t}_createModelData(e,t,n,i){const r=this.getCreationOptions(t.language,n,i),o=new l.b(e,r,t,n,this._undoRedoService);if(n&&this._disposedModels.has(S(n))){const e=this._removeDisposedModel(n),t=this._undoRedoService.getElements(n),i=function(e){const t=new b.a,n=e.createSnapshot();let i;for(;i=n.read();)t.update(i);return t.digest()}(o)===e.sha1;if(i||e.sharesUndoRedoStack){for(const e of t.past)Object(v.b)(e)&&e.matchesResource(n)&&e.setModel(o);for(const e of t.future)Object(v.b)(e)&&e.matchesResource(n)&&e.setModel(o);this._undoRedoService.setElementsValidFlag(n,!0,e=>Object(v.b)(e)&&e.matchesResource(n)),i&&(o._overwriteVersionId(e.versionId),o._overwriteAlternativeVersionId(e.alternativeVersionId),o._overwriteInitialUndoRedoSnapshot(e.initialUndoRedoSnapshot))}else null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}const s=S(o.uri);if(this._models[s])throw new Error("ModelService: Cannot add model because it already exists!");const a=new k(o,e=>this._onWillDispose(e),(e,t)=>this._onDidChangeLanguage(e,t));return this._models[s]=a,a}createModel(e,t,n,i=!1){let r;return t?(r=this._createModelData(e,t.languageIdentifier,n,i),this.setMode(r.model,t)):r=this._createModelData(e,d.b,n,i),this._onModelAdded.fire(r.model),r.model}setMode(e,t){if(!t)return;const n=this._models[S(e.uri)];n&&n.setLanguage(t)}getModels(){const e=[],t=Object.keys(this._models);for(let n=0,i=t.length;n<i;n++){const i=t[n];e.push(this._models[i].model)}return e}getModel(e){const t=S(e),n=this._models[t];return n?n.model:null}getSemanticTokensProviderStyling(e){return this._semanticStyling.get(e)}_onWillDispose(e){const t=S(e.uri),n=this._models[t];delete this._models[t],n.dispose(),delete this._modelCreationOptionsByLanguageAndResource[e.getLanguageIdentifier().language+e.uri],this._onModelRemoved.fire(e)}_onDidChangeLanguage(t,n){const i=n.oldLanguage,r=t.getLanguageIdentifier().language,o=this.getCreationOptions(i,t.uri,t.isForSimpleWidget),s=this.getCreationOptions(r,t.uri,t.isForSimpleWidget);e._setModelOptionsForModel(t,s,o),this._onModelModeChanged.fire({model:t,oldModeId:i})}};L=w([C(0,h.a),C(1,u.b),C(2,p.c),C(3,m.b),C(4,_.a)],L);const M="editor.semanticHighlighting";function D(e,t,n){var i;const r=null===(i=n.getValue(M,{overrideIdentifier:e.getLanguageIdentifier().language,resource:e.uri}))||void 0===i?void 0:i.enabled;return"boolean"==typeof r?r:t.getColorTheme().semanticHighlighting}class E extends r.a{constructor(e,t,n,i){super(),this._watchers=Object.create(null),this._semanticStyling=i;const r=e=>{this._watchers[e.uri.toString()]=new N(e,t,this._semanticStyling)},o=(e,t)=>{t.dispose(),delete this._watchers[e.uri.toString()]},s=()=>{for(let i of e.getModels()){const e=this._watchers[i.uri.toString()];D(i,t,n)?e||r(i):e&&o(i,e)}};this._register(e.onModelAdded(e=>{D(e,t,n)&&r(e)})),this._register(e.onModelRemoved(e=>{const t=this._watchers[e.uri.toString()];t&&o(e,t)})),this._register(n.onDidChangeConfiguration(e=>{e.affectsConfiguration(M)&&s()})),this._register(t.onDidColorThemeChange(s))}}class T extends r.a{constructor(e,t){super(),this._themeService=e,this._logService=t,this._caches=new WeakMap,this._register(this._themeService.onDidColorThemeChange(()=>{this._caches=new WeakMap}))}get(e){return this._caches.has(e)||this._caches.set(e,new y.a(e.getLegend(),this._themeService,this._logService)),this._caches.get(e)}}class O{constructor(e,t,n){this._provider=e,this.resultId=t,this.data=n}dispose(){this._provider.releaseDocumentSemanticTokens(this.resultId)}}class N extends r.a{constructor(e,t,n){super(),this._isDisposed=!1,this._model=e,this._semanticStyling=n,this._fetchDocumentSemanticTokens=this._register(new f.d(()=>this._fetchDocumentSemanticTokensNow(),300)),this._currentDocumentResponse=null,this._currentDocumentRequestCancellationTokenSource=null,this._documentProvidersChangeListeners=[],this._register(this._model.onDidChangeContent(()=>{this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule()}));const i=()=>{Object(r.f)(this._documentProvidersChangeListeners),this._documentProvidersChangeListeners=[];for(const t of c.l.all(e))"function"==typeof t.onDidChange&&this._documentProvidersChangeListeners.push(t.onDidChange(()=>this._fetchDocumentSemanticTokens.schedule(0)))};i(),this._register(c.l.onDidChange(()=>{i(),this._fetchDocumentSemanticTokens.schedule()})),this._register(t.onDidColorThemeChange(e=>{this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule()})),this._fetchDocumentSemanticTokens.schedule(0)}dispose(){this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),this._setDocumentSemanticTokens(null,null,null,[]),this._isDisposed=!0,super.dispose()}_fetchDocumentSemanticTokensNow(){if(this._currentDocumentRequestCancellationTokenSource)return;const e=this._getSemanticColoringProvider();if(!e)return;this._currentDocumentRequestCancellationTokenSource=new g.b;const t=[],n=this._model.onDidChangeContent(e=>{t.push(e)}),i=this._semanticStyling.get(e),r=this._currentDocumentResponse&&this._currentDocumentResponse.resultId||null;Promise.resolve(e.provideDocumentSemanticTokens(this._model,r,this._currentDocumentRequestCancellationTokenSource.token)).then(r=>{this._currentDocumentRequestCancellationTokenSource=null,n.dispose(),this._setDocumentSemanticTokens(e,r||null,i,t)},e=>{e&&"string"==typeof e.message&&-1!==e.message.indexOf("busy")||s.e(e),this._currentDocumentRequestCancellationTokenSource=null,n.dispose(),t.length>0&&(this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule())})}static _isSemanticTokens(e){return e&&!!e.data}static _isSemanticTokensEdits(e){return e&&Array.isArray(e.edits)}static _copy(e,t,n,i,r){for(let o=0;o<r;o++)n[i+o]=e[t+o]}_setDocumentSemanticTokens(e,t,n,i){const r=this._currentDocumentResponse;if(this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._isDisposed)e&&t&&e.releaseDocumentSemanticTokens(t.resultId);else if(e&&n)if(t){if(N._isSemanticTokensEdits(t)){if(!r)return void this._model.setSemanticTokens(null,!0);if(0===t.edits.length)t={resultId:t.resultId,data:r.data};else{let e=0;for(const n of t.edits)e+=(n.data?n.data.length:0)-n.deleteCount;const n=r.data,i=new Uint32Array(n.length+e);let o=n.length,s=i.length;for(let e=t.edits.length-1;e>=0;e--){const r=t.edits[e],a=o-(r.start+r.deleteCount);a>0&&(N._copy(n,o-a,i,s-a,a),s-=a),r.data&&(N._copy(r.data,0,i,s-r.data.length,r.data.length),s-=r.data.length),o=r.start}o>0&&N._copy(n,0,i,0,o),t={resultId:t.resultId,data:i}}}if(N._isSemanticTokens(t)){this._currentDocumentResponse=new O(e,t.resultId,t.data);const r=Object(y.b)(t,n,this._model.getLanguageIdentifier());if(i.length>0){for(const e of i)for(const t of r)for(const n of e.changes)t.applyEdit(n.range,n.text);this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule()}this._model.setSemanticTokens(r,!0)}else this._model.setSemanticTokens(null,!0)}else this._model.setSemanticTokens(null,!0);else this._model.setSemanticTokens(null,!1)}_getSemanticColoringProvider(){const e=c.l.ordered(this._model);return e.length>0?e[0]:null}}},function(e,t,n){"use strict";var i=n(1),r=n(34),o=n(49),s=n(6),a=n(150),l=n(2),c=n(12),d=n(0),u=n(25),h=n(71),f=n(41),g=n(40),p=n(18),m=n(112),_=(n(346),n(50)),b=n(56);class v extends o.b{constructor(e,t){super(),this._onDidChangeVisibility=new s.a,this.onDidChangeVisibility=this._onDidChangeVisibility.event,this._element=Object(i.p)(e,Object(i.a)(".monaco-dropdown")),this._label=Object(i.p)(this._element,Object(i.a)(".dropdown-label"));let n=t.labelRenderer;n||(n=e=>(e.textContent=t.label||"",null));for(const e of[i.c.CLICK,i.c.MOUSE_DOWN,_.a.Tap])this._register(Object(i.i)(this.element,e,e=>i.b.stop(e,!0)));for(const e of[i.c.MOUSE_DOWN,_.a.Tap])this._register(Object(i.i)(this._label,e,e=>{e instanceof MouseEvent&&e.detail>1||(this.visible?this.hide():this.show())}));this._register(Object(i.i)(this._label,i.c.KEY_UP,e=>{const t=new b.a(e);(t.equals(3)||t.equals(10))&&(i.b.stop(e,!0),this.visible?this.hide():this.show())}));const r=n(this._label);r&&this._register(r),this._register(_.b.addTarget(this._label))}get element(){return this._element}show(){this.visible||(this.visible=!0,this._onDidChangeVisibility.fire(!0))}hide(){this.visible&&(this.visible=!1,this._onDidChangeVisibility.fire(!1))}dispose(){super.dispose(),this.hide(),this.boxContainer&&(this.boxContainer.remove(),this.boxContainer=void 0),this.contents&&(this.contents.remove(),this.contents=void 0),this._label&&(this._label.remove(),this._label=void 0)}}class y extends v{constructor(e,t){super(e,t),this._actions=[],this._contextMenuProvider=t.contextMenuProvider,this.actions=t.actions||[],this.actionProvider=t.actionProvider,this.menuClassName=t.menuClassName||"",this.menuAsChild=!!t.menuAsChild}set menuOptions(e){this._menuOptions=e}get menuOptions(){return this._menuOptions}get actions(){return this.actionProvider?this.actionProvider.getActions():this._actions}set actions(e){this._actions=e}show(){super.show(),Object(i.e)(this.element,"active"),this._contextMenuProvider.showContextMenu({getAnchor:()=>this.element,getActions:()=>this.actions,getActionsContext:()=>this.menuOptions?this.menuOptions.context:null,getActionViewItem:e=>this.menuOptions&&this.menuOptions.actionViewItemProvider?this.menuOptions.actionViewItemProvider(e):void 0,getKeyBinding:e=>this.menuOptions&&this.menuOptions.getKeyBinding?this.menuOptions.getKeyBinding(e):void 0,getMenuClassName:()=>this.menuClassName,onHide:()=>this.onHide(),actionRunner:this.menuOptions?this.menuOptions.actionRunner:void 0,anchorAlignment:this.menuOptions?this.menuOptions.anchorAlignment:0,domForShadowRoot:this.menuAsChild?this.element:void 0})}hide(){super.hide()}onHide(){this.hide(),Object(i.Q)(this.element,"active")}}var w=n(14);class C extends m.b{constructor(e,t,n,i={}){super(null,e,i),this.options=i,this._onDidChangeVisibility=this._register(new s.a),this.menuActionsOrProvider=t,this.contextMenuProvider=n,this.options.actionRunner&&(this.actionRunner=this.options.actionRunner)}render(e){const t={contextMenuProvider:this.contextMenuProvider,labelRenderer:e=>{this.element=Object(i.p)(e,Object(i.a)("a.action-label"));const t=this.options.classNames?Object(w.b)(this.options.classNames):[];return t.find(e=>"icon"===e)||t.push("codicon"),Object(i.f)(this.element,...t),this.element.tabIndex=0,this.element.setAttribute("role","button"),this.element.setAttribute("aria-haspopup","true"),this.element.setAttribute("aria-expanded","false"),this.element.title=this._action.label||"",null},menuAsChild:this.options.menuAsChild};if(Array.isArray(this.menuActionsOrProvider)?t.actions=this.menuActionsOrProvider:t.actionProvider=this.menuActionsOrProvider,this.dropdownMenu=this._register(new y(e,t)),this._register(this.dropdownMenu.onDidChangeVisibility(e=>{var t;null===(t=this.element)||void 0===t||t.setAttribute("aria-expanded",`${e}`),this._onDidChangeVisibility.fire(e)})),this.dropdownMenu.menuOptions={actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,getKeyBinding:this.options.keybindingProvider,context:this._context},this.options.anchorAlignmentProvider){const e=this;this.dropdownMenu.menuOptions=Object.assign(Object.assign({},this.dropdownMenu.menuOptions),{get anchorAlignment(){return e.options.anchorAlignmentProvider()}})}}setActionContext(e){super.setActionContext(e),this.dropdownMenu&&(this.dropdownMenu.menuOptions?this.dropdownMenu.menuOptions.context=e:this.dropdownMenu.menuOptions={context:e})}}n.d(t,"c",(function(){return L})),n.d(t,"a",(function(){return E})),n.d(t,"b",(function(){return T}));var S=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},k=function(e,t){return function(n,i){t(n,i,e)}};class x extends s.a{constructor(e){super(),this._subscriptions=new l.b,this._isPressed=!1,this._suppressAltKeyUp=!1,this._subscriptions.add(Object(r.a)(document.body,"keydown")(e=>{this.isPressed=e.altKey||(c.i||c.d)&&e.shiftKey})),this._subscriptions.add(Object(r.a)(document.body,"keyup")(e=>{this.isPressed&&this._suppressAltKeyUp&&e.preventDefault(),this._suppressAltKeyUp=!1,this.isPressed=!1})),this._subscriptions.add(Object(r.a)(document.body,"mouseleave")(e=>this.isPressed=!1)),this._subscriptions.add(Object(r.a)(document.body,"blur")(e=>this.isPressed=!1)),this._subscriptions.add(e.onDidContextMenu(()=>this.isPressed=!1))}get isPressed(){return this._isPressed}set isPressed(e){this._isPressed=e,this.fire(this._isPressed)}suppressAltKeyUp(){this._suppressAltKeyUp=!0}static getInstance(e){return x.instance||(x.instance=new x(e)),x.instance}dispose(){super.dispose(),this._subscriptions.dispose()}}function L(e,t,n,i){const r=e.getActions(t);return function(e,t,n,i=(e=>"navigation"===e)){for(let r of e){let[e,s]=r;if(n&&(s=s.map(e=>e instanceof u.c&&e.alt?e.alt:e)),i(e)){(Array.isArray(t)?t:t.primary).unshift(...s)}else{const e=Array.isArray(t)?t:t.secondary;e.length>0&&e.push(new o.c),e.push(...s)}}}(r,n,!1,i),function(e){const t=new l.b;for(const[,n]of e)for(const e of n)t.add(e);return t}(r)}const M=new a.a("menu-item-action-item-icon-"),D=new Map;let E=class extends m.a{constructor(e,t,n,i){super(void 0,e,{icon:!(!e.class&&!e.item.icon),label:!e.class&&!e.item.icon}),this._action=e,this._keybindingService=t,this._notificationService=n,this._wantsAltCommand=!1,this._itemClassDispose=this._register(new l.d),this._altKey=x.getInstance(i)}get _commandAction(){return this._wantsAltCommand&&this._action.alt||this._action}onClick(e){e.preventDefault(),e.stopPropagation(),this._altKey.isPressed&&this._altKey.suppressAltKeyUp(),this.actionRunner.run(this._commandAction,this._context).then(void 0,e=>this._notificationService.error(e))}render(e){super.render(e),this._updateItemClass(this._action.item);let t=!1,n=this._altKey.isPressed;const i=()=>{const e=t&&n;e!==this._wantsAltCommand&&(this._wantsAltCommand=e,this.updateLabel(),this.updateTooltip(),this.updateClass())};this._action.alt&&this._register(this._altKey.event(e=>{n=e,i()})),this._register(Object(r.a)(e,"mouseleave")(e=>{t=!1,i()})),this._register(Object(r.a)(e,"mouseenter")(e=>{t=!0,i()}))}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this._commandAction.label)}updateTooltip(){if(this.label){const e=this._keybindingService.lookupKeybinding(this._commandAction.id),t=e&&e.getLabel(),n=this._commandAction.tooltip||this._commandAction.label;this.label.title=t?Object(d.a)("titleAndKb","{0} ({1})",n,t):n}}updateClass(){this.options.icon&&(this._commandAction!==this._action?this._action.alt&&this._updateItemClass(this._action.alt.item):this._action.alt&&this._updateItemClass(this._action.item))}_updateItemClass(e){var t,n;this._itemClassDispose.value=void 0;const r=this._commandAction.checked&&(null===(t=e.toggled)||void 0===t?void 0:t.icon)?e.toggled.icon:e.icon;if(p.e.isThemeIcon(r)){const e=p.e.asClassName(r);this.label&&e&&(Object(i.f)(this.label,e),this._itemClassDispose.value=Object(l.h)(()=>{this.label&&Object(i.R)(this.label,e)}))}else if(r){let e;if(null===(n=r.dark)||void 0===n?void 0:n.scheme){const t=r.dark.toString();D.has(t)?e=D.get(t):(e=M.nextId(),Object(i.u)(`.icon.${e}`,`background-image: ${Object(i.q)(r.light||r.dark)}`),Object(i.u)(`.vs-dark .icon.${e}, .hc-black .icon.${e}`,`background-image: ${Object(i.q)(r.dark)}`),D.set(t,e)),this.label&&(Object(i.f)(this.label,"icon",e),this._itemClassDispose.value=Object(l.h)(()=>{this.label&&Object(i.R)(this.label,"icon",e)}))}}}};E=S([k(1,f.a),k(2,g.a),k(3,h.a)],E);let T=class extends C{constructor(e,t,n){var r;const o=[];if(e.item.icon)if(p.e.isThemeIcon(e.item.icon))o.push(p.e.asClassName(e.item.icon));else if(null===(r=e.item.icon.dark)||void 0===r?void 0:r.scheme){const t=e.item.icon.dark.toString();if(D.has(t))o.push("icon",D.get(t));else{const n=M.nextId();o.push("icon",n),Object(i.u)(`.icon.${n}`,`background-image: ${Object(i.q)(e.item.icon.light||e.item.icon.dark)}`),Object(i.u)(`.vs-dark .icon.${n}, .hc-black .icon.${n}`,`background-image: ${Object(i.q)(e.item.icon.dark)}`),D.set(t,n)}}super(e,e.actions,n,{classNames:o})}};T=S([k(1,g.a),k(2,h.a)],T)},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){},function(e,t,n){var i=n(240),r=n(660),o=n(661),s=n(662),a=n(663),l=n(664);function c(e){var t=this.__data__=new i(e);this.size=t.size}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=s,c.prototype.has=a,c.prototype.set=l,e.exports=c},function(e,t,n){var i=n(655),r=n(656),o=n(657),s=n(658),a=n(659);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=r,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,e.exports=l},function(e,t,n){var i=n(191);e.exports=function(e,t){for(var n=e.length;n--;)if(i(e[n][0],t))return n;return-1}},function(e,t,n){var i=n(179)(Object,"create");e.exports=i},function(e,t,n){var i=n(679);e.exports=function(e,t){var n=e.__data__;return i(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){var i=n(245),r=n(191),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var s=e[t];o.call(e,t)&&r(s,n)&&(void 0!==n||t in e)||i(e,t,n)}},function(e,t,n){var i=n(356);e.exports=function(e,t,n){"__proto__"==t&&i?i(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t){var n=9007199254740991,i=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?n:t)&&("number"==r||"symbol"!=r&&i.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var i=n(358)(Object.getPrototypeOf,Object);e.exports=i},function(e,t,n){var i=n(306),r=n(708)(i);e.exports=r},function(e,t,n){var i=n(361),r=n(709),o=n(160),s=n(86);e.exports=function(e,t){return(s(e)?i:r)(e,o(t,3))}},function(e,t,n){var i=n(86),r=n(310),o=n(722),s=n(378);e.exports=function(e,t){return i(e)?e:r(e,t)?[e]:o(s(e))}},function(e,t){e.exports=function(e,t){for(var n=-1,i=null==e?0:e.length,r=Array(i);++n<i;)r[n]=t(e[n],n,e);return r}},function(e,t){e.exports=function(e){return void 0===e}},function(e,t,n){var i=n(253),r=n(160),o=n(383),s=n(86);e.exports=function(e,t){return(s(e)?i:o)(e,r(t,3))}},function(e,t,n){var i=n(730),r=n(250),o=n(160),s=n(731),a=n(86);e.exports=function(e,t,n){var l=a(e)?i:s,c=arguments.length<3;return l(e,o(t,4),n,c,r)}},function(e,t,n){var i=n(182),r=n(387),o=n(388);e.exports=function(e,t){return o(r(e,t,i),e+"")}},function(e,t,n){var i=n(749),r=n(158);e.exports=function(e){return null==e?[]:i(e,r(e))}},function(e,t,n){var i=n(191),r=n(159),o=n(246),s=n(132);e.exports=function(e,t,n){if(!s(n))return!1;var a=typeof t;return!!("number"==a?r(n)&&o(t,n.length):"string"==a&&t in n)&&i(n[t],e)}},function(e,t,n){"use strict";var i=n(74);e.exports={longestPath:function(e){var t={};i.forEach(e.sources(),(function n(r){var o=e.node(r);if(i.has(t,r))return o.rank;t[r]=!0;var s=i.min(i.map(e.outEdges(r),(function(t){return n(t.w)-e.edge(t).minlen})));return s!==Number.POSITIVE_INFINITY&&null!=s||(s=0),o.rank=s}))},slack:function(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}}},function(e,t,n){"use strict";var i=n(75);e.exports={longestPath:function(e){var t={};i.forEach(e.sources(),(function n(r){var o=e.node(r);if(i.has(t,r))return o.rank;t[r]=!0;var s=i.min(i.map(e.outEdges(r),(function(t){return n(t.w)-e.edge(t).minlen})));return s!==Number.POSITIVE_INFINITY&&null!=s||(s=0),o.rank=s}))},slack:function(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(135),r=n(221),o=n(144),s=n(263);t.default=function(e,t,n,a){if(void 0===n&&(n=0),void 0===a&&(a=1),"number"!=typeof e)return s.default(e,{a:t});var l=r.default.set({r:i.default.channel.clamp.r(e),g:i.default.channel.clamp.g(t),b:i.default.channel.clamp.b(n),a:i.default.channel.clamp.a(a)});return o.default.stringify(l)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(135),r=n(144);t.default=function(e,t){var n=r.default.parse(e);for(var o in t)n[o]=i.default.channel.clamp[o](t[o]);return r.default.stringify(n)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(46),r=n(6);const o={JSONContribution:"base.contributions.json"};const s=new class{constructor(){this._onDidChangeSchema=new r.a,this.schemasById={}}registerSchema(e,t){var n;this.schemasById[(n=e,n.length>0&&"#"===n.charAt(n.length-1)?n.substring(0,n.length-1):n)]=t,this._onDidChangeSchema.fire(e)}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}};i.a.add(o.JSONContribution,s)},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o}));const i=Object.prototype.hasOwnProperty;function r(e,t){for(let n in e)if(i.call(e,n)){if(!1===t({key:n,value:e[n]},(function(){delete e[n]})))return}}class o{constructor(){this.map=new Map}add(e,t){let n=this.map.get(e);n||(n=new Set,this.map.set(e,n)),n.add(t)}delete(e,t){const n=this.map.get(e);n&&(n.delete(t),0===n.size&&this.map.delete(e))}forEach(e,t){const n=this.map.get(e);n&&n.forEach(t)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return E}));var i=n(14),r=n(8),o=n(228),s=n(45),a=n(65),l=n(19);const c="**",d="/",u="[/\\\\]",h="[^/\\\\]",f=/\//g;function g(e){switch(e){case 0:return"";case 1:return`${h}*?`;default:return`(?:${u}|${h}+${u}|${u}${h}+)*?`}}function p(e,t){if(!e)return[];const n=[];let i=!1,r=!1,o="";for(const s of e){switch(s){case t:if(!i&&!r){n.push(o),o="";continue}break;case"{":i=!0;break;case"}":i=!1;break;case"[":r=!0;break;case"]":r=!1}o+=s}return o&&n.push(o),n}const m=/^\*\*\/\*\.[\w\.-]+$/,_=/^\*\*\/([\w\.-]+)\/?$/,b=/^{\*\*\/[\*\.]?[\w\.-]+\/?(,\*\*\/[\*\.]?[\w\.-]+\/?)*}$/,v=/^{\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?(,\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?)*}$/,y=/^\*\*((\/[\w\.-]+)+)\/?$/,w=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,C=new a.a(1e4),S=function(){return!1},k=function(){return null};function x(e,t){if(!e)return k;let n;const o=`${n=(n="string"!=typeof e?e.pattern:e).trim()}_${!!t.trimForExclusions}`;let s,a=C.get(o);if(a)return L(a,e);if(m.test(n)){const e=n.substr(4);a=function(t,i){return"string"==typeof t&&t.endsWith(e)?n:null}}else a=(s=_.exec(M(n,t)))?function(e,t){const n=`/${e}`,i=`\\${e}`,r=function(r,o){return"string"!=typeof r?null:o?o===e?t:null:r===e||r.endsWith(n)||r.endsWith(i)?t:null},o=[e];return r.basenames=o,r.patterns=[t],r.allBasenames=o,r}(s[1],n):(t.trimForExclusions?v:b).test(n)?function(e,t){const n=T(e.slice(1,-1).split(",").map(e=>x(e,t)).filter(e=>e!==k),e),r=n.length;if(!r)return k;if(1===r)return n[0];const o=function(t,i){for(let r=0,o=n.length;r<o;r++)if(n[r](t,i))return e;return null},s=i.i(n,e=>!!e.allBasenames);s&&(o.allBasenames=s.allBasenames);const a=n.reduce((e,t)=>t.allPaths?e.concat(t.allPaths):e,[]);a.length&&(o.allPaths=a);return o}(n,t):(s=y.exec(M(n,t)))?D(s[1].substr(1),n,!0):(s=w.exec(M(n,t)))?D(s[1],n,!1):function(e){try{const t=new RegExp(`^${function e(t){if(!t)return"";let n="";const i=p(t,d);if(i.every(e=>e===c))n=".*";else{let t=!1;i.forEach((o,s)=>{if(o===c)return void(t||(n+=g(2),t=!0));let a=!1,l="",f=!1,m="";for(const t of o)if("}"!==t&&a)l+=t;else if(!f||"]"===t&&m)switch(t){case"{":a=!0;continue;case"[":f=!0;continue;case"}":const i=`(?:${p(l,",").map(t=>e(t)).join("|")})`;n+=i,a=!1,l="";break;case"]":n+="["+m+"]",f=!1,m="";break;case"?":n+=h;continue;case"*":n+=g(1);continue;default:n+=r.v(t)}else{let e;m+=e="-"===t?t:"^"!==t&&"!"!==t||m?t===d?"":r.v(t):"^"}s<i.length-1&&(i[s+1]!==c||s+2<i.length)&&(n+=u),t=!1})}return n}(e)}$`);return function(n){return t.lastIndex=0,"string"==typeof n&&t.test(n)?e:null}}catch(e){return k}}(n);return C.set(o,a),L(a,e)}function L(e,t){return"string"==typeof t?e:function(n,i){return o.a(n,t.base)?e(s.f(t.base,n),i):null}}function M(e,t){return t.trimForExclusions&&e.endsWith("/**")?e.substr(0,e.length-2):e}function D(e,t,n){const i=s.h!==s.e.sep?e.replace(f,s.h):e,r=s.h+i,o=n?function(e,n){return"string"!=typeof e||e!==i&&!e.endsWith(r)?null:t}:function(e,n){return"string"==typeof e&&e===i?t:null};return o.allPaths=[(n?"*/":"./")+e],o}function E(e,t,n){return!(!e||"string"!=typeof t)&&function(e,t={}){if(!e)return S;if("string"==typeof e||function(e){const t=e;return t&&"string"==typeof t.base&&"string"==typeof t.pattern}(e)){const n=x(e,t);if(n===k)return S;const i=function(e,t){return!!n(e,t)};return n.allBasenames&&(i.allBasenames=n.allBasenames),n.allPaths&&(i.allPaths=n.allPaths),i}return function(e,t){const n=T(Object.getOwnPropertyNames(e).map(n=>(function(e,t,n){if(!1===t)return k;const i=x(e,n);if(i===k)return k;if("boolean"==typeof t)return i;if(t){const n=t.when;if("string"==typeof n){const t=(t,r,o,s)=>{if(!s||!i(t,r))return null;const a=s(n.replace("$(basename)",o));return Object(l.i)(a)?a.then(t=>t?e:null):a?e:null};return t.requiresSiblings=!0,t}}return i})(n,e[n],t)).filter(e=>e!==k)),r=n.length;if(!r)return k;if(!n.some(e=>!!e.requiresSiblings)){if(1===r)return n[0];const e=function(e,t){for(let i=0,r=n.length;i<r;i++){const r=n[i](e,t);if(r)return r}return null},t=i.i(n,e=>!!e.allBasenames);t&&(e.allBasenames=t.allBasenames);const o=n.reduce((e,t)=>t.allPaths?e.concat(t.allPaths):e,[]);return o.length&&(e.allPaths=o),e}const o=function(e,t,i){let r=void 0;for(let o=0,a=n.length;o<a;o++){const a=n[o];a.requiresSiblings&&i&&(t||(t=s.a(e)),r||(r=t.substr(0,t.length-s.c(e).length)));const l=a(e,t,r,i);if(l)return l}return null},a=i.i(n,e=>!!e.allBasenames);a&&(o.allBasenames=a.allBasenames);const c=n.reduce((e,t)=>t.allPaths?e.concat(t.allPaths):e,[]);c.length&&(o.allPaths=c);return o}(e,t)}(e)(t,void 0,n)}function T(e,t){const n=e.filter(e=>!!e.basenames);if(n.length<2)return e;const i=n.reduce((e,t)=>{const n=t.basenames;return n?e.concat(n):e},[]);let r;if(t){r=[];for(let e=0,n=i.length;e<n;e++)r.push(t)}else r=n.reduce((e,t)=>{const n=t.patterns;return n?e.concat(n):e},[]);const o=function(e,t){if("string"!=typeof e)return null;if(!t){let n;for(n=e.length;n>0;n--){const t=e.charCodeAt(n-1);if(47===t||92===t)break}t=e.substr(n)}const n=i.indexOf(t);return-1!==n?r[n]:null};o.basenames=i,o.patterns=r,o.allBasenames=i;const s=e.filter(e=>!e.basenames);return s.push(o),s}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n(2);class r extends i.a{constructor(e,t,n){super(),this.referenceDomElement=e,this.changeCallback=n,this.width=-1,this.height=-1,this.resizeObserver=null,this.measureReferenceDomElementToken=-1,this.measureReferenceDomElement(!1,t)}dispose(){this.stopObserving(),super.dispose()}getWidth(){return this.width}getHeight(){return this.height}startObserving(){"undefined"!=typeof ResizeObserver?!this.resizeObserver&&this.referenceDomElement&&(this.resizeObserver=new ResizeObserver(e=>{e&&e[0]&&e[0].contentRect?this.observe({width:e[0].contentRect.width,height:e[0].contentRect.height}):this.observe()}),this.resizeObserver.observe(this.referenceDomElement)):-1===this.measureReferenceDomElementToken&&(this.measureReferenceDomElementToken=setInterval(()=>this.observe(),100))}stopObserving(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),-1!==this.measureReferenceDomElementToken&&(clearInterval(this.measureReferenceDomElementToken),this.measureReferenceDomElementToken=-1)}observe(e){this.measureReferenceDomElement(!0,e)}measureReferenceDomElement(e,t){let n=0,i=0;t?(n=t.width,i=t.height):this.referenceDomElement&&(n=this.referenceDomElement.clientWidth,i=this.referenceDomElement.clientHeight),n=Math.max(5,n),i=Math.max(5,i),this.width===n&&this.height===i||(this.width=n,this.height=i,e&&this.changeCallback())}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));class i{constructor(e,t,n,i,r,o){this.id=e,this.label=t,this.alias=n,this._precondition=i,this._run=r,this._contextKeyService=o}isSupported(){return this._contextKeyService.contextMatchesRules(this._precondition)}run(){return this.isSupported()?this._run():Promise.resolve(void 0)}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o}));var i=n(121);class r{constructor(e,t){this.index=e,this.remainder=t}}class o{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=Object(i.a)(e);const n=this.values,r=this.prefixSum,o=t.length;return 0!==o&&(this.values=new Uint32Array(n.length+o),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e),e+o),this.values.set(t,e),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}changeValue(e,t){return e=Object(i.a)(e),t=Object(i.a)(t),this.values[e]!==t&&(this.values[e]=t,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)}removeValues(e,t){e=Object(i.a)(e),t=Object(i.a)(t);const n=this.values,r=this.prefixSum;if(e>=n.length)return!1;let o=n.length-e;return t>=o&&(t=o),0!==t&&(this.values=new Uint32Array(n.length-t),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalValue(){return 0===this.values.length?0:this._getAccumulatedValue(this.values.length-1)}getAccumulatedValue(e){return e<0?0:(e=Object(i.a)(e),this._getAccumulatedValue(e))}_getAccumulatedValue(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let n=t;n<=e;n++)this.prefixSum[n]=this.prefixSum[n-1]+this.values[n];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalValue();let t=0,n=this.values.length-1,i=0,o=0,s=0;for(;t<=n;)if(i=t+(n-t)/2|0,e<(s=(o=this.prefixSum[i])-this.values[i]))n=i-1;else{if(!(e>=o))break;t=i+1}return new r(i,e-s)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var i=n(48),r=n(18),o=n(47),s=n(2),a=n(100),l=n(20),c=n(126);class d{constructor(e){this.options=e,this.rangeHighlightDecorationId=void 0}provide(e,t){var n;const i=new s.b;e.canAcceptInBackground=!!(null===(n=this.options)||void 0===n?void 0:n.canAcceptInBackground),e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;const r=i.add(new s.d);return r.value=this.doProvide(e,t),i.add(this.onDidActiveTextEditorControlChange(()=>{r.value=void 0,r.value=this.doProvide(e,t)})),i}doProvide(e,t){const n=new s.b,i=this.activeTextEditorControl;if(i&&this.canProvideWithTextEditor(i)){const r=Object(a.a)(i);if(r){let e=Object(l.n)(i.saveViewState());n.add(r.onDidChangeCursorPosition(()=>{e=Object(l.n)(i.saveViewState())})),n.add(Object(c.a)(t.onCancellationRequested)(()=>{e&&i===this.activeTextEditorControl&&i.restoreViewState(e)}))}n.add(Object(s.h)(()=>this.clearDecorations(i))),n.add(this.provideWithTextEditor(i,e,t))}else n.add(this.provideWithoutTextEditor(e,t));return n}canProvideWithTextEditor(e){return!0}gotoLocation(e,t){e.setSelection(t.range),e.revealRangeInCenter(t.range,0),t.preserveFocus||e.focus()}getModel(e){var t;return Object(a.c)(e)?null===(t=e.getModel())||void 0===t?void 0:t.modified:e.getModel()}addDecorations(e,t){e.changeDecorations(e=>{const n=[];this.rangeHighlightDecorationId&&(n.push(this.rangeHighlightDecorationId.overviewRulerDecorationId),n.push(this.rangeHighlightDecorationId.rangeHighlightId),this.rangeHighlightDecorationId=void 0);const s=[{range:t,options:{className:"rangeHighlight",isWholeLine:!0}},{range:t,options:{overviewRuler:{color:Object(r.h)(o.s),position:i.d.Full}}}],[a,l]=e.deltaDecorations(n,s);this.rangeHighlightDecorationId={rangeHighlightId:a,overviewRulerDecorationId:l}})}clearDecorations(e){const t=this.rangeHighlightDecorationId;t&&(e.changeDecorations(e=>{e.deltaDecorations([t.overviewRulerDecorationId,t.rangeHighlightId],[])}),this.rangeHighlightDecorationId=void 0)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var i=n(2),r=n(6),o=n(12);function s(e,t){return!!e[t]}class a{constructor(e,t){this.target=e.target,this.hasTriggerModifier=s(e.event,t.triggerModifier),this.hasSideBySideModifier=s(e.event,t.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=e.event.detail<=1}}class l{constructor(e,t){this.keyCodeIsTriggerKey=e.keyCode===t.triggerKey,this.keyCodeIsSideBySideKey=e.keyCode===t.triggerSideBySideKey,this.hasTriggerModifier=s(e,t.triggerModifier)}}class c{constructor(e,t,n,i){this.triggerKey=e,this.triggerModifier=t,this.triggerSideBySideKey=n,this.triggerSideBySideModifier=i}equals(e){return this.triggerKey===e.triggerKey&&this.triggerModifier===e.triggerModifier&&this.triggerSideBySideKey===e.triggerSideBySideKey&&this.triggerSideBySideModifier===e.triggerSideBySideModifier}}function d(e){return"altKey"===e?o.f?new c(57,"metaKey",6,"altKey"):new c(5,"ctrlKey",6,"altKey"):o.f?new c(6,"altKey",57,"metaKey"):new c(6,"altKey",5,"ctrlKey")}class u extends i.a{constructor(e){super(),this._onMouseMoveOrRelevantKeyDown=this._register(new r.a),this.onMouseMoveOrRelevantKeyDown=this._onMouseMoveOrRelevantKeyDown.event,this._onExecute=this._register(new r.a),this.onExecute=this._onExecute.event,this._onCancel=this._register(new r.a),this.onCancel=this._onCancel.event,this._editor=e,this._opts=d(this._editor.getOption(61)),this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._register(this._editor.onDidChangeConfiguration(e=>{if(e.hasChanged(61)){const e=d(this._editor.getOption(61));if(this._opts.equals(e))return;this._opts=e,this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._onCancel.fire()}})),this._register(this._editor.onMouseMove(e=>this._onEditorMouseMove(new a(e,this._opts)))),this._register(this._editor.onMouseDown(e=>this._onEditorMouseDown(new a(e,this._opts)))),this._register(this._editor.onMouseUp(e=>this._onEditorMouseUp(new a(e,this._opts)))),this._register(this._editor.onKeyDown(e=>this._onEditorKeyDown(new l(e,this._opts)))),this._register(this._editor.onKeyUp(e=>this._onEditorKeyUp(new l(e,this._opts)))),this._register(this._editor.onMouseDrag(()=>this._resetHandler())),this._register(this._editor.onDidChangeCursorSelection(e=>this._onDidChangeCursorSelection(e))),this._register(this._editor.onDidChangeModel(e=>this._resetHandler())),this._register(this._editor.onDidChangeModelContent(()=>this._resetHandler())),this._register(this._editor.onDidScrollChange(e=>{(e.scrollTopChanged||e.scrollLeftChanged)&&this._resetHandler()}))}_onDidChangeCursorSelection(e){e.selection&&e.selection.startColumn!==e.selection.endColumn&&this._resetHandler()}_onEditorMouseMove(e){this._lastMouseMoveEvent=e,this._onMouseMoveOrRelevantKeyDown.fire([e,null])}_onEditorMouseDown(e){this._hasTriggerKeyOnMouseDown=e.hasTriggerModifier,this._lineNumberOnMouseDown=e.target.position?e.target.position.lineNumber:0}_onEditorMouseUp(e){const t=e.target.position?e.target.position.lineNumber:0;this._hasTriggerKeyOnMouseDown&&this._lineNumberOnMouseDown&&this._lineNumberOnMouseDown===t&&this._onExecute.fire(e)}_onEditorKeyDown(e){this._lastMouseMoveEvent&&(e.keyCodeIsTriggerKey||e.keyCodeIsSideBySideKey&&e.hasTriggerModifier)?this._onMouseMoveOrRelevantKeyDown.fire([this._lastMouseMoveEvent,e]):e.hasTriggerModifier&&this._onCancel.fire()}_onEditorKeyUp(e){e.keyCodeIsTriggerKey&&this._onCancel.fire()}_resetHandler(){this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._onCancel.fire()}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n(17);const r=Object(i.c)("markerDecorationsService")},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n(10),r=n(3),o=n(84),s=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};class a{provideSelectionRanges(e,t){return s(this,void 0,void 0,(function*(){const n=[];for(const i of t){const t=[];n.push(t);const r=new Map;yield new Promise(t=>a._bracketsRightYield(t,0,e,i,r)),yield new Promise(n=>a._bracketsLeftYield(n,0,e,i,r,t))}return n}))}static _bracketsRightYield(e,t,n,i,r){const s=new Map,l=Date.now();for(;;){if(t>=a._maxRounds){e();break}if(!i){e();break}let c=n.findNextBracket(i);if(!c){e();break}if(Date.now()-l>a._maxDuration){setTimeout(()=>a._bracketsRightYield(e,t+1,n,i,r));break}const d=c.close[0];if(c.isOpen){let e=s.has(d)?s.get(d):0;s.set(d,e+1)}else{let e=s.has(d)?s.get(d):0;if(e-=1,s.set(d,Math.max(0,e)),e<0){let e=r.get(d);e||(e=new o.a,r.set(d,e)),e.push(c.range)}}i=c.range.getEndPosition()}}static _bracketsLeftYield(e,t,n,i,o,s){const l=new Map,c=Date.now();for(;;){if(t>=a._maxRounds&&0===o.size){e();break}if(!i){e();break}let d=n.findPrevBracket(i);if(!d){e();break}if(Date.now()-c>a._maxDuration){setTimeout(()=>a._bracketsLeftYield(e,t+1,n,i,o,s));break}const u=d.close[0];if(d.isOpen){let e=l.has(u)?l.get(u):0;if(e-=1,l.set(u,Math.max(0,e)),e<0){let e=o.get(u);if(e){let t=e.shift();0===e.size&&o.delete(u);const i=r.a.fromPositions(d.range.getEndPosition(),t.getStartPosition()),l=r.a.fromPositions(d.range.getStartPosition(),t.getEndPosition());s.push({range:i}),s.push({range:l}),a._addBracketLeading(n,l,s)}}}else{let e=l.has(u)?l.get(u):0;l.set(u,e+1)}i=d.range.getStartPosition()}}static _addBracketLeading(e,t,n){if(t.startLineNumber===t.endLineNumber)return;const o=t.startLineNumber,s=e.getLineFirstNonWhitespaceColumn(o);0!==s&&s!==t.startColumn&&(n.push({range:r.a.fromPositions(new i.a(o,s),t.getEndPosition())}),n.push({range:r.a.fromPositions(new i.a(o,1),t.getEndPosition())}));const a=o-1;if(a>0){const o=e.getLineFirstNonWhitespaceColumn(a);o===t.startColumn&&o!==e.getLineLastNonWhitespaceColumn(a)&&(n.push({range:r.a.fromPositions(new i.a(a,o),t.getEndPosition())}),n.push({range:r.a.fromPositions(new i.a(a,1),t.getEndPosition())}))}}}a._maxDuration=30,a._maxRounds=2},function(e,t,n){var i;self.MonacoEnvironment=(i={editorWorkerService:"editor.worker.js",json:"json.worker.js"},{getWorkerUrl:function(e,t){var r=n.p,o=(r?r.replace(/\/$/,"")+"/":"")+i[t];if(/^((http:)|(https:)|(file:)|(\/\/))/.test(o)){var s=String(window.location),a=s.substr(0,s.length-window.location.hash.length-window.location.search.length-window.location.pathname.length);if(o.substring(0,a.length)!==a){var l=new Blob(["/*"+t+'*/importScripts("'+o+'");'],{type:"application/javascript"});return URL.createObjectURL(l)}}return o}}),n(275),n(276),n(277),n(332),n(278),n(279),n(327),n(222),n(330),n(280),n(85),n(281),n(333),n(168),n(324),n(282),n(328),n(202),n(334),n(225),n(223),n(323),n(283),n(335),n(284),n(285),n(325),n(336),n(286),n(287),n(329),n(326),n(337),n(331),n(338),n(339),n(151),n(322),n(288),n(198),n(289),n(290),n(291),n(292),n(172),n(293),e.exports=n(629),n(294)},function(e,t,n){"use strict";n.r(t);n(569);var i=n(1),r=n(31),o=n(185),s=n(55),a=n(69),l=n(2),c=n(12),d=n(8),u=n(24),h=n(4),f=n(7),g=n(198),p=n(9),m=n(17),_=n(41),b=n(66),v=n(5),y=n(18),w=n(44),C=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},S=function(e,t){return function(n,i){t(n,i,e)}};const k=new p.c("accessibilityHelpWidgetVisible",!1);let x=class e extends l.a{constructor(e,t){super(),this._editor=e,this._widget=this._register(t.createInstance(L,this._editor))}static get(t){return t.getContribution(e.ID)}show(){this._widget.show()}hide(){this._widget.hide()}};x.ID="editor.contrib.accessibilityHelpController",x=C([S(1,m.a)],x);let L=class e extends a.a{constructor(e,t,n,o){super(),this._contextKeyService=t,this._keybindingService=n,this._openerService=o,this._editor=e,this._isVisibleKey=k.bindTo(this._contextKeyService),this._domNode=Object(r.b)(document.createElement("div")),this._domNode.setClassName("accessibilityHelpWidget"),this._domNode.setDisplay("none"),this._domNode.setAttribute("role","dialog"),this._domNode.setAttribute("aria-hidden","true"),this._contentDomNode=Object(r.b)(document.createElement("div")),this._contentDomNode.setAttribute("role","document"),this._domNode.appendChild(this._contentDomNode),this._isVisible=!1,this._register(this._editor.onDidLayoutChange(()=>{this._isVisible&&this._layout()})),this._register(i.n(this._contentDomNode.domNode,"keydown",e=>{if(this._isVisible&&(e.equals(2083)&&(Object(s.a)(w.a.emergencyConfOn),this._editor.updateOptions({accessibilitySupport:"on"}),i.s(this._contentDomNode.domNode),this._buildContent(),this._contentDomNode.domNode.focus(),e.preventDefault(),e.stopPropagation()),e.equals(2086))){Object(s.a)(w.a.openingDocs);let t=this._editor.getRawOptions().accessibilityHelpUrl;void 0===t&&(t="https://go.microsoft.com/fwlink/?linkid=852450"),this._openerService.open(u.a.parse(t)),e.preventDefault(),e.stopPropagation()}})),this.onblur(this._contentDomNode.domNode,()=>{this.hide()}),this._editor.addOverlayWidget(this)}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return e.ID}getDomNode(){return this._domNode.domNode}getPosition(){return{preference:null}}show(){this._isVisible||(this._isVisible=!0,this._isVisibleKey.set(!0),this._layout(),this._domNode.setDisplay("block"),this._domNode.setAttribute("aria-hidden","false"),this._contentDomNode.domNode.tabIndex=0,this._buildContent(),this._contentDomNode.domNode.focus())}_descriptionForCommand(e,t,n){let i=this._keybindingService.lookupKeybinding(e);return i?d.x(t,i.getAriaLabel()):d.x(n,e)}_buildContent(){const e=this._editor.getOptions(),t=this._editor.getSelections();let n=0;if(t){const e=this._editor.getModel();e&&t.forEach(t=>{n+=e.getValueLengthInRange(t)})}let i=function(e,t){return e&&0!==e.length?1===e.length?t?d.x(w.a.singleSelectionRange,e[0].positionLineNumber,e[0].positionColumn,t):d.x(w.a.singleSelection,e[0].positionLineNumber,e[0].positionColumn):t?d.x(w.a.multiSelectionRange,e.length,t):e.length>0?d.x(w.a.multiSelection,e.length):"":w.a.noSelection}(t,n);e.get(47)?e.get(72)?i+=w.a.readonlyDiffEditor:i+=w.a.editableDiffEditor:e.get(72)?i+=w.a.readonlyEditor:i+=w.a.editableEditor;const r=c.f?w.a.changeConfigToOnMac:w.a.changeConfigToOnWinLinux;switch(e.get(2)){case 0:i+="\n\n - "+r;break;case 2:i+="\n\n - "+w.a.auto_on;break;case 1:i+="\n\n - "+w.a.auto_off,i+=" "+r}e.get(116)?i+="\n\n - "+this._descriptionForCommand(g.ToggleTabFocusModeAction.ID,w.a.tabFocusModeOnMsg,w.a.tabFocusModeOnMsgNoKb):i+="\n\n - "+this._descriptionForCommand(g.ToggleTabFocusModeAction.ID,w.a.tabFocusModeOffMsg,w.a.tabFocusModeOffMsgNoKb),i+="\n\n - "+(c.f?w.a.openDocMac:w.a.openDocWinLinux),i+="\n\n"+w.a.outroMsg,this._contentDomNode.domNode.appendChild(Object(o.b)(i)),this._contentDomNode.domNode.setAttribute("aria-label",i)}hide(){this._isVisible&&(this._isVisible=!1,this._isVisibleKey.reset(),this._domNode.setDisplay("none"),this._domNode.setAttribute("aria-hidden","true"),this._contentDomNode.domNode.tabIndex=-1,i.s(this._contentDomNode.domNode),this._editor.focus())}_layout(){let t=this._editor.getLayoutInfo(),n=Math.max(5,Math.min(e.WIDTH,t.width-40)),i=Math.max(5,Math.min(e.HEIGHT,t.height-40));this._domNode.setWidth(n),this._domNode.setHeight(i);let r=Math.round((t.height-i)/2);this._domNode.setTop(r);let o=Math.round((t.width-n)/2);this._domNode.setLeft(o)}};L.ID="editor.contrib.accessibilityHelpWidget",L.WIDTH=500,L.HEIGHT=300,L=C([S(1,p.b),S(2,_.a),S(3,b.a)],L);class M extends h.b{constructor(){super({id:"editor.action.showAccessibilityHelp",label:w.a.showAccessibilityHelpAction,alias:"Show Accessibility Help",precondition:void 0,kbOpts:{kbExpr:f.a.focus,primary:571,weight:100,linux:{primary:1595,secondary:[571]}}})}run(e,t){let n=x.get(t);n&&n.show()}}Object(h.m)(x.ID,x),Object(h.k)(M);const D=h.c.bindToContribution(x.get);Object(h.l)(new D({id:"closeAccessibilityHelp",precondition:k,handler:e=>e.hide(),kbOpts:{weight:200,kbExpr:f.a.focus,primary:9,secondary:[1033]}})),Object(y.g)((e,t)=>{const n=e.getColor(v.U);n&&t.addRule(`.monaco-editor .accessibilityHelpWidget { background-color: ${n}; }`);const i=e.getColor(v.W);i&&t.addRule(`.monaco-editor .accessibilityHelpWidget { color: ${i}; }`);const r=e.getColor(v.uc);r&&t.addRule(`.monaco-editor .accessibilityHelpWidget { box-shadow: 0 2px 8px ${r}; }`);const o=e.getColor(v.h);o&&t.addRule(`.monaco-editor .accessibilityHelpWidget { border: 2px solid ${o}; }`)})},function(e,t,n){"use strict";n.r(t),n.d(t,"SelectionAnchorSet",(function(){return g}));n(571);var i=n(4),r=n(0),o=n(7),s=n(22),a=n(39),l=n(9),c=n(81),d=n(55),u=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},h=function(e,t){return function(n,i){t(n,i,e)}},f=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};const g=new l.c("selectionAnchorSet",!1);let p=class e{constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=g.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}static get(t){return t.getContribution(e.ID)}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition(),t=this.decorationId?[this.decorationId]:[],n=this.editor.deltaDecorations(t,[{range:s.a.fromPositions(e,e),options:{stickiness:1,hoverMessage:(new c.a).appendText(Object(r.a)("selectionAnchor","Selection Anchor")),className:"selection-anchor"}}]);this.decorationId=n[0],this.selectionAnchorSetContextKey.set(!!this.decorationId),Object(d.a)(Object(r.a)("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(s.a.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){this.decorationId&&(this.editor.deltaDecorations([this.decorationId],[]),this.decorationId=void 0,this.selectionAnchorSetContextKey.set(!1))}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};p.ID="editor.contrib.selectionAnchorController",p=u([h(1,l.b)],p);class m extends i.b{constructor(){super({id:"editor.action.setSelectionAnchor",label:Object(r.a)("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:o.a.editorTextFocus,primary:Object(a.a)(2089,2080),weight:100}})}run(e,t){return f(this,void 0,void 0,(function*(){p.get(t).setSelectionAnchor()}))}}class _ extends i.b{constructor(){super({id:"editor.action.goToSelectionAnchor",label:Object(r.a)("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:g})}run(e,t){return f(this,void 0,void 0,(function*(){p.get(t).goToSelectionAnchor()}))}}class b extends i.b{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:Object(r.a)("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:g,kbOpts:{kbExpr:o.a.editorTextFocus,primary:Object(a.a)(2089,2089),weight:100}})}run(e,t){return f(this,void 0,void 0,(function*(){p.get(t).selectFromAnchorToCursor()}))}}class v extends i.b{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:Object(r.a)("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:g,kbOpts:{kbExpr:o.a.editorTextFocus,primary:9,weight:100}})}run(e,t){return f(this,void 0,void 0,(function*(){p.get(t).cancelSelectionAnchor()}))}}Object(i.m)(p.ID,p),Object(i.k)(m),Object(i.k)(_),Object(i.k)(b),Object(i.k)(v)},function(e,t,n){"use strict";n.r(t),n.d(t,"BracketMatchingController",(function(){return w}));n(572);var i=n(0),r=n(19),o=n(2),s=n(4),a=n(10),l=n(3),c=n(22),d=n(7),u=n(48),h=n(29),f=n(47),g=n(5),p=n(18),m=n(25);const _=Object(g.gc)("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hc:"#A0A0A0"},i.a("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class b extends s.b{constructor(){super({id:"editor.action.jumpToBracket",label:i.a("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:d.a.editorTextFocus,primary:3160,weight:100}})}run(e,t){let n=w.get(t);n&&n.jumpToBracket()}}class v extends s.b{constructor(){super({id:"editor.action.selectToBracket",label:i.a("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,description:{description:"Select to Bracket",args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,n){const i=w.get(t);if(!i)return;let r=!0;n&&!1===n.selectBrackets&&(r=!1),i.selectToBracket(r)}}class y{constructor(e,t,n){this.position=e,this.brackets=t,this.options=n}}class w extends o.a{constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=[],this._updateBracketsSoon=this._register(new r.d(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(55),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(e=>{"never"!==this._matchBrackets&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(e=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(e=>{this._lastBracketsData=[],this._decorations=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(e=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(e=>{e.hasChanged(55)&&(this._matchBrackets=this._editor.getOption(55),this._decorations=this._editor.deltaDecorations(this._decorations,[]),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())}))}static get(e){return e.getContribution(w.ID)}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map(t=>{const n=t.getStartPosition(),i=e.matchBracket(n);let r=null;if(i)i[0].containsPosition(n)?r=i[1].getStartPosition():i[1].containsPosition(n)&&(r=i[0].getStartPosition());else{const t=e.findEnclosingBrackets(n);if(t)r=t[0].getStartPosition();else{const t=e.findNextBracket(n);t&&t.range&&(r=t.range.getStartPosition())}}return r?new c.a(r.lineNumber,r.column,r.lineNumber,r.column):new c.a(n.lineNumber,n.column,n.lineNumber,n.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),n=[];this._editor.getSelections().forEach(i=>{const r=i.getStartPosition();let o=t.matchBracket(r);if(!o&&!(o=t.findEnclosingBrackets(r))){const e=t.findNextBracket(r);e&&e.range&&(o=t.matchBracket(e.range.getStartPosition()))}let s=null,a=null;if(o){o.sort(l.a.compareRangesUsingStarts);const[t,n]=o;s=e?t.getStartPosition():t.getEndPosition(),a=e?n.getEndPosition():n.getStartPosition()}s&&a&&n.push(new c.a(s.lineNumber,s.column,a.lineNumber,a.column))}),n.length>0&&(this._editor.setSelections(n),this._editor.revealRange(n[0]))}_updateBrackets(){if("never"===this._matchBrackets)return;this._recomputeBrackets();let e=[],t=0;for(const n of this._lastBracketsData){let i=n.brackets;i&&(e[t++]={range:i[0],options:n.options},e[t++]={range:i[1],options:n.options})}this._decorations=this._editor.deltaDecorations(this._decorations,e)}_recomputeBrackets(){if(!this._editor.hasModel())return this._lastBracketsData=[],void(this._lastVersionId=0);const e=this._editor.getSelections();if(e.length>100)return this._lastBracketsData=[],void(this._lastVersionId=0);const t=this._editor.getModel(),n=t.getVersionId();let i=[];this._lastVersionId===n&&(i=this._lastBracketsData);let r=[],o=0;for(let t=0,n=e.length;t<n;t++){let n=e[t];n.isEmpty()&&(r[o++]=n.getStartPosition())}r.length>1&&r.sort(a.a.compare);let s=[],l=0,c=0,d=i.length;for(let e=0,n=r.length;e<n;e++){let n=r[e];for(;c<d&&i[c].position.isBefore(n);)c++;if(c<d&&i[c].position.equals(n))s[l++]=i[c];else{let e=t.matchBracket(n),i=w._DECORATION_OPTIONS_WITH_OVERVIEW_RULER;e||"always"!==this._matchBrackets||(e=t.findEnclosingBrackets(n,20),i=w._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER),s[l++]=new y(n,e,i)}}this._lastBracketsData=s,this._lastVersionId=n}}w.ID="editor.contrib.bracketMatchingController",w._DECORATION_OPTIONS_WITH_OVERVIEW_RULER=h.a.register({stickiness:1,className:"bracket-match",overviewRuler:{color:Object(p.h)(_),position:u.d.Center}}),w._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER=h.a.register({stickiness:1,className:"bracket-match"}),Object(s.m)(w.ID,w),Object(s.k)(v),Object(s.k)(b),Object(p.g)((e,t)=>{const n=e.getColor(f.c);n&&t.addRule(`.monaco-editor .bracket-match { background-color: ${n}; }`);const i=e.getColor(f.d);i&&t.addRule(`.monaco-editor .bracket-match { border: 1px solid ${i}; }`)}),m.d.appendMenuItem(m.b.MenubarGoMenu,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:i.a({key:"miGoToBracket",comment:["&& denotes a mnemonic"]},"Go to &&Bracket")},order:2})},function(e,t,n){"use strict";n.r(t),n.d(t,"CutAction",(function(){return b})),n.d(t,"CopyAction",(function(){return v})),n.d(t,"PasteAction",(function(){return y}));var i=n(0),r=n(30),o=n(12),s=n(189),a=n(4),l=n(33),c=n(7),d=n(25),u=n(109),h=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};const f=o.g||document.queryCommandSupported("cut"),g=o.g||document.queryCommandSupported("copy"),p=g&&!r.f,m=!r.h||document.queryCommandSupported("paste");function _(e){return e.register(),e}const b=f?_(new a.e({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:o.g?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:d.b.MenubarEditMenu,group:"2_ccp",title:i.a({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:d.b.EditorContext,group:"9_cutcopypaste",title:i.a("actions.clipboard.cutLabel","Cut"),when:c.a.writable,order:1},{menuId:d.b.CommandPalette,group:"",title:i.a("actions.clipboard.cutLabel","Cut"),order:1}]})):void 0,v=g?_(new a.e({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:o.g?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:d.b.MenubarEditMenu,group:"2_ccp",title:i.a({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:d.b.EditorContext,group:"9_cutcopypaste",title:i.a("actions.clipboard.copyLabel","Copy"),order:2},{menuId:d.b.CommandPalette,group:"",title:i.a("actions.clipboard.copyLabel","Copy"),order:1}]})):void 0,y=m?_(new a.e({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:o.g?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:d.b.MenubarEditMenu,group:"2_ccp",title:i.a({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:3},{menuId:d.b.EditorContext,group:"9_cutcopypaste",title:i.a("actions.clipboard.pasteLabel","Paste"),when:c.a.writable,order:3},{menuId:d.b.CommandPalette,group:"",title:i.a("actions.clipboard.pasteLabel","Paste"),order:1}]})):void 0;class w extends a.b{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:i.a("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:c.a.textInputFocus,primary:0,weight:100}})}run(e,t){if(!t.hasModel())return;!t.getOption(26)&&t.getSelection().isEmpty()||(s.a.forceCopyWithSyntaxHighlighting=!0,t.focus(),document.execCommand("copy"),s.a.forceCopyWithSyntaxHighlighting=!1)}}function C(e,t){e&&(e.addImplementation(1e4,(e,n)=>{const i=e.get(l.a).getFocusedCodeEditor();if(i&&i.hasTextFocus()){const e=i.getOption(26),n=i.getSelection();return!(!n||!n.isEmpty()||e)||(document.execCommand(t),!0)}return!1}),e.addImplementation(0,(e,n)=>(document.execCommand(t),!0)))}C(b,"cut"),C(v,"copy"),y&&(y.addImplementation(1e4,(e,t)=>{const n=e.get(l.a),i=e.get(u.a),r=n.getFocusedCodeEditor();if(r&&r.hasTextFocus()){return!(!document.execCommand("paste")&&o.h)||((()=>h(void 0,void 0,void 0,(function*(){const e=yield i.readText();if(""!==e){const t=s.b.INSTANCE.get(e);let n=!1,i=null,o=null;t&&(n=r.getOption(26)&&!!t.isFromEmptySelection,i=void 0!==t.multicursorText?t.multicursorText:null,o=t.mode),r.trigger("keyboard","paste",{text:e,pasteOnNewLine:n,multicursorText:i,mode:o})}})))(),!0)}return!1}),y.addImplementation(0,(e,t)=>(document.execCommand("paste"),!0))),p&&Object(a.k)(w)},function(e,t,n){"use strict";n.r(t);var i=n(4),r=n(130);Object(i.m)(r.f.ID,r.f),Object(i.k)(r.e),Object(i.k)(r.g),Object(i.k)(r.h),Object(i.k)(r.d),Object(i.k)(r.a),Object(i.k)(r.c),Object(i.l)(new r.b)},function(e,t,n){"use strict";n.r(t),n.d(t,"ContextMenuController",(function(){return m}));var i=n(0),r=n(1),o=n(49),s=n(2),a=n(4),l=n(7),c=n(25),d=n(9),u=n(71),h=n(41),f=n(112),g=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},p=function(e,t){return function(n,i){t(n,i,e)}};let m=class e{constructor(e,t,n,i,o,a){this._contextMenuService=t,this._contextViewService=n,this._contextKeyService=i,this._keybindingService=o,this._menuService=a,this._toDispose=new s.b,this._contextMenuIsBeingShownCount=0,this._editor=e,this._toDispose.add(this._editor.onContextMenu(e=>this._onContextMenu(e))),this._toDispose.add(this._editor.onMouseWheel(e=>{if(this._contextMenuIsBeingShownCount>0){const t=this._contextViewService.getContextViewElement(),n=e.srcElement;n.shadowRoot&&r.E(t)===n.shadowRoot||this._contextViewService.hideContextView()}})),this._toDispose.add(this._editor.onKeyDown(e=>{58===e.keyCode&&(e.preventDefault(),e.stopPropagation(),this.showContextMenu())}))}static get(t){return t.getContribution(e.ID)}_onContextMenu(e){if(!this._editor.hasModel())return;if(!this._editor.getOption(15))return this._editor.focus(),void(e.target.position&&!this._editor.getSelection().containsPosition(e.target.position)&&this._editor.setPosition(e.target.position));if(12===e.target.type)return;if(e.event.preventDefault(),6!==e.target.type&&7!==e.target.type&&1!==e.target.type)return;if(this._editor.focus(),e.target.position){let t=!1;for(const n of this._editor.getSelections())if(n.containsPosition(e.target.position)){t=!0;break}t||this._editor.setPosition(e.target.position)}let t=null;1!==e.target.type&&(t={x:e.event.posx-1,width:2,y:e.event.posy-1,height:2}),this.showContextMenu(t)}showContextMenu(e){if(!this._editor.getOption(15))return;if(!this._editor.hasModel())return;if(!this._contextMenuService)return void this._editor.focus();const t=this._getMenuActions(this._editor.getModel(),c.b.EditorContext);t.length>0&&this._doShowContextMenu(t,e)}_getMenuActions(e,t){const n=[],i=this._menuService.createMenu(t,this._contextKeyService),r=i.getActions({arg:e.uri});i.dispose();for(let t of r){const[,i]=t;let r=0;for(const t of i)if(t instanceof c.e){const i=this._getMenuActions(e,t.item.submenu);i.length>0&&(n.push(new o.d(t.id,t.label,i)),r++)}else n.push(t),r++;r&&n.push(new o.c)}return n.length&&n.pop(),n}_doShowContextMenu(e,t=null){if(!this._editor.hasModel())return;const n=this._editor.getOption(46);if(this._editor.updateOptions({hover:{enabled:!1}}),!t){this._editor.revealPosition(this._editor.getPosition(),1),this._editor.render();const e=this._editor.getScrolledVisiblePosition(this._editor.getPosition()),n=r.C(this._editor.getDomNode()),i=n.left+e.left,o=n.top+e.top+e.height;t={x:i,y:o}}this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:this._editor.getDomNode(),getAnchor:()=>t,getActions:()=>e,getActionViewItem:e=>{const t=this._keybindingFor(e);if(t)return new f.a(e,e,{label:!0,keybinding:t.getLabel(),isMenu:!0});const n=e;return"function"==typeof n.getActionViewItem?n.getActionViewItem():new f.a(e,e,{icon:!0,label:!0,isMenu:!0})},getKeyBinding:e=>this._keybindingFor(e),onHide:e=>{this._contextMenuIsBeingShownCount--,this._editor.focus(),this._editor.updateOptions({hover:n})}})}_keybindingFor(e){return this._keybindingService.lookupKeybinding(e.id)}dispose(){this._contextMenuIsBeingShownCount>0&&this._contextViewService.hideContextView(),this._toDispose.dispose()}};m.ID="editor.contrib.contextmenu",m=g([p(1,u.a),p(2,u.b),p(3,d.b),p(4,h.a),p(5,c.a)],m);class _ extends a.b{constructor(){super({id:"editor.action.showContextMenu",label:i.a("action.showContextMenu.label","Show Editor Context Menu"),alias:"Show Editor Context Menu",precondition:void 0,kbOpts:{kbExpr:l.a.textInputFocus,primary:1092,weight:100}})}run(e,t){m.get(t).showContextMenu()}}Object(a.m)(m.ID,m),Object(a.k)(_)},function(e,t,n){"use strict";n.r(t),n.d(t,"CursorUndoRedoController",(function(){return c})),n.d(t,"CursorUndo",(function(){return d})),n.d(t,"CursorRedo",(function(){return u}));var i=n(0),r=n(2),o=n(4),s=n(7);class a{constructor(e){this.selections=e}equals(e){const t=this.selections.length;if(t!==e.selections.length)return!1;for(let n=0;n<t;n++)if(!this.selections[n].equalsSelection(e.selections[n]))return!1;return!0}}class l{constructor(e,t,n){this.cursorState=e,this.scrollTop=t,this.scrollLeft=n}}class c extends r.a{constructor(e){super(),this._editor=e,this._isCursorUndoRedo=!1,this._undoStack=[],this._redoStack=[],this._register(e.onDidChangeModel(e=>{this._undoStack=[],this._redoStack=[]})),this._register(e.onDidChangeModelContent(e=>{this._undoStack=[],this._redoStack=[]})),this._register(e.onDidChangeCursorSelection(t=>{if(this._isCursorUndoRedo)return;if(!t.oldSelections)return;if(t.oldModelVersionId!==t.modelVersionId)return;const n=new a(t.oldSelections);this._undoStack.length>0&&this._undoStack[this._undoStack.length-1].cursorState.equals(n)||(this._undoStack.push(new l(n,e.getScrollTop(),e.getScrollLeft())),this._redoStack=[],this._undoStack.length>50&&this._undoStack.shift())}))}static get(e){return e.getContribution(c.ID)}cursorUndo(){this._editor.hasModel()&&0!==this._undoStack.length&&(this._redoStack.push(new l(new a(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._undoStack.pop()))}cursorRedo(){this._editor.hasModel()&&0!==this._redoStack.length&&(this._undoStack.push(new l(new a(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._redoStack.pop()))}_applyState(e){this._isCursorUndoRedo=!0,this._editor.setSelections(e.cursorState.selections),this._editor.setScrollPosition({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),this._isCursorUndoRedo=!1}}c.ID="editor.contrib.cursorUndoRedoController";class d extends o.b{constructor(){super({id:"cursorUndo",label:i.a("cursor.undo","Cursor Undo"),alias:"Cursor Undo",precondition:void 0,kbOpts:{kbExpr:s.a.textInputFocus,primary:2099,weight:100}})}run(e,t,n){c.get(t).cursorUndo()}}class u extends o.b{constructor(){super({id:"cursorRedo",label:i.a("cursor.redo","Cursor Redo"),alias:"Cursor Redo",precondition:void 0})}run(e,t,n){c.get(t).cursorRedo()}}Object(o.m)(c.ID,c),Object(o.k)(d),Object(o.k)(u)},function(e,t,n){"use strict";n.r(t);var i=n(0),r=n(4),o=n(128);class s extends r.b{constructor(){super({id:"editor.action.fontZoomIn",label:i.a("EditorFontZoomIn.label","Editor Font Zoom In"),alias:"Editor Font Zoom In",precondition:void 0})}run(e,t){o.a.setZoomLevel(o.a.getZoomLevel()+1)}}class a extends r.b{constructor(){super({id:"editor.action.fontZoomOut",label:i.a("EditorFontZoomOut.label","Editor Font Zoom Out"),alias:"Editor Font Zoom Out",precondition:void 0})}run(e,t){o.a.setZoomLevel(o.a.getZoomLevel()-1)}}class l extends r.b{constructor(){super({id:"editor.action.fontZoomReset",label:i.a("EditorFontZoomReset.label","Editor Font Zoom Reset"),alias:"Editor Font Zoom Reset",precondition:void 0})}run(e,t){o.a.setZoomLevel(0)}}Object(r.k)(s),Object(r.k)(a),Object(r.k)(l)},function(e,t,n){"use strict";n.r(t),n.d(t,"IPadShowKeyboard",(function(){return a}));n(615);var i=n(30),r=n(1),o=n(2),s=n(4);class a extends o.a{constructor(e){super(),this.editor=e,this.widget=null,i.i&&(this._register(e.onDidChangeConfiguration(()=>this.update())),this.update())}update(){const e=!this.editor.getOption(72);!this.widget&&e?this.widget=new l(this.editor):this.widget&&!e&&(this.widget.dispose(),this.widget=null)}dispose(){super.dispose(),this.widget&&(this.widget.dispose(),this.widget=null)}}a.ID="editor.contrib.iPadShowKeyboard";class l extends o.a{constructor(e){super(),this.editor=e,this._domNode=document.createElement("textarea"),this._domNode.className="iPadShowKeyboard",this._register(r.i(this._domNode,"touchstart",e=>{this.editor.focus()})),this._register(r.i(this._domNode,"focus",e=>{this.editor.focus()})),this.editor.addOverlayWidget(this)}dispose(){this.editor.removeOverlayWidget(this),super.dispose()}getId(){return l.ID}getDomNode(){return this._domNode}getPosition(){return{preference:1}}}l.ID="editor.contrib.ShowKeyboardWidget",Object(s.m)(a.ID,a)},function(e,t,n){"use strict";n.r(t),n.d(t,"getReindentEditOperations",(function(){return _})),n.d(t,"IndentationToSpacesAction",(function(){return b})),n.d(t,"IndentationToTabsAction",(function(){return v})),n.d(t,"ChangeIndentationSizeAction",(function(){return y})),n.d(t,"IndentUsingTabs",(function(){return w})),n.d(t,"IndentUsingSpaces",(function(){return C})),n.d(t,"DetectIndentation",(function(){return S})),n.d(t,"ReindentLinesAction",(function(){return k})),n.d(t,"ReindentSelectedLinesAction",(function(){return x})),n.d(t,"AutoIndentOnPasteCommand",(function(){return L})),n.d(t,"AutoIndentOnPaste",(function(){return M})),n.d(t,"IndentationToSpacesCommand",(function(){return E})),n.d(t,"IndentationToTabsCommand",(function(){return T}));var i=n(0),r=n(2),o=n(8),s=n(4),a=n(124),l=n(60),c=n(3),d=n(22),u=n(7),h=n(29),f=n(32),g=n(54),p=n(83),m=n(97);function _(e,t,n,i){if(1===e.getLineCount()&&1===e.getLineMaxColumn(1))return[];let r=f.a.getIndentationRules(e.getLanguageIdentifier().id);if(!r)return[];for(n=Math.min(n,e.getLineCount());t<=n&&r.unIndentedLinePattern;){let n=e.getLineContent(t);if(!r.unIndentedLinePattern.test(n))break;t++}if(t>n-1)return[];const{tabSize:s,indentSize:c,insertSpaces:u}=e.getOptions(),g=(e,t)=>(t=t||1,a.a.shiftIndent(e,e.length+t,s,c,u)),p=(e,t)=>(t=t||1,a.a.unshiftIndent(e,e.length+t,s,c,u));let m,_=[],b=e.getLineContent(t),v=b;if(null!=i){m=i;let e=o.z(b);v=m+b.substring(e.length),r.decreaseIndentPattern&&r.decreaseIndentPattern.test(v)&&(v=(m=p(m))+b.substring(e.length)),b!==v&&_.push(l.a.replace(new d.a(t,1,t,e.length+1),h.b.normalizeIndentation(m,c,u)))}else m=o.z(b);let y=m;r.increaseIndentPattern&&r.increaseIndentPattern.test(v)?(y=g(y),m=g(m)):r.indentNextLinePattern&&r.indentNextLinePattern.test(v)&&(y=g(y));for(let i=++t;i<=n;i++){let t=e.getLineContent(i),n=o.z(t),s=y+t.substring(n.length);r.decreaseIndentPattern&&r.decreaseIndentPattern.test(s)&&(y=p(y),m=p(m)),n!==y&&_.push(l.a.replace(new d.a(i,1,i,n.length+1),h.b.normalizeIndentation(y,c,u))),r.unIndentedLinePattern&&r.unIndentedLinePattern.test(t)||(y=r.increaseIndentPattern&&r.increaseIndentPattern.test(s)?m=g(m):r.indentNextLinePattern&&r.indentNextLinePattern.test(s)?g(y):m)}return _}class b extends s.b{constructor(){super({id:b.ID,label:i.a("indentationToSpaces","Convert Indentation to Spaces"),alias:"Convert Indentation to Spaces",precondition:u.a.writable})}run(e,t){let n=t.getModel();if(!n)return;let i=n.getOptions(),r=t.getSelection();if(!r)return;const o=new E(r,i.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[o]),t.pushUndoStop(),n.updateOptions({insertSpaces:!0})}}b.ID="editor.action.indentationToSpaces";class v extends s.b{constructor(){super({id:v.ID,label:i.a("indentationToTabs","Convert Indentation to Tabs"),alias:"Convert Indentation to Tabs",precondition:u.a.writable})}run(e,t){let n=t.getModel();if(!n)return;let i=n.getOptions(),r=t.getSelection();if(!r)return;const o=new T(r,i.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[o]),t.pushUndoStop(),n.updateOptions({insertSpaces:!1})}}v.ID="editor.action.indentationToTabs";class y extends s.b{constructor(e,t){super(t),this.insertSpaces=e}run(e,t){const n=e.get(m.a),r=e.get(g.a);let o=t.getModel();if(!o)return;let s=r.getCreationOptions(o.getLanguageIdentifier().language,o.uri,o.isForSimpleWidget);const a=[1,2,3,4,5,6,7,8].map(e=>({id:e.toString(),label:e.toString(),description:e===s.tabSize?i.a("configuredTabSize","Configured Tab Size"):void 0})),l=Math.min(o.getOptions().tabSize-1,7);setTimeout(()=>{n.pick(a,{placeHolder:i.a({key:"selectTabWidth",comment:["Tab corresponds to the tab key"]},"Select Tab Size for Current File"),activeItem:a[l]}).then(e=>{e&&o&&!o.isDisposed()&&o.updateOptions({tabSize:parseInt(e.label,10),insertSpaces:this.insertSpaces})})},50)}}class w extends y{constructor(){super(!1,{id:w.ID,label:i.a("indentUsingTabs","Indent Using Tabs"),alias:"Indent Using Tabs",precondition:void 0})}}w.ID="editor.action.indentUsingTabs";class C extends y{constructor(){super(!0,{id:C.ID,label:i.a("indentUsingSpaces","Indent Using Spaces"),alias:"Indent Using Spaces",precondition:void 0})}}C.ID="editor.action.indentUsingSpaces";class S extends s.b{constructor(){super({id:S.ID,label:i.a("detectIndentation","Detect Indentation from Content"),alias:"Detect Indentation from Content",precondition:void 0})}run(e,t){const n=e.get(g.a);let i=t.getModel();if(!i)return;let r=n.getCreationOptions(i.getLanguageIdentifier().language,i.uri,i.isForSimpleWidget);i.detectIndentation(r.insertSpaces,r.tabSize)}}S.ID="editor.action.detectIndentation";class k extends s.b{constructor(){super({id:"editor.action.reindentlines",label:i.a("editor.reindentlines","Reindent Lines"),alias:"Reindent Lines",precondition:u.a.writable})}run(e,t){let n=t.getModel();if(!n)return;let i=_(n,1,n.getLineCount());i.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,i),t.pushUndoStop())}}class x extends s.b{constructor(){super({id:"editor.action.reindentselectedlines",label:i.a("editor.reindentselectedlines","Reindent Selected Lines"),alias:"Reindent Selected Lines",precondition:u.a.writable})}run(e,t){let n=t.getModel();if(!n)return;let i=t.getSelections();if(null===i)return;let r=[];for(let e of i){let t=e.startLineNumber,i=e.endLineNumber;if(t!==i&&1===e.endColumn&&i--,1===t){if(t===i)continue}else t--;let o=_(n,t,i);r.push(...o)}r.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,r),t.pushUndoStop())}}class L{constructor(e,t){this._initialSelection=t,this._edits=[],this._selectionId=null;for(let t of e)t.range&&"string"==typeof t.text&&this._edits.push(t)}getEditOperations(e,t){for(let e of this._edits)t.addEditOperation(c.a.lift(e.range),e.text);let n=!1;Array.isArray(this._edits)&&1===this._edits.length&&this._initialSelection.isEmpty()&&(this._edits[0].range.startColumn===this._initialSelection.endColumn&&this._edits[0].range.startLineNumber===this._initialSelection.endLineNumber?(n=!0,this._selectionId=t.trackSelection(this._initialSelection,!0)):this._edits[0].range.endColumn===this._initialSelection.startColumn&&this._edits[0].range.endLineNumber===this._initialSelection.startLineNumber&&(n=!0,this._selectionId=t.trackSelection(this._initialSelection,!1))),n||(this._selectionId=t.trackSelection(this._initialSelection))}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}}class M{constructor(e){this.callOnDispose=new r.b,this.callOnModel=new r.b,this.editor=e,this.callOnDispose.add(e.onDidChangeConfiguration(()=>this.update())),this.callOnDispose.add(e.onDidChangeModel(()=>this.update())),this.callOnDispose.add(e.onDidChangeModelLanguage(()=>this.update()))}update(){this.callOnModel.clear(),this.editor.getOption(8)<4||this.editor.getOption(40)||this.editor.hasModel()&&this.callOnModel.add(this.editor.onDidPaste(({range:e})=>{this.trigger(e)}))}trigger(e){let t=this.editor.getSelections();if(null===t||t.length>1)return;const n=this.editor.getModel();if(!n)return;if(!n.isCheapToTokenize(e.getStartPosition().lineNumber))return;const i=this.editor.getOption(8),{tabSize:r,indentSize:s,insertSpaces:l}=n.getOptions();this.editor.pushUndoStop();let d=[],u={shiftIndent:e=>a.a.shiftIndent(e,e.length+1,r,s,l),unshiftIndent:e=>a.a.unshiftIndent(e,e.length+1,r,s,l)},h=e.startLineNumber;for(;h<=e.endLineNumber&&this.shouldIgnoreLine(n,h);)h++;if(h>e.endLineNumber)return;let g=n.getLineContent(h);if(!/\S/.test(g.substring(0,e.startColumn-1))){let e=f.a.getGoodIndentForLine(i,n,n.getLanguageIdentifier().id,h,u);if(null!==e){let t=o.z(g),i=p.b(e,r);if(i!==p.b(t,r)){let e=p.a(i,r,l);d.push({range:new c.a(h,1,h,t.length+1),text:e}),g=e+g.substr(t.length)}else{let e=f.a.getIndentMetadata(n,h);if(0===e||8===e)return}}}const m=h;for(;h<e.endLineNumber&&!/\S/.test(n.getLineContent(h+1));)h++;if(h!==e.endLineNumber){let t={getLineTokens:e=>n.getLineTokens(e),getLanguageIdentifier:()=>n.getLanguageIdentifier(),getLanguageIdAtPosition:(e,t)=>n.getLanguageIdAtPosition(e,t),getLineContent:e=>e===m?g:n.getLineContent(e)},s=f.a.getGoodIndentForLine(i,t,n.getLanguageIdentifier().id,h+1,u);if(null!==s){let t=p.b(s,r),i=p.b(o.z(n.getLineContent(h+1)),r);if(t!==i){let s=t-i;for(let t=h+1;t<=e.endLineNumber;t++){let e=n.getLineContent(t),i=o.z(e),a=p.b(i,r)+s,u=p.a(a,r,l);u!==i&&d.push({range:new c.a(t,1,t,i.length+1),text:u})}}}}let _=new L(d,this.editor.getSelection());this.editor.executeCommand("autoIndentOnPaste",_),this.editor.pushUndoStop()}shouldIgnoreLine(e,t){e.forceTokenization(t);let n=e.getLineFirstNonWhitespaceColumn(t);if(0===n)return!0;let i=e.getLineTokens(t);if(i.getCount()>0){let e=i.findTokenIndexAtOffset(n);if(e>=0&&1===i.getStandardTokenType(e))return!0}return!1}dispose(){this.callOnDispose.dispose(),this.callOnModel.dispose()}}function D(e,t,n,i){if(1===e.getLineCount()&&1===e.getLineMaxColumn(1))return;let r="";for(let e=0;e<n;e++)r+=" ";let o=new RegExp(r,"gi");for(let n=1,s=e.getLineCount();n<=s;n++){let s=e.getLineFirstNonWhitespaceColumn(n);if(0===s&&(s=e.getLineMaxColumn(n)),1===s)continue;const a=new c.a(n,1,n,s),l=e.getValueInRange(a),d=i?l.replace(/\t/gi,r):l.replace(o,"\t");t.addEditOperation(a,d)}}M.ID="editor.contrib.autoIndentOnPaste";class E{constructor(e,t){this.selection=e,this.tabSize=t,this.selectionId=null}getEditOperations(e,t){this.selectionId=t.trackSelection(this.selection),D(e,t,this.tabSize,!0)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}}class T{constructor(e,t){this.selection=e,this.tabSize=t,this.selectionId=null}getEditOperations(e,t){this.selectionId=t.trackSelection(this.selection),D(e,t,this.tabSize,!1)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}}Object(s.m)(M.ID,M),Object(s.k)(b),Object(s.k)(v),Object(s.k)(w),Object(s.k)(C),Object(s.k)(S),Object(s.k)(k),Object(s.k)(x)},function(e,t,n){"use strict";n.r(t);n(616);var i=n(1),r=n(13),o=n(2),s=n(4),a=n(11),l=n(78),c=n(98),d=n(137),u=n(5),h=n(18),f=n(44),g=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},p=function(e,t){return function(n,i){t(n,i,e)}};let m=class e extends o.a{constructor(e,t,n){super(),this._editor=e,this._modeService=n,this._widget=null,this._register(this._editor.onDidChangeModel(e=>this.stop())),this._register(this._editor.onDidChangeModelLanguage(e=>this.stop())),this._register(a.C.onDidChange(e=>this.stop())),this._register(this._editor.onKeyUp(e=>9===e.keyCode&&this.stop()))}static get(t){return t.getContribution(e.ID)}dispose(){this.stop(),super.dispose()}launch(){this._widget||this._editor.hasModel()&&(this._widget=new b(this._editor,this._modeService))}stop(){this._widget&&(this._widget.dispose(),this._widget=null)}};m.ID="editor.contrib.inspectTokens",m=g([p(1,d.a),p(2,c.a)],m);class _ extends s.b{constructor(){super({id:"editor.action.inspectTokens",label:f.c.inspectTokensAction,alias:"Developer: Inspect Tokens",precondition:void 0})}run(e,t){let n=m.get(t);n&&n.launch()}}class b extends o.a{constructor(e,t){super(),this.allowEditorOverflow=!0,this._editor=e,this._modeService=t,this._model=this._editor.getModel(),this._domNode=document.createElement("div"),this._domNode.className="tokens-inspect-widget",this._tokenizationSupport=function(e){let t=a.C.get(e.language);return t||{getInitialState:()=>l.c,tokenize:(t,n,i)=>Object(l.d)(e.language,t,n,i),tokenize2:(t,n,i)=>Object(l.e)(e.id,t,n,i)}}(this._model.getLanguageIdentifier()),this._compute(this._editor.getPosition()),this._register(this._editor.onDidChangeCursorPosition(e=>this._compute(this._editor.getPosition()))),this._editor.addContentWidget(this)}dispose(){this._editor.removeContentWidget(this),super.dispose()}getId(){return b._ID}_compute(e){let t=this._getTokensAtLine(e.lineNumber),n=0;for(let i=t.tokens1.length-1;i>=0;i--){let r=t.tokens1[i];if(e.column-1>=r.offset){n=i;break}}let o=0;for(let n=t.tokens2.length>>>1;n>=0;n--)if(e.column-1>=t.tokens2[n<<1]){o=n;break}let s=this._model.getLineContent(e.lineNumber),a="";if(n<t.tokens1.length){let e=t.tokens1[n].offset,i=n+1<t.tokens1.length?t.tokens1[n+1].offset:s.length;a=s.substring(e,i)}Object(i.U)(this._domNode,Object(i.a)("h2.tm-token",void 0,function(e){let t="";for(let n=0,i=e.length;n<i;n++){let i=e.charCodeAt(n);switch(i){case 9:t+="→";break;case 32:t+="·";break;default:t+=String.fromCharCode(i)}}return t}(a),Object(i.a)("span.tm-token-length",void 0,`${a.length} ${1===a.length?"char":"chars"}`))),Object(i.p)(this._domNode,Object(i.a)("hr.tokens-inspect-separator",{style:"clear:both"}));const l=1+(o<<1)<t.tokens2.length?this._decodeMetadata(t.tokens2[1+(o<<1)]):null;Object(i.p)(this._domNode,Object(i.a)("table.tm-metadata-table",void 0,Object(i.a)("tbody",void 0,Object(i.a)("tr",void 0,Object(i.a)("td.tm-metadata-key",void 0,"language"),Object(i.a)("td.tm-metadata-value",void 0,`${l?l.languageIdentifier.language:"-?-"}`)),Object(i.a)("tr",void 0,Object(i.a)("td.tm-metadata-key",void 0,"token type"),Object(i.a)("td.tm-metadata-value",void 0,`${l?this._tokenTypeToString(l.tokenType):"-?-"}`)),Object(i.a)("tr",void 0,Object(i.a)("td.tm-metadata-key",void 0,"font style"),Object(i.a)("td.tm-metadata-value",void 0,`${l?this._fontStyleToString(l.fontStyle):"-?-"}`)),Object(i.a)("tr",void 0,Object(i.a)("td.tm-metadata-key",void 0,"foreground"),Object(i.a)("td.tm-metadata-value",void 0,`${l?r.a.Format.CSS.formatHex(l.foreground):"-?-"}`)),Object(i.a)("tr",void 0,Object(i.a)("td.tm-metadata-key",void 0,"background"),Object(i.a)("td.tm-metadata-value",void 0,`${l?r.a.Format.CSS.formatHex(l.background):"-?-"}`))))),Object(i.p)(this._domNode,Object(i.a)("hr.tokens-inspect-separator")),n<t.tokens1.length&&Object(i.p)(this._domNode,Object(i.a)("span.tm-token-type",void 0,t.tokens1[n].type)),this._editor.layoutContentWidget(this)}_decodeMetadata(e){let t=a.C.getColorMap(),n=a.B.getLanguageId(e),i=a.B.getTokenType(e),r=a.B.getFontStyle(e),o=a.B.getForeground(e),s=a.B.getBackground(e);return{languageIdentifier:this._modeService.getLanguageIdentifier(n),tokenType:i,fontStyle:r,foreground:t[o],background:t[s]}}_tokenTypeToString(e){switch(e){case 0:return"Other";case 1:return"Comment";case 2:return"String";case 4:return"RegEx";default:return"??"}}_fontStyleToString(e){let t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),0===t.length&&(t="---"),t}_getTokensAtLine(e){let t=this._getStateBeforeLine(e),n=this._tokenizationSupport.tokenize(this._model.getLineContent(e),t,0),i=this._tokenizationSupport.tokenize2(this._model.getLineContent(e),t,0);return{startState:t,tokens1:n.tokens,tokens2:i.tokens,endState:n.endState}}_getStateBeforeLine(e){let t=this._tokenizationSupport.getInitialState();for(let n=1;n<e;n++){t=this._tokenizationSupport.tokenize(this._model.getLineContent(n),t,0).endState}return t}getDomNode(){return this._domNode}getPosition(){return{position:this._editor.getPosition(),preference:[2,1]}}}b._ID="editor.contrib.inspectTokensWidget",Object(s.m)(m.ID,m),Object(s.k)(_),Object(h.g)((e,t)=>{const n=e.getColor(u.F);if(n){let i=e.type===h.b?2:1;t.addRule(`.monaco-editor .tokens-inspect-widget { border: ${i}px solid ${n}; }`),t.addRule(`.monaco-editor .tokens-inspect-widget .tokens-inspect-separator { background-color: ${n}; }`)}const i=e.getColor(u.E);i&&t.addRule(`.monaco-editor .tokens-inspect-widget { background-color: ${i}; }`);const r=e.getColor(u.G);r&&t.addRule(`.monaco-editor .tokens-inspect-widget { color: ${r}; }`)})},function(e,t,n){"use strict";n.r(t),n.d(t,"InsertCursorAbove",(function(){return y})),n.d(t,"InsertCursorBelow",(function(){return w})),n.d(t,"MultiCursorSessionResult",(function(){return x})),n.d(t,"MultiCursorSession",(function(){return L})),n.d(t,"MultiCursorSelectionController",(function(){return M})),n.d(t,"MultiCursorSelectionControllerAction",(function(){return D})),n.d(t,"AddSelectionToNextFindMatchAction",(function(){return E})),n.d(t,"AddSelectionToPreviousFindMatchAction",(function(){return T})),n.d(t,"MoveSelectionToNextFindMatchAction",(function(){return O})),n.d(t,"MoveSelectionToPreviousFindMatchAction",(function(){return N})),n.d(t,"SelectHighlightsAction",(function(){return I})),n.d(t,"CompatChangeAll",(function(){return A})),n.d(t,"SelectionHighlighter",(function(){return P}));var i=n(0),r=n(19),o=n(39),s=n(2),a=n(4),l=n(73),c=n(3),d=n(22),u=n(7),h=n(48),f=n(29),g=n(11),p=n(168),m=n(25),_=n(5),b=n(18),v=n(9);class y extends a.b{constructor(){super({id:"editor.action.insertCursorAbove",label:i.a("mutlicursor.insertAbove","Add Cursor Above"),alias:"Add Cursor Above",precondition:void 0,kbOpts:{kbExpr:u.a.editorTextFocus,primary:2576,linux:{primary:1552,secondary:[3088]},weight:100},menuOpts:{menuId:m.b.MenubarSelectionMenu,group:"3_multi",title:i.a({key:"miInsertCursorAbove",comment:["&& denotes a mnemonic"]},"&&Add Cursor Above"),order:2}})}run(e,t,n){if(!t.hasModel())return;const i=n&&!0===n.logicalLine,r=t._getViewModel();r.cursorConfig.readOnly||(r.pushStackElement(),r.setCursorStates(n.source,3,l.b.addCursorUp(r,r.getCursorStates(),i)),r.revealTopMostCursor(n.source))}}class w extends a.b{constructor(){super({id:"editor.action.insertCursorBelow",label:i.a("mutlicursor.insertBelow","Add Cursor Below"),alias:"Add Cursor Below",precondition:void 0,kbOpts:{kbExpr:u.a.editorTextFocus,primary:2578,linux:{primary:1554,secondary:[3090]},weight:100},menuOpts:{menuId:m.b.MenubarSelectionMenu,group:"3_multi",title:i.a({key:"miInsertCursorBelow",comment:["&& denotes a mnemonic"]},"A&&dd Cursor Below"),order:3}})}run(e,t,n){if(!t.hasModel())return;const i=n&&!0===n.logicalLine,r=t._getViewModel();r.cursorConfig.readOnly||(r.pushStackElement(),r.setCursorStates(n.source,3,l.b.addCursorDown(r,r.getCursorStates(),i)),r.revealBottomMostCursor(n.source))}}class C extends a.b{constructor(){super({id:"editor.action.insertCursorAtEndOfEachLineSelected",label:i.a("mutlicursor.insertAtEndOfEachLineSelected","Add Cursors to Line Ends"),alias:"Add Cursors to Line Ends",precondition:void 0,kbOpts:{kbExpr:u.a.editorTextFocus,primary:1575,weight:100},menuOpts:{menuId:m.b.MenubarSelectionMenu,group:"3_multi",title:i.a({key:"miInsertCursorAtEndOfEachLineSelected",comment:["&& denotes a mnemonic"]},"Add C&&ursors to Line Ends"),order:4}})}getCursorsForSelection(e,t,n){if(!e.isEmpty()){for(let i=e.startLineNumber;i<e.endLineNumber;i++){let e=t.getLineMaxColumn(i);n.push(new d.a(i,e,i,e))}e.endColumn>1&&n.push(new d.a(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn))}}run(e,t){if(!t.hasModel())return;const n=t.getModel(),i=t.getSelections();let r=[];i.forEach(e=>this.getCursorsForSelection(e,n,r)),r.length>0&&t.setSelections(r)}}class S extends a.b{constructor(){super({id:"editor.action.addCursorsToBottom",label:i.a("mutlicursor.addCursorsToBottom","Add Cursors To Bottom"),alias:"Add Cursors To Bottom",precondition:void 0})}run(e,t){if(!t.hasModel())return;const n=t.getSelections(),i=t.getModel().getLineCount();let r=[];for(let e=n[0].startLineNumber;e<=i;e++)r.push(new d.a(e,n[0].startColumn,e,n[0].endColumn));r.length>0&&t.setSelections(r)}}class k extends a.b{constructor(){super({id:"editor.action.addCursorsToTop",label:i.a("mutlicursor.addCursorsToTop","Add Cursors To Top"),alias:"Add Cursors To Top",precondition:void 0})}run(e,t){if(!t.hasModel())return;const n=t.getSelections();let i=[];for(let e=n[0].startLineNumber;e>=1;e--)i.push(new d.a(e,n[0].startColumn,e,n[0].endColumn));i.length>0&&t.setSelections(i)}}class x{constructor(e,t,n){this.selections=e,this.revealRange=t,this.revealScrollType=n}}class L{constructor(e,t,n,i,r,o,s){this._editor=e,this.findController=t,this.isDisconnectedFromFindController=n,this.searchText=i,this.wholeWord=r,this.matchCase=o,this.currentMatch=s}static create(e,t){if(!e.hasModel())return null;const n=t.getState();if(!e.hasTextFocus()&&n.isRevealed&&n.searchString.length>0)return new L(e,t,!1,n.searchString,n.wholeWord,n.matchCase,null);let i,r,o=!1;const s=e.getSelections();1===s.length&&s[0].isEmpty()?(o=!0,i=!0,r=!0):(i=n.wholeWord,r=n.matchCase);const a=e.getSelection();let l,c=null;if(a.isEmpty()){const t=e.getConfiguredWordAtPosition(a.getStartPosition());if(!t)return null;l=t.word,c=new d.a(a.startLineNumber,t.startColumn,a.startLineNumber,t.endColumn)}else l=e.getModel().getValueInRange(a).replace(/\r\n/g,"\n");return new L(e,t,o,l,i,r,c)}addSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;const e=this._getNextMatch();if(!e)return null;const t=this._editor.getSelections();return new x(t.concat(e),e,0)}moveSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;const e=this._getNextMatch();if(!e)return null;const t=this._editor.getSelections();return new x(t.slice(0,t.length-1).concat(e),e,0)}_getNextMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){const e=this.currentMatch;return this.currentMatch=null,e}this.findController.highlightFindOptions();const e=this._editor.getSelections(),t=e[e.length-1],n=this._editor.getModel().findNextMatch(this.searchText,t.getEndPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(105):null,!1);return n?new d.a(n.range.startLineNumber,n.range.startColumn,n.range.endLineNumber,n.range.endColumn):null}addSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;const e=this._getPreviousMatch();if(!e)return null;const t=this._editor.getSelections();return new x(t.concat(e),e,0)}moveSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;const e=this._getPreviousMatch();if(!e)return null;const t=this._editor.getSelections();return new x(t.slice(0,t.length-1).concat(e),e,0)}_getPreviousMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){const e=this.currentMatch;return this.currentMatch=null,e}this.findController.highlightFindOptions();const e=this._editor.getSelections(),t=e[e.length-1],n=this._editor.getModel().findPreviousMatch(this.searchText,t.getStartPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(105):null,!1);return n?new d.a(n.range.startLineNumber,n.range.startColumn,n.range.endLineNumber,n.range.endColumn):null}selectAll(){return this._editor.hasModel()?(this.findController.highlightFindOptions(),this._editor.getModel().findMatches(this.searchText,!0,!1,this.matchCase,this.wholeWord?this._editor.getOption(105):null,!1,1073741824)):[]}}class M extends s.a{constructor(e){super(),this._sessionDispose=this._register(new s.b),this._editor=e,this._ignoreSelectionChange=!1,this._session=null}static get(e){return e.getContribution(M.ID)}dispose(){this._endSession(),super.dispose()}_beginSessionIfNeeded(e){if(!this._session){const t=L.create(this._editor,e);if(!t)return;this._session=t;const n={searchString:this._session.searchText};this._session.isDisconnectedFromFindController&&(n.wholeWordOverride=1,n.matchCaseOverride=1,n.isRegexOverride=2),e.getState().change(n,!1),this._sessionDispose.add(this._editor.onDidChangeCursorSelection(e=>{this._ignoreSelectionChange||this._endSession()})),this._sessionDispose.add(this._editor.onDidBlurEditorText(()=>{this._endSession()})),this._sessionDispose.add(e.getState().onFindReplaceStateChange(e=>{(e.matchCase||e.wholeWord)&&this._endSession()}))}}_endSession(){if(this._sessionDispose.clear(),this._session&&this._session.isDisconnectedFromFindController){const e={wholeWordOverride:0,matchCaseOverride:0,isRegexOverride:0};this._session.findController.getState().change(e,!1)}this._session=null}_setSelections(e){this._ignoreSelectionChange=!0,this._editor.setSelections(e),this._ignoreSelectionChange=!1}_expandEmptyToWord(e,t){if(!t.isEmpty())return t;const n=this._editor.getConfiguredWordAtPosition(t.getStartPosition());return n?new d.a(t.startLineNumber,n.startColumn,t.startLineNumber,n.endColumn):t}_applySessionResult(e){e&&(this._setSelections(e.selections),e.revealRange&&this._editor.revealRangeInCenterIfOutsideViewport(e.revealRange,e.revealScrollType))}getSession(e){return this._session}addSelectionToNextFindMatch(e){if(this._editor.hasModel()){if(!this._session){const t=this._editor.getSelections();if(t.length>1){const n=e.getState().matchCase;if(!j(this._editor.getModel(),t,n)){const e=this._editor.getModel();let n=[];for(let i=0,r=t.length;i<r;i++)n[i]=this._expandEmptyToWord(e,t[i]);return void this._editor.setSelections(n)}}}this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.addSelectionToNextFindMatch())}}addSelectionToPreviousFindMatch(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.addSelectionToPreviousFindMatch())}moveSelectionToNextFindMatch(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.moveSelectionToNextFindMatch())}moveSelectionToPreviousFindMatch(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.moveSelectionToPreviousFindMatch())}selectAll(e){if(!this._editor.hasModel())return;let t=null;const n=e.getState();if(n.isRevealed&&n.searchString.length>0&&n.isRegex)t=this._editor.getModel().findMatches(n.searchString,!0,n.isRegex,n.matchCase,n.wholeWord?this._editor.getOption(105):null,!1,1073741824);else{if(this._beginSessionIfNeeded(e),!this._session)return;t=this._session.selectAll()}if(n.searchScope){const e=n.searchScope;let i=[];t.forEach(t=>{e.forEach(e=>{t.range.endLineNumber<=e.endLineNumber&&t.range.startLineNumber>=e.startLineNumber&&i.push(t)})}),t=i}if(t.length>0){const e=this._editor.getSelection();for(let n=0,i=t.length;n<i;n++){const i=t[n];if(i.range.intersectRanges(e)){t[n]=t[0],t[0]=i;break}}this._setSelections(t.map(e=>new d.a(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn)))}}}M.ID="editor.contrib.multiCursorController";class D extends a.b{run(e,t){const n=M.get(t);if(!n)return;const i=p.CommonFindController.get(t);i&&this._run(n,i)}}class E extends D{constructor(){super({id:"editor.action.addSelectionToNextFindMatch",label:i.a("addSelectionToNextFindMatch","Add Selection To Next Find Match"),alias:"Add Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:u.a.focus,primary:2082,weight:100},menuOpts:{menuId:m.b.MenubarSelectionMenu,group:"3_multi",title:i.a({key:"miAddSelectionToNextFindMatch",comment:["&& denotes a mnemonic"]},"Add &&Next Occurrence"),order:5}})}_run(e,t){e.addSelectionToNextFindMatch(t)}}class T extends D{constructor(){super({id:"editor.action.addSelectionToPreviousFindMatch",label:i.a("addSelectionToPreviousFindMatch","Add Selection To Previous Find Match"),alias:"Add Selection To Previous Find Match",precondition:void 0,menuOpts:{menuId:m.b.MenubarSelectionMenu,group:"3_multi",title:i.a({key:"miAddSelectionToPreviousFindMatch",comment:["&& denotes a mnemonic"]},"Add P&&revious Occurrence"),order:6}})}_run(e,t){e.addSelectionToPreviousFindMatch(t)}}class O extends D{constructor(){super({id:"editor.action.moveSelectionToNextFindMatch",label:i.a("moveSelectionToNextFindMatch","Move Last Selection To Next Find Match"),alias:"Move Last Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:u.a.focus,primary:Object(o.a)(2089,2082),weight:100}})}_run(e,t){e.moveSelectionToNextFindMatch(t)}}class N extends D{constructor(){super({id:"editor.action.moveSelectionToPreviousFindMatch",label:i.a("moveSelectionToPreviousFindMatch","Move Last Selection To Previous Find Match"),alias:"Move Last Selection To Previous Find Match",precondition:void 0})}_run(e,t){e.moveSelectionToPreviousFindMatch(t)}}class I extends D{constructor(){super({id:"editor.action.selectHighlights",label:i.a("selectAllOccurrencesOfFindMatch","Select All Occurrences of Find Match"),alias:"Select All Occurrences of Find Match",precondition:void 0,kbOpts:{kbExpr:u.a.focus,primary:3114,weight:100},menuOpts:{menuId:m.b.MenubarSelectionMenu,group:"3_multi",title:i.a({key:"miSelectHighlights",comment:["&& denotes a mnemonic"]},"Select All &&Occurrences"),order:7}})}_run(e,t){e.selectAll(t)}}class A extends D{constructor(){super({id:"editor.action.changeAll",label:i.a("changeAll.label","Change All Occurrences"),alias:"Change All Occurrences",precondition:v.a.and(u.a.writable,u.a.editorTextFocus),kbOpts:{kbExpr:u.a.editorTextFocus,primary:2108,weight:100},contextMenuOpts:{group:"1_modification",order:1.2}})}_run(e,t){e.selectAll(t)}}class R{constructor(e,t,n,i){this.searchText=e,this.matchCase=t,this.wordSeparators=n,this.modelVersionId=i}static softEquals(e,t){return!e&&!t||!(!e||!t)&&(e.searchText===t.searchText&&e.matchCase===t.matchCase&&e.wordSeparators===t.wordSeparators&&e.modelVersionId===t.modelVersionId)}}class P extends s.a{constructor(e){super(),this.editor=e,this._isEnabled=e.getOption(89),this.decorations=[],this.updateSoon=this._register(new r.d(()=>this._update(),300)),this.state=null,this._register(e.onDidChangeConfiguration(t=>{this._isEnabled=e.getOption(89)})),this._register(e.onDidChangeCursorSelection(e=>{this._isEnabled&&(e.selection.isEmpty()?3===e.reason?(this.state&&this._setState(null),this.updateSoon.schedule()):this._setState(null):this._update())})),this._register(e.onDidChangeModel(e=>{this._setState(null)})),this._register(e.onDidChangeModelContent(e=>{this._isEnabled&&this.updateSoon.schedule()})),this._register(p.CommonFindController.get(e).getState().onFindReplaceStateChange(e=>{this._update()}))}_update(){this._setState(P._createState(this._isEnabled,this.editor))}static _createState(e,t){if(!e)return null;if(!t.hasModel())return null;const n=t.getSelection();if(n.startLineNumber!==n.endLineNumber)return null;const i=M.get(t);if(!i)return null;const r=p.CommonFindController.get(t);if(!r)return null;let o=i.getSession(r);if(!o){const e=t.getSelections();if(e.length>1){const n=r.getState().matchCase;if(!j(t.getModel(),e,n))return null}o=L.create(t,r)}if(!o)return null;if(o.currentMatch)return null;if(/^[ \t]+$/.test(o.searchText))return null;if(o.searchText.length>200)return null;const s=r.getState(),a=s.matchCase;if(s.isRevealed){let e=s.searchString;a||(e=e.toLowerCase());let t=o.searchText;if(a||(t=t.toLowerCase()),e===t&&o.matchCase===s.matchCase&&o.wholeWord===s.wholeWord&&!s.isRegex)return null}return new R(o.searchText,o.matchCase,o.wholeWord?t.getOption(105):null,t.getModel().getVersionId())}_setState(e){if(R.softEquals(this.state,e))return void(this.state=e);if(this.state=e,!this.state)return void(this.decorations=this.editor.deltaDecorations(this.decorations,[]));if(!this.editor.hasModel())return;const t=this.editor.getModel();if(t.isTooLargeForTokenization())return;const n=g.i.has(t)&&this.editor.getOption(63);let i=t.findMatches(this.state.searchText,!0,!1,this.state.matchCase,this.state.wordSeparators,!1).map(e=>e.range);i.sort(c.a.compareRangesUsingStarts);let r=this.editor.getSelections();r.sort(c.a.compareRangesUsingStarts);let o=[];for(let e=0,t=0,n=i.length,s=r.length;e<n;){const n=i[e];if(t>=s)o.push(n),e++;else{const i=c.a.compareRangesUsingStarts(n,r[t]);i<0?(!r[t].isEmpty()&&c.a.areIntersecting(n,r[t])||o.push(n),e++):i>0?t++:(e++,t++)}}const s=o.map(e=>({range:e,options:n?P._SELECTION_HIGHLIGHT:P._SELECTION_HIGHLIGHT_OVERVIEW}));this.decorations=this.editor.deltaDecorations(this.decorations,s)}dispose(){this._setState(null),super.dispose()}}function j(e,t,n){const i=F(e,t[0],!n);for(let r=1,o=t.length;r<o;r++){const o=t[r];if(o.isEmpty())return!1;if(i!==F(e,o,!n))return!1}return!0}function F(e,t,n){const i=e.getValueInRange(t);return n?i.toLowerCase():i}P.ID="editor.contrib.selectionHighlighter",P._SELECTION_HIGHLIGHT_OVERVIEW=f.a.register({stickiness:1,className:"selectionHighlight",overviewRuler:{color:Object(b.h)(_.Wb),position:h.d.Center}}),P._SELECTION_HIGHLIGHT=f.a.register({stickiness:1,className:"selectionHighlight"}),Object(a.m)(M.ID,M),Object(a.m)(P.ID,P),Object(a.k)(y),Object(a.k)(w),Object(a.k)(C),Object(a.k)(E),Object(a.k)(T),Object(a.k)(O),Object(a.k)(N),Object(a.k)(I),Object(a.k)(A),Object(a.k)(S),Object(a.k)(k)},function(e,t,n){"use strict";n.r(t),n.d(t,"CONTEXT_ONTYPE_RENAME_INPUT_VISIBLE",(function(){return L})),n.d(t,"OnTypeRenameContribution",(function(){return M})),n.d(t,"OnTypeRenameAction",(function(){return D})),n.d(t,"getOnTypeRenameRanges",(function(){return T})),n.d(t,"editorOnTypeRenameBackground",(function(){return O}));n(618);var i=n(0),r=n(4),o=n(14),s=n(2),a=n(10),l=n(26),c=n(3),d=n(11),u=n(19),h=n(29),f=n(9),g=n(7),p=n(24),m=n(33),_=n(15),b=n(8),v=n(5),y=n(18),w=n(13),C=n(32),S=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},k=function(e,t){return function(n,i){t(n,i,e)}},x=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};const L=new f.c("onTypeRenameInputVisible",!1);let M=class e extends s.a{constructor(e,t){super(),this._debounceDuration=200,this._localToDispose=this._register(new s.b),this._editor=e,this._enabled=!1,this._visibleContextKey=L.bindTo(t),this._currentDecorations=[],this._languageWordPattern=null,this._currentWordPattern=null,this._ignoreChangeEvent=!1,this._localToDispose=this._register(new s.b),this._rangeUpdateTriggerPromise=null,this._rangeSyncTriggerPromise=null,this._currentRequest=null,this._currentRequestPosition=null,this._currentRequestModelVersion=null,this._register(this._editor.onDidChangeModel(()=>this.reinitialize())),this._register(this._editor.onDidChangeConfiguration(e=>{e.hasChanged(73)&&this.reinitialize()})),this._register(d.u.onDidChange(()=>this.reinitialize())),this._register(this._editor.onDidChangeModelLanguage(()=>this.reinitialize())),this.reinitialize()}static get(t){return t.getContribution(e.ID)}reinitialize(){const e=this._editor.getModel(),t=null!==e&&this._editor.getOption(73)&&d.u.has(e);if(t===this._enabled)return;if(this._enabled=t,this.clearRanges(),this._localToDispose.clear(),!t||null===e)return;this._languageWordPattern=C.a.getWordDefinition(e.getLanguageIdentifier().id),this._localToDispose.add(e.onDidChangeLanguageConfiguration(()=>{this._languageWordPattern=C.a.getWordDefinition(e.getLanguageIdentifier().id)}));const n=new u.a(this._debounceDuration),i=()=>{this._rangeUpdateTriggerPromise=n.trigger(()=>this.updateRanges(),this._debounceDuration)},r=new u.a(0),o=e=>{this._rangeSyncTriggerPromise=r.trigger(()=>this._syncRanges(e))};this._localToDispose.add(this._editor.onDidChangeCursorPosition(()=>{i()})),this._localToDispose.add(this._editor.onDidChangeModelContent(t=>{if(!this._ignoreChangeEvent&&this._currentDecorations.length>0){const n=e.getDecorationRange(this._currentDecorations[0]);if(n&&t.changes.every(e=>n.intersectRanges(e.range)))return void o(this._currentDecorations)}i()})),this._localToDispose.add({dispose:()=>{n.cancel(),r.cancel()}}),this.updateRanges()}_syncRanges(e){if(!this._editor.hasModel()||e!==this._currentDecorations||0===e.length)return;const t=this._editor.getModel(),n=t.getDecorationRange(e[0]);if(!n||n.startLineNumber!==n.endLineNumber)return this.clearRanges();const i=t.getValueInRange(n);if(this._currentWordPattern){const e=i.match(this._currentWordPattern);if((e?e[0].length:0)!==i.length)return this.clearRanges()}let r=[];for(let n=1,o=e.length;n<o;n++){const o=t.getDecorationRange(e[n]);if(o)if(o.startLineNumber!==o.endLineNumber)r.push({range:o,text:i});else{let e=t.getValueInRange(o),n=i,s=o.startColumn,a=o.endColumn;const l=b.d(e,n);s+=l,e=e.substr(l),n=n.substr(l);const d=b.e(e,n);a-=d,e=e.substr(0,e.length-d),n=n.substr(0,n.length-d),s===a&&0===n.length||r.push({range:new c.a(o.startLineNumber,s,o.endLineNumber,a),text:n})}}if(0!==r.length)try{this._ignoreChangeEvent=!0;const e=this._editor._getViewModel().getPrevEditOperationType();this._editor.executeEdits("onTypeRename",r),this._editor._getViewModel().setPrevEditOperationType(e)}finally{this._ignoreChangeEvent=!1}}dispose(){this.clearRanges(),super.dispose()}clearRanges(){this._visibleContextKey.set(!1),this._currentDecorations=this._editor.deltaDecorations(this._currentDecorations,[]),this._currentRequest&&(this._currentRequest.cancel(),this._currentRequest=null,this._currentRequestPosition=null)}updateRanges(t=!1){return x(this,void 0,void 0,(function*(){if(!this._editor.hasModel())return void this.clearRanges();const n=this._editor.getPosition();if(!this._enabled&&!t||this._editor.getSelections().length>1)return void this.clearRanges();const i=this._editor.getModel(),r=i.getVersionId();if(this._currentRequestPosition&&this._currentRequestModelVersion===r){if(n.equals(this._currentRequestPosition))return;if(this._currentDecorations&&this._currentDecorations.length>0){const e=i.getDecorationRange(this._currentDecorations[0]);if(e&&e.containsPosition(n))return}}this._currentRequestPosition=n,this._currentRequestModelVersion=r;const o=Object(u.f)(t=>x(this,void 0,void 0,(function*(){try{const s=yield T(i,n,t);if(o!==this._currentRequest)return;if(this._currentRequest=null,r!==i.getVersionId())return;let a=[];(null==s?void 0:s.ranges)&&(a=s.ranges),this._currentWordPattern=(null==s?void 0:s.wordPattern)||this._languageWordPattern;let l=!1;for(let e=0,t=a.length;e<t;e++)if(c.a.containsPosition(a[e],n)){if(l=!0,0!==e){const t=a[e];a.splice(e,1),a.unshift(t)}break}if(!l)return void this.clearRanges();const d=a.map(t=>({range:t,options:e.DECORATION}));this._visibleContextKey.set(!0),this._currentDecorations=this._editor.deltaDecorations(this._currentDecorations,d)}catch(e){Object(_.d)(e)||Object(_.e)(e),this._currentRequest!==o&&this._currentRequest||this.clearRanges()}})));return this._currentRequest=o,o}))}};M.ID="editor.contrib.onTypeRename",M.DECORATION=h.a.register({stickiness:0,className:"on-type-rename-decoration"}),M=S([k(1,f.b)],M);class D extends r.b{constructor(){super({id:"editor.action.onTypeRename",label:i.a("onTypeRename.label","On Type Rename Symbol"),alias:"On Type Rename Symbol",precondition:f.a.and(g.a.writable,g.a.hasRenameProvider),kbOpts:{kbExpr:g.a.editorTextFocus,primary:3132,weight:100}})}runCommand(e,t){const n=e.get(m.a),[i,r]=Array.isArray(t)&&t||[void 0,void 0];return p.a.isUri(i)&&a.a.isIPosition(r)?n.openCodeEditor({resource:i},n.getActiveCodeEditor()).then(e=>{e&&(e.setPosition(r),e.invokeWithinContext(t=>(this.reportTelemetry(t,e),this.run(t,e))))},_.e):super.runCommand(e,t)}run(e,t){const n=M.get(t);return n?Promise.resolve(n.updateRanges(!0)):Promise.resolve()}}const E=r.c.bindToContribution(M.get);function T(e,t,n){const i=d.u.ordered(e);return Object(u.h)(i.map(i=>()=>Promise.resolve(i.provideOnTypeRenameRanges(e,t,n)).then(e=>{if(e)return{ranges:e.ranges,wordPattern:e.wordPattern||i.wordPattern}},e=>{Object(_.f)(e)})),e=>!!e&&o.o(null==e?void 0:e.ranges))}Object(r.l)(new E({id:"cancelOnTypeRenameInput",precondition:L,handler:e=>e.clearRanges(),kbOpts:{kbExpr:g.a.editorTextFocus,weight:199,primary:9,secondary:[1033]}}));const O=Object(v.gc)("editor.onTypeRenameBackground",{dark:w.a.fromHex("#f00").transparent(.3),light:w.a.fromHex("#f00").transparent(.3),hc:w.a.fromHex("#f00").transparent(.3)},i.a("editorOnTypeRenameBackground","Background color when the editor auto renames on type."));Object(y.g)((e,t)=>{const n=e.getColor(O);n&&t.addRule(`.monaco-editor .on-type-rename-decoration { background: ${n}; border-left-color: ${n}; }`)}),Object(r.p)("_executeRenameOnTypeProvider",(e,t)=>T(e,t,l.a.None)),Object(r.m)(M.ID,M),Object(r.k)(D)},function(e,t,n){"use strict";n.r(t);var i=n(4),r=n(137),o=n(44);class s extends i.b{constructor(){super({id:"editor.action.toggleHighContrast",label:o.i.toggleHighContrast,alias:"Toggle High Contrast Theme",precondition:void 0}),this._originalThemeName=null}run(e,t){const n=e.get(r.a);this._originalThemeName?(n.setTheme(this._originalThemeName),this._originalThemeName=null):(this._originalThemeName=n.getColorTheme().themeName,n.setTheme("hc-black"))}}Object(i.k)(s)},function(e,t,n){"use strict";n.r(t);var i=n(0),r=n(4),o=n(51),s=n(3),a=n(7),l=n(68);class c extends r.b{constructor(){super({id:"editor.action.transposeLetters",label:i.a("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:a.a.writable,kbOpts:{kbExpr:a.a.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(!t.hasModel())return;let n=t.getModel(),i=[],r=t.getSelections();for(let e of r){if(!e.isEmpty())continue;let t=e.startLineNumber,r=e.startColumn,a=n.getLineMaxColumn(t);if(1===t&&(1===r||2===r&&2===a))continue;let c=r===a?e.getPosition():l.a.rightPosition(n,e.getPosition().lineNumber,e.getPosition().column),d=l.a.leftPosition(n,c.lineNumber,c.column),u=l.a.leftPosition(n,d.lineNumber,d.column),h=n.getValueInRange(s.a.fromPositions(u,d)),f=n.getValueInRange(s.a.fromPositions(d,c)),g=s.a.fromPositions(u,c);i.push(new o.a(g,f+h))}i.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop())}}Object(r.k)(c)},function(e,t,n){"use strict";n.r(t);var i=n(0),r=n(2),o=n(4),s=n(33),a=n(206),l=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},c=function(e,t){return function(n,i){t(n,i,e)}},d=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};const u="ignoreUnusualLineTerminators";let h=class extends r.a{constructor(e,t,n){super(),this._editor=e,this._dialogService=t,this._codeEditorService=n,this._config=this._editor.getOption(103),this._register(this._editor.onDidChangeConfiguration(e=>{e.hasChanged(103)&&(this._config=this._editor.getOption(103),this._checkForUnusualLineTerminators())})),this._register(this._editor.onDidChangeModel(()=>{this._checkForUnusualLineTerminators()})),this._register(this._editor.onDidChangeModelContent(e=>{e.isUndoing||this._checkForUnusualLineTerminators()}))}_checkForUnusualLineTerminators(){return d(this,void 0,void 0,(function*(){if("off"===this._config)return;if(!this._editor.hasModel())return;const e=this._editor.getModel();e.mightContainUnusualLineTerminators()&&!0!==function(e,t){return e.getModelProperty(t.uri,u)}(this._codeEditorService,e)&&(this._editor.getOption(72)||("auto"!==this._config?(yield this._dialogService.confirm({title:i.a("unusualLineTerminators.title","Unusual Line Terminators"),message:i.a("unusualLineTerminators.message","Detected unusual line terminators"),detail:i.a("unusualLineTerminators.detail","This file contains one or more unusual line terminator characters, like Line Separator (LS) or Paragraph Separator (PS).\n\nIt is recommended to remove them from the file. This can be configured via `editor.unusualLineTerminators`."),primaryButton:i.a("unusualLineTerminators.fix","Fix this file"),secondaryButton:i.a("unusualLineTerminators.ignore","Ignore problem for this file")})).confirmed?e.removeUnusualLineTerminators(this._editor.getSelections()):function(e,t,n){e.setModelProperty(t.uri,u,n)}(this._codeEditorService,e,!0):e.removeUnusualLineTerminators(this._editor.getSelections())))}))}};h.ID="editor.contrib.unusualLineTerminatorsDetector",h=l([c(1,a.a),c(2,s.a)],h),Object(o.m)(h.ID,h)},function(e,t,n){"use strict";n.r(t);var i=n(19),r=n(2),o=n(4),s=n(11),a=n(54),l=n(234),c=n(18),d=n(43),u=n(235),h=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},f=function(e,t){return function(n,i){t(n,i,e)}};let g=class e extends r.a{constructor(e,t,n,r){super(),this._modelService=t,this._themeService=n,this._configurationService=r,this._editor=e,this._tokenizeViewport=new i.d(()=>this._tokenizeViewportNow(),100),this._outstandingRequests=[],this._register(this._editor.onDidScrollChange(()=>{this._tokenizeViewport.schedule()})),this._register(this._editor.onDidChangeModel(()=>{this._cancelAll(),this._tokenizeViewport.schedule()})),this._register(this._editor.onDidChangeModelContent(e=>{this._cancelAll(),this._tokenizeViewport.schedule()})),this._register(s.k.onDidChange(()=>{this._cancelAll(),this._tokenizeViewport.schedule()})),this._register(this._configurationService.onDidChangeConfiguration(e=>{e.affectsConfiguration(u.b)&&(this._cancelAll(),this._tokenizeViewport.schedule())})),this._register(this._themeService.onDidColorThemeChange(()=>{this._cancelAll(),this._tokenizeViewport.schedule()}))}static _getSemanticColoringProvider(e){const t=s.k.ordered(e);return t.length>0?t[0]:null}_cancelAll(){for(const e of this._outstandingRequests)e.cancel();this._outstandingRequests=[]}_removeOutstandingRequest(e){for(let t=0,n=this._outstandingRequests.length;t<n;t++)if(this._outstandingRequests[t]===e)return void this._outstandingRequests.splice(t,1)}_tokenizeViewportNow(){if(!this._editor.hasModel())return;const t=this._editor.getModel();if(t.hasSemanticTokens())return;if(!Object(u.c)(t,this._themeService,this._configurationService))return;const n=e._getSemanticColoringProvider(t);if(!n)return;const i=this._modelService.getSemanticTokensProviderStyling(n),r=this._editor.getVisibleRangesPlusViewportAboveBelow();this._outstandingRequests=this._outstandingRequests.concat(r.map(e=>this._requestRange(t,e,n,i)))}_requestRange(e,t,n,r){const o=e.getVersionId(),s=Object(i.f)(i=>Promise.resolve(n.provideDocumentRangeSemanticTokens(e,t,i)));return s.then(n=>{n&&!e.isDisposed()&&e.getVersionId()===o&&e.setPartialSemanticTokens(t,Object(l.b)(n,r,e.getLanguageIdentifier()))}).then(()=>this._removeOutstandingRequest(s),()=>this._removeOutstandingRequest(s)),s}};g.ID="editor.contrib.viewportSemanticTokens",g=h([f(1,a.a),f(2,c.c),f(3,d.a)],g),Object(o.m)(g.ID,g)},function(e,t,n){"use strict";n.r(t),n.d(t,"getOccurrencesAtPosition",(function(){return D}));var i=n(0),r=n(14),o=n(19),s=n(26),a=n(15),l=n(2),c=n(4),d=n(3),u=n(7),h=n(48),f=n(29),g=n(11),p=n(9),m=n(5),_=n(18),b=n(55),v=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},y=function(e,t){return function(n,i){t(n,i,e)}};const w=Object(m.gc)("editor.wordHighlightBackground",{dark:"#575757B8",light:"#57575740",hc:null},i.a("wordHighlight","Background color of a symbol during read-access, like reading a variable. The color must not be opaque so as not to hide underlying decorations."),!0),C=Object(m.gc)("editor.wordHighlightStrongBackground",{dark:"#004972B8",light:"#0e639c40",hc:null},i.a("wordHighlightStrong","Background color of a symbol during write-access, like writing to a variable. The color must not be opaque so as not to hide underlying decorations."),!0),S=Object(m.gc)("editor.wordHighlightBorder",{light:null,dark:null,hc:m.b},i.a("wordHighlightBorder","Border color of a symbol during read-access, like reading a variable.")),k=Object(m.gc)("editor.wordHighlightStrongBorder",{light:null,dark:null,hc:m.b},i.a("wordHighlightStrongBorder","Border color of a symbol during write-access, like writing to a variable.")),x=Object(m.gc)("editorOverviewRuler.wordHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hc:"#A0A0A0CC"},i.a("overviewRulerWordHighlightForeground","Overview ruler marker color for symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),L=Object(m.gc)("editorOverviewRuler.wordHighlightStrongForeground",{dark:"#C0A0C0CC",light:"#C0A0C0CC",hc:"#C0A0C0CC"},i.a("overviewRulerWordHighlightStrongForeground","Overview ruler marker color for write-access symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),M=new p.c("hasWordHighlights",!1);function D(e,t,n){const i=g.i.ordered(e);return Object(o.h)(i.map(i=>()=>Promise.resolve(i.provideDocumentHighlights(e,t,n)).then(void 0,a.f)),r.o)}class E{constructor(e,t,n){this._wordRange=this._getCurrentWordRange(e,t),this.result=Object(o.f)(i=>this._compute(e,t,n,i))}_getCurrentWordRange(e,t){const n=e.getWordAtPosition(t.getPosition());return n?new d.a(t.startLineNumber,n.startColumn,t.startLineNumber,n.endColumn):null}isValid(e,t,n){const i=t.startLineNumber,r=t.startColumn,o=t.endColumn,s=this._getCurrentWordRange(e,t);let a=Boolean(this._wordRange&&this._wordRange.equalsRange(s));for(let t=0,s=n.length;!a&&t<s;t++){let s=e.getDecorationRange(n[t]);s&&s.startLineNumber===i&&s.startColumn<=r&&s.endColumn>=o&&(a=!0)}return a}cancel(){this.result.cancel()}}class T extends E{_compute(e,t,n,i){return D(e,t.getPosition(),i).then(e=>e||[])}}class O extends E{constructor(e,t,n){super(e,t,n),this._selectionIsEmpty=t.isEmpty()}_compute(e,t,n,i){return Object(o.l)(250,i).then(()=>{if(!t.isEmpty())return[];const i=e.getWordAtPosition(t.getPosition());return!i||i.word.length>1e3?[]:e.findMatches(i.word,!0,!1,!0,n,!1).map(e=>({range:e.range,kind:g.h.Text}))})}isValid(e,t,n){const i=t.isEmpty();return this._selectionIsEmpty===i&&super.isValid(e,t,n)}}Object(c.p)("_executeDocumentHighlights",(e,t)=>D(e,t,s.a.None));class N{constructor(e,t){this.toUnhook=new l.b,this.workerRequestTokenId=0,this.workerRequestCompleted=!1,this.workerRequestValue=[],this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,this.editor=e,this._hasWordHighlights=M.bindTo(t),this._ignorePositionChangeEvent=!1,this.occurrencesHighlight=this.editor.getOption(63),this.model=this.editor.getModel(),this.toUnhook.add(e.onDidChangeCursorPosition(e=>{this._ignorePositionChangeEvent||this.occurrencesHighlight&&this._onPositionChanged(e)})),this.toUnhook.add(e.onDidChangeModelContent(e=>{this._stopAll()})),this.toUnhook.add(e.onDidChangeConfiguration(e=>{let t=this.editor.getOption(63);this.occurrencesHighlight!==t&&(this.occurrencesHighlight=t,this._stopAll())})),this._decorationIds=[],this.workerRequestTokenId=0,this.workerRequest=null,this.workerRequestCompleted=!1,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1}hasDecorations(){return this._decorationIds.length>0}restore(){this.occurrencesHighlight&&this._run()}_getSortedHighlights(){return r.d(this._decorationIds.map(e=>this.model.getDecorationRange(e)).sort(d.a.compareRangesUsingStarts))}moveNext(){let e=this._getSortedHighlights(),t=(r.j(e,e=>e.containsPosition(this.editor.getPosition()))+1)%e.length,n=e[t];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(n.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(n);const i=this._getWord();if(i){const r=this.editor.getModel().getLineContent(n.startLineNumber);Object(b.a)(`${r}, ${t+1} of ${e.length} for '${i.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}moveBack(){let e=this._getSortedHighlights(),t=(r.j(e,e=>e.containsPosition(this.editor.getPosition()))-1+e.length)%e.length,n=e[t];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(n.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(n);const i=this._getWord();if(i){const r=this.editor.getModel().getLineContent(n.startLineNumber);Object(b.a)(`${r}, ${t+1} of ${e.length} for '${i.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}_removeDecorations(){this._decorationIds.length>0&&(this._decorationIds=this.editor.deltaDecorations(this._decorationIds,[]),this._hasWordHighlights.set(!1))}_stopAll(){this._removeDecorations(),-1!==this.renderDecorationsTimer&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1),null!==this.workerRequest&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||(this.workerRequestTokenId++,this.workerRequestCompleted=!0)}_onPositionChanged(e){this.occurrencesHighlight&&3===e.reason?this._run():this._stopAll()}_getWord(){let e=this.editor.getSelection(),t=e.startLineNumber,n=e.startColumn;return this.model.getWordAtPosition({lineNumber:t,column:n})}_run(){let e=this.editor.getSelection();if(e.startLineNumber!==e.endLineNumber)return void this._stopAll();let t=e.startColumn,n=e.endColumn;const i=this._getWord();if(!i||i.startColumn>t||i.endColumn<n)return void this._stopAll();const r=this.workerRequest&&this.workerRequest.isValid(this.model,e,this._decorationIds);if(this.lastCursorPositionChangeTime=(new Date).getTime(),r)this.workerRequestCompleted&&-1!==this.renderDecorationsTimer&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1,this._beginRenderDecorations());else{this._stopAll();let e=++this.workerRequestTokenId;this.workerRequestCompleted=!1,this.workerRequest=(o=this.model,s=this.editor.getSelection(),l=this.editor.getOption(105),g.i.has(o)?new T(o,s,l):new O(o,s,l)),this.workerRequest.result.then(t=>{e===this.workerRequestTokenId&&(this.workerRequestCompleted=!0,this.workerRequestValue=t||[],this._beginRenderDecorations())},a.e)}var o,s,l}_beginRenderDecorations(){let e=(new Date).getTime(),t=this.lastCursorPositionChangeTime+250;e>=t?(this.renderDecorationsTimer=-1,this.renderDecorations()):this.renderDecorationsTimer=setTimeout(()=>{this.renderDecorations()},t-e)}renderDecorations(){this.renderDecorationsTimer=-1;let e=[];for(const t of this.workerRequestValue)t.range&&e.push({range:t.range,options:N._getDecorationOptions(t.kind)});this._decorationIds=this.editor.deltaDecorations(this._decorationIds,e),this._hasWordHighlights.set(this.hasDecorations())}static _getDecorationOptions(e){return e===g.h.Write?this._WRITE_OPTIONS:e===g.h.Text?this._TEXT_OPTIONS:this._REGULAR_OPTIONS}dispose(){this._stopAll(),this.toUnhook.dispose()}}N._WRITE_OPTIONS=f.a.register({stickiness:1,className:"wordHighlightStrong",overviewRuler:{color:Object(_.h)(L),position:h.d.Center}}),N._TEXT_OPTIONS=f.a.register({stickiness:1,className:"selectionHighlight",overviewRuler:{color:Object(_.h)(m.Wb),position:h.d.Center}}),N._REGULAR_OPTIONS=f.a.register({stickiness:1,className:"wordHighlight",overviewRuler:{color:Object(_.h)(x),position:h.d.Center}});let I=class e extends l.a{constructor(e,t){super(),this.wordHighlighter=null;const n=()=>{e.hasModel()&&(this.wordHighlighter=new N(e,t))};this._register(e.onDidChangeModel(e=>{this.wordHighlighter&&(this.wordHighlighter.dispose(),this.wordHighlighter=null),n()})),n()}static get(t){return t.getContribution(e.ID)}saveViewState(){return!(!this.wordHighlighter||!this.wordHighlighter.hasDecorations())}moveNext(){this.wordHighlighter&&this.wordHighlighter.moveNext()}moveBack(){this.wordHighlighter&&this.wordHighlighter.moveBack()}restoreViewState(e){this.wordHighlighter&&e&&this.wordHighlighter.restore()}dispose(){this.wordHighlighter&&(this.wordHighlighter.dispose(),this.wordHighlighter=null),super.dispose()}};I.ID="editor.contrib.wordHighlighter",I=v([y(1,p.b)],I);class A extends c.b{constructor(e,t){super(t),this._isNext=e}run(e,t){const n=I.get(t);n&&(this._isNext?n.moveNext():n.moveBack())}}class R extends c.b{constructor(){super({id:"editor.action.wordHighlight.trigger",label:i.a("wordHighlight.trigger.label","Trigger Symbol Highlight"),alias:"Trigger Symbol Highlight",precondition:M.toNegated(),kbOpts:{kbExpr:u.a.editorTextFocus,primary:0,weight:100}})}run(e,t,n){const i=I.get(t);i&&i.restoreViewState(!0)}}Object(c.m)(I.ID,I),Object(c.k)(class extends A{constructor(){super(!0,{id:"editor.action.wordHighlight.next",label:i.a("wordHighlight.next.label","Go to Next Symbol Highlight"),alias:"Go to Next Symbol Highlight",precondition:M,kbOpts:{kbExpr:u.a.editorTextFocus,primary:65,weight:100}})}}),Object(c.k)(class extends A{constructor(){super(!1,{id:"editor.action.wordHighlight.prev",label:i.a("wordHighlight.previous.label","Go to Previous Symbol Highlight"),alias:"Go to Previous Symbol Highlight",precondition:M,kbOpts:{kbExpr:u.a.editorTextFocus,primary:1089,weight:100}})}}),Object(c.k)(R),Object(_.g)((e,t)=>{const n=e.getColor(m.Q);n&&(t.addRule(`.monaco-editor .focused .selectionHighlight { background-color: ${n}; }`),t.addRule(`.monaco-editor .selectionHighlight { background-color: ${n.transparent(.5)}; }`));const i=e.getColor(w);i&&t.addRule(`.monaco-editor .wordHighlight { background-color: ${i}; }`);const r=e.getColor(C);r&&t.addRule(`.monaco-editor .wordHighlightStrong { background-color: ${r}; }`);const o=e.getColor(m.R);o&&t.addRule(`.monaco-editor .selectionHighlight { border: 1px ${"hc"===e.type?"dotted":"solid"} ${o}; box-sizing: border-box; }`);const s=e.getColor(S);s&&t.addRule(`.monaco-editor .wordHighlight { border: 1px ${"hc"===e.type?"dashed":"solid"} ${s}; box-sizing: border-box; }`);const a=e.getColor(k);a&&t.addRule(`.monaco-editor .wordHighlightStrong { border: 1px ${"hc"===e.type?"dashed":"solid"} ${a}; box-sizing: border-box; }`)})},function(e,t,n){"use strict";n.r(t),n.d(t,"DeleteWordPartLeft",(function(){return c})),n.d(t,"DeleteWordPartRight",(function(){return d})),n.d(t,"WordPartLeftCommand",(function(){return u})),n.d(t,"CursorWordPartLeft",(function(){return h})),n.d(t,"CursorWordPartLeftSelect",(function(){return f})),n.d(t,"WordPartRightCommand",(function(){return g})),n.d(t,"CursorWordPartRight",(function(){return p})),n.d(t,"CursorWordPartRightSelect",(function(){return m}));var i=n(4),r=n(122),o=n(3),s=n(7),a=n(172),l=n(28);class c extends a.DeleteWordCommand{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordPartLeft",precondition:s.a.writable,kbOpts:{kbExpr:s.a.textInputFocus,primary:0,mac:{primary:769},weight:100}})}_delete(e,t,n,i,s){let a=r.b.deleteWordPartLeft(e,t,n,i);return a||new o.a(1,1,1,1)}}class d extends a.DeleteWordCommand{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordPartRight",precondition:s.a.writable,kbOpts:{kbExpr:s.a.textInputFocus,primary:0,mac:{primary:788},weight:100}})}_delete(e,t,n,i,s){let a=r.b.deleteWordPartRight(e,t,n,i);if(a)return a;const l=t.getLineCount(),c=t.getLineMaxColumn(l);return new o.a(l,c,l,c)}}class u extends a.MoveWordCommand{_move(e,t,n,i){return r.b.moveWordPartLeft(e,t,n)}}class h extends u{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordPartLeft",precondition:void 0,kbOpts:{kbExpr:s.a.textInputFocus,primary:0,mac:{primary:783},weight:100}})}}l.a.registerCommandAlias("cursorWordPartStartLeft","cursorWordPartLeft");class f extends u{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordPartLeftSelect",precondition:void 0,kbOpts:{kbExpr:s.a.textInputFocus,primary:0,mac:{primary:1807},weight:100}})}}l.a.registerCommandAlias("cursorWordPartStartLeftSelect","cursorWordPartLeftSelect");class g extends a.MoveWordCommand{_move(e,t,n,i){return r.b.moveWordPartRight(e,t,n)}}class p extends g{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordPartRight",precondition:void 0,kbOpts:{kbExpr:s.a.textInputFocus,primary:0,mac:{primary:785},weight:100}})}}class m extends g{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordPartRightSelect",precondition:void 0,kbOpts:{kbExpr:s.a.textInputFocus,primary:0,mac:{primary:1809},weight:100}})}}Object(i.l)(new c),Object(i.l)(new d),Object(i.l)(new h),Object(i.l)(new f),Object(i.l)(new p),Object(i.l)(new m)},function(e,t,n){"use strict";n.r(t),n.d(t,"jsonDefaults",(function(){return r}));n(87);var i=n(224),r=new(function(){function e(e,t,n){this._onDidChange=new i.Emitter,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(n)}return Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"diagnosticsOptions",{get:function(){return this._diagnosticsOptions},enumerable:!1,configurable:!0}),e.prototype.setDiagnosticsOptions=function(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)},e.prototype.setModeConfiguration=function(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)},e}())("json",{validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1},{documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0});i.languages.json={jsonDefaults:r},i.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]}),i.languages.onLanguage("json",(function(){n.e(6).then(n.bind(null,906)).then((function(e){return e.setupMode(r)}))}))},function(e,t,n){"use strict";var i=n(131);e.exports=a;var r="\0",o="\0",s="";function a(e){this._isDirected=!i.has(e,"directed")||e.directed,this._isMultigraph=!!i.has(e,"multigraph")&&e.multigraph,this._isCompound=!!i.has(e,"compound")&&e.compound,this._label=void 0,this._defaultNodeLabelFn=i.constant(void 0),this._defaultEdgeLabelFn=i.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[o]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function l(e,t){e[t]?e[t]++:e[t]=1}function c(e,t){--e[t]||delete e[t]}function d(e,t,n,o){var a=""+t,l=""+n;if(!e&&a>l){var c=a;a=l,l=c}return a+s+l+s+(i.isUndefined(o)?r:o)}function u(e,t,n,i){var r=""+t,o=""+n;if(!e&&r>o){var s=r;r=o,o=s}var a={v:r,w:o};return i&&(a.name=i),a}function h(e,t){return d(e,t.v,t.w,t.name)}a.prototype._nodeCount=0,a.prototype._edgeCount=0,a.prototype.isDirected=function(){return this._isDirected},a.prototype.isMultigraph=function(){return this._isMultigraph},a.prototype.isCompound=function(){return this._isCompound},a.prototype.setGraph=function(e){return this._label=e,this},a.prototype.graph=function(){return this._label},a.prototype.setDefaultNodeLabel=function(e){return i.isFunction(e)||(e=i.constant(e)),this._defaultNodeLabelFn=e,this},a.prototype.nodeCount=function(){return this._nodeCount},a.prototype.nodes=function(){return i.keys(this._nodes)},a.prototype.sources=function(){var e=this;return i.filter(this.nodes(),(function(t){return i.isEmpty(e._in[t])}))},a.prototype.sinks=function(){var e=this;return i.filter(this.nodes(),(function(t){return i.isEmpty(e._out[t])}))},a.prototype.setNodes=function(e,t){var n=arguments,r=this;return i.each(e,(function(e){n.length>1?r.setNode(e,t):r.setNode(e)})),this},a.prototype.setNode=function(e,t){return i.has(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=o,this._children[e]={},this._children[o][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)},a.prototype.node=function(e){return this._nodes[e]},a.prototype.hasNode=function(e){return i.has(this._nodes,e)},a.prototype.removeNode=function(e){var t=this;if(i.has(this._nodes,e)){var n=function(e){t.removeEdge(t._edgeObjs[e])};delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],i.each(this.children(e),(function(e){t.setParent(e)})),delete this._children[e]),i.each(i.keys(this._in[e]),n),delete this._in[e],delete this._preds[e],i.each(i.keys(this._out[e]),n),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this},a.prototype.setParent=function(e,t){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(i.isUndefined(t))t=o;else{for(var n=t+="";!i.isUndefined(n);n=this.parent(n))if(n===e)throw new Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this},a.prototype._removeFromParentsChildList=function(e){delete this._children[this._parent[e]][e]},a.prototype.parent=function(e){if(this._isCompound){var t=this._parent[e];if(t!==o)return t}},a.prototype.children=function(e){if(i.isUndefined(e)&&(e=o),this._isCompound){var t=this._children[e];if(t)return i.keys(t)}else{if(e===o)return this.nodes();if(this.hasNode(e))return[]}},a.prototype.predecessors=function(e){var t=this._preds[e];if(t)return i.keys(t)},a.prototype.successors=function(e){var t=this._sucs[e];if(t)return i.keys(t)},a.prototype.neighbors=function(e){var t=this.predecessors(e);if(t)return i.union(t,this.successors(e))},a.prototype.isLeaf=function(e){return 0===(this.isDirected()?this.successors(e):this.neighbors(e)).length},a.prototype.filterNodes=function(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var n=this;i.each(this._nodes,(function(n,i){e(i)&&t.setNode(i,n)})),i.each(this._edgeObjs,(function(e){t.hasNode(e.v)&&t.hasNode(e.w)&&t.setEdge(e,n.edge(e))}));var r={};return this._isCompound&&i.each(t.nodes(),(function(e){t.setParent(e,function e(i){var o=n.parent(i);return void 0===o||t.hasNode(o)?(r[i]=o,o):o in r?r[o]:e(o)}(e))})),t},a.prototype.setDefaultEdgeLabel=function(e){return i.isFunction(e)||(e=i.constant(e)),this._defaultEdgeLabelFn=e,this},a.prototype.edgeCount=function(){return this._edgeCount},a.prototype.edges=function(){return i.values(this._edgeObjs)},a.prototype.setPath=function(e,t){var n=this,r=arguments;return i.reduce(e,(function(e,i){return r.length>1?n.setEdge(e,i,t):n.setEdge(e,i),i})),this},a.prototype.setEdge=function(){var e,t,n,r,o=!1,s=arguments[0];"object"==typeof s&&null!==s&&"v"in s?(e=s.v,t=s.w,n=s.name,2===arguments.length&&(r=arguments[1],o=!0)):(e=s,t=arguments[1],n=arguments[3],arguments.length>2&&(r=arguments[2],o=!0)),e=""+e,t=""+t,i.isUndefined(n)||(n=""+n);var a=d(this._isDirected,e,t,n);if(i.has(this._edgeLabels,a))return o&&(this._edgeLabels[a]=r),this;if(!i.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[a]=o?r:this._defaultEdgeLabelFn(e,t,n);var c=u(this._isDirected,e,t,n);return e=c.v,t=c.w,Object.freeze(c),this._edgeObjs[a]=c,l(this._preds[t],e),l(this._sucs[e],t),this._in[t][a]=c,this._out[e][a]=c,this._edgeCount++,this},a.prototype.edge=function(e,t,n){var i=1===arguments.length?h(this._isDirected,arguments[0]):d(this._isDirected,e,t,n);return this._edgeLabels[i]},a.prototype.hasEdge=function(e,t,n){var r=1===arguments.length?h(this._isDirected,arguments[0]):d(this._isDirected,e,t,n);return i.has(this._edgeLabels,r)},a.prototype.removeEdge=function(e,t,n){var i=1===arguments.length?h(this._isDirected,arguments[0]):d(this._isDirected,e,t,n),r=this._edgeObjs[i];return r&&(e=r.v,t=r.w,delete this._edgeLabels[i],delete this._edgeObjs[i],c(this._preds[t],e),c(this._sucs[e],t),delete this._in[t][i],delete this._out[e][i],this._edgeCount--),this},a.prototype.inEdges=function(e,t){var n=this._in[e];if(n){var r=i.values(n);return t?i.filter(r,(function(e){return e.v===t})):r}},a.prototype.outEdges=function(e,t){var n=this._out[e];if(n){var r=i.values(n);return t?i.filter(r,(function(e){return e.w===t})):r}},a.prototype.nodeEdges=function(e,t){var n=this.inEdges(e,t);if(n)return n.concat(this.outEdges(e,t))}},function(e,t,n){var i=n(179)(n(142),"Map");e.exports=i},function(e,t,n){var i=n(671),r=n(678),o=n(680),s=n(681),a=n(682);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=r,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,e.exports=l},function(e,t){e.exports=function(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););return e}},function(e,t){var n=9007199254740991;e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}},function(e,t,n){(function(e){var i=n(354),r=t&&!t.nodeType&&t,o=r&&"object"==typeof e&&e&&!e.nodeType&&e,s=o&&o.exports===r&&i.process,a=function(){try{var e=o&&o.require&&o.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=a}).call(this,n(215)(e))},function(e,t,n){var i=n(248),r=n(688),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!i(e))return r(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t,n){var i=n(361),r=n(362),o=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,a=s?function(e){return null==e?[]:(e=Object(e),i(s(e),(function(t){return o.call(e,t)})))}:r;e.exports=a},function(e,t){e.exports=function(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}},function(e,t,n){var i=n(367);e.exports=function(e){var t=new e.constructor(e.byteLength);return new i(t).set(new i(e)),t}},function(e,t,n){var i=n(298),r=n(250),o=n(371),s=n(86);e.exports=function(e,t){return(s(e)?i:r)(e,o(t))}},function(e,t,n){var i=n(307),r=n(158);e.exports=function(e,t){return e&&i(e,t,r)}},function(e,t,n){var i=n(707)();e.exports=i},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},function(e,t,n){var i=n(252),r=n(219);e.exports=function(e,t){for(var n=0,o=(t=i(t,e)).length;null!=e&&n<o;)e=e[r(t[n++])];return n&&n==o?e:void 0}},function(e,t,n){var i=n(86),r=n(196),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;e.exports=function(e,t){if(i(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!r(e))||(s.test(e)||!o.test(e)||null!=t&&e in Object(t))}},function(e,t,n){var i=n(303),r=n(737);e.exports=function e(t,n,o,s,a){var l=-1,c=t.length;for(o||(o=r),a||(a=[]);++l<c;){var d=t[l];n>0&&o(d)?n>1?e(d,n-1,o,s,a):i(a,d):s||(a[a.length]=d)}return a}},function(e,t,n){var i=n(257),r=n(191),o=n(259),s=n(194),a=Object.prototype,l=a.hasOwnProperty,c=i((function(e,t){e=Object(e);var n=-1,i=t.length,c=i>2?t[2]:void 0;for(c&&o(t[0],t[1],c)&&(i=1);++n<i;)for(var d=t[n],u=s(d),h=-1,f=u.length;++h<f;){var g=u[h],p=e[g];(void 0===p||r(p,a[g])&&!l.call(e,g))&&(e[g]=d[g])}return e}));e.exports=c},function(e,t,n){var i=n(311);e.exports=function(e){return(null==e?0:e.length)?i(e,1):[]}},function(e,t,n){var i=n(196);e.exports=function(e,t,n){for(var r=-1,o=e.length;++r<o;){var s=e[r],a=t(s);if(null!=a&&(void 0===l?a==a&&!i(a):n(a,l)))var l=a,c=s}return c}},function(e,t,n){var i=n(771),r=n(774)((function(e,t){return null==e?{}:i(e,t)}));e.exports=r},function(e,t,n){var i=n(775)();e.exports=i},function(e,t,n){var i=n(378),r=0;e.exports=function(e){var t=++r;return i(e)+t}},function(e,t,n){"use strict";var i=n(133);e.exports=a;var r="\0",o="\0",s="";function a(e){this._isDirected=!i.has(e,"directed")||e.directed,this._isMultigraph=!!i.has(e,"multigraph")&&e.multigraph,this._isCompound=!!i.has(e,"compound")&&e.compound,this._label=void 0,this._defaultNodeLabelFn=i.constant(void 0),this._defaultEdgeLabelFn=i.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[o]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function l(e,t){e[t]?e[t]++:e[t]=1}function c(e,t){--e[t]||delete e[t]}function d(e,t,n,o){var a=""+t,l=""+n;if(!e&&a>l){var c=a;a=l,l=c}return a+s+l+s+(i.isUndefined(o)?r:o)}function u(e,t,n,i){var r=""+t,o=""+n;if(!e&&r>o){var s=r;r=o,o=s}var a={v:r,w:o};return i&&(a.name=i),a}function h(e,t){return d(e,t.v,t.w,t.name)}a.prototype._nodeCount=0,a.prototype._edgeCount=0,a.prototype.isDirected=function(){return this._isDirected},a.prototype.isMultigraph=function(){return this._isMultigraph},a.prototype.isCompound=function(){return this._isCompound},a.prototype.setGraph=function(e){return this._label=e,this},a.prototype.graph=function(){return this._label},a.prototype.setDefaultNodeLabel=function(e){return i.isFunction(e)||(e=i.constant(e)),this._defaultNodeLabelFn=e,this},a.prototype.nodeCount=function(){return this._nodeCount},a.prototype.nodes=function(){return i.keys(this._nodes)},a.prototype.sources=function(){var e=this;return i.filter(this.nodes(),(function(t){return i.isEmpty(e._in[t])}))},a.prototype.sinks=function(){var e=this;return i.filter(this.nodes(),(function(t){return i.isEmpty(e._out[t])}))},a.prototype.setNodes=function(e,t){var n=arguments,r=this;return i.each(e,(function(e){n.length>1?r.setNode(e,t):r.setNode(e)})),this},a.prototype.setNode=function(e,t){return i.has(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=o,this._children[e]={},this._children[o][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)},a.prototype.node=function(e){return this._nodes[e]},a.prototype.hasNode=function(e){return i.has(this._nodes,e)},a.prototype.removeNode=function(e){var t=this;if(i.has(this._nodes,e)){var n=function(e){t.removeEdge(t._edgeObjs[e])};delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],i.each(this.children(e),(function(e){t.setParent(e)})),delete this._children[e]),i.each(i.keys(this._in[e]),n),delete this._in[e],delete this._preds[e],i.each(i.keys(this._out[e]),n),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this},a.prototype.setParent=function(e,t){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(i.isUndefined(t))t=o;else{for(var n=t+="";!i.isUndefined(n);n=this.parent(n))if(n===e)throw new Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this},a.prototype._removeFromParentsChildList=function(e){delete this._children[this._parent[e]][e]},a.prototype.parent=function(e){if(this._isCompound){var t=this._parent[e];if(t!==o)return t}},a.prototype.children=function(e){if(i.isUndefined(e)&&(e=o),this._isCompound){var t=this._children[e];if(t)return i.keys(t)}else{if(e===o)return this.nodes();if(this.hasNode(e))return[]}},a.prototype.predecessors=function(e){var t=this._preds[e];if(t)return i.keys(t)},a.prototype.successors=function(e){var t=this._sucs[e];if(t)return i.keys(t)},a.prototype.neighbors=function(e){var t=this.predecessors(e);if(t)return i.union(t,this.successors(e))},a.prototype.isLeaf=function(e){return 0===(this.isDirected()?this.successors(e):this.neighbors(e)).length},a.prototype.filterNodes=function(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var n=this;i.each(this._nodes,(function(n,i){e(i)&&t.setNode(i,n)})),i.each(this._edgeObjs,(function(e){t.hasNode(e.v)&&t.hasNode(e.w)&&t.setEdge(e,n.edge(e))}));var r={};return this._isCompound&&i.each(t.nodes(),(function(e){t.setParent(e,function e(i){var o=n.parent(i);return void 0===o||t.hasNode(o)?(r[i]=o,o):o in r?r[o]:e(o)}(e))})),t},a.prototype.setDefaultEdgeLabel=function(e){return i.isFunction(e)||(e=i.constant(e)),this._defaultEdgeLabelFn=e,this},a.prototype.edgeCount=function(){return this._edgeCount},a.prototype.edges=function(){return i.values(this._edgeObjs)},a.prototype.setPath=function(e,t){var n=this,r=arguments;return i.reduce(e,(function(e,i){return r.length>1?n.setEdge(e,i,t):n.setEdge(e,i),i})),this},a.prototype.setEdge=function(){var e,t,n,r,o=!1,s=arguments[0];"object"==typeof s&&null!==s&&"v"in s?(e=s.v,t=s.w,n=s.name,2===arguments.length&&(r=arguments[1],o=!0)):(e=s,t=arguments[1],n=arguments[3],arguments.length>2&&(r=arguments[2],o=!0)),e=""+e,t=""+t,i.isUndefined(n)||(n=""+n);var a=d(this._isDirected,e,t,n);if(i.has(this._edgeLabels,a))return o&&(this._edgeLabels[a]=r),this;if(!i.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[a]=o?r:this._defaultEdgeLabelFn(e,t,n);var c=u(this._isDirected,e,t,n);return e=c.v,t=c.w,Object.freeze(c),this._edgeObjs[a]=c,l(this._preds[t],e),l(this._sucs[e],t),this._in[t][a]=c,this._out[e][a]=c,this._edgeCount++,this},a.prototype.edge=function(e,t,n){var i=1===arguments.length?h(this._isDirected,arguments[0]):d(this._isDirected,e,t,n);return this._edgeLabels[i]},a.prototype.hasEdge=function(e,t,n){var r=1===arguments.length?h(this._isDirected,arguments[0]):d(this._isDirected,e,t,n);return i.has(this._edgeLabels,r)},a.prototype.removeEdge=function(e,t,n){var i=1===arguments.length?h(this._isDirected,arguments[0]):d(this._isDirected,e,t,n),r=this._edgeObjs[i];return r&&(e=r.v,t=r.w,delete this._edgeLabels[i],delete this._edgeObjs[i],c(this._preds[t],e),c(this._sucs[e],t),delete this._in[t][i],delete this._out[e][i],this._edgeCount--),this},a.prototype.inEdges=function(e,t){var n=this._in[e];if(n){var r=i.values(n);return t?i.filter(r,(function(e){return e.v===t})):r}},a.prototype.outEdges=function(e,t){var n=this._out[e];if(n){var r=i.values(n);return t?i.filter(r,(function(e){return e.w===t})):r}},a.prototype.nodeEdges=function(e,t){var n=this.inEdges(e,t);if(n)return n.concat(this.outEdges(e,t))}},function(e,t){e.exports=function(e,t,n,i){var r=e.x,o=e.y,s=r-i.x,a=o-i.y,l=Math.sqrt(t*t*a*a+n*n*s*s),c=Math.abs(t*n*s/l);i.x<r&&(c=-c);var d=Math.abs(t*n*a/l);i.y<o&&(d=-d);return{x:r+c,y:o+d}}},function(e,t,n){var i=n(848),r=n(426),o=n(849);e.exports=function(e,t,n){var s=t.label,a=e.append("g");"svg"===t.labelType?o(a,t):"string"!=typeof s||"html"===t.labelType?r(a,t):i(a,t);var l,c=a.node().getBBox();switch(n){case"top":l=-t.height/2;break;case"bottom":l=t.height/2-c.height;break;default:l=-c.height/2}return a.attr("transform","translate("+-c.width/2+","+l+")"),a}},function(e,t,n){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.ALL=0]="ALL",e[e.RGB=1]="RGB",e[e.HSL=2]="HSL"}(i||(i={})),t.TYPE=i},function(e,t,n){"use strict";n.r(t);var i=n(55),r=n(14),o=n(15),s=n(39),a=n(2),l=n(76),c=n(4),d=n(60),u=n(3),h=n(7),f=n(151),g=n(123),p=n(65),m=n(88),_=n(11),b=n(19),v=n(17),y=n(43),w=n(103),C=n(98),S=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},k=function(e,t){return function(n,i){t(n,i,e)}};class x{constructor(e){this.name=e}select(e,t,n){if(0===n.length)return 0;let i=n[0].score[0];for(let e=0;e<n.length;e++){const{score:t,completion:r}=n[e];if(t[0]!==i)break;if(r.preselect)return e}return 0}}class L extends x{constructor(){super("first")}memorize(e,t,n){}toJSON(){}fromJSON(){}}let M=class e{constructor(e,t,n){this._storageService=e,this._modeService=t,this._configService=n,this._disposables=new a.b,this._persistSoon=new b.d(()=>this._saveState(),500),this._disposables.add(e.onWillSaveState(e=>{e.reason===m.c.SHUTDOWN&&this._saveState()}))}dispose(){this._disposables.dispose(),this._persistSoon.dispose()}memorize(e,t,n){this._withStrategy(e,t).memorize(e,t,n),this._persistSoon.schedule()}select(e,t,n){return this._withStrategy(e,t).select(e,t,n)}_withStrategy(t,n){var i,r;const o=this._configService.getValue("editor.suggestSelection",{overrideIdentifier:null===(i=this._modeService.getLanguageIdentifier(t.getLanguageIdAtPosition(n.lineNumber,n.column)))||void 0===i?void 0:i.language,resource:t.uri});if((null===(r=this._strategy)||void 0===r?void 0:r.name)!==o){this._saveState();const t=e._strategyCtors.get(o)||L;this._strategy=new t;try{const t=this._configService.getValue("editor.suggest.shareSuggestSelections")?0:1,n=this._storageService.get(`${e._storagePrefix}/${o}`,t);n&&this._strategy.fromJSON(JSON.parse(n))}catch(e){}}return this._strategy}_saveState(){if(this._strategy){const t=this._configService.getValue("editor.suggest.shareSuggestSelections")?0:1,n=JSON.stringify(this._strategy);this._storageService.store(`${e._storagePrefix}/${this._strategy.name}`,n,t)}}};M._strategyCtors=new Map([["recentlyUsedByPrefix",class extends x{constructor(){super("recentlyUsedByPrefix"),this._trie=p.c.forStrings(),this._seq=0}memorize(e,t,n){const{word:i}=e.getWordUntilPosition(t),r=`${e.getLanguageIdentifier().language}/${i}`;this._trie.set(r,{type:n.completion.kind,insertText:n.completion.insertText,touch:this._seq++})}select(e,t,n){let{word:i}=e.getWordUntilPosition(t);if(!i)return super.select(e,t,n);let r=`${e.getLanguageIdentifier().language}/${i}`,o=this._trie.get(r);if(o||(o=this._trie.findSubstr(r)),o)for(let e=0;e<n.length;e++){let{kind:t,insertText:i}=n[e].completion;if(t===o.type&&i===o.insertText)return e}return super.select(e,t,n)}toJSON(){let e=[];return this._trie.forEach((t,n)=>e.push([n,t])),e.sort((e,t)=>-(e[1].touch-t[1].touch)).forEach((e,t)=>e[1].touch=t),e.slice(0,200)}fromJSON(e){if(this._trie.clear(),e.length>0){this._seq=e[0][1].touch+1;for(const[t,n]of e)n.type="number"==typeof n.type?n.type:Object(_.E)(n.type),this._trie.set(t,n)}}}],["recentlyUsed",class extends x{constructor(){super("recentlyUsed"),this._cache=new p.a(300,.66),this._seq=0}memorize(e,t,n){const{label:i}=n.completion,r=`${e.getLanguageIdentifier().language}/${i}`;this._cache.set(r,{touch:this._seq++,type:n.completion.kind,insertText:n.completion.insertText})}select(e,t,n){if(0===n.length)return 0;const i=e.getLineContent(t.lineNumber).substr(t.column-10,t.column-1);if(/\s$/.test(i))return super.select(e,t,n);let r=n[0].score[0],o=-1,s=-1,a=-1;for(let t=0;t<n.length&&n[t].score[0]===r;t++){const i=`${e.getLanguageIdentifier().language}/${n[t].completion.label}`,r=this._cache.peek(i);if(r&&r.touch>a&&r.type===n[t].completion.kind&&r.insertText===n[t].completion.insertText&&(a=r.touch,s=t),n[t].completion.preselect&&-1===o)return t}return-1!==s?s:-1!==o?o:0}toJSON(){return this._cache.toJSON()}fromJSON(e){this._cache.clear();for(const[t,n]of e)n.touch=0,n.type="number"==typeof n.type?n.type:Object(_.E)(n.type),this._cache.set(t,n);this._seq=this._cache.size}}],["first",L]]),M._storagePrefix="suggest/memories",M=S([k(0,m.a),k(1,C.a),k(2,y.a)],M);const D=Object(v.c)("ISuggestMemories");Object(w.b)(D,M,!0);var E=n(0),T=n(28),O=n(9),N=n(80),I=n(36),A=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},R=function(e,t){return function(n,i){t(n,i,e)}};let P=class e{constructor(t,n){this._editor=t,this._index=0,this._ckOtherSuggestions=e.OtherSuggestions.bindTo(n)}dispose(){this.reset()}reset(){this._ckOtherSuggestions.reset(),Object(a.f)(this._listener),this._model=void 0,this._acceptNext=void 0,this._ignore=!1}set({model:t,index:n},i){if(0===t.items.length)return void this.reset();e._moveIndex(!0,t,n)!==n?(this._acceptNext=i,this._model=t,this._index=n,this._listener=this._editor.onDidChangeCursorPosition(()=>{this._ignore||this.reset()}),this._ckOtherSuggestions.set(!0)):this.reset()}static _moveIndex(e,t,n){let i=n;for(;(i=(i+t.items.length+(e?1:-1))%t.items.length)!==n&&t.items[i].completion.additionalTextEdits;);return i}next(){this._move(!0)}prev(){this._move(!1)}_move(t){if(this._model)try{this._ignore=!0,this._index=e._moveIndex(t,this._model,this._index),this._acceptNext({index:this._index,item:this._model.items[this._index],model:this._model})}finally{this._ignore=!1}}};P.OtherSuggestions=new O.c("hasOtherSuggestions",!1),P=A([R(1,O.b)],P);var j=n(6),F=n(22),B=n(61),W=n(8);class H{constructor(e,t,n,i,r,o,s){this.clipboardText=s,this._snippetCompareFn=H._compareCompletionItems,this._items=e,this._column=t,this._wordDistance=i,this._options=r,this._refilterKind=1,this._lineContext=n,"top"===o?this._snippetCompareFn=H._compareCompletionItemsSnippetsUp:"bottom"===o&&(this._snippetCompareFn=H._compareCompletionItemsSnippetsDown)}get lineContext(){return this._lineContext}set lineContext(e){this._lineContext.leadingLineContent===e.leadingLineContent&&this._lineContext.characterCountDelta===e.characterCountDelta||(this._refilterKind=this._lineContext.characterCountDelta<e.characterCountDelta&&this._filteredItems?2:1,this._lineContext=e)}get items(){return this._ensureCachedState(),this._filteredItems}get allProvider(){return this._ensureCachedState(),this._allProvider}get incomplete(){return this._ensureCachedState(),this._isIncomplete}adopt(e){let t=[];for(let n=0;n<this._items.length;)e.has(this._items[n].provider)?n++:(t.push(this._items[n]),this._items[n]=this._items[this._items.length-1],this._items.pop());return this._refilterKind=1,t}get stats(){return this._ensureCachedState(),this._stats}_ensureCachedState(){0!==this._refilterKind&&this._createCachedState()}_createCachedState(){this._isIncomplete=new Set,this._allProvider=new Set,this._stats={suggestionCount:0,snippetCount:0,textCount:0};const{leadingLineContent:e,characterCountDelta:t}=this._lineContext;let n="",i="";const r=1===this._refilterKind?this._items:this._filteredItems,o=[],s=!this._options.filterGraceful||r.length>2e3?B.d:B.e;for(let a=0;a<r.length;a++){const l=r[a];if(l.isInvalid)continue;l.container.incomplete&&this._isIncomplete.add(l.provider),this._allProvider.add(l.provider);const c=l.position.column-l.editStart.column,d=c+t-(l.position.column-this._column);if(n.length!==d&&(i=(n=0===d?"":e.slice(-d)).toLowerCase()),l.word=n,0===d)l.score=B.a.Default;else{let e=0;for(;e<c;){const t=n.charCodeAt(e);if(32!==t&&9!==t)break;e+=1}const t="string"==typeof l.completion.label?l.completion.label:l.completion.label.name;if(e>=d)l.score=B.a.Default;else if("string"==typeof l.completion.filterText){let r=s(n,i,e,l.completion.filterText,l.filterTextLow,0,!1);if(!r)continue;0===Object(W.g)(l.completion.filterText,t)?l.score=r:(l.score=Object(B.b)(n,i,e,t,l.labelLow,0),l.score[0]=r[0])}else{let r=s(n,i,e,t,l.labelLow,0,!1);if(!r)continue;l.score=r}}switch(l.idx=a,l.distance=this._wordDistance.distance(l.position,l.completion),o.push(l),this._stats.suggestionCount++,l.completion.kind){case 27:this._stats.snippetCount++;break;case 18:this._stats.textCount++}}this._filteredItems=o.sort(this._snippetCompareFn),this._refilterKind=0}static _compareCompletionItems(e,t){return e.score[0]>t.score[0]?-1:e.score[0]<t.score[0]?1:e.distance<t.distance?-1:e.distance>t.distance?1:e.idx<t.idx?-1:e.idx>t.idx?1:0}static _compareCompletionItemsSnippetsDown(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return 1;if(27===t.completion.kind)return-1}return H._compareCompletionItems(e,t)}static _compareCompletionItemsSnippetsUp(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return-1;if(27===t.completion.kind)return 1}return H._compareCompletionItems(e,t)}}var Y=n(26),V=n(273),z=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};class U{static create(e,t){return z(this,void 0,void 0,(function*(){if(!t.getOption(96).localityBonus)return U.None;if(!t.hasModel())return U.None;const n=t.getModel(),i=t.getPosition();if(!e.canComputeWordRanges(n.uri))return U.None;const[o]=yield(new V.a).provideSelectionRanges(n,[i]);if(0===o.length)return U.None;const s=yield e.computeWordRanges(n.uri,o[0].range);if(!s)return U.None;const a=n.getWordUntilPosition(i);return delete s[a.word],new class extends U{distance(e,n){if(!i.equals(t.getPosition()))return 0;if(17===n.kind)return 2<<20;let a="string"==typeof n.label?n.label:n.label.name,l=s[a];if(Object(r.n)(l))return 2<<20;let c=Object(r.c)(l,u.a.fromPositions(e),u.a.compareRangesUsingStarts),d=c>=0?l[c]:l[Math.max(0,~c-1)],h=o.length;for(const e of o){if(!u.a.containsRange(e.range,d))break;h-=1}return h}}}))}}U.None=new class extends U{distance(){return 0}};var $=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};class q{constructor(e,t,n,i){this.leadingLineContent=e.getLineContent(t.lineNumber).substr(0,t.column-1),this.leadingWord=e.getWordUntilPosition(t),this.lineNumber=t.lineNumber,this.column=t.column,this.auto=n,this.shy=i}static shouldAutoTrigger(e){if(!e.hasModel())return!1;const t=e.getModel(),n=e.getPosition();t.tokenizeIfCheap(n.lineNumber);const i=t.getWordAtPosition(n);return!!i&&(i.endColumn===n.column&&!!isNaN(Number(i.word)))}}class K{constructor(e,t,n){this._editor=e,this._editorWorkerService=t,this._clipboardService=n,this._toDispose=new a.b,this._quickSuggestDelay=10,this._triggerCharacterListener=new a.b,this._triggerQuickSuggest=new b.e,this._state=0,this._completionDisposables=new a.b,this._onDidCancel=new j.a,this._onDidTrigger=new j.a,this._onDidSuggest=new j.a,this.onDidCancel=this._onDidCancel.event,this.onDidTrigger=this._onDidTrigger.event,this.onDidSuggest=this._onDidSuggest.event,this._currentSelection=this._editor.getSelection()||new F.a(1,1,1,1),this._toDispose.add(this._editor.onDidChangeModel(()=>{this._updateTriggerCharacters(),this.cancel()})),this._toDispose.add(this._editor.onDidChangeModelLanguage(()=>{this._updateTriggerCharacters(),this.cancel()})),this._toDispose.add(this._editor.onDidChangeConfiguration(()=>{this._updateTriggerCharacters(),this._updateQuickSuggest()})),this._toDispose.add(_.d.onDidChange(()=>{this._updateTriggerCharacters(),this._updateActiveSuggestSession()})),this._toDispose.add(this._editor.onDidChangeCursorSelection(e=>{this._onCursorChange(e)}));let i=!1;this._toDispose.add(this._editor.onDidCompositionStart(()=>{i=!0})),this._toDispose.add(this._editor.onDidCompositionEnd(()=>{i=!1,this._refilterCompletionItems()})),this._toDispose.add(this._editor.onDidChangeModelContent(()=>{i||this._refilterCompletionItems()})),this._updateTriggerCharacters(),this._updateQuickSuggest()}dispose(){Object(a.f)(this._triggerCharacterListener),Object(a.f)([this._onDidCancel,this._onDidSuggest,this._onDidTrigger,this._triggerQuickSuggest]),this._toDispose.dispose(),this._completionDisposables.dispose(),this.cancel()}_updateQuickSuggest(){this._quickSuggestDelay=this._editor.getOption(71),(isNaN(this._quickSuggestDelay)||!this._quickSuggestDelay&&0!==this._quickSuggestDelay||this._quickSuggestDelay<0)&&(this._quickSuggestDelay=10)}_updateTriggerCharacters(){if(this._triggerCharacterListener.clear(),this._editor.getOption(72)||!this._editor.hasModel()||!this._editor.getOption(99))return;const e=new Map;for(const t of _.d.all(this._editor.getModel()))for(const n of t.triggerCharacters||[]){let i=e.get(n);i||((i=new Set).add(Object(I.c)()),e.set(n,i)),i.add(t)}const t=t=>{var n;if(!t){const e=this._editor.getPosition();t=this._editor.getModel().getLineContent(e.lineNumber).substr(0,e.column-1)}let i="";Object(W.G)(t.charCodeAt(t.length-1))?Object(W.F)(t.charCodeAt(t.length-2))&&(i=t.substr(t.length-2)):i=t.charAt(t.length-1);const r=e.get(i);if(r){const e=null===(n=this._completionModel)||void 0===n?void 0:n.adopt(r);this.trigger({auto:!0,shy:!1,triggerCharacter:i},Boolean(this._completionModel),r,e)}};this._triggerCharacterListener.add(this._editor.onDidType(t)),this._triggerCharacterListener.add(this._editor.onDidCompositionEnd(t))}get state(){return this._state}cancel(e=!1){0!==this._state&&(this._triggerQuickSuggest.cancel(),this._requestToken&&(this._requestToken.cancel(),this._requestToken=void 0),this._state=0,this._completionModel=void 0,this._context=void 0,this._onDidCancel.fire({retrigger:e}))}clear(){this._completionDisposables.clear()}_updateActiveSuggestSession(){0!==this._state&&(this._editor.hasModel()&&_.d.has(this._editor.getModel())?this.trigger({auto:2===this._state,shy:!1},!0):this.cancel())}_onCursorChange(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),n=this._currentSelection;if(this._currentSelection=this._editor.getSelection(),!e.selection.isEmpty()||0!==e.reason||"keyboard"!==e.source&&"deleteLeft"!==e.source)this.cancel();else if(_.d.has(t)&&0===this._state){if(!1===this._editor.getOption(70))return;if(!n.containsRange(this._currentSelection)&&!n.getEndPosition().isBeforeOrEqual(this._currentSelection.getPosition()))return;if(this._editor.getOption(96).snippetsPreventQuickSuggestions&&f.SnippetController2.get(this._editor).isInSnippet())return;this.cancel(),this._triggerQuickSuggest.cancelAndSet(()=>{if(0!==this._state)return;if(!q.shouldAutoTrigger(this._editor))return;if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getPosition(),n=this._editor.getOption(70);if(!1!==n){if(!0===n);else{e.tokenizeIfCheap(t.lineNumber);const i=e.getLineTokens(t.lineNumber),r=i.getStandardTokenType(i.findTokenIndexAtOffset(Math.max(t.column-1-1,0)));if(!(n.other&&0===r||n.comments&&1===r||n.strings&&2===r))return}this.trigger({auto:!0,shy:!1})}},this._quickSuggestDelay)}}_refilterCompletionItems(){Promise.resolve().then(()=>{if(0===this._state)return;if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getPosition(),n=new q(e,t,2===this._state,!1);this._onNewContext(n)})}trigger(e,t=!1,n,i){var s;if(!this._editor.hasModel())return;const l=this._editor.getModel(),c=e.auto,d=new q(l,this._editor.getPosition(),c,e.shy);this.cancel(t),this._state=c?2:1,this._onDidTrigger.fire({auto:c,shy:e.shy,position:this._editor.getPosition()}),this._context=d;let u={triggerKind:null!==(s=e.triggerKind)&&void 0!==s?s:0};e.triggerCharacter&&(u={triggerKind:1,triggerCharacter:e.triggerCharacter}),this._requestToken=new Y.b;const h=this._editor.getOption(93);let f=1;switch(h){case"top":f=0;break;case"bottom":f=2}let g=K._createItemKindFilter(this._editor),p=U.create(this._editorWorkerService,this._editor),m=Object(I.e)(l,this._editor.getPosition(),new I.a(f,g,n),u,this._requestToken.token);Promise.all([m,p]).then(([t,n])=>$(this,void 0,void 0,(function*(){if(Object(a.f)(this._requestToken),0===this._state)return;if(!this._editor.hasModel())return;let o;(t.needsClipboard||Object(r.o)(i))&&(o=yield this._clipboardService.readText());const s=this._editor.getModel();let l=t.items;if(Object(r.o)(i)){const e=Object(I.d)(f);l=l.concat(i).sort(e)}const d=new q(s,this._editor.getPosition(),c,e.shy);this._completionModel=new H(l,this._context.column,{leadingLineContent:d.leadingLineContent,characterCountDelta:d.column-this._context.column},n,this._editor.getOption(96),this._editor.getOption(93),o),this._completionDisposables.add(t.dispoables),this._onNewContext(d)}))).catch(o.e)}static _createItemKindFilter(e){const t=new Set;"none"===e.getOption(93)&&t.add(27);const n=e.getOption(96);return n.showMethods||t.add(0),n.showFunctions||t.add(1),n.showConstructors||t.add(2),n.showFields||t.add(3),n.showVariables||t.add(4),n.showClasses||t.add(5),n.showStructs||t.add(6),n.showInterfaces||t.add(7),n.showModules||t.add(8),n.showProperties||t.add(9),n.showEvents||t.add(10),n.showOperators||t.add(11),n.showUnits||t.add(12),n.showValues||t.add(13),n.showConstants||t.add(14),n.showEnums||t.add(15),n.showEnumMembers||t.add(16),n.showKeywords||t.add(17),n.showWords||t.add(18),n.showColors||t.add(19),n.showFiles||t.add(20),n.showReferences||t.add(21),n.showColors||t.add(22),n.showFolders||t.add(23),n.showTypeParameters||t.add(24),n.showSnippets||t.add(27),n.showUsers||t.add(25),n.showIssues||t.add(26),t}_onNewContext(e){if(this._context)if(e.lineNumber===this._context.lineNumber){if(e.leadingWord.startColumn<this._context.leadingWord.startColumn)this.cancel();else if(e.column<this._context.column)e.leadingWord.word?this.trigger({auto:this._context.auto,shy:!1},!0):this.cancel();else if(this._completionModel)if(0!==e.leadingWord.word.length&&e.leadingWord.startColumn>this._context.leadingWord.startColumn){const e=new Set(_.d.all(this._editor.getModel()));this._completionModel.allProvider.forEach(t=>e.delete(t));const t=this._completionModel.adopt(new Set);this.trigger({auto:this._context.auto,shy:!1},!0,e,t)}else if(e.column>this._context.column&&this._completionModel.incomplete.size>0&&0!==e.leadingWord.word.length){const{incomplete:e}=this._completionModel,t=this._completionModel.adopt(e);this.trigger({auto:2===this._state,shy:!1,triggerKind:2},!0,e,t)}else{let t=this._completionModel.lineContext,n=!1;if(this._completionModel.lineContext={leadingLineContent:e.leadingLineContent,characterCountDelta:e.column-this._context.column},0===this._completionModel.items.length){if(q.shouldAutoTrigger(this._editor)&&this._context.leadingWord.endColumn<e.leadingWord.startColumn)return void this.trigger({auto:this._context.auto,shy:!1},!0);if(this._context.auto)return void this.cancel();if(this._completionModel.lineContext=t,(n=this._completionModel.items.length>0)&&0===e.leadingWord.word.length)return void this.cancel()}this._onDidSuggest.fire({completionModel:this._completionModel,auto:this._context.auto,shy:this._context.shy,isFrozen:n})}}else this.cancel()}}n(622),n(623),n(163),n(627),n(628);var G=n(18),Z=n(5),J=n(16);const X=Object(Z.gc)("symbolIcon.arrayForeground",{dark:Z.ab,light:Z.ab,hc:Z.ab},Object(E.a)("symbolIcon.arrayForeground","The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Q=Object(Z.gc)("symbolIcon.booleanForeground",{dark:Z.ab,light:Z.ab,hc:Z.ab},Object(E.a)("symbolIcon.booleanForeground","The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ee=Object(Z.gc)("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(E.a)("symbolIcon.classForeground","The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),te=Object(Z.gc)("symbolIcon.colorForeground",{dark:Z.ab,light:Z.ab,hc:Z.ab},Object(E.a)("symbolIcon.colorForeground","The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ne=Object(Z.gc)("symbolIcon.constantForeground",{dark:Z.ab,light:Z.ab,hc:Z.ab},Object(E.a)("symbolIcon.constantForeground","The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ie=Object(Z.gc)("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(E.a)("symbolIcon.constructorForeground","The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),re=Object(Z.gc)("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(E.a)("symbolIcon.enumeratorForeground","The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),oe=Object(Z.gc)("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(E.a)("symbolIcon.enumeratorMemberForeground","The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),se=Object(Z.gc)("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(E.a)("symbolIcon.eventForeground","The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ae=Object(Z.gc)("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(E.a)("symbolIcon.fieldForeground","The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),le=Object(Z.gc)("symbolIcon.fileForeground",{dark:Z.ab,light:Z.ab,hc:Z.ab},Object(E.a)("symbolIcon.fileForeground","The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ce=Object(Z.gc)("symbolIcon.folderForeground",{dark:Z.ab,light:Z.ab,hc:Z.ab},Object(E.a)("symbolIcon.folderForeground","The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),de=Object(Z.gc)("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(E.a)("symbolIcon.functionForeground","The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ue=Object(Z.gc)("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(E.a)("symbolIcon.interfaceForeground","The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),he=Object(Z.gc)("symbolIcon.keyForeground",{dark:Z.ab,light:Z.ab,hc:Z.ab},Object(E.a)("symbolIcon.keyForeground","The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),fe=Object(Z.gc)("symbolIcon.keywordForeground",{dark:Z.ab,light:Z.ab,hc:Z.ab},Object(E.a)("symbolIcon.keywordForeground","The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ge=Object(Z.gc)("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(E.a)("symbolIcon.methodForeground","The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),pe=Object(Z.gc)("symbolIcon.moduleForeground",{dark:Z.ab,light:Z.ab,hc:Z.ab},Object(E.a)("symbolIcon.moduleForeground","The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),me=Object(Z.gc)("symbolIcon.namespaceForeground",{dark:Z.ab,light:Z.ab,hc:Z.ab},Object(E.a)("symbolIcon.namespaceForeground","The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),_e=Object(Z.gc)("symbolIcon.nullForeground",{dark:Z.ab,light:Z.ab,hc:Z.ab},Object(E.a)("symbolIcon.nullForeground","The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),be=Object(Z.gc)("symbolIcon.numberForeground",{dark:Z.ab,light:Z.ab,hc:Z.ab},Object(E.a)("symbolIcon.numberForeground","The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ve=Object(Z.gc)("symbolIcon.objectForeground",{dark:Z.ab,light:Z.ab,hc:Z.ab},Object(E.a)("symbolIcon.objectForeground","The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ye=Object(Z.gc)("symbolIcon.operatorForeground",{dark:Z.ab,light:Z.ab,hc:Z.ab},Object(E.a)("symbolIcon.operatorForeground","The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),we=Object(Z.gc)("symbolIcon.packageForeground",{dark:Z.ab,light:Z.ab,hc:Z.ab},Object(E.a)("symbolIcon.packageForeground","The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Ce=Object(Z.gc)("symbolIcon.propertyForeground",{dark:Z.ab,light:Z.ab,hc:Z.ab},Object(E.a)("symbolIcon.propertyForeground","The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Se=Object(Z.gc)("symbolIcon.referenceForeground",{dark:Z.ab,light:Z.ab,hc:Z.ab},Object(E.a)("symbolIcon.referenceForeground","The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ke=Object(Z.gc)("symbolIcon.snippetForeground",{dark:Z.ab,light:Z.ab,hc:Z.ab},Object(E.a)("symbolIcon.snippetForeground","The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),xe=Object(Z.gc)("symbolIcon.stringForeground",{dark:Z.ab,light:Z.ab,hc:Z.ab},Object(E.a)("symbolIcon.stringForeground","The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Le=Object(Z.gc)("symbolIcon.structForeground",{dark:Z.ab,light:Z.ab,hc:Z.ab},Object(E.a)("symbolIcon.structForeground","The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Me=Object(Z.gc)("symbolIcon.textForeground",{dark:Z.ab,light:Z.ab,hc:Z.ab},Object(E.a)("symbolIcon.textForeground","The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),De=Object(Z.gc)("symbolIcon.typeParameterForeground",{dark:Z.ab,light:Z.ab,hc:Z.ab},Object(E.a)("symbolIcon.typeParameterForeground","The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Ee=Object(Z.gc)("symbolIcon.unitForeground",{dark:Z.ab,light:Z.ab,hc:Z.ab},Object(E.a)("symbolIcon.unitForeground","The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Te=Object(Z.gc)("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(E.a)("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));Object(G.g)((e,t)=>{const n=e.getColor(X);n&&t.addRule(`${J.a.symbolArray.cssSelector} { color: ${n}; }`);const i=e.getColor(Q);i&&t.addRule(`${J.a.symbolBoolean.cssSelector} { color: ${i}; }`);const r=e.getColor(ee);r&&t.addRule(`${J.a.symbolClass.cssSelector} { color: ${r}; }`);const o=e.getColor(ge);o&&t.addRule(`${J.a.symbolMethod.cssSelector} { color: ${o}; }`);const s=e.getColor(te);s&&t.addRule(`${J.a.symbolColor.cssSelector} { color: ${s}; }`);const a=e.getColor(ne);a&&t.addRule(`${J.a.symbolConstant.cssSelector} { color: ${a}; }`);const l=e.getColor(ie);l&&t.addRule(`${J.a.symbolConstructor.cssSelector} { color: ${l}; }`);const c=e.getColor(re);c&&t.addRule(`\n\t\t\t${J.a.symbolValue.cssSelector},${J.a.symbolEnum.cssSelector} { color: ${c}; }`);const d=e.getColor(oe);d&&t.addRule(`${J.a.symbolEnumMember.cssSelector} { color: ${d}; }`);const u=e.getColor(se);u&&t.addRule(`${J.a.symbolEvent.cssSelector} { color: ${u}; }`);const h=e.getColor(ae);h&&t.addRule(`${J.a.symbolField.cssSelector} { color: ${h}; }`);const f=e.getColor(le);f&&t.addRule(`${J.a.symbolFile.cssSelector} { color: ${f}; }`);const g=e.getColor(ce);g&&t.addRule(`${J.a.symbolFolder.cssSelector} { color: ${g}; }`);const p=e.getColor(de);p&&t.addRule(`${J.a.symbolFunction.cssSelector} { color: ${p}; }`);const m=e.getColor(ue);m&&t.addRule(`${J.a.symbolInterface.cssSelector} { color: ${m}; }`);const _=e.getColor(he);_&&t.addRule(`${J.a.symbolKey.cssSelector} { color: ${_}; }`);const b=e.getColor(fe);b&&t.addRule(`${J.a.symbolKeyword.cssSelector} { color: ${b}; }`);const v=e.getColor(pe);v&&t.addRule(`${J.a.symbolModule.cssSelector} { color: ${v}; }`);const y=e.getColor(me);y&&t.addRule(`${J.a.symbolNamespace.cssSelector} { color: ${y}; }`);const w=e.getColor(_e);w&&t.addRule(`${J.a.symbolNull.cssSelector} { color: ${w}; }`);const C=e.getColor(be);C&&t.addRule(`${J.a.symbolNumber.cssSelector} { color: ${C}; }`);const S=e.getColor(ve);S&&t.addRule(`${J.a.symbolObject.cssSelector} { color: ${S}; }`);const k=e.getColor(ye);k&&t.addRule(`${J.a.symbolOperator.cssSelector} { color: ${k}; }`);const x=e.getColor(we);x&&t.addRule(`${J.a.symbolPackage.cssSelector} { color: ${x}; }`);const L=e.getColor(Ce);L&&t.addRule(`${J.a.symbolProperty.cssSelector} { color: ${L}; }`);const M=e.getColor(Se);M&&t.addRule(`${J.a.symbolReference.cssSelector} { color: ${M}; }`);const D=e.getColor(ke);D&&t.addRule(`${J.a.symbolSnippet.cssSelector} { color: ${D}; }`);const E=e.getColor(xe);E&&t.addRule(`${J.a.symbolString.cssSelector} { color: ${E}; }`);const T=e.getColor(Le);T&&t.addRule(`${J.a.symbolStruct.cssSelector} { color: ${T}; }`);const O=e.getColor(Me);O&&t.addRule(`${J.a.symbolText.cssSelector} { color: ${O}; }`);const N=e.getColor(De);N&&t.addRule(`${J.a.symbolTypeParameter.cssSelector} { color: ${N}; }`);const I=e.getColor(Ee);I&&t.addRule(`${J.a.symbolUnit.cssSelector} { color: ${I}; }`);const A=e.getColor(Te);A&&t.addRule(`${J.a.symbolVariable.cssSelector} { color: ${A}; }`)});var Oe,Ne=n(1),Ie=n(101),Ae=n(94),Re=n(41),Pe=n(108),je=n(82),Fe=n(173),Be=n(66),We=n(204),He=n(35),Ye=n(42),Ve=n(148);function ze(e,t,n,i){const r=i===Oe.ROOT_FOLDER?["rootfolder-icon"]:i===Oe.FOLDER?["folder-icon"]:["file-icon"];if(n){let o;if(n.scheme===He.b.data){o=Ye.a.parseMetaData(n).get(Ye.a.META_DATA_LABEL)}else o=Ue(Object(Ye.c)(n).toLowerCase());if(i===Oe.FOLDER)r.push(`${o}-name-folder-icon`);else{if(o){r.push(`${o}-name-file-icon`);const e=o.split(".");for(let t=1;t<e.length;t++)r.push(`${e.slice(t).join(".")}-ext-file-icon`);r.push("ext-file-icon")}const i=function(e,t,n){if(!n)return null;let i=null;if(n.scheme===He.b.data){const e=Ye.a.parseMetaData(n).get(Ye.a.META_DATA_MIME);e&&(i=t.getModeId(e))}else{const t=e.getModel(n);t&&(i=t.getModeId())}if(i&&i!==Ve.c)return i;return t.getModeIdByFilepathOrFirstLine(n)}(e,t,n);i&&r.push(`${Ue(i)}-lang-file-icon`)}}return r}function Ue(e){return e.replace(/\s/g,"\\$&")}!function(e){e[e.FILE=0]="FILE",e[e.FOLDER=1]="FOLDER",e[e.ROOT_FOLDER=2]="ROOT_FOLDER"}(Oe||(Oe={}));var $e=n(54),qe=n(24),Ke=n(81),Ge=n(25),Ze=n(104),Je=n(112),Xe=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Qe=function(e,t){return function(n,i){t(n,i,e)}},et=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};const tt=Object(J.e)("suggest-more-info",J.a.chevronRight),nt=Object(Z.gc)("editorSuggestWidget.background",{dark:Z.U,light:Z.U,hc:Z.U},E.a("editorSuggestWidgetBackground","Background color of the suggest widget.")),it=Object(Z.gc)("editorSuggestWidget.border",{dark:Z.V,light:Z.V,hc:Z.V},E.a("editorSuggestWidgetBorder","Border color of the suggest widget.")),rt=Object(Z.gc)("editorSuggestWidget.foreground",{dark:Z.B,light:Z.B,hc:Z.B},E.a("editorSuggestWidgetForeground","Foreground color of the suggest widget.")),ot=Object(Z.gc)("editorSuggestWidget.selectedBackground",{dark:Z.xb,light:Z.xb,hc:Z.xb},E.a("editorSuggestWidgetSelectedBackground","Background color of the selected entry in the suggest widget.")),st=Object(Z.gc)("editorSuggestWidget.highlightForeground",{dark:Z.zb,light:Z.zb,hc:Z.zb},E.a("editorSuggestWidgetHighlightForeground","Color of the match highlights in the suggest widget.")),at=/^(#([\da-f]{3}){1,2}|(rgb|hsl)a\(\s*(\d{1,3}%?\s*,\s*){3}(1|0?\.\d+)\)|(rgb|hsl)\(\s*\d{1,3}%?(\s*,\s*\d{1,3}%?){2}\s*\))$/i;function lt(e){if(!e)return!1;const t=e.completion;return!!t.documentation||t.detail&&t.detail!==t.label}function ct(e){return`suggest-aria-id:${e}`}let dt=class{constructor(e,t,n,i,r,o){this.widget=e,this.editor=t,this.triggerKeybindingLabel=n,this._modelService=i,this._modeService=r,this._themeService=o}get templateId(){return"suggestion"}renderTemplate(e){const t=Object.create(null);t.disposables=new a.b,t.root=e,t.root.classList.add("show-file-icons"),t.icon=Object(Ne.p)(e,Object(Ne.a)(".icon")),t.colorspan=Object(Ne.p)(t.icon,Object(Ne.a)("span.colorspan"));const n=Object(Ne.p)(e,Object(Ne.a)(".contents")),i=Object(Ne.p)(n,Object(Ne.a)(".main"));t.iconContainer=Object(Ne.p)(i,Object(Ne.a)(".icon-label.codicon")),t.left=Object(Ne.p)(i,Object(Ne.a)("span.left")),t.right=Object(Ne.p)(i,Object(Ne.a)("span.right")),t.iconLabel=new We.a(t.left,{supportHighlights:!0,supportCodicons:!0}),t.disposables.add(t.iconLabel),t.parametersLabel=Object(Ne.p)(t.left,Object(Ne.a)("span.signature-label")),t.qualifierLabel=Object(Ne.p)(t.left,Object(Ne.a)("span.qualifier-label")),t.detailsLabel=Object(Ne.p)(t.right,Object(Ne.a)("span.details-label")),t.readMore=Object(Ne.p)(t.right,Object(Ne.a)("span.readMore"+tt.cssSelector)),t.readMore.title=E.a("readMore","Read More ({0})",this.triggerKeybindingLabel);const r=()=>{const e=this.editor.getOptions(),n=e.get(36),r=n.fontFamily,o=n.fontFeatureSettings,s=e.get(97)||n.fontSize,a=e.get(98)||n.lineHeight,l=n.fontWeight,c=`${s}px`,d=`${a}px`;t.root.style.fontSize=c,t.root.style.fontWeight=l,i.style.fontFamily=r,i.style.fontFeatureSettings=o,i.style.lineHeight=d,t.icon.style.height=d,t.icon.style.width=d,t.readMore.style.height=d,t.readMore.style.width=d};return r(),t.disposables.add(j.b.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter(e=>e.hasChanged(36)||e.hasChanged(97)||e.hasChanged(98)).on(r,null)),t}renderElement(e,t,n){const i=n,o=e.completion,s="string"==typeof o.label?o.label:o.label.name;i.root.id=ct(t),i.colorspan.style.backgroundColor="";const a={labelEscapeNewLines:!0,matches:Object(B.c)(e.score)};let l=[];if(19===o.kind&&function(e,t){const n="string"==typeof e.completion.label?e.completion.label:e.completion.label.name;return n.match(at)?(t[0]=n,!0):!("string"!=typeof e.completion.documentation||!e.completion.documentation.match(at))&&(t[0]=e.completion.documentation,!0)}(e,l))i.icon.className="icon customcolor",i.iconContainer.className="icon hide",i.colorspan.style.backgroundColor=l[0];else if(20===o.kind&&this._themeService.getFileIconTheme().hasFileIcons){i.icon.className="icon hide",i.iconContainer.className="icon hide";const e=ze(this._modelService,this._modeService,qe.a.from({scheme:"fake",path:s}),Oe.FILE),t=ze(this._modelService,this._modeService,qe.a.from({scheme:"fake",path:o.detail}),Oe.FILE);a.extraClasses=e.length>t.length?e:t}else 23===o.kind&&this._themeService.getFileIconTheme().hasFolderIcons?(i.icon.className="icon hide",i.iconContainer.className="icon hide",a.extraClasses=Object(r.l)([ze(this._modelService,this._modeService,qe.a.from({scheme:"fake",path:s}),Oe.FOLDER),ze(this._modelService,this._modeService,qe.a.from({scheme:"fake",path:o.detail}),Oe.FOLDER)])):(i.icon.className="icon hide",i.iconContainer.className="",Object(Ne.f)(i.iconContainer,`suggest-icon ${Object(_.F)(o.kind)}`));o.tags&&o.tags.indexOf(1)>=0&&(a.extraClasses=(a.extraClasses||[]).concat(["deprecated"]),a.matches=[]),i.iconLabel.setLabel(s,void 0,a),"string"==typeof o.label?(i.parametersLabel.textContent="",i.qualifierLabel.textContent="",i.detailsLabel.textContent=(o.detail||"").replace(/\n.*$/m,""),i.root.classList.add("string-label")):(i.parametersLabel.textContent=(o.label.parameters||"").replace(/\n.*$/m,""),i.qualifierLabel.textContent=(o.label.qualifier||"").replace(/\n.*$/m,""),i.detailsLabel.textContent=(o.label.type||"").replace(/\n.*$/m,""),i.root.classList.remove("string-label")),lt(e)?(i.right.classList.add("can-expand-details"),Object(Ne.Z)(i.readMore),i.readMore.onmousedown=e=>{e.stopPropagation(),e.preventDefault()},i.readMore.onclick=e=>{e.stopPropagation(),e.preventDefault(),this.widget.toggleDetails()}):(i.right.classList.remove("can-expand-details"),Object(Ne.K)(i.readMore),i.readMore.onmousedown=null,i.readMore.onclick=null)}disposeTemplate(e){e.disposables.dispose()}};dt=Xe([Qe(3,$e.a),Qe(4,C.a),Qe(5,G.c)],dt);class ut{constructor(e,t,n,i,r){this.widget=t,this.editor=n,this.markdownRenderer=i,this.kbToggleDetails=r,this.borderWidth=1,this.disposables=new a.b,this.el=Object(Ne.p)(e,Object(Ne.a)(".details")),this.disposables.add(Object(a.h)(()=>e.removeChild(this.el))),this.body=Object(Ne.a)(".body"),this.scrollbar=new Ae.a(this.body,{}),Object(Ne.p)(this.el,this.scrollbar.getDomNode()),this.disposables.add(this.scrollbar),this.header=Object(Ne.p)(this.body,Object(Ne.a)(".header")),this.close=Object(Ne.p)(this.header,Object(Ne.a)("span"+J.a.close.cssSelector)),this.close.title=E.a("readLess","Read Less ({0})",this.kbToggleDetails),this.type=Object(Ne.p)(this.header,Object(Ne.a)("p.type")),this.docs=Object(Ne.p)(this.body,Object(Ne.a)("p.docs")),this.configureFont(),j.b.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter(e=>e.hasChanged(36)).on(this.configureFont,this,this.disposables),i.onDidRenderCodeBlock(()=>this.scrollbar.scanDomNode(),this,this.disposables)}get element(){return this.el}renderLoading(){this.type.textContent=E.a("loading","Loading..."),this.docs.textContent=""}renderItem(e,t){Object(a.f)(this.renderDisposeable),this.renderDisposeable=void 0;let{documentation:n,detail:i}=e.completion;if(t){let t="";t+=`score: ${e.score[0]}${e.word?`, compared '${e.completion.filterText&&e.completion.filterText+" (filterText)"||e.completion.label}' with '${e.word}'`:" (no prefix)"}\n`,t+=`distance: ${e.distance}, see localityBonus-setting\n`,t+=`index: ${e.idx}, based on ${e.completion.sortText&&`sortText: "${e.completion.sortText}"`||"label"}\n`,n=(new Ke.a).appendCodeblock("empty",t),i=`Provider: ${e.provider._debugDisplayName}`}if(!t&&!lt(e))return this.type.textContent="",this.docs.textContent="",void this.el.classList.add("no-docs");if(this.el.classList.remove("no-docs"),"string"==typeof n)this.docs.classList.remove("markdown-docs"),this.docs.textContent=n;else{this.docs.classList.add("markdown-docs"),this.docs.innerText="";const e=this.markdownRenderer.render(n);this.renderDisposeable=e,this.docs.appendChild(e.element)}i?(this.type.innerText=i.length>1e5?`${i.substr(0,1e5)}…`:i,Object(Ne.Z)(this.type)):(this.type.innerText="",Object(Ne.K)(this.type)),this.el.style.height=this.header.offsetHeight+this.docs.offsetHeight+2*this.borderWidth+"px",this.el.style.userSelect="text",this.el.tabIndex=-1,this.close.onmousedown=e=>{e.preventDefault(),e.stopPropagation()},this.close.onclick=e=>{e.preventDefault(),e.stopPropagation(),this.widget.toggleDetails()},this.body.scrollTop=0,this.scrollbar.scanDomNode()}scrollDown(e=8){this.body.scrollTop+=e}scrollUp(e=8){this.body.scrollTop-=e}scrollTop(){this.body.scrollTop=0}scrollBottom(){this.body.scrollTop=this.body.scrollHeight}pageDown(){this.scrollDown(80)}pageUp(){this.scrollUp(80)}setBorderWidth(e){this.borderWidth=e}configureFont(){const e=this.editor.getOptions(),t=e.get(36),n=t.fontFamily,i=e.get(97)||t.fontSize,r=e.get(98)||t.lineHeight,o=t.fontWeight,s=`${i}px`,a=`${r}px`;this.el.style.fontSize=s,this.el.style.fontWeight=o,this.el.style.fontFeatureSettings=t.fontFeatureSettings,this.type.style.fontFamily=n,this.close.style.height=a,this.close.style.width=a}dispose(){this.disposables.dispose(),Object(a.f)(this.renderDisposeable),this.renderDisposeable=void 0}}let ht=class e{constructor(e,t,n,i,o,s,l,c,d,u){var h,f;this.editor=e,this.telemetryService=t,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.state=0,this.isAddedAsContentWidget=!1,this.isAuto=!1,this.loadingTimeout=a.a.None,this.currentSuggestionDetails=null,this.ignoreFocusEvents=!1,this.completionModel=null,this.showTimeout=new b.e,this.toDispose=new a.b,this.onDidSelectEmitter=new j.a,this.onDidFocusEmitter=new j.a,this.onDidHideEmitter=new j.a,this.onDidShowEmitter=new j.a,this.onDidSelect=this.onDidSelectEmitter.event,this.onDidFocus=this.onDidFocusEmitter.event,this.onDidHide=this.onDidHideEmitter.event,this.onDidShow=this.onDidShowEmitter.event,this.maxWidgetWidth=660,this.listWidth=330,this.firstFocusInCurrentList=!1,this.preferDocPositionTop=!1,this.docsPositionPreviousWidgetY=null,this.explainMode=!1,this._onDetailsKeydown=new j.a,this.onDetailsKeyDown=this._onDetailsKeydown.event;const g=this.toDispose.add(new Fe.a(e,l,c)),p=null!==(f=null===(h=n.lookupKeybinding("toggleSuggestionDetails"))||void 0===h?void 0:h.getLabel())&&void 0!==f?f:"";this.isAuto=!1,this.focusedItem=null,this.storageService=s,this.element=Object(Ne.a)(".editor-widget.suggest-widget"),this.toDispose.add(Object(Ne.i)(this.element,"click",e=>{e.target===this.element&&this.hideWidget()})),this.messageElement=Object(Ne.p)(this.element,Object(Ne.a)(".message")),this.listElement=Object(Ne.p)(this.element,Object(Ne.a)(".tree"));const m=()=>this.element.classList.toggle("with-status-bar",this.editor.getOption(96).statusBar.visible);m(),this.statusBarElement=Object(Ne.p)(this.element,Object(Ne.a)(".suggest-status-bar"));const _=e=>{const t=n.lookupKeybindings(e.id);return new class extends Je.a{constructor(){super(void 0,e,{label:!0,icon:!1})}updateLabel(){if(Object(r.n)(t)||!this.label)return super.updateLabel();const{label:e}=this.getAction();this.label.textContent=/{\d}/.test(e)?W.x(this.getAction().label,t[0].getLabel()):`${this.getAction().label} (${t[0].getLabel()})`}}},v=new Ze.a(this.statusBarElement,{actionViewItemProvider:_}),y=new Ze.a(this.statusBarElement,{actionViewItemProvider:_}),w=d.createMenu(I.g,i);this.toDispose.add(w.onDidChange(()=>(()=>{const e=[],t=[];for(let[n,i]of w.getActions())"left"===n?e.push(...i):t.push(...i);v.clear(),v.push(e),y.clear(),y.push(t)})())),this.toDispose.add(w),this.details=u.createInstance(ut,this.element,this,this.editor,g,p);const C=()=>this.element.classList.toggle("no-icons",!this.editor.getOption(96).showIcons);C();let S=u.createInstance(dt,this,this.editor,p);this.list=new Ie.c("SuggestWidget",this.listElement,this,[S],{useShadows:!1,mouseSupport:!1,accessibilityProvider:{getRole:()=>"option",getAriaLabel:e=>{const t="string"==typeof e.completion.label?e.completion.label:e.completion.label.name;if(e.isResolved&&this.expandDocsSettingFromStorage()){const{documentation:n,detail:i}=e.completion,r=W.x("{0}{1}",i||"",n?"string"==typeof n?n:n.value:"");return E.a("ariaCurrenttSuggestionReadDetails","{0}, docs: {1}",t,r)}return t},getWidgetAriaLabel:()=>E.a("suggest","Suggest"),getWidgetRole:()=>"listbox"}}),this.toDispose.add(Object(je.b)(this.list,o,{listInactiveFocusBackground:ot,listInactiveFocusOutline:Z.b})),this.toDispose.add(o.onDidColorThemeChange(e=>this.onThemeChange(e))),this.toDispose.add(e.onDidLayoutChange(()=>this.onEditorLayoutChange())),this.toDispose.add(this.list.onMouseDown(e=>this.onListMouseDownOrTap(e))),this.toDispose.add(this.list.onTap(e=>this.onListMouseDownOrTap(e))),this.toDispose.add(this.list.onDidChangeSelection(e=>this.onListSelection(e))),this.toDispose.add(this.list.onDidChangeFocus(e=>this.onListFocus(e))),this.toDispose.add(this.editor.onDidChangeCursorSelection(()=>this.onCursorSelectionChanged())),this.toDispose.add(this.editor.onDidChangeConfiguration(e=>{e.hasChanged(96)&&(m(),C())})),this.ctxSuggestWidgetVisible=I.b.Visible.bindTo(i),this.ctxSuggestWidgetDetailsVisible=I.b.DetailsVisible.bindTo(i),this.ctxSuggestWidgetMultipleSuggestions=I.b.MultipleSuggestions.bindTo(i),this.onThemeChange(o.getColorTheme()),this.toDispose.add(Object(Ne.n)(this.details.element,"keydown",e=>{this._onDetailsKeydown.fire(e)})),this.toDispose.add(this.editor.onMouseDown(e=>this.onEditorMouseDown(e)))}onEditorMouseDown(e){this.details.element.contains(e.target.element)?this.details.element.focus():this.element.contains(e.target.element)&&this.editor.focus()}onCursorSelectionChanged(){0!==this.state&&this.editor.layoutContentWidget(this)}onEditorLayoutChange(){3!==this.state&&5!==this.state||!this.expandDocsSettingFromStorage()||this.expandSideOrBelow()}onListMouseDownOrTap(e){void 0!==e.element&&void 0!==e.index&&(e.browserEvent.preventDefault(),e.browserEvent.stopPropagation(),this.select(e.element,e.index))}onListSelection(e){e.elements.length&&this.select(e.elements[0],e.indexes[0])}select(e,t){const n=this.completionModel;n&&(this.onDidSelectEmitter.fire({item:e,index:t,model:n}),this.editor.focus())}onThemeChange(e){const t=e.getColor(nt);t&&(this.listElement.style.backgroundColor=t.toString(),this.statusBarElement.style.backgroundColor=t.toString(),this.details.element.style.backgroundColor=t.toString(),this.messageElement.style.backgroundColor=t.toString());const n=e.getColor(it);n&&(this.listElement.style.borderColor=n.toString(),this.statusBarElement.style.borderColor=n.toString(),this.details.element.style.borderColor=n.toString(),this.messageElement.style.borderColor=n.toString(),this.detailsBorderColor=n.toString());const i=e.getColor(Z.Z);i&&(this.detailsFocusBorderColor=i.toString()),this.details.setBorderWidth("hc"===e.type?2:1)}onListFocus(e){if(this.ignoreFocusEvents)return;if(!e.elements.length)return this.currentSuggestionDetails&&(this.currentSuggestionDetails.cancel(),this.currentSuggestionDetails=null,this.focusedItem=null),void this.editor.setAriaOptions({activeDescendant:void 0});if(!this.completionModel)return;const t=e.elements[0],n=e.indexes[0];this.firstFocusInCurrentList=!this.focusedItem,t!==this.focusedItem&&(this.currentSuggestionDetails&&(this.currentSuggestionDetails.cancel(),this.currentSuggestionDetails=null),this.focusedItem=t,this.list.reveal(n),this.currentSuggestionDetails=Object(b.f)(e=>et(this,void 0,void 0,(function*(){const n=Object(b.g)(()=>this.showDetails(!0),250);e.onCancellationRequested(()=>n.dispose());const i=yield t.resolve(e);return n.dispose(),i}))),this.currentSuggestionDetails.then(()=>{n>=this.list.length||t!==this.list.element(n)||(this.ignoreFocusEvents=!0,this.list.splice(n,1,[t]),this.list.setFocus([n]),this.ignoreFocusEvents=!1,this.expandDocsSettingFromStorage()?this.showDetails(!1):this.element.classList.remove("docs-side"),this.editor.setAriaOptions({activeDescendant:ct(n)}))}).catch(o.e)),this.onDidFocusEmitter.fire({item:t,index:n,model:this.completionModel})}setState(t){if(!this.element)return;this.isAddedAsContentWidget||0===t||(this.isAddedAsContentWidget=!0,this.editor.addContentWidget(this));const n=this.state!==t;switch(this.state=t,this.element.classList.toggle("frozen",4===t),t){case 0:Object(Ne.K)(this.messageElement,this.details.element,this.listElement,this.statusBarElement),this.hide(),this.listHeight=0,n&&this.list.splice(0,this.list.length),this.focusedItem=null;break;case 1:this.messageElement.textContent=e.LOADING_MESSAGE,Object(Ne.K)(this.listElement,this.details.element,this.statusBarElement),Object(Ne.Z)(this.messageElement),this.element.classList.remove("docs-side"),this.show(),this.focusedItem=null;break;case 2:this.messageElement.textContent=e.NO_SUGGESTIONS_MESSAGE,Object(Ne.K)(this.listElement,this.details.element,this.statusBarElement),Object(Ne.Z)(this.messageElement),this.element.classList.remove("docs-side"),this.show(),this.focusedItem=null;break;case 3:Object(Ne.K)(this.messageElement),Object(Ne.Z)(this.listElement,this.statusBarElement),this.show();break;case 4:Object(Ne.K)(this.messageElement),Object(Ne.Z)(this.listElement),this.show();break;case 5:Object(Ne.K)(this.messageElement),Object(Ne.Z)(this.details.element,this.listElement,this.statusBarElement),this.show()}}showTriggered(e,t){0===this.state&&(this.isAuto=!!e,this.isAuto||(this.loadingTimeout=Object(b.g)(()=>this.setState(1),t)))}showSuggestions(e,t,n,i){if(this.preferDocPositionTop=!1,this.docsPositionPreviousWidgetY=null,this.loadingTimeout.dispose(),this.currentSuggestionDetails&&(this.currentSuggestionDetails.cancel(),this.currentSuggestionDetails=null),this.completionModel!==e&&(this.completionModel=e),n&&2!==this.state&&0!==this.state)return void this.setState(4);let r=this.completionModel.items.length;const o=0===r;if(this.ctxSuggestWidgetMultipleSuggestions.set(r>1),o)i?this.setState(0):this.setState(2),this.completionModel=null;else{if(3!==this.state){const{stats:e}=this.completionModel;e.wasAutomaticallyTriggered=!!i,this.telemetryService.publicLog("suggestWidget",Object.assign({},e))}this.focusedItem=null,this.list.splice(0,this.list.length,this.completionModel.items),n?this.setState(4):this.setState(3),this.list.reveal(t,0),this.list.setFocus([t]),this.detailsBorderColor&&(this.details.element.style.borderColor=this.detailsBorderColor)}}selectNextPage(){switch(this.state){case 0:return!1;case 5:return this.details.pageDown(),!0;case 1:return!this.isAuto;default:return this.list.focusNextPage(),!0}}selectNext(){switch(this.state){case 0:return!1;case 1:return!this.isAuto;default:return this.list.focusNext(1,!0),!0}}selectLast(){switch(this.state){case 0:return!1;case 5:return this.details.scrollBottom(),!0;case 1:return!this.isAuto;default:return this.list.focusLast(),!0}}selectPreviousPage(){switch(this.state){case 0:return!1;case 5:return this.details.pageUp(),!0;case 1:return!this.isAuto;default:return this.list.focusPreviousPage(),!0}}selectPrevious(){switch(this.state){case 0:return!1;case 1:return!this.isAuto;default:return this.list.focusPrevious(1,!0),!1}}selectFirst(){switch(this.state){case 0:return!1;case 5:return this.details.scrollTop(),!0;case 1:return!this.isAuto;default:return this.list.focusFirst(),!0}}getFocusedItem(){if(0!==this.state&&2!==this.state&&1!==this.state&&this.completionModel)return{item:this.list.getFocusedElements()[0],index:this.list.getFocus()[0],model:this.completionModel}}toggleDetailsFocus(){5===this.state?(this.setState(3),this.detailsBorderColor&&(this.details.element.style.borderColor=this.detailsBorderColor)):3===this.state&&this.expandDocsSettingFromStorage()&&(this.setState(5),this.detailsFocusBorderColor&&(this.details.element.style.borderColor=this.detailsFocusBorderColor)),this.telemetryService.publicLog2("suggestWidget:toggleDetailsFocus")}toggleDetails(){if(lt(this.list.getFocusedElements()[0]))if(this.expandDocsSettingFromStorage())this.ctxSuggestWidgetDetailsVisible.set(!1),this.updateExpandDocsSetting(!1),Object(Ne.K)(this.details.element),this.element.classList.remove("docs-side","doc-below"),this.editor.layoutContentWidget(this),this.telemetryService.publicLog2("suggestWidget:collapseDetails");else{if(3!==this.state&&5!==this.state&&4!==this.state)return;this.ctxSuggestWidgetDetailsVisible.set(!0),this.updateExpandDocsSetting(!0),this.showDetails(!1),this.telemetryService.publicLog2("suggestWidget:expandDetails")}}showDetails(e){e||this.expandSideOrBelow(),Object(Ne.Z)(this.details.element),this.details.element.style.maxHeight=this.maxWidgetHeight+"px",e?this.details.renderLoading():this.details.renderItem(this.list.getFocusedElements()[0],this.explainMode),this.listElement.style.marginTop="0px",this.editor.layoutContentWidget(this),this.adjustDocsPosition(),this.editor.focus()}toggleExplainMode(){this.list.getFocusedElements()[0]&&this.expandDocsSettingFromStorage()&&(this.explainMode=!this.explainMode,this.showDetails(!1))}show(){const e=this.updateListHeight();e!==this.listHeight&&(this.editor.layoutContentWidget(this),this.listHeight=e),this.ctxSuggestWidgetVisible.set(!0),this.showTimeout.cancelAndSet(()=>{this.element.classList.add("visible"),this.onDidShowEmitter.fire(this)},100)}hide(){this.editor.layoutContentWidget(this),this.ctxSuggestWidgetVisible.reset(),this.ctxSuggestWidgetMultipleSuggestions.reset(),this.element.classList.remove("visible")}hideWidget(){this.loadingTimeout.dispose(),this.setState(0),this.onDidHideEmitter.fire(this)}getPosition(){if(0===this.state)return null;let e=[2,1];return this.preferDocPositionTop&&(e=[1]),{position:this.editor.getPosition(),preference:e}}getDomNode(){return this.element}getId(){return e.ID}isFrozen(){return 4===this.state}updateListHeight(){let e=0;if(2===this.state||1===this.state)e=this.unfocusedHeight;else{const t=this.list.contentHeight/this.unfocusedHeight,{maxVisibleSuggestions:n}=this.editor.getOption(96);e=Math.min(t,n)*this.unfocusedHeight}return this.element.style.lineHeight=`${this.unfocusedHeight}px`,this.listElement.style.height=`${e}px`,this.statusBarElement.style.top=`${e}px`,this.list.layout(e),e}adjustDocsPosition(){if(!this.editor.hasModel())return;const e=this.editor.getOption(51),t=this.editor.getScrolledVisiblePosition(this.editor.getPosition()),n=Object(Ne.C)(this.editor.getDomNode()),i=n.left+t.left,r=n.top+t.top+t.height,o=Object(Ne.C)(this.element),s=o.left,a=o.top;if(this.docsPositionPreviousWidgetY&&this.docsPositionPreviousWidgetY<a&&!this.preferDocPositionTop)return this.preferDocPositionTop=!0,void this.adjustDocsPosition();this.docsPositionPreviousWidgetY=a,s<i-this.listWidth?this.element.classList.add("list-right"):this.element.classList.remove("list-right"),this.element.classList.contains("docs-side")&&r-e>a&&this.details.element.offsetHeight>this.listElement.offsetHeight&&(this.listElement.style.marginTop=`${this.details.element.offsetHeight-this.listElement.offsetHeight}px`)}expandSideOrBelow(){if(!lt(this.focusedItem)&&this.firstFocusInCurrentList)return void this.element.classList.remove("docs-side","docs-below");let e=this.element.style.maxWidth.match(/(\d+)px/);!e||Number(e[1])<this.maxWidgetWidth?(this.element.classList.add("docs-below"),this.element.classList.remove("docs-side")):lt(this.focusedItem)&&(this.element.classList.add("docs-side"),this.element.classList.remove("docs-below"))}get maxWidgetHeight(){return this.unfocusedHeight*this.editor.getOption(96).maxVisibleSuggestions}get unfocusedHeight(){const e=this.editor.getOptions();return e.get(98)||e.get(36).lineHeight}getHeight(e){return this.unfocusedHeight}getTemplateId(e){return"suggestion"}expandDocsSettingFromStorage(){return this.storageService.getBoolean("expandSuggestionDocs",0,!1)}updateExpandDocsSetting(e){this.storageService.store("expandSuggestionDocs",e,0)}dispose(){this.details.dispose(),this.list.dispose(),this.toDispose.dispose(),this.loadingTimeout.dispose(),this.showTimeout.dispose(),this.editor.removeContentWidget(this)}};ht.ID="editor.widget.suggestWidget",ht.LOADING_MESSAGE=E.a("suggestWidget.loading","Loading..."),ht.NO_SUGGESTIONS_MESSAGE=E.a("suggestWidget.noSuggestions","No suggestions."),ht=Xe([Qe(1,Pe.a),Qe(2,Re.a),Qe(3,O.b),Qe(4,G.c),Qe(5,m.a),Qe(6,C.a),Qe(7,Be.a),Qe(8,Ge.a),Qe(9,v.a)],ht),Object(G.g)((e,t)=>{const n=e.getColor(st);n&&t.addRule(`.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-highlighted-label .highlight { color: ${n}; }`);const i=e.getColor(rt);i&&t.addRule(`.monaco-editor .suggest-widget { color: ${i}; }`);const r=e.getColor(Z.rc);r&&t.addRule(`.monaco-editor .suggest-widget a { color: ${r}; }`);const o=e.getColor(Z.qc);o&&t.addRule(`.monaco-editor .suggest-widget code { background-color: ${o}; }`)});var ft=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},gt=function(e,t){return function(n,i){t(n,i,e)}};let pt=class e extends a.a{constructor(t,n){super(),this._editor=t,this._enabled=!1,this._ckAtEnd=e.AtEnd.bindTo(n),this._register(this._editor.onDidChangeConfiguration(e=>e.hasChanged(101)&&this._update())),this._update()}dispose(){super.dispose(),Object(a.f)(this._selectionListener),this._ckAtEnd.reset()}_update(){const e="on"===this._editor.getOption(101);if(this._enabled!==e)if(this._enabled=e,this._enabled){const e=()=>{if(!this._editor.hasModel())return void this._ckAtEnd.set(!1);const e=this._editor.getModel(),t=this._editor.getSelection(),n=e.getWordAtPosition(t.getStartPosition());n?this._ckAtEnd.set(n.endColumn===t.getStartPosition().column):this._ckAtEnd.set(!1)};this._selectionListener=this._editor.onDidChangeCursorSelection(e),e()}else this._selectionListener&&(this._ckAtEnd.reset(),this._selectionListener.dispose(),this._selectionListener=void 0)}};pt.AtEnd=new O.c("atEndOfWord",!1),pt=ft([gt(1,O.b)],pt);var mt=n(89),_t=n(20),bt=n(111);class vt{constructor(e,t,n){this._disposables=new a.b,this._disposables.add(t.onDidShow(()=>this._onItem(t.getFocusedItem()))),this._disposables.add(t.onDidFocus(this._onItem,this)),this._disposables.add(t.onDidHide(this.reset,this)),this._disposables.add(e.onWillType(i=>{if(this._active&&!t.isFrozen()){const t=i.charCodeAt(i.length-1);this._active.acceptCharacters.has(t)&&e.getOption(0)&&n(this._active.item)}}))}_onItem(e){if(!e||!Object(r.o)(e.item.completion.commitCharacters))return void this.reset();if(this._active&&this._active.item.item===e.item)return;const t=new bt.b;for(const n of e.item.completion.commitCharacters)n.length>0&&t.add(n.charCodeAt(0));this._active={acceptCharacters:t,item:e}}reset(){this._active=void 0}dispose(){this._disposables.dispose()}}class yt{constructor(e,t){this._disposables=new a.b,this._lastOvertyped=[],this._empty=!0,this._disposables.add(e.onWillType(()=>{if(!this._empty)return;if(!e.hasModel())return;const t=e.getSelections(),n=t.length;let i=!1;for(let e=0;e<n;e++)if(!t[e].isEmpty()){i=!0;break}if(!i)return;this._lastOvertyped=[];const r=e.getModel();for(let e=0;e<n;e++){const n=t[e];if(r.getValueLengthInRange(n)>yt._maxSelectionLength)return;this._lastOvertyped[e]={value:r.getValueInRange(n),multiline:n.startLineNumber!==n.endLineNumber}}this._empty=!1})),this._disposables.add(t.onDidCancel(e=>{this._empty||(this._empty=!0)}))}getLastOvertypedInfo(e){if(!this._empty&&e>=0&&e<this._lastOvertyped.length)return this._lastOvertyped[e]}dispose(){this._disposables.dispose()}}yt._maxSelectionLength=51200;var wt=n(10),Ct=n(12),St=n(92),kt=n(169),xt=n(109);n.d(t,"SuggestController",(function(){return Et})),n.d(t,"TriggerSuggestAction",(function(){return Tt}));var Lt=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Mt=function(e,t){return function(n,i){t(n,i,e)}};class Dt{constructor(e,t){if(this._model=e,this._position=t,e.getLineMaxColumn(t.lineNumber)!==t.column){const n=e.getOffsetAt(t),i=e.getPositionAt(n+1);this._marker=e.deltaDecorations([],[{range:u.a.fromPositions(t,i),options:{stickiness:1}}])}}dispose(){this._marker&&!this._model.isDisposed()&&this._model.deltaDecorations(this._marker,[])}delta(e){if(this._model.isDisposed()||this._position.lineNumber!==e.lineNumber)return 0;if(this._marker){const t=this._model.getDecorationRange(this._marker[0]);return this._model.getOffsetAt(t.getStartPosition())-this._model.getOffsetAt(e)}return this._model.getLineMaxColumn(e.lineNumber)-e.column}}let Et=class e{constructor(e,t,n,i,r,o,l,c){this._memoryService=n,this._commandService=i,this._contextKeyService=r,this._instantiationService=o,this._logService=l,this._lineSuffix=new a.d,this._toDispose=new a.b,this.editor=e,this.model=new K(this.editor,t,c),this.widget=this._toDispose.add(new b.b(()=>{const e=this._instantiationService.createInstance(ht,this.editor);this._toDispose.add(e),this._toDispose.add(e.onDidSelect(e=>this._insertSuggestion(e,0),this));const t=new vt(this.editor,e,e=>this._insertSuggestion(e,2));this._toDispose.add(t),this._toDispose.add(this.model.onDidSuggest(e=>{0===e.completionModel.items.length&&t.reset()}));const n=I.b.MakesTextEdit.bindTo(this._contextKeyService),i=I.b.HasInsertAndReplaceRange.bindTo(this._contextKeyService),r=I.b.CanResolve.bindTo(this._contextKeyService);return this._toDispose.add(Object(a.h)(()=>{n.reset(),i.reset(),r.reset()})),this._toDispose.add(e.onDidFocus(({item:e})=>{const t=this.editor.getPosition(),o=e.editStart.column,s=t.column;let a=!0;if(!("smart"!==this.editor.getOption(1)||2!==this.model.state||e.completion.command||e.completion.additionalTextEdits||4&e.completion.insertTextRules||s-o!==e.completion.insertText.length)){a=this.editor.getModel().getValueInRange({startLineNumber:t.lineNumber,startColumn:o,endLineNumber:t.lineNumber,endColumn:s})!==e.completion.insertText}n.set(a),i.set(!wt.a.equals(e.editInsertEnd,e.editReplaceEnd)),r.set(Boolean(e.provider.resolveCompletionItem)||Boolean(e.completion.documentation)||e.completion.detail!==e.completion.label)})),this._toDispose.add(e.onDetailsKeyDown(e=>{e.toKeybinding().equals(new s.e(!0,!1,!1,!1,33))||Ct.f&&e.toKeybinding().equals(new s.e(!1,!1,!1,!0,33))?e.stopPropagation():e.toKeybinding().isModifierKey()||this.editor.focus()})),e})),this._overtypingCapturer=this._toDispose.add(new b.b(()=>this._toDispose.add(new yt(this.editor,this.model)))),this._alternatives=this._toDispose.add(new b.b(()=>this._toDispose.add(new P(this.editor,this._contextKeyService)))),this._toDispose.add(o.createInstance(pt,e)),this._toDispose.add(this.model.onDidTrigger(e=>{this.widget.value.showTriggered(e.auto,e.shy?250:50),this._lineSuffix.value=new Dt(this.editor.getModel(),e.position)})),this._toDispose.add(this.model.onDidSuggest(e=>{if(!e.shy){let t=this._memoryService.select(this.editor.getModel(),this.editor.getPosition(),e.completionModel.items);this.widget.value.showSuggestions(e.completionModel,t,e.isFrozen,e.auto)}})),this._toDispose.add(this.model.onDidCancel(e=>{e.retrigger||this.widget.value.hideWidget()})),this._toDispose.add(this.editor.onDidBlurEditorWidget(()=>{this.model.cancel(),this.model.clear()}));let d=I.b.AcceptSuggestionsOnEnter.bindTo(r),u=()=>{const e=this.editor.getOption(1);d.set("on"===e||"smart"===e)};this._toDispose.add(this.editor.onDidChangeConfiguration(()=>u())),u()}static get(t){return t.getContribution(e.ID)}dispose(){this._alternatives.dispose(),this._toDispose.dispose(),this.widget.dispose(),this.model.dispose(),this._lineSuffix.dispose()}_insertSuggestion(e,t){if(!e||!e.item)return this._alternatives.value.reset(),this.model.cancel(),void this.model.clear();if(!this.editor.hasModel())return;const n=this.editor.getModel(),i=n.getAlternativeVersionId(),{item:r}=e,s=[],a=new Y.b;1&t||this.editor.pushUndoStop();const c=this.getOverwriteInfo(r,Boolean(8&t));if(this._memoryService.memorize(n,this.editor.getPosition(),r),Array.isArray(r.completion.additionalTextEdits)){const e=l.c.capture(this.editor);this.editor.executeEdits("suggestController.additionalTextEdits.sync",r.completion.additionalTextEdits.map(e=>d.a.replace(u.a.lift(e.range),e.text))),e.restoreRelativeVerticalPositionOfCursor(this.editor)}else if(!r.isResolved){const e=new kt.a(!0);let i;const o=n.onDidChangeContent(e=>{if(e.isFlush)return a.cancel(),void o.dispose();for(let t of e.changes){const e=u.a.getEndPosition(t.range);i&&!wt.a.isBefore(e,i)||(i=e)}});let c=t;t|=2;let h=!1,f=this.editor.onWillType(()=>{f.dispose(),h=!0,2&c||this.editor.pushUndoStop()});s.push(r.resolve(a.token).then(()=>{if(!r.completion.additionalTextEdits||a.token.isCancellationRequested)return!1;if(i&&r.completion.additionalTextEdits.some(e=>wt.a.isBefore(i,u.a.getStartPosition(e.range))))return!1;h&&this.editor.pushUndoStop();const e=l.c.capture(this.editor);return this.editor.executeEdits("suggestController.additionalTextEdits.async",r.completion.additionalTextEdits.map(e=>d.a.replace(u.a.lift(e.range),e.text))),e.restoreRelativeVerticalPositionOfCursor(this.editor),!h&&2&c||this.editor.pushUndoStop(),!0}).then(t=>{this._logService.trace("[suggest] async resolving of edits DONE (ms, applied?)",e.elapsed(),t),o.dispose(),f.dispose()}))}let{insertText:h}=r.completion;4&r.completion.insertTextRules||(h=g.c.escape(h)),f.SnippetController2.get(this.editor).insert(h,{overwriteBefore:c.overwriteBefore,overwriteAfter:c.overwriteAfter,undoStopBefore:!1,undoStopAfter:!1,adjustWhitespace:!(1&r.completion.insertTextRules),clipboardText:e.model.clipboardText,overtypingCapturer:this._overtypingCapturer.value}),2&t||this.editor.pushUndoStop(),r.completion.command?r.completion.command.id===Tt.id?this.model.trigger({auto:!0,shy:!1},!0):(s.push(this._commandService.executeCommand(r.completion.command.id,...r.completion.command.arguments?[...r.completion.command.arguments]:[]).catch(o.e)),this.model.cancel()):this.model.cancel(),4&t&&this._alternatives.value.set(e,e=>{for(a.cancel();n.canUndo();){i!==n.getAlternativeVersionId()&&n.undo(),this._insertSuggestion(e,3|(8&t?8:0));break}}),this._alertCompletionItem(r),Promise.all(s).finally(()=>{this.model.clear(),a.dispose()})}getOverwriteInfo(e,t){Object(_t.b)(this.editor.hasModel());let n="replace"===this.editor.getOption(96).insertMode;t&&(n=!n);const i=e.position.column-e.editStart.column,r=(n?e.editReplaceEnd.column:e.editInsertEnd.column)-e.position.column;return{overwriteBefore:i+(this.editor.getPosition().column-e.position.column),overwriteAfter:r+(this._lineSuffix.value?this._lineSuffix.value.delta(this.editor.getPosition()):0)}}_alertCompletionItem({completion:e}){const t="string"==typeof e.label?e.label:e.label.name;if(Object(r.o)(e.additionalTextEdits)){let n=E.a("arai.alert.snippet","Accepting '{0}' made {1} additional edits",t,e.additionalTextEdits.length);Object(i.a)(n)}}triggerSuggest(e){this.editor.hasModel()&&(this.model.trigger({auto:!1,shy:!1},!1,e),this.editor.revealLine(this.editor.getPosition().lineNumber,0),this.editor.focus())}triggerSuggestAndAcceptBest(e){if(!this.editor.hasModel())return;const t=this.editor.getPosition(),n=()=>{t.equals(this.editor.getPosition())&&this._commandService.executeCommand(e.fallback)},i=e=>{if(4&e.completion.insertTextRules||e.completion.additionalTextEdits)return!0;const t=this.editor.getPosition(),n=e.editStart.column,i=t.column;return i-n!==e.completion.insertText.length||this.editor.getModel().getValueInRange({startLineNumber:t.lineNumber,startColumn:n,endLineNumber:t.lineNumber,endColumn:i})!==e.completion.insertText};j.b.once(this.model.onDidTrigger)(e=>{let t=[];j.b.any(this.model.onDidTrigger,this.model.onDidCancel)(()=>{Object(a.f)(t),n()},void 0,t),this.model.onDidSuggest(({completionModel:e})=>{if(Object(a.f)(t),0===e.items.length)return void n();const r=this._memoryService.select(this.editor.getModel(),this.editor.getPosition(),e.items),o=e.items[r];i(o)?(this.editor.pushUndoStop(),this._insertSuggestion({index:r,item:o,model:e},7)):n()},void 0,t)}),this.model.trigger({auto:!1,shy:!0}),this.editor.revealLine(t.lineNumber,0),this.editor.focus()}acceptSelectedSuggestion(e,t){const n=this.widget.value.getFocusedItem();let i=0;e&&(i|=4),t&&(i|=8),this._insertSuggestion(n,i)}acceptNextSuggestion(){this._alternatives.value.next()}acceptPrevSuggestion(){this._alternatives.value.prev()}cancelSuggestWidget(){this.model.cancel(),this.model.clear(),this.widget.value.hideWidget()}selectNextSuggestion(){this.widget.value.selectNext()}selectNextPageSuggestion(){this.widget.value.selectNextPage()}selectLastSuggestion(){this.widget.value.selectLast()}selectPrevSuggestion(){this.widget.value.selectPrevious()}selectPrevPageSuggestion(){this.widget.value.selectPreviousPage()}selectFirstSuggestion(){this.widget.value.selectFirst()}toggleSuggestionDetails(){this.widget.value.toggleDetails()}toggleExplainMode(){this.widget.value.toggleExplainMode()}toggleSuggestionFocus(){this.widget.value.toggleDetailsFocus()}};Et.ID="editor.contrib.suggestController",Et=Lt([Mt(1,mt.a),Mt(2,D),Mt(3,T.b),Mt(4,O.b),Mt(5,v.a),Mt(6,St.b),Mt(7,xt.a)],Et);class Tt extends c.b{constructor(){super({id:Tt.id,label:E.a("suggest.trigger.label","Trigger Suggest"),alias:"Trigger Suggest",precondition:O.a.and(h.a.writable,h.a.hasCompletionItemProvider),kbOpts:{kbExpr:h.a.textInputFocus,primary:2058,mac:{primary:266,secondary:[521]},weight:100}})}run(e,t){const n=Et.get(t);n&&n.triggerSuggest()}}Tt.id="editor.action.triggerSuggest",Object(c.m)(Et.ID,Et),Object(c.k)(Tt);const Ot=c.c.bindToContribution(Et.get);Object(c.l)(new Ot({id:"acceptSelectedSuggestion",precondition:I.b.Visible,handler(e){e.acceptSelectedSuggestion(!0,!1)}})),N.a.registerKeybindingRule({id:"acceptSelectedSuggestion",when:O.a.and(I.b.Visible,h.a.textInputFocus),primary:2,weight:190}),N.a.registerKeybindingRule({id:"acceptSelectedSuggestion",when:O.a.and(I.b.Visible,h.a.textInputFocus,I.b.AcceptSuggestionsOnEnter,I.b.MakesTextEdit),primary:3,weight:190}),Ge.d.appendMenuItem(I.g,{command:{id:"acceptSelectedSuggestion",title:E.a({key:"accept.accept",comment:['{0} will be a keybinding, e.g "Enter to insert"']},"{0} to insert")},group:"left",order:1,when:I.b.HasInsertAndReplaceRange.toNegated()}),Ge.d.appendMenuItem(I.g,{command:{id:"acceptSelectedSuggestion",title:E.a({key:"accept.insert",comment:['{0} will be a keybinding, e.g "Enter to insert"']},"{0} to insert")},group:"left",order:1,when:O.a.and(I.b.HasInsertAndReplaceRange,O.a.equals("config.editor.suggest.insertMode","insert"))}),Ge.d.appendMenuItem(I.g,{command:{id:"acceptSelectedSuggestion",title:E.a({key:"accept.replace",comment:['{0} will be a keybinding, e.g "Enter to replace"']},"{0} to replace")},group:"left",order:1,when:O.a.and(I.b.HasInsertAndReplaceRange,O.a.equals("config.editor.suggest.insertMode","replace"))}),Object(c.l)(new Ot({id:"acceptAlternativeSelectedSuggestion",precondition:O.a.and(I.b.Visible,h.a.textInputFocus),kbOpts:{weight:190,kbExpr:h.a.textInputFocus,primary:1027,secondary:[1026]},handler(e){e.acceptSelectedSuggestion(!1,!0)},menuOpts:[{menuId:I.g,group:"left",order:2,when:O.a.and(I.b.HasInsertAndReplaceRange,O.a.equals("config.editor.suggest.insertMode","insert")),title:E.a({key:"accept.replace",comment:['{0} will be a keybinding, e.g "Enter to replace"']},"{0} to replace")},{menuId:I.g,group:"left",order:2,when:O.a.and(I.b.HasInsertAndReplaceRange,O.a.equals("config.editor.suggest.insertMode","replace")),title:E.a({key:"accept.insert",comment:['{0} will be a keybinding, e.g "Enter to insert"']},"{0} to insert")}]})),T.a.registerCommandAlias("acceptSelectedSuggestionOnEnter","acceptSelectedSuggestion"),Object(c.l)(new Ot({id:"hideSuggestWidget",precondition:I.b.Visible,handler:e=>e.cancelSuggestWidget(),kbOpts:{weight:190,kbExpr:h.a.textInputFocus,primary:9,secondary:[1033]}})),Object(c.l)(new Ot({id:"selectNextSuggestion",precondition:O.a.and(I.b.Visible,I.b.MultipleSuggestions),handler:e=>e.selectNextSuggestion(),kbOpts:{weight:190,kbExpr:h.a.textInputFocus,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})),Object(c.l)(new Ot({id:"selectNextPageSuggestion",precondition:O.a.and(I.b.Visible,I.b.MultipleSuggestions),handler:e=>e.selectNextPageSuggestion(),kbOpts:{weight:190,kbExpr:h.a.textInputFocus,primary:12,secondary:[2060]}})),Object(c.l)(new Ot({id:"selectLastSuggestion",precondition:O.a.and(I.b.Visible,I.b.MultipleSuggestions),handler:e=>e.selectLastSuggestion()})),Object(c.l)(new Ot({id:"selectPrevSuggestion",precondition:O.a.and(I.b.Visible,I.b.MultipleSuggestions),handler:e=>e.selectPrevSuggestion(),kbOpts:{weight:190,kbExpr:h.a.textInputFocus,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})),Object(c.l)(new Ot({id:"selectPrevPageSuggestion",precondition:O.a.and(I.b.Visible,I.b.MultipleSuggestions),handler:e=>e.selectPrevPageSuggestion(),kbOpts:{weight:190,kbExpr:h.a.textInputFocus,primary:11,secondary:[2059]}})),Object(c.l)(new Ot({id:"selectFirstSuggestion",precondition:O.a.and(I.b.Visible,I.b.MultipleSuggestions),handler:e=>e.selectFirstSuggestion()})),Object(c.l)(new Ot({id:"toggleSuggestionDetails",precondition:I.b.Visible,handler:e=>e.toggleSuggestionDetails(),kbOpts:{weight:190,kbExpr:h.a.textInputFocus,primary:2058,mac:{primary:266}},menuOpts:[{menuId:I.g,group:"right",order:1,when:O.a.and(I.b.DetailsVisible,I.b.CanResolve),title:E.a("detail.more","show less")},{menuId:I.g,group:"right",order:1,when:O.a.and(I.b.DetailsVisible.toNegated(),I.b.CanResolve),title:E.a("detail.less","show more")}]})),Object(c.l)(new Ot({id:"toggleExplainMode",precondition:I.b.Visible,handler:e=>e.toggleExplainMode(),kbOpts:{weight:100,primary:2133}})),Object(c.l)(new Ot({id:"toggleSuggestionFocus",precondition:I.b.Visible,handler:e=>e.toggleSuggestionFocus(),kbOpts:{weight:190,kbExpr:h.a.textInputFocus,primary:2570,mac:{primary:778}}})),Object(c.l)(new Ot({id:"insertBestCompletion",precondition:O.a.and(h.a.textInputFocus,O.a.equals("config.editor.tabCompletion","on"),pt.AtEnd,I.b.Visible.toNegated(),P.OtherSuggestions.toNegated(),f.SnippetController2.InSnippetMode.toNegated()),handler:(e,t)=>{e.triggerSuggestAndAcceptBest(Object(_t.i)(t)?Object.assign({fallback:"tab"},t):{fallback:"tab"})},kbOpts:{weight:190,primary:2}})),Object(c.l)(new Ot({id:"insertNextSuggestion",precondition:O.a.and(h.a.textInputFocus,O.a.equals("config.editor.tabCompletion","on"),P.OtherSuggestions,I.b.Visible.toNegated(),f.SnippetController2.InSnippetMode.toNegated()),handler:e=>e.acceptNextSuggestion(),kbOpts:{weight:190,kbExpr:h.a.textInputFocus,primary:2}})),Object(c.l)(new Ot({id:"insertPrevSuggestion",precondition:O.a.and(h.a.textInputFocus,O.a.equals("config.editor.tabCompletion","on"),P.OtherSuggestions,I.b.Visible.toNegated(),f.SnippetController2.InSnippetMode.toNegated()),handler:e=>e.acceptPrevSuggestion(),kbOpts:{weight:190,kbExpr:h.a.textInputFocus,primary:1026}}))},function(e,t,n){"use strict";n.r(t);var i=n(0),r=n(39),o=n(2),s=n(4),a=n(3),l=n(7),c=n(98),d=n(1),u=n(26),h=n(13),f=n(81),g=n(10),p=n(29),m=n(11),_=n(229),b=n(222),v=n(6);class y{constructor(e,t,n){this.presentationIndex=n,this._onColorFlushed=new v.a,this.onColorFlushed=this._onColorFlushed.event,this._onDidChangeColor=new v.a,this.onDidChangeColor=this._onDidChangeColor.event,this._onDidChangePresentation=new v.a,this.onDidChangePresentation=this._onDidChangePresentation.event,this.originalColor=e,this._color=e,this._colorPresentations=t}get color(){return this._color}set color(e){this._color.equals(e)||(this._color=e,this._onDidChangeColor.fire(e))}get presentation(){return this.colorPresentations[this.presentationIndex]}get colorPresentations(){return this._colorPresentations}set colorPresentations(e){this._colorPresentations=e,this.presentationIndex>e.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation)}selectNextColorPresentation(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)}guessColorPresentation(e,t){for(let e=0;e<this.colorPresentations.length;e++)if(t.toLowerCase()===this.colorPresentations[e].label){this.presentationIndex=e,this._onDidChangePresentation.fire(this.presentation);break}}flushColor(){this._onColorFlushed.fire(this._color)}}n(613);var w=n(30),C=n(93),S=n(69),k=n(5),x=n(18);const L=d.a;class M extends o.a{constructor(e,t,n){super(),this.model=t,this.domNode=L(".colorpicker-header"),d.p(e,this.domNode),this.pickedColorNode=d.p(this.domNode,L(".picked-color"));const i=d.p(this.domNode,L(".original-color"));i.style.backgroundColor=h.a.Format.CSS.format(this.model.originalColor)||"",this.backgroundColor=n.getColorTheme().getColor(k.E)||h.a.white,this._register(Object(x.g)((e,t)=>{this.backgroundColor=e.getColor(k.E)||h.a.white})),this._register(d.i(this.pickedColorNode,d.c.CLICK,()=>this.model.selectNextColorPresentation())),this._register(d.i(i,d.c.CLICK,()=>{this.model.color=this.model.originalColor,this.model.flushColor()})),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this._register(t.onDidChangePresentation(this.onDidChangePresentation,this)),this.pickedColorNode.style.backgroundColor=h.a.Format.CSS.format(t.color)||"",d.ab(this.pickedColorNode,"light",t.color.rgba.a<.5?this.backgroundColor.isLighter():t.color.isLighter())}onDidChangeColor(e){this.pickedColorNode.style.backgroundColor=h.a.Format.CSS.format(e)||"",d.ab(this.pickedColorNode,"light",e.rgba.a<.5?this.backgroundColor.isLighter():e.isLighter()),this.onDidChangePresentation()}onDidChangePresentation(){this.pickedColorNode.textContent=this.model.presentation?this.model.presentation.label:""}}class D extends o.a{constructor(e,t,n){super(),this.model=t,this.pixelRatio=n,this.domNode=L(".colorpicker-body"),d.p(e,this.domNode),this.saturationBox=new E(this.domNode,this.model,this.pixelRatio),this._register(this.saturationBox),this._register(this.saturationBox.onDidChange(this.onDidSaturationValueChange,this)),this._register(this.saturationBox.onColorFlushed(this.flushColor,this)),this.opacityStrip=new O(this.domNode,this.model),this._register(this.opacityStrip),this._register(this.opacityStrip.onDidChange(this.onDidOpacityChange,this)),this._register(this.opacityStrip.onColorFlushed(this.flushColor,this)),this.hueStrip=new N(this.domNode,this.model),this._register(this.hueStrip),this._register(this.hueStrip.onDidChange(this.onDidHueChange,this)),this._register(this.hueStrip.onColorFlushed(this.flushColor,this))}flushColor(){this.model.flushColor()}onDidSaturationValueChange({s:e,v:t}){const n=this.model.color.hsva;this.model.color=new h.a(new h.b(n.h,e,t,n.a))}onDidOpacityChange(e){const t=this.model.color.hsva;this.model.color=new h.a(new h.b(t.h,t.s,t.v,e))}onDidHueChange(e){const t=this.model.color.hsva,n=360*(1-e);this.model.color=new h.a(new h.b(360===n?0:n,t.s,t.v,t.a))}layout(){this.saturationBox.layout(),this.opacityStrip.layout(),this.hueStrip.layout()}}class E extends o.a{constructor(e,t,n){super(),this.model=t,this.pixelRatio=n,this._onDidChange=new v.a,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new v.a,this.onColorFlushed=this._onColorFlushed.event,this.domNode=L(".saturation-wrap"),d.p(e,this.domNode),this.canvas=document.createElement("canvas"),this.canvas.className="saturation-box",d.p(this.domNode,this.canvas),this.selection=L(".saturation-selection"),d.p(this.domNode,this.selection),this.layout(),this._register(d.g(this.domNode,e=>this.onMouseDown(e))),this._register(this.model.onDidChangeColor(this.onDidChangeColor,this)),this.monitor=null}onMouseDown(e){this.monitor=this._register(new C.a);const t=d.C(this.domNode);e.target!==this.selection&&this.onDidChangePosition(e.offsetX,e.offsetY),this.monitor.startMonitoring(e.target,e.buttons,C.b,e=>this.onDidChangePosition(e.posx-t.left,e.posy-t.top),()=>null);const n=d.h(document,()=>{this._onColorFlushed.fire(),n.dispose(),this.monitor&&(this.monitor.stopMonitoring(!0),this.monitor=null)},!0)}onDidChangePosition(e,t){const n=Math.max(0,Math.min(1,e/this.width)),i=Math.max(0,Math.min(1,1-t/this.height));this.paintSelection(n,i),this._onDidChange.fire({s:n,v:i})}layout(){this.width=this.domNode.offsetWidth,this.height=this.domNode.offsetHeight,this.canvas.width=this.width*this.pixelRatio,this.canvas.height=this.height*this.pixelRatio,this.paint();const e=this.model.color.hsva;this.paintSelection(e.s,e.v)}paint(){const e=this.model.color.hsva,t=new h.a(new h.b(e.h,1,1,1)),n=this.canvas.getContext("2d"),i=n.createLinearGradient(0,0,this.canvas.width,0);i.addColorStop(0,"rgba(255, 255, 255, 1)"),i.addColorStop(.5,"rgba(255, 255, 255, 0.5)"),i.addColorStop(1,"rgba(255, 255, 255, 0)");const r=n.createLinearGradient(0,0,0,this.canvas.height);r.addColorStop(0,"rgba(0, 0, 0, 0)"),r.addColorStop(1,"rgba(0, 0, 0, 1)"),n.rect(0,0,this.canvas.width,this.canvas.height),n.fillStyle=h.a.Format.CSS.format(t),n.fill(),n.fillStyle=i,n.fill(),n.fillStyle=r,n.fill()}paintSelection(e,t){this.selection.style.left=`${e*this.width}px`,this.selection.style.top=`${this.height-t*this.height}px`}onDidChangeColor(){this.monitor&&this.monitor.isMonitoring()||this.paint()}}class T extends o.a{constructor(e,t){super(),this.model=t,this._onDidChange=new v.a,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new v.a,this.onColorFlushed=this._onColorFlushed.event,this.domNode=d.p(e,L(".strip")),this.overlay=d.p(this.domNode,L(".overlay")),this.slider=d.p(this.domNode,L(".slider")),this.slider.style.top="0px",this._register(d.g(this.domNode,e=>this.onMouseDown(e))),this.layout()}layout(){this.height=this.domNode.offsetHeight-this.slider.offsetHeight;const e=this.getValue(this.model.color);this.updateSliderPosition(e)}onMouseDown(e){const t=this._register(new C.a),n=d.C(this.domNode);d.e(this.domNode,"grabbing"),e.target!==this.slider&&this.onDidChangeTop(e.offsetY),t.startMonitoring(e.target,e.buttons,C.b,e=>this.onDidChangeTop(e.posy-n.top),()=>null);const i=d.h(document,()=>{this._onColorFlushed.fire(),i.dispose(),t.stopMonitoring(!0),d.Q(this.domNode,"grabbing")},!0)}onDidChangeTop(e){const t=Math.max(0,Math.min(1,1-e/this.height));this.updateSliderPosition(t),this._onDidChange.fire(t)}updateSliderPosition(e){this.slider.style.top=`${(1-e)*this.height}px`}}class O extends T{constructor(e,t){super(e,t),d.e(this.domNode,"opacity-strip"),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this.onDidChangeColor(this.model.color)}onDidChangeColor(e){const{r:t,g:n,b:i}=e.rgba,r=new h.a(new h.c(t,n,i,1)),o=new h.a(new h.c(t,n,i,0));this.overlay.style.background=`linear-gradient(to bottom, ${r} 0%, ${o} 100%)`}getValue(e){return e.hsva.a}}class N extends T{constructor(e,t){super(e,t),d.e(this.domNode,"hue-strip")}getValue(e){return 1-e.hsva.h/360}}class I extends S.a{constructor(e,t,n,i){super(),this.model=t,this.pixelRatio=n,this._register(Object(w.n)(()=>this.layout()));const r=L(".colorpicker-widget");e.appendChild(r);const o=new M(r,this.model,i);this.body=new D(r,this.model,this.pixelRatio),this._register(o),this._register(this.body)}layout(){this.body.layout()}}var A=n(14),R=n(15);function P(e,t,n){const i=m.p.ordered(e).map(i=>Promise.resolve(i.provideHover(e,t,n)).then(e=>e&&function(e){const t=void 0!==e.range,n=void 0!==e.contents&&e.contents&&e.contents.length>0;return t&&n}(e)?e:void 0,e=>{Object(R.f)(e)}));return Promise.all(i).then(A.d)}Object(s.p)("_executeHoverProvider",(e,t)=>P(e,t,u.a.None));var j=n(19);class F{constructor(e,t,n,i,r){this._computer=e,this._state=0,this._hoverTime=r,this._firstWaitScheduler=new j.d(()=>this._triggerAsyncComputation(),0),this._secondWaitScheduler=new j.d(()=>this._triggerSyncComputation(),0),this._loadingMessageScheduler=new j.d(()=>this._showLoadingMessage(),0),this._asyncComputationPromise=null,this._asyncComputationPromiseDone=!1,this._completeCallback=t,this._errorCallback=n,this._progressCallback=i}setHoverTime(e){this._hoverTime=e}_firstWaitTime(){return this._hoverTime/2}_secondWaitTime(){return this._hoverTime/2}_loadingMessageTime(){return 3*this._hoverTime}_triggerAsyncComputation(){this._state=2,this._secondWaitScheduler.schedule(this._secondWaitTime()),this._computer.computeAsync?(this._asyncComputationPromiseDone=!1,this._asyncComputationPromise=Object(j.f)(e=>this._computer.computeAsync(e)),this._asyncComputationPromise.then(e=>{this._asyncComputationPromiseDone=!0,this._withAsyncResult(e)},e=>this._onError(e))):this._asyncComputationPromiseDone=!0}_triggerSyncComputation(){this._computer.computeSync&&this._computer.onResult(this._computer.computeSync(),!0),this._asyncComputationPromiseDone?(this._state=0,this._onComplete(this._computer.getResult())):(this._state=3,this._onProgress(this._computer.getResult()))}_showLoadingMessage(){3===this._state&&this._onProgress(this._computer.getResultWithLoadingMessage())}_withAsyncResult(e){e&&this._computer.onResult(e,!1),3===this._state&&(this._state=0,this._onComplete(this._computer.getResult()))}_onComplete(e){this._completeCallback(e)}_onError(e){this._errorCallback?this._errorCallback(e):Object(R.e)(e)}_onProgress(e){this._progressCallback(e)}start(e){if(0===e)0===this._state&&(this._state=1,this._firstWaitScheduler.schedule(this._firstWaitTime()),this._loadingMessageScheduler.schedule(this._loadingMessageTime()));else switch(this._state){case 0:this._triggerAsyncComputation(),this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break;case 2:this._secondWaitScheduler.cancel(),this._triggerSyncComputation()}}cancel(){this._loadingMessageScheduler.cancel(),1===this._state&&this._firstWaitScheduler.cancel(),2===this._state&&(this._secondWaitScheduler.cancel(),this._asyncComputationPromise&&(this._asyncComputationPromise.cancel(),this._asyncComputationPromise=null)),3===this._state&&this._asyncComputationPromise&&(this._asyncComputationPromise.cancel(),this._asyncComputationPromise=null),this._state=0}}n(614);var B=n(94);const W=d.a;class H extends o.a{constructor(){super(),this.containerDomNode=document.createElement("div"),this.containerDomNode.className="monaco-hover",this.containerDomNode.tabIndex=0,this.containerDomNode.setAttribute("role","tooltip"),this.contentsDomNode=document.createElement("div"),this.contentsDomNode.className="monaco-hover-content",this._scrollbar=this._register(new B.a(this.contentsDomNode,{})),this.containerDomNode.appendChild(this._scrollbar.getDomNode())}onContentsChanged(){this._scrollbar.scanDomNode()}}class Y extends S.a{constructor(e,t,n,i){super(),this._hoverVisibleKey=n,this._keybindingService=i,this.allowEditorOverflow=!0,this._hover=this._register(new H),this._id=e,this._editor=t,this._isVisible=!1,this._stoleFocus=!1,this.onkeydown(this._hover.containerDomNode,e=>{e.equals(9)&&this.hide()}),this._register(this._editor.onDidChangeConfiguration(e=>{e.hasChanged(36)&&this.updateFont()})),this._editor.onDidLayoutChange(e=>this.layout()),this.layout(),this._editor.addContentWidget(this),this._showAtPosition=null,this._showAtRange=null,this._stoleFocus=!1}get isVisible(){return this._isVisible}set isVisible(e){this._isVisible=e,d.ab(this._hover.containerDomNode,"hidden",!this._isVisible)}getId(){return this._id}getDomNode(){return this._hover.containerDomNode}showAt(e,t,n){this._showAtPosition=e,this._showAtRange=t,this._hoverVisibleKey.set(!0),this.isVisible=!0,this._editor.layoutContentWidget(this),this._editor.render(),this._stoleFocus=n,n&&this._hover.containerDomNode.focus()}hide(){this.isVisible&&(setTimeout(()=>{this.isVisible||this._hoverVisibleKey.set(!1)},0),this.isVisible=!1,this._editor.layoutContentWidget(this),this._stoleFocus&&this._editor.focus())}getPosition(){return this.isVisible?{position:this._showAtPosition,range:this._showAtRange,preference:[1,2]}:null}dispose(){this._editor.removeContentWidget(this),super.dispose()}updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach(e=>this._editor.applyFontInfo(e))}updateContents(e){this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(e),this.updateFont(),this._editor.layoutContentWidget(this),this._hover.onContentsChanged()}_renderAction(e,t){const n=this._keybindingService.lookupKeybinding(t.commandId);return function(e,t,n){const i=d.p(e,W("div.action-container")),r=d.p(i,W("a.action"));return r.setAttribute("href","#"),r.setAttribute("role","button"),t.iconClass&&d.p(r,W(`span.icon.${t.iconClass}`)),d.p(r,W("span")).textContent=n?`${t.label} (${n})`:t.label,d.i(i,d.c.CLICK,e=>{e.stopPropagation(),e.preventDefault(),t.run(i)})}(e,t,n?n.getLabel():null)}layout(){const e=Math.max(this._editor.getLayoutInfo().height/4,250),{fontSize:t,lineHeight:n}=this._editor.getOption(36);this._hover.contentsDomNode.style.fontSize=`${t}px`,this._hover.contentsDomNode.style.lineHeight=`${n}px`,this._hover.contentsDomNode.style.maxHeight=`${e}px`,this._hover.contentsDomNode.style.maxWidth=`${Math.max(.66*this._editor.getLayoutInfo().width,500)}px`}}class V extends S.a{constructor(e,t){super(),this._id=e,this._editor=t,this._isVisible=!1,this._domNode=document.createElement("div"),this._domNode.className="monaco-hover hidden",this._domNode.setAttribute("aria-hidden","true"),this._domNode.setAttribute("role","tooltip"),this._showAtLineNumber=-1,this._register(this._editor.onDidChangeConfiguration(e=>{e.hasChanged(36)&&this.updateFont()})),this._editor.addOverlayWidget(this)}get isVisible(){return this._isVisible}set isVisible(e){this._isVisible=e,d.ab(this._domNode,"hidden",!this._isVisible)}getId(){return this._id}getDomNode(){return this._domNode}showAt(e){this._showAtLineNumber=e,this.isVisible||(this.isVisible=!0);const t=this._editor.getLayoutInfo(),n=this._editor.getTopForLineNumber(this._showAtLineNumber),i=this._editor.getScrollTop(),r=this._editor.getOption(51),o=n-i-(this._domNode.clientHeight-r)/2;this._domNode.style.left=`${t.glyphMarginLeft+t.glyphMarginWidth}px`,this._domNode.style.top=`${Math.max(Math.round(o),0)}px`}hide(){this.isVisible&&(this.isVisible=!1)}getPosition(){return null}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}updateFont(){[...Array.prototype.slice.call(this._domNode.getElementsByTagName("code")),...Array.prototype.slice.call(this._domNode.getElementsByClassName("code"))].forEach(e=>this._editor.applyFontInfo(e))}updateContents(e){this._domNode.textContent="",this._domNode.appendChild(e),this.updateFont()}}var z=n(173),U=n(52),$=n(42),q=n(66),K=n(202),G=n(95),Z=n(130),J=n(57),X=n(70);const Q=d.a;class ee{constructor(e,t,n){this.range=e,this.color=t,this.provider=n}}class te{constructor(e,t){this.range=e,this.marker=t}}class ne{constructor(e,t){this._markerDecorationsService=t,this._editor=e,this._result=[]}setRange(e){this._range=e,this._result=[]}clearResult(){this._result=[]}computeAsync(e){if(!this._editor.hasModel()||!this._range)return Promise.resolve([]);const t=this._editor.getModel();return m.p.has(t)?P(t,new g.a(this._range.startLineNumber,this._range.startColumn),e):Promise.resolve([])}computeSync(){if(!this._editor.hasModel()||!this._range)return[];const e=this._editor.getModel(),t=this._range.startLineNumber;if(t>this._editor.getModel().getLineCount())return[];const n=b.ColorDetector.get(this._editor),i=e.getLineMaxColumn(t),r=this._editor.getLineDecorations(t);let o=!1;const s=this._range,l=r.map(r=>{const l=r.range.startLineNumber===t?r.range.startColumn:1,c=r.range.endLineNumber===t?r.range.endColumn:i;if(l>s.startColumn||s.endColumn>c)return null;const d=new a.a(s.startLineNumber,l,s.startLineNumber,c),u=this._markerDecorationsService.getMarker(e,r);if(u)return new te(d,u);const h=n.getColorData(r.range.getStartPosition());if(!o&&h){o=!0;const{color:e,range:t}=h.colorInfo;return new ee(t,e,h.provider)}if(Object(f.b)(r.options.hoverMessage))return null;return{contents:r.options.hoverMessage?Object(A.b)(r.options.hoverMessage):[],range:d}});return Object(A.d)(l)}onResult(e,t){this._result=t?e.concat(this._result.sort((e,t)=>e instanceof ee?-1:t instanceof ee?1:0)):this._result.concat(e)}getResult(){return this._result.slice(0)}getResultWithLoadingMessage(){return this._result.slice(0).concat([this._getLoadingMessage()])}_getLoadingMessage(){return{range:this._range,contents:[(new f.a).appendText(i.a("modesContentHover.loading","Loading..."))]}}}const ie={type:2,filter:{include:J.b.QuickFix}};class re extends Y{constructor(e,t,n,i,r,s,a=q.b){super(re.ID,e,t,i),this._themeService=r,this._modeService=s,this._openerService=a,this.renderDisposable=this._register(new o.d),this._messages=[],this._lastRange=null,this._computer=new ne(this._editor,n),this._highlightDecorations=[],this._isChangingDecorations=!1,this._shouldFocus=!1,this._colorPicker=null,this._hoverOperation=new F(this._computer,e=>this._withResult(e,!0),null,e=>this._withResult(e,!1),this._editor.getOption(46).delay),this._register(d.n(this.getDomNode(),d.c.FOCUS,()=>{this._colorPicker&&d.e(this.getDomNode(),"colorpicker-hover")})),this._register(d.n(this.getDomNode(),d.c.BLUR,()=>{d.Q(this.getDomNode(),"colorpicker-hover")})),this._register(e.onDidChangeConfiguration(e=>{this._hoverOperation.setHoverTime(this._editor.getOption(46).delay)})),this._register(m.C.onDidChange(e=>{this.isVisible&&this._lastRange&&this._messages.length>0&&(this._hover.contentsDomNode.textContent="",this._renderMessages(this._lastRange,this._messages))}))}dispose(){this._hoverOperation.cancel(),super.dispose()}onModelDecorationsChanged(){this._isChangingDecorations||this.isVisible&&(this._hoverOperation.cancel(),this._computer.clearResult(),this._colorPicker||this._hoverOperation.start(0))}startShowingAt(e,t,n){if(!this._lastRange||!this._lastRange.equalsRange(e)){if(this._hoverOperation.cancel(),this.isVisible)if(this._showAtPosition&&this._showAtPosition.lineNumber===e.startLineNumber){let t=[];for(let n=0,i=this._messages.length;n<i;n++){const i=this._messages[n],r=i.range;r&&r.startColumn<=e.startColumn&&r.endColumn>=e.endColumn&&t.push(i)}if(t.length>0){if(function(e,t){if(!e&&t||e&&!t||e.length!==t.length)return!1;for(let n=0;n<e.length;n++){const i=e[n],r=t[n];if(i instanceof te&&r instanceof te)return U.a.makeKey(i.marker)===U.a.makeKey(r.marker);if(i instanceof ee||r instanceof ee)return!1;if(i instanceof te||r instanceof te)return!1;if(!Object(f.c)(i.contents,r.contents))return!1}return!0}(t,this._messages))return;this._renderMessages(e,t)}else this.hide()}else this.hide();this._lastRange=e,this._computer.setRange(e),this._shouldFocus=n,this._hoverOperation.start(t)}}hide(){this._lastRange=null,this._hoverOperation.cancel(),super.hide(),this._isChangingDecorations=!0,this._highlightDecorations=this._editor.deltaDecorations(this._highlightDecorations,[]),this._isChangingDecorations=!1,this.renderDisposable.clear(),this._colorPicker=null}isColorPickerVisible(){return!!this._colorPicker}_withResult(e,t){this._messages=e,this._lastRange&&this._messages.length>0?this._renderMessages(this._lastRange,this._messages):t&&this.hide()}_renderMessages(e,t){this.renderDisposable.dispose(),this._colorPicker=null;let n=1073741824,i=t[0].range?a.a.lift(t[0].range):null,r=document.createDocumentFragment(),s=!0,l=!1;const c=new o.b,p=[];if(t.forEach(e=>{if(e.range)if(n=Math.min(n,e.range.startColumn),i=i?a.a.plusRange(i,e.range):a.a.lift(e.range),e instanceof ee){l=!0;const{red:t,green:n,blue:i,alpha:s}=e.color,d=new h.c(Math.round(255*t),Math.round(255*n),Math.round(255*i),s),f=new h.a(d);if(!this._editor.hasModel())return;const g=this._editor.getModel();let p=new a.a(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn),m={range:e.range,color:e.color};const b=new y(f,[],0),v=new I(r,b,this._editor.getOption(115),this._themeService);Object(_.a)(g,m,e.provider,u.a.None).then(t=>{if(b.colorPresentations=t||[],!this._editor.hasModel())return;const n=this._editor.getModel().getValueInRange(e.range);b.guessColorPresentation(f,n);const i=()=>{let e,t;b.presentation.textEdit?(e=[b.presentation.textEdit],t=(t=new a.a(b.presentation.textEdit.range.startLineNumber,b.presentation.textEdit.range.startColumn,b.presentation.textEdit.range.endLineNumber,b.presentation.textEdit.range.endColumn)).setEndPosition(t.endLineNumber,t.startColumn+b.presentation.textEdit.text.length)):(e=[{identifier:null,range:p,text:b.presentation.label,forceMoveMarkers:!1}],t=p.setEndPosition(p.endLineNumber,p.startColumn+b.presentation.label.length)),this._editor.pushUndoStop(),this._editor.executeEdits("colorpicker",e),b.presentation.additionalTextEdits&&(e=[...b.presentation.additionalTextEdits],this._editor.executeEdits("colorpicker",e),this.hide()),this._editor.pushUndoStop(),p=t},s=t=>Object(_.a)(g,{range:p,color:{red:t.rgba.r/255,green:t.rgba.g/255,blue:t.rgba.b/255,alpha:t.rgba.a}},e.provider,u.a.None).then(e=>{b.colorPresentations=e||[]}),l=b.onColorFlushed(e=>{s(e).then(i)}),d=b.onDidChangeColor(s);this._colorPicker=v,this.showAt(p.getStartPosition(),p,this._shouldFocus),this.updateContents(r),this._colorPicker.layout(),this.renderDisposable.value=Object(o.e)(l,d,v,c)})}else e instanceof te?(p.push(e),s=!1):e.contents.filter(e=>!Object(f.b)(e)).forEach(e=>{const t=Q("div.hover-row.markdown-hover"),n=d.p(t,Q("div.hover-contents")),i=c.add(new z.a(this._editor,this._modeService,this._openerService));c.add(i.onDidRenderCodeBlock(()=>{n.className="hover-contents code-hover-contents",this._hover.onContentsChanged()}));const o=c.add(i.render(e));n.appendChild(o.element),r.appendChild(t),s=!1})}),p.length){p.forEach(e=>r.appendChild(this.renderMarkerHover(e)));const e=1===p.length?p[0]:p.sort((e,t)=>U.c.compare(e.marker.severity,t.marker.severity))[0];r.appendChild(this.renderMarkerStatusbar(e))}l||s||(this.showAt(new g.a(e.startLineNumber,n),i,this._shouldFocus),this.updateContents(r)),this._isChangingDecorations=!0,this._highlightDecorations=this._editor.deltaDecorations(this._highlightDecorations,i?[{range:i,options:re._DECORATION_OPTIONS}]:[]),this._isChangingDecorations=!1}renderMarkerHover(e){const t=Q("div.hover-row"),n=d.p(t,Q("div.marker.hover-contents")),{source:i,message:r,code:o,relatedInformation:s}=e.marker;this._editor.applyFontInfo(n);const a=d.p(n,Q("span"));if(a.style.whiteSpace="pre-wrap",a.innerText=r,i||o)if(o&&"string"!=typeof o){const e=Q("span");if(i){d.p(e,Q("span")).innerText=i}this._codeLink=d.p(e,Q("a.code-link")),this._codeLink.setAttribute("href",o.target.toString()),this._codeLink.onclick=e=>{this._openerService.open(o.target),e.preventDefault(),e.stopPropagation()},d.p(this._codeLink,Q("span")).innerText=o.value;const t=d.p(n,e);t.style.opacity="0.6",t.style.paddingLeft="6px"}else{const e=d.p(n,Q("span"));e.style.opacity="0.6",e.style.paddingLeft="6px",e.innerText=i&&o?`${i}(${o})`:i||`(${o})`}if(Object(A.o)(s))for(const{message:e,resource:t,startLineNumber:i,startColumn:r}of s){const o=d.p(n,Q("div"));o.style.marginTop="8px";const s=d.p(o,Q("a"));s.innerText=`${Object($.b)(t)}(${i}, ${r}): `,s.style.cursor="pointer",s.onclick=e=>{e.stopPropagation(),e.preventDefault(),this._openerService&&this._openerService.open(t.with({fragment:`${i},${r}`}),{fromUserGesture:!0}).catch(R.e)};const a=d.p(o,Q("span"));a.innerText=e,this._editor.applyFontInfo(a)}return t}renderMarkerStatusbar(e){const t=Q("div.hover-row.status-bar"),n=new o.b,r=d.p(t,Q("div.actions"));if(e.marker.severity!==U.c.Error&&e.marker.severity!==U.c.Warning&&e.marker.severity!==U.c.Info||n.add(this._renderAction(r,{label:i.a("peek problem","Peek Problem"),commandId:K.NextMarkerAction.ID,run:()=>{this.hide(),K.MarkerController.get(this._editor).showAtMarker(e.marker),this._editor.focus()}})),!this._editor.getOption(72)){const t=d.p(r,Q("div"));t.style.opacity="0",t.style.transition="opacity 0.2s",setTimeout(()=>t.style.opacity="1",200),t.textContent=i.a("checkingForQuickFixes","Checking for quick fixes..."),n.add(Object(o.h)(()=>t.remove()));const s=this.getCodeActions(e.marker);n.add(Object(o.h)(()=>s.cancel())),s.then(e=>{if(t.style.transition="",t.style.opacity="1",!e.validActions.length)return e.dispose(),void(t.textContent=i.a("noQuickFixes","No quick fixes available"));t.remove();let s=!1;n.add(Object(o.h)(()=>{s||e.dispose()})),n.add(this._renderAction(r,{label:i.a("quick fixes","Quick Fix..."),commandId:Z.e.Id,run:t=>{s=!0;const n=Z.f.get(this._editor),i=d.C(t);this.hide(),n.showCodeActions(ie,e,{x:i.left+6,y:i.top+i.height+6})}}))})}return this.renderDisposable.value=n,t}getCodeActions(e){return Object(j.f)(t=>Object(G.c)(this._editor.getModel(),new a.a(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),ie,X.b.None,t))}}re.ID="editor.contrib.modesContentHoverWidget",re._DECORATION_OPTIONS=p.a.register({className:"hoverHighlight"}),Object(x.g)((e,t)=>{const n=e.getColor(k.rc);n&&t.addRule(`.monaco-hover .hover-contents a.code-link span:hover { color: ${n}; }`)});class oe{constructor(e){this._editor=e,this._lineNumber=-1,this._result=[]}setLineNumber(e){this._lineNumber=e,this._result=[]}clearResult(){this._result=[]}computeSync(){const e=e=>({value:e}),t=this._editor.getLineDecorations(this._lineNumber),n=[];if(!t)return n;for(const i of t){if(!i.options.glyphMarginClassName)continue;const t=i.options.glyphMarginHoverMessage;t&&!Object(f.b)(t)&&n.push(...Object(A.b)(t).map(e))}return n}onResult(e,t){this._result=this._result.concat(e)}getResult(){return this._result}getResultWithLoadingMessage(){return this.getResult()}}class se extends V{constructor(e,t,n=q.b){super(se.ID,e),this._renderDisposeables=this._register(new o.b),this._messages=[],this._lastLineNumber=-1,this._markdownRenderer=this._register(new z.a(this._editor,t,n)),this._computer=new oe(this._editor),this._hoverOperation=new F(this._computer,e=>this._withResult(e),void 0,e=>this._withResult(e),300)}dispose(){this._hoverOperation.cancel(),super.dispose()}onModelDecorationsChanged(){this.isVisible&&(this._hoverOperation.cancel(),this._computer.clearResult(),this._hoverOperation.start(0))}startShowingAt(e){this._lastLineNumber!==e&&(this._hoverOperation.cancel(),this.hide(),this._lastLineNumber=e,this._computer.setLineNumber(e),this._hoverOperation.start(0))}hide(){this._lastLineNumber=-1,this._hoverOperation.cancel(),super.hide()}_withResult(e){this._messages=e,this._messages.length>0?this._renderMessages(this._lastLineNumber,this._messages):this.hide()}_renderMessages(e,t){this._renderDisposeables.clear();const n=document.createDocumentFragment();for(const e of t){const t=this._markdownRenderer.render(e.value);this._renderDisposeables.add(t),n.appendChild(Object(d.a)("div.hover-row",void 0,t.element))}this.updateContents(n),this.showAt(e)}}se.ID="editor.contrib.modesGlyphHoverWidget";var ae=n(272),le=n(41),ce=n(223),de=n(9);n.d(t,"ModesHoverController",(function(){return fe}));var ue=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},he=function(e,t){return function(n,i){t(n,i,e)}};let fe=class e{constructor(e,t,n,i,r,s,a){this._editor=e,this._openerService=t,this._modeService=n,this._markerDecorationsService=i,this._keybindingService=r,this._themeService=s,this._toUnhook=new o.b,this._contentWidget=new o.d,this._glyphWidget=new o.d,this._isMouseDown=!1,this._hoverClicked=!1,this._hookEvents(),this._didChangeConfigurationHandler=this._editor.onDidChangeConfiguration(e=>{e.hasChanged(46)&&(this._hideWidgets(),this._unhookEvents(),this._hookEvents())}),this._hoverVisibleKey=l.a.hoverVisible.bindTo(a)}get contentWidget(){return this._contentWidget.value||this._createHoverWidgets(),this._contentWidget.value}get glyphWidget(){return this._glyphWidget.value||this._createHoverWidgets(),this._glyphWidget.value}static get(t){return t.getContribution(e.ID)}_hookEvents(){const e=()=>this._hideWidgets(),t=this._editor.getOption(46);this._isHoverEnabled=t.enabled,this._isHoverSticky=t.sticky,this._isHoverEnabled?(this._toUnhook.add(this._editor.onMouseDown(e=>this._onEditorMouseDown(e))),this._toUnhook.add(this._editor.onMouseUp(e=>this._onEditorMouseUp(e))),this._toUnhook.add(this._editor.onMouseMove(e=>this._onEditorMouseMove(e))),this._toUnhook.add(this._editor.onKeyDown(e=>this._onKeyDown(e))),this._toUnhook.add(this._editor.onDidChangeModelDecorations(()=>this._onModelDecorationsChanged()))):(this._toUnhook.add(this._editor.onMouseMove(e)),this._toUnhook.add(this._editor.onKeyDown(e=>this._onKeyDown(e)))),this._toUnhook.add(this._editor.onMouseLeave(e)),this._toUnhook.add(this._editor.onDidChangeModel(e)),this._toUnhook.add(this._editor.onDidScrollChange(e=>this._onEditorScrollChanged(e)))}_unhookEvents(){this._toUnhook.clear()}_onModelDecorationsChanged(){this.contentWidget.onModelDecorationsChanged(),this.glyphWidget.onModelDecorationsChanged()}_onEditorScrollChanged(e){(e.scrollTopChanged||e.scrollLeftChanged)&&this._hideWidgets()}_onEditorMouseDown(e){this._isMouseDown=!0;const t=e.target.type;9!==t||e.target.detail!==re.ID?12===t&&e.target.detail===se.ID||(12!==t&&e.target.detail!==se.ID&&(this._hoverClicked=!1),this._hideWidgets()):this._hoverClicked=!0}_onEditorMouseUp(e){this._isMouseDown=!1}_onEditorMouseMove(e){let t=e.target.type;if(!(this._isMouseDown&&this._hoverClicked&&this.contentWidget.isColorPickerVisible()||this._isHoverSticky&&9===t&&e.target.detail===re.ID||this._isHoverSticky&&12===t&&e.target.detail===se.ID)){if(7===t){const n=this._editor.getOption(36).typicalHalfwidthCharacterWidth/2,i=e.target.detail;i&&!i.isAfterLines&&"number"==typeof i.horizontalDistanceToText&&i.horizontalDistanceToText<n&&(t=6)}6===t?(this.glyphWidget.hide(),this._isHoverEnabled&&e.target.range&&this.contentWidget.startShowingAt(e.target.range,0,!1)):2===t?(this.contentWidget.hide(),this._isHoverEnabled&&e.target.position&&this.glyphWidget.startShowingAt(e.target.position.lineNumber)):this._hideWidgets()}}_onKeyDown(e){5!==e.keyCode&&6!==e.keyCode&&57!==e.keyCode&&4!==e.keyCode&&this._hideWidgets()}_hideWidgets(){!this._glyphWidget.value||!this._contentWidget.value||this._isMouseDown&&this._hoverClicked&&this._contentWidget.value.isColorPickerVisible()||(this._glyphWidget.value.hide(),this._contentWidget.value.hide())}_createHoverWidgets(){this._contentWidget.value=new re(this._editor,this._hoverVisibleKey,this._markerDecorationsService,this._keybindingService,this._themeService,this._modeService,this._openerService),this._glyphWidget.value=new se(this._editor,this._modeService,this._openerService)}showContentHover(e,t,n){this.contentWidget.startShowingAt(e,t,n)}dispose(){this._unhookEvents(),this._toUnhook.dispose(),this._didChangeConfigurationHandler.dispose(),this._glyphWidget.dispose(),this._contentWidget.dispose()}};fe.ID="editor.contrib.hover",fe=ue([he(1,q.a),he(2,c.a),he(3,ae.a),he(4,le.a),he(5,x.c),he(6,de.b)],fe);class ge extends s.b{constructor(){super({id:"editor.action.showHover",label:i.a({key:"showHover",comment:["Label for action that will trigger the showing of a hover in the editor.","This allows for users to show the hover without using the mouse."]},"Show Hover"),alias:"Show Hover",precondition:void 0,kbOpts:{kbExpr:l.a.editorTextFocus,primary:Object(r.a)(2089,2087),weight:100}})}run(e,t){if(!t.hasModel())return;let n=fe.get(t);if(!n)return;const i=t.getPosition(),r=new a.a(i.lineNumber,i.column,i.lineNumber,i.column),o=2===t.getOption(2);n.showContentHover(r,1,o)}}class pe extends s.b{constructor(){super({id:"editor.action.showDefinitionPreviewHover",label:i.a({key:"showDefinitionPreviewHover",comment:["Label for action that will trigger the showing of definition preview hover in the editor.","This allows for users to show the definition preview hover without using the mouse."]},"Show Definition Preview Hover"),alias:"Show Definition Preview Hover",precondition:void 0})}run(e,t){let n=fe.get(t);if(!n)return;const i=t.getPosition();if(!i)return;const r=new a.a(i.lineNumber,i.column,i.lineNumber,i.column),o=ce.GotoDefinitionAtPositionEditorContribution.get(t).startFindDefinitionFromCursor(i);o?o.then(()=>{n.showContentHover(r,1,!0)}):n.showContentHover(r,1,!0)}}Object(s.m)(fe.ID,fe),Object(s.k)(ge),Object(s.k)(pe),Object(x.g)((e,t)=>{const n=e.getColor(k.H);n&&t.addRule(`.monaco-editor .hoverHighlight { background-color: ${n}; }`);const i=e.getColor(k.E);i&&t.addRule(`.monaco-editor .monaco-hover { background-color: ${i}; }`);const r=e.getColor(k.F);r&&(t.addRule(`.monaco-editor .monaco-hover { border: 1px solid ${r}; }`),t.addRule(`.monaco-editor .monaco-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${r.transparent(.5)}; }`),t.addRule(`.monaco-editor .monaco-hover hr { border-top: 1px solid ${r.transparent(.5)}; }`),t.addRule(`.monaco-editor .monaco-hover hr { border-bottom: 0px solid ${r.transparent(.5)}; }`));const o=e.getColor(k.rc);o&&t.addRule(`.monaco-editor .monaco-hover a { color: ${o}; }`);const s=e.getColor(k.G);s&&t.addRule(`.monaco-editor .monaco-hover { color: ${s}; }`);const a=e.getColor(k.I);a&&t.addRule(`.monaco-editor .monaco-hover .hover-row .actions { background-color: ${a}; }`);const l=e.getColor(k.qc);l&&t.addRule(`.monaco-editor .monaco-hover code { background-color: ${l}; }`)})},function(e,t,n){"use strict";n.r(t);n(586);var i=n(0),r=n(20),o=n(8),s=n(19),a=n(39),l=n(2),c=n(4),d=n(6);const u=65535,h=16777215,f=4278190080;class g{constructor(e,t,n){if(e.length!==t.length||e.length>u)throw new Error("invalid startIndexes or endIndexes size");this._startIndexes=e,this._endIndexes=t,this._collapseStates=new Uint32Array(Math.ceil(e.length/32)),this._types=n,this._parentsComputed=!1}ensureParentIndices(){if(!this._parentsComputed){this._parentsComputed=!0;let e=[],t=(t,n)=>{let i=e[e.length-1];return this.getStartLineNumber(i)<=t&&this.getEndLineNumber(i)>=n};for(let n=0,i=this._startIndexes.length;n<i;n++){let i=this._startIndexes[n],r=this._endIndexes[n];if(i>h||r>h)throw new Error("startLineNumber or endLineNumber must not exceed "+h);for(;e.length>0&&!t(i,r);)e.pop();let o=e.length>0?e[e.length-1]:-1;e.push(n),this._startIndexes[n]=i+((255&o)<<24),this._endIndexes[n]=r+((65280&o)<<16)}}}get length(){return this._startIndexes.length}getStartLineNumber(e){return this._startIndexes[e]&h}getEndLineNumber(e){return this._endIndexes[e]&h}getType(e){return this._types?this._types[e]:void 0}hasTypes(){return!!this._types}isCollapsed(e){let t=e/32|0,n=e%32;return 0!=(this._collapseStates[t]&1<<n)}setCollapsed(e,t){let n=e/32|0,i=e%32,r=this._collapseStates[n];this._collapseStates[n]=t?r|1<<i:r&~(1<<i)}toRegion(e){return new p(this,e)}getParentIndex(e){this.ensureParentIndices();let t=((this._startIndexes[e]&f)>>>24)+((this._endIndexes[e]&f)>>>16);return t===u?-1:t}contains(e,t){return this.getStartLineNumber(e)<=t&&this.getEndLineNumber(e)>=t}findIndex(e){let t=0,n=this._startIndexes.length;if(0===n)return-1;for(;t<n;){let i=Math.floor((t+n)/2);e<this.getStartLineNumber(i)?n=i:t=i+1}return t-1}findRange(e){let t=this.findIndex(e);if(t>=0){if(this.getEndLineNumber(t)>=e)return t;for(t=this.getParentIndex(t);-1!==t;){if(this.contains(t,e))return t;t=this.getParentIndex(t)}}return-1}toString(){let e=[];for(let t=0;t<this.length;t++)e[t]=`[${this.isCollapsed(t)?"+":"-"}] ${this.getStartLineNumber(t)}/${this.getEndLineNumber(t)}`;return e.join(", ")}}class p{constructor(e,t){this.ranges=e,this.index=t}get startLineNumber(){return this.ranges.getStartLineNumber(this.index)}get endLineNumber(){return this.ranges.getEndLineNumber(this.index)}get regionIndex(){return this.index}get parentIndex(){return this.ranges.getParentIndex(this.index)}get isCollapsed(){return this.ranges.isCollapsed(this.index)}containedBy(e){return e.startLineNumber<=this.startLineNumber&&e.endLineNumber>=this.endLineNumber}containsLine(e){return this.startLineNumber<=e&&e<=this.endLineNumber}}class m{constructor(e,t){this._updateEventEmitter=new d.a,this.onDidChange=this._updateEventEmitter.event,this._textModel=e,this._decorationProvider=t,this._regions=new g(new Uint32Array(0),new Uint32Array(0)),this._editorDecorationIds=[],this._isInitialized=!1}get regions(){return this._regions}get textModel(){return this._textModel}get isInitialized(){return this._isInitialized}toggleCollapseState(e){if(!e.length)return;e=e.sort((e,t)=>e.regionIndex-t.regionIndex);const t={};this._decorationProvider.changeDecorations(n=>{let i=0,r=-1,o=-1;const s=e=>{for(;i<e;){const e=this._regions.getEndLineNumber(i),t=this._regions.isCollapsed(i);e<=r&&n.changeDecorationOptions(this._editorDecorationIds[i],this._decorationProvider.getDecorationOption(t,e<=o)),t&&e>o&&(o=e),i++}};for(let n of e){let e=n.regionIndex,i=this._editorDecorationIds[e];if(i&&!t[i]){t[i]=!0,s(e);let n=!this._regions.isCollapsed(e);this._regions.setCollapsed(e,n),r=Math.max(r,this._regions.getEndLineNumber(e))}}s(this._regions.length)}),this._updateEventEmitter.fire({model:this,collapseStateChanged:e})}update(e,t=[]){let n=[],i=-1,r=(r,o)=>{const s=e.getStartLineNumber(r),a=e.getEndLineNumber(r);o&&((e,n)=>{for(let i of t)if(e<i&&i<=n)return!0;return!1})(s,a)&&(o=!1),e.setCollapsed(r,o);const l=this._textModel.getLineMaxColumn(s),c={startLineNumber:s,startColumn:l,endLineNumber:s,endColumn:l};n.push({range:c,options:this._decorationProvider.getDecorationOption(o,a<=i)}),o&&a>i&&(i=a)},o=0,s=()=>{for(;o<this._regions.length;){let e=this._regions.isCollapsed(o);if(o++,e)return o-1}return-1},a=0,l=s();for(;-1!==l&&a<e.length;){let t=this._textModel.getDecorationRange(this._editorDecorationIds[l]);if(t){let n=t.startLineNumber;if(this._textModel.getLineMaxColumn(n)===t.startColumn)for(;a<e.length;){let t=e.getStartLineNumber(a);if(!(n>=t))break;r(a,n===t),a++}}l=s()}for(;a<e.length;)r(a,!1),a++;this._editorDecorationIds=this._decorationProvider.deltaDecorations(this._editorDecorationIds,n),this._regions=e,this._isInitialized=!0,this._updateEventEmitter.fire({model:this})}getMemento(){let e=[];for(let t=0;t<this._regions.length;t++)if(this._regions.isCollapsed(t)){let n=this._textModel.getDecorationRange(this._editorDecorationIds[t]);if(n){let i=n.startLineNumber,r=n.endLineNumber+this._regions.getEndLineNumber(t)-this._regions.getStartLineNumber(t);e.push({startLineNumber:i,endLineNumber:r})}}if(e.length>0)return e}applyMemento(e){if(!Array.isArray(e))return;let t=[];for(let n of e){let e=this.getRegionAtLine(n.startLineNumber);e&&!e.isCollapsed&&t.push(e)}this.toggleCollapseState(t)}dispose(){this._decorationProvider.deltaDecorations(this._editorDecorationIds,[])}getAllRegionsAtLine(e,t){let n=[];if(this._regions){let i=this._regions.findRange(e),r=1;for(;i>=0;){let e=this._regions.toRegion(i);t&&!t(e,r)||n.push(e),r++,i=e.parentIndex}}return n}getRegionAtLine(e){if(this._regions){let t=this._regions.findRange(e);if(t>=0)return this._regions.toRegion(t)}return null}getRegionsInside(e,t){let n=[],i=e?e.regionIndex+1:0,r=e?e.endLineNumber:Number.MAX_VALUE;if(t&&2===t.length){const e=[];for(let o=i,s=this._regions.length;o<s;o++){let i=this._regions.toRegion(o);if(!(this._regions.getStartLineNumber(o)<r))break;for(;e.length>0&&!i.containedBy(e[e.length-1]);)e.pop();e.push(i),t(i,e.length)&&n.push(i)}}else for(let e=i,o=this._regions.length;e<o;e++){let i=this._regions.toRegion(e);if(!(this._regions.getStartLineNumber(e)<r))break;t&&!t(i)||n.push(i)}return n}}function _(e,t,n=Number.MAX_VALUE,i){let r=[];if(i&&i.length>0)for(let o of i){let i=e.getRegionAtLine(o);if(i&&(i.isCollapsed!==t&&r.push(i),n>1)){let o=e.getRegionsInside(i,(e,i)=>e.isCollapsed!==t&&i<n);r.push(...o)}}else{let i=e.getRegionsInside(null,(e,i)=>e.isCollapsed!==t&&i<n);r.push(...i)}e.toggleCollapseState(r)}function b(e,t,n,i){let r=[];for(let o of i){let i=e.getAllRegionsAtLine(o,(e,i)=>e.isCollapsed!==t&&i<=n);r.push(...i)}e.toggleCollapseState(r)}function v(e,t,n){let i=e.textModel,r=e.regions,o=[];for(let e=r.length-1;e>=0;e--)if(n!==r.isCollapsed(e)){let n=r.getStartLineNumber(e);t.test(i.getLineContent(n))&&o.push(r.toRegion(e))}e.toggleCollapseState(o)}function y(e,t,n){let i=e.regions,r=[];for(let e=i.length-1;e>=0;e--)n!==i.isCollapsed(e)&&t===i.getType(e)&&r.push(i.toRegion(e));e.toggleCollapseState(r)}var w=n(29),C=n(16);const S=Object(C.e)("folding-expanded",C.a.chevronDown),k=Object(C.e)("folding-collapsed",C.a.chevronRight);class x{constructor(e){this.editor=e,this.autoHideFoldingControls=!0,this.showFoldingHighlights=!0}getDecorationOption(e,t){return t?x.HIDDEN_RANGE_DECORATION:e?this.showFoldingHighlights?x.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:x.COLLAPSED_VISUAL_DECORATION:this.autoHideFoldingControls?x.EXPANDED_AUTO_HIDE_VISUAL_DECORATION:x.EXPANDED_VISUAL_DECORATION}deltaDecorations(e,t){return this.editor.deltaDecorations(e,t)}changeDecorations(e){return this.editor.changeDecorations(e)}}x.COLLAPSED_VISUAL_DECORATION=w.a.register({stickiness:1,afterContentClassName:"inline-folded",isWholeLine:!0,firstLineDecorationClassName:k.classNames}),x.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=w.a.register({stickiness:1,afterContentClassName:"inline-folded",className:"folded-background",isWholeLine:!0,firstLineDecorationClassName:k.classNames}),x.EXPANDED_AUTO_HIDE_VISUAL_DECORATION=w.a.register({stickiness:1,isWholeLine:!0,firstLineDecorationClassName:S.classNames}),x.EXPANDED_VISUAL_DECORATION=w.a.register({stickiness:1,isWholeLine:!0,firstLineDecorationClassName:"alwaysShowFoldIcons "+S.classNames}),x.HIDDEN_RANGE_DECORATION=w.a.register({stickiness:1});var L=n(7),M=n(3),D=n(14);class E{constructor(e){this._updateEventEmitter=new d.a,this._foldingModel=e,this._foldingModelListener=e.onDidChange(e=>this.updateHiddenRanges()),this._hiddenRanges=[],e.regions.length&&this.updateHiddenRanges()}get onDidChange(){return this._updateEventEmitter.event}get hiddenRanges(){return this._hiddenRanges}updateHiddenRanges(){let e=!1,t=[],n=0,i=0,r=Number.MAX_VALUE,o=-1,s=this._foldingModel.regions;for(;n<s.length;n++){if(!s.isCollapsed(n))continue;let a=s.getStartLineNumber(n)+1,l=s.getEndLineNumber(n);r<=a&&l<=o||(!e&&i<this._hiddenRanges.length&&this._hiddenRanges[i].startLineNumber===a&&this._hiddenRanges[i].endLineNumber===l?(t.push(this._hiddenRanges[i]),i++):(e=!0,t.push(new M.a(a,1,l,1))),r=a,o=l)}(e||i<this._hiddenRanges.length)&&this.applyHiddenRanges(t)}applyMemento(e){if(!Array.isArray(e)||0===e.length)return!1;let t=[];for(let n of e){if(!n.startLineNumber||!n.endLineNumber)return!1;t.push(new M.a(n.startLineNumber+1,1,n.endLineNumber,1))}return this.applyHiddenRanges(t),!0}getMemento(){return this._hiddenRanges.map(e=>({startLineNumber:e.startLineNumber-1,endLineNumber:e.endLineNumber}))}applyHiddenRanges(e){this._hiddenRanges=e,this._updateEventEmitter.fire(e)}hasRanges(){return this._hiddenRanges.length>0}isHidden(e){return null!==T(this._hiddenRanges,e)}adjustSelections(e){let t=!1,n=this._foldingModel.textModel,i=null,r=e=>(i&&function(e,t){return e>=t.startLineNumber&&e<=t.endLineNumber}(e,i)||(i=T(this._hiddenRanges,e)),i?i.startLineNumber-1:null);for(let i=0,o=e.length;i<o;i++){let o=e[i],s=r(o.startLineNumber);s&&(o=o.setStartPosition(s,n.getLineMaxColumn(s)),t=!0);let a=r(o.endLineNumber);a&&(o=o.setEndPosition(a,n.getLineMaxColumn(a)),t=!0),e[i]=o}return t}dispose(){this.hiddenRanges.length>0&&(this._hiddenRanges=[],this._updateEventEmitter.fire(this._hiddenRanges)),this._foldingModelListener&&(this._foldingModelListener.dispose(),this._foldingModelListener=null)}}function T(e,t){let n=Object(D.h)(e,e=>t<e.startLineNumber)-1;return n>=0&&e[n].endLineNumber>=t?e[n]:null}var O=n(32);const N=5e3,I="indent";class A{constructor(e){this.editorModel=e,this.id=I}dispose(){}compute(e){let t=O.a.getFoldingRules(this.editorModel.getLanguageIdentifier().id),n=t&&!!t.offSide,i=t&&t.markers;return Promise.resolve(function(e,t,n,i=N){const r=e.getOptions().tabSize;let o=new R(i),s=void 0;n&&(s=new RegExp(`(${n.start.source})|(?:${n.end.source})`));let a=[],l=e.getLineCount()+1;a.push({indent:-1,endAbove:l,line:l});for(let n=e.getLineCount();n>0;n--){let i,l=e.getLineContent(n),c=w.b.computeIndentLevel(l,r),d=a[a.length-1];if(-1!==c){if(s&&(i=l.match(s))){if(!i[1]){a.push({indent:-2,endAbove:n,line:n});continue}{let e=a.length-1;for(;e>0&&-2!==a[e].indent;)e--;if(e>0){a.length=e+1,d=a[e],o.insertFirst(n,d.line,c),d.line=n,d.indent=c,d.endAbove=n;continue}}}if(d.indent>c){do{a.pop(),d=a[a.length-1]}while(d.indent>c);let e=d.endAbove-1;e-n>=1&&o.insertFirst(n,e,c)}d.indent===c?d.endAbove=n:a.push({indent:c,endAbove:n,line:n})}else t&&(d.endAbove=n)}return o.toIndentRanges(e)}(this.editorModel,n,i))}}class R{constructor(e){this._startIndexes=[],this._endIndexes=[],this._indentOccurrences=[],this._length=0,this._foldingRangesLimit=e}insertFirst(e,t,n){if(e>h||t>h)return;let i=this._length;this._startIndexes[i]=e,this._endIndexes[i]=t,this._length++,n<1e3&&(this._indentOccurrences[n]=(this._indentOccurrences[n]||0)+1)}toIndentRanges(e){if(this._length<=this._foldingRangesLimit){let e=new Uint32Array(this._length),t=new Uint32Array(this._length);for(let n=this._length-1,i=0;n>=0;n--,i++)e[i]=this._startIndexes[n],t[i]=this._endIndexes[n];return new g(e,t)}{let t=0,n=this._indentOccurrences.length;for(let e=0;e<this._indentOccurrences.length;e++){let i=this._indentOccurrences[e];if(i){if(i+t>this._foldingRangesLimit){n=e;break}t+=i}}const i=e.getOptions().tabSize;let r=new Uint32Array(this._foldingRangesLimit),o=new Uint32Array(this._foldingRangesLimit);for(let s=this._length-1,a=0;s>=0;s--){let l=this._startIndexes[s],c=e.getLineContent(l),d=w.b.computeIndentLevel(c,i);(d<n||d===n&&t++<this._foldingRangesLimit)&&(r[a]=l,o[a]=this._endIndexes[s],a++)}return new g(r,o)}}}var P=n(11),j=n(15);const F=5e3,B={},W="syntax";class H{constructor(e,t,n=F){this.editorModel=e,this.providers=t,this.limit=n,this.id=W}compute(e){return function(e,t,n){let i=null,r=e.map((e,r)=>Promise.resolve(e.provideFoldingRanges(t,B,n)).then(e=>{if(!n.isCancellationRequested&&Array.isArray(e)){Array.isArray(i)||(i=[]);let n=t.getLineCount();for(let t of e)t.start>0&&t.end>t.start&&t.end<=n&&i.push({start:t.start,end:t.end,rank:r,kind:t.kind})}},j.f));return Promise.all(r).then(e=>i)}(this.providers,this.editorModel,e).then(e=>{if(e){return V(e,this.limit)}return null})}dispose(){}}class Y{constructor(e){this._startIndexes=[],this._endIndexes=[],this._nestingLevels=[],this._nestingLevelCounts=[],this._types=[],this._length=0,this._foldingRangesLimit=e}add(e,t,n,i){if(e>h||t>h)return;let r=this._length;this._startIndexes[r]=e,this._endIndexes[r]=t,this._nestingLevels[r]=i,this._types[r]=n,this._length++,i<30&&(this._nestingLevelCounts[i]=(this._nestingLevelCounts[i]||0)+1)}toIndentRanges(){if(this._length<=this._foldingRangesLimit){let e=new Uint32Array(this._length),t=new Uint32Array(this._length);for(let n=0;n<this._length;n++)e[n]=this._startIndexes[n],t[n]=this._endIndexes[n];return new g(e,t,this._types)}{let e=0,t=this._nestingLevelCounts.length;for(let n=0;n<this._nestingLevelCounts.length;n++){let i=this._nestingLevelCounts[n];if(i){if(i+e>this._foldingRangesLimit){t=n;break}e+=i}}let n=new Uint32Array(this._foldingRangesLimit),i=new Uint32Array(this._foldingRangesLimit),r=[];for(let o=0,s=0;o<this._length;o++){let a=this._nestingLevels[o];(a<t||a===t&&e++<this._foldingRangesLimit)&&(n[s]=this._startIndexes[o],i[s]=this._endIndexes[o],r[s]=this._types[o],s++)}return new g(n,i,r)}}}function V(e,t){let n=e.sort((e,t)=>{let n=e.start-t.start;return 0===n&&(n=e.rank-t.rank),n}),i=new Y(t),r=void 0,o=[];for(let e of n)if(r){if(e.start>r.start)if(e.end<=r.end)o.push(r),r=e,i.add(e.start,e.end,e.kind&&e.kind.value,o.length);else{if(e.start>r.end){do{r=o.pop()}while(r&&e.start>r.end);r&&o.push(r),r=e}i.add(e.start,e.end,e.kind&&e.kind.value,o.length)}}else r=e,i.add(e.start,e.end,e.kind&&e.kind.value,o.length);return i.toIndentRanges()}const z="init";class U{constructor(e,t,n,i){if(this.editorModel=e,this.id=z,t.length){let r=t=>({range:{startLineNumber:t.startLineNumber,startColumn:0,endLineNumber:t.endLineNumber,endColumn:e.getLineLength(t.endLineNumber)},options:{stickiness:1}});this.decorationIds=e.deltaDecorations([],t.map(r)),this.timeout=setTimeout(n,i)}}dispose(){this.decorationIds&&(this.editorModel.deltaDecorations(this.decorationIds,[]),this.decorationIds=void 0),"number"==typeof this.timeout&&(clearTimeout(this.timeout),this.timeout=void 0)}compute(e){let t=[];if(this.decorationIds)for(let e of this.decorationIds){let n=this.editorModel.getDecorationRange(e);n&&t.push({start:n.startLineNumber,end:n.endLineNumber,rank:1})}return Promise.resolve(V(t,Number.MAX_VALUE))}}var $=n(9),q=n(18),K=n(5);n.d(t,"FoldingController",(function(){return X})),n.d(t,"foldBackgroundBackground",(function(){return ne})),n.d(t,"editorFoldForeground",(function(){return ie}));var G=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Z=function(e,t){return function(n,i){t(n,i,e)}};const J=new $.c("foldingEnabled",!1);let X=class e extends l.a{constructor(e,t){super(),this.contextKeyService=t,this.localToDispose=this._register(new l.b),this.editor=e;const n=this.editor.getOptions();this._isEnabled=n.get(31),this._useFoldingProviders="indentation"!==n.get(32),this._unfoldOnClickAfterEndOfLine=n.get(34),this.foldingModel=null,this.hiddenRangeModel=null,this.rangeProvider=null,this.foldingRegionPromise=null,this.foldingStateMemento=null,this.foldingModelPromise=null,this.updateScheduler=null,this.cursorChangedScheduler=null,this.mouseDownInfo=null,this.foldingDecorationProvider=new x(e),this.foldingDecorationProvider.autoHideFoldingControls="mouseover"===n.get(91),this.foldingDecorationProvider.showFoldingHighlights=n.get(33),this.foldingEnabled=J.bindTo(this.contextKeyService),this.foldingEnabled.set(this._isEnabled),this._register(this.editor.onDidChangeModel(()=>this.onModelChanged())),this._register(this.editor.onDidChangeConfiguration(e=>{if(e.hasChanged(31)&&(this._isEnabled=this.editor.getOptions().get(31),this.foldingEnabled.set(this._isEnabled),this.onModelChanged()),e.hasChanged(91)||e.hasChanged(33)){const e=this.editor.getOptions();this.foldingDecorationProvider.autoHideFoldingControls="mouseover"===e.get(91),this.foldingDecorationProvider.showFoldingHighlights=e.get(33),this.onModelContentChanged()}e.hasChanged(32)&&(this._useFoldingProviders="indentation"!==this.editor.getOptions().get(32),this.onFoldingStrategyChanged()),e.hasChanged(34)&&(this._unfoldOnClickAfterEndOfLine=this.editor.getOptions().get(34))})),this.onModelChanged()}static get(t){return t.getContribution(e.ID)}saveViewState(){let e=this.editor.getModel();if(!e||!this._isEnabled||e.isTooLargeForTokenization())return{};if(this.foldingModel){let t=this.foldingModel.isInitialized?this.foldingModel.getMemento():this.hiddenRangeModel.getMemento(),n=this.rangeProvider?this.rangeProvider.id:void 0;return{collapsedRegions:t,lineCount:e.getLineCount(),provider:n}}}restoreViewState(e){let t=this.editor.getModel();if(!t||!this._isEnabled||t.isTooLargeForTokenization()||!this.hiddenRangeModel)return;if(!e||!e.collapsedRegions||e.lineCount!==t.getLineCount())return;e.provider!==W&&e.provider!==z||(this.foldingStateMemento=e);const n=e.collapsedRegions;if(this.hiddenRangeModel.applyMemento(n)){const e=this.getFoldingModel();e&&e.then(e=>{e&&e.applyMemento(n)}).then(void 0,j.e)}}onModelChanged(){this.localToDispose.clear();let e=this.editor.getModel();this._isEnabled&&e&&!e.isTooLargeForTokenization()&&(this.foldingModel=new m(e,this.foldingDecorationProvider),this.localToDispose.add(this.foldingModel),this.hiddenRangeModel=new E(this.foldingModel),this.localToDispose.add(this.hiddenRangeModel),this.localToDispose.add(this.hiddenRangeModel.onDidChange(e=>this.onHiddenRangesChanges(e))),this.updateScheduler=new s.a(200),this.cursorChangedScheduler=new s.d(()=>this.revealCursor(),200),this.localToDispose.add(this.cursorChangedScheduler),this.localToDispose.add(P.o.onDidChange(()=>this.onFoldingStrategyChanged())),this.localToDispose.add(this.editor.onDidChangeModelLanguageConfiguration(()=>this.onFoldingStrategyChanged())),this.localToDispose.add(this.editor.onDidChangeModelContent(()=>this.onModelContentChanged())),this.localToDispose.add(this.editor.onDidChangeCursorPosition(()=>this.onCursorPositionChanged())),this.localToDispose.add(this.editor.onMouseDown(e=>this.onEditorMouseDown(e))),this.localToDispose.add(this.editor.onMouseUp(e=>this.onEditorMouseUp(e))),this.localToDispose.add({dispose:()=>{this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),this.updateScheduler&&this.updateScheduler.cancel(),this.updateScheduler=null,this.foldingModel=null,this.foldingModelPromise=null,this.hiddenRangeModel=null,this.cursorChangedScheduler=null,this.foldingStateMemento=null,this.rangeProvider&&this.rangeProvider.dispose(),this.rangeProvider=null}}),this.onModelContentChanged())}onFoldingStrategyChanged(){this.rangeProvider&&this.rangeProvider.dispose(),this.rangeProvider=null,this.onModelContentChanged()}getRangeProvider(e){if(this.rangeProvider)return this.rangeProvider;if(this.rangeProvider=new A(e),this._useFoldingProviders&&this.foldingModel){let t=P.o.ordered(this.foldingModel.textModel);if(0===t.length&&this.foldingStateMemento&&this.foldingStateMemento.collapsedRegions){return this.rangeProvider=new U(e,this.foldingStateMemento.collapsedRegions,()=>{this.foldingStateMemento=null,this.onFoldingStrategyChanged()},3e4)}t.length>0&&(this.rangeProvider=new H(e,t))}return this.foldingStateMemento=null,this.rangeProvider}getFoldingModel(){return this.foldingModelPromise}onModelContentChanged(){this.updateScheduler&&(this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),this.foldingModelPromise=this.updateScheduler.trigger(()=>{const e=this.foldingModel;if(!e)return null;let t=this.foldingRegionPromise=Object(s.f)(t=>this.getRangeProvider(e.textModel).compute(t));return t.then(n=>{if(n&&t===this.foldingRegionPromise){let t=this.editor.getSelections(),i=t?t.map(e=>e.startLineNumber):[];e.update(n,i)}return e})}).then(void 0,e=>(Object(j.e)(e),null)))}onHiddenRangesChanges(e){if(this.hiddenRangeModel&&e.length){let e=this.editor.getSelections();e&&this.hiddenRangeModel.adjustSelections(e)&&this.editor.setSelections(e)}this.editor.setHiddenAreas(e)}onCursorPositionChanged(){this.hiddenRangeModel&&this.hiddenRangeModel.hasRanges()&&this.cursorChangedScheduler.schedule()}revealCursor(){const e=this.getFoldingModel();e&&e.then(e=>{if(e){let t=this.editor.getSelections();if(t&&t.length>0){let n=[];for(let i of t){let t=i.selectionStartLineNumber;this.hiddenRangeModel&&this.hiddenRangeModel.isHidden(t)&&n.push(...e.getAllRegionsAtLine(t,e=>e.isCollapsed&&t>e.startLineNumber))}n.length&&(e.toggleCollapseState(n),this.reveal(t[0].getPosition()))}}}).then(void 0,j.e)}onEditorMouseDown(e){if(this.mouseDownInfo=null,!this.hiddenRangeModel||!e.target||!e.target.range)return;if(!e.event.leftButton&&!e.event.middleButton)return;const t=e.target.range;let n=!1;switch(e.target.type){case 4:const i=e.target.detail,r=e.target.element.offsetLeft;if(i.offsetX-r<5)return;n=!0;break;case 7:if(this._unfoldOnClickAfterEndOfLine&&this.hiddenRangeModel.hasRanges()){if(!e.target.detail.isAfterLines)break}return;case 6:if(this.hiddenRangeModel.hasRanges()){let e=this.editor.getModel();if(e&&t.startColumn===e.getLineMaxColumn(t.startLineNumber))break}return;default:return}this.mouseDownInfo={lineNumber:t.startLineNumber,iconClicked:n}}onEditorMouseUp(e){const t=this.getFoldingModel();if(!t||!this.mouseDownInfo||!e.target)return;let n=this.mouseDownInfo.lineNumber,i=this.mouseDownInfo.iconClicked,r=e.target.range;if(r&&r.startLineNumber===n){if(i){if(4!==e.target.type)return}else{let e=this.editor.getModel();if(!e||r.startColumn!==e.getLineMaxColumn(n))return}t.then(t=>{if(t){let r=t.getRegionAtLine(n);if(r&&r.startLineNumber===n){let o=r.isCollapsed;if(i||o){let i=[],s=e.event.middleButton||e.event.shiftKey;if(s)for(const e of t.getRegionsInside(r))e.isCollapsed===o&&i.push(e);!o&&s&&0!==i.length||i.push(r),t.toggleCollapseState(i),this.reveal({lineNumber:n,column:1})}}}}).then(void 0,j.e)}}reveal(e){this.editor.revealPositionInCenterIfOutsideViewport(e,0)}};X.ID="editor.contrib.folding",X=G([Z(1,$.b)],X);class Q extends c.b{runEditorCommand(e,t,n){let i=X.get(t);if(!i)return;let r=i.getFoldingModel();return r?(this.reportTelemetry(e,t),r.then(e=>{if(e){this.invoke(i,e,t,n);const r=t.getSelection();r&&i.reveal(r.getStartPosition())}})):void 0}getSelectedLines(e){let t=e.getSelections();return t?t.map(e=>e.startLineNumber):[]}getLineNumbers(e,t){return e&&e.selectionLines?e.selectionLines.map(e=>e+1):this.getSelectedLines(t)}run(e,t){}}function ee(e){if(!r.k(e)){if(!r.i(e))return!1;const t=e;if(!r.k(t.levels)&&!r.h(t.levels))return!1;if(!r.k(t.direction)&&!r.j(t.direction))return!1;if(!(r.k(t.selectionLines)||r.e(t.selectionLines)&&t.selectionLines.every(r.h)))return!1}return!0}class te extends Q{getFoldingLevel(){return parseInt(this.id.substr(te.ID_PREFIX.length))}invoke(e,t,n){!function(e,t,n,i){let r=e.getRegionsInside(null,(e,r)=>r===t&&e.isCollapsed!==n&&!i.some(t=>e.containsLine(t)));e.toggleCollapseState(r)}(t,this.getFoldingLevel(),!0,this.getSelectedLines(n))}}te.ID_PREFIX="editor.foldLevel",te.ID=e=>te.ID_PREFIX+e,Object(c.m)(X.ID,X),Object(c.k)(class extends Q{constructor(){super({id:"editor.unfold",label:i.a("unfoldAction.label","Unfold"),alias:"Unfold",precondition:J,kbOpts:{kbExpr:L.a.editorTextFocus,primary:3161,mac:{primary:2649},weight:100},description:{description:"Unfold the content in the editor",args:[{name:"Unfold editor argument",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t\t* 'levels': Number of levels to unfold. If not set, defaults to 1.\n\t\t\t\t\t\t* 'direction': If 'up', unfold given number of levels up otherwise unfolds down.\n\t\t\t\t\t\t* 'selectionLines': The start lines (0-based) of the editor selections to apply the unfold action to. If not set, the active selection(s) will be used.\n\t\t\t\t\t\t",constraint:ee,schema:{type:"object",properties:{levels:{type:"number",default:1},direction:{type:"string",enum:["up","down"],default:"down"},selectionLines:{type:"array",items:{type:"number"}}}}}]}})}invoke(e,t,n,i){let r=i&&i.levels||1,o=this.getLineNumbers(i,n);i&&"up"===i.direction?b(t,!1,r,o):_(t,!1,r,o)}}),Object(c.k)(class extends Q{constructor(){super({id:"editor.unfoldRecursively",label:i.a("unFoldRecursivelyAction.label","Unfold Recursively"),alias:"Unfold Recursively",precondition:J,kbOpts:{kbExpr:L.a.editorTextFocus,primary:Object(a.a)(2089,2137),weight:100}})}invoke(e,t,n,i){_(t,!1,Number.MAX_VALUE,this.getSelectedLines(n))}}),Object(c.k)(class extends Q{constructor(){super({id:"editor.fold",label:i.a("foldAction.label","Fold"),alias:"Fold",precondition:J,kbOpts:{kbExpr:L.a.editorTextFocus,primary:3159,mac:{primary:2647},weight:100},description:{description:"Fold the content in the editor",args:[{name:"Fold editor argument",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t\t\t* 'levels': Number of levels to fold.\n\t\t\t\t\t\t\t* 'direction': If 'up', folds given number of levels up otherwise folds down.\n\t\t\t\t\t\t\t* 'selectionLines': The start lines (0-based) of the editor selections to apply the fold action to. If not set, the active selection(s) will be used.\n\t\t\t\t\t\t\tIf no levels or direction is set, folds the region at the locations or if already collapsed, the first uncollapsed parent instead.\n\t\t\t\t\t\t",constraint:ee,schema:{type:"object",properties:{levels:{type:"number"},direction:{type:"string",enum:["up","down"]},selectionLines:{type:"array",items:{type:"number"}}}}}]}})}invoke(e,t,n,i){let r=this.getLineNumbers(i,n);const o=i&&i.levels,s=i&&i.direction;"number"!=typeof o&&"string"!=typeof s?function(e,t,n){let i=[];for(let r of n){let n=e.getAllRegionsAtLine(r,e=>e.isCollapsed!==t);n.length>0&&i.push(n[0])}e.toggleCollapseState(i)}(t,!0,r):"up"===s?b(t,!0,o||1,r):_(t,!0,o||1,r)}}),Object(c.k)(class extends Q{constructor(){super({id:"editor.foldRecursively",label:i.a("foldRecursivelyAction.label","Fold Recursively"),alias:"Fold Recursively",precondition:J,kbOpts:{kbExpr:L.a.editorTextFocus,primary:Object(a.a)(2089,2135),weight:100}})}invoke(e,t,n){let i=this.getSelectedLines(n);_(t,!0,Number.MAX_VALUE,i)}}),Object(c.k)(class extends Q{constructor(){super({id:"editor.foldAll",label:i.a("foldAllAction.label","Fold All"),alias:"Fold All",precondition:J,kbOpts:{kbExpr:L.a.editorTextFocus,primary:Object(a.a)(2089,2069),weight:100}})}invoke(e,t,n){_(t,!0)}}),Object(c.k)(class extends Q{constructor(){super({id:"editor.unfoldAll",label:i.a("unfoldAllAction.label","Unfold All"),alias:"Unfold All",precondition:J,kbOpts:{kbExpr:L.a.editorTextFocus,primary:Object(a.a)(2089,2088),weight:100}})}invoke(e,t,n){_(t,!1)}}),Object(c.k)(class extends Q{constructor(){super({id:"editor.foldAllBlockComments",label:i.a("foldAllBlockComments.label","Fold All Block Comments"),alias:"Fold All Block Comments",precondition:J,kbOpts:{kbExpr:L.a.editorTextFocus,primary:Object(a.a)(2089,2133),weight:100}})}invoke(e,t,n){if(t.regions.hasTypes())y(t,P.n.Comment.value,!0);else{const e=n.getModel();if(!e)return;let i=O.a.getComments(e.getLanguageIdentifier().id);if(i&&i.blockCommentStartToken){v(t,new RegExp("^\\s*"+Object(o.v)(i.blockCommentStartToken)),!0)}}}}),Object(c.k)(class extends Q{constructor(){super({id:"editor.foldAllMarkerRegions",label:i.a("foldAllMarkerRegions.label","Fold All Regions"),alias:"Fold All Regions",precondition:J,kbOpts:{kbExpr:L.a.editorTextFocus,primary:Object(a.a)(2089,2077),weight:100}})}invoke(e,t,n){if(t.regions.hasTypes())y(t,P.n.Region.value,!0);else{const e=n.getModel();if(!e)return;let i=O.a.getFoldingRules(e.getLanguageIdentifier().id);if(i&&i.markers&&i.markers.start){v(t,new RegExp(i.markers.start),!0)}}}}),Object(c.k)(class extends Q{constructor(){super({id:"editor.unfoldAllMarkerRegions",label:i.a("unfoldAllMarkerRegions.label","Unfold All Regions"),alias:"Unfold All Regions",precondition:J,kbOpts:{kbExpr:L.a.editorTextFocus,primary:Object(a.a)(2089,2078),weight:100}})}invoke(e,t,n){if(t.regions.hasTypes())y(t,P.n.Region.value,!1);else{const e=n.getModel();if(!e)return;let i=O.a.getFoldingRules(e.getLanguageIdentifier().id);if(i&&i.markers&&i.markers.start){v(t,new RegExp(i.markers.start),!1)}}}}),Object(c.k)(class extends Q{constructor(){super({id:"editor.toggleFold",label:i.a("toggleFoldAction.label","Toggle Fold"),alias:"Toggle Fold",precondition:J,kbOpts:{kbExpr:L.a.editorTextFocus,primary:Object(a.a)(2089,2090),weight:100}})}invoke(e,t,n){!function(e,t,n){let i=[];for(let r of n){let n=e.getRegionAtLine(r);if(n){const r=!n.isCollapsed;if(i.push(n),t>1){let o=e.getRegionsInside(n,(e,n)=>e.isCollapsed!==r&&n<t);i.push(...o)}}}e.toggleCollapseState(i)}(t,1,this.getSelectedLines(n))}});for(let e=1;e<=7;e++)Object(c.n)(new te({id:te.ID(e),label:i.a("foldLevelAction.label","Fold Level {0}",e),alias:`Fold Level ${e}`,precondition:J,kbOpts:{kbExpr:L.a.editorTextFocus,primary:Object(a.a)(2089,2048|21+e),weight:100}}));const ne=Object(K.gc)("editor.foldBackground",{light:Object(K.sc)(K.O,.3),dark:Object(K.sc)(K.O,.3),hc:null},i.a("foldBackgroundBackground","Background color behind folded ranges. The color must not be opaque so as not to hide underlying decorations."),!0),ie=Object(K.gc)("editorGutter.foldingControlForeground",{dark:K.bb,light:K.bb,hc:K.bb},i.a("editorGutter.foldingControlForeground","Color of the folding control in the editor gutter."));Object(q.g)((e,t)=>{const n=e.getColor(ne);n&&t.addRule(`.monaco-editor .folded-background { background-color: ${n}; }`);const i=e.getColor(ie);i&&t.addRule(`\n\t\t.monaco-editor .cldr${S.cssSelector},\n\t\t.monaco-editor .cldr${k.cssSelector} {\n\t\t\tcolor: ${i} !important;\n\t\t}\n\t\t`)})},function(e,t,n){"use strict";n.r(t);var i=n(0),r=n(39),o=n(85),s=n(4),a=n(51),l=n(8),c=n(60),d=n(3);class u{constructor(e,t){this._selection=e,this._cursors=t,this._selectionId=null}getEditOperations(e,t){let n=function(e,t){t.sort((e,t)=>e.lineNumber===t.lineNumber?e.column-t.column:e.lineNumber-t.lineNumber);for(let e=t.length-2;e>=0;e--)t[e].lineNumber===t[e+1].lineNumber&&t.splice(e,1);let n=[],i=0,r=0,o=t.length;for(let s=1,a=e.getLineCount();s<=a;s++){let a=e.getLineContent(s),u=a.length+1,h=0;if(r<o&&t[r].lineNumber===s&&(h=t[r].column,r++,h===u))continue;if(0===a.length)continue;let f=l.J(a),g=0;if(-1===f)g=1;else{if(f===a.length-1)continue;g=f+2}g=Math.max(h,g),n[i++]=c.a.delete(new d.a(s,g,s,u))}return n}(e,this._cursors);for(let e=0,i=n.length;e<i;e++){let i=n[e];t.addEditOperation(i.range,i.text)}this._selectionId=t.trackSelection(this._selection)}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}}var h=n(116),f=n(10),g=n(22),p=n(7);class m{constructor(e,t){this._selection=e,this._isCopyingDown=t,this._selectionDirection=0,this._selectionId=null,this._startLineNumberDelta=0,this._endLineNumberDelta=0}getEditOperations(e,t){let n=this._selection;this._startLineNumberDelta=0,this._endLineNumberDelta=0,n.startLineNumber<n.endLineNumber&&1===n.endColumn&&(this._endLineNumberDelta=1,n=n.setEndPosition(n.endLineNumber-1,e.getLineMaxColumn(n.endLineNumber-1)));let i=[];for(let t=n.startLineNumber;t<=n.endLineNumber;t++)i.push(e.getLineContent(t));const r=i.join("\n");""===r&&this._isCopyingDown&&(this._startLineNumberDelta++,this._endLineNumberDelta++),this._isCopyingDown?t.addEditOperation(new d.a(n.startLineNumber,1,n.startLineNumber,1),r+"\n"):t.addEditOperation(new d.a(n.endLineNumber,e.getLineMaxColumn(n.endLineNumber),n.endLineNumber,e.getLineMaxColumn(n.endLineNumber)),"\n"+r),this._selectionId=t.trackSelection(n),this._selectionDirection=this._selection.getDirection()}computeCursorState(e,t){let n=t.getTrackedSelection(this._selectionId);if(0!==this._startLineNumberDelta||0!==this._endLineNumberDelta){let e=n.startLineNumber,t=n.startColumn,i=n.endLineNumber,r=n.endColumn;0!==this._startLineNumberDelta&&(e+=this._startLineNumberDelta,t=1),0!==this._endLineNumberDelta&&(i+=this._endLineNumberDelta,r=1),n=g.a.createWithDirection(e,t,i,r,this._selectionDirection)}return n}}var _=n(124),b=n(64),v=n(32),y=n(83);class w{constructor(e,t,n){this._selection=e,this._isMovingDown=t,this._autoIndent=n,this._selectionId=null,this._moveEndLineSelectionShrink=!1}getEditOperations(e,t){let n=e.getLineCount();if(this._isMovingDown&&this._selection.endLineNumber===n)return void(this._selectionId=t.trackSelection(this._selection));if(!this._isMovingDown&&1===this._selection.startLineNumber)return void(this._selectionId=t.trackSelection(this._selection));this._moveEndPositionDown=!1;let i=this._selection;i.startLineNumber<i.endLineNumber&&1===i.endColumn&&(this._moveEndPositionDown=!0,i=i.setEndPosition(i.endLineNumber-1,e.getLineMaxColumn(i.endLineNumber-1)));const{tabSize:r,indentSize:o,insertSpaces:s}=e.getOptions();let a=this.buildIndentConverter(r,o,s),c={getLineTokens:t=>e.getLineTokens(t),getLanguageIdentifier:()=>e.getLanguageIdentifier(),getLanguageIdAtPosition:(t,n)=>e.getLanguageIdAtPosition(t,n),getLineContent:null};if(i.startLineNumber===i.endLineNumber&&1===e.getLineMaxColumn(i.startLineNumber)){let n=i.startLineNumber,r=this._isMovingDown?n+1:n-1;1===e.getLineMaxColumn(r)?t.addEditOperation(new d.a(1,1,1,1),null):(t.addEditOperation(new d.a(n,1,n,1),e.getLineContent(r)),t.addEditOperation(new d.a(r,1,r,e.getLineMaxColumn(r)),null)),i=new g.a(r,1,r,1)}else{let n,o;if(this._isMovingDown){n=i.endLineNumber+1,o=e.getLineContent(n),t.addEditOperation(new d.a(n-1,e.getLineMaxColumn(n-1),n,e.getLineMaxColumn(n)),null);let u=o;if(this.shouldAutoIndent(e,i)){let h=this.matchEnterRule(e,a,r,n,i.startLineNumber-1);if(null!==h){let t=l.z(e.getLineContent(n)),i=h+y.b(t,r),a=y.a(i,r,s);u=a+this.trimLeft(o)}else{c.getLineContent=t=>t===i.startLineNumber?e.getLineContent(n):e.getLineContent(t);let t=v.a.getGoodIndentForLine(this._autoIndent,c,e.getLanguageIdAtPosition(n,1),i.startLineNumber,a);if(null!==t){let i=l.z(e.getLineContent(n)),a=y.b(t,r);if(a!==y.b(i,r)){let e=y.a(a,r,s);u=e+this.trimLeft(o)}}}t.addEditOperation(new d.a(i.startLineNumber,1,i.startLineNumber,1),u+"\n");let f=this.matchEnterRule(e,a,r,i.startLineNumber,i.startLineNumber,u);if(null!==f)0!==f&&this.getIndentEditsOfMovingBlock(e,t,i,r,s,f);else{c.getLineContent=t=>t===i.startLineNumber?u:t>=i.startLineNumber+1&&t<=i.endLineNumber+1?e.getLineContent(t-1):e.getLineContent(t);let o=v.a.getGoodIndentForLine(this._autoIndent,c,e.getLanguageIdAtPosition(n,1),i.startLineNumber+1,a);if(null!==o){const n=l.z(e.getLineContent(i.startLineNumber)),a=y.b(o,r),c=y.b(n,r);if(a!==c){const n=a-c;this.getIndentEditsOfMovingBlock(e,t,i,r,s,n)}}}}else t.addEditOperation(new d.a(i.startLineNumber,1,i.startLineNumber,1),u+"\n")}else if(n=i.startLineNumber-1,o=e.getLineContent(n),t.addEditOperation(new d.a(n,1,n+1,1),null),t.addEditOperation(new d.a(i.endLineNumber,e.getLineMaxColumn(i.endLineNumber),i.endLineNumber,e.getLineMaxColumn(i.endLineNumber)),"\n"+o),this.shouldAutoIndent(e,i)){c.getLineContent=t=>t===n?e.getLineContent(i.startLineNumber):e.getLineContent(t);let o=this.matchEnterRule(e,a,r,i.startLineNumber,i.startLineNumber-2);if(null!==o)0!==o&&this.getIndentEditsOfMovingBlock(e,t,i,r,s,o);else{let o=v.a.getGoodIndentForLine(this._autoIndent,c,e.getLanguageIdAtPosition(i.startLineNumber,1),n,a);if(null!==o){let n=l.z(e.getLineContent(i.startLineNumber)),a=y.b(o,r),c=y.b(n,r);if(a!==c){let n=a-c;this.getIndentEditsOfMovingBlock(e,t,i,r,s,n)}}}}}this._selectionId=t.trackSelection(i)}buildIndentConverter(e,t,n){return{shiftIndent:i=>_.a.shiftIndent(i,i.length+1,e,t,n),unshiftIndent:i=>_.a.unshiftIndent(i,i.length+1,e,t,n)}}matchEnterRule(e,t,n,i,r,o){let s=r;for(;s>=1;){let t;if(t=s===r&&void 0!==o?o:e.getLineContent(s),l.J(t)>=0)break;s--}if(s<1||i>e.getLineCount())return null;let a=e.getLineMaxColumn(s),c=v.a.getEnterAction(this._autoIndent,e,new d.a(s,a,s,a));if(c){let r=c.indentation;c.indentAction===b.a.None?r=c.indentation+c.appendText:c.indentAction===b.a.Indent?r=c.indentation+c.appendText:c.indentAction===b.a.IndentOutdent?r=c.indentation:c.indentAction===b.a.Outdent&&(r=t.unshiftIndent(c.indentation)+c.appendText);let o=e.getLineContent(i);if(this.trimLeft(o).indexOf(this.trimLeft(r))>=0){let o=l.z(e.getLineContent(i)),s=l.z(r),a=v.a.getIndentMetadata(e,i);return null!==a&&2&a&&(s=t.unshiftIndent(s)),y.b(s,n)-y.b(o,n)}}return null}trimLeft(e){return e.replace(/^\s+/,"")}shouldAutoIndent(e,t){if(this._autoIndent<4)return!1;if(!e.isCheapToTokenize(t.startLineNumber))return!1;let n=e.getLanguageIdAtPosition(t.startLineNumber,1);return n===e.getLanguageIdAtPosition(t.endLineNumber,1)&&null!==v.a.getIndentRulesSupport(n)}getIndentEditsOfMovingBlock(e,t,n,i,r,o){for(let s=n.startLineNumber;s<=n.endLineNumber;s++){let a=e.getLineContent(s),c=l.z(a),u=y.b(c,i)+o,h=y.a(u,i,r);h!==c&&(t.addEditOperation(new d.a(s,1,s,c.length+1),h),s===n.endLineNumber&&n.endColumn<=c.length+1&&""===h&&(this._moveEndLineSelectionShrink=!0))}}computeCursorState(e,t){let n=t.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(n=n.setEndPosition(n.endLineNumber+1,1)),this._moveEndLineSelectionShrink&&n.startLineNumber<n.endLineNumber&&(n=n.setEndPosition(n.endLineNumber,2)),n}}class C{constructor(e,t){this.selection=e,this.descending=t,this.selectionId=null}static getCollator(){return C._COLLATOR||(C._COLLATOR=new Intl.Collator),C._COLLATOR}getEditOperations(e,t){let n=function(e,t,n){let i=S(e,t,n);if(!i)return null;return c.a.replace(new d.a(i.startLineNumber,1,i.endLineNumber,e.getLineMaxColumn(i.endLineNumber)),i.after.join("\n"))}(e,this.selection,this.descending);n&&t.addEditOperation(n.range,n.text),this.selectionId=t.trackSelection(this.selection)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}static canRun(e,t,n){if(null===e)return!1;let i=S(e,t,n);if(!i)return!1;for(let e=0,t=i.before.length;e<t;e++)if(i.before[e]!==i.after[e])return!0;return!1}}function S(e,t,n){let i=t.startLineNumber,r=t.endLineNumber;if(1===t.endColumn&&r--,i>=r)return null;let o=[];for(let t=i;t<=r;t++)o.push(e.getLineContent(t));let s=o.slice(0);return s.sort(C.getCollator().compare),!0===n&&(s=s.reverse()),{startLineNumber:i,endLineNumber:r,before:o,after:s}}C._COLLATOR=null;var k=n(25);n.d(t,"DuplicateSelectionAction",(function(){return L})),n.d(t,"AbstractSortLinesAction",(function(){return D})),n.d(t,"SortLinesAscendingAction",(function(){return E})),n.d(t,"SortLinesDescendingAction",(function(){return T})),n.d(t,"TrimTrailingWhitespaceAction",(function(){return O})),n.d(t,"DeleteLinesAction",(function(){return N})),n.d(t,"IndentLinesAction",(function(){return I})),n.d(t,"InsertLineBeforeAction",(function(){return R})),n.d(t,"InsertLineAfterAction",(function(){return P})),n.d(t,"AbstractDeleteAllToBoundaryAction",(function(){return j})),n.d(t,"DeleteAllLeftAction",(function(){return F})),n.d(t,"DeleteAllRightAction",(function(){return B})),n.d(t,"JoinLinesAction",(function(){return W})),n.d(t,"TransposeAction",(function(){return H})),n.d(t,"AbstractCaseAction",(function(){return Y})),n.d(t,"UpperCaseAction",(function(){return V})),n.d(t,"LowerCaseAction",(function(){return z})),n.d(t,"TitleCaseAction",(function(){return U}));class x extends s.b{constructor(e,t){super(t),this.down=e}run(e,t){if(!t.hasModel())return;const n=t.getSelections().map((e,t)=>({selection:e,index:t,ignore:!1}));n.sort((e,t)=>d.a.compareRangesUsingStarts(e.selection,t.selection));let i=n[0];for(let e=1;e<n.length;e++){const t=n[e];i.selection.endLineNumber===t.selection.startLineNumber&&(i.index<t.index?t.ignore=!0:(i.ignore=!0,i=t))}const r=[];for(const e of n)e.ignore||r.push(new m(e.selection,this.down));t.pushUndoStop(),t.executeCommands(this.id,r),t.pushUndoStop()}}class L extends s.b{constructor(){super({id:"editor.action.duplicateSelection",label:i.a("duplicateSelection","Duplicate Selection"),alias:"Duplicate Selection",precondition:p.a.writable,menuOpts:{menuId:k.b.MenubarSelectionMenu,group:"2_line",title:i.a({key:"miDuplicateSelection",comment:["&& denotes a mnemonic"]},"&&Duplicate Selection"),order:5}})}run(e,t,n){if(!t.hasModel())return;const i=[],r=t.getSelections(),o=t.getModel();for(const e of r)if(e.isEmpty())i.push(new m(e,!0));else{const t=new g.a(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn);i.push(new a.c(t,o.getValueInRange(e)))}t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}}class M extends s.b{constructor(e,t){super(t),this.down=e}run(e,t){let n=[],i=t.getSelections()||[];const r=t.getOption(8);for(const e of i)n.push(new w(e,this.down,r));t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}}class D extends s.b{constructor(e,t){super(t),this.descending=e}run(e,t){const n=t.getSelections()||[];for(const e of n)if(!C.canRun(t.getModel(),e,this.descending))return;let i=[];for(let e=0,t=n.length;e<t;e++)i[e]=new C(n[e],this.descending);t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}}class E extends D{constructor(){super(!1,{id:"editor.action.sortLinesAscending",label:i.a("lines.sortAscending","Sort Lines Ascending"),alias:"Sort Lines Ascending",precondition:p.a.writable})}}class T extends D{constructor(){super(!0,{id:"editor.action.sortLinesDescending",label:i.a("lines.sortDescending","Sort Lines Descending"),alias:"Sort Lines Descending",precondition:p.a.writable})}}class O extends s.b{constructor(){super({id:O.ID,label:i.a("lines.trimTrailingWhitespace","Trim Trailing Whitespace"),alias:"Trim Trailing Whitespace",precondition:p.a.writable,kbOpts:{kbExpr:p.a.editorTextFocus,primary:Object(r.a)(2089,2102),weight:100}})}run(e,t,n){let i=[];"auto-save"===n.reason&&(i=(t.getSelections()||[]).map(e=>new f.a(e.positionLineNumber,e.positionColumn)));let r=t.getSelection();if(null===r)return;let o=new u(r,i);t.pushUndoStop(),t.executeCommands(this.id,[o]),t.pushUndoStop()}}O.ID="editor.action.trimTrailingWhitespace";class N extends s.b{constructor(){super({id:"editor.action.deleteLines",label:i.a("lines.delete","Delete Line"),alias:"Delete Line",precondition:p.a.writable,kbOpts:{kbExpr:p.a.textInputFocus,primary:3113,weight:100}})}run(e,t){if(!t.hasModel())return;let n=this._getLinesToRemove(t),i=t.getModel();if(1===i.getLineCount()&&1===i.getLineMaxColumn(1))return;let r=0,o=[],s=[];for(let e=0,t=n.length;e<t;e++){const t=n[e];let a=t.startLineNumber,l=t.endLineNumber,d=1,u=i.getLineMaxColumn(l);l<i.getLineCount()?(l+=1,u=1):a>1&&(a-=1,d=i.getLineMaxColumn(a)),o.push(c.a.replace(new g.a(a,d,l,u),"")),s.push(new g.a(a-r,t.positionColumn,a-r,t.positionColumn)),r+=t.endLineNumber-t.startLineNumber+1}t.pushUndoStop(),t.executeEdits(this.id,o,s),t.pushUndoStop()}_getLinesToRemove(e){let t=e.getSelections().map(e=>{let t=e.endLineNumber;return e.startLineNumber<e.endLineNumber&&1===e.endColumn&&(t-=1),{startLineNumber:e.startLineNumber,selectionStartColumn:e.selectionStartColumn,endLineNumber:t,positionColumn:e.positionColumn}});t.sort((e,t)=>e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber);let n=[],i=t[0];for(let e=1;e<t.length;e++)i.endLineNumber+1>=t[e].startLineNumber?i.endLineNumber=t[e].endLineNumber:(n.push(i),i=t[e]);return n.push(i),n}}class I extends s.b{constructor(){super({id:"editor.action.indentLines",label:i.a("lines.indent","Indent Line"),alias:"Indent Line",precondition:p.a.writable,kbOpts:{kbExpr:p.a.editorTextFocus,primary:2137,weight:100}})}run(e,t){const n=t._getViewModel();n&&(t.pushUndoStop(),t.executeCommands(this.id,h.a.indent(n.cursorConfig,t.getModel(),t.getSelections())),t.pushUndoStop())}}class A extends s.b{constructor(){super({id:"editor.action.outdentLines",label:i.a("lines.outdent","Outdent Line"),alias:"Outdent Line",precondition:p.a.writable,kbOpts:{kbExpr:p.a.editorTextFocus,primary:2135,weight:100}})}run(e,t){o.CoreEditingCommands.Outdent.runEditorCommand(e,t,null)}}class R extends s.b{constructor(){super({id:"editor.action.insertLineBefore",label:i.a("lines.insertBefore","Insert Line Above"),alias:"Insert Line Above",precondition:p.a.writable,kbOpts:{kbExpr:p.a.editorTextFocus,primary:3075,weight:100}})}run(e,t){const n=t._getViewModel();n&&(t.pushUndoStop(),t.executeCommands(this.id,h.a.lineInsertBefore(n.cursorConfig,t.getModel(),t.getSelections())))}}class P extends s.b{constructor(){super({id:"editor.action.insertLineAfter",label:i.a("lines.insertAfter","Insert Line Below"),alias:"Insert Line Below",precondition:p.a.writable,kbOpts:{kbExpr:p.a.editorTextFocus,primary:2051,weight:100}})}run(e,t){const n=t._getViewModel();n&&(t.pushUndoStop(),t.executeCommands(this.id,h.a.lineInsertAfter(n.cursorConfig,t.getModel(),t.getSelections())))}}class j extends s.b{run(e,t){if(!t.hasModel())return;const n=t.getSelection();let i=this._getRangesToDelete(t),r=[];for(let e=0,t=i.length-1;e<t;e++){let t=i[e],n=i[e+1];null===d.a.intersectRanges(t,n)?r.push(t):i[e+1]=d.a.plusRange(t,n)}r.push(i[i.length-1]);let o=this._getEndCursorState(n,r),s=r.map(e=>c.a.replace(e,""));t.pushUndoStop(),t.executeEdits(this.id,s,o),t.pushUndoStop()}}class F extends j{constructor(){super({id:"deleteAllLeft",label:i.a("lines.deleteAllLeft","Delete All Left"),alias:"Delete All Left",precondition:p.a.writable,kbOpts:{kbExpr:p.a.textInputFocus,primary:0,mac:{primary:2049},weight:100}})}_getEndCursorState(e,t){let n=null,i=[],r=0;return t.forEach(t=>{let o;if(1===t.endColumn&&r>0){let e=t.startLineNumber-r;o=new g.a(e,t.startColumn,e,t.startColumn)}else o=new g.a(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn);r+=t.endLineNumber-t.startLineNumber,t.intersectRanges(e)?n=o:i.push(o)}),n&&i.unshift(n),i}_getRangesToDelete(e){let t=e.getSelections();if(null===t)return[];let n=t,i=e.getModel();return null===i?[]:(n.sort(d.a.compareRangesUsingStarts),n=n.map(e=>{if(e.isEmpty()){if(1===e.startColumn){let t=Math.max(1,e.startLineNumber-1),n=1===e.startLineNumber?1:i.getLineContent(t).length+1;return new d.a(t,n,e.startLineNumber,1)}return new d.a(e.startLineNumber,1,e.startLineNumber,e.startColumn)}return new d.a(e.startLineNumber,1,e.endLineNumber,e.endColumn)}))}}class B extends j{constructor(){super({id:"deleteAllRight",label:i.a("lines.deleteAllRight","Delete All Right"),alias:"Delete All Right",precondition:p.a.writable,kbOpts:{kbExpr:p.a.textInputFocus,primary:0,mac:{primary:297,secondary:[2068]},weight:100}})}_getEndCursorState(e,t){let n=null,i=[];for(let r=0,o=t.length,s=0;r<o;r++){let o=t[r],a=new g.a(o.startLineNumber-s,o.startColumn,o.startLineNumber-s,o.startColumn);o.intersectRanges(e)?n=a:i.push(a)}return n&&i.unshift(n),i}_getRangesToDelete(e){let t=e.getModel();if(null===t)return[];let n=e.getSelections();if(null===n)return[];let i=n.map(e=>{if(e.isEmpty()){const n=t.getLineMaxColumn(e.startLineNumber);return e.startColumn===n?new d.a(e.startLineNumber,e.startColumn,e.startLineNumber+1,1):new d.a(e.startLineNumber,e.startColumn,e.startLineNumber,n)}return e});return i.sort(d.a.compareRangesUsingStarts),i}}class W extends s.b{constructor(){super({id:"editor.action.joinLines",label:i.a("lines.joinLines","Join Lines"),alias:"Join Lines",precondition:p.a.writable,kbOpts:{kbExpr:p.a.editorTextFocus,primary:0,mac:{primary:296},weight:100}})}run(e,t){let n=t.getSelections();if(null===n)return;let i=t.getSelection();if(null===i)return;n.sort(d.a.compareRangesUsingStarts);let r=[],o=n.reduce((e,t)=>e.isEmpty()?e.endLineNumber===t.startLineNumber?(i.equalsSelection(e)&&(i=t),t):t.startLineNumber>e.endLineNumber+1?(r.push(e),t):new g.a(e.startLineNumber,e.startColumn,t.endLineNumber,t.endColumn):t.startLineNumber>e.endLineNumber?(r.push(e),t):new g.a(e.startLineNumber,e.startColumn,t.endLineNumber,t.endColumn));r.push(o);let s=t.getModel();if(null===s)return;let a=[],l=[],u=i,h=0;for(let e=0,t=r.length;e<t;e++){let t,n,o=r[e],f=o.startLineNumber,p=1,m=0,_=s.getLineContent(o.endLineNumber).length-o.endColumn;if(o.isEmpty()||o.startLineNumber===o.endLineNumber){let e=o.getStartPosition();e.lineNumber<s.getLineCount()?(t=f+1,n=s.getLineMaxColumn(t)):(t=e.lineNumber,n=s.getLineMaxColumn(e.lineNumber))}else t=o.endLineNumber,n=s.getLineMaxColumn(t);let b=s.getLineContent(f);for(let e=f+1;e<=t;e++){let t=s.getLineContent(e),n=s.getLineFirstNonWhitespaceColumn(e);if(n>=1){let e=!0;""===b&&(e=!1),!e||" "!==b.charAt(b.length-1)&&"\t"!==b.charAt(b.length-1)||(e=!1,b=b.replace(/[\s\uFEFF\xA0]+$/g," "));let i=t.substr(n-1);b+=(e?" ":"")+i,m=e?i.length+1:i.length}else m=0}let v=new d.a(f,p,t,n);if(!v.isEmpty()){let e;o.isEmpty()?(a.push(c.a.replace(v,b)),e=new g.a(v.startLineNumber-h,b.length-m+1,f-h,b.length-m+1)):o.startLineNumber===o.endLineNumber?(a.push(c.a.replace(v,b)),e=new g.a(o.startLineNumber-h,o.startColumn,o.endLineNumber-h,o.endColumn)):(a.push(c.a.replace(v,b)),e=new g.a(o.startLineNumber-h,o.startColumn,o.startLineNumber-h,b.length-_)),null!==d.a.intersectRanges(v,i)?u=e:l.push(e)}h+=v.endLineNumber-v.startLineNumber}l.unshift(u),t.pushUndoStop(),t.executeEdits(this.id,a,l),t.pushUndoStop()}}class H extends s.b{constructor(){super({id:"editor.action.transpose",label:i.a("editor.transpose","Transpose characters around the cursor"),alias:"Transpose characters around the cursor",precondition:p.a.writable})}run(e,t){let n=t.getSelections();if(null===n)return;let i=t.getModel();if(null===i)return;let r=[];for(let e=0,t=n.length;e<t;e++){let t=n[e];if(!t.isEmpty())continue;let o=t.getStartPosition(),s=i.getLineMaxColumn(o.lineNumber);if(o.column>=s){if(o.lineNumber===i.getLineCount())continue;let e=new d.a(o.lineNumber,Math.max(1,o.column-1),o.lineNumber+1,1),t=i.getValueInRange(e).split("").reverse().join("");r.push(new a.a(new g.a(o.lineNumber,Math.max(1,o.column-1),o.lineNumber+1,1),t))}else{let e=new d.a(o.lineNumber,Math.max(1,o.column-1),o.lineNumber,o.column+1),t=i.getValueInRange(e).split("").reverse().join("");r.push(new a.b(e,t,new g.a(o.lineNumber,o.column+1,o.lineNumber,o.column+1)))}}t.pushUndoStop(),t.executeCommands(this.id,r),t.pushUndoStop()}}class Y extends s.b{run(e,t){let n=t.getSelections();if(null===n)return;let i=t.getModel();if(null===i)return;let r=t.getOption(105),o=[];for(let e=0,s=n.length;e<s;e++){let s=n[e];if(s.isEmpty()){let e=s.getStartPosition();const n=t.getConfiguredWordAtPosition(e);if(!n)continue;let l=new d.a(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),c=i.getValueInRange(l);o.push(new a.b(l,this._modifyText(c,r),new g.a(e.lineNumber,e.column,e.lineNumber,e.column)))}else{let e=i.getValueInRange(s);o.push(new a.b(s,this._modifyText(e,r),s))}}t.pushUndoStop(),t.executeCommands(this.id,o),t.pushUndoStop()}}class V extends Y{constructor(){super({id:"editor.action.transformToUppercase",label:i.a("editor.transformToUppercase","Transform to Uppercase"),alias:"Transform to Uppercase",precondition:p.a.writable})}_modifyText(e,t){return e.toLocaleUpperCase()}}class z extends Y{constructor(){super({id:"editor.action.transformToLowercase",label:i.a("editor.transformToLowercase","Transform to Lowercase"),alias:"Transform to Lowercase",precondition:p.a.writable})}_modifyText(e,t){return e.toLocaleLowerCase()}}class U extends Y{constructor(){super({id:"editor.action.transformToTitlecase",label:i.a("editor.transformToTitlecase","Transform to Title Case"),alias:"Transform to Title Case",precondition:p.a.writable})}_modifyText(e,t){const n=("\r\n\t "+t).split("");let i="",r=!0;for(let t=0;t<e.length;t++){let o=e[t];n.indexOf(o)>=0?(r=!0,i+=o):r?(r=!1,i+=o.toLocaleUpperCase()):i+=o.toLocaleLowerCase()}return i}}Object(s.k)(class extends x{constructor(){super(!1,{id:"editor.action.copyLinesUpAction",label:i.a("lines.copyUp","Copy Line Up"),alias:"Copy Line Up",precondition:p.a.writable,kbOpts:{kbExpr:p.a.editorTextFocus,primary:1552,linux:{primary:3600},weight:100},menuOpts:{menuId:k.b.MenubarSelectionMenu,group:"2_line",title:i.a({key:"miCopyLinesUp",comment:["&& denotes a mnemonic"]},"&&Copy Line Up"),order:1}})}}),Object(s.k)(class extends x{constructor(){super(!0,{id:"editor.action.copyLinesDownAction",label:i.a("lines.copyDown","Copy Line Down"),alias:"Copy Line Down",precondition:p.a.writable,kbOpts:{kbExpr:p.a.editorTextFocus,primary:1554,linux:{primary:3602},weight:100},menuOpts:{menuId:k.b.MenubarSelectionMenu,group:"2_line",title:i.a({key:"miCopyLinesDown",comment:["&& denotes a mnemonic"]},"Co&&py Line Down"),order:2}})}}),Object(s.k)(L),Object(s.k)(class extends M{constructor(){super(!1,{id:"editor.action.moveLinesUpAction",label:i.a("lines.moveUp","Move Line Up"),alias:"Move Line Up",precondition:p.a.writable,kbOpts:{kbExpr:p.a.editorTextFocus,primary:528,linux:{primary:528},weight:100},menuOpts:{menuId:k.b.MenubarSelectionMenu,group:"2_line",title:i.a({key:"miMoveLinesUp",comment:["&& denotes a mnemonic"]},"Mo&&ve Line Up"),order:3}})}}),Object(s.k)(class extends M{constructor(){super(!0,{id:"editor.action.moveLinesDownAction",label:i.a("lines.moveDown","Move Line Down"),alias:"Move Line Down",precondition:p.a.writable,kbOpts:{kbExpr:p.a.editorTextFocus,primary:530,linux:{primary:530},weight:100},menuOpts:{menuId:k.b.MenubarSelectionMenu,group:"2_line",title:i.a({key:"miMoveLinesDown",comment:["&& denotes a mnemonic"]},"Move &&Line Down"),order:4}})}}),Object(s.k)(E),Object(s.k)(T),Object(s.k)(O),Object(s.k)(N),Object(s.k)(I),Object(s.k)(A),Object(s.k)(R),Object(s.k)(P),Object(s.k)(F),Object(s.k)(B),Object(s.k)(W),Object(s.k)(H),Object(s.k)(V),Object(s.k)(z),Object(s.k)(U)},function(e,t,n){"use strict";n.r(t);var i,r=n(46),o=n(127),s=n(44),a=n(33),l=n(0),c=n(26),d=n(2),u=n(19),h=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};function f(e){const t=e;return Array.isArray(t.items)}!function(e){e[e.NO_ACTION=0]="NO_ACTION",e[e.CLOSE_PICKER=1]="CLOSE_PICKER",e[e.REFRESH_PICKER=2]="REFRESH_PICKER",e[e.REMOVE_ITEM=3]="REMOVE_ITEM"}(i||(i={}));class g extends d.a{constructor(e,t){super(),this.prefix=e,this.options=t}provide(e,t){var n;const r=new d.b;e.canAcceptInBackground=!!(null===(n=this.options)||void 0===n?void 0:n.canAcceptInBackground),e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;let o=void 0;const s=r.add(new d.d),a=()=>h(this,void 0,void 0,(function*(){const n=s.value=new d.b;null==o||o.dispose(!0),e.busy=!1;const i=(o=new c.b(t)).token,r=e.value.substr(this.prefix.length).trim(),a=this.getPicks(r,n,i),l=(t,n)=>{var i;let o,s=void 0;if(f(t)?(o=t.items,s=t.active):o=t,0===o.length){if(n)return!1;r.length>0&&(null===(i=this.options)||void 0===i?void 0:i.noResultsPick)&&(o=[this.options.noResultsPick])}return e.items=o,s&&(e.activeItems=[s]),!0};if(null===a);else if(function(e){const t=e;return!!t.picks&&t.additionalPicks instanceof Promise}(a)){let t=!1,n=!1;yield Promise.all([(()=>h(this,void 0,void 0,(function*(){yield Object(u.l)(g.FAST_PICKS_RACE_DELAY),i.isCancellationRequested||n||(t=l(a.picks,!0))})))(),(()=>h(this,void 0,void 0,(function*(){e.busy=!0;try{const r=yield a.additionalPicks;if(i.isCancellationRequested)return;let o,s,c=void 0;f(a.picks)?(o=a.picks.items,c=a.picks.active):o=a.picks;let d=void 0;if(f(r)?(s=r.items,d=r.active):s=r,s.length>0||!t){let t=void 0;if(!c&&!d){const n=e.activeItems[0];n&&-1!==o.indexOf(n)&&(t=n)}l({items:[...o,...s],active:c||d||t})}}finally{i.isCancellationRequested||(e.busy=!1),n=!0}})))()])}else if(a instanceof Promise){e.busy=!0;try{const t=yield a;if(i.isCancellationRequested)return;l(t)}finally{i.isCancellationRequested||(e.busy=!1)}}else l(a)}));return r.add(e.onDidChangeValue(()=>a())),a(),r.add(e.onDidAccept(t=>{const[n]=e.selectedItems;"function"==typeof(null==n?void 0:n.accept)&&(t.inBackground||e.hide(),n.accept(e.keyMods,t))})),r.add(e.onDidTriggerItemButton(({button:n,item:r})=>h(this,void 0,void 0,(function*(){var o,s;if("function"==typeof r.trigger){const l=null!==(s=null===(o=r.buttons)||void 0===o?void 0:o.indexOf(n))&&void 0!==s?s:-1;if(l>=0){const n=r.trigger(l,e.keyMods),o="number"==typeof n?n:yield n;if(t.isCancellationRequested)return;switch(o){case i.NO_ACTION:break;case i.CLOSE_PICKER:e.hide();break;case i.REFRESH_PICKER:a();break;case i.REMOVE_ITEM:const t=e.items.indexOf(r);if(-1!==t){const n=e.items.slice();n.splice(t,1),e.items=n}}}}})))),r}}g.FAST_PICKS_RACE_DELAY=200;var p=n(61),m=n(20),_=n(65),b=n(88),v=n(43),y=n(17),w=n(41),C=n(28),S=n(108),k=n(15),x=n(40),L=n(14);function M(e,t){return t&&(e.stack||e.stacktrace)?l.a("stackTrace.format","{0}: {1}",E(e),D(e.stack)||D(e.stacktrace)):E(e)}function D(e){return Array.isArray(e)?e.join("\n"):e}function E(e){return"string"==typeof e.code&&"number"==typeof e.errno&&"string"==typeof e.syscall?l.a("nodeExceptionMessage","A system error occurred ({0})",e.message):e.message||l.a("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}function T(e=null,t=!1){if(!e)return l.a("error.defaultMessage","An unknown error occurred. Please consult the log for more details.");if(Array.isArray(e)){const n=L.d(e),i=T(n[0],t);return n.length>1?l.a("error.moreErrors","{0} ({1} errors in total)",i,n.length):i}if(m.j(e))return e;if(e.detail){const n=e.detail;if(n.error)return M(n.error,t);if(n.exception)return M(n.exception,t)}return e.stack?M(e,t):e.message?e.message:l.a("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}var O=n(186),N=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},I=function(e,t){return function(n,i){t(n,i,e)}},A=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};let R=class e extends g{constructor(t,n,i,r,o,s){super(e.PREFIX,t),this.options=t,this.instantiationService=n,this.keybindingService=i,this.commandService=r,this.telemetryService=o,this.notificationService=s,this.commandsHistory=this._register(this.instantiationService.createInstance(P))}getPicks(t,n,i){return A(this,void 0,void 0,(function*(){const r=yield this.getCommandPicks(n,i);if(i.isCancellationRequested)return[];const o=[];for(const n of r){const i=Object(m.n)(e.WORD_FILTER(t,n.label)),r=n.commandAlias?Object(m.n)(e.WORD_FILTER(t,n.commandAlias)):void 0;i||r?(n.highlights={label:i,detail:this.options.showAlias?r:void 0},o.push(n)):t===n.commandId&&o.push(n)}const s=new Map;for(const e of o){const t=s.get(e.label);t?(e.description=e.commandId,t.description=t.commandId):s.set(e.label,e)}o.sort((e,t)=>{const n=this.commandsHistory.peek(e.commandId),i=this.commandsHistory.peek(t.commandId);return n&&i?n>i?-1:1:n?-1:i?1:e.label.localeCompare(t.label)});const a=[];let c=!1;for(let e=0;e<o.length;e++){const t=o[e],n=this.keybindingService.lookupKeybinding(t.commandId),i=n?Object(l.a)("commandPickAriaLabelWithKeybinding","{0}, {1}",t.label,n.getAriaLabel()):t.label;0===e&&this.commandsHistory.peek(t.commandId)&&(a.push({type:"separator",label:Object(l.a)("recentlyUsed","recently used")}),c=!0),0!==e&&c&&!this.commandsHistory.peek(t.commandId)&&(a.push({type:"separator",label:Object(l.a)("morecCommands","other commands")}),c=!1),a.push(Object.assign(Object.assign({},t),{ariaLabel:i,detail:this.options.showAlias&&t.commandAlias!==t.label?t.commandAlias:void 0,keybinding:n,accept:()=>A(this,void 0,void 0,(function*(){this.commandsHistory.push(t.commandId),this.telemetryService.publicLog2("workbenchActionExecuted",{id:t.commandId,from:"quick open"});try{yield this.commandService.executeCommand(t.commandId)}catch(e){Object(k.d)(e)||this.notificationService.error(Object(l.a)("canNotRun","Command '{0}' resulted in an error ({1})",t.label,T(e)))}}))}))}return a}))}};R.PREFIX=">",R.WORD_FILTER=Object(p.j)(p.h,p.i,p.f),R=N([I(1,y.a),I(2,w.a),I(3,C.b),I(4,S.a),I(5,x.a)],R);let P=class e extends d.a{constructor(t,n,i){super(),this.storageService=t,this.configurationService=n,this.configuredCommandsHistoryLength=0,i.registerStorageKey({key:e.PREF_KEY_CACHE,version:1}),i.registerStorageKey({key:e.PREF_KEY_COUNTER,version:1}),this.updateConfiguration(),this.load(),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration(()=>this.updateConfiguration()))}updateConfiguration(){this.configuredCommandsHistoryLength=e.getConfiguredCommandHistoryLength(this.configurationService),e.cache&&e.cache.limit!==this.configuredCommandsHistoryLength&&(e.cache.limit=this.configuredCommandsHistoryLength,e.saveState(this.storageService))}load(){const t=this.storageService.get(e.PREF_KEY_CACHE,0);let n;if(t)try{n=JSON.parse(t)}catch(e){}const i=e.cache=new _.a(this.configuredCommandsHistoryLength,1);if(n){let e;(e=n.usesLRU?n.entries:n.entries.sort((e,t)=>e.value-t.value)).forEach(e=>i.set(e.key,e.value))}e.counter=this.storageService.getNumber(e.PREF_KEY_COUNTER,0,e.counter)}push(t){e.cache&&(e.cache.set(t,e.counter++),e.saveState(this.storageService))}peek(t){var n;return null===(n=e.cache)||void 0===n?void 0:n.peek(t)}static saveState(t){if(!e.cache)return;const n={usesLRU:!0,entries:[]};e.cache.forEach((e,t)=>n.entries.push({key:t,value:e})),t.store(e.PREF_KEY_CACHE,JSON.stringify(n),0),t.store(e.PREF_KEY_COUNTER,e.counter,0)}static getConfiguredCommandHistoryLength(t){var n,i;const r=null===(i=null===(n=t.getValue().workbench)||void 0===n?void 0:n.commandPalette)||void 0===i?void 0:i.history;return"number"==typeof r?r:e.DEFAULT_COMMANDS_HISTORY_LENGTH}};P.DEFAULT_COMMANDS_HISTORY_LENGTH=50,P.PREF_KEY_CACHE="commandPalette.mru.cache",P.PREF_KEY_COUNTER="commandPalette.mru.counter",P.counter=1,P=N([I(0,b.a),I(1,v.a),I(2,O.a)],P);var j=n(16);class F extends R{constructor(e,t,n,i,r,o){super(e,t,n,i,r,o)}getCodeEditorCommandPicks(){const e=this.activeTextEditorControl;if(!e)return[];const t=[];for(const n of e.getSupportedActions())t.push({commandId:n.id,commandAlias:n.alias,label:Object(j.h)(n.label)||n.id});return t}}var B=n(4),W=n(7),H=n(97);n.d(t,"StandaloneCommandsQuickAccessProvider",(function(){return z})),n.d(t,"GotoLineAction",(function(){return U}));var Y=function(e,t){return function(n,i){t(n,i,e)}},V=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};let z=class extends F{constructor(e,t,n,i,r,o){super({showAlias:!1},e,n,i,r,o),this.codeEditorService=t}get activeTextEditorControl(){return Object(m.n)(this.codeEditorService.getFocusedCodeEditor())}getCommandPicks(){return V(this,void 0,void 0,(function*(){return this.getCodeEditorCommandPicks()}))}};z=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}([Y(0,y.a),Y(1,a.a),Y(2,w.a),Y(3,C.b),Y(4,S.a),Y(5,x.a)],z),r.a.as(o.b.Quickaccess).registerQuickAccessProvider({ctor:z,prefix:z.PREFIX,helpEntries:[{description:s.d.quickCommandHelp,needsEditor:!0}]});class U extends B.b{constructor(){super({id:"editor.action.quickCommand",label:s.d.quickCommandActionLabel,alias:"Command Palette",precondition:void 0,kbOpts:{kbExpr:W.a.focus,primary:59,weight:100},contextMenuOpts:{group:"z_commands",order:1}})}run(e){e.get(H.a).quickAccess.show(z.PREFIX)}}Object(B.k)(U)},function(e,t,n){"use strict";n.r(t);var i=n(19),r=n(15),o=n(2),s=n(76),a=n(4),l=n(11),c=n(14),d=n(26),u=n(24),h=n(54);class f{constructor(){this.lenses=[],this._disposables=new o.b}dispose(){this._disposables.dispose()}add(e,t){this._disposables.add(e);for(const n of e.lenses)this.lenses.push({symbol:n,provider:t})}}function g(e,t){const n=l.b.ordered(e),i=new Map,o=new f,s=n.map((n,s)=>(i.set(n,s),Promise.resolve(n.provideCodeLenses(e,t)).then(e=>e&&o.add(e,n)).catch(r.f)));return Promise.all(s).then(()=>(o.lenses=Object(c.p)(o.lenses,(e,t)=>e.symbol.range.startLineNumber<t.symbol.range.startLineNumber?-1:e.symbol.range.startLineNumber>t.symbol.range.startLineNumber?1:i.get(e.provider)<i.get(t.provider)?-1:i.get(e.provider)>i.get(t.provider)?1:e.symbol.range.startColumn<t.symbol.range.startColumn?-1:e.symbol.range.startColumn>t.symbol.range.startColumn?1:0),o))}Object(a.o)("_executeCodeLensProvider",(function(e,t){let{resource:n,itemResolveCount:i}=t;if(!(n instanceof u.a))throw Object(r.b)();const s=e.get(h.a).getModel(n);if(!s)throw Object(r.b)();const a=[],l=new o.b;return g(s,d.a.None).then(e=>{l.add(e);let t=[];for(const n of e.lenses)void 0===i||Boolean(n.symbol.command)?a.push(n.symbol):i-- >0&&n.provider.resolveCodeLens&&t.push(Promise.resolve(n.provider.resolveCodeLens(s,n.symbol,d.a.None)).then(e=>a.push(e||n.symbol)));return Promise.all(t)}).then(()=>a).finally(()=>{setTimeout(()=>l.dispose(),100)})}));n(579);var p=n(16),m=n(8),_=n(3),b=n(29),v=n(47),y=n(5),w=n(18);class C{constructor(e,t){this.afterLineNumber=e,this._onHeight=t,this.heightInLines=1,this.suppressMouseDown=!0,this.domNode=document.createElement("div")}onComputedHeight(e){void 0===this._lastHeight?this._lastHeight=e:this._lastHeight!==e&&(this._lastHeight=e,this._onHeight())}}class S{constructor(e,t,n){this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this._commands=new Map,this._isEmpty=!0,this._editor=e,this._id=`codelens.widget-${S._idPool++}`,this.updatePosition(n),this._domNode=document.createElement("span"),this._domNode.className=`codelens-decoration ${t}`}withCommands(e,t){this._commands.clear();let n="",i=!1;for(let t=0;t<e.length;t++){const r=e[t];if(r&&(i=!0,r.command)){const i=Object(p.f)(Object(m.u)(r.command.title));r.command.id?(n+=`<a id=${t}>${i}</a>`,this._commands.set(String(t),r.command)):n+=`<span>${i}</span>`,t+1<e.length&&(n+="<span> | </span>")}}i?(n||(n=" "),this._domNode.innerHTML=n,this._isEmpty&&t&&this._domNode.classList.add("fadein"),this._isEmpty=!1):this._domNode.innerHTML="<span>no commands</span>"}getCommand(e){return e.parentElement===this._domNode?this._commands.get(e.id):void 0}getId(){return this._id}getDomNode(){return this._domNode}updatePosition(e){const t=this._editor.getModel().getLineFirstNonWhitespaceColumn(e);this._widgetPosition={position:{lineNumber:e,column:t},preference:[1]}}getPosition(){return this._widgetPosition||null}}S._idPool=0;class k{constructor(){this._removeDecorations=[],this._addDecorations=[],this._addDecorationsCallbacks=[]}addDecoration(e,t){this._addDecorations.push(e),this._addDecorationsCallbacks.push(t)}removeDecoration(e){this._removeDecorations.push(e)}commit(e){let t=e.deltaDecorations(this._removeDecorations,this._addDecorations);for(let e=0,n=t.length;e<n;e++)this._addDecorationsCallbacks[e](t[e])}}class x{constructor(e,t,n,i,r,o){let s;this._isDisposed=!1,this._editor=t,this._className=n,this._data=e,this._decorationIds=[];let a=[];this._data.forEach((e,t)=>{e.symbol.command&&a.push(e.symbol),i.addDecoration({range:e.symbol.range,options:b.a.EMPTY},e=>this._decorationIds[t]=e),s=s?_.a.plusRange(s,e.symbol.range):_.a.lift(e.symbol.range)}),this._viewZone=new C(s.startLineNumber-1,o),this._viewZoneId=r.addZone(this._viewZone),a.length>0&&(this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(a,!1))}_createContentWidgetIfNecessary(){this._contentWidget||(this._contentWidget=new S(this._editor,this._className,this._viewZone.afterLineNumber+1),this._editor.addContentWidget(this._contentWidget))}dispose(e,t){this._decorationIds.forEach(e.removeDecoration,e),this._decorationIds=[],t&&t.removeZone(this._viewZoneId),this._contentWidget&&(this._editor.removeContentWidget(this._contentWidget),this._contentWidget=void 0),this._isDisposed=!0}isDisposed(){return this._isDisposed}isValid(){return this._decorationIds.some((e,t)=>{const n=this._editor.getModel().getDecorationRange(e),i=this._data[t].symbol;return!(!n||_.a.isEmpty(i.range)!==n.isEmpty())})}updateCodeLensSymbols(e,t){this._decorationIds.forEach(t.removeDecoration,t),this._decorationIds=[],this._data=e,this._data.forEach((e,n)=>{t.addDecoration({range:e.symbol.range,options:b.a.EMPTY},e=>this._decorationIds[n]=e)})}computeIfNecessary(e){if(!this._viewZone.domNode.hasAttribute("monaco-visible-view-zone"))return null;for(let t=0;t<this._decorationIds.length;t++){const n=e.getDecorationRange(this._decorationIds[t]);n&&(this._data[t].symbol.range=n)}return this._data}updateCommands(e){this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(e,!0);for(let t=0;t<this._data.length;t++){const n=e[t];if(n){const{symbol:e}=this._data[t];e.command=n.command||e.command}}}getCommand(e){var t;return null===(t=this._contentWidget)||void 0===t?void 0:t.getCommand(e)}getLineNumber(){const e=this._editor.getModel().getDecorationRange(this._decorationIds[0]);return e?e.startLineNumber:-1}update(e){if(this.isValid()){const t=this._editor.getModel().getDecorationRange(this._decorationIds[0]);t&&(this._viewZone.afterLineNumber=t.startLineNumber-1,e.layoutZone(this._viewZoneId),this._contentWidget&&(this._contentWidget.updatePosition(t.startLineNumber),this._editor.layoutContentWidget(this._contentWidget)))}}getItems(){return this._data}}Object(w.g)((e,t)=>{const n=e.getColor(v.e);n&&(t.addRule(`.monaco-editor .codelens-decoration { color: ${n}; }`),t.addRule(`.monaco-editor .codelens-decoration .codicon { color: ${n}; }`));const i=e.getColor(y.r);i&&(t.addRule(`.monaco-editor .codelens-decoration > a:hover { color: ${i} !important; }`),t.addRule(`.monaco-editor .codelens-decoration > a:hover .codicon { color: ${i} !important; }`))});var L=n(28),M=n(40),D=n(17),E=n(103),T=n(65),O=n(88),N=n(126),I=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},A=function(e,t){return function(n,i){t(n,i,e)}};const R=Object(D.c)("ICodeLensCache");class P{constructor(e,t){this.lineCount=e,this.data=t}}let j=class{constructor(e){this._fakeProvider=new class{provideCodeLenses(){throw new Error("not supported")}},this._cache=new T.a(20,.75);Object(i.k)(()=>e.remove("codelens/cache",1));const t="codelens/cache2",n=e.get(t,1,"{}");this._deserialize(n),Object(N.a)(e.onWillSaveState)(n=>{n.reason===O.c.SHUTDOWN&&e.store(t,this._serialize(),1)})}put(e,t){const n=t.lenses.map(e=>{var t;return{range:e.symbol.range,command:e.symbol.command&&{id:"",title:null===(t=e.symbol.command)||void 0===t?void 0:t.title}}}),i=new f;i.add({lenses:n,dispose:()=>{}},this._fakeProvider);const r=new P(e.getLineCount(),i);this._cache.set(e.uri.toString(),r)}get(e){const t=this._cache.get(e.uri.toString());return t&&t.lineCount===e.getLineCount()?t.data:void 0}delete(e){this._cache.delete(e.uri.toString())}_serialize(){const e=Object.create(null);for(const[t,n]of this._cache){const i=new Set;for(const e of n.data.lenses)i.add(e.symbol.range.startLineNumber);e[t]={lineCount:n.lineCount,lines:[...i.values()]}}return JSON.stringify(e)}_deserialize(e){try{const t=JSON.parse(e);for(const e in t){const n=t[e],i=[];for(const e of n.lines)i.push({range:new _.a(e,1,e,11)});const r=new f;r.add({lenses:i,dispose(){}},this._fakeProvider),this._cache.set(e,new P(n.lineCount,r))}}catch(e){}}};j=I([A(0,O.a)],j),Object(E.b)(R,j);var F=n(1),B=n(170),W=n(97),H=n(0),Y=n(7);n.d(t,"CodeLensContribution",(function(){return $}));var V=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},z=function(e,t){return function(n,i){t(n,i,e)}},U=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};let $=class{constructor(e,t,n,i){this._editor=e,this._commandService=t,this._notificationService=n,this._codeLensCache=i,this._globalToDispose=new o.b,this._localToDispose=new o.b,this._lenses=[],this._oldCodeLensModels=new o.b,this._modelChangeCounter=0,this._isEnabled=this._editor.getOption(11),this._globalToDispose.add(this._editor.onDidChangeModel(()=>this._onModelChange())),this._globalToDispose.add(this._editor.onDidChangeModelLanguage(()=>this._onModelChange())),this._globalToDispose.add(this._editor.onDidChangeConfiguration(()=>{const e=this._isEnabled;this._isEnabled=this._editor.getOption(11),e!==this._isEnabled&&this._onModelChange()})),this._globalToDispose.add(l.b.onDidChange(this._onModelChange,this)),this._globalToDispose.add(this._editor.onDidChangeConfiguration(e=>{e.hasChanged(36)&&this._updateLensStyle()})),this._onModelChange(),this._styleClassName="_"+Object(B.b)(this._editor.getId()).toString(16),this._styleElement=F.v(F.O(this._editor.getContainerDomNode())?this._editor.getContainerDomNode():void 0),this._updateLensStyle()}dispose(){this._localDispose(),this._globalToDispose.dispose(),this._oldCodeLensModels.dispose(),Object(o.f)(this._currentCodeLensModel)}_updateLensStyle(){const e=this._editor.getOptions(),t=e.get(36),n=e.get(51),i=Math.round(1.1*n),r=Math.round(.9*t.fontSize),o=`\n\t\t.monaco-editor .codelens-decoration.${this._styleClassName} { height: ${i}px; line-height: ${n}px; font-size: ${r}px; padding-right: ${Math.round(.45*t.fontSize)}px;}\n\t\t.monaco-editor .codelens-decoration.${this._styleClassName} > a > .codicon { line-height: ${n}px; font-size: ${r}px; }\n\t\t`;this._styleElement.textContent=o}_localDispose(){this._currentFindCodeLensSymbolsPromise&&(this._currentFindCodeLensSymbolsPromise.cancel(),this._currentFindCodeLensSymbolsPromise=void 0,this._modelChangeCounter++),this._currentResolveCodeLensSymbolsPromise&&(this._currentResolveCodeLensSymbolsPromise.cancel(),this._currentResolveCodeLensSymbolsPromise=void 0),this._localToDispose.clear(),this._oldCodeLensModels.clear(),Object(o.f)(this._currentCodeLensModel)}_onModelChange(){this._localDispose();const e=this._editor.getModel();if(!e)return;if(!this._isEnabled)return;const t=this._codeLensCache.get(e);if(t&&this._renderCodeLensSymbols(t),!l.b.has(e))return void(t&&this._localToDispose.add(Object(i.g)(()=>{const n=this._codeLensCache.get(e);t===n&&(this._codeLensCache.delete(e),this._onModelChange())},3e4)));for(const t of l.b.all(e))if("function"==typeof t.onDidChange){let e=t.onDidChange(()=>a.schedule());this._localToDispose.add(e)}const n=this._detectVisibleLenses=new i.d(()=>this._onViewportChanged(),250),a=new i.d(()=>{const t=++this._modelChangeCounter;this._currentFindCodeLensSymbolsPromise&&this._currentFindCodeLensSymbolsPromise.cancel(),this._currentFindCodeLensSymbolsPromise=Object(i.f)(t=>g(e,t)),this._currentFindCodeLensSymbolsPromise.then(i=>{t===this._modelChangeCounter&&(this._currentCodeLensModel&&this._oldCodeLensModels.add(this._currentCodeLensModel),this._currentCodeLensModel=i,this._codeLensCache.put(e,i),this._renderCodeLensSymbols(i),n.schedule())},r.e)},250);this._localToDispose.add(a),this._localToDispose.add(n),this._localToDispose.add(this._editor.onDidChangeModelContent(()=>{this._editor.changeDecorations(e=>{this._editor.changeViewZones(t=>{let n=[],i=-1;this._lenses.forEach(e=>{e.isValid()&&i!==e.getLineNumber()?(e.update(t),i=e.getLineNumber()):n.push(e)});let r=new k;n.forEach(e=>{e.dispose(r,t),this._lenses.splice(this._lenses.indexOf(e),1)}),r.commit(e)})}),n.schedule(),a.schedule()})),this._localToDispose.add(this._editor.onDidScrollChange(e=>{e.scrollTopChanged&&this._lenses.length>0&&n.schedule()})),this._localToDispose.add(this._editor.onDidLayoutChange(()=>{n.schedule()})),this._localToDispose.add(Object(o.h)(()=>{if(this._editor.getModel()){const e=s.c.capture(this._editor);this._editor.changeDecorations(e=>{this._editor.changeViewZones(t=>{this._disposeAllLenses(e,t)})}),e.restore(this._editor)}else this._disposeAllLenses(void 0,void 0)})),this._localToDispose.add(this._editor.onMouseUp(e=>{if(9!==e.target.type)return;let t=e.target.element;if("SPAN"===(null==t?void 0:t.tagName)&&(t=t.parentElement),"A"===(null==t?void 0:t.tagName))for(const e of this._lenses){let n=e.getCommand(t);if(n){this._commandService.executeCommand(n.id,...n.arguments||[]).catch(e=>this._notificationService.error(e));break}}})),a.schedule()}_disposeAllLenses(e,t){const n=new k;for(const e of this._lenses)e.dispose(n,t);e&&n.commit(e),this._lenses=[]}_renderCodeLensSymbols(e){if(!this._editor.hasModel())return;let t,n=this._editor.getModel().getLineCount(),i=[];for(let r of e.lenses){let e=r.symbol.range.startLineNumber;e<1||e>n||(t&&t[t.length-1].symbol.range.startLineNumber===e?t.push(r):(t=[r],i.push(t)))}const r=s.c.capture(this._editor);this._editor.changeDecorations(e=>{this._editor.changeViewZones(t=>{const n=new k;let r=0,o=0;for(;o<i.length&&r<this._lenses.length;){let e=i[o][0].symbol.range.startLineNumber,s=this._lenses[r].getLineNumber();s<e?(this._lenses[r].dispose(n,t),this._lenses.splice(r,1)):s===e?(this._lenses[r].updateCodeLensSymbols(i[o],n),o++,r++):(this._lenses.splice(r,0,new x(i[o],this._editor,this._styleClassName,n,t,()=>this._detectVisibleLenses&&this._detectVisibleLenses.schedule())),r++,o++)}for(;r<this._lenses.length;)this._lenses[r].dispose(n,t),this._lenses.splice(r,1);for(;o<i.length;)this._lenses.push(new x(i[o],this._editor,this._styleClassName,n,t,()=>this._detectVisibleLenses&&this._detectVisibleLenses.schedule())),o++;n.commit(e)})}),r.restore(this._editor)}_onViewportChanged(){this._currentResolveCodeLensSymbolsPromise&&(this._currentResolveCodeLensSymbolsPromise.cancel(),this._currentResolveCodeLensSymbolsPromise=void 0);const e=this._editor.getModel();if(!e)return;const t=[],n=[];if(this._lenses.forEach(i=>{const r=i.computeIfNecessary(e);r&&(t.push(r),n.push(i))}),0===t.length)return;const o=Object(i.f)(i=>{const o=t.map((t,o)=>{const s=new Array(t.length),a=t.map((t,n)=>t.symbol.command||"function"!=typeof t.provider.resolveCodeLens?(s[n]=t.symbol,Promise.resolve(void 0)):Promise.resolve(t.provider.resolveCodeLens(e,t.symbol,i)).then(e=>{s[n]=e},r.f));return Promise.all(a).then(()=>{i.isCancellationRequested||n[o].isDisposed()||n[o].updateCommands(s)})});return Promise.all(o)});this._currentResolveCodeLensSymbolsPromise=o,this._currentResolveCodeLensSymbolsPromise.then(()=>{this._currentCodeLensModel&&this._codeLensCache.put(e,this._currentCodeLensModel),this._oldCodeLensModels.clear(),o===this._currentResolveCodeLensSymbolsPromise&&(this._currentResolveCodeLensSymbolsPromise=void 0)},e=>{Object(r.e)(e),o===this._currentResolveCodeLensSymbolsPromise&&(this._currentResolveCodeLensSymbolsPromise=void 0)})}getLenses(){return this._lenses}};$.ID="css.editor.codeLens",$=V([z(1,L.b),z(2,M.a),z(3,R)],$),Object(a.m)($.ID,$),Object(a.k)(class extends a.b{constructor(){super({id:"codelens.showLensesInCurrentLine",precondition:Y.a.hasCodeLensProvider,label:Object(H.a)("showLensOnLine","Show CodeLens Commands For Current Line"),alias:"Show CodeLens Commands For Current Line"})}run(e,t){return U(this,void 0,void 0,(function*(){if(!t.hasModel())return;const n=e.get(W.a),i=e.get(L.b),r=e.get(M.a),o=t.getSelection().positionLineNumber,s=t.getContribution($.ID),a=[];for(let e of s.getLenses())if(e.getLineNumber()===o)for(let t of e.getItems()){const{command:e}=t.symbol;e&&a.push({label:e.title,command:e})}if(0===a.length)return;const l=yield n.pick(a,{canPickMany:!1});if(l)try{yield i.executeCommand(l.command.id,...l.command.arguments||[])}catch(e){r.error(e)}}))}})},function(e,t,n){"use strict";n.r(t);var i=n(14),r=n(26),o=n(39),s=n(2),a=n(4),l=n(33),c=n(111),d=n(3),u=n(7),h=n(11),f=n(89),g=n(55),p=n(15),m=n(24),_=n(76),b=n(100),v=n(10),y=n(22),w=n(54),C=n(60);class S{static _handleEolEdits(e,t){let n=void 0,i=[];for(let e of t)"number"==typeof e.eol&&(n=e.eol),e.range&&"string"==typeof e.text&&i.push(e);return"number"==typeof n&&e.hasModel()&&e.getModel().pushEOL(n),i}static _isFullModelReplaceEdit(e,t){if(!e.hasModel())return!1;const n=e.getModel(),i=n.validateRange(t.range);return n.getFullModelRange().equalsRange(i)}static execute(e,t,n){n&&e.pushUndoStop();const i=S._handleEolEdits(e,t);1===i.length&&S._isFullModelReplaceEdit(e,i[0])?e.executeEdits("formatEditsCommand",i.map(e=>C.a.replace(d.a.lift(e.range),e.text))):e.executeEdits("formatEditsCommand",i.map(e=>C.a.replaceMove(d.a.lift(e.range),e.text))),n&&e.pushUndoStop()}}var k=n(0);class x{constructor(e){this.value=e,this._lower=e.toLowerCase()}static toKey(e){return"string"==typeof e?e.toLowerCase():e._lower}}var L=n(17),M=n(84),D=n(28),E=n(20),T=n(38),O=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};function N(e){if(!(e=e.filter(e=>e.range)).length)return;let{range:t}=e[0];for(let n=1;n<e.length;n++)t=d.a.plusRange(t,e[n].range);const{startLineNumber:n,endLineNumber:i}=t;n===i?1===e.length?Object(g.a)(k.a("hint11","Made 1 formatting edit on line {0}",n)):Object(g.a)(k.a("hintn1","Made {0} formatting edits on line {1}",e.length,n)):1===e.length?Object(g.a)(k.a("hint1n","Made 1 formatting edit between lines {0} and {1}",n,i)):Object(g.a)(k.a("hintnn","Made {0} formatting edits between lines {1} and {2}",e.length,n,i))}function I(e){const t=[],n=new Set,i=h.g.ordered(e);for(const e of i)t.push(e),e.extensionId&&n.add(x.toKey(e.extensionId));const r=h.j.ordered(e);for(const e of r){if(e.extensionId){if(n.has(x.toKey(e.extensionId)))continue;n.add(x.toKey(e.extensionId))}t.push({displayName:e.displayName,extensionId:e.extensionId,provideDocumentFormattingEdits:(t,n,i)=>e.provideDocumentRangeFormattingEdits(t,t.getFullModelRange(),n,i)})}return t}class A{static select(e,t,n){return O(this,void 0,void 0,(function*(){if(0===e.length)return;const i=T.a.first(A._selectors);return i?yield i(e,t,n):e[0]}))}}function R(e,t,n,i,r,o){return O(this,void 0,void 0,(function*(){const s=e.get(L.a),a=Object(b.b)(t)?t.getModel():t,l=h.j.ordered(a),c=yield A.select(l,a,i);c&&(r.report(c),yield s.invokeFunction(P,c,t,n,o))}))}function P(e,t,n,r,o){return O(this,void 0,void 0,(function*(){const s=e.get(f.a);let a,l;Object(b.b)(n)?(a=n.getModel(),l=new _.b(n,5,void 0,o)):(a=n,l=new _.d(n,o));let c=[],u=0;for(let e of Object(i.b)(r).sort(d.a.compareRangesUsingStarts))u>0&&d.a.areIntersectingOrTouching(c[u-1],e)?c[u-1]=d.a.fromPositions(c[u-1].getStartPosition(),e.getEndPosition()):u=c.push(e);const h=[];for(let e of c)try{const n=yield t.provideDocumentRangeFormattingEdits(a,e,a.getFormattingOptions(),l.token),i=yield s.computeMoreMinimalEdits(a.uri,n);if(i&&h.push(...i),l.token.isCancellationRequested)return!0}finally{l.dispose()}if(0===h.length)return!1;if(Object(b.b)(n))S.execute(n,h,!0),N(h),n.revealPositionInCenterIfOutsideViewport(n.getPosition(),1);else{const[{range:e}]=h,t=new y.a(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn);a.pushEditOperations([t],h.map(e=>({text:e.text,range:d.a.lift(e.range),forceMoveMarkers:!0})),e=>{for(const{range:n}of e)if(d.a.areIntersectingOrTouching(n,t))return[new y.a(n.startLineNumber,n.startColumn,n.endLineNumber,n.endColumn)];return null})}return!0}))}function j(e,t,n,i,r){return O(this,void 0,void 0,(function*(){const o=e.get(L.a),s=Object(b.b)(t)?t.getModel():t,a=I(s),l=yield A.select(a,s,n);l&&(i.report(l),yield o.invokeFunction(F,l,t,n,r))}))}function F(e,t,n,i,r){return O(this,void 0,void 0,(function*(){const o=e.get(f.a);let s,a,l;Object(b.b)(n)?(s=n.getModel(),a=new _.b(n,5,void 0,r)):(s=n,a=new _.d(n,r));try{const e=yield t.provideDocumentFormattingEdits(s,s.getFormattingOptions(),a.token);if(l=yield o.computeMoreMinimalEdits(s.uri,e),a.token.isCancellationRequested)return!0}finally{a.dispose()}if(!l||0===l.length)return!1;if(Object(b.b)(n))S.execute(n,l,2!==i),2!==i&&(N(l),n.revealPositionInCenterIfOutsideViewport(n.getPosition(),1));else{const[{range:e}]=l,t=new y.a(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn);s.pushEditOperations([t],l.map(e=>({text:e.text,range:d.a.lift(e.range),forceMoveMarkers:!0})),e=>{for(const{range:n}of e)if(d.a.areIntersectingOrTouching(n,t))return[new y.a(n.startLineNumber,n.startColumn,n.endLineNumber,n.endColumn)];return null})}return!0}))}function B(e,t,n,i,o){const s=h.t.ordered(t);return 0===s.length?Promise.resolve(void 0):s[0].autoFormatTriggerCharacters.indexOf(i)<0?Promise.resolve(void 0):Promise.resolve(s[0].provideOnTypeFormattingEdits(t,n,i,o,r.a.None)).catch(p.f).then(n=>e.computeMoreMinimalEdits(t.uri,n))}A._selectors=new M.a,D.a.registerCommand("_executeFormatRangeProvider",(function(e,...t){const[n,o,s]=t;Object(E.b)(m.a.isUri(n)),Object(E.b)(d.a.isIRange(o));const a=e.get(w.a).getModel(n);if(!a)throw Object(p.b)("resource");return function(e,t,n,r,o){return O(this,void 0,void 0,(function*(){const s=h.j.ordered(t);for(const a of s){let s=yield Promise.resolve(a.provideDocumentRangeFormattingEdits(t,n,r,o)).catch(p.f);if(Object(i.o)(s))return yield e.computeMoreMinimalEdits(t.uri,s)}}))}(e.get(f.a),a,d.a.lift(o),s,r.a.None)})),D.a.registerCommand("_executeFormatDocumentProvider",(function(e,...t){const[n,o]=t;Object(E.b)(m.a.isUri(n));const s=e.get(w.a).getModel(n);if(!s)throw Object(p.b)("resource");return function(e,t,n,r){return O(this,void 0,void 0,(function*(){const o=I(t);for(const s of o){let o=yield Promise.resolve(s.provideDocumentFormattingEdits(t,n,r)).catch(p.f);if(Object(i.o)(o))return yield e.computeMoreMinimalEdits(t.uri,o)}}))}(e.get(f.a),s,o,r.a.None)})),D.a.registerCommand("_executeFormatOnTypeProvider",(function(e,...t){const[n,i,r,o]=t;Object(E.b)(m.a.isUri(n)),Object(E.b)(v.a.isIPosition(i)),Object(E.b)("string"==typeof r);const s=e.get(w.a).getModel(n);if(!s)throw Object(p.b)("resource");return B(e.get(f.a),s,v.a.lift(i),r,o)}));var W=n(9),H=n(70),Y=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},V=function(e,t){return function(n,i){t(n,i,e)}},z=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};let U=class{constructor(e,t){this._workerService=t,this._callOnDispose=new s.b,this._callOnModel=new s.b,this._editor=e,this._callOnDispose.add(e.onDidChangeConfiguration(()=>this._update())),this._callOnDispose.add(e.onDidChangeModel(()=>this._update())),this._callOnDispose.add(e.onDidChangeModelLanguage(()=>this._update())),this._callOnDispose.add(h.t.onDidChange(this._update,this))}dispose(){this._callOnDispose.dispose(),this._callOnModel.dispose()}_update(){if(this._callOnModel.clear(),!this._editor.getOption(41))return;if(!this._editor.hasModel())return;const e=this._editor.getModel(),[t]=h.t.ordered(e);if(!t||!t.autoFormatTriggerCharacters)return;let n=new c.b;for(let e of t.autoFormatTriggerCharacters)n.add(e.charCodeAt(0));this._callOnModel.add(this._editor.onDidType(e=>{let t=e.charCodeAt(e.length-1);n.has(t)&&this._trigger(String.fromCharCode(t))}))}_trigger(e){if(!this._editor.hasModel())return;if(this._editor.getSelections().length>1)return;const t=this._editor.getModel(),n=this._editor.getPosition();let r=!1;const o=this._editor.onDidChangeModelContent(e=>{if(e.isFlush)return r=!0,void o.dispose();for(let t=0,i=e.changes.length;t<i;t++){if(e.changes[t].range.endLineNumber<=n.lineNumber)return r=!0,void o.dispose()}});B(this._workerService,t,n,e,t.getFormattingOptions()).then(e=>{o.dispose(),r||Object(i.o)(e)&&(S.execute(this._editor,e,!0),N(e))},e=>{throw o.dispose(),e})}};U.ID="editor.contrib.autoFormat",U=Y([V(1,f.a)],U);let $=class{constructor(e,t){this.editor=e,this._instantiationService=t,this._callOnDispose=new s.b,this._callOnModel=new s.b,this._callOnDispose.add(e.onDidChangeConfiguration(()=>this._update())),this._callOnDispose.add(e.onDidChangeModel(()=>this._update())),this._callOnDispose.add(e.onDidChangeModelLanguage(()=>this._update())),this._callOnDispose.add(h.j.onDidChange(this._update,this))}dispose(){this._callOnDispose.dispose(),this._callOnModel.dispose()}_update(){this._callOnModel.clear(),this.editor.getOption(40)&&this.editor.hasModel()&&h.j.has(this.editor.getModel())&&this._callOnModel.add(this.editor.onDidPaste(({range:e})=>this._trigger(e)))}_trigger(e){this.editor.hasModel()&&(this.editor.getSelections().length>1||this._instantiationService.invokeFunction(R,this.editor,e,2,H.b.None,r.a.None).catch(p.e))}};$.ID="editor.contrib.formatOnPaste",$=Y([V(1,L.a)],$);class q extends a.b{constructor(){super({id:"editor.action.formatDocument",label:k.a("formatDocument.label","Format Document"),alias:"Format Document",precondition:W.a.and(u.a.notInCompositeEditor,u.a.writable,u.a.hasDocumentFormattingProvider),kbOpts:{kbExpr:W.a.and(u.a.editorTextFocus,u.a.hasDocumentFormattingProvider),primary:1572,linux:{primary:3111},weight:100},contextMenuOpts:{when:u.a.hasDocumentFormattingProvider,group:"1_modification",order:1.3}})}run(e,t){return z(this,void 0,void 0,(function*(){if(t.hasModel()){const n=e.get(L.a),i=e.get(H.a);yield i.showWhile(n.invokeFunction(j,t,1,H.b.None,r.a.None),250)}}))}}class K extends a.b{constructor(){super({id:"editor.action.formatSelection",label:k.a("formatSelection.label","Format Selection"),alias:"Format Selection",precondition:W.a.and(u.a.writable,u.a.hasDocumentSelectionFormattingProvider),kbOpts:{kbExpr:W.a.and(u.a.editorTextFocus,u.a.hasDocumentSelectionFormattingProvider),primary:Object(o.a)(2089,2084),weight:100},contextMenuOpts:{when:W.a.and(u.a.hasDocumentSelectionFormattingProvider,u.a.hasNonEmptySelection),group:"1_modification",order:1.31}})}run(e,t){return z(this,void 0,void 0,(function*(){if(!t.hasModel())return;const n=e.get(L.a),i=t.getModel(),o=t.getSelections().map(e=>e.isEmpty()?new d.a(e.startLineNumber,1,e.startLineNumber,i.getLineMaxColumn(e.startLineNumber)):e),s=e.get(H.a);yield s.showWhile(n.invokeFunction(R,t,o,1,H.b.None,r.a.None),250)}))}}Object(a.m)(U.ID,U),Object(a.m)($.ID,$),Object(a.k)(q),Object(a.k)(K),D.a.registerCommand("editor.action.format",e=>z(void 0,void 0,void 0,(function*(){const t=e.get(l.a).getFocusedCodeEditor();if(!t||!t.hasModel())return;const n=e.get(D.b);t.getSelection().isEmpty()?yield n.executeCommand("editor.action.formatDocument"):yield n.executeCommand("editor.action.formatSelection")})))},function(e,t,n){"use strict";n.r(t);var i=n(0),r=n(2),o=n(17),s=n(7),a=n(9),l=n(4),c=n(1),d=n(34),u=n(55),h=n(94),f=n(6),g=(n(619),n(98)),p=n(173),m=n(19),_=n(15),b=n(11),v=n(26),y=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};const w={Visible:new a.c("parameterHintsVisible",!1),MultipleSignatures:new a.c("parameterHintsMultipleSignatures",!1)};function C(e,t,n,i){const r=b.y.ordered(e);return Object(m.h)(r.map(r=>()=>Promise.resolve(r.provideSignatureHelp(e,t,i,n)).catch(e=>Object(_.f)(e))))}Object(l.j)("_executeSignatureHelpProvider",(e,t,n)=>y(void 0,void 0,void 0,(function*(){const i=yield C(e,t,{triggerKind:b.z.Invoke,isRetrigger:!1,triggerCharacter:n.triggerCharacter},v.a.None);if(i)return setTimeout(()=>i.dispose(),0),i.value})));var S,k=n(66),x=n(5),L=n(18),M=n(111),D=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};!function(e){e.Default={type:0};e.Pending=class{constructor(e){this.request=e,this.type=2}};e.Active=class{constructor(e){this.hints=e,this.type=1}}}(S||(S={}));class E extends r.a{constructor(e,t=E.DEFAULT_DELAY){super(),this._onChangedHints=this._register(new f.a),this.onChangedHints=this._onChangedHints.event,this.triggerOnType=!1,this._state=S.Default,this._pendingTriggers=[],this._lastSignatureHelpResult=this._register(new r.d),this.triggerChars=new M.b,this.retriggerChars=new M.b,this.triggerId=0,this.editor=e,this.throttledDelayer=new m.a(t),this._register(this.editor.onDidChangeConfiguration(()=>this.onEditorConfigurationChange())),this._register(this.editor.onDidChangeModel(e=>this.onModelChanged())),this._register(this.editor.onDidChangeModelLanguage(e=>this.onModelChanged())),this._register(this.editor.onDidChangeCursorSelection(e=>this.onCursorChange(e))),this._register(this.editor.onDidChangeModelContent(e=>this.onModelContentChange())),this._register(b.y.onDidChange(this.onModelChanged,this)),this._register(this.editor.onDidType(e=>this.onDidType(e))),this.onEditorConfigurationChange(),this.onModelChanged()}get state(){return this._state}set state(e){2===this._state.type&&this._state.request.cancel(),this._state=e}cancel(e=!1){this.state=S.Default,this.throttledDelayer.cancel(),e||this._onChangedHints.fire(void 0)}trigger(e,t){const n=this.editor.getModel();if(!n||!b.y.has(n))return;const i=++this.triggerId;this._pendingTriggers.push(e),this.throttledDelayer.trigger(()=>this.doTrigger(i),t).catch(_.e)}next(){if(1!==this.state.type)return;const e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,n=t%e==e-1,i=this.editor.getOption(67).cycle;!(e<2||n)||i?this.updateActiveSignature(n&&i?0:t+1):this.cancel()}previous(){if(1!==this.state.type)return;const e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,n=0===t,i=this.editor.getOption(67).cycle;!(e<2||n)||i?this.updateActiveSignature(n&&i?e-1:t-1):this.cancel()}updateActiveSignature(e){1===this.state.type&&(this.state=new S.Active(Object.assign(Object.assign({},this.state.hints),{activeSignature:e})),this._onChangedHints.fire(this.state.hints))}doTrigger(e){return D(this,void 0,void 0,(function*(){const t=1===this.state.type||2===this.state.type,n=1===this.state.type?this.state.hints:void 0;if(this.cancel(!0),0===this._pendingTriggers.length)return!1;const i=this._pendingTriggers.reduce(T);this._pendingTriggers=[];const r={triggerKind:i.triggerKind,triggerCharacter:i.triggerCharacter,isRetrigger:t,activeSignatureHelp:n};if(!this.editor.hasModel())return!1;const o=this.editor.getModel(),s=this.editor.getPosition();this.state=new S.Pending(Object(m.f)(e=>C(o,s,r,e)));try{const t=yield this.state.request;return e!==this.triggerId?(null==t||t.dispose(),!1):t&&t.value.signatures&&0!==t.value.signatures.length?(this.state=new S.Active(t.value),this._lastSignatureHelpResult.value=t,this._onChangedHints.fire(this.state.hints),!0):(null==t||t.dispose(),this._lastSignatureHelpResult.clear(),this.cancel(),!1)}catch(t){return e===this.triggerId&&(this.state=S.Default),Object(_.e)(t),!1}}))}get isTriggered(){return 1===this.state.type||2===this.state.type||this.throttledDelayer.isTriggered()}onModelChanged(){this.cancel(),this.triggerChars=new M.b,this.retriggerChars=new M.b;const e=this.editor.getModel();if(e)for(const t of b.y.ordered(e)){for(const e of t.signatureHelpTriggerCharacters||[])this.triggerChars.add(e.charCodeAt(0)),this.retriggerChars.add(e.charCodeAt(0));for(const e of t.signatureHelpRetriggerCharacters||[])this.retriggerChars.add(e.charCodeAt(0))}}onDidType(e){if(!this.triggerOnType)return;const t=e.length-1,n=e.charCodeAt(t);(this.triggerChars.has(n)||this.isTriggered&&this.retriggerChars.has(n))&&this.trigger({triggerKind:b.z.TriggerCharacter,triggerCharacter:e.charAt(t)})}onCursorChange(e){"mouse"===e.source?this.cancel():this.isTriggered&&this.trigger({triggerKind:b.z.ContentChange})}onModelContentChange(){this.isTriggered&&this.trigger({triggerKind:b.z.ContentChange})}onEditorConfigurationChange(){this.triggerOnType=this.editor.getOption(67).enabled,this.triggerOnType||this.cancel()}dispose(){this.cancel(!0),super.dispose()}}function T(e,t){switch(t.triggerKind){case b.z.Invoke:return t;case b.z.ContentChange:return e;case b.z.TriggerCharacter:default:return t}}E.DEFAULT_DELAY=120;var O=n(8),N=n(16),I=n(20),A=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},R=function(e,t){return function(n,i){t(n,i,e)}};const P=c.a,j=Object(N.e)("parameter-hints-next",N.a.chevronDown),F=Object(N.e)("parameter-hints-previous",N.a.chevronUp);let B=class e extends r.a{constructor(e,t,n,i){super(),this.editor=e,this.renderDisposeables=this._register(new r.b),this.visible=!1,this.announcedLabel=null,this.allowEditorOverflow=!0,this.markdownRenderer=this._register(new p.a(e,i,n)),this.model=this._register(new E(e)),this.keyVisible=w.Visible.bindTo(t),this.keyMultipleSignatures=w.MultipleSignatures.bindTo(t),this._register(this.model.onChangedHints(e=>{e?(this.show(),this.render(e)):this.hide()}))}createParamaterHintDOMNodes(){const e=P(".editor-widget.parameter-hints-widget"),t=c.p(e,P(".wrapper"));t.tabIndex=-1;const n=c.p(t,P(".controls")),i=c.p(n,P(".button"+F.cssSelector)),r=c.p(n,P(".overloads")),o=c.p(n,P(".button"+j.cssSelector)),s=Object(d.b)(Object(d.a)(i,"click"));this._register(s(this.previous,this));const a=Object(d.b)(Object(d.a)(o,"click"));this._register(a(this.next,this));const l=P(".body"),u=new h.a(l,{});this._register(u),t.appendChild(u.getDomNode());const g=c.p(l,P(".signature")),p=c.p(l,P(".docs"));e.style.userSelect="text",this.domNodes={element:e,signature:g,overloads:r,docs:p,scrollbar:u},this.editor.addContentWidget(this),this.hide(),this._register(this.editor.onDidChangeCursorSelection(e=>{this.visible&&this.editor.layoutContentWidget(this)}));const m=()=>{if(!this.domNodes)return;const e=this.editor.getOption(36);this.domNodes.element.style.fontSize=`${e.fontSize}px`};m(),this._register(f.b.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter(e=>e.hasChanged(36)).on(m,null)),this._register(this.editor.onDidLayoutChange(e=>this.updateMaxHeight())),this.updateMaxHeight()}show(){this.visible||(this.domNodes||this.createParamaterHintDOMNodes(),this.keyVisible.set(!0),this.visible=!0,setTimeout(()=>{this.domNodes&&c.e(this.domNodes.element,"visible")},100),this.editor.layoutContentWidget(this))}hide(){this.renderDisposeables.clear(),this.visible&&(this.keyVisible.reset(),this.visible=!1,this.announcedLabel=null,this.domNodes&&c.Q(this.domNodes.element,"visible"),this.editor.layoutContentWidget(this))}getPosition(){return this.visible?{position:this.editor.getPosition(),preference:[1,2]}:null}render(e){var t;if(this.renderDisposeables.clear(),!this.domNodes)return;const n=e.signatures.length>1;c.ab(this.domNodes.element,"multiple",n),this.keyMultipleSignatures.set(n),this.domNodes.signature.innerText="",this.domNodes.docs.innerText="";const r=e.signatures[e.activeSignature];if(!r)return;const o=c.p(this.domNodes.signature,P(".code")),s=this.editor.getOption(36);o.style.fontSize=`${s.fontSize}px`,o.style.fontFamily=s.fontFamily;const a=r.parameters.length>0,l=null!==(t=r.activeParameter)&&void 0!==t?t:e.activeParameter;if(a)this.renderParameters(o,r,l);else{c.p(o,P("span")).textContent=r.label}const d=r.parameters[l];if(null==d?void 0:d.documentation){const e=P("span.documentation");if("string"==typeof d.documentation)e.textContent=d.documentation;else{const t=this.renderDisposeables.add(this.markdownRenderer.render(d.documentation));c.e(t.element,"markdown-docs"),e.appendChild(t.element)}c.p(this.domNodes.docs,P("p",{},e))}if(void 0===r.documentation);else if("string"==typeof r.documentation)c.p(this.domNodes.docs,P("p",{},r.documentation));else{const e=this.renderDisposeables.add(this.markdownRenderer.render(r.documentation));c.e(e.element,"markdown-docs"),c.p(this.domNodes.docs,e.element)}const h=this.hasDocs(r,d);if(c.ab(this.domNodes.signature,"has-docs",h),c.ab(this.domNodes.docs,"empty",!h),this.domNodes.overloads.textContent=Object(O.M)(e.activeSignature+1,e.signatures.length.toString().length)+"/"+e.signatures.length,d){const e=this.getParameterLabel(r,l);this.announcedLabel!==e&&(u.a(i.a("hint","{0}, hint",e)),this.announcedLabel=e)}this.editor.layoutContentWidget(this),this.domNodes.scrollbar.scanDomNode()}hasDocs(e,t){return!!(t&&"string"==typeof t.documentation&&Object(I.a)(t.documentation).length>0)||(!!(t&&"object"==typeof t.documentation&&Object(I.a)(t.documentation).value.length>0)||(!!(e.documentation&&"string"==typeof e.documentation&&Object(I.a)(e.documentation).length>0)||!!(e.documentation&&"object"==typeof e.documentation&&Object(I.a)(e.documentation.value).length>0)))}renderParameters(e,t,n){const[i,r]=this.getParameterLabelOffsets(t,n),o=document.createElement("span");o.textContent=t.label.substring(0,i);const s=document.createElement("span");s.textContent=t.label.substring(i,r),s.className="parameter active";const a=document.createElement("span");a.textContent=t.label.substring(r),c.p(e,o,s,a)}getParameterLabel(e,t){const n=e.parameters[t];return Array.isArray(n.label)?e.label.substring(n.label[0],n.label[1]):n.label}getParameterLabelOffsets(e,t){const n=e.parameters[t];if(n){if(Array.isArray(n.label))return n.label;{const t=e.label.lastIndexOf(n.label);return t>=0?[t,t+n.label.length]:[0,0]}}return[0,0]}next(){this.editor.focus(),this.model.next()}previous(){this.editor.focus(),this.model.previous()}cancel(){this.model.cancel()}getDomNode(){return this.domNodes||this.createParamaterHintDOMNodes(),this.domNodes.element}getId(){return e.ID}trigger(e){this.model.trigger(e,0)}updateMaxHeight(){if(!this.domNodes)return;const e=`${Math.max(this.editor.getLayoutInfo().height/4,250)}px`;this.domNodes.element.style.maxHeight=e;const t=this.domNodes.element.getElementsByClassName("wrapper");t.length&&(t[0].style.maxHeight=e)}};B.ID="editor.widget.parameterHintsWidget",B=A([R(1,a.b),R(2,k.a),R(3,g.a)],B),Object(L.g)((e,t)=>{const n=e.getColor(x.F);if(n){const i=e.type===L.b?2:1;t.addRule(`.monaco-editor .parameter-hints-widget { border: ${i}px solid ${n}; }`),t.addRule(`.monaco-editor .parameter-hints-widget.multiple .body { border-left: 1px solid ${n.transparent(.5)}; }`),t.addRule(`.monaco-editor .parameter-hints-widget .signature.has-docs { border-bottom: 1px solid ${n.transparent(.5)}; }`)}const i=e.getColor(x.E);i&&t.addRule(`.monaco-editor .parameter-hints-widget { background-color: ${i}; }`);const r=e.getColor(x.rc);r&&t.addRule(`.monaco-editor .parameter-hints-widget a { color: ${r}; }`);const o=e.getColor(x.G);o&&t.addRule(`.monaco-editor .parameter-hints-widget { color: ${o}; }`);const s=e.getColor(x.qc);s&&t.addRule(`.monaco-editor .parameter-hints-widget code { background-color: ${s}; }`)}),n.d(t,"TriggerParameterHintsAction",(function(){return V}));var W=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},H=function(e,t){return function(n,i){t(n,i,e)}};let Y=class e extends r.a{constructor(e,t){super(),this.editor=e,this.widget=this._register(t.createInstance(B,this.editor))}static get(t){return t.getContribution(e.ID)}cancel(){this.widget.cancel()}previous(){this.widget.previous()}next(){this.widget.next()}trigger(e){this.widget.trigger(e)}};Y.ID="editor.controller.parameterHints",Y=W([H(1,o.a)],Y);class V extends l.b{constructor(){super({id:"editor.action.triggerParameterHints",label:i.a("parameterHints.trigger.label","Trigger Parameter Hints"),alias:"Trigger Parameter Hints",precondition:s.a.hasSignatureHelpProvider,kbOpts:{kbExpr:s.a.editorTextFocus,primary:3082,weight:100}})}run(e,t){const n=Y.get(t);n&&n.trigger({triggerKind:b.z.Invoke})}}Object(l.m)(Y.ID,Y),Object(l.k)(V);const z=l.c.bindToContribution(Y.get);Object(l.l)(new z({id:"closeParameterHints",precondition:w.Visible,handler:e=>e.cancel(),kbOpts:{weight:175,kbExpr:s.a.focus,primary:9,secondary:[1033]}})),Object(l.l)(new z({id:"showPrevParameterHint",precondition:a.a.and(w.Visible,w.MultipleSignatures),handler:e=>e.previous(),kbOpts:{weight:175,kbExpr:s.a.focus,primary:16,secondary:[528],mac:{primary:16,secondary:[528,302]}}})),Object(l.l)(new z({id:"showNextParameterHint",precondition:a.a.and(w.Visible,w.MultipleSignatures),handler:e=>e.next(),kbOpts:{weight:175,kbExpr:s.a.focus,primary:18,secondary:[530],mac:{primary:18,secondary:[530,300]}}}))},function(e,t,n){"use strict";n.r(t);var i=n(0),r=n(39),o=n(4),s=n(7),a=n(60),l=n(10),c=n(3),d=n(22),u=n(32);class h{constructor(e,t){this._selection=e,this._insertSpace=t,this._usedEndToken=null}static _haystackHasNeedleAtOffset(e,t,n){if(n<0)return!1;const i=t.length;if(n+i>e.length)return!1;for(let r=0;r<i;r++){const i=e.charCodeAt(n+r),o=t.charCodeAt(r);if(i!==o&&!(i>=65&&i<=90&&i+32===o||o>=65&&o<=90&&o+32===i))return!1}return!0}_createOperationsForBlockComment(e,t,n,i,r,o){const s=e.startLineNumber,a=e.startColumn,l=e.endLineNumber,d=e.endColumn,u=r.getLineContent(s),f=r.getLineContent(l);let g,p=u.lastIndexOf(t,a-1+t.length),m=f.indexOf(n,d-1-n.length);if(-1!==p&&-1!==m)if(s===l){u.substring(p+t.length,m).indexOf(n)>=0&&(p=-1,m=-1)}else{const e=u.substring(p+t.length),i=f.substring(0,m);(e.indexOf(n)>=0||i.indexOf(n)>=0)&&(p=-1,m=-1)}-1!==p&&-1!==m?(i&&p+t.length<u.length&&32===u.charCodeAt(p+t.length)&&(t+=" "),i&&m>0&&32===f.charCodeAt(m-1)&&(n=" "+n,m-=1),g=h._createRemoveBlockCommentOperations(new c.a(s,p+t.length+1,l,m+1),t,n)):(g=h._createAddBlockCommentOperations(e,t,n,this._insertSpace),this._usedEndToken=1===g.length?n:null);for(const e of g)o.addTrackedEditOperation(e.range,e.text)}static _createRemoveBlockCommentOperations(e,t,n){let i=[];return c.a.isEmpty(e)?i.push(a.a.delete(new c.a(e.startLineNumber,e.startColumn-t.length,e.endLineNumber,e.endColumn+n.length))):(i.push(a.a.delete(new c.a(e.startLineNumber,e.startColumn-t.length,e.startLineNumber,e.startColumn))),i.push(a.a.delete(new c.a(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn+n.length)))),i}static _createAddBlockCommentOperations(e,t,n,i){let r=[];return c.a.isEmpty(e)?r.push(a.a.replace(new c.a(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),t+" "+n)):(r.push(a.a.insert(new l.a(e.startLineNumber,e.startColumn),t+(i?" ":""))),r.push(a.a.insert(new l.a(e.endLineNumber,e.endColumn),(i?" ":"")+n))),r}getEditOperations(e,t){const n=this._selection.startLineNumber,i=this._selection.startColumn;e.tokenizeIfCheap(n);const r=e.getLanguageIdAtPosition(n,i),o=u.a.getComments(r);o&&o.blockCommentStartToken&&o.blockCommentEndToken&&this._createOperationsForBlockComment(this._selection,o.blockCommentStartToken,o.blockCommentEndToken,this._insertSpace,e,t)}computeCursorState(e,t){const n=t.getInverseEditOperations();if(2===n.length){const e=n[0],t=n[1];return new d.a(e.range.endLineNumber,e.range.endColumn,t.range.startLineNumber,t.range.startColumn)}{const e=n[0].range,t=this._usedEndToken?-this._usedEndToken.length-1:0;return new d.a(e.endLineNumber,e.endColumn+t,e.endLineNumber,e.endColumn+t)}}}var f=n(8);class g{constructor(e,t,n,i,r){this._selection=e,this._tabSize=t,this._type=n,this._insertSpace=i,this._selectionId=null,this._deltaColumn=0,this._moveEndPositionDown=!1,this._ignoreEmptyLines=r}static _gatherPreflightCommentStrings(e,t,n){e.tokenizeIfCheap(t);const i=e.getLanguageIdAtPosition(t,1),r=u.a.getComments(i),o=r?r.lineCommentToken:null;if(!o)return null;let s=[];for(let e=0,i=n-t+1;e<i;e++)s[e]={ignore:!1,commentStr:o,commentStrOffset:0,commentStrLength:o.length};return s}static _analyzeLines(e,t,n,i,r,o){let s,a=!0;s=0===e||1!==e;for(let l=0,c=i.length;l<c;l++){const c=i[l],d=r+l,u=n.getLineContent(d),g=f.w(u);if(-1!==g){if(a=!1,c.ignore=!1,c.commentStrOffset=g,s&&!h._haystackHasNeedleAtOffset(u,c.commentStr,g)&&(0===e?s=!1:1===e||(c.ignore=!0)),s&&t){const e=g+c.commentStrLength;e<u.length&&32===u.charCodeAt(e)&&(c.commentStrLength+=1)}}else c.ignore=o,c.commentStrOffset=u.length}if(0===e&&a){s=!1;for(let e=0,t=i.length;e<t;e++)i[e].ignore=!1}return{supported:!0,shouldRemoveComments:s,lines:i}}static _gatherPreflightData(e,t,n,i,r,o){const s=g._gatherPreflightCommentStrings(n,i,r);return null===s?{supported:!1}:g._analyzeLines(e,t,n,s,i,o)}_executeLineComments(e,t,n,i){let r;n.shouldRemoveComments?r=g._createRemoveLineCommentsOperations(n.lines,i.startLineNumber):(g._normalizeInsertionPoint(e,n.lines,i.startLineNumber,this._tabSize),r=this._createAddLineCommentsOperations(n.lines,i.startLineNumber));const o=new l.a(i.positionLineNumber,i.positionColumn);for(let n=0,i=r.length;n<i;n++)if(t.addEditOperation(r[n].range,r[n].text),c.a.isEmpty(r[n].range)&&c.a.getStartPosition(r[n].range).equals(o)){e.getLineContent(o.lineNumber).length+1===o.column&&(this._deltaColumn=(r[n].text||"").length)}this._selectionId=t.trackSelection(i)}_attemptRemoveBlockComment(e,t,n,i){let r=t.startLineNumber,o=t.endLineNumber,s=i.length+Math.max(e.getLineFirstNonWhitespaceColumn(t.startLineNumber),t.startColumn),a=e.getLineContent(r).lastIndexOf(n,s-1),l=e.getLineContent(o).indexOf(i,t.endColumn-1-n.length);return-1!==a&&-1===l&&(l=e.getLineContent(r).indexOf(i,a+n.length),o=r),-1===a&&-1!==l&&(a=e.getLineContent(o).lastIndexOf(n,l),r=o),!t.isEmpty()||-1!==a&&-1!==l||-1!==(a=e.getLineContent(r).indexOf(n))&&(l=e.getLineContent(r).indexOf(i,a+n.length)),-1!==a&&32===e.getLineContent(r).charCodeAt(a+n.length)&&(n+=" "),-1!==l&&32===e.getLineContent(o).charCodeAt(l-1)&&(i=" "+i,l-=1),-1!==a&&-1!==l?h._createRemoveBlockCommentOperations(new c.a(r,a+n.length+1,o,l+1),n,i):null}_executeBlockComment(e,t,n){e.tokenizeIfCheap(n.startLineNumber);let i=e.getLanguageIdAtPosition(n.startLineNumber,1),r=u.a.getComments(i);if(!r||!r.blockCommentStartToken||!r.blockCommentEndToken)return;const o=r.blockCommentStartToken,s=r.blockCommentEndToken;let a=this._attemptRemoveBlockComment(e,n,o,s);if(!a){if(n.isEmpty()){const t=e.getLineContent(n.startLineNumber);let i=f.w(t);-1===i&&(i=t.length),a=h._createAddBlockCommentOperations(new c.a(n.startLineNumber,i+1,n.startLineNumber,t.length+1),o,s,this._insertSpace)}else a=h._createAddBlockCommentOperations(new c.a(n.startLineNumber,e.getLineFirstNonWhitespaceColumn(n.startLineNumber),n.endLineNumber,e.getLineMaxColumn(n.endLineNumber)),o,s,this._insertSpace);1===a.length&&(this._deltaColumn=o.length+1)}this._selectionId=t.trackSelection(n);for(const e of a)t.addEditOperation(e.range,e.text)}getEditOperations(e,t){let n=this._selection;this._moveEndPositionDown=!1,n.startLineNumber<n.endLineNumber&&1===n.endColumn&&(this._moveEndPositionDown=!0,n=n.setEndPosition(n.endLineNumber-1,e.getLineMaxColumn(n.endLineNumber-1)));const i=g._gatherPreflightData(this._type,this._insertSpace,e,n.startLineNumber,n.endLineNumber,this._ignoreEmptyLines);return i.supported?this._executeLineComments(e,t,i,n):this._executeBlockComment(e,t,n)}computeCursorState(e,t){let n=t.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(n=n.setEndPosition(n.endLineNumber+1,1)),new d.a(n.selectionStartLineNumber,n.selectionStartColumn+this._deltaColumn,n.positionLineNumber,n.positionColumn+this._deltaColumn)}static _createRemoveLineCommentsOperations(e,t){let n=[];for(let i=0,r=e.length;i<r;i++){const r=e[i];r.ignore||n.push(a.a.delete(new c.a(t+i,r.commentStrOffset+1,t+i,r.commentStrOffset+r.commentStrLength+1)))}return n}_createAddLineCommentsOperations(e,t){let n=[];const i=this._insertSpace?" ":"";for(let r=0,o=e.length;r<o;r++){const o=e[r];o.ignore||n.push(a.a.insert(new l.a(t+r,o.commentStrOffset+1),o.commentStr+i))}return n}static nextVisibleColumn(e,t,n,i){return n?e+(t-e%t):e+i}static _normalizeInsertionPoint(e,t,n,i){let r,o,s=1073741824;for(let r=0,o=t.length;r<o;r++){if(t[r].ignore)continue;const o=e.getLineContent(n+r);let a=0;for(let e=0,n=t[r].commentStrOffset;a<s&&e<n;e++)a=g.nextVisibleColumn(a,i,9===o.charCodeAt(e),1);a<s&&(s=a)}s=Math.floor(s/i)*i;for(let a=0,l=t.length;a<l;a++){if(t[a].ignore)continue;const l=e.getLineContent(n+a);let c=0;for(r=0,o=t[a].commentStrOffset;c<s&&r<o;r++)c=g.nextVisibleColumn(c,i,9===l.charCodeAt(r),1);t[a].commentStrOffset=c>s?r-1:r}}}var p=n(25);class m extends o.b{constructor(e,t){super(t),this._type=e}run(e,t){if(!t.hasModel())return;const n=t.getModel(),i=[],r=t.getSelections(),o=n.getOptions(),s=t.getOption(14);for(const e of r)i.push(new g(e,o.tabSize,this._type,s.insertSpace,s.ignoreEmptyLines));t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}}class _ extends o.b{constructor(){super({id:"editor.action.blockComment",label:i.a("comment.block","Toggle Block Comment"),alias:"Toggle Block Comment",precondition:s.a.writable,kbOpts:{kbExpr:s.a.editorTextFocus,primary:1567,linux:{primary:3103},weight:100},menuOpts:{menuId:p.b.MenubarEditMenu,group:"5_insert",title:i.a({key:"miToggleBlockComment",comment:["&& denotes a mnemonic"]},"Toggle &&Block Comment"),order:2}})}run(e,t){if(!t.hasModel())return;const n=t.getOption(14),i=[],r=t.getSelections();for(const e of r)i.push(new h(e,n.insertSpace));t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}}Object(o.k)(class extends m{constructor(){super(0,{id:"editor.action.commentLine",label:i.a("comment.line","Toggle Line Comment"),alias:"Toggle Line Comment",precondition:s.a.writable,kbOpts:{kbExpr:s.a.editorTextFocus,primary:2133,weight:100},menuOpts:{menuId:p.b.MenubarEditMenu,group:"5_insert",title:i.a({key:"miToggleLineComment",comment:["&& denotes a mnemonic"]},"&&Toggle Line Comment"),order:1}})}}),Object(o.k)(class extends m{constructor(){super(1,{id:"editor.action.addCommentLine",label:i.a("comment.line.add","Add Line Comment"),alias:"Add Line Comment",precondition:s.a.writable,kbOpts:{kbExpr:s.a.editorTextFocus,primary:Object(r.a)(2089,2081),weight:100}})}}),Object(o.k)(class extends m{constructor(){super(2,{id:"editor.action.removeCommentLine",label:i.a("comment.line.remove","Remove Line Comment"),alias:"Remove Line Comment",precondition:s.a.writable,kbOpts:{kbExpr:s.a.editorTextFocus,primary:Object(r.a)(2089,2099),weight:100}})}}),Object(o.k)(_)},function(e,t,n){"use strict";n.r(t);var i=n(0),r=n(26),o=n(2),s=n(3),a=n(270),l=n(11),c=n(210),d=n(8),u=n(61),h=n(45),f=n(12);const g=[void 0,[]];function p(e,t,n=0,i=0){const r=t;return r.values&&r.values.length>1?function(e,t,n,i){let r=0;const o=[];for(const s of t){const[t,a]=m(e,s,n,i);if("number"!=typeof t)return g;r+=t,o.push(...a)}return[r,_(o)]}(e,r.values,n,i):m(e,t,n,i)}function m(e,t,n,i){const r=Object(u.d)(t.original,t.originalLowercase,n,e,e.toLowerCase(),i,!0);return r?[r[0],Object(u.c)(r)]:g}function _(e){const t=e.sort((e,t)=>e.start-t.start),n=[];let i=void 0;for(const e of t)i&&b(i,e)?(i.start=Math.min(i.start,e.start),i.end=Math.max(i.end,e.end)):(i=e,n.push(e));return n}function b(e,t){return!(e.end<t.start)&&!(t.end<e.start)}const v=" ";function y(e){"string"!=typeof e&&(e="");const t=e.toLowerCase(),{pathNormalized:n,normalized:i,normalizedLowercase:r}=w(e),o=n.indexOf(h.h)>=0;let s=void 0;const a=e.split(v);if(a.length>1)for(const e of a){const{pathNormalized:t,normalized:n,normalizedLowercase:i}=w(e);n&&(s||(s=[]),s.push({original:e,originalLowercase:e.toLowerCase(),pathNormalized:t,normalized:n,normalizedLowercase:i}))}return{original:e,originalLowercase:t,pathNormalized:n,normalized:i,normalizedLowercase:r,values:s,containsPathSeparator:o}}function w(e){let t;t=f.i?e.replace(/\//g,h.h):e.replace(/\\/g,h.h);const n=Object(d.V)(t).replace(/\s/g,"");return{pathNormalized:t,normalized:n,normalizedLowercase:n.toLowerCase()}}function C(e){return Array.isArray(e)?y(e.map(e=>e.original).join(v)):y(e.original)}var S=n(38),k=n(16),x=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};class L extends a.a{constructor(e=Object.create(null)){super(e),this.options=e,e.canAcceptInBackground=!0}provideWithoutTextEditor(e){return this.provideLabelPick(e,Object(i.a)("cannotRunGotoSymbolWithoutEditor","To go to a symbol, first open a text editor with symbol information.")),o.a.None}provideWithTextEditor(e,t,n){const i=this.getModel(e);return i?l.m.has(i)?this.doProvideWithEditorSymbols(e,i,t,n):this.doProvideWithoutEditorSymbols(e,i,t,n):o.a.None}doProvideWithoutEditorSymbols(e,t,n,r){const s=new o.b;return this.provideLabelPick(n,Object(i.a)("cannotRunGotoSymbolWithoutSymbolProvider","The active text editor does not provide symbol information.")),(()=>x(this,void 0,void 0,(function*(){(yield this.waitForLanguageSymbolRegistry(t,s))&&!r.isCancellationRequested&&s.add(this.doProvideWithEditorSymbols(e,t,n,r))})))(),s}provideLabelPick(e,t){e.items=[{label:t,index:0,kind:14}],e.ariaLabel=t}waitForLanguageSymbolRegistry(e,t){return x(this,void 0,void 0,(function*(){if(l.m.has(e))return!0;let n;const i=new Promise(e=>n=e),r=t.add(l.m.onDidChange(()=>{l.m.has(e)&&(r.dispose(),n(!0))}));return t.add(Object(o.h)(()=>n(!1))),i}))}doProvideWithEditorSymbols(e,t,n,s){const a=new o.b;a.add(n.onDidAccept(t=>{const[i]=n.selectedItems;i&&i.range&&(this.gotoLocation(e,{range:i.range.selection,keyMods:n.keyMods,preserveFocus:t.inBackground}),t.inBackground||n.hide())})),a.add(n.onDidTriggerItemButton(({item:t})=>{t&&t.range&&(this.gotoLocation(e,{range:t.range.selection,keyMods:n.keyMods,forceSideBySide:!0}),n.hide())}));const l=this.getDocumentSymbols(t,!0,s);let c=void 0;const d=()=>x(this,void 0,void 0,(function*(){null==c||c.dispose(!0),n.busy=!1,c=new r.b(s),n.busy=!0;try{const e=y(n.value.substr(L.PREFIX.length).trim()),t=yield this.doGetSymbolPicks(l,e,void 0,c.token);if(s.isCancellationRequested)return;t.length>0?n.items=t:e.original.length>0?this.provideLabelPick(n,Object(i.a)("noMatchingSymbolResults","No matching editor symbols")):this.provideLabelPick(n,Object(i.a)("noSymbolResults","No editor symbols"))}finally{s.isCancellationRequested||(n.busy=!1)}}));a.add(n.onDidChangeValue(()=>d())),d();let u=!0;return a.add(n.onDidChangeActive(()=>{const[t]=n.activeItems;if(t&&t.range){if(u)return void(u=!1);e.revealRangeInCenter(t.range.selection,0),this.addDecorations(e,t.range.decoration)}})),a}doGetSymbolPicks(e,t,n,r){return x(this,void 0,void 0,(function*(){const o=yield e;if(r.isCancellationRequested)return[];const a=0===t.original.indexOf(L.SCOPE_PREFIX),c=a?1:0;let u,h;t.values&&t.values.length>1?(u=C(t.values[0]),h=C(t.values.slice(1))):u=t;const f=[];for(let e=0;e<o.length;e++){const r=o[e],a=Object(d.W)(r.name),g=`$(symbol-${l.A.toString(r.kind)||"property"}) ${a}`,m=g.length-a.length;let _=r.containerName;(null==n?void 0:n.extraContainerLabel)&&(_=_?`${n.extraContainerLabel} • ${_}`:n.extraContainerLabel);let b=void 0,v=void 0,y=void 0,w=void 0;if(t.original.length>c){let e=!1;if(u!==t&&([b,v]=p(g,Object.assign(Object.assign({},t),{values:void 0}),c,m),"number"==typeof b&&(e=!0)),"number"!=typeof b&&([b,v]=p(g,u,c,m),"number"!=typeof b))continue;if(!e&&h){if(_&&h.original.length>0&&([y,w]=p(_,h)),"number"!=typeof y)continue;"number"==typeof b&&(b+=y)}}const C=r.tags&&r.tags.indexOf(1)>=0;f.push({index:e,kind:r.kind,score:b,label:g,ariaLabel:a,description:_,highlights:C?void 0:{label:v,description:w},range:{selection:s.a.collapseToStart(r.selectionRange),decoration:r.range},strikethrough:C,buttons:(()=>{var e,t;const n=(null===(e=this.options)||void 0===e?void 0:e.openSideBySideDirection)?null===(t=this.options)||void 0===t?void 0:t.openSideBySideDirection():void 0;if(n)return[{iconClass:"right"===n?k.a.splitHorizontal.classNames:k.a.splitVertical.classNames,tooltip:"right"===n?Object(i.a)("openToSide","Open to the Side"):Object(i.a)("openToBottom","Open to the Bottom")}]})()})}const g=f.sort((e,t)=>a?this.compareByKindAndScore(e,t):this.compareByScore(e,t));let m=[];if(a){let e=void 0,t=void 0,n=0;function _(){t&&"number"==typeof e&&n>0&&(t.label=Object(d.x)(D[e]||M,n))}for(const i of g)e!==i.kind?(_(),e=i.kind,n=1,t={type:"separator"},m.push(t)):n++,m.push(i);_()}else g.length>0&&(m=[{label:Object(i.a)("symbols","symbols ({0})",f.length),type:"separator"},...g]);return m}))}compareByScore(e,t){if("number"!=typeof e.score&&"number"==typeof t.score)return 1;if("number"==typeof e.score&&"number"!=typeof t.score)return-1;if("number"==typeof e.score&&"number"==typeof t.score){if(e.score>t.score)return-1;if(e.score<t.score)return 1}return e.index<t.index?-1:e.index>t.index?1:0}compareByKindAndScore(e,t){const n=D[e.kind]||M,i=D[t.kind]||M,r=n.localeCompare(i);return 0===r?this.compareByScore(e,t):r}getDocumentSymbols(e,t,n){return x(this,void 0,void 0,(function*(){const i=yield c.b.create(e,n);if(n.isCancellationRequested)return[];const r=[];for(const e of i.children.values())e instanceof c.a?r.push(e.symbol):r.push(...S.a.map(e.children.values(),e=>e.symbol));let o=[];return t?this.flattenDocumentSymbols(o,r,""):o=r,o.sort((e,t)=>s.a.compareRangesUsingStarts(e.range,t.range))}))}flattenDocumentSymbols(e,t,n){for(const i of t)e.push({kind:i.kind,tags:i.tags,name:i.name,detail:i.detail,containerName:i.containerName||n,range:i.range,selectionRange:i.selectionRange,children:void 0}),i.children&&this.flattenDocumentSymbols(e,i.children,i.name)}}L.PREFIX="@",L.SCOPE_PREFIX=":",L.PREFIX_BY_CATEGORY=`${L.PREFIX}${L.SCOPE_PREFIX}`;const M=Object(i.a)("property","properties ({0})"),D={5:Object(i.a)("method","methods ({0})"),11:Object(i.a)("function","functions ({0})"),8:Object(i.a)("_constructor","constructors ({0})"),12:Object(i.a)("variable","variables ({0})"),4:Object(i.a)("class","classes ({0})"),22:Object(i.a)("struct","structs ({0})"),23:Object(i.a)("event","events ({0})"),24:Object(i.a)("operator","operators ({0})"),10:Object(i.a)("interface","interfaces ({0})"),2:Object(i.a)("namespace","namespaces ({0})"),3:Object(i.a)("package","packages ({0})"),25:Object(i.a)("typeParameter","type parameters ({0})"),1:Object(i.a)("modules","modules ({0})"),6:Object(i.a)("property","properties ({0})"),9:Object(i.a)("enum","enumerations ({0})"),21:Object(i.a)("enumMember","enumeration members ({0})"),14:Object(i.a)("string","strings ({0})"),0:Object(i.a)("file","files ({0})"),17:Object(i.a)("array","arrays ({0})"),15:Object(i.a)("number","numbers ({0})"),16:Object(i.a)("boolean","booleans ({0})"),18:Object(i.a)("object","objects ({0})"),19:Object(i.a)("key","keys ({0})"),7:Object(i.a)("field","fields ({0})"),13:Object(i.a)("constant","constants ({0})")};var E=n(46),T=n(127),O=n(33),N=n(20),I=n(44),A=n(6),R=n(4),P=n(7),j=n(97);n.d(t,"StandaloneGotoSymbolQuickAccessProvider",(function(){return F})),n.d(t,"GotoLineAction",(function(){return B}));let F=class extends L{constructor(e){super(),this.editorService=e,this.onDidActiveTextEditorControlChange=A.b.None}get activeTextEditorControl(){return Object(N.n)(this.editorService.getFocusedCodeEditor())}};F=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}([function(e,t){return function(n,i){t(n,i,e)}}(0,O.a)],F),E.a.as(T.b.Quickaccess).registerQuickAccessProvider({ctor:F,prefix:L.PREFIX,helpEntries:[{description:I.f.quickOutlineActionLabel,prefix:L.PREFIX,needsEditor:!0},{description:I.f.quickOutlineByCategoryActionLabel,prefix:L.PREFIX_BY_CATEGORY,needsEditor:!0}]});class B extends R.b{constructor(){super({id:"editor.action.quickOutline",label:I.f.quickOutlineActionLabel,alias:"Go to Symbol...",precondition:P.a.hasDocumentSymbolProvider,kbOpts:{kbExpr:P.a.focus,primary:3117,weight:100},contextMenuOpts:{group:"navigation",order:3}})}run(e){e.get(j.a).quickAccess.show(L.PREFIX)}}Object(R.k)(B)},function(e,t,n){"use strict";n.r(t);var i=n(0),r=n(4),o=n(7),s=n(3),a=n(22);class l{constructor(e,t){this._selection=e,this._isMovingLeft=t}getEditOperations(e,t){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;const n=this._selection.startLineNumber,i=this._selection.startColumn,r=this._selection.endColumn;if((!this._isMovingLeft||1!==i)&&(this._isMovingLeft||r!==e.getLineMaxColumn(n)))if(this._isMovingLeft){const o=new s.a(n,i-1,n,i),a=e.getValueInRange(o);t.addEditOperation(o,null),t.addEditOperation(new s.a(n,r,n,r),a)}else{const o=new s.a(n,r,n,r+1),a=e.getValueInRange(o);t.addEditOperation(o,null),t.addEditOperation(new s.a(n,i,n,i),a)}}computeCursorState(e,t){return this._isMovingLeft?new a.a(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new a.a(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}}class c extends r.b{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;let n=[],i=t.getSelections();for(const e of i)n.push(new l(e,this.left));t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}}Object(r.k)(class extends c{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:i.a("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:o.a.writable})}}),Object(r.k)(class extends c{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:i.a("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:o.a.writable})}})},function(e,t,n){"use strict";n.r(t);n(580);var i=n(2),r=n(12),o=n(4),s=n(10),a=n(3),l=n(22);class c{constructor(e,t,n){this.selection=e,this.targetPosition=t,this.copy=n,this.targetSelection=null}getEditOperations(e,t){let n=e.getValueInRange(this.selection);this.copy||t.addEditOperation(this.selection,null),t.addEditOperation(new a.a(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column),n),!this.selection.containsPosition(this.targetPosition)||this.copy&&(this.selection.getEndPosition().equals(this.targetPosition)||this.selection.getStartPosition().equals(this.targetPosition))?this.copy?this.targetSelection=new l.a(this.targetPosition.lineNumber,this.targetPosition.column,this.selection.endLineNumber-this.selection.startLineNumber+this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.targetPosition.lineNumber>this.selection.endLineNumber?this.targetSelection=new l.a(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.targetPosition.lineNumber<this.selection.endLineNumber?this.targetSelection=new l.a(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber+this.selection.endLineNumber-this.selection.startLineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.selection.endColumn<=this.targetPosition.column?this.targetSelection=new l.a(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,(this.selection.startLineNumber,this.selection.endLineNumber,this.targetPosition.column-this.selection.endColumn+this.selection.startColumn),this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column:this.selection.endColumn):this.targetSelection=new l.a(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column+this.selection.endColumn-this.selection.startColumn):this.targetSelection=this.selection}computeCursorState(e,t){return this.targetSelection}}var d=n(29);function u(e){return r.f?e.altKey:e.ctrlKey}n.d(t,"DragAndDropController",(function(){return h}));class h extends i.a{constructor(e){super(),this._editor=e,this._register(this._editor.onMouseDown(e=>this._onEditorMouseDown(e))),this._register(this._editor.onMouseUp(e=>this._onEditorMouseUp(e))),this._register(this._editor.onMouseDrag(e=>this._onEditorMouseDrag(e))),this._register(this._editor.onMouseDrop(e=>this._onEditorMouseDrop(e))),this._register(this._editor.onKeyDown(e=>this.onEditorKeyDown(e))),this._register(this._editor.onKeyUp(e=>this.onEditorKeyUp(e))),this._register(this._editor.onDidBlurEditorWidget(()=>this.onEditorBlur())),this._register(this._editor.onDidBlurEditorText(()=>this.onEditorBlur())),this._dndDecorationIds=[],this._mouseDown=!1,this._modifierPressed=!1,this._dragSelection=null}onEditorBlur(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1}onEditorKeyDown(e){this._editor.getOption(25)&&!this._editor.getOption(13)&&(u(e)&&(this._modifierPressed=!0),this._mouseDown&&u(e)&&this._editor.updateOptions({mouseStyle:"copy"}))}onEditorKeyUp(e){this._editor.getOption(25)&&!this._editor.getOption(13)&&(u(e)&&(this._modifierPressed=!1),this._mouseDown&&e.keyCode===h.TRIGGER_KEY_VALUE&&this._editor.updateOptions({mouseStyle:"default"}))}_onEditorMouseDown(e){this._mouseDown=!0}_onEditorMouseUp(e){this._mouseDown=!1,this._editor.updateOptions({mouseStyle:"text"})}_onEditorMouseDrag(e){let t=e.target;if(null===this._dragSelection){let e=(this._editor.getSelections()||[]).filter(e=>t.position&&e.containsPosition(t.position));if(1!==e.length)return;this._dragSelection=e[0]}u(e.event)?this._editor.updateOptions({mouseStyle:"copy"}):this._editor.updateOptions({mouseStyle:"default"}),t.position&&(this._dragSelection.containsPosition(t.position)?this._removeDecoration():this.showAt(t.position))}_onEditorMouseDrop(e){if(e.target&&(this._hitContent(e.target)||this._hitMargin(e.target))&&e.target.position){let t=new s.a(e.target.position.lineNumber,e.target.position.column);if(null===this._dragSelection){let n=null;if(e.event.shiftKey){let e=this._editor.getSelection();if(e){const{selectionStartLineNumber:i,selectionStartColumn:r}=e;n=[new l.a(i,r,t.lineNumber,t.column)]}}else n=(this._editor.getSelections()||[]).map(e=>e.containsPosition(t)?new l.a(t.lineNumber,t.column,t.lineNumber,t.column):e);this._editor.setSelections(n||[],"mouse")}else(!this._dragSelection.containsPosition(t)||(u(e.event)||this._modifierPressed)&&(this._dragSelection.getEndPosition().equals(t)||this._dragSelection.getStartPosition().equals(t)))&&(this._editor.pushUndoStop(),this._editor.executeCommand(h.ID,new c(this._dragSelection,t,u(e.event)||this._modifierPressed)),this._editor.pushUndoStop())}this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}showAt(e){let t=[{range:new a.a(e.lineNumber,e.column,e.lineNumber,e.column),options:h._DECORATION_OPTIONS}];this._dndDecorationIds=this._editor.deltaDecorations(this._dndDecorationIds,t),this._editor.revealPosition(e,1)}_removeDecoration(){this._dndDecorationIds=this._editor.deltaDecorations(this._dndDecorationIds,[])}_hitContent(e){return 6===e.type||7===e.type}_hitMargin(e){return 2===e.type||3===e.type||4===e.type}dispose(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1,super.dispose()}}h.ID="editor.contrib.dragAndDrop",h.TRIGGER_KEY_VALUE=r.f?6:5,h._DECORATION_OPTIONS=d.a.register({className:"dnd-target"}),Object(o.m)(h.ID,h)},function(e,t,n){"use strict";n.r(t);var i=n(0),r=n(2),o=n(270),s=n(100);class a extends o.a{constructor(){super({canAcceptInBackground:!0})}provideWithoutTextEditor(e){const t=Object(i.a)("cannotRunGotoLine","Open a text editor first to go to a line.");return e.items=[{label:t}],e.ariaLabel=t,r.a.None}provideWithTextEditor(e,t,n){const i=new r.b;i.add(t.onDidAccept(n=>{const[i]=t.selectedItems;if(i){if(!this.isValidLineNumber(e,i.lineNumber))return;this.gotoLocation(e,{range:this.toRange(i.lineNumber,i.column),keyMods:t.keyMods,preserveFocus:n.inBackground}),n.inBackground||t.hide()}}));const o=()=>{const n=this.parsePosition(e,t.value.trim().substr(a.PREFIX.length)),i=this.getPickLabel(e,n.lineNumber,n.column);if(t.items=[{lineNumber:n.lineNumber,column:n.column,label:i}],t.ariaLabel=i,!this.isValidLineNumber(e,n.lineNumber))return void this.clearDecorations(e);const r=this.toRange(n.lineNumber,n.column);e.revealRangeInCenter(r,0),this.addDecorations(e,r)};o(),i.add(t.onDidChangeValue(()=>o()));const l=Object(s.a)(e);if(l){2===l.getOptions().get(52).renderType&&(l.updateOptions({lineNumbers:"on"}),i.add(Object(r.h)(()=>l.updateOptions({lineNumbers:"relative"}))))}return i}toRange(e=1,t=1){return{startLineNumber:e,startColumn:t,endLineNumber:e,endColumn:t}}parsePosition(e,t){const n=t.split(/,|:|#/).map(e=>parseInt(e,10)).filter(e=>!isNaN(e)),i=this.lineCount(e)+1;return{lineNumber:n[0]>0?n[0]:i+n[0],column:n[1]}}getPickLabel(e,t,n){if(this.isValidLineNumber(e,t))return this.isValidColumn(e,t,n)?Object(i.a)("gotoLineColumnLabel","Go to line {0} and column {1}.",t,n):Object(i.a)("gotoLineLabel","Go to line {0}.",t);const r=e.getPosition()||{lineNumber:1,column:1},o=this.lineCount(e);return o>1?Object(i.a)("gotoLineLabelEmptyWithLimit","Current Line: {0}, Character: {1}. Type a line number between 1 and {2} to navigate to.",r.lineNumber,r.column,o):Object(i.a)("gotoLineLabelEmpty","Current Line: {0}, Character: {1}. Type a line number to navigate to.",r.lineNumber,r.column)}isValidLineNumber(e,t){return!(!t||"number"!=typeof t)&&(t>0&&t<=this.lineCount(e))}isValidColumn(e,t,n){if(!n||"number"!=typeof n)return!1;const i=this.getModel(e);if(!i)return!1;const r={lineNumber:t,column:n};return i.validatePosition(r).equals(r)}lineCount(e){var t,n;return null!==(n=null===(t=this.getModel(e))||void 0===t?void 0:t.getLineCount())&&void 0!==n?n:0}}a.PREFIX=":";var l=n(46),c=n(127),d=n(33),u=n(20),h=n(44),f=n(6),g=n(4),p=n(7),m=n(97);n.d(t,"StandaloneGotoLineQuickAccessProvider",(function(){return _})),n.d(t,"GotoLineAction",(function(){return b}));let _=class extends a{constructor(e){super(),this.editorService=e,this.onDidActiveTextEditorControlChange=f.b.None}get activeTextEditorControl(){return Object(u.n)(this.editorService.getFocusedCodeEditor())}};_=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}([function(e,t){return function(n,i){t(n,i,e)}}(0,d.a)],_),l.a.as(c.b.Quickaccess).registerQuickAccessProvider({ctor:_,prefix:_.PREFIX,helpEntries:[{description:h.b.gotoLineActionLabel,needsEditor:!0}]});class b extends g.b{constructor(){super({id:"editor.action.gotoLine",label:h.b.gotoLineActionLabel,alias:"Go to Line/Column...",precondition:void 0,kbOpts:{kbExpr:p.a.focus,primary:2085,mac:{primary:293},weight:100}})}run(e){e.get(m.a).quickAccess.show(_.PREFIX)}}Object(g.k)(b)},function(e,t,n){"use strict";n.r(t);var i=n(0),r=n(3),o=n(22),s=n(7),a=n(4),l=n(89);class c{constructor(e,t,n){this._editRange=e,this._originalSelection=t,this._text=n}getEditOperations(e,t){t.addTrackedEditOperation(this._editRange,this._text)}computeCursorState(e,t){const n=t.getInverseEditOperations()[0].range;return this._originalSelection.isEmpty()?new o.a(n.endLineNumber,Math.min(this._originalSelection.positionColumn,n.endColumn),n.endLineNumber,Math.min(this._originalSelection.positionColumn,n.endColumn)):new o.a(n.endLineNumber,n.endColumn-this._text.length,n.endLineNumber,n.endColumn)}}var d=n(76),u=n(18),h=n(47),f=n(29),g=n(19),p=n(15),m=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},_=function(e,t){return function(n,i){t(n,i,e)}};let b=class e{constructor(e,t){this.decorationIds=[],this.editor=e,this.editorWorkerService=t}static get(t){return t.getContribution(e.ID)}dispose(){}run(t,n){this.currentRequest&&this.currentRequest.cancel();const i=this.editor.getSelection(),s=this.editor.getModel();if(!s||!i)return;let a=i;if(a.startLineNumber!==a.endLineNumber)return;const l=new d.a(this.editor,5),u=s.uri;return this.editorWorkerService.canNavigateValueSet(u)?(this.currentRequest=Object(g.f)(e=>this.editorWorkerService.navigateValueSet(u,a,n)),this.currentRequest.then(n=>{if(!n||!n.range||!n.value)return;if(!l.validate(this.editor))return;let i=r.a.lift(n.range),s=n.range,d=n.value.length-(a.endColumn-a.startColumn);s={startLineNumber:s.startLineNumber,startColumn:s.startColumn,endLineNumber:s.endLineNumber,endColumn:s.startColumn+n.value.length},d>1&&(a=new o.a(a.startLineNumber,a.startColumn,a.endLineNumber,a.endColumn+d-1));const u=new c(i,a,n.value);this.editor.pushUndoStop(),this.editor.executeCommand(t,u),this.editor.pushUndoStop(),this.decorationIds=this.editor.deltaDecorations(this.decorationIds,[{range:s,options:e.DECORATION}]),this.decorationRemover&&this.decorationRemover.cancel(),this.decorationRemover=Object(g.l)(350),this.decorationRemover.then(()=>this.decorationIds=this.editor.deltaDecorations(this.decorationIds,[])).catch(p.e)}).catch(p.e)):Promise.resolve(void 0)}};b.ID="editor.contrib.inPlaceReplaceController",b.DECORATION=f.a.register({className:"valueSetReplacement"}),b=m([_(1,l.a)],b);class v extends a.b{constructor(){super({id:"editor.action.inPlaceReplace.up",label:i.a("InPlaceReplaceAction.previous.label","Replace with Previous Value"),alias:"Replace with Previous Value",precondition:s.a.writable,kbOpts:{kbExpr:s.a.editorTextFocus,primary:3154,weight:100}})}run(e,t){const n=b.get(t);return n?n.run(this.id,!0):Promise.resolve(void 0)}}class y extends a.b{constructor(){super({id:"editor.action.inPlaceReplace.down",label:i.a("InPlaceReplaceAction.next.label","Replace with Next Value"),alias:"Replace with Next Value",precondition:s.a.writable,kbOpts:{kbExpr:s.a.editorTextFocus,primary:3156,weight:100}})}run(e,t){const n=b.get(t);return n?n.run(this.id,!1):Promise.resolve(void 0)}}Object(a.m)(b.ID,b),Object(a.k)(v),Object(a.k)(y),Object(u.g)((e,t)=>{const n=e.getColor(h.d);n&&t.addRule(`.monaco-editor.vs .valueSetReplacement { outline: solid 2px ${n}; }`)})},function(e,t,n){"use strict";n.r(t);n(617);var i=n(0),r=n(19),o=n(26),s=n(15),a=n(81),l=n(2),c=n(12),d=n(4),u=n(29),h=n(11),f=n(271),g=n(24),p=n(3),m=n(54),_=n(28),b=n(14),v=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};class y{constructor(e,t){this._link=e,this._provider=t}toJSON(){return{range:this.range,url:this.url,tooltip:this.tooltip}}get range(){return this._link.range}get url(){return this._link.url}get tooltip(){return this._link.tooltip}resolve(e){return v(this,void 0,void 0,(function*(){return this._link.url?this._link.url:"function"==typeof this._provider.resolveLink?Promise.resolve(this._provider.resolveLink(this._link,e)).then(t=>(this._link=t||this._link,this._link.url?this.resolve(e):Promise.reject(new Error("missing")))):Promise.reject(new Error("missing"))}))}}class w extends l.a{constructor(e){super();let t=[];for(const[n,i]of e){const e=n.links.map(e=>new y(e,i));t=w._union(t,e),Object(l.g)(n)&&this._register(n)}this.links=t}static _union(e,t){let n,i,r,o,s=[];for(n=0,r=0,i=e.length,o=t.length;n<i&&r<o;){const i=e[n],o=t[r];p.a.areIntersectingOrTouching(i.range,o.range)?n++:p.a.compareRangesUsingStarts(i.range,o.range)<0?(s.push(i),n++):(s.push(o),r++)}for(;n<i;n++)s.push(e[n]);for(;r<o;r++)s.push(t[r]);return s}}function C(e,t){const n=[],i=h.s.ordered(e).reverse().map((i,r)=>Promise.resolve(i.provideLinks(e,t)).then(e=>{e&&(n[r]=[e,i])},s.f));return Promise.all(i).then(()=>{const e=new w(Object(b.d)(n));return t.isCancellationRequested?(e.dispose(),new w([])):e})}_.a.registerCommand("_executeLinkProvider",(e,...t)=>v(void 0,void 0,void 0,(function*(){const[n]=t;if(!(n instanceof g.a))return[];const i=e.get(m.a).getModel(n);if(!i)return[];const r=yield C(i,o.a.None);if(!r)return[];const s=r.links.slice(0);return r.dispose(),s})));var S=n(40),k=n(66),x=n(5),L=n(18),M=n(35),D=n(42),E=n(8);n.d(t,"LinkDetector",(function(){return R}));var T=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},O=function(e,t){return function(n,i){t(n,i,e)}},N=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};const I={general:u.a.register({stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link"}),active:u.a.register({stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link-active"})};class A{constructor(e,t){this.link=e,this.decorationId=t}static decoration(e,t){return{range:e.range,options:A._getOptions(e,t,!1)}}static _getOptions(e,t,n){const r=Object.assign({},n?I.active:I.general);return r.hoverMessage=function(e,t){const n=e.url&&/^command:/i.test(e.url.toString()),r=e.tooltip?e.tooltip:n?i.a("links.navigate.executeCmd","Execute command"):i.a("links.navigate.follow","Follow link"),o=t?c.f?i.a("links.navigate.kb.meta.mac","cmd + click"):i.a("links.navigate.kb.meta","ctrl + click"):c.f?i.a("links.navigate.kb.alt.mac","option + click"):i.a("links.navigate.kb.alt","alt + click");if(e.url){return new a.a("",!0).appendMarkdown(`[${r}](${e.url.toString()}) (${o})`)}return(new a.a).appendText(`${r} (${o})`)}(e,t),r}activate(e,t){e.changeDecorationOptions(this.decorationId,A._getOptions(this.link,t,!0))}deactivate(e,t){e.changeDecorationOptions(this.decorationId,A._getOptions(this.link,t,!1))}}let R=class e{constructor(e,t,n){this.listenersToRemove=new l.b,this.editor=e,this.openerService=t,this.notificationService=n;let i=new f.a(e);this.listenersToRemove.add(i),this.listenersToRemove.add(i.onMouseMoveOrRelevantKeyDown(([e,t])=>{this._onEditorMouseMove(e,t)})),this.listenersToRemove.add(i.onExecute(e=>{this.onEditorMouseUp(e)})),this.listenersToRemove.add(i.onCancel(e=>{this.cleanUpActiveLinkDecoration()})),this.enabled=e.getOption(54),this.listenersToRemove.add(e.onDidChangeConfiguration(t=>{const n=e.getOption(54);this.enabled!==n&&(this.enabled=n,this.updateDecorations([]),this.stop(),this.beginCompute())})),this.listenersToRemove.add(e.onDidChangeModelContent(e=>this.onChange())),this.listenersToRemove.add(e.onDidChangeModel(e=>this.onModelChanged())),this.listenersToRemove.add(e.onDidChangeModelLanguage(e=>this.onModelModeChanged())),this.listenersToRemove.add(h.s.onDidChange(e=>this.onModelModeChanged())),this.timeout=new r.e,this.computePromise=null,this.activeLinksList=null,this.currentOccurrences={},this.activeLinkDecorationId=null,this.beginCompute()}static get(t){return t.getContribution(e.ID)}onModelChanged(){this.currentOccurrences={},this.activeLinkDecorationId=null,this.stop(),this.beginCompute()}onModelModeChanged(){this.stop(),this.beginCompute()}onChange(){this.timeout.setIfNotSet(()=>this.beginCompute(),e.RECOMPUTE_TIME)}beginCompute(){return N(this,void 0,void 0,(function*(){if(!this.editor.hasModel()||!this.enabled)return;const e=this.editor.getModel();if(h.s.has(e)){this.activeLinksList&&(this.activeLinksList.dispose(),this.activeLinksList=null),this.computePromise=r.f(t=>C(e,t));try{this.activeLinksList=yield this.computePromise,this.updateDecorations(this.activeLinksList.links)}catch(e){Object(s.e)(e)}finally{this.computePromise=null}}}))}updateDecorations(e){const t="altKey"===this.editor.getOption(61);let n=[],i=Object.keys(this.currentOccurrences);for(let e=0,t=i.length;e<t;e++){let t=i[e],r=this.currentOccurrences[t];n.push(r.decorationId)}let r=[];if(e)for(const n of e)r.push(A.decoration(n,t));let o=this.editor.deltaDecorations(n,r);this.currentOccurrences={},this.activeLinkDecorationId=null;for(let t=0,n=o.length;t<n;t++){let n=new A(e[t],o[t]);this.currentOccurrences[n.decorationId]=n}}_onEditorMouseMove(e,t){const n="altKey"===this.editor.getOption(61);if(this.isEnabled(e,t)){this.cleanUpActiveLinkDecoration();const t=this.getLinkOccurrence(e.target.position);t&&this.editor.changeDecorations(e=>{t.activate(e,n),this.activeLinkDecorationId=t.decorationId})}else this.cleanUpActiveLinkDecoration()}cleanUpActiveLinkDecoration(){const e="altKey"===this.editor.getOption(61);if(this.activeLinkDecorationId){const t=this.currentOccurrences[this.activeLinkDecorationId];t&&this.editor.changeDecorations(n=>{t.deactivate(n,e)}),this.activeLinkDecorationId=null}}onEditorMouseUp(e){if(!this.isEnabled(e))return;const t=this.getLinkOccurrence(e.target.position);t&&this.openLinkOccurrence(t,e.hasSideBySideModifier,!0)}openLinkOccurrence(e,t,n=!1){if(!this.openerService)return;const{link:r}=e;r.resolve(o.a.None).then(e=>{if("string"==typeof e&&this.editor.hasModel()){const t=this.editor.getModel().uri;if(t.scheme===M.b.file&&E.S(e,"file:")){const n=g.a.parse(e);if(n.scheme===M.b.file){const i=D.i(n);let r=null;E.S(i,"/./")?r=`.${i.substr(1)}`:E.S(i,"//./")&&(r=`.${i.substr(2)}`),r&&(e=D.g(t,r))}}}return this.openerService.open(e,{openToSide:t,fromUserGesture:n})},e=>{const t=e instanceof Error?e.message:e;"invalid"===t?this.notificationService.warn(i.a("invalid.url","Failed to open this link because it is not well-formed: {0}",r.url.toString())):"missing"===t?this.notificationService.warn(i.a("missing.url","Failed to open this link because its target is missing.")):Object(s.e)(e)})}getLinkOccurrence(e){if(!this.editor.hasModel()||!e)return null;const t=this.editor.getModel().getDecorationsInRange({startLineNumber:e.lineNumber,startColumn:e.column,endLineNumber:e.lineNumber,endColumn:e.column},0,!0);for(const e of t){const t=this.currentOccurrences[e.id];if(t)return t}return null}isEnabled(e,t){return Boolean(6===e.target.type&&(e.hasTriggerModifier||t&&t.keyCodeIsTriggerKey))}stop(){this.timeout.cancel(),this.activeLinksList&&this.activeLinksList.dispose(),this.computePromise&&(this.computePromise.cancel(),this.computePromise=null)}dispose(){this.listenersToRemove.dispose(),this.stop(),this.timeout.dispose()}};R.ID="editor.linkDetector",R.RECOMPUTE_TIME=1e3,R=T([O(1,k.a),O(2,S.a)],R);class P extends d.b{constructor(){super({id:"editor.action.openLink",label:i.a("label","Open Link"),alias:"Open Link",precondition:void 0})}run(e,t){let n=R.get(t);if(!n)return;if(!t.hasModel())return;let i=t.getSelections();for(let e of i){let t=n.getLinkOccurrence(e.getEndPosition());t&&n.openLinkOccurrence(t,!1)}}}Object(d.m)(R.ID,R),Object(d.k)(P),Object(L.g)((e,t)=>{const n=e.getColor(x.r);n&&t.addRule(`.monaco-editor .detected-link-active { color: ${n} !important; }`)})},function(e,t,n){"use strict";n.r(t);var i=n(46),r=n(127),o=n(44),s=n(97),a=n(0),l=n(2),c=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},d=function(e,t){return function(n,i){t(n,i,e)}};let u=class e{constructor(e){this.quickInputService=e,this.registry=i.a.as(r.b.Quickaccess)}provide(t){const n=new l.b;n.add(t.onDidAccept(()=>{const[e]=t.selectedItems;e&&this.quickInputService.quickAccess.show(e.prefix,{preserveValue:!0})})),n.add(t.onDidChangeValue(t=>{const n=this.registry.getQuickAccessProvider(t.substr(e.PREFIX.length));n&&n.prefix&&n.prefix!==e.PREFIX&&this.quickInputService.quickAccess.show(n.prefix,{preserveValue:!0})}));const{editorProviders:i,globalProviders:r}=this.getQuickAccessProviders();return t.items=0===i.length||0===r.length?[...0===i.length?r:i]:[{label:Object(a.a)("globalCommands","global commands"),type:"separator"},...r,{label:Object(a.a)("editorCommands","editor commands"),type:"separator"},...i],n}getQuickAccessProviders(){const t=[],n=[];for(const i of this.registry.getQuickAccessProviders().sort((e,t)=>e.prefix.localeCompare(t.prefix)))if(i.prefix!==e.PREFIX)for(const e of i.helpEntries){const r=e.prefix||i.prefix,o=r||"…";(e.needsEditor?n:t).push({prefix:r,label:o,ariaLabel:Object(a.a)("helpPickAriaLabel","{0}, {1}",o,e.description),description:e.description})}return{editorProviders:n,globalProviders:t}}};u.PREFIX="?",u=c([d(0,s.a)],u),i.a.as(r.b.Quickaccess).registerQuickAccessProvider({ctor:u,prefix:"",helpEntries:[{description:o.e.helpQuickAccessActionLabel,needsEditor:!0}]})},function(e,t,n){"use strict";n.r(t);var i=n(0),r=n(15),o=n(9),s=n(70),a=n(4),l=n(7),c=(n(620),n(2)),d=n(10),u=n(5),h=n(18),f=n(41),g=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},p=function(e,t){return function(n,i){t(n,i,e)}};const m=new o.c("renameInputVisible",!1);let _=class{constructor(e,t,n,i,r){this._editor=e,this._acceptKeybindings=t,this._themeService=n,this._keybindingService=i,this._disposables=new c.b,this.allowEditorOverflow=!0,this._visibleContextKey=m.bindTo(r),this._editor.addContentWidget(this),this._disposables.add(this._editor.onDidChangeConfiguration(e=>{e.hasChanged(36)&&this._updateFont()})),this._disposables.add(n.onDidColorThemeChange(this._updateStyles,this))}dispose(){this._disposables.dispose(),this._editor.removeContentWidget(this)}getId(){return"__renameInputWidget"}getDomNode(){if(!this._domNode){this._domNode=document.createElement("div"),this._domNode.className="monaco-editor rename-box",this._input=document.createElement("input"),this._input.className="rename-input",this._input.type="text",this._input.setAttribute("aria-label",Object(i.a)("renameAriaLabel","Rename input. Type new name and press Enter to commit.")),this._domNode.appendChild(this._input),this._label=document.createElement("div"),this._label.className="rename-label",this._domNode.appendChild(this._label);const e=()=>{var e,t;const[n,r]=this._acceptKeybindings;this._keybindingService.lookupKeybinding(n),this._label.innerText=Object(i.a)({key:"label",comment:['placeholders are keybindings, e.g "F2 to Rename, Shift+F2 to Preview"']},"{0} to Rename, {1} to Preview",null===(e=this._keybindingService.lookupKeybinding(n))||void 0===e?void 0:e.getLabel(),null===(t=this._keybindingService.lookupKeybinding(r))||void 0===t?void 0:t.getLabel())};e(),this._disposables.add(this._keybindingService.onDidUpdateKeybindings(e)),this._updateFont(),this._updateStyles(this._themeService.getColorTheme())}return this._domNode}_updateStyles(e){var t,n,i,r;if(!this._input||!this._domNode)return;const o=e.getColor(u.uc);this._domNode.style.backgroundColor=String(null!==(t=e.getColor(u.U))&&void 0!==t?t:""),this._domNode.style.boxShadow=o?` 0 2px 8px ${o}`:"",this._domNode.style.color=String(null!==(n=e.getColor(u.hb))&&void 0!==n?n:""),this._input.style.backgroundColor=String(null!==(i=e.getColor(u.fb))&&void 0!==i?i:"");const s=e.getColor(u.gb);this._input.style.borderWidth=s?"1px":"0px",this._input.style.borderStyle=s?"solid":"none",this._input.style.borderColor=null!==(r=null==s?void 0:s.toString())&&void 0!==r?r:"none"}_updateFont(){if(!this._input||!this._label)return;const e=this._editor.getOption(36);this._input.style.fontFamily=e.fontFamily,this._input.style.fontWeight=e.fontWeight,this._input.style.fontSize=`${e.fontSize}px`,this._label.style.fontSize=`${.8*e.fontSize}px`}getPosition(){return this._visible?{position:this._position,preference:[2,1]}:null}acceptInput(e){this._currentAcceptInput&&this._currentAcceptInput(e)}cancelInput(e){this._currentCancelInput&&this._currentCancelInput(e)}getInput(e,t,n,i,r,o){this._domNode.classList.toggle("preview",r),this._position=new d.a(e.startLineNumber,e.startColumn),this._input.value=t,this._input.setAttribute("selectionStart",n.toString()),this._input.setAttribute("selectionEnd",i.toString()),this._input.size=Math.max(1.1*(e.endColumn-e.startColumn),20);const s=new c.b;return new Promise(e=>{this._currentCancelInput=t=>(this._currentAcceptInput=void 0,this._currentCancelInput=void 0,e(t),!0),this._currentAcceptInput=n=>{0!==this._input.value.trim().length&&this._input.value!==t?(this._currentAcceptInput=void 0,this._currentCancelInput=void 0,e({newName:this._input.value,wantsPreview:r&&n})):this.cancelInput(!0)},o.onCancellationRequested(()=>this.cancelInput(!0)),s.add(this._editor.onDidBlurEditorWidget(()=>this.cancelInput(!1))),this._show()}).finally(()=>{s.dispose(),this._hide()})}_show(){this._editor.revealLineInCenterIfOutsideViewport(this._position.lineNumber,0),this._visible=!0,this._visibleContextKey.set(!0),this._editor.layoutContentWidget(this),setTimeout(()=>{this._input.focus(),this._input.setSelectionRange(parseInt(this._input.getAttribute("selectionStart")),parseInt(this._input.getAttribute("selectionEnd")))},100)}_hide(){this._visible=!1,this._visibleContextKey.reset(),this._editor.layoutContentWidget(this)}};_=g([p(2,h.c),p(3,f.a),p(4,o.b)],_);var b=n(11),v=n(55),y=n(3),w=n(153),C=n(76),S=n(40),k=n(152),x=n(24),L=n(33),M=n(26),D=n(19),E=n(92),T=n(17),O=n(46),N=n(120),I=n(162),A=n(20);n.d(t,"rename",(function(){return B})),n.d(t,"RenameAction",(function(){return H}));var R=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},P=function(e,t){return function(n,i){t(n,i,e)}},j=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};class F{constructor(e,t){this.model=e,this.position=t,this._providerRenameIdx=0,this._providers=b.w.ordered(e)}hasProvider(){return this._providers.length>0}resolveRenameLocation(e){return j(this,void 0,void 0,(function*(){const t=[];for(this._providerRenameIdx=0;this._providerRenameIdx<this._providers.length;this._providerRenameIdx++){const n=this._providers[this._providerRenameIdx];if(!n.resolveRenameLocation)break;let i=yield n.resolveRenameLocation(this.model,this.position,e);if(i){if(!i.rejectReason)return i;t.push(i.rejectReason)}}const n=this.model.getWordAtPosition(this.position);return n?{range:new y.a(this.position.lineNumber,n.startColumn,this.position.lineNumber,n.endColumn),text:n.word,rejectReason:t.length>0?t.join("\n"):void 0}:{range:y.a.fromPositions(this.position),text:"",rejectReason:t.length>0?t.join("\n"):void 0}}))}provideRenameEdits(e,t){return j(this,void 0,void 0,(function*(){return this._provideRenameEdits(e,this._providerRenameIdx,[],t)}))}_provideRenameEdits(e,t,n,r){return j(this,void 0,void 0,(function*(){const o=this._providers[t];if(!o)return{edits:[],rejectReason:n.join("\n")};const s=yield o.provideRenameEdits(this.model,this.position,e,r);return s?s.rejectReason?this._provideRenameEdits(e,t+1,n.concat(s.rejectReason),r):s:this._provideRenameEdits(e,t+1,n.concat(i.a("no result","No result.")),r)}))}}function B(e,t,n){return j(this,void 0,void 0,(function*(){const i=new F(e,t),r=yield i.resolveRenameLocation(M.a.None);return(null==r?void 0:r.rejectReason)?{edits:[],rejectReason:r.rejectReason}:i.provideRenameEdits(n,M.a.None)}))}let W=class e{constructor(e,t,n,i,r,o,s){this.editor=e,this._instaService=t,this._notificationService=n,this._bulkEditService=i,this._progressService=r,this._logService=o,this._configService=s,this._dispoableStore=new c.b,this._cts=new M.b,this._renameInputField=this._dispoableStore.add(new D.b(()=>this._dispoableStore.add(this._instaService.createInstance(_,this.editor,["acceptRenameInput","acceptRenameInputWithPreview"]))))}static get(t){return t.getContribution(e.ID)}dispose(){this._dispoableStore.dispose(),this._cts.dispose(!0)}run(){return j(this,void 0,void 0,(function*(){if(this._cts.dispose(!0),!this.editor.hasModel())return;const e=this.editor.getPosition(),t=new F(this.editor.getModel(),e);if(!t.hasProvider())return;let n;this._cts=new C.b(this.editor,5);try{const e=t.resolveRenameLocation(this._cts.token);this._progressService.showWhile(e,250),n=yield e}catch(t){return void w.a.get(this.editor).showMessage(t||i.a("resolveRenameLocationFailed","An unknown error occurred while resolving rename location"),e)}if(!n)return;if(n.rejectReason)return void w.a.get(this.editor).showMessage(n.rejectReason,e);if(this._cts.token.isCancellationRequested)return;this._cts.dispose(),this._cts=new C.b(this.editor,5,n.range);let r=this.editor.getSelection(),o=0,s=n.text.length;y.a.isEmpty(r)||y.a.spansMultipleLines(r)||!y.a.containsRange(n.range,r)||(o=Math.max(0,r.startColumn-n.range.startColumn),s=Math.min(n.range.endColumn,r.endColumn)-n.range.startColumn);const a=this._bulkEditService.hasPreviewHandler()&&this._configService.getValue(this.editor.getModel().uri,"editor.rename.enablePreview"),l=yield this._renameInputField.value.getInput(n.range,n.text,o,s,a,this._cts.token);if("boolean"==typeof l)return void(l&&this.editor.focus());this.editor.focus();const c=Object(D.j)(t.provideRenameEdits(l.newName,this._cts.token),this._cts.token).then(e=>j(this,void 0,void 0,(function*(){e&&this.editor.hasModel()&&(e.rejectReason?this._notificationService.info(e.rejectReason):this._bulkEditService.apply(k.b.convert(e),{editor:this.editor,showPreview:l.wantsPreview,label:i.a("label","Renaming '{0}'",null==n?void 0:n.text),quotableLabel:i.a("quotableLabel","Renaming {0}",null==n?void 0:n.text)}).then(e=>{e.ariaSummary&&Object(v.a)(i.a("aria","Successfully renamed '{0}' to '{1}'. Summary: {2}",n.text,l.newName,e.ariaSummary))}).catch(e=>{this._notificationService.error(i.a("rename.failedApply","Rename failed to apply edits")),this._logService.error(e)}))})),e=>{this._notificationService.error(i.a("rename.failed","Rename failed to compute edits")),this._logService.error(e)});return this._progressService.showWhile(c,250),c}))}acceptRenameInput(e){this._renameInputField.value.acceptInput(e)}cancelRenameInput(){this._renameInputField.value.cancelInput(!0)}};W.ID="editor.contrib.renameController",W=R([P(1,T.a),P(2,S.a),P(3,k.a),P(4,s.a),P(5,E.b),P(6,I.a)],W);class H extends a.b{constructor(){super({id:"editor.action.rename",label:i.a("rename.label","Rename Symbol"),alias:"Rename Symbol",precondition:o.a.and(l.a.writable,l.a.hasRenameProvider),kbOpts:{kbExpr:l.a.editorTextFocus,primary:60,weight:100},contextMenuOpts:{group:"1_modification",order:1.1}})}runCommand(e,t){const n=e.get(L.a),[i,o]=Array.isArray(t)&&t||[void 0,void 0];return x.a.isUri(i)&&d.a.isIPosition(o)?n.openCodeEditor({resource:i},n.getActiveCodeEditor()).then(e=>{e&&(e.setPosition(o),e.invokeWithinContext(t=>(this.reportTelemetry(t,e),this.run(t,e))))},r.e):super.runCommand(e,t)}run(e,t){const n=W.get(t);return n?n.run():Promise.resolve()}}Object(a.m)(W.ID,W),Object(a.k)(H);const Y=a.c.bindToContribution(W.get);Object(a.l)(new Y({id:"acceptRenameInput",precondition:m,handler:e=>e.acceptRenameInput(!1),kbOpts:{weight:199,kbExpr:l.a.focus,primary:3}})),Object(a.l)(new Y({id:"acceptRenameInputWithPreview",precondition:o.a.and(m,o.a.has("config.editor.rename.enablePreview")),handler:e=>e.acceptRenameInput(!0),kbOpts:{weight:199,kbExpr:l.a.focus,primary:1027}})),Object(a.l)(new Y({id:"cancelRenameInput",precondition:m,handler:e=>e.cancelRenameInput(),kbOpts:{weight:199,kbExpr:l.a.focus,primary:9,secondary:[1033]}})),Object(a.p)("_executeDocumentRenameProvider",(function(e,t,...n){const[i]=n;return Object(A.b)("string"==typeof i),B(e,t,i)})),O.a.as(N.a.Configuration).registerConfiguration({id:"editor",properties:{"editor.rename.enablePreview":{scope:5,description:i.a("enablePreview","Enable/disable the ability to preview changes before renaming"),default:!0,type:"boolean"}}})},function(e,t,n){"use strict";n.r(t);var i=n(14),r=n(26),o=n(4),s=n(10),a=n(3),l=n(22),c=n(7),d=n(11),u=n(0),h=n(25),f=n(2),g=n(8);var p=n(273),m=n(28),_=n(15);n.d(t,"provideSelectionRanges",(function(){return C}));var b=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};class v{constructor(e,t){this.index=e,this.ranges=t}mov(e){let t=this.index+(e?1:-1);if(t<0||t>=this.ranges.length)return this;const n=new v(t,this.ranges);return n.ranges[t].equalsRange(this.ranges[this.index])?n.mov(e):n}}class y{constructor(e){this._ignoreSelection=!1,this._editor=e}static get(e){return e.getContribution(y.ID)}dispose(){Object(f.f)(this._selectionListener)}run(e){if(!this._editor.hasModel())return;const t=this._editor.getSelections(),n=this._editor.getModel();if(!d.x.has(n))return;let o=Promise.resolve(void 0);return this._state||(o=C(n,t.map(e=>e.getPosition()),r.a.None).then(e=>{if(i.o(e)&&e.length===t.length&&this._editor.hasModel()&&i.g(this._editor.getSelections(),t,(e,t)=>e.equalsSelection(t))){for(let n=0;n<e.length;n++)e[n]=e[n].filter(e=>e.containsPosition(t[n].getStartPosition())&&e.containsPosition(t[n].getEndPosition())),e[n].unshift(t[n]);this._state=e.map(e=>new v(0,e)),Object(f.f)(this._selectionListener),this._selectionListener=this._editor.onDidChangeCursorPosition(()=>{this._ignoreSelection||(Object(f.f)(this._selectionListener),this._state=void 0)})}})),o.then(()=>{if(!this._state)return;this._state=this._state.map(t=>t.mov(e));const t=this._state.map(e=>l.a.fromPositions(e.ranges[e.index].getStartPosition(),e.ranges[e.index].getEndPosition()));this._ignoreSelection=!0;try{this._editor.setSelections(t)}finally{this._ignoreSelection=!1}})}}y.ID="editor.contrib.smartSelectController";class w extends o.b{constructor(e,t){super(t),this._forward=e}run(e,t){return b(this,void 0,void 0,(function*(){let e=y.get(t);e&&(yield e.run(this._forward))}))}}m.a.registerCommandAlias("editor.action.smartSelect.grow","editor.action.smartSelect.expand");function C(e,t,n){const r=d.x.all(e);1===r.length&&r.unshift(new p.a);let o=[],l=[];for(const s of r)o.push(Promise.resolve(s.provideSelectionRanges(e,t,n)).then(e=>{if(i.o(e)&&e.length===t.length)for(let n=0;n<t.length;n++){l[n]||(l[n]=[]);for(const i of e[n])a.a.isIRange(i.range)&&a.a.containsPosition(i.range,t[n])&&l[n].push(a.a.lift(i.range))}},_.f));return Promise.all(o).then(()=>l.map(t=>{if(0===t.length)return[];t.sort((e,t)=>s.a.isBefore(e.getStartPosition(),t.getStartPosition())?1:s.a.isBefore(t.getStartPosition(),e.getStartPosition())?-1:s.a.isBefore(e.getEndPosition(),t.getEndPosition())?-1:s.a.isBefore(t.getEndPosition(),e.getEndPosition())?1:0);let n,i=[];for(const e of t)(!n||a.a.containsRange(e,n)&&!a.a.equalsRange(e,n))&&(i.push(e),n=e);let r=[i[0]];for(let t=1;t<i.length;t++){const n=i[t-1],o=i[t];if(o.startLineNumber!==n.startLineNumber||o.endLineNumber!==n.endLineNumber){const t=new a.a(n.startLineNumber,e.getLineFirstNonWhitespaceColumn(n.startLineNumber),n.endLineNumber,e.getLineLastNonWhitespaceColumn(n.endLineNumber));t.containsRange(n)&&!t.equalsRange(n)&&o.containsRange(t)&&!o.equalsRange(t)&&r.push(t);const i=new a.a(n.startLineNumber,1,n.endLineNumber,e.getLineMaxColumn(n.endLineNumber));i.containsRange(n)&&!i.equalsRange(t)&&o.containsRange(i)&&!o.equalsRange(i)&&r.push(i)}r.push(o)}return r}))}Object(o.m)(y.ID,y),Object(o.k)(class extends w{constructor(){super(!0,{id:"editor.action.smartSelect.expand",label:u.a("smartSelect.expand","Expand Selection"),alias:"Expand Selection",precondition:void 0,kbOpts:{kbExpr:c.a.editorTextFocus,primary:1553,mac:{primary:3345,secondary:[1297]},weight:100},menuOpts:{menuId:h.b.MenubarSelectionMenu,group:"1_basic",title:u.a({key:"miSmartSelectGrow",comment:["&& denotes a mnemonic"]},"&&Expand Selection"),order:2}})}}),Object(o.k)(class extends w{constructor(){super(!1,{id:"editor.action.smartSelect.shrink",label:u.a("smartSelect.shrink","Shrink Selection"),alias:"Shrink Selection",precondition:void 0,kbOpts:{kbExpr:c.a.editorTextFocus,primary:1551,mac:{primary:3343,secondary:[1295]},weight:100},menuOpts:{menuId:h.b.MenubarSelectionMenu,group:"1_basic",title:u.a({key:"miSmartSelectShrink",comment:["&& denotes a mnemonic"]},"&&Shrink Selection"),order:3}})}}),d.x.register("*",new class{provideSelectionRanges(e,t){const n=[];for(const i of t){const t=[];n.push(t),this._addInWordRanges(t,e,i),this._addWordRanges(t,e,i),this._addWhitespaceLine(t,e,i),t.push({range:e.getFullModelRange()})}return n}_addInWordRanges(e,t,n){const i=t.getWordAtPosition(n);if(!i)return;let{word:r,startColumn:o}=i,s=n.column-o,l=s,c=s,d=0;for(;l>=0;l--){let e=r.charCodeAt(l);if(l!==s&&(95===e||45===e))break;if(Object(g.H)(e)&&Object(g.I)(d))break;d=e}for(l+=1;c<r.length;c++){let e=r.charCodeAt(c);if(Object(g.I)(e)&&Object(g.H)(d))break;if(95===e||45===e)break;d=e}l<c&&e.push({range:new a.a(n.lineNumber,o+l,n.lineNumber,o+c)})}_addWordRanges(e,t,n){const i=t.getWordAtPosition(n);i&&e.push({range:new a.a(n.lineNumber,i.startColumn,n.lineNumber,i.endColumn)})}_addWhitespaceLine(e,t,n){t.getLineLength(n.lineNumber)>0&&0===t.getLineFirstNonWhitespaceColumn(n.lineNumber)&&0===t.getLineLastNonWhitespaceColumn(n.lineNumber)&&e.push({range:new a.a(n.lineNumber,1,n.lineNumber,t.getLineMaxColumn(n.lineNumber))})}}),Object(o.q)("_executeSelectionRangeProvider",(function(e,...t){const[n]=t;return C(e,n,r.a.None)}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var i=n(208),r=n(6),o=n(2),s=n(37),a=n(3);const l={followsCaret:!0,ignoreCharChanges:!0,alwaysRevealFirst:!0};class c extends o.a{constructor(e,t={}){super(),this._onDidUpdate=this._register(new r.a),this._editor=e,this._options=s.g(t,l,!1),this.disposed=!1,this.nextIdx=-1,this.ranges=[],this.ignoreSelectionChange=!1,this.revealFirst=Boolean(this._options.alwaysRevealFirst),this._register(this._editor.onDidDispose(()=>this.dispose())),this._register(this._editor.onDidUpdateDiff(()=>this._onDiffUpdated())),this._options.followsCaret&&this._register(this._editor.getModifiedEditor().onDidChangeCursorPosition(e=>{this.ignoreSelectionChange||(this.nextIdx=-1)})),this._options.alwaysRevealFirst&&this._register(this._editor.getModifiedEditor().onDidChangeModel(e=>{this.revealFirst=!0})),this._init()}_init(){this._editor.getLineChanges()}_onDiffUpdated(){this._init(),this._compute(this._editor.getLineChanges()),this.revealFirst&&null!==this._editor.getLineChanges()&&(this.revealFirst=!1,this.nextIdx=-1,this.next(1))}_compute(e){this.ranges=[],e&&e.forEach(e=>{!this._options.ignoreCharChanges&&e.charChanges?e.charChanges.forEach(e=>{this.ranges.push({rhs:!0,range:new a.a(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn)})}):this.ranges.push({rhs:!0,range:new a.a(e.modifiedStartLineNumber,1,e.modifiedStartLineNumber,1)})}),this.ranges.sort((e,t)=>e.range.getStartPosition().isBeforeOrEqual(t.range.getStartPosition())?-1:t.range.getStartPosition().isBeforeOrEqual(e.range.getStartPosition())?1:0),this._onDidUpdate.fire(this)}_initIdx(e){let t=!1,n=this._editor.getPosition();if(n){for(let i=0,r=this.ranges.length;i<r&&!t;i++){let r=this.ranges[i].range;n.isBeforeOrEqual(r.getStartPosition())&&(this.nextIdx=i+(e?0:-1),t=!0)}t||(this.nextIdx=e?0:this.ranges.length-1),this.nextIdx<0&&(this.nextIdx=this.ranges.length-1)}else this.nextIdx=0}_move(e,t){if(i.a(!this.disposed,"Illegal State - diff navigator has been disposed"),!this.canNavigate())return;-1===this.nextIdx?this._initIdx(e):e?(this.nextIdx+=1,this.nextIdx>=this.ranges.length&&(this.nextIdx=0)):(this.nextIdx-=1,this.nextIdx<0&&(this.nextIdx=this.ranges.length-1));let n=this.ranges[this.nextIdx];this.ignoreSelectionChange=!0;try{let e=n.range.getStartPosition();this._editor.setPosition(e),this._editor.revealPositionInCenter(e,t)}finally{this.ignoreSelectionChange=!1}}canNavigate(){return this.ranges&&this.ranges.length>0}next(e=0){this._move(!0,e)}previous(e=0){this._move(!1,e)}dispose(){super.dispose(),this.ranges=[],this.disposed=!0}}},function(e,t,n){"use strict";n(631);var i=n(0),r=n(1),o=n(31),s=n(161),a=n(19),l=n(6),c=n(2),d=n(37),u=n(77),h=n(76),f=n(33),g=n(184),p=(n(632),n(104)),m=n(94),_=n(49),b=n(4),v=n(27),y=n(99),w=n(10),C=n(47),S=n(79),k=n(63),x=n(9),L=n(5),M=n(18),D=n(16);const E=3;class T{constructor(e,t,n,i){this.originalLineStart=e,this.originalLineEnd=t,this.modifiedLineStart=n,this.modifiedLineEnd=i}getType(){return 0===this.originalLineStart?1:0===this.modifiedLineStart?2:0}}class O{constructor(e){this.entries=e}}const N=Object(D.e)("diff-review-insert",D.a.add),I=Object(D.e)("diff-review-remove",D.a.remove),A=Object(D.e)("diff-review-close",D.a.close);class R extends c.a{constructor(e){super(),this._width=0,this._diffEditor=e,this._isVisible=!1,this.shadow=Object(o.b)(document.createElement("div")),this.shadow.setClassName("diff-review-shadow"),this.actionBarContainer=Object(o.b)(document.createElement("div")),this.actionBarContainer.setClassName("diff-review-actions"),this._actionBar=this._register(new p.a(this.actionBarContainer.domNode)),this._actionBar.push(new _.a("diffreview.close",i.a("label.close","Close"),"close-diff-review "+A.classNames,!0,()=>(this.hide(),Promise.resolve(null))),{label:!1,icon:!0}),this.domNode=Object(o.b)(document.createElement("div")),this.domNode.setClassName("diff-review monaco-editor-background"),this._content=Object(o.b)(document.createElement("div")),this._content.setClassName("diff-review-content"),this._content.setAttribute("role","code"),this.scrollbar=this._register(new m.a(this._content.domNode,{})),this.domNode.domNode.appendChild(this.scrollbar.getDomNode()),this._register(e.onDidUpdateDiff(()=>{this._isVisible&&(this._diffs=this._compute(),this._render())})),this._register(e.getModifiedEditor().onDidChangeCursorPosition(()=>{this._isVisible&&this._render()})),this._register(r.n(this.domNode.domNode,"click",e=>{e.preventDefault();let t=r.w(e.target,"diff-review-row");t&&this._goToRow(t)})),this._register(r.n(this.domNode.domNode,"keydown",e=>{(e.equals(18)||e.equals(2066)||e.equals(530))&&(e.preventDefault(),this._goToRow(this._getNextRow())),(e.equals(16)||e.equals(2064)||e.equals(528))&&(e.preventDefault(),this._goToRow(this._getPrevRow())),(e.equals(9)||e.equals(2057)||e.equals(521)||e.equals(1033))&&(e.preventDefault(),this.hide()),(e.equals(10)||e.equals(3))&&(e.preventDefault(),this.accept())})),this._diffs=[],this._currentDiff=null}prev(){let e=0;if(this._isVisible||(this._diffs=this._compute()),this._isVisible){let t=-1;for(let e=0,n=this._diffs.length;e<n;e++)if(this._diffs[e]===this._currentDiff){t=e;break}e=this._diffs.length+t-1}else e=this._findDiffIndex(this._diffEditor.getPosition());if(0===this._diffs.length)return;e%=this._diffs.length;const t=this._diffs[e].entries;this._diffEditor.setPosition(new w.a(t[0].modifiedLineStart,1)),this._diffEditor.setSelection({startColumn:1,startLineNumber:t[0].modifiedLineStart,endColumn:1073741824,endLineNumber:t[t.length-1].modifiedLineEnd}),this._isVisible=!0,this._diffEditor.doLayout(),this._render(),this._goToRow(this._getNextRow())}next(){let e=0;if(this._isVisible||(this._diffs=this._compute()),this._isVisible){let t=-1;for(let e=0,n=this._diffs.length;e<n;e++)if(this._diffs[e]===this._currentDiff){t=e;break}e=t+1}else e=this._findDiffIndex(this._diffEditor.getPosition());if(0===this._diffs.length)return;e%=this._diffs.length;const t=this._diffs[e].entries;this._diffEditor.setPosition(new w.a(t[0].modifiedLineStart,1)),this._diffEditor.setSelection({startColumn:1,startLineNumber:t[0].modifiedLineStart,endColumn:1073741824,endLineNumber:t[t.length-1].modifiedLineEnd}),this._isVisible=!0,this._diffEditor.doLayout(),this._render(),this._goToRow(this._getNextRow())}accept(){let e=-1,t=this._getCurrentFocusedRow();if(t){let n=parseInt(t.getAttribute("data-line"),10);isNaN(n)||(e=n)}this.hide(),-1!==e&&(this._diffEditor.setPosition(new w.a(e,1)),this._diffEditor.revealPosition(new w.a(e,1),1))}hide(){this._isVisible=!1,this._diffEditor.updateOptions({readOnly:!1}),this._diffEditor.focus(),this._diffEditor.doLayout(),this._render()}_getPrevRow(){let e=this._getCurrentFocusedRow();return e?e.previousElementSibling?e.previousElementSibling:e:this._getFirstRow()}_getNextRow(){let e=this._getCurrentFocusedRow();return e?e.nextElementSibling?e.nextElementSibling:e:this._getFirstRow()}_getFirstRow(){return this.domNode.domNode.querySelector(".diff-review-row")}_getCurrentFocusedRow(){let e=document.activeElement;return e&&/diff-review-row/.test(e.className)?e:null}_goToRow(e){let t=this._getCurrentFocusedRow();e.tabIndex=0,e.focus(),t&&t!==e&&(t.tabIndex=-1),this.scrollbar.scanDomNode()}isVisible(){return this._isVisible}layout(e,t,n){this._width=t,this.shadow.setTop(e-6),this.shadow.setWidth(t),this.shadow.setHeight(this._isVisible?6:0),this.domNode.setTop(e),this.domNode.setWidth(t),this.domNode.setHeight(n),this._content.setHeight(n),this._content.setWidth(t),this._isVisible?(this.actionBarContainer.setAttribute("aria-hidden","false"),this.actionBarContainer.setDisplay("block")):(this.actionBarContainer.setAttribute("aria-hidden","true"),this.actionBarContainer.setDisplay("none"))}_compute(){const e=this._diffEditor.getLineChanges();if(!e||0===e.length)return[];const t=this._diffEditor.getOriginalEditor().getModel(),n=this._diffEditor.getModifiedEditor().getModel();return t&&n?R._mergeAdjacent(e,t.getLineCount(),n.getLineCount()):[]}static _mergeAdjacent(e,t,n){if(!e||0===e.length)return[];let i=[],r=0;for(let o=0,s=e.length;o<s;o++){const a=e[o],l=a.originalStartLineNumber,c=a.originalEndLineNumber,d=a.modifiedStartLineNumber,u=a.modifiedEndLineNumber;let h=[],f=0;{const t=0===c?l:l-1,n=0===u?d:d-1;let i=1,r=1;if(o>0){const t=e[o-1];i=0===t.originalEndLineNumber?t.originalStartLineNumber+1:t.originalEndLineNumber+1,r=0===t.modifiedEndLineNumber?t.modifiedStartLineNumber+1:t.modifiedEndLineNumber+1}let s=t-E+1,a=n-E+1;if(s<i){const e=i-s;s+=e,a+=e}if(a<r){const e=r-a;s+=e,a+=e}h[f++]=new T(s,t,a,n)}0!==c&&(h[f++]=new T(l,c,0,0)),0!==u&&(h[f++]=new T(0,0,d,u));{const i=0===c?l+1:c+1,r=0===u?d+1:u+1;let a=t,g=n;if(o+1<s){const t=e[o+1];a=0===t.originalEndLineNumber?t.originalStartLineNumber:t.originalStartLineNumber-1,g=0===t.modifiedEndLineNumber?t.modifiedStartLineNumber:t.modifiedStartLineNumber-1}let p=i+E-1,m=r+E-1;if(p>a){const e=a-p;p+=e,m+=e}if(m>g){const e=g-m;p+=e,m+=e}h[f++]=new T(i,p,r,m)}i[r++]=new O(h)}let o=i[0].entries,s=[],a=0;for(let e=1,t=i.length;e<t;e++){const t=i[e].entries,n=o[o.length-1],r=t[0];0===n.getType()&&0===r.getType()&&r.originalLineStart<=n.originalLineEnd?(o[o.length-1]=new T(n.originalLineStart,r.originalLineEnd,n.modifiedLineStart,r.modifiedLineEnd),o=o.concat(t.slice(1))):(s[a++]=new O(o),o=t)}return s[a++]=new O(o),s}_findDiffIndex(e){const t=e.lineNumber;for(let e=0,n=this._diffs.length;e<n;e++){const n=this._diffs[e].entries;if(t<=n[n.length-1].modifiedLineEnd)return e}return 0}_render(){const e=this._diffEditor.getOriginalEditor().getOptions(),t=this._diffEditor.getModifiedEditor().getOptions(),n=this._diffEditor.getOriginalEditor().getModel(),o=this._diffEditor.getModifiedEditor().getModel(),s=n.getOptions(),a=o.getOptions();if(!this._isVisible||!n||!o)return r.s(this._content.domNode),this._currentDiff=null,void this.scrollbar.scanDomNode();this._diffEditor.updateOptions({readOnly:!0});const l=this._findDiffIndex(this._diffEditor.getPosition());if(this._diffs[l]===this._currentDiff)return;this._currentDiff=this._diffs[l];const c=this._diffs[l].entries;let d=document.createElement("div");d.className="diff-review-table",d.setAttribute("role","list"),d.setAttribute("aria-label",'Difference review. Use "Stage | Unstage | Revert Selected Ranges" commands'),u.a.applyFontInfoSlow(d,t.get(36));let h=0,f=0,g=0,p=0;for(let e=0,t=c.length;e<t;e++){const t=c[e],n=t.originalLineStart,i=t.originalLineEnd,r=t.modifiedLineStart,o=t.modifiedLineEnd;0!==n&&(0===h||n<h)&&(h=n),0!==i&&(0===f||i>f)&&(f=i),0!==r&&(0===g||r<g)&&(g=r),0!==o&&(0===p||o>p)&&(p=o)}let m=document.createElement("div");m.className="diff-review-row";let _=document.createElement("div");_.className="diff-review-cell diff-review-summary";const b=f-h+1,v=p-g+1;_.appendChild(document.createTextNode(`${l+1}/${this._diffs.length}: @@ -${h},${b} +${g},${v} @@`)),m.setAttribute("data-line",String(g));const y=e=>0===e?i.a("no_lines_changed","no lines changed"):1===e?i.a("one_line_changed","1 line changed"):i.a("more_lines_changed","{0} lines changed",e),w=y(b),C=y(v);m.setAttribute("aria-label",i.a({key:"header",comment:["This is the ARIA label for a git diff header.","A git diff header looks like this: @@ -154,12 +159,39 @@.","That encodes that at original line 154 (which is now line 159), 12 lines were removed/changed with 39 lines.","Variables 0 and 1 refer to the diff index out of total number of diffs.","Variables 2 and 4 will be numbers (a line number).",'Variables 3 and 5 will be "no lines changed", "1 line changed" or "X lines changed", localized separately.']},"Difference {0} of {1}: original line {2}, {3}, modified line {4}, {5}",l+1,this._diffs.length,h,w,g,C)),m.appendChild(_),m.setAttribute("role","listitem"),d.appendChild(m);const S=t.get(51);let k=g;for(let i=0,r=c.length;i<r;i++){const r=c[i];R._renderSection(d,r,k,S,this._width,e,n,s,t,o,a),0!==r.modifiedLineStart&&(k=r.modifiedLineEnd)}r.s(this._content.domNode),this._content.domNode.appendChild(d),this.scrollbar.scanDomNode()}static _renderSection(e,t,n,r,o,s,a,l,c,d,u){const h=t.getType();let f="diff-review-row",g="";let p=null;switch(h){case 1:f="diff-review-row line-insert",g=" char-insert",p=N;break;case 2:f="diff-review-row line-delete",g=" char-delete",p=I}const m=t.originalLineStart,_=t.originalLineEnd,b=t.modifiedLineStart,v=t.modifiedLineEnd,y=Math.max(v-b,_-m),w=s.get(117),C=w.glyphMarginWidth+w.lineNumbersWidth,S=c.get(117),k=10+S.glyphMarginWidth+S.lineNumbersWidth;for(let t=0;t<=y;t++){const _=0===m?0:m+t,v=0===b?0:b+t,y=document.createElement("div");y.style.minWidth=o+"px",y.className=f,y.setAttribute("role","listitem"),0!==v&&(n=v),y.setAttribute("data-line",String(n));let w=document.createElement("div");w.className="diff-review-cell",w.style.height=`${r}px`,y.appendChild(w);const S=document.createElement("span");S.style.width=C+"px",S.style.minWidth=C+"px",S.className="diff-review-line-number"+g,0!==_?S.appendChild(document.createTextNode(String(_))):S.innerText=" ",w.appendChild(S);const x=document.createElement("span");x.style.width=k+"px",x.style.minWidth=k+"px",x.style.paddingRight="10px",x.className="diff-review-line-number"+g,0!==v?x.appendChild(document.createTextNode(String(v))):x.innerText=" ",w.appendChild(x);const L=document.createElement("span");if(L.className="diff-review-spacer",p){const e=document.createElement("span");e.className=p.classNames,e.innerText="  ",L.appendChild(e)}else L.innerText="  ";let M;w.appendChild(L),0!==v?(w.insertAdjacentHTML("beforeend",this._renderLine(d,c,u.tabSize,v)),M=d.getLineContent(v)):(w.insertAdjacentHTML("beforeend",this._renderLine(a,s,l.tabSize,_)),M=a.getLineContent(_)),0===M.length&&(M=i.a("blankLine","blank"));let D="";switch(h){case 0:D=_===v?i.a({key:"unchangedLine",comment:["The placholders are contents of the line and should not be translated."]},"{0} unchanged line {1}",M,_):i.a("equalLine","{0} original line {1} modified line {2}",M,_,v);break;case 1:D=i.a("insertLine","+ {0} modified line {1}",M,v);break;case 2:D=i.a("deleteLine","- {0} original line {1}",M,_)}y.setAttribute("aria-label",D),e.appendChild(y)}}static _renderLine(e,t,n,i){const r=e.getLineContent(i),o=t.get(36),s=new Uint32Array(2);s[0]=r.length,s[1]=16793600;const a=new y.a(s,r),l=k.d.isBasicASCII(r,e.mightContainNonBasicASCII()),c=k.d.containsRTL(r,l,e.mightContainRTL());return Object(S.e)(new S.c(o.isMonospace&&!t.get(24),o.canUseHalfwidthRightwardsArrow,r,!1,l,c,0,a,[],n,0,o.spaceWidth,o.middotWidth,o.wsmiddotWidth,t.get(95),t.get(80),t.get(74),t.get(37)!==v.e.OFF,null)).html}}Object(M.g)((e,t)=>{const n=e.getColor(C.k);n&&t.addRule(`.monaco-diff-editor .diff-review-line-number { color: ${n}; }`);const i=e.getColor(L.ic);i&&t.addRule(`.monaco-diff-editor .diff-review-shadow { box-shadow: ${i} 0 -6px 6px -6px inset; }`)});class P extends b.b{constructor(){super({id:"editor.action.diffReview.next",label:i.a("editor.action.diffReview.next","Go to Next Difference"),alias:"Go to Next Difference",precondition:x.a.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:65,weight:100}})}run(e,t){const n=F(e);n&&n.diffReviewNext()}}class j extends b.b{constructor(){super({id:"editor.action.diffReview.prev",label:i.a("editor.action.diffReview.prev","Go to Previous Difference"),alias:"Go to Previous Difference",precondition:x.a.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:1089,weight:100}})}run(e,t){const n=F(e);n&&n.diffReviewPrev()}}function F(e){const t=e.get(f.a),n=t.listDiffEditors(),i=t.getActiveCodeEditor();if(!i)return null;for(let e=0,t=n.length;e<t;e++){const t=n[e];if(t.getModifiedEditor().getId()===i.getId()||t.getOriginalEditor().getId()===i.getId())return t}return null}Object(b.k)(P),Object(b.k)(j);var B=n(3),W=n(125),H=n(145),Y=n(29),V=n(89),z=n(190),U=n(164),$=n(17),q=n(154),K=n(40),G=n(71),Z=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};class J extends c.a{constructor(e,t,n,o,s,a){super(),this._viewZoneId=e,this._marginDomNode=t,this.editor=n,this.diff=o,this._contextMenuService=s,this._clipboardService=a,this._visibility=!1,this._marginDomNode.style.zIndex="10",this._diffActions=document.createElement("div"),this._diffActions.className=D.a.lightBulb.classNames+" lightbulb-glyph",this._diffActions.style.position="absolute";const l=n.getOption(51),c=n.getModel().getEOL();this._diffActions.style.right="0px",this._diffActions.style.visibility="hidden",this._diffActions.style.height=`${l}px`,this._diffActions.style.lineHeight=`${l}px`,this._marginDomNode.appendChild(this._diffActions);const d=[];d.push(new _.a("diff.clipboard.copyDeletedContent",o.originalEndLineNumber>o.modifiedStartLineNumber?i.a("diff.clipboard.copyDeletedLinesContent.label","Copy deleted lines"):i.a("diff.clipboard.copyDeletedLinesContent.single.label","Copy deleted line"),void 0,!0,()=>Z(this,void 0,void 0,(function*(){yield this._clipboardService.writeText(o.originalContent.join(c)+c)}))));let u=0,h=void 0;o.originalEndLineNumber>o.modifiedStartLineNumber&&(h=new _.a("diff.clipboard.copyDeletedLineContent",i.a("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",o.originalStartLineNumber),void 0,!0,()=>Z(this,void 0,void 0,(function*(){yield this._clipboardService.writeText(o.originalContent[u])}))),d.push(h)),n.getOption(72)||d.push(new _.a("diff.inline.revertChange",i.a("diff.inline.revertChange.label","Revert this change"),void 0,!0,()=>Z(this,void 0,void 0,(function*(){if(0===o.modifiedEndLineNumber){const e=n.getModel().getLineMaxColumn(o.modifiedStartLineNumber);n.executeEdits("diffEditor",[{range:new B.a(o.modifiedStartLineNumber,e,o.modifiedStartLineNumber,e),text:c+o.originalContent.join(c)}])}else{const e=n.getModel().getLineMaxColumn(o.modifiedEndLineNumber);n.executeEdits("diffEditor",[{range:new B.a(o.modifiedStartLineNumber,1,o.modifiedEndLineNumber,e),text:o.originalContent.join(c)}])}}))));const f=(e,t)=>{this._contextMenuService.showContextMenu({getAnchor:()=>({x:e,y:t}),getActions:()=>(h&&(h.label=i.a("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",o.originalStartLineNumber+u)),d),autoSelectFirstItem:!0})};this._register(r.n(this._diffActions,"mousedown",e=>{const{top:t,height:n}=r.C(this._diffActions);let i=Math.floor(l/3);e.preventDefault(),f(e.posx,t+n+i)})),this._register(n.onMouseMove(e=>{if(8===e.target.type||5===e.target.type){e.target.detail.viewZoneId===this._viewZoneId?(this.visibility=!0,u=this._updateLightBulbPosition(this._marginDomNode,e.event.browserEvent.y,l)):this.visibility=!1}else this.visibility=!1})),this._register(n.onMouseDown(e=>{if(e.event.rightButton&&(8===e.target.type||5===e.target.type)){e.target.detail.viewZoneId===this._viewZoneId&&(e.event.preventDefault(),u=this._updateLightBulbPosition(this._marginDomNode,e.event.browserEvent.y,l),f(e.event.posx,e.event.posy+l))}}))}get visibility(){return this._visibility}set visibility(e){this._visibility!==e&&(this._visibility=e,this._diffActions.style.visibility=e?"visible":"hidden")}_updateLightBulbPosition(e,t,n){const{top:i}=r.C(e),o=t-i,s=Math.floor(o/n),a=s*n;return this._diffActions.style.top=`${a}px`,s}}var X=n(109),Q=n(15),ee=n(70),te=n(267),ne=n(147);n.d(t,"a",(function(){return ce}));var ie=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},re=function(e,t){return function(n,i){t(n,i,e)}};class oe{constructor(e,t){this._contextMenuService=e,this._clipboardService=t,this._zones=[],this.inlineDiffMargins=[],this._zonesMap={},this._decorations=[]}getForeignViewZones(e){return e.filter(e=>!this._zonesMap[String(e.id)])}clean(e){this._zones.length>0&&e.changeViewZones(e=>{for(let t=0,n=this._zones.length;t<n;t++)e.removeZone(this._zones[t])}),this._zones=[],this._zonesMap={},this._decorations=e.deltaDecorations(this._decorations,[])}apply(e,t,n,i){const r=i?h.c.capture(e):null;e.changeViewZones(t=>{for(let e=0,n=this._zones.length;e<n;e++)t.removeZone(this._zones[e]);for(let e=0,t=this.inlineDiffMargins.length;e<t;e++)this.inlineDiffMargins[e].dispose();this._zones=[],this._zonesMap={},this.inlineDiffMargins=[];for(let i=0,r=n.zones.length;i<r;i++){const r=n.zones[i];r.suppressMouseDown=!0;let o=t.addZone(r);this._zones.push(o),this._zonesMap[String(o)]=!0,n.zones[i].diff&&r.marginDomNode&&(r.suppressMouseDown=!1,this.inlineDiffMargins.push(new J(o,r.marginDomNode,e,n.zones[i].diff,this._contextMenuService,this._clipboardService)))}}),r&&r.restore(e),this._decorations=e.deltaDecorations(this._decorations,n.decorations),t&&t.setZones(n.overviewZones)}}let se=0;const ae=Object(D.e)("diff-insert",D.a.add),le=Object(D.e)("diff-remove",D.a.remove);let ce=class e extends c.a{constructor(t,n,i,s,c,d,u,h,f,g,p){super(),this._editorProgressService=p,this._onDidDispose=this._register(new l.a),this.onDidDispose=this._onDidDispose.event,this._onDidUpdateDiff=this._register(new l.a),this.onDidUpdateDiff=this._onDidUpdateDiff.event,this._onDidContentSizeChange=this._register(new l.a),this._lastOriginalWarning=null,this._lastModifiedWarning=null,this._editorWorkerService=s,this._codeEditorService=u,this._contextKeyService=this._register(c.createScoped(t)),this._contextKeyService.createKey("isInDiffEditor",!0),this._themeService=h,this._notificationService=f,this.id=++se,this._state=0,this._updatingDiffProgress=null,this._domElement=t,n=n||{},this._renderSideBySide=!0,void 0!==n.renderSideBySide&&(this._renderSideBySide=n.renderSideBySide),this._maxComputationTime=5e3,void 0!==n.maxComputationTime&&(this._maxComputationTime=n.maxComputationTime),this._ignoreTrimWhitespace=!0,void 0!==n.ignoreTrimWhitespace&&(this._ignoreTrimWhitespace=n.ignoreTrimWhitespace),this._renderIndicators=!0,void 0!==n.renderIndicators&&(this._renderIndicators=n.renderIndicators),this._originalIsEditable=!1,void 0!==n.originalEditable&&(this._originalIsEditable=Boolean(n.originalEditable)),this._originalCodeLens=!1,void 0!==n.originalCodeLens&&(this._originalCodeLens=Boolean(n.originalCodeLens)),this._modifiedCodeLens=!1,void 0!==n.modifiedCodeLens&&(this._modifiedCodeLens=Boolean(n.modifiedCodeLens)),this._updateDecorationsRunner=this._register(new a.d(()=>this._updateDecorations(),0)),this._containerDomElement=document.createElement("div"),this._containerDomElement.className=e._getClassName(this._themeService.getColorTheme(),this._renderSideBySide),this._containerDomElement.style.position="relative",this._containerDomElement.style.height="100%",this._domElement.appendChild(this._containerDomElement),this._overviewViewportDomElement=Object(o.b)(document.createElement("div")),this._overviewViewportDomElement.setClassName("diffViewport"),this._overviewViewportDomElement.setPosition("absolute"),this._overviewDomElement=document.createElement("div"),this._overviewDomElement.className="diffOverview",this._overviewDomElement.style.position="absolute",this._overviewDomElement.appendChild(this._overviewViewportDomElement.domNode),this._register(r.n(this._overviewDomElement,"mousedown",e=>{this.modifiedEditor.delegateVerticalScrollbarMouseDown(e)})),this._containerDomElement.appendChild(this._overviewDomElement),this._originalDomNode=document.createElement("div"),this._originalDomNode.className="editor original",this._originalDomNode.style.position="absolute",this._originalDomNode.style.height="100%",this._containerDomElement.appendChild(this._originalDomNode),this._modifiedDomNode=document.createElement("div"),this._modifiedDomNode.className="editor modified",this._modifiedDomNode.style.position="absolute",this._modifiedDomNode.style.height="100%",this._containerDomElement.appendChild(this._modifiedDomNode),this._beginUpdateDecorationsTimeout=-1,this._currentlyChangingViewZones=!1,this._diffComputationToken=0,this._originalEditorState=new oe(g,i),this._modifiedEditorState=new oe(g,i),this._isVisible=!0,this._isHandlingScrollEvent=!1,this._elementSizeObserver=this._register(new te.a(this._containerDomElement,void 0,()=>this._onDidContainerSizeChanged())),n.automaticLayout&&this._elementSizeObserver.startObserving(),this._diffComputationResult=null;const m=this._contextKeyService.createScoped(),_=new q.a;_.set(x.b,m);const v=d.createChild(_),y=this._contextKeyService.createScoped(),w=new q.a;w.set(x.b,y);const C=d.createChild(w);this.originalEditor=this._createLeftHandSideEditor(n,v,m),this.modifiedEditor=this._createRightHandSideEditor(n,C,y),this._originalOverviewRuler=null,this._modifiedOverviewRuler=null,this._reviewPane=new R(this),this._containerDomElement.appendChild(this._reviewPane.domNode.domNode),this._containerDomElement.appendChild(this._reviewPane.shadow.domNode),this._containerDomElement.appendChild(this._reviewPane.actionBarContainer.domNode),this._enableSplitViewResizing=!0,void 0!==n.enableSplitViewResizing&&(this._enableSplitViewResizing=n.enableSplitViewResizing),this._renderSideBySide?this._setStrategy(new pe(this._createDataSource(),this._enableSplitViewResizing)):this._setStrategy(new _e(this._createDataSource(),this._enableSplitViewResizing)),this._register(h.onDidColorThemeChange(t=>{this._strategy&&this._strategy.applyColors(t)&&this._updateDecorationsRunner.schedule(),this._containerDomElement.className=e._getClassName(this._themeService.getColorTheme(),this._renderSideBySide)}));const S=b.d.getDiffEditorContributions();for(const e of S)try{this._register(d.createInstance(e.ctor,this))}catch(e){Object(Q.e)(e)}this._codeEditorService.addDiffEditor(this)}_setState(e){this._state!==e&&(this._state=e,this._updatingDiffProgress&&(this._updatingDiffProgress.done(),this._updatingDiffProgress=null),1===this._state&&(this._updatingDiffProgress=this._editorProgressService.show(!0,1e3)))}diffReviewNext(){this._reviewPane.next()}diffReviewPrev(){this._reviewPane.prev()}static _getClassName(e,t){let n="monaco-diff-editor monaco-editor-background ";return t&&(n+="side-by-side "),n+=Object(M.f)(e.type)}_recreateOverviewRulers(){this._originalOverviewRuler&&(this._overviewDomElement.removeChild(this._originalOverviewRuler.getDomNode()),this._originalOverviewRuler.dispose()),this.originalEditor.hasModel()&&(this._originalOverviewRuler=this.originalEditor.createOverviewRuler("original diffOverviewRuler"),this._overviewDomElement.appendChild(this._originalOverviewRuler.getDomNode())),this._modifiedOverviewRuler&&(this._overviewDomElement.removeChild(this._modifiedOverviewRuler.getDomNode()),this._modifiedOverviewRuler.dispose()),this.modifiedEditor.hasModel()&&(this._modifiedOverviewRuler=this.modifiedEditor.createOverviewRuler("modified diffOverviewRuler"),this._overviewDomElement.appendChild(this._modifiedOverviewRuler.getDomNode())),this._layoutOverviewRulers()}_createLeftHandSideEditor(t,n,i){const r=this._createInnerEditor(n,this._originalDomNode,this._adjustOptionsForLeftHandSide(t,this._originalIsEditable,this._originalCodeLens));this._register(r.onDidScrollChange(e=>{this._isHandlingScrollEvent||(e.scrollTopChanged||e.scrollLeftChanged||e.scrollHeightChanged)&&(this._isHandlingScrollEvent=!0,this.modifiedEditor.setScrollPosition({scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}),this._isHandlingScrollEvent=!1,this._layoutOverviewViewport())})),this._register(r.onDidChangeViewZones(()=>{this._onViewZonesChanged()})),this._register(r.onDidChangeModelContent(()=>{this._isVisible&&this._beginUpdateDecorationsSoon()}));const o=i.createKey("isInDiffLeftEditor",void 0);return this._register(r.onDidFocusEditorWidget(()=>o.set(!0))),this._register(r.onDidBlurEditorWidget(()=>o.set(!1))),this._register(r.onDidContentSizeChange(t=>{const n=this.originalEditor.getContentWidth()+this.modifiedEditor.getContentWidth()+e.ONE_OVERVIEW_WIDTH,i=Math.max(this.modifiedEditor.getContentHeight(),this.originalEditor.getContentHeight());this._onDidContentSizeChange.fire({contentHeight:i,contentWidth:n,contentHeightChanged:t.contentHeightChanged,contentWidthChanged:t.contentWidthChanged})})),r}_createRightHandSideEditor(t,n,i){const r=this._createInnerEditor(n,this._modifiedDomNode,this._adjustOptionsForRightHandSide(t,this._modifiedCodeLens));this._register(r.onDidScrollChange(e=>{this._isHandlingScrollEvent||(e.scrollTopChanged||e.scrollLeftChanged||e.scrollHeightChanged)&&(this._isHandlingScrollEvent=!0,this.originalEditor.setScrollPosition({scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}),this._isHandlingScrollEvent=!1,this._layoutOverviewViewport())})),this._register(r.onDidChangeViewZones(()=>{this._onViewZonesChanged()})),this._register(r.onDidChangeConfiguration(e=>{e.hasChanged(36)&&r.getModel()&&this._onViewZonesChanged()})),this._register(r.onDidChangeModelContent(()=>{this._isVisible&&this._beginUpdateDecorationsSoon()})),this._register(r.onDidChangeModelOptions(e=>{e.tabSize&&this._updateDecorationsRunner.schedule()}));const o=i.createKey("isInDiffRightEditor",void 0);return this._register(r.onDidFocusEditorWidget(()=>o.set(!0))),this._register(r.onDidBlurEditorWidget(()=>o.set(!1))),this._register(r.onDidContentSizeChange(t=>{const n=this.originalEditor.getContentWidth()+this.modifiedEditor.getContentWidth()+e.ONE_OVERVIEW_WIDTH,i=Math.max(this.modifiedEditor.getContentHeight(),this.originalEditor.getContentHeight());this._onDidContentSizeChange.fire({contentHeight:i,contentWidth:n,contentHeightChanged:t.contentHeightChanged,contentWidthChanged:t.contentWidthChanged})})),r}_createInnerEditor(e,t,n){return e.createInstance(g.a,t,n,{})}dispose(){this._codeEditorService.removeDiffEditor(this),-1!==this._beginUpdateDecorationsTimeout&&(window.clearTimeout(this._beginUpdateDecorationsTimeout),this._beginUpdateDecorationsTimeout=-1),this._cleanViewZonesAndDecorations(),this._originalOverviewRuler&&(this._overviewDomElement.removeChild(this._originalOverviewRuler.getDomNode()),this._originalOverviewRuler.dispose()),this._modifiedOverviewRuler&&(this._overviewDomElement.removeChild(this._modifiedOverviewRuler.getDomNode()),this._modifiedOverviewRuler.dispose()),this._overviewDomElement.removeChild(this._overviewViewportDomElement.domNode),this._containerDomElement.removeChild(this._overviewDomElement),this._containerDomElement.removeChild(this._originalDomNode),this.originalEditor.dispose(),this._containerDomElement.removeChild(this._modifiedDomNode),this.modifiedEditor.dispose(),this._strategy.dispose(),this._containerDomElement.removeChild(this._reviewPane.domNode.domNode),this._containerDomElement.removeChild(this._reviewPane.shadow.domNode),this._containerDomElement.removeChild(this._reviewPane.actionBarContainer.domNode),this._reviewPane.dispose(),this._domElement.removeChild(this._containerDomElement),this._onDidDispose.fire(),super.dispose()}getId(){return this.getEditorType()+":"+this.id}getEditorType(){return H.a.IDiffEditor}getLineChanges(){return this._diffComputationResult?this._diffComputationResult.changes:null}getOriginalEditor(){return this.originalEditor}getModifiedEditor(){return this.modifiedEditor}updateOptions(t){let n=!1;void 0!==t.renderSideBySide&&this._renderSideBySide!==t.renderSideBySide&&(this._renderSideBySide=t.renderSideBySide,n=!0),void 0!==t.maxComputationTime&&(this._maxComputationTime=t.maxComputationTime,this._isVisible&&this._beginUpdateDecorationsSoon());let i=!1;void 0!==t.ignoreTrimWhitespace&&this._ignoreTrimWhitespace!==t.ignoreTrimWhitespace&&(this._ignoreTrimWhitespace=t.ignoreTrimWhitespace,i=!0),void 0!==t.renderIndicators&&this._renderIndicators!==t.renderIndicators&&(this._renderIndicators=t.renderIndicators,i=!0),i&&this._beginUpdateDecorations(),void 0!==t.originalEditable&&(this._originalIsEditable=Boolean(t.originalEditable)),void 0!==t.originalCodeLens&&(this._originalCodeLens=Boolean(t.originalCodeLens)),void 0!==t.modifiedCodeLens&&(this._modifiedCodeLens=Boolean(t.modifiedCodeLens)),this.modifiedEditor.updateOptions(this._adjustOptionsForRightHandSide(t,this._modifiedCodeLens)),this.originalEditor.updateOptions(this._adjustOptionsForLeftHandSide(t,this._originalIsEditable,this._originalCodeLens)),void 0!==t.enableSplitViewResizing&&(this._enableSplitViewResizing=t.enableSplitViewResizing),this._strategy.setEnableSplitViewResizing(this._enableSplitViewResizing),n&&(this._renderSideBySide?this._setStrategy(new pe(this._createDataSource(),this._enableSplitViewResizing)):this._setStrategy(new _e(this._createDataSource(),this._enableSplitViewResizing)),this._containerDomElement.className=e._getClassName(this._themeService.getColorTheme(),this._renderSideBySide))}getModel(){return{original:this.originalEditor.getModel(),modified:this.modifiedEditor.getModel()}}setModel(e){if(e&&(!e.original||!e.modified))throw new Error(e.original?"DiffEditorWidget.setModel: Modified model is null":"DiffEditorWidget.setModel: Original model is null");this._cleanViewZonesAndDecorations(),this.originalEditor.setModel(e?e.original:null),this.modifiedEditor.setModel(e?e.modified:null),this._updateDecorationsRunner.cancel(),e&&(this.originalEditor.setScrollTop(0),this.modifiedEditor.setScrollTop(0)),this._diffComputationResult=null,this._diffComputationToken++,this._setState(0),e&&(this._recreateOverviewRulers(),this._beginUpdateDecorations()),this._layoutOverviewViewport()}getDomNode(){return this._domElement}getVisibleColumnFromPosition(e){return this.modifiedEditor.getVisibleColumnFromPosition(e)}getPosition(){return this.modifiedEditor.getPosition()}setPosition(e){this.modifiedEditor.setPosition(e)}revealLine(e,t=0){this.modifiedEditor.revealLine(e,t)}revealLineInCenter(e,t=0){this.modifiedEditor.revealLineInCenter(e,t)}revealLineInCenterIfOutsideViewport(e,t=0){this.modifiedEditor.revealLineInCenterIfOutsideViewport(e,t)}revealLineNearTop(e,t=0){this.modifiedEditor.revealLineNearTop(e,t)}revealPosition(e,t=0){this.modifiedEditor.revealPosition(e,t)}revealPositionInCenter(e,t=0){this.modifiedEditor.revealPositionInCenter(e,t)}revealPositionInCenterIfOutsideViewport(e,t=0){this.modifiedEditor.revealPositionInCenterIfOutsideViewport(e,t)}revealPositionNearTop(e,t=0){this.modifiedEditor.revealPositionNearTop(e,t)}getSelection(){return this.modifiedEditor.getSelection()}getSelections(){return this.modifiedEditor.getSelections()}setSelection(e){this.modifiedEditor.setSelection(e)}setSelections(e){this.modifiedEditor.setSelections(e)}revealLines(e,t,n=0){this.modifiedEditor.revealLines(e,t,n)}revealLinesInCenter(e,t,n=0){this.modifiedEditor.revealLinesInCenter(e,t,n)}revealLinesInCenterIfOutsideViewport(e,t,n=0){this.modifiedEditor.revealLinesInCenterIfOutsideViewport(e,t,n)}revealLinesNearTop(e,t,n=0){this.modifiedEditor.revealLinesNearTop(e,t,n)}revealRange(e,t=0,n=!1,i=!0){this.modifiedEditor.revealRange(e,t,n,i)}revealRangeInCenter(e,t=0){this.modifiedEditor.revealRangeInCenter(e,t)}revealRangeInCenterIfOutsideViewport(e,t=0){this.modifiedEditor.revealRangeInCenterIfOutsideViewport(e,t)}revealRangeNearTop(e,t=0){this.modifiedEditor.revealRangeNearTop(e,t)}revealRangeNearTopIfOutsideViewport(e,t=0){this.modifiedEditor.revealRangeNearTopIfOutsideViewport(e,t)}revealRangeAtTop(e,t=0){this.modifiedEditor.revealRangeAtTop(e,t)}getSupportedActions(){return this.modifiedEditor.getSupportedActions()}saveViewState(){return{original:this.originalEditor.saveViewState(),modified:this.modifiedEditor.saveViewState()}}restoreViewState(e){if(e.original&&e.modified){let t=e;this.originalEditor.restoreViewState(t.original),this.modifiedEditor.restoreViewState(t.modified)}}layout(e){this._elementSizeObserver.observe(e)}focus(){this.modifiedEditor.focus()}hasTextFocus(){return this.originalEditor.hasTextFocus()||this.modifiedEditor.hasTextFocus()}trigger(e,t,n){this.modifiedEditor.trigger(e,t,n)}changeDecorations(e){return this.modifiedEditor.changeDecorations(e)}_onDidContainerSizeChanged(){this._doLayout()}_getReviewHeight(){return this._reviewPane.isVisible()?this._elementSizeObserver.getHeight():0}_layoutOverviewRulers(){if(!this._originalOverviewRuler||!this._modifiedOverviewRuler)return;const t=this._elementSizeObserver.getHeight(),n=this._getReviewHeight();let i=e.ENTIRE_DIFF_OVERVIEW_WIDTH-2*e.ONE_OVERVIEW_WIDTH;this.modifiedEditor.getLayoutInfo()&&(this._originalOverviewRuler.setLayout({top:0,width:e.ONE_OVERVIEW_WIDTH,right:i+e.ONE_OVERVIEW_WIDTH,height:t-n}),this._modifiedOverviewRuler.setLayout({top:0,right:0,width:e.ONE_OVERVIEW_WIDTH,height:t-n}))}_onViewZonesChanged(){this._currentlyChangingViewZones||this._updateDecorationsRunner.schedule()}_beginUpdateDecorationsSoon(){-1!==this._beginUpdateDecorationsTimeout&&(window.clearTimeout(this._beginUpdateDecorationsTimeout),this._beginUpdateDecorationsTimeout=-1),this._beginUpdateDecorationsTimeout=window.setTimeout(()=>this._beginUpdateDecorations(),e.UPDATE_DIFF_DECORATIONS_DELAY)}static _equals(e,t){return!e&&!t||!(!e||!t)&&e.toString()===t.toString()}_beginUpdateDecorations(){this._beginUpdateDecorationsTimeout=-1;const t=this.originalEditor.getModel(),n=this.modifiedEditor.getModel();if(!t||!n)return;this._diffComputationToken++;let r=this._diffComputationToken;this._setState(1),this._editorWorkerService.canComputeDiff(t.uri,n.uri)?this._editorWorkerService.computeDiff(t.uri,n.uri,this._ignoreTrimWhitespace,this._maxComputationTime).then(e=>{r===this._diffComputationToken&&t===this.originalEditor.getModel()&&n===this.modifiedEditor.getModel()&&(this._setState(2),this._diffComputationResult=e,this._updateDecorationsRunner.schedule(),this._onDidUpdateDiff.fire())},e=>{r===this._diffComputationToken&&t===this.originalEditor.getModel()&&n===this.modifiedEditor.getModel()&&(this._setState(2),this._diffComputationResult=null,this._updateDecorationsRunner.schedule())}):e._equals(t.uri,this._lastOriginalWarning)&&e._equals(n.uri,this._lastModifiedWarning)||(this._lastOriginalWarning=t.uri,this._lastModifiedWarning=n.uri,this._notificationService.warn(i.a("diff.tooLarge","Cannot compare files because one file is too large.")))}_cleanViewZonesAndDecorations(){this._originalEditorState.clean(this.originalEditor),this._modifiedEditorState.clean(this.modifiedEditor)}_updateDecorations(){if(!(this.originalEditor.getModel()&&this.modifiedEditor.getModel()&&this._originalOverviewRuler&&this._modifiedOverviewRuler))return;const e=this._diffComputationResult?this._diffComputationResult.changes:[];let t=this._originalEditorState.getForeignViewZones(this.originalEditor.getWhitespaces()),n=this._modifiedEditorState.getForeignViewZones(this.modifiedEditor.getWhitespaces()),i=this._strategy.getEditorsDiffDecorations(e,this._ignoreTrimWhitespace,this._renderIndicators,t,n,this.originalEditor,this.modifiedEditor);try{this._currentlyChangingViewZones=!0,this._originalEditorState.apply(this.originalEditor,this._originalOverviewRuler,i.original,!1),this._modifiedEditorState.apply(this.modifiedEditor,this._modifiedOverviewRuler,i.modified,!0)}finally{this._currentlyChangingViewZones=!1}}_adjustOptionsForSubEditor(e){let t=d.c(e||{});return t.inDiffEditor=!0,t.wordWrap="off",t.wordWrapMinified=!1,t.automaticLayout=!1,t.scrollbar=t.scrollbar||{},t.scrollbar.vertical="visible",t.folding=!1,t.codeLens=!1,t.fixedOverflowWidgets=!0,t.overflowWidgetsDomNode=e.overflowWidgetsDomNode,t.minimap||(t.minimap={}),t.minimap.enabled=!1,t}_adjustOptionsForLeftHandSide(e,t,n){let i=this._adjustOptionsForSubEditor(e);return n&&(i.codeLens=!0),i.readOnly=!t,i.extraEditorClassName="original-in-monaco-diff-editor",i}_adjustOptionsForRightHandSide(t,n){let i=this._adjustOptionsForSubEditor(t);return n&&(i.codeLens=!0),i.revealHorizontalRightPadding=v.g.revealHorizontalRightPadding.defaultValue+e.ENTIRE_DIFF_OVERVIEW_WIDTH,i.scrollbar.verticalHasArrows=!1,i.extraEditorClassName="modified-in-monaco-diff-editor",i}doLayout(){this._elementSizeObserver.observe(),this._doLayout()}_doLayout(){const t=this._elementSizeObserver.getWidth(),n=this._elementSizeObserver.getHeight(),i=this._getReviewHeight();let r=this._strategy.layout();this._originalDomNode.style.width=r+"px",this._originalDomNode.style.left="0px",this._modifiedDomNode.style.width=t-r+"px",this._modifiedDomNode.style.left=r+"px",this._overviewDomElement.style.top="0px",this._overviewDomElement.style.height=n-i+"px",this._overviewDomElement.style.width=e.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewDomElement.style.left=t-e.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewViewportDomElement.setWidth(e.ENTIRE_DIFF_OVERVIEW_WIDTH),this._overviewViewportDomElement.setHeight(30),this.originalEditor.layout({width:r,height:n-i}),this.modifiedEditor.layout({width:t-r-e.ENTIRE_DIFF_OVERVIEW_WIDTH,height:n-i}),(this._originalOverviewRuler||this._modifiedOverviewRuler)&&this._layoutOverviewRulers(),this._reviewPane.layout(n-i,t,i),this._layoutOverviewViewport()}_layoutOverviewViewport(){let e=this._computeOverviewViewport();e?(this._overviewViewportDomElement.setTop(e.top),this._overviewViewportDomElement.setHeight(e.height)):(this._overviewViewportDomElement.setTop(0),this._overviewViewportDomElement.setHeight(0))}_computeOverviewViewport(){let e=this.modifiedEditor.getLayoutInfo();if(!e)return null;let t=this.modifiedEditor.getScrollTop(),n=this.modifiedEditor.getScrollHeight(),i=Math.max(0,e.height),r=Math.max(0,i-0),o=n>0?r/n:0;return{height:Math.max(0,Math.floor(e.height*o)),top:Math.floor(t*o)}}_createDataSource(){return{getWidth:()=>this._elementSizeObserver.getWidth(),getHeight:()=>this._elementSizeObserver.getHeight()-this._getReviewHeight(),getContainerDomNode:()=>this._containerDomElement,relayoutEditors:()=>{this._doLayout()},getOriginalEditor:()=>this.originalEditor,getModifiedEditor:()=>this.modifiedEditor}}_setStrategy(e){this._strategy&&this._strategy.dispose(),this._strategy=e,e.applyColors(this._themeService.getColorTheme()),this._diffComputationResult&&this._updateDecorations(),this._doLayout()}_getLineChangeAtOrBeforeLineNumber(e,t){const n=this._diffComputationResult?this._diffComputationResult.changes:[];if(0===n.length||e<t(n[0]))return null;let i=0,r=n.length-1;for(;i<r;){let o=Math.floor((i+r)/2),s=t(n[o]),a=o+1<=r?t(n[o+1]):1073741824;e<s?r=o-1:e>=a?i=o+1:(i=o,r=o)}return n[i]}_getEquivalentLineForOriginalLineNumber(e){let t=this._getLineChangeAtOrBeforeLineNumber(e,e=>e.originalStartLineNumber);if(!t)return e;let n=t.originalStartLineNumber+(t.originalEndLineNumber>0?-1:0),i=t.modifiedStartLineNumber+(t.modifiedEndLineNumber>0?-1:0),r=t.originalEndLineNumber>0?t.originalEndLineNumber-t.originalStartLineNumber+1:0,o=t.modifiedEndLineNumber>0?t.modifiedEndLineNumber-t.modifiedStartLineNumber+1:0,s=e-n;return s<=r?i+Math.min(s,o):i+o-r+s}_getEquivalentLineForModifiedLineNumber(e){let t=this._getLineChangeAtOrBeforeLineNumber(e,e=>e.modifiedStartLineNumber);if(!t)return e;let n=t.originalStartLineNumber+(t.originalEndLineNumber>0?-1:0),i=t.modifiedStartLineNumber+(t.modifiedEndLineNumber>0?-1:0),r=t.originalEndLineNumber>0?t.originalEndLineNumber-t.originalStartLineNumber+1:0,o=t.modifiedEndLineNumber>0?t.modifiedEndLineNumber-t.modifiedStartLineNumber+1:0,s=e-i;return s<=o?n+Math.min(s,r):n+r-o+s}getDiffLineInformationForOriginal(e){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForOriginalLineNumber(e)}:null}getDiffLineInformationForModified(e){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForModifiedLineNumber(e)}:null}};ce.ONE_OVERVIEW_WIDTH=15,ce.ENTIRE_DIFF_OVERVIEW_WIDTH=30,ce.UPDATE_DIFF_DECORATIONS_DELAY=200,ce=ie([re(2,X.a),re(3,V.a),re(4,x.b),re(5,$.a),re(6,f.a),re(7,M.c),re(8,K.a),re(9,G.a),re(10,ee.a)],ce);class de extends c.a{constructor(e){super(),this._dataSource=e,this._insertColor=null,this._removeColor=null}applyColors(e){let t=(e.getColor(L.n)||L.j).transparent(2),n=(e.getColor(L.p)||L.k).transparent(2),i=!t.equals(this._insertColor)||!n.equals(this._removeColor);return this._insertColor=t,this._removeColor=n,i}getEditorsDiffDecorations(e,t,n,i,r,o,s){r=r.sort((e,t)=>e.afterLineNumber-t.afterLineNumber),i=i.sort((e,t)=>e.afterLineNumber-t.afterLineNumber);let a=this._getViewZones(e,i,r,o,s,n),l=this._getOriginalEditorDecorations(e,t,n,o,s),c=this._getModifiedEditorDecorations(e,t,n,o,s);return{original:{decorations:l.decorations,overviewZones:l.overviewZones,zones:a.original},modified:{decorations:c.decorations,overviewZones:c.overviewZones,zones:a.modified}}}}class ue{constructor(e){this._source=e,this._index=-1,this.current=null,this.advance()}advance(){this._index++,this._index<this._source.length?this.current=this._source[this._index]:this.current=null}}class he{constructor(e,t,n,i,r){this.lineChanges=e,this.originalForeignVZ=t,this.originalLineHeight=n,this.modifiedForeignVZ=i,this.modifiedLineHeight=r}getViewZones(){let e=[],t=[],n=0,i=0,r=0,o=0,s=0,a=0,l=(e,t)=>e.afterLineNumber-t.afterLineNumber,c=(e,t)=>{if(null===t.domNode&&e.length>0){let n=e[e.length-1];if(n.afterLineNumber===t.afterLineNumber&&null===n.domNode)return void(n.heightInLines+=t.heightInLines)}e.push(t)},d=new ue(this.modifiedForeignVZ),u=new ue(this.originalForeignVZ);for(let h=0,f=this.lineChanges.length;h<=f;h++){let g=h<f?this.lineChanges[h]:null;null!==g?(r=g.originalStartLineNumber+(g.originalEndLineNumber>0?-1:0),o=g.modifiedStartLineNumber+(g.modifiedEndLineNumber>0?-1:0),i=g.originalEndLineNumber>0?g.originalEndLineNumber-g.originalStartLineNumber+1:0,n=g.modifiedEndLineNumber>0?g.modifiedEndLineNumber-g.modifiedStartLineNumber+1:0,s=Math.max(g.originalStartLineNumber,g.originalEndLineNumber),a=Math.max(g.modifiedStartLineNumber,g.modifiedEndLineNumber)):(s=r+=1e7+i,a=o+=1e7+n);let p=[],m=[];for(;d.current&&d.current.afterLineNumber<=a;){let e;e=d.current.afterLineNumber<=o?r-o+d.current.afterLineNumber:s;let t=null;g&&g.modifiedStartLineNumber<=d.current.afterLineNumber&&d.current.afterLineNumber<=g.modifiedEndLineNumber&&(t=this._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion()),p.push({afterLineNumber:e,heightInLines:d.current.height/this.modifiedLineHeight,domNode:null,marginDomNode:t}),d.advance()}for(;u.current&&u.current.afterLineNumber<=s;){let e;e=u.current.afterLineNumber<=r?o-r+u.current.afterLineNumber:a,m.push({afterLineNumber:e,heightInLines:u.current.height/this.originalLineHeight,domNode:null}),u.advance()}if(null!==g&&ve(g)){let e=this._produceOriginalFromDiff(g,i,n);e&&p.push(e)}if(null!==g&&ye(g)){let e=this._produceModifiedFromDiff(g,i,n);e&&m.push(e)}let _=0,b=0;for(p=p.sort(l),m=m.sort(l);_<p.length&&b<m.length;){let n=p[_],i=m[b],s=n.afterLineNumber-r,a=i.afterLineNumber-o;s<a?(c(e,n),_++):a<s?(c(t,i),b++):n.shouldNotShrink?(c(e,n),_++):i.shouldNotShrink?(c(t,i),b++):n.heightInLines>=i.heightInLines?(n.heightInLines-=i.heightInLines,b++):(i.heightInLines-=n.heightInLines,_++)}for(;_<p.length;)c(e,p[_]),_++;for(;b<m.length;)c(t,m[b]),b++}return{original:he._ensureDomNodes(e),modified:he._ensureDomNodes(t)}}static _ensureDomNodes(e){return e.map(e=>(e.domNode||(e.domNode=function(){let e=document.createElement("div");return e.className="diagonal-fill",e}()),e))}}function fe(e,t,n,i,r){return{range:new B.a(e,t,n,i),options:r}}const ge={charDelete:Y.a.register({className:"char-delete"}),charDeleteWholeLine:Y.a.register({className:"char-delete",isWholeLine:!0}),charInsert:Y.a.register({className:"char-insert"}),charInsertWholeLine:Y.a.register({className:"char-insert",isWholeLine:!0}),lineInsert:Y.a.register({className:"line-insert",marginClassName:"line-insert",isWholeLine:!0}),lineInsertWithSign:Y.a.register({className:"line-insert",linesDecorationsClassName:"insert-sign "+ae.classNames,marginClassName:"line-insert",isWholeLine:!0}),lineDelete:Y.a.register({className:"line-delete",marginClassName:"line-delete",isWholeLine:!0}),lineDeleteWithSign:Y.a.register({className:"line-delete",linesDecorationsClassName:"delete-sign "+le.classNames,marginClassName:"line-delete",isWholeLine:!0}),lineDeleteMargin:Y.a.register({marginClassName:"line-delete"})};class pe extends de{constructor(e,t){super(e),this._disableSash=!1===t,this._sashRatio=null,this._sashPosition=null,this._startSashPosition=null,this._sash=this._register(new s.a(this._dataSource.getContainerDomNode(),this,{orientation:0})),this._disableSash&&(this._sash.state=0),this._sash.onDidStart(()=>this.onSashDragStart()),this._sash.onDidChange(e=>this.onSashDrag(e)),this._sash.onDidEnd(()=>this.onSashDragEnd()),this._sash.onDidReset(()=>this.onSashReset())}setEnableSplitViewResizing(e){let t=!1===e;this._disableSash!==t&&(this._disableSash=t,this._sash.state=this._disableSash?0:3)}layout(e=this._sashRatio){let t=this._dataSource.getWidth()-ce.ENTIRE_DIFF_OVERVIEW_WIDTH,n=Math.floor((e||.5)*t),i=Math.floor(.5*t);return n=this._disableSash?i:n||i,t>2*pe.MINIMUM_EDITOR_WIDTH?(n<pe.MINIMUM_EDITOR_WIDTH&&(n=pe.MINIMUM_EDITOR_WIDTH),n>t-pe.MINIMUM_EDITOR_WIDTH&&(n=t-pe.MINIMUM_EDITOR_WIDTH)):n=i,this._sashPosition!==n&&(this._sashPosition=n,this._sash.layout()),this._sashPosition}onSashDragStart(){this._startSashPosition=this._sashPosition}onSashDrag(e){let t=this._dataSource.getWidth()-ce.ENTIRE_DIFF_OVERVIEW_WIDTH,n=this.layout((this._startSashPosition+(e.currentX-e.startX))/t);this._sashRatio=n/t,this._dataSource.relayoutEditors()}onSashDragEnd(){this._sash.layout()}onSashReset(){this._sashRatio=.5,this._dataSource.relayoutEditors(),this._sash.layout()}getVerticalSashTop(e){return 0}getVerticalSashLeft(e){return this._sashPosition}getVerticalSashHeight(e){return this._dataSource.getHeight()}_getViewZones(e,t,n,i,r){return new me(e,t,i.getOption(51),n,r.getOption(51)).getViewZones()}_getOriginalEditorDecorations(e,t,n,i,r){const o=String(this._removeColor);let s={decorations:[],overviewZones:[]},a=i.getModel();for(let i=0,r=e.length;i<r;i++){let r=e[i];if(ye(r)&&(s.decorations.push({range:new B.a(r.originalStartLineNumber,1,r.originalEndLineNumber,1073741824),options:n?ge.lineDeleteWithSign:ge.lineDelete}),ve(r)&&r.charChanges||s.decorations.push(fe(r.originalStartLineNumber,1,r.originalEndLineNumber,1073741824,ge.charDeleteWholeLine)),s.overviewZones.push(new z.a(r.originalStartLineNumber,r.originalEndLineNumber,o)),r.charChanges))for(let e=0,n=r.charChanges.length;e<n;e++){let n=r.charChanges[e];if(ye(n))if(t)for(let e=n.originalStartLineNumber;e<=n.originalEndLineNumber;e++){let t,i;t=e===n.originalStartLineNumber?n.originalStartColumn:a.getLineFirstNonWhitespaceColumn(e),i=e===n.originalEndLineNumber?n.originalEndColumn:a.getLineLastNonWhitespaceColumn(e),s.decorations.push(fe(e,t,e,i,ge.charDelete))}else s.decorations.push(fe(n.originalStartLineNumber,n.originalStartColumn,n.originalEndLineNumber,n.originalEndColumn,ge.charDelete))}}return s}_getModifiedEditorDecorations(e,t,n,i,r){const o=String(this._insertColor);let s={decorations:[],overviewZones:[]},a=r.getModel();for(let i=0,r=e.length;i<r;i++){let r=e[i];if(ve(r)&&(s.decorations.push({range:new B.a(r.modifiedStartLineNumber,1,r.modifiedEndLineNumber,1073741824),options:n?ge.lineInsertWithSign:ge.lineInsert}),ye(r)&&r.charChanges||s.decorations.push(fe(r.modifiedStartLineNumber,1,r.modifiedEndLineNumber,1073741824,ge.charInsertWholeLine)),s.overviewZones.push(new z.a(r.modifiedStartLineNumber,r.modifiedEndLineNumber,o)),r.charChanges))for(let e=0,n=r.charChanges.length;e<n;e++){let n=r.charChanges[e];if(ve(n))if(t)for(let e=n.modifiedStartLineNumber;e<=n.modifiedEndLineNumber;e++){let t,i;t=e===n.modifiedStartLineNumber?n.modifiedStartColumn:a.getLineFirstNonWhitespaceColumn(e),i=e===n.modifiedEndLineNumber?n.modifiedEndColumn:a.getLineLastNonWhitespaceColumn(e),s.decorations.push(fe(e,t,e,i,ge.charInsert))}else s.decorations.push(fe(n.modifiedStartLineNumber,n.modifiedStartColumn,n.modifiedEndLineNumber,n.modifiedEndColumn,ge.charInsert))}}return s}}pe.MINIMUM_EDITOR_WIDTH=100;class me extends he{constructor(e,t,n,i,r){super(e,t,n,i,r)}_createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion(){return null}_produceOriginalFromDiff(e,t,n){return n>t?{afterLineNumber:Math.max(e.originalStartLineNumber,e.originalEndLineNumber),heightInLines:n-t,domNode:null}:null}_produceModifiedFromDiff(e,t,n){return t>n?{afterLineNumber:Math.max(e.modifiedStartLineNumber,e.modifiedEndLineNumber),heightInLines:t-n,domNode:null}:null}}class _e extends de{constructor(e,t){super(e),this.decorationsLeft=e.getOriginalEditor().getLayoutInfo().decorationsLeft,this._register(e.getOriginalEditor().onDidLayoutChange(t=>{this.decorationsLeft!==t.decorationsLeft&&(this.decorationsLeft=t.decorationsLeft,e.relayoutEditors())}))}setEnableSplitViewResizing(e){}_getViewZones(e,t,n,i,r,o){return new be(e,t,n,i,r,o).getViewZones()}_getOriginalEditorDecorations(e,t,n,i,r){const o=String(this._removeColor);let s={decorations:[],overviewZones:[]};for(let t=0,n=e.length;t<n;t++){let n=e[t];ye(n)&&(s.decorations.push({range:new B.a(n.originalStartLineNumber,1,n.originalEndLineNumber,1073741824),options:ge.lineDeleteMargin}),s.overviewZones.push(new z.a(n.originalStartLineNumber,n.originalEndLineNumber,o)))}return s}_getModifiedEditorDecorations(e,t,n,i,r){const o=String(this._insertColor);let s={decorations:[],overviewZones:[]},a=r.getModel();for(let i=0,r=e.length;i<r;i++){let r=e[i];if(ve(r))if(s.decorations.push({range:new B.a(r.modifiedStartLineNumber,1,r.modifiedEndLineNumber,1073741824),options:n?ge.lineInsertWithSign:ge.lineInsert}),s.overviewZones.push(new z.a(r.modifiedStartLineNumber,r.modifiedEndLineNumber,o)),r.charChanges)for(let e=0,n=r.charChanges.length;e<n;e++){let n=r.charChanges[e];if(ve(n))if(t)for(let e=n.modifiedStartLineNumber;e<=n.modifiedEndLineNumber;e++){let t,i;t=e===n.modifiedStartLineNumber?n.modifiedStartColumn:a.getLineFirstNonWhitespaceColumn(e),i=e===n.modifiedEndLineNumber?n.modifiedEndColumn:a.getLineLastNonWhitespaceColumn(e),s.decorations.push(fe(e,t,e,i,ge.charInsert))}else s.decorations.push(fe(n.modifiedStartLineNumber,n.modifiedStartColumn,n.modifiedEndLineNumber,n.modifiedEndColumn,ge.charInsert))}else s.decorations.push(fe(r.modifiedStartLineNumber,1,r.modifiedEndLineNumber,1073741824,ge.charInsertWholeLine))}return s}layout(){return Math.max(5,this.decorationsLeft)}}class be extends he{constructor(e,t,n,i,r,o){super(e,t,i.getOption(51),n,r.getOption(51)),this.originalModel=i.getModel(),this.modifiedEditorOptions=r.getOptions(),this.modifiedEditorTabSize=r.getModel().getOptions().tabSize,this.renderIndicators=o}_createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion(){let e=document.createElement("div");return e.className="inline-added-margin-view-zone",e}_produceOriginalFromDiff(e,t,n){let i=document.createElement("div");return i.className="inline-added-margin-view-zone",{afterLineNumber:Math.max(e.originalStartLineNumber,e.originalEndLineNumber),heightInLines:n,domNode:document.createElement("div"),marginDomNode:i}}_produceModifiedFromDiff(e,t,n){let i=[];if(e.charChanges)for(let t=0,n=e.charChanges.length;t<n;t++){let n=e.charChanges[t];ye(n)&&i.push(new k.a(new B.a(n.originalStartLineNumber,n.originalStartColumn,n.originalEndLineNumber,n.originalEndColumn),"char-delete",0))}let r=Object(W.a)(1e4),o=[];const s=this.modifiedEditorOptions.get(117),a=this.modifiedEditorOptions.get(36),l=s.decorationsWidth;let c=this.modifiedEditorOptions.get(51);const d=a.typicalHalfwidthCharacterWidth;let h=0;const f=[];for(let t=e.originalStartLineNumber;t<=e.originalEndLineNumber;t++)if(h=Math.max(h,this._renderOriginalLine(t-e.originalStartLineNumber,this.originalModel,this.modifiedEditorOptions,this.modifiedEditorTabSize,t,i,r)),f.push(this.originalModel.getLineContent(t)),this.renderIndicators){let n=t-e.originalStartLineNumber;o=o.concat([`<div class="delete-sign ${le.classNames}" style="position:absolute;top:${n*c}px;width:${l}px;height:${c}px;right:0;"></div>`])}h+=this.modifiedEditorOptions.get(85);let g=document.createElement("div");g.className=`view-lines line-delete ${ne.a}`,g.innerHTML=r.build(),u.a.applyFontInfoSlow(g,a);let p=document.createElement("div");return p.className="inline-deleted-margin-view-zone",p.innerHTML=o.join(""),u.a.applyFontInfoSlow(p,a),{shouldNotShrink:!0,afterLineNumber:0===e.modifiedEndLineNumber?e.modifiedStartLineNumber:e.modifiedStartLineNumber-1,heightInLines:t,minWidthInPx:h*d,domNode:g,marginDomNode:p,diff:{originalStartLineNumber:e.originalStartLineNumber,originalEndLineNumber:e.originalEndLineNumber,modifiedStartLineNumber:e.modifiedStartLineNumber,modifiedEndLineNumber:e.modifiedEndLineNumber,originalContent:f}}}_renderOriginalLine(e,t,n,i,r,o,s){const a=t.getLineTokens(r),l=a.getLineContent(),c=n.get(36),d=U.a.filter(o,r,1,l.length+1);s.appendASCIIString('<div class="view-line'),0===o.length&&s.appendASCIIString(" char-delete"),s.appendASCIIString('" style="top:'),s.appendASCIIString(String(e*n.get(51))),s.appendASCIIString('px;width:1000000px;">');const u=k.d.isBasicASCII(l,t.mightContainNonBasicASCII()),h=k.d.containsRTL(l,u,t.mightContainRTL()),f=Object(S.d)(new S.c(c.isMonospace&&!n.get(24),c.canUseHalfwidthRightwardsArrow,l,!1,u,h,0,a,d,i,0,c.spaceWidth,c.middotWidth,c.wsmiddotWidth,n.get(95),n.get(80),n.get(74),n.get(37)!==v.e.OFF,null),s);s.appendASCIIString("</div>");const g=f.characterMapping.getAbsoluteOffsets();return g.length>0?g[g.length-1]:0}}function ve(e){return e.modifiedEndLineNumber>0}function ye(e){return e.originalEndLineNumber>0}Object(M.g)((e,t)=>{const n=e.getColor(L.n);n&&(t.addRule(`.monaco-editor .line-insert, .monaco-editor .char-insert { background-color: ${n}; }`),t.addRule(`.monaco-diff-editor .line-insert, .monaco-diff-editor .char-insert { background-color: ${n}; }`),t.addRule(`.monaco-editor .inline-added-margin-view-zone { background-color: ${n}; }`));const i=e.getColor(L.p);i&&(t.addRule(`.monaco-editor .line-delete, .monaco-editor .char-delete { background-color: ${i}; }`),t.addRule(`.monaco-diff-editor .line-delete, .monaco-diff-editor .char-delete { background-color: ${i}; }`),t.addRule(`.monaco-editor .inline-deleted-margin-view-zone { background-color: ${i}; }`));const r=e.getColor(L.o);r&&t.addRule(`.monaco-editor .line-insert, .monaco-editor .char-insert { border: 1px ${"hc"===e.type?"dashed":"solid"} ${r}; }`);const o=e.getColor(L.q);o&&t.addRule(`.monaco-editor .line-delete, .monaco-editor .char-delete { border: 1px ${"hc"===e.type?"dashed":"solid"} ${o}; }`);const s=e.getColor(L.ic);s&&t.addRule(`.monaco-diff-editor.side-by-side .editor.modified { box-shadow: -6px 0 5px -5px ${s}; }`);const a=e.getColor(L.l);a&&t.addRule(`.monaco-diff-editor.side-by-side .editor.modified { border-left: 1px solid ${a}; }`);const l=e.getColor(L.kc);l&&t.addRule(`\n\t\t\t.monaco-diff-editor .diffViewport {\n\t\t\t\tbackground: ${l};\n\t\t\t}\n\t\t`);const c=e.getColor(L.lc);c&&t.addRule(`\n\t\t\t.monaco-diff-editor .diffViewport:hover {\n\t\t\t\tbackground: ${c};\n\t\t\t}\n\t\t`);const d=e.getColor(L.jc);d&&t.addRule(`\n\t\t\t.monaco-diff-editor .diffViewport:active {\n\t\t\t\tbackground: ${d};\n\t\t\t}\n\t\t`);const u=e.getColor(L.m);t.addRule(`\n\t.monaco-editor .diagonal-fill {\n\t\tbackground-image: linear-gradient(\n\t\t\t-45deg,\n\t\t\t${u} 12.5%,\n\t\t\t#0000 12.5%, #0000 50%,\n\t\t\t${u} 50%, ${u} 62.5%,\n\t\t\t#0000 62.5%, #0000 100%\n\t\t);\n\t\tbackground-size: 8px 8px;\n\t}\n\t`)})},function(e,t,n){e.exports=function(){"use strict";function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function n(e,n){var i;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(i=function(e,n){if(e){if("string"==typeof e)return t(e,n);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?t(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){i&&(e=i);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(i=e[Symbol.iterator]()).next.bind(i)}var i=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){function t(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}e.exports={defaults:{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1},getDefaults:t,changeDefaults:function(t){e.exports.defaults=t}}})),r=(i.defaults,i.getDefaults,i.changeDefaults,/[&<>"']/),o=/[&<>"']/g,s=/[<>"']|&(?!#?\w+;)/,a=/[<>"']|&(?!#?\w+;)/g,l={"&":"&","<":"<",">":">",'"':""","'":"'"},c=function(e){return l[e]},d=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function u(e){return e.replace(d,(function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}var h=/(^|[^\[])\^/g,f=/[^\w:]/g,g=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i,p={},m=/^[^:]+:\/*[^/]*$/,_=/^([^:]+:)[\s\S]*$/,b=/^([^:]+:\/*[^/]*)[\s\S]*$/;function v(e,t){p[" "+e]||(m.test(e)?p[" "+e]=e+"/":p[" "+e]=y(e,"/",!0));var n=-1===(e=p[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(_,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(b,"$1")+t:e+t}function y(e,t,n){var i=e.length;if(0===i)return"";for(var r=0;r<i;){var o=e.charAt(i-r-1);if(o!==t||n){if(o===t||!n)break;r++}else r++}return e.substr(0,i-r)}var w=function(e,t){if(t){if(r.test(e))return e.replace(o,c)}else if(s.test(e))return e.replace(a,c);return e},C=u,S=function(e,t){e=e.source||e,t=t||"";var n={replace:function(t,i){return i=(i=i.source||i).replace(h,"$1"),e=e.replace(t,i),n},getRegex:function(){return new RegExp(e,t)}};return n},k=function(e,t,n){if(e){var i;try{i=decodeURIComponent(u(n)).replace(f,"").toLowerCase()}catch(e){return null}if(0===i.indexOf("javascript:")||0===i.indexOf("vbscript:")||0===i.indexOf("data:"))return null}t&&!g.test(n)&&(n=v(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n},x={exec:function(){}},L=function(e){for(var t,n,i=1;i<arguments.length;i++)for(n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},M=function(e,t){var n=e.replace(/\|/g,(function(e,t,n){for(var i=!1,r=t;--r>=0&&"\\"===n[r];)i=!i;return i?"|":" |"})).split(/ \|/),i=0;if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;i<n.length;i++)n[i]=n[i].trim().replace(/\\\|/g,"|");return n},D=y,E=function(e,t){if(-1===e.indexOf(t[1]))return-1;for(var n=e.length,i=0,r=0;r<n;r++)if("\\"===e[r])r++;else if(e[r]===t[0])i++;else if(e[r]===t[1]&&--i<0)return r;return-1},T=function(e){e&&e.sanitize&&e.silent},O=i.defaults,N=D,I=M,A=w,R=E;function P(e,t,n){var i=t.href,r=t.title?A(t.title):null,o=e[1].replace(/\\([\[\]])/g,"$1");return"!"!==e[0].charAt(0)?{type:"link",raw:n,href:i,title:r,text:o}:{type:"image",raw:n,href:i,title:r,text:A(o)}}var j=function(){function e(e){this.options=e||O}var t=e.prototype;return t.space=function(e){var t=this.rules.block.newline.exec(e);if(t)return t[0].length>1?{type:"space",raw:t[0]}:{raw:"\n"}},t.code=function(e,t){var n=this.rules.block.code.exec(e);if(n){var i=t[t.length-1];if(i&&"paragraph"===i.type)return{raw:n[0],text:n[0].trimRight()};var r=n[0].replace(/^ {4}/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?r:N(r,"\n")}}},t.fences=function(e){var t=this.rules.block.fences.exec(e);if(t){var n=t[0],i=function(e,t){var n=e.match(/^(\s+)(?:```)/);if(null===n)return t;var i=n[1];return t.split("\n").map((function(e){var t=e.match(/^\s+/);return null===t?e:t[0].length>=i.length?e.slice(i.length):e})).join("\n")}(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim():t[2],text:i}}},t.heading=function(e){var t=this.rules.block.heading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[1].length,text:t[2]}},t.nptable=function(e){var t=this.rules.block.nptable.exec(e);if(t){var n={type:"table",header:I(t[1].replace(/^ *| *\| *$/g,"")),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:t[3]?t[3].replace(/\n$/,"").split("\n"):[],raw:t[0]};if(n.header.length===n.align.length){var i,r=n.align.length;for(i=0;i<r;i++)/^ *-+: *$/.test(n.align[i])?n.align[i]="right":/^ *:-+: *$/.test(n.align[i])?n.align[i]="center":/^ *:-+ *$/.test(n.align[i])?n.align[i]="left":n.align[i]=null;for(r=n.cells.length,i=0;i<r;i++)n.cells[i]=I(n.cells[i],n.header.length);return n}}},t.hr=function(e){var t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}},t.blockquote=function(e){var t=this.rules.block.blockquote.exec(e);if(t){var n=t[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:t[0],text:n}}},t.list=function(e){var t=this.rules.block.list.exec(e);if(t){for(var n,i,r,o,s,a,l,c=t[0],d=t[2],u=d.length>1,h=")"===d[d.length-1],f={type:"list",raw:c,ordered:u,start:u?+d.slice(0,-1):"",loose:!1,items:[]},g=t[0].match(this.rules.block.item),p=!1,m=g.length,_=0;_<m;_++)c=n=g[_],i=n.length,~(n=n.replace(/^ *([*+-]|\d+[.)]) */,"")).indexOf("\n ")&&(i-=n.length,n=this.options.pedantic?n.replace(/^ {1,4}/gm,""):n.replace(new RegExp("^ {1,"+i+"}","gm"),"")),_!==m-1&&(r=this.rules.block.bullet.exec(g[_+1])[0],(u?1===r.length||!h&&")"===r[r.length-1]:r.length>1||this.options.smartLists&&r!==d)&&(o=g.slice(_+1).join("\n"),f.raw=f.raw.substring(0,f.raw.length-o.length),_=m-1)),s=p||/\n\n(?!\s*$)/.test(n),_!==m-1&&(p="\n"===n.charAt(n.length-1),s||(s=p)),s&&(f.loose=!0),l=void 0,(a=/^\[[ xX]\] /.test(n))&&(l=" "!==n[1],n=n.replace(/^\[[ xX]\] +/,"")),f.items.push({type:"list_item",raw:c,task:a,checked:l,loose:s,text:n});return f}},t.html=function(e){var t=this.rules.block.html.exec(e);if(t)return{type:this.options.sanitize?"paragraph":"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):A(t[0]):t[0]}},t.def=function(e){var t=this.rules.block.def.exec(e);if(t)return t[3]&&(t[3]=t[3].substring(1,t[3].length-1)),{tag:t[1].toLowerCase().replace(/\s+/g," "),raw:t[0],href:t[2],title:t[3]}},t.table=function(e){var t=this.rules.block.table.exec(e);if(t){var n={type:"table",header:I(t[1].replace(/^ *| *\| *$/g,"")),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:t[3]?t[3].replace(/\n$/,"").split("\n"):[]};if(n.header.length===n.align.length){n.raw=t[0];var i,r=n.align.length;for(i=0;i<r;i++)/^ *-+: *$/.test(n.align[i])?n.align[i]="right":/^ *:-+: *$/.test(n.align[i])?n.align[i]="center":/^ *:-+ *$/.test(n.align[i])?n.align[i]="left":n.align[i]=null;for(r=n.cells.length,i=0;i<r;i++)n.cells[i]=I(n.cells[i].replace(/^ *\| *| *\| *$/g,""),n.header.length);return n}}},t.lheading=function(e){var t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1]}},t.paragraph=function(e){var t=this.rules.block.paragraph.exec(e);if(t)return{type:"paragraph",raw:t[0],text:"\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1]}},t.text=function(e,t){var n=this.rules.block.text.exec(e);if(n){var i=t[t.length-1];return i&&"text"===i.type?{raw:n[0],text:n[0]}:{type:"text",raw:n[0],text:n[0]}}},t.escape=function(e){var t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:A(t[1])}},t.tag=function(e,t,n){var i=this.rules.inline.tag.exec(e);if(i)return!t&&/^<a /i.test(i[0])?t=!0:t&&/^<\/a>/i.test(i[0])&&(t=!1),!n&&/^<(pre|code|kbd|script)(\s|>)/i.test(i[0])?n=!0:n&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(i[0])&&(n=!1),{type:this.options.sanitize?"text":"html",raw:i[0],inLink:t,inRawBlock:n,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):A(i[0]):i[0]}},t.link=function(e){var t=this.rules.inline.link.exec(e);if(t){var n=R(t[2],"()");if(n>-1){var i=(0===t[0].indexOf("!")?5:4)+t[1].length+n;t[2]=t[2].substring(0,n),t[0]=t[0].substring(0,i).trim(),t[3]=""}var r=t[2],o="";if(this.options.pedantic){var s=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r);s?(r=s[1],o=s[3]):o=""}else o=t[3]?t[3].slice(1,-1):"";return P(t,{href:(r=r.trim().replace(/^<([\s\S]*)>$/,"$1"))?r.replace(this.rules.inline._escapes,"$1"):r,title:o?o.replace(this.rules.inline._escapes,"$1"):o},t[0])}},t.reflink=function(e,t){var n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){var i=(n[2]||n[1]).replace(/\s+/g," ");if(!(i=t[i.toLowerCase()])||!i.href){var r=n[0].charAt(0);return{type:"text",raw:r,text:r}}return P(n,i,n[0])}},t.strong=function(e,t,n){void 0===n&&(n="");var i=this.rules.inline.strong.start.exec(e);if(i&&(!i[1]||i[1]&&(""===n||this.rules.inline.punctuation.exec(n)))){t=t.slice(-1*e.length);var r,o="**"===i[0]?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;for(o.lastIndex=0;null!=(i=o.exec(t));)if(r=this.rules.inline.strong.middle.exec(t.slice(0,i.index+3)))return{type:"strong",raw:e.slice(0,r[0].length),text:e.slice(2,r[0].length-2)}}},t.em=function(e,t,n){void 0===n&&(n="");var i=this.rules.inline.em.start.exec(e);if(i&&(!i[1]||i[1]&&(""===n||this.rules.inline.punctuation.exec(n)))){t=t.slice(-1*e.length);var r,o="*"===i[0]?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;for(o.lastIndex=0;null!=(i=o.exec(t));)if(r=this.rules.inline.em.middle.exec(t.slice(0,i.index+2)))return{type:"em",raw:e.slice(0,r[0].length),text:e.slice(1,r[0].length-1)}}},t.codespan=function(e){var t=this.rules.inline.code.exec(e);if(t){var n=t[2].replace(/\n/g," "),i=/[^ ]/.test(n),r=n.startsWith(" ")&&n.endsWith(" ");return i&&r&&(n=n.substring(1,n.length-1)),n=A(n,!0),{type:"codespan",raw:t[0],text:n}}},t.br=function(e){var t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}},t.del=function(e){var t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[1]}},t.autolink=function(e,t){var n,i,r=this.rules.inline.autolink.exec(e);if(r)return i="@"===r[2]?"mailto:"+(n=A(this.options.mangle?t(r[1]):r[1])):n=A(r[1]),{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}},t.url=function(e,t){var n;if(n=this.rules.inline.url.exec(e)){var i,r;if("@"===n[2])r="mailto:"+(i=A(this.options.mangle?t(n[0]):n[0]));else{var o;do{o=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(o!==n[0]);i=A(n[0]),r="www."===n[1]?"http://"+i:i}return{type:"link",raw:n[0],text:i,href:r,tokens:[{type:"text",raw:i,text:i}]}}},t.inlineText=function(e,t,n){var i,r=this.rules.inline.text.exec(e);if(r)return i=t?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):A(r[0]):r[0]:A(this.options.smartypants?n(r[0]):r[0]),{type:"text",raw:r[0],text:i}},e}(),F=x,B=S,W=L,H={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:F,table:F,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};H.def=B(H.def).replace("label",H._label).replace("title",H._title).getRegex(),H.bullet=/(?:[*+-]|\d{1,9}[.)])/,H.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,H.item=B(H.item,"gm").replace(/bull/g,H.bullet).getRegex(),H.list=B(H.list).replace(/bull/g,H.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+H.def.source+")").getRegex(),H._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",H._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,H.html=B(H.html,"i").replace("comment",H._comment).replace("tag",H._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),H.paragraph=B(H._paragraph).replace("hr",H.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",H._tag).getRegex(),H.blockquote=B(H.blockquote).replace("paragraph",H.paragraph).getRegex(),H.normal=W({},H),H.gfm=W({},H.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n *([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n *\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),H.gfm.nptable=B(H.gfm.nptable).replace("hr",H.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",H._tag).getRegex(),H.gfm.table=B(H.gfm.table).replace("hr",H.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",H._tag).getRegex(),H.pedantic=W({},H.normal,{html:B("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",H._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:F,paragraph:B(H.normal._paragraph).replace("hr",H.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",H.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var Y={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:F,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",strong:{start:/^(?:(\*\*(?=[*punctuation]))|\*\*)(?![\s])|__/,middle:/^\*\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*\*$|^__(?![\s])((?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?)__$/,endAst:/[^punctuation\s]\*\*(?!\*)|[punctuation]\*\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]__(?!_)(?:(?=[punctuation\s])|$)/},em:{start:/^(?:(\*(?=[punctuation]))|\*)(?![*\s])|_/,middle:/^\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*$|^_(?![_\s])(?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?_$/,endAst:/[^punctuation\s]\*(?!\*)|[punctuation]\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]_(?!_)(?:(?=[punctuation\s])|$)/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:F,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/,punctuation:/^([\s*punctuation])/,_punctuation:"!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~"};Y.punctuation=B(Y.punctuation).replace(/punctuation/g,Y._punctuation).getRegex(),Y._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",Y._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",Y._comment=B(H._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),Y.em.start=B(Y.em.start).replace(/punctuation/g,Y._punctuation).getRegex(),Y.em.middle=B(Y.em.middle).replace(/punctuation/g,Y._punctuation).replace(/overlapSkip/g,Y._overlapSkip).getRegex(),Y.em.endAst=B(Y.em.endAst,"g").replace(/punctuation/g,Y._punctuation).getRegex(),Y.em.endUnd=B(Y.em.endUnd,"g").replace(/punctuation/g,Y._punctuation).getRegex(),Y.strong.start=B(Y.strong.start).replace(/punctuation/g,Y._punctuation).getRegex(),Y.strong.middle=B(Y.strong.middle).replace(/punctuation/g,Y._punctuation).replace(/blockSkip/g,Y._blockSkip).getRegex(),Y.strong.endAst=B(Y.strong.endAst,"g").replace(/punctuation/g,Y._punctuation).getRegex(),Y.strong.endUnd=B(Y.strong.endUnd,"g").replace(/punctuation/g,Y._punctuation).getRegex(),Y.blockSkip=B(Y._blockSkip,"g").getRegex(),Y.overlapSkip=B(Y._overlapSkip,"g").getRegex(),Y._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Y._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Y._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,Y.autolink=B(Y.autolink).replace("scheme",Y._scheme).replace("email",Y._email).getRegex(),Y._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Y.tag=B(Y.tag).replace("comment",Y._comment).replace("attribute",Y._attribute).getRegex(),Y._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Y._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,Y._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Y.link=B(Y.link).replace("label",Y._label).replace("href",Y._href).replace("title",Y._title).getRegex(),Y.reflink=B(Y.reflink).replace("label",Y._label).getRegex(),Y.reflinkSearch=B(Y.reflinkSearch,"g").replace("reflink",Y.reflink).replace("nolink",Y.nolink).getRegex(),Y.normal=W({},Y),Y.pedantic=W({},Y.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:B(/^!?\[(label)\]\((.*?)\)/).replace("label",Y._label).getRegex(),reflink:B(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Y._label).getRegex()}),Y.gfm=W({},Y.normal,{escape:B(Y.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?= {2,}\n|[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),Y.gfm.url=B(Y.gfm.url,"i").replace("email",Y.gfm._extended_email).getRegex(),Y.breaks=W({},Y.gfm,{br:B(Y.br).replace("{2,}","*").getRegex(),text:B(Y.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var V={block:H,inline:Y},z=i.defaults,U=V.block,$=V.inline;function q(e){return e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function K(e){var t,n,i="",r=e.length;for(t=0;t<r;t++)n=e.charCodeAt(t),Math.random()>.5&&(n="x"+n.toString(16)),i+="&#"+n+";";return i}var G=function(){function t(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||z,this.options.tokenizer=this.options.tokenizer||new j,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var t={block:U.normal,inline:$.normal};this.options.pedantic?(t.block=U.pedantic,t.inline=$.pedantic):this.options.gfm&&(t.block=U.gfm,this.options.breaks?t.inline=$.breaks:t.inline=$.gfm),this.tokenizer.rules=t}t.lex=function(e,n){return new t(n).lex(e)};var n,i,r,o=t.prototype;return o.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(e,this.tokens,!0),this.inline(this.tokens),this.tokens},o.blockTokens=function(e,t,n){var i,r,o,s;for(void 0===t&&(t=[]),void 0===n&&(n=!0),e=e.replace(/^ +$/gm,"");e;)if(i=this.tokenizer.space(e))e=e.substring(i.raw.length),i.type&&t.push(i);else if(i=this.tokenizer.code(e,t))e=e.substring(i.raw.length),i.type?t.push(i):((s=t[t.length-1]).raw+="\n"+i.raw,s.text+="\n"+i.text);else if(i=this.tokenizer.fences(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.heading(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.nptable(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.hr(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.blockquote(e))e=e.substring(i.raw.length),i.tokens=this.blockTokens(i.text,[],n),t.push(i);else if(i=this.tokenizer.list(e)){for(e=e.substring(i.raw.length),o=i.items.length,r=0;r<o;r++)i.items[r].tokens=this.blockTokens(i.items[r].text,[],!1);t.push(i)}else if(i=this.tokenizer.html(e))e=e.substring(i.raw.length),t.push(i);else if(n&&(i=this.tokenizer.def(e)))e=e.substring(i.raw.length),this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title});else if(i=this.tokenizer.table(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.lheading(e))e=e.substring(i.raw.length),t.push(i);else if(n&&(i=this.tokenizer.paragraph(e)))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.text(e,t))e=e.substring(i.raw.length),i.type?t.push(i):((s=t[t.length-1]).raw+="\n"+i.raw,s.text+="\n"+i.text);else if(e){var a="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(a);break}throw new Error(a)}return t},o.inline=function(e){var t,n,i,r,o,s,a=e.length;for(t=0;t<a;t++)switch((s=e[t]).type){case"paragraph":case"text":case"heading":s.tokens=[],this.inlineTokens(s.text,s.tokens);break;case"table":for(s.tokens={header:[],cells:[]},r=s.header.length,n=0;n<r;n++)s.tokens.header[n]=[],this.inlineTokens(s.header[n],s.tokens.header[n]);for(r=s.cells.length,n=0;n<r;n++)for(o=s.cells[n],s.tokens.cells[n]=[],i=0;i<o.length;i++)s.tokens.cells[n][i]=[],this.inlineTokens(o[i],s.tokens.cells[n][i]);break;case"blockquote":this.inline(s.tokens);break;case"list":for(r=s.items.length,n=0;n<r;n++)this.inline(s.items[n].tokens)}return e},o.inlineTokens=function(e,t,n,i,r){var o;void 0===t&&(t=[]),void 0===n&&(n=!1),void 0===i&&(i=!1),void 0===r&&(r="");var s,a=e;if(this.tokens.links){var l=Object.keys(this.tokens.links);if(l.length>0)for(;null!=(s=this.tokenizer.rules.inline.reflinkSearch.exec(a));)l.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(s=this.tokenizer.rules.inline.blockSkip.exec(a));)a=a.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;e;)if(o=this.tokenizer.escape(e))e=e.substring(o.raw.length),t.push(o);else if(o=this.tokenizer.tag(e,n,i))e=e.substring(o.raw.length),n=o.inLink,i=o.inRawBlock,t.push(o);else if(o=this.tokenizer.link(e))e=e.substring(o.raw.length),"link"===o.type&&(o.tokens=this.inlineTokens(o.text,[],!0,i)),t.push(o);else if(o=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(o.raw.length),"link"===o.type&&(o.tokens=this.inlineTokens(o.text,[],!0,i)),t.push(o);else if(o=this.tokenizer.strong(e,a,r))e=e.substring(o.raw.length),o.tokens=this.inlineTokens(o.text,[],n,i),t.push(o);else if(o=this.tokenizer.em(e,a,r))e=e.substring(o.raw.length),o.tokens=this.inlineTokens(o.text,[],n,i),t.push(o);else if(o=this.tokenizer.codespan(e))e=e.substring(o.raw.length),t.push(o);else if(o=this.tokenizer.br(e))e=e.substring(o.raw.length),t.push(o);else if(o=this.tokenizer.del(e))e=e.substring(o.raw.length),o.tokens=this.inlineTokens(o.text,[],n,i),t.push(o);else if(o=this.tokenizer.autolink(e,K))e=e.substring(o.raw.length),t.push(o);else if(n||!(o=this.tokenizer.url(e,K))){if(o=this.tokenizer.inlineText(e,i,q))e=e.substring(o.raw.length),r=o.raw.slice(-1),t.push(o);else if(e){var c="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(c);break}throw new Error(c)}}else e=e.substring(o.raw.length),t.push(o);return t},n=t,r=[{key:"rules",get:function(){return{block:U,inline:$}}}],(i=null)&&e(n.prototype,i),r&&e(n,r),t}(),Z=i.defaults,J=k,X=w,Q=function(){function e(e){this.options=e||Z}var t=e.prototype;return t.code=function(e,t,n){var i=(t||"").match(/\S*/)[0];if(this.options.highlight){var r=this.options.highlight(e,i);null!=r&&r!==e&&(n=!0,e=r)}return i?'<pre><code class="'+this.options.langPrefix+X(i,!0)+'">'+(n?e:X(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:X(e,!0))+"</code></pre>\n"},t.blockquote=function(e){return"<blockquote>\n"+e+"</blockquote>\n"},t.html=function(e){return e},t.heading=function(e,t,n,i){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+i.slug(n)+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"},t.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},t.list=function(e,t,n){var i=t?"ol":"ul";return"<"+i+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+i+">\n"},t.listitem=function(e){return"<li>"+e+"</li>\n"},t.checkbox=function(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},t.paragraph=function(e){return"<p>"+e+"</p>\n"},t.table=function(e,t){return t&&(t="<tbody>"+t+"</tbody>"),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"},t.tablerow=function(e){return"<tr>\n"+e+"</tr>\n"},t.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"</"+n+">\n"},t.strong=function(e){return"<strong>"+e+"</strong>"},t.em=function(e){return"<em>"+e+"</em>"},t.codespan=function(e){return"<code>"+e+"</code>"},t.br=function(){return this.options.xhtml?"<br/>":"<br>"},t.del=function(e){return"<del>"+e+"</del>"},t.link=function(e,t,n){if(null===(e=J(this.options.sanitize,this.options.baseUrl,e)))return n;var i='<a href="'+X(e)+'"';return t&&(i+=' title="'+t+'"'),i+=">"+n+"</a>"},t.image=function(e,t,n){if(null===(e=J(this.options.sanitize,this.options.baseUrl,e)))return n;var i='<img src="'+e+'" alt="'+n+'"';return t&&(i+=' title="'+t+'"'),i+=this.options.xhtml?"/>":">"},t.text=function(e){return e},e}(),ee=function(){function e(){}var t=e.prototype;return t.strong=function(e){return e},t.em=function(e){return e},t.codespan=function(e){return e},t.del=function(e){return e},t.html=function(e){return e},t.text=function(e){return e},t.link=function(e,t,n){return""+n},t.image=function(e,t,n){return""+n},t.br=function(){return""},e}(),te=function(){function e(){this.seen={}}var t=e.prototype;return t.serialize=function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},t.getNextSafeSlug=function(e,t){var n=e,i=0;if(this.seen.hasOwnProperty(n)){i=this.seen[e];do{n=e+"-"+ ++i}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=i,this.seen[n]=0),n},t.slug=function(e,t){void 0===t&&(t={});var n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)},e}(),ne=i.defaults,ie=C,re=function(){function e(e){this.options=e||ne,this.options.renderer=this.options.renderer||new Q,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new ee,this.slugger=new te}e.parse=function(t,n){return new e(n).parse(t)};var t=e.prototype;return t.parse=function(e,t){void 0===t&&(t=!0);var n,i,r,o,s,a,l,c,d,u,h,f,g,p,m,_,b,v,y="",w=e.length;for(n=0;n<w;n++)switch((u=e[n]).type){case"space":continue;case"hr":y+=this.renderer.hr();continue;case"heading":y+=this.renderer.heading(this.parseInline(u.tokens),u.depth,ie(this.parseInline(u.tokens,this.textRenderer)),this.slugger);continue;case"code":y+=this.renderer.code(u.text,u.lang,u.escaped);continue;case"table":for(c="",l="",o=u.header.length,i=0;i<o;i++)l+=this.renderer.tablecell(this.parseInline(u.tokens.header[i]),{header:!0,align:u.align[i]});for(c+=this.renderer.tablerow(l),d="",o=u.cells.length,i=0;i<o;i++){for(l="",s=(a=u.tokens.cells[i]).length,r=0;r<s;r++)l+=this.renderer.tablecell(this.parseInline(a[r]),{header:!1,align:u.align[r]});d+=this.renderer.tablerow(l)}y+=this.renderer.table(c,d);continue;case"blockquote":d=this.parse(u.tokens),y+=this.renderer.blockquote(d);continue;case"list":for(h=u.ordered,f=u.start,g=u.loose,o=u.items.length,d="",i=0;i<o;i++)_=(m=u.items[i]).checked,b=m.task,p="",m.task&&(v=this.renderer.checkbox(_),g?m.tokens.length>0&&"text"===m.tokens[0].type?(m.tokens[0].text=v+" "+m.tokens[0].text,m.tokens[0].tokens&&m.tokens[0].tokens.length>0&&"text"===m.tokens[0].tokens[0].type&&(m.tokens[0].tokens[0].text=v+" "+m.tokens[0].tokens[0].text)):m.tokens.unshift({type:"text",text:v}):p+=v),p+=this.parse(m.tokens,g),d+=this.renderer.listitem(p,b,_);y+=this.renderer.list(d,h,f);continue;case"html":y+=this.renderer.html(u.text);continue;case"paragraph":y+=this.renderer.paragraph(this.parseInline(u.tokens));continue;case"text":for(d=u.tokens?this.parseInline(u.tokens):u.text;n+1<w&&"text"===e[n+1].type;)d+="\n"+((u=e[++n]).tokens?this.parseInline(u.tokens):u.text);y+=t?this.renderer.paragraph(d):d;continue;default:var C='Token with "'+u.type+'" type was not found.';if(this.options.silent)return void console.error(C);throw new Error(C)}return y},t.parseInline=function(e,t){t=t||this.renderer;var n,i,r="",o=e.length;for(n=0;n<o;n++)switch((i=e[n]).type){case"escape":r+=t.text(i.text);break;case"html":r+=t.html(i.text);break;case"link":r+=t.link(i.href,i.title,this.parseInline(i.tokens,t));break;case"image":r+=t.image(i.href,i.title,i.text);break;case"strong":r+=t.strong(this.parseInline(i.tokens,t));break;case"em":r+=t.em(this.parseInline(i.tokens,t));break;case"codespan":r+=t.codespan(i.text);break;case"br":r+=t.br();break;case"del":r+=t.del(this.parseInline(i.tokens,t));break;case"text":r+=t.text(i.text);break;default:var s='Token with "'+i.type+'" type was not found.';if(this.options.silent)return void console.error(s);throw new Error(s)}return r},e}(),oe=L,se=T,ae=w,le=i.getDefaults,ce=i.changeDefaults,de=i.defaults;function ue(e,t,n){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if("function"==typeof t&&(n=t,t=null),t=oe({},ue.defaults,t||{}),se(t),n){var i,r=t.highlight;try{i=G.lex(e,t)}catch(e){return n(e)}var o=function(e){var o;if(!e)try{o=re.parse(i,t)}catch(t){e=t}return t.highlight=r,e?n(e):n(null,o)};if(!r||r.length<3)return o();if(delete t.highlight,!i.length)return o();var s=0;return ue.walkTokens(i,(function(e){"code"===e.type&&(s++,setTimeout((function(){r(e.text,e.lang,(function(t,n){if(t)return o(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),0==--s&&o()}))}),0))})),void(0===s&&o())}try{var a=G.lex(e,t);return t.walkTokens&&ue.walkTokens(a,t.walkTokens),re.parse(a,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+ae(e.message+"",!0)+"</pre>";throw e}}return ue.options=ue.setOptions=function(e){return oe(ue.defaults,e),ce(ue.defaults),ue},ue.getDefaults=le,ue.defaults=de,ue.use=function(e){var t=oe({},e);if(e.renderer&&function(){var n=ue.defaults.renderer||new Q,i=function(t){var i=n[t];n[t]=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];var a=e.renderer[t].apply(n,o);return!1===a&&(a=i.apply(n,o)),a}};for(var r in e.renderer)i(r);t.renderer=n}(),e.tokenizer&&function(){var n=ue.defaults.tokenizer||new j,i=function(t){var i=n[t];n[t]=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];var a=e.tokenizer[t].apply(n,o);return!1===a&&(a=i.apply(n,o)),a}};for(var r in e.tokenizer)i(r);t.tokenizer=n}(),e.walkTokens){var n=ue.defaults.walkTokens;t.walkTokens=function(t){e.walkTokens(t),n&&n(t)}}ue.setOptions(t)},ue.walkTokens=function(e,t){for(var i,r=n(e);!(i=r()).done;){var o=i.value;switch(t(o),o.type){case"table":for(var s,a=n(o.tokens.header);!(s=a()).done;){var l=s.value;ue.walkTokens(l,t)}for(var c,d=n(o.tokens.cells);!(c=d()).done;)for(var u,h=n(c.value);!(u=h()).done;){var f=u.value;ue.walkTokens(f,t)}break;case"list":ue.walkTokens(o.items,t);break;default:o.tokens&&ue.walkTokens(o.tokens,t)}}},ue.Parser=re,ue.parser=re.parse,ue.Renderer=Q,ue.TextRenderer=ee,ue.Lexer=G,ue.lexer=G.lex,ue.Tokenizer=j,ue.Slugger=te,ue.parse=ue,ue}()},function(e,t){var n,i,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(e){i=s}}();var l,c=[],d=!1,u=-1;function h(){d&&l&&(d=!1,l.length?c=l.concat(c):u=-1,c.length&&f())}function f(){if(!d){var e=a(h);d=!0;for(var t=c.length;t;){for(l=c,c=[];++u<t;)l&&l[u].run();u=-1,t=c.length}l=null,d=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function g(e,t){this.fun=e,this.array=t}function p(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new g(e,t)),1!==c.length||d||a(f)},g.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=p,r.addListener=p,r.once=p,r.off=p,r.removeListener=p,r.removeAllListeners=p,r.emit=p,r.prependListener=p,r.prependOnceListener=p,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";n.r(t);n(902),n(275),n(283),n(285),n(337),n(334),n(331),n(326),n(641),n(288);var i=n(87);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r)},function(e,t,n){"use strict";(e.exports={}).forEach=function(e,t){for(var n=0;n<e.length;n++){var i=t(e[n]);if(i)return i}}},function(e,t,n){"use strict";var i=e.exports={};i.isIE=function(e){return(-1!==(t=navigator.userAgent.toLowerCase()).indexOf("msie")||-1!==t.indexOf("trident")||-1!==t.indexOf(" edge/"))&&(!e||e===function(){var e=3,t=document.createElement("div"),n=t.getElementsByTagName("i");do{t.innerHTML="\x3c!--[if gt IE "+ ++e+"]><i></i><![endif]--\x3e"}while(n[0]);return e>4?e:void 0}());var t},i.isLegacyOpera=function(){return!!window.opera}},function(e,t,n){var i=n(654);e.exports={Graph:i.Graph,json:n(751),alg:n(752),version:i.version}},function(e,t,n){var i=n(353),r=4;e.exports=function(e){return i(e,r)}},function(e,t,n){var i=n(239),r=n(298),o=n(244),s=n(683),a=n(689),l=n(359),c=n(360),d=n(692),u=n(693),h=n(364),f=n(694),g=n(195),p=n(698),m=n(699),_=n(369),b=n(86),v=n(193),y=n(703),w=n(132),C=n(705),S=n(158),k=1,x=2,L=4,M="[object Arguments]",D="[object Function]",E="[object GeneratorFunction]",T="[object Object]",O={};O[M]=O["[object Array]"]=O["[object ArrayBuffer]"]=O["[object DataView]"]=O["[object Boolean]"]=O["[object Date]"]=O["[object Float32Array]"]=O["[object Float64Array]"]=O["[object Int8Array]"]=O["[object Int16Array]"]=O["[object Int32Array]"]=O["[object Map]"]=O["[object Number]"]=O[T]=O["[object RegExp]"]=O["[object Set]"]=O["[object String]"]=O["[object Symbol]"]=O["[object Uint8Array]"]=O["[object Uint8ClampedArray]"]=O["[object Uint16Array]"]=O["[object Uint32Array]"]=!0,O["[object Error]"]=O[D]=O["[object WeakMap]"]=!1,e.exports=function e(t,n,N,I,A,R){var P,j=n&k,F=n&x,B=n&L;if(N&&(P=A?N(t,I,A,R):N(t)),void 0!==P)return P;if(!w(t))return t;var W=b(t);if(W){if(P=p(t),!j)return c(t,P)}else{var H=g(t),Y=H==D||H==E;if(v(t))return l(t,j);if(H==T||H==M||Y&&!A){if(P=F||Y?{}:_(t),!j)return F?u(t,a(P,t)):d(t,s(P,t))}else{if(!O[H])return A?t:{};P=m(t,H,j)}}R||(R=new i);var V=R.get(t);if(V)return V;R.set(t,P),C(t)?t.forEach((function(i){P.add(e(i,n,N,i,t,R))})):y(t)&&t.forEach((function(i,r){P.set(r,e(i,n,N,r,t,R))}));var z=B?F?f:h:F?keysIn:S,U=W?void 0:z(t);return r(U||t,(function(i,r){U&&(i=t[r=i]),o(P,r,e(i,n,N,r,t,R))})),P}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(237))},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){var i=n(179),r=function(){try{var e=i(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=r},function(e,t,n){var i=n(684),r=n(214),o=n(86),s=n(193),a=n(246),l=n(216),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),d=!n&&r(e),u=!n&&!d&&s(e),h=!n&&!d&&!u&&l(e),f=n||d||u||h,g=f?i(e.length,String):[],p=g.length;for(var m in e)!t&&!c.call(e,m)||f&&("length"==m||u&&("offset"==m||"parent"==m)||h&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||a(m,p))||g.push(m);return g}},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){(function(e){var i=n(142),r=t&&!t.nodeType&&t,o=r&&"object"==typeof e&&e&&!e.nodeType&&e,s=o&&o.exports===r?i.Buffer:void 0,a=s?s.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,i=a?a(n):new e.constructor(n);return e.copy(i),i}}).call(this,n(215)(e))},function(e,t){e.exports=function(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t}},function(e,t){e.exports=function(e,t){for(var n=-1,i=null==e?0:e.length,r=0,o=[];++n<i;){var s=e[n];t(s,n,e)&&(o[r++]=s)}return o}},function(e,t){e.exports=function(){return[]}},function(e,t,n){var i=n(303),r=n(249),o=n(302),s=n(362),a=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)i(t,o(e)),e=r(e);return t}:s;e.exports=a},function(e,t,n){var i=n(365),r=n(302),o=n(158);e.exports=function(e){return i(e,o,r)}},function(e,t,n){var i=n(303),r=n(86);e.exports=function(e,t,n){var o=t(e);return r(e)?o:i(o,n(e))}},function(e,t,n){var i=n(179)(n(142),"Set");e.exports=i},function(e,t,n){var i=n(142).Uint8Array;e.exports=i},function(e,t,n){var i=n(304);e.exports=function(e,t){var n=t?i(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},function(e,t,n){var i=n(370),r=n(249),o=n(248);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:i(r(e))}},function(e,t,n){var i=n(132),r=Object.create,o=function(){function e(){}return function(t){if(!i(t))return{};if(r)return r(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},function(e,t,n){var i=n(182);e.exports=function(e){return"function"==typeof e?e:i}},function(e,t,n){var i=n(712),r=n(149);e.exports=function e(t,n,o,s,a){return t===n||(null==t||null==n||!r(t)&&!r(n)?t!=t&&n!=n:i(t,n,o,s,e,a))}},function(e,t,n){var i=n(374),r=n(715),o=n(375),s=1,a=2;e.exports=function(e,t,n,l,c,d){var u=n&s,h=e.length,f=t.length;if(h!=f&&!(u&&f>h))return!1;var g=d.get(e);if(g&&d.get(t))return g==t;var p=-1,m=!0,_=n&a?new i:void 0;for(d.set(e,t),d.set(t,e);++p<h;){var b=e[p],v=t[p];if(l)var y=u?l(v,b,p,t,e,d):l(b,v,p,e,t,d);if(void 0!==y){if(y)continue;m=!1;break}if(_){if(!r(t,(function(e,t){if(!o(_,t)&&(b===e||c(b,e,n,l,d)))return _.push(t)}))){m=!1;break}}else if(b!==v&&!c(b,v,n,l,d)){m=!1;break}}return d.delete(e),d.delete(t),m}},function(e,t,n){var i=n(297),r=n(713),o=n(714);function s(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new i;++t<n;)this.add(e[t])}s.prototype.add=s.prototype.push=r,s.prototype.has=o,e.exports=s},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t,n){var i=n(132);e.exports=function(e){return e==e&&!i(e)}},function(e,t){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},function(e,t,n){var i=n(725);e.exports=function(e){return null==e?"":i(e)}},function(e,t,n){var i=n(726),r=n(380);e.exports=function(e,t){return null!=e&&r(e,t,i)}},function(e,t,n){var i=n(252),r=n(214),o=n(86),s=n(246),a=n(299),l=n(219);e.exports=function(e,t,n){for(var c=-1,d=(t=i(t,e)).length,u=!1;++c<d;){var h=l(t[c]);if(!(u=null!=e&&n(e,h)))break;e=e[h]}return u||++c!=d?u:!!(d=null==e?0:e.length)&&a(d)&&s(h,d)&&(o(e)||r(e))}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,n){var i=n(301),r=n(195),o=n(214),s=n(86),a=n(159),l=n(193),c=n(248),d=n(216),u="[object Map]",h="[object Set]",f=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(a(e)&&(s(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||d(e)||o(e)))return!e.length;var t=r(e);if(t==u||t==h)return!e.size;if(c(e))return!i(e).length;for(var n in e)if(f.call(e,n))return!1;return!0}},function(e,t,n){var i=n(250),r=n(159);e.exports=function(e,t){var n=-1,o=r(e)?Array(e.length):[];return i(e,(function(e,i,r){o[++n]=t(e,i,r)})),o}},function(e,t,n){var i=n(301),r=n(195),o=n(159),s=n(732),a=n(733),l="[object Map]",c="[object Set]";e.exports=function(e){if(null==e)return 0;if(o(e))return s(e)?a(e):e.length;var t=r(e);return t==l||t==c?e.size:i(e).length}},function(e,t,n){var i=n(298),r=n(370),o=n(306),s=n(160),a=n(249),l=n(86),c=n(193),d=n(180),u=n(132),h=n(216);e.exports=function(e,t,n){var f=l(e),g=f||c(e)||h(e);if(t=s(t,4),null==n){var p=e&&e.constructor;n=g?f?new p:[]:u(e)&&d(p)?r(a(e)):{}}return(g?i:o)(e,(function(e,i,r){return t(n,e,i,r)})),n}},function(e,t,n){var i=n(311),r=n(257),o=n(741),s=n(390),a=r((function(e){return o(i(e,1,s,!0))}));e.exports=a},function(e,t,n){var i=n(738),r=Math.max;e.exports=function(e,t,n){return t=r(void 0===t?e.length-1:t,0),function(){for(var o=arguments,s=-1,a=r(o.length-t,0),l=Array(a);++s<a;)l[s]=o[t+s];s=-1;for(var c=Array(t+1);++s<t;)c[s]=o[s];return c[t]=n(l),i(e,this,c)}}},function(e,t,n){var i=n(739),r=n(740)(i);e.exports=r},function(e,t){e.exports=function(e,t,n,i){for(var r=e.length,o=n+(i?1:-1);i?o--:++o<r;)if(t(e[o],o,e))return o;return-1}},function(e,t,n){var i=n(159),r=n(149);e.exports=function(e){return r(e)&&i(e)}},function(e,t,n){var i=n(131),r=n(392);e.exports=function(e,t,n,i){return function(e,t,n,i){var o,s,a={},l=new r,c=function(e){var t=e.v!==o?e.v:e.w,i=a[t],r=n(e),c=s.distance+r;if(r<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+e+" Weight: "+r);c<i.distance&&(i.distance=c,i.predecessor=o,l.decrease(t,c))};e.nodes().forEach((function(e){var n=e===t?0:Number.POSITIVE_INFINITY;a[e]={distance:n},l.add(e,n)}));for(;l.size()>0&&(o=l.removeMin(),(s=a[o]).distance!==Number.POSITIVE_INFINITY);)i(o).forEach(c);return a}(e,String(t),n||o,i||function(t){return e.outEdges(t)})};var o=i.constant(1)},function(e,t,n){var i=n(131);function r(){this._arr=[],this._keyIndices={}}e.exports=r,r.prototype.size=function(){return this._arr.length},r.prototype.keys=function(){return this._arr.map((function(e){return e.key}))},r.prototype.has=function(e){return i.has(this._keyIndices,e)},r.prototype.priority=function(e){var t=this._keyIndices[e];if(void 0!==t)return this._arr[t].priority},r.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},r.prototype.add=function(e,t){var n=this._keyIndices;if(e=String(e),!i.has(n,e)){var r=this._arr,o=r.length;return n[e]=o,r.push({key:e,priority:t}),this._decrease(o),!0}return!1},r.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var e=this._arr.pop();return delete this._keyIndices[e.key],this._heapify(0),e.key},r.prototype.decrease=function(e,t){var n=this._keyIndices[e];if(t>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+e+" Old: "+this._arr[n].priority+" New: "+t);this._arr[n].priority=t,this._decrease(n)},r.prototype._heapify=function(e){var t=this._arr,n=2*e,i=n+1,r=e;n<t.length&&(r=t[n].priority<t[r].priority?n:r,i<t.length&&(r=t[i].priority<t[r].priority?i:r),r!==e&&(this._swap(e,r),this._heapify(r)))},r.prototype._decrease=function(e){for(var t,n=this._arr,i=n[e].priority;0!==e&&!(n[t=e>>1].priority<i);)this._swap(e,t),e=t},r.prototype._swap=function(e,t){var n=this._arr,i=this._keyIndices,r=n[e],o=n[t];n[e]=o,n[t]=r,i[o.key]=e,i[r.key]=t}},function(e,t,n){var i=n(131);e.exports=function(e){var t=0,n=[],r={},o=[];return e.nodes().forEach((function(s){i.has(r,s)||function s(a){var l=r[a]={onStack:!0,lowlink:t,index:t++};if(n.push(a),e.successors(a).forEach((function(e){i.has(r,e)?r[e].onStack&&(l.lowlink=Math.min(l.lowlink,r[e].index)):(s(e),l.lowlink=Math.min(l.lowlink,r[e].lowlink))})),l.lowlink===l.index){var c,d=[];do{c=n.pop(),r[c].onStack=!1,d.push(c)}while(a!==c);o.push(d)}}(s)})),o}},function(e,t,n){var i=n(131);function r(e){var t={},n={},r=[];if(i.each(e.sinks(),(function s(a){if(i.has(n,a))throw new o;i.has(t,a)||(n[a]=!0,t[a]=!0,i.each(e.predecessors(a),s),delete n[a],r.push(a))})),i.size(t)!==e.nodeCount())throw new o;return r}function o(){}e.exports=r,r.CycleException=o,o.prototype=new Error},function(e,t,n){var i=n(131);e.exports=function(e,t,n){i.isArray(t)||(t=[t]);var r=(e.isDirected()?e.successors:e.neighbors).bind(e),o=[],s={};return i.each(t,(function(t){if(!e.hasNode(t))throw new Error("Graph does not have node: "+t);!function e(t,n,r,o,s,a){i.has(o,n)||(o[n]=!0,r||a.push(n),i.each(s(n),(function(n){e(t,n,r,o,s,a)})),r&&a.push(n))}(e,t,"post"===n,s,r,o)})),o}},function(e,t,n){var i=n(353),r=1,o=4;e.exports=function(e){return i(e,r|o)}},function(e,t,n){var i=n(762)(n(763));e.exports=i},function(e,t,n){var i=n(765),r=1/0,o=17976931348623157e292;e.exports=function(e){return e?(e=i(e))===r||e===-r?(e<0?-1:1)*o:e==e?e:0:0===e?e:0}},function(e,t,n){var i=n(307),r=n(371),o=n(194);e.exports=function(e,t){return null==e?e:i(e,r(t),o)}},function(e,t){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},function(e,t,n){var i=n(245),r=n(306),o=n(160);e.exports=function(e,t){var n={};return t=o(t,3),r(e,(function(e,r,o){i(n,r,t(e,r,o))})),n}},function(e,t,n){var i=n(314),r=n(766),o=n(182);e.exports=function(e){return e&&e.length?i(e,o,r):void 0}},function(e,t,n){var i=n(767),r=n(770)((function(e,t,n){i(e,t,n)}));e.exports=r},function(e,t,n){var i=n(245),r=n(191);e.exports=function(e,t,n){(void 0===n||r(e[t],n))&&(void 0!==n||t in e)||i(e,t,n)}},function(e,t,n){var i=n(181),r=n(249),o=n(149),s="[object Object]",a=Function.prototype,l=Object.prototype,c=a.toString,d=l.hasOwnProperty,u=c.call(Object);e.exports=function(e){if(!o(e)||i(e)!=s)return!1;var t=r(e);if(null===t)return!0;var n=d.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==u}},function(e,t){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},function(e,t,n){var i=n(314),r=n(408),o=n(182);e.exports=function(e){return e&&e.length?i(e,o,r):void 0}},function(e,t){e.exports=function(e,t){return e<t}},function(e,t,n){var i=n(314),r=n(160),o=n(408);e.exports=function(e,t){return e&&e.length?i(e,r(t,2),o):void 0}},function(e,t,n){var i=n(142);e.exports=function(){return i.Date.now()}},function(e,t,n){var i=n(311),r=n(777),o=n(257),s=n(259),a=o((function(e,t){if(null==e)return[];var n=t.length;return n>1&&s(e,t[0],t[1])?t=[]:n>2&&s(t[0],t[1],t[2])&&(t=[t[0]]),r(e,i(t,1),[])}));e.exports=a},function(e,t,n){var i=n(244),r=n(781);e.exports=function(e,t){return r(e||[],t||[],i)}},function(e,t,n){"use strict";var i=n(74),r=n(141).Graph,o=n(260).slack;function s(e,t){return i.forEach(e.nodes(),(function n(r){i.forEach(t.nodeEdges(r),(function(i){var s=i.v,a=r===s?i.w:s;e.hasNode(a)||o(t,i)||(e.setNode(a,{}),e.setEdge(r,a,{}),n(a))}))})),e.nodeCount()}function a(e,t){return i.minBy(t.edges(),(function(n){if(e.hasNode(n.v)!==e.hasNode(n.w))return o(t,n)}))}function l(e,t,n){i.forEach(e.nodes(),(function(e){t.node(e).rank+=n}))}e.exports=function(e){var t,n,i=new r({directed:!1}),c=e.nodes()[0],d=e.nodeCount();i.setNode(c,{});for(;s(i,e)<d;)t=a(i,e),n=i.hasNode(t.v)?o(e,t):-o(e,t),l(i,e,n);return i}},function(e,t,n){var i=n(807);e.exports={Graph:i.Graph,json:n(809),alg:n(810),version:i.version}},function(e,t,n){var i=n(133),r=n(416);e.exports=function(e,t,n,i){return function(e,t,n,i){var o,s,a={},l=new r,c=function(e){var t=e.v!==o?e.v:e.w,i=a[t],r=n(e),c=s.distance+r;if(r<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+e+" Weight: "+r);c<i.distance&&(i.distance=c,i.predecessor=o,l.decrease(t,c))};e.nodes().forEach((function(e){var n=e===t?0:Number.POSITIVE_INFINITY;a[e]={distance:n},l.add(e,n)}));for(;l.size()>0&&(o=l.removeMin(),(s=a[o]).distance!==Number.POSITIVE_INFINITY);)i(o).forEach(c);return a}(e,String(t),n||o,i||function(t){return e.outEdges(t)})};var o=i.constant(1)},function(e,t,n){var i=n(133);function r(){this._arr=[],this._keyIndices={}}e.exports=r,r.prototype.size=function(){return this._arr.length},r.prototype.keys=function(){return this._arr.map((function(e){return e.key}))},r.prototype.has=function(e){return i.has(this._keyIndices,e)},r.prototype.priority=function(e){var t=this._keyIndices[e];if(void 0!==t)return this._arr[t].priority},r.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},r.prototype.add=function(e,t){var n=this._keyIndices;if(e=String(e),!i.has(n,e)){var r=this._arr,o=r.length;return n[e]=o,r.push({key:e,priority:t}),this._decrease(o),!0}return!1},r.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var e=this._arr.pop();return delete this._keyIndices[e.key],this._heapify(0),e.key},r.prototype.decrease=function(e,t){var n=this._keyIndices[e];if(t>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+e+" Old: "+this._arr[n].priority+" New: "+t);this._arr[n].priority=t,this._decrease(n)},r.prototype._heapify=function(e){var t=this._arr,n=2*e,i=n+1,r=e;n<t.length&&(r=t[n].priority<t[r].priority?n:r,i<t.length&&(r=t[i].priority<t[r].priority?i:r),r!==e&&(this._swap(e,r),this._heapify(r)))},r.prototype._decrease=function(e){for(var t,n=this._arr,i=n[e].priority;0!==e&&!(n[t=e>>1].priority<i);)this._swap(e,t),e=t},r.prototype._swap=function(e,t){var n=this._arr,i=this._keyIndices,r=n[e],o=n[t];n[e]=o,n[t]=r,i[o.key]=e,i[r.key]=t}},function(e,t,n){var i=n(133);e.exports=function(e){var t=0,n=[],r={},o=[];return e.nodes().forEach((function(s){i.has(r,s)||function s(a){var l=r[a]={onStack:!0,lowlink:t,index:t++};if(n.push(a),e.successors(a).forEach((function(e){i.has(r,e)?r[e].onStack&&(l.lowlink=Math.min(l.lowlink,r[e].index)):(s(e),l.lowlink=Math.min(l.lowlink,r[e].lowlink))})),l.lowlink===l.index){var c,d=[];do{c=n.pop(),r[c].onStack=!1,d.push(c)}while(a!==c);o.push(d)}}(s)})),o}},function(e,t,n){var i=n(133);function r(e){var t={},n={},r=[];if(i.each(e.sinks(),(function s(a){if(i.has(n,a))throw new o;i.has(t,a)||(n[a]=!0,t[a]=!0,i.each(e.predecessors(a),s),delete n[a],r.push(a))})),i.size(t)!==e.nodeCount())throw new o;return r}function o(){}e.exports=r,r.CycleException=o,o.prototype=new Error},function(e,t,n){var i=n(133);e.exports=function(e,t,n){i.isArray(t)||(t=[t]);var r=(e.isDirected()?e.successors:e.neighbors).bind(e),o=[],s={};return i.each(t,(function(t){if(!e.hasNode(t))throw new Error("Graph does not have node: "+t);!function e(t,n,r,o,s,a){i.has(o,n)||(o[n]=!0,r||a.push(n),i.each(s(n),(function(n){e(t,n,r,o,s,a)})),r&&a.push(n))}(e,t,"post"===n,s,r,o)})),o}},function(e,t,n){var i;try{i=n(819)}catch(e){}i||(i=window.dagre),e.exports=i},function(e,t,n){"use strict";var i=n(75),r=n(143).Graph,o=n(261).slack;function s(e,t){return i.forEach(e.nodes(),(function n(r){i.forEach(t.nodeEdges(r),(function(i){var s=i.v,a=r===s?i.w:s;e.hasNode(a)||o(t,i)||(e.setNode(a,{}),e.setEdge(r,a,{}),n(a))}))})),e.nodeCount()}function a(e,t){return i.minBy(t.edges(),(function(n){if(e.hasNode(n.v)!==e.hasNode(n.w))return o(t,n)}))}function l(e,t,n){i.forEach(e.nodes(),(function(e){t.node(e).rank+=n}))}e.exports=function(e){var t,n,i=new r({directed:!1}),c=e.nodes()[0],d=e.nodeCount();i.setNode(c,{});for(;s(i,e)<d;)t=a(i,e),n=i.hasNode(t.v)?o(e,t):-o(e,t),l(i,e,n);return i}},function(e,t){e.exports=function(e,t){return e.intersect(t)}},function(e,t,n){var i=n(319);e.exports=function(e,t,n){return i(e,t,t,n)}},function(e,t,n){var i=n(845);e.exports=function(e,t,n){var r=e.x,o=e.y,s=[],a=Number.POSITIVE_INFINITY,l=Number.POSITIVE_INFINITY;t.forEach((function(e){a=Math.min(a,e.x),l=Math.min(l,e.y)}));for(var c=r-e.width/2-a,d=o-e.height/2-l,u=0;u<t.length;u++){var h=t[u],f=t[u<t.length-1?u+1:0],g=i(e,n,{x:c+h.x,y:d+h.y},{x:c+f.x,y:d+f.y});g&&s.push(g)}if(!s.length)return console.log("NO INTERSECTION FOUND, RETURN NODE CENTER",e),e;s.length>1&&s.sort((function(e,t){var i=e.x-n.x,r=e.y-n.y,o=Math.sqrt(i*i+r*r),s=t.x-n.x,a=t.y-n.y,l=Math.sqrt(s*s+a*a);return o<l?-1:o===l?0:1}));return s[0]}},function(e,t){e.exports=function(e,t){var n,i,r=e.x,o=e.y,s=t.x-r,a=t.y-o,l=e.width/2,c=e.height/2;Math.abs(a)*l>Math.abs(s)*c?(a<0&&(c=-c),n=0===a?0:c*s/a,i=c):(s<0&&(l=-l),n=l,i=0===s?0:l*a/s);return{x:r+n,y:o+i}}},function(e,t,n){var i=n(134);e.exports=function(e,t){var n=e.append("foreignObject").attr("width","100000"),r=n.append("xhtml:div");r.attr("xmlns","http://www.w3.org/1999/xhtml");var o=t.label;switch(typeof o){case"function":r.insert(o);break;case"object":r.insert((function(){return o}));break;default:r.html(o)}i.applyStyle(r,t.labelStyle),r.style("display","inline-block"),r.style("white-space","nowrap");var s=r.node().getBoundingClientRect();return n.attr("width",s.width).attr("height",s.height),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(135),r=n(221),o=n(867),s={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:function(e){if(35===e.charCodeAt(0)){var t=e.match(s.re);if(t){var n=t[1],i=parseInt(n,16),o=n.length,a=o%4==0,l=o>4,c=l?1:17,d=l?8:4,u=a?0:-1,h=l?255:15;return r.default.set({r:(i>>d*(u+3)&h)*c,g:(i>>d*(u+2)&h)*c,b:(i>>d*(u+1)&h)*c,a:a?(i&h)*c/255:1},e)}}},stringify:function(e){return e.a<1?"#"+o.DEC2HEX[Math.round(e.r)]+o.DEC2HEX[Math.round(e.g)]+o.DEC2HEX[Math.round(e.b)]+i.default.unit.frac2hex(e.a):"#"+o.DEC2HEX[Math.round(e.r)]+o.DEC2HEX[Math.round(e.g)]+o.DEC2HEX[Math.round(e.b)]}};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(135),r=n(221),o=n(144);t.default=function(e,t,n,s){void 0===s&&(s=1);var a=r.default.set({h:i.default.channel.clamp.h(e),s:i.default.channel.clamp.s(t),l:i.default.channel.clamp.l(n),a:i.default.channel.clamp.a(s)});return o.default.stringify(a)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(167);t.default=function(e){return i.default(e,"a")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(135),r=n(144);t.default=function(e){var t=r.default.parse(e),n=t.r,o=t.g,s=t.b,a=.2126*i.default.channel.toLinear(n)+.7152*i.default.channel.toLinear(o)+.0722*i.default.channel.toLinear(s);return i.default.lang.round(a)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(430);t.default=function(e){return i.default(e)>=.5}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(183);t.default=function(e,t){return i.default(e,"a",t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(183);t.default=function(e,t){return i.default(e,"a",-t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(144),r=n(263);t.default=function(e,t){var n=i.default.parse(e),o={};for(var s in t)t[s]&&(o[s]=n[s]+t[s]);return r.default(e,o)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(144),r=n(262);t.default=function(e,t,n){void 0===n&&(n=50);var o=i.default.parse(e),s=o.r,a=o.g,l=o.b,c=o.a,d=i.default.parse(t),u=d.r,h=d.g,f=d.b,g=d.a,p=n/100,m=2*p-1,_=c-g,b=((m*_==-1?m:(m+_)/(1+m*_))+1)/2,v=1-b,y=s*b+u*v,w=a*b+h*v,C=l*b+f*v,S=c*p+g*(1-p);return r.default(y,w,C,S)}},function(e,t){},function(e,t,n){!function(e){"use strict";e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(21))},function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},i=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},r={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},o=function(e){return function(t,n,o,s){var a=i(t),l=r[e][i(t)];return 2===a&&(l=l[n?0:1]),l.replace(/%d/i,t)}},s=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar",{months:s,monthsShort:s,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:o("s"),ss:o("s"),m:o("m"),mm:o("m"),h:o("h"),hh:o("h"),d:o("d"),dd:o("d"),M:o("M"),MM:o("M"),y:o("y"),yy:o("y")},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("ar-dz",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"أح_إث_ثلا_أر_خم_جم_سب".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:4}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}})}(n(21))},function(e,t,n){!function(e){"use strict";var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},i={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},r=function(e){return function(t,r,o,s){var a=n(t),l=i[e][n(t)];return 2===a&&(l=l[r?0:1]),l.replace(/%d/i,t)}},o=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-ly",{months:o,monthsShort:o,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:6,doy:12}})}(n(21))},function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};e.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:0,doy:6}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(n(21))},function(e,t,n){!function(e){"use strict";var t={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"birneçə saniyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(e){return/^(gündüz|axşam)$/.test(e)},meridiem:function(e,t,n){return e<4?"gecə":e<12?"səhər":e<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(e){if(0===e)return e+"-ıncı";var n=e%10;return e+(t[n]||t[e%100-n]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(21))},function(e,t,n){!function(e){"use strict";function t(e,t,n){var i,r;return"m"===n?t?"хвіліна":"хвіліну":"h"===n?t?"гадзіна":"гадзіну":e+" "+(i=+e,r={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:t?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[n].split("_"),i%10==1&&i%100!=11?r[0]:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?r[1]:r[2])}e.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:t,mm:t,h:t,hh:t,d:"дзень",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[В изминалата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[В изминалия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дни",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(n(21))},function(e,t,n){!function(e){"use strict";var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};e.defineLocale("bn",{months:"জানুয়ারী_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব_মার্চ_এপ্র_মে_জুন_জুল_আগ_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t&&e>=4||"দুপুর"===t&&e<5||"বিকাল"===t?e+12:e},meridiem:function(e,t,n){return e<4?"রাত":e<10?"সকাল":e<17?"দুপুর":e<20?"বিকাল":"রাত"},week:{dow:0,doy:6}})}(n(21))},function(e,t,n){!function(e){"use strict";var t={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},n={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};e.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(e){return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(e,t){return 12===e&&(e=0),"མཚན་མོ"===t&&e>=4||"ཉིན་གུང"===t&&e<5||"དགོང་དག"===t?e+12:e},meridiem:function(e,t,n){return e<4?"མཚན་མོ":e<10?"ཞོགས་ཀས":e<17?"ཉིན་གུང":e<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})}(n(21))},function(e,t,n){!function(e){"use strict";function t(e,t,n){return e+" "+function(e,t){return 2===t?function(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}(e):e}({mm:"munutenn",MM:"miz",dd:"devezh"}[n],e)}e.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY h[e]mm A",LLLL:"dddd, D [a viz] MMMM YYYY h[e]mm A"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:function(e){switch(function e(t){return t>9?e(t%10):t}(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(e){return e+(1===e?"añ":"vet")},week:{dow:1,doy:4}})}(n(21))},function(e,t,n){!function(e){"use strict";function t(e,t,n){var i=e+" ";switch(n){case"ss":return i+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return i+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return i+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return i+=1===e?"dan":"dana";case"MM":return i+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return i+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n(21))},function(e,t,n){!function(e){"use strict";var t="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),n="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),i=[/^led/i,/^úno/i,/^bře/i,/^dub/i,/^kvě/i,/^(čvn|červen$|června)/i,/^(čvc|červenec|července)/i,/^srp/i,/^zář/i,/^říj/i,/^lis/i,/^pro/i],r=/^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;function o(e){return e>1&&e<5&&1!=~~(e/10)}function s(e,t,n,i){var r=e+" ";switch(n){case"s":return t||i?"pár sekund":"pár sekundami";case"ss":return t||i?r+(o(e)?"sekundy":"sekund"):r+"sekundami";case"m":return t?"minuta":i?"minutu":"minutou";case"mm":return t||i?r+(o(e)?"minuty":"minut"):r+"minutami";case"h":return t?"hodina":i?"hodinu":"hodinou";case"hh":return t||i?r+(o(e)?"hodiny":"hodin"):r+"hodinami";case"d":return t||i?"den":"dnem";case"dd":return t||i?r+(o(e)?"dny":"dní"):r+"dny";case"M":return t||i?"měsíc":"měsícem";case"MM":return t||i?r+(o(e)?"měsíce":"měsíců"):r+"měsíci";case"y":return t||i?"rok":"rokem";case"yy":return t||i?r+(o(e)?"roky":"let"):r+"lety"}}e.defineLocale("cs",{months:t,monthsShort:n,monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:s,ss:s,m:s,mm:s,h:s,hh:s,d:s,dd:s,M:s,MM:s,y:s,yy:s},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(e){return e+(/сехет$/i.exec(e)?"рен":/ҫул$/i.exec(e)?"тан":"ран")},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t="";return e>20?t=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(t=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+t},week:{dow:1,doy:4}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(21))},function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?r[n][0]:r[n][1]}e.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(21))},function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?r[n][0]:r[n][1]}e.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(21))},function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?r[n][0]:r[n][1]}e.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(21))},function(e,t,n){!function(e){"use strict";var t=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],n=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];e.defineLocale("dv",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(e){return"މފ"===e},meridiem:function(e,t,n){return e<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:7,doy:12}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(e,t){return e?"string"==typeof t&&/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(e,t,n){return e>11?n?"μμ":"ΜΜ":n?"πμ":"ΠΜ"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(e,t){var n,i=this._calendarEl[e],r=t&&t.hours();return((n=i)instanceof Function||"[object Function]"===Object.prototype.toString.call(n))&&(i=i.apply(t)),i.replace("{}",r%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-SG",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D[-a de] MMMM, YYYY",LLL:"D[-a de] MMMM, YYYY HH:mm",LLLL:"dddd, [la] D[-a de] MMMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,n){return e>11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"sekundoj",ss:"%d sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(n(21))},function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(21))},function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(21))},function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}})}(n(21))},function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return t?r[n][2]?r[n][2]:r[n][1]:i?r[n][0]:r[n][1]}e.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d päeva",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(21))},function(e,t,n){!function(e){"use strict";var t={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},n={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};e.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(e){return/بعد از ظهر/.test(e)},meridiem:function(e,t,n){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"ثانیه d%",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[۰-۹]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})}(n(21))},function(e,t,n){!function(e){"use strict";var t="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),n=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",t[7],t[8],t[9]];function i(e,i,r,o){var s="";switch(r){case"s":return o?"muutaman sekunnin":"muutama sekunti";case"ss":return o?"sekunnin":"sekuntia";case"m":return o?"minuutin":"minuutti";case"mm":s=o?"minuutin":"minuuttia";break;case"h":return o?"tunnin":"tunti";case"hh":s=o?"tunnin":"tuntia";break;case"d":return o?"päivän":"päivä";case"dd":s=o?"päivän":"päivää";break;case"M":return o?"kuukauden":"kuukausi";case"MM":s=o?"kuukauden":"kuukautta";break;case"y":return o?"vuoden":"vuosi";case"yy":s=o?"vuoden":"vuotta"}return s=function(e,i){return e<10?i?n[e]:t[e]:e}(e,o)+" "+s}e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaður",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n(21))},function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("ga",{months:["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Méitheamh","Iúil","Lúnasa","Meán Fómhair","Deaireadh Fómhair","Samhain","Nollaig"],monthsShort:["Eaná","Feab","Márt","Aibr","Beal","Méit","Iúil","Lúna","Meán","Deai","Samh","Noll"],monthsParseExact:!0,weekdays:["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Satharn"],weekdaysShort:["Dom","Lua","Mái","Céa","Déa","hAo","Sat"],weekdaysMin:["Do","Lu","Má","Ce","Dé","hA","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Amárach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inné aig] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s ó shin",s:"cúpla soicind",ss:"%d soicind",m:"nóiméad",mm:"%d nóiméad",h:"uair an chloig",hh:"%d uair an chloig",d:"lá",dd:"%d lá",M:"mí",MM:"%d mí",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],monthsShort:["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],monthsParseExact:!0,weekdays:["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(21))},function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={s:["thodde secondanim","thodde second"],ss:[e+" secondanim",e+" second"],m:["eka mintan","ek minute"],mm:[e+" mintanim",e+" mintam"],h:["eka voran","ek vor"],hh:[e+" voranim",e+" voram"],d:["eka disan","ek dis"],dd:[e+" disanim",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineanim",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsanim",e+" vorsam"]};return t?r[n][0]:r[n][1]}e.defineLocale("gom-latn",{months:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budvar_Brestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Ieta to] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fatlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){switch(t){case"D":return e+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:1,doy:4},meridiemParse:/rati|sokalli|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokalli"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"rati":e<12?"sokalli":e<16?"donparam":e<20?"sanje":"rati"}})}(n(21))},function(e,t,n){!function(e){"use strict";var t={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},n={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"};e.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પેહલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(e){return e.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(e,t){return 12===e&&(e=0),"રાત"===t?e<4?e:e+12:"સવાર"===t?e:"બપોર"===t?e>=10?e:e+12:"સાંજ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"રાત":e<10?"સવાર":e<17?"બપોર":e<20?"સાંજ":"રાત"},week:{dow:0,doy:6}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(e){return 2===e?"שעתיים":e+" שעות"},d:"יום",dd:function(e){return 2===e?"יומיים":e+" ימים"},M:"חודש",MM:function(e){return 2===e?"חודשיים":e+" חודשים"},y:"שנה",yy:function(e){return 2===e?"שנתיים":e%10==0&&10!==e?e+" שנה":e+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(e){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(e)},meridiem:function(e,t,n){return e<5?"לפנות בוקר":e<10?"בבוקר":e<12?n?'לפנה"צ':"לפני הצהריים":e<18?n?'אחה"צ':"אחרי הצהריים":"בערב"}})}(n(21))},function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};e.defineLocale("hi",{months:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात"===t?e<4?e:e+12:"सुबह"===t?e:"दोपहर"===t?e>=10?e:e+12:"शाम"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},week:{dow:0,doy:6}})}(n(21))},function(e,t,n){!function(e){"use strict";function t(e,t,n){var i=e+" ";switch(n){case"ss":return i+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return i+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return i+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return i+=1===e?"dan":"dana";case"MM":return i+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return i+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}e.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(21))},function(e,t,n){!function(e){"use strict";var t="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function n(e,t,n,i){var r=e;switch(n){case"s":return i||t?"néhány másodperc":"néhány másodperce";case"ss":return r+(i||t)?" másodperc":" másodperce";case"m":return"egy"+(i||t?" perc":" perce");case"mm":return r+(i||t?" perc":" perce");case"h":return"egy"+(i||t?" óra":" órája");case"hh":return r+(i||t?" óra":" órája");case"d":return"egy"+(i||t?" nap":" napja");case"dd":return r+(i||t?" nap":" napja");case"M":return"egy"+(i||t?" hónap":" hónapja");case"MM":return r+(i||t?" hónap":" hónapja");case"y":return"egy"+(i||t?" év":" éve");case"yy":return r+(i||t?" év":" éve")}return""}function i(e){return(e?"":"[múlt] ")+"["+t[this.day()]+"] LT[-kor]"}e.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,n){return e<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return i.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return i.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",ss:"%d վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(e){return/^(ցերեկվա|երեկոյան)$/.test(e)},meridiem:function(e){return e<4?"գիշերվա":e<12?"առավոտվա":e<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-ին":e+"-րդ";default:return e}},week:{dow:1,doy:7}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(21))},function(e,t,n){!function(e){"use strict";function t(e){return e%100==11||e%10!=1}function n(e,n,i,r){var o=e+" ";switch(i){case"s":return n||r?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return t(e)?o+(n||r?"sekúndur":"sekúndum"):o+"sekúnda";case"m":return n?"mínúta":"mínútu";case"mm":return t(e)?o+(n||r?"mínútur":"mínútum"):n?o+"mínúta":o+"mínútu";case"hh":return t(e)?o+(n||r?"klukkustundir":"klukkustundum"):o+"klukkustund";case"d":return n?"dagur":r?"dag":"degi";case"dd":return t(e)?n?o+"dagar":o+(r?"daga":"dögum"):n?o+"dagur":o+(r?"dag":"degi");case"M":return n?"mánuður":r?"mánuð":"mánuði";case"MM":return t(e)?n?o+"mánuðir":o+(r?"mánuði":"mánuðum"):n?o+"mánuður":o+(r?"mánuð":"mánuði");case"y":return n||r?"ár":"ári";case"yy":return t(e)?o+(n||r?"ár":"árum"):o+(n||r?"ár":"ári")}}e.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("ja",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e,t,n){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(e){return e.week()<this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(e){return this.week()<e.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,t){return 12===e&&(e=0),"enjing"===t?e:"siyang"===t?e>=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("ka",{months:{standalone:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),format:"იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს".split("_")},monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return/(წამი|წუთი|საათი|წელი)/.test(e)?e.replace(/ი$/,"ში"):e+"ში"},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(e)?e.replace(/წელი$/,"წლის წინ"):void 0},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(e){return 0===e?e:1===e?e+"-ლი":e<20||e<=100&&e%20==0||e%100==0?"მე-"+e:e+"-ე"},week:{dow:1,doy:7}})}(n(21))},function(e,t,n){!function(e){"use strict";var t={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};e.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(21))},function(e,t,n){!function(e){"use strict";var t={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},n={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"};e.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysMin:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ព្រឹក|ល្ងាច/,isPM:function(e){return"ល្ងាច"===e},meridiem:function(e,t,n){return e<12?"ព្រឹក":"ល្ងាច"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},dayOfMonthOrdinalParse:/ទី\d{1,2}/,ordinal:"ទី%d",preparse:function(e){return e.replace(/[១២៣៤៥៦៧៨៩០]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(n(21))},function(e,t,n){!function(e){"use strict";var t={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},n={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"};e.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(e){return e.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ರಾತ್ರಿ"===t?e<4?e:e+12:"ಬೆಳಿಗ್ಗೆ"===t?e:"ಮಧ್ಯಾಹ್ನ"===t?e>=10?e:e+12:"ಸಂಜೆ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ರಾತ್ರಿ":e<10?"ಬೆಳಿಗ್ಗೆ":e<17?"ಮಧ್ಯಾಹ್ನ":e<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(e){return e+"ನೇ"},week:{dow:0,doy:6}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"일";case"M":return e+"월";case"w":case"W":return e+"주";default:return e}},meridiemParse:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e,t,n){return e<12?"오전":"오후"}})}(n(21))},function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},i=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"];e.defineLocale("ku",{months:i,monthsShort:i,weekdays:"یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌".split("_"),weekdaysShort:"یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌".split("_"),weekdaysMin:"ی_د_س_چ_پ_ه_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ئێواره‌|به‌یانی/,isPM:function(e){return/ئێواره‌/.test(e)},meridiem:function(e,t,n){return e<12?"به‌یانی":"ئێواره‌"},calendar:{sameDay:"[ئه‌مرۆ كاتژمێر] LT",nextDay:"[به‌یانی كاتژمێر] LT",nextWeek:"dddd [كاتژمێر] LT",lastDay:"[دوێنێ كاتژمێر] LT",lastWeek:"dddd [كاتژمێر] LT",sameElse:"L"},relativeTime:{future:"له‌ %s",past:"%s",s:"چه‌ند چركه‌یه‌ك",ss:"چركه‌ %d",m:"یه‌ك خوله‌ك",mm:"%d خوله‌ك",h:"یه‌ك كاتژمێر",hh:"%d كاتژمێر",d:"یه‌ك ڕۆژ",dd:"%d ڕۆژ",M:"یه‌ك مانگ",MM:"%d مانگ",y:"یه‌ك ساڵ",yy:"%d ساڵ"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(21))},function(e,t,n){!function(e){"use strict";var t={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"};e.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кечээ саат] LT",lastWeek:"[Өткөн аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(21))},function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?r[n][0]:r[n][1]}function n(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10;return n(0===t?e/10:t)}if(e<1e4){for(;e>=10;)e/=10;return n(e)}return n(e/=1e3)}e.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function(e){return n(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e},past:function(e){return n(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e},s:"e puer Sekonnen",ss:"%d Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d Méint",y:t,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(e){return"ຕອນແລງ"===e},meridiem:function(e,t,n){return e<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",ss:"%d ວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(ທີ່)\d{1,2}/,ordinal:function(e){return"ທີ່"+e}})}(n(21))},function(e,t,n){!function(e){"use strict";var t={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function n(e,t,n,i){return t?r(n)[0]:i?r(n)[1]:r(n)[2]}function i(e){return e%10==0||e>10&&e<20}function r(e){return t[e].split("_")}function o(e,t,o,s){var a=e+" ";return 1===e?a+n(0,t,o[0],s):t?a+(i(e)?r(o)[1]:r(o)[0]):s?a+r(o)[1]:a+(i(e)?r(o)[1]:r(o)[2])}e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:function(e,t,n,i){return t?"kelios sekundės":i?"kelių sekundžių":"kelias sekundes"},ss:o,m:n,mm:o,h:n,hh:o,d:n,dd:o,M:n,MM:o,y:n,yy:o},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})}(n(21))},function(e,t,n){!function(e){"use strict";var t={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function n(e,t,n){return n?t%10==1&&t%100!=11?e[2]:e[3]:t%10==1&&t%100!=11?e[0]:e[1]}function i(e,i,r){return e+" "+n(t[r],e,i)}function r(e,i,r){return n(t[r],e,i)}e.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:function(e,t){return t?"dažas sekundes":"dažām sekundēm"},ss:i,m:r,mm:i,h:r,hh:i,d:r,dd:i,M:r,MM:i,y:r,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(21))},function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,i){var r=t.words[i];return 1===i.length?n?r[0]:r[1]:e+" "+t.correctGrammaticalCase(e,r)}};e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"после %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеци",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(e,t){return 12===e&&(e=0),"രാത്രി"===t&&e>=4||"ഉച്ച കഴിഞ്ഞ്"===t||"വൈകുന്നേരം"===t?e+12:e},meridiem:function(e,t,n){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}})}(n(21))},function(e,t,n){!function(e){"use strict";function t(e,t,n,i){switch(n){case"s":return t?"хэдхэн секунд":"хэдхэн секундын";case"ss":return e+(t?" секунд":" секундын");case"m":case"mm":return e+(t?" минут":" минутын");case"h":case"hh":return e+(t?" цаг":" цагийн");case"d":case"dd":return e+(t?" өдөр":" өдрийн");case"M":case"MM":return e+(t?" сар":" сарын");case"y":case"yy":return e+(t?" жил":" жилийн");default:return e}}e.defineLocale("mn",{months:"Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар".split("_"),monthsShort:"1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар".split("_"),monthsParseExact:!0,weekdays:"Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба".split("_"),weekdaysShort:"Ням_Дав_Мяг_Лха_Пүр_Баа_Бям".split("_"),weekdaysMin:"Ня_Да_Мя_Лх_Пү_Ба_Бя".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY оны MMMMын D",LLL:"YYYY оны MMMMын D HH:mm",LLLL:"dddd, YYYY оны MMMMын D HH:mm"},meridiemParse:/ҮӨ|ҮХ/i,isPM:function(e){return"ҮХ"===e},meridiem:function(e,t,n){return e<12?"ҮӨ":"ҮХ"},calendar:{sameDay:"[Өнөөдөр] LT",nextDay:"[Маргааш] LT",nextWeek:"[Ирэх] dddd LT",lastDay:"[Өчигдөр] LT",lastWeek:"[Өнгөрсөн] dddd LT",sameElse:"L"},relativeTime:{future:"%s дараа",past:"%s өмнө",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2} өдөр/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+" өдөр";default:return e}}})}(n(21))},function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function i(e,t,n,i){var r="";if(t)switch(n){case"s":r="काही सेकंद";break;case"ss":r="%d सेकंद";break;case"m":r="एक मिनिट";break;case"mm":r="%d मिनिटे";break;case"h":r="एक तास";break;case"hh":r="%d तास";break;case"d":r="एक दिवस";break;case"dd":r="%d दिवस";break;case"M":r="एक महिना";break;case"MM":r="%d महिने";break;case"y":r="एक वर्ष";break;case"yy":r="%d वर्षे"}else switch(n){case"s":r="काही सेकंदां";break;case"ss":r="%d सेकंदां";break;case"m":r="एका मिनिटा";break;case"mm":r="%d मिनिटां";break;case"h":r="एका तासा";break;case"hh":r="%d तासां";break;case"d":r="एका दिवसा";break;case"dd":r="%d दिवसां";break;case"M":r="एका महिन्या";break;case"MM":r="%d महिन्यां";break;case"y":r="एका वर्षा";break;case"yy":r="%d वर्षां"}return r.replace(/%d/i,e)}e.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/रात्री|सकाळी|दुपारी|सायंकाळी/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात्री"===t?e<4?e:e+12:"सकाळी"===t?e:"दुपारी"===t?e>=10?e:e+12:"सायंकाळी"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"रात्री":e<10?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(21))},function(e,t,n){!function(e){"use strict";var t={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},n={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};e.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",ss:"%d စက္ကန့်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(e){return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(21))},function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};e.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(e,t){return 12===e&&(e=0),"राति"===t?e<4?e:e+12:"बिहान"===t?e:"दिउँसो"===t?e>=10?e:e+12:"साँझ"===t?e+12:void 0},meridiem:function(e,t,n){return e<3?"राति":e<12?"बिहान":e<16?"दिउँसो":e<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}})}(n(21))},function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),i=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],r=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(21))},function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),i=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],r=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_mån_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_må_ty_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(21))},function(e,t,n){!function(e){"use strict";var t={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},n={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"};e.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"[ਅਗਲਾ] dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(e){return e.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ਰਾਤ"===t?e<4?e:e+12:"ਸਵੇਰ"===t?e:"ਦੁਪਹਿਰ"===t?e>=10?e:e+12:"ਸ਼ਾਮ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ਰਾਤ":e<10?"ਸਵੇਰ":e<17?"ਦੁਪਹਿਰ":e<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}})}(n(21))},function(e,t,n){!function(e){"use strict";var t="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_");function i(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function r(e,t,n){var r=e+" ";switch(n){case"ss":return r+(i(e)?"sekundy":"sekund");case"m":return t?"minuta":"minutę";case"mm":return r+(i(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return r+(i(e)?"godziny":"godzin");case"MM":return r+(i(e)?"miesiące":"miesięcy");case"yy":return r+(i(e)?"lata":"lat")}}e.defineLocale("pl",{months:function(e,i){return e?""===i?"("+n[e.month()]+"|"+t[e.month()]+")":/D MMMM/.test(i)?n[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:r,m:r,mm:r,h:r,hh:r,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:r,y:"rok",yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("pt",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("pt-br",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº"})}(n(21))},function(e,t,n){!function(e){"use strict";function t(e,t,n){var i=" ";return(e%100>=20||e>=100&&e%100==0)&&(i=" de "),e+i+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"}[n]}e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:t,m:"un minut",mm:t,h:"o oră",hh:t,d:"o zi",dd:t,M:"o lună",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})}(n(21))},function(e,t,n){!function(e){"use strict";function t(e,t,n){var i,r;return"m"===n?t?"минута":"минуту":e+" "+(i=+e,r={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[n].split("_"),i%10==1&&i%100!=11?r[0]:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?r[1]:r[2])}var n=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];e.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:n,longMonthsParse:n,shortMonthsParse:n,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:t,m:t,mm:t,h:"час",hh:t,d:"день",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:4}})}(n(21))},function(e,t,n){!function(e){"use strict";var t=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],n=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];e.defineLocale("sd",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(e){return e+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(e){return"ප.ව."===e||"පස් වරු"===e},meridiem:function(e,t,n){return e>11?n?"ප.ව.":"පස් වරු":n?"පෙ.ව.":"පෙර වරු"}})}(n(21))},function(e,t,n){!function(e){"use strict";var t="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),n="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function i(e){return e>1&&e<5}function r(e,t,n,r){var o=e+" ";switch(n){case"s":return t||r?"pár sekúnd":"pár sekundami";case"ss":return t||r?o+(i(e)?"sekundy":"sekúnd"):o+"sekundami";case"m":return t?"minúta":r?"minútu":"minútou";case"mm":return t||r?o+(i(e)?"minúty":"minút"):o+"minútami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?o+(i(e)?"hodiny":"hodín"):o+"hodinami";case"d":return t||r?"deň":"dňom";case"dd":return t||r?o+(i(e)?"dni":"dní"):o+"dňami";case"M":return t||r?"mesiac":"mesiacom";case"MM":return t||r?o+(i(e)?"mesiace":"mesiacov"):o+"mesiacmi";case"y":return t||r?"rok":"rokom";case"yy":return t||r?o+(i(e)?"roky":"rokov"):o+"rokmi"}}e.defineLocale("sk",{months:t,monthsShort:n,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(21))},function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r=e+" ";switch(n){case"s":return t||i?"nekaj sekund":"nekaj sekundami";case"ss":return r+=1===e?t?"sekundo":"sekundi":2===e?t||i?"sekundi":"sekundah":e<5?t||i?"sekunde":"sekundah":"sekund";case"m":return t?"ena minuta":"eno minuto";case"mm":return r+=1===e?t?"minuta":"minuto":2===e?t||i?"minuti":"minutama":e<5?t||i?"minute":"minutami":t||i?"minut":"minutami";case"h":return t?"ena ura":"eno uro";case"hh":return r+=1===e?t?"ura":"uro":2===e?t||i?"uri":"urama":e<5?t||i?"ure":"urami":t||i?"ur":"urami";case"d":return t||i?"en dan":"enim dnem";case"dd":return r+=1===e?t||i?"dan":"dnem":2===e?t||i?"dni":"dnevoma":t||i?"dni":"dnevi";case"M":return t||i?"en mesec":"enim mesecem";case"MM":return r+=1===e?t||i?"mesec":"mesecem":2===e?t||i?"meseca":"mesecema":e<5?t||i?"mesece":"meseci":t||i?"mesecev":"meseci";case"y":return t||i?"eno leto":"enim letom";case"yy":return r+=1===e?t||i?"leto":"letom":2===e?t||i?"leti":"letoma":e<5?t||i?"leta":"leti":t||i?"let":"leti"}}e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,t,n){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(21))},function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,i){var r=t.words[i];return 1===i.length?n?r[0]:r[1]:e+" "+t.correctGrammaticalCase(e,r)}};e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(21))},function(e,t,n){!function(e){"use strict";var t={words:{ss:["секунда","секунде","секунди"],m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,i){var r=t.words[i];return 1===i.length?n?r[0]:r[1]:e+" "+t.correctGrammaticalCase(e,r)}};e.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"дан",dd:t.translate,M:"месец",MM:t.translate,y:"годину",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,t,n){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?e>=11?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(e|a)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"e":1===t?"a":2===t?"a":"e")},week:{dow:1,doy:4}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"masiku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(n(21))},function(e,t,n){!function(e){"use strict";var t={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},n={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"};e.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}வது/,ordinal:function(e){return e+"வது"},preparse:function(e){return e.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(e,t,n){return e<2?" யாமம்":e<6?" வைகறை":e<10?" காலை":e<14?" நண்பகல்":e<18?" எற்பாடு":e<22?" மாலை":" யாமம்"},meridiemHour:function(e,t){return 12===e&&(e=0),"யாமம்"===t?e<2?e:e+12:"வைகறை"===t||"காலை"===t?e:"நண்பகல்"===t&&e>=10?e:e+12},week:{dow:0,doy:6}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(e,t){return 12===e&&(e=0),"రాత్రి"===t?e<4?e:e+12:"ఉదయం"===t?e:"మధ్యాహ్నం"===t?e>=10?e:e+12:"సాయంత్రం"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"రాత్రి":e<10?"ఉదయం":e<17?"మధ్యాహ్నం":e<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"minutu balun",ss:"minutu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(21))},function(e,t,n){!function(e){"use strict";var t={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"};e.defineLocale("tg",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Пагоҳ соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(e,t){return 12===e&&(e=0),"шаб"===t?e<4?e:e+12:"субҳ"===t?e:"рӯз"===t?e>=11?e:e+12:"бегоҳ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"шаб":e<11?"субҳ":e<16?"рӯз":e<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,t,n){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(21))},function(e,t,n){!function(e){"use strict";var t="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(e,n,i,r){var o=function(e){var n=Math.floor(e%1e3/100),i=Math.floor(e%100/10),r=e%10,o="";return n>0&&(o+=t[n]+"vatlh"),i>0&&(o+=(""!==o?" ":"")+t[i]+"maH"),r>0&&(o+=(""!==o?" ":"")+t[r]),""===o?"pagh":o}(e);switch(i){case"ss":return o+" lup";case"mm":return o+" tup";case"hh":return o+" rep";case"dd":return o+" jaj";case"MM":return o+" jar";case"yy":return o+" DIS"}}e.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"},past:function(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu’":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"},s:"puS lup",ss:n,m:"wa’ tup",mm:n,h:"wa’ rep",hh:n,d:"wa’ jaj",dd:n,M:"wa’ jar",MM:n,y:"wa’ DIS",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(21))},function(e,t,n){!function(e){"use strict";var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};e.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'ıncı";var i=e%10;return e+(t[i]||t[e%100-i]||t[e>=100?100:null])}},week:{dow:1,doy:7}})}(n(21))},function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n míut","'iens míut"],mm:[e+" míuts",e+" míuts"],h:["'n þora","'iensa þora"],hh:[e+" þoras",e+" þoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return i?r[n][0]:t?r[n][0]:r[n][1]}e.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,n){return e>11?n?"d'o":"D'O":n?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",ss:"%d ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,meridiemHour:function(e,t){return 12===e&&(e=0),"يېرىم كېچە"===t||"سەھەر"===t||"چۈشتىن بۇرۇن"===t?e:"چۈشتىن كېيىن"===t||"كەچ"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var i=100*e+t;return i<600?"يېرىم كېچە":i<900?"سەھەر":i<1130?"چۈشتىن بۇرۇن":i<1230?"چۈش":i<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"-كۈنى";case"w":case"W":return e+"-ھەپتە";default:return e}},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:7}})}(n(21))},function(e,t,n){!function(e){"use strict";function t(e,t,n){var i,r;return"m"===n?t?"хвилина":"хвилину":"h"===n?t?"година":"годину":e+" "+(i=+e,r={ss:t?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:t?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:t?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[n].split("_"),i%10==1&&i%100!=11?r[0]:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?r[1]:r[2])}function n(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:function(e,t){var n={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return!0===e?n.nominative.slice(1,7).concat(n.nominative.slice(0,1)):e?n[/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]:n.nominative},weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:n("[Сьогодні "),nextDay:n("[Завтра "),lastDay:n("[Вчора "),nextWeek:n("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return n("[Минулої] dddd [").call(this);case 1:case 2:case 4:return n("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:t,m:t,mm:t,h:"годину",hh:t,d:"день",dd:t,M:"місяць",MM:t,y:"рік",yy:t},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}})}(n(21))},function(e,t,n){!function(e){"use strict";var t=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],n=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];e.defineLocale("ur",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"sa":"SA":n?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần rồi lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var i=100*e+t;return i<600?"凌晨":i<900?"早上":i<1130?"上午":i<1230?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s内",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var i=100*e+t;return i<600?"凌晨":i<900?"早上":i<1130?"上午":i<1230?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(21))},function(e,t,n){!function(e){"use strict";e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var i=100*e+t;return i<600?"凌晨":i<900?"早上":i<1130?"上午":i<1230?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(21))},function(e,t,n){"use strict";n.r(t);var i=function(e,t){return e<t?-1:e>t?1:e>=t?0:NaN},r=function(e){var t;return 1===e.length&&(t=e,e=function(e,n){return i(t(e),n)}),{left:function(t,n,i,r){for(null==i&&(i=0),null==r&&(r=t.length);i<r;){var o=i+r>>>1;e(t[o],n)<0?i=o+1:r=o}return i},right:function(t,n,i,r){for(null==i&&(i=0),null==r&&(r=t.length);i<r;){var o=i+r>>>1;e(t[o],n)>0?r=o:i=o+1}return i}}};var o=r(i),s=o.right,a=o.left,l=s,c=function(e,t){null==t&&(t=d);for(var n=0,i=e.length-1,r=e[0],o=new Array(i<0?0:i);n<i;)o[n]=t(r,r=e[++n]);return o};function d(e,t){return[e,t]}var u=function(e,t,n){var i,r,o,s,a=e.length,l=t.length,c=new Array(a*l);for(null==n&&(n=d),i=o=0;i<a;++i)for(s=e[i],r=0;r<l;++r,++o)c[o]=n(s,t[r]);return c},h=function(e,t){return t<e?-1:t>e?1:t>=e?0:NaN},f=function(e){return null===e?NaN:+e},g=function(e,t){var n,i,r=e.length,o=0,s=-1,a=0,l=0;if(null==t)for(;++s<r;)isNaN(n=f(e[s]))||(l+=(i=n-a)*(n-(a+=i/++o)));else for(;++s<r;)isNaN(n=f(t(e[s],s,e)))||(l+=(i=n-a)*(n-(a+=i/++o)));if(o>1)return l/(o-1)},p=function(e,t){var n=g(e,t);return n?Math.sqrt(n):n},m=function(e,t){var n,i,r,o=e.length,s=-1;if(null==t){for(;++s<o;)if(null!=(n=e[s])&&n>=n)for(i=r=n;++s<o;)null!=(n=e[s])&&(i>n&&(i=n),r<n&&(r=n))}else for(;++s<o;)if(null!=(n=t(e[s],s,e))&&n>=n)for(i=r=n;++s<o;)null!=(n=t(e[s],s,e))&&(i>n&&(i=n),r<n&&(r=n));return[i,r]},_=Array.prototype,b=_.slice,v=_.map,y=function(e){return function(){return e}},w=function(e){return e},C=function(e,t,n){e=+e,t=+t,n=(r=arguments.length)<2?(t=e,e=0,1):r<3?1:+n;for(var i=-1,r=0|Math.max(0,Math.ceil((t-e)/n)),o=new Array(r);++i<r;)o[i]=e+i*n;return o},S=Math.sqrt(50),k=Math.sqrt(10),x=Math.sqrt(2),L=function(e,t,n){var i,r,o,s,a=-1;if(n=+n,(e=+e)===(t=+t)&&n>0)return[e];if((i=t<e)&&(r=e,e=t,t=r),0===(s=M(e,t,n))||!isFinite(s))return[];if(s>0)for(e=Math.ceil(e/s),t=Math.floor(t/s),o=new Array(r=Math.ceil(t-e+1));++a<r;)o[a]=(e+a)*s;else for(e=Math.floor(e*s),t=Math.ceil(t*s),o=new Array(r=Math.ceil(e-t+1));++a<r;)o[a]=(e-a)/s;return i&&o.reverse(),o};function M(e,t,n){var i=(t-e)/Math.max(0,n),r=Math.floor(Math.log(i)/Math.LN10),o=i/Math.pow(10,r);return r>=0?(o>=S?10:o>=k?5:o>=x?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(o>=S?10:o>=k?5:o>=x?2:1)}function D(e,t,n){var i=Math.abs(t-e)/Math.max(0,n),r=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),o=i/r;return o>=S?r*=10:o>=k?r*=5:o>=x&&(r*=2),t<e?-r:r}var E=function(e){return Math.ceil(Math.log(e.length)/Math.LN2)+1},T=function(){var e=w,t=m,n=E;function i(i){var r,o,s=i.length,a=new Array(s);for(r=0;r<s;++r)a[r]=e(i[r],r,i);var c=t(a),d=c[0],u=c[1],h=n(a,d,u);Array.isArray(h)||(h=D(d,u,h),h=C(Math.ceil(d/h)*h,u,h));for(var f=h.length;h[0]<=d;)h.shift(),--f;for(;h[f-1]>u;)h.pop(),--f;var g,p=new Array(f+1);for(r=0;r<=f;++r)(g=p[r]=[]).x0=r>0?h[r-1]:d,g.x1=r<f?h[r]:u;for(r=0;r<s;++r)d<=(o=a[r])&&o<=u&&p[l(h,o,0,f)].push(i[r]);return p}return i.value=function(t){return arguments.length?(e="function"==typeof t?t:y(t),i):e},i.domain=function(e){return arguments.length?(t="function"==typeof e?e:y([e[0],e[1]]),i):t},i.thresholds=function(e){return arguments.length?(n="function"==typeof e?e:Array.isArray(e)?y(b.call(e)):y(e),i):n},i},O=function(e,t,n){if(null==n&&(n=f),i=e.length){if((t=+t)<=0||i<2)return+n(e[0],0,e);if(t>=1)return+n(e[i-1],i-1,e);var i,r=(i-1)*t,o=Math.floor(r),s=+n(e[o],o,e);return s+(+n(e[o+1],o+1,e)-s)*(r-o)}},N=function(e,t,n){return e=v.call(e,f).sort(i),Math.ceil((n-t)/(2*(O(e,.75)-O(e,.25))*Math.pow(e.length,-1/3)))},I=function(e,t,n){return Math.ceil((n-t)/(3.5*p(e)*Math.pow(e.length,-1/3)))},A=function(e,t){var n,i,r=e.length,o=-1;if(null==t){for(;++o<r;)if(null!=(n=e[o])&&n>=n)for(i=n;++o<r;)null!=(n=e[o])&&n>i&&(i=n)}else for(;++o<r;)if(null!=(n=t(e[o],o,e))&&n>=n)for(i=n;++o<r;)null!=(n=t(e[o],o,e))&&n>i&&(i=n);return i},R=function(e,t){var n,i=e.length,r=i,o=-1,s=0;if(null==t)for(;++o<i;)isNaN(n=f(e[o]))?--r:s+=n;else for(;++o<i;)isNaN(n=f(t(e[o],o,e)))?--r:s+=n;if(r)return s/r},P=function(e,t){var n,r=e.length,o=-1,s=[];if(null==t)for(;++o<r;)isNaN(n=f(e[o]))||s.push(n);else for(;++o<r;)isNaN(n=f(t(e[o],o,e)))||s.push(n);return O(s.sort(i),.5)},j=function(e){for(var t,n,i,r=e.length,o=-1,s=0;++o<r;)s+=e[o].length;for(n=new Array(s);--r>=0;)for(t=(i=e[r]).length;--t>=0;)n[--s]=i[t];return n},F=function(e,t){var n,i,r=e.length,o=-1;if(null==t){for(;++o<r;)if(null!=(n=e[o])&&n>=n)for(i=n;++o<r;)null!=(n=e[o])&&i>n&&(i=n)}else for(;++o<r;)if(null!=(n=t(e[o],o,e))&&n>=n)for(i=n;++o<r;)null!=(n=t(e[o],o,e))&&i>n&&(i=n);return i},B=function(e,t){for(var n=t.length,i=new Array(n);n--;)i[n]=e[t[n]];return i},W=function(e,t){if(n=e.length){var n,r,o=0,s=0,a=e[s];for(null==t&&(t=i);++o<n;)(t(r=e[o],a)<0||0!==t(a,a))&&(a=r,s=o);return 0===t(a,a)?s:void 0}},H=function(e,t,n){for(var i,r,o=(null==n?e.length:n)-(t=null==t?0:+t);o;)r=Math.random()*o--|0,i=e[o+t],e[o+t]=e[r+t],e[r+t]=i;return e},Y=function(e,t){var n,i=e.length,r=-1,o=0;if(null==t)for(;++r<i;)(n=+e[r])&&(o+=n);else for(;++r<i;)(n=+t(e[r],r,e))&&(o+=n);return o},V=function(e){if(!(r=e.length))return[];for(var t=-1,n=F(e,z),i=new Array(n);++t<n;)for(var r,o=-1,s=i[t]=new Array(r);++o<r;)s[o]=e[o][t];return i};function z(e){return e.length}var U=function(){return V(arguments)},$=Array.prototype.slice,q=function(e){return e},K=1,G=2,Z=3,J=4,X=1e-6;function Q(e){return"translate("+(e+.5)+",0)"}function ee(e){return"translate(0,"+(e+.5)+")"}function te(e){return function(t){return+e(t)}}function ne(e){var t=Math.max(0,e.bandwidth()-1)/2;return e.round()&&(t=Math.round(t)),function(n){return+e(n)+t}}function ie(){return!this.__axis}function re(e,t){var n=[],i=null,r=null,o=6,s=6,a=3,l=e===K||e===J?-1:1,c=e===J||e===G?"x":"y",d=e===K||e===Z?Q:ee;function u(u){var h=null==i?t.ticks?t.ticks.apply(t,n):t.domain():i,f=null==r?t.tickFormat?t.tickFormat.apply(t,n):q:r,g=Math.max(o,0)+a,p=t.range(),m=+p[0]+.5,_=+p[p.length-1]+.5,b=(t.bandwidth?ne:te)(t.copy()),v=u.selection?u.selection():u,y=v.selectAll(".domain").data([null]),w=v.selectAll(".tick").data(h,t).order(),C=w.exit(),S=w.enter().append("g").attr("class","tick"),k=w.select("line"),x=w.select("text");y=y.merge(y.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),w=w.merge(S),k=k.merge(S.append("line").attr("stroke","currentColor").attr(c+"2",l*o)),x=x.merge(S.append("text").attr("fill","currentColor").attr(c,l*g).attr("dy",e===K?"0em":e===Z?"0.71em":"0.32em")),u!==v&&(y=y.transition(u),w=w.transition(u),k=k.transition(u),x=x.transition(u),C=C.transition(u).attr("opacity",X).attr("transform",(function(e){return isFinite(e=b(e))?d(e):this.getAttribute("transform")})),S.attr("opacity",X).attr("transform",(function(e){var t=this.parentNode.__axis;return d(t&&isFinite(t=t(e))?t:b(e))}))),C.remove(),y.attr("d",e===J||e==G?s?"M"+l*s+","+m+"H0.5V"+_+"H"+l*s:"M0.5,"+m+"V"+_:s?"M"+m+","+l*s+"V0.5H"+_+"V"+l*s:"M"+m+",0.5H"+_),w.attr("opacity",1).attr("transform",(function(e){return d(b(e))})),k.attr(c+"2",l*o),x.attr(c,l*g).text(f),v.filter(ie).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===G?"start":e===J?"end":"middle"),v.each((function(){this.__axis=b}))}return u.scale=function(e){return arguments.length?(t=e,u):t},u.ticks=function(){return n=$.call(arguments),u},u.tickArguments=function(e){return arguments.length?(n=null==e?[]:$.call(e),u):n.slice()},u.tickValues=function(e){return arguments.length?(i=null==e?null:$.call(e),u):i&&i.slice()},u.tickFormat=function(e){return arguments.length?(r=e,u):r},u.tickSize=function(e){return arguments.length?(o=s=+e,u):o},u.tickSizeInner=function(e){return arguments.length?(o=+e,u):o},u.tickSizeOuter=function(e){return arguments.length?(s=+e,u):s},u.tickPadding=function(e){return arguments.length?(a=+e,u):a},u}function oe(e){return re(K,e)}function se(e){return re(G,e)}function ae(e){return re(Z,e)}function le(e){return re(J,e)}var ce={value:function(){}};function de(){for(var e,t=0,n=arguments.length,i={};t<n;++t){if(!(e=arguments[t]+"")||e in i||/[\s.]/.test(e))throw new Error("illegal type: "+e);i[e]=[]}return new ue(i)}function ue(e){this._=e}function he(e,t){return e.trim().split(/^|\s+/).map((function(e){var n="",i=e.indexOf(".");if(i>=0&&(n=e.slice(i+1),e=e.slice(0,i)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:n}}))}function fe(e,t){for(var n,i=0,r=e.length;i<r;++i)if((n=e[i]).name===t)return n.value}function ge(e,t,n){for(var i=0,r=e.length;i<r;++i)if(e[i].name===t){e[i]=ce,e=e.slice(0,i).concat(e.slice(i+1));break}return null!=n&&e.push({name:t,value:n}),e}ue.prototype=de.prototype={constructor:ue,on:function(e,t){var n,i=this._,r=he(e+"",i),o=-1,s=r.length;if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t);for(;++o<s;)if(n=(e=r[o]).type)i[n]=ge(i[n],e.name,t);else if(null==t)for(n in i)i[n]=ge(i[n],e.name,null);return this}for(;++o<s;)if((n=(e=r[o]).type)&&(n=fe(i[n],e.name)))return n},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new ue(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,i,r=new Array(n),o=0;o<n;++o)r[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=0,n=(i=this._[e]).length;o<n;++o)i[o].value.apply(t,r)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var i=this._[e],r=0,o=i.length;r<o;++r)i[r].value.apply(t,n)}};var pe=de;function me(){}var _e=function(e){return null==e?me:function(){return this.querySelector(e)}};function be(){return[]}var ve=function(e){return null==e?be:function(){return this.querySelectorAll(e)}},ye=function(e){return function(){return this.matches(e)}},we=function(e){return new Array(e.length)};function Ce(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Ce.prototype={constructor:Ce,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var Se="$";function ke(e,t,n,i,r,o){for(var s,a=0,l=t.length,c=o.length;a<c;++a)(s=t[a])?(s.__data__=o[a],i[a]=s):n[a]=new Ce(e,o[a]);for(;a<l;++a)(s=t[a])&&(r[a]=s)}function xe(e,t,n,i,r,o,s){var a,l,c,d={},u=t.length,h=o.length,f=new Array(u);for(a=0;a<u;++a)(l=t[a])&&(f[a]=c=Se+s.call(l,l.__data__,a,t),c in d?r[a]=l:d[c]=l);for(a=0;a<h;++a)(l=d[c=Se+s.call(e,o[a],a,o)])?(i[a]=l,l.__data__=o[a],d[c]=null):n[a]=new Ce(e,o[a]);for(a=0;a<u;++a)(l=t[a])&&d[f[a]]===l&&(r[a]=l)}function Le(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}var Me="http://www.w3.org/1999/xhtml",De={svg:"http://www.w3.org/2000/svg",xhtml:Me,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Ee=function(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),De.hasOwnProperty(t)?{space:De[t],local:e}:e};function Te(e){return function(){this.removeAttribute(e)}}function Oe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Ne(e,t){return function(){this.setAttribute(e,t)}}function Ie(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Ae(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function Re(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}var Pe=function(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView};function je(e){return function(){this.style.removeProperty(e)}}function Fe(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Be(e,t,n){return function(){var i=t.apply(this,arguments);null==i?this.style.removeProperty(e):this.style.setProperty(e,i,n)}}function We(e,t){return e.style.getPropertyValue(t)||Pe(e).getComputedStyle(e,null).getPropertyValue(t)}function He(e){return function(){delete this[e]}}function Ye(e,t){return function(){this[e]=t}}function Ve(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function ze(e){return e.trim().split(/^|\s+/)}function Ue(e){return e.classList||new $e(e)}function $e(e){this._node=e,this._names=ze(e.getAttribute("class")||"")}function qe(e,t){for(var n=Ue(e),i=-1,r=t.length;++i<r;)n.add(t[i])}function Ke(e,t){for(var n=Ue(e),i=-1,r=t.length;++i<r;)n.remove(t[i])}function Ge(e){return function(){qe(this,e)}}function Ze(e){return function(){Ke(this,e)}}function Je(e,t){return function(){(t.apply(this,arguments)?qe:Ke)(this,e)}}$e.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Xe(){this.textContent=""}function Qe(e){return function(){this.textContent=e}}function et(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function tt(){this.innerHTML=""}function nt(e){return function(){this.innerHTML=e}}function it(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function rt(){this.nextSibling&&this.parentNode.appendChild(this)}function ot(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function st(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Me&&t.documentElement.namespaceURI===Me?t.createElement(e):t.createElementNS(n,e)}}function at(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}var lt=function(e){var t=Ee(e);return(t.local?at:st)(t)};function ct(){return null}function dt(){var e=this.parentNode;e&&e.removeChild(this)}function ut(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function ht(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}var ft={},gt=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(ft={mouseenter:"mouseover",mouseleave:"mouseout"}));function pt(e,t,n){return e=mt(e,t,n),function(t){var n=t.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||e.call(this,t)}}function mt(e,t,n){return function(i){var r=gt;gt=i;try{e.call(this,this.__data__,t,n)}finally{gt=r}}}function _t(e){return e.trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}function bt(e){return function(){var t=this.__on;if(t){for(var n,i=0,r=-1,o=t.length;i<o;++i)n=t[i],e.type&&n.type!==e.type||n.name!==e.name?t[++r]=n:this.removeEventListener(n.type,n.listener,n.capture);++r?t.length=r:delete this.__on}}}function vt(e,t,n){var i=ft.hasOwnProperty(e.type)?pt:mt;return function(r,o,s){var a,l=this.__on,c=i(t,o,s);if(l)for(var d=0,u=l.length;d<u;++d)if((a=l[d]).type===e.type&&a.name===e.name)return this.removeEventListener(a.type,a.listener,a.capture),this.addEventListener(a.type,a.listener=c,a.capture=n),void(a.value=t);this.addEventListener(e.type,c,n),a={type:e.type,name:e.name,value:t,listener:c,capture:n},l?l.push(a):this.__on=[a]}}function yt(e,t,n,i){var r=gt;e.sourceEvent=gt,gt=e;try{return t.apply(n,i)}finally{gt=r}}function wt(e,t,n){var i=Pe(e),r=i.CustomEvent;"function"==typeof r?r=new r(t,n):(r=i.document.createEvent("Event"),n?(r.initEvent(t,n.bubbles,n.cancelable),r.detail=n.detail):r.initEvent(t,!1,!1)),e.dispatchEvent(r)}function Ct(e,t){return function(){return wt(this,e,t)}}function St(e,t){return function(){return wt(this,e,t.apply(this,arguments))}}var kt=[null];function xt(e,t){this._groups=e,this._parents=t}function Lt(){return new xt([[document.documentElement]],kt)}xt.prototype=Lt.prototype={constructor:xt,select:function(e){"function"!=typeof e&&(e=_e(e));for(var t=this._groups,n=t.length,i=new Array(n),r=0;r<n;++r)for(var o,s,a=t[r],l=a.length,c=i[r]=new Array(l),d=0;d<l;++d)(o=a[d])&&(s=e.call(o,o.__data__,d,a))&&("__data__"in o&&(s.__data__=o.__data__),c[d]=s);return new xt(i,this._parents)},selectAll:function(e){"function"!=typeof e&&(e=ve(e));for(var t=this._groups,n=t.length,i=[],r=[],o=0;o<n;++o)for(var s,a=t[o],l=a.length,c=0;c<l;++c)(s=a[c])&&(i.push(e.call(s,s.__data__,c,a)),r.push(s));return new xt(i,r)},filter:function(e){"function"!=typeof e&&(e=ye(e));for(var t=this._groups,n=t.length,i=new Array(n),r=0;r<n;++r)for(var o,s=t[r],a=s.length,l=i[r]=[],c=0;c<a;++c)(o=s[c])&&e.call(o,o.__data__,c,s)&&l.push(o);return new xt(i,this._parents)},data:function(e,t){if(!e)return g=new Array(this.size()),d=-1,this.each((function(e){g[++d]=e})),g;var n,i=t?xe:ke,r=this._parents,o=this._groups;"function"!=typeof e&&(n=e,e=function(){return n});for(var s=o.length,a=new Array(s),l=new Array(s),c=new Array(s),d=0;d<s;++d){var u=r[d],h=o[d],f=h.length,g=e.call(u,u&&u.__data__,d,r),p=g.length,m=l[d]=new Array(p),_=a[d]=new Array(p);i(u,h,m,_,c[d]=new Array(f),g,t);for(var b,v,y=0,w=0;y<p;++y)if(b=m[y]){for(y>=w&&(w=y+1);!(v=_[w])&&++w<p;);b._next=v||null}}return(a=new xt(a,r))._enter=l,a._exit=c,a},enter:function(){return new xt(this._enter||this._groups.map(we),this._parents)},exit:function(){return new xt(this._exit||this._groups.map(we),this._parents)},join:function(e,t,n){var i=this.enter(),r=this,o=this.exit();return i="function"==typeof e?e(i):i.append(e+""),null!=t&&(r=t(r)),null==n?o.remove():n(o),i&&r?i.merge(r).order():r},merge:function(e){for(var t=this._groups,n=e._groups,i=t.length,r=n.length,o=Math.min(i,r),s=new Array(i),a=0;a<o;++a)for(var l,c=t[a],d=n[a],u=c.length,h=s[a]=new Array(u),f=0;f<u;++f)(l=c[f]||d[f])&&(h[f]=l);for(;a<i;++a)s[a]=t[a];return new xt(s,this._parents)},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var i,r=e[t],o=r.length-1,s=r[o];--o>=0;)(i=r[o])&&(s&&4^i.compareDocumentPosition(s)&&s.parentNode.insertBefore(i,s),s=i);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=Le);for(var n=this._groups,i=n.length,r=new Array(i),o=0;o<i;++o){for(var s,a=n[o],l=a.length,c=r[o]=new Array(l),d=0;d<l;++d)(s=a[d])&&(c[d]=s);c.sort(t)}return new xt(r,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){var e=new Array(this.size()),t=-1;return this.each((function(){e[++t]=this})),e},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i=e[t],r=0,o=i.length;r<o;++r){var s=i[r];if(s)return s}return null},size:function(){var e=0;return this.each((function(){++e})),e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,i=t.length;n<i;++n)for(var r,o=t[n],s=0,a=o.length;s<a;++s)(r=o[s])&&e.call(r,r.__data__,s,o);return this},attr:function(e,t){var n=Ee(e);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==t?n.local?Oe:Te:"function"==typeof t?n.local?Re:Ae:n.local?Ie:Ne)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?je:"function"==typeof t?Be:Fe)(e,t,null==n?"":n)):We(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?He:"function"==typeof t?Ve:Ye)(e,t)):this.node()[e]},classed:function(e,t){var n=ze(e+"");if(arguments.length<2){for(var i=Ue(this.node()),r=-1,o=n.length;++r<o;)if(!i.contains(n[r]))return!1;return!0}return this.each(("function"==typeof t?Je:t?Ge:Ze)(n,t))},text:function(e){return arguments.length?this.each(null==e?Xe:("function"==typeof e?et:Qe)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?tt:("function"==typeof e?it:nt)(e)):this.node().innerHTML},raise:function(){return this.each(rt)},lower:function(){return this.each(ot)},append:function(e){var t="function"==typeof e?e:lt(e);return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"==typeof e?e:lt(e),i=null==t?ct:"function"==typeof t?t:_e(t);return this.select((function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(dt)},clone:function(e){return this.select(e?ht:ut)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var i,r,o=_t(e+""),s=o.length;if(!(arguments.length<2)){for(a=t?vt:bt,null==n&&(n=!1),i=0;i<s;++i)this.each(a(o[i],t,n));return this}var a=this.node().__on;if(a)for(var l,c=0,d=a.length;c<d;++c)for(i=0,l=a[c];i<s;++i)if((r=o[i]).type===l.type&&r.name===l.name)return l.value},dispatch:function(e,t){return this.each(("function"==typeof t?St:Ct)(e,t))}};var Mt=Lt,Dt=function(e){return"string"==typeof e?new xt([[document.querySelector(e)]],[document.documentElement]):new xt([[e]],kt)};function Et(){gt.stopImmediatePropagation()}var Tt=function(){gt.preventDefault(),gt.stopImmediatePropagation()},Ot=function(e){var t=e.document.documentElement,n=Dt(e).on("dragstart.drag",Tt,!0);"onselectstart"in t?n.on("selectstart.drag",Tt,!0):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")};function Nt(e,t){var n=e.document.documentElement,i=Dt(e).on("dragstart.drag",null);t&&(i.on("click.drag",Tt,!0),setTimeout((function(){i.on("click.drag",null)}),0)),"onselectstart"in n?i.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}var It=function(e,t,n){e.prototype=t.prototype=n,n.constructor=e};function At(e,t){var n=Object.create(e.prototype);for(var i in t)n[i]=t[i];return n}function Rt(){}var Pt="\\s*([+-]?\\d+)\\s*",jt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ft="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Bt=/^#([0-9a-f]{3,8})$/,Wt=new RegExp("^rgb\\("+[Pt,Pt,Pt]+"\\)$"),Ht=new RegExp("^rgb\\("+[Ft,Ft,Ft]+"\\)$"),Yt=new RegExp("^rgba\\("+[Pt,Pt,Pt,jt]+"\\)$"),Vt=new RegExp("^rgba\\("+[Ft,Ft,Ft,jt]+"\\)$"),zt=new RegExp("^hsl\\("+[jt,Ft,Ft]+"\\)$"),Ut=new RegExp("^hsla\\("+[jt,Ft,Ft,jt]+"\\)$"),$t={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function qt(){return this.rgb().formatHex()}function Kt(){return this.rgb().formatRgb()}function Gt(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Bt.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Zt(t):3===n?new en(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?new en(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?new en(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Wt.exec(e))?new en(t[1],t[2],t[3],1):(t=Ht.exec(e))?new en(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Yt.exec(e))?Jt(t[1],t[2],t[3],t[4]):(t=Vt.exec(e))?Jt(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=zt.exec(e))?on(t[1],t[2]/100,t[3]/100,1):(t=Ut.exec(e))?on(t[1],t[2]/100,t[3]/100,t[4]):$t.hasOwnProperty(e)?Zt($t[e]):"transparent"===e?new en(NaN,NaN,NaN,0):null}function Zt(e){return new en(e>>16&255,e>>8&255,255&e,1)}function Jt(e,t,n,i){return i<=0&&(e=t=n=NaN),new en(e,t,n,i)}function Xt(e){return e instanceof Rt||(e=Gt(e)),e?new en((e=e.rgb()).r,e.g,e.b,e.opacity):new en}function Qt(e,t,n,i){return 1===arguments.length?Xt(e):new en(e,t,n,null==i?1:i)}function en(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}function tn(){return"#"+rn(this.r)+rn(this.g)+rn(this.b)}function nn(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function rn(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function on(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ln(e,t,n,i)}function sn(e){if(e instanceof ln)return new ln(e.h,e.s,e.l,e.opacity);if(e instanceof Rt||(e=Gt(e)),!e)return new ln;if(e instanceof ln)return e;var t=(e=e.rgb()).r/255,n=e.g/255,i=e.b/255,r=Math.min(t,n,i),o=Math.max(t,n,i),s=NaN,a=o-r,l=(o+r)/2;return a?(s=t===o?(n-i)/a+6*(n<i):n===o?(i-t)/a+2:(t-n)/a+4,a/=l<.5?o+r:2-o-r,s*=60):a=l>0&&l<1?0:s,new ln(s,a,l,e.opacity)}function an(e,t,n,i){return 1===arguments.length?sn(e):new ln(e,t,n,null==i?1:i)}function ln(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}function cn(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function dn(e,t,n,i,r){var o=e*e,s=o*e;return((1-3*e+3*o-s)*t+(4-6*o+3*s)*n+(1+3*e+3*o-3*s)*i+s*r)/6}It(Rt,Gt,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:qt,formatHex:qt,formatHsl:function(){return sn(this).formatHsl()},formatRgb:Kt,toString:Kt}),It(en,Qt,At(Rt,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new en(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new en(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:tn,formatHex:tn,formatRgb:nn,toString:nn})),It(ln,an,At(Rt,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new ln(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new ln(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*t,r=2*n-i;return new en(cn(e>=240?e-240:e+120,r,i),cn(e,r,i),cn(e<120?e+240:e-120,r,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var un=function(e){var t=e.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),r=e[i],o=e[i+1],s=i>0?e[i-1]:2*r-o,a=i<t-1?e[i+2]:2*o-r;return dn((n-i/t)*t,s,r,o,a)}},hn=function(e){var t=e.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*t),r=e[(i+t-1)%t],o=e[i%t],s=e[(i+1)%t],a=e[(i+2)%t];return dn((n-i/t)*t,r,o,s,a)}},fn=function(e){return function(){return e}};function gn(e,t){return function(n){return e+n*t}}function pn(e,t){var n=t-e;return n?gn(e,n>180||n<-180?n-360*Math.round(n/360):n):fn(isNaN(e)?t:e)}function mn(e){return 1==(e=+e)?_n:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(i){return Math.pow(e+i*t,n)}}(t,n,e):fn(isNaN(t)?n:t)}}function _n(e,t){var n=t-e;return n?gn(e,n):fn(isNaN(e)?t:e)}var bn=function e(t){var n=mn(t);function i(e,t){var i=n((e=Qt(e)).r,(t=Qt(t)).r),r=n(e.g,t.g),o=n(e.b,t.b),s=_n(e.opacity,t.opacity);return function(t){return e.r=i(t),e.g=r(t),e.b=o(t),e.opacity=s(t),e+""}}return i.gamma=e,i}(1);function vn(e){return function(t){var n,i,r=t.length,o=new Array(r),s=new Array(r),a=new Array(r);for(n=0;n<r;++n)i=Qt(t[n]),o[n]=i.r||0,s[n]=i.g||0,a[n]=i.b||0;return o=e(o),s=e(s),a=e(a),i.opacity=1,function(e){return i.r=o(e),i.g=s(e),i.b=a(e),i+""}}}var yn=vn(un),wn=vn(hn),Cn=function(e,t){t||(t=[]);var n,i=e?Math.min(t.length,e.length):0,r=t.slice();return function(o){for(n=0;n<i;++n)r[n]=e[n]*(1-o)+t[n]*o;return r}};function Sn(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}var kn=function(e,t){return(Sn(t)?Cn:xn)(e,t)};function xn(e,t){var n,i=t?t.length:0,r=e?Math.min(i,e.length):0,o=new Array(r),s=new Array(i);for(n=0;n<r;++n)o[n]=An(e[n],t[n]);for(;n<i;++n)s[n]=t[n];return function(e){for(n=0;n<r;++n)s[n]=o[n](e);return s}}var Ln=function(e,t){var n=new Date;return e=+e,t=+t,function(i){return n.setTime(e*(1-i)+t*i),n}},Mn=function(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}},Dn=function(e,t){var n,i={},r={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?i[n]=An(e[n],t[n]):r[n]=t[n];return function(e){for(n in i)r[n]=i[n](e);return r}},En=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Tn=new RegExp(En.source,"g");var On,Nn,In=function(e,t){var n,i,r,o=En.lastIndex=Tn.lastIndex=0,s=-1,a=[],l=[];for(e+="",t+="";(n=En.exec(e))&&(i=Tn.exec(t));)(r=i.index)>o&&(r=t.slice(o,r),a[s]?a[s]+=r:a[++s]=r),(n=n[0])===(i=i[0])?a[s]?a[s]+=i:a[++s]=i:(a[++s]=null,l.push({i:s,x:Mn(n,i)})),o=Tn.lastIndex;return o<t.length&&(r=t.slice(o),a[s]?a[s]+=r:a[++s]=r),a.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var n,i=0;i<t;++i)a[(n=l[i]).i]=n.x(e);return a.join("")})},An=function(e,t){var n,i=typeof t;return null==t||"boolean"===i?fn(t):("number"===i?Mn:"string"===i?(n=Gt(t))?(t=n,bn):In:t instanceof Gt?bn:t instanceof Date?Ln:Sn(t)?Cn:Array.isArray(t)?xn:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?Dn:Mn)(e,t)},Rn=function(){for(var e,t=gt;e=t.sourceEvent;)t=e;return t},Pn=function(e,t){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var i=n.createSVGPoint();return i.x=t.clientX,i.y=t.clientY,[(i=i.matrixTransform(e.getScreenCTM().inverse())).x,i.y]}var r=e.getBoundingClientRect();return[t.clientX-r.left-e.clientLeft,t.clientY-r.top-e.clientTop]},jn=function(e,t,n){arguments.length<3&&(n=t,t=Rn().changedTouches);for(var i,r=0,o=t?t.length:0;r<o;++r)if((i=t[r]).identifier===n)return Pn(e,i);return null},Fn=function(e){var t=Rn();return t.changedTouches&&(t=t.changedTouches[0]),Pn(e,t)},Bn=0,Wn=0,Hn=0,Yn=1e3,Vn=0,zn=0,Un=0,$n="object"==typeof performance&&performance.now?performance:Date,qn="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Kn(){return zn||(qn(Gn),zn=$n.now()+Un)}function Gn(){zn=0}function Zn(){this._call=this._time=this._next=null}function Jn(e,t,n){var i=new Zn;return i.restart(e,t,n),i}function Xn(){Kn(),++Bn;for(var e,t=On;t;)(e=zn-t._time)>=0&&t._call.call(null,e),t=t._next;--Bn}function Qn(){zn=(Vn=$n.now())+Un,Bn=Wn=0;try{Xn()}finally{Bn=0,function(){var e,t,n=On,i=1/0;for(;n;)n._call?(i>n._time&&(i=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:On=t);Nn=e,ti(i)}(),zn=0}}function ei(){var e=$n.now(),t=e-Vn;t>Yn&&(Un-=t,Vn=e)}function ti(e){Bn||(Wn&&(Wn=clearTimeout(Wn)),e-zn>24?(e<1/0&&(Wn=setTimeout(Qn,e-$n.now()-Un)),Hn&&(Hn=clearInterval(Hn))):(Hn||(Vn=$n.now(),Hn=setInterval(ei,Yn)),Bn=1,qn(Qn)))}Zn.prototype=Jn.prototype={constructor:Zn,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function");n=(null==n?Kn():+n)+(null==t?0:+t),this._next||Nn===this||(Nn?Nn._next=this:On=this,Nn=this),this._call=e,this._time=n,ti()},stop:function(){this._call&&(this._call=null,this._time=1/0,ti())}};var ni=function(e,t,n){var i=new Zn;return t=null==t?0:+t,i.restart((function(n){i.stop(),e(n+t)}),t,n),i},ii=pe("start","end","cancel","interrupt"),ri=[],oi=0,si=1,ai=2,li=3,ci=4,di=5,ui=6,hi=function(e,t,n,i,r,o){var s=e.__transition;if(s){if(n in s)return}else e.__transition={};!function(e,t,n){var i,r=e.__transition;function o(l){var c,d,u,h;if(n.state!==si)return a();for(c in r)if((h=r[c]).name===n.name){if(h.state===li)return ni(o);h.state===ci?(h.state=ui,h.timer.stop(),h.on.call("interrupt",e,e.__data__,h.index,h.group),delete r[c]):+c<t&&(h.state=ui,h.timer.stop(),h.on.call("cancel",e,e.__data__,h.index,h.group),delete r[c])}if(ni((function(){n.state===li&&(n.state=ci,n.timer.restart(s,n.delay,n.time),s(l))})),n.state=ai,n.on.call("start",e,e.__data__,n.index,n.group),n.state===ai){for(n.state=li,i=new Array(u=n.tween.length),c=0,d=-1;c<u;++c)(h=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(i[++d]=h);i.length=d+1}}function s(t){for(var r=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(a),n.state=di,1),o=-1,s=i.length;++o<s;)i[o].call(e,r);n.state===di&&(n.on.call("end",e,e.__data__,n.index,n.group),a())}function a(){for(var i in n.state=ui,n.timer.stop(),delete r[t],r)return;delete e.__transition}r[t]=n,n.timer=Jn((function(e){n.state=si,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)}),0,n.time)}(e,n,{name:t,index:i,group:r,on:ii,tween:ri,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:oi})};function fi(e,t){var n=pi(e,t);if(n.state>oi)throw new Error("too late; already scheduled");return n}function gi(e,t){var n=pi(e,t);if(n.state>li)throw new Error("too late; already running");return n}function pi(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}var mi,_i,bi,vi,yi=function(e,t){var n,i,r,o=e.__transition,s=!0;if(o){for(r in t=null==t?null:t+"",o)(n=o[r]).name===t?(i=n.state>ai&&n.state<di,n.state=ui,n.timer.stop(),n.on.call(i?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete o[r]):s=!1;s&&delete e.__transition}},wi=180/Math.PI,Ci={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},Si=function(e,t,n,i,r,o){var s,a,l;return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(l=e*n+t*i)&&(n-=e*l,i-=t*l),(a=Math.sqrt(n*n+i*i))&&(n/=a,i/=a,l/=a),e*i<t*n&&(e=-e,t=-t,l=-l,s=-s),{translateX:r,translateY:o,rotate:Math.atan2(t,e)*wi,skewX:Math.atan(l)*wi,scaleX:s,scaleY:a}};function ki(e,t,n,i){function r(e){return e.length?e.pop()+" ":""}return function(o,s){var a=[],l=[];return o=e(o),s=e(s),function(e,i,r,o,s,a){if(e!==r||i!==o){var l=s.push("translate(",null,t,null,n);a.push({i:l-4,x:Mn(e,r)},{i:l-2,x:Mn(i,o)})}else(r||o)&&s.push("translate("+r+t+o+n)}(o.translateX,o.translateY,s.translateX,s.translateY,a,l),function(e,t,n,o){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),o.push({i:n.push(r(n)+"rotate(",null,i)-2,x:Mn(e,t)})):t&&n.push(r(n)+"rotate("+t+i)}(o.rotate,s.rotate,a,l),function(e,t,n,o){e!==t?o.push({i:n.push(r(n)+"skewX(",null,i)-2,x:Mn(e,t)}):t&&n.push(r(n)+"skewX("+t+i)}(o.skewX,s.skewX,a,l),function(e,t,n,i,o,s){if(e!==n||t!==i){var a=o.push(r(o)+"scale(",null,",",null,")");s.push({i:a-4,x:Mn(e,n)},{i:a-2,x:Mn(t,i)})}else 1===n&&1===i||o.push(r(o)+"scale("+n+","+i+")")}(o.scaleX,o.scaleY,s.scaleX,s.scaleY,a,l),o=s=null,function(e){for(var t,n=-1,i=l.length;++n<i;)a[(t=l[n]).i]=t.x(e);return a.join("")}}}var xi=ki((function(e){return"none"===e?Ci:(mi||(mi=document.createElement("DIV"),_i=document.documentElement,bi=document.defaultView),mi.style.transform=e,e=bi.getComputedStyle(_i.appendChild(mi),null).getPropertyValue("transform"),_i.removeChild(mi),e=e.slice(7,-1).split(","),Si(+e[0],+e[1],+e[2],+e[3],+e[4],+e[5]))}),"px, ","px)","deg)"),Li=ki((function(e){return null==e?Ci:(vi||(vi=document.createElementNS("http://www.w3.org/2000/svg","g")),vi.setAttribute("transform",e),(e=vi.transform.baseVal.consolidate())?(e=e.matrix,Si(e.a,e.b,e.c,e.d,e.e,e.f)):Ci)}),", ",")",")");function Mi(e,t){var n,i;return function(){var r=gi(this,e),o=r.tween;if(o!==n)for(var s=0,a=(i=n=o).length;s<a;++s)if(i[s].name===t){(i=i.slice()).splice(s,1);break}r.tween=i}}function Di(e,t,n){var i,r;if("function"!=typeof n)throw new Error;return function(){var o=gi(this,e),s=o.tween;if(s!==i){r=(i=s).slice();for(var a={name:t,value:n},l=0,c=r.length;l<c;++l)if(r[l].name===t){r[l]=a;break}l===c&&r.push(a)}o.tween=r}}function Ei(e,t,n){var i=e._id;return e.each((function(){var e=gi(this,i);(e.value||(e.value={}))[t]=n.apply(this,arguments)})),function(e){return pi(e,i).value[t]}}var Ti=function(e,t){var n;return("number"==typeof t?Mn:t instanceof Gt?bn:(n=Gt(t))?(t=n,bn):In)(e,t)};function Oi(e){return function(){this.removeAttribute(e)}}function Ni(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Ii(e,t,n){var i,r,o=n+"";return function(){var s=this.getAttribute(e);return s===o?null:s===i?r:r=t(i=s,n)}}function Ai(e,t,n){var i,r,o=n+"";return function(){var s=this.getAttributeNS(e.space,e.local);return s===o?null:s===i?r:r=t(i=s,n)}}function Ri(e,t,n){var i,r,o;return function(){var s,a,l=n(this);if(null!=l)return(s=this.getAttribute(e))===(a=l+"")?null:s===i&&a===r?o:(r=a,o=t(i=s,l));this.removeAttribute(e)}}function Pi(e,t,n){var i,r,o;return function(){var s,a,l=n(this);if(null!=l)return(s=this.getAttributeNS(e.space,e.local))===(a=l+"")?null:s===i&&a===r?o:(r=a,o=t(i=s,l));this.removeAttributeNS(e.space,e.local)}}function ji(e,t){var n,i;function r(){var r=t.apply(this,arguments);return r!==i&&(n=(i=r)&&function(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}(e,r)),n}return r._value=t,r}function Fi(e,t){var n,i;function r(){var r=t.apply(this,arguments);return r!==i&&(n=(i=r)&&function(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}(e,r)),n}return r._value=t,r}function Bi(e,t){return function(){fi(this,e).delay=+t.apply(this,arguments)}}function Wi(e,t){return t=+t,function(){fi(this,e).delay=t}}function Hi(e,t){return function(){gi(this,e).duration=+t.apply(this,arguments)}}function Yi(e,t){return t=+t,function(){gi(this,e).duration=t}}function Vi(e,t){if("function"!=typeof t)throw new Error;return function(){gi(this,e).ease=t}}function zi(e,t,n){var i,r,o=function(e){return(e+"").trim().split(/^|\s+/).every((function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?fi:gi;return function(){var s=o(this,e),a=s.on;a!==i&&(r=(i=a).copy()).on(t,n),s.on=r}}var Ui=Mt.prototype.constructor;function $i(e){return function(){this.style.removeProperty(e)}}function qi(e,t,n){var i,r;function o(){var o=t.apply(this,arguments);return o!==r&&(i=(r=o)&&function(e,t,n){return function(i){this.style.setProperty(e,t.call(this,i),n)}}(e,o,n)),i}return o._value=t,o}function Ki(e){var t,n;function i(){var i=e.apply(this,arguments);return i!==n&&(t=(n=i)&&function(e){return function(t){this.textContent=e.call(this,t)}}(i)),t}return i._value=e,i}var Gi=0;function Zi(e,t,n,i){this._groups=e,this._parents=t,this._name=n,this._id=i}function Ji(e){return Mt().transition(e)}function Xi(){return++Gi}var Qi=Mt.prototype;function er(e){return e*e*e}function tr(e){return--e*e*e+1}function nr(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}Zi.prototype=Ji.prototype={constructor:Zi,select:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=_e(e));for(var i=this._groups,r=i.length,o=new Array(r),s=0;s<r;++s)for(var a,l,c=i[s],d=c.length,u=o[s]=new Array(d),h=0;h<d;++h)(a=c[h])&&(l=e.call(a,a.__data__,h,c))&&("__data__"in a&&(l.__data__=a.__data__),u[h]=l,hi(u[h],t,n,h,u,pi(a,n)));return new Zi(o,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=ve(e));for(var i=this._groups,r=i.length,o=[],s=[],a=0;a<r;++a)for(var l,c=i[a],d=c.length,u=0;u<d;++u)if(l=c[u]){for(var h,f=e.call(l,l.__data__,u,c),g=pi(l,n),p=0,m=f.length;p<m;++p)(h=f[p])&&hi(h,t,n,p,f,g);o.push(f),s.push(l)}return new Zi(o,s,t,n)},filter:function(e){"function"!=typeof e&&(e=ye(e));for(var t=this._groups,n=t.length,i=new Array(n),r=0;r<n;++r)for(var o,s=t[r],a=s.length,l=i[r]=[],c=0;c<a;++c)(o=s[c])&&e.call(o,o.__data__,c,s)&&l.push(o);return new Zi(i,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,i=t.length,r=n.length,o=Math.min(i,r),s=new Array(i),a=0;a<o;++a)for(var l,c=t[a],d=n[a],u=c.length,h=s[a]=new Array(u),f=0;f<u;++f)(l=c[f]||d[f])&&(h[f]=l);for(;a<i;++a)s[a]=t[a];return new Zi(s,this._parents,this._name,this._id)},selection:function(){return new Ui(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=Xi(),i=this._groups,r=i.length,o=0;o<r;++o)for(var s,a=i[o],l=a.length,c=0;c<l;++c)if(s=a[c]){var d=pi(s,t);hi(s,e,n,c,a,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new Zi(i,this._parents,e,n)},call:Qi.call,nodes:Qi.nodes,node:Qi.node,size:Qi.size,empty:Qi.empty,each:Qi.each,on:function(e,t){var n=this._id;return arguments.length<2?pi(this.node(),n).on.on(e):this.each(zi(n,e,t))},attr:function(e,t){var n=Ee(e),i="transform"===n?Li:Ti;return this.attrTween(e,"function"==typeof t?(n.local?Pi:Ri)(n,i,Ei(this,"attr."+e,t)):null==t?(n.local?Ni:Oi)(n):(n.local?Ai:Ii)(n,i,t))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;var i=Ee(e);return this.tween(n,(i.local?ji:Fi)(i,t))},style:function(e,t,n){var i="transform"==(e+="")?xi:Ti;return null==t?this.styleTween(e,function(e,t){var n,i,r;return function(){var o=We(this,e),s=(this.style.removeProperty(e),We(this,e));return o===s?null:o===n&&s===i?r:r=t(n=o,i=s)}}(e,i)).on("end.style."+e,$i(e)):"function"==typeof t?this.styleTween(e,function(e,t,n){var i,r,o;return function(){var s=We(this,e),a=n(this),l=a+"";return null==a&&(this.style.removeProperty(e),l=a=We(this,e)),s===l?null:s===i&&l===r?o:(r=l,o=t(i=s,a))}}(e,i,Ei(this,"style."+e,t))).each(function(e,t){var n,i,r,o,s="style."+t,a="end."+s;return function(){var l=gi(this,e),c=l.on,d=null==l.value[s]?o||(o=$i(t)):void 0;c===n&&r===d||(i=(n=c).copy()).on(a,r=d),l.on=i}}(this._id,e)):this.styleTween(e,function(e,t,n){var i,r,o=n+"";return function(){var s=We(this,e);return s===o?null:s===i?r:r=t(i=s,n)}}(e,i,t),n).on("end.style."+e,null)},styleTween:function(e,t,n){var i="style."+(e+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==t)return this.tween(i,null);if("function"!=typeof t)throw new Error;return this.tween(i,qi(e,t,null==n?"":n))},text:function(e){return this.tween("text","function"==typeof e?function(e){return function(){var t=e(this);this.textContent=null==t?"":t}}(Ei(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!=typeof e)throw new Error;return this.tween(t,Ki(e))},remove:function(){return this.on("end.remove",(e=this._id,function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}));var e},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var i,r=pi(this.node(),n).tween,o=0,s=r.length;o<s;++o)if((i=r[o]).name===e)return i.value;return null}return this.each((null==t?Mi:Di)(n,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?Bi:Wi)(t,e)):pi(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?Hi:Yi)(t,e)):pi(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(Vi(t,e)):pi(this.node(),t).ease},end:function(){var e,t,n=this,i=n._id,r=n.size();return new Promise((function(o,s){var a={value:s},l={value:function(){0==--r&&o()}};n.each((function(){var n=gi(this,i),r=n.on;r!==e&&((t=(e=r).copy())._.cancel.push(a),t._.interrupt.push(a),t._.end.push(l)),n.on=t}))}))}};var ir={time:null,delay:0,duration:250,ease:nr};function rr(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))return ir.time=Kn(),ir;return n}Mt.prototype.interrupt=function(e){return this.each((function(){yi(this,e)}))},Mt.prototype.transition=function(e){var t,n;e instanceof Zi?(t=e._id,e=e._name):(t=Xi(),(n=ir).time=Kn(),e=null==e?null:e+"");for(var i=this._groups,r=i.length,o=0;o<r;++o)for(var s,a=i[o],l=a.length,c=0;c<l;++c)(s=a[c])&&hi(s,e,t,c,a,n||rr(s,t));return new Zi(i,this._parents,e,t)};var or=[null],sr=function(e,t){var n,i,r=e.__transition;if(r)for(i in t=null==t?null:t+"",r)if((n=r[i]).state>si&&n.name===t)return new Zi([[e]],or,t,+i);return null},ar=function(e){return function(){return e}},lr=function(e,t,n){this.target=e,this.type=t,this.selection=n};function cr(){gt.stopImmediatePropagation()}var dr=function(){gt.preventDefault(),gt.stopImmediatePropagation()},ur={name:"drag"},hr={name:"space"},fr={name:"handle"},gr={name:"center"};function pr(e){return[+e[0],+e[1]]}function mr(e){return[pr(e[0]),pr(e[1])]}var _r={name:"x",handles:["w","e"].map(xr),input:function(e,t){return null==e?null:[[+e[0],t[0][1]],[+e[1],t[1][1]]]},output:function(e){return e&&[e[0][0],e[1][0]]}},br={name:"y",handles:["n","s"].map(xr),input:function(e,t){return null==e?null:[[t[0][0],+e[0]],[t[1][0],+e[1]]]},output:function(e){return e&&[e[0][1],e[1][1]]}},vr={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(xr),input:function(e){return null==e?null:mr(e)},output:function(e){return e}},yr={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},wr={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Cr={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},Sr={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},kr={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function xr(e){return{type:e}}function Lr(){return!gt.ctrlKey&&!gt.button}function Mr(){var e=this.ownerSVGElement||this;return e.hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]}function Dr(){return navigator.maxTouchPoints||"ontouchstart"in this}function Er(e){for(;!e.__brush;)if(!(e=e.parentNode))return;return e.__brush}function Tr(e){var t=e.__brush;return t?t.dim.output(t.selection):null}function Or(){return Ar(_r)}function Nr(){return Ar(br)}var Ir=function(){return Ar(vr)};function Ar(e){var t,n=Mr,i=Lr,r=Dr,o=!0,s=pe("start","brush","end"),a=6;function l(t){var n=t.property("__brush",p).selectAll(".overlay").data([xr("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",yr.overlay).merge(n).each((function(){var e=Er(this).extent;Dt(this).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1])})),t.selectAll(".selection").data([xr("selection")]).enter().append("rect").attr("class","selection").attr("cursor",yr.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var i=t.selectAll(".handle").data(e.handles,(function(e){return e.type}));i.exit().remove(),i.enter().append("rect").attr("class",(function(e){return"handle handle--"+e.type})).attr("cursor",(function(e){return yr[e.type]})),t.each(c).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",h).filter(r).on("touchstart.brush",h).on("touchmove.brush",f).on("touchend.brush touchcancel.brush",g).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function c(){var e=Dt(this),t=Er(this).selection;t?(e.selectAll(".selection").style("display",null).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1]),e.selectAll(".handle").style("display",null).attr("x",(function(e){return"e"===e.type[e.type.length-1]?t[1][0]-a/2:t[0][0]-a/2})).attr("y",(function(e){return"s"===e.type[0]?t[1][1]-a/2:t[0][1]-a/2})).attr("width",(function(e){return"n"===e.type||"s"===e.type?t[1][0]-t[0][0]+a:a})).attr("height",(function(e){return"e"===e.type||"w"===e.type?t[1][1]-t[0][1]+a:a}))):e.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function d(e,t,n){return!n&&e.__brush.emitter||new u(e,t)}function u(e,t){this.that=e,this.args=t,this.state=e.__brush,this.active=0}function h(){if((!t||gt.touches)&&i.apply(this,arguments)){var n,r,s,a,l,u,h,f,g,p,m,_,b=this,v=gt.target.__data__.type,y="selection"===(o&>.metaKey?v="overlay":v)?ur:o&>.altKey?gr:fr,w=e===br?null:Sr[v],C=e===_r?null:kr[v],S=Er(b),k=S.extent,x=S.selection,L=k[0][0],M=k[0][1],D=k[1][0],E=k[1][1],T=0,O=0,N=w&&C&&o&>.shiftKey,I=gt.touches?(_=gt.changedTouches[0].identifier,function(e){return jn(e,gt.touches,_)}):Fn,A=I(b),R=A,P=d(b,arguments,!0).beforestart();"overlay"===v?(x&&(g=!0),S.selection=x=[[n=e===br?L:A[0],s=e===_r?M:A[1]],[l=e===br?D:n,h=e===_r?E:s]]):(n=x[0][0],s=x[0][1],l=x[1][0],h=x[1][1]),r=n,a=s,u=l,f=h;var j=Dt(b).attr("pointer-events","none"),F=j.selectAll(".overlay").attr("cursor",yr[v]);if(gt.touches)P.moved=W,P.ended=Y;else{var B=Dt(gt.view).on("mousemove.brush",W,!0).on("mouseup.brush",Y,!0);o&&B.on("keydown.brush",(function(){switch(gt.keyCode){case 16:N=w&&C;break;case 18:y===fr&&(w&&(l=u-T*w,n=r+T*w),C&&(h=f-O*C,s=a+O*C),y=gr,H());break;case 32:y!==fr&&y!==gr||(w<0?l=u-T:w>0&&(n=r-T),C<0?h=f-O:C>0&&(s=a-O),y=hr,F.attr("cursor",yr.selection),H());break;default:return}dr()}),!0).on("keyup.brush",(function(){switch(gt.keyCode){case 16:N&&(p=m=N=!1,H());break;case 18:y===gr&&(w<0?l=u:w>0&&(n=r),C<0?h=f:C>0&&(s=a),y=fr,H());break;case 32:y===hr&&(gt.altKey?(w&&(l=u-T*w,n=r+T*w),C&&(h=f-O*C,s=a+O*C),y=gr):(w<0?l=u:w>0&&(n=r),C<0?h=f:C>0&&(s=a),y=fr),F.attr("cursor",yr[v]),H());break;default:return}dr()}),!0),Ot(gt.view)}cr(),yi(b),c.call(b),P.start()}function W(){var e=I(b);!N||p||m||(Math.abs(e[0]-R[0])>Math.abs(e[1]-R[1])?m=!0:p=!0),R=e,g=!0,dr(),H()}function H(){var e;switch(T=R[0]-A[0],O=R[1]-A[1],y){case hr:case ur:w&&(T=Math.max(L-n,Math.min(D-l,T)),r=n+T,u=l+T),C&&(O=Math.max(M-s,Math.min(E-h,O)),a=s+O,f=h+O);break;case fr:w<0?(T=Math.max(L-n,Math.min(D-n,T)),r=n+T,u=l):w>0&&(T=Math.max(L-l,Math.min(D-l,T)),r=n,u=l+T),C<0?(O=Math.max(M-s,Math.min(E-s,O)),a=s+O,f=h):C>0&&(O=Math.max(M-h,Math.min(E-h,O)),a=s,f=h+O);break;case gr:w&&(r=Math.max(L,Math.min(D,n-T*w)),u=Math.max(L,Math.min(D,l+T*w))),C&&(a=Math.max(M,Math.min(E,s-O*C)),f=Math.max(M,Math.min(E,h+O*C)))}u<r&&(w*=-1,e=n,n=l,l=e,e=r,r=u,u=e,v in wr&&F.attr("cursor",yr[v=wr[v]])),f<a&&(C*=-1,e=s,s=h,h=e,e=a,a=f,f=e,v in Cr&&F.attr("cursor",yr[v=Cr[v]])),S.selection&&(x=S.selection),p&&(r=x[0][0],u=x[1][0]),m&&(a=x[0][1],f=x[1][1]),x[0][0]===r&&x[0][1]===a&&x[1][0]===u&&x[1][1]===f||(S.selection=[[r,a],[u,f]],c.call(b),P.brush())}function Y(){if(cr(),gt.touches){if(gt.touches.length)return;t&&clearTimeout(t),t=setTimeout((function(){t=null}),500)}else Nt(gt.view,g),B.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);j.attr("pointer-events","all"),F.attr("cursor",yr.overlay),S.selection&&(x=S.selection),function(e){return e[0][0]===e[1][0]||e[0][1]===e[1][1]}(x)&&(S.selection=null,c.call(b)),P.end()}}function f(){d(this,arguments).moved()}function g(){d(this,arguments).ended()}function p(){var t=this.__brush||{selection:null};return t.extent=mr(n.apply(this,arguments)),t.dim=e,t}return l.move=function(t,n){t.selection?t.on("start.brush",(function(){d(this,arguments).beforestart().start()})).on("interrupt.brush end.brush",(function(){d(this,arguments).end()})).tween("brush",(function(){var t=this,i=t.__brush,r=d(t,arguments),o=i.selection,s=e.input("function"==typeof n?n.apply(this,arguments):n,i.extent),a=An(o,s);function l(e){i.selection=1===e&&null===s?null:a(e),c.call(t),r.brush()}return null!==o&&null!==s?l:l(1)})):t.each((function(){var t=this,i=arguments,r=t.__brush,o=e.input("function"==typeof n?n.apply(t,i):n,r.extent),s=d(t,i).beforestart();yi(t),r.selection=null===o?null:o,c.call(t),s.start().brush().end()}))},l.clear=function(e){l.move(e,null)},u.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting?(this.starting=!1,this.emit("start")):this.emit("brush"),this},brush:function(){return this.emit("brush"),this},end:function(){return 0==--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(t){yt(new lr(l,t,e.output(this.state.selection)),s.apply,s,[t,this.that,this.args])}},l.extent=function(e){return arguments.length?(n="function"==typeof e?e:ar(mr(e)),l):n},l.filter=function(e){return arguments.length?(i="function"==typeof e?e:ar(!!e),l):i},l.touchable=function(e){return arguments.length?(r="function"==typeof e?e:ar(!!e),l):r},l.handleSize=function(e){return arguments.length?(a=+e,l):a},l.keyModifiers=function(e){return arguments.length?(o=!!e,l):o},l.on=function(){var e=s.on.apply(s,arguments);return e===s?l:e},l}var Rr=Math.cos,Pr=Math.sin,jr=Math.PI,Fr=jr/2,Br=2*jr,Wr=Math.max;function Hr(e){return function(t,n){return e(t.source.value+t.target.value,n.source.value+n.target.value)}}var Yr=function(){var e=0,t=null,n=null,i=null;function r(r){var o,s,a,l,c,d,u=r.length,h=[],f=C(u),g=[],p=[],m=p.groups=new Array(u),_=new Array(u*u);for(o=0,c=-1;++c<u;){for(s=0,d=-1;++d<u;)s+=r[c][d];h.push(s),g.push(C(u)),o+=s}for(t&&f.sort((function(e,n){return t(h[e],h[n])})),n&&g.forEach((function(e,t){e.sort((function(e,i){return n(r[t][e],r[t][i])}))})),l=(o=Wr(0,Br-e*u)/o)?e:Br/u,s=0,c=-1;++c<u;){for(a=s,d=-1;++d<u;){var b=f[c],v=g[b][d],y=r[b][v],w=s,S=s+=y*o;_[v*u+b]={index:b,subindex:v,startAngle:w,endAngle:S,value:y}}m[b]={index:b,startAngle:a,endAngle:s,value:h[b]},s+=l}for(c=-1;++c<u;)for(d=c-1;++d<u;){var k=_[d*u+c],x=_[c*u+d];(k.value||x.value)&&p.push(k.value<x.value?{source:x,target:k}:{source:k,target:x})}return i?p.sort(i):p}return r.padAngle=function(t){return arguments.length?(e=Wr(0,t),r):e},r.sortGroups=function(e){return arguments.length?(t=e,r):t},r.sortSubgroups=function(e){return arguments.length?(n=e,r):n},r.sortChords=function(e){return arguments.length?(null==e?i=null:(i=Hr(e))._=e,r):i&&i._},r},Vr=Array.prototype.slice,zr=function(e){return function(){return e}},Ur=Math.PI,$r=2*Ur,qr=$r-1e-6;function Kr(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Gr(){return new Kr}Kr.prototype=Gr.prototype={constructor:Kr,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,i){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+i)},bezierCurveTo:function(e,t,n,i,r,o){this._+="C"+ +e+","+ +t+","+ +n+","+ +i+","+(this._x1=+r)+","+(this._y1=+o)},arcTo:function(e,t,n,i,r){e=+e,t=+t,n=+n,i=+i,r=+r;var o=this._x1,s=this._y1,a=n-e,l=i-t,c=o-e,d=s-t,u=c*c+d*d;if(r<0)throw new Error("negative radius: "+r);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(u>1e-6)if(Math.abs(d*a-l*c)>1e-6&&r){var h=n-o,f=i-s,g=a*a+l*l,p=h*h+f*f,m=Math.sqrt(g),_=Math.sqrt(u),b=r*Math.tan((Ur-Math.acos((g+u-p)/(2*m*_)))/2),v=b/_,y=b/m;Math.abs(v-1)>1e-6&&(this._+="L"+(e+v*c)+","+(t+v*d)),this._+="A"+r+","+r+",0,0,"+ +(d*h>c*f)+","+(this._x1=e+y*a)+","+(this._y1=t+y*l)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,n,i,r,o){e=+e,t=+t,o=!!o;var s=(n=+n)*Math.cos(i),a=n*Math.sin(i),l=e+s,c=t+a,d=1^o,u=o?i-r:r-i;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+l+","+c:(Math.abs(this._x1-l)>1e-6||Math.abs(this._y1-c)>1e-6)&&(this._+="L"+l+","+c),n&&(u<0&&(u=u%$r+$r),u>qr?this._+="A"+n+","+n+",0,1,"+d+","+(e-s)+","+(t-a)+"A"+n+","+n+",0,1,"+d+","+(this._x1=l)+","+(this._y1=c):u>1e-6&&(this._+="A"+n+","+n+",0,"+ +(u>=Ur)+","+d+","+(this._x1=e+n*Math.cos(r))+","+(this._y1=t+n*Math.sin(r))))},rect:function(e,t,n,i){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +i+"h"+-n+"Z"},toString:function(){return this._}};var Zr=Gr;function Jr(e){return e.source}function Xr(e){return e.target}function Qr(e){return e.radius}function eo(e){return e.startAngle}function to(e){return e.endAngle}var no=function(){var e=Jr,t=Xr,n=Qr,i=eo,r=to,o=null;function s(){var s,a=Vr.call(arguments),l=e.apply(this,a),c=t.apply(this,a),d=+n.apply(this,(a[0]=l,a)),u=i.apply(this,a)-Fr,h=r.apply(this,a)-Fr,f=d*Rr(u),g=d*Pr(u),p=+n.apply(this,(a[0]=c,a)),m=i.apply(this,a)-Fr,_=r.apply(this,a)-Fr;if(o||(o=s=Zr()),o.moveTo(f,g),o.arc(0,0,d,u,h),u===m&&h===_||(o.quadraticCurveTo(0,0,p*Rr(m),p*Pr(m)),o.arc(0,0,p,m,_)),o.quadraticCurveTo(0,0,f,g),o.closePath(),s)return o=null,s+""||null}return s.radius=function(e){return arguments.length?(n="function"==typeof e?e:zr(+e),s):n},s.startAngle=function(e){return arguments.length?(i="function"==typeof e?e:zr(+e),s):i},s.endAngle=function(e){return arguments.length?(r="function"==typeof e?e:zr(+e),s):r},s.source=function(t){return arguments.length?(e=t,s):e},s.target=function(e){return arguments.length?(t=e,s):t},s.context=function(e){return arguments.length?(o=null==e?null:e,s):o},s};function io(){}function ro(e,t){var n=new io;if(e instanceof io)e.each((function(e,t){n.set(t,e)}));else if(Array.isArray(e)){var i,r=-1,o=e.length;if(null==t)for(;++r<o;)n.set(r,e[r]);else for(;++r<o;)n.set(t(i=e[r],r,e),i)}else if(e)for(var s in e)n.set(s,e[s]);return n}io.prototype=ro.prototype={constructor:io,has:function(e){return"$"+e in this},get:function(e){return this["$"+e]},set:function(e,t){return this["$"+e]=t,this},remove:function(e){var t="$"+e;return t in this&&delete this[t]},clear:function(){for(var e in this)"$"===e[0]&&delete this[e]},keys:function(){var e=[];for(var t in this)"$"===t[0]&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)"$"===t[0]&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)"$"===t[0]&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)"$"===t[0]&&++e;return e},empty:function(){for(var e in this)if("$"===e[0])return!1;return!0},each:function(e){for(var t in this)"$"===t[0]&&e(this[t],t.slice(1),this)}};var oo=ro,so=function(){var e,t,n,i=[],r=[];function o(n,r,s,a){if(r>=i.length)return null!=e&&n.sort(e),null!=t?t(n):n;for(var l,c,d,u=-1,h=n.length,f=i[r++],g=oo(),p=s();++u<h;)(d=g.get(l=f(c=n[u])+""))?d.push(c):g.set(l,[c]);return g.each((function(e,t){a(p,t,o(e,r,s,a))})),p}return n={object:function(e){return o(e,0,ao,lo)},map:function(e){return o(e,0,co,uo)},entries:function(e){return function e(n,o){if(++o>i.length)return n;var s,a=r[o-1];return null!=t&&o>=i.length?s=n.entries():(s=[],n.each((function(t,n){s.push({key:n,values:e(t,o)})}))),null!=a?s.sort((function(e,t){return a(e.key,t.key)})):s}(o(e,0,co,uo),0)},key:function(e){return i.push(e),n},sortKeys:function(e){return r[i.length-1]=e,n},sortValues:function(t){return e=t,n},rollup:function(e){return t=e,n}}};function ao(){return{}}function lo(e,t,n){e[t]=n}function co(){return oo()}function uo(e,t,n){e.set(t,n)}function ho(){}var fo=oo.prototype;function go(e,t){var n=new ho;if(e instanceof ho)e.each((function(e){n.add(e)}));else if(e){var i=-1,r=e.length;if(null==t)for(;++i<r;)n.add(e[i]);else for(;++i<r;)n.add(t(e[i],i,e))}return n}ho.prototype=go.prototype={constructor:ho,has:fo.has,add:function(e){return this["$"+(e+="")]=e,this},remove:fo.remove,clear:fo.clear,values:fo.keys,size:fo.size,empty:fo.empty,each:fo.each};var po=go,mo=function(e){var t=[];for(var n in e)t.push(n);return t},_o=function(e){var t=[];for(var n in e)t.push(e[n]);return t},bo=function(e){var t=[];for(var n in e)t.push({key:n,value:e[n]});return t},vo=Math.PI/180,yo=180/Math.PI,wo=.96422,Co=1,So=.82521,ko=4/29,xo=6/29,Lo=3*xo*xo,Mo=xo*xo*xo;function Do(e){if(e instanceof Oo)return new Oo(e.l,e.a,e.b,e.opacity);if(e instanceof Bo)return Wo(e);e instanceof en||(e=Xt(e));var t,n,i=Ro(e.r),r=Ro(e.g),o=Ro(e.b),s=No((.2225045*i+.7168786*r+.0606169*o)/Co);return i===r&&r===o?t=n=s:(t=No((.4360747*i+.3850649*r+.1430804*o)/wo),n=No((.0139322*i+.0971045*r+.7141733*o)/So)),new Oo(116*s-16,500*(t-s),200*(s-n),e.opacity)}function Eo(e,t){return new Oo(e,0,0,null==t?1:t)}function To(e,t,n,i){return 1===arguments.length?Do(e):new Oo(e,t,n,null==i?1:i)}function Oo(e,t,n,i){this.l=+e,this.a=+t,this.b=+n,this.opacity=+i}function No(e){return e>Mo?Math.pow(e,1/3):e/Lo+ko}function Io(e){return e>xo?e*e*e:Lo*(e-ko)}function Ao(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Ro(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Po(e){if(e instanceof Bo)return new Bo(e.h,e.c,e.l,e.opacity);if(e instanceof Oo||(e=Do(e)),0===e.a&&0===e.b)return new Bo(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*yo;return new Bo(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function jo(e,t,n,i){return 1===arguments.length?Po(e):new Bo(n,t,e,null==i?1:i)}function Fo(e,t,n,i){return 1===arguments.length?Po(e):new Bo(e,t,n,null==i?1:i)}function Bo(e,t,n,i){this.h=+e,this.c=+t,this.l=+n,this.opacity=+i}function Wo(e){if(isNaN(e.h))return new Oo(e.l,0,0,e.opacity);var t=e.h*vo;return new Oo(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}It(Oo,To,At(Rt,{brighter:function(e){return new Oo(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new Oo(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new en(Ao(3.1338561*(t=wo*Io(t))-1.6168667*(e=Co*Io(e))-.4906146*(n=So*Io(n))),Ao(-.9787684*t+1.9161415*e+.033454*n),Ao(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),It(Bo,Fo,At(Rt,{brighter:function(e){return new Bo(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new Bo(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return Wo(this).rgb()}}));var Ho=-.29227,Yo=-.90649,Vo=1.97294,zo=Vo*Yo,Uo=1.78277*Vo,$o=1.78277*Ho- -.14861*Yo;function qo(e,t,n,i){return 1===arguments.length?function(e){if(e instanceof Ko)return new Ko(e.h,e.s,e.l,e.opacity);e instanceof en||(e=Xt(e));var t=e.r/255,n=e.g/255,i=e.b/255,r=($o*i+zo*t-Uo*n)/($o+zo-Uo),o=i-r,s=(Vo*(n-r)-Ho*o)/Yo,a=Math.sqrt(s*s+o*o)/(Vo*r*(1-r)),l=a?Math.atan2(s,o)*yo-120:NaN;return new Ko(l<0?l+360:l,a,r,e.opacity)}(e):new Ko(e,t,n,null==i?1:i)}function Ko(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}It(Ko,qo,At(Rt,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new Ko(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Ko(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*vo,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),i=Math.cos(e),r=Math.sin(e);return new en(255*(t+n*(-.14861*i+1.78277*r)),255*(t+n*(Ho*i+Yo*r)),255*(t+n*(Vo*i)),this.opacity)}}));var Go=Array.prototype.slice,Zo=function(e,t){return e-t},Jo=function(e){for(var t=0,n=e.length,i=e[n-1][1]*e[0][0]-e[n-1][0]*e[0][1];++t<n;)i+=e[t-1][1]*e[t][0]-e[t-1][0]*e[t][1];return i},Xo=function(e){return function(){return e}},Qo=function(e,t){for(var n,i=-1,r=t.length;++i<r;)if(n=es(e,t[i]))return n;return 0};function es(e,t){for(var n=t[0],i=t[1],r=-1,o=0,s=e.length,a=s-1;o<s;a=o++){var l=e[o],c=l[0],d=l[1],u=e[a],h=u[0],f=u[1];if(ts(l,u,t))return 0;d>i!=f>i&&n<(h-c)*(i-d)/(f-d)+c&&(r=-r)}return r}function ts(e,t,n){var i,r,o,s;return function(e,t,n){return(t[0]-e[0])*(n[1]-e[1])==(n[0]-e[0])*(t[1]-e[1])}(e,t,n)&&(r=e[i=+(e[0]===t[0])],o=n[i],s=t[i],r<=o&&o<=s||s<=o&&o<=r)}var ns=function(){},is=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]],rs=function(){var e=1,t=1,n=E,i=a;function r(e){var t=n(e);if(Array.isArray(t))t=t.slice().sort(Zo);else{var i=m(e),r=i[0],s=i[1];t=D(r,s,t),t=C(Math.floor(r/t)*t,Math.floor(s/t)*t,t)}return t.map((function(t){return o(e,t)}))}function o(n,r){var o=[],a=[];return function(n,i,r){var o,a,l,c,d,u,h=new Array,f=new Array;o=a=-1,c=n[0]>=i,is[c<<1].forEach(g);for(;++o<e-1;)l=c,c=n[o+1]>=i,is[l|c<<1].forEach(g);is[c<<0].forEach(g);for(;++a<t-1;){for(o=-1,c=n[a*e+e]>=i,d=n[a*e]>=i,is[c<<1|d<<2].forEach(g);++o<e-1;)l=c,c=n[a*e+e+o+1]>=i,u=d,d=n[a*e+o+1]>=i,is[l|c<<1|d<<2|u<<3].forEach(g);is[c|d<<3].forEach(g)}o=-1,d=n[a*e]>=i,is[d<<2].forEach(g);for(;++o<e-1;)u=d,d=n[a*e+o+1]>=i,is[d<<2|u<<3].forEach(g);function g(e){var t,n,i=[e[0][0]+o,e[0][1]+a],l=[e[1][0]+o,e[1][1]+a],c=s(i),d=s(l);(t=f[c])?(n=h[d])?(delete f[t.end],delete h[n.start],t===n?(t.ring.push(l),r(t.ring)):h[t.start]=f[n.end]={start:t.start,end:n.end,ring:t.ring.concat(n.ring)}):(delete f[t.end],t.ring.push(l),f[t.end=d]=t):(t=h[d])?(n=f[c])?(delete h[t.start],delete f[n.end],t===n?(t.ring.push(l),r(t.ring)):h[n.start]=f[t.end]={start:n.start,end:t.end,ring:n.ring.concat(t.ring)}):(delete h[t.start],t.ring.unshift(i),h[t.start=c]=t):h[c]=f[d]={start:c,end:d,ring:[i,l]}}is[d<<3].forEach(g)}(n,r,(function(e){i(e,n,r),Jo(e)>0?o.push([e]):a.push(e)})),a.forEach((function(e){for(var t,n=0,i=o.length;n<i;++n)if(-1!==Qo((t=o[n])[0],e))return void t.push(e)})),{type:"MultiPolygon",value:r,coordinates:o}}function s(t){return 2*t[0]+t[1]*(e+1)*4}function a(n,i,r){n.forEach((function(n){var o,s=n[0],a=n[1],l=0|s,c=0|a,d=i[c*e+l];s>0&&s<e&&l===s&&(o=i[c*e+l-1],n[0]=s+(r-o)/(d-o)-.5),a>0&&a<t&&c===a&&(o=i[(c-1)*e+l],n[1]=a+(r-o)/(d-o)-.5)}))}return r.contour=o,r.size=function(n){if(!arguments.length)return[e,t];var i=Math.ceil(n[0]),o=Math.ceil(n[1]);if(!(i>0&&o>0))throw new Error("invalid size");return e=i,t=o,r},r.thresholds=function(e){return arguments.length?(n="function"==typeof e?e:Array.isArray(e)?Xo(Go.call(e)):Xo(e),r):n},r.smooth=function(e){return arguments.length?(i=e?a:ns,r):i===a},r};function os(e,t,n){for(var i=e.width,r=e.height,o=1+(n<<1),s=0;s<r;++s)for(var a=0,l=0;a<i+n;++a)a<i&&(l+=e.data[a+s*i]),a>=n&&(a>=o&&(l-=e.data[a-o+s*i]),t.data[a-n+s*i]=l/Math.min(a+1,i-1+o-a,o))}function ss(e,t,n){for(var i=e.width,r=e.height,o=1+(n<<1),s=0;s<i;++s)for(var a=0,l=0;a<r+n;++a)a<r&&(l+=e.data[s+a*i]),a>=n&&(a>=o&&(l-=e.data[s+(a-o)*i]),t.data[s+(a-n)*i]=l/Math.min(a+1,r-1+o-a,o))}function as(e){return e[0]}function ls(e){return e[1]}function cs(){return 1}var ds=function(){var e=as,t=ls,n=cs,i=960,r=500,o=20,s=2,a=3*o,l=i+2*a>>s,c=r+2*a>>s,d=Xo(20);function u(i){var r=new Float32Array(l*c),u=new Float32Array(l*c);i.forEach((function(i,o,d){var u=+e(i,o,d)+a>>s,h=+t(i,o,d)+a>>s,f=+n(i,o,d);u>=0&&u<l&&h>=0&&h<c&&(r[u+h*l]+=f)})),os({width:l,height:c,data:r},{width:l,height:c,data:u},o>>s),ss({width:l,height:c,data:u},{width:l,height:c,data:r},o>>s),os({width:l,height:c,data:r},{width:l,height:c,data:u},o>>s),ss({width:l,height:c,data:u},{width:l,height:c,data:r},o>>s),os({width:l,height:c,data:r},{width:l,height:c,data:u},o>>s),ss({width:l,height:c,data:u},{width:l,height:c,data:r},o>>s);var f=d(r);if(!Array.isArray(f)){var g=A(r);f=D(0,g,f),(f=C(0,Math.floor(g/f)*f,f)).shift()}return rs().thresholds(f).size([l,c])(r).map(h)}function h(e){return e.value*=Math.pow(2,-2*s),e.coordinates.forEach(f),e}function f(e){e.forEach(g)}function g(e){e.forEach(p)}function p(e){e[0]=e[0]*Math.pow(2,s)-a,e[1]=e[1]*Math.pow(2,s)-a}function m(){return l=i+2*(a=3*o)>>s,c=r+2*a>>s,u}return u.x=function(t){return arguments.length?(e="function"==typeof t?t:Xo(+t),u):e},u.y=function(e){return arguments.length?(t="function"==typeof e?e:Xo(+e),u):t},u.weight=function(e){return arguments.length?(n="function"==typeof e?e:Xo(+e),u):n},u.size=function(e){if(!arguments.length)return[i,r];var t=Math.ceil(e[0]),n=Math.ceil(e[1]);if(!(t>=0||t>=0))throw new Error("invalid size");return i=t,r=n,m()},u.cellSize=function(e){if(!arguments.length)return 1<<s;if(!((e=+e)>=1))throw new Error("invalid cell size");return s=Math.floor(Math.log(e)/Math.LN2),m()},u.thresholds=function(e){return arguments.length?(d="function"==typeof e?e:Array.isArray(e)?Xo(Go.call(e)):Xo(e),u):d},u.bandwidth=function(e){if(!arguments.length)return Math.sqrt(o*(o+1));if(!((e=+e)>=0))throw new Error("invalid bandwidth");return o=Math.round((Math.sqrt(4*e*e+1)-1)/2),m()},u},us=function(e){return function(){return e}};function hs(e,t,n,i,r,o,s,a,l,c){this.target=e,this.type=t,this.subject=n,this.identifier=i,this.active=r,this.x=o,this.y=s,this.dx=a,this.dy=l,this._=c}function fs(){return!gt.ctrlKey&&!gt.button}function gs(){return this.parentNode}function ps(e){return null==e?{x:gt.x,y:gt.y}:e}function ms(){return navigator.maxTouchPoints||"ontouchstart"in this}hs.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};var _s=function(){var e,t,n,i,r=fs,o=gs,s=ps,a=ms,l={},c=pe("start","drag","end"),d=0,u=0;function h(e){e.on("mousedown.drag",f).filter(a).on("touchstart.drag",m).on("touchmove.drag",_).on("touchend.drag touchcancel.drag",b).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function f(){if(!i&&r.apply(this,arguments)){var s=v("mouse",o.apply(this,arguments),Fn,this,arguments);s&&(Dt(gt.view).on("mousemove.drag",g,!0).on("mouseup.drag",p,!0),Ot(gt.view),Et(),n=!1,e=gt.clientX,t=gt.clientY,s("start"))}}function g(){if(Tt(),!n){var i=gt.clientX-e,r=gt.clientY-t;n=i*i+r*r>u}l.mouse("drag")}function p(){Dt(gt.view).on("mousemove.drag mouseup.drag",null),Nt(gt.view,n),Tt(),l.mouse("end")}function m(){if(r.apply(this,arguments)){var e,t,n=gt.changedTouches,i=o.apply(this,arguments),s=n.length;for(e=0;e<s;++e)(t=v(n[e].identifier,i,jn,this,arguments))&&(Et(),t("start"))}}function _(){var e,t,n=gt.changedTouches,i=n.length;for(e=0;e<i;++e)(t=l[n[e].identifier])&&(Tt(),t("drag"))}function b(){var e,t,n=gt.changedTouches,r=n.length;for(i&&clearTimeout(i),i=setTimeout((function(){i=null}),500),e=0;e<r;++e)(t=l[n[e].identifier])&&(Et(),t("end"))}function v(e,t,n,i,r){var o,a,u,f=n(t,e),g=c.copy();if(yt(new hs(h,"beforestart",o,e,d,f[0],f[1],0,0,g),(function(){return null!=(gt.subject=o=s.apply(i,r))&&(a=o.x-f[0]||0,u=o.y-f[1]||0,!0)})))return function s(c){var p,m=f;switch(c){case"start":l[e]=s,p=d++;break;case"end":delete l[e],--d;case"drag":f=n(t,e),p=d}yt(new hs(h,c,o,e,p,f[0]+a,f[1]+u,f[0]-m[0],f[1]-m[1],g),g.apply,g,[c,i,r])}}return h.filter=function(e){return arguments.length?(r="function"==typeof e?e:us(!!e),h):r},h.container=function(e){return arguments.length?(o="function"==typeof e?e:us(e),h):o},h.subject=function(e){return arguments.length?(s="function"==typeof e?e:us(e),h):s},h.touchable=function(e){return arguments.length?(a="function"==typeof e?e:us(!!e),h):a},h.on=function(){var e=c.on.apply(c,arguments);return e===c?h:e},h.clickDistance=function(e){return arguments.length?(u=(e=+e)*e,h):Math.sqrt(u)},h},bs={},vs={},ys=34,ws=10,Cs=13;function Ss(e){return new Function("d","return {"+e.map((function(e,t){return JSON.stringify(e)+": d["+t+'] || ""'})).join(",")+"}")}function ks(e){var t=Object.create(null),n=[];return e.forEach((function(e){for(var i in e)i in t||n.push(t[i]=i)})),n}function xs(e,t){var n=e+"",i=n.length;return i<t?new Array(t-i+1).join(0)+n:n}function Ls(e){var t,n=e.getUTCHours(),i=e.getUTCMinutes(),r=e.getUTCSeconds(),o=e.getUTCMilliseconds();return isNaN(e)?"Invalid Date":((t=e.getUTCFullYear())<0?"-"+xs(-t,6):t>9999?"+"+xs(t,6):xs(t,4))+"-"+xs(e.getUTCMonth()+1,2)+"-"+xs(e.getUTCDate(),2)+(o?"T"+xs(n,2)+":"+xs(i,2)+":"+xs(r,2)+"."+xs(o,3)+"Z":r?"T"+xs(n,2)+":"+xs(i,2)+":"+xs(r,2)+"Z":i||n?"T"+xs(n,2)+":"+xs(i,2)+"Z":"")}var Ms=function(e){var t=new RegExp('["'+e+"\n\r]"),n=e.charCodeAt(0);function i(e,t){var i,r=[],o=e.length,s=0,a=0,l=o<=0,c=!1;function d(){if(l)return vs;if(c)return c=!1,bs;var t,i,r=s;if(e.charCodeAt(r)===ys){for(;s++<o&&e.charCodeAt(s)!==ys||e.charCodeAt(++s)===ys;);return(t=s)>=o?l=!0:(i=e.charCodeAt(s++))===ws?c=!0:i===Cs&&(c=!0,e.charCodeAt(s)===ws&&++s),e.slice(r+1,t-1).replace(/""/g,'"')}for(;s<o;){if((i=e.charCodeAt(t=s++))===ws)c=!0;else if(i===Cs)c=!0,e.charCodeAt(s)===ws&&++s;else if(i!==n)continue;return e.slice(r,t)}return l=!0,e.slice(r,o)}for(e.charCodeAt(o-1)===ws&&--o,e.charCodeAt(o-1)===Cs&&--o;(i=d())!==vs;){for(var u=[];i!==bs&&i!==vs;)u.push(i),i=d();t&&null==(u=t(u,a++))||r.push(u)}return r}function r(t,n){return t.map((function(t){return n.map((function(e){return s(t[e])})).join(e)}))}function o(t){return t.map(s).join(e)}function s(e){return null==e?"":e instanceof Date?Ls(e):t.test(e+="")?'"'+e.replace(/"/g,'""')+'"':e}return{parse:function(e,t){var n,r,o=i(e,(function(e,i){if(n)return n(e,i-1);r=e,n=t?function(e,t){var n=Ss(e);return function(i,r){return t(n(i),r,e)}}(e,t):Ss(e)}));return o.columns=r||[],o},parseRows:i,format:function(t,n){return null==n&&(n=ks(t)),[n.map(s).join(e)].concat(r(t,n)).join("\n")},formatBody:function(e,t){return null==t&&(t=ks(e)),r(e,t).join("\n")},formatRows:function(e){return e.map(o).join("\n")},formatRow:o,formatValue:s}},Ds=Ms(","),Es=Ds.parse,Ts=Ds.parseRows,Os=Ds.format,Ns=Ds.formatBody,Is=Ds.formatRows,As=Ds.formatRow,Rs=Ds.formatValue,Ps=Ms("\t"),js=Ps.parse,Fs=Ps.parseRows,Bs=Ps.format,Ws=Ps.formatBody,Hs=Ps.formatRows,Ys=Ps.formatRow,Vs=Ps.formatValue;function zs(e){for(var t in e){var n,i,r=e[t].trim();if(r)if("true"===r)r=!0;else if("false"===r)r=!1;else if("NaN"===r)r=NaN;else if(isNaN(n=+r)){if(!(i=r.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)))continue;Us&&i[4]&&!i[7]&&(r=r.replace(/-/g,"/").replace(/T/," ")),r=new Date(r)}else r=n;else r=null;e[t]=r}return e}var Us=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours();function $s(e){return+e}function qs(e){return e*e}function Ks(e){return e*(2-e)}function Gs(e){return((e*=2)<=1?e*e:--e*(2-e)+1)/2}var Zs=function e(t){function n(e){return Math.pow(e,t)}return t=+t,n.exponent=e,n}(3),Js=function e(t){function n(e){return 1-Math.pow(1-e,t)}return t=+t,n.exponent=e,n}(3),Xs=function e(t){function n(e){return((e*=2)<=1?Math.pow(e,t):2-Math.pow(2-e,t))/2}return t=+t,n.exponent=e,n}(3),Qs=Math.PI,ea=Qs/2;function ta(e){return 1-Math.cos(e*ea)}function na(e){return Math.sin(e*ea)}function ia(e){return(1-Math.cos(Qs*e))/2}function ra(e){return Math.pow(2,10*e-10)}function oa(e){return 1-Math.pow(2,-10*e)}function sa(e){return((e*=2)<=1?Math.pow(2,10*e-10):2-Math.pow(2,10-10*e))/2}function aa(e){return 1-Math.sqrt(1-e*e)}function la(e){return Math.sqrt(1- --e*e)}function ca(e){return((e*=2)<=1?1-Math.sqrt(1-e*e):Math.sqrt(1-(e-=2)*e)+1)/2}var da=4/11,ua=6/11,ha=8/11,fa=.75,ga=9/11,pa=10/11,ma=.9375,_a=21/22,ba=63/64,va=1/da/da;function ya(e){return 1-wa(1-e)}function wa(e){return(e=+e)<da?va*e*e:e<ha?va*(e-=ua)*e+fa:e<pa?va*(e-=ga)*e+ma:va*(e-=_a)*e+ba}function Ca(e){return((e*=2)<=1?1-wa(1-e):wa(e-1)+1)/2}var Sa=function e(t){function n(e){return e*e*((t+1)*e-t)}return t=+t,n.overshoot=e,n}(1.70158),ka=function e(t){function n(e){return--e*e*((t+1)*e+t)+1}return t=+t,n.overshoot=e,n}(1.70158),xa=function e(t){function n(e){return((e*=2)<1?e*e*((t+1)*e-t):(e-=2)*e*((t+1)*e+t)+2)/2}return t=+t,n.overshoot=e,n}(1.70158),La=2*Math.PI,Ma=function e(t,n){var i=Math.asin(1/(t=Math.max(1,t)))*(n/=La);function r(e){return t*Math.pow(2,10*--e)*Math.sin((i-e)/n)}return r.amplitude=function(t){return e(t,n*La)},r.period=function(n){return e(t,n)},r}(1,.3),Da=function e(t,n){var i=Math.asin(1/(t=Math.max(1,t)))*(n/=La);function r(e){return 1-t*Math.pow(2,-10*(e=+e))*Math.sin((e+i)/n)}return r.amplitude=function(t){return e(t,n*La)},r.period=function(n){return e(t,n)},r}(1,.3),Ea=function e(t,n){var i=Math.asin(1/(t=Math.max(1,t)))*(n/=La);function r(e){return((e=2*e-1)<0?t*Math.pow(2,10*e)*Math.sin((i-e)/n):2-t*Math.pow(2,-10*e)*Math.sin((i+e)/n))/2}return r.amplitude=function(t){return e(t,n*La)},r.period=function(n){return e(t,n)},r}(1,.3);function Ta(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.blob()}var Oa=function(e,t){return fetch(e,t).then(Ta)};function Na(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.arrayBuffer()}var Ia=function(e,t){return fetch(e,t).then(Na)};function Aa(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.text()}var Ra=function(e,t){return fetch(e,t).then(Aa)};function Pa(e){return function(t,n,i){return 2===arguments.length&&"function"==typeof n&&(i=n,n=void 0),Ra(t,n).then((function(t){return e(t,i)}))}}function ja(e,t,n,i){3===arguments.length&&"function"==typeof n&&(i=n,n=void 0);var r=Ms(e);return Ra(t,n).then((function(e){return r.parse(e,i)}))}var Fa=Pa(Es),Ba=Pa(js),Wa=function(e,t){return new Promise((function(n,i){var r=new Image;for(var o in t)r[o]=t[o];r.onerror=i,r.onload=function(){n(r)},r.src=e}))};function Ha(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.json()}var Ya=function(e,t){return fetch(e,t).then(Ha)};function Va(e){return function(t,n){return Ra(t,n).then((function(t){return(new DOMParser).parseFromString(t,e)}))}}var za=Va("application/xml"),Ua=Va("text/html"),$a=Va("image/svg+xml"),qa=function(e,t){var n;function i(){var i,r,o=n.length,s=0,a=0;for(i=0;i<o;++i)s+=(r=n[i]).x,a+=r.y;for(s=s/o-e,a=a/o-t,i=0;i<o;++i)(r=n[i]).x-=s,r.y-=a}return null==e&&(e=0),null==t&&(t=0),i.initialize=function(e){n=e},i.x=function(t){return arguments.length?(e=+t,i):e},i.y=function(e){return arguments.length?(t=+e,i):t},i},Ka=function(e){return function(){return e}},Ga=function(){return 1e-6*(Math.random()-.5)};function Za(e,t,n,i){if(isNaN(t)||isNaN(n))return e;var r,o,s,a,l,c,d,u,h,f=e._root,g={data:i},p=e._x0,m=e._y0,_=e._x1,b=e._y1;if(!f)return e._root=g,e;for(;f.length;)if((c=t>=(o=(p+_)/2))?p=o:_=o,(d=n>=(s=(m+b)/2))?m=s:b=s,r=f,!(f=f[u=d<<1|c]))return r[u]=g,e;if(a=+e._x.call(null,f.data),l=+e._y.call(null,f.data),t===a&&n===l)return g.next=f,r?r[u]=g:e._root=g,e;do{r=r?r[u]=new Array(4):e._root=new Array(4),(c=t>=(o=(p+_)/2))?p=o:_=o,(d=n>=(s=(m+b)/2))?m=s:b=s}while((u=d<<1|c)==(h=(l>=s)<<1|a>=o));return r[h]=f,r[u]=g,e}var Ja=function(e,t,n,i,r){this.node=e,this.x0=t,this.y0=n,this.x1=i,this.y1=r};function Xa(e){return e[0]}function Qa(e){return e[1]}function el(e,t,n){var i=new tl(null==t?Xa:t,null==n?Qa:n,NaN,NaN,NaN,NaN);return null==e?i:i.addAll(e)}function tl(e,t,n,i,r,o){this._x=e,this._y=t,this._x0=n,this._y0=i,this._x1=r,this._y1=o,this._root=void 0}function nl(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var il=el.prototype=tl.prototype;function rl(e){return e.x+e.vx}function ol(e){return e.y+e.vy}il.copy=function(){var e,t,n=new tl(this._x,this._y,this._x0,this._y0,this._x1,this._y1),i=this._root;if(!i)return n;if(!i.length)return n._root=nl(i),n;for(e=[{source:i,target:n._root=new Array(4)}];i=e.pop();)for(var r=0;r<4;++r)(t=i.source[r])&&(t.length?e.push({source:t,target:i.target[r]=new Array(4)}):i.target[r]=nl(t));return n},il.add=function(e){var t=+this._x.call(null,e),n=+this._y.call(null,e);return Za(this.cover(t,n),t,n,e)},il.addAll=function(e){var t,n,i,r,o=e.length,s=new Array(o),a=new Array(o),l=1/0,c=1/0,d=-1/0,u=-1/0;for(n=0;n<o;++n)isNaN(i=+this._x.call(null,t=e[n]))||isNaN(r=+this._y.call(null,t))||(s[n]=i,a[n]=r,i<l&&(l=i),i>d&&(d=i),r<c&&(c=r),r>u&&(u=r));if(l>d||c>u)return this;for(this.cover(l,c).cover(d,u),n=0;n<o;++n)Za(this,s[n],a[n],e[n]);return this},il.cover=function(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,i=this._y0,r=this._x1,o=this._y1;if(isNaN(n))r=(n=Math.floor(e))+1,o=(i=Math.floor(t))+1;else{for(var s,a,l=r-n,c=this._root;n>e||e>=r||i>t||t>=o;)switch(a=(t<i)<<1|e<n,(s=new Array(4))[a]=c,c=s,l*=2,a){case 0:r=n+l,o=i+l;break;case 1:n=r-l,o=i+l;break;case 2:r=n+l,i=o-l;break;case 3:n=r-l,i=o-l}this._root&&this._root.length&&(this._root=c)}return this._x0=n,this._y0=i,this._x1=r,this._y1=o,this},il.data=function(){var e=[];return this.visit((function(t){if(!t.length)do{e.push(t.data)}while(t=t.next)})),e},il.extent=function(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},il.find=function(e,t,n){var i,r,o,s,a,l,c,d=this._x0,u=this._y0,h=this._x1,f=this._y1,g=[],p=this._root;for(p&&g.push(new Ja(p,d,u,h,f)),null==n?n=1/0:(d=e-n,u=t-n,h=e+n,f=t+n,n*=n);l=g.pop();)if(!(!(p=l.node)||(r=l.x0)>h||(o=l.y0)>f||(s=l.x1)<d||(a=l.y1)<u))if(p.length){var m=(r+s)/2,_=(o+a)/2;g.push(new Ja(p[3],m,_,s,a),new Ja(p[2],r,_,m,a),new Ja(p[1],m,o,s,_),new Ja(p[0],r,o,m,_)),(c=(t>=_)<<1|e>=m)&&(l=g[g.length-1],g[g.length-1]=g[g.length-1-c],g[g.length-1-c]=l)}else{var b=e-+this._x.call(null,p.data),v=t-+this._y.call(null,p.data),y=b*b+v*v;if(y<n){var w=Math.sqrt(n=y);d=e-w,u=t-w,h=e+w,f=t+w,i=p.data}}return i},il.remove=function(e){if(isNaN(o=+this._x.call(null,e))||isNaN(s=+this._y.call(null,e)))return this;var t,n,i,r,o,s,a,l,c,d,u,h,f=this._root,g=this._x0,p=this._y0,m=this._x1,_=this._y1;if(!f)return this;if(f.length)for(;;){if((c=o>=(a=(g+m)/2))?g=a:m=a,(d=s>=(l=(p+_)/2))?p=l:_=l,t=f,!(f=f[u=d<<1|c]))return this;if(!f.length)break;(t[u+1&3]||t[u+2&3]||t[u+3&3])&&(n=t,h=u)}for(;f.data!==e;)if(i=f,!(f=f.next))return this;return(r=f.next)&&delete f.next,i?(r?i.next=r:delete i.next,this):t?(r?t[u]=r:delete t[u],(f=t[0]||t[1]||t[2]||t[3])&&f===(t[3]||t[2]||t[1]||t[0])&&!f.length&&(n?n[h]=f:this._root=f),this):(this._root=r,this)},il.removeAll=function(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this},il.root=function(){return this._root},il.size=function(){var e=0;return this.visit((function(t){if(!t.length)do{++e}while(t=t.next)})),e},il.visit=function(e){var t,n,i,r,o,s,a=[],l=this._root;for(l&&a.push(new Ja(l,this._x0,this._y0,this._x1,this._y1));t=a.pop();)if(!e(l=t.node,i=t.x0,r=t.y0,o=t.x1,s=t.y1)&&l.length){var c=(i+o)/2,d=(r+s)/2;(n=l[3])&&a.push(new Ja(n,c,d,o,s)),(n=l[2])&&a.push(new Ja(n,i,d,c,s)),(n=l[1])&&a.push(new Ja(n,c,r,o,d)),(n=l[0])&&a.push(new Ja(n,i,r,c,d))}return this},il.visitAfter=function(e){var t,n=[],i=[];for(this._root&&n.push(new Ja(this._root,this._x0,this._y0,this._x1,this._y1));t=n.pop();){var r=t.node;if(r.length){var o,s=t.x0,a=t.y0,l=t.x1,c=t.y1,d=(s+l)/2,u=(a+c)/2;(o=r[0])&&n.push(new Ja(o,s,a,d,u)),(o=r[1])&&n.push(new Ja(o,d,a,l,u)),(o=r[2])&&n.push(new Ja(o,s,u,d,c)),(o=r[3])&&n.push(new Ja(o,d,u,l,c))}i.push(t)}for(;t=i.pop();)e(t.node,t.x0,t.y0,t.x1,t.y1);return this},il.x=function(e){return arguments.length?(this._x=e,this):this._x},il.y=function(e){return arguments.length?(this._y=e,this):this._y};var sl=function(e){var t,n,i=1,r=1;function o(){for(var e,o,a,l,c,d,u,h=t.length,f=0;f<r;++f)for(o=el(t,rl,ol).visitAfter(s),e=0;e<h;++e)a=t[e],d=n[a.index],u=d*d,l=a.x+a.vx,c=a.y+a.vy,o.visit(g);function g(e,t,n,r,o){var s=e.data,h=e.r,f=d+h;if(!s)return t>l+f||r<l-f||n>c+f||o<c-f;if(s.index>a.index){var g=l-s.x-s.vx,p=c-s.y-s.vy,m=g*g+p*p;m<f*f&&(0===g&&(m+=(g=Ga())*g),0===p&&(m+=(p=Ga())*p),m=(f-(m=Math.sqrt(m)))/m*i,a.vx+=(g*=m)*(f=(h*=h)/(u+h)),a.vy+=(p*=m)*f,s.vx-=g*(f=1-f),s.vy-=p*f)}}}function s(e){if(e.data)return e.r=n[e.data.index];for(var t=e.r=0;t<4;++t)e[t]&&e[t].r>e.r&&(e.r=e[t].r)}function a(){if(t){var i,r,o=t.length;for(n=new Array(o),i=0;i<o;++i)r=t[i],n[r.index]=+e(r,i,t)}}return"function"!=typeof e&&(e=Ka(null==e?1:+e)),o.initialize=function(e){t=e,a()},o.iterations=function(e){return arguments.length?(r=+e,o):r},o.strength=function(e){return arguments.length?(i=+e,o):i},o.radius=function(t){return arguments.length?(e="function"==typeof t?t:Ka(+t),a(),o):e},o};function al(e){return e.index}function ll(e,t){var n=e.get(t);if(!n)throw new Error("missing: "+t);return n}var cl=function(e){var t,n,i,r,o,s=al,a=function(e){return 1/Math.min(r[e.source.index],r[e.target.index])},l=Ka(30),c=1;function d(i){for(var r=0,s=e.length;r<c;++r)for(var a,l,d,u,h,f,g,p=0;p<s;++p)l=(a=e[p]).source,u=(d=a.target).x+d.vx-l.x-l.vx||Ga(),h=d.y+d.vy-l.y-l.vy||Ga(),u*=f=((f=Math.sqrt(u*u+h*h))-n[p])/f*i*t[p],h*=f,d.vx-=u*(g=o[p]),d.vy-=h*g,l.vx+=u*(g=1-g),l.vy+=h*g}function u(){if(i){var a,l,c=i.length,d=e.length,u=oo(i,s);for(a=0,r=new Array(c);a<d;++a)(l=e[a]).index=a,"object"!=typeof l.source&&(l.source=ll(u,l.source)),"object"!=typeof l.target&&(l.target=ll(u,l.target)),r[l.source.index]=(r[l.source.index]||0)+1,r[l.target.index]=(r[l.target.index]||0)+1;for(a=0,o=new Array(d);a<d;++a)l=e[a],o[a]=r[l.source.index]/(r[l.source.index]+r[l.target.index]);t=new Array(d),h(),n=new Array(d),f()}}function h(){if(i)for(var n=0,r=e.length;n<r;++n)t[n]=+a(e[n],n,e)}function f(){if(i)for(var t=0,r=e.length;t<r;++t)n[t]=+l(e[t],t,e)}return null==e&&(e=[]),d.initialize=function(e){i=e,u()},d.links=function(t){return arguments.length?(e=t,u(),d):e},d.id=function(e){return arguments.length?(s=e,d):s},d.iterations=function(e){return arguments.length?(c=+e,d):c},d.strength=function(e){return arguments.length?(a="function"==typeof e?e:Ka(+e),h(),d):a},d.distance=function(e){return arguments.length?(l="function"==typeof e?e:Ka(+e),f(),d):l},d};function dl(e){return e.x}function ul(e){return e.y}var hl=10,fl=Math.PI*(3-Math.sqrt(5)),gl=function(e){var t,n=1,i=.001,r=1-Math.pow(i,1/300),o=0,s=.6,a=oo(),l=Jn(d),c=pe("tick","end");function d(){u(),c.call("tick",t),n<i&&(l.stop(),c.call("end",t))}function u(i){var l,c,d=e.length;void 0===i&&(i=1);for(var u=0;u<i;++u)for(n+=(o-n)*r,a.each((function(e){e(n)})),l=0;l<d;++l)null==(c=e[l]).fx?c.x+=c.vx*=s:(c.x=c.fx,c.vx=0),null==c.fy?c.y+=c.vy*=s:(c.y=c.fy,c.vy=0);return t}function h(){for(var t,n=0,i=e.length;n<i;++n){if((t=e[n]).index=n,null!=t.fx&&(t.x=t.fx),null!=t.fy&&(t.y=t.fy),isNaN(t.x)||isNaN(t.y)){var r=hl*Math.sqrt(n),o=n*fl;t.x=r*Math.cos(o),t.y=r*Math.sin(o)}(isNaN(t.vx)||isNaN(t.vy))&&(t.vx=t.vy=0)}}function f(t){return t.initialize&&t.initialize(e),t}return null==e&&(e=[]),h(),t={tick:u,restart:function(){return l.restart(d),t},stop:function(){return l.stop(),t},nodes:function(n){return arguments.length?(e=n,h(),a.each(f),t):e},alpha:function(e){return arguments.length?(n=+e,t):n},alphaMin:function(e){return arguments.length?(i=+e,t):i},alphaDecay:function(e){return arguments.length?(r=+e,t):+r},alphaTarget:function(e){return arguments.length?(o=+e,t):o},velocityDecay:function(e){return arguments.length?(s=1-e,t):1-s},force:function(e,n){return arguments.length>1?(null==n?a.remove(e):a.set(e,f(n)),t):a.get(e)},find:function(t,n,i){var r,o,s,a,l,c=0,d=e.length;for(null==i?i=1/0:i*=i,c=0;c<d;++c)(s=(r=t-(a=e[c]).x)*r+(o=n-a.y)*o)<i&&(l=a,i=s);return l},on:function(e,n){return arguments.length>1?(c.on(e,n),t):c.on(e)}}},pl=function(){var e,t,n,i,r=Ka(-30),o=1,s=1/0,a=.81;function l(i){var r,o=e.length,s=el(e,dl,ul).visitAfter(d);for(n=i,r=0;r<o;++r)t=e[r],s.visit(u)}function c(){if(e){var t,n,o=e.length;for(i=new Array(o),t=0;t<o;++t)n=e[t],i[n.index]=+r(n,t,e)}}function d(e){var t,n,r,o,s,a=0,l=0;if(e.length){for(r=o=s=0;s<4;++s)(t=e[s])&&(n=Math.abs(t.value))&&(a+=t.value,l+=n,r+=n*t.x,o+=n*t.y);e.x=r/l,e.y=o/l}else{(t=e).x=t.data.x,t.y=t.data.y;do{a+=i[t.data.index]}while(t=t.next)}e.value=a}function u(e,r,l,c){if(!e.value)return!0;var d=e.x-t.x,u=e.y-t.y,h=c-r,f=d*d+u*u;if(h*h/a<f)return f<s&&(0===d&&(f+=(d=Ga())*d),0===u&&(f+=(u=Ga())*u),f<o&&(f=Math.sqrt(o*f)),t.vx+=d*e.value*n/f,t.vy+=u*e.value*n/f),!0;if(!(e.length||f>=s)){(e.data!==t||e.next)&&(0===d&&(f+=(d=Ga())*d),0===u&&(f+=(u=Ga())*u),f<o&&(f=Math.sqrt(o*f)));do{e.data!==t&&(h=i[e.data.index]*n/f,t.vx+=d*h,t.vy+=u*h)}while(e=e.next)}}return l.initialize=function(t){e=t,c()},l.strength=function(e){return arguments.length?(r="function"==typeof e?e:Ka(+e),c(),l):r},l.distanceMin=function(e){return arguments.length?(o=e*e,l):Math.sqrt(o)},l.distanceMax=function(e){return arguments.length?(s=e*e,l):Math.sqrt(s)},l.theta=function(e){return arguments.length?(a=e*e,l):Math.sqrt(a)},l},ml=function(e,t,n){var i,r,o,s=Ka(.1);function a(e){for(var s=0,a=i.length;s<a;++s){var l=i[s],c=l.x-t||1e-6,d=l.y-n||1e-6,u=Math.sqrt(c*c+d*d),h=(o[s]-u)*r[s]*e/u;l.vx+=c*h,l.vy+=d*h}}function l(){if(i){var t,n=i.length;for(r=new Array(n),o=new Array(n),t=0;t<n;++t)o[t]=+e(i[t],t,i),r[t]=isNaN(o[t])?0:+s(i[t],t,i)}}return"function"!=typeof e&&(e=Ka(+e)),null==t&&(t=0),null==n&&(n=0),a.initialize=function(e){i=e,l()},a.strength=function(e){return arguments.length?(s="function"==typeof e?e:Ka(+e),l(),a):s},a.radius=function(t){return arguments.length?(e="function"==typeof t?t:Ka(+t),l(),a):e},a.x=function(e){return arguments.length?(t=+e,a):t},a.y=function(e){return arguments.length?(n=+e,a):n},a},_l=function(e){var t,n,i,r=Ka(.1);function o(e){for(var r,o=0,s=t.length;o<s;++o)(r=t[o]).vx+=(i[o]-r.x)*n[o]*e}function s(){if(t){var o,s=t.length;for(n=new Array(s),i=new Array(s),o=0;o<s;++o)n[o]=isNaN(i[o]=+e(t[o],o,t))?0:+r(t[o],o,t)}}return"function"!=typeof e&&(e=Ka(null==e?0:+e)),o.initialize=function(e){t=e,s()},o.strength=function(e){return arguments.length?(r="function"==typeof e?e:Ka(+e),s(),o):r},o.x=function(t){return arguments.length?(e="function"==typeof t?t:Ka(+t),s(),o):e},o},bl=function(e){var t,n,i,r=Ka(.1);function o(e){for(var r,o=0,s=t.length;o<s;++o)(r=t[o]).vy+=(i[o]-r.y)*n[o]*e}function s(){if(t){var o,s=t.length;for(n=new Array(s),i=new Array(s),o=0;o<s;++o)n[o]=isNaN(i[o]=+e(t[o],o,t))?0:+r(t[o],o,t)}}return"function"!=typeof e&&(e=Ka(null==e?0:+e)),o.initialize=function(e){t=e,s()},o.strength=function(e){return arguments.length?(r="function"==typeof e?e:Ka(+e),s(),o):r},o.y=function(t){return arguments.length?(e="function"==typeof t?t:Ka(+t),s(),o):e},o},vl=function(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,i=e.slice(0,n);return[i.length>1?i[0]+i.slice(2):i,+e.slice(n+1)]},yl=function(e){return(e=vl(Math.abs(e)))?e[1]:NaN},wl=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Cl(e){if(!(t=wl.exec(e)))throw new Error("invalid format: "+e);var t;return new Sl({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function Sl(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}Cl.prototype=Sl.prototype,Sl.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var kl,xl,Ll,Ml,Dl=function(e){e:for(var t,n=e.length,i=1,r=-1;i<n;++i)switch(e[i]){case".":r=t=i;break;case"0":0===r&&(r=i),t=i;break;default:if(r>0){if(!+e[i])break e;r=0}}return r>0?e.slice(0,r)+e.slice(t+1):e},El=function(e,t){var n=vl(e,t);if(!n)return e+"";var i=n[0],r=n[1];return r<0?"0."+new Array(-r).join("0")+i:i.length>r+1?i.slice(0,r+1)+"."+i.slice(r+1):i+new Array(r-i.length+2).join("0")},Tl={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return El(100*e,t)},r:El,s:function(e,t){var n=vl(e,t);if(!n)return e+"";var i=n[0],r=n[1],o=r-(kl=3*Math.max(-8,Math.min(8,Math.floor(r/3))))+1,s=i.length;return o===s?i:o>s?i+new Array(o-s+1).join("0"):o>0?i.slice(0,o)+"."+i.slice(o):"0."+new Array(1-o).join("0")+vl(e,Math.max(0,t+o-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}},Ol=function(e){return e},Nl=Array.prototype.map,Il=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],Al=function(e){var t,n,i=void 0===e.grouping||void 0===e.thousands?Ol:(t=Nl.call(e.grouping,Number),n=e.thousands+"",function(e,i){for(var r=e.length,o=[],s=0,a=t[0],l=0;r>0&&a>0&&(l+a+1>i&&(a=Math.max(1,i-l)),o.push(e.substring(r-=a,r+a)),!((l+=a+1)>i));)a=t[s=(s+1)%t.length];return o.reverse().join(n)}),r=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",s=void 0===e.decimal?".":e.decimal+"",a=void 0===e.numerals?Ol:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(Nl.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"-":e.minus+"",d=void 0===e.nan?"NaN":e.nan+"";function u(e){var t=(e=Cl(e)).fill,n=e.align,u=e.sign,h=e.symbol,f=e.zero,g=e.width,p=e.comma,m=e.precision,_=e.trim,b=e.type;"n"===b?(p=!0,b="g"):Tl[b]||(void 0===m&&(m=12),_=!0,b="g"),(f||"0"===t&&"="===n)&&(f=!0,t="0",n="=");var v="$"===h?r:"#"===h&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",y="$"===h?o:/[%p]/.test(b)?l:"",w=Tl[b],C=/[defgprs%]/.test(b);function S(e){var r,o,l,h=v,S=y;if("c"===b)S=w(e)+S,e="";else{var k=(e=+e)<0;if(e=isNaN(e)?d:w(Math.abs(e),m),_&&(e=Dl(e)),k&&0==+e&&(k=!1),h=(k?"("===u?u:c:"-"===u||"("===u?"":u)+h,S=("s"===b?Il[8+kl/3]:"")+S+(k&&"("===u?")":""),C)for(r=-1,o=e.length;++r<o;)if(48>(l=e.charCodeAt(r))||l>57){S=(46===l?s+e.slice(r+1):e.slice(r))+S,e=e.slice(0,r);break}}p&&!f&&(e=i(e,1/0));var x=h.length+e.length+S.length,L=x<g?new Array(g-x+1).join(t):"";switch(p&&f&&(e=i(L+e,L.length?g-S.length:1/0),L=""),n){case"<":e=h+e+S+L;break;case"=":e=h+L+e+S;break;case"^":e=L.slice(0,x=L.length>>1)+h+e+S+L.slice(x);break;default:e=L+h+e+S}return a(e)}return m=void 0===m?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),S.toString=function(){return e+""},S}return{format:u,formatPrefix:function(e,t){var n=u(((e=Cl(e)).type="f",e)),i=3*Math.max(-8,Math.min(8,Math.floor(yl(t)/3))),r=Math.pow(10,-i),o=Il[8+i/3];return function(e){return n(r*e)+o}}}};function Rl(e){return xl=Al(e),Ll=xl.format,Ml=xl.formatPrefix,xl}Rl({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});var Pl=function(e){return Math.max(0,-yl(Math.abs(e)))},jl=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(yl(t)/3)))-yl(Math.abs(e)))},Fl=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,yl(t)-yl(e))+1},Bl=function(){return new Wl};function Wl(){this.reset()}Wl.prototype={constructor:Wl,reset:function(){this.s=this.t=0},add:function(e){Yl(Hl,e,this.t),Yl(this,Hl.s,this.s),this.s?this.t+=Hl.t:this.s=Hl.t},valueOf:function(){return this.s}};var Hl=new Wl;function Yl(e,t,n){var i=e.s=t+n,r=i-t,o=i-r;e.t=t-o+(n-r)}var Vl=1e-6,zl=1e-12,Ul=Math.PI,$l=Ul/2,ql=Ul/4,Kl=2*Ul,Gl=180/Ul,Zl=Ul/180,Jl=Math.abs,Xl=Math.atan,Ql=Math.atan2,ec=Math.cos,tc=Math.ceil,nc=Math.exp,ic=(Math.floor,Math.log),rc=Math.pow,oc=Math.sin,sc=Math.sign||function(e){return e>0?1:e<0?-1:0},ac=Math.sqrt,lc=Math.tan;function cc(e){return e>1?0:e<-1?Ul:Math.acos(e)}function dc(e){return e>1?$l:e<-1?-$l:Math.asin(e)}function uc(e){return(e=oc(e/2))*e}function hc(){}function fc(e,t){e&&pc.hasOwnProperty(e.type)&&pc[e.type](e,t)}var gc={Feature:function(e,t){fc(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,i=-1,r=n.length;++i<r;)fc(n[i].geometry,t)}},pc={Sphere:function(e,t){t.sphere()},Point:function(e,t){e=e.coordinates,t.point(e[0],e[1],e[2])},MultiPoint:function(e,t){for(var n=e.coordinates,i=-1,r=n.length;++i<r;)e=n[i],t.point(e[0],e[1],e[2])},LineString:function(e,t){mc(e.coordinates,t,0)},MultiLineString:function(e,t){for(var n=e.coordinates,i=-1,r=n.length;++i<r;)mc(n[i],t,0)},Polygon:function(e,t){_c(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,i=-1,r=n.length;++i<r;)_c(n[i],t)},GeometryCollection:function(e,t){for(var n=e.geometries,i=-1,r=n.length;++i<r;)fc(n[i],t)}};function mc(e,t,n){var i,r=-1,o=e.length-n;for(t.lineStart();++r<o;)i=e[r],t.point(i[0],i[1],i[2]);t.lineEnd()}function _c(e,t){var n=-1,i=e.length;for(t.polygonStart();++n<i;)mc(e[n],t,1);t.polygonEnd()}var bc,vc,yc,wc,Cc,Sc=function(e,t){e&&gc.hasOwnProperty(e.type)?gc[e.type](e,t):fc(e,t)},kc=Bl(),xc=Bl(),Lc={point:hc,lineStart:hc,lineEnd:hc,polygonStart:function(){kc.reset(),Lc.lineStart=Mc,Lc.lineEnd=Dc},polygonEnd:function(){var e=+kc;xc.add(e<0?Kl+e:e),this.lineStart=this.lineEnd=this.point=hc},sphere:function(){xc.add(Kl)}};function Mc(){Lc.point=Ec}function Dc(){Tc(bc,vc)}function Ec(e,t){Lc.point=Tc,bc=e,vc=t,yc=e*=Zl,wc=ec(t=(t*=Zl)/2+ql),Cc=oc(t)}function Tc(e,t){var n=(e*=Zl)-yc,i=n>=0?1:-1,r=i*n,o=ec(t=(t*=Zl)/2+ql),s=oc(t),a=Cc*s,l=wc*o+a*ec(r),c=a*i*oc(r);kc.add(Ql(c,l)),yc=e,wc=o,Cc=s}var Oc=function(e){return xc.reset(),Sc(e,Lc),2*xc};function Nc(e){return[Ql(e[1],e[0]),dc(e[2])]}function Ic(e){var t=e[0],n=e[1],i=ec(n);return[i*ec(t),i*oc(t),oc(n)]}function Ac(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function Rc(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function Pc(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function jc(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function Fc(e){var t=ac(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}var Bc,Wc,Hc,Yc,Vc,zc,Uc,$c,qc,Kc,Gc=Bl(),Zc={point:Jc,lineStart:Qc,lineEnd:ed,polygonStart:function(){Zc.point=td,Zc.lineStart=nd,Zc.lineEnd=id,Gc.reset(),Lc.polygonStart()},polygonEnd:function(){Lc.polygonEnd(),Zc.point=Jc,Zc.lineStart=Qc,Zc.lineEnd=ed,kc<0?(Bc=-(Hc=180),Wc=-(Yc=90)):Gc>Vl?Yc=90:Gc<-Vl&&(Wc=-90),Kc[0]=Bc,Kc[1]=Hc},sphere:function(){Bc=-(Hc=180),Wc=-(Yc=90)}};function Jc(e,t){qc.push(Kc=[Bc=e,Hc=e]),t<Wc&&(Wc=t),t>Yc&&(Yc=t)}function Xc(e,t){var n=Ic([e*Zl,t*Zl]);if($c){var i=Rc($c,n),r=Rc([i[1],-i[0],0],i);Fc(r),r=Nc(r);var o,s=e-Vc,a=s>0?1:-1,l=r[0]*Gl*a,c=Jl(s)>180;c^(a*Vc<l&&l<a*e)?(o=r[1]*Gl)>Yc&&(Yc=o):c^(a*Vc<(l=(l+360)%360-180)&&l<a*e)?(o=-r[1]*Gl)<Wc&&(Wc=o):(t<Wc&&(Wc=t),t>Yc&&(Yc=t)),c?e<Vc?rd(Bc,e)>rd(Bc,Hc)&&(Hc=e):rd(e,Hc)>rd(Bc,Hc)&&(Bc=e):Hc>=Bc?(e<Bc&&(Bc=e),e>Hc&&(Hc=e)):e>Vc?rd(Bc,e)>rd(Bc,Hc)&&(Hc=e):rd(e,Hc)>rd(Bc,Hc)&&(Bc=e)}else qc.push(Kc=[Bc=e,Hc=e]);t<Wc&&(Wc=t),t>Yc&&(Yc=t),$c=n,Vc=e}function Qc(){Zc.point=Xc}function ed(){Kc[0]=Bc,Kc[1]=Hc,Zc.point=Jc,$c=null}function td(e,t){if($c){var n=e-Vc;Gc.add(Jl(n)>180?n+(n>0?360:-360):n)}else zc=e,Uc=t;Lc.point(e,t),Xc(e,t)}function nd(){Lc.lineStart()}function id(){td(zc,Uc),Lc.lineEnd(),Jl(Gc)>Vl&&(Bc=-(Hc=180)),Kc[0]=Bc,Kc[1]=Hc,$c=null}function rd(e,t){return(t-=e)<0?t+360:t}function od(e,t){return e[0]-t[0]}function sd(e,t){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:t<e[0]||e[1]<t}var ad,ld,cd,dd,ud,hd,fd,gd,pd,md,_d,bd,vd,yd,wd,Cd,Sd=function(e){var t,n,i,r,o,s,a;if(Yc=Hc=-(Bc=Wc=1/0),qc=[],Sc(e,Zc),n=qc.length){for(qc.sort(od),t=1,o=[i=qc[0]];t<n;++t)sd(i,(r=qc[t])[0])||sd(i,r[1])?(rd(i[0],r[1])>rd(i[0],i[1])&&(i[1]=r[1]),rd(r[0],i[1])>rd(i[0],i[1])&&(i[0]=r[0])):o.push(i=r);for(s=-1/0,t=0,i=o[n=o.length-1];t<=n;i=r,++t)r=o[t],(a=rd(i[1],r[0]))>s&&(s=a,Bc=r[0],Hc=i[1])}return qc=Kc=null,Bc===1/0||Wc===1/0?[[NaN,NaN],[NaN,NaN]]:[[Bc,Wc],[Hc,Yc]]},kd={sphere:hc,point:xd,lineStart:Md,lineEnd:Td,polygonStart:function(){kd.lineStart=Od,kd.lineEnd=Nd},polygonEnd:function(){kd.lineStart=Md,kd.lineEnd=Td}};function xd(e,t){e*=Zl;var n=ec(t*=Zl);Ld(n*ec(e),n*oc(e),oc(t))}function Ld(e,t,n){++ad,cd+=(e-cd)/ad,dd+=(t-dd)/ad,ud+=(n-ud)/ad}function Md(){kd.point=Dd}function Dd(e,t){e*=Zl;var n=ec(t*=Zl);yd=n*ec(e),wd=n*oc(e),Cd=oc(t),kd.point=Ed,Ld(yd,wd,Cd)}function Ed(e,t){e*=Zl;var n=ec(t*=Zl),i=n*ec(e),r=n*oc(e),o=oc(t),s=Ql(ac((s=wd*o-Cd*r)*s+(s=Cd*i-yd*o)*s+(s=yd*r-wd*i)*s),yd*i+wd*r+Cd*o);ld+=s,hd+=s*(yd+(yd=i)),fd+=s*(wd+(wd=r)),gd+=s*(Cd+(Cd=o)),Ld(yd,wd,Cd)}function Td(){kd.point=xd}function Od(){kd.point=Id}function Nd(){Ad(bd,vd),kd.point=xd}function Id(e,t){bd=e,vd=t,e*=Zl,t*=Zl,kd.point=Ad;var n=ec(t);yd=n*ec(e),wd=n*oc(e),Cd=oc(t),Ld(yd,wd,Cd)}function Ad(e,t){e*=Zl;var n=ec(t*=Zl),i=n*ec(e),r=n*oc(e),o=oc(t),s=wd*o-Cd*r,a=Cd*i-yd*o,l=yd*r-wd*i,c=ac(s*s+a*a+l*l),d=dc(c),u=c&&-d/c;pd+=u*s,md+=u*a,_d+=u*l,ld+=d,hd+=d*(yd+(yd=i)),fd+=d*(wd+(wd=r)),gd+=d*(Cd+(Cd=o)),Ld(yd,wd,Cd)}var Rd=function(e){ad=ld=cd=dd=ud=hd=fd=gd=pd=md=_d=0,Sc(e,kd);var t=pd,n=md,i=_d,r=t*t+n*n+i*i;return r<zl&&(t=hd,n=fd,i=gd,ld<Vl&&(t=cd,n=dd,i=ud),(r=t*t+n*n+i*i)<zl)?[NaN,NaN]:[Ql(n,t)*Gl,dc(i/ac(r))*Gl]},Pd=function(e){return function(){return e}},jd=function(e,t){function n(n,i){return n=e(n,i),t(n[0],n[1])}return e.invert&&t.invert&&(n.invert=function(n,i){return(n=t.invert(n,i))&&e.invert(n[0],n[1])}),n};function Fd(e,t){return[Jl(e)>Ul?e+Math.round(-e/Kl)*Kl:e,t]}function Bd(e,t,n){return(e%=Kl)?t||n?jd(Hd(e),Yd(t,n)):Hd(e):t||n?Yd(t,n):Fd}function Wd(e){return function(t,n){return[(t+=e)>Ul?t-Kl:t<-Ul?t+Kl:t,n]}}function Hd(e){var t=Wd(e);return t.invert=Wd(-e),t}function Yd(e,t){var n=ec(e),i=oc(e),r=ec(t),o=oc(t);function s(e,t){var s=ec(t),a=ec(e)*s,l=oc(e)*s,c=oc(t),d=c*n+a*i;return[Ql(l*r-d*o,a*n-c*i),dc(d*r+l*o)]}return s.invert=function(e,t){var s=ec(t),a=ec(e)*s,l=oc(e)*s,c=oc(t),d=c*r-l*o;return[Ql(l*r+c*o,a*n+d*i),dc(d*n-a*i)]},s}Fd.invert=Fd;var Vd=function(e){function t(t){return(t=e(t[0]*Zl,t[1]*Zl))[0]*=Gl,t[1]*=Gl,t}return e=Bd(e[0]*Zl,e[1]*Zl,e.length>2?e[2]*Zl:0),t.invert=function(t){return(t=e.invert(t[0]*Zl,t[1]*Zl))[0]*=Gl,t[1]*=Gl,t},t};function zd(e,t,n,i,r,o){if(n){var s=ec(t),a=oc(t),l=i*n;null==r?(r=t+i*Kl,o=t-l/2):(r=Ud(s,r),o=Ud(s,o),(i>0?r<o:r>o)&&(r+=i*Kl));for(var c,d=r;i>0?d>o:d<o;d-=l)c=Nc([s,-a*ec(d),-a*oc(d)]),e.point(c[0],c[1])}}function Ud(e,t){(t=Ic(t))[0]-=e,Fc(t);var n=cc(-t[1]);return((-t[2]<0?-n:n)+Kl-Vl)%Kl}var $d=function(){var e,t,n=Pd([0,0]),i=Pd(90),r=Pd(6),o={point:function(n,i){e.push(n=t(n,i)),n[0]*=Gl,n[1]*=Gl}};function s(){var s=n.apply(this,arguments),a=i.apply(this,arguments)*Zl,l=r.apply(this,arguments)*Zl;return e=[],t=Bd(-s[0]*Zl,-s[1]*Zl,0).invert,zd(o,a,l,1),s={type:"Polygon",coordinates:[e]},e=t=null,s}return s.center=function(e){return arguments.length?(n="function"==typeof e?e:Pd([+e[0],+e[1]]),s):n},s.radius=function(e){return arguments.length?(i="function"==typeof e?e:Pd(+e),s):i},s.precision=function(e){return arguments.length?(r="function"==typeof e?e:Pd(+e),s):r},s},qd=function(){var e,t=[];return{point:function(t,n){e.push([t,n])},lineStart:function(){t.push(e=[])},lineEnd:hc,rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))},result:function(){var n=t;return t=[],e=null,n}}},Kd=function(e,t){return Jl(e[0]-t[0])<Vl&&Jl(e[1]-t[1])<Vl};function Gd(e,t,n,i){this.x=e,this.z=t,this.o=n,this.e=i,this.v=!1,this.n=this.p=null}var Zd=function(e,t,n,i,r){var o,s,a=[],l=[];if(e.forEach((function(e){if(!((t=e.length-1)<=0)){var t,n,i=e[0],s=e[t];if(Kd(i,s)){for(r.lineStart(),o=0;o<t;++o)r.point((i=e[o])[0],i[1]);r.lineEnd()}else a.push(n=new Gd(i,e,null,!0)),l.push(n.o=new Gd(i,null,n,!1)),a.push(n=new Gd(s,e,null,!1)),l.push(n.o=new Gd(s,null,n,!0))}})),a.length){for(l.sort(t),Jd(a),Jd(l),o=0,s=l.length;o<s;++o)l[o].e=n=!n;for(var c,d,u=a[0];;){for(var h=u,f=!0;h.v;)if((h=h.n)===u)return;c=h.z,r.lineStart();do{if(h.v=h.o.v=!0,h.e){if(f)for(o=0,s=c.length;o<s;++o)r.point((d=c[o])[0],d[1]);else i(h.x,h.n.x,1,r);h=h.n}else{if(f)for(c=h.p.z,o=c.length-1;o>=0;--o)r.point((d=c[o])[0],d[1]);else i(h.x,h.p.x,-1,r);h=h.p}c=(h=h.o).z,f=!f}while(!h.v);r.lineEnd()}}};function Jd(e){if(t=e.length){for(var t,n,i=0,r=e[0];++i<t;)r.n=n=e[i],n.p=r,r=n;r.n=n=e[0],n.p=r}}var Xd=Bl();function Qd(e){return Jl(e[0])<=Ul?e[0]:sc(e[0])*((Jl(e[0])+Ul)%Kl-Ul)}var eu=function(e,t){var n=Qd(t),i=t[1],r=oc(i),o=[oc(n),-ec(n),0],s=0,a=0;Xd.reset(),1===r?i=$l+Vl:-1===r&&(i=-$l-Vl);for(var l=0,c=e.length;l<c;++l)if(u=(d=e[l]).length)for(var d,u,h=d[u-1],f=Qd(h),g=h[1]/2+ql,p=oc(g),m=ec(g),_=0;_<u;++_,f=v,p=w,m=C,h=b){var b=d[_],v=Qd(b),y=b[1]/2+ql,w=oc(y),C=ec(y),S=v-f,k=S>=0?1:-1,x=k*S,L=x>Ul,M=p*w;if(Xd.add(Ql(M*k*oc(x),m*C+M*ec(x))),s+=L?S+k*Kl:S,L^f>=n^v>=n){var D=Rc(Ic(h),Ic(b));Fc(D);var E=Rc(o,D);Fc(E);var T=(L^S>=0?-1:1)*dc(E[2]);(i>T||i===T&&(D[0]||D[1]))&&(a+=L^S>=0?1:-1)}}return(s<-Vl||s<Vl&&Xd<-Vl)^1&a},tu=function(e,t,n,i){return function(r){var o,s,a,l=t(r),c=qd(),d=t(c),u=!1,h={point:f,lineStart:p,lineEnd:m,polygonStart:function(){h.point=_,h.lineStart=b,h.lineEnd=v,s=[],o=[]},polygonEnd:function(){h.point=f,h.lineStart=p,h.lineEnd=m,s=j(s);var e=eu(o,i);s.length?(u||(r.polygonStart(),u=!0),Zd(s,iu,e,n,r)):e&&(u||(r.polygonStart(),u=!0),r.lineStart(),n(null,null,1,r),r.lineEnd()),u&&(r.polygonEnd(),u=!1),s=o=null},sphere:function(){r.polygonStart(),r.lineStart(),n(null,null,1,r),r.lineEnd(),r.polygonEnd()}};function f(t,n){e(t,n)&&r.point(t,n)}function g(e,t){l.point(e,t)}function p(){h.point=g,l.lineStart()}function m(){h.point=f,l.lineEnd()}function _(e,t){a.push([e,t]),d.point(e,t)}function b(){d.lineStart(),a=[]}function v(){_(a[0][0],a[0][1]),d.lineEnd();var e,t,n,i,l=d.clean(),h=c.result(),f=h.length;if(a.pop(),o.push(a),a=null,f)if(1&l){if((t=(n=h[0]).length-1)>0){for(u||(r.polygonStart(),u=!0),r.lineStart(),e=0;e<t;++e)r.point((i=n[e])[0],i[1]);r.lineEnd()}}else f>1&&2&l&&h.push(h.pop().concat(h.shift())),s.push(h.filter(nu))}return h}};function nu(e){return e.length>1}function iu(e,t){return((e=e.x)[0]<0?e[1]-$l-Vl:$l-e[1])-((t=t.x)[0]<0?t[1]-$l-Vl:$l-t[1])}var ru=tu((function(){return!0}),(function(e){var t,n=NaN,i=NaN,r=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(o,s){var a=o>0?Ul:-Ul,l=Jl(o-n);Jl(l-Ul)<Vl?(e.point(n,i=(i+s)/2>0?$l:-$l),e.point(r,i),e.lineEnd(),e.lineStart(),e.point(a,i),e.point(o,i),t=0):r!==a&&l>=Ul&&(Jl(n-r)<Vl&&(n-=r*Vl),Jl(o-a)<Vl&&(o-=a*Vl),i=function(e,t,n,i){var r,o,s=oc(e-n);return Jl(s)>Vl?Xl((oc(t)*(o=ec(i))*oc(n)-oc(i)*(r=ec(t))*oc(e))/(r*o*s)):(t+i)/2}(n,i,o,s),e.point(r,i),e.lineEnd(),e.lineStart(),e.point(a,i),t=0),e.point(n=o,i=s),r=a},lineEnd:function(){e.lineEnd(),n=i=NaN},clean:function(){return 2-t}}}),(function(e,t,n,i){var r;if(null==e)r=n*$l,i.point(-Ul,r),i.point(0,r),i.point(Ul,r),i.point(Ul,0),i.point(Ul,-r),i.point(0,-r),i.point(-Ul,-r),i.point(-Ul,0),i.point(-Ul,r);else if(Jl(e[0]-t[0])>Vl){var o=e[0]<t[0]?Ul:-Ul;r=n*o/2,i.point(-o,r),i.point(0,r),i.point(o,r)}else i.point(t[0],t[1])}),[-Ul,-$l]);var ou=function(e){var t=ec(e),n=6*Zl,i=t>0,r=Jl(t)>Vl;function o(e,n){return ec(e)*ec(n)>t}function s(e,n,i){var r=[1,0,0],o=Rc(Ic(e),Ic(n)),s=Ac(o,o),a=o[0],l=s-a*a;if(!l)return!i&&e;var c=t*s/l,d=-t*a/l,u=Rc(r,o),h=jc(r,c);Pc(h,jc(o,d));var f=u,g=Ac(h,f),p=Ac(f,f),m=g*g-p*(Ac(h,h)-1);if(!(m<0)){var _=ac(m),b=jc(f,(-g-_)/p);if(Pc(b,h),b=Nc(b),!i)return b;var v,y=e[0],w=n[0],C=e[1],S=n[1];w<y&&(v=y,y=w,w=v);var k=w-y,x=Jl(k-Ul)<Vl;if(!x&&S<C&&(v=C,C=S,S=v),x||k<Vl?x?C+S>0^b[1]<(Jl(b[0]-y)<Vl?C:S):C<=b[1]&&b[1]<=S:k>Ul^(y<=b[0]&&b[0]<=w)){var L=jc(f,(-g+_)/p);return Pc(L,h),[b,Nc(L)]}}}function a(t,n){var r=i?e:Ul-e,o=0;return t<-r?o|=1:t>r&&(o|=2),n<-r?o|=4:n>r&&(o|=8),o}return tu(o,(function(e){var t,n,l,c,d;return{lineStart:function(){c=l=!1,d=1},point:function(u,h){var f,g=[u,h],p=o(u,h),m=i?p?0:a(u,h):p?a(u+(u<0?Ul:-Ul),h):0;if(!t&&(c=l=p)&&e.lineStart(),p!==l&&(!(f=s(t,g))||Kd(t,f)||Kd(g,f))&&(g[0]+=Vl,g[1]+=Vl,p=o(g[0],g[1])),p!==l)d=0,p?(e.lineStart(),f=s(g,t),e.point(f[0],f[1])):(f=s(t,g),e.point(f[0],f[1]),e.lineEnd()),t=f;else if(r&&t&&i^p){var _;m&n||!(_=s(g,t,!0))||(d=0,i?(e.lineStart(),e.point(_[0][0],_[0][1]),e.point(_[1][0],_[1][1]),e.lineEnd()):(e.point(_[1][0],_[1][1]),e.lineEnd(),e.lineStart(),e.point(_[0][0],_[0][1])))}!p||t&&Kd(t,g)||e.point(g[0],g[1]),t=g,l=p,n=m},lineEnd:function(){l&&e.lineEnd(),t=null},clean:function(){return d|(c&&l)<<1}}}),(function(t,i,r,o){zd(o,e,n,r,t,i)}),i?[0,-e]:[-Ul,e-Ul])},su=function(e,t,n,i,r,o){var s,a=e[0],l=e[1],c=0,d=1,u=t[0]-a,h=t[1]-l;if(s=n-a,u||!(s>0)){if(s/=u,u<0){if(s<c)return;s<d&&(d=s)}else if(u>0){if(s>d)return;s>c&&(c=s)}if(s=r-a,u||!(s<0)){if(s/=u,u<0){if(s>d)return;s>c&&(c=s)}else if(u>0){if(s<c)return;s<d&&(d=s)}if(s=i-l,h||!(s>0)){if(s/=h,h<0){if(s<c)return;s<d&&(d=s)}else if(h>0){if(s>d)return;s>c&&(c=s)}if(s=o-l,h||!(s<0)){if(s/=h,h<0){if(s>d)return;s>c&&(c=s)}else if(h>0){if(s<c)return;s<d&&(d=s)}return c>0&&(e[0]=a+c*u,e[1]=l+c*h),d<1&&(t[0]=a+d*u,t[1]=l+d*h),!0}}}}},au=1e9,lu=-au;function cu(e,t,n,i){function r(r,o){return e<=r&&r<=n&&t<=o&&o<=i}function o(r,o,a,c){var d=0,u=0;if(null==r||(d=s(r,a))!==(u=s(o,a))||l(r,o)<0^a>0)do{c.point(0===d||3===d?e:n,d>1?i:t)}while((d=(d+a+4)%4)!==u);else c.point(o[0],o[1])}function s(i,r){return Jl(i[0]-e)<Vl?r>0?0:3:Jl(i[0]-n)<Vl?r>0?2:1:Jl(i[1]-t)<Vl?r>0?1:0:r>0?3:2}function a(e,t){return l(e.x,t.x)}function l(e,t){var n=s(e,1),i=s(t,1);return n!==i?n-i:0===n?t[1]-e[1]:1===n?e[0]-t[0]:2===n?e[1]-t[1]:t[0]-e[0]}return function(s){var l,c,d,u,h,f,g,p,m,_,b,v=s,y=qd(),w={point:C,lineStart:function(){w.point=S,c&&c.push(d=[]);_=!0,m=!1,g=p=NaN},lineEnd:function(){l&&(S(u,h),f&&m&&y.rejoin(),l.push(y.result()));w.point=C,m&&v.lineEnd()},polygonStart:function(){v=y,l=[],c=[],b=!0},polygonEnd:function(){var t=function(){for(var t=0,n=0,r=c.length;n<r;++n)for(var o,s,a=c[n],l=1,d=a.length,u=a[0],h=u[0],f=u[1];l<d;++l)o=h,s=f,u=a[l],h=u[0],f=u[1],s<=i?f>i&&(h-o)*(i-s)>(f-s)*(e-o)&&++t:f<=i&&(h-o)*(i-s)<(f-s)*(e-o)&&--t;return t}(),n=b&&t,r=(l=j(l)).length;(n||r)&&(s.polygonStart(),n&&(s.lineStart(),o(null,null,1,s),s.lineEnd()),r&&Zd(l,a,t,o,s),s.polygonEnd());v=s,l=c=d=null}};function C(e,t){r(e,t)&&v.point(e,t)}function S(o,s){var a=r(o,s);if(c&&d.push([o,s]),_)u=o,h=s,f=a,_=!1,a&&(v.lineStart(),v.point(o,s));else if(a&&m)v.point(o,s);else{var l=[g=Math.max(lu,Math.min(au,g)),p=Math.max(lu,Math.min(au,p))],y=[o=Math.max(lu,Math.min(au,o)),s=Math.max(lu,Math.min(au,s))];su(l,y,e,t,n,i)?(m||(v.lineStart(),v.point(l[0],l[1])),v.point(y[0],y[1]),a||v.lineEnd(),b=!1):a&&(v.lineStart(),v.point(o,s),b=!1)}g=o,p=s,m=a}return w}}var du,uu,hu,fu=function(){var e,t,n,i=0,r=0,o=960,s=500;return n={stream:function(n){return e&&t===n?e:e=cu(i,r,o,s)(t=n)},extent:function(a){return arguments.length?(i=+a[0][0],r=+a[0][1],o=+a[1][0],s=+a[1][1],e=t=null,n):[[i,r],[o,s]]}}},gu=Bl(),pu={sphere:hc,point:hc,lineStart:function(){pu.point=_u,pu.lineEnd=mu},lineEnd:hc,polygonStart:hc,polygonEnd:hc};function mu(){pu.point=pu.lineEnd=hc}function _u(e,t){du=e*=Zl,uu=oc(t*=Zl),hu=ec(t),pu.point=bu}function bu(e,t){e*=Zl;var n=oc(t*=Zl),i=ec(t),r=Jl(e-du),o=ec(r),s=i*oc(r),a=hu*n-uu*i*o,l=uu*n+hu*i*o;gu.add(Ql(ac(s*s+a*a),l)),du=e,uu=n,hu=i}var vu=function(e){return gu.reset(),Sc(e,pu),+gu},yu=[null,null],wu={type:"LineString",coordinates:yu},Cu=function(e,t){return yu[0]=e,yu[1]=t,vu(wu)},Su={Feature:function(e,t){return xu(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,i=-1,r=n.length;++i<r;)if(xu(n[i].geometry,t))return!0;return!1}},ku={Sphere:function(){return!0},Point:function(e,t){return Lu(e.coordinates,t)},MultiPoint:function(e,t){for(var n=e.coordinates,i=-1,r=n.length;++i<r;)if(Lu(n[i],t))return!0;return!1},LineString:function(e,t){return Mu(e.coordinates,t)},MultiLineString:function(e,t){for(var n=e.coordinates,i=-1,r=n.length;++i<r;)if(Mu(n[i],t))return!0;return!1},Polygon:function(e,t){return Du(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,i=-1,r=n.length;++i<r;)if(Du(n[i],t))return!0;return!1},GeometryCollection:function(e,t){for(var n=e.geometries,i=-1,r=n.length;++i<r;)if(xu(n[i],t))return!0;return!1}};function xu(e,t){return!(!e||!ku.hasOwnProperty(e.type))&&ku[e.type](e,t)}function Lu(e,t){return 0===Cu(e,t)}function Mu(e,t){for(var n,i,r,o=0,s=e.length;o<s;o++){if(0===(i=Cu(e[o],t)))return!0;if(o>0&&(r=Cu(e[o],e[o-1]))>0&&n<=r&&i<=r&&(n+i-r)*(1-Math.pow((n-i)/r,2))<zl*r)return!0;n=i}return!1}function Du(e,t){return!!eu(e.map(Eu),Tu(t))}function Eu(e){return(e=e.map(Tu)).pop(),e}function Tu(e){return[e[0]*Zl,e[1]*Zl]}var Ou=function(e,t){return(e&&Su.hasOwnProperty(e.type)?Su[e.type]:xu)(e,t)};function Nu(e,t,n){var i=C(e,t-Vl,n).concat(t);return function(e){return i.map((function(t){return[e,t]}))}}function Iu(e,t,n){var i=C(e,t-Vl,n).concat(t);return function(e){return i.map((function(t){return[t,e]}))}}function Au(){var e,t,n,i,r,o,s,a,l,c,d,u,h=10,f=h,g=90,p=360,m=2.5;function _(){return{type:"MultiLineString",coordinates:b()}}function b(){return C(tc(i/g)*g,n,g).map(d).concat(C(tc(a/p)*p,s,p).map(u)).concat(C(tc(t/h)*h,e,h).filter((function(e){return Jl(e%g)>Vl})).map(l)).concat(C(tc(o/f)*f,r,f).filter((function(e){return Jl(e%p)>Vl})).map(c))}return _.lines=function(){return b().map((function(e){return{type:"LineString",coordinates:e}}))},_.outline=function(){return{type:"Polygon",coordinates:[d(i).concat(u(s).slice(1),d(n).reverse().slice(1),u(a).reverse().slice(1))]}},_.extent=function(e){return arguments.length?_.extentMajor(e).extentMinor(e):_.extentMinor()},_.extentMajor=function(e){return arguments.length?(i=+e[0][0],n=+e[1][0],a=+e[0][1],s=+e[1][1],i>n&&(e=i,i=n,n=e),a>s&&(e=a,a=s,s=e),_.precision(m)):[[i,a],[n,s]]},_.extentMinor=function(n){return arguments.length?(t=+n[0][0],e=+n[1][0],o=+n[0][1],r=+n[1][1],t>e&&(n=t,t=e,e=n),o>r&&(n=o,o=r,r=n),_.precision(m)):[[t,o],[e,r]]},_.step=function(e){return arguments.length?_.stepMajor(e).stepMinor(e):_.stepMinor()},_.stepMajor=function(e){return arguments.length?(g=+e[0],p=+e[1],_):[g,p]},_.stepMinor=function(e){return arguments.length?(h=+e[0],f=+e[1],_):[h,f]},_.precision=function(h){return arguments.length?(m=+h,l=Nu(o,r,90),c=Iu(t,e,m),d=Nu(a,s,90),u=Iu(i,n,m),_):m},_.extentMajor([[-180,-90+Vl],[180,90-Vl]]).extentMinor([[-180,-80-Vl],[180,80+Vl]])}function Ru(){return Au()()}var Pu,ju,Fu,Bu,Wu=function(e,t){var n=e[0]*Zl,i=e[1]*Zl,r=t[0]*Zl,o=t[1]*Zl,s=ec(i),a=oc(i),l=ec(o),c=oc(o),d=s*ec(n),u=s*oc(n),h=l*ec(r),f=l*oc(r),g=2*dc(ac(uc(o-i)+s*l*uc(r-n))),p=oc(g),m=g?function(e){var t=oc(e*=g)/p,n=oc(g-e)/p,i=n*d+t*h,r=n*u+t*f,o=n*a+t*c;return[Ql(r,i)*Gl,Ql(o,ac(i*i+r*r))*Gl]}:function(){return[n*Gl,i*Gl]};return m.distance=g,m},Hu=function(e){return e},Yu=Bl(),Vu=Bl(),zu={point:hc,lineStart:hc,lineEnd:hc,polygonStart:function(){zu.lineStart=Uu,zu.lineEnd=Ku},polygonEnd:function(){zu.lineStart=zu.lineEnd=zu.point=hc,Yu.add(Jl(Vu)),Vu.reset()},result:function(){var e=Yu/2;return Yu.reset(),e}};function Uu(){zu.point=$u}function $u(e,t){zu.point=qu,Pu=Fu=e,ju=Bu=t}function qu(e,t){Vu.add(Bu*e-Fu*t),Fu=e,Bu=t}function Ku(){qu(Pu,ju)}var Gu=zu,Zu=1/0,Ju=Zu,Xu=-Zu,Qu=Xu;var eh,th,nh,ih,rh={point:function(e,t){e<Zu&&(Zu=e);e>Xu&&(Xu=e);t<Ju&&(Ju=t);t>Qu&&(Qu=t)},lineStart:hc,lineEnd:hc,polygonStart:hc,polygonEnd:hc,result:function(){var e=[[Zu,Ju],[Xu,Qu]];return Xu=Qu=-(Ju=Zu=1/0),e}},oh=0,sh=0,ah=0,lh=0,ch=0,dh=0,uh=0,hh=0,fh=0,gh={point:ph,lineStart:mh,lineEnd:vh,polygonStart:function(){gh.lineStart=yh,gh.lineEnd=wh},polygonEnd:function(){gh.point=ph,gh.lineStart=mh,gh.lineEnd=vh},result:function(){var e=fh?[uh/fh,hh/fh]:dh?[lh/dh,ch/dh]:ah?[oh/ah,sh/ah]:[NaN,NaN];return oh=sh=ah=lh=ch=dh=uh=hh=fh=0,e}};function ph(e,t){oh+=e,sh+=t,++ah}function mh(){gh.point=_h}function _h(e,t){gh.point=bh,ph(nh=e,ih=t)}function bh(e,t){var n=e-nh,i=t-ih,r=ac(n*n+i*i);lh+=r*(nh+e)/2,ch+=r*(ih+t)/2,dh+=r,ph(nh=e,ih=t)}function vh(){gh.point=ph}function yh(){gh.point=Ch}function wh(){Sh(eh,th)}function Ch(e,t){gh.point=Sh,ph(eh=nh=e,th=ih=t)}function Sh(e,t){var n=e-nh,i=t-ih,r=ac(n*n+i*i);lh+=r*(nh+e)/2,ch+=r*(ih+t)/2,dh+=r,uh+=(r=ih*e-nh*t)*(nh+e),hh+=r*(ih+t),fh+=3*r,ph(nh=e,ih=t)}var kh=gh;function xh(e){this._context=e}xh.prototype={_radius:4.5,pointRadius:function(e){return this._radius=e,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._context.moveTo(e,t),this._point=1;break;case 1:this._context.lineTo(e,t);break;default:this._context.moveTo(e+this._radius,t),this._context.arc(e,t,this._radius,0,Kl)}},result:hc};var Lh,Mh,Dh,Eh,Th,Oh=Bl(),Nh={point:hc,lineStart:function(){Nh.point=Ih},lineEnd:function(){Lh&&Ah(Mh,Dh),Nh.point=hc},polygonStart:function(){Lh=!0},polygonEnd:function(){Lh=null},result:function(){var e=+Oh;return Oh.reset(),e}};function Ih(e,t){Nh.point=Ah,Mh=Eh=e,Dh=Th=t}function Ah(e,t){Eh-=e,Th-=t,Oh.add(ac(Eh*Eh+Th*Th)),Eh=e,Th=t}var Rh=Nh;function Ph(){this._string=[]}function jh(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}Ph.prototype={_radius:4.5,_circle:jh(4.5),pointRadius:function(e){return(e=+e)!==this._radius&&(this._radius=e,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._string.push("M",e,",",t),this._point=1;break;case 1:this._string.push("L",e,",",t);break;default:null==this._circle&&(this._circle=jh(this._radius)),this._string.push("M",e,",",t,this._circle)}},result:function(){if(this._string.length){var e=this._string.join("");return this._string=[],e}return null}};var Fh=function(e,t){var n,i,r=4.5;function o(e){return e&&("function"==typeof r&&i.pointRadius(+r.apply(this,arguments)),Sc(e,n(i))),i.result()}return o.area=function(e){return Sc(e,n(Gu)),Gu.result()},o.measure=function(e){return Sc(e,n(Rh)),Rh.result()},o.bounds=function(e){return Sc(e,n(rh)),rh.result()},o.centroid=function(e){return Sc(e,n(kh)),kh.result()},o.projection=function(t){return arguments.length?(n=null==t?(e=null,Hu):(e=t).stream,o):e},o.context=function(e){return arguments.length?(i=null==e?(t=null,new Ph):new xh(t=e),"function"!=typeof r&&i.pointRadius(r),o):t},o.pointRadius=function(e){return arguments.length?(r="function"==typeof e?e:(i.pointRadius(+e),+e),o):r},o.projection(e).context(t)},Bh=function(e){return{stream:Wh(e)}};function Wh(e){return function(t){var n=new Hh;for(var i in e)n[i]=e[i];return n.stream=t,n}}function Hh(){}function Yh(e,t,n){var i=e.clipExtent&&e.clipExtent();return e.scale(150).translate([0,0]),null!=i&&e.clipExtent(null),Sc(n,e.stream(rh)),t(rh.result()),null!=i&&e.clipExtent(i),e}function Vh(e,t,n){return Yh(e,(function(n){var i=t[1][0]-t[0][0],r=t[1][1]-t[0][1],o=Math.min(i/(n[1][0]-n[0][0]),r/(n[1][1]-n[0][1])),s=+t[0][0]+(i-o*(n[1][0]+n[0][0]))/2,a=+t[0][1]+(r-o*(n[1][1]+n[0][1]))/2;e.scale(150*o).translate([s,a])}),n)}function zh(e,t,n){return Vh(e,[[0,0],t],n)}function Uh(e,t,n){return Yh(e,(function(n){var i=+t,r=i/(n[1][0]-n[0][0]),o=(i-r*(n[1][0]+n[0][0]))/2,s=-r*n[0][1];e.scale(150*r).translate([o,s])}),n)}function $h(e,t,n){return Yh(e,(function(n){var i=+t,r=i/(n[1][1]-n[0][1]),o=-r*n[0][0],s=(i-r*(n[1][1]+n[0][1]))/2;e.scale(150*r).translate([o,s])}),n)}Hh.prototype={constructor:Hh,point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var qh=16,Kh=ec(30*Zl),Gh=function(e,t){return+t?function(e,t){function n(i,r,o,s,a,l,c,d,u,h,f,g,p,m){var _=c-i,b=d-r,v=_*_+b*b;if(v>4*t&&p--){var y=s+h,w=a+f,C=l+g,S=ac(y*y+w*w+C*C),k=dc(C/=S),x=Jl(Jl(C)-1)<Vl||Jl(o-u)<Vl?(o+u)/2:Ql(w,y),L=e(x,k),M=L[0],D=L[1],E=M-i,T=D-r,O=b*E-_*T;(O*O/v>t||Jl((_*E+b*T)/v-.5)>.3||s*h+a*f+l*g<Kh)&&(n(i,r,o,s,a,l,M,D,x,y/=S,w/=S,C,p,m),m.point(M,D),n(M,D,x,y,w,C,c,d,u,h,f,g,p,m))}}return function(t){var i,r,o,s,a,l,c,d,u,h,f,g,p={point:m,lineStart:_,lineEnd:v,polygonStart:function(){t.polygonStart(),p.lineStart=y},polygonEnd:function(){t.polygonEnd(),p.lineStart=_}};function m(n,i){n=e(n,i),t.point(n[0],n[1])}function _(){d=NaN,p.point=b,t.lineStart()}function b(i,r){var o=Ic([i,r]),s=e(i,r);n(d,u,c,h,f,g,d=s[0],u=s[1],c=i,h=o[0],f=o[1],g=o[2],qh,t),t.point(d,u)}function v(){p.point=m,t.lineEnd()}function y(){_(),p.point=w,p.lineEnd=C}function w(e,t){b(i=e,t),r=d,o=u,s=h,a=f,l=g,p.point=b}function C(){n(d,u,c,h,f,g,r,o,i,s,a,l,qh,t),p.lineEnd=v,v()}return p}}(e,t):function(e){return Wh({point:function(t,n){t=e(t,n),this.stream.point(t[0],t[1])}})}(e)};var Zh=Wh({point:function(e,t){this.stream.point(e*Zl,t*Zl)}});function Jh(e,t,n){function i(i,r){return[t+e*i,n-e*r]}return i.invert=function(i,r){return[(i-t)/e,(n-r)/e]},i}function Xh(e,t,n,i){var r=ec(i),o=oc(i),s=r*e,a=o*e,l=r/e,c=o/e,d=(o*n-r*t)/e,u=(o*t+r*n)/e;function h(e,i){return[s*e-a*i+t,n-a*e-s*i]}return h.invert=function(e,t){return[l*e-c*t+d,u-c*e-l*t]},h}function Qh(e){return ef((function(){return e}))()}function ef(e){var t,n,i,r,o,s,a,l,c,d,u=150,h=480,f=250,g=0,p=0,m=0,_=0,b=0,v=0,y=null,w=ru,C=null,S=Hu,k=.5;function x(e){return l(e[0]*Zl,e[1]*Zl)}function L(e){return(e=l.invert(e[0],e[1]))&&[e[0]*Gl,e[1]*Gl]}function M(){var e=Xh(u,0,0,v).apply(null,t(g,p)),i=(v?Xh:Jh)(u,h-e[0],f-e[1],v);return n=Bd(m,_,b),a=jd(t,i),l=jd(n,a),s=Gh(a,k),D()}function D(){return c=d=null,x}return x.stream=function(e){return c&&d===e?c:c=Zh(function(e){return Wh({point:function(t,n){var i=e(t,n);return this.stream.point(i[0],i[1])}})}(n)(w(s(S(d=e)))))},x.preclip=function(e){return arguments.length?(w=e,y=void 0,D()):w},x.postclip=function(e){return arguments.length?(S=e,C=i=r=o=null,D()):S},x.clipAngle=function(e){return arguments.length?(w=+e?ou(y=e*Zl):(y=null,ru),D()):y*Gl},x.clipExtent=function(e){return arguments.length?(S=null==e?(C=i=r=o=null,Hu):cu(C=+e[0][0],i=+e[0][1],r=+e[1][0],o=+e[1][1]),D()):null==C?null:[[C,i],[r,o]]},x.scale=function(e){return arguments.length?(u=+e,M()):u},x.translate=function(e){return arguments.length?(h=+e[0],f=+e[1],M()):[h,f]},x.center=function(e){return arguments.length?(g=e[0]%360*Zl,p=e[1]%360*Zl,M()):[g*Gl,p*Gl]},x.rotate=function(e){return arguments.length?(m=e[0]%360*Zl,_=e[1]%360*Zl,b=e.length>2?e[2]%360*Zl:0,M()):[m*Gl,_*Gl,b*Gl]},x.angle=function(e){return arguments.length?(v=e%360*Zl,M()):v*Gl},x.precision=function(e){return arguments.length?(s=Gh(a,k=e*e),D()):ac(k)},x.fitExtent=function(e,t){return Vh(x,e,t)},x.fitSize=function(e,t){return zh(x,e,t)},x.fitWidth=function(e,t){return Uh(x,e,t)},x.fitHeight=function(e,t){return $h(x,e,t)},function(){return t=e.apply(this,arguments),x.invert=t.invert&&L,M()}}function tf(e){var t=0,n=Ul/3,i=ef(e),r=i(t,n);return r.parallels=function(e){return arguments.length?i(t=e[0]*Zl,n=e[1]*Zl):[t*Gl,n*Gl]},r}function nf(e,t){var n=oc(e),i=(n+oc(t))/2;if(Jl(i)<Vl)return function(e){var t=ec(e);function n(e,n){return[e*t,oc(n)/t]}return n.invert=function(e,n){return[e/t,dc(n*t)]},n}(e);var r=1+n*(2*i-n),o=ac(r)/i;function s(e,t){var n=ac(r-2*i*oc(t))/i;return[n*oc(e*=i),o-n*ec(e)]}return s.invert=function(e,t){var n=o-t;return[Ql(e,Jl(n))/i*sc(n),dc((r-(e*e+n*n)*i*i)/(2*i))]},s}var rf=function(){return tf(nf).scale(155.424).center([0,33.6442])},of=function(){return rf().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])};var sf=function(){var e,t,n,i,r,o,s=of(),a=rf().rotate([154,0]).center([-2,58.5]).parallels([55,65]),l=rf().rotate([157,0]).center([-3,19.9]).parallels([8,18]),c={point:function(e,t){o=[e,t]}};function d(e){var t=e[0],s=e[1];return o=null,n.point(t,s),o||(i.point(t,s),o)||(r.point(t,s),o)}function u(){return e=t=null,d}return d.invert=function(e){var t=s.scale(),n=s.translate(),i=(e[0]-n[0])/t,r=(e[1]-n[1])/t;return(r>=.12&&r<.234&&i>=-.425&&i<-.214?a:r>=.166&&r<.234&&i>=-.214&&i<-.115?l:s).invert(e)},d.stream=function(n){return e&&t===n?e:(i=[s.stream(t=n),a.stream(n),l.stream(n)],r=i.length,e={point:function(e,t){for(var n=-1;++n<r;)i[n].point(e,t)},sphere:function(){for(var e=-1;++e<r;)i[e].sphere()},lineStart:function(){for(var e=-1;++e<r;)i[e].lineStart()},lineEnd:function(){for(var e=-1;++e<r;)i[e].lineEnd()},polygonStart:function(){for(var e=-1;++e<r;)i[e].polygonStart()},polygonEnd:function(){for(var e=-1;++e<r;)i[e].polygonEnd()}});var i,r},d.precision=function(e){return arguments.length?(s.precision(e),a.precision(e),l.precision(e),u()):s.precision()},d.scale=function(e){return arguments.length?(s.scale(e),a.scale(.35*e),l.scale(e),d.translate(s.translate())):s.scale()},d.translate=function(e){if(!arguments.length)return s.translate();var t=s.scale(),o=+e[0],d=+e[1];return n=s.translate(e).clipExtent([[o-.455*t,d-.238*t],[o+.455*t,d+.238*t]]).stream(c),i=a.translate([o-.307*t,d+.201*t]).clipExtent([[o-.425*t+Vl,d+.12*t+Vl],[o-.214*t-Vl,d+.234*t-Vl]]).stream(c),r=l.translate([o-.205*t,d+.212*t]).clipExtent([[o-.214*t+Vl,d+.166*t+Vl],[o-.115*t-Vl,d+.234*t-Vl]]).stream(c),u()},d.fitExtent=function(e,t){return Vh(d,e,t)},d.fitSize=function(e,t){return zh(d,e,t)},d.fitWidth=function(e,t){return Uh(d,e,t)},d.fitHeight=function(e,t){return $h(d,e,t)},d.scale(1070)};function af(e){return function(t,n){var i=ec(t),r=ec(n),o=e(i*r);return[o*r*oc(t),o*oc(n)]}}function lf(e){return function(t,n){var i=ac(t*t+n*n),r=e(i),o=oc(r),s=ec(r);return[Ql(t*o,i*s),dc(i&&n*o/i)]}}var cf=af((function(e){return ac(2/(1+e))}));cf.invert=lf((function(e){return 2*dc(e/2)}));var df=function(){return Qh(cf).scale(124.75).clipAngle(179.999)},uf=af((function(e){return(e=cc(e))&&e/oc(e)}));uf.invert=lf((function(e){return e}));var hf=function(){return Qh(uf).scale(79.4188).clipAngle(179.999)};function ff(e,t){return[e,ic(lc(($l+t)/2))]}ff.invert=function(e,t){return[e,2*Xl(nc(t))-$l]};var gf=function(){return pf(ff).scale(961/Kl)};function pf(e){var t,n,i,r=Qh(e),o=r.center,s=r.scale,a=r.translate,l=r.clipExtent,c=null;function d(){var o=Ul*s(),a=r(Vd(r.rotate()).invert([0,0]));return l(null==c?[[a[0]-o,a[1]-o],[a[0]+o,a[1]+o]]:e===ff?[[Math.max(a[0]-o,c),t],[Math.min(a[0]+o,n),i]]:[[c,Math.max(a[1]-o,t)],[n,Math.min(a[1]+o,i)]])}return r.scale=function(e){return arguments.length?(s(e),d()):s()},r.translate=function(e){return arguments.length?(a(e),d()):a()},r.center=function(e){return arguments.length?(o(e),d()):o()},r.clipExtent=function(e){return arguments.length?(null==e?c=t=n=i=null:(c=+e[0][0],t=+e[0][1],n=+e[1][0],i=+e[1][1]),d()):null==c?null:[[c,t],[n,i]]},d()}function mf(e){return lc(($l+e)/2)}function _f(e,t){var n=ec(e),i=e===t?oc(e):ic(n/ec(t))/ic(mf(t)/mf(e)),r=n*rc(mf(e),i)/i;if(!i)return ff;function o(e,t){r>0?t<-$l+Vl&&(t=-$l+Vl):t>$l-Vl&&(t=$l-Vl);var n=r/rc(mf(t),i);return[n*oc(i*e),r-n*ec(i*e)]}return o.invert=function(e,t){var n=r-t,o=sc(i)*ac(e*e+n*n);return[Ql(e,Jl(n))/i*sc(n),2*Xl(rc(r/o,1/i))-$l]},o}var bf=function(){return tf(_f).scale(109.5).parallels([30,30])};function vf(e,t){return[e,t]}vf.invert=vf;var yf=function(){return Qh(vf).scale(152.63)};function wf(e,t){var n=ec(e),i=e===t?oc(e):(n-ec(t))/(t-e),r=n/i+e;if(Jl(i)<Vl)return vf;function o(e,t){var n=r-t,o=i*e;return[n*oc(o),r-n*ec(o)]}return o.invert=function(e,t){var n=r-t;return[Ql(e,Jl(n))/i*sc(n),r-sc(i)*ac(e*e+n*n)]},o}var Cf=function(){return tf(wf).scale(131.154).center([0,13.9389])},Sf=1.340264,kf=-.081106,xf=893e-6,Lf=.003796,Mf=ac(3)/2;function Df(e,t){var n=dc(Mf*oc(t)),i=n*n,r=i*i*i;return[e*ec(n)/(Mf*(Sf+3*kf*i+r*(7*xf+9*Lf*i))),n*(Sf+kf*i+r*(xf+Lf*i))]}Df.invert=function(e,t){for(var n,i=t,r=i*i,o=r*r*r,s=0;s<12&&(o=(r=(i-=n=(i*(Sf+kf*r+o*(xf+Lf*r))-t)/(Sf+3*kf*r+o*(7*xf+9*Lf*r)))*i)*r*r,!(Jl(n)<zl));++s);return[Mf*e*(Sf+3*kf*r+o*(7*xf+9*Lf*r))/ec(i),dc(oc(i)/Mf)]};var Ef=function(){return Qh(Df).scale(177.158)};function Tf(e,t){var n=ec(t),i=ec(e)*n;return[n*oc(e)/i,oc(t)/i]}Tf.invert=lf(Xl);var Of=function(){return Qh(Tf).scale(144.049).clipAngle(60)};function Nf(e,t,n,i){return 1===e&&1===t&&0===n&&0===i?Hu:Wh({point:function(r,o){this.stream.point(r*e+n,o*t+i)}})}var If=function(){var e,t,n,i,r,o,s=1,a=0,l=0,c=1,d=1,u=Hu,h=null,f=Hu;function g(){return i=r=null,o}return o={stream:function(e){return i&&r===e?i:i=u(f(r=e))},postclip:function(i){return arguments.length?(f=i,h=e=t=n=null,g()):f},clipExtent:function(i){return arguments.length?(f=null==i?(h=e=t=n=null,Hu):cu(h=+i[0][0],e=+i[0][1],t=+i[1][0],n=+i[1][1]),g()):null==h?null:[[h,e],[t,n]]},scale:function(e){return arguments.length?(u=Nf((s=+e)*c,s*d,a,l),g()):s},translate:function(e){return arguments.length?(u=Nf(s*c,s*d,a=+e[0],l=+e[1]),g()):[a,l]},reflectX:function(e){return arguments.length?(u=Nf(s*(c=e?-1:1),s*d,a,l),g()):c<0},reflectY:function(e){return arguments.length?(u=Nf(s*c,s*(d=e?-1:1),a,l),g()):d<0},fitExtent:function(e,t){return Vh(o,e,t)},fitSize:function(e,t){return zh(o,e,t)},fitWidth:function(e,t){return Uh(o,e,t)},fitHeight:function(e,t){return $h(o,e,t)}}};function Af(e,t){var n=t*t,i=n*n;return[e*(.8707-.131979*n+i*(i*(.003971*n-.001529*i)-.013791)),t*(1.007226+n*(.015085+i*(.028874*n-.044475-.005916*i)))]}Af.invert=function(e,t){var n,i=t,r=25;do{var o=i*i,s=o*o;i-=n=(i*(1.007226+o*(.015085+s*(.028874*o-.044475-.005916*s)))-t)/(1.007226+o*(.045255+s*(.259866*o-.311325-.005916*11*s)))}while(Jl(n)>Vl&&--r>0);return[e/(.8707+(o=i*i)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),i]};var Rf=function(){return Qh(Af).scale(175.295)};function Pf(e,t){return[ec(t)*oc(e),oc(t)]}Pf.invert=lf(dc);var jf=function(){return Qh(Pf).scale(249.5).clipAngle(90+Vl)};function Ff(e,t){var n=ec(t),i=1+ec(e)*n;return[n*oc(e)/i,oc(t)/i]}Ff.invert=lf((function(e){return 2*Xl(e)}));var Bf=function(){return Qh(Ff).scale(250).clipAngle(142)};function Wf(e,t){return[ic(lc(($l+t)/2)),-e]}Wf.invert=function(e,t){return[-t,2*Xl(nc(e))-$l]};var Hf=function(){var e=pf(Wf),t=e.center,n=e.rotate;return e.center=function(e){return arguments.length?t([-e[1],e[0]]):[(e=t())[1],-e[0]]},e.rotate=function(e){return arguments.length?n([e[0],e[1],e.length>2?e[2]+90:90]):[(e=n())[0],e[1],e[2]-90]},n([0,0,90]).scale(159.155)};function Yf(e,t){return e.parent===t.parent?1:2}function Vf(e,t){return e+t.x}function zf(e,t){return Math.max(e,t.y)}var Uf=function(){var e=Yf,t=1,n=1,i=!1;function r(r){var o,s=0;r.eachAfter((function(t){var n=t.children;n?(t.x=function(e){return e.reduce(Vf,0)/e.length}(n),t.y=function(e){return 1+e.reduce(zf,0)}(n)):(t.x=o?s+=e(t,o):0,t.y=0,o=t)}));var a=function(e){for(var t;t=e.children;)e=t[0];return e}(r),l=function(e){for(var t;t=e.children;)e=t[t.length-1];return e}(r),c=a.x-e(a,l)/2,d=l.x+e(l,a)/2;return r.eachAfter(i?function(e){e.x=(e.x-r.x)*t,e.y=(r.y-e.y)*n}:function(e){e.x=(e.x-c)/(d-c)*t,e.y=(1-(r.y?e.y/r.y:1))*n})}return r.separation=function(t){return arguments.length?(e=t,r):e},r.size=function(e){return arguments.length?(i=!1,t=+e[0],n=+e[1],r):i?null:[t,n]},r.nodeSize=function(e){return arguments.length?(i=!0,t=+e[0],n=+e[1],r):i?[t,n]:null},r};function $f(e){var t=0,n=e.children,i=n&&n.length;if(i)for(;--i>=0;)t+=n[i].value;else t=1;e.value=t}function qf(e,t){var n,i,r,o,s,a=new Jf(e),l=+e.value&&(a.value=e.value),c=[a];for(null==t&&(t=Kf);n=c.pop();)if(l&&(n.value=+n.data.value),(r=t(n.data))&&(s=r.length))for(n.children=new Array(s),o=s-1;o>=0;--o)c.push(i=n.children[o]=new Jf(r[o])),i.parent=n,i.depth=n.depth+1;return a.eachBefore(Zf)}function Kf(e){return e.children}function Gf(e){e.data=e.data.data}function Zf(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Jf(e){this.data=e,this.depth=this.height=0,this.parent=null}Jf.prototype=qf.prototype={constructor:Jf,count:function(){return this.eachAfter($f)},each:function(e){var t,n,i,r,o=this,s=[o];do{for(t=s.reverse(),s=[];o=t.pop();)if(e(o),n=o.children)for(i=0,r=n.length;i<r;++i)s.push(n[i])}while(s.length);return this},eachAfter:function(e){for(var t,n,i,r=this,o=[r],s=[];r=o.pop();)if(s.push(r),t=r.children)for(n=0,i=t.length;n<i;++n)o.push(t[n]);for(;r=s.pop();)e(r);return this},eachBefore:function(e){for(var t,n,i=this,r=[i];i=r.pop();)if(e(i),t=i.children)for(n=t.length-1;n>=0;--n)r.push(t[n]);return this},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,i=t.children,r=i&&i.length;--r>=0;)n+=i[r].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),i=t.ancestors(),r=null;e=n.pop(),t=i.pop();for(;e===t;)r=e,e=n.pop(),t=i.pop();return r}(t,e),i=[t];t!==n;)t=t.parent,i.push(t);for(var r=i.length;e!==n;)i.splice(r,0,e),e=e.parent;return i},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){var e=[];return this.each((function(t){e.push(t)})),e},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return qf(this).eachBefore(Gf)}};var Xf=Array.prototype.slice;var Qf=function(e){for(var t,n,i=0,r=(e=function(e){for(var t,n,i=e.length;i;)n=Math.random()*i--|0,t=e[i],e[i]=e[n],e[n]=t;return e}(Xf.call(e))).length,o=[];i<r;)t=e[i],n&&ng(n,t)?++i:(n=rg(o=eg(o,t)),i=0);return n};function eg(e,t){var n,i;if(ig(t,e))return[t];for(n=0;n<e.length;++n)if(tg(t,e[n])&&ig(og(e[n],t),e))return[e[n],t];for(n=0;n<e.length-1;++n)for(i=n+1;i<e.length;++i)if(tg(og(e[n],e[i]),t)&&tg(og(e[n],t),e[i])&&tg(og(e[i],t),e[n])&&ig(sg(e[n],e[i],t),e))return[e[n],e[i],t];throw new Error}function tg(e,t){var n=e.r-t.r,i=t.x-e.x,r=t.y-e.y;return n<0||n*n<i*i+r*r}function ng(e,t){var n=e.r-t.r+1e-6,i=t.x-e.x,r=t.y-e.y;return n>0&&n*n>i*i+r*r}function ig(e,t){for(var n=0;n<t.length;++n)if(!ng(e,t[n]))return!1;return!0}function rg(e){switch(e.length){case 1:return{x:(t=e[0]).x,y:t.y,r:t.r};case 2:return og(e[0],e[1]);case 3:return sg(e[0],e[1],e[2])}var t}function og(e,t){var n=e.x,i=e.y,r=e.r,o=t.x,s=t.y,a=t.r,l=o-n,c=s-i,d=a-r,u=Math.sqrt(l*l+c*c);return{x:(n+o+l/u*d)/2,y:(i+s+c/u*d)/2,r:(u+r+a)/2}}function sg(e,t,n){var i=e.x,r=e.y,o=e.r,s=t.x,a=t.y,l=t.r,c=n.x,d=n.y,u=n.r,h=i-s,f=i-c,g=r-a,p=r-d,m=l-o,_=u-o,b=i*i+r*r-o*o,v=b-s*s-a*a+l*l,y=b-c*c-d*d+u*u,w=f*g-h*p,C=(g*y-p*v)/(2*w)-i,S=(p*m-g*_)/w,k=(f*v-h*y)/(2*w)-r,x=(h*_-f*m)/w,L=S*S+x*x-1,M=2*(o+C*S+k*x),D=C*C+k*k-o*o,E=-(L?(M+Math.sqrt(M*M-4*L*D))/(2*L):D/M);return{x:i+C+S*E,y:r+k+x*E,r:E}}function ag(e,t,n){var i,r,o,s,a=e.x-t.x,l=e.y-t.y,c=a*a+l*l;c?(r=t.r+n.r,r*=r,s=e.r+n.r,r>(s*=s)?(i=(c+s-r)/(2*c),o=Math.sqrt(Math.max(0,s/c-i*i)),n.x=e.x-i*a-o*l,n.y=e.y-i*l+o*a):(i=(c+r-s)/(2*c),o=Math.sqrt(Math.max(0,r/c-i*i)),n.x=t.x+i*a-o*l,n.y=t.y+i*l+o*a)):(n.x=t.x+n.r,n.y=t.y)}function lg(e,t){var n=e.r+t.r-1e-6,i=t.x-e.x,r=t.y-e.y;return n>0&&n*n>i*i+r*r}function cg(e){var t=e._,n=e.next._,i=t.r+n.r,r=(t.x*n.r+n.x*t.r)/i,o=(t.y*n.r+n.y*t.r)/i;return r*r+o*o}function dg(e){this._=e,this.next=null,this.previous=null}function ug(e){if(!(r=e.length))return 0;var t,n,i,r,o,s,a,l,c,d,u;if((t=e[0]).x=0,t.y=0,!(r>1))return t.r;if(n=e[1],t.x=-n.r,n.x=t.r,n.y=0,!(r>2))return t.r+n.r;ag(n,t,i=e[2]),t=new dg(t),n=new dg(n),i=new dg(i),t.next=i.previous=n,n.next=t.previous=i,i.next=n.previous=t;e:for(a=3;a<r;++a){ag(t._,n._,i=e[a]),i=new dg(i),l=n.next,c=t.previous,d=n._.r,u=t._.r;do{if(d<=u){if(lg(l._,i._)){n=l,t.next=n,n.previous=t,--a;continue e}d+=l._.r,l=l.next}else{if(lg(c._,i._)){(t=c).next=n,n.previous=t,--a;continue e}u+=c._.r,c=c.previous}}while(l!==c.next);for(i.previous=t,i.next=n,t.next=n.previous=n=i,o=cg(t);(i=i.next)!==n;)(s=cg(i))<o&&(t=i,o=s);n=t.next}for(t=[n._],i=n;(i=i.next)!==n;)t.push(i._);for(i=Qf(t),a=0;a<r;++a)(t=e[a]).x-=i.x,t.y-=i.y;return i.r}var hg=function(e){return ug(e),e};function fg(e){return null==e?null:gg(e)}function gg(e){if("function"!=typeof e)throw new Error;return e}function pg(){return 0}var mg=function(e){return function(){return e}};function _g(e){return Math.sqrt(e.value)}var bg=function(){var e=null,t=1,n=1,i=pg;function r(r){return r.x=t/2,r.y=n/2,e?r.eachBefore(vg(e)).eachAfter(yg(i,.5)).eachBefore(wg(1)):r.eachBefore(vg(_g)).eachAfter(yg(pg,1)).eachAfter(yg(i,r.r/Math.min(t,n))).eachBefore(wg(Math.min(t,n)/(2*r.r))),r}return r.radius=function(t){return arguments.length?(e=fg(t),r):e},r.size=function(e){return arguments.length?(t=+e[0],n=+e[1],r):[t,n]},r.padding=function(e){return arguments.length?(i="function"==typeof e?e:mg(+e),r):i},r};function vg(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function yg(e,t){return function(n){if(i=n.children){var i,r,o,s=i.length,a=e(n)*t||0;if(a)for(r=0;r<s;++r)i[r].r+=a;if(o=ug(i),a)for(r=0;r<s;++r)i[r].r-=a;n.r=o+a}}}function wg(e){return function(t){var n=t.parent;t.r*=e,n&&(t.x=n.x+e*t.x,t.y=n.y+e*t.y)}}var Cg=function(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)},Sg=function(e,t,n,i,r){for(var o,s=e.children,a=-1,l=s.length,c=e.value&&(i-t)/e.value;++a<l;)(o=s[a]).y0=n,o.y1=r,o.x0=t,o.x1=t+=o.value*c},kg=function(){var e=1,t=1,n=0,i=!1;function r(r){var o=r.height+1;return r.x0=r.y0=n,r.x1=e,r.y1=t/o,r.eachBefore(function(e,t){return function(i){i.children&&Sg(i,i.x0,e*(i.depth+1)/t,i.x1,e*(i.depth+2)/t);var r=i.x0,o=i.y0,s=i.x1-n,a=i.y1-n;s<r&&(r=s=(r+s)/2),a<o&&(o=a=(o+a)/2),i.x0=r,i.y0=o,i.x1=s,i.y1=a}}(t,o)),i&&r.eachBefore(Cg),r}return r.round=function(e){return arguments.length?(i=!!e,r):i},r.size=function(n){return arguments.length?(e=+n[0],t=+n[1],r):[e,t]},r.padding=function(e){return arguments.length?(n=+e,r):n},r},xg="$",Lg={depth:-1},Mg={};function Dg(e){return e.id}function Eg(e){return e.parentId}var Tg=function(){var e=Dg,t=Eg;function n(n){var i,r,o,s,a,l,c,d=n.length,u=new Array(d),h={};for(r=0;r<d;++r)i=n[r],a=u[r]=new Jf(i),null!=(l=e(i,r,n))&&(l+="")&&(h[c=xg+(a.id=l)]=c in h?Mg:a);for(r=0;r<d;++r)if(a=u[r],null!=(l=t(n[r],r,n))&&(l+="")){if(!(s=h[xg+l]))throw new Error("missing: "+l);if(s===Mg)throw new Error("ambiguous: "+l);s.children?s.children.push(a):s.children=[a],a.parent=s}else{if(o)throw new Error("multiple roots");o=a}if(!o)throw new Error("no root");if(o.parent=Lg,o.eachBefore((function(e){e.depth=e.parent.depth+1,--d})).eachBefore(Zf),o.parent=null,d>0)throw new Error("cycle");return o}return n.id=function(t){return arguments.length?(e=gg(t),n):e},n.parentId=function(e){return arguments.length?(t=gg(e),n):t},n};function Og(e,t){return e.parent===t.parent?1:2}function Ng(e){var t=e.children;return t?t[0]:e.t}function Ig(e){var t=e.children;return t?t[t.length-1]:e.t}function Ag(e,t,n){var i=n/(t.i-e.i);t.c-=i,t.s+=n,e.c+=i,t.z+=n,t.m+=n}function Rg(e,t,n){return e.a.parent===t.parent?e.a:n}function Pg(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}Pg.prototype=Object.create(Jf.prototype);var jg=function(){var e=Og,t=1,n=1,i=null;function r(r){var l=function(e){for(var t,n,i,r,o,s=new Pg(e,0),a=[s];t=a.pop();)if(i=t._.children)for(t.children=new Array(o=i.length),r=o-1;r>=0;--r)a.push(n=t.children[r]=new Pg(i[r],r)),n.parent=t;return(s.parent=new Pg(null,0)).children=[s],s}(r);if(l.eachAfter(o),l.parent.m=-l.z,l.eachBefore(s),i)r.eachBefore(a);else{var c=r,d=r,u=r;r.eachBefore((function(e){e.x<c.x&&(c=e),e.x>d.x&&(d=e),e.depth>u.depth&&(u=e)}));var h=c===d?1:e(c,d)/2,f=h-c.x,g=t/(d.x+h+f),p=n/(u.depth||1);r.eachBefore((function(e){e.x=(e.x+f)*g,e.y=e.depth*p}))}return r}function o(t){var n=t.children,i=t.parent.children,r=t.i?i[t.i-1]:null;if(n){!function(e){for(var t,n=0,i=0,r=e.children,o=r.length;--o>=0;)(t=r[o]).z+=n,t.m+=n,n+=t.s+(i+=t.c)}(t);var o=(n[0].z+n[n.length-1].z)/2;r?(t.z=r.z+e(t._,r._),t.m=t.z-o):t.z=o}else r&&(t.z=r.z+e(t._,r._));t.parent.A=function(t,n,i){if(n){for(var r,o=t,s=t,a=n,l=o.parent.children[0],c=o.m,d=s.m,u=a.m,h=l.m;a=Ig(a),o=Ng(o),a&&o;)l=Ng(l),(s=Ig(s)).a=t,(r=a.z+u-o.z-c+e(a._,o._))>0&&(Ag(Rg(a,t,i),t,r),c+=r,d+=r),u+=a.m,c+=o.m,h+=l.m,d+=s.m;a&&!Ig(s)&&(s.t=a,s.m+=u-d),o&&!Ng(l)&&(l.t=o,l.m+=c-h,i=t)}return i}(t,r,t.parent.A||i[0])}function s(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function a(e){e.x*=t,e.y=e.depth*n}return r.separation=function(t){return arguments.length?(e=t,r):e},r.size=function(e){return arguments.length?(i=!1,t=+e[0],n=+e[1],r):i?null:[t,n]},r.nodeSize=function(e){return arguments.length?(i=!0,t=+e[0],n=+e[1],r):i?[t,n]:null},r},Fg=function(e,t,n,i,r){for(var o,s=e.children,a=-1,l=s.length,c=e.value&&(r-n)/e.value;++a<l;)(o=s[a]).x0=t,o.x1=i,o.y0=n,o.y1=n+=o.value*c},Bg=(1+Math.sqrt(5))/2;function Wg(e,t,n,i,r,o){for(var s,a,l,c,d,u,h,f,g,p,m,_=[],b=t.children,v=0,y=0,w=b.length,C=t.value;v<w;){l=r-n,c=o-i;do{d=b[y++].value}while(!d&&y<w);for(u=h=d,m=d*d*(p=Math.max(c/l,l/c)/(C*e)),g=Math.max(h/m,m/u);y<w;++y){if(d+=a=b[y].value,a<u&&(u=a),a>h&&(h=a),m=d*d*p,(f=Math.max(h/m,m/u))>g){d-=a;break}g=f}_.push(s={value:d,dice:l<c,children:b.slice(v,y)}),s.dice?Sg(s,n,i,r,C?i+=c*d/C:o):Fg(s,n,i,C?n+=l*d/C:r,o),C-=d,v=y}return _}var Hg=function e(t){function n(e,n,i,r,o){Wg(t,e,n,i,r,o)}return n.ratio=function(t){return e((t=+t)>1?t:1)},n}(Bg),Yg=function(){var e=Hg,t=!1,n=1,i=1,r=[0],o=pg,s=pg,a=pg,l=pg,c=pg;function d(e){return e.x0=e.y0=0,e.x1=n,e.y1=i,e.eachBefore(u),r=[0],t&&e.eachBefore(Cg),e}function u(t){var n=r[t.depth],i=t.x0+n,d=t.y0+n,u=t.x1-n,h=t.y1-n;u<i&&(i=u=(i+u)/2),h<d&&(d=h=(d+h)/2),t.x0=i,t.y0=d,t.x1=u,t.y1=h,t.children&&(n=r[t.depth+1]=o(t)/2,i+=c(t)-n,d+=s(t)-n,(u-=a(t)-n)<i&&(i=u=(i+u)/2),(h-=l(t)-n)<d&&(d=h=(d+h)/2),e(t,i,d,u,h))}return d.round=function(e){return arguments.length?(t=!!e,d):t},d.size=function(e){return arguments.length?(n=+e[0],i=+e[1],d):[n,i]},d.tile=function(t){return arguments.length?(e=gg(t),d):e},d.padding=function(e){return arguments.length?d.paddingInner(e).paddingOuter(e):d.paddingInner()},d.paddingInner=function(e){return arguments.length?(o="function"==typeof e?e:mg(+e),d):o},d.paddingOuter=function(e){return arguments.length?d.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):d.paddingTop()},d.paddingTop=function(e){return arguments.length?(s="function"==typeof e?e:mg(+e),d):s},d.paddingRight=function(e){return arguments.length?(a="function"==typeof e?e:mg(+e),d):a},d.paddingBottom=function(e){return arguments.length?(l="function"==typeof e?e:mg(+e),d):l},d.paddingLeft=function(e){return arguments.length?(c="function"==typeof e?e:mg(+e),d):c},d},Vg=function(e,t,n,i,r){var o,s,a=e.children,l=a.length,c=new Array(l+1);for(c[0]=s=o=0;o<l;++o)c[o+1]=s+=a[o].value;!function e(t,n,i,r,o,s,l){if(t>=n-1){var d=a[t];return d.x0=r,d.y0=o,d.x1=s,void(d.y1=l)}var u=c[t],h=i/2+u,f=t+1,g=n-1;for(;f<g;){var p=f+g>>>1;c[p]<h?f=p+1:g=p}h-c[f-1]<c[f]-h&&t+1<f&&--f;var m=c[f]-u,_=i-m;if(s-r>l-o){var b=(r*_+s*m)/i;e(t,f,m,r,o,b,l),e(f,n,_,b,o,s,l)}else{var v=(o*_+l*m)/i;e(t,f,m,r,o,s,v),e(f,n,_,r,v,s,l)}}(0,l,e.value,t,n,i,r)},zg=function(e,t,n,i,r){(1&e.depth?Fg:Sg)(e,t,n,i,r)},Ug=function e(t){function n(e,n,i,r,o){if((s=e._squarify)&&s.ratio===t)for(var s,a,l,c,d,u=-1,h=s.length,f=e.value;++u<h;){for(l=(a=s[u]).children,c=a.value=0,d=l.length;c<d;++c)a.value+=l[c].value;a.dice?Sg(a,n,i,r,i+=(o-i)*a.value/f):Fg(a,n,i,n+=(r-n)*a.value/f,o),f-=a.value}else e._squarify=s=Wg(t,e,n,i,r,o),s.ratio=t}return n.ratio=function(t){return e((t=+t)>1?t:1)},n}(Bg),$g=function(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}},qg=function(e,t){var n=pn(+e,+t);return function(e){var t=n(e);return t-360*Math.floor(t/360)}},Kg=function(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}},Gg=Math.SQRT2;function Zg(e){return((e=Math.exp(e))+1/e)/2}var Jg=function(e,t){var n,i,r=e[0],o=e[1],s=e[2],a=t[0],l=t[1],c=t[2],d=a-r,u=l-o,h=d*d+u*u;if(h<1e-12)i=Math.log(c/s)/Gg,n=function(e){return[r+e*d,o+e*u,s*Math.exp(Gg*e*i)]};else{var f=Math.sqrt(h),g=(c*c-s*s+4*h)/(2*s*2*f),p=(c*c-s*s-4*h)/(2*c*2*f),m=Math.log(Math.sqrt(g*g+1)-g),_=Math.log(Math.sqrt(p*p+1)-p);i=(_-m)/Gg,n=function(e){var t,n=e*i,a=Zg(m),l=s/(2*f)*(a*(t=Gg*n+m,((t=Math.exp(2*t))-1)/(t+1))-function(e){return((e=Math.exp(e))-1/e)/2}(m));return[r+l*d,o+l*u,s*a/Zg(Gg*n+m)]}}return n.duration=1e3*i,n};function Xg(e){return function(t,n){var i=e((t=an(t)).h,(n=an(n)).h),r=_n(t.s,n.s),o=_n(t.l,n.l),s=_n(t.opacity,n.opacity);return function(e){return t.h=i(e),t.s=r(e),t.l=o(e),t.opacity=s(e),t+""}}}var Qg=Xg(pn),ep=Xg(_n);function tp(e,t){var n=_n((e=To(e)).l,(t=To(t)).l),i=_n(e.a,t.a),r=_n(e.b,t.b),o=_n(e.opacity,t.opacity);return function(t){return e.l=n(t),e.a=i(t),e.b=r(t),e.opacity=o(t),e+""}}function np(e){return function(t,n){var i=e((t=Fo(t)).h,(n=Fo(n)).h),r=_n(t.c,n.c),o=_n(t.l,n.l),s=_n(t.opacity,n.opacity);return function(e){return t.h=i(e),t.c=r(e),t.l=o(e),t.opacity=s(e),t+""}}}var ip=np(pn),rp=np(_n);function op(e){return function t(n){function i(t,i){var r=e((t=qo(t)).h,(i=qo(i)).h),o=_n(t.s,i.s),s=_n(t.l,i.l),a=_n(t.opacity,i.opacity);return function(e){return t.h=r(e),t.s=o(e),t.l=s(Math.pow(e,n)),t.opacity=a(e),t+""}}return n=+n,i.gamma=t,i}(1)}var sp=op(pn),ap=op(_n);function lp(e,t){for(var n=0,i=t.length-1,r=t[0],o=new Array(i<0?0:i);n<i;)o[n]=e(r,r=t[++n]);return function(e){var t=Math.max(0,Math.min(i-1,Math.floor(e*=i)));return o[t](e-t)}}var cp=function(e,t){for(var n=new Array(t),i=0;i<t;++i)n[i]=e(i/(t-1));return n},dp=function(e){for(var t,n=-1,i=e.length,r=e[i-1],o=0;++n<i;)t=r,r=e[n],o+=t[1]*r[0]-t[0]*r[1];return o/2},up=function(e){for(var t,n,i=-1,r=e.length,o=0,s=0,a=e[r-1],l=0;++i<r;)t=a,a=e[i],l+=n=t[0]*a[1]-a[0]*t[1],o+=(t[0]+a[0])*n,s+=(t[1]+a[1])*n;return[o/(l*=3),s/l]},hp=function(e,t,n){return(t[0]-e[0])*(n[1]-e[1])-(t[1]-e[1])*(n[0]-e[0])};function fp(e,t){return e[0]-t[0]||e[1]-t[1]}function gp(e){for(var t=e.length,n=[0,1],i=2,r=2;r<t;++r){for(;i>1&&hp(e[n[i-2]],e[n[i-1]],e[r])<=0;)--i;n[i++]=r}return n.slice(0,i)}var pp=function(e){if((n=e.length)<3)return null;var t,n,i=new Array(n),r=new Array(n);for(t=0;t<n;++t)i[t]=[+e[t][0],+e[t][1],t];for(i.sort(fp),t=0;t<n;++t)r[t]=[i[t][0],-i[t][1]];var o=gp(i),s=gp(r),a=s[0]===o[0],l=s[s.length-1]===o[o.length-1],c=[];for(t=o.length-1;t>=0;--t)c.push(e[i[o[t]][2]]);for(t=+a;t<s.length-l;++t)c.push(e[i[s[t]][2]]);return c},mp=function(e,t){for(var n,i,r=e.length,o=e[r-1],s=t[0],a=t[1],l=o[0],c=o[1],d=!1,u=0;u<r;++u)n=(o=e[u])[0],(i=o[1])>a!=c>a&&s<(l-n)*(a-i)/(c-i)+n&&(d=!d),l=n,c=i;return d},_p=function(e){for(var t,n,i=-1,r=e.length,o=e[r-1],s=o[0],a=o[1],l=0;++i<r;)t=s,n=a,t-=s=(o=e[i])[0],n-=a=o[1],l+=Math.sqrt(t*t+n*n);return l},bp=function(){return Math.random()},vp=function e(t){function n(e,n){return e=null==e?0:+e,n=null==n?1:+n,1===arguments.length?(n=e,e=0):n-=e,function(){return t()*n+e}}return n.source=e,n}(bp),yp=function e(t){function n(e,n){var i,r;return e=null==e?0:+e,n=null==n?1:+n,function(){var o;if(null!=i)o=i,i=null;else do{i=2*t()-1,o=2*t()-1,r=i*i+o*o}while(!r||r>1);return e+n*o*Math.sqrt(-2*Math.log(r)/r)}}return n.source=e,n}(bp),wp=function e(t){function n(){var e=yp.source(t).apply(this,arguments);return function(){return Math.exp(e())}}return n.source=e,n}(bp),Cp=function e(t){function n(e){return function(){for(var n=0,i=0;i<e;++i)n+=t();return n}}return n.source=e,n}(bp),Sp=function e(t){function n(e){var n=Cp.source(t)(e);return function(){return n()/e}}return n.source=e,n}(bp),kp=function e(t){function n(e){return function(){return-Math.log(1-t())/e}}return n.source=e,n}(bp);function xp(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function Lp(e,t){switch(arguments.length){case 0:break;case 1:this.interpolator(e);break;default:this.interpolator(t).domain(e)}return this}var Mp=Array.prototype,Dp=Mp.map,Ep=Mp.slice,Tp={name:"implicit"};function Op(){var e=oo(),t=[],n=[],i=Tp;function r(r){var o=r+"",s=e.get(o);if(!s){if(i!==Tp)return i;e.set(o,s=t.push(r))}return n[(s-1)%n.length]}return r.domain=function(n){if(!arguments.length)return t.slice();t=[],e=oo();for(var i,o,s=-1,a=n.length;++s<a;)e.has(o=(i=n[s])+"")||e.set(o,t.push(i));return r},r.range=function(e){return arguments.length?(n=Ep.call(e),r):n.slice()},r.unknown=function(e){return arguments.length?(i=e,r):i},r.copy=function(){return Op(t,n).unknown(i)},xp.apply(r,arguments),r}function Np(){var e,t,n=Op().unknown(void 0),i=n.domain,r=n.range,o=[0,1],s=!1,a=0,l=0,c=.5;function d(){var n=i().length,d=o[1]<o[0],u=o[d-0],h=o[1-d];e=(h-u)/Math.max(1,n-a+2*l),s&&(e=Math.floor(e)),u+=(h-u-e*(n-a))*c,t=e*(1-a),s&&(u=Math.round(u),t=Math.round(t));var f=C(n).map((function(t){return u+e*t}));return r(d?f.reverse():f)}return delete n.unknown,n.domain=function(e){return arguments.length?(i(e),d()):i()},n.range=function(e){return arguments.length?(o=[+e[0],+e[1]],d()):o.slice()},n.rangeRound=function(e){return o=[+e[0],+e[1]],s=!0,d()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(s=!!e,d()):s},n.padding=function(e){return arguments.length?(a=Math.min(1,l=+e),d()):a},n.paddingInner=function(e){return arguments.length?(a=Math.min(1,e),d()):a},n.paddingOuter=function(e){return arguments.length?(l=+e,d()):l},n.align=function(e){return arguments.length?(c=Math.max(0,Math.min(1,e)),d()):c},n.copy=function(){return Np(i(),o).round(s).paddingInner(a).paddingOuter(l).align(c)},xp.apply(d(),arguments)}function Ip(){return function e(t){var n=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return e(n())},t}(Np.apply(null,arguments).paddingInner(1))}var Ap=function(e){return function(){return e}},Rp=function(e){return+e},Pp=[0,1];function jp(e){return e}function Fp(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Ap(isNaN(t)?NaN:.5)}function Bp(e){var t,n=e[0],i=e[e.length-1];return n>i&&(t=n,n=i,i=t),function(e){return Math.max(n,Math.min(i,e))}}function Wp(e,t,n){var i=e[0],r=e[1],o=t[0],s=t[1];return r<i?(i=Fp(r,i),o=n(s,o)):(i=Fp(i,r),o=n(o,s)),function(e){return o(i(e))}}function Hp(e,t,n){var i=Math.min(e.length,t.length)-1,r=new Array(i),o=new Array(i),s=-1;for(e[i]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<i;)r[s]=Fp(e[s],e[s+1]),o[s]=n(t[s],t[s+1]);return function(t){var n=l(e,t,1,i)-1;return o[n](r[n](t))}}function Yp(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Vp(){var e,t,n,i,r,o,s=Pp,a=Pp,l=An,c=jp;function d(){return i=Math.min(s.length,a.length)>2?Hp:Wp,r=o=null,u}function u(t){return isNaN(t=+t)?n:(r||(r=i(s.map(e),a,l)))(e(c(t)))}return u.invert=function(n){return c(t((o||(o=i(a,s.map(e),Mn)))(n)))},u.domain=function(e){return arguments.length?(s=Dp.call(e,Rp),c===jp||(c=Bp(s)),d()):s.slice()},u.range=function(e){return arguments.length?(a=Ep.call(e),d()):a.slice()},u.rangeRound=function(e){return a=Ep.call(e),l=Kg,d()},u.clamp=function(e){return arguments.length?(c=e?Bp(s):jp,u):c!==jp},u.interpolate=function(e){return arguments.length?(l=e,d()):l},u.unknown=function(e){return arguments.length?(n=e,u):n},function(n,i){return e=n,t=i,d()}}function zp(e,t){return Vp()(e,t)}var Up=function(e,t,n,i){var r,o=D(e,t,n);switch((i=Cl(null==i?",f":i)).type){case"s":var s=Math.max(Math.abs(e),Math.abs(t));return null!=i.precision||isNaN(r=jl(o,s))||(i.precision=r),Ml(i,s);case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(r=Fl(o,Math.max(Math.abs(e),Math.abs(t))))||(i.precision=r-("e"===i.type));break;case"f":case"%":null!=i.precision||isNaN(r=Pl(o))||(i.precision=r-2*("%"===i.type))}return Ll(i)};function $p(e){var t=e.domain;return e.ticks=function(e){var n=t();return L(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var i=t();return Up(i[0],i[i.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var i,r=t(),o=0,s=r.length-1,a=r[o],l=r[s];return l<a&&(i=a,a=l,l=i,i=o,o=s,s=i),(i=M(a,l,n))>0?i=M(a=Math.floor(a/i)*i,l=Math.ceil(l/i)*i,n):i<0&&(i=M(a=Math.ceil(a*i)/i,l=Math.floor(l*i)/i,n)),i>0?(r[o]=Math.floor(a/i)*i,r[s]=Math.ceil(l/i)*i,t(r)):i<0&&(r[o]=Math.ceil(a*i)/i,r[s]=Math.floor(l*i)/i,t(r)),e},e}function qp(){var e=zp(jp,jp);return e.copy=function(){return Yp(e,qp())},xp.apply(e,arguments),$p(e)}function Kp(e){var t;function n(e){return isNaN(e=+e)?t:e}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=Dp.call(t,Rp),n):e.slice()},n.unknown=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return Kp(e).unknown(t)},e=arguments.length?Dp.call(e,Rp):[0,1],$p(n)}var Gp=function(e,t){var n,i=0,r=(e=e.slice()).length-1,o=e[i],s=e[r];return s<o&&(n=i,i=r,r=n,n=o,o=s,s=n),e[i]=t.floor(o),e[r]=t.ceil(s),e};function Zp(e){return Math.log(e)}function Jp(e){return Math.exp(e)}function Xp(e){return-Math.log(-e)}function Qp(e){return-Math.exp(-e)}function em(e){return isFinite(e)?+("1e"+e):e<0?0:e}function tm(e){return function(t){return-e(-t)}}function nm(e){var t,n,i=e(Zp,Jp),r=i.domain,o=10;function s(){return t=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),function(t){return Math.log(t)/e})}(o),n=function(e){return 10===e?em:e===Math.E?Math.exp:function(t){return Math.pow(e,t)}}(o),r()[0]<0?(t=tm(t),n=tm(n),e(Xp,Qp)):e(Zp,Jp),i}return i.base=function(e){return arguments.length?(o=+e,s()):o},i.domain=function(e){return arguments.length?(r(e),s()):r()},i.ticks=function(e){var i,s=r(),a=s[0],l=s[s.length-1];(i=l<a)&&(h=a,a=l,l=h);var c,d,u,h=t(a),f=t(l),g=null==e?10:+e,p=[];if(!(o%1)&&f-h<g){if(h=Math.round(h)-1,f=Math.round(f)+1,a>0){for(;h<f;++h)for(d=1,c=n(h);d<o;++d)if(!((u=c*d)<a)){if(u>l)break;p.push(u)}}else for(;h<f;++h)for(d=o-1,c=n(h);d>=1;--d)if(!((u=c*d)<a)){if(u>l)break;p.push(u)}}else p=L(h,f,Math.min(f-h,g)).map(n);return i?p.reverse():p},i.tickFormat=function(e,r){if(null==r&&(r=10===o?".0e":","),"function"!=typeof r&&(r=Ll(r)),e===1/0)return r;null==e&&(e=10);var s=Math.max(1,o*e/i.ticks().length);return function(e){var i=e/n(Math.round(t(e)));return i*o<o-.5&&(i*=o),i<=s?r(e):""}},i.nice=function(){return r(Gp(r(),{floor:function(e){return n(Math.floor(t(e)))},ceil:function(e){return n(Math.ceil(t(e)))}}))},i}function im(){var e=nm(Vp()).domain([1,10]);return e.copy=function(){return Yp(e,im()).base(e.base())},xp.apply(e,arguments),e}function rm(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function om(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function sm(e){var t=1,n=e(rm(t),om(t));return n.constant=function(n){return arguments.length?e(rm(t=+n),om(t)):t},$p(n)}function am(){var e=sm(Vp());return e.copy=function(){return Yp(e,am()).constant(e.constant())},xp.apply(e,arguments)}function lm(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function cm(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function dm(e){return e<0?-e*e:e*e}function um(e){var t=e(jp,jp),n=1;function i(){return 1===n?e(jp,jp):.5===n?e(cm,dm):e(lm(n),lm(1/n))}return t.exponent=function(e){return arguments.length?(n=+e,i()):n},$p(t)}function hm(){var e=um(Vp());return e.copy=function(){return Yp(e,hm()).exponent(e.exponent())},xp.apply(e,arguments),e}function fm(){return hm.apply(null,arguments).exponent(.5)}function gm(){var e,t=[],n=[],r=[];function o(){var e=0,i=Math.max(1,n.length);for(r=new Array(i-1);++e<i;)r[e-1]=O(t,e/i);return s}function s(t){return isNaN(t=+t)?e:n[l(r,t)]}return s.invertExtent=function(e){var i=n.indexOf(e);return i<0?[NaN,NaN]:[i>0?r[i-1]:t[0],i<r.length?r[i]:t[t.length-1]]},s.domain=function(e){if(!arguments.length)return t.slice();t=[];for(var n,r=0,s=e.length;r<s;++r)null==(n=e[r])||isNaN(n=+n)||t.push(n);return t.sort(i),o()},s.range=function(e){return arguments.length?(n=Ep.call(e),o()):n.slice()},s.unknown=function(t){return arguments.length?(e=t,s):e},s.quantiles=function(){return r.slice()},s.copy=function(){return gm().domain(t).range(n).unknown(e)},xp.apply(s,arguments)}function pm(){var e,t=0,n=1,i=1,r=[.5],o=[0,1];function s(t){return t<=t?o[l(r,t,0,i)]:e}function a(){var e=-1;for(r=new Array(i);++e<i;)r[e]=((e+1)*n-(e-i)*t)/(i+1);return s}return s.domain=function(e){return arguments.length?(t=+e[0],n=+e[1],a()):[t,n]},s.range=function(e){return arguments.length?(i=(o=Ep.call(e)).length-1,a()):o.slice()},s.invertExtent=function(e){var s=o.indexOf(e);return s<0?[NaN,NaN]:s<1?[t,r[0]]:s>=i?[r[i-1],n]:[r[s-1],r[s]]},s.unknown=function(t){return arguments.length?(e=t,s):s},s.thresholds=function(){return r.slice()},s.copy=function(){return pm().domain([t,n]).range(o).unknown(e)},xp.apply($p(s),arguments)}function mm(){var e,t=[.5],n=[0,1],i=1;function r(r){return r<=r?n[l(t,r,0,i)]:e}return r.domain=function(e){return arguments.length?(t=Ep.call(e),i=Math.min(t.length,n.length-1),r):t.slice()},r.range=function(e){return arguments.length?(n=Ep.call(e),i=Math.min(t.length,n.length-1),r):n.slice()},r.invertExtent=function(e){var i=n.indexOf(e);return[t[i-1],t[i]]},r.unknown=function(t){return arguments.length?(e=t,r):e},r.copy=function(){return mm().domain(t).range(n).unknown(e)},xp.apply(r,arguments)}var _m=new Date,bm=new Date;function vm(e,t,n,i){function r(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return r.floor=function(t){return e(t=new Date(+t)),t},r.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},r.round=function(e){var t=r(e),n=r.ceil(e);return e-t<n-e?t:n},r.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},r.range=function(n,i,o){var s,a=[];if(n=r.ceil(n),o=null==o?1:Math.floor(o),!(n<i&&o>0))return a;do{a.push(s=new Date(+n)),t(n,o),e(n)}while(s<n&&n<i);return a},r.filter=function(n){return vm((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,i){if(e>=e)if(i<0)for(;++i<=0;)for(;t(e,-1),!n(e););else for(;--i>=0;)for(;t(e,1),!n(e););}))},n&&(r.count=function(t,i){return _m.setTime(+t),bm.setTime(+i),e(_m),e(bm),Math.floor(n(_m,bm))},r.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?r.filter(i?function(t){return i(t)%e==0}:function(t){return r.count(0,t)%e==0}):r:null}),r}var ym=vm((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));ym.every=function(e){return isFinite(e=Math.floor(e))&&e>0?vm((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null};var wm=ym,Cm=ym.range,Sm=vm((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()})),km=Sm,xm=Sm.range,Lm=6e4,Mm=6048e5;function Dm(e){return vm((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Lm)/Mm}))}var Em=Dm(0),Tm=Dm(1),Om=Dm(2),Nm=Dm(3),Im=Dm(4),Am=Dm(5),Rm=Dm(6),Pm=Em.range,jm=Tm.range,Fm=Om.range,Bm=Nm.range,Wm=Im.range,Hm=Am.range,Ym=Rm.range,Vm=vm((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Lm)/864e5}),(function(e){return e.getDate()-1})),zm=Vm,Um=Vm.range,$m=vm((function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-e.getMinutes()*Lm)}),(function(e,t){e.setTime(+e+36e5*t)}),(function(e,t){return(t-e)/36e5}),(function(e){return e.getHours()})),qm=$m,Km=$m.range,Gm=vm((function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())}),(function(e,t){e.setTime(+e+t*Lm)}),(function(e,t){return(t-e)/Lm}),(function(e){return e.getMinutes()})),Zm=Gm,Jm=Gm.range,Xm=vm((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+1e3*t)}),(function(e,t){return(t-e)/1e3}),(function(e){return e.getUTCSeconds()})),Qm=Xm,e_=Xm.range,t_=vm((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));t_.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?vm((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):t_:null};var n_=t_,i_=t_.range;function r_(e){return vm((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/Mm}))}var o_=r_(0),s_=r_(1),a_=r_(2),l_=r_(3),c_=r_(4),d_=r_(5),u_=r_(6),h_=o_.range,f_=s_.range,g_=a_.range,p_=l_.range,m_=c_.range,__=d_.range,b_=u_.range,v_=vm((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/864e5}),(function(e){return e.getUTCDate()-1})),y_=v_,w_=v_.range,C_=vm((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));C_.every=function(e){return isFinite(e=Math.floor(e))&&e>0?vm((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null};var S_=C_,k_=C_.range;function x_(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function L_(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function M_(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function D_(e){var t=e.dateTime,n=e.date,i=e.time,r=e.periods,o=e.days,s=e.shortDays,a=e.months,l=e.shortMonths,c=W_(r),d=H_(r),u=W_(o),h=H_(o),f=W_(s),g=H_(s),p=W_(a),m=H_(a),_=W_(l),b=H_(l),v={a:function(e){return s[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return a[e.getMonth()]},c:null,d:lb,e:lb,f:fb,H:cb,I:db,j:ub,L:hb,m:gb,M:pb,p:function(e){return r[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:Vb,s:zb,S:mb,u:_b,U:bb,V:vb,w:yb,W:wb,x:null,X:null,y:Cb,Y:Sb,Z:kb,"%":Yb},y={a:function(e){return s[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return a[e.getUTCMonth()]},c:null,d:xb,e:xb,f:Tb,H:Lb,I:Mb,j:Db,L:Eb,m:Ob,M:Nb,p:function(e){return r[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:Vb,s:zb,S:Ib,u:Ab,U:Rb,V:Pb,w:jb,W:Fb,x:null,X:null,y:Bb,Y:Wb,Z:Hb,"%":Yb},w={a:function(e,t,n){var i=f.exec(t.slice(n));return i?(e.w=g[i[0].toLowerCase()],n+i[0].length):-1},A:function(e,t,n){var i=u.exec(t.slice(n));return i?(e.w=h[i[0].toLowerCase()],n+i[0].length):-1},b:function(e,t,n){var i=_.exec(t.slice(n));return i?(e.m=b[i[0].toLowerCase()],n+i[0].length):-1},B:function(e,t,n){var i=p.exec(t.slice(n));return i?(e.m=m[i[0].toLowerCase()],n+i[0].length):-1},c:function(e,n,i){return k(e,t,n,i)},d:X_,e:X_,f:rb,H:eb,I:eb,j:Q_,L:ib,m:J_,M:tb,p:function(e,t,n){var i=c.exec(t.slice(n));return i?(e.p=d[i[0].toLowerCase()],n+i[0].length):-1},q:Z_,Q:sb,s:ab,S:nb,u:V_,U:z_,V:U_,w:Y_,W:$_,x:function(e,t,i){return k(e,n,t,i)},X:function(e,t,n){return k(e,i,t,n)},y:K_,Y:q_,Z:G_,"%":ob};function C(e,t){return function(n){var i,r,o,s=[],a=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++a<c;)37===e.charCodeAt(a)&&(s.push(e.slice(l,a)),null!=(r=A_[i=e.charAt(++a)])?i=e.charAt(++a):r="e"===i?" ":"0",(o=t[i])&&(i=o(n,r)),s.push(i),l=a+1);return s.push(e.slice(l,a)),s.join("")}}function S(e,t){return function(n){var i,r,o=M_(1900,void 0,1);if(k(o,e,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(!t||"Z"in o||(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(r=(i=L_(M_(o.y,0,1))).getUTCDay(),i=r>4||0===r?s_.ceil(i):s_(i),i=y_.offset(i,7*(o.V-1)),o.y=i.getUTCFullYear(),o.m=i.getUTCMonth(),o.d=i.getUTCDate()+(o.w+6)%7):(r=(i=x_(M_(o.y,0,1))).getDay(),i=r>4||0===r?Tm.ceil(i):Tm(i),i=zm.offset(i,7*(o.V-1)),o.y=i.getFullYear(),o.m=i.getMonth(),o.d=i.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),r="Z"in o?L_(M_(o.y,0,1)).getUTCDay():x_(M_(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(r+5)%7:o.w+7*o.U-(r+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,L_(o)):x_(o)}}function k(e,t,n,i){for(var r,o,s=0,a=t.length,l=n.length;s<a;){if(i>=l)return-1;if(37===(r=t.charCodeAt(s++))){if(r=t.charAt(s++),!(o=w[r in A_?t.charAt(s++):r])||(i=o(e,n,i))<0)return-1}else if(r!=n.charCodeAt(i++))return-1}return i}return(v.x=C(n,v),v.X=C(i,v),v.c=C(t,v),y.x=C(n,y),y.X=C(i,y),y.c=C(t,y),{format:function(e){var t=C(e+="",v);return t.toString=function(){return e},t},parse:function(e){var t=S(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=C(e+="",y);return t.toString=function(){return e},t},utcParse:function(e){var t=S(e+="",!0);return t.toString=function(){return e},t}})}var E_,T_,O_,N_,I_,A_={"-":"",_:" ",0:"0"},R_=/^\s*\d+/,P_=/^%/,j_=/[\\^$*+?|[\]().{}]/g;function F_(e,t,n){var i=e<0?"-":"",r=(i?-e:e)+"",o=r.length;return i+(o<n?new Array(n-o+1).join(t)+r:r)}function B_(e){return e.replace(j_,"\\$&")}function W_(e){return new RegExp("^(?:"+e.map(B_).join("|")+")","i")}function H_(e){for(var t={},n=-1,i=e.length;++n<i;)t[e[n].toLowerCase()]=n;return t}function Y_(e,t,n){var i=R_.exec(t.slice(n,n+1));return i?(e.w=+i[0],n+i[0].length):-1}function V_(e,t,n){var i=R_.exec(t.slice(n,n+1));return i?(e.u=+i[0],n+i[0].length):-1}function z_(e,t,n){var i=R_.exec(t.slice(n,n+2));return i?(e.U=+i[0],n+i[0].length):-1}function U_(e,t,n){var i=R_.exec(t.slice(n,n+2));return i?(e.V=+i[0],n+i[0].length):-1}function $_(e,t,n){var i=R_.exec(t.slice(n,n+2));return i?(e.W=+i[0],n+i[0].length):-1}function q_(e,t,n){var i=R_.exec(t.slice(n,n+4));return i?(e.y=+i[0],n+i[0].length):-1}function K_(e,t,n){var i=R_.exec(t.slice(n,n+2));return i?(e.y=+i[0]+(+i[0]>68?1900:2e3),n+i[0].length):-1}function G_(e,t,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return i?(e.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function Z_(e,t,n){var i=R_.exec(t.slice(n,n+1));return i?(e.q=3*i[0]-3,n+i[0].length):-1}function J_(e,t,n){var i=R_.exec(t.slice(n,n+2));return i?(e.m=i[0]-1,n+i[0].length):-1}function X_(e,t,n){var i=R_.exec(t.slice(n,n+2));return i?(e.d=+i[0],n+i[0].length):-1}function Q_(e,t,n){var i=R_.exec(t.slice(n,n+3));return i?(e.m=0,e.d=+i[0],n+i[0].length):-1}function eb(e,t,n){var i=R_.exec(t.slice(n,n+2));return i?(e.H=+i[0],n+i[0].length):-1}function tb(e,t,n){var i=R_.exec(t.slice(n,n+2));return i?(e.M=+i[0],n+i[0].length):-1}function nb(e,t,n){var i=R_.exec(t.slice(n,n+2));return i?(e.S=+i[0],n+i[0].length):-1}function ib(e,t,n){var i=R_.exec(t.slice(n,n+3));return i?(e.L=+i[0],n+i[0].length):-1}function rb(e,t,n){var i=R_.exec(t.slice(n,n+6));return i?(e.L=Math.floor(i[0]/1e3),n+i[0].length):-1}function ob(e,t,n){var i=P_.exec(t.slice(n,n+1));return i?n+i[0].length:-1}function sb(e,t,n){var i=R_.exec(t.slice(n));return i?(e.Q=+i[0],n+i[0].length):-1}function ab(e,t,n){var i=R_.exec(t.slice(n));return i?(e.s=+i[0],n+i[0].length):-1}function lb(e,t){return F_(e.getDate(),t,2)}function cb(e,t){return F_(e.getHours(),t,2)}function db(e,t){return F_(e.getHours()%12||12,t,2)}function ub(e,t){return F_(1+zm.count(wm(e),e),t,3)}function hb(e,t){return F_(e.getMilliseconds(),t,3)}function fb(e,t){return hb(e,t)+"000"}function gb(e,t){return F_(e.getMonth()+1,t,2)}function pb(e,t){return F_(e.getMinutes(),t,2)}function mb(e,t){return F_(e.getSeconds(),t,2)}function _b(e){var t=e.getDay();return 0===t?7:t}function bb(e,t){return F_(Em.count(wm(e)-1,e),t,2)}function vb(e,t){var n=e.getDay();return e=n>=4||0===n?Im(e):Im.ceil(e),F_(Im.count(wm(e),e)+(4===wm(e).getDay()),t,2)}function yb(e){return e.getDay()}function wb(e,t){return F_(Tm.count(wm(e)-1,e),t,2)}function Cb(e,t){return F_(e.getFullYear()%100,t,2)}function Sb(e,t){return F_(e.getFullYear()%1e4,t,4)}function kb(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+F_(t/60|0,"0",2)+F_(t%60,"0",2)}function xb(e,t){return F_(e.getUTCDate(),t,2)}function Lb(e,t){return F_(e.getUTCHours(),t,2)}function Mb(e,t){return F_(e.getUTCHours()%12||12,t,2)}function Db(e,t){return F_(1+y_.count(S_(e),e),t,3)}function Eb(e,t){return F_(e.getUTCMilliseconds(),t,3)}function Tb(e,t){return Eb(e,t)+"000"}function Ob(e,t){return F_(e.getUTCMonth()+1,t,2)}function Nb(e,t){return F_(e.getUTCMinutes(),t,2)}function Ib(e,t){return F_(e.getUTCSeconds(),t,2)}function Ab(e){var t=e.getUTCDay();return 0===t?7:t}function Rb(e,t){return F_(o_.count(S_(e)-1,e),t,2)}function Pb(e,t){var n=e.getUTCDay();return e=n>=4||0===n?c_(e):c_.ceil(e),F_(c_.count(S_(e),e)+(4===S_(e).getUTCDay()),t,2)}function jb(e){return e.getUTCDay()}function Fb(e,t){return F_(s_.count(S_(e)-1,e),t,2)}function Bb(e,t){return F_(e.getUTCFullYear()%100,t,2)}function Wb(e,t){return F_(e.getUTCFullYear()%1e4,t,4)}function Hb(){return"+0000"}function Yb(){return"%"}function Vb(e){return+e}function zb(e){return Math.floor(+e/1e3)}function Ub(e){return E_=D_(e),T_=E_.format,O_=E_.parse,N_=E_.utcFormat,I_=E_.utcParse,E_}Ub({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var $b=1e3,qb=60*$b,Kb=60*qb,Gb=24*Kb,Zb=7*Gb,Jb=30*Gb,Xb=365*Gb;function Qb(e){return new Date(e)}function ev(e){return e instanceof Date?+e:+new Date(+e)}function tv(e,t,n,i,o,s,a,l,c){var d=zp(jp,jp),u=d.invert,h=d.domain,f=c(".%L"),g=c(":%S"),p=c("%I:%M"),m=c("%I %p"),_=c("%a %d"),b=c("%b %d"),v=c("%B"),y=c("%Y"),w=[[a,1,$b],[a,5,5*$b],[a,15,15*$b],[a,30,30*$b],[s,1,qb],[s,5,5*qb],[s,15,15*qb],[s,30,30*qb],[o,1,Kb],[o,3,3*Kb],[o,6,6*Kb],[o,12,12*Kb],[i,1,Gb],[i,2,2*Gb],[n,1,Zb],[t,1,Jb],[t,3,3*Jb],[e,1,Xb]];function C(r){return(a(r)<r?f:s(r)<r?g:o(r)<r?p:i(r)<r?m:t(r)<r?n(r)<r?_:b:e(r)<r?v:y)(r)}function S(t,n,i,o){if(null==t&&(t=10),"number"==typeof t){var s=Math.abs(i-n)/t,a=r((function(e){return e[2]})).right(w,s);a===w.length?(o=D(n/Xb,i/Xb,t),t=e):a?(o=(a=w[s/w[a-1][2]<w[a][2]/s?a-1:a])[1],t=a[0]):(o=Math.max(D(n,i,t),1),t=l)}return null==o?t:t.every(o)}return d.invert=function(e){return new Date(u(e))},d.domain=function(e){return arguments.length?h(Dp.call(e,ev)):h().map(Qb)},d.ticks=function(e,t){var n,i=h(),r=i[0],o=i[i.length-1],s=o<r;return s&&(n=r,r=o,o=n),n=(n=S(e,r,o,t))?n.range(r,o+1):[],s?n.reverse():n},d.tickFormat=function(e,t){return null==t?C:c(t)},d.nice=function(e,t){var n=h();return(e=S(e,n[0],n[n.length-1],t))?h(Gp(n,e)):d},d.copy=function(){return Yp(d,tv(e,t,n,i,o,s,a,l,c))},d}var nv=function(){return xp.apply(tv(wm,km,Em,zm,qm,Zm,Qm,n_,T_).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},iv=vm((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()})),rv=iv,ov=iv.range,sv=vm((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+36e5*t)}),(function(e,t){return(t-e)/36e5}),(function(e){return e.getUTCHours()})),av=sv,lv=sv.range,cv=vm((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*Lm)}),(function(e,t){return(t-e)/Lm}),(function(e){return e.getUTCMinutes()})),dv=cv,uv=cv.range,hv=function(){return xp.apply(tv(S_,rv,o_,y_,av,dv,Qm,n_,N_).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)};function fv(){var e,t,n,i,r,o=0,s=1,a=jp,l=!1;function c(t){return isNaN(t=+t)?r:a(0===n?.5:(t=(i(t)-e)*n,l?Math.max(0,Math.min(1,t)):t))}return c.domain=function(r){return arguments.length?(e=i(o=+r[0]),t=i(s=+r[1]),n=e===t?0:1/(t-e),c):[o,s]},c.clamp=function(e){return arguments.length?(l=!!e,c):l},c.interpolator=function(e){return arguments.length?(a=e,c):a},c.unknown=function(e){return arguments.length?(r=e,c):r},function(r){return i=r,e=r(o),t=r(s),n=e===t?0:1/(t-e),c}}function gv(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function pv(){var e=$p(fv()(jp));return e.copy=function(){return gv(e,pv())},Lp.apply(e,arguments)}function mv(){var e=nm(fv()).domain([1,10]);return e.copy=function(){return gv(e,mv()).base(e.base())},Lp.apply(e,arguments)}function _v(){var e=sm(fv());return e.copy=function(){return gv(e,_v()).constant(e.constant())},Lp.apply(e,arguments)}function bv(){var e=um(fv());return e.copy=function(){return gv(e,bv()).exponent(e.exponent())},Lp.apply(e,arguments)}function vv(){return bv.apply(null,arguments).exponent(.5)}function yv(){var e=[],t=jp;function n(n){if(!isNaN(n=+n))return t((l(e,n)-1)/(e.length-1))}return n.domain=function(t){if(!arguments.length)return e.slice();e=[];for(var r,o=0,s=t.length;o<s;++o)null==(r=t[o])||isNaN(r=+r)||e.push(r);return e.sort(i),n},n.interpolator=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return yv(t).domain(e)},Lp.apply(n,arguments)}function wv(){var e,t,n,i,r,o,s,a=0,l=.5,c=1,d=jp,u=!1;function h(e){return isNaN(e=+e)?s:(e=.5+((e=+o(e))-t)*(e<t?i:r),d(u?Math.max(0,Math.min(1,e)):e))}return h.domain=function(s){return arguments.length?(e=o(a=+s[0]),t=o(l=+s[1]),n=o(c=+s[2]),i=e===t?0:.5/(t-e),r=t===n?0:.5/(n-t),h):[a,l,c]},h.clamp=function(e){return arguments.length?(u=!!e,h):u},h.interpolator=function(e){return arguments.length?(d=e,h):d},h.unknown=function(e){return arguments.length?(s=e,h):s},function(s){return o=s,e=s(a),t=s(l),n=s(c),i=e===t?0:.5/(t-e),r=t===n?0:.5/(n-t),h}}function Cv(){var e=$p(wv()(jp));return e.copy=function(){return gv(e,Cv())},Lp.apply(e,arguments)}function Sv(){var e=nm(wv()).domain([.1,1,10]);return e.copy=function(){return gv(e,Sv()).base(e.base())},Lp.apply(e,arguments)}function kv(){var e=sm(wv());return e.copy=function(){return gv(e,kv()).constant(e.constant())},Lp.apply(e,arguments)}function xv(){var e=um(wv());return e.copy=function(){return gv(e,xv()).exponent(e.exponent())},Lp.apply(e,arguments)}function Lv(){return xv.apply(null,arguments).exponent(.5)}var Mv=function(e){for(var t=e.length/6|0,n=new Array(t),i=0;i<t;)n[i]="#"+e.slice(6*i,6*++i);return n},Dv=Mv("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),Ev=Mv("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),Tv=Mv("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),Ov=Mv("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),Nv=Mv("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),Iv=Mv("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),Av=Mv("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),Rv=Mv("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),Pv=Mv("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),jv=Mv("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),Fv=function(e){return yn(e[e.length-1])},Bv=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Mv),Wv=Fv(Bv),Hv=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Mv),Yv=Fv(Hv),Vv=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Mv),zv=Fv(Vv),Uv=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Mv),$v=Fv(Uv),qv=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Mv),Kv=Fv(qv),Gv=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Mv),Zv=Fv(Gv),Jv=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Mv),Xv=Fv(Jv),Qv=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Mv),ey=Fv(Qv),ty=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Mv),ny=Fv(ty),iy=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Mv),ry=Fv(iy),oy=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Mv),sy=Fv(oy),ay=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Mv),ly=Fv(ay),cy=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Mv),dy=Fv(cy),uy=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Mv),hy=Fv(uy),fy=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Mv),gy=Fv(fy),py=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Mv),my=Fv(py),_y=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Mv),by=Fv(_y),vy=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Mv),yy=Fv(vy),wy=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Mv),Cy=Fv(wy),Sy=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Mv),ky=Fv(Sy),xy=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Mv),Ly=Fv(xy),My=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Mv),Dy=Fv(My),Ey=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Mv),Ty=Fv(Ey),Oy=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Mv),Ny=Fv(Oy),Iy=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Mv),Ay=Fv(Iy),Ry=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Mv),Py=Fv(Ry),jy=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Mv),Fy=Fv(jy),By=function(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-e*(35.34-e*(2381.73-e*(6402.7-e*(7024.72-2710.57*e)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+e*(170.73+e*(52.82-e*(131.46-e*(176.58-67.37*e)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+e*(442.36-e*(2482.43-e*(6167.24-e*(6614.94-2475.67*e)))))))+")"},Wy=ap(qo(300,.5,0),qo(-240,.5,1)),Hy=ap(qo(-100,.75,.35),qo(80,1.5,.8)),Yy=ap(qo(260,.75,.35),qo(80,1.5,.8)),Vy=qo(),zy=function(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return Vy.h=360*e-100,Vy.s=1.5-1.5*t,Vy.l=.8-.9*t,Vy+""},Uy=Qt(),$y=Math.PI/3,qy=2*Math.PI/3,Ky=function(e){var t;return e=(.5-e)*Math.PI,Uy.r=255*(t=Math.sin(e))*t,Uy.g=255*(t=Math.sin(e+$y))*t,Uy.b=255*(t=Math.sin(e+qy))*t,Uy+""},Gy=function(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+e*(1172.33-e*(10793.56-e*(33300.12-e*(38394.49-14825.05*e)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+707.56*e)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-6838.66*e)))))))+")"};function Zy(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}var Jy=Zy(Mv("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),Xy=Zy(Mv("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),Qy=Zy(Mv("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),ew=Zy(Mv("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),tw=function(e){return Dt(lt(e).call(document.documentElement))},nw=0;function iw(){return new rw}function rw(){this._="@"+(++nw).toString(36)}rw.prototype=iw.prototype={constructor:rw,get:function(e){for(var t=this._;!(t in e);)if(!(e=e.parentNode))return;return e[t]},set:function(e,t){return e[this._]=t},remove:function(e){return this._ in e&&delete e[this._]},toString:function(){return this._}};var ow=function(e){return"string"==typeof e?new xt([document.querySelectorAll(e)],[document.documentElement]):new xt([null==e?[]:e],kt)},sw=function(e,t){null==t&&(t=Rn().touches);for(var n=0,i=t?t.length:0,r=new Array(i);n<i;++n)r[n]=Pn(e,t[n]);return r},aw=function(e){return function(){return e}},lw=Math.abs,cw=Math.atan2,dw=Math.cos,uw=Math.max,hw=Math.min,fw=Math.sin,gw=Math.sqrt,pw=1e-12,mw=Math.PI,_w=mw/2,bw=2*mw;function vw(e){return e>=1?_w:e<=-1?-_w:Math.asin(e)}function yw(e){return e.innerRadius}function ww(e){return e.outerRadius}function Cw(e){return e.startAngle}function Sw(e){return e.endAngle}function kw(e){return e&&e.padAngle}function xw(e,t,n,i,r,o,s){var a=e-n,l=t-i,c=(s?o:-o)/gw(a*a+l*l),d=c*l,u=-c*a,h=e+d,f=t+u,g=n+d,p=i+u,m=(h+g)/2,_=(f+p)/2,b=g-h,v=p-f,y=b*b+v*v,w=r-o,C=h*p-g*f,S=(v<0?-1:1)*gw(uw(0,w*w*y-C*C)),k=(C*v-b*S)/y,x=(-C*b-v*S)/y,L=(C*v+b*S)/y,M=(-C*b+v*S)/y,D=k-m,E=x-_,T=L-m,O=M-_;return D*D+E*E>T*T+O*O&&(k=L,x=M),{cx:k,cy:x,x01:-d,y01:-u,x11:k*(r/w-1),y11:x*(r/w-1)}}var Lw=function(){var e=yw,t=ww,n=aw(0),i=null,r=Cw,o=Sw,s=kw,a=null;function l(){var l,c,d,u=+e.apply(this,arguments),h=+t.apply(this,arguments),f=r.apply(this,arguments)-_w,g=o.apply(this,arguments)-_w,p=lw(g-f),m=g>f;if(a||(a=l=Zr()),h<u&&(c=h,h=u,u=c),h>pw)if(p>bw-pw)a.moveTo(h*dw(f),h*fw(f)),a.arc(0,0,h,f,g,!m),u>pw&&(a.moveTo(u*dw(g),u*fw(g)),a.arc(0,0,u,g,f,m));else{var _,b,v=f,y=g,w=f,C=g,S=p,k=p,x=s.apply(this,arguments)/2,L=x>pw&&(i?+i.apply(this,arguments):gw(u*u+h*h)),M=hw(lw(h-u)/2,+n.apply(this,arguments)),D=M,E=M;if(L>pw){var T=vw(L/u*fw(x)),O=vw(L/h*fw(x));(S-=2*T)>pw?(w+=T*=m?1:-1,C-=T):(S=0,w=C=(f+g)/2),(k-=2*O)>pw?(v+=O*=m?1:-1,y-=O):(k=0,v=y=(f+g)/2)}var N=h*dw(v),I=h*fw(v),A=u*dw(C),R=u*fw(C);if(M>pw){var P,j=h*dw(y),F=h*fw(y),B=u*dw(w),W=u*fw(w);if(p<mw&&(P=function(e,t,n,i,r,o,s,a){var l=n-e,c=i-t,d=s-r,u=a-o,h=u*l-d*c;if(!(h*h<pw))return[e+(h=(d*(t-o)-u*(e-r))/h)*l,t+h*c]}(N,I,B,W,j,F,A,R))){var H=N-P[0],Y=I-P[1],V=j-P[0],z=F-P[1],U=1/fw(((d=(H*V+Y*z)/(gw(H*H+Y*Y)*gw(V*V+z*z)))>1?0:d<-1?mw:Math.acos(d))/2),$=gw(P[0]*P[0]+P[1]*P[1]);D=hw(M,(u-$)/(U-1)),E=hw(M,(h-$)/(U+1))}}k>pw?E>pw?(_=xw(B,W,N,I,h,E,m),b=xw(j,F,A,R,h,E,m),a.moveTo(_.cx+_.x01,_.cy+_.y01),E<M?a.arc(_.cx,_.cy,E,cw(_.y01,_.x01),cw(b.y01,b.x01),!m):(a.arc(_.cx,_.cy,E,cw(_.y01,_.x01),cw(_.y11,_.x11),!m),a.arc(0,0,h,cw(_.cy+_.y11,_.cx+_.x11),cw(b.cy+b.y11,b.cx+b.x11),!m),a.arc(b.cx,b.cy,E,cw(b.y11,b.x11),cw(b.y01,b.x01),!m))):(a.moveTo(N,I),a.arc(0,0,h,v,y,!m)):a.moveTo(N,I),u>pw&&S>pw?D>pw?(_=xw(A,R,j,F,u,-D,m),b=xw(N,I,B,W,u,-D,m),a.lineTo(_.cx+_.x01,_.cy+_.y01),D<M?a.arc(_.cx,_.cy,D,cw(_.y01,_.x01),cw(b.y01,b.x01),!m):(a.arc(_.cx,_.cy,D,cw(_.y01,_.x01),cw(_.y11,_.x11),!m),a.arc(0,0,u,cw(_.cy+_.y11,_.cx+_.x11),cw(b.cy+b.y11,b.cx+b.x11),m),a.arc(b.cx,b.cy,D,cw(b.y11,b.x11),cw(b.y01,b.x01),!m))):a.arc(0,0,u,C,w,m):a.lineTo(A,R)}else a.moveTo(0,0);if(a.closePath(),l)return a=null,l+""||null}return l.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,i=(+r.apply(this,arguments)+ +o.apply(this,arguments))/2-mw/2;return[dw(i)*n,fw(i)*n]},l.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:aw(+t),l):e},l.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:aw(+e),l):t},l.cornerRadius=function(e){return arguments.length?(n="function"==typeof e?e:aw(+e),l):n},l.padRadius=function(e){return arguments.length?(i=null==e?null:"function"==typeof e?e:aw(+e),l):i},l.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:aw(+e),l):r},l.endAngle=function(e){return arguments.length?(o="function"==typeof e?e:aw(+e),l):o},l.padAngle=function(e){return arguments.length?(s="function"==typeof e?e:aw(+e),l):s},l.context=function(e){return arguments.length?(a=null==e?null:e,l):a},l};function Mw(e){this._context=e}Mw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};var Dw=function(e){return new Mw(e)};function Ew(e){return e[0]}function Tw(e){return e[1]}var Ow=function(){var e=Ew,t=Tw,n=aw(!0),i=null,r=Dw,o=null;function s(s){var a,l,c,d=s.length,u=!1;for(null==i&&(o=r(c=Zr())),a=0;a<=d;++a)!(a<d&&n(l=s[a],a,s))===u&&((u=!u)?o.lineStart():o.lineEnd()),u&&o.point(+e(l,a,s),+t(l,a,s));if(c)return o=null,c+""||null}return s.x=function(t){return arguments.length?(e="function"==typeof t?t:aw(+t),s):e},s.y=function(e){return arguments.length?(t="function"==typeof e?e:aw(+e),s):t},s.defined=function(e){return arguments.length?(n="function"==typeof e?e:aw(!!e),s):n},s.curve=function(e){return arguments.length?(r=e,null!=i&&(o=r(i)),s):r},s.context=function(e){return arguments.length?(null==e?i=o=null:o=r(i=e),s):i},s},Nw=function(){var e=Ew,t=null,n=aw(0),i=Tw,r=aw(!0),o=null,s=Dw,a=null;function l(l){var c,d,u,h,f,g=l.length,p=!1,m=new Array(g),_=new Array(g);for(null==o&&(a=s(f=Zr())),c=0;c<=g;++c){if(!(c<g&&r(h=l[c],c,l))===p)if(p=!p)d=c,a.areaStart(),a.lineStart();else{for(a.lineEnd(),a.lineStart(),u=c-1;u>=d;--u)a.point(m[u],_[u]);a.lineEnd(),a.areaEnd()}p&&(m[c]=+e(h,c,l),_[c]=+n(h,c,l),a.point(t?+t(h,c,l):m[c],i?+i(h,c,l):_[c]))}if(f)return a=null,f+""||null}function c(){return Ow().defined(r).curve(s).context(o)}return l.x=function(n){return arguments.length?(e="function"==typeof n?n:aw(+n),t=null,l):e},l.x0=function(t){return arguments.length?(e="function"==typeof t?t:aw(+t),l):e},l.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:aw(+e),l):t},l.y=function(e){return arguments.length?(n="function"==typeof e?e:aw(+e),i=null,l):n},l.y0=function(e){return arguments.length?(n="function"==typeof e?e:aw(+e),l):n},l.y1=function(e){return arguments.length?(i=null==e?null:"function"==typeof e?e:aw(+e),l):i},l.lineX0=l.lineY0=function(){return c().x(e).y(n)},l.lineY1=function(){return c().x(e).y(i)},l.lineX1=function(){return c().x(t).y(n)},l.defined=function(e){return arguments.length?(r="function"==typeof e?e:aw(!!e),l):r},l.curve=function(e){return arguments.length?(s=e,null!=o&&(a=s(o)),l):s},l.context=function(e){return arguments.length?(null==e?o=a=null:a=s(o=e),l):o},l},Iw=function(e,t){return t<e?-1:t>e?1:t>=e?0:NaN},Aw=function(e){return e},Rw=function(){var e=Aw,t=Iw,n=null,i=aw(0),r=aw(bw),o=aw(0);function s(s){var a,l,c,d,u,h=s.length,f=0,g=new Array(h),p=new Array(h),m=+i.apply(this,arguments),_=Math.min(bw,Math.max(-bw,r.apply(this,arguments)-m)),b=Math.min(Math.abs(_)/h,o.apply(this,arguments)),v=b*(_<0?-1:1);for(a=0;a<h;++a)(u=p[g[a]=a]=+e(s[a],a,s))>0&&(f+=u);for(null!=t?g.sort((function(e,n){return t(p[e],p[n])})):null!=n&&g.sort((function(e,t){return n(s[e],s[t])})),a=0,c=f?(_-h*v)/f:0;a<h;++a,m=d)l=g[a],d=m+((u=p[l])>0?u*c:0)+v,p[l]={data:s[l],index:a,value:u,startAngle:m,endAngle:d,padAngle:b};return p}return s.value=function(t){return arguments.length?(e="function"==typeof t?t:aw(+t),s):e},s.sortValues=function(e){return arguments.length?(t=e,n=null,s):t},s.sort=function(e){return arguments.length?(n=e,t=null,s):n},s.startAngle=function(e){return arguments.length?(i="function"==typeof e?e:aw(+e),s):i},s.endAngle=function(e){return arguments.length?(r="function"==typeof e?e:aw(+e),s):r},s.padAngle=function(e){return arguments.length?(o="function"==typeof e?e:aw(+e),s):o},s},Pw=Fw(Dw);function jw(e){this._curve=e}function Fw(e){function t(t){return new jw(e(t))}return t._curve=e,t}function Bw(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(e){return arguments.length?t(Fw(e)):t()._curve},e}jw.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};var Ww=function(){return Bw(Ow().curve(Pw))},Hw=function(){var e=Nw().curve(Pw),t=e.curve,n=e.lineX0,i=e.lineX1,r=e.lineY0,o=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return Bw(n())},delete e.lineX0,e.lineEndAngle=function(){return Bw(i())},delete e.lineX1,e.lineInnerRadius=function(){return Bw(r())},delete e.lineY0,e.lineOuterRadius=function(){return Bw(o())},delete e.lineY1,e.curve=function(e){return arguments.length?t(Fw(e)):t()._curve},e},Yw=function(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]},Vw=Array.prototype.slice;function zw(e){return e.source}function Uw(e){return e.target}function $w(e){var t=zw,n=Uw,i=Ew,r=Tw,o=null;function s(){var s,a=Vw.call(arguments),l=t.apply(this,a),c=n.apply(this,a);if(o||(o=s=Zr()),e(o,+i.apply(this,(a[0]=l,a)),+r.apply(this,a),+i.apply(this,(a[0]=c,a)),+r.apply(this,a)),s)return o=null,s+""||null}return s.source=function(e){return arguments.length?(t=e,s):t},s.target=function(e){return arguments.length?(n=e,s):n},s.x=function(e){return arguments.length?(i="function"==typeof e?e:aw(+e),s):i},s.y=function(e){return arguments.length?(r="function"==typeof e?e:aw(+e),s):r},s.context=function(e){return arguments.length?(o=null==e?null:e,s):o},s}function qw(e,t,n,i,r){e.moveTo(t,n),e.bezierCurveTo(t=(t+i)/2,n,t,r,i,r)}function Kw(e,t,n,i,r){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+r)/2,i,n,i,r)}function Gw(e,t,n,i,r){var o=Yw(t,n),s=Yw(t,n=(n+r)/2),a=Yw(i,n),l=Yw(i,r);e.moveTo(o[0],o[1]),e.bezierCurveTo(s[0],s[1],a[0],a[1],l[0],l[1])}function Zw(){return $w(qw)}function Jw(){return $w(Kw)}function Xw(){var e=$w(Gw);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}var Qw={draw:function(e,t){var n=Math.sqrt(t/mw);e.moveTo(n,0),e.arc(0,0,n,0,bw)}},eC={draw:function(e,t){var n=Math.sqrt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},tC=Math.sqrt(1/3),nC=2*tC,iC={draw:function(e,t){var n=Math.sqrt(t/nC),i=n*tC;e.moveTo(0,-n),e.lineTo(i,0),e.lineTo(0,n),e.lineTo(-i,0),e.closePath()}},rC=Math.sin(mw/10)/Math.sin(7*mw/10),oC=Math.sin(bw/10)*rC,sC=-Math.cos(bw/10)*rC,aC={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),i=oC*n,r=sC*n;e.moveTo(0,-n),e.lineTo(i,r);for(var o=1;o<5;++o){var s=bw*o/5,a=Math.cos(s),l=Math.sin(s);e.lineTo(l*n,-a*n),e.lineTo(a*i-l*r,l*i+a*r)}e.closePath()}},lC={draw:function(e,t){var n=Math.sqrt(t),i=-n/2;e.rect(i,i,n,n)}},cC=Math.sqrt(3),dC={draw:function(e,t){var n=-Math.sqrt(t/(3*cC));e.moveTo(0,2*n),e.lineTo(-cC*n,-n),e.lineTo(cC*n,-n),e.closePath()}},uC=Math.sqrt(3)/2,hC=1/Math.sqrt(12),fC=3*(hC/2+1),gC={draw:function(e,t){var n=Math.sqrt(t/fC),i=n/2,r=n*hC,o=i,s=n*hC+n,a=-o,l=s;e.moveTo(i,r),e.lineTo(o,s),e.lineTo(a,l),e.lineTo(-.5*i-uC*r,uC*i+-.5*r),e.lineTo(-.5*o-uC*s,uC*o+-.5*s),e.lineTo(-.5*a-uC*l,uC*a+-.5*l),e.lineTo(-.5*i+uC*r,-.5*r-uC*i),e.lineTo(-.5*o+uC*s,-.5*s-uC*o),e.lineTo(-.5*a+uC*l,-.5*l-uC*a),e.closePath()}},pC=[Qw,eC,iC,lC,aC,dC,gC],mC=function(){var e=aw(Qw),t=aw(64),n=null;function i(){var i;if(n||(n=i=Zr()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+""||null}return i.type=function(t){return arguments.length?(e="function"==typeof t?t:aw(t),i):e},i.size=function(e){return arguments.length?(t="function"==typeof e?e:aw(+e),i):t},i.context=function(e){return arguments.length?(n=null==e?null:e,i):n},i},_C=function(){};function bC(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function vC(e){this._context=e}vC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:bC(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:bC(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var yC=function(e){return new vC(e)};function wC(e){this._context=e}wC.prototype={areaStart:_C,areaEnd:_C,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:bC(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var CC=function(e){return new wC(e)};function SC(e){this._context=e}SC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,i=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 3:this._point=4;default:bC(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var kC=function(e){return new SC(e)};function xC(e,t){this._basis=new vC(e),this._beta=t}xC.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var i,r=e[0],o=t[0],s=e[n]-r,a=t[n]-o,l=-1;++l<=n;)i=l/n,this._basis.point(this._beta*e[l]+(1-this._beta)*(r+i*s),this._beta*t[l]+(1-this._beta)*(o+i*a));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var LC=function e(t){function n(e){return 1===t?new vC(e):new xC(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function MC(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function DC(e,t){this._context=e,this._k=(1-t)/6}DC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:MC(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:MC(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var EC=function e(t){function n(e){return new DC(e,t)}return n.tension=function(t){return e(+t)},n}(0);function TC(e,t){this._context=e,this._k=(1-t)/6}TC.prototype={areaStart:_C,areaEnd:_C,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:MC(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var OC=function e(t){function n(e){return new TC(e,t)}return n.tension=function(t){return e(+t)},n}(0);function NC(e,t){this._context=e,this._k=(1-t)/6}NC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:MC(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var IC=function e(t){function n(e){return new NC(e,t)}return n.tension=function(t){return e(+t)},n}(0);function AC(e,t,n){var i=e._x1,r=e._y1,o=e._x2,s=e._y2;if(e._l01_a>pw){var a=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);i=(i*a-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,r=(r*a-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>pw){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,d=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*c+e._x1*e._l23_2a-t*e._l12_2a)/d,s=(s*c+e._y1*e._l23_2a-n*e._l12_2a)/d}e._context.bezierCurveTo(i,r,o,s,e._x2,e._y2)}function RC(e,t){this._context=e,this._alpha=t}RC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:AC(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var PC=function e(t){function n(e){return t?new RC(e,t):new DC(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function jC(e,t){this._context=e,this._alpha=t}jC.prototype={areaStart:_C,areaEnd:_C,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:AC(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var FC=function e(t){function n(e){return t?new jC(e,t):new TC(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function BC(e,t){this._context=e,this._alpha=t}BC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:AC(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var WC=function e(t){function n(e){return t?new BC(e,t):new NC(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function HC(e){this._context=e}HC.prototype={areaStart:_C,areaEnd:_C,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};var YC=function(e){return new HC(e)};function VC(e){return e<0?-1:1}function zC(e,t,n){var i=e._x1-e._x0,r=t-e._x1,o=(e._y1-e._y0)/(i||r<0&&-0),s=(n-e._y1)/(r||i<0&&-0),a=(o*r+s*i)/(i+r);return(VC(o)+VC(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(a))||0}function UC(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function $C(e,t,n){var i=e._x0,r=e._y0,o=e._x1,s=e._y1,a=(o-i)/3;e._context.bezierCurveTo(i+a,r+a*t,o-a,s-a*n,o,s)}function qC(e){this._context=e}function KC(e){this._context=new GC(e)}function GC(e){this._context=e}function ZC(e){return new qC(e)}function JC(e){return new KC(e)}function XC(e){this._context=e}function QC(e){var t,n,i=e.length-1,r=new Array(i),o=new Array(i),s=new Array(i);for(r[0]=0,o[0]=2,s[0]=e[0]+2*e[1],t=1;t<i-1;++t)r[t]=1,o[t]=4,s[t]=4*e[t]+2*e[t+1];for(r[i-1]=2,o[i-1]=7,s[i-1]=8*e[i-1]+e[i],t=1;t<i;++t)n=r[t]/o[t-1],o[t]-=n,s[t]-=n*s[t-1];for(r[i-1]=s[i-1]/o[i-1],t=i-2;t>=0;--t)r[t]=(s[t]-r[t+1])/o[t];for(o[i-1]=(e[i]+r[i-1])/2,t=0;t<i-1;++t)o[t]=2*e[t+1]-r[t+1];return[r,o]}qC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:$C(this,this._t0,UC(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,$C(this,UC(this,n=zC(this,e,t)),n);break;default:$C(this,this._t0,n=zC(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(KC.prototype=Object.create(qC.prototype)).point=function(e,t){qC.prototype.point.call(this,t,e)},GC.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,i,r,o){this._context.bezierCurveTo(t,e,i,n,o,r)}},XC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var i=QC(e),r=QC(t),o=0,s=1;s<n;++o,++s)this._context.bezierCurveTo(i[0][o],r[0][o],i[1][o],r[1][o],e[s],t[s]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var eS=function(e){return new XC(e)};function tS(e,t){this._context=e,this._t=t}tS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var nS=function(e){return new tS(e,.5)};function iS(e){return new tS(e,0)}function rS(e){return new tS(e,1)}var oS=function(e,t){if((r=e.length)>1)for(var n,i,r,o=1,s=e[t[0]],a=s.length;o<r;++o)for(i=s,s=e[t[o]],n=0;n<a;++n)s[n][1]+=s[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]},sS=function(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n};function aS(e,t){return e[t]}var lS=function(){var e=aw([]),t=sS,n=oS,i=aS;function r(r){var o,s,a=e.apply(this,arguments),l=r.length,c=a.length,d=new Array(c);for(o=0;o<c;++o){for(var u,h=a[o],f=d[o]=new Array(l),g=0;g<l;++g)f[g]=u=[0,+i(r[g],h,g,r)],u.data=r[g];f.key=h}for(o=0,s=t(d);o<c;++o)d[s[o]].index=o;return n(d,s),d}return r.keys=function(t){return arguments.length?(e="function"==typeof t?t:aw(Vw.call(t)),r):e},r.value=function(e){return arguments.length?(i="function"==typeof e?e:aw(+e),r):i},r.order=function(e){return arguments.length?(t=null==e?sS:"function"==typeof e?e:aw(Vw.call(e)),r):t},r.offset=function(e){return arguments.length?(n=null==e?oS:e,r):n},r},cS=function(e,t){if((i=e.length)>0){for(var n,i,r,o=0,s=e[0].length;o<s;++o){for(r=n=0;n<i;++n)r+=e[n][o][1]||0;if(r)for(n=0;n<i;++n)e[n][o][1]/=r}oS(e,t)}},dS=function(e,t){if((a=e.length)>0)for(var n,i,r,o,s,a,l=0,c=e[t[0]].length;l<c;++l)for(o=s=0,n=0;n<a;++n)(r=(i=e[t[n]][l])[1]-i[0])>0?(i[0]=o,i[1]=o+=r):r<0?(i[1]=s,i[0]=s+=r):(i[0]=0,i[1]=r)},uS=function(e,t){if((n=e.length)>0){for(var n,i=0,r=e[t[0]],o=r.length;i<o;++i){for(var s=0,a=0;s<n;++s)a+=e[s][i][1]||0;r[i][1]+=r[i][0]=-a/2}oS(e,t)}},hS=function(e,t){if((r=e.length)>0&&(i=(n=e[t[0]]).length)>0){for(var n,i,r,o=0,s=1;s<i;++s){for(var a=0,l=0,c=0;a<r;++a){for(var d=e[t[a]],u=d[s][1]||0,h=(u-(d[s-1][1]||0))/2,f=0;f<a;++f){var g=e[t[f]];h+=(g[s][1]||0)-(g[s-1][1]||0)}l+=u,c+=h*u}n[s-1][1]+=n[s-1][0]=o,l&&(o-=c/l)}n[s-1][1]+=n[s-1][0]=o,oS(e,t)}},fS=function(e){var t=e.map(gS);return sS(e).sort((function(e,n){return t[e]-t[n]}))};function gS(e){for(var t,n=-1,i=0,r=e.length,o=-1/0;++n<r;)(t=+e[n][1])>o&&(o=t,i=n);return i}var pS=function(e){var t=e.map(mS);return sS(e).sort((function(e,n){return t[e]-t[n]}))};function mS(e){for(var t,n=0,i=-1,r=e.length;++i<r;)(t=+e[i][1])&&(n+=t);return n}var _S=function(e){return pS(e).reverse()},bS=function(e){var t,n,i=e.length,r=e.map(mS),o=fS(e),s=0,a=0,l=[],c=[];for(t=0;t<i;++t)n=o[t],s<a?(s+=r[n],l.push(n)):(a+=r[n],c.push(n));return c.reverse().concat(l)},vS=function(e){return sS(e).reverse()};var yS=Date.prototype.toISOString?function(e){return e.toISOString()}:N_("%Y-%m-%dT%H:%M:%S.%LZ");var wS=+new Date("2000-01-01T00:00:00.000Z")?function(e){var t=new Date(e);return isNaN(t)?null:t}:I_("%Y-%m-%dT%H:%M:%S.%LZ"),CS=function(e,t,n){var i=new Zn,r=t;return null==t?(i.restart(e,t,n),i):(t=+t,n=null==n?Kn():+n,i.restart((function o(s){s+=r,i.restart(o,r+=t,n),e(s)}),t,n),i)},SS=function(e){return function(){return e}};function kS(e){return e[0]}function xS(e){return e[1]}function LS(){this._=null}function MS(e){e.U=e.C=e.L=e.R=e.P=e.N=null}function DS(e,t){var n=t,i=t.R,r=n.U;r?r.L===n?r.L=i:r.R=i:e._=i,i.U=r,n.U=i,n.R=i.L,n.R&&(n.R.U=n),i.L=n}function ES(e,t){var n=t,i=t.L,r=n.U;r?r.L===n?r.L=i:r.R=i:e._=i,i.U=r,n.U=i,n.L=i.R,n.L&&(n.L.U=n),i.R=n}function TS(e){for(;e.L;)e=e.L;return e}LS.prototype={constructor:LS,insert:function(e,t){var n,i,r;if(e){if(t.P=e,t.N=e.N,e.N&&(e.N.P=t),e.N=t,e.R){for(e=e.R;e.L;)e=e.L;e.L=t}else e.R=t;n=e}else this._?(e=TS(this._),t.P=null,t.N=e,e.P=e.L=t,n=e):(t.P=t.N=null,this._=t,n=null);for(t.L=t.R=null,t.U=n,t.C=!0,e=t;n&&n.C;)n===(i=n.U).L?(r=i.R)&&r.C?(n.C=r.C=!1,i.C=!0,e=i):(e===n.R&&(DS(this,n),n=(e=n).U),n.C=!1,i.C=!0,ES(this,i)):(r=i.L)&&r.C?(n.C=r.C=!1,i.C=!0,e=i):(e===n.L&&(ES(this,n),n=(e=n).U),n.C=!1,i.C=!0,DS(this,i)),n=e.U;this._.C=!1},remove:function(e){e.N&&(e.N.P=e.P),e.P&&(e.P.N=e.N),e.N=e.P=null;var t,n,i,r=e.U,o=e.L,s=e.R;if(n=o?s?TS(s):o:s,r?r.L===e?r.L=n:r.R=n:this._=n,o&&s?(i=n.C,n.C=e.C,n.L=o,o.U=n,n!==s?(r=n.U,n.U=e.U,e=n.R,r.L=e,n.R=s,s.U=n):(n.U=r,r=n,e=n.R)):(i=e.C,e=n),e&&(e.U=r),!i)if(e&&e.C)e.C=!1;else{do{if(e===this._)break;if(e===r.L){if((t=r.R).C&&(t.C=!1,r.C=!0,DS(this,r),t=r.R),t.L&&t.L.C||t.R&&t.R.C){t.R&&t.R.C||(t.L.C=!1,t.C=!0,ES(this,t),t=r.R),t.C=r.C,r.C=t.R.C=!1,DS(this,r),e=this._;break}}else if((t=r.L).C&&(t.C=!1,r.C=!0,ES(this,r),t=r.L),t.L&&t.L.C||t.R&&t.R.C){t.L&&t.L.C||(t.R.C=!1,t.C=!0,DS(this,t),t=r.L),t.C=r.C,r.C=t.L.C=!1,ES(this,r),e=this._;break}t.C=!0,e=r,r=r.U}while(!e.C);e&&(e.C=!1)}}};var OS=LS;function NS(e,t,n,i){var r=[null,null],o=nk.push(r)-1;return r.left=e,r.right=t,n&&AS(r,e,t,n),i&&AS(r,t,e,i),ek[e.index].halfedges.push(o),ek[t.index].halfedges.push(o),r}function IS(e,t,n){var i=[t,n];return i.left=e,i}function AS(e,t,n,i){e[0]||e[1]?e.left===n?e[1]=i:e[0]=i:(e[0]=i,e.left=t,e.right=n)}function RS(e,t,n,i,r){var o,s=e[0],a=e[1],l=s[0],c=s[1],d=0,u=1,h=a[0]-l,f=a[1]-c;if(o=t-l,h||!(o>0)){if(o/=h,h<0){if(o<d)return;o<u&&(u=o)}else if(h>0){if(o>u)return;o>d&&(d=o)}if(o=i-l,h||!(o<0)){if(o/=h,h<0){if(o>u)return;o>d&&(d=o)}else if(h>0){if(o<d)return;o<u&&(u=o)}if(o=n-c,f||!(o>0)){if(o/=f,f<0){if(o<d)return;o<u&&(u=o)}else if(f>0){if(o>u)return;o>d&&(d=o)}if(o=r-c,f||!(o<0)){if(o/=f,f<0){if(o>u)return;o>d&&(d=o)}else if(f>0){if(o<d)return;o<u&&(u=o)}return!(d>0||u<1)||(d>0&&(e[0]=[l+d*h,c+d*f]),u<1&&(e[1]=[l+u*h,c+u*f]),!0)}}}}}function PS(e,t,n,i,r){var o=e[1];if(o)return!0;var s,a,l=e[0],c=e.left,d=e.right,u=c[0],h=c[1],f=d[0],g=d[1],p=(u+f)/2,m=(h+g)/2;if(g===h){if(p<t||p>=i)return;if(u>f){if(l){if(l[1]>=r)return}else l=[p,n];o=[p,r]}else{if(l){if(l[1]<n)return}else l=[p,r];o=[p,n]}}else if(a=m-(s=(u-f)/(g-h))*p,s<-1||s>1)if(u>f){if(l){if(l[1]>=r)return}else l=[(n-a)/s,n];o=[(r-a)/s,r]}else{if(l){if(l[1]<n)return}else l=[(r-a)/s,r];o=[(n-a)/s,n]}else if(h<g){if(l){if(l[0]>=i)return}else l=[t,s*t+a];o=[i,s*i+a]}else{if(l){if(l[0]<t)return}else l=[i,s*i+a];o=[t,s*t+a]}return e[0]=l,e[1]=o,!0}function jS(e,t){var n=e.site,i=t.left,r=t.right;return n===r&&(r=i,i=n),r?Math.atan2(r[1]-i[1],r[0]-i[0]):(n===i?(i=t[1],r=t[0]):(i=t[0],r=t[1]),Math.atan2(i[0]-r[0],r[1]-i[1]))}function FS(e,t){return t[+(t.left!==e.site)]}function BS(e,t){return t[+(t.left===e.site)]}var WS,HS=[];function YS(){MS(this),this.x=this.y=this.arc=this.site=this.cy=null}function VS(e){var t=e.P,n=e.N;if(t&&n){var i=t.site,r=e.site,o=n.site;if(i!==o){var s=r[0],a=r[1],l=i[0]-s,c=i[1]-a,d=o[0]-s,u=o[1]-a,h=2*(l*u-c*d);if(!(h>=-rk)){var f=l*l+c*c,g=d*d+u*u,p=(u*f-c*g)/h,m=(l*g-d*f)/h,_=HS.pop()||new YS;_.arc=e,_.site=r,_.x=p+s,_.y=(_.cy=m+a)+Math.sqrt(p*p+m*m),e.circle=_;for(var b=null,v=tk._;v;)if(_.y<v.y||_.y===v.y&&_.x<=v.x){if(!v.L){b=v.P;break}v=v.L}else{if(!v.R){b=v;break}v=v.R}tk.insert(b,_),b||(WS=_)}}}}function zS(e){var t=e.circle;t&&(t.P||(WS=t.N),tk.remove(t),HS.push(t),MS(t),e.circle=null)}var US=[];function $S(){MS(this),this.edge=this.site=this.circle=null}function qS(e){var t=US.pop()||new $S;return t.site=e,t}function KS(e){zS(e),QS.remove(e),US.push(e),MS(e)}function GS(e){var t=e.circle,n=t.x,i=t.cy,r=[n,i],o=e.P,s=e.N,a=[e];KS(e);for(var l=o;l.circle&&Math.abs(n-l.circle.x)<ik&&Math.abs(i-l.circle.cy)<ik;)o=l.P,a.unshift(l),KS(l),l=o;a.unshift(l),zS(l);for(var c=s;c.circle&&Math.abs(n-c.circle.x)<ik&&Math.abs(i-c.circle.cy)<ik;)s=c.N,a.push(c),KS(c),c=s;a.push(c),zS(c);var d,u=a.length;for(d=1;d<u;++d)c=a[d],l=a[d-1],AS(c.edge,l.site,c.site,r);l=a[0],(c=a[u-1]).edge=NS(l.site,c.site,null,r),VS(l),VS(c)}function ZS(e){for(var t,n,i,r,o=e[0],s=e[1],a=QS._;a;)if((i=JS(a,s)-o)>ik)a=a.L;else{if(!((r=o-XS(a,s))>ik)){i>-ik?(t=a.P,n=a):r>-ik?(t=a,n=a.N):t=n=a;break}if(!a.R){t=a;break}a=a.R}!function(e){ek[e.index]={site:e,halfedges:[]}}(e);var l=qS(e);if(QS.insert(t,l),t||n){if(t===n)return zS(t),n=qS(t.site),QS.insert(l,n),l.edge=n.edge=NS(t.site,l.site),VS(t),void VS(n);if(n){zS(t),zS(n);var c=t.site,d=c[0],u=c[1],h=e[0]-d,f=e[1]-u,g=n.site,p=g[0]-d,m=g[1]-u,_=2*(h*m-f*p),b=h*h+f*f,v=p*p+m*m,y=[(m*b-f*v)/_+d,(h*v-p*b)/_+u];AS(n.edge,c,g,y),l.edge=NS(c,e,null,y),n.edge=NS(e,g,null,y),VS(t),VS(n)}else l.edge=NS(t.site,l.site)}}function JS(e,t){var n=e.site,i=n[0],r=n[1],o=r-t;if(!o)return i;var s=e.P;if(!s)return-1/0;var a=(n=s.site)[0],l=n[1],c=l-t;if(!c)return a;var d=a-i,u=1/o-1/c,h=d/c;return u?(-h+Math.sqrt(h*h-2*u*(d*d/(-2*c)-l+c/2+r-o/2)))/u+i:(i+a)/2}function XS(e,t){var n=e.N;if(n)return JS(n,t);var i=e.site;return i[1]===t?i[0]:1/0}var QS,ek,tk,nk,ik=1e-6,rk=1e-12;function ok(e,t){return t[1]-e[1]||t[0]-e[0]}function sk(e,t){var n,i,r,o=e.sort(ok).pop();for(nk=[],ek=new Array(e.length),QS=new OS,tk=new OS;;)if(r=WS,o&&(!r||o[1]<r.y||o[1]===r.y&&o[0]<r.x))o[0]===n&&o[1]===i||(ZS(o),n=o[0],i=o[1]),o=e.pop();else{if(!r)break;GS(r.arc)}if(function(){for(var e,t,n,i,r=0,o=ek.length;r<o;++r)if((e=ek[r])&&(i=(t=e.halfedges).length)){var s=new Array(i),a=new Array(i);for(n=0;n<i;++n)s[n]=n,a[n]=jS(e,nk[t[n]]);for(s.sort((function(e,t){return a[t]-a[e]})),n=0;n<i;++n)a[n]=t[s[n]];for(n=0;n<i;++n)t[n]=a[n]}}(),t){var s=+t[0][0],a=+t[0][1],l=+t[1][0],c=+t[1][1];!function(e,t,n,i){for(var r,o=nk.length;o--;)PS(r=nk[o],e,t,n,i)&&RS(r,e,t,n,i)&&(Math.abs(r[0][0]-r[1][0])>ik||Math.abs(r[0][1]-r[1][1])>ik)||delete nk[o]}(s,a,l,c),function(e,t,n,i){var r,o,s,a,l,c,d,u,h,f,g,p,m=ek.length,_=!0;for(r=0;r<m;++r)if(o=ek[r]){for(s=o.site,a=(l=o.halfedges).length;a--;)nk[l[a]]||l.splice(a,1);for(a=0,c=l.length;a<c;)g=(f=BS(o,nk[l[a]]))[0],p=f[1],u=(d=FS(o,nk[l[++a%c]]))[0],h=d[1],(Math.abs(g-u)>ik||Math.abs(p-h)>ik)&&(l.splice(a,0,nk.push(IS(s,f,Math.abs(g-e)<ik&&i-p>ik?[e,Math.abs(u-e)<ik?h:i]:Math.abs(p-i)<ik&&n-g>ik?[Math.abs(h-i)<ik?u:n,i]:Math.abs(g-n)<ik&&p-t>ik?[n,Math.abs(u-n)<ik?h:t]:Math.abs(p-t)<ik&&g-e>ik?[Math.abs(h-t)<ik?u:e,t]:null))-1),++c);c&&(_=!1)}if(_){var b,v,y,w=1/0;for(r=0,_=null;r<m;++r)(o=ek[r])&&(y=(b=(s=o.site)[0]-e)*b+(v=s[1]-t)*v)<w&&(w=y,_=o);if(_){var C=[e,t],S=[e,i],k=[n,i],x=[n,t];_.halfedges.push(nk.push(IS(s=_.site,C,S))-1,nk.push(IS(s,S,k))-1,nk.push(IS(s,k,x))-1,nk.push(IS(s,x,C))-1)}}for(r=0;r<m;++r)(o=ek[r])&&(o.halfedges.length||delete ek[r])}(s,a,l,c)}this.edges=nk,this.cells=ek,QS=tk=nk=ek=null}sk.prototype={constructor:sk,polygons:function(){var e=this.edges;return this.cells.map((function(t){var n=t.halfedges.map((function(n){return FS(t,e[n])}));return n.data=t.site.data,n}))},triangles:function(){var e=[],t=this.edges;return this.cells.forEach((function(n,i){if(o=(r=n.halfedges).length)for(var r,o,s,a,l,c,d=n.site,u=-1,h=t[r[o-1]],f=h.left===d?h.right:h.left;++u<o;)s=f,f=(h=t[r[u]]).left===d?h.right:h.left,s&&f&&i<s.index&&i<f.index&&(l=s,c=f,((a=d)[0]-c[0])*(l[1]-a[1])-(a[0]-l[0])*(c[1]-a[1])<0)&&e.push([d.data,s.data,f.data])})),e},links:function(){return this.edges.filter((function(e){return e.right})).map((function(e){return{source:e.left.data,target:e.right.data}}))},find:function(e,t,n){for(var i,r,o=this,s=o._found||0,a=o.cells.length;!(r=o.cells[s]);)if(++s>=a)return null;var l=e-r.site[0],c=t-r.site[1],d=l*l+c*c;do{r=o.cells[i=s],s=null,r.halfedges.forEach((function(n){var i=o.edges[n],a=i.left;if(a!==r.site&&a||(a=i.right)){var l=e-a[0],c=t-a[1],u=l*l+c*c;u<d&&(d=u,s=a.index)}}))}while(null!==s);return o._found=i,null==n||d<=n*n?r.site:null}};var ak=function(){var e=kS,t=xS,n=null;function i(i){return new sk(i.map((function(n,r){var o=[Math.round(e(n,r,i)/ik)*ik,Math.round(t(n,r,i)/ik)*ik];return o.index=r,o.data=n,o})),n)}return i.polygons=function(e){return i(e).polygons()},i.links=function(e){return i(e).links()},i.triangles=function(e){return i(e).triangles()},i.x=function(t){return arguments.length?(e="function"==typeof t?t:SS(+t),i):e},i.y=function(e){return arguments.length?(t="function"==typeof e?e:SS(+e),i):t},i.extent=function(e){return arguments.length?(n=null==e?null:[[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]],i):n&&[[n[0][0],n[0][1]],[n[1][0],n[1][1]]]},i.size=function(e){return arguments.length?(n=null==e?null:[[0,0],[+e[0],+e[1]]],i):n&&[n[1][0]-n[0][0],n[1][1]-n[0][1]]},i},lk=function(e){return function(){return e}};function ck(e,t,n){this.target=e,this.type=t,this.transform=n}function dk(e,t,n){this.k=e,this.x=t,this.y=n}dk.prototype={constructor:dk,scale:function(e){return 1===e?this:new dk(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new dk(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var uk=new dk(1,0,0);function hk(e){for(;!e.__zoom;)if(!(e=e.parentNode))return uk;return e.__zoom}function fk(){gt.stopImmediatePropagation()}hk.prototype=dk.prototype;var gk=function(){gt.preventDefault(),gt.stopImmediatePropagation()};function pk(){return!gt.ctrlKey&&!gt.button}function mk(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e).hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]:[[0,0],[e.clientWidth,e.clientHeight]]}function _k(){return this.__zoom||uk}function bk(){return-gt.deltaY*(1===gt.deltaMode?.05:gt.deltaMode?1:.002)}function vk(){return navigator.maxTouchPoints||"ontouchstart"in this}function yk(e,t,n){var i=e.invertX(t[0][0])-n[0][0],r=e.invertX(t[1][0])-n[1][0],o=e.invertY(t[0][1])-n[0][1],s=e.invertY(t[1][1])-n[1][1];return e.translate(r>i?(i+r)/2:Math.min(0,i)||Math.max(0,r),s>o?(o+s)/2:Math.min(0,o)||Math.max(0,s))}var wk=function(){var e,t,n=pk,i=mk,r=yk,o=bk,s=vk,a=[0,1/0],l=[[-1/0,-1/0],[1/0,1/0]],c=250,d=Jg,u=pe("start","zoom","end"),h=500,f=150,g=0;function p(e){e.property("__zoom",_k).on("wheel.zoom",C).on("mousedown.zoom",S).on("dblclick.zoom",k).filter(s).on("touchstart.zoom",x).on("touchmove.zoom",L).on("touchend.zoom touchcancel.zoom",M).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function m(e,t){return(t=Math.max(a[0],Math.min(a[1],t)))===e.k?e:new dk(t,e.x,e.y)}function _(e,t,n){var i=t[0]-n[0]*e.k,r=t[1]-n[1]*e.k;return i===e.x&&r===e.y?e:new dk(e.k,i,r)}function b(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function v(e,t,n){e.on("start.zoom",(function(){y(this,arguments).start()})).on("interrupt.zoom end.zoom",(function(){y(this,arguments).end()})).tween("zoom",(function(){var e=this,r=arguments,o=y(e,r),s=i.apply(e,r),a=null==n?b(s):"function"==typeof n?n.apply(e,r):n,l=Math.max(s[1][0]-s[0][0],s[1][1]-s[0][1]),c=e.__zoom,u="function"==typeof t?t.apply(e,r):t,h=d(c.invert(a).concat(l/c.k),u.invert(a).concat(l/u.k));return function(e){if(1===e)e=u;else{var t=h(e),n=l/t[2];e=new dk(n,a[0]-t[0]*n,a[1]-t[1]*n)}o.zoom(null,e)}}))}function y(e,t,n){return!n&&e.__zooming||new w(e,t)}function w(e,t){this.that=e,this.args=t,this.active=0,this.extent=i.apply(e,t),this.taps=0}function C(){if(n.apply(this,arguments)){var e=y(this,arguments),t=this.__zoom,i=Math.max(a[0],Math.min(a[1],t.k*Math.pow(2,o.apply(this,arguments)))),s=Fn(this);if(e.wheel)e.mouse[0][0]===s[0]&&e.mouse[0][1]===s[1]||(e.mouse[1]=t.invert(e.mouse[0]=s)),clearTimeout(e.wheel);else{if(t.k===i)return;e.mouse=[s,t.invert(s)],yi(this),e.start()}gk(),e.wheel=setTimeout((function(){e.wheel=null,e.end()}),f),e.zoom("mouse",r(_(m(t,i),e.mouse[0],e.mouse[1]),e.extent,l))}}function S(){if(!t&&n.apply(this,arguments)){var e=y(this,arguments,!0),i=Dt(gt.view).on("mousemove.zoom",(function(){if(gk(),!e.moved){var t=gt.clientX-s,n=gt.clientY-a;e.moved=t*t+n*n>g}e.zoom("mouse",r(_(e.that.__zoom,e.mouse[0]=Fn(e.that),e.mouse[1]),e.extent,l))}),!0).on("mouseup.zoom",(function(){i.on("mousemove.zoom mouseup.zoom",null),Nt(gt.view,e.moved),gk(),e.end()}),!0),o=Fn(this),s=gt.clientX,a=gt.clientY;Ot(gt.view),fk(),e.mouse=[o,this.__zoom.invert(o)],yi(this),e.start()}}function k(){if(n.apply(this,arguments)){var e=this.__zoom,t=Fn(this),o=e.invert(t),s=e.k*(gt.shiftKey?.5:2),a=r(_(m(e,s),t,o),i.apply(this,arguments),l);gk(),c>0?Dt(this).transition().duration(c).call(v,a,t):Dt(this).call(p.transform,a)}}function x(){if(n.apply(this,arguments)){var t,i,r,o,s=gt.touches,a=s.length,l=y(this,arguments,gt.changedTouches.length===a);for(fk(),i=0;i<a;++i)r=s[i],o=[o=jn(this,s,r.identifier),this.__zoom.invert(o),r.identifier],l.touch0?l.touch1||l.touch0[2]===o[2]||(l.touch1=o,l.taps=0):(l.touch0=o,t=!0,l.taps=1+!!e);e&&(e=clearTimeout(e)),t&&(l.taps<2&&(e=setTimeout((function(){e=null}),h)),yi(this),l.start())}}function L(){if(this.__zooming){var t,n,i,o,s=y(this,arguments),a=gt.changedTouches,c=a.length;for(gk(),e&&(e=clearTimeout(e)),s.taps=0,t=0;t<c;++t)n=a[t],i=jn(this,a,n.identifier),s.touch0&&s.touch0[2]===n.identifier?s.touch0[0]=i:s.touch1&&s.touch1[2]===n.identifier&&(s.touch1[0]=i);if(n=s.that.__zoom,s.touch1){var d=s.touch0[0],u=s.touch0[1],h=s.touch1[0],f=s.touch1[1],g=(g=h[0]-d[0])*g+(g=h[1]-d[1])*g,p=(p=f[0]-u[0])*p+(p=f[1]-u[1])*p;n=m(n,Math.sqrt(g/p)),i=[(d[0]+h[0])/2,(d[1]+h[1])/2],o=[(u[0]+f[0])/2,(u[1]+f[1])/2]}else{if(!s.touch0)return;i=s.touch0[0],o=s.touch0[1]}s.zoom("touch",r(_(n,i,o),s.extent,l))}}function M(){if(this.__zooming){var e,n,i=y(this,arguments),r=gt.changedTouches,o=r.length;for(fk(),t&&clearTimeout(t),t=setTimeout((function(){t=null}),h),e=0;e<o;++e)n=r[e],i.touch0&&i.touch0[2]===n.identifier?delete i.touch0:i.touch1&&i.touch1[2]===n.identifier&&delete i.touch1;if(i.touch1&&!i.touch0&&(i.touch0=i.touch1,delete i.touch1),i.touch0)i.touch0[1]=this.__zoom.invert(i.touch0[0]);else if(i.end(),2===i.taps){var s=Dt(this).on("dblclick.zoom");s&&s.apply(this,arguments)}}}return p.transform=function(e,t,n){var i=e.selection?e.selection():e;i.property("__zoom",_k),e!==i?v(e,t,n):i.interrupt().each((function(){y(this,arguments).start().zoom(null,"function"==typeof t?t.apply(this,arguments):t).end()}))},p.scaleBy=function(e,t,n){p.scaleTo(e,(function(){var e=this.__zoom.k,n="function"==typeof t?t.apply(this,arguments):t;return e*n}),n)},p.scaleTo=function(e,t,n){p.transform(e,(function(){var e=i.apply(this,arguments),o=this.__zoom,s=null==n?b(e):"function"==typeof n?n.apply(this,arguments):n,a=o.invert(s),c="function"==typeof t?t.apply(this,arguments):t;return r(_(m(o,c),s,a),e,l)}),n)},p.translateBy=function(e,t,n){p.transform(e,(function(){return r(this.__zoom.translate("function"==typeof t?t.apply(this,arguments):t,"function"==typeof n?n.apply(this,arguments):n),i.apply(this,arguments),l)}))},p.translateTo=function(e,t,n,o){p.transform(e,(function(){var e=i.apply(this,arguments),s=this.__zoom,a=null==o?b(e):"function"==typeof o?o.apply(this,arguments):o;return r(uk.translate(a[0],a[1]).scale(s.k).translate("function"==typeof t?-t.apply(this,arguments):-t,"function"==typeof n?-n.apply(this,arguments):-n),e,l)}),o)},w.prototype={start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(e,t){return this.mouse&&"mouse"!==e&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&"touch"!==e&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&"touch"!==e&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(e){yt(new ck(p,e,this.that.__zoom),u.apply,u,[e,this.that,this.args])}},p.wheelDelta=function(e){return arguments.length?(o="function"==typeof e?e:lk(+e),p):o},p.filter=function(e){return arguments.length?(n="function"==typeof e?e:lk(!!e),p):n},p.touchable=function(e){return arguments.length?(s="function"==typeof e?e:lk(!!e),p):s},p.extent=function(e){return arguments.length?(i="function"==typeof e?e:lk([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),p):i},p.scaleExtent=function(e){return arguments.length?(a[0]=+e[0],a[1]=+e[1],p):[a[0],a[1]]},p.translateExtent=function(e){return arguments.length?(l[0][0]=+e[0][0],l[1][0]=+e[1][0],l[0][1]=+e[0][1],l[1][1]=+e[1][1],p):[[l[0][0],l[0][1]],[l[1][0],l[1][1]]]},p.constrain=function(e){return arguments.length?(r=e,p):r},p.duration=function(e){return arguments.length?(c=+e,p):c},p.interpolate=function(e){return arguments.length?(d=e,p):d},p.on=function(){var e=u.on.apply(u,arguments);return e===u?p:e},p.clickDistance=function(e){return arguments.length?(g=(e=+e)*e,p):Math.sqrt(g)},p};n.d(t,"version",(function(){return"5.14.2"})),n.d(t,"bisect",(function(){return l})),n.d(t,"bisectRight",(function(){return s})),n.d(t,"bisectLeft",(function(){return a})),n.d(t,"ascending",(function(){return i})),n.d(t,"bisector",(function(){return r})),n.d(t,"cross",(function(){return u})),n.d(t,"descending",(function(){return h})),n.d(t,"deviation",(function(){return p})),n.d(t,"extent",(function(){return m})),n.d(t,"histogram",(function(){return T})),n.d(t,"thresholdFreedmanDiaconis",(function(){return N})),n.d(t,"thresholdScott",(function(){return I})),n.d(t,"thresholdSturges",(function(){return E})),n.d(t,"max",(function(){return A})),n.d(t,"mean",(function(){return R})),n.d(t,"median",(function(){return P})),n.d(t,"merge",(function(){return j})),n.d(t,"min",(function(){return F})),n.d(t,"pairs",(function(){return c})),n.d(t,"permute",(function(){return B})),n.d(t,"quantile",(function(){return O})),n.d(t,"range",(function(){return C})),n.d(t,"scan",(function(){return W})),n.d(t,"shuffle",(function(){return H})),n.d(t,"sum",(function(){return Y})),n.d(t,"ticks",(function(){return L})),n.d(t,"tickIncrement",(function(){return M})),n.d(t,"tickStep",(function(){return D})),n.d(t,"transpose",(function(){return V})),n.d(t,"variance",(function(){return g})),n.d(t,"zip",(function(){return U})),n.d(t,"axisTop",(function(){return oe})),n.d(t,"axisRight",(function(){return se})),n.d(t,"axisBottom",(function(){return ae})),n.d(t,"axisLeft",(function(){return le})),n.d(t,"brush",(function(){return Ir})),n.d(t,"brushX",(function(){return Or})),n.d(t,"brushY",(function(){return Nr})),n.d(t,"brushSelection",(function(){return Tr})),n.d(t,"chord",(function(){return Yr})),n.d(t,"ribbon",(function(){return no})),n.d(t,"nest",(function(){return so})),n.d(t,"set",(function(){return po})),n.d(t,"map",(function(){return oo})),n.d(t,"keys",(function(){return mo})),n.d(t,"values",(function(){return _o})),n.d(t,"entries",(function(){return bo})),n.d(t,"color",(function(){return Gt})),n.d(t,"rgb",(function(){return Qt})),n.d(t,"hsl",(function(){return an})),n.d(t,"lab",(function(){return To})),n.d(t,"hcl",(function(){return Fo})),n.d(t,"lch",(function(){return jo})),n.d(t,"gray",(function(){return Eo})),n.d(t,"cubehelix",(function(){return qo})),n.d(t,"contours",(function(){return rs})),n.d(t,"contourDensity",(function(){return ds})),n.d(t,"dispatch",(function(){return pe})),n.d(t,"drag",(function(){return _s})),n.d(t,"dragDisable",(function(){return Ot})),n.d(t,"dragEnable",(function(){return Nt})),n.d(t,"dsvFormat",(function(){return Ms})),n.d(t,"csvParse",(function(){return Es})),n.d(t,"csvParseRows",(function(){return Ts})),n.d(t,"csvFormat",(function(){return Os})),n.d(t,"csvFormatBody",(function(){return Ns})),n.d(t,"csvFormatRows",(function(){return Is})),n.d(t,"csvFormatRow",(function(){return As})),n.d(t,"csvFormatValue",(function(){return Rs})),n.d(t,"tsvParse",(function(){return js})),n.d(t,"tsvParseRows",(function(){return Fs})),n.d(t,"tsvFormat",(function(){return Bs})),n.d(t,"tsvFormatBody",(function(){return Ws})),n.d(t,"tsvFormatRows",(function(){return Hs})),n.d(t,"tsvFormatRow",(function(){return Ys})),n.d(t,"tsvFormatValue",(function(){return Vs})),n.d(t,"autoType",(function(){return zs})),n.d(t,"easeLinear",(function(){return $s})),n.d(t,"easeQuad",(function(){return Gs})),n.d(t,"easeQuadIn",(function(){return qs})),n.d(t,"easeQuadOut",(function(){return Ks})),n.d(t,"easeQuadInOut",(function(){return Gs})),n.d(t,"easeCubic",(function(){return nr})),n.d(t,"easeCubicIn",(function(){return er})),n.d(t,"easeCubicOut",(function(){return tr})),n.d(t,"easeCubicInOut",(function(){return nr})),n.d(t,"easePoly",(function(){return Xs})),n.d(t,"easePolyIn",(function(){return Zs})),n.d(t,"easePolyOut",(function(){return Js})),n.d(t,"easePolyInOut",(function(){return Xs})),n.d(t,"easeSin",(function(){return ia})),n.d(t,"easeSinIn",(function(){return ta})),n.d(t,"easeSinOut",(function(){return na})),n.d(t,"easeSinInOut",(function(){return ia})),n.d(t,"easeExp",(function(){return sa})),n.d(t,"easeExpIn",(function(){return ra})),n.d(t,"easeExpOut",(function(){return oa})),n.d(t,"easeExpInOut",(function(){return sa})),n.d(t,"easeCircle",(function(){return ca})),n.d(t,"easeCircleIn",(function(){return aa})),n.d(t,"easeCircleOut",(function(){return la})),n.d(t,"easeCircleInOut",(function(){return ca})),n.d(t,"easeBounce",(function(){return wa})),n.d(t,"easeBounceIn",(function(){return ya})),n.d(t,"easeBounceOut",(function(){return wa})),n.d(t,"easeBounceInOut",(function(){return Ca})),n.d(t,"easeBack",(function(){return xa})),n.d(t,"easeBackIn",(function(){return Sa})),n.d(t,"easeBackOut",(function(){return ka})),n.d(t,"easeBackInOut",(function(){return xa})),n.d(t,"easeElastic",(function(){return Da})),n.d(t,"easeElasticIn",(function(){return Ma})),n.d(t,"easeElasticOut",(function(){return Da})),n.d(t,"easeElasticInOut",(function(){return Ea})),n.d(t,"blob",(function(){return Oa})),n.d(t,"buffer",(function(){return Ia})),n.d(t,"dsv",(function(){return ja})),n.d(t,"csv",(function(){return Fa})),n.d(t,"tsv",(function(){return Ba})),n.d(t,"image",(function(){return Wa})),n.d(t,"json",(function(){return Ya})),n.d(t,"text",(function(){return Ra})),n.d(t,"xml",(function(){return za})),n.d(t,"html",(function(){return Ua})),n.d(t,"svg",(function(){return $a})),n.d(t,"forceCenter",(function(){return qa})),n.d(t,"forceCollide",(function(){return sl})),n.d(t,"forceLink",(function(){return cl})),n.d(t,"forceManyBody",(function(){return pl})),n.d(t,"forceRadial",(function(){return ml})),n.d(t,"forceSimulation",(function(){return gl})),n.d(t,"forceX",(function(){return _l})),n.d(t,"forceY",(function(){return bl})),n.d(t,"formatDefaultLocale",(function(){return Rl})),n.d(t,"format",(function(){return Ll})),n.d(t,"formatPrefix",(function(){return Ml})),n.d(t,"formatLocale",(function(){return Al})),n.d(t,"formatSpecifier",(function(){return Cl})),n.d(t,"FormatSpecifier",(function(){return Sl})),n.d(t,"precisionFixed",(function(){return Pl})),n.d(t,"precisionPrefix",(function(){return jl})),n.d(t,"precisionRound",(function(){return Fl})),n.d(t,"geoArea",(function(){return Oc})),n.d(t,"geoBounds",(function(){return Sd})),n.d(t,"geoCentroid",(function(){return Rd})),n.d(t,"geoCircle",(function(){return $d})),n.d(t,"geoClipAntimeridian",(function(){return ru})),n.d(t,"geoClipCircle",(function(){return ou})),n.d(t,"geoClipExtent",(function(){return fu})),n.d(t,"geoClipRectangle",(function(){return cu})),n.d(t,"geoContains",(function(){return Ou})),n.d(t,"geoDistance",(function(){return Cu})),n.d(t,"geoGraticule",(function(){return Au})),n.d(t,"geoGraticule10",(function(){return Ru})),n.d(t,"geoInterpolate",(function(){return Wu})),n.d(t,"geoLength",(function(){return vu})),n.d(t,"geoPath",(function(){return Fh})),n.d(t,"geoAlbers",(function(){return of})),n.d(t,"geoAlbersUsa",(function(){return sf})),n.d(t,"geoAzimuthalEqualArea",(function(){return df})),n.d(t,"geoAzimuthalEqualAreaRaw",(function(){return cf})),n.d(t,"geoAzimuthalEquidistant",(function(){return hf})),n.d(t,"geoAzimuthalEquidistantRaw",(function(){return uf})),n.d(t,"geoConicConformal",(function(){return bf})),n.d(t,"geoConicConformalRaw",(function(){return _f})),n.d(t,"geoConicEqualArea",(function(){return rf})),n.d(t,"geoConicEqualAreaRaw",(function(){return nf})),n.d(t,"geoConicEquidistant",(function(){return Cf})),n.d(t,"geoConicEquidistantRaw",(function(){return wf})),n.d(t,"geoEqualEarth",(function(){return Ef})),n.d(t,"geoEqualEarthRaw",(function(){return Df})),n.d(t,"geoEquirectangular",(function(){return yf})),n.d(t,"geoEquirectangularRaw",(function(){return vf})),n.d(t,"geoGnomonic",(function(){return Of})),n.d(t,"geoGnomonicRaw",(function(){return Tf})),n.d(t,"geoIdentity",(function(){return If})),n.d(t,"geoProjection",(function(){return Qh})),n.d(t,"geoProjectionMutator",(function(){return ef})),n.d(t,"geoMercator",(function(){return gf})),n.d(t,"geoMercatorRaw",(function(){return ff})),n.d(t,"geoNaturalEarth1",(function(){return Rf})),n.d(t,"geoNaturalEarth1Raw",(function(){return Af})),n.d(t,"geoOrthographic",(function(){return jf})),n.d(t,"geoOrthographicRaw",(function(){return Pf})),n.d(t,"geoStereographic",(function(){return Bf})),n.d(t,"geoStereographicRaw",(function(){return Ff})),n.d(t,"geoTransverseMercator",(function(){return Hf})),n.d(t,"geoTransverseMercatorRaw",(function(){return Wf})),n.d(t,"geoRotation",(function(){return Vd})),n.d(t,"geoStream",(function(){return Sc})),n.d(t,"geoTransform",(function(){return Bh})),n.d(t,"cluster",(function(){return Uf})),n.d(t,"hierarchy",(function(){return qf})),n.d(t,"pack",(function(){return bg})),n.d(t,"packSiblings",(function(){return hg})),n.d(t,"packEnclose",(function(){return Qf})),n.d(t,"partition",(function(){return kg})),n.d(t,"stratify",(function(){return Tg})),n.d(t,"tree",(function(){return jg})),n.d(t,"treemap",(function(){return Yg})),n.d(t,"treemapBinary",(function(){return Vg})),n.d(t,"treemapDice",(function(){return Sg})),n.d(t,"treemapSlice",(function(){return Fg})),n.d(t,"treemapSliceDice",(function(){return zg})),n.d(t,"treemapSquarify",(function(){return Hg})),n.d(t,"treemapResquarify",(function(){return Ug})),n.d(t,"interpolate",(function(){return An})),n.d(t,"interpolateArray",(function(){return kn})),n.d(t,"interpolateBasis",(function(){return un})),n.d(t,"interpolateBasisClosed",(function(){return hn})),n.d(t,"interpolateDate",(function(){return Ln})),n.d(t,"interpolateDiscrete",(function(){return $g})),n.d(t,"interpolateHue",(function(){return qg})),n.d(t,"interpolateNumber",(function(){return Mn})),n.d(t,"interpolateNumberArray",(function(){return Cn})),n.d(t,"interpolateObject",(function(){return Dn})),n.d(t,"interpolateRound",(function(){return Kg})),n.d(t,"interpolateString",(function(){return In})),n.d(t,"interpolateTransformCss",(function(){return xi})),n.d(t,"interpolateTransformSvg",(function(){return Li})),n.d(t,"interpolateZoom",(function(){return Jg})),n.d(t,"interpolateRgb",(function(){return bn})),n.d(t,"interpolateRgbBasis",(function(){return yn})),n.d(t,"interpolateRgbBasisClosed",(function(){return wn})),n.d(t,"interpolateHsl",(function(){return Qg})),n.d(t,"interpolateHslLong",(function(){return ep})),n.d(t,"interpolateLab",(function(){return tp})),n.d(t,"interpolateHcl",(function(){return ip})),n.d(t,"interpolateHclLong",(function(){return rp})),n.d(t,"interpolateCubehelix",(function(){return sp})),n.d(t,"interpolateCubehelixLong",(function(){return ap})),n.d(t,"piecewise",(function(){return lp})),n.d(t,"quantize",(function(){return cp})),n.d(t,"path",(function(){return Zr})),n.d(t,"polygonArea",(function(){return dp})),n.d(t,"polygonCentroid",(function(){return up})),n.d(t,"polygonHull",(function(){return pp})),n.d(t,"polygonContains",(function(){return mp})),n.d(t,"polygonLength",(function(){return _p})),n.d(t,"quadtree",(function(){return el})),n.d(t,"randomUniform",(function(){return vp})),n.d(t,"randomNormal",(function(){return yp})),n.d(t,"randomLogNormal",(function(){return wp})),n.d(t,"randomBates",(function(){return Sp})),n.d(t,"randomIrwinHall",(function(){return Cp})),n.d(t,"randomExponential",(function(){return kp})),n.d(t,"scaleBand",(function(){return Np})),n.d(t,"scalePoint",(function(){return Ip})),n.d(t,"scaleIdentity",(function(){return Kp})),n.d(t,"scaleLinear",(function(){return qp})),n.d(t,"scaleLog",(function(){return im})),n.d(t,"scaleSymlog",(function(){return am})),n.d(t,"scaleOrdinal",(function(){return Op})),n.d(t,"scaleImplicit",(function(){return Tp})),n.d(t,"scalePow",(function(){return hm})),n.d(t,"scaleSqrt",(function(){return fm})),n.d(t,"scaleQuantile",(function(){return gm})),n.d(t,"scaleQuantize",(function(){return pm})),n.d(t,"scaleThreshold",(function(){return mm})),n.d(t,"scaleTime",(function(){return nv})),n.d(t,"scaleUtc",(function(){return hv})),n.d(t,"scaleSequential",(function(){return pv})),n.d(t,"scaleSequentialLog",(function(){return mv})),n.d(t,"scaleSequentialPow",(function(){return bv})),n.d(t,"scaleSequentialSqrt",(function(){return vv})),n.d(t,"scaleSequentialSymlog",(function(){return _v})),n.d(t,"scaleSequentialQuantile",(function(){return yv})),n.d(t,"scaleDiverging",(function(){return Cv})),n.d(t,"scaleDivergingLog",(function(){return Sv})),n.d(t,"scaleDivergingPow",(function(){return xv})),n.d(t,"scaleDivergingSqrt",(function(){return Lv})),n.d(t,"scaleDivergingSymlog",(function(){return kv})),n.d(t,"tickFormat",(function(){return Up})),n.d(t,"schemeCategory10",(function(){return Dv})),n.d(t,"schemeAccent",(function(){return Ev})),n.d(t,"schemeDark2",(function(){return Tv})),n.d(t,"schemePaired",(function(){return Ov})),n.d(t,"schemePastel1",(function(){return Nv})),n.d(t,"schemePastel2",(function(){return Iv})),n.d(t,"schemeSet1",(function(){return Av})),n.d(t,"schemeSet2",(function(){return Rv})),n.d(t,"schemeSet3",(function(){return Pv})),n.d(t,"schemeTableau10",(function(){return jv})),n.d(t,"interpolateBrBG",(function(){return Wv})),n.d(t,"schemeBrBG",(function(){return Bv})),n.d(t,"interpolatePRGn",(function(){return Yv})),n.d(t,"schemePRGn",(function(){return Hv})),n.d(t,"interpolatePiYG",(function(){return zv})),n.d(t,"schemePiYG",(function(){return Vv})),n.d(t,"interpolatePuOr",(function(){return $v})),n.d(t,"schemePuOr",(function(){return Uv})),n.d(t,"interpolateRdBu",(function(){return Kv})),n.d(t,"schemeRdBu",(function(){return qv})),n.d(t,"interpolateRdGy",(function(){return Zv})),n.d(t,"schemeRdGy",(function(){return Gv})),n.d(t,"interpolateRdYlBu",(function(){return Xv})),n.d(t,"schemeRdYlBu",(function(){return Jv})),n.d(t,"interpolateRdYlGn",(function(){return ey})),n.d(t,"schemeRdYlGn",(function(){return Qv})),n.d(t,"interpolateSpectral",(function(){return ny})),n.d(t,"schemeSpectral",(function(){return ty})),n.d(t,"interpolateBuGn",(function(){return ry})),n.d(t,"schemeBuGn",(function(){return iy})),n.d(t,"interpolateBuPu",(function(){return sy})),n.d(t,"schemeBuPu",(function(){return oy})),n.d(t,"interpolateGnBu",(function(){return ly})),n.d(t,"schemeGnBu",(function(){return ay})),n.d(t,"interpolateOrRd",(function(){return dy})),n.d(t,"schemeOrRd",(function(){return cy})),n.d(t,"interpolatePuBuGn",(function(){return hy})),n.d(t,"schemePuBuGn",(function(){return uy})),n.d(t,"interpolatePuBu",(function(){return gy})),n.d(t,"schemePuBu",(function(){return fy})),n.d(t,"interpolatePuRd",(function(){return my})),n.d(t,"schemePuRd",(function(){return py})),n.d(t,"interpolateRdPu",(function(){return by})),n.d(t,"schemeRdPu",(function(){return _y})),n.d(t,"interpolateYlGnBu",(function(){return yy})),n.d(t,"schemeYlGnBu",(function(){return vy})),n.d(t,"interpolateYlGn",(function(){return Cy})),n.d(t,"schemeYlGn",(function(){return wy})),n.d(t,"interpolateYlOrBr",(function(){return ky})),n.d(t,"schemeYlOrBr",(function(){return Sy})),n.d(t,"interpolateYlOrRd",(function(){return Ly})),n.d(t,"schemeYlOrRd",(function(){return xy})),n.d(t,"interpolateBlues",(function(){return Dy})),n.d(t,"schemeBlues",(function(){return My})),n.d(t,"interpolateGreens",(function(){return Ty})),n.d(t,"schemeGreens",(function(){return Ey})),n.d(t,"interpolateGreys",(function(){return Ny})),n.d(t,"schemeGreys",(function(){return Oy})),n.d(t,"interpolatePurples",(function(){return Ay})),n.d(t,"schemePurples",(function(){return Iy})),n.d(t,"interpolateReds",(function(){return Py})),n.d(t,"schemeReds",(function(){return Ry})),n.d(t,"interpolateOranges",(function(){return Fy})),n.d(t,"schemeOranges",(function(){return jy})),n.d(t,"interpolateCividis",(function(){return By})),n.d(t,"interpolateCubehelixDefault",(function(){return Wy})),n.d(t,"interpolateRainbow",(function(){return zy})),n.d(t,"interpolateWarm",(function(){return Hy})),n.d(t,"interpolateCool",(function(){return Yy})),n.d(t,"interpolateSinebow",(function(){return Ky})),n.d(t,"interpolateTurbo",(function(){return Gy})),n.d(t,"interpolateViridis",(function(){return Jy})),n.d(t,"interpolateMagma",(function(){return Xy})),n.d(t,"interpolateInferno",(function(){return Qy})),n.d(t,"interpolatePlasma",(function(){return ew})),n.d(t,"create",(function(){return tw})),n.d(t,"creator",(function(){return lt})),n.d(t,"local",(function(){return iw})),n.d(t,"matcher",(function(){return ye})),n.d(t,"mouse",(function(){return Fn})),n.d(t,"namespace",(function(){return Ee})),n.d(t,"namespaces",(function(){return De})),n.d(t,"clientPoint",(function(){return Pn})),n.d(t,"select",(function(){return Dt})),n.d(t,"selectAll",(function(){return ow})),n.d(t,"selection",(function(){return Mt})),n.d(t,"selector",(function(){return _e})),n.d(t,"selectorAll",(function(){return ve})),n.d(t,"style",(function(){return We})),n.d(t,"touch",(function(){return jn})),n.d(t,"touches",(function(){return sw})),n.d(t,"window",(function(){return Pe})),n.d(t,"event",(function(){return gt})),n.d(t,"customEvent",(function(){return yt})),n.d(t,"arc",(function(){return Lw})),n.d(t,"area",(function(){return Nw})),n.d(t,"line",(function(){return Ow})),n.d(t,"pie",(function(){return Rw})),n.d(t,"areaRadial",(function(){return Hw})),n.d(t,"radialArea",(function(){return Hw})),n.d(t,"lineRadial",(function(){return Ww})),n.d(t,"radialLine",(function(){return Ww})),n.d(t,"pointRadial",(function(){return Yw})),n.d(t,"linkHorizontal",(function(){return Zw})),n.d(t,"linkVertical",(function(){return Jw})),n.d(t,"linkRadial",(function(){return Xw})),n.d(t,"symbol",(function(){return mC})),n.d(t,"symbols",(function(){return pC})),n.d(t,"symbolCircle",(function(){return Qw})),n.d(t,"symbolCross",(function(){return eC})),n.d(t,"symbolDiamond",(function(){return iC})),n.d(t,"symbolSquare",(function(){return lC})),n.d(t,"symbolStar",(function(){return aC})),n.d(t,"symbolTriangle",(function(){return dC})),n.d(t,"symbolWye",(function(){return gC})),n.d(t,"curveBasisClosed",(function(){return CC})),n.d(t,"curveBasisOpen",(function(){return kC})),n.d(t,"curveBasis",(function(){return yC})),n.d(t,"curveBundle",(function(){return LC})),n.d(t,"curveCardinalClosed",(function(){return OC})),n.d(t,"curveCardinalOpen",(function(){return IC})),n.d(t,"curveCardinal",(function(){return EC})),n.d(t,"curveCatmullRomClosed",(function(){return FC})),n.d(t,"curveCatmullRomOpen",(function(){return WC})),n.d(t,"curveCatmullRom",(function(){return PC})),n.d(t,"curveLinearClosed",(function(){return YC})),n.d(t,"curveLinear",(function(){return Dw})),n.d(t,"curveMonotoneX",(function(){return ZC})),n.d(t,"curveMonotoneY",(function(){return JC})),n.d(t,"curveNatural",(function(){return eS})),n.d(t,"curveStep",(function(){return nS})),n.d(t,"curveStepAfter",(function(){return rS})),n.d(t,"curveStepBefore",(function(){return iS})),n.d(t,"stack",(function(){return lS})),n.d(t,"stackOffsetExpand",(function(){return cS})),n.d(t,"stackOffsetDiverging",(function(){return dS})),n.d(t,"stackOffsetNone",(function(){return oS})),n.d(t,"stackOffsetSilhouette",(function(){return uS})),n.d(t,"stackOffsetWiggle",(function(){return hS})),n.d(t,"stackOrderAppearance",(function(){return fS})),n.d(t,"stackOrderAscending",(function(){return pS})),n.d(t,"stackOrderDescending",(function(){return _S})),n.d(t,"stackOrderInsideOut",(function(){return bS})),n.d(t,"stackOrderNone",(function(){return sS})),n.d(t,"stackOrderReverse",(function(){return vS})),n.d(t,"timeInterval",(function(){return vm})),n.d(t,"timeMillisecond",(function(){return n_})),n.d(t,"timeMilliseconds",(function(){return i_})),n.d(t,"utcMillisecond",(function(){return n_})),n.d(t,"utcMilliseconds",(function(){return i_})),n.d(t,"timeSecond",(function(){return Qm})),n.d(t,"timeSeconds",(function(){return e_})),n.d(t,"utcSecond",(function(){return Qm})),n.d(t,"utcSeconds",(function(){return e_})),n.d(t,"timeMinute",(function(){return Zm})),n.d(t,"timeMinutes",(function(){return Jm})),n.d(t,"timeHour",(function(){return qm})),n.d(t,"timeHours",(function(){return Km})),n.d(t,"timeDay",(function(){return zm})),n.d(t,"timeDays",(function(){return Um})),n.d(t,"timeWeek",(function(){return Em})),n.d(t,"timeWeeks",(function(){return Pm})),n.d(t,"timeSunday",(function(){return Em})),n.d(t,"timeSundays",(function(){return Pm})),n.d(t,"timeMonday",(function(){return Tm})),n.d(t,"timeMondays",(function(){return jm})),n.d(t,"timeTuesday",(function(){return Om})),n.d(t,"timeTuesdays",(function(){return Fm})),n.d(t,"timeWednesday",(function(){return Nm})),n.d(t,"timeWednesdays",(function(){return Bm})),n.d(t,"timeThursday",(function(){return Im})),n.d(t,"timeThursdays",(function(){return Wm})),n.d(t,"timeFriday",(function(){return Am})),n.d(t,"timeFridays",(function(){return Hm})),n.d(t,"timeSaturday",(function(){return Rm})),n.d(t,"timeSaturdays",(function(){return Ym})),n.d(t,"timeMonth",(function(){return km})),n.d(t,"timeMonths",(function(){return xm})),n.d(t,"timeYear",(function(){return wm})),n.d(t,"timeYears",(function(){return Cm})),n.d(t,"utcMinute",(function(){return dv})),n.d(t,"utcMinutes",(function(){return uv})),n.d(t,"utcHour",(function(){return av})),n.d(t,"utcHours",(function(){return lv})),n.d(t,"utcDay",(function(){return y_})),n.d(t,"utcDays",(function(){return w_})),n.d(t,"utcWeek",(function(){return o_})),n.d(t,"utcWeeks",(function(){return h_})),n.d(t,"utcSunday",(function(){return o_})),n.d(t,"utcSundays",(function(){return h_})),n.d(t,"utcMonday",(function(){return s_})),n.d(t,"utcMondays",(function(){return f_})),n.d(t,"utcTuesday",(function(){return a_})),n.d(t,"utcTuesdays",(function(){return g_})),n.d(t,"utcWednesday",(function(){return l_})),n.d(t,"utcWednesdays",(function(){return p_})),n.d(t,"utcThursday",(function(){return c_})),n.d(t,"utcThursdays",(function(){return m_})),n.d(t,"utcFriday",(function(){return d_})),n.d(t,"utcFridays",(function(){return __})),n.d(t,"utcSaturday",(function(){return u_})),n.d(t,"utcSaturdays",(function(){return b_})),n.d(t,"utcMonth",(function(){return rv})),n.d(t,"utcMonths",(function(){return ov})),n.d(t,"utcYear",(function(){return S_})),n.d(t,"utcYears",(function(){return k_})),n.d(t,"timeFormatDefaultLocale",(function(){return Ub})),n.d(t,"timeFormat",(function(){return T_})),n.d(t,"timeParse",(function(){return O_})),n.d(t,"utcFormat",(function(){return N_})),n.d(t,"utcParse",(function(){return I_})),n.d(t,"timeFormatLocale",(function(){return D_})),n.d(t,"isoFormat",(function(){return yS})),n.d(t,"isoParse",(function(){return wS})),n.d(t,"now",(function(){return Kn})),n.d(t,"timer",(function(){return Jn})),n.d(t,"timerFlush",(function(){return Xn})),n.d(t,"timeout",(function(){return ni})),n.d(t,"interval",(function(){return CS})),n.d(t,"transition",(function(){return Ji})),n.d(t,"active",(function(){return sr})),n.d(t,"interrupt",(function(){return yi})),n.d(t,"voronoi",(function(){return ak})),n.d(t,"zoom",(function(){return wk})),n.d(t,"zoomTransform",(function(){return hk})),n.d(t,"zoomIdentity",(function(){return uk}))},function(e,t,n){"use strict";var i=n(349).forEach,r=n(642),o=n(643),s=n(644),a=n(645),l=n(646),c=n(350),d=n(647),u=n(649),h=n(650),f=n(651);function g(e){return Array.isArray(e)||void 0!==e.length}function p(e){if(Array.isArray(e))return e;var t=[];return i(e,(function(e){t.push(e)})),t}function m(e){return e&&1===e.nodeType}function _(e,t,n){var i=e[t];return null==i&&void 0!==n?n:i}e.exports=function(e){var t;if((e=e||{}).idHandler)t={get:function(t){return e.idHandler.get(t,!0)},set:e.idHandler.set};else{var n=s(),b=a({idGenerator:n,stateHandler:u});t=b}var v=e.reporter;v||(v=l(!1===v));var y=_(e,"batchProcessor",d({reporter:v})),w={};w.callOnAdd=!!_(e,"callOnAdd",!0),w.debug=!!_(e,"debug",!1);var C,S=o(t),k=r({stateHandler:u}),x=_(e,"strategy","object"),L=_(e,"important",!1),M={reporter:v,batchProcessor:y,stateHandler:u,idHandler:t,important:L};if("scroll"===x&&(c.isLegacyOpera()?(v.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),x="object"):c.isIE(9)&&(v.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),x="object")),"scroll"===x)C=f(M);else{if("object"!==x)throw new Error("Invalid strategy name: "+x);C=h(M)}var D={};return{listenTo:function(e,n,r){function o(e){var t=S.get(e);i(t,(function(t){t(e)}))}function s(e,t,n){S.add(t,n),e&&n(t)}if(r||(r=n,n=e,e={}),!n)throw new Error("At least one element required.");if(!r)throw new Error("Listener required.");if(m(n))n=[n];else{if(!g(n))return v.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");n=p(n)}var a=0,l=_(e,"callOnAdd",w.callOnAdd),c=_(e,"onReady",(function(){})),d=_(e,"debug",w.debug);i(n,(function(e){u.getState(e)||(u.initState(e),t.set(e));var h=t.get(e);if(d&&v.log("Attaching listener to element",h,e),!k.isDetectable(e))return d&&v.log(h,"Not detectable."),k.isBusy(e)?(d&&v.log(h,"System busy making it detectable"),s(l,e,r),D[h]=D[h]||[],void D[h].push((function(){++a===n.length&&c()}))):(d&&v.log(h,"Making detectable..."),k.markBusy(e,!0),C.makeDetectable({debug:d,important:L},e,(function(e){if(d&&v.log(h,"onElementDetectable"),u.getState(e)){k.markAsDetectable(e),k.markBusy(e,!1),C.addListener(e,o),s(l,e,r);var t=u.getState(e);if(t&&t.startSize){var f=e.offsetWidth,g=e.offsetHeight;t.startSize.width===f&&t.startSize.height===g||o(e)}D[h]&&i(D[h],(function(e){e()}))}else d&&v.log(h,"Element uninstalled before being detectable.");delete D[h],++a===n.length&&c()})));d&&v.log(h,"Already detecable, adding listener."),s(l,e,r),a++})),a===n.length&&c()},removeListener:S.removeListener,removeAllListeners:S.removeAllListeners,uninstall:function(e){if(!e)return v.error("At least one element is required.");if(m(e))e=[e];else{if(!g(e))return v.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");e=p(e)}i(e,(function(e){S.removeAllListeners(e),C.uninstall(e),u.cleanState(e)}))},initDocument:function(e){C.initDocument&&C.initDocument(e)}}}},function(e){e.exports=JSON.parse('{"name":"mermaid","version":"8.8.4","description":"Markdownish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.","main":"dist/mermaid.core.js","keywords":["diagram","markdown","flowchart","sequence diagram","gantt","class diagram","git graph"],"scripts":{"build:development":"webpack --progress --colors","build:production":"yarn build:development -p --config webpack.config.prod.babel.js","build":"yarn build:development && yarn build:production","postbuild":"documentation build src/mermaidAPI.js src/config.js --shallow -f md --markdown-toc false > docs/Setup.md","build:watch":"yarn build --watch","minify":"minify ./dist/mermaid.js > ./dist/mermaid.min.js","release":"yarn build","lint":"eslint src","e2e:depr":"yarn lint && jest e2e --config e2e/jest.config.js","cypress":"percy exec -- cypress run","e2e":"start-server-and-test dev http://localhost:9000/ cypress","e2e-upd":"yarn lint && jest e2e -u --config e2e/jest.config.js","dev":"webpack-dev-server --config webpack.config.e2e.js","test":"yarn lint && jest src/.*","test:watch":"jest --watch src","prepublishOnly":"yarn build && yarn test","prepare":"yarn build"},"repository":{"type":"git","url":"https://github.com/knsv/mermaid"},"author":"Knut Sveidqvist","license":"MIT","standard":{"ignore":["**/parser/*.js","dist/**/*.js","cypress/**/*.js"],"globals":["page"]},"dependencies":{"@braintree/sanitize-url":"^3.1.0","d3":"^5.7.0","dagre":"^0.8.4","dagre-d3":"^0.6.4","entity-decode":"^2.0.2","graphlib":"^2.1.7","he":"^1.2.0","khroma":"^1.1.0","minify":"^4.1.1","moment-mini":"^2.22.1","stylis":"^3.5.2"},"devDependencies":{"@babel/core":"^7.2.2","@babel/preset-env":"^7.8.4","@babel/register":"^7.0.0","@percy/cypress":"*","babel-core":"7.0.0-bridge.0","babel-eslint":"^10.1.0","babel-jest":"^24.9.0","babel-loader":"^8.0.4","coveralls":"^3.0.2","css-loader":"^2.0.1","css-to-string-loader":"^0.1.3","cypress":"4.0.1","documentation":"^12.0.1","eslint":"^6.3.0","eslint-config-prettier":"^6.3.0","eslint-plugin-prettier":"^3.1.0","husky":"^1.2.1","identity-obj-proxy":"^3.0.0","jest":"^24.9.0","jison":"^0.4.18","moment":"^2.23.0","node-sass":"^4.12.0","prettier":"^1.18.2","puppeteer":"^1.17.0","sass-loader":"^7.1.0","start-server-and-test":"^1.10.6","terser-webpack-plugin":"^2.2.2","webpack":"^4.41.2","webpack-bundle-analyzer":"^3.7.0","webpack-cli":"^3.1.2","webpack-dev-server":"^3.4.1","webpack-node-externals":"^1.7.2","yarn-upgrade-all":"^0.5.0"},"files":["dist"],"yarn-upgrade-all":{"ignore":["babel-core"]},"sideEffects":["**/*.css","**/*.scss"],"husky":{"hooks":{"pre-push":"yarn test"}}}')},function(e,t,n){e.exports=n(901)},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";(function(e){ +/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh <http://feross.org> + * @license MIT + */ +var i=n(574),r=n(575),o=n(576);function s(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(s()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return u(this,e)}return c(this,e,t,n)}function c(e,t,n,i){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,i){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(i||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===i?new Uint8Array(t):void 0===i?new Uint8Array(t,n):new Uint8Array(t,n,i);l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=h(e,t);return e}(e,t,n,i):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var i=0|g(t,n),r=(e=a(e,i)).write(t,n);r!==i&&(e=e.slice(0,r));return e}(e,t,n):function(e,t){if(l.isBuffer(t)){var n=0|f(t.length);return 0===(e=a(e,n)).length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(i=t.length)!=i?a(e,0):h(e,t);if("Buffer"===t.type&&o(t.data))return h(e,t.data)}var i;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function d(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function u(e,t){if(d(t),e=a(e,t<0?0:0|f(t)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function h(e,t){var n=t.length<0?0:0|f(t.length);e=a(e,n);for(var i=0;i<n;i+=1)e[i]=255&t[i];return e}function f(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function g(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return H(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Y(e).length;default:if(i)return H(e).length;t=(""+t).toLowerCase(),i=!0}}function p(e,t,n){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,n);case"utf8":case"utf-8":return L(this,t,n);case"ascii":return D(this,t,n);case"latin1":case"binary":return E(this,t,n);case"base64":return x(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,n);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function m(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function _(e,t,n,i,r){if(0===e.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(r)return-1;n=e.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof t&&(t=l.from(t,i)),l.isBuffer(t))return 0===t.length?-1:b(e,t,n,i,r);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,i,r);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,i,r){var o,s=1,a=e.length,l=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;s=2,a/=2,l/=2,n/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(r){var d=-1;for(o=n;o<a;o++)if(c(e,o)===c(t,-1===d?0:o-d)){if(-1===d&&(d=o),o-d+1===l)return d*s}else-1!==d&&(o-=o-d),d=-1}else for(n+l>a&&(n=a-l),o=n;o>=0;o--){for(var u=!0,h=0;h<l;h++)if(c(e,o+h)!==c(t,h)){u=!1;break}if(u)return o}return-1}function v(e,t,n,i){n=Number(n)||0;var r=e.length-n;i?(i=Number(i))>r&&(i=r):i=r;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");i>o/2&&(i=o/2);for(var s=0;s<i;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[n+s]=a}return s}function y(e,t,n,i){return V(H(t,e.length-n),e,n,i)}function w(e,t,n,i){return V(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,i)}function C(e,t,n,i){return w(e,t,n,i)}function S(e,t,n,i){return V(Y(t),e,n,i)}function k(e,t,n,i){return V(function(e,t){for(var n,i,r,o=[],s=0;s<e.length&&!((t-=2)<0);++s)n=e.charCodeAt(s),i=n>>8,r=n%256,o.push(r),o.push(i);return o}(t,e.length-n),e,n,i)}function x(e,t,n){return 0===t&&n===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,n))}function L(e,t,n){n=Math.min(e.length,n);for(var i=[],r=t;r<n;){var o,s,a,l,c=e[r],d=null,u=c>239?4:c>223?3:c>191?2:1;if(r+u<=n)switch(u){case 1:c<128&&(d=c);break;case 2:128==(192&(o=e[r+1]))&&(l=(31&c)<<6|63&o)>127&&(d=l);break;case 3:o=e[r+1],s=e[r+2],128==(192&o)&&128==(192&s)&&(l=(15&c)<<12|(63&o)<<6|63&s)>2047&&(l<55296||l>57343)&&(d=l);break;case 4:o=e[r+1],s=e[r+2],a=e[r+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(l=(15&c)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&l<1114112&&(d=l)}null===d?(d=65533,u=1):d>65535&&(d-=65536,i.push(d>>>10&1023|55296),d=56320|1023&d),i.push(d),r+=u}return function(e){var t=e.length;if(t<=M)return String.fromCharCode.apply(String,e);var n="",i=0;for(;i<t;)n+=String.fromCharCode.apply(String,e.slice(i,i+=M));return n}(i)}t.Buffer=l,t.SlowBuffer=function(e){+e!=e&&(e=0);return l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=s(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,n){return c(null,e,t,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,n){return function(e,t,n,i){return d(t),t<=0?a(e,t):void 0!==n?"string"==typeof i?a(e,t).fill(n,i):a(e,t).fill(n):a(e,t)}(null,e,t,n)},l.allocUnsafe=function(e){return u(null,e)},l.allocUnsafeSlow=function(e){return u(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,i=t.length,r=0,o=Math.min(n,i);r<o;++r)if(e[r]!==t[r]){n=e[r],i=t[r];break}return n<i?-1:i<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var i=l.allocUnsafe(t),r=0;for(n=0;n<e.length;++n){var s=e[n];if(!l.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(i,r),r+=s.length}return i},l.byteLength=g,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?L(this,0,e):p.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,n,i,r){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),t<0||n>e.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&t>=n)return 0;if(i>=r)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(r>>>=0)-(i>>>=0),s=(n>>>=0)-(t>>>=0),a=Math.min(o,s),c=this.slice(i,r),d=e.slice(t,n),u=0;u<a;++u)if(c[u]!==d[u]){o=c[u],s=d[u];break}return o<s?-1:s<o?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return _(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return _(this,e,t,n,!1)},l.prototype.write=function(e,t,n,i){if(void 0===t)i="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)i=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var r=this.length-t;if((void 0===n||n>r)&&(n=r),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return v(this,e,t,n);case"utf8":case"utf-8":return y(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return C(this,e,t,n);case"base64":return S(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var M=4096;function D(e,t,n){var i="";n=Math.min(e.length,n);for(var r=t;r<n;++r)i+=String.fromCharCode(127&e[r]);return i}function E(e,t,n){var i="";n=Math.min(e.length,n);for(var r=t;r<n;++r)i+=String.fromCharCode(e[r]);return i}function T(e,t,n){var i=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>i)&&(n=i);for(var r="",o=t;o<n;++o)r+=W(e[o]);return r}function O(e,t,n){for(var i=e.slice(t,n),r="",o=0;o<i.length;o+=2)r+=String.fromCharCode(i[o]+256*i[o+1]);return r}function N(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function I(e,t,n,i,r,o){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||t<o)throw new RangeError('"value" argument is out of bounds');if(n+i>e.length)throw new RangeError("Index out of range")}function A(e,t,n,i){t<0&&(t=65535+t+1);for(var r=0,o=Math.min(e.length-n,2);r<o;++r)e[n+r]=(t&255<<8*(i?r:1-r))>>>8*(i?r:1-r)}function R(e,t,n,i){t<0&&(t=4294967295+t+1);for(var r=0,o=Math.min(e.length-n,4);r<o;++r)e[n+r]=t>>>8*(i?r:3-r)&255}function P(e,t,n,i,r,o){if(n+i>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function j(e,t,n,i,o){return o||P(e,0,n,4),r.write(e,t,n,i,23,4),n+4}function F(e,t,n,i,o){return o||P(e,0,n,8),r.write(e,t,n,i,52,8),n+8}l.prototype.slice=function(e,t){var n,i=this.length;if((e=~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),(t=void 0===t?i:~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=l.prototype;else{var r=t-e;n=new l(r,void 0);for(var o=0;o<r;++o)n[o]=this[o+e]}return n},l.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var i=this[e],r=1,o=0;++o<t&&(r*=256);)i+=this[e+o]*r;return i},l.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var i=this[e+--t],r=1;t>0&&(r*=256);)i+=this[e+--t]*r;return i},l.prototype.readUInt8=function(e,t){return t||N(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||N(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||N(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||N(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||N(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var i=this[e],r=1,o=0;++o<t&&(r*=256);)i+=this[e+o]*r;return i>=(r*=128)&&(i-=Math.pow(2,8*t)),i},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var i=t,r=1,o=this[e+--i];i>0&&(r*=256);)o+=this[e+--i]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*t)),o},l.prototype.readInt8=function(e,t){return t||N(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||N(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||N(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||N(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||N(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||N(e,4,this.length),r.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||N(e,4,this.length),r.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||N(e,8,this.length),r.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||N(e,8,this.length),r.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,i){(e=+e,t|=0,n|=0,i)||I(this,e,t,n,Math.pow(2,8*n)-1,0);var r=1,o=0;for(this[t]=255&e;++o<n&&(r*=256);)this[t+o]=e/r&255;return t+n},l.prototype.writeUIntBE=function(e,t,n,i){(e=+e,t|=0,n|=0,i)||I(this,e,t,n,Math.pow(2,8*n)-1,0);var r=n-1,o=1;for(this[t+r]=255&e;--r>=0&&(o*=256);)this[t+r]=e/o&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):A(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):A(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):R(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):R(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t|=0,!i){var r=Math.pow(2,8*n-1);I(this,e,t,n,r-1,-r)}var o=0,s=1,a=0;for(this[t]=255&e;++o<n&&(s*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},l.prototype.writeIntBE=function(e,t,n,i){if(e=+e,t|=0,!i){var r=Math.pow(2,8*n-1);I(this,e,t,n,r-1,-r)}var o=n-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):A(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):A(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):R(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):R(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return j(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return j(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return F(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return F(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,i){if(n||(n=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<n&&(i=n),i===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-n&&(i=e.length-t+n);var r,o=i-n;if(this===e&&n<t&&t<i)for(r=o-1;r>=0;--r)e[r+t]=this[r+n];else if(o<1e3||!l.TYPED_ARRAY_SUPPORT)for(r=0;r<o;++r)e[r+t]=this[r+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},l.prototype.fill=function(e,t,n,i){if("string"==typeof e){if("string"==typeof t?(i=t,t=0,n=this.length):"string"==typeof n&&(i=n,n=this.length),1===e.length){var r=e.charCodeAt(0);r<256&&(e=r)}if(void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!l.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var s=l.isBuffer(e)?e:H(new l(e,i).toString()),a=s.length;for(o=0;o<n-t;++o)this[o+t]=s[o%a]}return this};var B=/[^+\/0-9A-Za-z-_]/g;function W(e){return e<16?"0"+e.toString(16):e.toString(16)}function H(e,t){var n;t=t||1/0;for(var i=e.length,r=null,o=[],s=0;s<i;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!r){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===i){(t-=3)>-1&&o.push(239,191,189);continue}r=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(t-=3)>-1&&o.push(239,191,189);if(r=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function Y(e){return i.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(B,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function V(e,t,n,i){for(var r=0;r<i&&!(r+n>=t.length||r>=e.length);++r)t[r+n]=e[r];return r}}).call(this,n(237))},function(e,t,n){"use strict";t.byteLength=function(e){var t=c(e),n=t[0],i=t[1];return 3*(n+i)/4-i},t.toByteArray=function(e){var t,n,i=c(e),s=i[0],a=i[1],l=new o(function(e,t,n){return 3*(t+n)/4-n}(0,s,a)),d=0,u=a>0?s-4:s;for(n=0;n<u;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],l[d++]=t>>16&255,l[d++]=t>>8&255,l[d++]=255&t;2===a&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,l[d++]=255&t);1===a&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,l[d++]=t>>8&255,l[d++]=255&t);return l},t.fromByteArray=function(e){for(var t,n=e.length,r=n%3,o=[],s=0,a=n-r;s<a;s+=16383)o.push(d(e,s,s+16383>a?a:s+16383));1===r?(t=e[n-1],o.push(i[t>>2]+i[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],o.push(i[t>>10]+i[t>>4&63]+i[t<<2&63]+"="));return o.join("")};for(var i=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,l=s.length;a<l;++a)i[a]=s[a],r[s.charCodeAt(a)]=a;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function d(e,t,n){for(var r,o,s=[],a=t;a<n;a+=3)r=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),s.push(i[(o=r)>>18&63]+i[o>>12&63]+i[o>>6&63]+i[63&o]);return s.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,i,r){var o,s,a=8*r-i-1,l=(1<<a)-1,c=l>>1,d=-7,u=n?r-1:0,h=n?-1:1,f=e[t+u];for(u+=h,o=f&(1<<-d)-1,f>>=-d,d+=a;d>0;o=256*o+e[t+u],u+=h,d-=8);for(s=o&(1<<-d)-1,o>>=-d,d+=i;d>0;s=256*s+e[t+u],u+=h,d-=8);if(0===o)o=1-c;else{if(o===l)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,i),o-=c}return(f?-1:1)*s*Math.pow(2,o-i)},t.write=function(e,t,n,i,r,o){var s,a,l,c=8*o-r-1,d=(1<<c)-1,u=d>>1,h=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=i?0:o-1,g=i?1:-1,p=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=d):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),(t+=s+u>=1?h/l:h*Math.pow(2,1-u))*l>=2&&(s++,l/=2),s+u>=d?(a=0,s=d):s+u>=1?(a=(t*l-1)*Math.pow(2,r),s+=u):(a=t*Math.pow(2,u-1)*Math.pow(2,r),s=0));r>=8;e[n+f]=255&a,f+=g,a/=256,r-=8);for(s=s<<r|a,c+=r;c>0;e[n+f]=255&s,f+=g,s/=256,c-=8);e[n+f-g]|=128*p}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";n.r(t);n(903),n(639),n(294),n(640),n(900);var i=n(348);for(var r in i)"default"!==r&&function(e){n.d(t,e,(function(){return i[e]}))}(r)},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";n(87);var i=n(200),r=function(){function e(e,t,n){this._onDidChange=new i.Emitter,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(n)}return Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"diagnosticsOptions",{get:function(){return this._diagnosticsOptions},enumerable:!1,configurable:!0}),e.prototype.setDiagnosticsOptions=function(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)},e.prototype.setModeConfiguration=function(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)},e}(),o={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"}},s={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},a=new r("css",o,s),l=new r("scss",o,s),c=new r("less",o,s);function d(){return n.e(4).then(n.bind(null,904))}i.languages.css={cssDefaults:a,lessDefaults:c,scssDefaults:l},i.languages.onLanguage("less",(function(){d().then((function(e){return e.setupMode(c)}))})),i.languages.onLanguage("scss",(function(){d().then((function(e){return e.setupMode(l)}))})),i.languages.onLanguage("css",(function(){d().then((function(e){return e.setupMode(a)}))}))},function(e,t,n){"use strict";n(87);var i=n(201),r=function(){function e(e,t,n){this._onDidChange=new i.Emitter,this._languageId=e,this.setOptions(t),this.setModeConfiguration(n)}return Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this._options},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!1,configurable:!0}),e.prototype.setOptions=function(e){this._options=e||Object.create(null),this._onDidChange.fire(this)},e.prototype.setModeConfiguration=function(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)},e}(),o={tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:null,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},s={format:o,suggest:{html5:!0}},a={format:o,suggest:{html5:!0,razor:!0}};function l(e){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:e===c,documentFormattingEdits:e===c,documentRangeFormattingEdits:e===c}}var c="html",d=new r(c,{format:o,suggest:{html5:!0,angular1:!0,ionic:!0}},l(c)),u=new r("handlebars",s,l("handlebars")),h=new r("razor",a,l("razor"));function f(){return n.e(5).then(n.bind(null,905))}i.languages.html={htmlDefaults:d,razorDefaults:h,handlebarDefaults:u},i.languages.onLanguage(c,(function(){f().then((function(e){return e.setupMode(d)}))})),i.languages.onLanguage("handlebars",(function(){f().then((function(e){return e.setupMode(u)}))})),i.languages.onLanguage("razor",(function(){f().then((function(e){return e.setupMode(h)}))}))},function(e,t,n){"use strict";var i=n(4),r=n(33),o=n(211),s=n(43),a=n(9),l=n(17),c=n(40),d=n(88),u=function(e,t){return function(n,i){t(n,i,e)}};let h=class extends o.a{constructor(e,t,n,i,r,o,s){super(!0,e,t,n,i,r,o,s)}};h=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}([u(1,a.b),u(2,r.a),u(3,c.a),u(4,l.a),u(5,d.a),u(6,s.a)],h),Object(i.m)(o.a.ID,h)},function(e,t,n){"use strict";e.exports=function(e){var t=e.stateHandler.getState;return{isDetectable:function(e){var n=t(e);return n&&!!n.isDetectable},markAsDetectable:function(e){t(e).isDetectable=!0},isBusy:function(e){return!!t(e).busy},markBusy:function(e,n){t(e).busy=!!n}}}},function(e,t,n){"use strict";e.exports=function(e){var t={};function n(n){var i=e.get(n);return void 0===i?[]:t[i]||[]}return{get:n,add:function(n,i){var r=e.get(n);t[r]||(t[r]=[]),t[r].push(i)},removeListener:function(e,t){for(var i=n(e),r=0,o=i.length;r<o;++r)if(i[r]===t){i.splice(r,1);break}},removeAllListeners:function(e){var t=n(e);t&&(t.length=0)}}}},function(e,t,n){"use strict";e.exports=function(){var e=1;return{generate:function(){return e++}}}},function(e,t,n){"use strict";e.exports=function(e){var t=e.idGenerator,n=e.stateHandler.getState;return{get:function(e){var t=n(e);return t&&void 0!==t.id?t.id:null},set:function(e){var i=n(e);if(!i)throw new Error("setId required the element to have a resize detection state.");var r=t.generate();return i.id=r,r}}}},function(e,t,n){"use strict";e.exports=function(e){function t(){}var n={log:t,warn:t,error:t};if(!e&&window.console){var i=function(e,t){e[t]=function(){var e=console[t];if(e.apply)e.apply(console,arguments);else for(var n=0;n<arguments.length;n++)e(arguments[n])}};i(n,"log"),i(n,"warn"),i(n,"error")}return n}},function(e,t,n){"use strict";var i=n(648);function r(){var e={},t=0,n=0,i=0;return{add:function(r,o){o||(o=r,r=0),r>n?n=r:r<i&&(i=r),e[r]||(e[r]=[]),e[r].push(o),t++},process:function(){for(var t=i;t<=n;t++)for(var r=e[t],o=0;o<r.length;o++){(0,r[o])()}},size:function(){return t}}}e.exports=function(e){var t=(e=e||{}).reporter,n=i.getOption(e,"async",!0),o=i.getOption(e,"auto",!0);o&&!n&&(t&&t.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),n=!0);var s,a=r(),l=!1;function c(){for(l=!0;a.size();){var e=a;a=r(),e.process()}l=!1}function d(){var e;e=c,s=setTimeout(e,0)}return{add:function(e,t){!l&&o&&n&&0===a.size()&&d(),a.add(e,t)},force:function(e){l||(void 0===e&&(e=n),s&&(clearTimeout(s),s=null),e?d():c())}}}},function(e,t,n){"use strict";(e.exports={}).getOption=function(e,t,n){var i=e[t];if(null==i&&void 0!==n)return n;return i}},function(e,t,n){"use strict";var i="_erd";function r(e){return e[i]}e.exports={initState:function(e){return e[i]={},r(e)},getState:r,cleanState:function(e){delete e[i]}}},function(e,t,n){"use strict";var i=n(350);e.exports=function(e){var t=(e=e||{}).reporter,n=e.batchProcessor,r=e.stateHandler.getState;if(!t)throw new Error("Missing required dependency: reporter.");function o(t){var n=e.important?" !important; ":"; ";return(t.join(n)+n).trim()}function s(e){return r(e).object}return{makeDetectable:function(e,s,a){a||(a=s,s=e,e=null),(e=e||{}).debug,i.isIE(8)?a(s):function(s,a){var l=o(["display: block","position: absolute","top: 0","left: 0","width: 100%","height: 100%","border: none","padding: 0","margin: 0","opacity: 0","z-index: -1000","pointer-events: none"]),c=!1,d=window.getComputedStyle(s),u=s.offsetWidth,h=s.offsetHeight;function f(){function n(){if("static"===d.position){s.style.setProperty("position","relative",e.important?"important":"");var n=function(t,n,i,r){var o=i[r];"auto"!==o&&"0"!==function(e){return e.replace(/[^-\d\.]/g,"")}(o)&&(t.warn("An element that is positioned static has style."+r+"="+o+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+r+" will be set to 0. Element: ",n),n.style.setProperty(r,"0",e.important?"important":""))};n(t,s,d,"top"),n(t,s,d,"right"),n(t,s,d,"bottom"),n(t,s,d,"left")}}""!==d.position&&(n(),c=!0);var o=document.createElement("object");o.style.cssText=l,o.tabIndex=-1,o.type="text/html",o.setAttribute("aria-hidden","true"),o.onload=function(){c||n(),function e(t,n){if(!t.contentDocument){var i=r(t);return i.checkForObjectDocumentTimeoutId&&window.clearTimeout(i.checkForObjectDocumentTimeoutId),void(i.checkForObjectDocumentTimeoutId=setTimeout((function(){i.checkForObjectDocumentTimeoutId=0,e(t,n)}),100))}n(t.contentDocument)}(this,(function(e){a(s)}))},i.isIE()||(o.data="about:blank"),r(s)&&(s.appendChild(o),r(s).object=o,i.isIE()&&(o.data="about:blank"))}r(s).startSize={width:u,height:h},n?n.add(f):f()}(s,a)},addListener:function(e,t){function n(){t(e)}if(i.isIE(8))r(e).object={proxy:n},e.attachEvent("onresize",n);else{var o=s(e);if(!o)throw new Error("Element is not detectable by this strategy.");o.contentDocument.defaultView.addEventListener("resize",n)}},uninstall:function(e){if(r(e)){var t=s(e);t&&(i.isIE(8)?e.detachEvent("onresize",t.proxy):e.removeChild(t),r(e).checkForObjectDocumentTimeoutId&&window.clearTimeout(r(e).checkForObjectDocumentTimeoutId),delete r(e).object)}}}}},function(e,t,n){"use strict";var i=n(349).forEach;e.exports=function(e){var t=(e=e||{}).reporter,n=e.batchProcessor,r=e.stateHandler.getState,o=(e.stateHandler.hasState,e.idHandler);if(!n)throw new Error("Missing required dependency: batchProcessor");if(!t)throw new Error("Missing required dependency: reporter.");var s=function(){var e=document.createElement("div");e.style.cssText=d(["position: absolute","width: 1000px","height: 1000px","visibility: hidden","margin: 0","padding: 0"]);var t=document.createElement("div");t.style.cssText=d(["position: absolute","width: 500px","height: 500px","overflow: scroll","visibility: none","top: -1500px","left: -1500px","visibility: hidden","margin: 0","padding: 0"]),t.appendChild(e),document.body.insertBefore(t,document.body.firstChild);var n=500-t.clientWidth,i=500-t.clientHeight;return document.body.removeChild(t),{width:n,height:i}}(),a="erd_scroll_detection_scrollbar_style",l="erd_scroll_detection_container";function c(e){!function(e,t,n){if(!e.getElementById(t)){var i=n+"_animation",r=n+"_animation_active",o="/* Created by the element-resize-detector library. */\n";o+="."+n+" > div::-webkit-scrollbar { "+d(["display: none"])+" }\n\n",o+="."+r+" { "+d(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+i,"animation-name: "+i])+" }\n",o+="@-webkit-keyframes "+i+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n",function(n,i){i=i||function(t){e.head.appendChild(t)};var r=e.createElement("style");r.innerHTML=n,r.id=t,i(r)}(o+="@keyframes "+i+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }")}}(e,a,l)}function d(t){var n=e.important?" !important; ":"; ";return(t.join(n)+n).trim()}function u(e,n,i){if(e.addEventListener)e.addEventListener(n,i);else{if(!e.attachEvent)return t.error("[scroll] Don't know how to add event listeners.");e.attachEvent("on"+n,i)}}function h(e,n,i){if(e.removeEventListener)e.removeEventListener(n,i);else{if(!e.detachEvent)return t.error("[scroll] Don't know how to remove event listeners.");e.detachEvent("on"+n,i)}}function f(e){return r(e).container.childNodes[0].childNodes[0].childNodes[0]}function g(e){return r(e).container.childNodes[0].childNodes[0].childNodes[1]}return c(window.document),{makeDetectable:function(e,a,c){function h(){if(e.debug){var n=Array.prototype.slice.call(arguments);if(n.unshift(o.get(a),"Scroll: "),t.log.apply)t.log.apply(null,n);else for(var i=0;i<n.length;i++)t.log(n[i])}}function p(e){var t=r(e).container.childNodes[0],n=window.getComputedStyle(t);return!n.width||-1===n.width.indexOf("px")}function m(){var e=window.getComputedStyle(a),t={};return t.position=e.position,t.width=a.offsetWidth,t.height=a.offsetHeight,t.top=e.top,t.right=e.right,t.bottom=e.bottom,t.left=e.left,t.widthCSS=e.width,t.heightCSS=e.height,t}function _(){if(h("storeStyle invoked."),r(a)){var e=m();r(a).style=e}else h("Aborting because element has been uninstalled")}function b(e,t,n){r(e).lastWidth=t,r(e).lastHeight=n}function v(){return 2*s.width+1}function y(){return 2*s.height+1}function w(e){return e+10+v()}function C(e){return e+10+y()}function S(e,t,n){var i=f(e),r=g(e),o=w(t),s=C(n),a=function(e){return 2*e+v()}(t),l=function(e){return 2*e+y()}(n);i.scrollLeft=o,i.scrollTop=s,r.scrollLeft=a,r.scrollTop=l}function k(){var e=r(a).container;if(!e){(e=document.createElement("div")).className=l,e.style.cssText=d(["visibility: hidden","display: inline","width: 0px","height: 0px","z-index: -1","overflow: hidden","margin: 0","padding: 0"]),r(a).container=e,function(e){e.className+=" "+l+"_animation_active"}(e),a.appendChild(e);var t=function(){r(a).onRendered&&r(a).onRendered()};u(e,"animationstart",t),r(a).onAnimationStart=t}return e}function x(){if(h("Injecting elements"),r(a)){!function(){var n=r(a).style;if("static"===n.position){a.style.setProperty("position","relative",e.important?"important":"");var i=function(e,t,n,i){var r=n[i];"auto"!==r&&"0"!==function(e){return e.replace(/[^-\d\.]/g,"")}(r)&&(e.warn("An element that is positioned static has style."+i+"="+r+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+i+" will be set to 0. Element: ",t),t.style[i]=0)};i(t,a,n,"top"),i(t,a,n,"right"),i(t,a,n,"bottom"),i(t,a,n,"left")}}();var n=r(a).container;n||(n=k());var i,o,c,f,g=s.width,p=s.height,m=d(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden","width: 100%","height: 100%","left: 0px","top: 0px"]),_=d(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden"].concat(["left: "+(i=(i=-(1+g))?i+"px":"0"),"top: "+(o=(o=-(1+p))?o+"px":"0"),"right: "+(f=(f=-g)?f+"px":"0"),"bottom: "+(c=(c=-p)?c+"px":"0")])),b=d(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),v=d(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),y=d(["position: absolute","left: 0","top: 0"]),w=d(["position: absolute","width: 200%","height: 200%"]),C=document.createElement("div"),S=document.createElement("div"),x=document.createElement("div"),L=document.createElement("div"),M=document.createElement("div"),D=document.createElement("div");C.dir="ltr",C.style.cssText=m,C.className=l,S.className=l,S.style.cssText=_,x.style.cssText=b,L.style.cssText=y,M.style.cssText=v,D.style.cssText=w,x.appendChild(L),M.appendChild(D),S.appendChild(x),S.appendChild(M),C.appendChild(S),n.appendChild(C),u(x,"scroll",E),u(M,"scroll",T),r(a).onExpandScroll=E,r(a).onShrinkScroll=T}else h("Aborting because element has been uninstalled");function E(){r(a).onExpand&&r(a).onExpand()}function T(){r(a).onShrink&&r(a).onShrink()}}function L(){function s(t,n,i){var r=function(e){return f(e).childNodes[0]}(t),o=w(n),s=C(i);r.style.setProperty("width",o+"px",e.important?"important":""),r.style.setProperty("height",s+"px",e.important?"important":"")}function l(i){var l=a.offsetWidth,d=a.offsetHeight,u=l!==r(a).lastWidth||d!==r(a).lastHeight;h("Storing current size",l,d),b(a,l,d),n.add(0,(function(){if(u)if(r(a))if(c()){if(e.debug){var n=a.offsetWidth,i=a.offsetHeight;n===l&&i===d||t.warn(o.get(a),"Scroll: Size changed before updating detector elements.")}s(a,l,d)}else h("Aborting because element container has not been initialized");else h("Aborting because element has been uninstalled")})),n.add(1,(function(){r(a)?c()?S(a,l,d):h("Aborting because element container has not been initialized"):h("Aborting because element has been uninstalled")})),u&&i&&n.add(2,(function(){r(a)?c()?i():h("Aborting because element container has not been initialized"):h("Aborting because element has been uninstalled")}))}function c(){return!!r(a).container}function d(){h("notifyListenersIfNeeded invoked");var e=r(a);return void 0===r(a).lastNotifiedWidth&&e.lastWidth===e.startSize.width&&e.lastHeight===e.startSize.height?h("Not notifying: Size is the same as the start size, and there has been no notification yet."):e.lastWidth===e.lastNotifiedWidth&&e.lastHeight===e.lastNotifiedHeight?h("Not notifying: Size already notified"):(h("Current size not notified, notifying..."),e.lastNotifiedWidth=e.lastWidth,e.lastNotifiedHeight=e.lastHeight,void i(r(a).listeners,(function(e){e(a)})))}function u(){h("Scroll detected."),p(a)?h("Scroll event fired while unrendered. Ignoring..."):l(d)}if(h("registerListenersAndPositionElements invoked."),r(a)){r(a).onRendered=function(){if(h("startanimation triggered."),p(a))h("Ignoring since element is still unrendered...");else{h("Element rendered.");var e=f(a),t=g(a);0!==e.scrollLeft&&0!==e.scrollTop&&0!==t.scrollLeft&&0!==t.scrollTop||(h("Scrollbars out of sync. Updating detector elements..."),l(d))}},r(a).onExpand=u,r(a).onShrink=u;var m=r(a).style;s(a,m.width,m.height)}else h("Aborting because element has been uninstalled")}function M(){if(h("finalizeDomMutation invoked."),r(a)){var e=r(a).style;b(a,e.width,e.height),S(a,e.width,e.height)}else h("Aborting because element has been uninstalled")}function D(){c(a)}function E(){var e;h("Installing..."),r(a).listeners=[],e=m(),r(a).startSize={width:e.width,height:e.height},h("Element start size",r(a).startSize),n.add(0,_),n.add(1,x),n.add(2,L),n.add(3,M),n.add(4,D)}c||(c=a,a=e,e=null),e=e||{},h("Making detectable..."),!function(e){return!function(e){return e===e.ownerDocument.body||e.ownerDocument.body.contains(e)}(e)||null===window.getComputedStyle(e)}(a)?E():(h("Element is detached"),k(),h("Waiting until element is attached..."),r(a).onRendered=function(){h("Element is now attached"),E()})},addListener:function(e,t){if(!r(e).listeners.push)throw new Error("Cannot add listener to an element that is not detectable.");r(e).listeners.push(t)},uninstall:function(e){var t=r(e);t&&(t.onExpandScroll&&h(f(e),"scroll",t.onExpandScroll),t.onShrinkScroll&&h(g(e),"scroll",t.onShrinkScroll),t.onAnimationStart&&h(t.container,"animationstart",t.onAnimationStart),t.container&&e.removeChild(t.container))},initDocument:c}}},function(e,t,n){"use strict";var i=/^(%20|\s)*(javascript|data)/im,r=/[^\x20-\x7E]/gim,o=/^([^:]+):/gm,s=[".","/"];e.exports={sanitizeUrl:function(e){if(!e)return"about:blank";var t,n,a=e.replace(r,"").trim();return function(e){return s.indexOf(e[0])>-1}(a)?a:(n=a.match(o))?(t=n[0],i.test(t)?"about:blank":a):"about:blank"}}},function(e,t,n){e.exports={graphlib:n(141),layout:n(761),debug:n(803),util:{time:n(118).time,notime:n(118).notime},version:n(804)}},function(e,t,n){e.exports={Graph:n(295),version:n(750)}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var i=n(241),r=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=i(t,e);return!(n<0)&&(n==t.length-1?t.pop():r.call(t,n,1),--this.size,!0)}},function(e,t,n){var i=n(241);e.exports=function(e){var t=this.__data__,n=i(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var i=n(241);e.exports=function(e){return i(this.__data__,e)>-1}},function(e,t,n){var i=n(241);e.exports=function(e,t){var n=this.__data__,r=i(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}},function(e,t,n){var i=n(240);e.exports=function(){this.__data__=new i,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var i=n(240),r=n(296),o=n(297),s=200;e.exports=function(e,t){var n=this.__data__;if(n instanceof i){var a=n.__data__;if(!r||a.length<s-1)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var i=n(180),r=n(668),o=n(132),s=n(355),a=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,d=l.toString,u=c.hasOwnProperty,h=RegExp("^"+d.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||r(e))&&(i(e)?h:a).test(s(e))}},function(e,t,n){var i=n(192),r=Object.prototype,o=r.hasOwnProperty,s=r.toString,a=i?i.toStringTag:void 0;e.exports=function(e){var t=o.call(e,a),n=e[a];try{e[a]=void 0;var i=!0}catch(e){}var r=s.call(e);return i&&(t?e[a]=n:delete e[a]),r}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var i,r=n(669),o=(i=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"";e.exports=function(e){return!!o&&o in e}},function(e,t,n){var i=n(142)["__core-js_shared__"];e.exports=i},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var i=n(672),r=n(240),o=n(296);e.exports=function(){this.size=0,this.__data__={hash:new i,map:new(o||r),string:new i}}},function(e,t,n){var i=n(673),r=n(674),o=n(675),s=n(676),a=n(677);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=r,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,e.exports=l},function(e,t,n){var i=n(242);e.exports=function(){this.__data__=i?i(null):{},this.size=0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var i=n(242),r="__lodash_hash_undefined__",o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(i){var n=t[e];return n===r?void 0:n}return o.call(t,e)?t[e]:void 0}},function(e,t,n){var i=n(242),r=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return i?void 0!==t[e]:r.call(t,e)}},function(e,t,n){var i=n(242),r="__lodash_hash_undefined__";e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=i&&void 0===t?r:t,this}},function(e,t,n){var i=n(243);e.exports=function(e){var t=i(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var i=n(243);e.exports=function(e){return i(this,e).get(e)}},function(e,t,n){var i=n(243);e.exports=function(e){return i(this,e).has(e)}},function(e,t,n){var i=n(243);e.exports=function(e,t){var n=i(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}},function(e,t,n){var i=n(213),r=n(158);e.exports=function(e,t){return e&&i(t,r(t),e)}},function(e,t){e.exports=function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}},function(e,t,n){var i=n(181),r=n(149),o="[object Arguments]";e.exports=function(e){return r(e)&&i(e)==o}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var i=n(181),r=n(299),o=n(149),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&r(e.length)&&!!s[i(e)]}},function(e,t,n){var i=n(358)(Object.keys,Object);e.exports=i},function(e,t,n){var i=n(213),r=n(194);e.exports=function(e,t){return e&&i(t,r(t),e)}},function(e,t,n){var i=n(132),r=n(248),o=n(691),s=Object.prototype.hasOwnProperty;e.exports=function(e){if(!i(e))return o(e);var t=r(e),n=[];for(var a in e)("constructor"!=a||!t&&s.call(e,a))&&n.push(a);return n}},function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},function(e,t,n){var i=n(213),r=n(302);e.exports=function(e,t){return i(e,r(e),t)}},function(e,t,n){var i=n(213),r=n(363);e.exports=function(e,t){return i(e,r(e),t)}},function(e,t,n){var i=n(365),r=n(363),o=n(194);e.exports=function(e){return i(e,o,r)}},function(e,t,n){var i=n(179)(n(142),"DataView");e.exports=i},function(e,t,n){var i=n(179)(n(142),"Promise");e.exports=i},function(e,t,n){var i=n(179)(n(142),"WeakMap");e.exports=i},function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=e.length,i=new e.constructor(t);return t&&"string"==typeof e[0]&&n.call(e,"index")&&(i.index=e.index,i.input=e.input),i}},function(e,t,n){var i=n(304),r=n(700),o=n(701),s=n(702),a=n(368),l="[object Boolean]",c="[object Date]",d="[object Map]",u="[object Number]",h="[object RegExp]",f="[object Set]",g="[object String]",p="[object Symbol]",m="[object ArrayBuffer]",_="[object DataView]",b="[object Float32Array]",v="[object Float64Array]",y="[object Int8Array]",w="[object Int16Array]",C="[object Int32Array]",S="[object Uint8Array]",k="[object Uint8ClampedArray]",x="[object Uint16Array]",L="[object Uint32Array]";e.exports=function(e,t,n){var M=e.constructor;switch(t){case m:return i(e);case l:case c:return new M(+e);case _:return r(e,n);case b:case v:case y:case w:case C:case S:case k:case x:case L:return a(e,n);case d:return new M;case u:case g:return new M(e);case h:return o(e);case f:return new M;case p:return s(e)}}},function(e,t,n){var i=n(304);e.exports=function(e,t){var n=t?i(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},function(e,t){var n=/\w*$/;e.exports=function(e){var t=new e.constructor(e.source,n.exec(e));return t.lastIndex=e.lastIndex,t}},function(e,t,n){var i=n(192),r=i?i.prototype:void 0,o=r?r.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},function(e,t,n){var i=n(704),r=n(247),o=n(300),s=o&&o.isMap,a=s?r(s):i;e.exports=a},function(e,t,n){var i=n(195),r=n(149),o="[object Map]";e.exports=function(e){return r(e)&&i(e)==o}},function(e,t,n){var i=n(706),r=n(247),o=n(300),s=o&&o.isSet,a=s?r(s):i;e.exports=a},function(e,t,n){var i=n(195),r=n(149),o="[object Set]";e.exports=function(e){return r(e)&&i(e)==o}},function(e,t){e.exports=function(e){return function(t,n,i){for(var r=-1,o=Object(t),s=i(t),a=s.length;a--;){var l=s[e?a:++r];if(!1===n(o[l],l,o))break}return t}}},function(e,t,n){var i=n(159);e.exports=function(e,t){return function(n,r){if(null==n)return n;if(!i(n))return e(n,r);for(var o=n.length,s=t?o:-1,a=Object(n);(t?s--:++s<o)&&!1!==r(a[s],s,a););return n}}},function(e,t,n){var i=n(250);e.exports=function(e,t){var n=[];return i(e,(function(e,i,r){t(e,i,r)&&n.push(e)})),n}},function(e,t,n){var i=n(711),r=n(719),o=n(377);e.exports=function(e){var t=r(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||i(n,e,t)}}},function(e,t,n){var i=n(239),r=n(372),o=1,s=2;e.exports=function(e,t,n,a){var l=n.length,c=l,d=!a;if(null==e)return!c;for(e=Object(e);l--;){var u=n[l];if(d&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++l<c;){var h=(u=n[l])[0],f=e[h],g=u[1];if(d&&u[2]){if(void 0===f&&!(h in e))return!1}else{var p=new i;if(a)var m=a(f,g,h,e,t,p);if(!(void 0===m?r(g,f,o|s,a,p):m))return!1}}return!0}},function(e,t,n){var i=n(239),r=n(373),o=n(716),s=n(718),a=n(195),l=n(86),c=n(193),d=n(216),u=1,h="[object Arguments]",f="[object Array]",g="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,_,b){var v=l(e),y=l(t),w=v?f:a(e),C=y?f:a(t),S=(w=w==h?g:w)==g,k=(C=C==h?g:C)==g,x=w==C;if(x&&c(e)){if(!c(t))return!1;v=!0,S=!1}if(x&&!S)return b||(b=new i),v||d(e)?r(e,t,n,m,_,b):o(e,t,w,n,m,_,b);if(!(n&u)){var L=S&&p.call(e,"__wrapped__"),M=k&&p.call(t,"__wrapped__");if(L||M){var D=L?e.value():e,E=M?t.value():t;return b||(b=new i),_(D,E,n,m,b)}}return!!x&&(b||(b=new i),s(e,t,n,m,_,b))}},function(e,t){var n="__lodash_hash_undefined__";e.exports=function(e){return this.__data__.set(e,n),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}},function(e,t,n){var i=n(192),r=n(367),o=n(191),s=n(373),a=n(717),l=n(308),c=1,d=2,u="[object Boolean]",h="[object Date]",f="[object Error]",g="[object Map]",p="[object Number]",m="[object RegExp]",_="[object Set]",b="[object String]",v="[object Symbol]",y="[object ArrayBuffer]",w="[object DataView]",C=i?i.prototype:void 0,S=C?C.valueOf:void 0;e.exports=function(e,t,n,i,C,k,x){switch(n){case w:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case y:return!(e.byteLength!=t.byteLength||!k(new r(e),new r(t)));case u:case h:case p:return o(+e,+t);case f:return e.name==t.name&&e.message==t.message;case m:case b:return e==t+"";case g:var L=a;case _:var M=i&c;if(L||(L=l),e.size!=t.size&&!M)return!1;var D=x.get(e);if(D)return D==t;i|=d,x.set(e,t);var E=s(L(e),L(t),i,C,k,x);return x.delete(e),E;case v:if(S)return S.call(e)==S.call(t)}return!1}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n}},function(e,t,n){var i=n(364),r=1,o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,s,a,l){var c=n&r,d=i(e),u=d.length;if(u!=i(t).length&&!c)return!1;for(var h=u;h--;){var f=d[h];if(!(c?f in t:o.call(t,f)))return!1}var g=l.get(e);if(g&&l.get(t))return g==t;var p=!0;l.set(e,t),l.set(t,e);for(var m=c;++h<u;){var _=e[f=d[h]],b=t[f];if(s)var v=c?s(b,_,f,t,e,l):s(_,b,f,e,t,l);if(!(void 0===v?_===b||a(_,b,n,s,l):v)){p=!1;break}m||(m="constructor"==f)}if(p&&!m){var y=e.constructor,w=t.constructor;y!=w&&"constructor"in e&&"constructor"in t&&!("function"==typeof y&&y instanceof y&&"function"==typeof w&&w instanceof w)&&(p=!1)}return l.delete(e),l.delete(t),p}},function(e,t,n){var i=n(376),r=n(158);e.exports=function(e){for(var t=r(e),n=t.length;n--;){var o=t[n],s=e[o];t[n]=[o,s,i(s)]}return t}},function(e,t,n){var i=n(372),r=n(721),o=n(379),s=n(310),a=n(376),l=n(377),c=n(219),d=1,u=2;e.exports=function(e,t){return s(e)&&a(t)?l(c(e),t):function(n){var s=r(n,e);return void 0===s&&s===t?o(n,e):i(t,s,d|u)}}},function(e,t,n){var i=n(309);e.exports=function(e,t,n){var r=null==e?void 0:i(e,t);return void 0===r?n:r}},function(e,t,n){var i=n(723),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,s=i((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(r,(function(e,n,i,r){t.push(i?r.replace(o,"$1"):n||e)})),t}));e.exports=s},function(e,t,n){var i=n(724),r=500;e.exports=function(e){var t=i(e,(function(e){return n.size===r&&n.clear(),e})),n=t.cache;return t}},function(e,t,n){var i=n(297),r="Expected a function";function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(r);var n=function(){var i=arguments,r=t?t.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var s=e.apply(this,i);return n.cache=o.set(r,s)||o,s};return n.cache=new(o.Cache||i),n}o.Cache=i,e.exports=o},function(e,t,n){var i=n(192),r=n(253),o=n(86),s=n(196),a=1/0,l=i?i.prototype:void 0,c=l?l.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return r(t,e)+"";if(s(t))return c?c.call(t):"";var n=t+"";return"0"==n&&1/t==-a?"-0":n}},function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t,n){var i=n(381),r=n(728),o=n(310),s=n(219);e.exports=function(e){return o(e)?i(s(e)):r(e)}},function(e,t,n){var i=n(309);e.exports=function(e){return function(t){return i(t,e)}}},function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e,t){return null!=e&&n.call(e,t)}},function(e,t){e.exports=function(e,t,n,i){var r=-1,o=null==e?0:e.length;for(i&&o&&(n=e[++r]);++r<o;)n=t(n,e[r],r,e);return n}},function(e,t){e.exports=function(e,t,n,i,r){return r(e,(function(e,r,o){n=i?(i=!1,e):t(n,e,r,o)})),n}},function(e,t,n){var i=n(181),r=n(86),o=n(149),s="[object String]";e.exports=function(e){return"string"==typeof e||!r(e)&&o(e)&&i(e)==s}},function(e,t,n){var i=n(734),r=n(735),o=n(736);e.exports=function(e){return r(e)?o(e):i(e)}},function(e,t,n){var i=n(381)("length");e.exports=i},function(e,t){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return n.test(e)}},function(e,t){var n="[\\ud800-\\udfff]",i="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\\ud83c[\\udffb-\\udfff]",o="[^\\ud800-\\udfff]",s="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+i+"|"+r+")"+"?",c="[\\ufe0e\\ufe0f]?"+l+("(?:\\u200d(?:"+[o,s,a].join("|")+")[\\ufe0e\\ufe0f]?"+l+")*"),d="(?:"+[o+i+"?",i,s,a,n].join("|")+")",u=RegExp(r+"(?="+r+")|"+d+c,"g");e.exports=function(e){for(var t=u.lastIndex=0;u.test(e);)++t;return t}},function(e,t,n){var i=n(192),r=n(214),o=n(86),s=i?i.isConcatSpreadable:void 0;e.exports=function(e){return o(e)||r(e)||!!(s&&e&&e[s])}},function(e,t){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},function(e,t,n){var i=n(217),r=n(356),o=n(182),s=r?function(e,t){return r(e,"toString",{configurable:!0,enumerable:!1,value:i(t),writable:!0})}:o;e.exports=s},function(e,t){var n=800,i=16,r=Date.now;e.exports=function(e){var t=0,o=0;return function(){var s=r(),a=i-(s-o);if(o=s,a>0){if(++t>=n)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,n){var i=n(374),r=n(742),o=n(746),s=n(375),a=n(747),l=n(308),c=200;e.exports=function(e,t,n){var d=-1,u=r,h=e.length,f=!0,g=[],p=g;if(n)f=!1,u=o;else if(h>=c){var m=t?null:a(e);if(m)return l(m);f=!1,u=s,p=new i}else p=t?[]:g;e:for(;++d<h;){var _=e[d],b=t?t(_):_;if(_=n||0!==_?_:0,f&&b==b){for(var v=p.length;v--;)if(p[v]===b)continue e;t&&p.push(b),g.push(_)}else u(p,b,n)||(p!==g&&p.push(b),g.push(_))}return g}},function(e,t,n){var i=n(743);e.exports=function(e,t){return!!(null==e?0:e.length)&&i(e,t,0)>-1}},function(e,t,n){var i=n(389),r=n(744),o=n(745);e.exports=function(e,t,n){return t==t?o(e,t,n):i(e,r,n)}},function(e,t){e.exports=function(e){return e!=e}},function(e,t){e.exports=function(e,t,n){for(var i=n-1,r=e.length;++i<r;)if(e[i]===t)return i;return-1}},function(e,t){e.exports=function(e,t,n){for(var i=-1,r=null==e?0:e.length;++i<r;)if(n(t,e[i]))return!0;return!1}},function(e,t,n){var i=n(366),r=n(748),o=n(308),s=i&&1/o(new i([,-0]))[1]==1/0?function(e){return new i(e)}:r;e.exports=s},function(e,t){e.exports=function(){}},function(e,t,n){var i=n(253);e.exports=function(e,t){return i(t,(function(t){return e[t]}))}},function(e,t){e.exports="2.1.7"},function(e,t,n){var i=n(131),r=n(295);function o(e){return i.map(e.nodes(),(function(t){var n=e.node(t),r=e.parent(t),o={v:t};return i.isUndefined(n)||(o.value=n),i.isUndefined(r)||(o.parent=r),o}))}function s(e){return i.map(e.edges(),(function(t){var n=e.edge(t),r={v:t.v,w:t.w};return i.isUndefined(t.name)||(r.name=t.name),i.isUndefined(n)||(r.value=n),r}))}e.exports={write:function(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:o(e),edges:s(e)};i.isUndefined(e.graph())||(t.value=i.clone(e.graph()));return t},read:function(e){var t=new r(e.options).setGraph(e.value);return i.each(e.nodes,(function(e){t.setNode(e.v,e.value),e.parent&&t.setParent(e.v,e.parent)})),i.each(e.edges,(function(e){t.setEdge({v:e.v,w:e.w,name:e.name},e.value)})),t}}},function(e,t,n){e.exports={components:n(753),dijkstra:n(391),dijkstraAll:n(754),findCycles:n(755),floydWarshall:n(756),isAcyclic:n(757),postorder:n(758),preorder:n(759),prim:n(760),tarjan:n(393),topsort:n(394)}},function(e,t,n){var i=n(131);e.exports=function(e){var t,n={},r=[];function o(r){i.has(n,r)||(n[r]=!0,t.push(r),i.each(e.successors(r),o),i.each(e.predecessors(r),o))}return i.each(e.nodes(),(function(e){t=[],o(e),t.length&&r.push(t)})),r}},function(e,t,n){var i=n(391),r=n(131);e.exports=function(e,t,n){return r.transform(e.nodes(),(function(r,o){r[o]=i(e,o,t,n)}),{})}},function(e,t,n){var i=n(131),r=n(393);e.exports=function(e){return i.filter(r(e),(function(t){return t.length>1||1===t.length&&e.hasEdge(t[0],t[0])}))}},function(e,t,n){var i=n(131);e.exports=function(e,t,n){return function(e,t,n){var i={},r=e.nodes();return r.forEach((function(e){i[e]={},i[e][e]={distance:0},r.forEach((function(t){e!==t&&(i[e][t]={distance:Number.POSITIVE_INFINITY})})),n(e).forEach((function(n){var r=n.v===e?n.w:n.v,o=t(n);i[e][r]={distance:o,predecessor:e}}))})),r.forEach((function(e){var t=i[e];r.forEach((function(n){var o=i[n];r.forEach((function(n){var i=o[e],r=t[n],s=o[n],a=i.distance+r.distance;a<s.distance&&(s.distance=a,s.predecessor=r.predecessor)}))}))})),i}(e,t||r,n||function(t){return e.outEdges(t)})};var r=i.constant(1)},function(e,t,n){var i=n(394);e.exports=function(e){try{i(e)}catch(e){if(e instanceof i.CycleException)return!1;throw e}return!0}},function(e,t,n){var i=n(395);e.exports=function(e,t){return i(e,t,"post")}},function(e,t,n){var i=n(395);e.exports=function(e,t){return i(e,t,"pre")}},function(e,t,n){var i=n(131),r=n(295),o=n(392);e.exports=function(e,t){var n,s=new r,a={},l=new o;function c(e){var i=e.v===n?e.w:e.v,r=l.priority(i);if(void 0!==r){var o=t(e);o<r&&(a[i]=n,l.decrease(i,o))}}if(0===e.nodeCount())return s;i.each(e.nodes(),(function(e){l.add(e,Number.POSITIVE_INFINITY),s.setNode(e)})),l.decrease(e.nodes()[0],0);var d=!1;for(;l.size()>0;){if(n=l.removeMin(),i.has(a,n))s.setEdge(n,a[n]);else{if(d)throw new Error("Input graph is not connected: "+e);d=!0}e.nodeEdges(n).forEach(c)}return s}},function(e,t,n){"use strict";var i=n(74),r=n(782),o=n(785),s=n(786),a=n(118).normalizeRanks,l=n(788),c=n(118).removeEmptyRanks,d=n(789),u=n(790),h=n(791),f=n(792),g=n(801),p=n(118),m=n(141).Graph;e.exports=function(e,t){var n=t&&t.debugTiming?p.time:p.notime;n("layout",(function(){var t=n(" buildLayoutGraph",(function(){return function(e){var t=new m({multigraph:!0,compound:!0}),n=L(e.graph());return t.setGraph(i.merge({},b,x(n,_),i.pick(n,v))),i.forEach(e.nodes(),(function(n){var r=L(e.node(n));t.setNode(n,i.defaults(x(r,y),w)),t.setParent(n,e.parent(n))})),i.forEach(e.edges(),(function(n){var r=L(e.edge(n));t.setEdge(n,i.merge({},S,x(r,C),i.pick(r,k)))})),t}(e)}));n(" runLayout",(function(){!function(e,t){t(" makeSpaceForEdgeLabels",(function(){!function(e){var t=e.graph();t.ranksep/=2,i.forEach(e.edges(),(function(n){var i=e.edge(n);i.minlen*=2,"c"!==i.labelpos.toLowerCase()&&("TB"===t.rankdir||"BT"===t.rankdir?i.width+=i.labeloffset:i.height+=i.labeloffset)}))}(e)})),t(" removeSelfEdges",(function(){!function(e){i.forEach(e.edges(),(function(t){if(t.v===t.w){var n=e.node(t.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}}))}(e)})),t(" acyclic",(function(){r.run(e)})),t(" nestingGraph.run",(function(){d.run(e)})),t(" rank",(function(){s(p.asNonCompoundGraph(e))})),t(" injectEdgeLabelProxies",(function(){!function(e){i.forEach(e.edges(),(function(t){var n=e.edge(t);if(n.width&&n.height){var i=e.node(t.v),r={rank:(e.node(t.w).rank-i.rank)/2+i.rank,e:t};p.addDummyNode(e,"edge-proxy",r,"_ep")}}))}(e)})),t(" removeEmptyRanks",(function(){c(e)})),t(" nestingGraph.cleanup",(function(){d.cleanup(e)})),t(" normalizeRanks",(function(){a(e)})),t(" assignRankMinMax",(function(){!function(e){var t=0;i.forEach(e.nodes(),(function(n){var r=e.node(n);r.borderTop&&(r.minRank=e.node(r.borderTop).rank,r.maxRank=e.node(r.borderBottom).rank,t=i.max(t,r.maxRank))})),e.graph().maxRank=t}(e)})),t(" removeEdgeLabelProxies",(function(){!function(e){i.forEach(e.nodes(),(function(t){var n=e.node(t);"edge-proxy"===n.dummy&&(e.edge(n.e).labelRank=n.rank,e.removeNode(t))}))}(e)})),t(" normalize.run",(function(){o.run(e)})),t(" parentDummyChains",(function(){l(e)})),t(" addBorderSegments",(function(){u(e)})),t(" order",(function(){f(e)})),t(" insertSelfEdges",(function(){!function(e){var t=p.buildLayerMatrix(e);i.forEach(t,(function(t){var n=0;i.forEach(t,(function(t,r){var o=e.node(t);o.order=r+n,i.forEach(o.selfEdges,(function(t){p.addDummyNode(e,"selfedge",{width:t.label.width,height:t.label.height,rank:o.rank,order:r+ ++n,e:t.e,label:t.label},"_se")})),delete o.selfEdges}))}))}(e)})),t(" adjustCoordinateSystem",(function(){h.adjust(e)})),t(" position",(function(){g(e)})),t(" positionSelfEdges",(function(){!function(e){i.forEach(e.nodes(),(function(t){var n=e.node(t);if("selfedge"===n.dummy){var i=e.node(n.e.v),r=i.x+i.width/2,o=i.y,s=n.x-r,a=i.height/2;e.setEdge(n.e,n.label),e.removeNode(t),n.label.points=[{x:r+2*s/3,y:o-a},{x:r+5*s/6,y:o-a},{x:r+s,y:o},{x:r+5*s/6,y:o+a},{x:r+2*s/3,y:o+a}],n.label.x=n.x,n.label.y=n.y}}))}(e)})),t(" removeBorderNodes",(function(){!function(e){i.forEach(e.nodes(),(function(t){if(e.children(t).length){var n=e.node(t),r=e.node(n.borderTop),o=e.node(n.borderBottom),s=e.node(i.last(n.borderLeft)),a=e.node(i.last(n.borderRight));n.width=Math.abs(a.x-s.x),n.height=Math.abs(o.y-r.y),n.x=s.x+n.width/2,n.y=r.y+n.height/2}})),i.forEach(e.nodes(),(function(t){"border"===e.node(t).dummy&&e.removeNode(t)}))}(e)})),t(" normalize.undo",(function(){o.undo(e)})),t(" fixupEdgeLabelCoords",(function(){!function(e){i.forEach(e.edges(),(function(t){var n=e.edge(t);if(i.has(n,"x"))switch("l"!==n.labelpos&&"r"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}}))}(e)})),t(" undoCoordinateSystem",(function(){h.undo(e)})),t(" translateGraph",(function(){!function(e){var t=Number.POSITIVE_INFINITY,n=0,r=Number.POSITIVE_INFINITY,o=0,s=e.graph(),a=s.marginx||0,l=s.marginy||0;function c(e){var i=e.x,s=e.y,a=e.width,l=e.height;t=Math.min(t,i-a/2),n=Math.max(n,i+a/2),r=Math.min(r,s-l/2),o=Math.max(o,s+l/2)}i.forEach(e.nodes(),(function(t){c(e.node(t))})),i.forEach(e.edges(),(function(t){var n=e.edge(t);i.has(n,"x")&&c(n)})),t-=a,r-=l,i.forEach(e.nodes(),(function(n){var i=e.node(n);i.x-=t,i.y-=r})),i.forEach(e.edges(),(function(n){var o=e.edge(n);i.forEach(o.points,(function(e){e.x-=t,e.y-=r})),i.has(o,"x")&&(o.x-=t),i.has(o,"y")&&(o.y-=r)})),s.width=n-t+a,s.height=o-r+l}(e)})),t(" assignNodeIntersects",(function(){!function(e){i.forEach(e.edges(),(function(t){var n,i,r=e.edge(t),o=e.node(t.v),s=e.node(t.w);r.points?(n=r.points[0],i=r.points[r.points.length-1]):(r.points=[],n=s,i=o),r.points.unshift(p.intersectRect(o,n)),r.points.push(p.intersectRect(s,i))}))}(e)})),t(" reversePoints",(function(){!function(e){i.forEach(e.edges(),(function(t){var n=e.edge(t);n.reversed&&n.points.reverse()}))}(e)})),t(" acyclic.undo",(function(){r.undo(e)}))}(t,n)})),n(" updateInputGraph",(function(){!function(e,t){i.forEach(e.nodes(),(function(n){var i=e.node(n),r=t.node(n);i&&(i.x=r.x,i.y=r.y,t.children(n).length&&(i.width=r.width,i.height=r.height))})),i.forEach(e.edges(),(function(n){var r=e.edge(n),o=t.edge(n);r.points=o.points,i.has(o,"x")&&(r.x=o.x,r.y=o.y)})),e.graph().width=t.graph().width,e.graph().height=t.graph().height}(e,t)}))}))};var _=["nodesep","edgesep","ranksep","marginx","marginy"],b={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},v=["acyclicer","ranker","rankdir","align"],y=["width","height"],w={width:0,height:0},C=["minlen","weight","width","height","labeloffset"],S={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},k=["labelpos"];function x(e,t){return i.mapValues(i.pick(e,t),Number)}function L(e){var t={};return i.forEach(e,(function(e,n){t[n.toLowerCase()]=e})),t}},function(e,t,n){var i=n(160),r=n(159),o=n(158);e.exports=function(e){return function(t,n,s){var a=Object(t);if(!r(t)){var l=i(n,3);t=o(t),n=function(e){return l(a[e],e,a)}}var c=e(t,n,s);return c>-1?a[l?t[c]:c]:void 0}}},function(e,t,n){var i=n(389),r=n(160),o=n(764),s=Math.max;e.exports=function(e,t,n){var a=null==e?0:e.length;if(!a)return-1;var l=null==n?0:o(n);return l<0&&(l=s(a+l,0)),i(e,r(t,3),l)}},function(e,t,n){var i=n(398);e.exports=function(e){var t=i(e),n=t%1;return t==t?n?t-n:t:0}},function(e,t,n){var i=n(132),r=n(196),o=NaN,s=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,d=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(r(e))return o;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(s,"");var n=l.test(e);return n||c.test(e)?d(e.slice(2),n?2:8):a.test(e)?o:+e}},function(e,t){e.exports=function(e,t){return e>t}},function(e,t,n){var i=n(239),r=n(404),o=n(307),s=n(768),a=n(132),l=n(194),c=n(406);e.exports=function e(t,n,d,u,h){t!==n&&o(n,(function(o,l){if(h||(h=new i),a(o))s(t,n,l,d,e,u,h);else{var f=u?u(c(t,l),o,l+"",t,n,h):void 0;void 0===f&&(f=o),r(t,l,f)}}),l)}},function(e,t,n){var i=n(404),r=n(359),o=n(368),s=n(360),a=n(369),l=n(214),c=n(86),d=n(390),u=n(193),h=n(180),f=n(132),g=n(405),p=n(216),m=n(406),_=n(769);e.exports=function(e,t,n,b,v,y,w){var C=m(e,n),S=m(t,n),k=w.get(S);if(k)i(e,n,k);else{var x=y?y(C,S,n+"",e,t,w):void 0,L=void 0===x;if(L){var M=c(S),D=!M&&u(S),E=!M&&!D&&p(S);x=S,M||D||E?c(C)?x=C:d(C)?x=s(C):D?(L=!1,x=r(S,!0)):E?(L=!1,x=o(S,!0)):x=[]:g(S)||l(S)?(x=C,l(C)?x=_(C):f(C)&&!h(C)||(x=a(S))):L=!1}L&&(w.set(S,x),v(x,S,b,y,w),w.delete(S)),i(e,n,x)}}},function(e,t,n){var i=n(213),r=n(194);e.exports=function(e){return i(e,r(e))}},function(e,t,n){var i=n(257),r=n(259);e.exports=function(e){return i((function(t,n){var i=-1,o=n.length,s=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(s=e.length>3&&"function"==typeof s?(o--,s):void 0,a&&r(n[0],n[1],a)&&(s=o<3?void 0:s,o=1),t=Object(t);++i<o;){var l=n[i];l&&e(t,l,i,s)}return t}))}},function(e,t,n){var i=n(772),r=n(379);e.exports=function(e,t){return i(e,t,(function(t,n){return r(e,n)}))}},function(e,t,n){var i=n(309),r=n(773),o=n(252);e.exports=function(e,t,n){for(var s=-1,a=t.length,l={};++s<a;){var c=t[s],d=i(e,c);n(d,c)&&r(l,o(c,e),d)}return l}},function(e,t,n){var i=n(244),r=n(252),o=n(246),s=n(132),a=n(219);e.exports=function(e,t,n,l){if(!s(e))return e;for(var c=-1,d=(t=r(t,e)).length,u=d-1,h=e;null!=h&&++c<d;){var f=a(t[c]),g=n;if(c!=u){var p=h[f];void 0===(g=l?l(p,f,h):void 0)&&(g=s(p)?p:o(t[c+1])?[]:{})}i(h,f,g),h=h[f]}return e}},function(e,t,n){var i=n(313),r=n(387),o=n(388);e.exports=function(e){return o(r(e,void 0,i),e+"")}},function(e,t,n){var i=n(776),r=n(259),o=n(398);e.exports=function(e){return function(t,n,s){return s&&"number"!=typeof s&&r(t,n,s)&&(n=s=void 0),t=o(t),void 0===n?(n=t,t=0):n=o(n),s=void 0===s?t<n?1:-1:o(s),i(t,n,s,e)}}},function(e,t){var n=Math.ceil,i=Math.max;e.exports=function(e,t,r,o){for(var s=-1,a=i(n((t-e)/(r||1)),0),l=Array(a);a--;)l[o?a:++s]=e,e+=r;return l}},function(e,t,n){var i=n(253),r=n(160),o=n(383),s=n(778),a=n(247),l=n(779),c=n(182);e.exports=function(e,t,n){var d=-1;t=i(t.length?t:[c],a(r));var u=o(e,(function(e,n,r){return{criteria:i(t,(function(t){return t(e)})),index:++d,value:e}}));return s(u,(function(e,t){return l(e,t,n)}))}},function(e,t){e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},function(e,t,n){var i=n(780);e.exports=function(e,t,n){for(var r=-1,o=e.criteria,s=t.criteria,a=o.length,l=n.length;++r<a;){var c=i(o[r],s[r]);if(c)return r>=l?c:c*("desc"==n[r]?-1:1)}return e.index-t.index}},function(e,t,n){var i=n(196);e.exports=function(e,t){if(e!==t){var n=void 0!==e,r=null===e,o=e==e,s=i(e),a=void 0!==t,l=null===t,c=t==t,d=i(t);if(!l&&!d&&!s&&e>t||s&&a&&c&&!l&&!d||r&&a&&c||!n&&c||!o)return 1;if(!r&&!s&&!d&&e<t||d&&n&&o&&!r&&!s||l&&n&&o||!a&&o||!c)return-1}return 0}},function(e,t){e.exports=function(e,t,n){for(var i=-1,r=e.length,o=t.length,s={};++i<r;){var a=i<o?t[i]:void 0;n(s,e[i],a)}return s}},function(e,t,n){"use strict";var i=n(74),r=n(783);e.exports={run:function(e){var t="greedy"===e.graph().acyclicer?r(e,function(e){return function(t){return e.edge(t).weight}}(e)):function(e){var t=[],n={},r={};return i.forEach(e.nodes(),(function o(s){if(i.has(r,s))return;r[s]=!0,n[s]=!0,i.forEach(e.outEdges(s),(function(e){i.has(n,e.w)?t.push(e):o(e.w)})),delete n[s]})),t}(e);i.forEach(t,(function(t){var n=e.edge(t);e.removeEdge(t),n.forwardName=t.name,n.reversed=!0,e.setEdge(t.w,t.v,n,i.uniqueId("rev"))}))},undo:function(e){i.forEach(e.edges(),(function(t){var n=e.edge(t);if(n.reversed){e.removeEdge(t);var i=n.forwardName;delete n.reversed,delete n.forwardName,e.setEdge(t.w,t.v,n,i)}}))}}},function(e,t,n){var i=n(74),r=n(141).Graph,o=n(784);e.exports=function(e,t){if(e.nodeCount()<=1)return[];var n=function(e,t){var n=new r,s=0,a=0;i.forEach(e.nodes(),(function(e){n.setNode(e,{v:e,in:0,out:0})})),i.forEach(e.edges(),(function(e){var i=n.edge(e.v,e.w)||0,r=t(e),o=i+r;n.setEdge(e.v,e.w,o),a=Math.max(a,n.node(e.v).out+=r),s=Math.max(s,n.node(e.w).in+=r)}));var c=i.range(a+s+3).map((function(){return new o})),d=s+1;return i.forEach(n.nodes(),(function(e){l(c,d,n.node(e))})),{graph:n,buckets:c,zeroIdx:d}}(e,t||s),c=function(e,t,n){var i,r=[],o=t[t.length-1],s=t[0];for(;e.nodeCount();){for(;i=s.dequeue();)a(e,t,n,i);for(;i=o.dequeue();)a(e,t,n,i);if(e.nodeCount())for(var l=t.length-2;l>0;--l)if(i=t[l].dequeue()){r=r.concat(a(e,t,n,i,!0));break}}return r}(n.graph,n.buckets,n.zeroIdx);return i.flatten(i.map(c,(function(t){return e.outEdges(t.v,t.w)})),!0)};var s=i.constant(1);function a(e,t,n,r,o){var s=o?[]:void 0;return i.forEach(e.inEdges(r.v),(function(i){var r=e.edge(i),a=e.node(i.v);o&&s.push({v:i.v,w:i.w}),a.out-=r,l(t,n,a)})),i.forEach(e.outEdges(r.v),(function(i){var r=e.edge(i),o=i.w,s=e.node(o);s.in-=r,l(t,n,s)})),e.removeNode(r.v),s}function l(e,t,n){n.out?n.in?e[n.out-n.in+t].enqueue(n):e[e.length-1].enqueue(n):e[0].enqueue(n)}},function(e,t){function n(){var e={};e._next=e._prev=e,this._sentinel=e}function i(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function r(e,t){if("_next"!==e&&"_prev"!==e)return t}e.exports=n,n.prototype.dequeue=function(){var e=this._sentinel,t=e._prev;if(t!==e)return i(t),t},n.prototype.enqueue=function(e){var t=this._sentinel;e._prev&&e._next&&i(e),e._next=t._next,t._next._prev=e,t._next=e,e._prev=t},n.prototype.toString=function(){for(var e=[],t=this._sentinel,n=t._prev;n!==t;)e.push(JSON.stringify(n,r)),n=n._prev;return"["+e.join(", ")+"]"}},function(e,t,n){"use strict";var i=n(74),r=n(118);e.exports={run:function(e){e.graph().dummyChains=[],i.forEach(e.edges(),(function(t){!function(e,t){var n,i,o,s=t.v,a=e.node(s).rank,l=t.w,c=e.node(l).rank,d=t.name,u=e.edge(t),h=u.labelRank;if(c===a+1)return;for(e.removeEdge(t),o=0,++a;a<c;++o,++a)u.points=[],i={width:0,height:0,edgeLabel:u,edgeObj:t,rank:a},n=r.addDummyNode(e,"edge",i,"_d"),a===h&&(i.width=u.width,i.height=u.height,i.dummy="edge-label",i.labelpos=u.labelpos),e.setEdge(s,n,{weight:u.weight},d),0===o&&e.graph().dummyChains.push(n),s=n;e.setEdge(s,l,{weight:u.weight},d)}(e,t)}))},undo:function(e){i.forEach(e.graph().dummyChains,(function(t){var n,i=e.node(t),r=i.edgeLabel;for(e.setEdge(i.edgeObj,r);i.dummy;)n=e.successors(t)[0],e.removeNode(t),r.points.push({x:i.x,y:i.y}),"edge-label"===i.dummy&&(r.x=i.x,r.y=i.y,r.width=i.width,r.height=i.height),t=n,i=e.node(t)}))}}},function(e,t,n){"use strict";var i=n(260).longestPath,r=n(413),o=n(787);e.exports=function(e){switch(e.graph().ranker){case"network-simplex":a(e);break;case"tight-tree":!function(e){i(e),r(e)}(e);break;case"longest-path":s(e);break;default:a(e)}};var s=i;function a(e){o(e)}},function(e,t,n){"use strict";var i=n(74),r=n(413),o=n(260).slack,s=n(260).longestPath,a=n(141).alg.preorder,l=n(141).alg.postorder,c=n(118).simplify;function d(e){e=c(e),s(e);var t,n=r(e);for(f(n),u(n,e);t=g(n);)m(n,e,t,p(n,e,t))}function u(e,t){var n=l(e,e.nodes());n=n.slice(0,n.length-1),i.forEach(n,(function(n){!function(e,t,n){var i=e.node(n).parent;e.edge(n,i).cutvalue=h(e,t,n)}(e,t,n)}))}function h(e,t,n){var r=e.node(n).parent,o=!0,s=t.edge(n,r),a=0;return s||(o=!1,s=t.edge(r,n)),a=s.weight,i.forEach(t.nodeEdges(n),(function(i){var s,l,c=i.v===n,d=c?i.w:i.v;if(d!==r){var u=c===o,h=t.edge(i).weight;if(a+=u?h:-h,s=n,l=d,e.hasEdge(s,l)){var f=e.edge(n,d).cutvalue;a+=u?-f:f}}})),a}function f(e,t){arguments.length<2&&(t=e.nodes()[0]),function e(t,n,r,o,s){var a=r,l=t.node(o);n[o]=!0,i.forEach(t.neighbors(o),(function(s){i.has(n,s)||(r=e(t,n,r,s,o))})),l.low=a,l.lim=r++,s?l.parent=s:delete l.parent;return r}(e,{},1,t)}function g(e){return i.find(e.edges(),(function(t){return e.edge(t).cutvalue<0}))}function p(e,t,n){var r=n.v,s=n.w;t.hasEdge(r,s)||(r=n.w,s=n.v);var a=e.node(r),l=e.node(s),c=a,d=!1;a.lim>l.lim&&(c=l,d=!0);var u=i.filter(t.edges(),(function(t){return d===_(e,e.node(t.v),c)&&d!==_(e,e.node(t.w),c)}));return i.minBy(u,(function(e){return o(t,e)}))}function m(e,t,n,r){var o=n.v,s=n.w;e.removeEdge(o,s),e.setEdge(r.v,r.w,{}),f(e),u(e,t),function(e,t){var n=i.find(e.nodes(),(function(e){return!t.node(e).parent})),r=a(e,n);r=r.slice(1),i.forEach(r,(function(n){var i=e.node(n).parent,r=t.edge(n,i),o=!1;r||(r=t.edge(i,n),o=!0),t.node(n).rank=t.node(i).rank+(o?r.minlen:-r.minlen)}))}(e,t)}function _(e,t,n){return n.low<=t.lim&&t.lim<=n.lim}e.exports=d,d.initLowLimValues=f,d.initCutValues=u,d.calcCutValue=h,d.leaveEdge=g,d.enterEdge=p,d.exchangeEdges=m},function(e,t,n){var i=n(74);e.exports=function(e){var t=function(e){var t={},n=0;return i.forEach(e.children(),(function r(o){var s=n;i.forEach(e.children(o),r),t[o]={low:s,lim:n++}})),t}(e);i.forEach(e.graph().dummyChains,(function(n){for(var i=e.node(n),r=i.edgeObj,o=function(e,t,n,i){var r,o,s=[],a=[],l=Math.min(t[n].low,t[i].low),c=Math.max(t[n].lim,t[i].lim);r=n;do{r=e.parent(r),s.push(r)}while(r&&(t[r].low>l||c>t[r].lim));o=r,r=i;for(;(r=e.parent(r))!==o;)a.push(r);return{path:s.concat(a.reverse()),lca:o}}(e,t,r.v,r.w),s=o.path,a=o.lca,l=0,c=s[l],d=!0;n!==r.w;){if(i=e.node(n),d){for(;(c=s[l])!==a&&e.node(c).maxRank<i.rank;)l++;c===a&&(d=!1)}if(!d){for(;l<s.length-1&&e.node(c=s[l+1]).minRank<=i.rank;)l++;c=s[l]}e.setParent(n,c),n=e.successors(n)[0]}}))}},function(e,t,n){var i=n(74),r=n(118);e.exports={run:function(e){var t=r.addDummyNode(e,"root",{},"_root"),n=function(e){var t={};return i.forEach(e.children(),(function(n){!function n(r,o){var s=e.children(r);s&&s.length&&i.forEach(s,(function(e){n(e,o+1)}));t[r]=o}(n,1)})),t}(e),o=i.max(i.values(n))-1,s=2*o+1;e.graph().nestingRoot=t,i.forEach(e.edges(),(function(t){e.edge(t).minlen*=s}));var a=function(e){return i.reduce(e.edges(),(function(t,n){return t+e.edge(n).weight}),0)}(e)+1;i.forEach(e.children(),(function(l){!function e(t,n,o,s,a,l,c){var d=t.children(c);if(!d.length)return void(c!==n&&t.setEdge(n,c,{weight:0,minlen:o}));var u=r.addBorderNode(t,"_bt"),h=r.addBorderNode(t,"_bb"),f=t.node(c);t.setParent(u,c),f.borderTop=u,t.setParent(h,c),f.borderBottom=h,i.forEach(d,(function(i){e(t,n,o,s,a,l,i);var r=t.node(i),d=r.borderTop?r.borderTop:i,f=r.borderBottom?r.borderBottom:i,g=r.borderTop?s:2*s,p=d!==f?1:a-l[c]+1;t.setEdge(u,d,{weight:g,minlen:p,nestingEdge:!0}),t.setEdge(f,h,{weight:g,minlen:p,nestingEdge:!0})})),t.parent(c)||t.setEdge(n,u,{weight:0,minlen:a+l[c]})}(e,t,s,a,o,n,l)})),e.graph().nodeRankFactor=s},cleanup:function(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,i.forEach(e.edges(),(function(t){e.edge(t).nestingEdge&&e.removeEdge(t)}))}}},function(e,t,n){var i=n(74),r=n(118);function o(e,t,n,i,o,s){var a={width:0,height:0,rank:s,borderType:t},l=o[t][s-1],c=r.addDummyNode(e,"border",a,n);o[t][s]=c,e.setParent(c,i),l&&e.setEdge(l,c,{weight:1})}e.exports=function(e){i.forEach(e.children(),(function t(n){var r=e.children(n),s=e.node(n);if(r.length&&i.forEach(r,t),i.has(s,"minRank")){s.borderLeft=[],s.borderRight=[];for(var a=s.minRank,l=s.maxRank+1;a<l;++a)o(e,"borderLeft","_bl",n,s,a),o(e,"borderRight","_br",n,s,a)}}))}},function(e,t,n){"use strict";var i=n(74);function r(e){i.forEach(e.nodes(),(function(t){o(e.node(t))})),i.forEach(e.edges(),(function(t){o(e.edge(t))}))}function o(e){var t=e.width;e.width=e.height,e.height=t}function s(e){e.y=-e.y}function a(e){var t=e.x;e.x=e.y,e.y=t}e.exports={adjust:function(e){var t=e.graph().rankdir.toLowerCase();"lr"!==t&&"rl"!==t||r(e)},undo:function(e){var t=e.graph().rankdir.toLowerCase();"bt"!==t&&"rl"!==t||function(e){i.forEach(e.nodes(),(function(t){s(e.node(t))})),i.forEach(e.edges(),(function(t){var n=e.edge(t);i.forEach(n.points,s),i.has(n,"y")&&s(n)}))}(e);"lr"!==t&&"rl"!==t||(!function(e){i.forEach(e.nodes(),(function(t){a(e.node(t))})),i.forEach(e.edges(),(function(t){var n=e.edge(t);i.forEach(n.points,a),i.has(n,"x")&&a(n)}))}(e),r(e))}}},function(e,t,n){"use strict";var i=n(74),r=n(793),o=n(794),s=n(795),a=n(799),l=n(800),c=n(141).Graph,d=n(118);function u(e,t,n){return i.map(t,(function(t){return a(e,t,n)}))}function h(e,t){var n=new c;i.forEach(e,(function(e){var r=e.graph().root,o=s(e,r,n,t);i.forEach(o.vs,(function(t,n){e.node(t).order=n})),l(e,n,o.vs)}))}function f(e,t){i.forEach(t,(function(t){i.forEach(t,(function(t,n){e.node(t).order=n}))}))}e.exports=function(e){var t=d.maxRank(e),n=u(e,i.range(1,t+1),"inEdges"),s=u(e,i.range(t-1,-1,-1),"outEdges"),a=r(e);f(e,a);for(var l,c=Number.POSITIVE_INFINITY,g=0,p=0;p<4;++g,++p){h(g%2?n:s,g%4>=2),a=d.buildLayerMatrix(e);var m=o(e,a);m<c&&(p=0,l=i.cloneDeep(a),c=m)}f(e,l)}},function(e,t,n){"use strict";var i=n(74);e.exports=function(e){var t={},n=i.filter(e.nodes(),(function(t){return!e.children(t).length})),r=i.max(i.map(n,(function(t){return e.node(t).rank}))),o=i.map(i.range(r+1),(function(){return[]}));var s=i.sortBy(n,(function(t){return e.node(t).rank}));return i.forEach(s,(function n(r){if(i.has(t,r))return;t[r]=!0;var s=e.node(r);o[s.rank].push(r),i.forEach(e.successors(r),n)})),o}},function(e,t,n){"use strict";var i=n(74);function r(e,t,n){for(var r=i.zipObject(n,i.map(n,(function(e,t){return t}))),o=i.flatten(i.map(t,(function(t){return i.sortBy(i.map(e.outEdges(t),(function(t){return{pos:r[t.w],weight:e.edge(t).weight}})),"pos")})),!0),s=1;s<n.length;)s<<=1;var a=2*s-1;s-=1;var l=i.map(new Array(a),(function(){return 0})),c=0;return i.forEach(o.forEach((function(e){var t=e.pos+s;l[t]+=e.weight;for(var n=0;t>0;)t%2&&(n+=l[t+1]),l[t=t-1>>1]+=e.weight;c+=e.weight*n}))),c}e.exports=function(e,t){for(var n=0,i=1;i<t.length;++i)n+=r(e,t[i-1],t[i]);return n}},function(e,t,n){var i=n(74),r=n(796),o=n(797),s=n(798);e.exports=function e(t,n,a,l){var c=t.children(n),d=t.node(n),u=d?d.borderLeft:void 0,h=d?d.borderRight:void 0,f={};u&&(c=i.filter(c,(function(e){return e!==u&&e!==h})));var g=r(t,c);i.forEach(g,(function(n){if(t.children(n.v).length){var r=e(t,n.v,a,l);f[n.v]=r,i.has(r,"barycenter")&&(o=n,s=r,i.isUndefined(o.barycenter)?(o.barycenter=s.barycenter,o.weight=s.weight):(o.barycenter=(o.barycenter*o.weight+s.barycenter*s.weight)/(o.weight+s.weight),o.weight+=s.weight))}var o,s}));var p=o(g,a);!function(e,t){i.forEach(e,(function(e){e.vs=i.flatten(e.vs.map((function(e){return t[e]?t[e].vs:e})),!0)}))}(p,f);var m=s(p,l);if(u&&(m.vs=i.flatten([u,m.vs,h],!0),t.predecessors(u).length)){var _=t.node(t.predecessors(u)[0]),b=t.node(t.predecessors(h)[0]);i.has(m,"barycenter")||(m.barycenter=0,m.weight=0),m.barycenter=(m.barycenter*m.weight+_.order+b.order)/(m.weight+2),m.weight+=2}return m}},function(e,t,n){var i=n(74);e.exports=function(e,t){return i.map(t,(function(t){var n=e.inEdges(t);if(n.length){var r=i.reduce(n,(function(t,n){var i=e.edge(n),r=e.node(n.v);return{sum:t.sum+i.weight*r.order,weight:t.weight+i.weight}}),{sum:0,weight:0});return{v:t,barycenter:r.sum/r.weight,weight:r.weight}}return{v:t}}))}},function(e,t,n){"use strict";var i=n(74);e.exports=function(e,t){var n={};return i.forEach(e,(function(e,t){var r=n[e.v]={indegree:0,in:[],out:[],vs:[e.v],i:t};i.isUndefined(e.barycenter)||(r.barycenter=e.barycenter,r.weight=e.weight)})),i.forEach(t.edges(),(function(e){var t=n[e.v],r=n[e.w];i.isUndefined(t)||i.isUndefined(r)||(r.indegree++,t.out.push(n[e.w]))})),function(e){var t=[];function n(e){return function(t){t.merged||(i.isUndefined(t.barycenter)||i.isUndefined(e.barycenter)||t.barycenter>=e.barycenter)&&function(e,t){var n=0,i=0;e.weight&&(n+=e.barycenter*e.weight,i+=e.weight);t.weight&&(n+=t.barycenter*t.weight,i+=t.weight);e.vs=t.vs.concat(e.vs),e.barycenter=n/i,e.weight=i,e.i=Math.min(t.i,e.i),t.merged=!0}(e,t)}}function r(t){return function(n){n.in.push(t),0==--n.indegree&&e.push(n)}}for(;e.length;){var o=e.pop();t.push(o),i.forEach(o.in.reverse(),n(o)),i.forEach(o.out,r(o))}return i.map(i.filter(t,(function(e){return!e.merged})),(function(e){return i.pick(e,["vs","i","barycenter","weight"])}))}(i.filter(n,(function(e){return!e.indegree})))}},function(e,t,n){var i=n(74),r=n(118);function o(e,t,n){for(var r;t.length&&(r=i.last(t)).i<=n;)t.pop(),e.push(r.vs),n++;return n}e.exports=function(e,t){var n=r.partition(e,(function(e){return i.has(e,"barycenter")})),s=n.lhs,a=i.sortBy(n.rhs,(function(e){return-e.i})),l=[],c=0,d=0,u=0;s.sort((h=!!t,function(e,t){return e.barycenter<t.barycenter?-1:e.barycenter>t.barycenter?1:h?t.i-e.i:e.i-t.i})),u=o(l,a,u),i.forEach(s,(function(e){u+=e.vs.length,l.push(e.vs),c+=e.barycenter*e.weight,d+=e.weight,u=o(l,a,u)}));var h;var f={vs:i.flatten(l,!0)};d&&(f.barycenter=c/d,f.weight=d);return f}},function(e,t,n){var i=n(74),r=n(141).Graph;e.exports=function(e,t,n){var o=function(e){var t;for(;e.hasNode(t=i.uniqueId("_root")););return t}(e),s=new r({compound:!0}).setGraph({root:o}).setDefaultNodeLabel((function(t){return e.node(t)}));return i.forEach(e.nodes(),(function(r){var a=e.node(r),l=e.parent(r);(a.rank===t||a.minRank<=t&&t<=a.maxRank)&&(s.setNode(r),s.setParent(r,l||o),i.forEach(e[n](r),(function(t){var n=t.v===r?t.w:t.v,o=s.edge(n,r),a=i.isUndefined(o)?0:o.weight;s.setEdge(n,r,{weight:e.edge(t).weight+a})})),i.has(a,"minRank")&&s.setNode(r,{borderLeft:a.borderLeft[t],borderRight:a.borderRight[t]}))})),s}},function(e,t,n){var i=n(74);e.exports=function(e,t,n){var r,o={};i.forEach(n,(function(n){for(var i,s,a=e.parent(n);a;){if((i=e.parent(a))?(s=o[i],o[i]=a):(s=r,r=a),s&&s!==a)return void t.setEdge(s,a);a=i}}))}},function(e,t,n){"use strict";var i=n(74),r=n(118),o=n(802).positionX;e.exports=function(e){(function(e){var t=r.buildLayerMatrix(e),n=e.graph().ranksep,o=0;i.forEach(t,(function(t){var r=i.max(i.map(t,(function(t){return e.node(t).height})));i.forEach(t,(function(t){e.node(t).y=o+r/2})),o+=r+n}))})(e=r.asNonCompoundGraph(e)),i.forEach(o(e),(function(t,n){e.node(n).x=t}))}},function(e,t,n){"use strict";var i=n(74),r=n(141).Graph,o=n(118);function s(e,t){var n={};return i.reduce(t,(function(t,r){var o=0,s=0,a=t.length,c=i.last(r);return i.forEach(r,(function(t,d){var u=function(e,t){if(e.node(t).dummy)return i.find(e.predecessors(t),(function(t){return e.node(t).dummy}))}(e,t),h=u?e.node(u).order:a;(u||t===c)&&(i.forEach(r.slice(s,d+1),(function(t){i.forEach(e.predecessors(t),(function(i){var r=e.node(i),s=r.order;!(s<o||h<s)||r.dummy&&e.node(t).dummy||l(n,i,t)}))})),s=d+1,o=h)})),r})),n}function a(e,t){var n={};function r(t,r,o,s,a){var c;i.forEach(i.range(r,o),(function(r){c=t[r],e.node(c).dummy&&i.forEach(e.predecessors(c),(function(t){var i=e.node(t);i.dummy&&(i.order<s||i.order>a)&&l(n,t,c)}))}))}return i.reduce(t,(function(t,n){var o,s=-1,a=0;return i.forEach(n,(function(i,l){if("border"===e.node(i).dummy){var c=e.predecessors(i);c.length&&(o=e.node(c[0]).order,r(n,a,l,s,o),a=l,s=o)}r(n,a,n.length,o,t.length)})),n})),n}function l(e,t,n){if(t>n){var i=t;t=n,n=i}var r=e[t];r||(e[t]=r={}),r[n]=!0}function c(e,t,n){if(t>n){var r=t;t=n,n=r}return i.has(e[t],n)}function d(e,t,n,r){var o={},s={},a={};return i.forEach(t,(function(e){i.forEach(e,(function(e,t){o[e]=e,s[e]=e,a[e]=t}))})),i.forEach(t,(function(e){var t=-1;i.forEach(e,(function(e){var l=r(e);if(l.length)for(var d=((l=i.sortBy(l,(function(e){return a[e]}))).length-1)/2,u=Math.floor(d),h=Math.ceil(d);u<=h;++u){var f=l[u];s[e]===e&&t<a[f]&&!c(n,e,f)&&(s[f]=e,s[e]=o[e]=o[f],t=a[f])}}))})),{root:o,align:s}}function u(e,t,n,o,s){var a={},l=function(e,t,n,o){var s=new r,a=e.graph(),l=function(e,t,n){return function(r,o,s){var a,l=r.node(o),c=r.node(s),d=0;if(d+=l.width/2,i.has(l,"labelpos"))switch(l.labelpos.toLowerCase()){case"l":a=-l.width/2;break;case"r":a=l.width/2}if(a&&(d+=n?a:-a),a=0,d+=(l.dummy?t:e)/2,d+=(c.dummy?t:e)/2,d+=c.width/2,i.has(c,"labelpos"))switch(c.labelpos.toLowerCase()){case"l":a=c.width/2;break;case"r":a=-c.width/2}return a&&(d+=n?a:-a),a=0,d}}(a.nodesep,a.edgesep,o);return i.forEach(t,(function(t){var r;i.forEach(t,(function(t){var i=n[t];if(s.setNode(i),r){var o=n[r],a=s.edge(o,i);s.setEdge(o,i,Math.max(l(e,t,r),a||0))}r=t}))})),s}(e,t,n,s),c=s?"borderLeft":"borderRight";function d(e,t){for(var n=l.nodes(),i=n.pop(),r={};i;)r[i]?e(i):(r[i]=!0,n.push(i),n=n.concat(t(i))),i=n.pop()}return d((function(e){a[e]=l.inEdges(e).reduce((function(e,t){return Math.max(e,a[t.v]+l.edge(t))}),0)}),l.predecessors.bind(l)),d((function(t){var n=l.outEdges(t).reduce((function(e,t){return Math.min(e,a[t.w]-l.edge(t))}),Number.POSITIVE_INFINITY),i=e.node(t);n!==Number.POSITIVE_INFINITY&&i.borderType!==c&&(a[t]=Math.max(a[t],n))}),l.successors.bind(l)),i.forEach(o,(function(e){a[e]=a[n[e]]})),a}function h(e,t){return i.minBy(i.values(t),(function(t){var n=Number.NEGATIVE_INFINITY,r=Number.POSITIVE_INFINITY;return i.forIn(t,(function(t,i){var o=function(e,t){return e.node(t).width}(e,i)/2;n=Math.max(t+o,n),r=Math.min(t-o,r)})),n-r}))}function f(e,t){var n=i.values(t),r=i.min(n),o=i.max(n);i.forEach(["u","d"],(function(n){i.forEach(["l","r"],(function(s){var a,l=n+s,c=e[l];if(c!==t){var d=i.values(c);(a="l"===s?r-i.min(d):o-i.max(d))&&(e[l]=i.mapValues(c,(function(e){return e+a})))}}))}))}function g(e,t){return i.mapValues(e.ul,(function(n,r){if(t)return e[t.toLowerCase()][r];var o=i.sortBy(i.map(e,r));return(o[1]+o[2])/2}))}e.exports={positionX:function(e){var t,n=o.buildLayerMatrix(e),r=i.merge(s(e,n),a(e,n)),l={};i.forEach(["u","d"],(function(o){t="u"===o?n:i.values(n).reverse(),i.forEach(["l","r"],(function(n){"r"===n&&(t=i.map(t,(function(e){return i.values(e).reverse()})));var s=("u"===o?e.predecessors:e.successors).bind(e),a=d(e,t,r,s),c=u(e,t,a.root,a.align,"r"===n);"r"===n&&(c=i.mapValues(c,(function(e){return-e}))),l[o+n]=c}))}));var c=h(e,l);return f(l,c),g(l,e.graph().align)},findType1Conflicts:s,findType2Conflicts:a,addConflict:l,hasConflict:c,verticalAlignment:d,horizontalCompaction:u,alignCoordinates:f,findSmallestWidthAlignment:h,balance:g}},function(e,t,n){var i=n(74),r=n(118),o=n(141).Graph;e.exports={debugOrdering:function(e){var t=r.buildLayerMatrix(e),n=new o({compound:!0,multigraph:!0}).setGraph({});return i.forEach(e.nodes(),(function(t){n.setNode(t,{label:t}),n.setParent(t,"layer"+e.node(t).rank)})),i.forEach(e.edges(),(function(e){n.setEdge(e.v,e.w,{},e.name)})),i.forEach(t,(function(e,t){var r="layer"+t;n.setNode(r,{rank:"same"}),i.reduce(e,(function(e,t){return n.setEdge(e,t,{style:"invis"}),t}))})),n}}},function(e,t){e.exports="0.8.4"},function(e,t,n){ /** * @license * Copyright (c) 2012-2013 Chris Pettitt @@ -416,4 +423,4 @@ void 0!==arguments[0]&&(l.sequenceConfig=arguments[0]),e=arguments[1]):e=argumen * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ -e.exports={graphlib:n(522),dagre:n(172),intersect:n(560),render:n(562),util:n(10),version:n(574)}},function(e,t,n){var r;try{r=n(166)}catch(e){}r||(r=window.graphlib),e.exports=r},function(e,t,n){e.exports={Graph:n(96),version:n(524)}},function(e,t){e.exports="2.1.8"},function(e,t,n){var r=n(9),i=n(96);function o(e){return r.map(e.nodes(),(function(t){var n=e.node(t),i=e.parent(t),o={v:t};return r.isUndefined(n)||(o.value=n),r.isUndefined(i)||(o.parent=i),o}))}function s(e){return r.map(e.edges(),(function(t){var n=e.edge(t),i={v:t.v,w:t.w};return r.isUndefined(t.name)||(i.name=t.name),r.isUndefined(n)||(i.value=n),i}))}e.exports={write:function(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:o(e),edges:s(e)};r.isUndefined(e.graph())||(t.value=r.clone(e.graph()));return t},read:function(e){var t=new i(e.options).setGraph(e.value);return r.each(e.nodes,(function(e){t.setNode(e.v,e.value),e.parent&&t.setParent(e.v,e.parent)})),r.each(e.edges,(function(e){t.setEdge({v:e.v,w:e.w,name:e.name},e.value)})),t}}},function(e,t,n){e.exports={components:n(527),dijkstra:n(167),dijkstraAll:n(528),findCycles:n(529),floydWarshall:n(530),isAcyclic:n(531),postorder:n(532),preorder:n(533),prim:n(534),tarjan:n(169),topsort:n(170)}},function(e,t,n){var r=n(9);e.exports=function(e){var t,n={},i=[];function o(i){r.has(n,i)||(n[i]=!0,t.push(i),r.each(e.successors(i),o),r.each(e.predecessors(i),o))}return r.each(e.nodes(),(function(e){t=[],o(e),t.length&&i.push(t)})),i}},function(e,t,n){var r=n(167),i=n(9);e.exports=function(e,t,n){return i.transform(e.nodes(),(function(i,o){i[o]=r(e,o,t,n)}),{})}},function(e,t,n){var r=n(9),i=n(169);e.exports=function(e){return r.filter(i(e),(function(t){return t.length>1||1===t.length&&e.hasEdge(t[0],t[0])}))}},function(e,t,n){var r=n(9);e.exports=function(e,t,n){return function(e,t,n){var r={},i=e.nodes();return i.forEach((function(e){r[e]={},r[e][e]={distance:0},i.forEach((function(t){e!==t&&(r[e][t]={distance:Number.POSITIVE_INFINITY})})),n(e).forEach((function(n){var i=n.v===e?n.w:n.v,o=t(n);r[e][i]={distance:o,predecessor:e}}))})),i.forEach((function(e){var t=r[e];i.forEach((function(n){var o=r[n];i.forEach((function(n){var r=o[e],i=t[n],s=o[n],a=r.distance+i.distance;a<s.distance&&(s.distance=a,s.predecessor=i.predecessor)}))}))})),r}(e,t||i,n||function(t){return e.outEdges(t)})};var i=r.constant(1)},function(e,t,n){var r=n(170);e.exports=function(e){try{r(e)}catch(e){if(e instanceof r.CycleException)return!1;throw e}return!0}},function(e,t,n){var r=n(171);e.exports=function(e,t){return r(e,t,"post")}},function(e,t,n){var r=n(171);e.exports=function(e,t){return r(e,t,"pre")}},function(e,t,n){var r=n(9),i=n(96),o=n(168);e.exports=function(e,t){var n,s=new i,a={},u=new o;function l(e){var r=e.v===n?e.w:e.v,i=u.priority(r);if(void 0!==i){var o=t(e);o<i&&(a[r]=n,u.decrease(r,o))}}if(0===e.nodeCount())return s;r.each(e.nodes(),(function(e){u.add(e,Number.POSITIVE_INFINITY),s.setNode(e)})),u.decrease(e.nodes()[0],0);var c=!1;for(;u.size()>0;){if(n=u.removeMin(),r.has(a,n))s.setEdge(n,a[n]);else{if(c)throw new Error("Input graph is not connected: "+e);c=!0}e.nodeEdges(n).forEach(l)}return s}},function(e,t,n){e.exports={graphlib:n(15),layout:n(536),debug:n(558),util:{time:n(6).time,notime:n(6).notime},version:n(559)}},function(e,t,n){"use strict";var r=n(3),i=n(537),o=n(540),s=n(541),a=n(6).normalizeRanks,u=n(543),l=n(6).removeEmptyRanks,c=n(544),d=n(545),h=n(546),f=n(547),p=n(556),g=n(6),m=n(15).Graph;e.exports=function(e,t){var n=t&&t.debugTiming?g.time:g.notime;n("layout",(function(){var t=n(" buildLayoutGraph",(function(){return function(e){var t=new m({multigraph:!0,compound:!0}),n=k(e.graph());return t.setGraph(r.merge({},y,L(n,_),r.pick(n,v))),r.forEach(e.nodes(),(function(n){var i=k(e.node(n));t.setNode(n,r.defaults(L(i,b),w)),t.setParent(n,e.parent(n))})),r.forEach(e.edges(),(function(n){var i=k(e.edge(n));t.setEdge(n,r.merge({},S,L(i,C),r.pick(i,x)))})),t}(e)}));n(" runLayout",(function(){!function(e,t){t(" makeSpaceForEdgeLabels",(function(){!function(e){var t=e.graph();t.ranksep/=2,r.forEach(e.edges(),(function(n){var r=e.edge(n);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===t.rankdir||"BT"===t.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)}))}(e)})),t(" removeSelfEdges",(function(){!function(e){r.forEach(e.edges(),(function(t){if(t.v===t.w){var n=e.node(t.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}}))}(e)})),t(" acyclic",(function(){i.run(e)})),t(" nestingGraph.run",(function(){c.run(e)})),t(" rank",(function(){s(g.asNonCompoundGraph(e))})),t(" injectEdgeLabelProxies",(function(){!function(e){r.forEach(e.edges(),(function(t){var n=e.edge(t);if(n.width&&n.height){var r=e.node(t.v),i={rank:(e.node(t.w).rank-r.rank)/2+r.rank,e:t};g.addDummyNode(e,"edge-proxy",i,"_ep")}}))}(e)})),t(" removeEmptyRanks",(function(){l(e)})),t(" nestingGraph.cleanup",(function(){c.cleanup(e)})),t(" normalizeRanks",(function(){a(e)})),t(" assignRankMinMax",(function(){!function(e){var t=0;r.forEach(e.nodes(),(function(n){var i=e.node(n);i.borderTop&&(i.minRank=e.node(i.borderTop).rank,i.maxRank=e.node(i.borderBottom).rank,t=r.max(t,i.maxRank))})),e.graph().maxRank=t}(e)})),t(" removeEdgeLabelProxies",(function(){!function(e){r.forEach(e.nodes(),(function(t){var n=e.node(t);"edge-proxy"===n.dummy&&(e.edge(n.e).labelRank=n.rank,e.removeNode(t))}))}(e)})),t(" normalize.run",(function(){o.run(e)})),t(" parentDummyChains",(function(){u(e)})),t(" addBorderSegments",(function(){d(e)})),t(" order",(function(){f(e)})),t(" insertSelfEdges",(function(){!function(e){var t=g.buildLayerMatrix(e);r.forEach(t,(function(t){var n=0;r.forEach(t,(function(t,i){var o=e.node(t);o.order=i+n,r.forEach(o.selfEdges,(function(t){g.addDummyNode(e,"selfedge",{width:t.label.width,height:t.label.height,rank:o.rank,order:i+ ++n,e:t.e,label:t.label},"_se")})),delete o.selfEdges}))}))}(e)})),t(" adjustCoordinateSystem",(function(){h.adjust(e)})),t(" position",(function(){p(e)})),t(" positionSelfEdges",(function(){!function(e){r.forEach(e.nodes(),(function(t){var n=e.node(t);if("selfedge"===n.dummy){var r=e.node(n.e.v),i=r.x+r.width/2,o=r.y,s=n.x-i,a=r.height/2;e.setEdge(n.e,n.label),e.removeNode(t),n.label.points=[{x:i+2*s/3,y:o-a},{x:i+5*s/6,y:o-a},{x:i+s,y:o},{x:i+5*s/6,y:o+a},{x:i+2*s/3,y:o+a}],n.label.x=n.x,n.label.y=n.y}}))}(e)})),t(" removeBorderNodes",(function(){!function(e){r.forEach(e.nodes(),(function(t){if(e.children(t).length){var n=e.node(t),i=e.node(n.borderTop),o=e.node(n.borderBottom),s=e.node(r.last(n.borderLeft)),a=e.node(r.last(n.borderRight));n.width=Math.abs(a.x-s.x),n.height=Math.abs(o.y-i.y),n.x=s.x+n.width/2,n.y=i.y+n.height/2}})),r.forEach(e.nodes(),(function(t){"border"===e.node(t).dummy&&e.removeNode(t)}))}(e)})),t(" normalize.undo",(function(){o.undo(e)})),t(" fixupEdgeLabelCoords",(function(){!function(e){r.forEach(e.edges(),(function(t){var n=e.edge(t);if(r.has(n,"x"))switch("l"!==n.labelpos&&"r"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}}))}(e)})),t(" undoCoordinateSystem",(function(){h.undo(e)})),t(" translateGraph",(function(){!function(e){var t=Number.POSITIVE_INFINITY,n=0,i=Number.POSITIVE_INFINITY,o=0,s=e.graph(),a=s.marginx||0,u=s.marginy||0;function l(e){var r=e.x,s=e.y,a=e.width,u=e.height;t=Math.min(t,r-a/2),n=Math.max(n,r+a/2),i=Math.min(i,s-u/2),o=Math.max(o,s+u/2)}r.forEach(e.nodes(),(function(t){l(e.node(t))})),r.forEach(e.edges(),(function(t){var n=e.edge(t);r.has(n,"x")&&l(n)})),t-=a,i-=u,r.forEach(e.nodes(),(function(n){var r=e.node(n);r.x-=t,r.y-=i})),r.forEach(e.edges(),(function(n){var o=e.edge(n);r.forEach(o.points,(function(e){e.x-=t,e.y-=i})),r.has(o,"x")&&(o.x-=t),r.has(o,"y")&&(o.y-=i)})),s.width=n-t+a,s.height=o-i+u}(e)})),t(" assignNodeIntersects",(function(){!function(e){r.forEach(e.edges(),(function(t){var n,r,i=e.edge(t),o=e.node(t.v),s=e.node(t.w);i.points?(n=i.points[0],r=i.points[i.points.length-1]):(i.points=[],n=s,r=o),i.points.unshift(g.intersectRect(o,n)),i.points.push(g.intersectRect(s,r))}))}(e)})),t(" reversePoints",(function(){!function(e){r.forEach(e.edges(),(function(t){var n=e.edge(t);n.reversed&&n.points.reverse()}))}(e)})),t(" acyclic.undo",(function(){i.undo(e)}))}(t,n)})),n(" updateInputGraph",(function(){!function(e,t){r.forEach(e.nodes(),(function(n){var r=e.node(n),i=t.node(n);r&&(r.x=i.x,r.y=i.y,t.children(n).length&&(r.width=i.width,r.height=i.height))})),r.forEach(e.edges(),(function(n){var i=e.edge(n),o=t.edge(n);i.points=o.points,r.has(o,"x")&&(i.x=o.x,i.y=o.y)})),e.graph().width=t.graph().width,e.graph().height=t.graph().height}(e,t)}))}))};var _=["nodesep","edgesep","ranksep","marginx","marginy"],y={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},v=["acyclicer","ranker","rankdir","align"],b=["width","height"],w={width:0,height:0},C=["minlen","weight","width","height","labeloffset"],S={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},x=["labelpos"];function L(e,t){return r.mapValues(r.pick(e,t),Number)}function k(e){var t={};return r.forEach(e,(function(e,n){t[n.toLowerCase()]=e})),t}},function(e,t,n){"use strict";var r=n(3),i=n(538);e.exports={run:function(e){var t="greedy"===e.graph().acyclicer?i(e,function(e){return function(t){return e.edge(t).weight}}(e)):function(e){var t=[],n={},i={};return r.forEach(e.nodes(),(function o(s){if(r.has(i,s))return;i[s]=!0,n[s]=!0,r.forEach(e.outEdges(s),(function(e){r.has(n,e.w)?t.push(e):o(e.w)})),delete n[s]})),t}(e);r.forEach(t,(function(t){var n=e.edge(t);e.removeEdge(t),n.forwardName=t.name,n.reversed=!0,e.setEdge(t.w,t.v,n,r.uniqueId("rev"))}))},undo:function(e){r.forEach(e.edges(),(function(t){var n=e.edge(t);if(n.reversed){e.removeEdge(t);var r=n.forwardName;delete n.reversed,delete n.forwardName,e.setEdge(t.w,t.v,n,r)}}))}}},function(e,t,n){var r=n(3),i=n(15).Graph,o=n(539);e.exports=function(e,t){if(e.nodeCount()<=1)return[];var n=function(e,t){var n=new i,s=0,a=0;r.forEach(e.nodes(),(function(e){n.setNode(e,{v:e,in:0,out:0})})),r.forEach(e.edges(),(function(e){var r=n.edge(e.v,e.w)||0,i=t(e),o=r+i;n.setEdge(e.v,e.w,o),a=Math.max(a,n.node(e.v).out+=i),s=Math.max(s,n.node(e.w).in+=i)}));var l=r.range(a+s+3).map((function(){return new o})),c=s+1;return r.forEach(n.nodes(),(function(e){u(l,c,n.node(e))})),{graph:n,buckets:l,zeroIdx:c}}(e,t||s),l=function(e,t,n){var r,i=[],o=t[t.length-1],s=t[0];for(;e.nodeCount();){for(;r=s.dequeue();)a(e,t,n,r);for(;r=o.dequeue();)a(e,t,n,r);if(e.nodeCount())for(var u=t.length-2;u>0;--u)if(r=t[u].dequeue()){i=i.concat(a(e,t,n,r,!0));break}}return i}(n.graph,n.buckets,n.zeroIdx);return r.flatten(r.map(l,(function(t){return e.outEdges(t.v,t.w)})),!0)};var s=r.constant(1);function a(e,t,n,i,o){var s=o?[]:void 0;return r.forEach(e.inEdges(i.v),(function(r){var i=e.edge(r),a=e.node(r.v);o&&s.push({v:r.v,w:r.w}),a.out-=i,u(t,n,a)})),r.forEach(e.outEdges(i.v),(function(r){var i=e.edge(r),o=r.w,s=e.node(o);s.in-=i,u(t,n,s)})),e.removeNode(i.v),s}function u(e,t,n){n.out?n.in?e[n.out-n.in+t].enqueue(n):e[e.length-1].enqueue(n):e[0].enqueue(n)}},function(e,t){function n(){var e={};e._next=e._prev=e,this._sentinel=e}function r(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function i(e,t){if("_next"!==e&&"_prev"!==e)return t}e.exports=n,n.prototype.dequeue=function(){var e=this._sentinel,t=e._prev;if(t!==e)return r(t),t},n.prototype.enqueue=function(e){var t=this._sentinel;e._prev&&e._next&&r(e),e._next=t._next,t._next._prev=e,t._next=e,e._prev=t},n.prototype.toString=function(){for(var e=[],t=this._sentinel,n=t._prev;n!==t;)e.push(JSON.stringify(n,i)),n=n._prev;return"["+e.join(", ")+"]"}},function(e,t,n){"use strict";var r=n(3),i=n(6);e.exports={run:function(e){e.graph().dummyChains=[],r.forEach(e.edges(),(function(t){!function(e,t){var n,r,o,s=t.v,a=e.node(s).rank,u=t.w,l=e.node(u).rank,c=t.name,d=e.edge(t),h=d.labelRank;if(l===a+1)return;for(e.removeEdge(t),o=0,++a;a<l;++o,++a)d.points=[],r={width:0,height:0,edgeLabel:d,edgeObj:t,rank:a},n=i.addDummyNode(e,"edge",r,"_d"),a===h&&(r.width=d.width,r.height=d.height,r.dummy="edge-label",r.labelpos=d.labelpos),e.setEdge(s,n,{weight:d.weight},c),0===o&&e.graph().dummyChains.push(n),s=n;e.setEdge(s,u,{weight:d.weight},c)}(e,t)}))},undo:function(e){r.forEach(e.graph().dummyChains,(function(t){var n,r=e.node(t),i=r.edgeLabel;for(e.setEdge(r.edgeObj,i);r.dummy;)n=e.successors(t)[0],e.removeNode(t),i.points.push({x:r.x,y:r.y}),"edge-label"===r.dummy&&(i.x=r.x,i.y=r.y,i.width=r.width,i.height=r.height),t=n,r=e.node(t)}))}}},function(e,t,n){"use strict";var r=n(69).longestPath,i=n(173),o=n(542);e.exports=function(e){switch(e.graph().ranker){case"network-simplex":a(e);break;case"tight-tree":!function(e){r(e),i(e)}(e);break;case"longest-path":s(e);break;default:a(e)}};var s=r;function a(e){o(e)}},function(e,t,n){"use strict";var r=n(3),i=n(173),o=n(69).slack,s=n(69).longestPath,a=n(15).alg.preorder,u=n(15).alg.postorder,l=n(6).simplify;function c(e){e=l(e),s(e);var t,n=i(e);for(f(n),d(n,e);t=p(n);)m(n,e,t,g(n,e,t))}function d(e,t){var n=u(e,e.nodes());n=n.slice(0,n.length-1),r.forEach(n,(function(n){!function(e,t,n){var r=e.node(n).parent;e.edge(n,r).cutvalue=h(e,t,n)}(e,t,n)}))}function h(e,t,n){var i=e.node(n).parent,o=!0,s=t.edge(n,i),a=0;return s||(o=!1,s=t.edge(i,n)),a=s.weight,r.forEach(t.nodeEdges(n),(function(r){var s,u,l=r.v===n,c=l?r.w:r.v;if(c!==i){var d=l===o,h=t.edge(r).weight;if(a+=d?h:-h,s=n,u=c,e.hasEdge(s,u)){var f=e.edge(n,c).cutvalue;a+=d?-f:f}}})),a}function f(e,t){arguments.length<2&&(t=e.nodes()[0]),function e(t,n,i,o,s){var a=i,u=t.node(o);n[o]=!0,r.forEach(t.neighbors(o),(function(s){r.has(n,s)||(i=e(t,n,i,s,o))})),u.low=a,u.lim=i++,s?u.parent=s:delete u.parent;return i}(e,{},1,t)}function p(e){return r.find(e.edges(),(function(t){return e.edge(t).cutvalue<0}))}function g(e,t,n){var i=n.v,s=n.w;t.hasEdge(i,s)||(i=n.w,s=n.v);var a=e.node(i),u=e.node(s),l=a,c=!1;a.lim>u.lim&&(l=u,c=!0);var d=r.filter(t.edges(),(function(t){return c===_(e,e.node(t.v),l)&&c!==_(e,e.node(t.w),l)}));return r.minBy(d,(function(e){return o(t,e)}))}function m(e,t,n,i){var o=n.v,s=n.w;e.removeEdge(o,s),e.setEdge(i.v,i.w,{}),f(e),d(e,t),function(e,t){var n=r.find(e.nodes(),(function(e){return!t.node(e).parent})),i=a(e,n);i=i.slice(1),r.forEach(i,(function(n){var r=e.node(n).parent,i=t.edge(n,r),o=!1;i||(i=t.edge(r,n),o=!0),t.node(n).rank=t.node(r).rank+(o?i.minlen:-i.minlen)}))}(e,t)}function _(e,t,n){return n.low<=t.lim&&t.lim<=n.lim}e.exports=c,c.initLowLimValues=f,c.initCutValues=d,c.calcCutValue=h,c.leaveEdge=p,c.enterEdge=g,c.exchangeEdges=m},function(e,t,n){var r=n(3);e.exports=function(e){var t=function(e){var t={},n=0;return r.forEach(e.children(),(function i(o){var s=n;r.forEach(e.children(o),i),t[o]={low:s,lim:n++}})),t}(e);r.forEach(e.graph().dummyChains,(function(n){for(var r=e.node(n),i=r.edgeObj,o=function(e,t,n,r){var i,o,s=[],a=[],u=Math.min(t[n].low,t[r].low),l=Math.max(t[n].lim,t[r].lim);i=n;do{i=e.parent(i),s.push(i)}while(i&&(t[i].low>u||l>t[i].lim));o=i,i=r;for(;(i=e.parent(i))!==o;)a.push(i);return{path:s.concat(a.reverse()),lca:o}}(e,t,i.v,i.w),s=o.path,a=o.lca,u=0,l=s[u],c=!0;n!==i.w;){if(r=e.node(n),c){for(;(l=s[u])!==a&&e.node(l).maxRank<r.rank;)u++;l===a&&(c=!1)}if(!c){for(;u<s.length-1&&e.node(l=s[u+1]).minRank<=r.rank;)u++;l=s[u]}e.setParent(n,l),n=e.successors(n)[0]}}))}},function(e,t,n){var r=n(3),i=n(6);e.exports={run:function(e){var t=i.addDummyNode(e,"root",{},"_root"),n=function(e){var t={};return r.forEach(e.children(),(function(n){!function n(i,o){var s=e.children(i);s&&s.length&&r.forEach(s,(function(e){n(e,o+1)}));t[i]=o}(n,1)})),t}(e),o=r.max(r.values(n))-1,s=2*o+1;e.graph().nestingRoot=t,r.forEach(e.edges(),(function(t){e.edge(t).minlen*=s}));var a=function(e){return r.reduce(e.edges(),(function(t,n){return t+e.edge(n).weight}),0)}(e)+1;r.forEach(e.children(),(function(u){!function e(t,n,o,s,a,u,l){var c=t.children(l);if(!c.length)return void(l!==n&&t.setEdge(n,l,{weight:0,minlen:o}));var d=i.addBorderNode(t,"_bt"),h=i.addBorderNode(t,"_bb"),f=t.node(l);t.setParent(d,l),f.borderTop=d,t.setParent(h,l),f.borderBottom=h,r.forEach(c,(function(r){e(t,n,o,s,a,u,r);var i=t.node(r),c=i.borderTop?i.borderTop:r,f=i.borderBottom?i.borderBottom:r,p=i.borderTop?s:2*s,g=c!==f?1:a-u[l]+1;t.setEdge(d,c,{weight:p,minlen:g,nestingEdge:!0}),t.setEdge(f,h,{weight:p,minlen:g,nestingEdge:!0})})),t.parent(l)||t.setEdge(n,d,{weight:0,minlen:a+u[l]})}(e,t,s,a,o,n,u)})),e.graph().nodeRankFactor=s},cleanup:function(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,r.forEach(e.edges(),(function(t){e.edge(t).nestingEdge&&e.removeEdge(t)}))}}},function(e,t,n){var r=n(3),i=n(6);function o(e,t,n,r,o,s){var a={width:0,height:0,rank:s,borderType:t},u=o[t][s-1],l=i.addDummyNode(e,"border",a,n);o[t][s]=l,e.setParent(l,r),u&&e.setEdge(u,l,{weight:1})}e.exports=function(e){r.forEach(e.children(),(function t(n){var i=e.children(n),s=e.node(n);if(i.length&&r.forEach(i,t),r.has(s,"minRank")){s.borderLeft=[],s.borderRight=[];for(var a=s.minRank,u=s.maxRank+1;a<u;++a)o(e,"borderLeft","_bl",n,s,a),o(e,"borderRight","_br",n,s,a)}}))}},function(e,t,n){"use strict";var r=n(3);function i(e){r.forEach(e.nodes(),(function(t){o(e.node(t))})),r.forEach(e.edges(),(function(t){o(e.edge(t))}))}function o(e){var t=e.width;e.width=e.height,e.height=t}function s(e){e.y=-e.y}function a(e){var t=e.x;e.x=e.y,e.y=t}e.exports={adjust:function(e){var t=e.graph().rankdir.toLowerCase();"lr"!==t&&"rl"!==t||i(e)},undo:function(e){var t=e.graph().rankdir.toLowerCase();"bt"!==t&&"rl"!==t||function(e){r.forEach(e.nodes(),(function(t){s(e.node(t))})),r.forEach(e.edges(),(function(t){var n=e.edge(t);r.forEach(n.points,s),r.has(n,"y")&&s(n)}))}(e);"lr"!==t&&"rl"!==t||(!function(e){r.forEach(e.nodes(),(function(t){a(e.node(t))})),r.forEach(e.edges(),(function(t){var n=e.edge(t);r.forEach(n.points,a),r.has(n,"x")&&a(n)}))}(e),i(e))}}},function(e,t,n){"use strict";var r=n(3),i=n(548),o=n(549),s=n(550),a=n(554),u=n(555),l=n(15).Graph,c=n(6);function d(e,t,n){return r.map(t,(function(t){return a(e,t,n)}))}function h(e,t){var n=new l;r.forEach(e,(function(e){var i=e.graph().root,o=s(e,i,n,t);r.forEach(o.vs,(function(t,n){e.node(t).order=n})),u(e,n,o.vs)}))}function f(e,t){r.forEach(t,(function(t){r.forEach(t,(function(t,n){e.node(t).order=n}))}))}e.exports=function(e){var t=c.maxRank(e),n=d(e,r.range(1,t+1),"inEdges"),s=d(e,r.range(t-1,-1,-1),"outEdges"),a=i(e);f(e,a);for(var u,l=Number.POSITIVE_INFINITY,p=0,g=0;g<4;++p,++g){h(p%2?n:s,p%4>=2),a=c.buildLayerMatrix(e);var m=o(e,a);m<l&&(g=0,u=r.cloneDeep(a),l=m)}f(e,u)}},function(e,t,n){"use strict";var r=n(3);e.exports=function(e){var t={},n=r.filter(e.nodes(),(function(t){return!e.children(t).length})),i=r.max(r.map(n,(function(t){return e.node(t).rank}))),o=r.map(r.range(i+1),(function(){return[]}));var s=r.sortBy(n,(function(t){return e.node(t).rank}));return r.forEach(s,(function n(i){if(r.has(t,i))return;t[i]=!0;var s=e.node(i);o[s.rank].push(i),r.forEach(e.successors(i),n)})),o}},function(e,t,n){"use strict";var r=n(3);function i(e,t,n){for(var i=r.zipObject(n,r.map(n,(function(e,t){return t}))),o=r.flatten(r.map(t,(function(t){return r.sortBy(r.map(e.outEdges(t),(function(t){return{pos:i[t.w],weight:e.edge(t).weight}})),"pos")})),!0),s=1;s<n.length;)s<<=1;var a=2*s-1;s-=1;var u=r.map(new Array(a),(function(){return 0})),l=0;return r.forEach(o.forEach((function(e){var t=e.pos+s;u[t]+=e.weight;for(var n=0;t>0;)t%2&&(n+=u[t+1]),u[t=t-1>>1]+=e.weight;l+=e.weight*n}))),l}e.exports=function(e,t){for(var n=0,r=1;r<t.length;++r)n+=i(e,t[r-1],t[r]);return n}},function(e,t,n){var r=n(3),i=n(551),o=n(552),s=n(553);e.exports=function e(t,n,a,u){var l=t.children(n),c=t.node(n),d=c?c.borderLeft:void 0,h=c?c.borderRight:void 0,f={};d&&(l=r.filter(l,(function(e){return e!==d&&e!==h})));var p=i(t,l);r.forEach(p,(function(n){if(t.children(n.v).length){var i=e(t,n.v,a,u);f[n.v]=i,r.has(i,"barycenter")&&(o=n,s=i,r.isUndefined(o.barycenter)?(o.barycenter=s.barycenter,o.weight=s.weight):(o.barycenter=(o.barycenter*o.weight+s.barycenter*s.weight)/(o.weight+s.weight),o.weight+=s.weight))}var o,s}));var g=o(p,a);!function(e,t){r.forEach(e,(function(e){e.vs=r.flatten(e.vs.map((function(e){return t[e]?t[e].vs:e})),!0)}))}(g,f);var m=s(g,u);if(d&&(m.vs=r.flatten([d,m.vs,h],!0),t.predecessors(d).length)){var _=t.node(t.predecessors(d)[0]),y=t.node(t.predecessors(h)[0]);r.has(m,"barycenter")||(m.barycenter=0,m.weight=0),m.barycenter=(m.barycenter*m.weight+_.order+y.order)/(m.weight+2),m.weight+=2}return m}},function(e,t,n){var r=n(3);e.exports=function(e,t){return r.map(t,(function(t){var n=e.inEdges(t);if(n.length){var i=r.reduce(n,(function(t,n){var r=e.edge(n),i=e.node(n.v);return{sum:t.sum+r.weight*i.order,weight:t.weight+r.weight}}),{sum:0,weight:0});return{v:t,barycenter:i.sum/i.weight,weight:i.weight}}return{v:t}}))}},function(e,t,n){"use strict";var r=n(3);e.exports=function(e,t){var n={};return r.forEach(e,(function(e,t){var i=n[e.v]={indegree:0,in:[],out:[],vs:[e.v],i:t};r.isUndefined(e.barycenter)||(i.barycenter=e.barycenter,i.weight=e.weight)})),r.forEach(t.edges(),(function(e){var t=n[e.v],i=n[e.w];r.isUndefined(t)||r.isUndefined(i)||(i.indegree++,t.out.push(n[e.w]))})),function(e){var t=[];function n(e){return function(t){t.merged||(r.isUndefined(t.barycenter)||r.isUndefined(e.barycenter)||t.barycenter>=e.barycenter)&&function(e,t){var n=0,r=0;e.weight&&(n+=e.barycenter*e.weight,r+=e.weight);t.weight&&(n+=t.barycenter*t.weight,r+=t.weight);e.vs=t.vs.concat(e.vs),e.barycenter=n/r,e.weight=r,e.i=Math.min(t.i,e.i),t.merged=!0}(e,t)}}function i(t){return function(n){n.in.push(t),0==--n.indegree&&e.push(n)}}for(;e.length;){var o=e.pop();t.push(o),r.forEach(o.in.reverse(),n(o)),r.forEach(o.out,i(o))}return r.map(r.filter(t,(function(e){return!e.merged})),(function(e){return r.pick(e,["vs","i","barycenter","weight"])}))}(r.filter(n,(function(e){return!e.indegree})))}},function(e,t,n){var r=n(3),i=n(6);function o(e,t,n){for(var i;t.length&&(i=r.last(t)).i<=n;)t.pop(),e.push(i.vs),n++;return n}e.exports=function(e,t){var n=i.partition(e,(function(e){return r.has(e,"barycenter")})),s=n.lhs,a=r.sortBy(n.rhs,(function(e){return-e.i})),u=[],l=0,c=0,d=0;s.sort((h=!!t,function(e,t){return e.barycenter<t.barycenter?-1:e.barycenter>t.barycenter?1:h?t.i-e.i:e.i-t.i})),d=o(u,a,d),r.forEach(s,(function(e){d+=e.vs.length,u.push(e.vs),l+=e.barycenter*e.weight,c+=e.weight,d=o(u,a,d)}));var h;var f={vs:r.flatten(u,!0)};c&&(f.barycenter=l/c,f.weight=c);return f}},function(e,t,n){var r=n(3),i=n(15).Graph;e.exports=function(e,t,n){var o=function(e){var t;for(;e.hasNode(t=r.uniqueId("_root")););return t}(e),s=new i({compound:!0}).setGraph({root:o}).setDefaultNodeLabel((function(t){return e.node(t)}));return r.forEach(e.nodes(),(function(i){var a=e.node(i),u=e.parent(i);(a.rank===t||a.minRank<=t&&t<=a.maxRank)&&(s.setNode(i),s.setParent(i,u||o),r.forEach(e[n](i),(function(t){var n=t.v===i?t.w:t.v,o=s.edge(n,i),a=r.isUndefined(o)?0:o.weight;s.setEdge(n,i,{weight:e.edge(t).weight+a})})),r.has(a,"minRank")&&s.setNode(i,{borderLeft:a.borderLeft[t],borderRight:a.borderRight[t]}))})),s}},function(e,t,n){var r=n(3);e.exports=function(e,t,n){var i,o={};r.forEach(n,(function(n){for(var r,s,a=e.parent(n);a;){if((r=e.parent(a))?(s=o[r],o[r]=a):(s=i,i=a),s&&s!==a)return void t.setEdge(s,a);a=r}}))}},function(e,t,n){"use strict";var r=n(3),i=n(6),o=n(557).positionX;e.exports=function(e){(function(e){var t=i.buildLayerMatrix(e),n=e.graph().ranksep,o=0;r.forEach(t,(function(t){var i=r.max(r.map(t,(function(t){return e.node(t).height})));r.forEach(t,(function(t){e.node(t).y=o+i/2})),o+=i+n}))})(e=i.asNonCompoundGraph(e)),r.forEach(o(e),(function(t,n){e.node(n).x=t}))}},function(e,t,n){"use strict";var r=n(3),i=n(15).Graph,o=n(6);function s(e,t){var n={};return r.reduce(t,(function(t,i){var o=0,s=0,a=t.length,l=r.last(i);return r.forEach(i,(function(t,c){var d=function(e,t){if(e.node(t).dummy)return r.find(e.predecessors(t),(function(t){return e.node(t).dummy}))}(e,t),h=d?e.node(d).order:a;(d||t===l)&&(r.forEach(i.slice(s,c+1),(function(t){r.forEach(e.predecessors(t),(function(r){var i=e.node(r),s=i.order;!(s<o||h<s)||i.dummy&&e.node(t).dummy||u(n,r,t)}))})),s=c+1,o=h)})),i})),n}function a(e,t){var n={};function i(t,i,o,s,a){var l;r.forEach(r.range(i,o),(function(i){l=t[i],e.node(l).dummy&&r.forEach(e.predecessors(l),(function(t){var r=e.node(t);r.dummy&&(r.order<s||r.order>a)&&u(n,t,l)}))}))}return r.reduce(t,(function(t,n){var o,s=-1,a=0;return r.forEach(n,(function(r,u){if("border"===e.node(r).dummy){var l=e.predecessors(r);l.length&&(o=e.node(l[0]).order,i(n,a,u,s,o),a=u,s=o)}i(n,a,n.length,o,t.length)})),n})),n}function u(e,t,n){if(t>n){var r=t;t=n,n=r}var i=e[t];i||(e[t]=i={}),i[n]=!0}function l(e,t,n){if(t>n){var i=t;t=n,n=i}return r.has(e[t],n)}function c(e,t,n,i){var o={},s={},a={};return r.forEach(t,(function(e){r.forEach(e,(function(e,t){o[e]=e,s[e]=e,a[e]=t}))})),r.forEach(t,(function(e){var t=-1;r.forEach(e,(function(e){var u=i(e);if(u.length)for(var c=((u=r.sortBy(u,(function(e){return a[e]}))).length-1)/2,d=Math.floor(c),h=Math.ceil(c);d<=h;++d){var f=u[d];s[e]===e&&t<a[f]&&!l(n,e,f)&&(s[f]=e,s[e]=o[e]=o[f],t=a[f])}}))})),{root:o,align:s}}function d(e,t,n,o,s){var a={},u=function(e,t,n,o){var s=new i,a=e.graph(),u=function(e,t,n){return function(i,o,s){var a,u=i.node(o),l=i.node(s),c=0;if(c+=u.width/2,r.has(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":a=-u.width/2;break;case"r":a=u.width/2}if(a&&(c+=n?a:-a),a=0,c+=(u.dummy?t:e)/2,c+=(l.dummy?t:e)/2,c+=l.width/2,r.has(l,"labelpos"))switch(l.labelpos.toLowerCase()){case"l":a=l.width/2;break;case"r":a=-l.width/2}return a&&(c+=n?a:-a),a=0,c}}(a.nodesep,a.edgesep,o);return r.forEach(t,(function(t){var i;r.forEach(t,(function(t){var r=n[t];if(s.setNode(r),i){var o=n[i],a=s.edge(o,r);s.setEdge(o,r,Math.max(u(e,t,i),a||0))}i=t}))})),s}(e,t,n,s),l=s?"borderLeft":"borderRight";function c(e,t){for(var n=u.nodes(),r=n.pop(),i={};r;)i[r]?e(r):(i[r]=!0,n.push(r),n=n.concat(t(r))),r=n.pop()}return c((function(e){a[e]=u.inEdges(e).reduce((function(e,t){return Math.max(e,a[t.v]+u.edge(t))}),0)}),u.predecessors.bind(u)),c((function(t){var n=u.outEdges(t).reduce((function(e,t){return Math.min(e,a[t.w]-u.edge(t))}),Number.POSITIVE_INFINITY),r=e.node(t);n!==Number.POSITIVE_INFINITY&&r.borderType!==l&&(a[t]=Math.max(a[t],n))}),u.successors.bind(u)),r.forEach(o,(function(e){a[e]=a[n[e]]})),a}function h(e,t){return r.minBy(r.values(t),(function(t){var n=Number.NEGATIVE_INFINITY,i=Number.POSITIVE_INFINITY;return r.forIn(t,(function(t,r){var o=function(e,t){return e.node(t).width}(e,r)/2;n=Math.max(t+o,n),i=Math.min(t-o,i)})),n-i}))}function f(e,t){var n=r.values(t),i=r.min(n),o=r.max(n);r.forEach(["u","d"],(function(n){r.forEach(["l","r"],(function(s){var a,u=n+s,l=e[u];if(l!==t){var c=r.values(l);(a="l"===s?i-r.min(c):o-r.max(c))&&(e[u]=r.mapValues(l,(function(e){return e+a})))}}))}))}function p(e,t){return r.mapValues(e.ul,(function(n,i){if(t)return e[t.toLowerCase()][i];var o=r.sortBy(r.map(e,i));return(o[1]+o[2])/2}))}e.exports={positionX:function(e){var t,n=o.buildLayerMatrix(e),i=r.merge(s(e,n),a(e,n)),u={};r.forEach(["u","d"],(function(o){t="u"===o?n:r.values(n).reverse(),r.forEach(["l","r"],(function(n){"r"===n&&(t=r.map(t,(function(e){return r.values(e).reverse()})));var s=("u"===o?e.predecessors:e.successors).bind(e),a=c(e,t,i,s),l=d(e,t,a.root,a.align,"r"===n);"r"===n&&(l=r.mapValues(l,(function(e){return-e}))),u[o+n]=l}))}));var l=h(e,u);return f(u,l),p(u,e.graph().align)},findType1Conflicts:s,findType2Conflicts:a,addConflict:u,hasConflict:l,verticalAlignment:c,horizontalCompaction:d,alignCoordinates:f,findSmallestWidthAlignment:h,balance:p}},function(e,t,n){var r=n(3),i=n(6),o=n(15).Graph;e.exports={debugOrdering:function(e){var t=i.buildLayerMatrix(e),n=new o({compound:!0,multigraph:!0}).setGraph({});return r.forEach(e.nodes(),(function(t){n.setNode(t,{label:t}),n.setParent(t,"layer"+e.node(t).rank)})),r.forEach(e.edges(),(function(e){n.setEdge(e.v,e.w,{},e.name)})),r.forEach(t,(function(e,t){var i="layer"+t;n.setNode(i,{rank:"same"}),r.reduce(e,(function(e,t){return n.setEdge(e,t,{style:"invis"}),t}))})),n}}},function(e,t){e.exports="0.8.5"},function(e,t,n){e.exports={node:n(174),circle:n(175),ellipse:n(97),polygon:n(176),rect:n(177)}},function(e,t){function n(e,t){return e*t>0}e.exports=function(e,t,r,i){var o,s,a,u,l,c,d,h,f,p,g,m,_;if(o=t.y-e.y,a=e.x-t.x,l=t.x*e.y-e.x*t.y,f=o*r.x+a*r.y+l,p=o*i.x+a*i.y+l,0!==f&&0!==p&&n(f,p))return;if(s=i.y-r.y,u=r.x-i.x,c=i.x*r.y-r.x*i.y,d=s*e.x+u*e.y+c,h=s*t.x+u*t.y+c,0!==d&&0!==h&&n(d,h))return;if(0===(g=o*u-s*a))return;return m=Math.abs(g/2),{x:(_=a*c-u*l)<0?(_-m)/g:(_+m)/g,y:(_=s*l-o*c)<0?(_-m)/g:(_+m)/g}}},function(e,t,n){var r=n(37),i=n(22),o=n(172).layout;e.exports=function(){var e=n(563),t=n(566),i=n(567),l=n(568),c=n(569),d=n(570),h=n(571),f=n(572),p=n(573),g=function(n,g){!function(e){e.nodes().forEach((function(t){var n=e.node(t);r.has(n,"label")||e.children(t).length||(n.label=t),r.has(n,"paddingX")&&r.defaults(n,{paddingLeft:n.paddingX,paddingRight:n.paddingX}),r.has(n,"paddingY")&&r.defaults(n,{paddingTop:n.paddingY,paddingBottom:n.paddingY}),r.has(n,"padding")&&r.defaults(n,{paddingLeft:n.padding,paddingRight:n.padding,paddingTop:n.padding,paddingBottom:n.padding}),r.defaults(n,s),r.each(["paddingLeft","paddingRight","paddingTop","paddingBottom"],(function(e){n[e]=Number(n[e])})),r.has(n,"width")&&(n._prevWidth=n.width),r.has(n,"height")&&(n._prevHeight=n.height)})),e.edges().forEach((function(t){var n=e.edge(t);r.has(n,"label")||(n.label=""),r.defaults(n,a)}))}(g);var m=u(n,"output"),_=u(m,"clusters"),y=u(m,"edgePaths"),v=i(u(m,"edgeLabels"),g),b=e(u(m,"nodes"),g,f);o(g),c(b,g),d(v,g),l(y,g,p);var w=t(_,g);h(w,g),function(e){r.each(e.nodes(),(function(t){var n=e.node(t);r.has(n,"_prevWidth")?n.width=n._prevWidth:delete n.width,r.has(n,"_prevHeight")?n.height=n._prevHeight:delete n.height,delete n._prevWidth,delete n._prevHeight}))}(g)};return g.createNodes=function(t){return arguments.length?(e=t,g):e},g.createClusters=function(e){return arguments.length?(t=e,g):t},g.createEdgeLabels=function(e){return arguments.length?(i=e,g):i},g.createEdgePaths=function(e){return arguments.length?(l=e,g):l},g.shapes=function(e){return arguments.length?(f=e,g):f},g.arrows=function(e){return arguments.length?(p=e,g):p},g};var s={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},a={arrowhead:"normal",curve:i.curveLinear};function u(e,t){var n=e.select("g."+t);return n.empty()&&(n=e.append("g").attr("class",t)),n}},function(e,t,n){"use strict";var r=n(37),i=n(98),o=n(10),s=n(22);e.exports=function(e,t,n){var a,u=t.nodes().filter((function(e){return!o.isSubgraph(t,e)})),l=e.selectAll("g.node").data(u,(function(e){return e})).classed("update",!0);l.exit().remove(),l.enter().append("g").attr("class","node").style("opacity",0),(l=e.selectAll("g.node")).each((function(e){var a=t.node(e),u=s.select(this);o.applyClass(u,a.class,(u.classed("update")?"update ":"")+"node"),u.select("g.label").remove();var l=u.append("g").attr("class","label"),c=i(l,a),d=n[a.shape],h=r.pick(c.node().getBBox(),"width","height");a.elem=this,a.id&&u.attr("id",a.id),a.labelId&&l.attr("id",a.labelId),r.has(a,"width")&&(h.width=a.width),r.has(a,"height")&&(h.height=a.height),h.width+=a.paddingLeft+a.paddingRight,h.height+=a.paddingTop+a.paddingBottom,l.attr("transform","translate("+(a.paddingLeft-a.paddingRight)/2+","+(a.paddingTop-a.paddingBottom)/2+")");var f=s.select(this);f.select(".label-container").remove();var p=d(f,h,a).classed("label-container",!0);o.applyStyle(p,a.style);var g=p.node().getBBox();a.width=g.width,a.height=g.height})),a=l.exit?l.exit():l.selectAll(null);return o.applyTransition(a,t).style("opacity",0).remove(),l}},function(e,t,n){var r=n(10);e.exports=function(e,t){for(var n=e.append("text"),i=function(e){for(var t,n="",r=!1,i=0;i<e.length;++i)if(t=e[i],r){switch(t){case"n":n+="\n";break;default:n+=t}r=!1}else"\\"===t?r=!0:n+=t;return n}(t.label).split("\n"),o=0;o<i.length;o++)n.append("tspan").attr("xml:space","preserve").attr("dy","1em").attr("x","1").text(i[o]);return r.applyStyle(n,t.labelStyle),n}},function(e,t,n){var r=n(10);e.exports=function(e,t){var n=e;return n.node().appendChild(t.label),r.applyStyle(n,t.labelStyle),n}},function(e,t,n){var r=n(10),i=n(22),o=n(98);e.exports=function(e,t){var n,s=t.nodes().filter((function(e){return r.isSubgraph(t,e)})),a=e.selectAll("g.cluster").data(s,(function(e){return e}));a.selectAll("*").remove(),a.enter().append("g").attr("class","cluster").attr("id",(function(e){return t.node(e).id})).style("opacity",0),a=e.selectAll("g.cluster"),r.applyTransition(a,t).style("opacity",1),a.each((function(e){var n=t.node(e),r=i.select(this);i.select(this).append("rect");var s=r.append("g").attr("class","label");o(s,n,n.clusterLabelPos)})),a.selectAll("rect").each((function(e){var n=t.node(e),o=i.select(this);r.applyStyle(o,n.style)})),n=a.exit?a.exit():a.selectAll(null);return r.applyTransition(n,t).style("opacity",0).remove(),a}},function(e,t,n){"use strict";var r=n(37),i=n(98),o=n(10),s=n(22);e.exports=function(e,t){var n,a=e.selectAll("g.edgeLabel").data(t.edges(),(function(e){return o.edgeToId(e)})).classed("update",!0);a.exit().remove(),a.enter().append("g").classed("edgeLabel",!0).style("opacity",0),(a=e.selectAll("g.edgeLabel")).each((function(e){var n=s.select(this);n.select(".label").remove();var o=t.edge(e),a=i(n,t.edge(e),0,0).classed("label",!0),u=a.node().getBBox();o.labelId&&a.attr("id",o.labelId),r.has(o,"width")||(o.width=u.width),r.has(o,"height")||(o.height=u.height)})),n=a.exit?a.exit():a.selectAll(null);return o.applyTransition(n,t).style("opacity",0).remove(),a}},function(e,t,n){"use strict";var r=n(37),i=n(174),o=n(10),s=n(22);function a(e,t){var n=(s.line||s.svg.line)().x((function(e){return e.x})).y((function(e){return e.y}));return(n.curve||n.interpolate)(e.curve),n(t)}e.exports=function(e,t,n){var u=e.selectAll("g.edgePath").data(t.edges(),(function(e){return o.edgeToId(e)})).classed("update",!0),l=function(e,t){var n=e.enter().append("g").attr("class","edgePath").style("opacity",0);return n.append("path").attr("class","path").attr("d",(function(e){var n=t.edge(e),i=t.node(e.v).elem;return a(n,r.range(n.points.length).map((function(){return t=(e=i).getBBox(),{x:(n=e.ownerSVGElement.getScreenCTM().inverse().multiply(e.getScreenCTM()).translate(t.width/2,t.height/2)).e,y:n.f};var e,t,n})))})),n.append("defs"),n}(u,t);!function(e,t){var n=e.exit();o.applyTransition(n,t).style("opacity",0).remove()}(u,t);var c=void 0!==u.merge?u.merge(l):u;return o.applyTransition(c,t).style("opacity",1),c.each((function(e){var n=s.select(this),r=t.edge(e);r.elem=this,r.id&&n.attr("id",r.id),o.applyClass(n,r.class,(n.classed("update")?"update ":"")+"edgePath")})),c.selectAll("path.path").each((function(e){var n=t.edge(e);n.arrowheadId=r.uniqueId("arrowhead");var u=s.select(this).attr("marker-end",(function(){return"url("+(e=location.href,t=n.arrowheadId,e.split("#")[0]+"#"+t)+")";var e,t})).style("fill","none");o.applyTransition(u,t).attr("d",(function(e){return function(e,t){var n=e.edge(t),r=e.node(t.v),o=e.node(t.w),s=n.points.slice(1,n.points.length-1);return s.unshift(i(r,s[0])),s.push(i(o,s[s.length-1])),a(n,s)}(t,e)})),o.applyStyle(u,n.style)})),c.selectAll("defs *").remove(),c.selectAll("defs").each((function(e){var r=t.edge(e);(0,n[r.arrowhead])(s.select(this),r.arrowheadId,r,"arrowhead")})),c}},function(e,t,n){"use strict";var r=n(10),i=n(22);e.exports=function(e,t){function n(e){var n=t.node(e);return"translate("+n.x+","+n.y+")"}e.filter((function(){return!i.select(this).classed("update")})).attr("transform",n),r.applyTransition(e,t).style("opacity",1).attr("transform",n)}},function(e,t,n){"use strict";var r=n(10),i=n(22),o=n(37);e.exports=function(e,t){function n(e){var n=t.edge(e);return o.has(n,"x")?"translate("+n.x+","+n.y+")":""}e.filter((function(){return!i.select(this).classed("update")})).attr("transform",n),r.applyTransition(e,t).style("opacity",1).attr("transform",n)}},function(e,t,n){"use strict";var r=n(10),i=n(22);e.exports=function(e,t){var n=e.filter((function(){return!i.select(this).classed("update")}));function o(e){var n=t.node(e);return"translate("+n.x+","+n.y+")"}n.attr("transform",o),r.applyTransition(e,t).style("opacity",1).attr("transform",o),r.applyTransition(n.selectAll("rect"),t).attr("width",(function(e){return t.node(e).width})).attr("height",(function(e){return t.node(e).height})).attr("x",(function(e){return-t.node(e).width/2})).attr("y",(function(e){return-t.node(e).height/2}))}},function(e,t,n){"use strict";var r=n(177),i=n(97),o=n(175),s=n(176);e.exports={rect:function(e,t,n){var i=e.insert("rect",":first-child").attr("rx",n.rx).attr("ry",n.ry).attr("x",-t.width/2).attr("y",-t.height/2).attr("width",t.width).attr("height",t.height);return n.intersect=function(e){return r(n,e)},i},ellipse:function(e,t,n){var r=t.width/2,o=t.height/2,s=e.insert("ellipse",":first-child").attr("x",-t.width/2).attr("y",-t.height/2).attr("rx",r).attr("ry",o);return n.intersect=function(e){return i(n,r,o,e)},s},circle:function(e,t,n){var r=Math.max(t.width,t.height)/2,i=e.insert("circle",":first-child").attr("x",-t.width/2).attr("y",-t.height/2).attr("r",r);return n.intersect=function(e){return o(n,r,e)},i},diamond:function(e,t,n){var r=t.width*Math.SQRT2/2,i=t.height*Math.SQRT2/2,o=[{x:0,y:-i},{x:-r,y:0},{x:0,y:i},{x:r,y:0}],a=e.insert("polygon",":first-child").attr("points",o.map((function(e){return e.x+","+e.y})).join(" "));return n.intersect=function(e){return s(n,o,e)},a}}},function(e,t,n){var r=n(10);function i(e,t,n,i){var o=e.append("marker").attr("id",t).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");r.applyStyle(o,n[i+"Style"]),n[i+"Class"]&&o.attr("class",n[i+"Class"])}e.exports={default:i,normal:i,vee:function(e,t,n,i){var o=e.append("marker").attr("id",t).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 L 4 5 z").style("stroke-width",1).style("stroke-dasharray","1,0");r.applyStyle(o,n[i+"Style"]),n[i+"Class"]&&o.attr("class",n[i+"Class"])},undirected:function(e,t,n,i){var o=e.append("marker").attr("id",t).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");r.applyStyle(o,n[i+"Style"]),n[i+"Class"]&&o.attr("class",n[i+"Class"])}}},function(e,t){e.exports="0.6.4"},function(e,t,n){"use strict";var r;function i(e){return r=r||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),r.innerHTML=e,unescape(r.textContent)}n.r(t),n.d(t,"default",(function(){return i}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(577))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(70);t.hex=r.default;var i=n(70);t.rgb=i.default;var o=n(70);t.rgba=o.default;var s=n(180);t.hsl=s.default;var a=n(180);t.hsla=a.default;var u=n(23);t.channel=u.default;var l=n(587);t.red=l.default;var c=n(588);t.green=c.default;var d=n(589);t.blue=d.default;var h=n(590);t.hue=h.default;var f=n(591);t.saturation=f.default;var p=n(592);t.lightness=p.default;var g=n(181);t.alpha=g.default;var m=n(181);t.opacity=m.default;var _=n(182);t.luminance=_.default;var y=n(593);t.isDark=y.default;var v=n(183);t.isLight=v.default;var b=n(594);t.isValid=b.default;var w=n(595);t.saturate=w.default;var C=n(596);t.desaturate=C.default;var S=n(597);t.lighten=S.default;var x=n(598);t.darken=x.default;var L=n(184);t.opacify=L.default;var k=n(184);t.fadeIn=k.default;var M=n(185);t.transparentize=M.default;var D=n(185);t.fadeOut=D.default;var E=n(599);t.complement=E.default;var T=n(600);t.grayscale=T.default;var N=n(186);t.adjust=N.default;var O=n(71);t.change=O.default;var A=n(601);t.invert=A.default;var I=n(187);t.mix=I.default;var P=n(602);t.scale=P.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:function(e){return e>=255?255:e<0?0:e},g:function(e){return e>=255?255:e<0?0:e},b:function(e){return e>=255?255:e<0?0:e},h:function(e){return e%360},s:function(e){return e>=100?100:e<0?0:e},l:function(e){return e>=100?100:e<0?0:e},a:function(e){return e>=1?1:e<0?0:e}},toLinear:function(e){var t=e/255;return e>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92},hue2rgb:function(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e},hsl2rgb:function(e,t){var n=e.h,i=e.s,o=e.l;if(100===i)return 2.55*o;n/=360,i/=100;var s=(o/=100)<.5?o*(1+i):o+i-o*i,a=2*o-s;switch(t){case"r":return 255*r.hue2rgb(a,s,n+1/3);case"g":return 255*r.hue2rgb(a,s,n);case"b":return 255*r.hue2rgb(a,s,n-1/3)}},rgb2hsl:function(e,t){var n=e.r,r=e.g,i=e.b;n/=255,r/=255,i/=255;var o=Math.max(n,r,i),s=Math.min(n,r,i),a=(o+s)/2;if("l"===t)return 100*a;if(o===s)return 0;var u=o-s;if("s"===t)return 100*(a>.5?u/(2-o-s):u/(o+s));switch(o){case n:return 60*((r-i)/u+(r<i?6:0));case r:return 60*((i-n)/u+2);case i:return 60*((n-r)/u+4);default:return-1}}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={round:function(e){return Math.round(1e10*e)/1e10}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={frac2hex:function(e){var t=Math.round(255*e).toString(16);return t.length>1?t:"0"+t},dec2hex:function(e){var t=Math.round(e).toString(16);return t.length>1?t:"0"+t}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(11),i=n(99),o=n(582),s=function(){function e(e,t){this.color=t,this.changed=!1,this.data=e,this.type=new o.default}return e.prototype.set=function(e,t){return this.color=t,this.changed=!1,this.data=e,this.type.type=i.TYPE.ALL,this},e.prototype._ensureHSL=function(){void 0===this.data.h&&(this.data.h=r.default.channel.rgb2hsl(this.data,"h")),void 0===this.data.s&&(this.data.s=r.default.channel.rgb2hsl(this.data,"s")),void 0===this.data.l&&(this.data.l=r.default.channel.rgb2hsl(this.data,"l"))},e.prototype._ensureRGB=function(){void 0===this.data.r&&(this.data.r=r.default.channel.hsl2rgb(this.data,"r")),void 0===this.data.g&&(this.data.g=r.default.channel.hsl2rgb(this.data,"g")),void 0===this.data.b&&(this.data.b=r.default.channel.hsl2rgb(this.data,"b"))},Object.defineProperty(e.prototype,"r",{get:function(){return this.type.is(i.TYPE.HSL)||void 0===this.data.r?(this._ensureHSL(),r.default.channel.hsl2rgb(this.data,"r")):this.data.r},set:function(e){this.type.set(i.TYPE.RGB),this.changed=!0,this.data.r=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"g",{get:function(){return this.type.is(i.TYPE.HSL)||void 0===this.data.g?(this._ensureHSL(),r.default.channel.hsl2rgb(this.data,"g")):this.data.g},set:function(e){this.type.set(i.TYPE.RGB),this.changed=!0,this.data.g=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"b",{get:function(){return this.type.is(i.TYPE.HSL)||void 0===this.data.b?(this._ensureHSL(),r.default.channel.hsl2rgb(this.data,"b")):this.data.b},set:function(e){this.type.set(i.TYPE.RGB),this.changed=!0,this.data.b=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"h",{get:function(){return this.type.is(i.TYPE.RGB)||void 0===this.data.h?(this._ensureRGB(),r.default.channel.rgb2hsl(this.data,"h")):this.data.h},set:function(e){this.type.set(i.TYPE.HSL),this.changed=!0,this.data.h=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"s",{get:function(){return this.type.is(i.TYPE.RGB)||void 0===this.data.s?(this._ensureRGB(),r.default.channel.rgb2hsl(this.data,"s")):this.data.s},set:function(e){this.type.set(i.TYPE.HSL),this.changed=!0,this.data.s=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"l",{get:function(){return this.type.is(i.TYPE.RGB)||void 0===this.data.l?(this._ensureRGB(),r.default.channel.rgb2hsl(this.data,"l")):this.data.l},set:function(e){this.type.set(i.TYPE.HSL),this.changed=!0,this.data.l=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"a",{get:function(){return this.data.a},set:function(e){this.changed=!0,this.data.a=e},enumerable:!0,configurable:!0}),e}();t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(99),i=function(){function e(){this.type=r.TYPE.ALL}return e.prototype.get=function(){return this.type},e.prototype.set=function(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e},e.prototype.reset=function(){this.type=r.TYPE.ALL},e.prototype.is=function(e){return this.type===e},e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(11),i={};t.DEC2HEX=i;for(var o=0;o<=255;o++)i[o]=r.default.unit.dec2hex(o)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(179),i={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:function(e){e=e.toLowerCase();var t=i.colors[e];if(t)return r.default.parse(t)},stringify:function(e){var t=r.default.stringify(e);for(var n in i.colors)if(i.colors[n]===t)return n}};t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(11),i=n(46),o={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:function(e){var t=e.charCodeAt(0);if(114===t||82===t){var n=e.match(o.re);if(n){var s=n[1],a=n[2],u=n[3],l=n[4],c=n[5],d=n[6],h=n[7],f=n[8];return i.default.set({r:r.default.channel.clamp.r(a?2.55*parseFloat(s):parseFloat(s)),g:r.default.channel.clamp.g(l?2.55*parseFloat(u):parseFloat(u)),b:r.default.channel.clamp.b(d?2.55*parseFloat(c):parseFloat(c)),a:h?r.default.channel.clamp.a(f?parseFloat(h)/100:parseFloat(h)):1},e)}}},stringify:function(e){return e.a<1?"rgba("+r.default.lang.round(e.r)+", "+r.default.lang.round(e.g)+", "+r.default.lang.round(e.b)+", "+r.default.lang.round(e.a)+")":"rgb("+r.default.lang.round(e.r)+", "+r.default.lang.round(e.g)+", "+r.default.lang.round(e.b)+")"}};t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(11),i=n(46),o={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:function(e){var t=e.match(o.hueRe);if(t){var n=t[1];switch(t[2]){case"grad":return r.default.channel.clamp.h(.9*parseFloat(n));case"rad":return r.default.channel.clamp.h(180*parseFloat(n)/Math.PI);case"turn":return r.default.channel.clamp.h(360*parseFloat(n))}}return r.default.channel.clamp.h(parseFloat(e))},parse:function(e){var t=e.charCodeAt(0);if(104===t||72===t){var n=e.match(o.re);if(n){var s=n[1],a=n[2],u=n[3],l=n[4],c=n[5];return i.default.set({h:o._hue2deg(s),s:r.default.channel.clamp.s(parseFloat(a)),l:r.default.channel.clamp.l(parseFloat(u)),a:l?r.default.channel.clamp.a(c?parseFloat(l)/100:parseFloat(l)):1},e)}}},stringify:function(e){return e.a<1?"hsla("+r.default.lang.round(e.h)+", "+r.default.lang.round(e.s)+"%, "+r.default.lang.round(e.l)+"%, "+e.a+")":"hsl("+r.default.lang.round(e.h)+", "+r.default.lang.round(e.s)+"%, "+r.default.lang.round(e.l)+"%)"}};t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(23);t.default=function(e){return r.default(e,"r")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(23);t.default=function(e){return r.default(e,"g")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(23);t.default=function(e){return r.default(e,"b")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(23);t.default=function(e){return r.default(e,"h")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(23);t.default=function(e){return r.default(e,"s")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(23);t.default=function(e){return r.default(e,"l")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(183);t.default=function(e){return!r.default(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(16);t.default=function(e){try{return r.default.parse(e),!0}catch(e){return!1}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(28);t.default=function(e,t){return r.default(e,"s",t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(28);t.default=function(e,t){return r.default(e,"s",-t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(28);t.default=function(e,t){return r.default(e,"l",t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(28);t.default=function(e,t){return r.default(e,"l",-t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(28);t.default=function(e){return r.default(e,"h",180)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(71);t.default=function(e){return r.default(e,{s:0})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(16),i=n(187);t.default=function(e,t){void 0===t&&(t=100);var n=r.default.parse(e);return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,i.default(n,e,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(11),i=n(16),o=n(186);t.default=function(e,t){var n,s,a,u=i.default.parse(e),l={};for(var c in t)l[c]=(n=u[c],s=t[c],a=r.default.channel.max[c],s>0?(a-n)*s/100:n*s/100);return o.default(e,l)}},function(e,t,n){(function(e){e.exports=function(){"use strict";var t,r;function i(){return t.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function s(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function a(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function l(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function c(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function d(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function h(e,t){for(var n in t)d(t,n)&&(e[n]=t[n]);return d(t,"toString")&&(e.toString=t.toString),d(t,"valueOf")&&(e.valueOf=t.valueOf),e}function f(e,t,n,r){return Mt(e,t,n,r,!0).utc()}function p(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function g(e){if(null==e._isValid){var t=p(e),n=r.call(t.parsedDateParts,(function(e){return null!=e})),i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function m(e){var t=f(NaN);return null!=e?h(p(t),e):p(t).userInvalidated=!0,t}r=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};var _=i.momentProperties=[];function y(e,t){var n,r,i;if(a(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),a(t._i)||(e._i=t._i),a(t._f)||(e._f=t._f),a(t._l)||(e._l=t._l),a(t._strict)||(e._strict=t._strict),a(t._tzm)||(e._tzm=t._tzm),a(t._isUTC)||(e._isUTC=t._isUTC),a(t._offset)||(e._offset=t._offset),a(t._pf)||(e._pf=p(t)),a(t._locale)||(e._locale=t._locale),0<_.length)for(n=0;n<_.length;n++)a(i=t[r=_[n]])||(e[r]=i);return e}var v=!1;function b(e){y(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===v&&(v=!0,i.updateOffset(this),v=!1)}function w(e){return e instanceof b||null!=e&&null!=e._isAMomentObject}function C(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function S(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=C(t)),n}function x(e,t,n){var r,i=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),s=0;for(r=0;r<i;r++)(n&&e[r]!==t[r]||!n&&S(e[r])!==S(t[r]))&&s++;return s+o}function L(e){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function k(e,t){var n=!0;return h((function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,e),n){for(var r,o=[],s=0;s<arguments.length;s++){if(r="","object"==typeof arguments[s]){for(var a in r+="\n["+s+"] ",arguments[0])r+=a+": "+arguments[0][a]+", ";r=r.slice(0,-2)}else r=arguments[s];o.push(r)}L(e+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var M,D={};function E(e,t){null!=i.deprecationHandler&&i.deprecationHandler(e,t),D[e]||(L(t),D[e]=!0)}function T(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function N(e,t){var n,r=h({},e);for(n in t)d(t,n)&&(s(e[n])&&s(t[n])?(r[n]={},h(r[n],e[n]),h(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)d(e,n)&&!d(t,n)&&s(e[n])&&(r[n]=h({},r[n]));return r}function O(e){null!=e&&this.set(e)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,M=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)d(e,t)&&n.push(t);return n};var A={};function I(e,t){var n=e.toLowerCase();A[n]=A[n+"s"]=A[t]=e}function P(e){return"string"==typeof e?A[e]||A[e.toLowerCase()]:void 0}function R(e){var t,n,r={};for(n in e)d(e,n)&&(t=P(n))&&(r[t]=e[n]);return r}var F={};function Y(e,t){F[e]=t}function j(e,t,n){var r=""+Math.abs(e),i=t-r.length;return(0<=e?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var B=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,W=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,H={},V={};function z(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(V[e]=i),t&&(V[t[0]]=function(){return j(i.apply(this,arguments),t[1],t[2])}),n&&(V[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function U(e,t){return e.isValid()?(t=q(t,e.localeData()),H[t]=H[t]||function(e){var t,n,r,i=e.match(B);for(t=0,n=i.length;t<n;t++)V[i[t]]?i[t]=V[i[t]]:i[t]=(r=i[t]).match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"");return function(t){var r,o="";for(r=0;r<n;r++)o+=T(i[r])?i[r].call(t,e):i[r];return o}}(t),H[t](e)):e.localeData().invalidDate()}function q(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(W.lastIndex=0;0<=n&&W.test(e);)e=e.replace(W,r),W.lastIndex=0,n-=1;return e}var K=/\d/,G=/\d\d/,$=/\d{3}/,Z=/\d{4}/,X=/[+-]?\d{6}/,J=/\d\d?/,Q=/\d\d\d\d?/,ee=/\d\d\d\d\d\d?/,te=/\d{1,3}/,ne=/\d{1,4}/,re=/[+-]?\d{1,6}/,ie=/\d+/,oe=/[+-]?\d+/,se=/Z|[+-]\d\d:?\d\d/gi,ae=/Z|[+-]\d\d(?::?\d\d)?/gi,ue=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,le={};function ce(e,t,n){le[e]=T(t)?t:function(e,r){return e&&n?n:t}}function de(e,t){return d(le,e)?le[e](t._strict,t._locale):new RegExp(he(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,i){return t||n||r||i}))))}function he(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var fe={};function pe(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),u(t)&&(r=function(e,n){n[t]=S(e)}),n=0;n<e.length;n++)fe[e[n]]=r}function ge(e,t){pe(e,(function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)}))}var me=0,_e=1,ye=2,ve=3,be=4,we=5,Ce=6,Se=7,xe=8;function Le(e){return ke(e)?366:365}function ke(e){return e%4==0&&e%100!=0||e%400==0}z("Y",0,0,(function(){var e=this.year();return e<=9999?""+e:"+"+e})),z(0,["YY",2],0,(function(){return this.year()%100})),z(0,["YYYY",4],0,"year"),z(0,["YYYYY",5],0,"year"),z(0,["YYYYYY",6,!0],0,"year"),I("year","y"),Y("year",1),ce("Y",oe),ce("YY",J,G),ce("YYYY",ne,Z),ce("YYYYY",re,X),ce("YYYYYY",re,X),pe(["YYYYY","YYYYYY"],me),pe("YYYY",(function(e,t){t[me]=2===e.length?i.parseTwoDigitYear(e):S(e)})),pe("YY",(function(e,t){t[me]=i.parseTwoDigitYear(e)})),pe("Y",(function(e,t){t[me]=parseInt(e,10)})),i.parseTwoDigitYear=function(e){return S(e)+(68<S(e)?1900:2e3)};var Me,De=Ee("FullYear",!0);function Ee(e,t){return function(n){return null!=n?(Ne(this,e,n),i.updateOffset(this,t),this):Te(this,e)}}function Te(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Ne(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&ke(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Oe(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Oe(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=(t%12+12)%12;return e+=(t-n)/12,1===n?ke(e)?29:28:31-n%7%2}Me=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},z("M",["MM",2],"Mo",(function(){return this.month()+1})),z("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),z("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),I("month","M"),Y("month",8),ce("M",J),ce("MM",J,G),ce("MMM",(function(e,t){return t.monthsShortRegex(e)})),ce("MMMM",(function(e,t){return t.monthsRegex(e)})),pe(["M","MM"],(function(e,t){t[_e]=S(e)-1})),pe(["MMM","MMMM"],(function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);null!=i?t[_e]=i:p(n).invalidMonth=e}));var Ae=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ie="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Pe="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Re(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=S(t);else if(!u(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Oe(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Fe(e){return null!=e?(Re(this,e),i.updateOffset(this,!0),this):Te(this,"Month")}var Ye=ue,je=ue;function Be(){function e(e,t){return t.length-e.length}var t,n,r=[],i=[],o=[];for(t=0;t<12;t++)n=f([2e3,t]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(r.sort(e),i.sort(e),o.sort(e),t=0;t<12;t++)r[t]=he(r[t]),i[t]=he(i[t]);for(t=0;t<24;t++)o[t]=he(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function We(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&0<=e&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function He(e,t,n){var r=7+t-n;return-(7+We(e,0,r).getUTCDay()-t)%7+r-1}function Ve(e,t,n,r,i){var o,s,a=1+7*(t-1)+(7+n-r)%7+He(e,r,i);return a<=0?s=Le(o=e-1)+a:a>Le(e)?(o=e+1,s=a-Le(e)):(o=e,s=a),{year:o,dayOfYear:s}}function ze(e,t,n){var r,i,o=He(e.year(),t,n),s=Math.floor((e.dayOfYear()-o-1)/7)+1;return s<1?r=s+Ue(i=e.year()-1,t,n):s>Ue(e.year(),t,n)?(r=s-Ue(e.year(),t,n),i=e.year()+1):(i=e.year(),r=s),{week:r,year:i}}function Ue(e,t,n){var r=He(e,t,n),i=He(e+1,t,n);return(Le(e)-r+i)/7}z("w",["ww",2],"wo","week"),z("W",["WW",2],"Wo","isoWeek"),I("week","w"),I("isoWeek","W"),Y("week",5),Y("isoWeek",5),ce("w",J),ce("ww",J,G),ce("W",J),ce("WW",J,G),ge(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=S(e)})),z("d",0,"do","day"),z("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),z("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),z("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),z("e",0,0,"weekday"),z("E",0,0,"isoWeekday"),I("day","d"),I("weekday","e"),I("isoWeekday","E"),Y("day",11),Y("weekday",11),Y("isoWeekday",11),ce("d",J),ce("e",J),ce("E",J),ce("dd",(function(e,t){return t.weekdaysMinRegex(e)})),ce("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),ce("dddd",(function(e,t){return t.weekdaysRegex(e)})),ge(["dd","ddd","dddd"],(function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:p(n).invalidWeekday=e})),ge(["d","e","E"],(function(e,t,n,r){t[r]=S(e)}));var qe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ke="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ge="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),$e=ue,Ze=ue,Xe=ue;function Je(){function e(e,t){return t.length-e.length}var t,n,r,i,o,s=[],a=[],u=[],l=[];for(t=0;t<7;t++)n=f([2e3,1]).day(t),r=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),o=this.weekdays(n,""),s.push(r),a.push(i),u.push(o),l.push(r),l.push(i),l.push(o);for(s.sort(e),a.sort(e),u.sort(e),l.sort(e),t=0;t<7;t++)a[t]=he(a[t]),u[t]=he(u[t]),l[t]=he(l[t]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function Qe(){return this.hours()%12||12}function et(e,t){z(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function tt(e,t){return t._meridiemParse}z("H",["HH",2],0,"hour"),z("h",["hh",2],0,Qe),z("k",["kk",2],0,(function(){return this.hours()||24})),z("hmm",0,0,(function(){return""+Qe.apply(this)+j(this.minutes(),2)})),z("hmmss",0,0,(function(){return""+Qe.apply(this)+j(this.minutes(),2)+j(this.seconds(),2)})),z("Hmm",0,0,(function(){return""+this.hours()+j(this.minutes(),2)})),z("Hmmss",0,0,(function(){return""+this.hours()+j(this.minutes(),2)+j(this.seconds(),2)})),et("a",!0),et("A",!1),I("hour","h"),Y("hour",13),ce("a",tt),ce("A",tt),ce("H",J),ce("h",J),ce("k",J),ce("HH",J,G),ce("hh",J,G),ce("kk",J,G),ce("hmm",Q),ce("hmmss",ee),ce("Hmm",Q),ce("Hmmss",ee),pe(["H","HH"],ve),pe(["k","kk"],(function(e,t,n){var r=S(e);t[ve]=24===r?0:r})),pe(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),pe(["h","hh"],(function(e,t,n){t[ve]=S(e),p(n).bigHour=!0})),pe("hmm",(function(e,t,n){var r=e.length-2;t[ve]=S(e.substr(0,r)),t[be]=S(e.substr(r)),p(n).bigHour=!0})),pe("hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[ve]=S(e.substr(0,r)),t[be]=S(e.substr(r,2)),t[we]=S(e.substr(i)),p(n).bigHour=!0})),pe("Hmm",(function(e,t,n){var r=e.length-2;t[ve]=S(e.substr(0,r)),t[be]=S(e.substr(r))})),pe("Hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[ve]=S(e.substr(0,r)),t[be]=S(e.substr(r,2)),t[we]=S(e.substr(i))}));var nt,rt=Ee("Hours",!0),it={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ie,monthsShort:Pe,week:{dow:0,doy:6},weekdays:qe,weekdaysMin:Ge,weekdaysShort:Ke,meridiemParse:/[ap]\.?m?\.?/i},ot={},st={};function at(e){return e?e.toLowerCase().replace("_","-"):e}function ut(t){var r=null;if(!ot[t]&&void 0!==e&&e&&e.exports)try{r=nt._abbr,n(604)("./"+t),lt(r)}catch(t){}return ot[t]}function lt(e,t){var n;return e&&((n=a(t)?dt(e):ct(e,t))?nt=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),nt._abbr}function ct(e,t){if(null!==t){var n,r=it;if(t.abbr=e,null!=ot[e])E("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=ot[e]._config;else if(null!=t.parentLocale)if(null!=ot[t.parentLocale])r=ot[t.parentLocale]._config;else{if(null==(n=ut(t.parentLocale)))return st[t.parentLocale]||(st[t.parentLocale]=[]),st[t.parentLocale].push({name:e,config:t}),null;r=n._config}return ot[e]=new O(N(r,t)),st[e]&&st[e].forEach((function(e){ct(e.name,e.config)})),lt(e),ot[e]}return delete ot[e],null}function dt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return nt;if(!o(e)){if(t=ut(e))return t;e=[e]}return function(e){for(var t,n,r,i,o=0;o<e.length;){for(t=(i=at(e[o]).split("-")).length,n=(n=at(e[o+1]))?n.split("-"):null;0<t;){if(r=ut(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&x(i,n,!0)>=t-1)break;t--}o++}return nt}(e)}function ht(e){var t,n=e._a;return n&&-2===p(e).overflow&&(t=n[_e]<0||11<n[_e]?_e:n[ye]<1||n[ye]>Oe(n[me],n[_e])?ye:n[ve]<0||24<n[ve]||24===n[ve]&&(0!==n[be]||0!==n[we]||0!==n[Ce])?ve:n[be]<0||59<n[be]?be:n[we]<0||59<n[we]?we:n[Ce]<0||999<n[Ce]?Ce:-1,p(e)._overflowDayOfYear&&(t<me||ye<t)&&(t=ye),p(e)._overflowWeeks&&-1===t&&(t=Se),p(e)._overflowWeekday&&-1===t&&(t=xe),p(e).overflow=t),e}function ft(e,t,n){return null!=e?e:null!=t?t:n}function pt(e){var t,n,r,o,s,a=[];if(!e._d){var u,l;for(u=e,l=new Date(i.now()),r=u._useUTC?[l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()]:[l.getFullYear(),l.getMonth(),l.getDate()],e._w&&null==e._a[ye]&&null==e._a[_e]&&function(e){var t,n,r,i,o,s,a,u;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)o=1,s=4,n=ft(t.GG,e._a[me],ze(Dt(),1,4).year),r=ft(t.W,1),((i=ft(t.E,1))<1||7<i)&&(u=!0);else{o=e._locale._week.dow,s=e._locale._week.doy;var l=ze(Dt(),o,s);n=ft(t.gg,e._a[me],l.year),r=ft(t.w,l.week),null!=t.d?((i=t.d)<0||6<i)&&(u=!0):null!=t.e?(i=t.e+o,(t.e<0||6<t.e)&&(u=!0)):i=o}r<1||r>Ue(n,o,s)?p(e)._overflowWeeks=!0:null!=u?p(e)._overflowWeekday=!0:(a=Ve(n,r,i,o,s),e._a[me]=a.year,e._dayOfYear=a.dayOfYear)}(e),null!=e._dayOfYear&&(s=ft(e._a[me],r[me]),(e._dayOfYear>Le(s)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),n=We(s,0,e._dayOfYear),e._a[_e]=n.getUTCMonth(),e._a[ye]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=r[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[ve]&&0===e._a[be]&&0===e._a[we]&&0===e._a[Ce]&&(e._nextDay=!0,e._a[ve]=0),e._d=(e._useUTC?We:function(e,t,n,r,i,o,s){var a=new Date(e,t,n,r,i,o,s);return e<100&&0<=e&&isFinite(a.getFullYear())&&a.setFullYear(e),a}).apply(null,a),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ve]=24),e._w&&void 0!==e._w.d&&e._w.d!==o&&(p(e).weekdayMismatch=!0)}}var gt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,mt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,_t=/Z|[+-]\d\d(?::?\d\d)?/,yt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],vt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],bt=/^\/?Date\((\-?\d+)/i;function wt(e){var t,n,r,i,o,s,a=e._i,u=gt.exec(a)||mt.exec(a);if(u){for(p(e).iso=!0,t=0,n=yt.length;t<n;t++)if(yt[t][1].exec(u[1])){i=yt[t][0],r=!1!==yt[t][2];break}if(null==i)return void(e._isValid=!1);if(u[3]){for(t=0,n=vt.length;t<n;t++)if(vt[t][1].exec(u[3])){o=(u[2]||" ")+vt[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(u[4]){if(!_t.exec(u[4]))return void(e._isValid=!1);s="Z"}e._f=i+(o||"")+(s||""),Lt(e)}else e._isValid=!1}var Ct=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,St={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function xt(e){var t,n,r,i=Ct.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim());if(i){var o=function(e,t,n,r,i,o){var s=[function(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}(e),Pe.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&s.push(parseInt(o,10)),s}(i[4],i[3],i[2],i[5],i[6],i[7]);if(n=o,r=e,(t=i[1])&&Ke.indexOf(t)!==new Date(n[0],n[1],n[2]).getDay()&&(p(r).weekdayMismatch=!0,!(r._isValid=!1)))return;e._a=o,e._tzm=function(e,t,n){if(e)return St[e];if(t)return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}(i[8],i[9],i[10]),e._d=We.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),p(e).rfc2822=!0}else e._isValid=!1}function Lt(e){if(e._f!==i.ISO_8601)if(e._f!==i.RFC_2822){e._a=[],p(e).empty=!0;var t,n,r,o,s,a,u,l,c=""+e._i,h=c.length,f=0;for(r=q(e._f,e._locale).match(B)||[],t=0;t<r.length;t++)o=r[t],(n=(c.match(de(o,e))||[])[0])&&(0<(s=c.substr(0,c.indexOf(n))).length&&p(e).unusedInput.push(s),c=c.slice(c.indexOf(n)+n.length),f+=n.length),V[o]?(n?p(e).empty=!1:p(e).unusedTokens.push(o),a=o,l=e,null!=(u=n)&&d(fe,a)&&fe[a](u,l._a,l,a)):e._strict&&!n&&p(e).unusedTokens.push(o);p(e).charsLeftOver=h-f,0<c.length&&p(e).unusedInput.push(c),e._a[ve]<=12&&!0===p(e).bigHour&&0<e._a[ve]&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[ve]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):(null!=e.isPM&&((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0)),t)}(e._locale,e._a[ve],e._meridiem),pt(e),ht(e)}else xt(e);else wt(e)}function kt(e){var t,n,r,d,f=e._i,_=e._f;return e._locale=e._locale||dt(e._l),null===f||void 0===_&&""===f?m({nullInput:!0}):("string"==typeof f&&(e._i=f=e._locale.preparse(f)),w(f)?new b(ht(f)):(l(f)?e._d=f:o(_)?function(e){var t,n,r,i,o;if(0===e._f.length)return p(e).invalidFormat=!0,e._d=new Date(NaN);for(i=0;i<e._f.length;i++)o=0,t=y({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Lt(t),g(t)&&(o+=p(t).charsLeftOver,o+=10*p(t).unusedTokens.length,p(t).score=o,(null==r||o<r)&&(r=o,n=t));h(e,n||t)}(e):_?Lt(e):a(n=(t=e)._i)?t._d=new Date(i.now()):l(n)?t._d=new Date(n.valueOf()):"string"==typeof n?(r=t,null===(d=bt.exec(r._i))?(wt(r),!1===r._isValid&&(delete r._isValid,xt(r),!1===r._isValid&&(delete r._isValid,i.createFromInputFallback(r)))):r._d=new Date(+d[1])):o(n)?(t._a=c(n.slice(0),(function(e){return parseInt(e,10)})),pt(t)):s(n)?function(e){if(!e._d){var t=R(e._i);e._a=c([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),pt(e)}}(t):u(n)?t._d=new Date(n):i.createFromInputFallback(t),g(e)||(e._d=null),e))}function Mt(e,t,n,r,i){var a,u={};return!0!==n&&!1!==n||(r=n,n=void 0),(s(e)&&function(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0}(e)||o(e)&&0===e.length)&&(e=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=i,u._l=n,u._i=e,u._f=t,u._strict=r,(a=new b(ht(kt(u))))._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function Dt(e,t,n,r){return Mt(e,t,n,r,!1)}i.createFromInputFallback=k("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),i.ISO_8601=function(){},i.RFC_2822=function(){};var Et=k("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Dt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:m()})),Tt=k("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Dt.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:m()}));function Nt(e,t){var n,r;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return Dt();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var Ot=["year","quarter","month","week","day","hour","minute","second","millisecond"];function At(e){var t=R(e),n=t.year||0,r=t.quarter||0,i=t.month||0,o=t.week||0,s=t.day||0,a=t.hour||0,u=t.minute||0,l=t.second||0,c=t.millisecond||0;this._isValid=function(e){for(var t in e)if(-1===Me.call(Ot,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,r=0;r<Ot.length;++r)if(e[Ot[r]]){if(n)return!1;parseFloat(e[Ot[r]])!==S(e[Ot[r]])&&(n=!0)}return!0}(t),this._milliseconds=+c+1e3*l+6e4*u+1e3*a*60*60,this._days=+s+7*o,this._months=+i+3*r+12*n,this._data={},this._locale=dt(),this._bubble()}function It(e){return e instanceof At}function Pt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Rt(e,t){z(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+j(~~(e/60),2)+t+j(~~e%60,2)}))}Rt("Z",":"),Rt("ZZ",""),ce("Z",ae),ce("ZZ",ae),pe(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=Yt(ae,e)}));var Ft=/([\+\-]|\d\d)/gi;function Yt(e,t){var n=(t||"").match(e);if(null===n)return null;var r=((n[n.length-1]||[])+"").match(Ft)||["-",0,0],i=60*r[1]+S(r[2]);return 0===i?0:"+"===r[0]?i:-i}function jt(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(w(e)||l(e)?e.valueOf():Dt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),i.updateOffset(n,!1),n):Dt(e).local()}function Bt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Wt(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var Ht=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Vt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function zt(e,t){var n,r,i,o=e,s=null;return It(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:u(e)?(o={},t?o[t]=e:o.milliseconds=e):(s=Ht.exec(e))?(n="-"===s[1]?-1:1,o={y:0,d:S(s[ye])*n,h:S(s[ve])*n,m:S(s[be])*n,s:S(s[we])*n,ms:S(Pt(1e3*s[Ce]))*n}):(s=Vt.exec(e))?(n="-"===s[1]?-1:(s[1],1),o={y:Ut(s[2],n),M:Ut(s[3],n),w:Ut(s[4],n),d:Ut(s[5],n),h:Ut(s[6],n),m:Ut(s[7],n),s:Ut(s[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(i=function(e,t){var n;return e.isValid()&&t.isValid()?(t=jt(t,e),e.isBefore(t)?n=qt(e,t):((n=qt(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}(Dt(o.from),Dt(o.to)),(o={}).ms=i.milliseconds,o.M=i.months),r=new At(o),It(e)&&d(e,"_locale")&&(r._locale=e._locale),r}function Ut(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function qt(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Kt(e,t){return function(n,r){var i;return null===r||isNaN(+r)||(E(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),Gt(this,zt(n="string"==typeof n?+n:n,r),e),this}}function Gt(e,t,n,r){var o=t._milliseconds,s=Pt(t._days),a=Pt(t._months);e.isValid()&&(r=null==r||r,a&&Re(e,Te(e,"Month")+a*n),s&&Ne(e,"Date",Te(e,"Date")+s*n),o&&e._d.setTime(e._d.valueOf()+o*n),r&&i.updateOffset(e,s||a))}zt.fn=At.prototype,zt.invalid=function(){return zt(NaN)};var $t=Kt(1,"add"),Zt=Kt(-1,"subtract");function Xt(e,t){var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Jt(e){var t;return void 0===e?this._locale._abbr:(null!=(t=dt(e))&&(this._locale=t),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Qt=k("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function en(){return this._locale}function tn(e,t){z(0,[e,e.length],0,t)}function nn(e,t,n,r,i){var o;return null==e?ze(this,r,i).year:((o=Ue(e,r,i))<t&&(t=o),function(e,t,n,r,i){var o=Ve(e,t,n,r,i),s=We(o.year,0,o.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}.call(this,e,t,n,r,i))}z(0,["gg",2],0,(function(){return this.weekYear()%100})),z(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),tn("gggg","weekYear"),tn("ggggg","weekYear"),tn("GGGG","isoWeekYear"),tn("GGGGG","isoWeekYear"),I("weekYear","gg"),I("isoWeekYear","GG"),Y("weekYear",1),Y("isoWeekYear",1),ce("G",oe),ce("g",oe),ce("GG",J,G),ce("gg",J,G),ce("GGGG",ne,Z),ce("gggg",ne,Z),ce("GGGGG",re,X),ce("ggggg",re,X),ge(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=S(e)})),ge(["gg","GG"],(function(e,t,n,r){t[r]=i.parseTwoDigitYear(e)})),z("Q",0,"Qo","quarter"),I("quarter","Q"),Y("quarter",7),ce("Q",K),pe("Q",(function(e,t){t[_e]=3*(S(e)-1)})),z("D",["DD",2],"Do","date"),I("date","D"),Y("date",9),ce("D",J),ce("DD",J,G),ce("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),pe(["D","DD"],ye),pe("Do",(function(e,t){t[ye]=S(e.match(J)[0])}));var rn=Ee("Date",!0);z("DDD",["DDDD",3],"DDDo","dayOfYear"),I("dayOfYear","DDD"),Y("dayOfYear",4),ce("DDD",te),ce("DDDD",$),pe(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=S(e)})),z("m",["mm",2],0,"minute"),I("minute","m"),Y("minute",14),ce("m",J),ce("mm",J,G),pe(["m","mm"],be);var on=Ee("Minutes",!1);z("s",["ss",2],0,"second"),I("second","s"),Y("second",15),ce("s",J),ce("ss",J,G),pe(["s","ss"],we);var sn,an=Ee("Seconds",!1);for(z("S",0,0,(function(){return~~(this.millisecond()/100)})),z(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),z(0,["SSS",3],0,"millisecond"),z(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),z(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),z(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),z(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),z(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),z(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),I("millisecond","ms"),Y("millisecond",16),ce("S",te,K),ce("SS",te,G),ce("SSS",te,$),sn="SSSS";sn.length<=9;sn+="S")ce(sn,ie);function un(e,t){t[Ce]=S(1e3*("0."+e))}for(sn="S";sn.length<=9;sn+="S")pe(sn,un);var ln=Ee("Milliseconds",!1);z("z",0,0,"zoneAbbr"),z("zz",0,0,"zoneName");var cn=b.prototype;function dn(e){return e}cn.add=$t,cn.calendar=function(e,t){var n=e||Dt(),r=jt(n,this).startOf("day"),o=i.calendarFormat(this,r)||"sameElse",s=t&&(T(t[o])?t[o].call(this,n):t[o]);return this.format(s||this.localeData().calendar(o,this,Dt(n)))},cn.clone=function(){return new b(this)},cn.diff=function(e,t,n){var r,i,o;if(!this.isValid())return NaN;if(!(r=jt(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=P(t)){case"year":o=Xt(this,r)/12;break;case"month":o=Xt(this,r);break;case"quarter":o=Xt(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:C(o)},cn.endOf=function(e){return void 0===(e=P(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))},cn.format=function(e){e||(e=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var t=U(this,e);return this.localeData().postformat(t)},cn.from=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||Dt(e).isValid())?zt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},cn.fromNow=function(e){return this.from(Dt(),e)},cn.to=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||Dt(e).isValid())?zt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},cn.toNow=function(e){return this.to(Dt(),e)},cn.get=function(e){return T(this[e=P(e)])?this[e]():this},cn.invalidAt=function(){return p(this).overflow},cn.isAfter=function(e,t){var n=w(e)?e:Dt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=P(a(t)?"millisecond":t))?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},cn.isBefore=function(e,t){var n=w(e)?e:Dt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=P(a(t)?"millisecond":t))?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},cn.isBetween=function(e,t,n,r){return("("===(r=r||"()")[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===r[1]?this.isBefore(t,n):!this.isAfter(t,n))},cn.isSame=function(e,t){var n,r=w(e)?e:Dt(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=P(t||"millisecond"))?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},cn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},cn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},cn.isValid=function(){return g(this)},cn.lang=Qt,cn.locale=Jt,cn.localeData=en,cn.max=Tt,cn.min=Et,cn.parsingFlags=function(){return h({},p(this))},cn.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t=[];for(var n in e)t.push({unit:n,priority:F[n]});return t.sort((function(e,t){return e.priority-t.priority})),t}(e=R(e)),r=0;r<n.length;r++)this[n[r].unit](e[n[r].unit]);else if(T(this[e=P(e)]))return this[e](t);return this},cn.startOf=function(e){switch(e=P(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this},cn.subtract=Zt,cn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},cn.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},cn.toDate=function(){return new Date(this.valueOf())},cn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||9999<n.year()?U(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):T(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",U(n,"Z")):U(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},cn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=t+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+i)},cn.toJSON=function(){return this.isValid()?this.toISOString():null},cn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},cn.unix=function(){return Math.floor(this.valueOf()/1e3)},cn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},cn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},cn.year=De,cn.isLeapYear=function(){return ke(this.year())},cn.weekYear=function(e){return nn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},cn.isoWeekYear=function(e){return nn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},cn.quarter=cn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},cn.month=Fe,cn.daysInMonth=function(){return Oe(this.year(),this.month())},cn.week=cn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},cn.isoWeek=cn.isoWeeks=function(e){var t=ze(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},cn.weeksInYear=function(){var e=this.localeData()._week;return Ue(this.year(),e.dow,e.doy)},cn.isoWeeksInYear=function(){return Ue(this.year(),1,4)},cn.date=rn,cn.day=cn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t,n,r=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(t=e,n=this.localeData(),e="string"!=typeof t?t:isNaN(t)?"number"==typeof(t=n.weekdaysParse(t))?t:null:parseInt(t,10),this.add(e-r,"d")):r},cn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},cn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=(n=e,r=this.localeData(),"string"==typeof n?r.weekdaysParse(n)%7||7:isNaN(n)?null:n);return this.day(this.day()%7?t:t-7)}return this.day()||7;var n,r},cn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},cn.hour=cn.hours=rt,cn.minute=cn.minutes=on,cn.second=cn.seconds=an,cn.millisecond=cn.milliseconds=ln,cn.utcOffset=function(e,t,n){var r,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Yt(ae,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=Bt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==e&&(!t||this._changeInProgress?Gt(this,zt(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:Bt(this)},cn.utc=function(e){return this.utcOffset(0,e)},cn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Bt(this),"m")),this},cn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Yt(se,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},cn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Dt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},cn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},cn.isLocal=function(){return!!this.isValid()&&!this._isUTC},cn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},cn.isUtc=Wt,cn.isUTC=Wt,cn.zoneAbbr=function(){return this._isUTC?"UTC":""},cn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},cn.dates=k("dates accessor is deprecated. Use date instead.",rn),cn.months=k("months accessor is deprecated. Use month instead",Fe),cn.years=k("years accessor is deprecated. Use year instead",De),cn.zone=k("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),cn.isDSTShifted=k("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!a(this._isDSTShifted))return this._isDSTShifted;var e={};if(y(e,this),(e=kt(e))._a){var t=e._isUTC?f(e._a):Dt(e._a);this._isDSTShifted=this.isValid()&&0<x(e._a,t.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted}));var hn=O.prototype;function fn(e,t,n,r){var i=dt(),o=f().set(r,t);return i[n](o,e)}function pn(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return fn(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=fn(e,r,n,"month");return i}function gn(e,t,n,r){"boolean"==typeof e?u(t)&&(n=t,t=void 0):(t=e,e=!1,u(n=t)&&(n=t,t=void 0)),t=t||"";var i,o=dt(),s=e?o._week.dow:0;if(null!=n)return fn(t,(n+s)%7,r,"day");var a=[];for(i=0;i<7;i++)a[i]=fn(t,(i+s)%7,r,"day");return a}hn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return T(r)?r.call(t,n):r},hn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,(function(e){return e.slice(1)})),this._longDateFormat[e])},hn.invalidDate=function(){return this._invalidDate},hn.ordinal=function(e){return this._ordinal.replace("%d",e)},hn.preparse=dn,hn.postformat=dn,hn.relativeTime=function(e,t,n,r){var i=this._relativeTime[n];return T(i)?i(e,t,n,r):i.replace(/%d/i,e)},hn.pastFuture=function(e,t){var n=this._relativeTime[0<e?"future":"past"];return T(n)?n(t):n.replace(/%s/i,t)},hn.set=function(e){var t,n;for(n in e)T(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},hn.months=function(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ae).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone},hn.monthsShort=function(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ae.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},hn.monthsParse=function(e,t,n){var r,i,o;if(this._monthsParseExact)return function(e,t,n){var r,i,o,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=f([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=Me.call(this._shortMonthsParse,s))?i:null:-1!==(i=Me.call(this._longMonthsParse,s))?i:null:"MMM"===t?-1!==(i=Me.call(this._shortMonthsParse,s))?i:-1!==(i=Me.call(this._longMonthsParse,s))?i:null:-1!==(i=Me.call(this._longMonthsParse,s))?i:-1!==(i=Me.call(this._shortMonthsParse,s))?i:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=f([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},hn.monthsRegex=function(e){return this._monthsParseExact?(d(this,"_monthsRegex")||Be.call(this),e?this._monthsStrictRegex:this._monthsRegex):(d(this,"_monthsRegex")||(this._monthsRegex=je),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},hn.monthsShortRegex=function(e){return this._monthsParseExact?(d(this,"_monthsRegex")||Be.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(d(this,"_monthsShortRegex")||(this._monthsShortRegex=Ye),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},hn.week=function(e){return ze(e,this._week.dow,this._week.doy).week},hn.firstDayOfYear=function(){return this._week.doy},hn.firstDayOfWeek=function(){return this._week.dow},hn.weekdays=function(e,t){return e?o(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:o(this._weekdays)?this._weekdays:this._weekdays.standalone},hn.weekdaysMin=function(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin},hn.weekdaysShort=function(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort},hn.weekdaysParse=function(e,t,n){var r,i,o;if(this._weekdaysParseExact)return function(e,t,n){var r,i,o,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=f([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=Me.call(this._weekdaysParse,s))?i:null:"ddd"===t?-1!==(i=Me.call(this._shortWeekdaysParse,s))?i:null:-1!==(i=Me.call(this._minWeekdaysParse,s))?i:null:"dddd"===t?-1!==(i=Me.call(this._weekdaysParse,s))?i:-1!==(i=Me.call(this._shortWeekdaysParse,s))?i:-1!==(i=Me.call(this._minWeekdaysParse,s))?i:null:"ddd"===t?-1!==(i=Me.call(this._shortWeekdaysParse,s))?i:-1!==(i=Me.call(this._weekdaysParse,s))?i:-1!==(i=Me.call(this._minWeekdaysParse,s))?i:null:-1!==(i=Me.call(this._minWeekdaysParse,s))?i:-1!==(i=Me.call(this._weekdaysParse,s))?i:-1!==(i=Me.call(this._shortWeekdaysParse,s))?i:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=f([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".",".?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},hn.weekdaysRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Je.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(d(this,"_weekdaysRegex")||(this._weekdaysRegex=$e),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},hn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Je.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(d(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ze),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},hn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Je.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(d(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Xe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},hn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},hn.meridiem=function(e,t,n){return 11<e?n?"pm":"PM":n?"am":"AM"},lt("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===S(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),i.lang=k("moment.lang is deprecated. Use moment.locale instead.",lt),i.langData=k("moment.langData is deprecated. Use moment.localeData instead.",dt);var mn=Math.abs;function _n(e,t,n,r){var i=zt(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function yn(e){return e<0?Math.floor(e):Math.ceil(e)}function vn(e){return 4800*e/146097}function bn(e){return 146097*e/4800}function wn(e){return function(){return this.as(e)}}var Cn=wn("ms"),Sn=wn("s"),xn=wn("m"),Ln=wn("h"),kn=wn("d"),Mn=wn("w"),Dn=wn("M"),En=wn("y");function Tn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Nn=Tn("milliseconds"),On=Tn("seconds"),An=Tn("minutes"),In=Tn("hours"),Pn=Tn("days"),Rn=Tn("months"),Fn=Tn("years"),Yn=Math.round,jn={ss:44,s:45,m:45,h:22,d:26,M:11},Bn=Math.abs;function Wn(e){return(0<e)-(e<0)||+e}function Hn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=Bn(this._milliseconds)/1e3,r=Bn(this._days),i=Bn(this._months);t=C((e=C(n/60))/60),n%=60,e%=60;var o=C(i/12),s=i%=12,a=r,u=t,l=e,c=n?n.toFixed(3).replace(/\.?0+$/,""):"",d=this.asSeconds();if(!d)return"P0D";var h=d<0?"-":"",f=Wn(this._months)!==Wn(d)?"-":"",p=Wn(this._days)!==Wn(d)?"-":"",g=Wn(this._milliseconds)!==Wn(d)?"-":"";return h+"P"+(o?f+o+"Y":"")+(s?f+s+"M":"")+(a?p+a+"D":"")+(u||l||c?"T":"")+(u?g+u+"H":"")+(l?g+l+"M":"")+(c?g+c+"S":"")}var Vn=At.prototype;return Vn.isValid=function(){return this._isValid},Vn.abs=function(){var e=this._data;return this._milliseconds=mn(this._milliseconds),this._days=mn(this._days),this._months=mn(this._months),e.milliseconds=mn(e.milliseconds),e.seconds=mn(e.seconds),e.minutes=mn(e.minutes),e.hours=mn(e.hours),e.months=mn(e.months),e.years=mn(e.years),this},Vn.add=function(e,t){return _n(this,e,t,1)},Vn.subtract=function(e,t){return _n(this,e,t,-1)},Vn.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=P(e))||"year"===e)return t=this._days+r/864e5,n=this._months+vn(t),"month"===e?n:n/12;switch(t=this._days+Math.round(bn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},Vn.asMilliseconds=Cn,Vn.asSeconds=Sn,Vn.asMinutes=xn,Vn.asHours=Ln,Vn.asDays=kn,Vn.asWeeks=Mn,Vn.asMonths=Dn,Vn.asYears=En,Vn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*S(this._months/12):NaN},Vn._bubble=function(){var e,t,n,r,i,o=this._milliseconds,s=this._days,a=this._months,u=this._data;return 0<=o&&0<=s&&0<=a||o<=0&&s<=0&&a<=0||(o+=864e5*yn(bn(a)+s),a=s=0),u.milliseconds=o%1e3,e=C(o/1e3),u.seconds=e%60,t=C(e/60),u.minutes=t%60,n=C(t/60),u.hours=n%24,a+=i=C(vn(s+=C(n/24))),s-=yn(bn(i)),r=C(a/12),a%=12,u.days=s,u.months=a,u.years=r,this},Vn.clone=function(){return zt(this)},Vn.get=function(e){return e=P(e),this.isValid()?this[e+"s"]():NaN},Vn.milliseconds=Nn,Vn.seconds=On,Vn.minutes=An,Vn.hours=In,Vn.days=Pn,Vn.weeks=function(){return C(this.days()/7)},Vn.months=Rn,Vn.years=Fn,Vn.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t,n,r,i,o,s,a,u,l,c,d=this.localeData(),h=(t=!e,n=d,r=zt(this).abs(),i=Yn(r.as("s")),o=Yn(r.as("m")),s=Yn(r.as("h")),a=Yn(r.as("d")),u=Yn(r.as("M")),l=Yn(r.as("y")),(c=i<=jn.ss&&["s",i]||i<jn.s&&["ss",i]||o<=1&&["m"]||o<jn.m&&["mm",o]||s<=1&&["h"]||s<jn.h&&["hh",s]||a<=1&&["d"]||a<jn.d&&["dd",a]||u<=1&&["M"]||u<jn.M&&["MM",u]||l<=1&&["y"]||["yy",l])[2]=t,c[3]=0<+this,c[4]=n,function(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}.apply(null,c));return e&&(h=d.pastFuture(+this,h)),d.postformat(h)},Vn.toISOString=Hn,Vn.toString=Hn,Vn.toJSON=Hn,Vn.locale=Jt,Vn.localeData=en,Vn.toIsoString=k("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Hn),Vn.lang=Qt,z("X",0,0,"unix"),z("x",0,0,"valueOf"),ce("x",oe),ce("X",/[+-]?\d+(\.\d{1,3})?/),pe("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))})),pe("x",(function(e,t,n){n._d=new Date(S(e))})),i.version="2.22.1",t=Dt,i.fn=cn,i.min=function(){return Nt("isBefore",[].slice.call(arguments,0))},i.max=function(){return Nt("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=f,i.unix=function(e){return Dt(1e3*e)},i.months=function(e,t){return pn(e,t,"months")},i.isDate=l,i.locale=lt,i.invalid=m,i.duration=zt,i.isMoment=w,i.weekdays=function(e,t,n){return gn(e,t,n,"weekdays")},i.parseZone=function(){return Dt.apply(null,arguments).parseZone()},i.localeData=dt,i.isDuration=It,i.monthsShort=function(e,t){return pn(e,t,"monthsShort")},i.weekdaysMin=function(e,t,n){return gn(e,t,n,"weekdaysMin")},i.defineLocale=ct,i.updateLocale=function(e,t){if(null!=t){var n,r,i=it;null!=(r=ut(e))&&(i=r._config),(n=new O(t=N(i,t))).parentLocale=ot[e],ot[e]=n,lt(e)}else null!=ot[e]&&(null!=ot[e].parentLocale?ot[e]=ot[e].parentLocale:null!=ot[e]&&delete ot[e]);return ot[e]},i.locales=function(){return M(ot)},i.weekdaysShort=function(e,t,n){return gn(e,t,n,"weekdaysShort")},i.normalizeUnits=P,i.relativeTimeRounding=function(e){return void 0===e?Yn:"function"==typeof e&&(Yn=e,!0)},i.relativeTimeThreshold=function(e,t){return void 0!==jn[e]&&(void 0===t?jn[e]:(jn[e]=t,"s"===e&&(jn.ss=t-1),!0))},i.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},i.prototype=cn,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},i}()}).call(this,n(40)(e))},function(e,t,n){var r={"./locale":188,"./locale.js":188};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=604},function(e,t,n){e.exports=function e(t){"use strict";var n=/^\0+/g,r=/[\0\r\f]/g,i=/: */g,o=/zoo|gra/,s=/([,: ])(transform)/g,a=/,+\s*(?![^(]*[)])/g,u=/ +\s*(?![^(]*[)])/g,l=/ *[\0] */g,c=/,\r+?/g,d=/([\t\r\n ])*\f?&/g,h=/:global\(((?:[^\(\)\[\]]*|\[.*\]|\([^\(\)]*\))*)\)/g,f=/\W+/g,p=/@(k\w+)\s*(\S*)\s*/,g=/::(place)/g,m=/:(read-only)/g,_=/\s+(?=[{\];=:>])/g,y=/([[}=:>])\s+/g,v=/(\{[^{]+?);(?=\})/g,b=/\s{2,}/g,w=/([^\(])(:+) */g,C=/[svh]\w+-[tblr]{2}/,S=/\(\s*(.*)\s*\)/g,x=/([\s\S]*?);/g,L=/-self|flex-/g,k=/[^]*?(:[rp][el]a[\w-]+)[^]*/,M=/stretch|:\s*\w+\-(?:conte|avail)/,D=/([^-])(image-set\()/,E="-webkit-",T="-moz-",N="-ms-",O=59,A=125,I=123,P=40,R=41,F=91,Y=93,j=10,B=13,W=9,H=64,V=32,z=38,U=45,q=95,K=42,G=44,$=58,Z=39,X=34,J=47,Q=62,ee=43,te=126,ne=0,re=12,ie=11,oe=107,se=109,ae=115,ue=112,le=111,ce=105,de=99,he=100,fe=112,pe=1,ge=1,me=0,_e=1,ye=1,ve=1,be=0,we=0,Ce=0,Se=[],xe=[],Le=0,ke=null,Me=-2,De=-1,Ee=0,Te=1,Ne=2,Oe=3,Ae=0,Ie=1,Pe="",Re="",Fe="";function Ye(e,t,i,o,s){for(var a,u,c=0,d=0,h=0,f=0,_=0,y=0,v=0,b=0,C=0,x=0,L=0,k=0,M=0,D=0,q=0,be=0,xe=0,ke=0,Me=0,De=i.length,Be=De-1,qe="",Ke="",Ge="",$e="",Ze="",Xe="";q<De;){if(v=i.charCodeAt(q),q===Be&&d+f+h+c!==0&&(0!==d&&(v=d===J?j:J),f=h=c=0,De++,Be++),d+f+h+c===0){if(q===Be&&(be>0&&(Ke=Ke.replace(r,"")),Ke.trim().length>0)){switch(v){case V:case W:case O:case B:case j:break;default:Ke+=i.charAt(q)}v=O}if(1===xe)switch(v){case I:case A:case O:case X:case Z:case P:case R:case G:xe=0;case W:case B:case j:case V:break;default:for(xe=0,Me=q,_=v,q--,v=O;Me<De;)switch(i.charCodeAt(Me++)){case j:case B:case O:++q,v=_,Me=De;break;case $:be>0&&(++q,v=_);case I:Me=De}}switch(v){case I:for(_=(Ke=Ke.trim()).charCodeAt(0),L=1,Me=++q;q<De;){switch(v=i.charCodeAt(q)){case I:L++;break;case A:L--;break;case J:switch(y=i.charCodeAt(q+1)){case K:case J:q=Ue(y,q,Be,i)}break;case F:v++;case P:v++;case X:case Z:for(;q++<Be&&i.charCodeAt(q)!==v;);}if(0===L)break;q++}switch(Ge=i.substring(Me,q),_===ne&&(_=(Ke=Ke.replace(n,"").trim()).charCodeAt(0)),_){case H:switch(be>0&&(Ke=Ke.replace(r,"")),y=Ke.charCodeAt(1)){case he:case se:case ae:case U:a=t;break;default:a=Se}if(Me=(Ge=Ye(t,a,Ge,y,s+1)).length,Ce>0&&0===Me&&(Me=Ke.length),Le>0&&(a=je(Se,Ke,ke),u=ze(Oe,Ge,a,t,ge,pe,Me,y,s,o),Ke=a.join(""),void 0!==u&&0===(Me=(Ge=u.trim()).length)&&(y=0,Ge="")),Me>0)switch(y){case ae:Ke=Ke.replace(S,Ve);case he:case se:case U:Ge=Ke+"{"+Ge+"}";break;case oe:Ge=(Ke=Ke.replace(p,"$1 $2"+(Ie>0?Pe:"")))+"{"+Ge+"}",Ge=1===ye||2===ye&&He("@"+Ge,3)?"@"+E+Ge+"@"+Ge:"@"+Ge;break;default:Ge=Ke+Ge,o===fe&&($e+=Ge,Ge="")}else Ge="";break;default:Ge=Ye(t,je(t,Ke,ke),Ge,o,s+1)}Ze+=Ge,k=0,xe=0,D=0,be=0,ke=0,M=0,Ke="",Ge="",v=i.charCodeAt(++q);break;case A:case O:if((Me=(Ke=(be>0?Ke.replace(r,""):Ke).trim()).length)>1)switch(0===D&&((_=Ke.charCodeAt(0))===U||_>96&&_<123)&&(Me=(Ke=Ke.replace(" ",":")).length),Le>0&&void 0!==(u=ze(Te,Ke,t,e,ge,pe,$e.length,o,s,o))&&0===(Me=(Ke=u.trim()).length)&&(Ke="\0\0"),_=Ke.charCodeAt(0),y=Ke.charCodeAt(1),_){case ne:break;case H:if(y===ce||y===de){Xe+=Ke+i.charAt(q);break}default:if(Ke.charCodeAt(Me-1)===$)break;$e+=We(Ke,_,y,Ke.charCodeAt(2))}k=0,xe=0,D=0,be=0,ke=0,Ke="",v=i.charCodeAt(++q)}}switch(v){case B:case j:if(d+f+h+c+we===0)switch(x){case R:case Z:case X:case H:case te:case Q:case K:case ee:case J:case U:case $:case G:case O:case I:case A:break;default:D>0&&(xe=1)}d===J?d=0:_e+k===0&&o!==oe&&Ke.length>0&&(be=1,Ke+="\0"),Le*Ae>0&&ze(Ee,Ke,t,e,ge,pe,$e.length,o,s,o),pe=1,ge++;break;case O:case A:if(d+f+h+c===0){pe++;break}default:switch(pe++,qe=i.charAt(q),v){case W:case V:if(f+c+d===0)switch(b){case G:case $:case W:case V:qe="";break;default:v!==V&&(qe=" ")}break;case ne:qe="\\0";break;case re:qe="\\f";break;case ie:qe="\\v";break;case z:f+d+c===0&&_e>0&&(ke=1,be=1,qe="\f"+qe);break;case 108:if(f+d+c+me===0&&D>0)switch(q-D){case 2:b===ue&&i.charCodeAt(q-3)===$&&(me=b);case 8:C===le&&(me=C)}break;case $:f+d+c===0&&(D=q);break;case G:d+h+f+c===0&&(be=1,qe+="\r");break;case X:case Z:0===d&&(f=f===v?0:0===f?v:f);break;case F:f+d+h===0&&c++;break;case Y:f+d+h===0&&c--;break;case R:f+d+c===0&&h--;break;case P:if(f+d+c===0){if(0===k)switch(2*b+3*C){case 533:break;default:L=0,k=1}h++}break;case H:d+h+f+c+D+M===0&&(M=1);break;case K:case J:if(f+c+h>0)break;switch(d){case 0:switch(2*v+3*i.charCodeAt(q+1)){case 235:d=J;break;case 220:Me=q,d=K}break;case K:v===J&&b===K&&Me+2!==q&&(33===i.charCodeAt(Me+2)&&($e+=i.substring(Me,q+1)),qe="",d=0)}}if(0===d){if(_e+f+c+M===0&&o!==oe&&v!==O)switch(v){case G:case te:case Q:case ee:case R:case P:if(0===k){switch(b){case W:case V:case j:case B:qe+="\0";break;default:qe="\0"+qe+(v===G?"":"\0")}be=1}else switch(v){case P:D+7===q&&108===b&&(D=0),k=++L;break;case R:0==(k=--L)&&(be=1,qe+="\0")}break;case W:case V:switch(b){case ne:case I:case A:case O:case G:case re:case W:case V:case j:case B:break;default:0===k&&(be=1,qe+="\0")}}Ke+=qe,v!==V&&v!==W&&(x=v)}}C=b,b=v,q++}if(Me=$e.length,Ce>0&&0===Me&&0===Ze.length&&0===t[0].length==0&&(o!==se||1===t.length&&(_e>0?Re:Fe)===t[0])&&(Me=t.join(",").length+2),Me>0){if(a=0===_e&&o!==oe?function(e){for(var t,n,i=0,o=e.length,s=Array(o);i<o;++i){for(var a=e[i].split(l),u="",c=0,d=0,h=0,f=0,p=a.length;c<p;++c)if(!(0===(d=(n=a[c]).length)&&p>1)){if(h=u.charCodeAt(u.length-1),f=n.charCodeAt(0),t="",0!==c)switch(h){case K:case te:case Q:case ee:case V:case P:break;default:t=" "}switch(f){case z:n=t+Re;case te:case Q:case ee:case V:case R:case P:break;case F:n=t+n+Re;break;case $:switch(2*n.charCodeAt(1)+3*n.charCodeAt(2)){case 530:if(ve>0){n=t+n.substring(8,d-1);break}default:(c<1||a[c-1].length<1)&&(n=t+Re+n)}break;case G:t="";default:n=d>1&&n.indexOf(":")>0?t+n.replace(w,"$1"+Re+"$2"):t+n+Re}u+=n}s[i]=u.replace(r,"").trim()}return s}(t):t,Le>0&&void 0!==(u=ze(Ne,$e,a,e,ge,pe,Me,o,s,o))&&0===($e=u).length)return Xe+$e+Ze;if($e=a.join(",")+"{"+$e+"}",ye*me!=0){switch(2!==ye||He($e,2)||(me=0),me){case le:$e=$e.replace(m,":"+T+"$1")+$e;break;case ue:$e=$e.replace(g,"::"+E+"input-$1")+$e.replace(g,"::"+T+"$1")+$e.replace(g,":"+N+"input-$1")+$e}me=0}}return Xe+$e+Ze}function je(e,t,n){var r=t.trim().split(c),i=r,o=r.length,s=e.length;switch(s){case 0:case 1:for(var a=0,u=0===s?"":e[0]+" ";a<o;++a)i[a]=Be(u,i[a],n,s).trim();break;default:a=0;var l=0;for(i=[];a<o;++a)for(var d=0;d<s;++d)i[l++]=Be(e[d]+" ",r[a],n,s).trim()}return i}function Be(e,t,n,r){var i=t,o=i.charCodeAt(0);switch(o<33&&(o=(i=i.trim()).charCodeAt(0)),o){case z:switch(_e+r){case 0:case 1:if(0===e.trim().length)break;default:return i.replace(d,"$1"+e.trim())}break;case $:switch(i.charCodeAt(1)){case 103:if(ve>0&&_e>0)return i.replace(h,"$1").replace(d,"$1"+Fe);break;default:return e.trim()+i.replace(d,"$1"+e.trim())}default:if(n*_e>0&&i.indexOf("\f")>0)return i.replace(d,(e.charCodeAt(0)===$?"":"$1")+e.trim())}return e+i}function We(e,t,n,r){var l,c=0,d=e+";",h=2*t+3*n+4*r;if(944===h)return function(e){var t=e.length,n=e.indexOf(":",9)+1,r=e.substring(0,n).trim(),i=e.substring(n,t-1).trim();switch(e.charCodeAt(9)*Ie){case 0:break;case U:if(110!==e.charCodeAt(10))break;default:var o=i.split((i="",a)),s=0;for(n=0,t=o.length;s<t;n=0,++s){for(var l=o[s],c=l.split(u);l=c[n];){var d=l.charCodeAt(0);if(1===Ie&&(d>H&&d<90||d>96&&d<123||d===q||d===U&&l.charCodeAt(1)!==U))switch(isNaN(parseFloat(l))+(-1!==l.indexOf("("))){case 1:switch(l){case"infinite":case"alternate":case"backwards":case"running":case"normal":case"forwards":case"both":case"none":case"linear":case"ease":case"ease-in":case"ease-out":case"ease-in-out":case"paused":case"reverse":case"alternate-reverse":case"inherit":case"initial":case"unset":case"step-start":case"step-end":break;default:l+=Pe}}c[n++]=l}i+=(0===s?"":",")+c.join(" ")}}return i=r+i+";",1===ye||2===ye&&He(i,1)?E+i+i:i}(d);if(0===ye||2===ye&&!He(d,1))return d;switch(h){case 1015:return 97===d.charCodeAt(10)?E+d+d:d;case 951:return 116===d.charCodeAt(3)?E+d+d:d;case 963:return 110===d.charCodeAt(5)?E+d+d:d;case 1009:if(100!==d.charCodeAt(4))break;case 969:case 942:return E+d+d;case 978:return E+d+T+d+d;case 1019:case 983:return E+d+T+d+N+d+d;case 883:return d.charCodeAt(8)===U?E+d+d:d.indexOf("image-set(",11)>0?d.replace(D,"$1"+E+"$2")+d:d;case 932:if(d.charCodeAt(4)===U)switch(d.charCodeAt(5)){case 103:return E+"box-"+d.replace("-grow","")+E+d+N+d.replace("grow","positive")+d;case 115:return E+d+N+d.replace("shrink","negative")+d;case 98:return E+d+N+d.replace("basis","preferred-size")+d}return E+d+N+d+d;case 964:return E+d+N+"flex-"+d+d;case 1023:if(99!==d.charCodeAt(8))break;return l=d.substring(d.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),E+"box-pack"+l+E+d+N+"flex-pack"+l+d;case 1005:return o.test(d)?d.replace(i,":"+E)+d.replace(i,":"+T)+d:d;case 1e3:switch(c=(l=d.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(c)){case 226:l=d.replace(C,"tb");break;case 232:l=d.replace(C,"tb-rl");break;case 220:l=d.replace(C,"lr");break;default:return d}return E+d+N+l+d;case 1017:if(-1===d.indexOf("sticky",9))return d;case 975:switch(c=(d=e).length-10,h=(l=(33===d.charCodeAt(c)?d.substring(0,c):d).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(l.charCodeAt(8)<111)break;case 115:d=d.replace(l,E+l)+";"+d;break;case 207:case 102:d=d.replace(l,E+(h>102?"inline-":"")+"box")+";"+d.replace(l,E+l)+";"+d.replace(l,N+l+"box")+";"+d}return d+";";case 938:if(d.charCodeAt(5)===U)switch(d.charCodeAt(6)){case 105:return l=d.replace("-items",""),E+d+E+"box-"+l+N+"flex-"+l+d;case 115:return E+d+N+"flex-item-"+d.replace(L,"")+d;default:return E+d+N+"flex-line-pack"+d.replace("align-content","").replace(L,"")+d}break;case 973:case 989:if(d.charCodeAt(3)!==U||122===d.charCodeAt(4))break;case 931:case 953:if(!0===M.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?We(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):d.replace(l,E+l)+d.replace(l,T+l.replace("fill-",""))+d;break;case 962:if(d=E+d+(102===d.charCodeAt(5)?N+d:"")+d,n+r===211&&105===d.charCodeAt(13)&&d.indexOf("transform",10)>0)return d.substring(0,d.indexOf(";",27)+1).replace(s,"$1"+E+"$2")+d}return d}function He(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10),i=e.substring(n+1,e.length-1);return ke(2!==t?r:r.replace(k,"$1"),i,t)}function Ve(e,t){var n=We(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(x," or ($1)").substring(4):"("+t+")"}function ze(e,t,n,r,i,o,s,a,u,l){for(var c,d=0,h=t;d<Le;++d)switch(c=xe[d].call(Ke,e,h,n,r,i,o,s,a,u,l)){case void 0:case!1:case!0:case null:break;default:h=c}if(h!==t)return h}function Ue(e,t,n,r){for(var i=t+1;i<n;++i)switch(r.charCodeAt(i)){case J:if(e===K&&r.charCodeAt(i-1)===K&&t+2!==i)return i+1;break;case j:if(e===J)return i+1}return i}function qe(e){for(var t in e){var n=e[t];switch(t){case"keyframe":Ie=0|n;break;case"global":ve=0|n;break;case"cascade":_e=0|n;break;case"compress":be=0|n;break;case"semicolon":we=0|n;break;case"preserve":Ce=0|n;break;case"prefix":ke=null,n?"function"!=typeof n?ye=1:(ye=2,ke=n):ye=0}}return qe}function Ke(t,n){if(void 0!==this&&this.constructor===Ke)return e(t);var i=t,o=i.charCodeAt(0);o<33&&(o=(i=i.trim()).charCodeAt(0)),Ie>0&&(Pe=i.replace(f,o===F?"":"-")),o=1,1===_e?Fe=i:Re=i;var s,a=[Fe];Le>0&&void 0!==(s=ze(De,n,a,a,ge,pe,0,0,0,0))&&"string"==typeof s&&(n=s);var u=Ye(Se,a,n,0,0);return Le>0&&void 0!==(s=ze(Me,u,a,a,ge,pe,u.length,0,0,0))&&"string"!=typeof(u=s)&&(o=0),Pe="",Fe="",Re="",me=0,ge=1,pe=1,be*o==0?u:function(e){return e.replace(r,"").replace(_,"").replace(y,"$1").replace(v,"$1").replace(b," ")}(u)}return Ke.use=function e(t){switch(t){case void 0:case null:Le=xe.length=0;break;default:if("function"==typeof t)xe[Le++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else Ae=0|!!t}return e},Ke.set=qe,void 0!==t&&qe(t),Ke}(null)},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){var r={"./af":189,"./af.js":189,"./ar":190,"./ar-dz":191,"./ar-dz.js":191,"./ar-kw":192,"./ar-kw.js":192,"./ar-ly":193,"./ar-ly.js":193,"./ar-ma":194,"./ar-ma.js":194,"./ar-sa":195,"./ar-sa.js":195,"./ar-tn":196,"./ar-tn.js":196,"./ar.js":190,"./az":197,"./az.js":197,"./be":198,"./be.js":198,"./bg":199,"./bg.js":199,"./bm":200,"./bm.js":200,"./bn":201,"./bn.js":201,"./bo":202,"./bo.js":202,"./br":203,"./br.js":203,"./bs":204,"./bs.js":204,"./ca":205,"./ca.js":205,"./cs":206,"./cs.js":206,"./cv":207,"./cv.js":207,"./cy":208,"./cy.js":208,"./da":209,"./da.js":209,"./de":210,"./de-at":211,"./de-at.js":211,"./de-ch":212,"./de-ch.js":212,"./de.js":210,"./dv":213,"./dv.js":213,"./el":214,"./el.js":214,"./en-SG":215,"./en-SG.js":215,"./en-au":216,"./en-au.js":216,"./en-ca":217,"./en-ca.js":217,"./en-gb":218,"./en-gb.js":218,"./en-ie":219,"./en-ie.js":219,"./en-il":220,"./en-il.js":220,"./en-nz":221,"./en-nz.js":221,"./eo":222,"./eo.js":222,"./es":223,"./es-do":224,"./es-do.js":224,"./es-us":225,"./es-us.js":225,"./es.js":223,"./et":226,"./et.js":226,"./eu":227,"./eu.js":227,"./fa":228,"./fa.js":228,"./fi":229,"./fi.js":229,"./fo":230,"./fo.js":230,"./fr":231,"./fr-ca":232,"./fr-ca.js":232,"./fr-ch":233,"./fr-ch.js":233,"./fr.js":231,"./fy":234,"./fy.js":234,"./ga":235,"./ga.js":235,"./gd":236,"./gd.js":236,"./gl":237,"./gl.js":237,"./gom-latn":238,"./gom-latn.js":238,"./gu":239,"./gu.js":239,"./he":240,"./he.js":240,"./hi":241,"./hi.js":241,"./hr":242,"./hr.js":242,"./hu":243,"./hu.js":243,"./hy-am":244,"./hy-am.js":244,"./id":245,"./id.js":245,"./is":246,"./is.js":246,"./it":247,"./it-ch":248,"./it-ch.js":248,"./it.js":247,"./ja":249,"./ja.js":249,"./jv":250,"./jv.js":250,"./ka":251,"./ka.js":251,"./kk":252,"./kk.js":252,"./km":253,"./km.js":253,"./kn":254,"./kn.js":254,"./ko":255,"./ko.js":255,"./ku":256,"./ku.js":256,"./ky":257,"./ky.js":257,"./lb":258,"./lb.js":258,"./lo":259,"./lo.js":259,"./lt":260,"./lt.js":260,"./lv":261,"./lv.js":261,"./me":262,"./me.js":262,"./mi":263,"./mi.js":263,"./mk":264,"./mk.js":264,"./ml":265,"./ml.js":265,"./mn":266,"./mn.js":266,"./mr":267,"./mr.js":267,"./ms":268,"./ms-my":269,"./ms-my.js":269,"./ms.js":268,"./mt":270,"./mt.js":270,"./my":271,"./my.js":271,"./nb":272,"./nb.js":272,"./ne":273,"./ne.js":273,"./nl":274,"./nl-be":275,"./nl-be.js":275,"./nl.js":274,"./nn":276,"./nn.js":276,"./pa-in":277,"./pa-in.js":277,"./pl":278,"./pl.js":278,"./pt":279,"./pt-br":280,"./pt-br.js":280,"./pt.js":279,"./ro":281,"./ro.js":281,"./ru":282,"./ru.js":282,"./sd":283,"./sd.js":283,"./se":284,"./se.js":284,"./si":285,"./si.js":285,"./sk":286,"./sk.js":286,"./sl":287,"./sl.js":287,"./sq":288,"./sq.js":288,"./sr":289,"./sr-cyrl":290,"./sr-cyrl.js":290,"./sr.js":289,"./ss":291,"./ss.js":291,"./sv":292,"./sv.js":292,"./sw":293,"./sw.js":293,"./ta":294,"./ta.js":294,"./te":295,"./te.js":295,"./tet":296,"./tet.js":296,"./tg":297,"./tg.js":297,"./th":298,"./th.js":298,"./tl-ph":299,"./tl-ph.js":299,"./tlh":300,"./tlh.js":300,"./tr":301,"./tr.js":301,"./tzl":302,"./tzl.js":302,"./tzm":303,"./tzm-latn":304,"./tzm-latn.js":304,"./tzm.js":303,"./ug-cn":305,"./ug-cn.js":305,"./uk":306,"./uk.js":306,"./ur":307,"./ur.js":307,"./uz":308,"./uz-latn":309,"./uz-latn.js":309,"./uz.js":308,"./vi":310,"./vi.js":310,"./x-pseudo":311,"./x-pseudo.js":311,"./yo":312,"./yo.js":312,"./zh-cn":313,"./zh-cn.js":313,"./zh-hk":314,"./zh-hk.js":314,"./zh-tw":315,"./zh-tw.js":315};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=611},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"win32",(function(){return fs})),n.d(r,"posix",(function(){return ps})),n.d(r,"normalize",(function(){return gs})),n.d(r,"join",(function(){return ms})),n.d(r,"relative",(function(){return _s})),n.d(r,"dirname",(function(){return ys})),n.d(r,"basename",(function(){return vs})),n.d(r,"extname",(function(){return bs})),n.d(r,"sep",(function(){return ws}));var i={};function o(){}n.r(i),n.d(i,"CancellationTokenSource",(function(){return aA})),n.d(i,"Emitter",(function(){return uA})),n.d(i,"KeyCode",(function(){return lA})),n.d(i,"KeyMod",(function(){return cA})),n.d(i,"Position",(function(){return dA})),n.d(i,"Range",(function(){return hA})),n.d(i,"Selection",(function(){return fA})),n.d(i,"SelectionDirection",(function(){return pA})),n.d(i,"MarkerSeverity",(function(){return gA})),n.d(i,"MarkerTag",(function(){return mA})),n.d(i,"Uri",(function(){return _A})),n.d(i,"Token",(function(){return yA})),n.d(i,"editor",(function(){return vA})),n.d(i,"languages",(function(){return bA}));function s(e){return e()}function a(){return Object.create(null)}function u(e){e.forEach(s)}function l(e){return"function"==typeof e}function c(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function d(e,t){const n=e.subscribe(t);return n.unsubscribe?()=>n.unsubscribe():n}function h(e){let t;return d(e,e=>t=e)(),t}function f(e,t,n,r){if(e){const i=p(e,t,n,r);return e[0](i)}}function p(e,t,n,r){return e[1]&&r?function(e,t){for(const n in t)e[n]=t[n];return e}(n.ctx.slice(),e[1](r(t))):n.ctx}function g(e,t,n,r){return e[2]&&r?t.dirty|e[2](r(n)):t.dirty}function m(e){return null==e?"":e}new Set;function _(e,t){e.appendChild(t)}function y(e,t,n){e.insertBefore(t,n||null)}function v(e){e.parentNode.removeChild(e)}function b(e){return document.createElement(e)}function w(e){return document.createTextNode(e)}function C(){return w(" ")}function S(){return w("")}function x(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function L(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function k(e){return""===e?void 0:+e}function M(e,t){t=""+t,e.data!==t&&(e.data=t)}function D(e,t){(null!=t||e.value)&&(e.value=t)}function E(e,t){const n=document.createEvent("CustomEvent");return n.initCustomEvent(e,!1,!1,t),n}let T;function N(e){T=e}function O(){if(!T)throw new Error("Function called outside component initialization");return T}function A(e){O().$$.on_mount.push(e)}const I=[],P=[],R=[],F=[],Y=Promise.resolve();let j=!1;function B(){j||(j=!0,Y.then(H))}function W(e){R.push(e)}function H(){const e=new Set;do{for(;I.length;){const e=I.shift();N(e),V(e.$$)}for(;P.length;)P.pop()();for(let t=0;t<R.length;t+=1){const n=R[t];e.has(n)||(n(),e.add(n))}R.length=0}while(I.length);for(;F.length;)F.pop()();j=!1}function V(e){null!==e.fragment&&(e.update(),u(e.before_update),e.fragment&&e.fragment.p(e.ctx,e.dirty),e.dirty=[-1],e.after_update.forEach(W))}const z=new Set;let U;function q(){U={r:0,c:[],p:U}}function K(){U.r||u(U.c),U=U.p}function G(e,t){e&&e.i&&(z.delete(e),e.i(t))}function $(e,t,n,r){if(e&&e.o){if(z.has(e))return;z.add(e),U.c.push(()=>{z.delete(e),r&&(n&&e.d(1),r())}),e.o(t)}}"undefined"!=typeof window?window:global;new Set(["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"]);let Z;function X(e){e&&e.c()}function J(e,t,n){const{fragment:r,on_mount:i,on_destroy:o,after_update:a}=e.$$;r&&r.m(t,n),W(()=>{const t=i.map(s).filter(l);o?o.push(...t):u(t),e.$$.on_mount=[]}),a.forEach(W)}function Q(e,t){const n=e.$$;null!==n.fragment&&(u(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function ee(e,t,n,r,i,s,l=[-1]){const c=T;N(e);const d=t.props||{},h=e.$$={fragment:null,ctx:null,props:s,update:o,not_equal:i,bound:a(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(c?c.$$.context:[]),callbacks:a(),dirty:l};let f=!1;var p;h.ctx=n?n(e,d,(t,n,r=n)=>(h.ctx&&i(h.ctx[t],h.ctx[t]=r)&&(h.bound[t]&&h.bound[t](r),f&&function(e,t){-1===e.$$.dirty[0]&&(I.push(e),B(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}(e,t)),n)):[],h.update(),f=!0,u(h.before_update),h.fragment=!!r&&r(h.ctx),t.target&&(t.hydrate?h.fragment&&h.fragment.l((p=t.target,Array.from(p.childNodes))):h.fragment&&h.fragment.c(),t.intro&&G(e.$$.fragment),J(e,t.target,t.anchor),H()),N(c)}"function"==typeof HTMLElement&&(Z=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}$destroy(){Q(this,1),this.$destroy=o}$on(e,t){const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(){}});class te{$destroy(){Q(this,1),this.$destroy=o}$on(e,t){const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(){}}const ne=[];function re(e,t){return{subscribe:ie(e,t).subscribe}}function ie(e,t=o){let n;const r=[];function i(t){if(c(e,t)&&(e=t,n)){const t=!ne.length;for(let t=0;t<r.length;t+=1){const n=r[t];n[1](),ne.push(n,e)}if(t){for(let e=0;e<ne.length;e+=2)ne[e][0](ne[e+1]);ne.length=0}}}return{set:i,update:function(t){i(t(e))},subscribe:function(s,a=o){const u=[s,a];return r.push(u),1===r.length&&(n=t(i)||o),s(e),()=>{const e=r.indexOf(u);-1!==e&&r.splice(e,1),0===r.length&&(n(),n=null)}}}}function oe(e,t,n){const r=!Array.isArray(e),i=r?[e]:e,s=t.length<2;return re(n,e=>{let n=!1;const a=[];let c=0,d=o;const h=()=>{if(c)return;d();const n=t(r?a[0]:a,e);s?e(n):d=l(n)?n:o},f=i.map((e,t)=>e.subscribe(e=>{a[t]=e,c&=~(1<<t),n&&h()},()=>{c|=1<<t}));return n=!0,h(),function(){u(f),d()}})}var se=function(e,t){if(e instanceof RegExp)return{keys:!1,pattern:e};var n,r,i,o,s=[],a="",u=e.split("/");for(u[0]||u.shift();i=u.shift();)"*"===(n=i[0])?(s.push("wild"),a+="/(.*)"):":"===n?(r=i.indexOf("?",1),o=i.indexOf(".",1),s.push(i.substring(1,~r?r:~o?o:i.length)),a+=~r&&!~o?"(?:/([^/]+?))?":"/([^/]+?)",~o&&(a+=(~r?"?":"")+"\\"+i.substring(o))):a+="/"+i;return{keys:s,pattern:new RegExp("^"+a+(t?"(?=$|/)":"/?$"),"i")}};function ae(e){let t,n;var r=e[0];function i(e){return{props:{params:e[1]}}}if(r)var o=new r(i(e));return{c(){o&&X(o.$$.fragment),t=S()},m(e,r){o&&J(o,e,r),y(e,t,r),n=!0},p(e,[n]){const s={};if(2&n&&(s.params=e[1]),r!==(r=e[0])){if(o){q();const e=o;$(e.$$.fragment,1,0,()=>{Q(e,1)}),K()}r?(X((o=new r(i(e))).$$.fragment),G(o.$$.fragment,1),J(o,t.parentNode,t)):o=null}else r&&o.$set(s)},i(e){n||(o&&G(o.$$.fragment,e),n=!0)},o(e){o&&$(o.$$.fragment,e),n=!1},d(e){e&&v(t),o&&Q(o,e)}}}function ue(){const e=window.location.href.indexOf("#/");let t=e>-1?window.location.href.substr(e+1):"/";const n=t.indexOf("?");let r="";return n>-1&&(r=t.substr(n+1),t=t.substr(0,n)),{location:t,querystring:r}}const le=re(ue(),(function(e){const t=()=>{e(ue())};return window.addEventListener("hashchange",t,!1),function(){window.removeEventListener("hashchange",t,!1)}}));oe(le,e=>e.location),oe(le,e=>e.querystring);function ce(e){if(!e||e.length<1||"/"!=e.charAt(0)&&0!==e.indexOf("#/"))throw Error("Invalid parameter location");setTimeout(()=>{const t=("#"==e.charAt(0)?"":"#")+e;history.replaceState(void 0,void 0,t),window.dispatchEvent(new Event("hashchange"))},0)}function de(e){if(!e||!e.tagName||"a"!=e.tagName.toLowerCase())throw Error('Action "link" can only be used with <a> tags');const t=e.getAttribute("href");if(!t||t.length<1||"/"!=t.charAt(0))throw Error('Invalid value for "href" attribute');e.setAttribute("href","#"+t)}function he(e,t,n){let r,i=o;!function(e,t,n){e.$$.on_destroy.push(d(t,n))}(e,le,e=>n(3,r=e)),e.$$.on_destroy.push(()=>i());let{routes:s={}}=t;class a{constructor(e,t){if(!t||"function"!=typeof t&&("object"!=typeof t||!0!==t._sveltesparouter))throw Error("Invalid component object");if(!e||"string"==typeof e&&(e.length<1||"/"!=e.charAt(0)&&"*"!=e.charAt(0))||"object"==typeof e&&!(e instanceof RegExp))throw Error('Invalid value for "path" argument');const{pattern:n,keys:r}=se(e);this.path=e,"object"==typeof t&&!0===t._sveltesparouter?(this.component=t.route,this.conditions=t.conditions||[]):(this.component=t,this.conditions=[]),this._pattern=n,this._keys=r}match(e){const t=this._pattern.exec(e);if(null===t)return null;if(!1===this._keys)return t;const n={};let r=0;for(;r<this._keys.length;)n[this._keys[r]]=t[++r]||null;return n}checkConditions(e,t){for(let n=0;n<this.conditions.length;n++)if(!this.conditions[n](e,t))return!1;return!0}}const u=s instanceof Map?s:Object.entries(s),l=[];for(const[e,t]of u)l.push(new a(e,t));let c=null,h={};const f=function(){const e=O();return(t,n)=>{const r=e.$$.callbacks[t];if(r){const i=E(t,n);r.slice().forEach(t=>{t.call(e,i)})}}}(),p=(e,t)=>{setTimeout(()=>{f(e,t)},0)};return e.$set=e=>{"routes"in e&&n(2,s=e.routes)},e.$$.update=()=>{if(9&e.$$.dirty){n(0,c=null);let e=0;for(;!c&&e<l.length;){const t=l[e].match(r.location);if(t){const i={component:l[e].component.name,location:r.location,querystring:r.querystring};if(!l[e].checkConditions(r.location,r.querystring)){p("conditionsFailed",i);break}n(0,c=l[e].component),n(1,h=t),p("routeLoaded",i)}e++}}},[c,h,s]}var fe=class extends te{constructor(e){super(),ee(this,e,he,ae,c,{routes:2})}},pe=n(17);const ge={code:"graph TD\nA[Christmas] --\x3e|Get money| B(Go shopping)\nB --\x3e C{Let me think}\nC --\x3e|One| D[Laptop]\nC --\x3e|Two| E[iPhone]\nC --\x3e|Three| F[fa:fa-car Car]\n ",mermaid:{theme:window.matchMedia("(prefers-color-scheme: dark)").matches&&!1?"dark":"default"}},me=ie(ge),_e=e=>{let t;try{const n=pe.Base64.decode(e);console.log("state from url",n),t=JSON.parse(n)}catch(e){console.error("Init error",e),t=ge}me.set(t)},ye=e=>{me.set(e),ce("/edit/"+pe.Base64.encodeURI(JSON.stringify(e)))},ve=(e,t)=>{const n=h(me);n.code=e,n.updateEditor=t,me.set(n)},be=e=>{const t=h(me);t.mermaid=e,me.set(t)},we=(me.subscribe(e=>{ce("/edit/"+pe.Base64.encodeURI(JSON.stringify(e)))}),ie(void 0));var Ce=n(29),Se=n.n(Ce);n(320);function xe(e){let t,n,r;return{c(){t=b("div"),n=w(e[1]),L(t,"id","error"),L(t,"class",r=m(e[0])+" svelte-1af9dx4")},m(e,r){y(e,t,r),_(t,n)},p(e,[i]){2&i&&M(n,e[1]),1&i&&r!==(r=m(e[0])+" svelte-1af9dx4")&&L(t,"class",r)},i:o,o:o,d(e){e&&v(t)}}}function Le(e,t,n){A(async()=>{});let{classes:r=""}=t,{errorText:i=""}=t;return e.$set=e=>{"classes"in e&&n(0,r=e.classes),"errorText"in e&&n(1,i=e.errorText)},[r,i]}var ke=class extends te{constructor(e){super(),ee(this,e,Le,xe,c,{classes:0,errorText:1})}};const Me=e=>{e.languages.register({id:"mermaid"}),e.languages.setMonarchTokensProvider("mermaid",{typeKeywords:["graph","stateDiagram","sequenceDiagram","classDiagram","pie","flowchart","gantt"],keywords:["patricipant","as"],arrows:["---","===","--\x3e","==>"],tokenizer:{root:[[/[{}]/,"delimiter.bracket"],[/[a-z_$][\w$]*/,{cases:{"@typeKeywords":"keyword","@keywords":"keyword"}}],[/[-=>ox]+/,{cases:{"@arrows":"transition"}}],[/[\[\{\(}]+.+?[\)\]\}]+/,"string"],[/\".*\"/,"string"]]},whitespace:[[/[ \t\r\n]+/,"white"],[/\%\%.*$/,"comment"]]}),e.editor.defineTheme("myCoolTheme",{base:"vs",inherit:!1,rules:[{token:"keyword",foreground:"880000",fontStyle:"bold"},{token:"custom-error",foreground:"ff0000",fontStyle:"bold"},{token:"string",foreground:"AA8500"},{token:"transition",foreground:"008800",fontStyle:"bold"},{token:"delimiter.bracket",foreground:"000000",fontStyle:"bold"}]}),e.languages.registerCompletionItemProvider("mermaid",{provideCompletionItems:()=>{return{suggestions:[{label:"simpleText",kind:e.languages.CompletionItemKind.Text,insertText:"simpleText"},{label:"testing",kind:e.languages.CompletionItemKind.Keyword,insertText:"testing(${1:condition})",insertTextRules:e.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"ifelse",kind:e.languages.CompletionItemKind.Snippet,insertText:["if (${1:condition}) {","\t$0","} else {","\t","}"].join("\n"),insertTextRules:e.languages.CompletionItemInsertTextRule.InsertAsSnippet,documentation:"If-Else Statement"}]}}})},De=e=>t=>e&&e.layout();function Ee(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(e,t){return 0===t.length?e:e.replace(/\{(\d+)\}/g,(function(e,n){var r=n[0];return void 0!==t[r]?t[r]:e}))}(t,n)}var Te={number:"number",string:"string",undefined:"undefined",object:"object",function:"function"};function Ne(e){return typeof e===Te.string||e instanceof String}function Oe(e){return!(typeof e!==Te.object||null===e||Array.isArray(e)||e instanceof RegExp||e instanceof Date)}function Ae(e){return(typeof e===Te.number||e instanceof Number)&&!isNaN(e)}function Ie(e){return!0===e||!1===e}function Pe(e){return typeof e===Te.undefined}function Re(e){return Pe(e)||null===e}var Fe=Object.prototype.hasOwnProperty;function Ye(e){if(!Oe(e))return!1;for(var t in e)if(Fe.call(e,t))return!1;return!0}function je(e){return typeof e===Te.function}function Be(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++)We(e[r],t[r])}function We(e,t){if(Ne(t)){if(typeof e!==t)throw new Error("argument does not match constraint: typeof "+t)}else if(je(t)){try{if(e instanceof t)return}catch(e){}if(!Re(e)&&e.constructor===t)return;if(1===t.length&&!0===t.call(void 0,e))return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function He(e){for(var t=[],n=0,r=function(e){for(var t=[],n=Object.getPrototypeOf(e);Object.prototype!==n;)t=t.concat(Object.getOwnPropertyNames(n)),n=Object.getPrototypeOf(n);return t}(e);n<r.length;n++){var i=r[n];"function"==typeof e[i]&&t.push(i)}return t}function Ve(e,t){for(var n=function(e){return function(){var n=Array.prototype.slice.call(arguments,0);return t(e,n)}},r={},i=0,o=e;i<o.length;i++){var s=o[i];r[s]=n(s)}return r}function ze(e){return null===e?void 0:e}function Ue(e){return void 0===e?null:e}var qe=new(function(){function e(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout((function(){if(e.stack)throw new Error(e.message+"\n\n"+e.stack);throw e}),0)}}return e.prototype.emit=function(e){this.listeners.forEach((function(t){t(e)}))},e.prototype.onUnexpectedError=function(e){this.unexpectedErrorHandler(e),this.emit(e)},e.prototype.onUnexpectedExternalError=function(e){this.unexpectedErrorHandler(e)},e}());function Ke(e){Ze(e)||qe.onUnexpectedError(e)}function Ge(e){return e instanceof Error?{$isError:!0,name:e.name,message:e.message,stack:e.stacktrace||e.stack}:e}var $e="Canceled";function Ze(e){return e instanceof Error&&e.name===$e&&e.message===$e}function Xe(){var e=new Error($e);return e.name=e.message,e}function Je(e){return e?new Error("Illegal argument: "+e):new Error("Illegal argument")}function Qe(e){return e?new Error("Illegal state: "+e):new Error("Illegal state")}var et,tt,nt=n(1),rt=(et=function(e,t){return(et=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}et(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),it=/^\w[\w\d+.-]*$/,ot=/^\//,st=/^\/\//,at=!0;var ut,lt="",ct="/",dt=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,ht=function(){function e(e,t,n,r,i,o){void 0===o&&(o=!1),"object"==typeof e?(this.scheme=e.scheme||lt,this.authority=e.authority||lt,this.path=e.path||lt,this.query=e.query||lt,this.fragment=e.fragment||lt):(this.scheme=function(e,t){return t||at?e||lt:(e||(console.trace("BAD uri lacks scheme, falling back to file-scheme."),e="file"),e)}(e,o),this.authority=t||lt,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==ct&&(t=ct+t):t=ct}return t}(this.scheme,n||lt),this.query=r||lt,this.fragment=i||lt,function(e,t){if(!e.scheme){if(t||at)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+e.authority+'", path: "'+e.path+'", query: "'+e.query+'", fragment: "'+e.fragment+'"}');console.warn('[UriError]: Scheme is missing: {scheme: "", authority: "'+e.authority+'", path: "'+e.path+'", query: "'+e.query+'", fragment: "'+e.fragment+'"}')}if(e.scheme&&!it.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!ot.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(st.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,o))}return e.isUri=function(t){return t instanceof e||!!t&&("string"==typeof t.authority&&"string"==typeof t.fragment&&"string"==typeof t.path&&"string"==typeof t.query&&"string"==typeof t.scheme&&"function"==typeof t.fsPath&&"function"==typeof t.with&&"function"==typeof t.toString)},Object.defineProperty(e.prototype,"fsPath",{get:function(){return yt(this)},enumerable:!0,configurable:!0}),e.prototype.with=function(e){if(!e)return this;var t=e.scheme,n=e.authority,r=e.path,i=e.query,o=e.fragment;return void 0===t?t=this.scheme:null===t&&(t=lt),void 0===n?n=this.authority:null===n&&(n=lt),void 0===r?r=this.path:null===r&&(r=lt),void 0===i?i=this.query:null===i&&(i=lt),void 0===o?o=this.fragment:null===o&&(o=lt),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&o===this.fragment?this:new pt(t,n,r,i,o)},e.parse=function(e,t){void 0===t&&(t=!1);var n=dt.exec(e);return n?new pt(n[2]||lt,decodeURIComponent(n[4]||lt),decodeURIComponent(n[5]||lt),decodeURIComponent(n[7]||lt),decodeURIComponent(n[9]||lt),t):new pt(lt,lt,lt,lt,lt)},e.file=function(e){var t=lt;if(nt.g&&(e=e.replace(/\\/g,ct)),e[0]===ct&&e[1]===ct){var n=e.indexOf(ct,2);-1===n?(t=e.substring(2),e=ct):(t=e.substring(2,n),e=e.substring(n)||ct)}return new pt("file",t,e,lt,lt)},e.from=function(e){return new pt(e.scheme,e.authority,e.path,e.query,e.fragment)},e.prototype.toString=function(e){return void 0===e&&(e=!1),vt(this,e)},e.prototype.toJSON=function(){return this},e.revive=function(t){if(t){if(t instanceof e)return t;var n=new pt(t);return n._formatted=t.external,n._fsPath=t._sep===ft?t.fsPath:null,n}return t},e}(),ft=nt.g?1:void 0,pt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._formatted=null,t._fsPath=null,t}return rt(t,e),Object.defineProperty(t.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=yt(this)),this._fsPath},enumerable:!0,configurable:!0}),t.prototype.toString=function(e){return void 0===e&&(e=!1),e?vt(this,!0):(this._formatted||(this._formatted=vt(this,!1)),this._formatted)},t.prototype.toJSON=function(){var e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=ft),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e},t}(ht),gt=((tt={})[58]="%3A",tt[47]="%2F",tt[63]="%3F",tt[35]="%23",tt[91]="%5B",tt[93]="%5D",tt[64]="%40",tt[33]="%21",tt[36]="%24",tt[38]="%26",tt[39]="%27",tt[40]="%28",tt[41]="%29",tt[42]="%2A",tt[43]="%2B",tt[44]="%2C",tt[59]="%3B",tt[61]="%3D",tt[32]="%20",tt);function mt(e,t){for(var n=void 0,r=-1,i=0;i<e.length;i++){var o=e.charCodeAt(i);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o)-1!==r&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),void 0!==n&&(n+=e.charAt(i));else{void 0===n&&(n=e.substr(0,i));var s=gt[o];void 0!==s?(-1!==r&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),n+=s):-1===r&&(r=i)}}return-1!==r&&(n+=encodeURIComponent(e.substring(r))),void 0!==n?n:e}function _t(e){for(var t=void 0,n=0;n<e.length;n++){var r=e.charCodeAt(n);35===r||63===r?(void 0===t&&(t=e.substr(0,n)),t+=gt[r]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function yt(e){var t;return t=e.authority&&e.path.length>1&&"file"===e.scheme?"//"+e.authority+e.path:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?e.path[1].toLowerCase()+e.path.substr(2):e.path,nt.g&&(t=t.replace(/\//g,"\\")),t}function vt(e,t){var n=t?_t:mt,r="",i=e.scheme,o=e.authority,s=e.path,a=e.query,u=e.fragment;if(i&&(r+=i,r+=":"),(o||"file"===i)&&(r+=ct,r+=ct),o){var l=o.indexOf("@");if(-1!==l){var c=o.substr(0,l);o=o.substr(l+1),-1===(l=c.indexOf(":"))?r+=n(c,!1):(r+=n(c.substr(0,l),!1),r+=":",r+=n(c.substr(l+1),!1)),r+="@"}-1===(l=(o=o.toLowerCase()).indexOf(":"))?r+=n(o,!1):(r+=n(o.substr(0,l),!1),r+=o.substr(l))}if(s){if(s.length>=3&&47===s.charCodeAt(0)&&58===s.charCodeAt(2))(d=s.charCodeAt(1))>=65&&d<=90&&(s="/"+String.fromCharCode(d+32)+":"+s.substr(3));else if(s.length>=2&&58===s.charCodeAt(1)){var d;(d=s.charCodeAt(0))>=65&&d<=90&&(s=String.fromCharCode(d+32)+":"+s.substr(2))}r+=n(s,!0)}return a&&(r+="?",r+=n(a,!1)),u&&(r+="#",r+=t?u:mt(u,!1)),r}!function(e){e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies",e.getServiceDependencies=function(t){return t[e.DI_DEPENDENCIES]||[]}}(ut||(ut={}));var bt=Ct("instantiationService");function wt(e,t,n,r){t[ut.DI_TARGET]===t?t[ut.DI_DEPENDENCIES].push({id:e,index:n,optional:r}):(t[ut.DI_DEPENDENCIES]=[{id:e,index:n,optional:r}],t[ut.DI_TARGET]=t)}function Ct(e){if(ut.serviceIds.has(e))return ut.serviceIds.get(e);var t=function(e,n,r){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");wt(t,e,r,!1)};return t.toString=function(){return e},ut.serviceIds.set(e,t),t}function St(e){return function(t,n,r){if(3!==arguments.length)throw new Error("@optional-decorator can only be used to decorate a parameter");wt(e,t,r,!0)}}var xt=Ct("codeEditorService"),Lt=function(){function e(e,t){this.lineNumber=e,this.column=t}return e.prototype.with=function(t,n){return void 0===t&&(t=this.lineNumber),void 0===n&&(n=this.column),t===this.lineNumber&&n===this.column?this:new e(t,n)},e.prototype.delta=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=0),this.with(this.lineNumber+e,this.column+t)},e.prototype.equals=function(t){return e.equals(this,t)},e.equals=function(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column},e.prototype.isBefore=function(t){return e.isBefore(this,t)},e.isBefore=function(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<t.column},e.prototype.isBeforeOrEqual=function(t){return e.isBeforeOrEqual(this,t)},e.isBeforeOrEqual=function(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<=t.column},e.compare=function(e,t){var n=0|e.lineNumber,r=0|t.lineNumber;return n===r?(0|e.column)-(0|t.column):n-r},e.prototype.clone=function(){return new e(this.lineNumber,this.column)},e.prototype.toString=function(){return"("+this.lineNumber+","+this.column+")"},e.lift=function(t){return new e(t.lineNumber,t.column)},e.isIPosition=function(e){return e&&"number"==typeof e.lineNumber&&"number"==typeof e.column},e}(),kt=Ct("modelService");function Mt(e){return!e.isTooLargeForSyncing()&&!e.isForSimpleWidget}var Dt=Ct("textModelService"),Et=!1,Tt="__is_disposable_tracked__";function Nt(e){if(Et&&e&&e!==Ft.None)try{e[Tt]=!0}catch(e){}}function Ot(e){if(!Et)return e;var t=new Error("Potentially leaked disposable").stack;return setTimeout((function(){e[Tt]||console.log(t)}),3e3),e}function At(e){return Array.isArray(e)?(e.forEach((function(e){e&&(Nt(e),e.dispose())})),[]):e?(Nt(e),e.dispose(),e):void 0}function It(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.forEach(Nt),Ot({dispose:function(){return At(e)}})}function Pt(e){var t=Ot({dispose:function(){Nt(t),e()}});return t}var Rt=function(){function e(){this._toDispose=new Set,this._isDisposed=!1}return e.prototype.dispose=function(){this._isDisposed||(Nt(this),this._isDisposed=!0,this.clear())},e.prototype.clear=function(){this._toDispose.forEach((function(e){return e.dispose()})),this._toDispose.clear()},e.prototype.add=function(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return Nt(e),this._isDisposed?console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e},e}(),Ft=function(){function e(){this._store=new Rt,Ot(this)}return e.prototype.dispose=function(){Nt(this),this._store.dispose()},e.prototype._register=function(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)},e.None=Object.freeze({dispose:function(){}}),e}(),Yt=(function(){function e(){this._isDisposed=!1,Ot(this)}Object.defineProperty(e.prototype,"value",{get:function(){return this._isDisposed?void 0:this._value},set:function(e){this._isDisposed||e===this._value||(this._value&&this._value.dispose(),e&&Nt(e),this._value=e)},enumerable:!0,configurable:!0}),e.prototype.clear=function(){this.value=void 0},e.prototype.dispose=function(){this._isDisposed=!0,Nt(this),this._value&&this._value.dispose(),this._value=void 0}}(),function(){function e(e){this.object=e}return e.prototype.dispose=function(){},e}());var jt,Bt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Wt={done:!0,value:void 0};!function(e){var t={next:function(){return Wt}};e.empty=function(){return t},e.single=function(e){var t=!1;return{next:function(){return t?Wt:(t=!0,{done:!1,value:e})}}},e.fromArray=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=e.length),{next:function(){return t>=n?Wt:{done:!1,value:e[t++]}}}},e.from=function(t){return t?Array.isArray(t)?e.fromArray(t):t:e.empty()},e.map=function(e,t){return{next:function(){var n=e.next();return n.done?Wt:{done:!1,value:t(n.value)}}}},e.filter=function(e,t){return{next:function(){for(;;){var n=e.next();if(n.done)return Wt;if(t(n.value))return{done:!1,value:n.value}}}}},e.forEach=function(e,t){for(var n=e.next();!n.done;n=e.next())t(n.value)},e.collect=function(e,t){void 0===t&&(t=Number.POSITIVE_INFINITY);var n=[];if(0===t)return n;for(var r=0,i=e.next();!i.done&&(n.push(i.value),!(++r>=t));i=e.next());return n},e.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=0;return{next:function(){if(n>=e.length)return Wt;var t=e[n].next();return t.done?(n++,this.next()):t}}}}(jt||(jt={}));var Ht,Vt=function(e){function t(t,n,r,i){return void 0===n&&(n=0),void 0===r&&(r=t.length),void 0===i&&(i=n-1),e.call(this,t,n,r,i)||this}return Bt(t,e),t.prototype.current=function(){return e.prototype.current.call(this)},t.prototype.previous=function(){return this.index=Math.max(this.index-1,this.start-1),this.current()},t.prototype.first=function(){return this.index=this.start,this.current()},t.prototype.last=function(){return this.index=this.end-1,this.current()},t.prototype.parent=function(){return null},t}(function(){function e(e,t,n,r){void 0===t&&(t=0),void 0===n&&(n=e.length),void 0===r&&(r=t-1),this.items=e,this.start=t,this.end=n,this.index=r}return e.prototype.first=function(){return this.index=this.start,this.current()},e.prototype.next=function(){return this.index=Math.min(this.index+1,this.end),this.current()},e.prototype.current=function(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]},e}()),zt=(function(){function e(e,t){this.iterator=e,this.fn=t}e.prototype.next=function(){return this.fn(this.iterator.next())}}(),function(){function e(t){this.element=t,this.next=e.Undefined,this.prev=e.Undefined}return e.Undefined=new e(void 0),e}()),Ut=function(){function e(){this._first=zt.Undefined,this._last=zt.Undefined,this._size=0}return Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return this._first===zt.Undefined},e.prototype.clear=function(){this._first=zt.Undefined,this._last=zt.Undefined,this._size=0},e.prototype.unshift=function(e){return this._insert(e,!1)},e.prototype.push=function(e){return this._insert(e,!0)},e.prototype._insert=function(e,t){var n=this,r=new zt(e);if(this._first===zt.Undefined)this._first=r,this._last=r;else if(t){var i=this._last;this._last=r,r.prev=i,i.next=r}else{var o=this._first;this._first=r,r.next=o,o.prev=r}this._size+=1;var s=!1;return function(){s||(s=!0,n._remove(r))}},e.prototype.shift=function(){if(this._first!==zt.Undefined){var e=this._first.element;return this._remove(this._first),e}},e.prototype.pop=function(){if(this._last!==zt.Undefined){var e=this._last.element;return this._remove(this._last),e}},e.prototype._remove=function(e){if(e.prev!==zt.Undefined&&e.next!==zt.Undefined){var t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===zt.Undefined&&e.next===zt.Undefined?(this._first=zt.Undefined,this._last=zt.Undefined):e.next===zt.Undefined?(this._last=this._last.prev,this._last.next=zt.Undefined):e.prev===zt.Undefined&&(this._first=this._first.next,this._first.prev=zt.Undefined);this._size-=1},e.prototype.iterator=function(){var e,t=this._first;return{next:function(){return t===zt.Undefined?Wt:(e?e.value=t.element:e={done:!1,value:t.element},t=t.next,e)}}},e.prototype.toArray=function(){for(var e=[],t=this._first;t!==zt.Undefined;t=t.next)e.push(t.element);return e},e}(),qt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();!function(e){function t(e){return function(t,n,r){void 0===n&&(n=null);var i,o=!1;return i=e((function(e){if(!o)return i?i.dispose():o=!0,t.call(n,e)}),null,r),o&&i.dispose(),i}}function n(e,t){return s((function(n,r,i){return void 0===r&&(r=null),e((function(e){return n.call(r,t(e))}),null,i)}))}function r(e,t){return s((function(n,r,i){return void 0===r&&(r=null),e((function(e){t(e),n.call(r,e)}),null,i)}))}function i(e,t){return s((function(n,r,i){return void 0===r&&(r=null),e((function(e){return t(e)&&n.call(r,e)}),null,i)}))}function o(e,t,r){var i=r;return n(e,(function(e){return i=t(i,e)}))}function s(e){var t,n=new $t({onFirstListenerAdd:function(){t=e(n.fire,n)},onLastListenerRemove:function(){t.dispose()}});return n.event}function a(e){var t,n=!0;return i(e,(function(e){var r=n||e!==t;return n=!1,t=e,r}))}e.None=function(){return Ft.None},e.once=t,e.map=n,e.forEach=r,e.filter=i,e.signal=function(e){return e},e.any=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t,n,r){return void 0===n&&(n=null),It.apply(void 0,e.map((function(e){return e((function(e){return t.call(n,e)}),null,r)})))}},e.reduce=o,e.snapshot=s,e.debounce=function(e,t,n,r,i){var o;void 0===n&&(n=100),void 0===r&&(r=!1);var s=void 0,a=void 0,u=0,l=new $t({leakWarningThreshold:i,onFirstListenerAdd:function(){o=e((function(e){u++,s=t(s,e),r&&!a&&l.fire(s),clearTimeout(a),a=setTimeout((function(){var e=s;s=void 0,a=void 0,(!r||u>1)&&l.fire(e),u=0}),n)}))},onLastListenerRemove:function(){o.dispose()}});return l.event},e.stopwatch=function(e){var r=(new Date).getTime();return n(t(e),(function(e){return(new Date).getTime()-r}))},e.latch=a,e.buffer=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=[]);var r=n.slice(),i=e((function(e){r?r.push(e):s.fire(e)})),o=function(){r&&r.forEach((function(e){return s.fire(e)})),r=null},s=new $t({onFirstListenerAdd:function(){i||(i=e((function(e){return s.fire(e)})))},onFirstListenerDidAdd:function(){r&&(t?setTimeout(o):o())},onLastListenerRemove:function(){i&&i.dispose(),i=null}});return s.event};var u=function(){function e(e){this.event=e}return e.prototype.map=function(t){return new e(n(this.event,t))},e.prototype.forEach=function(t){return new e(r(this.event,t))},e.prototype.filter=function(t){return new e(i(this.event,t))},e.prototype.reduce=function(t,n){return new e(o(this.event,t,n))},e.prototype.latch=function(){return new e(a(this.event))},e.prototype.on=function(e,t,n){return this.event(e,t,n)},e.prototype.once=function(e,n,r){return t(this.event)(e,n,r)},e}();e.chain=function(e){return new u(e)},e.fromNodeEventEmitter=function(e,t,n){void 0===n&&(n=function(e){return e});var r=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.fire(n.apply(void 0,e))},i=new $t({onFirstListenerAdd:function(){return e.on(t,r)},onLastListenerRemove:function(){return e.removeListener(t,r)}});return i.event},e.fromDOMEventEmitter=function(e,t,n){void 0===n&&(n=function(e){return e});var r=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.fire(n.apply(void 0,e))},i=new $t({onFirstListenerAdd:function(){return e.addEventListener(t,r)},onLastListenerRemove:function(){return e.removeEventListener(t,r)}});return i.event},e.fromPromise=function(e){var t=new $t,n=!1;return e.then(void 0,(function(){return null})).then((function(){n?t.fire(void 0):setTimeout((function(){return t.fire(void 0)}),0)})),n=!0,t.event},e.toPromise=function(e){return new Promise((function(n){return t(e)(n)}))}}(Ht||(Ht={}));var Kt=-1,Gt=function(){function e(e,t){void 0===t&&(t=Math.random().toString(18).slice(2,5)),this.customThreshold=e,this.name=t,this._warnCountdown=0}return e.prototype.dispose=function(){this._stacks&&this._stacks.clear()},e.prototype.check=function(e){var t=this,n=Kt;if("number"==typeof this.customThreshold&&(n=this.customThreshold),!(n<=0||e<n)){this._stacks||(this._stacks=new Map);var r=(new Error).stack.split("\n").slice(3).join("\n"),i=this._stacks.get(r)||0;if(this._stacks.set(r,i+1),this._warnCountdown-=1,this._warnCountdown<=0){var o;this._warnCountdown=.5*n;var s=0;this._stacks.forEach((function(e,t){(!o||s<e)&&(o=t,s=e)})),console.warn("["+this.name+"] potential listener LEAK detected, having "+e+" listeners already. MOST frequent listener ("+s+"):"),console.warn(o)}return function(){var e=t._stacks.get(r)||0;t._stacks.set(r,e-1)}}},e}(),$t=function(){function e(e){this._disposed=!1,this._options=e,this._leakageMon=Kt>0?new Gt(this._options&&this._options.leakWarningThreshold):void 0}return Object.defineProperty(e.prototype,"event",{get:function(){var t=this;return this._event||(this._event=function(n,r,i){t._listeners||(t._listeners=new Ut);var o=t._listeners.isEmpty();o&&t._options&&t._options.onFirstListenerAdd&&t._options.onFirstListenerAdd(t);var s,a,u=t._listeners.push(r?[n,r]:n);return o&&t._options&&t._options.onFirstListenerDidAdd&&t._options.onFirstListenerDidAdd(t),t._options&&t._options.onListenerDidAdd&&t._options.onListenerDidAdd(t,n,r),t._leakageMon&&(s=t._leakageMon.check(t._listeners.size)),a={dispose:function(){(s&&s(),a.dispose=e._noop,t._disposed)||(u(),t._options&&t._options.onLastListenerRemove&&(t._listeners&&!t._listeners.isEmpty()||t._options.onLastListenerRemove(t)))}},i instanceof Rt?i.add(a):Array.isArray(i)&&i.push(a),a}),this._event},enumerable:!0,configurable:!0}),e.prototype.fire=function(e){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new Ut);for(var t=this._listeners.iterator(),n=t.next();!n.done;n=t.next())this._deliveryQueue.push([n.value,e]);for(;this._deliveryQueue.size>0;){var r=this._deliveryQueue.shift(),i=r[0],o=r[1];try{"function"==typeof i?i.call(void 0,o):i[0].call(i[1],o)}catch(n){Ke(n)}}}},e.prototype.dispose=function(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0},e._noop=function(){},e}(),Zt=function(e){function t(t){var n=e.call(this,t)||this;return n._isPaused=0,n._eventQueue=new Ut,n._mergeFn=t&&t.merge,n}return qt(t,e),t.prototype.pause=function(){this._isPaused++},t.prototype.resume=function(){if(0!==this._isPaused&&0==--this._isPaused)if(this._mergeFn){var t=this._eventQueue.toArray();this._eventQueue.clear(),e.prototype.fire.call(this,this._mergeFn(t))}else for(;!this._isPaused&&0!==this._eventQueue.size;)e.prototype.fire.call(this,this._eventQueue.shift())},t.prototype.fire=function(t){this._listeners&&(0!==this._isPaused?this._eventQueue.push(t):e.prototype.fire.call(this,t))},t}($t),Xt=(function(){function e(){var e=this;this.hasListeners=!1,this.events=[],this.emitter=new $t({onFirstListenerAdd:function(){return e.onFirstListenerAdd()},onLastListenerRemove:function(){return e.onLastListenerRemove()}})}Object.defineProperty(e.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),e.prototype.add=function(e){var t=this,n={event:e,listener:null};this.events.push(n),this.hasListeners&&this.hook(n);return Pt(function(e){var t,n=this,r=!1;return function(){return r?t:(r=!0,t=e.apply(n,arguments))}}((function(){t.hasListeners&&t.unhook(n);var e=t.events.indexOf(n);t.events.splice(e,1)})))},e.prototype.onFirstListenerAdd=function(){var e=this;this.hasListeners=!0,this.events.forEach((function(t){return e.hook(t)}))},e.prototype.onLastListenerRemove=function(){var e=this;this.hasListeners=!1,this.events.forEach((function(t){return e.unhook(t)}))},e.prototype.hook=function(e){var t=this;e.listener=e.event((function(e){return t.emitter.fire(e)}))},e.prototype.unhook=function(e){e.listener&&e.listener.dispose(),e.listener=null},e.prototype.dispose=function(){this.emitter.dispose()}}(),function(){function e(){this.buffers=[]}return e.prototype.wrapEvent=function(e){var t=this;return function(n,r,i){return e((function(e){var i=t.buffers[t.buffers.length-1];i?i.push((function(){return n.call(r,e)})):n.call(r,e)}),void 0,i)}},e.prototype.bufferEvents=function(e){var t=[];this.buffers.push(t);var n=e();return this.buffers.pop(),t.forEach((function(e){return e()})),n},e}()),Jt=function(){function e(){var e=this;this.listening=!1,this.inputEvent=Ht.None,this.inputEventListener=Ft.None,this.emitter=new $t({onFirstListenerDidAdd:function(){e.listening=!0,e.inputEventListener=e.inputEvent(e.emitter.fire,e.emitter)},onLastListenerRemove:function(){e.listening=!1,e.inputEventListener.dispose()}}),this.event=this.emitter.event}return Object.defineProperty(e.prototype,"input",{set:function(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this.inputEventListener.dispose(),this.emitter.dispose()},e}(),Qt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),en=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))},tn=function(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},nn=function(e){function t(t,n,r,i,o){void 0===n&&(n=""),void 0===r&&(r=""),void 0===i&&(i=!0);var s=e.call(this)||this;return s._onDidChange=s._register(new $t),s.onDidChange=s._onDidChange.event,s._enabled=!0,s._checked=!1,s._radio=!1,s._id=t,s._label=n,s._cssClass=r,s._enabled=i,s._actionCallback=o,s}return Qt(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"label",{get:function(){return this._label},set:function(e){this._setLabel(e)},enumerable:!0,configurable:!0}),t.prototype._setLabel=function(e){this._label!==e&&(this._label=e,this._onDidChange.fire({label:e}))},Object.defineProperty(t.prototype,"tooltip",{get:function(){return this._tooltip||""},set:function(e){this._setTooltip(e)},enumerable:!0,configurable:!0}),t.prototype._setTooltip=function(e){this._tooltip!==e&&(this._tooltip=e,this._onDidChange.fire({tooltip:e}))},Object.defineProperty(t.prototype,"class",{get:function(){return this._cssClass},set:function(e){this._setClass(e)},enumerable:!0,configurable:!0}),t.prototype._setClass=function(e){this._cssClass!==e&&(this._cssClass=e,this._onDidChange.fire({class:e}))},Object.defineProperty(t.prototype,"enabled",{get:function(){return this._enabled},set:function(e){this._setEnabled(e)},enumerable:!0,configurable:!0}),t.prototype._setEnabled=function(e){this._enabled!==e&&(this._enabled=e,this._onDidChange.fire({enabled:e}))},Object.defineProperty(t.prototype,"checked",{get:function(){return this._checked},set:function(e){this._setChecked(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radio",{get:function(){return this._radio},set:function(e){this._setRadio(e)},enumerable:!0,configurable:!0}),t.prototype._setChecked=function(e){this._checked!==e&&(this._checked=e,this._onDidChange.fire({checked:e}))},t.prototype._setRadio=function(e){this._radio!==e&&(this._radio=e,this._onDidChange.fire({radio:e}))},t.prototype.run=function(e,t){return this._actionCallback?this._actionCallback(e):Promise.resolve(!0)},t}(Ft),rn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onDidBeforeRun=t._register(new $t),t.onDidBeforeRun=t._onDidBeforeRun.event,t._onDidRun=t._register(new $t),t.onDidRun=t._onDidRun.event,t}return Qt(t,e),t.prototype.run=function(e,t){return en(this,void 0,void 0,(function(){var n,r;return tn(this,(function(i){switch(i.label){case 0:if(!e.enabled)return[2,Promise.resolve(null)];this._onDidBeforeRun.fire({action:e}),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.runAction(e,t)];case 2:return n=i.sent(),this._onDidRun.fire({action:e,result:n}),[3,4];case 3:return r=i.sent(),this._onDidRun.fire({action:e,error:r}),[3,4];case 4:return[2]}}))}))},t.prototype.runAction=function(e,t){var n=t?e.run(t):e.run();return Promise.resolve(n)},t}(Ft),on="";var sn=/{(\d+)}/g;function an(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return 0===t.length?e:e.replace(sn,(function(e,n){var r=parseInt(n,10);return isNaN(r)||r<0||r>=t.length?e:t[r]}))}function un(e){return e.replace(/[<>&]/g,(function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}}))}function ln(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\[\]\(\)\#]/g,"\\$&")}function cn(e,t){if(!e||!t)return e;var n=t.length;if(0===n||0===e.length)return e;for(var r=0;e.indexOf(t,r)===r;)r+=n;return e.substring(r)}function dn(e,t){if(e.length<t.length)return!1;if(e===t)return!0;for(var n=0;n<t.length;n++)if(e[n]!==t[n])return!1;return!0}function hn(e,t){var n=e.length-t.length;return n>0?e.indexOf(t,n)===n:0===n&&e===t}function fn(e,t,n){if(void 0===n&&(n={}),!e)throw new Error("Cannot create regex from empty string");t||(e=ln(e)),n.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));var r="";return n.global&&(r+="g"),n.matchCase||(r+="i"),n.multiline&&(r+="m"),n.unicode&&(r+="u"),new RegExp(e,r)}function pn(e){return(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")}function gn(e){for(var t=0,n=e.length;t<n;t++){var r=e.charCodeAt(t);if(32!==r&&9!==r)return t}return-1}function mn(e,t,n){void 0===t&&(t=0),void 0===n&&(n=e.length);for(var r=t;r<n;r++){var i=e.charCodeAt(r);if(32!==i&&9!==i)return e.substring(t,r)}return e.substring(t,n)}function _n(e,t){void 0===t&&(t=e.length-1);for(var n=t;n>=0;n--){var r=e.charCodeAt(n);if(32!==r&&9!==r)return n}return-1}function yn(e){return e>=97&&e<=122}function vn(e){return e>=65&&e<=90}function bn(e){return yn(e)||vn(e)}function wn(e,t){return(e?e.length:0)===(t?t.length:0)&&Cn(e,t)}function Cn(e,t,n){if(void 0===n&&(n=e.length),"string"!=typeof e||"string"!=typeof t)return!1;for(var r=0;r<n;r++){var i=e.charCodeAt(r),o=t.charCodeAt(r);if(i!==o)if(bn(i)&&bn(o)){var s=Math.abs(i-o);if(0!==s&&32!==s)return!1}else if(String.fromCharCode(i).toLowerCase()!==String.fromCharCode(o).toLowerCase())return!1}return!0}function Sn(e,t){var n=t.length;return!(t.length>e.length)&&Cn(e,t,n)}function xn(e){return 55296<=e&&e<=56319}function Ln(e){return 56320<=e&&e<=57343}var kn=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function Mn(e){return kn.test(e)}var Dn=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEF8]|\uD83E[\uDD00-\uDDE6])/;var En=/^[\t\n\r\x20-\x7E]*$/;function Tn(e){return En.test(e)}function Nn(e){return(e=+e)>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}var On=String.fromCharCode(65279);function An(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0))}function In(e){return(e%=52)<26?String.fromCharCode(97+e):String.fromCharCode(65+e-26)}var Pn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Rn=function(){function e(){}return e.has=function(e){return Yn.create(e)},e.equals=function(e,t){return jn.create(e,t)},e.regex=function(e,t){return Hn.create(e,t)},e.not=function(e){return Wn.create(e)},e.and=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return zn.create(e)},e.or=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Un.create(e)},e.deserialize=function(e,t){if(void 0===t&&(t=!1),e)return this._deserializeOrExpression(e,t)},e._deserializeOrExpression=function(e,t){var n=this,r=e.split("||");return Un.create(r.map((function(e){return n._deserializeAndExpression(e,t)})))},e._deserializeAndExpression=function(e,t){var n=this,r=e.split("&&");return zn.create(r.map((function(e){return n._deserializeOne(e,t)})))},e._deserializeOne=function(e,t){if((e=e.trim()).indexOf("!=")>=0){var n=e.split("!=");return Bn.create(n[0].trim(),this._deserializeValue(n[1],t))}if(e.indexOf("==")>=0){n=e.split("==");return jn.create(n[0].trim(),this._deserializeValue(n[1],t))}if(e.indexOf("=~")>=0){n=e.split("=~");return Hn.create(n[0].trim(),this._deserializeRegexValue(n[1],t))}return/^\!\s*/.test(e)?Wn.create(e.substr(1).trim()):Yn.create(e)},e._deserializeValue=function(e,t){if("true"===(e=e.trim()))return!0;if("false"===e)return!1;var n=/^'([^']*)'$/.exec(e);return n?n[1].trim():e},e._deserializeRegexValue=function(e,t){if(!(n=e)||"string"!=typeof n||0===n.trim().length){if(t)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}var n,r=e.indexOf("/"),i=e.lastIndexOf("/");if(r===i||r<0){if(t)throw new Error("bad regexp-value '"+e+"', missing /-enclosure");return console.warn("bad regexp-value '"+e+"', missing /-enclosure"),null}var o=e.slice(r+1,i),s="i"===e[i+1]?"i":"";try{return new RegExp(o,s)}catch(n){if(t)throw new Error("bad regexp-value '"+e+"', parse error: "+n);return console.warn("bad regexp-value '"+e+"', parse error: "+n),null}},e}();function Fn(e,t){var n=e.getType(),r=t.getType();if(n!==r)return n-r;switch(n){case 1:case 2:case 3:case 4:case 6:case 7:case 5:return e.cmp(t);default:throw new Error("Unknown ContextKeyExpr!")}}var Yn=function(){function e(e){this.key=e}return e.create=function(t){return new e(t)},e.prototype.getType=function(){return 1},e.prototype.cmp=function(e){return this.key<e.key?-1:this.key>e.key?1:0},e.prototype.equals=function(t){return t instanceof e&&this.key===t.key},e.prototype.evaluate=function(e){return!!e.getValue(this.key)},e.prototype.keys=function(){return[this.key]},e.prototype.negate=function(){return Wn.create(this.key)},e}(),jn=function(){function e(e,t){this.key=e,this.value=t}return e.create=function(t,n){return"boolean"==typeof n?n?Yn.create(t):Wn.create(t):new e(t,n)},e.prototype.getType=function(){return 3},e.prototype.cmp=function(e){return this.key<e.key?-1:this.key>e.key?1:this.value<e.value?-1:this.value>e.value?1:0},e.prototype.equals=function(t){return t instanceof e&&(this.key===t.key&&this.value===t.value)},e.prototype.evaluate=function(e){return e.getValue(this.key)==this.value},e.prototype.keys=function(){return[this.key]},e.prototype.negate=function(){return Bn.create(this.key,this.value)},e}(),Bn=function(){function e(e,t){this.key=e,this.value=t}return e.create=function(t,n){return"boolean"==typeof n?n?Wn.create(t):Yn.create(t):new e(t,n)},e.prototype.getType=function(){return 4},e.prototype.cmp=function(e){return this.key<e.key?-1:this.key>e.key?1:this.value<e.value?-1:this.value>e.value?1:0},e.prototype.equals=function(t){return t instanceof e&&(this.key===t.key&&this.value===t.value)},e.prototype.evaluate=function(e){return e.getValue(this.key)!=this.value},e.prototype.keys=function(){return[this.key]},e.prototype.negate=function(){return jn.create(this.key,this.value)},e}(),Wn=function(){function e(e){this.key=e}return e.create=function(t){return new e(t)},e.prototype.getType=function(){return 2},e.prototype.cmp=function(e){return this.key<e.key?-1:this.key>e.key?1:0},e.prototype.equals=function(t){return t instanceof e&&this.key===t.key},e.prototype.evaluate=function(e){return!e.getValue(this.key)},e.prototype.keys=function(){return[this.key]},e.prototype.negate=function(){return Yn.create(this.key)},e}(),Hn=function(){function e(e,t){this.key=e,this.regexp=t}return e.create=function(t,n){return new e(t,n)},e.prototype.getType=function(){return 6},e.prototype.cmp=function(e){if(this.key<e.key)return-1;if(this.key>e.key)return 1;var t=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return t<n?-1:t>n?1:0},e.prototype.equals=function(t){if(t instanceof e){var n=this.regexp?this.regexp.source:"",r=t.regexp?t.regexp.source:"";return this.key===t.key&&n===r}return!1},e.prototype.evaluate=function(e){var t=e.getValue(this.key);return!!this.regexp&&this.regexp.test(t)},e.prototype.keys=function(){return[this.key]},e.prototype.negate=function(){return Vn.create(this)},e}(),Vn=function(){function e(e){this._actual=e}return e.create=function(t){return new e(t)},e.prototype.getType=function(){return 7},e.prototype.cmp=function(e){return this._actual.cmp(e._actual)},e.prototype.equals=function(t){return t instanceof e&&this._actual.equals(t._actual)},e.prototype.evaluate=function(e){return!this._actual.evaluate(e)},e.prototype.keys=function(){return this._actual.keys()},e.prototype.negate=function(){return this._actual},e}(),zn=function(){function e(e){this.expr=e}return e.create=function(t){var n=e._normalizeArr(t);if(0!==n.length)return 1===n.length?n[0]:new e(n)},e.prototype.getType=function(){return 5},e.prototype.cmp=function(e){if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(var t=0,n=this.expr.length;t<n;t++){var r=Fn(this.expr[t],e.expr[t]);if(0!==r)return r}return 0},e.prototype.equals=function(t){if(t instanceof e){if(this.expr.length!==t.expr.length)return!1;for(var n=0,r=this.expr.length;n<r;n++)if(!this.expr[n].equals(t.expr[n]))return!1;return!0}return!1},e.prototype.evaluate=function(e){for(var t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].evaluate(e))return!1;return!0},e._normalizeArr=function(t){var n=[];if(t){for(var r=0,i=t.length;r<i;r++){var o=t[r];if(o)if(o instanceof e)n=n.concat(o.expr);else{if(o instanceof Un)throw new Error("It is not allowed to have an or expression here due to lack of parens!");n.push(o)}}n.sort(Fn)}return n},e.prototype.keys=function(){for(var e=[],t=0,n=this.expr;t<n.length;t++){var r=n[t];e.push.apply(e,r.keys())}return e},e.prototype.negate=function(){for(var e=[],t=0,n=this.expr;t<n.length;t++){var r=n[t];e.push(r.negate())}return Un.create(e)},e}(),Un=function(){function e(e){this.expr=e}return e.create=function(t){var n=e._normalizeArr(t);if(0!==n.length)return 1===n.length?n[0]:new e(n)},e.prototype.getType=function(){return 8},e.prototype.equals=function(t){if(t instanceof e){if(this.expr.length!==t.expr.length)return!1;for(var n=0,r=this.expr.length;n<r;n++)if(!this.expr[n].equals(t.expr[n]))return!1;return!0}return!1},e.prototype.evaluate=function(e){for(var t=0,n=this.expr.length;t<n;t++)if(this.expr[t].evaluate(e))return!0;return!1},e._normalizeArr=function(t){var n=[];if(t){for(var r=0,i=t.length;r<i;r++){var o=t[r];o&&(o instanceof e?n=n.concat(o.expr):n.push(o))}n.sort(Fn)}return n},e.prototype.keys=function(){for(var e=[],t=0,n=this.expr;t<n.length;t++){var r=n[t];e.push.apply(e,r.keys())}return e},e.prototype.negate=function(){for(var t=[],n=0,r=this.expr;n<r.length;n++){var i=r[n];t.push(i.negate())}for(var o=function(t){return t instanceof e?t.expr:[t]};t.length>1;){for(var s=t.shift(),a=t.shift(),u=[],l=0,c=o(s);l<c.length;l++)for(var d=c[l],h=0,f=o(a);h<f.length;h++){var p=f[h];u.push(Rn.and(d,p))}t.unshift(Rn.or.apply(Rn,u))}return t[0]},e}(),qn=function(e){function t(t,n){var r=e.call(this,t)||this;return r._defaultValue=n,r}return Pn(t,e),t.prototype.bindTo=function(e){return e.createKey(this.key,this._defaultValue)},t.prototype.getValue=function(e){return e.getContextKeyValue(this.key)},t.prototype.toNegated=function(){return Rn.not(this.key)},t}(Yn),Kn=Ct("contextKeyService"),Gn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function $n(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}function Zn(e){var t=[];return e.forEach((function(e,n){return t.push(n)})),t}var Xn=function(){function e(){this._value="",this._pos=0}return e.prototype.reset=function(e){return this._value=e,this._pos=0,this},e.prototype.next=function(){return this._pos+=1,this},e.prototype.hasNext=function(){return this._pos<this._value.length-1},e.prototype.cmp=function(e){return e.charCodeAt(0)-this._value.charCodeAt(this._pos)},e.prototype.value=function(){return this._value[this._pos]},e}(),Jn=function(){function e(){}return e.prototype.reset=function(e){return this._value=e.replace(/\\$|\/$/,""),this._from=0,this._to=0,this.next()},e.prototype.hasNext=function(){return this._to<this._value.length},e.prototype.next=function(){this._from=this._to;for(var e=!0;this._to<this._value.length;this._to++){var t=this._value.charCodeAt(this._to);if(47===t||92===t){if(!e)break;this._from++}else e=!1}return this},e.prototype.cmp=function(e){for(var t=0,n=e.length,r=this._from;t<n&&r<this._to;){var i=e.charCodeAt(t)-this._value.charCodeAt(r);if(0!==i)return i;t+=1,r+=1}return n===this._to-this._from?0:t<n?-1:1},e.prototype.value=function(){return this._value.substring(this._from,this._to)},e}(),Qn=function(){},er=function(){function e(e){this._iter=e}return e.forPaths=function(){return new e(new Jn)},e.forStrings=function(){return new e(new Xn)},e.prototype.clear=function(){this._root=void 0},e.prototype.set=function(e,t){var n,r=this._iter.reset(e);for(this._root||(this._root=new Qn,this._root.segment=r.value()),n=this._root;;){var i=r.cmp(n.segment);if(i>0)n.left||(n.left=new Qn,n.left.segment=r.value()),n=n.left;else if(i<0)n.right||(n.right=new Qn,n.right.segment=r.value()),n=n.right;else{if(!r.hasNext())break;r.next(),n.mid||(n.mid=new Qn,n.mid.segment=r.value()),n=n.mid}}var o=n.value;return n.value=t,n.key=e,o},e.prototype.get=function(e){for(var t=this._iter.reset(e),n=this._root;n;){var r=t.cmp(n.segment);if(r>0)n=n.left;else if(r<0)n=n.right;else{if(!t.hasNext())break;t.next(),n=n.mid}}return n?n.value:void 0},e.prototype.findSubstr=function(e){for(var t=this._iter.reset(e),n=this._root,r=void 0;n;){var i=t.cmp(n.segment);if(i>0)n=n.left;else if(i<0)n=n.right;else{if(!t.hasNext())break;t.next(),r=n.value||r,n=n.mid}}return n&&n.value||r},e.prototype.forEach=function(e){this._forEach(this._root,e)},e.prototype._forEach=function(e,t){e&&(this._forEach(e.left,t),e.value&&t(e.value,e.key),this._forEach(e.mid,t),this._forEach(e.right,t))},e}(),tr=function(){function e(){this.map=new Map,this.ignoreCase=!1}return e.prototype.set=function(e,t){this.map.set(this.toKey(e),t)},e.prototype.get=function(e){return this.map.get(this.toKey(e))},e.prototype.toKey=function(e){var t=e.toString();return this.ignoreCase&&(t=t.toLowerCase()),t},e}(),nr=function(e){function t(t,n){void 0===n&&(n=1);var r=e.call(this)||this;return r._limit=t,r._ratio=Math.min(Math.max(0,n),1),r}return Gn(t,e),t.prototype.get=function(t){return e.prototype.get.call(this,t,2)},t.prototype.peek=function(t){return e.prototype.get.call(this,t,0)},t.prototype.set=function(t,n){e.prototype.set.call(this,t,n,2),this.checkTrim()},t.prototype.checkTrim=function(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))},t}(function(){function e(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0}return e.prototype.clear=function(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),e.prototype.get=function(e,t){void 0===t&&(t=0);var n=this._map.get(e);if(n)return 0!==t&&this.touch(n,t),n.value},e.prototype.set=function(e,t,n){void 0===n&&(n=0);var r=this._map.get(e);if(r)r.value=t,0!==n&&this.touch(r,n);else{switch(r={key:e,value:t,next:void 0,previous:void 0},n){case 0:this.addItemLast(r);break;case 1:this.addItemFirst(r);break;case 2:default:this.addItemLast(r)}this._map.set(e,r),this._size++}},e.prototype.delete=function(e){return!!this.remove(e)},e.prototype.remove=function(e){var t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value},e.prototype.forEach=function(e,t){for(var n=this._head;n;)t?e.bind(t)(n.value,n.key,this):e(n.value,n.key,this),n=n.next},e.prototype.trimOld=function(e){if(!(e>=this.size))if(0!==e){for(var t=this._head,n=this.size;t&&n>e;)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0)}else this.clear()},e.prototype.addItemFirst=function(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e},e.prototype.addItemLast=function(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e},e.prototype.removeItem=function(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{var t=e.next,n=e.previous;if(!t||!n)throw new Error("Invalid list");t.previous=n,n.next=t}e.next=void 0,e.previous=void 0},e.prototype.touch=function(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(1===t||2===t)if(1===t){if(e===this._head)return;var n=e.next,r=e.previous;e===this._tail?(r.next=void 0,this._tail=r):(n.previous=r,r.next=n),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e}else if(2===t){if(e===this._tail)return;n=e.next,r=e.previous;e===this._head?(n.previous=void 0,this._head=n):(n.previous=r,r.next=n),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e}},e.prototype.toJSON=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),e},e}()),rr=Ct("commandService"),ir=new(function(){function e(){this._commands=new Map,this._onDidRegisterCommand=new $t,this.onDidRegisterCommand=this._onDidRegisterCommand.event}return e.prototype.registerCommand=function(e,t){var n=this;if(!e)throw new Error("invalid command");if("string"==typeof e){if(!t)throw new Error("invalid command");return this.registerCommand({id:e,handler:t})}if(e.description){for(var r=[],i=0,o=e.description.args;i<o.length;i++){var s=o[i];r.push(s.constraint)}var a=e.handler;e.handler=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Be(t,r),a.apply(void 0,[e].concat(t))}}var u=e.id,l=this._commands.get(u);l||(l=new Ut,this._commands.set(u,l));var c=l.unshift(e),d=Pt((function(){c();var e=n._commands.get(u);e&&e.isEmpty()&&n._commands.delete(u)}));return this._onDidRegisterCommand.fire(u),d},e.prototype.registerCommandAlias=function(e,t){return ir.registerCommand(e,(function(e){for(var n,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];return(n=e.get(rr)).executeCommand.apply(n,[t].concat(r))}))},e.prototype.getCommand=function(e){var t=this._commands.get(e);if(t&&!t.isEmpty())return t.iterator().next().value},e.prototype.getCommands=function(){for(var e=new Map,t=0,n=Zn(this._commands);t<n.length;t++){var r=n[t],i=this.getCommand(r);i&&e.set(r,i)}return e},e}()),or=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),sr=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},ar=function(e,t){return function(n,r){t(n,r,e)}};function ur(e){return void 0!==e.command}var lr,cr=Ct("menuService"),dr=new(function(){function e(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new $t,this.onDidChangeMenu=this._onDidChangeMenu.event}return e.prototype.addCommand=function(e){var t=this;return this._commands.set(e.id,e),this._onDidChangeMenu.fire(0),{dispose:function(){t._commands.delete(e.id)&&t._onDidChangeMenu.fire(0)}}},e.prototype.getCommand=function(e){return this._commands.get(e)},e.prototype.getCommands=function(){var e=new Map;return this._commands.forEach((function(t,n){return e.set(n,t)})),e},e.prototype.appendMenuItem=function(e,t){var n=this,r=this._menuItems.get(e);return r?r.push(t):(r=[t],this._menuItems.set(e,r)),this._onDidChangeMenu.fire(e),{dispose:function(){var i=r.indexOf(t);i>=0&&(r.splice(i,1),n._onDidChangeMenu.fire(e))}}},e.prototype.getMenuItems=function(e){var t=(this._menuItems.get(e)||[]).slice(0);return 0===e&&this._appendImplicitItems(t),t},e.prototype._appendImplicitItems=function(e){for(var t=new Set,n=0,r=e.filter((function(e){return ur(e)}));n<r.length;n++){var i=r[n],o=i.command,s=i.alt;t.add(o.id),s&&t.add(s.id)}this._commands.forEach((function(n,r){t.has(r)||e.push({command:n})}))},e}()),hr=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i._commandService=r,i}return or(t,e),t.prototype.run=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(e=this._commandService).executeCommand.apply(e,[this.id].concat(t))},t=sr([ar(2,rr)],t)}(nn),fr=function(e){function t(t){var n=this;return(n="string"==typeof t.title?e.call(this,"",t.title,"submenu")||this:e.call(this,"",t.title.value,"submenu")||this).item=t,n}return or(t,e),t}(nn),pr=function(e){function t(n,r,i,o,s){var a=this;return(a="string"==typeof n.title?e.call(this,n.id,n.title,s)||this:e.call(this,n.id,n.title.value,s)||this)._cssClass=void 0,a._enabled=!n.precondition||o.contextMatchesRules(n.precondition),a._checked=Boolean(n.toggled&&o.contextMatchesRules(n.toggled)),a._options=i||{},a.item=n,a.alt=r?new t(r,void 0,a._options,o,s):void 0,a}return or(t,e),t.prototype.dispose=function(){this.alt&&this.alt.dispose(),e.prototype.dispose.call(this)},t.prototype.run=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=[];return this._options.arg&&(r=r.concat([this._options.arg])),this._options.shouldForwardArgs&&(r=r.concat(t)),e.prototype.run.apply(this,r)},t=sr([ar(3,Kn),ar(4,rr)],t)}(hr),gr=function(){function e(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}return e.prototype.define=function(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e},e.prototype.keyCodeToStr=function(e){return this._keyCodeToStr[e]},e.prototype.strToKeyCode=function(e){return this._strToKeyCode[e.toLowerCase()]||0},e}(),mr=new gr,_r=new gr,yr=new gr;function vr(e,t){if(0===e)return null;var n=(65535&e)>>>0,r=(4294901760&e)>>>16;return new Cr(0!==r?[br(n,t),br(r,t)]:[br(n,t)])}function br(e,t){var n=!!(2048&e),r=!!(256&e);return new wr(2===t?r:n,!!(1024&e),!!(512&e),2===t?n:r,255&e)}!function(){function e(e,t,n,r){void 0===n&&(n=t),void 0===r&&(r=n),mr.define(e,t),_r.define(e,n),yr.define(e,r)}e(0,"unknown"),e(1,"Backspace"),e(2,"Tab"),e(3,"Enter"),e(4,"Shift"),e(5,"Ctrl"),e(6,"Alt"),e(7,"PauseBreak"),e(8,"CapsLock"),e(9,"Escape"),e(10,"Space"),e(11,"PageUp"),e(12,"PageDown"),e(13,"End"),e(14,"Home"),e(15,"LeftArrow","Left"),e(16,"UpArrow","Up"),e(17,"RightArrow","Right"),e(18,"DownArrow","Down"),e(19,"Insert"),e(20,"Delete"),e(21,"0"),e(22,"1"),e(23,"2"),e(24,"3"),e(25,"4"),e(26,"5"),e(27,"6"),e(28,"7"),e(29,"8"),e(30,"9"),e(31,"A"),e(32,"B"),e(33,"C"),e(34,"D"),e(35,"E"),e(36,"F"),e(37,"G"),e(38,"H"),e(39,"I"),e(40,"J"),e(41,"K"),e(42,"L"),e(43,"M"),e(44,"N"),e(45,"O"),e(46,"P"),e(47,"Q"),e(48,"R"),e(49,"S"),e(50,"T"),e(51,"U"),e(52,"V"),e(53,"W"),e(54,"X"),e(55,"Y"),e(56,"Z"),e(57,"Meta"),e(58,"ContextMenu"),e(59,"F1"),e(60,"F2"),e(61,"F3"),e(62,"F4"),e(63,"F5"),e(64,"F6"),e(65,"F7"),e(66,"F8"),e(67,"F9"),e(68,"F10"),e(69,"F11"),e(70,"F12"),e(71,"F13"),e(72,"F14"),e(73,"F15"),e(74,"F16"),e(75,"F17"),e(76,"F18"),e(77,"F19"),e(78,"NumLock"),e(79,"ScrollLock"),e(80,";",";","OEM_1"),e(81,"=","=","OEM_PLUS"),e(82,",",",","OEM_COMMA"),e(83,"-","-","OEM_MINUS"),e(84,".",".","OEM_PERIOD"),e(85,"/","/","OEM_2"),e(86,"`","`","OEM_3"),e(110,"ABNT_C1"),e(111,"ABNT_C2"),e(87,"[","[","OEM_4"),e(88,"\\","\\","OEM_5"),e(89,"]","]","OEM_6"),e(90,"'","'","OEM_7"),e(91,"OEM_8"),e(92,"OEM_102"),e(93,"NumPad0"),e(94,"NumPad1"),e(95,"NumPad2"),e(96,"NumPad3"),e(97,"NumPad4"),e(98,"NumPad5"),e(99,"NumPad6"),e(100,"NumPad7"),e(101,"NumPad8"),e(102,"NumPad9"),e(103,"NumPad_Multiply"),e(104,"NumPad_Add"),e(105,"NumPad_Separator"),e(106,"NumPad_Subtract"),e(107,"NumPad_Decimal"),e(108,"NumPad_Divide")}(),function(e){e.toString=function(e){return mr.keyCodeToStr(e)},e.fromString=function(e){return mr.strToKeyCode(e)},e.toUserSettingsUS=function(e){return _r.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return yr.keyCodeToStr(e)},e.fromUserSettings=function(e){return _r.strToKeyCode(e)||yr.strToKeyCode(e)}}(lr||(lr={}));var wr=function(){function e(e,t,n,r,i){this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=r,this.keyCode=i}return e.prototype.equals=function(e){return this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode},e.prototype.isModifierKey=function(){return 0===this.keyCode||5===this.keyCode||57===this.keyCode||6===this.keyCode||4===this.keyCode},e.prototype.toChord=function(){return new Cr([this])},e.prototype.isDuplicateModifierCase=function(){return this.ctrlKey&&5===this.keyCode||this.shiftKey&&4===this.keyCode||this.altKey&&6===this.keyCode||this.metaKey&&57===this.keyCode},e}(),Cr=function(){function e(e){if(0===e.length)throw Je("parts");this.parts=e}return e.prototype.equals=function(e){if(null===e)return!1;if(this.parts.length!==e.parts.length)return!1;for(var t=0;t<this.parts.length;t++)if(!this.parts[t].equals(e.parts[t]))return!1;return!0},e}(),Sr=function(e,t,n,r,i,o){this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=r,this.keyLabel=i,this.keyAriaLabel=o},xr=function(){};function Lr(e,t){if(!e)throw new Error(t?"Assertion failed ("+t+")":"Assertion Failed")}var kr=new(function(){function e(){this.data=new Map}return e.prototype.add=function(e,t){Lr(Ne(e)),Lr(Oe(t)),Lr(!this.data.has(e),"There is already an extension with this id"),this.data.set(e,t)},e.prototype.as=function(e){return this.data.get(e)||null},e}()),Mr=new(function(){function e(){this._coreKeybindings=[],this._extensionKeybindings=[],this._cachedMergedKeybindings=null}return e.bindToCurrentPlatform=function(e){if(1===nt.a){if(e&&e.win)return e.win}else if(2===nt.a){if(e&&e.mac)return e.mac}else if(e&&e.linux)return e.linux;return e},e.prototype.registerKeybindingRule=function(t){var n=e.bindToCurrentPlatform(t);n&&n.primary&&((o=vr(n.primary,nt.a))&&this._registerDefaultKeybinding(o,t.id,void 0,t.weight,0,t.when));if(n&&Array.isArray(n.secondary))for(var r=0,i=n.secondary.length;r<i;r++){var o;(o=vr(n.secondary[r],nt.a))&&this._registerDefaultKeybinding(o,t.id,void 0,t.weight,-r-1,t.when)}},e.prototype.registerCommandAndKeybindingRule=function(e){this.registerKeybindingRule(e),ir.registerCommand(e)},e._mightProduceChar=function(e){return e>=21&&e<=30||(e>=31&&e<=56||(80===e||81===e||82===e||83===e||84===e||85===e||86===e||110===e||111===e||87===e||88===e||89===e||90===e||91===e||92===e))},e.prototype._assertNoCtrlAlt=function(t,n){t.ctrlKey&&t.altKey&&!t.metaKey&&e._mightProduceChar(t.keyCode)&&console.warn("Ctrl+Alt+ keybindings should not be used by default under Windows. Offender: ",t," for ",n)},e.prototype._registerDefaultKeybinding=function(e,t,n,r,i,o){1===nt.a&&this._assertNoCtrlAlt(e.parts[0],t),this._coreKeybindings.push({keybinding:e,command:t,commandArgs:n,when:o,weight1:r,weight2:i}),this._cachedMergedKeybindings=null},e.prototype.getDefaultKeybindings=function(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=[].concat(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(Dr)),this._cachedMergedKeybindings.slice(0)},e}());function Dr(e,t){return e.weight1!==t.weight1?e.weight1-t.weight1:e.command<t.command?-1:e.command>t.command?1:e.weight2-t.weight2}kr.add("platform.keybindingsRegistry",Mr);var Er,Tr=Ct("telemetryService"),Nr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Or=function(){function e(e){this.id=e.id,this.precondition=e.precondition,this._kbOpts=e.kbOpts,this._menubarOpts=e.menubarOpts,this._description=e.description}return e.prototype.register=function(){var e=this;if(this._menubarOpts&&dr.appendMenuItem(this._menubarOpts.menuId,{group:this._menubarOpts.group,command:{id:this.id,title:this._menubarOpts.title},when:this._menubarOpts.when,order:this._menubarOpts.order}),this._kbOpts){var t=this._kbOpts.kbExpr;this.precondition&&(t=t?Rn.and(t,this.precondition):this.precondition),Mr.registerCommandAndKeybindingRule({id:this.id,handler:function(t,n){return e.runCommand(t,n)},weight:this._kbOpts.weight,when:t,primary:this._kbOpts.primary,secondary:this._kbOpts.secondary,win:this._kbOpts.win,linux:this._kbOpts.linux,mac:this._kbOpts.mac,description:this._description})}else ir.registerCommand({id:this.id,handler:function(t,n){return e.runCommand(t,n)},description:this._description})},e}(),Ar=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Nr(t,e),t.bindToContribution=function(e){return function(t){function n(e){var n=t.call(this,e)||this;return n._callback=e.handler,n}return Nr(n,t),n.prototype.runEditorCommand=function(t,n,r){e(n)&&this._callback(e(n),r)},n}(t)},t.prototype.runCommand=function(e,t){var n=this,r=e.get(xt),i=r.getFocusedCodeEditor()||r.getActiveCodeEditor();if(i)return i.invokeWithinContext((function(e){if(e.get(Kn).contextMatchesRules(ze(n.precondition)))return n.runEditorCommand(e,i,t)}))},t}(Or),Ir=function(e){function t(t){var n=e.call(this,t)||this;return n.label=t.label,n.alias=t.alias,n.menuOpts=t.menuOpts,n}return Nr(t,e),t.prototype.register=function(){this.menuOpts&&dr.appendMenuItem(7,{command:{id:this.id,title:this.label},when:Rn.and(this.precondition,this.menuOpts.when),group:this.menuOpts.group,order:this.menuOpts.order}),e.prototype.register.call(this)},t.prototype.runEditorCommand=function(e,t,n){return this.reportTelemetry(e,t),this.run(e,t,n||{})},t.prototype.reportTelemetry=function(e,t){e.get(Tr).publicLog2("editorActionInvoked",{name:this.label,id:this.id})},t}(Ar);function Pr(e){return Fr.INSTANCE.registerEditorCommand(e),e}function Rr(e){Fr.INSTANCE.registerEditorAction(new e)}!function(e){e.getEditorCommand=function(e){return Fr.INSTANCE.getEditorCommand(e)},e.getEditorActions=function(){return Fr.INSTANCE.getEditorActions()},e.getEditorContributions=function(){return Fr.INSTANCE.getEditorContributions()}}(Er||(Er={}));var Fr=function(){function e(){this.editorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null)}return e.prototype.registerEditorContribution=function(e){this.editorContributions.push(e)},e.prototype.registerEditorAction=function(e){e.register(),this.editorActions.push(e)},e.prototype.getEditorContributions=function(){return this.editorContributions.slice(0)},e.prototype.getEditorActions=function(){return this.editorActions.slice(0)},e.prototype.registerEditorCommand=function(e){e.register(),this.editorCommands[e.id]=e},e.prototype.getEditorCommand=function(e){return this.editorCommands[e]||null},e.INSTANCE=new e,e}();kr.add("editor.contributions",Fr.INSTANCE);var Yr=function(){function e(e,t,n,r){e>n||e===n&&t>r?(this.startLineNumber=n,this.startColumn=r,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=r)}return e.prototype.isEmpty=function(){return e.isEmpty(this)},e.isEmpty=function(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn},e.prototype.containsPosition=function(t){return e.containsPosition(this,t)},e.containsPosition=function(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber)&&(!(t.lineNumber===e.startLineNumber&&t.column<e.startColumn)&&!(t.lineNumber===e.endLineNumber&&t.column>e.endColumn))},e.prototype.containsRange=function(t){return e.containsRange(this,t)},e.containsRange=function(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber)&&(!(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumn<e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>e.endColumn)))},e.prototype.strictContainsRange=function(t){return e.strictContainsRange(this,t)},e.strictContainsRange=function(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber)&&(!(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)))},e.prototype.plusRange=function(t){return e.plusRange(this,t)},e.plusRange=function(t,n){var r,i,o,s;return n.startLineNumber<t.startLineNumber?(r=n.startLineNumber,i=n.startColumn):n.startLineNumber===t.startLineNumber?(r=n.startLineNumber,i=Math.min(n.startColumn,t.startColumn)):(r=t.startLineNumber,i=t.startColumn),n.endLineNumber>t.endLineNumber?(o=n.endLineNumber,s=n.endColumn):n.endLineNumber===t.endLineNumber?(o=n.endLineNumber,s=Math.max(n.endColumn,t.endColumn)):(o=t.endLineNumber,s=t.endColumn),new e(r,i,o,s)},e.prototype.intersectRanges=function(t){return e.intersectRanges(this,t)},e.intersectRanges=function(t,n){var r=t.startLineNumber,i=t.startColumn,o=t.endLineNumber,s=t.endColumn,a=n.startLineNumber,u=n.startColumn,l=n.endLineNumber,c=n.endColumn;return r<a?(r=a,i=u):r===a&&(i=Math.max(i,u)),o>l?(o=l,s=c):o===l&&(s=Math.min(s,c)),r>o?null:r===o&&i>s?null:new e(r,i,o,s)},e.prototype.equalsRange=function(t){return e.equalsRange(this,t)},e.equalsRange=function(e,t){return!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn},e.prototype.getEndPosition=function(){return new Lt(this.endLineNumber,this.endColumn)},e.prototype.getStartPosition=function(){return new Lt(this.startLineNumber,this.startColumn)},e.prototype.toString=function(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"},e.prototype.setEndPosition=function(t,n){return new e(this.startLineNumber,this.startColumn,t,n)},e.prototype.setStartPosition=function(t,n){return new e(t,n,this.endLineNumber,this.endColumn)},e.prototype.collapseToStart=function(){return e.collapseToStart(this)},e.collapseToStart=function(t){return new e(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)},e.fromPositions=function(t,n){return void 0===n&&(n=t),new e(t.lineNumber,t.column,n.lineNumber,n.column)},e.lift=function(t){return t?new e(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):null},e.isIRange=function(e){return e&&"number"==typeof e.startLineNumber&&"number"==typeof e.startColumn&&"number"==typeof e.endLineNumber&&"number"==typeof e.endColumn},e.areIntersectingOrTouching=function(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<t.startColumn)&&!(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<e.startColumn)},e.areIntersecting=function(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<=t.startColumn)&&!(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<=e.startColumn)},e.compareRangesUsingStarts=function(e,t){if(e&&t){var n=0|e.startLineNumber,r=0|t.startLineNumber;if(n===r){var i=0|e.startColumn,o=0|t.startColumn;if(i===o){var s=0|e.endLineNumber,a=0|t.endLineNumber;return s===a?(0|e.endColumn)-(0|t.endColumn):s-a}return i-o}return n-r}return(e?1:0)-(t?1:0)},e.compareRangesUsingEnds=function(e,t){return e.endLineNumber===t.endLineNumber?e.endColumn===t.endColumn?e.startLineNumber===t.startLineNumber?e.startColumn-t.startColumn:e.startLineNumber-t.startLineNumber:e.endColumn-t.endColumn:e.endLineNumber-t.endLineNumber},e.spansMultipleLines=function(e){return e.endLineNumber>e.startLineNumber},e}(),jr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Br=function(e){function t(t,n,r,i){var o=e.call(this,t,n,r,i)||this;return o.selectionStartLineNumber=t,o.selectionStartColumn=n,o.positionLineNumber=r,o.positionColumn=i,o}return jr(t,e),t.prototype.clone=function(){return new t(this.selectionStartLineNumber,this.selectionStartColumn,this.positionLineNumber,this.positionColumn)},t.prototype.toString=function(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"},t.prototype.equalsSelection=function(e){return t.selectionsEqual(this,e)},t.selectionsEqual=function(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn},t.prototype.getDirection=function(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1},t.prototype.setEndPosition=function(e,n){return 0===this.getDirection()?new t(this.startLineNumber,this.startColumn,e,n):new t(e,n,this.startLineNumber,this.startColumn)},t.prototype.getPosition=function(){return new Lt(this.positionLineNumber,this.positionColumn)},t.prototype.setStartPosition=function(e,n){return 0===this.getDirection()?new t(e,n,this.endLineNumber,this.endColumn):new t(this.endLineNumber,this.endColumn,e,n)},t.fromPositions=function(e,n){return void 0===n&&(n=e),new t(e.lineNumber,e.column,n.lineNumber,n.column)},t.liftSelection=function(e){return new t(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)},t.selectionsArrEqual=function(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(var n=0,r=e.length;n<r;n++)if(!this.selectionsEqual(e[n],t[n]))return!1;return!0},t.isISelection=function(e){return e&&"number"==typeof e.selectionStartLineNumber&&"number"==typeof e.selectionStartColumn&&"number"==typeof e.positionLineNumber&&"number"==typeof e.positionColumn},t.createWithDirection=function(e,n,r,i,o){return 0===o?new t(e,n,r,i):new t(r,i,e,n)},t}(Yr);function Wr(e,t){return void 0===t&&(t=0),e[e.length-(1+t)]}function Hr(e,t,n){if(void 0===n&&(n=function(e,t){return e===t}),e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(var r=0,i=e.length;r<i;r++)if(!n(e[r],t[r]))return!1;return!0}function Vr(e,t){return function e(t,n,r,i,o){if(i<=r)return;var s=r+(i-r)/2|0;if(e(t,n,r,s,o),e(t,n,s+1,i,o),n(t[s],t[s+1])<=0)return;!function(e,t,n,r,i,o){for(var s=n,a=r+1,u=n;u<=i;u++)o[u]=e[u];for(u=n;u<=i;u++)s>r?e[u]=o[a++]:a>i?e[u]=o[s++]:t(o[a],o[s])<0?e[u]=o[a++]:e[u]=o[s++]}(t,n,r,s,i,o)}(e,t,0,e.length-1,[]),e}function zr(e,t){if(!t)return e.filter((function(t,n){return e.indexOf(t)===n}));var n=Object.create(null);return e.filter((function(e){var r=t(e);return!n[r]&&(n[r]=!0,!0)}))}function Ur(e){var t=new Set;return e.filter((function(e){return!t.has(e)&&(t.add(e),!0)}))}function qr(e,t){for(var n=0;n<e.length;n++){if(t(e[n]))return n}return-1}function Kr(e,t,n){void 0===n&&(n=void 0);var r=qr(e,t);return r<0?n:e[r]}function Gr(e,t){var n="number"==typeof t?e:0;"number"==typeof t?n=e:(n=0,t=e);var r=[];if(n<=t)for(var i=n;i<t;i++)r.push(i);else for(i=n;i>t;i--)r.push(i);return r}function $r(e,t,n){var r=e.slice(0,t),i=e.slice(t);return r.concat(n,i)}function Zr(e){if(!e||"object"!=typeof e)return e;if(e instanceof RegExp)return e;var t=Array.isArray(e)?[]:{};return Object.keys(e).forEach((function(n){e[n]&&"object"==typeof e[n]?t[n]=Zr(e[n]):t[n]=e[n]})),t}var Xr=Object.prototype.hasOwnProperty;function Jr(e,t,n){return void 0===n&&(n=!0),Oe(e)?(Oe(t)&&Object.keys(t).forEach((function(r){r in e?n&&(Oe(e[r])&&Oe(t[r])?Jr(e[r],t[r],n):e[r]=t[r]):e[r]=t[r]})),e):t}function Qr(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(typeof e!=typeof t)return!1;if("object"!=typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;var n,r;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(!Qr(e[n],t[n]))return!1}else{var i=[];for(r in e)i.push(r);i.sort();var o=[];for(r in t)o.push(r);if(o.sort(),!Qr(i,o))return!1;for(n=0;n<i.length;n++)if(!Qr(e[i[n]],t[i[n]]))return!1}return!0}function ei(e,t,n){var r=t(e);return void 0===r?n:r}var ti="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";var ni=function(e){void 0===e&&(e="");for(var t="(-?\\d*\\.\\d\\w*)|([^",n=0,r=ti;n<r.length;n++){var i=r[n];e.indexOf(i)>=0||(t+="\\"+i)}return t+="\\s]+)",new RegExp(t,"g")}();function ri(e){var t=ni;if(e&&e instanceof RegExp)if(e.global)t=e;else{var n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}function ii(e,t,n,r){t.lastIndex=0;var i=t.exec(n);if(!i)return null;var o=i[0].indexOf(" ")>=0?function(e,t,n,r){var i,o=e-1-r;for(t.lastIndex=0;i=t.exec(n);){var s=i.index||0;if(s>o)return null;if(t.lastIndex>=o)return{word:i[0],startColumn:r+1+s,endColumn:r+1+t.lastIndex}}return null}(e,t,n,r):function(e,t,n,r){var i,o=e-1-r,s=n.lastIndexOf(" ",o-1)+1;for(t.lastIndex=s;i=t.exec(n);){var a=i.index||0;if(a<=o&&t.lastIndex>=o)return{word:i[0],startColumn:r+1+a,endColumn:r+1+t.lastIndex}}return null}(e,t,n,r);return t.lastIndex=0,o}var oi,si=function(){return(si=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};!function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"}(oi||(oi={}));var ai=function(){function e(e){this.canUseLayerHinting=e.canUseLayerHinting,this.pixelRatio=e.pixelRatio,this.editorClassName=e.editorClassName,this.lineHeight=0|e.lineHeight,this.readOnly=e.readOnly,this.accessibilitySupport=e.accessibilitySupport,this.multiCursorModifier=e.multiCursorModifier,this.multiCursorMergeOverlapping=e.multiCursorMergeOverlapping,this.wordSeparators=e.wordSeparators,this.autoClosingBrackets=e.autoClosingBrackets,this.autoClosingQuotes=e.autoClosingQuotes,this.autoClosingOvertype=e.autoClosingOvertype,this.autoSurround=e.autoSurround,this.autoIndent=e.autoIndent,this.useTabStops=e.useTabStops,this.tabFocusMode=e.tabFocusMode,this.dragAndDrop=e.dragAndDrop,this.emptySelectionClipboard=e.emptySelectionClipboard,this.copyWithSyntaxHighlighting=e.copyWithSyntaxHighlighting,this.layoutInfo=e.layoutInfo,this.fontInfo=e.fontInfo,this.viewInfo=e.viewInfo,this.wrappingInfo=e.wrappingInfo,this.contribInfo=e.contribInfo,this.showUnused=e.showUnused}return e.prototype.equals=function(t){return this.canUseLayerHinting===t.canUseLayerHinting&&this.pixelRatio===t.pixelRatio&&this.editorClassName===t.editorClassName&&this.lineHeight===t.lineHeight&&this.readOnly===t.readOnly&&this.accessibilitySupport===t.accessibilitySupport&&this.multiCursorModifier===t.multiCursorModifier&&this.multiCursorMergeOverlapping===t.multiCursorMergeOverlapping&&this.wordSeparators===t.wordSeparators&&this.autoClosingBrackets===t.autoClosingBrackets&&this.autoClosingQuotes===t.autoClosingQuotes&&this.autoClosingOvertype===t.autoClosingOvertype&&this.autoSurround===t.autoSurround&&this.autoIndent===t.autoIndent&&this.useTabStops===t.useTabStops&&this.tabFocusMode===t.tabFocusMode&&this.dragAndDrop===t.dragAndDrop&&this.showUnused===t.showUnused&&this.emptySelectionClipboard===t.emptySelectionClipboard&&this.copyWithSyntaxHighlighting===t.copyWithSyntaxHighlighting&&e._equalsLayoutInfo(this.layoutInfo,t.layoutInfo)&&this.fontInfo.equals(t.fontInfo)&&e._equalsViewOptions(this.viewInfo,t.viewInfo)&&e._equalsWrappingInfo(this.wrappingInfo,t.wrappingInfo)&&e._equalsContribOptions(this.contribInfo,t.contribInfo)},e.prototype.createChangeEvent=function(t){return{canUseLayerHinting:this.canUseLayerHinting!==t.canUseLayerHinting,pixelRatio:this.pixelRatio!==t.pixelRatio,editorClassName:this.editorClassName!==t.editorClassName,lineHeight:this.lineHeight!==t.lineHeight,readOnly:this.readOnly!==t.readOnly,accessibilitySupport:this.accessibilitySupport!==t.accessibilitySupport,multiCursorModifier:this.multiCursorModifier!==t.multiCursorModifier,multiCursorMergeOverlapping:this.multiCursorMergeOverlapping!==t.multiCursorMergeOverlapping,wordSeparators:this.wordSeparators!==t.wordSeparators,autoClosingBrackets:this.autoClosingBrackets!==t.autoClosingBrackets,autoClosingQuotes:this.autoClosingQuotes!==t.autoClosingQuotes,autoClosingOvertype:this.autoClosingOvertype!==t.autoClosingOvertype,autoSurround:this.autoSurround!==t.autoSurround,autoIndent:this.autoIndent!==t.autoIndent,useTabStops:this.useTabStops!==t.useTabStops,tabFocusMode:this.tabFocusMode!==t.tabFocusMode,dragAndDrop:this.dragAndDrop!==t.dragAndDrop,emptySelectionClipboard:this.emptySelectionClipboard!==t.emptySelectionClipboard,copyWithSyntaxHighlighting:this.copyWithSyntaxHighlighting!==t.copyWithSyntaxHighlighting,layoutInfo:!e._equalsLayoutInfo(this.layoutInfo,t.layoutInfo),fontInfo:!this.fontInfo.equals(t.fontInfo),viewInfo:!e._equalsViewOptions(this.viewInfo,t.viewInfo),wrappingInfo:!e._equalsWrappingInfo(this.wrappingInfo,t.wrappingInfo),contribInfo:!e._equalsContribOptions(this.contribInfo,t.contribInfo)}},e._equalsLayoutInfo=function(e,t){return e.width===t.width&&e.height===t.height&&e.glyphMarginLeft===t.glyphMarginLeft&&e.glyphMarginWidth===t.glyphMarginWidth&&e.glyphMarginHeight===t.glyphMarginHeight&&e.lineNumbersLeft===t.lineNumbersLeft&&e.lineNumbersWidth===t.lineNumbersWidth&&e.lineNumbersHeight===t.lineNumbersHeight&&e.decorationsLeft===t.decorationsLeft&&e.decorationsWidth===t.decorationsWidth&&e.decorationsHeight===t.decorationsHeight&&e.contentLeft===t.contentLeft&&e.contentWidth===t.contentWidth&&e.contentHeight===t.contentHeight&&e.renderMinimap===t.renderMinimap&&e.minimapLeft===t.minimapLeft&&e.minimapWidth===t.minimapWidth&&e.viewportColumn===t.viewportColumn&&e.verticalScrollbarWidth===t.verticalScrollbarWidth&&e.horizontalScrollbarHeight===t.horizontalScrollbarHeight&&this._equalsOverviewRuler(e.overviewRuler,t.overviewRuler)},e._equalsOverviewRuler=function(e,t){return e.width===t.width&&e.height===t.height&&e.top===t.top&&e.right===t.right},e._equalsViewOptions=function(e,t){return e.extraEditorClassName===t.extraEditorClassName&&e.disableMonospaceOptimizations===t.disableMonospaceOptimizations&&Hr(e.rulers,t.rulers)&&e.ariaLabel===t.ariaLabel&&e.renderLineNumbers===t.renderLineNumbers&&e.renderCustomLineNumbers===t.renderCustomLineNumbers&&e.cursorSurroundingLines===t.cursorSurroundingLines&&e.renderFinalNewline===t.renderFinalNewline&&e.selectOnLineNumbers===t.selectOnLineNumbers&&e.glyphMargin===t.glyphMargin&&e.revealHorizontalRightPadding===t.revealHorizontalRightPadding&&e.roundedSelection===t.roundedSelection&&e.overviewRulerLanes===t.overviewRulerLanes&&e.overviewRulerBorder===t.overviewRulerBorder&&e.cursorBlinking===t.cursorBlinking&&e.mouseWheelZoom===t.mouseWheelZoom&&e.cursorSmoothCaretAnimation===t.cursorSmoothCaretAnimation&&e.cursorStyle===t.cursorStyle&&e.cursorWidth===t.cursorWidth&&e.hideCursorInOverviewRuler===t.hideCursorInOverviewRuler&&e.scrollBeyondLastLine===t.scrollBeyondLastLine&&e.scrollBeyondLastColumn===t.scrollBeyondLastColumn&&e.smoothScrolling===t.smoothScrolling&&e.stopRenderingLineAfter===t.stopRenderingLineAfter&&e.renderWhitespace===t.renderWhitespace&&e.renderControlCharacters===t.renderControlCharacters&&e.fontLigatures===t.fontLigatures&&e.renderIndentGuides===t.renderIndentGuides&&e.highlightActiveIndentGuide===t.highlightActiveIndentGuide&&e.renderLineHighlight===t.renderLineHighlight&&this._equalsScrollbarOptions(e.scrollbar,t.scrollbar)&&this._equalsMinimapOptions(e.minimap,t.minimap)&&e.fixedOverflowWidgets===t.fixedOverflowWidgets},e._equalsScrollbarOptions=function(e,t){return e.arrowSize===t.arrowSize&&e.vertical===t.vertical&&e.horizontal===t.horizontal&&e.useShadows===t.useShadows&&e.verticalHasArrows===t.verticalHasArrows&&e.horizontalHasArrows===t.horizontalHasArrows&&e.handleMouseWheel===t.handleMouseWheel&&e.horizontalScrollbarSize===t.horizontalScrollbarSize&&e.horizontalSliderSize===t.horizontalSliderSize&&e.verticalScrollbarSize===t.verticalScrollbarSize&&e.verticalSliderSize===t.verticalSliderSize&&e.mouseWheelScrollSensitivity===t.mouseWheelScrollSensitivity&&e.fastScrollSensitivity===t.fastScrollSensitivity},e._equalsMinimapOptions=function(e,t){return e.enabled===t.enabled&&e.side===t.side&&e.showSlider===t.showSlider&&e.renderCharacters===t.renderCharacters&&e.maxColumn===t.maxColumn},e._equalFindOptions=function(e,t){return e.seedSearchStringFromSelection===t.seedSearchStringFromSelection&&e.autoFindInSelection===t.autoFindInSelection&&e.globalFindClipboard===t.globalFindClipboard&&e.addExtraSpaceOnTop===t.addExtraSpaceOnTop},e._equalsParameterHintOptions=function(e,t){return e.enabled===t.enabled&&e.cycle===t.cycle},e._equalsHoverOptions=function(e,t){return e.enabled===t.enabled&&e.delay===t.delay&&e.sticky===t.sticky},e._equalsSuggestOptions=function(e,t){return e===t||!(!e||!t)&&(e.filterGraceful===t.filterGraceful&&e.snippets===t.snippets&&e.snippetsPreventQuickSuggestions===t.snippetsPreventQuickSuggestions&&e.localityBonus===t.localityBonus&&e.shareSuggestSelections===t.shareSuggestSelections&&e.showIcons===t.showIcons&&e.maxVisibleSuggestions===t.maxVisibleSuggestions&&Qr(e.filteredTypes,t.filteredTypes))},e._equalsGotoLocationOptions=function(e,t){return e===t||!(!e||!t)&&e.multiple===t.multiple},e._equalsWrappingInfo=function(e,t){return e.inDiffEditor===t.inDiffEditor&&e.isDominatedByLongLines===t.isDominatedByLongLines&&e.isWordWrapMinified===t.isWordWrapMinified&&e.isViewportWrapping===t.isViewportWrapping&&e.wrappingColumn===t.wrappingColumn&&e.wrappingIndent===t.wrappingIndent&&e.wordWrapBreakBeforeCharacters===t.wordWrapBreakBeforeCharacters&&e.wordWrapBreakAfterCharacters===t.wordWrapBreakAfterCharacters&&e.wordWrapBreakObtrusiveCharacters===t.wordWrapBreakObtrusiveCharacters},e._equalsContribOptions=function(t,n){return t.selectionClipboard===n.selectionClipboard&&this._equalsHoverOptions(t.hover,n.hover)&&t.links===n.links&&t.contextmenu===n.contextmenu&&e._equalsQuickSuggestions(t.quickSuggestions,n.quickSuggestions)&&t.quickSuggestionsDelay===n.quickSuggestionsDelay&&this._equalsParameterHintOptions(t.parameterHints,n.parameterHints)&&t.formatOnType===n.formatOnType&&t.formatOnPaste===n.formatOnPaste&&t.suggestOnTriggerCharacters===n.suggestOnTriggerCharacters&&t.acceptSuggestionOnEnter===n.acceptSuggestionOnEnter&&t.acceptSuggestionOnCommitCharacter===n.acceptSuggestionOnCommitCharacter&&t.wordBasedSuggestions===n.wordBasedSuggestions&&t.suggestSelection===n.suggestSelection&&t.suggestFontSize===n.suggestFontSize&&t.suggestLineHeight===n.suggestLineHeight&&t.tabCompletion===n.tabCompletion&&this._equalsSuggestOptions(t.suggest,n.suggest)&&e._equalsGotoLocationOptions(t.gotoLocation,n.gotoLocation)&&t.selectionHighlight===n.selectionHighlight&&t.occurrencesHighlight===n.occurrencesHighlight&&t.codeLens===n.codeLens&&t.folding===n.folding&&t.foldingStrategy===n.foldingStrategy&&t.showFoldingControls===n.showFoldingControls&&t.matchBrackets===n.matchBrackets&&this._equalFindOptions(t.find,n.find)&&t.colorDecorators===n.colorDecorators&&Qr(t.codeActionsOnSave,n.codeActionsOnSave)&&t.codeActionsOnSaveTimeout===n.codeActionsOnSaveTimeout&&t.lightbulbEnabled===n.lightbulbEnabled},e._equalsQuickSuggestions=function(e,t){return"boolean"==typeof e?"boolean"==typeof t&&e===t:"boolean"!=typeof t&&(e.comments===t.comments&&e.other===t.other&&e.strings===t.strings)},e}();function ui(e,t){return void 0===e?t:"false"!==e&&Boolean(e)}function li(e,t){if(!e)return t;for(var n=Object.create(null),r=0,i=Object.keys(e);r<i.length;r++){var o=i[r],s=e[o];"boolean"==typeof s&&(n[o]=s)}return n}function ci(e,t){return"string"!=typeof e?t:e}function di(e,t,n){return"string"!=typeof e?t:-1===n.indexOf(e)?t:e}function hi(e,t,n,r){var i;return void 0===e?i=t:(i=parseInt(e,10),isNaN(i)&&(i=t)),i=Math.max(n,i),0|(i=Math.min(r,i))}function fi(e,t){var n=parseFloat(e);return isNaN(n)&&(n=t),n}function pi(e,t){if("string"!=typeof e)return t;switch(e){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"visible":case"solid":return 5}return 1}function gi(e,t){if("string"!=typeof e)return t;switch(e){case"hidden":return 2;case"visible":return 3;default:return 1}}var mi,_i,yi=function(){function e(){}return e.validate=function(e,t){var n=e.wordWrap;!0===n?n="on":!1===n&&(n="off"),n=di(n,t.wordWrap,["off","on","wordWrapColumn","bounded"]);var r=this._sanitizeViewInfo(e,t.viewInfo),i=this._sanitizeContribInfo(e,t.contribInfo),o=void 0;"string"==typeof e.multiCursorModifier&&(o="ctrlCmd"===e.multiCursorModifier?nt.d?"metaKey":"ctrlKey":"altKey");var s,a,u,l,c,d=di(o,t.multiCursorModifier,["altKey","metaKey","ctrlKey"]);return"boolean"==typeof e.autoClosingBrackets&&!1===e.autoClosingBrackets?(s="never",a="never",u="never"):(s=di(e.autoClosingBrackets,t.autoClosingBrackets,["always","languageDefined","beforeWhitespace","never"]),a=di(e.autoClosingQuotes,t.autoClosingQuotes,["always","languageDefined","beforeWhitespace","never"]),u=di(e.autoSurround,t.autoSurround,["languageDefined","brackets","quotes","never"])),{inDiffEditor:ui(e.inDiffEditor,t.inDiffEditor),wordSeparators:ci(e.wordSeparators,t.wordSeparators),lineNumbersMinChars:hi(e.lineNumbersMinChars,t.lineNumbersMinChars,1,10),lineDecorationsWidth:void 0===e.lineDecorationsWidth?t.lineDecorationsWidth:e.lineDecorationsWidth,readOnly:ui(e.readOnly,t.readOnly),mouseStyle:di(e.mouseStyle,t.mouseStyle,["text","default","copy"]),disableLayerHinting:ui(e.disableLayerHinting,t.disableLayerHinting),automaticLayout:ui(e.automaticLayout,t.automaticLayout),wordWrap:n,wordWrapColumn:hi(e.wordWrapColumn,t.wordWrapColumn,1,1073741824),wordWrapMinified:ui(e.wordWrapMinified,t.wordWrapMinified),wrappingIndent:(l=e.wrappingIndent,c=t.wrappingIndent,"string"!=typeof l?c:"same"===l?1:"indent"===l?2:"deepIndent"===l?3:0),wordWrapBreakBeforeCharacters:ci(e.wordWrapBreakBeforeCharacters,t.wordWrapBreakBeforeCharacters),wordWrapBreakAfterCharacters:ci(e.wordWrapBreakAfterCharacters,t.wordWrapBreakAfterCharacters),wordWrapBreakObtrusiveCharacters:ci(e.wordWrapBreakObtrusiveCharacters,t.wordWrapBreakObtrusiveCharacters),autoClosingBrackets:s,autoClosingQuotes:a,autoClosingOvertype:di(e.autoClosingOvertype,t.autoClosingOvertype,["always","auto","never"]),autoSurround:u,autoIndent:ui(e.autoIndent,t.autoIndent),dragAndDrop:ui(e.dragAndDrop,t.dragAndDrop),emptySelectionClipboard:ui(e.emptySelectionClipboard,t.emptySelectionClipboard),copyWithSyntaxHighlighting:ui(e.copyWithSyntaxHighlighting,t.copyWithSyntaxHighlighting),useTabStops:ui(e.useTabStops,t.useTabStops),multiCursorModifier:d,multiCursorMergeOverlapping:ui(e.multiCursorMergeOverlapping,t.multiCursorMergeOverlapping),accessibilitySupport:di(e.accessibilitySupport,t.accessibilitySupport,["auto","on","off"]),showUnused:ui(e.showUnused,t.showUnused),viewInfo:r,contribInfo:i}},e._sanitizeScrollbarOpts=function(e,t,n,r){if("object"!=typeof e)return t;var i=hi(e.horizontalScrollbarSize,t.horizontalScrollbarSize,0,1e3),o=hi(e.verticalScrollbarSize,t.verticalScrollbarSize,0,1e3);return{vertical:gi(e.vertical,t.vertical),horizontal:gi(e.horizontal,t.horizontal),arrowSize:hi(e.arrowSize,t.arrowSize,0,1e3),useShadows:ui(e.useShadows,t.useShadows),verticalHasArrows:ui(e.verticalHasArrows,t.verticalHasArrows),horizontalHasArrows:ui(e.horizontalHasArrows,t.horizontalHasArrows),horizontalScrollbarSize:i,horizontalSliderSize:hi(e.horizontalSliderSize,i,0,1e3),verticalScrollbarSize:o,verticalSliderSize:hi(e.verticalSliderSize,o,0,1e3),handleMouseWheel:ui(e.handleMouseWheel,t.handleMouseWheel),mouseWheelScrollSensitivity:n,fastScrollSensitivity:r}},e._sanitizeMinimapOpts=function(e,t){return"object"!=typeof e?t:{enabled:ui(e.enabled,t.enabled),side:di(e.side,t.side,["right","left"]),showSlider:di(e.showSlider,t.showSlider,["always","mouseover"]),renderCharacters:ui(e.renderCharacters,t.renderCharacters),maxColumn:hi(e.maxColumn,t.maxColumn,1,1e4)}},e._sanitizeFindOpts=function(e,t){return"object"!=typeof e?t:{seedSearchStringFromSelection:ui(e.seedSearchStringFromSelection,t.seedSearchStringFromSelection),autoFindInSelection:ui(e.autoFindInSelection,t.autoFindInSelection),globalFindClipboard:ui(e.globalFindClipboard,t.globalFindClipboard),addExtraSpaceOnTop:ui(e.addExtraSpaceOnTop,t.addExtraSpaceOnTop)}},e._sanitizeParameterHintOpts=function(e,t){return"object"!=typeof e?t:{enabled:ui(e.enabled,t.enabled),cycle:ui(e.cycle,t.cycle)}},e._sanitizeHoverOpts=function(e,t){var n;if("boolean"==typeof e)n={enabled:e};else{if("object"!=typeof e)return t;n=e}return{enabled:ui(n.enabled,t.enabled),delay:hi(n.delay,t.delay,0,1e4),sticky:ui(n.sticky,t.sticky)}},e._sanitizeSuggestOpts=function(e,t){var n=e.suggest||{};return{filterGraceful:ui(n.filterGraceful,t.filterGraceful),snippets:di(e.snippetSuggestions,t.snippets,["top","bottom","inline","none"]),snippetsPreventQuickSuggestions:ui(n.snippetsPreventQuickSuggestions,t.filterGraceful),localityBonus:ui(n.localityBonus,t.localityBonus),shareSuggestSelections:ui(n.shareSuggestSelections,t.shareSuggestSelections),showIcons:ui(n.showIcons,t.showIcons),maxVisibleSuggestions:hi(n.maxVisibleSuggestions,t.maxVisibleSuggestions,1,15),filteredTypes:Oe(n.filteredTypes)?n.filteredTypes:Object.create(null)}},e._sanitizeGotoLocationOpts=function(e,t){return{multiple:di((e.gotoLocation||{}).multiple,t.multiple,["peek","gotoAndPeek","goto"])}},e._sanitizeTabCompletionOpts=function(e,t){return!1===e?"off":!0===e?"onlySnippets":di(e,t,["on","off","onlySnippets"])},e._sanitizeViewInfo=function(e,t){var n=[];if(Array.isArray(e.rulers)){for(var r=0,i=e.rulers.length;r<i;r++)n.push(hi(e.rulers[r],0,0,1e4));n.sort()}var o=t.renderLineNumbers,s=t.renderCustomLineNumbers;if(void 0!==e.lineNumbers){var a=e.lineNumbers;!0===a?a="on":!1===a&&(a="off"),"function"==typeof a?(o=4,s=a):o="interval"===a?3:"relative"===a?2:"on"===a?1:0}var u=ui(e.fontLigatures,t.fontLigatures),l=ui(e.disableMonospaceOptimizations,t.disableMonospaceOptimizations)||u,c=e.renderWhitespace;!0===c?c="boundary":!1===c&&(c="none"),c=di(c,t.renderWhitespace,["none","boundary","selection","all"]);var d=e.renderLineHighlight;!0===d?d="line":!1===d&&(d="none"),d=di(d,t.renderLineHighlight,["none","gutter","line","all"]);var h=fi(e.mouseWheelScrollSensitivity,t.scrollbar.mouseWheelScrollSensitivity);0===h&&(h=1);var f=fi(e.fastScrollSensitivity,t.scrollbar.fastScrollSensitivity);f<=0&&(f=t.scrollbar.fastScrollSensitivity);var p,g,m=this._sanitizeScrollbarOpts(e.scrollbar,t.scrollbar,h,f),_=this._sanitizeMinimapOpts(e.minimap,t.minimap);return{extraEditorClassName:ci(e.extraEditorClassName,t.extraEditorClassName),disableMonospaceOptimizations:l,rulers:n,ariaLabel:ci(e.ariaLabel,t.ariaLabel),cursorSurroundingLines:hi(e.cursorSurroundingLines,t.cursorWidth,0,Number.MAX_VALUE),renderLineNumbers:o,renderCustomLineNumbers:s,renderFinalNewline:ui(e.renderFinalNewline,t.renderFinalNewline),selectOnLineNumbers:ui(e.selectOnLineNumbers,t.selectOnLineNumbers),glyphMargin:ui(e.glyphMargin,t.glyphMargin),revealHorizontalRightPadding:hi(e.revealHorizontalRightPadding,t.revealHorizontalRightPadding,0,1e3),roundedSelection:ui(e.roundedSelection,t.roundedSelection),overviewRulerLanes:hi(e.overviewRulerLanes,t.overviewRulerLanes,0,3),overviewRulerBorder:ui(e.overviewRulerBorder,t.overviewRulerBorder),cursorBlinking:pi(e.cursorBlinking,t.cursorBlinking),mouseWheelZoom:ui(e.mouseWheelZoom,t.mouseWheelZoom),cursorSmoothCaretAnimation:ui(e.cursorSmoothCaretAnimation,t.cursorSmoothCaretAnimation),cursorStyle:(p=e.cursorStyle,g=t.cursorStyle,"string"!=typeof p?g:"line"===p?oi.Line:"block"===p?oi.Block:"underline"===p?oi.Underline:"line-thin"===p?oi.LineThin:"block-outline"===p?oi.BlockOutline:"underline-thin"===p?oi.UnderlineThin:oi.Line),cursorWidth:hi(e.cursorWidth,t.cursorWidth,0,Number.MAX_VALUE),hideCursorInOverviewRuler:ui(e.hideCursorInOverviewRuler,t.hideCursorInOverviewRuler),scrollBeyondLastLine:ui(e.scrollBeyondLastLine,t.scrollBeyondLastLine),scrollBeyondLastColumn:hi(e.scrollBeyondLastColumn,t.scrollBeyondLastColumn,0,1073741824),smoothScrolling:ui(e.smoothScrolling,t.smoothScrolling),stopRenderingLineAfter:hi(e.stopRenderingLineAfter,t.stopRenderingLineAfter,-1,1073741824),renderWhitespace:c,renderControlCharacters:ui(e.renderControlCharacters,t.renderControlCharacters),fontLigatures:u,renderIndentGuides:ui(e.renderIndentGuides,t.renderIndentGuides),highlightActiveIndentGuide:ui(e.highlightActiveIndentGuide,t.highlightActiveIndentGuide),renderLineHighlight:d,scrollbar:m,minimap:_,fixedOverflowWidgets:ui(e.fixedOverflowWidgets,t.fixedOverflowWidgets)}},e._sanitizeContribInfo=function(e,t){var n;n="object"==typeof e.quickSuggestions?si({other:!0},e.quickSuggestions):ui(e.quickSuggestions,t.quickSuggestions),"boolean"==typeof e.acceptSuggestionOnEnter&&(e.acceptSuggestionOnEnter=e.acceptSuggestionOnEnter?"on":"off");var r=this._sanitizeFindOpts(e.find,t.find);return{selectionClipboard:ui(e.selectionClipboard,t.selectionClipboard),hover:this._sanitizeHoverOpts(e.hover,t.hover),links:ui(e.links,t.links),contextmenu:ui(e.contextmenu,t.contextmenu),quickSuggestions:n,quickSuggestionsDelay:hi(e.quickSuggestionsDelay,t.quickSuggestionsDelay,-1073741824,1073741824),parameterHints:this._sanitizeParameterHintOpts(e.parameterHints,t.parameterHints),formatOnType:ui(e.formatOnType,t.formatOnType),formatOnPaste:ui(e.formatOnPaste,t.formatOnPaste),suggestOnTriggerCharacters:ui(e.suggestOnTriggerCharacters,t.suggestOnTriggerCharacters),acceptSuggestionOnEnter:di(e.acceptSuggestionOnEnter,t.acceptSuggestionOnEnter,["on","smart","off"]),acceptSuggestionOnCommitCharacter:ui(e.acceptSuggestionOnCommitCharacter,t.acceptSuggestionOnCommitCharacter),wordBasedSuggestions:ui(e.wordBasedSuggestions,t.wordBasedSuggestions),suggestSelection:di(e.suggestSelection,t.suggestSelection,["first","recentlyUsed","recentlyUsedByPrefix"]),suggestFontSize:hi(e.suggestFontSize,t.suggestFontSize,0,1e3),suggestLineHeight:hi(e.suggestLineHeight,t.suggestLineHeight,0,1e3),tabCompletion:this._sanitizeTabCompletionOpts(e.tabCompletion,t.tabCompletion),suggest:this._sanitizeSuggestOpts(e,t.suggest),gotoLocation:this._sanitizeGotoLocationOpts(e,t.gotoLocation),selectionHighlight:ui(e.selectionHighlight,t.selectionHighlight),occurrencesHighlight:ui(e.occurrencesHighlight,t.occurrencesHighlight),codeLens:ui(e.codeLens,t.codeLens),folding:ui(e.folding,t.folding),foldingStrategy:di(e.foldingStrategy,t.foldingStrategy,["auto","indentation"]),showFoldingControls:di(e.showFoldingControls,t.showFoldingControls,["always","mouseover"]),matchBrackets:ui(e.matchBrackets,t.matchBrackets),find:r,colorDecorators:ui(e.colorDecorators,t.colorDecorators),lightbulbEnabled:ui(!!e.lightbulb&&e.lightbulb.enabled,t.lightbulbEnabled),codeActionsOnSave:li(e.codeActionsOnSave,{}),codeActionsOnSaveTimeout:hi(e.codeActionsOnSaveTimeout,t.codeActionsOnSaveTimeout,1,1e4)}},e}(),vi=function(){function e(){}return e._tweakValidatedOptions=function(e,t){var n=1===t;return{inDiffEditor:e.inDiffEditor,wordSeparators:e.wordSeparators,lineNumbersMinChars:e.lineNumbersMinChars,lineDecorationsWidth:e.lineDecorationsWidth,readOnly:e.readOnly,mouseStyle:e.mouseStyle,disableLayerHinting:e.disableLayerHinting,automaticLayout:e.automaticLayout,wordWrap:e.wordWrap,wordWrapColumn:e.wordWrapColumn,wordWrapMinified:e.wordWrapMinified,wrappingIndent:e.wrappingIndent,wordWrapBreakBeforeCharacters:e.wordWrapBreakBeforeCharacters,wordWrapBreakAfterCharacters:e.wordWrapBreakAfterCharacters,wordWrapBreakObtrusiveCharacters:e.wordWrapBreakObtrusiveCharacters,autoClosingBrackets:e.autoClosingBrackets,autoClosingQuotes:e.autoClosingQuotes,autoClosingOvertype:e.autoClosingOvertype,autoSurround:e.autoSurround,autoIndent:e.autoIndent,dragAndDrop:e.dragAndDrop,emptySelectionClipboard:e.emptySelectionClipboard,copyWithSyntaxHighlighting:e.copyWithSyntaxHighlighting,useTabStops:e.useTabStops,multiCursorModifier:e.multiCursorModifier,multiCursorMergeOverlapping:e.multiCursorMergeOverlapping,accessibilitySupport:e.accessibilitySupport,showUnused:e.showUnused,viewInfo:{extraEditorClassName:e.viewInfo.extraEditorClassName,disableMonospaceOptimizations:e.viewInfo.disableMonospaceOptimizations,rulers:e.viewInfo.rulers,ariaLabel:n?Ee("accessibilityOffAriaLabel","The editor is not accessible at this time. Press Alt+F1 for options."):e.viewInfo.ariaLabel,renderLineNumbers:e.viewInfo.renderLineNumbers,renderCustomLineNumbers:e.viewInfo.renderCustomLineNumbers,cursorSurroundingLines:e.viewInfo.cursorSurroundingLines,renderFinalNewline:e.viewInfo.renderFinalNewline,selectOnLineNumbers:e.viewInfo.selectOnLineNumbers,glyphMargin:e.viewInfo.glyphMargin,revealHorizontalRightPadding:e.viewInfo.revealHorizontalRightPadding,roundedSelection:e.viewInfo.roundedSelection,overviewRulerLanes:e.viewInfo.overviewRulerLanes,overviewRulerBorder:e.viewInfo.overviewRulerBorder,cursorBlinking:e.viewInfo.cursorBlinking,mouseWheelZoom:e.viewInfo.mouseWheelZoom,cursorSmoothCaretAnimation:e.viewInfo.cursorSmoothCaretAnimation,cursorStyle:e.viewInfo.cursorStyle,cursorWidth:e.viewInfo.cursorWidth,hideCursorInOverviewRuler:e.viewInfo.hideCursorInOverviewRuler,scrollBeyondLastLine:e.viewInfo.scrollBeyondLastLine,scrollBeyondLastColumn:e.viewInfo.scrollBeyondLastColumn,smoothScrolling:e.viewInfo.smoothScrolling,stopRenderingLineAfter:e.viewInfo.stopRenderingLineAfter,renderWhitespace:e.viewInfo.renderWhitespace,renderControlCharacters:e.viewInfo.renderControlCharacters,fontLigatures:e.viewInfo.fontLigatures,renderIndentGuides:e.viewInfo.renderIndentGuides,highlightActiveIndentGuide:e.viewInfo.highlightActiveIndentGuide,renderLineHighlight:e.viewInfo.renderLineHighlight,scrollbar:e.viewInfo.scrollbar,minimap:{enabled:e.viewInfo.minimap.enabled,side:e.viewInfo.minimap.side,renderCharacters:e.viewInfo.minimap.renderCharacters,showSlider:e.viewInfo.minimap.showSlider,maxColumn:e.viewInfo.minimap.maxColumn},fixedOverflowWidgets:e.viewInfo.fixedOverflowWidgets},contribInfo:{selectionClipboard:e.contribInfo.selectionClipboard,hover:e.contribInfo.hover,links:e.contribInfo.links,contextmenu:e.contribInfo.contextmenu,quickSuggestions:e.contribInfo.quickSuggestions,quickSuggestionsDelay:e.contribInfo.quickSuggestionsDelay,parameterHints:e.contribInfo.parameterHints,formatOnType:e.contribInfo.formatOnType,formatOnPaste:e.contribInfo.formatOnPaste,suggestOnTriggerCharacters:e.contribInfo.suggestOnTriggerCharacters,acceptSuggestionOnEnter:e.contribInfo.acceptSuggestionOnEnter,acceptSuggestionOnCommitCharacter:e.contribInfo.acceptSuggestionOnCommitCharacter,wordBasedSuggestions:e.contribInfo.wordBasedSuggestions,suggestSelection:e.contribInfo.suggestSelection,suggestFontSize:e.contribInfo.suggestFontSize,suggestLineHeight:e.contribInfo.suggestLineHeight,tabCompletion:e.contribInfo.tabCompletion,suggest:e.contribInfo.suggest,gotoLocation:e.contribInfo.gotoLocation,selectionHighlight:e.contribInfo.selectionHighlight,occurrencesHighlight:e.contribInfo.occurrencesHighlight,codeLens:e.contribInfo.codeLens,folding:e.contribInfo.folding,foldingStrategy:e.contribInfo.foldingStrategy,showFoldingControls:e.contribInfo.showFoldingControls,matchBrackets:e.contribInfo.matchBrackets,find:e.contribInfo.find,colorDecorators:e.contribInfo.colorDecorators,lightbulbEnabled:e.contribInfo.lightbulbEnabled,codeActionsOnSave:e.contribInfo.codeActionsOnSave,codeActionsOnSaveTimeout:e.contribInfo.codeActionsOnSaveTimeout}}},e.createInternalEditorOptions=function(e,t){var n;n="auto"===t.accessibilitySupport?e.accessibilitySupport:"on"===t.accessibilitySupport?2:1;var r,i=this._tweakValidatedOptions(t,n);"string"==typeof i.lineDecorationsWidth&&/^\d+(\.\d+)?ch$/.test(i.lineDecorationsWidth)?r=parseFloat(i.lineDecorationsWidth.substr(0,i.lineDecorationsWidth.length-2))*e.fontInfo.typicalHalfwidthCharacterWidth:r=hi(i.lineDecorationsWidth,0,0,1e3);i.contribInfo.folding&&(r+=16);var o=bi.compute({outerWidth:e.outerWidth,outerHeight:e.outerHeight,showGlyphMargin:i.viewInfo.glyphMargin,lineHeight:e.fontInfo.lineHeight,showLineNumbers:0!==i.viewInfo.renderLineNumbers,lineNumbersMinChars:i.lineNumbersMinChars,lineNumbersDigitCount:e.lineNumbersDigitCount,lineDecorationsWidth:r,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,verticalScrollbarWidth:i.viewInfo.scrollbar.verticalScrollbarSize,horizontalScrollbarHeight:i.viewInfo.scrollbar.horizontalScrollbarSize,scrollbarArrowSize:i.viewInfo.scrollbar.arrowSize,verticalScrollbarHasArrows:i.viewInfo.scrollbar.verticalHasArrows,minimap:i.viewInfo.minimap.enabled,minimapSide:i.viewInfo.minimap.side,minimapRenderCharacters:i.viewInfo.minimap.renderCharacters,minimapMaxColumn:i.viewInfo.minimap.maxColumn,pixelRatio:e.pixelRatio}),s=null,a=i.wordWrap,u=i.wordWrapColumn,l=i.wordWrapMinified;s=2===n?{isWordWrapMinified:!1,isViewportWrapping:!1,wrappingColumn:-1}:l&&e.isDominatedByLongLines?{isWordWrapMinified:!0,isViewportWrapping:!0,wrappingColumn:Math.max(1,o.viewportColumn)}:"on"===a?{isWordWrapMinified:!1,isViewportWrapping:!0,wrappingColumn:Math.max(1,o.viewportColumn)}:"bounded"===a?{isWordWrapMinified:!1,isViewportWrapping:!0,wrappingColumn:Math.min(Math.max(1,o.viewportColumn),u)}:"wordWrapColumn"===a?{isWordWrapMinified:!1,isViewportWrapping:!1,wrappingColumn:u}:{isWordWrapMinified:!1,isViewportWrapping:!1,wrappingColumn:-1};var c={inDiffEditor:i.inDiffEditor,isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:s.isWordWrapMinified,isViewportWrapping:s.isViewportWrapping,wrappingColumn:s.wrappingColumn,wrappingIndent:i.wrappingIndent,wordWrapBreakBeforeCharacters:i.wordWrapBreakBeforeCharacters,wordWrapBreakAfterCharacters:i.wordWrapBreakAfterCharacters,wordWrapBreakObtrusiveCharacters:i.wordWrapBreakObtrusiveCharacters},d="monaco-editor";return i.viewInfo.extraEditorClassName&&(d+=" "+i.viewInfo.extraEditorClassName),e.extraEditorClassName&&(d+=" "+e.extraEditorClassName),i.viewInfo.fontLigatures&&(d+=" enable-ligatures"),"default"===i.mouseStyle?d+=" mouse-default":"copy"===i.mouseStyle&&(d+=" mouse-copy"),new ai({canUseLayerHinting:!i.disableLayerHinting,pixelRatio:e.pixelRatio,editorClassName:d,lineHeight:e.fontInfo.lineHeight,readOnly:i.readOnly,accessibilitySupport:n,multiCursorModifier:i.multiCursorModifier,multiCursorMergeOverlapping:i.multiCursorMergeOverlapping,wordSeparators:i.wordSeparators,autoClosingBrackets:i.autoClosingBrackets,autoClosingQuotes:i.autoClosingQuotes,autoClosingOvertype:i.autoClosingOvertype,autoSurround:i.autoSurround,autoIndent:i.autoIndent,useTabStops:i.useTabStops,tabFocusMode:!!i.readOnly||e.tabFocusMode,dragAndDrop:i.dragAndDrop,emptySelectionClipboard:i.emptySelectionClipboard&&e.emptySelectionClipboard,copyWithSyntaxHighlighting:i.copyWithSyntaxHighlighting,layoutInfo:o,fontInfo:e.fontInfo,viewInfo:i.viewInfo,wrappingInfo:c,contribInfo:i.contribInfo,showUnused:i.showUnused})},e}(),bi=function(){function e(){}return e.compute=function(e){var t=0|e.outerWidth,n=0|e.outerHeight,r=e.showGlyphMargin,i=0|e.lineHeight,o=e.showLineNumbers,s=0|e.lineNumbersMinChars,a=0|e.lineNumbersDigitCount,u=0|e.lineDecorationsWidth,l=e.typicalHalfwidthCharacterWidth,c=e.maxDigitWidth,d=0|e.verticalScrollbarWidth,h=e.verticalScrollbarHasArrows,f=0|e.scrollbarArrowSize,p=0|e.horizontalScrollbarHeight,g=e.minimap,m=e.minimapSide,_=e.minimapRenderCharacters,y=0|e.minimapMaxColumn,v=e.pixelRatio,b=0;if(o){var w=Math.max(a,s);b=Math.round(w*c)}var C=0;r&&(C=i);var S,x,L,k,M=0,D=M+C,E=D+b,T=E+u,N=t-C-b-u;if(g){var O=void 0;v>=2?(S=_?2:4,O=2/v):(S=_?1:3,O=1/v),(L=Math.max(0,Math.floor((N-d-2)*O/(l+O))))/O>y&&(L=Math.floor(y*O)),k=N-L,"left"===m?(x=0,M+=L,D+=L,E+=L,T+=L):x=t-L-d}else x=0,L=0,S=0,k=N;var A=h?f:0;return{width:t,height:n,glyphMarginLeft:M,glyphMarginWidth:C,glyphMarginHeight:n,lineNumbersLeft:D,lineNumbersWidth:b,lineNumbersHeight:n,decorationsLeft:E,decorationsWidth:u,decorationsHeight:n,contentLeft:T,contentWidth:k,contentHeight:n,renderMinimap:S,minimapLeft:x,minimapWidth:L,viewportColumn:Math.max(1,Math.floor((k-d-2)/l)),verticalScrollbarWidth:d,horizontalScrollbarHeight:p,overviewRuler:{top:A,width:d,height:n-2*A,right:0}}},e}(),wi={fontFamily:nt.d?"Menlo, Monaco, 'Courier New', monospace":nt.c?"'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'":"Consolas, 'Courier New', monospace",fontWeight:"normal",fontSize:nt.d?12:14,lineHeight:0,letterSpacing:0},Ci={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0},Si={inDiffEditor:!1,wordSeparators:ti,lineNumbersMinChars:5,lineDecorationsWidth:10,readOnly:!1,mouseStyle:"text",disableLayerHinting:!1,automaticLayout:!1,wordWrap:"off",wordWrapColumn:80,wordWrapMinified:!0,wrappingIndent:1,wordWrapBreakBeforeCharacters:"([{‘“〈《「『【〔([{「£¥$£¥++",wordWrapBreakAfterCharacters:" \t})]?|/&,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」",wordWrapBreakObtrusiveCharacters:".",autoClosingBrackets:"languageDefined",autoClosingQuotes:"languageDefined",autoClosingOvertype:"auto",autoSurround:"languageDefined",autoIndent:!0,dragAndDrop:!0,emptySelectionClipboard:!0,copyWithSyntaxHighlighting:!0,useTabStops:!0,multiCursorModifier:"altKey",multiCursorMergeOverlapping:!0,accessibilitySupport:"auto",showUnused:!0,viewInfo:{extraEditorClassName:"",disableMonospaceOptimizations:!1,rulers:[],ariaLabel:Ee("editorViewAccessibleLabel","Editor content"),renderLineNumbers:1,renderCustomLineNumbers:null,cursorSurroundingLines:0,renderFinalNewline:!0,selectOnLineNumbers:!0,glyphMargin:!0,revealHorizontalRightPadding:30,roundedSelection:!0,overviewRulerLanes:2,overviewRulerBorder:!0,cursorBlinking:1,mouseWheelZoom:!1,cursorSmoothCaretAnimation:!1,cursorStyle:oi.Line,cursorWidth:0,hideCursorInOverviewRuler:!1,scrollBeyondLastLine:!0,scrollBeyondLastColumn:5,smoothScrolling:!1,stopRenderingLineAfter:1e4,renderWhitespace:"none",renderControlCharacters:!1,fontLigatures:!1,renderIndentGuides:!0,highlightActiveIndentGuide:!0,renderLineHighlight:"line",scrollbar:{vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:10,horizontalSliderSize:10,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,mouseWheelScrollSensitivity:1,fastScrollSensitivity:5},minimap:{enabled:!0,side:"right",showSlider:"mouseover",renderCharacters:!0,maxColumn:120},fixedOverflowWidgets:!1},contribInfo:{selectionClipboard:!0,hover:{enabled:!0,delay:300,sticky:!0},links:!0,contextmenu:!0,quickSuggestions:{other:!0,comments:!1,strings:!1},quickSuggestionsDelay:10,parameterHints:{enabled:!0,cycle:!1},formatOnType:!1,formatOnPaste:!1,suggestOnTriggerCharacters:!0,acceptSuggestionOnEnter:"on",acceptSuggestionOnCommitCharacter:!0,wordBasedSuggestions:!0,suggestSelection:"recentlyUsed",suggestFontSize:0,suggestLineHeight:0,tabCompletion:"off",suggest:{filterGraceful:!0,snippets:"inline",snippetsPreventQuickSuggestions:!0,localityBonus:!1,shareSuggestSelections:!1,showIcons:!0,maxVisibleSuggestions:12,filteredTypes:Object.create(null)},gotoLocation:{multiple:"peek"},selectionHighlight:!0,occurrencesHighlight:!0,codeLens:!0,folding:!0,foldingStrategy:"auto",showFoldingControls:"mouseover",matchBrackets:!0,find:{seedSearchStringFromSelection:!0,autoFindInSelection:!1,globalFindClipboard:!1,addExtraSpaceOnTop:!0},colorDecorators:!0,lightbulbEnabled:!0,codeActionsOnSave:{},codeActionsOnSaveTimeout:750}};!function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(mi||(mi={})),function(e){e[e.Inline=1]="Inline"}(_i||(_i={}));var xi=function(){function e(e){this.tabSize=0|e.tabSize,this.indentSize=0|e.tabSize,this.insertSpaces=Boolean(e.insertSpaces),this.defaultEOL=0|e.defaultEOL,this.trimAutoWhitespace=Boolean(e.trimAutoWhitespace)}return e.prototype.equals=function(e){return this.tabSize===e.tabSize&&this.indentSize===e.indentSize&&this.insertSpaces===e.insertSpaces&&this.defaultEOL===e.defaultEOL&&this.trimAutoWhitespace===e.trimAutoWhitespace},e.prototype.createChangeEvent=function(e){return{tabSize:this.tabSize!==e.tabSize,indentSize:this.indentSize!==e.indentSize,insertSpaces:this.insertSpaces!==e.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==e.trimAutoWhitespace}},e}(),Li=function(e,t){this.range=e,this.matches=t},ki=function(e,t,n){this.reverseEdits=e,this.changes=t,this.trimAutoWhitespaceLineNumbers=n},Mi=function(){function e(e,t){this.beforeVersionId=e,this.beforeCursorState=t,this.afterCursorState=null,this.afterVersionId=-1,this.editOperations=[]}return e.prototype.undo=function(e){for(var t=this.editOperations.length-1;t>=0;t--)this.editOperations[t]={operations:e.applyEdits(this.editOperations[t].operations)}},e.prototype.redo=function(e){for(var t=0;t<this.editOperations.length;t++)this.editOperations[t]={operations:e.applyEdits(this.editOperations[t].operations)}},e}();function Di(e){return"\n"===e.getEOL()?0:1}var Ei=function(){function e(e,t){this.beforeVersionId=e,this.beforeCursorState=null,this.afterCursorState=null,this.afterVersionId=-1,this.eol=t}return e.prototype.undo=function(e){var t=Di(e);e.setEOL(this.eol),this.eol=t},e.prototype.redo=function(e){var t=Di(e);e.setEOL(this.eol),this.eol=t},e}(),Ti=function(){function e(e){this.model=e,this.currentOpenStackElement=null,this.past=[],this.future=[]}return e.prototype.pushStackElement=function(){null!==this.currentOpenStackElement&&(this.past.push(this.currentOpenStackElement),this.currentOpenStackElement=null)},e.prototype.clear=function(){this.currentOpenStackElement=null,this.past=[],this.future=[]},e.prototype.pushEOL=function(e){this.future=[],this.currentOpenStackElement&&this.pushStackElement();var t=Di(this.model),n=new Ei(this.model.getAlternativeVersionId(),t);this.model.setEOL(e),n.afterVersionId=this.model.getVersionId(),this.currentOpenStackElement=n,this.pushStackElement()},e.prototype.pushEditOperation=function(t,n,r){this.future=[];var i=null;this.currentOpenStackElement&&(this.currentOpenStackElement instanceof Mi?i=this.currentOpenStackElement:this.pushStackElement()),this.currentOpenStackElement||(i=new Mi(this.model.getAlternativeVersionId(),t),this.currentOpenStackElement=i);var o={operations:this.model.applyEdits(n)};return i.editOperations.push(o),i.afterCursorState=e._computeCursorState(r,o.operations),i.afterVersionId=this.model.getVersionId(),i.afterCursorState},e._computeCursorState=function(e,t){try{return e?e(t):null}catch(e){return Ke(e),null}},e.prototype.undo=function(){if(this.pushStackElement(),this.past.length>0){var e=this.past.pop();try{e.undo(this.model)}catch(e){return Ke(e),this.clear(),null}return this.future.push(e),{selections:e.beforeCursorState,recordedVersionId:e.beforeVersionId}}return null},e.prototype.canUndo=function(){return this.past.length>0||null!==this.currentOpenStackElement},e.prototype.redo=function(){if(this.future.length>0){var e=this.future.pop();try{e.redo(this.model)}catch(e){return Ke(e),this.clear(),null}return this.past.push(e),{selections:e.afterCursorState,recordedVersionId:e.afterVersionId}}return null},e.prototype.canRedo=function(){return this.future.length>0},e}(),Ni=function(){this.spacesDiff=0,this.looksLikeAlignment=!1};function Oi(e,t,n,r,i){var o;for(i.spacesDiff=0,i.looksLikeAlignment=!1,o=0;o<t&&o<r;o++){if(e.charCodeAt(o)!==n.charCodeAt(o))break}for(var s=0,a=0,u=o;u<t;u++){32===e.charCodeAt(u)?s++:a++}var l=0,c=0;for(u=o;u<r;u++){32===n.charCodeAt(u)?l++:c++}if(!(s>0&&a>0||l>0&&c>0)){var d=Math.abs(a-c),h=Math.abs(s-l);if(0===d)return i.spacesDiff=h,void(h>0&&0<=l-1&&l-1<e.length&&l<n.length&&32!==n.charCodeAt(l)&&32===e.charCodeAt(l-1)&&(i.looksLikeAlignment=!0));h%d!=0||(i.spacesDiff=h/d)}}function Ai(e,t,n){for(var r=Math.min(e.getLineCount(),1e4),i=0,o=0,s="",a=0,u=[0,0,0,0,0,0,0,0,0],l=new Ni,c=1;c<=r;c++){for(var d=e.getLineLength(c),h=e.getLineContent(c),f=d<=65536,p=!1,g=0,m=0,_=0,y=0,v=d;y<v;y++){var b=f?h.charCodeAt(y):e.getLineCharCode(c,y);if(9===b)_++;else{if(32!==b){p=!0,g=y;break}m++}}if(p&&(_>0?i++:m>1&&o++,Oi(s,a,h,g,l),!l.looksLikeAlignment||n&&t===l.spacesDiff)){var w=l.spacesDiff;w<=8&&u[w]++,s=h,a=g}}var C=n;i!==o&&(C=i<o);var S=t;if(C){var x=C?0:.1*r;[2,4,6,8,3,5,7].forEach((function(e){var t=u[e];t>x&&(x=t,S=e)})),4===S&&u[4]>0&&u[2]>0&&u[2]>=u[4]/2&&(S=2)}return{insertSpaces:C,tabSize:S}}function Ii(e){return(1&e.metadata)>>>0}function Pi(e,t){e.metadata=254&e.metadata|t<<0}function Ri(e){return(2&e.metadata)>>>1==1}function Fi(e,t){e.metadata=253&e.metadata|(t?1:0)<<1}function Yi(e){return(4&e.metadata)>>>2==1}function ji(e,t){e.metadata=251&e.metadata|(t?1:0)<<2}function Bi(e){return(8&e.metadata)>>>3==1}function Wi(e,t){e.metadata=247&e.metadata|(t?1:0)<<3}function Hi(e,t){e.metadata=207&e.metadata|t<<4}function Vi(e,t){e.metadata=191&e.metadata|(t?1:0)<<6}var zi=function(){function e(e,t,n){this.metadata=0,this.parent=this,this.left=this,this.right=this,Pi(this,1),this.start=t,this.end=n,this.delta=0,this.maxEnd=n,this.id=e,this.ownerId=0,this.options=null,ji(this,!1),Hi(this,1),Wi(this,!1),Vi(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=null,Fi(this,!1)}return e.prototype.reset=function(e,t,n,r){this.start=t,this.end=n,this.maxEnd=n,this.cachedVersionId=e,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=r},e.prototype.setOptions=function(e){this.options=e;var t=this.options.className;ji(this,"squiggly-error"===t||"squiggly-warning"===t||"squiggly-info"===t),Hi(this,this.options.stickiness),Wi(this,!(!this.options.overviewRuler||!this.options.overviewRuler.color)),Vi(this,this.options.collapseOnReplaceEdit)},e.prototype.setCachedOffsets=function(e,t,n){this.cachedVersionId!==n&&(this.range=null),this.cachedVersionId=n,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=t},e.prototype.detach=function(){this.parent=null,this.left=null,this.right=null},e}(),Ui=new zi(null,0,0);Ui.parent=Ui,Ui.left=Ui,Ui.right=Ui,Pi(Ui,0);var qi=function(){function e(){this.root=Ui,this.requestNormalizeDelta=!1}return e.prototype.intervalSearch=function(e,t,n,r,i){return this.root===Ui?[]:function(e,t,n,r,i,o){var s=e.root,a=0,u=0,l=0,c=[],d=0;for(;s!==Ui;)if(Ri(s))Fi(s.left,!1),Fi(s.right,!1),s===s.parent.right&&(a-=s.parent.delta),s=s.parent;else{if(!Ri(s.left)){if(a+s.maxEnd<t){Fi(s,!0);continue}if(s.left!==Ui){s=s.left;continue}}if((u=a+s.start)>n)Fi(s,!0);else{if((l=a+s.end)>=t){s.setCachedOffsets(u,l,o);var h=!0;r&&s.ownerId&&s.ownerId!==r&&(h=!1),i&&Yi(s)&&(h=!1),h&&(c[d++]=s)}Fi(s,!0),s.right===Ui||Ri(s.right)||(a+=s.delta,s=s.right)}}return Fi(e.root,!1),c}(this,e,t,n,r,i)},e.prototype.search=function(e,t,n){return this.root===Ui?[]:function(e,t,n,r){var i=e.root,o=0,s=0,a=0,u=[],l=0;for(;i!==Ui;)if(Ri(i))Fi(i.left,!1),Fi(i.right,!1),i===i.parent.right&&(o-=i.parent.delta),i=i.parent;else if(i.left===Ui||Ri(i.left)){s=o+i.start,a=o+i.end,i.setCachedOffsets(s,a,r);var c=!0;t&&i.ownerId&&i.ownerId!==t&&(c=!1),n&&Yi(i)&&(c=!1),c&&(u[l++]=i),Fi(i,!0),i.right===Ui||Ri(i.right)||(o+=i.delta,i=i.right)}else i=i.left;return Fi(e.root,!1),u}(this,e,t,n)},e.prototype.collectNodesFromOwner=function(e){return function(e,t){var n=e.root,r=[],i=0;for(;n!==Ui;)Ri(n)?(Fi(n.left,!1),Fi(n.right,!1),n=n.parent):n.left===Ui||Ri(n.left)?(n.ownerId===t&&(r[i++]=n),Fi(n,!0),n.right===Ui||Ri(n.right)||(n=n.right)):n=n.left;return Fi(e.root,!1),r}(this,e)},e.prototype.collectNodesPostOrder=function(){return function(e){var t=e.root,n=[],r=0;for(;t!==Ui;)Ri(t)?(Fi(t.left,!1),Fi(t.right,!1),t=t.parent):t.left===Ui||Ri(t.left)?t.right===Ui||Ri(t.right)?(n[r++]=t,Fi(t,!0)):t=t.right:t=t.left;return Fi(e.root,!1),n}(this)},e.prototype.insert=function(e){$i(this,e),this._normalizeDeltaIfNecessary()},e.prototype.delete=function(e){Zi(this,e),this._normalizeDeltaIfNecessary()},e.prototype.resolveNode=function(e,t){for(var n=e,r=0;e!==this.root;)e===e.parent.right&&(r+=e.parent.delta),e=e.parent;var i=n.start+r,o=n.end+r;n.setCachedOffsets(i,o,t)},e.prototype.acceptReplace=function(e,t,n,r){for(var i=function(e,t,n){var r=e.root,i=0,o=0,s=0,a=[],u=0;for(;r!==Ui;)if(Ri(r))Fi(r.left,!1),Fi(r.right,!1),r===r.parent.right&&(i-=r.parent.delta),r=r.parent;else{if(!Ri(r.left)){if(i+r.maxEnd<t){Fi(r,!0);continue}if(r.left!==Ui){r=r.left;continue}}(o=i+r.start)>n?Fi(r,!0):((s=i+r.end)>=t&&(r.setCachedOffsets(o,s,0),a[u++]=r),Fi(r,!0),r.right===Ui||Ri(r.right)||(i+=r.delta,r=r.right))}return Fi(e.root,!1),a}(this,e,e+t),o=0,s=i.length;o<s;o++){Zi(this,a=i[o])}this._normalizeDeltaIfNecessary(),function(e,t,n,r){var i=e.root,o=0,s=r-(n-t);for(;i!==Ui;)if(Ri(i))Fi(i.left,!1),Fi(i.right,!1),i===i.parent.right&&(o-=i.parent.delta),to(i),i=i.parent;else{if(!Ri(i.left)){if(o+i.maxEnd<t){Fi(i,!0);continue}if(i.left!==Ui){i=i.left;continue}}o+i.start>n?(i.start+=s,i.end+=s,i.delta+=s,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0),Fi(i,!0)):(Fi(i,!0),i.right===Ui||Ri(i.right)||(o+=i.delta,i=i.right))}Fi(e.root,!1)}(this,e,e+t,n),this._normalizeDeltaIfNecessary();for(o=0,s=i.length;o<s;o++){var a;(a=i[o]).start=a.cachedAbsoluteStart,a.end=a.cachedAbsoluteEnd,Gi(a,e,e+t,n,r),a.maxEnd=a.end,$i(this,a)}this._normalizeDeltaIfNecessary()},e.prototype._normalizeDeltaIfNecessary=function(){this.requestNormalizeDelta&&(this.requestNormalizeDelta=!1,function(e){var t=e.root,n=0;for(;t!==Ui;)t.left===Ui||Ri(t.left)?t.right===Ui||Ri(t.right)?(t.start=n+t.start,t.end=n+t.end,t.delta=0,to(t),Fi(t,!0),Fi(t.left,!1),Fi(t.right,!1),t===t.parent.right&&(n-=t.parent.delta),t=t.parent):(n+=t.delta,t=t.right):t=t.left;Fi(e.root,!1)}(this))},e}();function Ki(e,t,n,r){return e<n||!(e>n)&&(1!==r&&(2===r||t))}function Gi(e,t,n,r,i){var o=function(e){return(48&e.metadata)>>>4}(e),s=0===o||2===o,a=1===o||2===o,u=n-t,l=r,c=Math.min(u,l),d=e.start,h=!1,f=e.end,p=!1;t<=d&&f<=n&&function(e){return(64&e.metadata)>>>6==1}(e)&&(e.start=t,h=!0,e.end=t,p=!0);var g=i?1:u>0?2:0;if(!h&&Ki(d,s,t,g)&&(h=!0),!p&&Ki(f,a,t,g)&&(p=!0),c>0&&!i){g=u>l?2:0;!h&&Ki(d,s,t+c,g)&&(h=!0),!p&&Ki(f,a,t+c,g)&&(p=!0)}g=i?1:0;!h&&Ki(d,s,n,g)&&(e.start=t+l,h=!0),!p&&Ki(f,a,n,g)&&(e.end=t+l,p=!0);var m=l-u;h||(e.start=Math.max(0,d+m)),p||(e.end=Math.max(0,f+m)),e.start>e.end&&(e.end=e.start)}function $i(e,t){if(e.root===Ui)return t.parent=Ui,t.left=Ui,t.right=Ui,Pi(t,0),e.root=t,e.root;!function(e,t){var n=0,r=e.root,i=t.start,o=t.end;for(;;){if(ro(i,o,r.start+n,r.end+n)<0){if(r.left===Ui){t.start-=n,t.end-=n,t.maxEnd-=n,r.left=t;break}r=r.left}else{if(r.right===Ui){t.start-=n+r.delta,t.end-=n+r.delta,t.maxEnd-=n+r.delta,r.right=t;break}n+=r.delta,r=r.right}}t.parent=r,t.left=Ui,t.right=Ui,Pi(t,1)}(e,t),no(t.parent);for(var n=t;n!==e.root&&1===Ii(n.parent);){var r;if(n.parent===n.parent.parent.left)1===Ii(r=n.parent.parent.right)?(Pi(n.parent,0),Pi(r,0),Pi(n.parent.parent,1),n=n.parent.parent):(n===n.parent.right&&Ji(e,n=n.parent),Pi(n.parent,0),Pi(n.parent.parent,1),Qi(e,n.parent.parent));else 1===Ii(r=n.parent.parent.left)?(Pi(n.parent,0),Pi(r,0),Pi(n.parent.parent,1),n=n.parent.parent):(n===n.parent.left&&Qi(e,n=n.parent),Pi(n.parent,0),Pi(n.parent.parent,1),Ji(e,n.parent.parent))}return Pi(e.root,0),t}function Zi(e,t){var n,r;if(t.left===Ui?(r=t,(n=t.right).delta+=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta):t.right===Ui?(n=t.left,r=t):((n=(r=function(e){for(;e.left!==Ui;)e=e.left;return e}(t.right)).right).start+=r.delta,n.end+=r.delta,n.delta+=r.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),r.start+=t.delta,r.end+=t.delta,r.delta=t.delta,(r.delta<-1073741824||r.delta>1073741824)&&(e.requestNormalizeDelta=!0)),r===e.root)return e.root=n,Pi(n,0),t.detach(),Xi(),to(n),void(e.root.parent=Ui);var i,o=1===Ii(r);if(r===r.parent.left?r.parent.left=n:r.parent.right=n,r===t?n.parent=r.parent:(r.parent===t?n.parent=r:n.parent=r.parent,r.left=t.left,r.right=t.right,r.parent=t.parent,Pi(r,Ii(t)),t===e.root?e.root=r:t===t.parent.left?t.parent.left=r:t.parent.right=r,r.left!==Ui&&(r.left.parent=r),r.right!==Ui&&(r.right.parent=r)),t.detach(),o)return no(n.parent),r!==t&&(no(r),no(r.parent)),void Xi();for(no(n),no(n.parent),r!==t&&(no(r),no(r.parent));n!==e.root&&0===Ii(n);)n===n.parent.left?(1===Ii(i=n.parent.right)&&(Pi(i,0),Pi(n.parent,1),Ji(e,n.parent),i=n.parent.right),0===Ii(i.left)&&0===Ii(i.right)?(Pi(i,1),n=n.parent):(0===Ii(i.right)&&(Pi(i.left,0),Pi(i,1),Qi(e,i),i=n.parent.right),Pi(i,Ii(n.parent)),Pi(n.parent,0),Pi(i.right,0),Ji(e,n.parent),n=e.root)):(1===Ii(i=n.parent.left)&&(Pi(i,0),Pi(n.parent,1),Qi(e,n.parent),i=n.parent.left),0===Ii(i.left)&&0===Ii(i.right)?(Pi(i,1),n=n.parent):(0===Ii(i.left)&&(Pi(i.right,0),Pi(i,1),Ji(e,i),i=n.parent.left),Pi(i,Ii(n.parent)),Pi(n.parent,0),Pi(i.left,0),Qi(e,n.parent),n=e.root));Pi(n,0),Xi()}function Xi(){Ui.parent=Ui,Ui.delta=0,Ui.start=0,Ui.end=0}function Ji(e,t){var n=t.right;n.delta+=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta,t.right=n.left,n.left!==Ui&&(n.left.parent=t),n.parent=t.parent,t.parent===Ui?e.root=n:t===t.parent.left?t.parent.left=n:t.parent.right=n,n.left=t,t.parent=n,to(t),to(n)}function Qi(e,t){var n=t.left;t.delta-=n.delta,(t.delta<-1073741824||t.delta>1073741824)&&(e.requestNormalizeDelta=!0),t.start-=n.delta,t.end-=n.delta,t.left=n.right,n.right!==Ui&&(n.right.parent=t),n.parent=t.parent,t.parent===Ui?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,n.right=t,t.parent=n,to(t),to(n)}function eo(e){var t=e.end;if(e.left!==Ui){var n=e.left.maxEnd;n>t&&(t=n)}if(e.right!==Ui){var r=e.right.maxEnd+e.delta;r>t&&(t=r)}return t}function to(e){e.maxEnd=eo(e)}function no(e){for(;e!==Ui;){var t=eo(e);if(e.maxEnd===t)return;e.maxEnd=t,e=e.parent}}function ro(e,t,n,r){return e===n?t-r:e-n}var io=function(){function e(e,t){this.piece=e,this.color=t,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}return e.prototype.next=function(){if(this.right!==oo)return so(this.right);for(var e=this;e.parent!==oo&&e.parent.left!==e;)e=e.parent;return e.parent===oo?oo:e.parent},e.prototype.prev=function(){if(this.left!==oo)return ao(this.left);for(var e=this;e.parent!==oo&&e.parent.right!==e;)e=e.parent;return e.parent===oo?oo:e.parent},e.prototype.detach=function(){this.parent=null,this.left=null,this.right=null},e}(),oo=new io(null,0);function so(e){for(;e.left!==oo;)e=e.left;return e}function ao(e){for(;e.right!==oo;)e=e.right;return e}function uo(e){return e===oo?0:e.size_left+e.piece.length+uo(e.right)}function lo(e){return e===oo?0:e.lf_left+e.piece.lineFeedCnt+lo(e.right)}function co(){oo.parent=oo}function ho(e,t){var n=t.right;n.size_left+=t.size_left+(t.piece?t.piece.length:0),n.lf_left+=t.lf_left+(t.piece?t.piece.lineFeedCnt:0),t.right=n.left,n.left!==oo&&(n.left.parent=t),n.parent=t.parent,t.parent===oo?e.root=n:t.parent.left===t?t.parent.left=n:t.parent.right=n,n.left=t,t.parent=n}function fo(e,t){var n=t.left;t.left=n.right,n.right!==oo&&(n.right.parent=t),n.parent=t.parent,t.size_left-=n.size_left+(n.piece?n.piece.length:0),t.lf_left-=n.lf_left+(n.piece?n.piece.lineFeedCnt:0),t.parent===oo?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,n.right=t,t.parent=n}function po(e,t){var n,r;if(n=t.left===oo?(r=t).right:t.right===oo?(r=t).left:(r=so(t.right)).right,r===e.root)return e.root=n,n.color=0,t.detach(),co(),void(e.root.parent=oo);var i=1===r.color;if(r===r.parent.left?r.parent.left=n:r.parent.right=n,r===t?(n.parent=r.parent,_o(e,n)):(r.parent===t?n.parent=r:n.parent=r.parent,_o(e,n),r.left=t.left,r.right=t.right,r.parent=t.parent,r.color=t.color,t===e.root?e.root=r:t===t.parent.left?t.parent.left=r:t.parent.right=r,r.left!==oo&&(r.left.parent=r),r.right!==oo&&(r.right.parent=r),r.size_left=t.size_left,r.lf_left=t.lf_left,_o(e,r)),t.detach(),n.parent.left===n){var o=uo(n),s=lo(n);if(o!==n.parent.size_left||s!==n.parent.lf_left){var a=o-n.parent.size_left,u=s-n.parent.lf_left;n.parent.size_left=o,n.parent.lf_left=s,mo(e,n.parent,a,u)}}if(_o(e,n.parent),i)co();else{for(var l;n!==e.root&&0===n.color;)n===n.parent.left?(1===(l=n.parent.right).color&&(l.color=0,n.parent.color=1,ho(e,n.parent),l=n.parent.right),0===l.left.color&&0===l.right.color?(l.color=1,n=n.parent):(0===l.right.color&&(l.left.color=0,l.color=1,fo(e,l),l=n.parent.right),l.color=n.parent.color,n.parent.color=0,l.right.color=0,ho(e,n.parent),n=e.root)):(1===(l=n.parent.left).color&&(l.color=0,n.parent.color=1,fo(e,n.parent),l=n.parent.left),0===l.left.color&&0===l.right.color?(l.color=1,n=n.parent):(0===l.left.color&&(l.right.color=0,l.color=1,ho(e,l),l=n.parent.left),l.color=n.parent.color,n.parent.color=0,l.left.color=0,fo(e,n.parent),n=e.root));n.color=0,co()}}function go(e,t){for(_o(e,t);t!==e.root&&1===t.parent.color;){var n;if(t.parent===t.parent.parent.left)1===(n=t.parent.parent.right).color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.right&&ho(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,fo(e,t.parent.parent));else 1===(n=t.parent.parent.left).color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.left&&fo(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,ho(e,t.parent.parent))}e.root.color=0}function mo(e,t,n,r){for(;t!==e.root&&t!==oo;)t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=r),t=t.parent}function _o(e,t){var n=0,r=0;if(t!==e.root){if(0===n){for(;t!==e.root&&t===t.parent.right;)t=t.parent;if(t===e.root)return;n=uo((t=t.parent).left)-t.size_left,r=lo(t.left)-t.lf_left,t.size_left+=n,t.lf_left+=r}for(;t!==e.root&&(0!==n||0!==r);)t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=r),t=t.parent}}oo.parent=oo,oo.left=oo,oo.right=oo,oo.color=0;var yo=function(){function e(e,t,n){for(var r=new Uint8Array(e*t),i=0,o=e*t;i<o;i++)r[i]=n;this._data=r,this.rows=e,this.cols=t}return e.prototype.get=function(e,t){return this._data[e*this.cols+t]},e.prototype.set=function(e,t,n){this._data[e*this.cols+t]=n},e}();function vo(e){return e<0?0:e>255?255:0|e}function bo(e){return e<0?0:e>4294967295?4294967295:0|e}var wo=function(){function e(t){var n=vo(t);this._defaultValue=n,this._asciiMap=e._createAsciiMap(n),this._map=new Map}return e._createAsciiMap=function(e){for(var t=new Uint8Array(256),n=0;n<256;n++)t[n]=e;return t},e.prototype.set=function(e,t){var n=vo(t);e>=0&&e<256?this._asciiMap[e]=n:this._map.set(e,n)},e.prototype.get=function(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue},e}(),Co=(function(){function e(){this._actual=new wo(0)}e.prototype.add=function(e){this._actual.set(e,1)},e.prototype.has=function(e){return 1===this._actual.get(e)}}(),function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),So=function(e){function t(t){for(var n=e.call(this,0)||this,r=0,i=t.length;r<i;r++)n.set(t.charCodeAt(r),2);return n.set(32,1),n.set(9,1),n}return Co(t,e),t}(wo);var xo,Lo,ko=(xo=function(e){return new So(e)},Lo={},function(e){return Lo.hasOwnProperty(e)||(Lo[e]=xo(e)),Lo[e]}),Mo=function(){function e(e,t,n,r){this.searchString=e,this.isRegex=t,this.matchCase=n,this.wordSeparators=r}return e.prototype.parseSearchRequest=function(){if(""===this.searchString)return null;var e;e=this.isRegex?function(e){if(!e||0===e.length)return!1;for(var t=0,n=e.length;t<n;t++){if(92===e.charCodeAt(t)){if(++t>=n)break;var r=e.charCodeAt(t);if(110===r||114===r||87===r)return!0}}return!1}(this.searchString):this.searchString.indexOf("\n")>=0;var t=null;try{t=fn(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0})}catch(e){return null}if(!t)return null;var n=!this.isRegex&&!e;return n&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(n=this.matchCase),new Do(t,this.wordSeparators?ko(this.wordSeparators):null,n?this.searchString:null)},e}();var Do=function(e,t,n){this.regex=e,this.wordSeparators=t,this.simpleSearch=n};function Eo(e,t,n){if(!n)return new Li(e,null);for(var r=[],i=0,o=t.length;i<o;i++)r[i]=t[i];return new Li(e,r)}var To=function(){function e(e){for(var t=[],n=0,r=0,i=e.length;r<i;r++)10===e.charCodeAt(r)&&(t[n++]=r);this._lineFeedsOffsets=t}return e.prototype.findLineFeedCountBeforeOffset=function(e){var t=this._lineFeedsOffsets,n=0,r=t.length-1;if(-1===r)return 0;if(e<=t[0])return 0;for(;n<r;){var i=n+((r-n)/2>>0);t[i]>=e?r=i-1:t[i+1]>=e?(n=i,r=i):n=i+1}return n+1},e}(),No=function(){function e(){}return e.findMatches=function(e,t,n,r,i){var o=t.parseSearchRequest();return o?o.regex.multiline?this._doFindMatchesMultiline(e,n,new Ao(o.wordSeparators,o.regex),r,i):this._doFindMatchesLineByLine(e,n,o,r,i):[]},e._getMultilineMatchRange=function(e,t,n,r,i,o){var s,a,u=0;if(s=r?t+i+(u=r.findLineFeedCountBeforeOffset(i)):t+i,r){var l=r.findLineFeedCountBeforeOffset(i+o.length)-u;a=s+o.length+l}else a=s+o.length;var c=e.getPositionAt(s),d=e.getPositionAt(a);return new Yr(c.lineNumber,c.column,d.lineNumber,d.column)},e._doFindMatchesMultiline=function(e,t,n,r,i){var o,s=e.getOffsetAt(t.getStartPosition()),a=e.getValueInRange(t,1),u="\r\n"===e.getEOL()?new To(a):null,l=[],c=0;for(n.reset(0);o=n.next(a);)if(l[c++]=Eo(this._getMultilineMatchRange(e,s,a,u,o.index,o[0]),o,r),c>=i)return l;return l},e._doFindMatchesLineByLine=function(e,t,n,r,i){var o=[],s=0;if(t.startLineNumber===t.endLineNumber){var a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);return s=this._findMatchesInLine(n,a,t.startLineNumber,t.startColumn-1,s,o,r,i),o}var u=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);s=this._findMatchesInLine(n,u,t.startLineNumber,t.startColumn-1,s,o,r,i);for(var l=t.startLineNumber+1;l<t.endLineNumber&&s<i;l++)s=this._findMatchesInLine(n,e.getLineContent(l),l,0,s,o,r,i);if(s<i){var c=e.getLineContent(t.endLineNumber).substring(0,t.endColumn-1);s=this._findMatchesInLine(n,c,t.endLineNumber,0,s,o,r,i)}return o},e._findMatchesInLine=function(e,t,n,r,i,o,s,a){var u=e.wordSeparators;if(!s&&e.simpleSearch){for(var l=e.simpleSearch,c=l.length,d=t.length,h=-c;-1!==(h=t.indexOf(l,h+c));)if((!u||Oo(u,t,d,h,c))&&(o[i++]=new Li(new Yr(n,h+1+r,n,h+1+c+r),null),i>=a))return i;return i}var f,p=new Ao(e.wordSeparators,e.regex);p.reset(0);do{if((f=p.next(t))&&(o[i++]=Eo(new Yr(n,f.index+1+r,n,f.index+1+f[0].length+r),f,s),i>=a))return i}while(f);return i},e.findNextMatch=function(e,t,n,r){var i=t.parseSearchRequest();if(!i)return null;var o=new Ao(i.wordSeparators,i.regex);return i.regex.multiline?this._doFindNextMatchMultiline(e,n,o,r):this._doFindNextMatchLineByLine(e,n,o,r)},e._doFindNextMatchMultiline=function(e,t,n,r){var i=new Lt(t.lineNumber,1),o=e.getOffsetAt(i),s=e.getLineCount(),a=e.getValueInRange(new Yr(i.lineNumber,i.column,s,e.getLineMaxColumn(s)),1),u="\r\n"===e.getEOL()?new To(a):null;n.reset(t.column-1);var l=n.next(a);return l?Eo(this._getMultilineMatchRange(e,o,a,u,l.index,l[0]),l,r):1!==t.lineNumber||1!==t.column?this._doFindNextMatchMultiline(e,new Lt(1,1),n,r):null},e._doFindNextMatchLineByLine=function(e,t,n,r){var i=e.getLineCount(),o=t.lineNumber,s=e.getLineContent(o),a=this._findFirstMatchInLine(n,s,o,t.column,r);if(a)return a;for(var u=1;u<=i;u++){var l=(o+u-1)%i,c=e.getLineContent(l+1),d=this._findFirstMatchInLine(n,c,l+1,1,r);if(d)return d}return null},e._findFirstMatchInLine=function(e,t,n,r,i){e.reset(r-1);var o=e.next(t);return o?Eo(new Yr(n,o.index+1,n,o.index+1+o[0].length),o,i):null},e.findPreviousMatch=function(e,t,n,r){var i=t.parseSearchRequest();if(!i)return null;var o=new Ao(i.wordSeparators,i.regex);return i.regex.multiline?this._doFindPreviousMatchMultiline(e,n,o,r):this._doFindPreviousMatchLineByLine(e,n,o,r)},e._doFindPreviousMatchMultiline=function(e,t,n,r){var i=this._doFindMatchesMultiline(e,new Yr(1,1,t.lineNumber,t.column),n,r,9990);if(i.length>0)return i[i.length-1];var o=e.getLineCount();return t.lineNumber!==o||t.column!==e.getLineMaxColumn(o)?this._doFindPreviousMatchMultiline(e,new Lt(o,e.getLineMaxColumn(o)),n,r):null},e._doFindPreviousMatchLineByLine=function(e,t,n,r){var i=e.getLineCount(),o=t.lineNumber,s=e.getLineContent(o).substring(0,t.column-1),a=this._findLastMatchInLine(n,s,o,r);if(a)return a;for(var u=1;u<=i;u++){var l=(i+o-u-1)%i,c=e.getLineContent(l+1),d=this._findLastMatchInLine(n,c,l+1,r);if(d)return d}return null},e._findLastMatchInLine=function(e,t,n,r){var i,o=null;for(e.reset(0);i=e.next(t);)o=Eo(new Yr(n,i.index+1,n,i.index+1+i[0].length),i,r);return o},e}();function Oo(e,t,n,r,i){return function(e,t,n,r,i){if(0===r)return!0;var o=t.charCodeAt(r-1);if(0!==e.get(o))return!0;if(13===o||10===o)return!0;if(i>0){var s=t.charCodeAt(r);if(0!==e.get(s))return!0}return!1}(e,t,0,r,i)&&function(e,t,n,r,i){if(r+i===n)return!0;var o=t.charCodeAt(r+i);if(0!==e.get(o))return!0;if(13===o||10===o)return!0;if(i>0){var s=t.charCodeAt(r+i-1);if(0!==e.get(s))return!0}return!1}(e,t,n,r,i)}var Ao=function(){function e(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}return e.prototype.reset=function(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0},e.prototype.next=function(e){var t,n=e.length;do{if(this._prevMatchStartIndex+this._prevMatchLength===n)return null;if(!(t=this._searchRegex.exec(e)))return null;var r=t.index,i=t[0].length;if(r===this._prevMatchStartIndex&&i===this._prevMatchLength){if(0===i){this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=r,this._prevMatchLength=i,!this._wordSeparators||Oo(this._wordSeparators,e,n,r,i))return t}while(t);return null},e}();function Io(e){var t;return(t=e[e.length-1]<65536?new Uint16Array(e.length):new Uint32Array(e.length)).set(e,0),t}var Po=function(e,t,n,r,i){this.lineStarts=e,this.cr=t,this.lf=n,this.crlf=r,this.isBasicASCII=i};function Ro(e,t){void 0===t&&(t=!0);for(var n=[0],r=1,i=0,o=e.length;i<o;i++){var s=e.charCodeAt(i);13===s?i+1<o&&10===e.charCodeAt(i+1)?(n[r++]=i+2,i++):n[r++]=i+1:10===s&&(n[r++]=i+1)}return t?Io(n):n}var Fo=function(e,t,n,r,i){this.bufferIndex=e,this.start=t,this.end=n,this.lineFeedCnt=r,this.length=i},Yo=function(e,t){this.buffer=e,this.lineStarts=t},jo=function(){function e(e){this._limit=e,this._cache=[]}return e.prototype.get=function(e){for(var t=this._cache.length-1;t>=0;t--){var n=this._cache[t];if(n.nodeStartOffset<=e&&n.nodeStartOffset+n.node.piece.length>=e)return n}return null},e.prototype.get2=function(e){for(var t=this._cache.length-1;t>=0;t--){var n=this._cache[t];if(n.nodeStartLineNumber&&n.nodeStartLineNumber<e&&n.nodeStartLineNumber+n.node.piece.lineFeedCnt>=e)return n}return null},e.prototype.set=function(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)},e.prototype.valdiate=function(e){for(var t=!1,n=this._cache,r=0;r<n.length;r++){var i=n[r];(null===i.node.parent||i.nodeStartOffset>=e)&&(n[r]=null,t=!0)}if(t){for(var o=[],s=0,a=n;s<a.length;s++){var u=a[s];null!==u&&o.push(u)}this._cache=o}},e}(),Bo=function(){function e(e,t,n){this.create(e,t,n)}return e.prototype.create=function(e,t,n){this._buffers=[new Yo("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=oo,this._lineCnt=1,this._length=0,this._EOL=t,this._EOLLength=t.length,this._EOLNormalized=n;for(var r=null,i=0,o=e.length;i<o;i++)if(e[i].buffer.length>0){e[i].lineStarts||(e[i].lineStarts=Ro(e[i].buffer));var s=new Fo(i+1,{line:0,column:0},{line:e[i].lineStarts.length-1,column:e[i].buffer.length-e[i].lineStarts[e[i].lineStarts.length-1]},e[i].lineStarts.length-1,e[i].buffer.length);this._buffers.push(e[i]),r=this.rbInsertRight(r,s)}this._searchCache=new jo(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()},e.prototype.normalizeEOL=function(e){var t=this,n=65535-Math.floor(21845),r=2*n,i="",o=0,s=[];if(this.iterate(this.root,(function(a){var u=t.getNodeContent(a),l=u.length;if(o<=n||o+l<r)return i+=u,o+=l,!0;var c=i.replace(/\r\n|\r|\n/g,e);return s.push(new Yo(c,Ro(c))),i=u,o=l,!0})),o>0){var a=i.replace(/\r\n|\r|\n/g,e);s.push(new Yo(a,Ro(a)))}this.create(s,e,!0)},e.prototype.getEOL=function(){return this._EOL},e.prototype.setEOL=function(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)},e.prototype.getOffsetAt=function(e,t){for(var n=0,r=this.root;r!==oo;)if(r.left!==oo&&r.lf_left+1>=e)r=r.left;else{if(r.lf_left+r.piece.lineFeedCnt+1>=e)return(n+=r.size_left)+(this.getAccumulatedValue(r,e-r.lf_left-2)+t-1);e-=r.lf_left+r.piece.lineFeedCnt,n+=r.size_left+r.piece.length,r=r.right}return n},e.prototype.getPositionAt=function(e){e=Math.floor(e),e=Math.max(0,e);for(var t=this.root,n=0,r=e;t!==oo;)if(0!==t.size_left&&t.size_left>=e)t=t.left;else{if(t.size_left+t.piece.length>=e){var i=this.getIndexOf(t,e-t.size_left);if(n+=t.lf_left+i.index,0===i.index){var o=this.getOffsetAt(n+1,1);return new Lt(n+1,r-o+1)}return new Lt(n+1,i.remainder+1)}if(e-=t.size_left+t.piece.length,n+=t.lf_left+t.piece.lineFeedCnt,t.right===oo){o=this.getOffsetAt(n+1,1);return new Lt(n+1,r-e-o+1)}t=t.right}return new Lt(1,1)},e.prototype.getValueInRange=function(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";var n=this.nodeAt2(e.startLineNumber,e.startColumn),r=this.nodeAt2(e.endLineNumber,e.endColumn),i=this.getValueInRange2(n,r);return t?t===this._EOL&&this._EOLNormalized&&t===this.getEOL()&&this._EOLNormalized?i:i.replace(/\r\n|\r|\n/g,t):i},e.prototype.getValueInRange2=function(e,t){if(e.node===t.node){var n=e.node,r=this._buffers[n.piece.bufferIndex].buffer,i=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return r.substring(i+e.remainder,i+t.remainder)}var o=e.node,s=this._buffers[o.piece.bufferIndex].buffer,a=this.offsetInBuffer(o.piece.bufferIndex,o.piece.start),u=s.substring(a+e.remainder,a+o.piece.length);for(o=o.next();o!==oo;){var l=this._buffers[o.piece.bufferIndex].buffer,c=this.offsetInBuffer(o.piece.bufferIndex,o.piece.start);if(o===t.node){u+=l.substring(c,c+t.remainder);break}u+=l.substr(c,o.piece.length),o=o.next()}return u},e.prototype.getLinesContent=function(){return this.getContentOfSubTree(this.root).split(/\r\n|\r|\n/)},e.prototype.getLength=function(){return this._length},e.prototype.getLineCount=function(){return this._lineCnt},e.prototype.getLineContent=function(e){return this._lastVisitedLine.lineNumber===e?this._lastVisitedLine.value:(this._lastVisitedLine.lineNumber=e,e===this._lineCnt?this._lastVisitedLine.value=this.getLineRawContent(e):this._EOLNormalized?this._lastVisitedLine.value=this.getLineRawContent(e,this._EOLLength):this._lastVisitedLine.value=this.getLineRawContent(e).replace(/(\r\n|\r|\n)$/,""),this._lastVisitedLine.value)},e.prototype.getLineCharCode=function(e,t){var n=this.nodeAt2(e,t+1);if(n.remainder===n.node.piece.length){var r=n.node.next();if(!r)return 0;var i=this._buffers[r.piece.bufferIndex],o=this.offsetInBuffer(r.piece.bufferIndex,r.piece.start);return i.buffer.charCodeAt(o)}i=this._buffers[n.node.piece.bufferIndex];var s=(o=this.offsetInBuffer(n.node.piece.bufferIndex,n.node.piece.start))+n.remainder;return i.buffer.charCodeAt(s)},e.prototype.getLineLength=function(e){if(e===this.getLineCount()){var t=this.getOffsetAt(e,1);return this.getLength()-t}return this.getOffsetAt(e+1,1)-this.getOffsetAt(e,1)-this._EOLLength},e.prototype.findMatchesInNode=function(e,t,n,r,i,o,s,a,u,l,c){var d,h=this._buffers[e.piece.bufferIndex],f=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start),p=this.offsetInBuffer(e.piece.bufferIndex,i),g=this.offsetInBuffer(e.piece.bufferIndex,o);t.reset(p);var m={line:0,column:0};do{if(d=t.next(h.buffer)){if(d.index>=g)return l;this.positionInBuffer(e,d.index-f,m);var _=this.getLineFeedCnt(e.piece.bufferIndex,i,m),y=m.line===i.line?m.column-i.column+r:m.column+1,v=y+d[0].length;if(c[l++]=Eo(new Yr(n+_,y,n+_,v),d,a),d.index+d[0].length>=g)return l;if(l>=u)return l}}while(d);return l},e.prototype.findMatchesLineByLine=function(e,t,n,r){var i=[],o=0,s=new Ao(t.wordSeparators,t.regex),a=this.nodeAt2(e.startLineNumber,e.startColumn);if(null===a)return[];var u=this.nodeAt2(e.endLineNumber,e.endColumn);if(null===u)return[];var l=this.positionInBuffer(a.node,a.remainder),c=this.positionInBuffer(u.node,u.remainder);if(a.node===u.node)return this.findMatchesInNode(a.node,s,e.startLineNumber,e.startColumn,l,c,t,n,r,o,i),i;for(var d=e.startLineNumber,h=a.node;h!==u.node;){var f=this.getLineFeedCnt(h.piece.bufferIndex,l,h.piece.end);if(f>=1){var p=this._buffers[h.piece.bufferIndex].lineStarts,g=this.offsetInBuffer(h.piece.bufferIndex,h.piece.start),m=p[l.line+f],_=d===e.startLineNumber?e.startColumn:1;if((o=this.findMatchesInNode(h,s,d,_,l,this.positionInBuffer(h,m-g),t,n,r,o,i))>=r)return i;d+=f}var y=d===e.startLineNumber?e.startColumn-1:0;if(d===e.endLineNumber){var v=this.getLineContent(d).substring(y,e.endColumn-1);return o=this._findMatchesInLine(t,s,v,e.endLineNumber,y,o,i,n,r),i}if((o=this._findMatchesInLine(t,s,this.getLineContent(d).substr(y),d,y,o,i,n,r))>=r)return i;d++,h=(a=this.nodeAt2(d,1)).node,l=this.positionInBuffer(a.node,a.remainder)}if(d===e.endLineNumber){var b=d===e.startLineNumber?e.startColumn-1:0;v=this.getLineContent(d).substring(b,e.endColumn-1);return o=this._findMatchesInLine(t,s,v,e.endLineNumber,b,o,i,n,r),i}var w=d===e.startLineNumber?e.startColumn:1;return o=this.findMatchesInNode(u.node,s,d,w,l,c,t,n,r,o,i),i},e.prototype._findMatchesInLine=function(e,t,n,r,i,o,s,a,u){var l,c=e.wordSeparators;if(!a&&e.simpleSearch){for(var d=e.simpleSearch,h=d.length,f=n.length,p=-h;-1!==(p=n.indexOf(d,p+h));)if((!c||Oo(c,n,f,p,h))&&(s[o++]=new Li(new Yr(r,p+1+i,r,p+1+h+i),null),o>=u))return o;return o}t.reset(0);do{if((l=t.next(n))&&(s[o++]=Eo(new Yr(r,l.index+1+i,r,l.index+1+l[0].length+i),l,a),o>=u))return o}while(l);return o},e.prototype.insert=function(e,t,n){if(void 0===n&&(n=!1),this._EOLNormalized=this._EOLNormalized&&n,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==oo){var r=this.nodeAt(e),i=r.node,o=r.remainder,s=r.nodeStartOffset,a=i.piece,u=a.bufferIndex,l=this.positionInBuffer(i,o);if(0===i.piece.bufferIndex&&a.end.line===this._lastChangeBufferPos.line&&a.end.column===this._lastChangeBufferPos.column&&s+a.length===e&&t.length<65535)return this.appendToNode(i,t),void this.computeBufferMetadata();if(s===e)this.insertContentToNodeLeft(t,i),this._searchCache.valdiate(e);else if(s+i.piece.length>e){var c=[],d=new Fo(a.bufferIndex,l,a.end,this.getLineFeedCnt(a.bufferIndex,l,a.end),this.offsetInBuffer(u,a.end)-this.offsetInBuffer(u,l));if(this.shouldCheckCRLF()&&this.endWithCR(t))if(10===this.nodeCharCodeAt(i,o)){var h={line:d.start.line+1,column:0};d=new Fo(d.bufferIndex,h,d.end,this.getLineFeedCnt(d.bufferIndex,h,d.end),d.length-1),t+="\n"}if(this.shouldCheckCRLF()&&this.startWithLF(t))if(13===this.nodeCharCodeAt(i,o-1)){var f=this.positionInBuffer(i,o-1);this.deleteNodeTail(i,f),t="\r"+t,0===i.piece.length&&c.push(i)}else this.deleteNodeTail(i,l);else this.deleteNodeTail(i,l);var p=this.createNewPieces(t);d.length>0&&this.rbInsertRight(i,d);for(var g=i,m=0;m<p.length;m++)g=this.rbInsertRight(g,p[m]);this.deleteNodes(c)}else this.insertContentToNodeRight(t,i)}else{var _=this.createNewPieces(t);for(i=this.rbInsertLeft(null,_[0]),m=1;m<_.length;m++)i=this.rbInsertRight(i,_[m])}this.computeBufferMetadata()},e.prototype.delete=function(e,t){if(this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",!(t<=0||this.root===oo)){var n=this.nodeAt(e),r=this.nodeAt(e+t),i=n.node,o=r.node;if(i===o){var s=this.positionInBuffer(i,n.remainder),a=this.positionInBuffer(i,r.remainder);if(n.nodeStartOffset===e){if(t===i.piece.length){var u=i.next();return po(this,i),this.validateCRLFWithPrevNode(u),void this.computeBufferMetadata()}return this.deleteNodeHead(i,a),this._searchCache.valdiate(e),this.validateCRLFWithPrevNode(i),void this.computeBufferMetadata()}return n.nodeStartOffset+i.piece.length===e+t?(this.deleteNodeTail(i,s),this.validateCRLFWithNextNode(i),void this.computeBufferMetadata()):(this.shrinkNode(i,s,a),void this.computeBufferMetadata())}var l=[],c=this.positionInBuffer(i,n.remainder);this.deleteNodeTail(i,c),this._searchCache.valdiate(e),0===i.piece.length&&l.push(i);var d=this.positionInBuffer(o,r.remainder);this.deleteNodeHead(o,d),0===o.piece.length&&l.push(o);for(var h=i.next();h!==oo&&h!==o;h=h.next())l.push(h);var f=0===i.piece.length?i.prev():i;this.deleteNodes(l),this.validateCRLFWithNextNode(f),this.computeBufferMetadata()}},e.prototype.insertContentToNodeLeft=function(e,t){var n=[];if(this.shouldCheckCRLF()&&this.endWithCR(e)&&this.startWithLF(t)){var r=t.piece,i={line:r.start.line+1,column:0},o=new Fo(r.bufferIndex,i,r.end,this.getLineFeedCnt(r.bufferIndex,i,r.end),r.length-1);t.piece=o,e+="\n",mo(this,t,-1,-1),0===t.piece.length&&n.push(t)}for(var s=this.createNewPieces(e),a=this.rbInsertLeft(t,s[s.length-1]),u=s.length-2;u>=0;u--)a=this.rbInsertLeft(a,s[u]);this.validateCRLFWithPrevNode(a),this.deleteNodes(n)},e.prototype.insertContentToNodeRight=function(e,t){this.adjustCarriageReturnFromNext(e,t)&&(e+="\n");for(var n=this.createNewPieces(e),r=this.rbInsertRight(t,n[0]),i=r,o=1;o<n.length;o++)i=this.rbInsertRight(i,n[o]);this.validateCRLFWithPrevNode(r)},e.prototype.positionInBuffer=function(e,t,n){for(var r=e.piece,i=e.piece.bufferIndex,o=this._buffers[i].lineStarts,s=o[r.start.line]+r.start.column+t,a=r.start.line,u=r.end.line,l=0,c=0,d=0;a<=u&&(d=o[l=a+(u-a)/2|0],l!==u);)if(c=o[l+1],s<d)u=l-1;else{if(!(s>=c))break;a=l+1}return n?(n.line=l,n.column=s-d,null):{line:l,column:s-d}},e.prototype.getLineFeedCnt=function(e,t,n){if(0===n.column)return n.line-t.line;var r=this._buffers[e].lineStarts;if(n.line===r.length-1)return n.line-t.line;var i=r[n.line+1],o=r[n.line]+n.column;if(i>o+1)return n.line-t.line;var s=o-1;return 13===this._buffers[e].buffer.charCodeAt(s)?n.line-t.line+1:n.line-t.line},e.prototype.offsetInBuffer=function(e,t){return this._buffers[e].lineStarts[t.line]+t.column},e.prototype.deleteNodes=function(e){for(var t=0;t<e.length;t++)po(this,e[t])},e.prototype.createNewPieces=function(e){if(e.length>65535){for(var t=[];e.length>65535;){var n=e.charCodeAt(65534),r=void 0;13===n||n>=55296&&n<=56319?(r=e.substring(0,65534),e=e.substring(65534)):(r=e.substring(0,65535),e=e.substring(65535));var i=Ro(r);t.push(new Fo(this._buffers.length,{line:0,column:0},{line:i.length-1,column:r.length-i[i.length-1]},i.length-1,r.length)),this._buffers.push(new Yo(r,i))}var o=Ro(e);return t.push(new Fo(this._buffers.length,{line:0,column:0},{line:o.length-1,column:e.length-o[o.length-1]},o.length-1,e.length)),this._buffers.push(new Yo(e,o)),t}var s=this._buffers[0].buffer.length,a=Ro(e,!1),u=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===s&&0!==s&&this.startWithLF(e)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},u=this._lastChangeBufferPos;for(var l=0;l<a.length;l++)a[l]+=s+1;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(a.slice(1)),this._buffers[0].buffer+="_"+e,s+=1}else{if(0!==s)for(l=0;l<a.length;l++)a[l]+=s;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(a.slice(1)),this._buffers[0].buffer+=e}var c=this._buffers[0].buffer.length,d=this._buffers[0].lineStarts.length-1,h={line:d,column:c-this._buffers[0].lineStarts[d]},f=new Fo(0,u,h,this.getLineFeedCnt(0,u,h),c-s);return this._lastChangeBufferPos=h,[f]},e.prototype.getLineRawContent=function(e,t){void 0===t&&(t=0);var n=this.root,r="",i=this._searchCache.get2(e);if(i){n=i.node;var o=this.getAccumulatedValue(n,e-i.nodeStartLineNumber-1),s=this._buffers[n.piece.bufferIndex].buffer,a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);if(i.nodeStartLineNumber+n.piece.lineFeedCnt!==e){var u=this.getAccumulatedValue(n,e-i.nodeStartLineNumber);return s.substring(a+o,a+u-t)}r=s.substring(a+o,a+n.piece.length)}else for(var l=0,c=e;n!==oo;)if(n.left!==oo&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){o=this.getAccumulatedValue(n,e-n.lf_left-2),u=this.getAccumulatedValue(n,e-n.lf_left-1),s=this._buffers[n.piece.bufferIndex].buffer,a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return l+=n.size_left,this._searchCache.set({node:n,nodeStartOffset:l,nodeStartLineNumber:c-(e-1-n.lf_left)}),s.substring(a+o,a+u-t)}if(n.lf_left+n.piece.lineFeedCnt===e-1){o=this.getAccumulatedValue(n,e-n.lf_left-2),s=this._buffers[n.piece.bufferIndex].buffer,a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);r=s.substring(a+o,a+n.piece.length);break}e-=n.lf_left+n.piece.lineFeedCnt,l+=n.size_left+n.piece.length,n=n.right}for(n=n.next();n!==oo;){s=this._buffers[n.piece.bufferIndex].buffer;if(n.piece.lineFeedCnt>0){u=this.getAccumulatedValue(n,0),a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return r+=s.substring(a,a+u-t)}a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);r+=s.substr(a,n.piece.length),n=n.next()}return r},e.prototype.computeBufferMetadata=function(){for(var e=this.root,t=1,n=0;e!==oo;)t+=e.lf_left+e.piece.lineFeedCnt,n+=e.size_left+e.piece.length,e=e.right;this._lineCnt=t,this._length=n,this._searchCache.valdiate(this._length)},e.prototype.getIndexOf=function(e,t){var n=e.piece,r=this.positionInBuffer(e,t),i=r.line-n.start.line;if(this.offsetInBuffer(n.bufferIndex,n.end)-this.offsetInBuffer(n.bufferIndex,n.start)===t){var o=this.getLineFeedCnt(e.piece.bufferIndex,n.start,r);if(o!==i)return{index:o,remainder:0}}return{index:i,remainder:r.column}},e.prototype.getAccumulatedValue=function(e,t){if(t<0)return 0;var n=e.piece,r=this._buffers[n.bufferIndex].lineStarts,i=n.start.line+t+1;return i>n.end.line?r[n.end.line]+n.end.column-r[n.start.line]-n.start.column:r[i]-r[n.start.line]-n.start.column},e.prototype.deleteNodeTail=function(e,t){var n=e.piece,r=n.lineFeedCnt,i=this.offsetInBuffer(n.bufferIndex,n.end),o=t,s=this.offsetInBuffer(n.bufferIndex,o),a=this.getLineFeedCnt(n.bufferIndex,n.start,o),u=a-r,l=s-i,c=n.length+l;e.piece=new Fo(n.bufferIndex,n.start,o,a,c),mo(this,e,l,u)},e.prototype.deleteNodeHead=function(e,t){var n=e.piece,r=n.lineFeedCnt,i=this.offsetInBuffer(n.bufferIndex,n.start),o=t,s=this.getLineFeedCnt(n.bufferIndex,o,n.end),a=s-r,u=i-this.offsetInBuffer(n.bufferIndex,o),l=n.length+u;e.piece=new Fo(n.bufferIndex,o,n.end,s,l),mo(this,e,u,a)},e.prototype.shrinkNode=function(e,t,n){var r=e.piece,i=r.start,o=r.end,s=r.length,a=r.lineFeedCnt,u=t,l=this.getLineFeedCnt(r.bufferIndex,r.start,u),c=this.offsetInBuffer(r.bufferIndex,t)-this.offsetInBuffer(r.bufferIndex,i);e.piece=new Fo(r.bufferIndex,r.start,u,l,c),mo(this,e,c-s,l-a);var d=new Fo(r.bufferIndex,n,o,this.getLineFeedCnt(r.bufferIndex,n,o),this.offsetInBuffer(r.bufferIndex,o)-this.offsetInBuffer(r.bufferIndex,n)),h=this.rbInsertRight(e,d);this.validateCRLFWithPrevNode(h)},e.prototype.appendToNode=function(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+="\n");var n=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e),r=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;for(var i=Ro(t,!1),o=0;o<i.length;o++)i[o]+=r;if(n){var s=this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-2];this._buffers[0].lineStarts.pop(),this._lastChangeBufferPos={line:this._lastChangeBufferPos.line-1,column:r-s}}this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(i.slice(1));var a=this._buffers[0].lineStarts.length-1,u={line:a,column:this._buffers[0].buffer.length-this._buffers[0].lineStarts[a]},l=e.piece.length+t.length,c=e.piece.lineFeedCnt,d=this.getLineFeedCnt(0,e.piece.start,u),h=d-c;e.piece=new Fo(e.piece.bufferIndex,e.piece.start,u,d,l),this._lastChangeBufferPos=u,mo(this,e,t.length,h)},e.prototype.nodeAt=function(e){var t=this.root,n=this._searchCache.get(e);if(n)return{node:n.node,nodeStartOffset:n.nodeStartOffset,remainder:e-n.nodeStartOffset};for(var r=0;t!==oo;)if(t.size_left>e)t=t.left;else{if(t.size_left+t.piece.length>=e){r+=t.size_left;var i={node:t,remainder:e-t.size_left,nodeStartOffset:r};return this._searchCache.set(i),i}e-=t.size_left+t.piece.length,r+=t.size_left+t.piece.length,t=t.right}return null},e.prototype.nodeAt2=function(e,t){for(var n=this.root,r=0;n!==oo;)if(n.left!==oo&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){var i=this.getAccumulatedValue(n,e-n.lf_left-2),o=this.getAccumulatedValue(n,e-n.lf_left-1);return r+=n.size_left,{node:n,remainder:Math.min(i+t-1,o),nodeStartOffset:r}}if(n.lf_left+n.piece.lineFeedCnt===e-1){if((i=this.getAccumulatedValue(n,e-n.lf_left-2))+t-1<=n.piece.length)return{node:n,remainder:i+t-1,nodeStartOffset:r};t-=n.piece.length-i;break}e-=n.lf_left+n.piece.lineFeedCnt,r+=n.size_left+n.piece.length,n=n.right}for(n=n.next();n!==oo;){if(n.piece.lineFeedCnt>0){o=this.getAccumulatedValue(n,0);var s=this.offsetOfNode(n);return{node:n,remainder:Math.min(t-1,o),nodeStartOffset:s}}if(n.piece.length>=t-1)return{node:n,remainder:t-1,nodeStartOffset:this.offsetOfNode(n)};t-=n.piece.length,n=n.next()}return null},e.prototype.nodeCharCodeAt=function(e,t){if(e.piece.lineFeedCnt<1)return-1;var n=this._buffers[e.piece.bufferIndex],r=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return n.buffer.charCodeAt(r)},e.prototype.offsetOfNode=function(e){if(!e)return 0;for(var t=e.size_left;e!==this.root;)e.parent.right===e&&(t+=e.parent.size_left+e.parent.piece.length),e=e.parent;return t},e.prototype.shouldCheckCRLF=function(){return!(this._EOLNormalized&&"\n"===this._EOL)},e.prototype.startWithLF=function(e){if("string"==typeof e)return 10===e.charCodeAt(0);if(e===oo||0===e.piece.lineFeedCnt)return!1;var t=e.piece,n=this._buffers[t.bufferIndex].lineStarts,r=t.start.line,i=n[r]+t.start.column;return r!==n.length-1&&(!(n[r+1]>i+1)&&10===this._buffers[t.bufferIndex].buffer.charCodeAt(i))},e.prototype.endWithCR=function(e){return"string"==typeof e?13===e.charCodeAt(e.length-1):e!==oo&&0!==e.piece.lineFeedCnt&&13===this.nodeCharCodeAt(e,e.piece.length-1)},e.prototype.validateCRLFWithPrevNode=function(e){if(this.shouldCheckCRLF()&&this.startWithLF(e)){var t=e.prev();this.endWithCR(t)&&this.fixCRLF(t,e)}},e.prototype.validateCRLFWithNextNode=function(e){if(this.shouldCheckCRLF()&&this.endWithCR(e)){var t=e.next();this.startWithLF(t)&&this.fixCRLF(e,t)}},e.prototype.fixCRLF=function(e,t){var n,r=[],i=this._buffers[e.piece.bufferIndex].lineStarts;n=0===e.piece.end.column?{line:e.piece.end.line-1,column:i[e.piece.end.line]-i[e.piece.end.line-1]-1}:{line:e.piece.end.line,column:e.piece.end.column-1};var o=e.piece.length-1,s=e.piece.lineFeedCnt-1;e.piece=new Fo(e.piece.bufferIndex,e.piece.start,n,s,o),mo(this,e,-1,-1),0===e.piece.length&&r.push(e);var a={line:t.piece.start.line+1,column:0},u=t.piece.length-1,l=this.getLineFeedCnt(t.piece.bufferIndex,a,t.piece.end);t.piece=new Fo(t.piece.bufferIndex,a,t.piece.end,l,u),mo(this,t,-1,-1),0===t.piece.length&&r.push(t);var c=this.createNewPieces("\r\n");this.rbInsertRight(e,c[0]);for(var d=0;d<r.length;d++)po(this,r[d])},e.prototype.adjustCarriageReturnFromNext=function(e,t){if(this.shouldCheckCRLF()&&this.endWithCR(e)){var n=t.next();if(this.startWithLF(n)){if(e+="\n",1===n.piece.length)po(this,n);else{var r=n.piece,i={line:r.start.line+1,column:0},o=r.length-1,s=this.getLineFeedCnt(r.bufferIndex,i,r.end);n.piece=new Fo(r.bufferIndex,i,r.end,s,o),mo(this,n,-1,-1)}return!0}}return!1},e.prototype.iterate=function(e,t){if(e===oo)return t(oo);var n=this.iterate(e.left,t);return n?t(e)&&this.iterate(e.right,t):n},e.prototype.getNodeContent=function(e){if(e===oo)return"";var t=this._buffers[e.piece.bufferIndex],n=e.piece,r=this.offsetInBuffer(n.bufferIndex,n.start),i=this.offsetInBuffer(n.bufferIndex,n.end);return t.buffer.substring(r,i)},e.prototype.rbInsertRight=function(e,t){var n=new io(t,1);if(n.left=oo,n.right=oo,n.parent=oo,n.size_left=0,n.lf_left=0,this.root===oo)this.root=n,n.color=0;else if(e.right===oo)e.right=n,n.parent=e;else{var r=so(e.right);r.left=n,n.parent=r}return go(this,n),n},e.prototype.rbInsertLeft=function(e,t){var n=new io(t,1);if(n.left=oo,n.right=oo,n.parent=oo,n.size_left=0,n.lf_left=0,this.root===oo)this.root=n,n.color=0;else if(e.left===oo)e.left=n,n.parent=e;else{var r=ao(e.left);r.right=n,n.parent=r}return go(this,n),n},e.prototype.getContentOfSubTree=function(e){var t=this,n="";return this.iterate(e,(function(e){return n+=t.getNodeContent(e),!0})),n},e}(),Wo=function(){function e(e,t,n,r,i,o){this._BOM=t,this._mightContainNonBasicASCII=!i,this._mightContainRTL=r,this._pieceTree=new Bo(e,n,o)}return e.prototype.mightContainRTL=function(){return this._mightContainRTL},e.prototype.mightContainNonBasicASCII=function(){return this._mightContainNonBasicASCII},e.prototype.getBOM=function(){return this._BOM},e.prototype.getEOL=function(){return this._pieceTree.getEOL()},e.prototype.getOffsetAt=function(e,t){return this._pieceTree.getOffsetAt(e,t)},e.prototype.getPositionAt=function(e){return this._pieceTree.getPositionAt(e)},e.prototype.getRangeAt=function(e,t){var n=e+t,r=this.getPositionAt(e),i=this.getPositionAt(n);return new Yr(r.lineNumber,r.column,i.lineNumber,i.column)},e.prototype.getValueInRange=function(e,t){if(void 0===t&&(t=0),e.isEmpty())return"";var n=this._getEndOfLine(t);return this._pieceTree.getValueInRange(e,n)},e.prototype.getValueLengthInRange=function(e,t){if(void 0===t&&(t=0),e.isEmpty())return 0;if(e.startLineNumber===e.endLineNumber)return e.endColumn-e.startColumn;var n=this.getOffsetAt(e.startLineNumber,e.startColumn);return this.getOffsetAt(e.endLineNumber,e.endColumn)-n},e.prototype.getLength=function(){return this._pieceTree.getLength()},e.prototype.getLineCount=function(){return this._pieceTree.getLineCount()},e.prototype.getLinesContent=function(){return this._pieceTree.getLinesContent()},e.prototype.getLineContent=function(e){return this._pieceTree.getLineContent(e)},e.prototype.getLineCharCode=function(e,t){return this._pieceTree.getLineCharCode(e,t)},e.prototype.getLineLength=function(e){return this._pieceTree.getLineLength(e)},e.prototype.getLineFirstNonWhitespaceColumn=function(e){var t=gn(this.getLineContent(e));return-1===t?0:t+1},e.prototype.getLineLastNonWhitespaceColumn=function(e){var t=_n(this.getLineContent(e));return-1===t?0:t+2},e.prototype._getEndOfLine=function(e){switch(e){case 1:return"\n";case 2:return"\r\n";case 0:return this.getEOL()}throw new Error("Unknown EOL preference")},e.prototype.setEOL=function(e){this._pieceTree.setEOL(e)},e.prototype.applyEdits=function(t,n){for(var r=this._mightContainRTL,i=this._mightContainNonBasicASCII,o=!0,s=[],a=0;a<t.length;a++){var u=t[a];o&&u._isTracked&&(o=!1);var l=u.range;!r&&u.text&&(r=Mn(u.text)),!i&&u.text&&(i=!Tn(u.text)),s[a]={sortIndex:a,identifier:u.identifier||null,range:l,rangeOffset:this.getOffsetAt(l.startLineNumber,l.startColumn),rangeLength:this.getValueLengthInRange(l),lines:u.text?u.text.split(/\r\n|\r|\n/):null,forceMoveMarkers:Boolean(u.forceMoveMarkers),isAutoWhitespaceEdit:u.isAutoWhitespaceEdit||!1}}s.sort(e._sortOpsAscending);for(var c=!1,d=(a=0,s.length-1);a<d;a++){var h=s[a].range.getEndPosition(),f=s[a+1].range.getStartPosition();if(f.isBeforeOrEqual(h)){if(f.isBefore(h))throw new Error("Overlapping ranges are not allowed!");c=!0}}o&&(s=this._reduceOperations(s));var p=e._getInverseEditRanges(s),g=[];for(a=0;a<s.length;a++){u=s[a];var m=p[a];if(n&&u.isAutoWhitespaceEdit&&u.range.isEmpty())for(var _=m.startLineNumber;_<=m.endLineNumber;_++){var y="";_===m.startLineNumber&&-1!==gn(y=this.getLineContent(u.range.startLineNumber))||g.push({lineNumber:_,oldContent:y})}}var v=[];for(a=0;a<s.length;a++){u=s[a],m=p[a];v[a]={sortIndex:u.sortIndex,identifier:u.identifier,range:m,text:this.getValueInRange(u.range),forceMoveMarkers:u.forceMoveMarkers}}c||v.sort((function(e,t){return e.sortIndex-t.sortIndex})),this._mightContainRTL=r,this._mightContainNonBasicASCII=i;var b=this._doApplyEdits(s),w=null;if(n&&g.length>0){g.sort((function(e,t){return t.lineNumber-e.lineNumber})),w=[];a=0;for(var C=g.length;a<C;a++){_=g[a].lineNumber;if(!(a>0&&g[a-1].lineNumber===_)){var S=g[a].oldContent,x=this.getLineContent(_);0!==x.length&&x!==S&&-1===gn(x)&&w.push(_)}}}return new ki(v,b,w)},e.prototype._reduceOperations=function(e){return e.length<1e3?e:[this._toSingleEditOperation(e)]},e.prototype._toSingleEditOperation=function(e){for(var t=!1,n=e[0].range,r=e[e.length-1].range,i=new Yr(n.startLineNumber,n.startColumn,r.endLineNumber,r.endColumn),o=n.startLineNumber,s=n.startColumn,a=[],u=0,l=e.length;u<l;u++){var c=e[u],d=c.range;t=t||c.forceMoveMarkers;for(var h=o;h<d.startLineNumber;h++)h===o?a.push(this.getLineContent(h).substring(s-1)):(a.push("\n"),a.push(this.getLineContent(h)));if(d.startLineNumber===o?a.push(this.getLineContent(d.startLineNumber).substring(s-1,d.startColumn-1)):(a.push("\n"),a.push(this.getLineContent(d.startLineNumber).substring(0,d.startColumn-1))),c.lines)for(var f=0,p=c.lines.length;f<p;f++)0!==f&&a.push("\n"),a.push(c.lines[f]);o=c.range.endLineNumber,s=c.range.endColumn}return{sortIndex:0,identifier:e[0].identifier,range:i,rangeOffset:this.getOffsetAt(i.startLineNumber,i.startColumn),rangeLength:this.getValueLengthInRange(i,0),lines:a.join("").split("\n"),forceMoveMarkers:t,isAutoWhitespaceEdit:!1}},e.prototype._doApplyEdits=function(t){t.sort(e._sortOpsDescending);for(var n=[],r=0;r<t.length;r++){var i=t[r],o=i.range.startLineNumber,s=i.range.startColumn,a=i.range.endLineNumber,u=i.range.endColumn;if(o!==a||s!==u||i.lines&&0!==i.lines.length){var l=a-o,c=i.lines?i.lines.length-1:0,d=Math.min(l,c),h=i.lines?i.lines.join(this.getEOL()):"";if(h?(this._pieceTree.delete(i.rangeOffset,i.rangeLength),this._pieceTree.insert(i.rangeOffset,h,!0)):this._pieceTree.delete(i.rangeOffset,i.rangeLength),d<c){for(var f=[],p=d+1;p<=c;p++)f.push(i.lines[p]);f[f.length-1]=this.getLineContent(o+c-1)}var g=new Yr(o,s,a,u);n.push({range:g,rangeLength:i.rangeLength,text:h,rangeOffset:i.rangeOffset,forceMoveMarkers:i.forceMoveMarkers})}}return n},e.prototype.findMatchesLineByLine=function(e,t,n,r){return this._pieceTree.findMatchesLineByLine(e,t,n,r)},e._getInverseEditRanges=function(e){for(var t=[],n=0,r=0,i=null,o=0,s=e.length;o<s;o++){var a=e[o],u=void 0,l=void 0;i?i.range.endLineNumber===a.range.startLineNumber?(u=n,l=r+(a.range.startColumn-i.range.endColumn)):(u=n+(a.range.startLineNumber-i.range.endLineNumber),l=a.range.startColumn):(u=a.range.startLineNumber,l=a.range.startColumn);var c=void 0;if(a.lines&&a.lines.length>0){var d=a.lines.length,h=a.lines[0],f=a.lines[d-1];c=1===d?new Yr(u,l,u,l+h.length):new Yr(u,l,u+d-1,f.length+1)}else c=new Yr(u,l,u,l);n=c.endLineNumber,r=c.endColumn,t.push(c),i=a}return t},e._sortOpsAscending=function(e,t){var n=Yr.compareRangesUsingEnds(e.range,t.range);return 0===n?e.sortIndex-t.sortIndex:n},e._sortOpsDescending=function(e,t){var n=Yr.compareRangesUsingEnds(e.range,t.range);return 0===n?t.sortIndex-e.sortIndex:-n},e}(),Ho=function(){function e(e,t,n,r,i,o,s,a){this._chunks=e,this._bom=t,this._cr=n,this._lf=r,this._crlf=i,this._containsRTL=o,this._isBasicASCII=s,this._normalizeEOL=a}return e.prototype._getEOL=function(e){var t=this._cr+this._lf+this._crlf,n=this._cr+this._crlf;return 0===t?1===e?"\n":"\r\n":n>t/2?"\r\n":"\n"},e.prototype.create=function(e){var t=this._getEOL(e),n=this._chunks;if(this._normalizeEOL&&("\r\n"===t&&(this._cr>0||this._lf>0)||"\n"===t&&(this._cr>0||this._crlf>0)))for(var r=0,i=n.length;r<i;r++){var o=n[r].buffer.replace(/\r\n|\r|\n/g,t),s=Ro(o);n[r]=new Yo(o,s)}return new Wo(n,this._bom,t,this._containsRTL,this._isBasicASCII,this._normalizeEOL)},e}(),Vo=function(){function e(){this.chunks=[],this.BOM="",this._hasPreviousChar=!1,this._previousChar=0,this._tmpLineStarts=[],this.cr=0,this.lf=0,this.crlf=0,this.containsRTL=!1,this.isBasicASCII=!0}return e.prototype.acceptChunk=function(e){if(0!==e.length){0===this.chunks.length&&An(e)&&(this.BOM=On,e=e.substr(1));var t=e.charCodeAt(e.length-1);13===t||t>=55296&&t<=56319?(this._acceptChunk1(e.substr(0,e.length-1),!1),this._hasPreviousChar=!0,this._previousChar=t):(this._acceptChunk1(e,!1),this._hasPreviousChar=!1,this._previousChar=t)}},e.prototype._acceptChunk1=function(e,t){(t||0!==e.length)&&(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+e):this._acceptChunk2(e))},e.prototype._acceptChunk2=function(e){var t=function(e,t){e.length=0,e[0]=0;for(var n=1,r=0,i=0,o=0,s=!0,a=0,u=t.length;a<u;a++){var l=t.charCodeAt(a);13===l?a+1<u&&10===t.charCodeAt(a+1)?(o++,e[n++]=a+2,a++):(r++,e[n++]=a+1):10===l?(i++,e[n++]=a+1):s&&9!==l&&(l<32||l>126)&&(s=!1)}var c=new Po(Io(e),r,i,o,s);return e.length=0,c}(this._tmpLineStarts,e);this.chunks.push(new Yo(e,t.lineStarts)),this.cr+=t.cr,this.lf+=t.lf,this.crlf+=t.crlf,this.isBasicASCII&&(this.isBasicASCII=t.isBasicASCII),this.isBasicASCII||this.containsRTL||(this.containsRTL=Mn(e))},e.prototype.finish=function(e){return void 0===e&&(e=!0),this._finish(),new Ho(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.isBasicASCII,e)},e.prototype._finish=function(){if(0===this.chunks.length&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;var e=this.chunks[this.chunks.length-1];e.buffer+=String.fromCharCode(this._previousChar);var t=Ro(e.buffer);e.lineStarts=t,13===this._previousChar&&this.cr++}},e}(),zo=function(){this.changeType=1},Uo=function(e,t){this.changeType=2,this.lineNumber=e,this.detail=t},qo=function(e,t){this.changeType=3,this.fromLineNumber=e,this.toLineNumber=t},Ko=function(e,t,n){this.changeType=4,this.fromLineNumber=e,this.toLineNumber=t,this.detail=n},Go=function(){this.changeType=5},$o=function(){function e(e,t,n,r){this.changes=e,this.versionId=t,this.isUndoing=n,this.isRedoing=r}return e.prototype.containsEvent=function(e){for(var t=0,n=this.changes.length;t<n;t++){if(this.changes[t].changeType===e)return!0}return!1},e.merge=function(t,n){return new e([].concat(t.changes).concat(n.changes),n.versionId,t.isUndoing||n.isUndoing,t.isRedoing||n.isRedoing)},e}(),Zo=function(){function e(e,t){this.rawContentChangedEvent=e,this.contentChangedEvent=t}return e.prototype.merge=function(t){var n=$o.merge(this.rawContentChangedEvent,t.rawContentChangedEvent),r=e._mergeChangeEvents(this.contentChangedEvent,t.contentChangedEvent);return new e(n,r)},e._mergeChangeEvents=function(e,t){return{changes:[].concat(e.changes).concat(t.changes),eol:t.eol,versionId:t.versionId,isUndoing:e.isUndoing||t.isUndoing,isRedoing:e.isRedoing||t.isRedoing,isFlush:e.isFlush||t.isFlush}},e}(),Xo=n(12),Jo=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qo=65,es=97,ts=90,ns=122,rs=46,is=47,os=92,ss=function(e){function t(t,n,r){var i,o=this;"string"==typeof n&&0===n.indexOf("not ")?(i="must not be",n=n.replace(/^not /,"")):i="must be";var s=-1!==t.indexOf(".")?"property":"argument",a='The "'+t+'" '+s+" "+i+" of type "+n;return a+=". Received type "+typeof r,(o=e.call(this,a)||this).code="ERR_INVALID_ARG_TYPE",o}return Jo(t,e),t}(Error);function as(e,t){if("string"!=typeof e)throw new ss(t,"string",e)}function us(e){return e===is||e===os}function ls(e){return e===is}function cs(e){return e>=Qo&&e<=ts||e>=es&&e<=ns}function ds(e,t,n,r){for(var i,o="",s=0,a=-1,u=0,l=0;l<=e.length;++l){if(l<e.length)i=e.charCodeAt(l);else{if(r(i))break;i=is}if(r(i)){if(a===l-1||1===u);else if(a!==l-1&&2===u){if(o.length<2||2!==s||o.charCodeAt(o.length-1)!==rs||o.charCodeAt(o.length-2)!==rs){if(o.length>2){var c=o.lastIndexOf(n);-1===c?(o="",s=0):s=(o=o.slice(0,c)).length-1-o.lastIndexOf(n),a=l,u=0;continue}if(2===o.length||1===o.length){o="",s=0,a=l,u=0;continue}}t&&(o.length>0?o+=n+"..":o="..",s=2)}else o.length>0?o+=n+e.slice(a+1,l):o=e.slice(a+1,l),s=l-a-1;a=l,u=0}else i===rs&&-1!==u?++u:u=-1}return o}function hs(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+e+r:r}var fs={resolve:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n="",r="",i=!1,o=e.length-1;o>=-1;o--){var s=void 0;if(o>=0?s=e[o]:n?void 0!==(s=Xo.b["="+n]||Xo.a())&&s.slice(0,3).toLowerCase()===n.toLowerCase()+"\\"||(s=n+"\\"):s=Xo.a(),as(s,"path"),0!==s.length){var a=s.length,u=0,l="",c=!1,d=s.charCodeAt(0);if(a>1)if(us(d))if(c=!0,us(s.charCodeAt(1))){for(var h=2,f=h;h<a&&!us(s.charCodeAt(h));++h);if(h<a&&h!==f){var p=s.slice(f,h);for(f=h;h<a&&us(s.charCodeAt(h));++h);if(h<a&&h!==f){for(f=h;h<a&&!us(s.charCodeAt(h));++h);h===a?(l="\\\\"+p+"\\"+s.slice(f),u=h):h!==f&&(l="\\\\"+p+"\\"+s.slice(f,h),u=h)}}}else u=1;else cs(d)&&58===s.charCodeAt(1)&&(l=s.slice(0,2),u=2,a>2&&us(s.charCodeAt(2))&&(c=!0,u=3));else us(d)&&(u=1,c=!0);if(!(l.length>0&&n.length>0&&l.toLowerCase()!==n.toLowerCase())&&(0===n.length&&l.length>0&&(n=l),i||(r=s.slice(u)+"\\"+r,i=c),n.length>0&&i))break}}return n+(i?"\\":"")+(r=ds(r,!i,"\\",us))||"."},normalize:function(e){as(e,"path");var t=e.length;if(0===t)return".";var n,r,i=0,o=!1,s=e.charCodeAt(0);if(t>1)if(us(s))if(o=!0,us(e.charCodeAt(1))){for(var a=2,u=a;a<t&&!us(e.charCodeAt(a));++a);if(a<t&&a!==u){var l=e.slice(u,a);for(u=a;a<t&&us(e.charCodeAt(a));++a);if(a<t&&a!==u){for(u=a;a<t&&!us(e.charCodeAt(a));++a);if(a===t)return"\\\\"+l+"\\"+e.slice(u)+"\\";a!==u&&(n="\\\\"+l+"\\"+e.slice(u,a),i=a)}}}else i=1;else cs(s)&&58===e.charCodeAt(1)&&(n=e.slice(0,2),i=2,t>2&&us(e.charCodeAt(2))&&(o=!0,i=3));else if(us(s))return"\\";return 0!==(r=i<t?ds(e.slice(i),!o,"\\",us):"").length||o||(r="."),r.length>0&&us(e.charCodeAt(t-1))&&(r+="\\"),void 0===n?o?r.length>0?"\\"+r:"\\":r.length>0?r:"":o?r.length>0?n+"\\"+r:n+"\\":r.length>0?n+r:n},isAbsolute:function(e){as(e,"path");var t=e.length;if(0===t)return!1;var n=e.charCodeAt(0);return!!us(n)||!!(cs(n)&&t>2&&58===e.charCodeAt(1)&&us(e.charCodeAt(2)))},join:function(){for(var e,t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];if(0===n.length)return".";for(var i=0;i<n.length;++i){var o=n[i];as(o,"path"),o.length>0&&(void 0===e?e=t=o:e+="\\"+o)}if(void 0===e)return".";var s=!0,a=0;if("string"==typeof t&&us(t.charCodeAt(0))){++a;var u=t.length;u>1&&us(t.charCodeAt(1))&&(++a,u>2&&(us(t.charCodeAt(2))?++a:s=!1))}if(s){for(;a<e.length&&us(e.charCodeAt(a));++a);a>=2&&(e="\\"+e.slice(a))}return fs.normalize(e)},relative:function(e,t){if(as(e,"from"),as(t,"to"),e===t)return"";var n=fs.resolve(e),r=fs.resolve(t);if(n===r)return"";if((e=n.toLowerCase())===(t=r.toLowerCase()))return"";for(var i=0;i<e.length&&e.charCodeAt(i)===os;++i);for(var o=e.length;o-1>i&&e.charCodeAt(o-1)===os;--o);for(var s=o-i,a=0;a<t.length&&t.charCodeAt(a)===os;++a);for(var u=t.length;u-1>a&&t.charCodeAt(u-1)===os;--u);for(var l=u-a,c=s<l?s:l,d=-1,h=0;h<=c;++h){if(h===c){if(l>c){if(t.charCodeAt(a+h)===os)return r.slice(a+h+1);if(2===h)return r.slice(a+h)}s>c&&(e.charCodeAt(i+h)===os?d=h:2===h&&(d=3));break}var f=e.charCodeAt(i+h);if(f!==t.charCodeAt(a+h))break;f===os&&(d=h)}if(h!==c&&-1===d)return r;var p="";for(-1===d&&(d=0),h=i+d+1;h<=o;++h)h!==o&&e.charCodeAt(h)!==os||(0===p.length?p+="..":p+="\\..");return p.length>0?p+r.slice(a+d,u):(a+=d,r.charCodeAt(a)===os&&++a,r.slice(a,u))},toNamespacedPath:function(e){if("string"!=typeof e)return e;if(0===e.length)return"";var t=fs.resolve(e);if(t.length>=3)if(t.charCodeAt(0)===os){if(t.charCodeAt(1)===os){var n=t.charCodeAt(2);if(63!==n&&n!==rs)return"\\\\?\\UNC\\"+t.slice(2)}}else if(cs(t.charCodeAt(0))&&58===t.charCodeAt(1)&&t.charCodeAt(2)===os)return"\\\\?\\"+t;return e},dirname:function(e){as(e,"path");var t=e.length;if(0===t)return".";var n=-1,r=-1,i=!0,o=0,s=e.charCodeAt(0);if(t>1)if(us(s)){if(n=o=1,us(e.charCodeAt(1))){for(var a=2,u=a;a<t&&!us(e.charCodeAt(a));++a);if(a<t&&a!==u){for(u=a;a<t&&us(e.charCodeAt(a));++a);if(a<t&&a!==u){for(u=a;a<t&&!us(e.charCodeAt(a));++a);if(a===t)return e;a!==u&&(n=o=a+1)}}}}else cs(s)&&58===e.charCodeAt(1)&&(n=o=2,t>2&&us(e.charCodeAt(2))&&(n=o=3));else if(us(s))return e;for(var l=t-1;l>=o;--l)if(us(e.charCodeAt(l))){if(!i){r=l;break}}else i=!1;if(-1===r){if(-1===n)return".";r=n}return e.slice(0,r)},basename:function(e,t){void 0!==t&&as(t,"ext"),as(e,"path");var n,r=0,i=-1,o=!0;e.length>=2&&(cs(e.charCodeAt(0))&&58===e.charCodeAt(1)&&(r=2));if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var s=t.length-1,a=-1;for(n=e.length-1;n>=r;--n){var u=e.charCodeAt(n);if(us(u)){if(!o){r=n+1;break}}else-1===a&&(o=!1,a=n+1),s>=0&&(u===t.charCodeAt(s)?-1==--s&&(i=n):(s=-1,i=a))}return r===i?i=a:-1===i&&(i=e.length),e.slice(r,i)}for(n=e.length-1;n>=r;--n)if(us(e.charCodeAt(n))){if(!o){r=n+1;break}}else-1===i&&(o=!1,i=n+1);return-1===i?"":e.slice(r,i)},extname:function(e){as(e,"path");var t=0,n=-1,r=0,i=-1,o=!0,s=0;e.length>=2&&58===e.charCodeAt(1)&&cs(e.charCodeAt(0))&&(t=r=2);for(var a=e.length-1;a>=t;--a){var u=e.charCodeAt(a);if(us(u)){if(!o){r=a+1;break}}else-1===i&&(o=!1,i=a+1),u===rs?-1===n?n=a:1!==s&&(s=1):-1!==n&&(s=-1)}return-1===n||-1===i||0===s||1===s&&n===i-1&&n===r+1?"":e.slice(n,i)},format:function(e){if(null===e||"object"!=typeof e)throw new ss("pathObject","Object",e);return hs("\\",e)},parse:function(e){as(e,"path");var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n=e.length,r=0,i=e.charCodeAt(0);if(n>1){if(us(i)){if(r=1,us(e.charCodeAt(1))){for(var o=2,s=o;o<n&&!us(e.charCodeAt(o));++o);if(o<n&&o!==s){for(s=o;o<n&&us(e.charCodeAt(o));++o);if(o<n&&o!==s){for(s=o;o<n&&!us(e.charCodeAt(o));++o);o===n?r=o:o!==s&&(r=o+1)}}}}else if(cs(i)&&58===e.charCodeAt(1)){if(r=2,!(n>2))return t.root=t.dir=e,t;if(us(e.charCodeAt(2))){if(3===n)return t.root=t.dir=e,t;r=3}}}else if(us(i))return t.root=t.dir=e,t;r>0&&(t.root=e.slice(0,r));for(var a=-1,u=r,l=-1,c=!0,d=e.length-1,h=0;d>=r;--d)if(us(i=e.charCodeAt(d))){if(!c){u=d+1;break}}else-1===l&&(c=!1,l=d+1),i===rs?-1===a?a=d:1!==h&&(h=1):-1!==a&&(h=-1);return-1===a||-1===l||0===h||1===h&&a===l-1&&a===u+1?-1!==l&&(t.base=t.name=e.slice(u,l)):(t.name=e.slice(u,a),t.base=e.slice(u,l),t.ext=e.slice(a,l)),t.dir=u>0&&u!==r?e.slice(0,u-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},ps={resolve:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n="",r=!1,i=e.length-1;i>=-1&&!r;i--){var o=void 0;as(o=i>=0?e[i]:Xo.a(),"path"),0!==o.length&&(n=o+"/"+n,r=o.charCodeAt(0)===is)}return n=ds(n,!r,"/",ls),r?n.length>0?"/"+n:"/":n.length>0?n:"."},normalize:function(e){if(as(e,"path"),0===e.length)return".";var t=e.charCodeAt(0)===is,n=e.charCodeAt(e.length-1)===is;return 0!==(e=ds(e,!t,"/",ls)).length||t||(e="."),e.length>0&&n&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return as(e,"path"),e.length>0&&e.charCodeAt(0)===is},join:function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(0===t.length)return".";for(var r=0;r<t.length;++r){var i=arguments[r];as(i,"path"),i.length>0&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":ps.normalize(e)},relative:function(e,t){if(as(e,"from"),as(t,"to"),e===t)return"";if((e=ps.resolve(e))===(t=ps.resolve(t)))return"";for(var n=1;n<e.length&&e.charCodeAt(n)===is;++n);for(var r=e.length,i=r-n,o=1;o<t.length&&t.charCodeAt(o)===is;++o);for(var s=t.length-o,a=i<s?i:s,u=-1,l=0;l<=a;++l){if(l===a){if(s>a){if(t.charCodeAt(o+l)===is)return t.slice(o+l+1);if(0===l)return t.slice(o+l)}else i>a&&(e.charCodeAt(n+l)===is?u=l:0===l&&(u=0));break}var c=e.charCodeAt(n+l);if(c!==t.charCodeAt(o+l))break;c===is&&(u=l)}var d="";for(l=n+u+1;l<=r;++l)l!==r&&e.charCodeAt(l)!==is||(0===d.length?d+="..":d+="/..");return d.length>0?d+t.slice(o+u):(o+=u,t.charCodeAt(o)===is&&++o,t.slice(o))},toNamespacedPath:function(e){return e},dirname:function(e){if(as(e,"path"),0===e.length)return".";for(var t=e.charCodeAt(0)===is,n=-1,r=!0,i=e.length-1;i>=1;--i)if(e.charCodeAt(i)===is){if(!r){n=i;break}}else r=!1;return-1===n?t?"/":".":t&&1===n?"//":e.slice(0,n)},basename:function(e,t){void 0!==t&&as(t,"ext"),as(e,"path");var n,r=0,i=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var s=t.length-1,a=-1;for(n=e.length-1;n>=0;--n){var u=e.charCodeAt(n);if(u===is){if(!o){r=n+1;break}}else-1===a&&(o=!1,a=n+1),s>=0&&(u===t.charCodeAt(s)?-1==--s&&(i=n):(s=-1,i=a))}return r===i?i=a:-1===i&&(i=e.length),e.slice(r,i)}for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===is){if(!o){r=n+1;break}}else-1===i&&(o=!1,i=n+1);return-1===i?"":e.slice(r,i)},extname:function(e){as(e,"path");for(var t=-1,n=0,r=-1,i=!0,o=0,s=e.length-1;s>=0;--s){var a=e.charCodeAt(s);if(a!==is)-1===r&&(i=!1,r=s+1),a===rs?-1===t?t=s:1!==o&&(o=1):-1!==t&&(o=-1);else if(!i){n=s+1;break}}return-1===t||-1===r||0===o||1===o&&t===r-1&&t===n+1?"":e.slice(t,r)},format:function(e){if(null===e||"object"!=typeof e)throw new ss("pathObject","Object",e);return hs("/",e)},parse:function(e){as(e,"path");var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n,r=e.charCodeAt(0)===is;r?(t.root="/",n=1):n=0;for(var i=-1,o=0,s=-1,a=!0,u=e.length-1,l=0;u>=n;--u){var c=e.charCodeAt(u);if(c!==is)-1===s&&(a=!1,s=u+1),c===rs?-1===i?i=u:1!==l&&(l=1):-1!==i&&(l=-1);else if(!a){o=u+1;break}}return-1===i||-1===s||0===l||1===l&&i===s-1&&i===o+1?-1!==s&&(t.base=t.name=0===o&&r?e.slice(1,s):e.slice(o,s)):(0===o&&r?(t.name=e.slice(1,i),t.base=e.slice(1,s)):(t.name=e.slice(o,i),t.base=e.slice(o,s)),t.ext=e.slice(i,s)),o>0?t.dir=e.slice(0,o-1):r&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};ps.win32=fs.win32=fs,ps.posix=fs.posix=ps;var gs="win32"===Xo.c?fs.normalize:ps.normalize,ms="win32"===Xo.c?fs.join:ps.join,_s="win32"===Xo.c?fs.relative:ps.relative,ys="win32"===Xo.c?fs.dirname:ps.dirname,vs="win32"===Xo.c?fs.basename:ps.basename,bs="win32"===Xo.c?fs.extname:ps.extname,ws="win32"===Xo.c?fs.sep:ps.sep;var Cs,Ss,xs=Object.freeze((function(e,t){var n=setTimeout(e.bind(t),0);return{dispose:function(){clearTimeout(n)}}}));(Ss=Cs||(Cs={})).isCancellationToken=function(e){return e===Ss.None||e===Ss.Cancelled||e instanceof Ls||!(!e||"object"!=typeof e)&&"boolean"==typeof e.isCancellationRequested&&"function"==typeof e.onCancellationRequested},Ss.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Ht.None}),Ss.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:xs});var Ls=function(){function e(){this._isCancelled=!1,this._emitter=null}return e.prototype.cancel=function(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))},Object.defineProperty(e.prototype,"isCancellationRequested",{get:function(){return this._isCancelled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onCancellationRequested",{get:function(){return this._isCancelled?xs:(this._emitter||(this._emitter=new $t),this._emitter.event)},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this._emitter&&(this._emitter.dispose(),this._emitter=null)},e}(),ks=function(){function e(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}return Object.defineProperty(e.prototype,"token",{get:function(){return this._token||(this._token=new Ls),this._token},enumerable:!0,configurable:!0}),e.prototype.cancel=function(){this._token?this._token instanceof Ls&&this._token.cancel():this._token=Cs.Cancelled},e.prototype.dispose=function(){this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof Ls&&this._token.dispose():this._token=Cs.None},e}();function Ms(e){var t=new ks,n=e(t.token),r=new Promise((function(e,r){t.token.onCancellationRequested((function(){r(Xe())})),Promise.resolve(n).then((function(n){t.dispose(),e(n)}),(function(e){t.dispose(),r(e)}))}));return new(function(){function e(){}return e.prototype.cancel=function(){t.cancel()},e.prototype.then=function(e,t){return r.then(e,t)},e.prototype.catch=function(e){return this.then(void 0,e)},e.prototype.finally=function(e){return r.finally(e)},e}())}var Ds=function(){function e(e){this.defaultDelay=e,this.timeout=null,this.completionPromise=null,this.doResolve=null,this.task=null}return e.prototype.trigger=function(e,t){var n=this;return void 0===t&&(t=this.defaultDelay),this.task=e,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((function(e,t){n.doResolve=e,n.doReject=t})).then((function(){n.completionPromise=null,n.doResolve=null;var e=n.task;return n.task=null,e()}))),this.timeout=setTimeout((function(){n.timeout=null,n.doResolve(null)}),t),this.completionPromise},e.prototype.isTriggered=function(){return null!==this.timeout},e.prototype.cancel=function(){this.cancelTimeout(),this.completionPromise&&(this.doReject(Xe()),this.completionPromise=null)},e.prototype.cancelTimeout=function(){null!==this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},e.prototype.dispose=function(){this.cancelTimeout()},e}();function Es(e,t){void 0===t&&(t=0);var n=setTimeout(e,t);return Pt((function(){return clearTimeout(n)}))}var Ts,Ns=function(){function e(e,t){this._token=-1,"function"==typeof e&&"number"==typeof t&&this.setIfNotSet(e,t)}return e.prototype.dispose=function(){this.cancel()},e.prototype.cancel=function(){-1!==this._token&&(clearTimeout(this._token),this._token=-1)},e.prototype.cancelAndSet=function(e,t){var n=this;this.cancel(),this._token=setTimeout((function(){n._token=-1,e()}),t)},e.prototype.setIfNotSet=function(e,t){var n=this;-1===this._token&&(this._token=setTimeout((function(){n._token=-1,e()}),t))},e}(),Os=function(){function e(){this._token=-1}return e.prototype.dispose=function(){this.cancel()},e.prototype.cancel=function(){-1!==this._token&&(clearInterval(this._token),this._token=-1)},e.prototype.cancelAndSet=function(e,t){this.cancel(),this._token=setInterval((function(){e()}),t)},e}(),As=function(){function e(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}return e.prototype.dispose=function(){this.cancel(),this.runner=null},e.prototype.cancel=function(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)},e.prototype.schedule=function(e){void 0===e&&(e=this.timeout),this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)},e.prototype.isScheduled=function(){return-1!==this.timeoutToken},e.prototype.onTimeout=function(){this.timeoutToken=-1,this.runner&&this.doRun()},e.prototype.doRun=function(){this.runner&&this.runner()},e}();!function(){if("function"!=typeof requestIdleCallback||"function"!=typeof cancelIdleCallback){var e=Object.freeze({didTimeout:!0,timeRemaining:function(){return 15}});Ts=function(t){var n=setTimeout((function(){return t(e)})),r=!1;return{dispose:function(){r||(r=!0,clearTimeout(n))}}}}else Ts=function(e,t){var n=requestIdleCallback(e,"number"==typeof t?{timeout:t}:void 0),r=!1;return{dispose:function(){r||(r=!0,cancelIdleCallback(n))}}}}();var Is=function(){function e(e){var t=this;this._didRun=!1,this._executor=function(){try{t._value=e()}catch(e){t._error=e}finally{t._didRun=!0}},this._handle=Ts((function(){return t._executor()}))}return e.prototype.dispose=function(){this._handle.dispose()},e.prototype.getValue=function(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value},e}(),Ps="**",Rs="/",Fs="[/\\\\]",Ys="[^/\\\\]",js=/\//g;function Bs(e){switch(e){case 0:return"";case 1:return Ys+"*?";default:return"(?:"+Fs+"|"+Ys+"+"+Fs+"|"+Fs+Ys+"+)*?"}}function Ws(e,t){if(!e)return[];for(var n=[],r=!1,i=!1,o="",s=0,a=e;s<a.length;s++){var u=a[s];switch(u){case t:if(!r&&!i){n.push(o),o="";continue}break;case"{":r=!0;break;case"}":r=!1;break;case"[":i=!0;break;case"]":i=!1}o+=u}return o&&n.push(o),n}var Hs=/^\*\*\/\*\.[\w\.-]+$/,Vs=/^\*\*\/([\w\.-]+)\/?$/,zs=/^{\*\*\/[\*\.]?[\w\.-]+\/?(,\*\*\/[\*\.]?[\w\.-]+\/?)*}$/,Us=/^{\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?(,\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?)*}$/,qs=/^\*\*((\/[\w\.-]+)+)\/?$/,Ks=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,Gs=new nr(1e4),$s=function(){return!1},Zs=function(){return null};function Xs(e,t){if(!e)return Zs;var n,r,i=(n=(n="string"!=typeof e?e.pattern:e).trim())+"_"+!!t.trimForExclusions,o=Gs.get(i);if(o)return Js(o,e);if(Hs.test(n)){var s=n.substr(4);o=function(e,t){return"string"==typeof e&&hn(e,s)?n:null}}else o=(r=Vs.exec(Qs(n,t)))?function(e,t){var n="/"+e,r="\\"+e,i=function(i,o){return"string"!=typeof i?null:o?o===e?t:null:i===e||hn(i,n)||hn(i,r)?t:null},o=[e];return i.basenames=o,i.patterns=[t],i.allBasenames=o,i}(r[1],n):(t.trimForExclusions?Us:zs).test(n)?function(e,t){var n=na(e.slice(1,-1).split(",").map((function(e){return Xs(e,t)})).filter((function(e){return e!==Zs})),e),r=n.length;if(!r)return Zs;if(1===r)return n[0];var i=function(t,r){for(var i=0,o=n.length;i<o;i++)if(n[i](t,r))return e;return null},o=Kr(n,(function(e){return!!e.allBasenames}));o&&(i.allBasenames=o.allBasenames);var s=n.reduce((function(e,t){return t.allPaths?e.concat(t.allPaths):e}),[]);s.length&&(i.allPaths=s);return i}(n,t):(r=qs.exec(Qs(n,t)))?ea(r[1].substr(1),n,!0):(r=Ks.exec(Qs(n,t)))?ea(r[1],n,!1):function(e){try{var t=new RegExp("^"+function e(t){if(!t)return"";var n="",r=Ws(t,Rs);if(r.every((function(e){return e===Ps})))n=".*";else{var i=!1;r.forEach((function(t,o){if(t!==Ps){for(var s=!1,a="",u=!1,l="",c=0,d=t;c<d.length;c++){var h=d[c];if("}"!==h&&s)a+=h;else if(!u||"]"===h&&l)switch(h){case"{":s=!0;continue;case"[":u=!0;continue;case"}":var f="(?:"+Ws(a,",").map((function(t){return e(t)})).join("|")+")";n+=f,s=!1,a="";break;case"]":n+="["+l+"]",u=!1,l="";break;case"?":n+=Ys;continue;case"*":n+=Bs(1);continue;default:n+=ln(h)}else{l+="-"===h?h:"^"!==h&&"!"!==h||l?h===Rs?"":ln(h):"^"}}o<r.length-1&&(r[o+1]!==Ps||o+2<r.length)&&(n+=Fs),i=!1}else i||(n+=Bs(2),i=!0)}))}return n}(e)+"$");return function(n,r){return t.lastIndex=0,"string"==typeof n&&t.test(n)?e:null}}catch(e){return Zs}}(n);return Gs.set(i,o),Js(o,e)}function Js(e,t){return"string"==typeof t?e:function(n,r){return function(e,t,n,r){if(void 0===r&&(r=ws),e===t)return!0;if(!e||!t)return!1;if(t.length>e.length)return!1;if(n){if(!Sn(e,t))return!1;if(t.length===e.length)return!0;var i=t.length;return t.charAt(t.length-1)===r&&i--,e.charAt(i)===r}return t.charAt(t.length-1)!==r&&(t+=r),0===e.indexOf(t)}(n,t.base)?e(_s(t.base,n),r):null}}function Qs(e,t){return t.trimForExclusions&&hn(e,"/**")?e.substr(0,e.length-2):e}function ea(e,t,n){var r=ws!==ps.sep?e.replace(js,ws):e,i=ws+r,o=n?function(e,n){return"string"!=typeof e||e!==r&&!hn(e,i)?null:t}:function(e,n){return"string"==typeof e&&e===r?t:null};return o.allPaths=[(n?"*/":"./")+e],o}function ta(e,t,n){return!(!e||"string"!=typeof t)&&function(e,t){void 0===t&&(t={});if(!e)return $s;if("string"==typeof e||(i=e,o=i,o&&"string"==typeof o.base&&"string"==typeof o.pattern)){var n=Xs(e,t);if(n===Zs)return $s;var r=function(e,t){return!!n(e,t)};return n.allBasenames&&(r.allBasenames=n.allBasenames),n.allPaths&&(r.allPaths=n.allPaths),r}var i,o;return function(e,t){var n=na(Object.getOwnPropertyNames(e).map((function(n){return function(e,t,n){if(!1===t)return Zs;var r=Xs(e,n);if(r===Zs)return Zs;if("boolean"==typeof t)return r;if(t){var i=t.when;if("string"==typeof i){var o=function(t,n,o,s){if(!s||!r(t,n))return null;var a,u=s(i.replace("$(basename)",o));return(a=u)&&"function"==typeof a.then?u.then((function(t){return t?e:null})):u?e:null};return o.requiresSiblings=!0,o}}return r}(n,e[n],t)})).filter((function(e){return e!==Zs}))),r=n.length;if(!r)return Zs;if(!n.some((function(e){return!!e.requiresSiblings}))){if(1===r)return n[0];var i=function(e,t){for(var r=0,i=n.length;r<i;r++){var o=n[r](e,t);if(o)return o}return null},o=Kr(n,(function(e){return!!e.allBasenames}));o&&(i.allBasenames=o.allBasenames);var s=n.reduce((function(e,t){return t.allPaths?e.concat(t.allPaths):e}),[]);return s.length&&(i.allPaths=s),i}var a=function(e,t,r){for(var i=void 0,o=0,s=n.length;o<s;o++){var a=n[o];a.requiresSiblings&&r&&(t||(t=vs(e)),i||(i=t.substr(0,t.length-bs(e).length)));var u=a(e,t,i,r);if(u)return u}return null},u=Kr(n,(function(e){return!!e.allBasenames}));u&&(a.allBasenames=u.allBasenames);var l=n.reduce((function(e,t){return t.allPaths?e.concat(t.allPaths):e}),[]);l.length&&(a.allPaths=l);return a}(e,t)}(e)(t,void 0,n)}function na(e,t){var n=e.filter((function(e){return!!e.basenames}));if(n.length<2)return e;var r,i=n.reduce((function(e,t){var n=t.basenames;return n?e.concat(n):e}),[]);if(t){r=[];for(var o=0,s=i.length;o<s;o++)r.push(t)}else r=n.reduce((function(e,t){var n=t.patterns;return n?e.concat(n):e}),[]);var a=function(e,t){if("string"!=typeof e)return null;if(!t){var n=void 0;for(n=e.length;n>0;n--){var o=e.charCodeAt(n-1);if(47===o||92===o)break}t=e.substr(n)}var s=i.indexOf(t);return-1!==s?r[s]:null};a.basenames=i,a.patterns=r,a.allBasenames=i;var u=e.filter((function(e){return!e.basenames}));return u.push(a),u}function ra(e,t,n,r){if(Array.isArray(e)){for(var i=0,o=0,s=e;o<s.length;o++){var a=ra(s[o],t,n,r);if(10===a)return a;a>i&&(i=a)}return i}if("string"==typeof e)return r?"*"===e?5:e===n?10:0:0;if(e){var u=e.language,l=e.pattern,c=e.scheme,d=e.hasAccessToAllModels;if(!r&&!d)return 0;i=0;if(c)if(c===t.scheme)i=10;else{if("*"!==c)return 0;i=5}if(u)if(u===n)i=10;else{if("*"!==u)return 0;i=Math.max(i,5)}if(l){if(l!==t.fsPath&&!ta(l,t.fsPath))return 0;i=10}return i}return 0}function ia(e){return"string"!=typeof e&&(Array.isArray(e)?e.every(ia):!!e.exclusive)}var oa,sa,aa,ua=function(){function e(){this._clock=0,this._entries=[],this._onDidChange=new $t}return Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),e.prototype.register=function(e,t){var n=this,r={selector:e,provider:t,_score:-1,_time:this._clock++};return this._entries.push(r),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),Pt((function(){if(r){var e=n._entries.indexOf(r);e>=0&&(n._entries.splice(e,1),n._lastCandidate=void 0,n._onDidChange.fire(n._entries.length),r=void 0)}}))},e.prototype.has=function(e){return this.all(e).length>0},e.prototype.all=function(e){if(!e)return[];this._updateScores(e);for(var t=[],n=0,r=this._entries;n<r.length;n++){var i=r[n];i._score>0&&t.push(i.provider)}return t},e.prototype.ordered=function(e){var t=[];return this._orderedForEach(e,(function(e){return t.push(e.provider)})),t},e.prototype.orderedGroups=function(e){var t,n,r=[];return this._orderedForEach(e,(function(e){t&&n===e._score?t.push(e.provider):(n=e._score,t=[e.provider],r.push(t))})),r},e.prototype._orderedForEach=function(e,t){if(e){this._updateScores(e);for(var n=0,r=this._entries;n<r.length;n++){var i=r[n];i._score>0&&t(i)}}},e.prototype._updateScores=function(t){var n={uri:t.uri.toString(),language:t.getLanguageIdentifier().language};if(!this._lastCandidate||this._lastCandidate.language!==n.language||this._lastCandidate.uri!==n.uri){this._lastCandidate=n;for(var r=0,i=this._entries;r<i.length;r++){var o=i[r];if(o._score=ra(o.selector,t.uri,t.getLanguageIdentifier().language,Mt(t)),ia(o.selector)&&o._score>0){for(var s=0,a=this._entries;s<a.length;s++){a[s]._score=0}o._score=1e3;break}}this._entries.sort(e._compareByScoreAndTime)}},e._compareByScoreAndTime=function(e,t){return e._score<t._score?1:e._score>t._score?-1:e._time<t._time?1:e._time>t._time?-1:0},e}(),la=function(){function e(){this._map=new Map,this._promises=new Map,this._onDidChange=new $t,this.onDidChange=this._onDidChange.event,this._colorMap=null}return e.prototype.fire=function(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})},e.prototype.register=function(e,t){var n=this;return this._map.set(e,t),this.fire([e]),Pt((function(){n._map.get(e)===t&&(n._map.delete(e),n.fire([e]))}))},e.prototype.registerPromise=function(e,t){var n=this,r=null,i=!1;return this._promises.set(e,t.then((function(t){n._promises.delete(e),!i&&t&&(r=n.register(e,t))}))),Pt((function(){i=!0,r&&r.dispose()}))},e.prototype.getPromise=function(e){var t=this,n=this.get(e);if(n)return Promise.resolve(n);var r=this._promises.get(e);return r?r.then((function(n){return t.get(e)})):null},e.prototype.get=function(e){return Ue(this._map.get(e))},e.prototype.setColorMap=function(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Zn(this._map),changedColorMap:!0})},e.prototype.getColorMap=function(){return this._colorMap},e.prototype.getDefaultBackground=function(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null},e}(),ca=function(e,t){this.language=e,this.id=t},da=function(){function e(){}return e.getLanguageId=function(e){return(255&e)>>>0},e.getTokenType=function(e){return(1792&e)>>>8},e.getFontStyle=function(e){return(14336&e)>>>11},e.getForeground=function(e){return(8372224&e)>>>14},e.getBackground=function(e){return(4286578688&e)>>>23},e.getClassNameFromMetadata=function(e){var t="mtk"+this.getForeground(e),n=this.getFontStyle(e);return 1&n&&(t+=" mtki"),2&n&&(t+=" mtkb"),4&n&&(t+=" mtku"),t},e.getInlineStyleFromMetadata=function(e,t){var n=this.getForeground(e),r=this.getFontStyle(e),i="color: "+t[n]+";";return 1&r&&(i+="font-style: italic;"),2&r&&(i+="font-weight: bold;"),4&r&&(i+="text-decoration: underline;"),i},e}();(oa=Object.create(null))[0]="method",oa[1]="function",oa[2]="constructor",oa[3]="field",oa[4]="variable",oa[5]="class",oa[6]="struct",oa[7]="interface",oa[8]="module",oa[9]="property",oa[10]="event",oa[11]="operator",oa[12]="unit",oa[13]="value",oa[14]="constant",oa[15]="enum",oa[16]="enum-member",oa[17]="keyword",oa[25]="snippet",oa[18]="text",oa[19]="color",oa[20]="file",oa[21]="reference",oa[22]="customcolor",oa[23]="folder",oa[24]="type-parameter",function(){var e=Object.create(null);e.method=0,e.function=1,e.constructor=2,e.field=3,e.variable=4,e.class=5,e.struct=6,e.interface=7,e.module=8,e.property=9,e.event=10,e.operator=11,e.unit=12,e.value=13,e.constant=14,e.enum=15,e["enum-member"]=16,e.enumMember=16,e.keyword=17,e.snippet=25,e.text=18,e.color=19,e.file=20,e.reference=21,e.customcolor=22,e.folder=23,e["type-parameter"]=24,e.typeParameter=24}();!function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(sa||(sa={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(aa||(aa={}));(ha=Object.create(null))[0]="file",ha[1]="module",ha[2]="namespace",ha[3]="package",ha[4]="class",ha[5]="method",ha[6]="property",ha[7]="field",ha[8]="constructor",ha[9]="enum",ha[10]="interface",ha[11]="function",ha[12]="variable",ha[13]="constant",ha[14]="string",ha[15]="number",ha[16]="boolean",ha[17]="array",ha[18]="object",ha[19]="key",ha[20]="null",ha[21]="enum-member",ha[22]="struct",ha[23]="event",ha[24]="operator",ha[25]="type-parameter";var ha,fa=function(){function e(e){this.value=e}return e.Comment=new e("comment"),e.Imports=new e("imports"),e.Region=new e("region"),e}();var pa=new ua,ma=new ua,_a=new ua,ya=new ua,va=new ua,ba=new ua,wa=new ua,Ca=new ua,Sa=new ua,xa=new ua,La=new ua,ka=new ua,Ma=new ua,Da=new ua,Ea=new ua,Ta=new ua,Na=new ua,Oa=new ua,Aa=new ua,Ia=new ua,Pa=new la,Ra=function(){function e(e,t){this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t}return e.prototype.equals=function(t){return t instanceof e&&this.slicedEquals(t,0,this._tokensCount)},e.prototype.slicedEquals=function(e,t,n){if(this._text!==e._text)return!1;if(this._tokensCount!==e._tokensCount)return!1;for(var r=t<<1,i=r+(n<<1),o=r;o<i;o++)if(this._tokens[o]!==e._tokens[o])return!1;return!0},e.prototype.getLineContent=function(){return this._text},e.prototype.getCount=function(){return this._tokensCount},e.prototype.getStartOffset=function(e){return e>0?this._tokens[e-1<<1]:0},e.prototype.getLanguageId=function(e){var t=this._tokens[1+(e<<1)];return da.getLanguageId(t)},e.prototype.getStandardTokenType=function(e){var t=this._tokens[1+(e<<1)];return da.getTokenType(t)},e.prototype.getForeground=function(e){var t=this._tokens[1+(e<<1)];return da.getForeground(t)},e.prototype.getClassName=function(e){var t=this._tokens[1+(e<<1)];return da.getClassNameFromMetadata(t)},e.prototype.getInlineStyle=function(e,t){var n=this._tokens[1+(e<<1)];return da.getInlineStyleFromMetadata(n,t)},e.prototype.getEndOffset=function(e){return this._tokens[e<<1]},e.prototype.findTokenIndexAtOffset=function(t){return e.findIndexInTokensArray(this._tokens,t)},e.prototype.inflate=function(){return this},e.prototype.sliceAndInflate=function(e,t,n){return new Fa(this,e,t,n)},e.convertToEndOffset=function(e,t){for(var n=(e.length>>>1)-1,r=0;r<n;r++)e[r<<1]=e[r+1<<1];e[n<<1]=t},e.findIndexInTokensArray=function(e,t){if(e.length<=2)return 0;for(var n=0,r=(e.length>>>1)-1;n<r;){var i=n+Math.floor((r-n)/2),o=e[i<<1];if(o===t)return i+1;o<t?n=i+1:o>t&&(r=i)}return n},e}(),Fa=function(){function e(e,t,n,r){this._source=e,this._startOffset=t,this._endOffset=n,this._deltaOffset=r,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this._tokensCount=0;for(var i=this._firstTokenIndex,o=e.getCount();i<o;i++){if(e.getStartOffset(i)>=n)break;this._tokensCount++}}return e.prototype.equals=function(t){return t instanceof e&&(this._startOffset===t._startOffset&&this._endOffset===t._endOffset&&this._deltaOffset===t._deltaOffset&&this._source.slicedEquals(t._source,this._firstTokenIndex,this._tokensCount))},e.prototype.getCount=function(){return this._tokensCount},e.prototype.getForeground=function(e){return this._source.getForeground(this._firstTokenIndex+e)},e.prototype.getEndOffset=function(e){var t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset},e.prototype.getClassName=function(e){return this._source.getClassName(this._firstTokenIndex+e)},e.prototype.getInlineStyle=function(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)},e.prototype.findTokenIndexAtOffset=function(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex},e}(),Ya=function(){function e(e,t,n){this.offset=0|e,this.type=t,this.language=n}return e.prototype.toString=function(){return"("+this.offset+", "+this.type+")"},e}(),ja=function(e,t){this.tokens=e,this.endState=t},Ba=function(e,t){this.tokens=e,this.endState=t},Wa=new(function(){function e(){}return e.prototype.clone=function(){return this},e.prototype.equals=function(e){return this===e},e}()),Ha=new ca("vs.editor.nullMode",0);function Va(e,t,n,r){var i=new Uint32Array(2);return i[0]=r,i[1]=(16384|e<<0|2<<23)>>>0,new Ba(i,null===n?Wa:n)}var za=nt.b.performance&&"function"==typeof nt.b.performance.now,Ua=function(){function e(e){this._highResolution=za&&e,this._startTime=this._now(),this._stopTime=-1}return e.create=function(t){return void 0===t&&(t=!0),new e(t)},e.prototype.stop=function(){this._stopTime=this._now()},e.prototype.elapsed=function(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime},e.prototype._now=function(){return this._highResolution?nt.b.performance.now():(new Date).getTime()},e}();function qa(e){for(var t=0,n=0,r=0,i=e.length;r<i;r++){var o=e.charCodeAt(r);13===o?(0===t&&(n=r),t++,r+1<i&&10===e.charCodeAt(r+1)&&r++):10===o&&(0===t&&(n=r),t++)}return 0===t&&(n=e.length),[t,n]}function Ka(e){return(16384|e<<0|2<<23)>>>0}var Ga=new Uint32Array(0).buffer,$a=function(){function e(){this.tokens=[]}return e.prototype.add=function(e,t){if(this.tokens.length>0){var n=this.tokens[this.tokens.length-1];if(n.startLineNumber+n.tokens.length-1+1===e)return void n.tokens.push(t)}this.tokens.push(new Za(e,[t]))},e}(),Za=function(e,t){this.startLineNumber=e,this.tokens=t};function Xa(e){return e instanceof Uint32Array?e:new Uint32Array(e)}var Ja,Qa=function(){function e(){this._lineTokens=[],this._len=0}return e.prototype.flush=function(){this._lineTokens=[],this._len=0},e.prototype.getTokens=function(e,t,n){var r=null;if(t<this._len&&(r=this._lineTokens[t]),null!==r&&r!==Ga)return new Ra(Xa(r),n);var i=new Uint32Array(2);return i[0]=n.length,i[1]=Ka(e),new Ra(i,n)},e._massageTokens=function(e,t,n){var r=n?Xa(n):null;if(0===t){var i=!1;if(r&&r.length>1&&(i=da.getLanguageId(r[1])!==e),!i)return Ga}if(!r||0===r.length){var o=new Uint32Array(2);return o[0]=t,o[1]=Ka(e),o.buffer}return r[r.length-2]=t,0===r.byteOffset&&r.byteLength===r.buffer.byteLength?r.buffer:r},e.prototype._ensureLine=function(e){for(;e>=this._len;)this._lineTokens[this._len]=null,this._len++},e.prototype._deleteLines=function(e,t){0!==t&&(e+t>this._len&&(t=this._len-e),this._lineTokens.splice(e,t),this._len-=t)},e.prototype._insertLines=function(e,t){if(0!==t){for(var n=[],r=0;r<t;r++)n[r]=null;this._lineTokens=$r(this._lineTokens,e,n),this._len+=t}},e.prototype.setTokens=function(t,n,r,i){var o=e._massageTokens(t,r,i);this._ensureLine(n),this._lineTokens[n]=o},e.prototype.acceptEdit=function(e,t,n){this._acceptDeleteRange(e),this._acceptInsertText(new Lt(e.startLineNumber,e.startColumn),t,n)},e.prototype._acceptDeleteRange=function(t){var n=t.startLineNumber-1;if(!(n>=this._len))if(t.startLineNumber!==t.endLineNumber){this._lineTokens[n]=e._deleteEnding(this._lineTokens[n],t.startColumn-1);var r=t.endLineNumber-1,i=null;r<this._len&&(i=e._deleteBeginning(this._lineTokens[r],t.endColumn-1)),this._lineTokens[n]=e._append(this._lineTokens[n],i),this._deleteLines(t.startLineNumber,t.endLineNumber-t.startLineNumber)}else{if(t.startColumn===t.endColumn)return;this._lineTokens[n]=e._delete(this._lineTokens[n],t.startColumn-1,t.endColumn-1)}},e.prototype._acceptInsertText=function(t,n,r){if(0!==n||0!==r){var i=t.lineNumber-1;i>=this._len||(0!==n?(this._lineTokens[i]=e._deleteEnding(this._lineTokens[i],t.column-1),this._lineTokens[i]=e._insert(this._lineTokens[i],t.column-1,r),this._insertLines(t.lineNumber,n)):this._lineTokens[i]=e._insert(this._lineTokens[i],t.column-1,r))}},e._deleteBeginning=function(t,n){return null===t||t===Ga?t:e._delete(t,0,n)},e._deleteEnding=function(t,n){if(null===t||t===Ga)return t;var r=Xa(t),i=r[r.length-2];return e._delete(t,n,i)},e._delete=function(e,t,n){if(null===e||e===Ga||t===n)return e;var r=Xa(e),i=r.length>>>1;if(0===t&&r[r.length-2]===n)return Ga;var o,s,a=Ra.findIndexInTokensArray(r,t),u=a>0?r[a-1<<1]:0;if(n<r[a<<1]){for(var l=n-t,c=a;c<i;c++)r[c<<1]-=l;return e}u!==t?(r[a<<1]=t,o=a+1<<1,s=t):(o=a<<1,s=u);for(var d=n-t,h=a+1;h<i;h++){var f=r[h<<1]-d;f>s&&(r[o++]=f,r[o++]=r[1+(h<<1)],s=f)}if(o===r.length)return e;var p=new Uint32Array(o);return p.set(r.subarray(0,o),0),p.buffer},e._append=function(e,t){if(t===Ga)return e;if(e===Ga)return t;if(null===e)return e;if(null===t)return null;var n=Xa(e),r=Xa(t),i=r.length>>>1,o=new Uint32Array(n.length+r.length);o.set(n,0);for(var s=n.length,a=n[n.length-2],u=0;u<i;u++)o[s++]=r[u<<1]+a,o[s++]=r[1+(u<<1)];return o.buffer},e._insert=function(e,t,n){if(null===e||e===Ga)return e;var r=Xa(e),i=r.length>>>1,o=Ra.findIndexInTokensArray(r,t);o>0&&(r[o-1<<1]===t&&o--);for(var s=o;s<i;s++)r[s<<1]+=n;return e},e}(),eu=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),tu=function(){function e(){this._beginState=[],this._valid=[],this._len=0,this._invalidLineStartIndex=0}return e.prototype._reset=function(e){this._beginState=[],this._valid=[],this._len=0,this._invalidLineStartIndex=0,e&&this._setBeginState(0,e)},e.prototype.flush=function(e){this._reset(e)},Object.defineProperty(e.prototype,"invalidLineStartIndex",{get:function(){return this._invalidLineStartIndex},enumerable:!0,configurable:!0}),e.prototype._invalidateLine=function(e){e<this._len&&(this._valid[e]=!1),e<this._invalidLineStartIndex&&(this._invalidLineStartIndex=e)},e.prototype._isValid=function(e){return e<this._len&&this._valid[e]},e.prototype.getBeginState=function(e){return e<this._len?this._beginState[e]:null},e.prototype._ensureLine=function(e){for(;e>=this._len;)this._beginState[this._len]=null,this._valid[this._len]=!1,this._len++},e.prototype._deleteLines=function(e,t){0!==t&&(e+t>this._len&&(t=this._len-e),this._beginState.splice(e,t),this._valid.splice(e,t),this._len-=t)},e.prototype._insertLines=function(e,t){if(0!==t){for(var n=[],r=[],i=0;i<t;i++)n[i]=null,r[i]=!1;this._beginState=$r(this._beginState,e,n),this._valid=$r(this._valid,e,r),this._len+=t}},e.prototype._setValid=function(e,t){this._ensureLine(e),this._valid[e]=t},e.prototype._setBeginState=function(e,t){this._ensureLine(e),this._beginState[e]=t},e.prototype.setEndState=function(e,t,n){if(this._setValid(t,!0),this._invalidLineStartIndex=t+1,t!==e-1){var r=this.getBeginState(t+1);if(null===r||!n.equals(r))return this._setBeginState(t+1,n),void this._invalidateLine(t+1);for(var i=t+1;i<e&&this._isValid(i);)i++;this._invalidLineStartIndex=i}},e.prototype.setFakeTokens=function(e){this._setValid(e,!1)},e.prototype.applyEdits=function(e,t){for(var n=e.endLineNumber-e.startLineNumber,r=t,i=Math.min(n,r);i>=0;i--)this._invalidateLine(e.startLineNumber+i-1);this._acceptDeleteRange(e),this._acceptInsertText(new Lt(e.startLineNumber,e.startColumn),t)},e.prototype._acceptDeleteRange=function(e){e.startLineNumber-1>=this._len||this._deleteLines(e.startLineNumber,e.endLineNumber-e.startLineNumber)},e.prototype._acceptInsertText=function(e,t){e.lineNumber-1>=this._len||this._insertLines(e.lineNumber,t)},e}(),nu=function(e){function t(t){var n=e.call(this)||this;return n._textModel=t,n._tokenizationStateStore=new tu,n._revalidateTokensTimeout=-1,n._tokenizationSupport=null,n._register(Pa.onDidChange((function(e){var t=n._textModel.getLanguageIdentifier();-1!==e.changedLanguages.indexOf(t.language)&&(n._resetTokenizationState(),n._textModel.clearTokens())}))),n._register(n._textModel.onDidChangeRawContentFast((function(e){e.containsEvent(1)&&n._resetTokenizationState()}))),n._register(n._textModel.onDidChangeContentFast((function(e){for(var t=0,r=e.changes.length;t<r;t++){var i=e.changes[t],o=qa(i.text)[0];n._tokenizationStateStore.applyEdits(i.range,o)}n._beginBackgroundTokenization()}))),n._register(n._textModel.onDidChangeAttached((function(){n._beginBackgroundTokenization()}))),n._register(n._textModel.onDidChangeLanguage((function(){n._resetTokenizationState(),n._textModel.clearTokens()}))),n._resetTokenizationState(),n}return eu(t,e),t.prototype.dispose=function(){this._clearTimers(),e.prototype.dispose.call(this)},t.prototype._clearTimers=function(){-1!==this._revalidateTokensTimeout&&(clearTimeout(this._revalidateTokensTimeout),this._revalidateTokensTimeout=-1)},t.prototype._resetTokenizationState=function(){this._clearTimers();var e=function(e){var t=e.getLanguageIdentifier(),n=e.isTooLargeForTokenization()?null:Pa.get(t.language),r=null;if(n)try{r=n.getInitialState()}catch(e){Ke(e),n=null}return[n,r]}(this._textModel),t=e[0],n=e[1];this._tokenizationSupport=t,this._tokenizationStateStore.flush(n),this._beginBackgroundTokenization()},t.prototype._beginBackgroundTokenization=function(){var e=this;this._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&-1===this._revalidateTokensTimeout&&(this._revalidateTokensTimeout=setTimeout((function(){e._revalidateTokensTimeout=-1,e._revalidateTokensNow()}),0))},t.prototype._revalidateTokensNow=function(e){void 0===e&&(e=this._textModel.getLineCount());for(var t=new $a,n=Ua.create(!1);this._hasLinesToTokenize()&&!(n.elapsed()>20);){if(this._tokenizeOneInvalidLine(t)>=e)break}this._beginBackgroundTokenization(),this._textModel.setTokens(t.tokens)},t.prototype.tokenizeViewport=function(e,t){var n=new $a;this._tokenizeViewport(n,e,t),this._textModel.setTokens(n.tokens)},t.prototype.reset=function(){this._resetTokenizationState(),this._textModel.clearTokens()},t.prototype.forceTokenization=function(e){var t=new $a;this._updateTokensUntilLine(t,e),this._textModel.setTokens(t.tokens)},t.prototype.isCheapToTokenize=function(e){if(!this._tokenizationSupport)return!0;var t=this._tokenizationStateStore.invalidLineStartIndex+1;return!(e>t)&&(e<t||this._textModel.getLineLength(e)<2048)},t.prototype._hasLinesToTokenize=function(){return!!this._tokenizationSupport&&this._tokenizationStateStore.invalidLineStartIndex<this._textModel.getLineCount()},t.prototype._tokenizeOneInvalidLine=function(e){if(!this._hasLinesToTokenize())return this._textModel.getLineCount()+1;var t=this._tokenizationStateStore.invalidLineStartIndex+1;return this._updateTokensUntilLine(e,t),t},t.prototype._updateTokensUntilLine=function(e,t){if(this._tokenizationSupport)for(var n=this._textModel.getLanguageIdentifier(),r=this._textModel.getLineCount(),i=t-1,o=this._tokenizationStateStore.invalidLineStartIndex;o<=i;o++){var s=this._textModel.getLineContent(o+1),a=this._tokenizationStateStore.getBeginState(o),u=ru(n,this._tokenizationSupport,s,a);e.add(o+1,u.tokens),this._tokenizationStateStore.setEndState(r,o,u.endState),o=this._tokenizationStateStore.invalidLineStartIndex-1}},t.prototype._tokenizeViewport=function(e,t,n){if(this._tokenizationSupport&&!(n<=this._tokenizationStateStore.invalidLineStartIndex))if(t<=this._tokenizationStateStore.invalidLineStartIndex)this._updateTokensUntilLine(e,n);else{for(var r=this._textModel.getLineFirstNonWhitespaceColumn(t),i=[],o=null,s=t-1;r>0&&s>=1;s--){var a=this._textModel.getLineFirstNonWhitespaceColumn(s);if(0!==a&&a<r){if(o=this._tokenizationStateStore.getBeginState(s-1))break;i.push(this._textModel.getLineContent(s)),r=a}}o||(o=this._tokenizationSupport.getInitialState());var u=this._textModel.getLanguageIdentifier(),l=o;for(s=i.length-1;s>=0;s--){l=(h=ru(u,this._tokenizationSupport,i[s],l)).endState}for(var c=t;c<=n;c++){var d=this._textModel.getLineContent(c),h=ru(u,this._tokenizationSupport,d,l);e.add(c,h.tokens),this._tokenizationStateStore.setFakeTokens(c-1),l=h.endState}}},t}(Ft);function ru(e,t,n,r){var i=null;if(t)try{i=t.tokenize2(n,r.clone(),0)}catch(e){Ke(e)}return i||(i=Va(e.id,0,r,0)),Ra.convertToEndOffset(i.tokens,n.length),i}!function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(Ja||(Ja={}));var iu=function(){function e(e){if(this.open=e.open,this.close=e.close,this._standardTokenMask=0,Array.isArray(e.notIn))for(var t=0,n=e.notIn.length;t<n;t++){switch(e.notIn[t]){case"string":this._standardTokenMask|=2;break;case"comment":this._standardTokenMask|=1;break;case"regex":this._standardTokenMask|=4}}}return e.prototype.isOK=function(e){return 0==(this._standardTokenMask&e)},e}();function ou(e,t){for(var n=e.getCount(),r=e.findTokenIndexAtOffset(t),i=e.getLanguageId(r),o=r;o+1<n&&e.getLanguageId(o+1)===i;)o++;for(var s=r;s>0&&e.getLanguageId(s-1)===i;)s--;return new su(e,i,s,o+1,e.getStartOffset(s),e.getEndOffset(o))}var su=function(){function e(e,t,n,r,i,o){this._actual=e,this.languageId=t,this._firstTokenIndex=n,this._lastTokenIndex=r,this.firstCharOffset=i,this._lastCharOffset=o}return e.prototype.getLineContent=function(){return this._actual.getLineContent().substring(this.firstCharOffset,this._lastCharOffset)},e.prototype.getTokenCount=function(){return this._lastTokenIndex-this._firstTokenIndex},e.prototype.findTokenIndexAtOffset=function(e){return this._actual.findTokenIndexAtOffset(e+this.firstCharOffset)-this._firstTokenIndex},e.prototype.getStandardTokenType=function(e){return this._actual.getStandardTokenType(e+this._firstTokenIndex)},e}();function au(e){return 0!=(7&e)}var uu=function(){function e(t){if(t.autoClosingPairs?this._autoClosingPairs=t.autoClosingPairs.map((function(e){return new iu(e)})):t.brackets?this._autoClosingPairs=t.brackets.map((function(e){return new iu({open:e[0],close:e[1]})})):this._autoClosingPairs=[],t.__electricCharacterSupport&&t.__electricCharacterSupport.docComment){var n=t.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new iu({open:n.open,close:n.close||""}))}this._autoCloseBefore="string"==typeof t.autoCloseBefore?t.autoCloseBefore:e.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED,this._surroundingPairs=t.surroundingPairs||this._autoClosingPairs}return e.prototype.getAutoClosingPairs=function(){return this._autoClosingPairs},e.prototype.getAutoCloseBeforeSet=function(){return this._autoCloseBefore},e.shouldAutoClosePair=function(e,t,n){if(0===t.getTokenCount())return!0;var r=t.findTokenIndexAtOffset(n-2),i=t.getStandardTokenType(r);return e.isOK(i)},e.prototype.getSurroundingPairs=function(){return this._surroundingPairs},e.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED=";:.,=}])> \n\t",e}(),lu=function(e,t,n,r,i){this.languageIdentifier=e,this.open=t,this.close=n,this.forwardRegex=r,this.reversedRegex=i},cu=function(e,t){var n=this;this.brackets=t.map((function(t){return new lu(e,t[0],t[1],hu({open:t[0],close:t[1]}),fu({open:t[0],close:t[1]}))})),this.forwardRegex=pu(this.brackets),this.reversedRegex=gu(this.brackets),this.textIsBracket={},this.textIsOpenBracket={};var r=0;this.brackets.forEach((function(e){n.textIsBracket[e.open.toLowerCase()]=e,n.textIsBracket[e.close.toLowerCase()]=e,n.textIsOpenBracket[e.open.toLowerCase()]=!0,n.textIsOpenBracket[e.close.toLowerCase()]=!1,r=Math.max(r,e.open.length),r=Math.max(r,e.close.length)})),this.maxBracketLength=r};function du(e,t){var n={};return function(r){var i=e(r);return n.hasOwnProperty(i)||(n[i]=t(r)),n[i]}}var hu=du((function(e){return e.open+";"+e.close}),(function(e){return _u([e.open,e.close])})),fu=du((function(e){return e.open+";"+e.close}),(function(e){return _u([bu(e.open),bu(e.close)])})),pu=du((function(e){return e.map((function(e){return e.open+";"+e.close})).join(";")}),(function(e){var t=[];return e.forEach((function(e){t.push(e.open),t.push(e.close)})),_u(t)})),gu=du((function(e){return e.map((function(e){return e.open+";"+e.close})).join(";")}),(function(e){var t=[];return e.forEach((function(e){t.push(bu(e.open)),t.push(bu(e.close))})),_u(t)}));function mu(e){var t=/^[\w]+$/.test(e);return e=ln(e),t?"\\b"+e+"\\b":e}function _u(e){return fn("("+e.map(mu).join(")|(")+")",!0)}var yu,vu,bu=(yu=null,vu=null,function(e){return yu!==e&&(vu=function(e){for(var t="",n=e.length-1;n>=0;n--)t+=e.charAt(n);return t}(yu=e)),vu}),wu=function(){function e(){}return e._findPrevBracketInText=function(e,t,n,r){var i=n.match(e);if(!i)return null;var o=n.length-(i.index||0),s=i[0].length,a=r+o;return new Yr(t,a-s+1,t,a+1)},e.findPrevBracketInToken=function(e,t,n,r,i){var o=bu(n).substring(n.length-i,n.length-r);return this._findPrevBracketInText(e,t,o,r)},e.findNextBracketInText=function(e,t,n,r){var i=n.match(e);if(!i)return null;var o=i.index||0,s=i[0].length;if(0===s)return null;var a=r+o;return new Yr(t,a+1,t,a+1+s)},e.findNextBracketInToken=function(e,t,n,r,i){var o=n.substring(r,i);return this.findNextBracketInText(e,t,o,r)},e}(),Cu=function(){function e(e){this._richEditBrackets=e}return e.prototype.getElectricCharacters=function(){var e=[];if(this._richEditBrackets)for(var t=0,n=this._richEditBrackets.brackets.length;t<n;t++){var r=this._richEditBrackets.brackets[t],i=r.close.charAt(r.close.length-1);e.push(i)}return e=e.filter((function(e,t,n){return n.indexOf(e)===t}))},e.prototype.onElectricCharacter=function(e,t,n){if(!this._richEditBrackets||0===this._richEditBrackets.brackets.length)return null;var r=t.findTokenIndexAtOffset(n-1);if(au(t.getStandardTokenType(r)))return null;var i=this._richEditBrackets.reversedRegex,o=t.getLineContent().substring(0,n-1)+e,s=wu.findPrevBracketInToken(i,1,o,0,o.length);if(!s)return null;var a=o.substring(s.startColumn-1,s.endColumn-1);if(a=a.toLowerCase(),this._richEditBrackets.textIsOpenBracket[a])return null;var u=o.substring(0,s.startColumn-1);return/^\s*$/.test(u)?{matchOpenBracket:a}:null},e}(),Su=function(){function e(e){this._indentationRules=e}return e.prototype.shouldIncrease=function(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&this._indentationRules.increaseIndentPattern.test(e))},e.prototype.shouldDecrease=function(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&this._indentationRules.decreaseIndentPattern.test(e))},e.prototype.shouldIndentNextLine=function(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&this._indentationRules.indentNextLinePattern.test(e))},e.prototype.shouldIgnore=function(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&this._indentationRules.unIndentedLinePattern.test(e))},e.prototype.getIndentMetadata=function(e){var t=0;return this.shouldIncrease(e)&&(t+=1),this.shouldDecrease(e)&&(t+=2),this.shouldIndentNextLine(e)&&(t+=4),this.shouldIgnore(e)&&(t+=8),t},e}(),xu=function(){function e(t){var n=this;(t=t||{}).brackets=t.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],t.brackets.forEach((function(t){var r=e._createOpenBracketRegExp(t[0]),i=e._createCloseBracketRegExp(t[1]);r&&i&&n._brackets.push({open:t[0],openRegExp:r,close:t[1],closeRegExp:i})})),this._regExpRules=t.regExpRules||[]}return e.prototype.onEnter=function(e,t,n){for(var r=0,i=this._regExpRules.length;r<i;r++){var o=this._regExpRules[r];if([{reg:o.beforeText,text:t},{reg:o.afterText,text:n},{reg:o.oneLineAboveText,text:e}].every((function(e){return!e.reg||e.reg.test(e.text)})))return o.action}if(t.length>0&&n.length>0)for(r=0,i=this._brackets.length;r<i;r++){if((s=this._brackets[r]).openRegExp.test(t)&&s.closeRegExp.test(n))return{indentAction:Ja.IndentOutdent}}if(t.length>0)for(r=0,i=this._brackets.length;r<i;r++){var s;if((s=this._brackets[r]).openRegExp.test(t))return{indentAction:Ja.Indent}}return null},e._createOpenBracketRegExp=function(t){var n=ln(t);return/\B/.test(n.charAt(0))||(n="\\b"+n),n+="\\s*$",e._safeRegExp(n)},e._createCloseBracketRegExp=function(t){var n=ln(t);return/\B/.test(n.charAt(n.length-1))||(n+="\\b"),n="^\\s*"+n,e._safeRegExp(n)},e._safeRegExp=function(e){try{return new RegExp(e)}catch(e){return Ke(e),null}},e}(),Lu=function(){function e(t,n,r){this._languageIdentifier=t,this._brackets=null,this._electricCharacter=null;var i=null;n&&(i=n._conf),this._conf=e._mergeConf(i,r),this.onEnter=e._handleOnEnter(this._conf),this.comments=e._handleComments(this._conf),this.characterPair=new uu(this._conf),this.wordDefinition=this._conf.wordPattern||ni,this.indentationRules=this._conf.indentationRules,this._conf.indentationRules?this.indentRulesSupport=new Su(this._conf.indentationRules):this.indentRulesSupport=null,this.foldingRules=this._conf.folding||{}}return Object.defineProperty(e.prototype,"brackets",{get:function(){return!this._brackets&&this._conf.brackets&&(this._brackets=new cu(this._languageIdentifier,this._conf.brackets)),this._brackets},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"electricCharacter",{get:function(){return this._electricCharacter||(this._electricCharacter=new Cu(this.brackets)),this._electricCharacter},enumerable:!0,configurable:!0}),e._mergeConf=function(e,t){return{comments:e?t.comments||e.comments:t.comments,brackets:e?t.brackets||e.brackets:t.brackets,wordPattern:e?t.wordPattern||e.wordPattern:t.wordPattern,indentationRules:e?t.indentationRules||e.indentationRules:t.indentationRules,onEnterRules:e?t.onEnterRules||e.onEnterRules:t.onEnterRules,autoClosingPairs:e?t.autoClosingPairs||e.autoClosingPairs:t.autoClosingPairs,surroundingPairs:e?t.surroundingPairs||e.surroundingPairs:t.surroundingPairs,autoCloseBefore:e?t.autoCloseBefore||e.autoCloseBefore:t.autoCloseBefore,folding:e?t.folding||e.folding:t.folding,__electricCharacterSupport:e?t.__electricCharacterSupport||e.__electricCharacterSupport:t.__electricCharacterSupport}},e._handleOnEnter=function(e){var t={},n=!0;return e.brackets&&(n=!1,t.brackets=e.brackets),e.indentationRules&&(n=!1),e.onEnterRules&&(n=!1,t.regExpRules=e.onEnterRules),n?null:new xu(t)},e._handleComments=function(e){var t=e.comments;if(!t)return null;var n={};if(t.lineComment&&(n.lineCommentToken=t.lineComment),t.blockComment){var r=t.blockComment,i=r[0],o=r[1];n.blockCommentStartToken=i,n.blockCommentEndToken=o}return n},e}(),ku=function(e){this.languageIdentifier=e},Mu=new(function(){function e(){this._entries=new Map,this._onDidChange=new $t,this.onDidChange=this._onDidChange.event}return e.prototype.register=function(e,t){var n=this,r=this._getRichEditSupport(e.id),i=new Lu(e,r,t);return this._entries.set(e.id,i),this._onDidChange.fire(new ku(e)),Pt((function(){n._entries.get(e.id)===i&&(n._entries.set(e.id,r),n._onDidChange.fire(new ku(e)))}))},e.prototype._getRichEditSupport=function(e){return this._entries.get(e)},e.prototype._getElectricCharacterSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.electricCharacter||null},e.prototype.getElectricCharacters=function(e){var t=this._getElectricCharacterSupport(e);return t?t.getElectricCharacters():[]},e.prototype.onElectricCharacter=function(e,t,n){var r=ou(t,n-1),i=this._getElectricCharacterSupport(r.languageId);return i?i.onElectricCharacter(e,r,n-r.firstCharOffset):null},e.prototype.getComments=function(e){var t=this._getRichEditSupport(e);return t&&t.comments||null},e.prototype._getCharacterPairSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.characterPair||null},e.prototype.getAutoClosingPairs=function(e){var t=this._getCharacterPairSupport(e);return t?t.getAutoClosingPairs():[]},e.prototype.getAutoCloseBeforeSet=function(e){var t=this._getCharacterPairSupport(e);return t?t.getAutoCloseBeforeSet():uu.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED},e.prototype.getSurroundingPairs=function(e){var t=this._getCharacterPairSupport(e);return t?t.getSurroundingPairs():[]},e.prototype.shouldAutoClosePair=function(e,t,n){var r=ou(t,n-1);return uu.shouldAutoClosePair(e,r,n-r.firstCharOffset)},e.prototype.getWordDefinition=function(e){var t=this._getRichEditSupport(e);return ri(t&&t.wordDefinition||null)},e.prototype.getFoldingRules=function(e){var t=this._getRichEditSupport(e);return t?t.foldingRules:{}},e.prototype.getIndentRulesSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.indentRulesSupport||null},e.prototype.getPrecedingValidLine=function(e,t,n){var r=e.getLanguageIdAtPosition(t,0);if(t>1){var i=void 0,o=-1;for(i=t-1;i>=1;i--){if(e.getLanguageIdAtPosition(i,0)!==r)return o;var s=e.getLineContent(i);if(!n.shouldIgnore(s)&&!/^\s+$/.test(s)&&""!==s)return i;o=i}}return-1},e.prototype.getInheritIndentForLine=function(e,t,n){void 0===n&&(n=!0);var r=this.getIndentRulesSupport(e.getLanguageIdentifier().id);if(!r)return null;if(t<=1)return{indentation:"",action:null};var i=this.getPrecedingValidLine(e,t,r);if(i<0)return null;if(i<1)return{indentation:"",action:null};var o=e.getLineContent(i);if(r.shouldIncrease(o)||r.shouldIndentNextLine(o))return{indentation:mn(o),action:Ja.Indent,line:i};if(r.shouldDecrease(o))return{indentation:mn(o),action:null,line:i};if(1===i)return{indentation:mn(e.getLineContent(i)),action:null,line:i};var s=i-1,a=r.getIndentMetadata(e.getLineContent(s));if(!(3&a)&&4&a){for(var u=0,l=s-1;l>0;l--)if(!r.shouldIndentNextLine(e.getLineContent(l))){u=l;break}return{indentation:mn(e.getLineContent(u+1)),action:null,line:u+1}}if(n)return{indentation:mn(e.getLineContent(i)),action:null,line:i};for(l=i;l>0;l--){var c=e.getLineContent(l);if(r.shouldIncrease(c))return{indentation:mn(c),action:Ja.Indent,line:l};if(r.shouldIndentNextLine(c)){u=0;for(var d=l-1;d>0;d--)if(!r.shouldIndentNextLine(e.getLineContent(l))){u=d;break}return{indentation:mn(e.getLineContent(u+1)),action:null,line:u+1}}if(r.shouldDecrease(c))return{indentation:mn(c),action:null,line:l}}return{indentation:mn(e.getLineContent(1)),action:null,line:1}},e.prototype.getGoodIndentForLine=function(e,t,n,r){var i=this.getIndentRulesSupport(t);if(!i)return null;var o=this.getInheritIndentForLine(e,n),s=e.getLineContent(n);if(o){var a=o.line;if(void 0!==a){var u=this._getOnEnterSupport(t),l=null;try{u&&(l=u.onEnter("",e.getLineContent(a),""))}catch(e){Ke(e)}if(l){var c=mn(e.getLineContent(a));return l.removeText&&(c=c.substring(0,c.length-l.removeText)),l.indentAction===Ja.Indent||l.indentAction===Ja.IndentOutdent?c=r.shiftIndent(c):l.indentAction===Ja.Outdent&&(c=r.unshiftIndent(c)),i.shouldDecrease(s)&&(c=r.unshiftIndent(c)),l.appendText&&(c+=l.appendText),mn(c)}}return i.shouldDecrease(s)?o.action===Ja.Indent?o.indentation:r.unshiftIndent(o.indentation):o.action===Ja.Indent?r.shiftIndent(o.indentation):o.indentation}return null},e.prototype.getIndentForEnter=function(e,t,n,r){e.forceTokenization(t.startLineNumber);var i,o,s=e.getLineTokens(t.startLineNumber),a=ou(s,t.startColumn-1),u=a.getLineContent(),l=!1;(a.firstCharOffset>0&&s.getLanguageId(0)!==a.languageId?(l=!0,i=u.substr(0,t.startColumn-1-a.firstCharOffset)):i=s.getLineContent().substring(0,t.startColumn-1),t.isEmpty())?o=u.substr(t.startColumn-1-a.firstCharOffset):o=this.getScopedLineTokens(e,t.endLineNumber,t.endColumn).getLineContent().substr(t.endColumn-1-a.firstCharOffset);var c=this.getIndentRulesSupport(a.languageId);if(!c)return null;var d=i,h=mn(i);if(!r&&!l){var f=this.getInheritIndentForLine(e,t.startLineNumber);c.shouldDecrease(i)&&f&&(h=f.indentation,f.action!==Ja.Indent&&(h=n.unshiftIndent(h))),d=h+cn(cn(i," "),"\t")}var p={getLineTokens:function(t){return e.getLineTokens(t)},getLanguageIdentifier:function(){return e.getLanguageIdentifier()},getLanguageIdAtPosition:function(t,n){return e.getLanguageIdAtPosition(t,n)},getLineContent:function(n){return n===t.startLineNumber?d:e.getLineContent(n)}},g=mn(s.getLineContent()),m=this.getInheritIndentForLine(p,t.startLineNumber+1);if(!m){var _=l?g:h;return{beforeEnter:_,afterEnter:_}}var y=l?g:m.indentation;return m.action===Ja.Indent&&(y=n.shiftIndent(y)),c.shouldDecrease(o)&&(y=n.unshiftIndent(y)),{beforeEnter:l?g:h,afterEnter:y}},e.prototype.getIndentActionForType=function(e,t,n,r){var i=this.getScopedLineTokens(e,t.startLineNumber,t.startColumn),o=this.getIndentRulesSupport(i.languageId);if(!o)return null;var s,a=i.getLineContent(),u=a.substr(0,t.startColumn-1-i.firstCharOffset);t.isEmpty()?s=a.substr(t.startColumn-1-i.firstCharOffset):s=this.getScopedLineTokens(e,t.endLineNumber,t.endColumn).getLineContent().substr(t.endColumn-1-i.firstCharOffset);if(!o.shouldDecrease(u+s)&&o.shouldDecrease(u+n+s)){var l=this.getInheritIndentForLine(e,t.startLineNumber,!1);if(!l)return null;var c=l.indentation;return l.action!==Ja.Indent&&(c=r.unshiftIndent(c)),c}return null},e.prototype.getIndentMetadata=function(e,t){var n=this.getIndentRulesSupport(e.getLanguageIdentifier().id);return n?t<1||t>e.getLineCount()?null:n.getIndentMetadata(e.getLineContent(t)):null},e.prototype._getOnEnterSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.onEnter||null},e.prototype.getRawEnterActionAtPosition=function(e,t,n){var r=this.getEnterAction(e,new Yr(t,n,t,n));return r?r.enterAction:null},e.prototype.getEnterAction=function(e,t){var n=this.getIndentationAtPosition(e,t.startLineNumber,t.startColumn),r=this.getScopedLineTokens(e,t.startLineNumber,t.startColumn),i=this._getOnEnterSupport(r.languageId);if(!i)return null;var o,s=r.getLineContent(),a=s.substr(0,t.startColumn-1-r.firstCharOffset);t.isEmpty()?o=s.substr(t.startColumn-1-r.firstCharOffset):o=this.getScopedLineTokens(e,t.endLineNumber,t.endColumn).getLineContent().substr(t.endColumn-1-r.firstCharOffset);var u=t.startLineNumber,l="";if(u>1&&0===r.firstCharOffset){var c=this.getScopedLineTokens(e,u-1);c.languageId===r.languageId&&(l=c.getLineContent())}var d=null;try{d=i.onEnter(l,a,o)}catch(e){Ke(e)}return d?(d.appendText||(d.indentAction===Ja.Indent||d.indentAction===Ja.IndentOutdent?d.appendText="\t":d.appendText=""),d.removeText&&(n=n.substring(0,n.length-d.removeText)),{enterAction:d,indentation:n}):null},e.prototype.getIndentationAtPosition=function(e,t,n){var r=mn(e.getLineContent(t));return r.length>n-1&&(r=r.substring(0,n-1)),r},e.prototype.getScopedLineTokens=function(e,t,n){return e.forceTokenization(t),ou(e.getLineTokens(t),void 0===n?e.getLineMaxColumn(t)-1:n-1)},e.prototype.getBracketsSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.brackets||null},e}());function Du(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n}var Eu=function(){function e(e,t,n,r){void 0===r&&(r=1),this.r=0|Math.min(255,Math.max(0,e)),this.g=0|Math.min(255,Math.max(0,t)),this.b=0|Math.min(255,Math.max(0,n)),this.a=Du(Math.max(Math.min(1,r),0),3)}return e.equals=function(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a},e}(),Tu=function(){function e(e,t,n,r){this.h=0|Math.max(Math.min(360,e),0),this.s=Du(Math.max(Math.min(1,t),0),3),this.l=Du(Math.max(Math.min(1,n),0),3),this.a=Du(Math.max(Math.min(1,r),0),3)}return e.equals=function(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a},e.fromRGBA=function(t){var n=t.r/255,r=t.g/255,i=t.b/255,o=t.a,s=Math.max(n,r,i),a=Math.min(n,r,i),u=0,l=0,c=(a+s)/2,d=s-a;if(d>0){switch(l=Math.min(c<=.5?d/(2*c):d/(2-2*c),1),s){case n:u=(r-i)/d+(r<i?6:0);break;case r:u=(i-n)/d+2;break;case i:u=(n-r)/d+4}u*=60,u=Math.round(u)}return new e(u,l,c,o)},e._hue2rgb=function(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e},e.toRGBA=function(t){var n,r,i,o=t.h/360,s=t.s,a=t.l,u=t.a;if(0===s)n=r=i=a;else{var l=a<.5?a*(1+s):a+s-a*s,c=2*a-l;n=e._hue2rgb(c,l,o+1/3),r=e._hue2rgb(c,l,o),i=e._hue2rgb(c,l,o-1/3)}return new Eu(Math.round(255*n),Math.round(255*r),Math.round(255*i),u)},e}(),Nu=function(){function e(e,t,n,r){this.h=0|Math.max(Math.min(360,e),0),this.s=Du(Math.max(Math.min(1,t),0),3),this.v=Du(Math.max(Math.min(1,n),0),3),this.a=Du(Math.max(Math.min(1,r),0),3)}return e.equals=function(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a},e.fromRGBA=function(t){var n,r=t.r/255,i=t.g/255,o=t.b/255,s=Math.max(r,i,o),a=s-Math.min(r,i,o),u=0===s?0:a/s;return n=0===a?0:s===r?((i-o)/a%6+6)%6:s===i?(o-r)/a+2:(r-i)/a+4,new e(Math.round(60*n),u,s,t.a)},e.toRGBA=function(e){var t=e.h,n=e.s,r=e.v,i=e.a,o=r*n,s=o*(1-Math.abs(t/60%2-1)),a=r-o,u=[0,0,0],l=u[0],c=u[1],d=u[2];return t<60?(l=o,c=s):t<120?(l=s,c=o):t<180?(c=o,d=s):t<240?(c=s,d=o):t<300?(l=s,d=o):t<360&&(l=o,d=s),l=Math.round(255*(l+a)),c=Math.round(255*(c+a)),d=Math.round(255*(d+a)),new Eu(l,c,d,i)},e}(),Ou=function(){function e(e){if(!e)throw new Error("Color needs a value");if(e instanceof Eu)this.rgba=e;else if(e instanceof Tu)this._hsla=e,this.rgba=Tu.toRGBA(e);else{if(!(e instanceof Nu))throw new Error("Invalid color ctor argument");this._hsva=e,this.rgba=Nu.toRGBA(e)}}return e.fromHex=function(t){return e.Format.CSS.parseHex(t)||e.red},Object.defineProperty(e.prototype,"hsla",{get:function(){return this._hsla?this._hsla:Tu.fromRGBA(this.rgba)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hsva",{get:function(){return this._hsva?this._hsva:Nu.fromRGBA(this.rgba)},enumerable:!0,configurable:!0}),e.prototype.equals=function(e){return!!e&&Eu.equals(this.rgba,e.rgba)&&Tu.equals(this.hsla,e.hsla)&&Nu.equals(this.hsva,e.hsva)},e.prototype.getRelativeLuminance=function(){return Du(.2126*e._relativeLuminanceForComponent(this.rgba.r)+.7152*e._relativeLuminanceForComponent(this.rgba.g)+.0722*e._relativeLuminanceForComponent(this.rgba.b),4)},e._relativeLuminanceForComponent=function(e){var t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)},e.prototype.isLighter=function(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3>=128},e.prototype.isLighterThan=function(e){return this.getRelativeLuminance()>e.getRelativeLuminance()},e.prototype.isDarkerThan=function(e){return this.getRelativeLuminance()<e.getRelativeLuminance()},e.prototype.lighten=function(t){return new e(new Tu(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*t,this.hsla.a))},e.prototype.darken=function(t){return new e(new Tu(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*t,this.hsla.a))},e.prototype.transparent=function(t){var n=this.rgba,r=n.r,i=n.g,o=n.b,s=n.a;return new e(new Eu(r,i,o,s*t))},e.prototype.isTransparent=function(){return 0===this.rgba.a},e.prototype.isOpaque=function(){return 1===this.rgba.a},e.prototype.opposite=function(){return new e(new Eu(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))},e.prototype.toString=function(){return""+e.Format.CSS.format(this)},e.getLighterColor=function(e,t,n){if(e.isLighterThan(t))return e;n=n||.5;var r=e.getRelativeLuminance(),i=t.getRelativeLuminance();return n=n*(i-r)/i,e.lighten(n)},e.getDarkerColor=function(e,t,n){if(e.isDarkerThan(t))return e;n=n||.5;var r=e.getRelativeLuminance();return n=n*(r-t.getRelativeLuminance())/r,e.darken(n)},e.white=new e(new Eu(255,255,255,1)),e.black=new e(new Eu(0,0,0,1)),e.red=new e(new Eu(255,0,0,1)),e.blue=new e(new Eu(0,0,255,1)),e.cyan=new e(new Eu(0,255,255,1)),e.lightgrey=new e(new Eu(211,211,211,1)),e.transparent=new e(new Eu(0,0,0,0)),e}();!function(e){!function(t){!function(t){function n(e){var t=e.toString(16);return 2!==t.length?"0"+t:t}function r(e){switch(e){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:case 65:return 10;case 98:case 66:return 11;case 99:case 67:return 12;case 100:case 68:return 13;case 101:case 69:return 14;case 102:case 70:return 15}return 0}t.formatRGB=function(t){return 1===t.rgba.a?"rgb("+t.rgba.r+", "+t.rgba.g+", "+t.rgba.b+")":e.Format.CSS.formatRGBA(t)},t.formatRGBA=function(e){return"rgba("+e.rgba.r+", "+e.rgba.g+", "+e.rgba.b+", "+ +e.rgba.a.toFixed(2)+")"},t.formatHSL=function(t){return 1===t.hsla.a?"hsl("+t.hsla.h+", "+(100*t.hsla.s).toFixed(2)+"%, "+(100*t.hsla.l).toFixed(2)+"%)":e.Format.CSS.formatHSLA(t)},t.formatHSLA=function(e){return"hsla("+e.hsla.h+", "+(100*e.hsla.s).toFixed(2)+"%, "+(100*e.hsla.l).toFixed(2)+"%, "+e.hsla.a.toFixed(2)+")"},t.formatHex=function(e){return"#"+n(e.rgba.r)+n(e.rgba.g)+n(e.rgba.b)},t.formatHexA=function(t,r){return void 0===r&&(r=!1),r&&1===t.rgba.a?e.Format.CSS.formatHex(t):"#"+n(t.rgba.r)+n(t.rgba.g)+n(t.rgba.b)+n(Math.round(255*t.rgba.a))},t.format=function(t){return t?t.isOpaque()?e.Format.CSS.formatHex(t):e.Format.CSS.formatRGBA(t):null},t.parseHex=function(t){if(!t)return null;var n=t.length;if(0===n)return null;if(35!==t.charCodeAt(0))return null;if(7===n){var i=16*r(t.charCodeAt(1))+r(t.charCodeAt(2)),o=16*r(t.charCodeAt(3))+r(t.charCodeAt(4)),s=16*r(t.charCodeAt(5))+r(t.charCodeAt(6));return new e(new Eu(i,o,s,1))}if(9===n){i=16*r(t.charCodeAt(1))+r(t.charCodeAt(2)),o=16*r(t.charCodeAt(3))+r(t.charCodeAt(4)),s=16*r(t.charCodeAt(5))+r(t.charCodeAt(6));var a=16*r(t.charCodeAt(7))+r(t.charCodeAt(8));return new e(new Eu(i,o,s,a/255))}if(4===n){i=r(t.charCodeAt(1)),o=r(t.charCodeAt(2)),s=r(t.charCodeAt(3));return new e(new Eu(16*i+i,16*o+o,16*s+s))}if(5===n){i=r(t.charCodeAt(1)),o=r(t.charCodeAt(2)),s=r(t.charCodeAt(3)),a=r(t.charCodeAt(4));return new e(new Eu(16*i+i,16*o+o,16*s+s,(16*a+a)/255))}return null}}(t.CSS||(t.CSS={}))}(e.Format||(e.Format={}))}(Ou||(Ou={}));var Au=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function Iu(e){var t=new Vo;return t.acceptChunk(e),t.finish()}function Pu(e,t){return("string"==typeof e?Iu(e):e).create(t)}var Ru=0,Fu=function(){throw new Error("Invalid change accessor")},Yu=function(e){function t(n,r,i,o){void 0===o&&(o=null);var s=e.call(this)||this;s._onWillDispose=s._register(new $t),s.onWillDispose=s._onWillDispose.event,s._onDidChangeDecorations=s._register(new Ku),s.onDidChangeDecorations=s._onDidChangeDecorations.event,s._onDidChangeLanguage=s._register(new $t),s.onDidChangeLanguage=s._onDidChangeLanguage.event,s._onDidChangeLanguageConfiguration=s._register(new $t),s.onDidChangeLanguageConfiguration=s._onDidChangeLanguageConfiguration.event,s._onDidChangeTokens=s._register(new $t),s.onDidChangeTokens=s._onDidChangeTokens.event,s._onDidChangeOptions=s._register(new $t),s.onDidChangeOptions=s._onDidChangeOptions.event,s._onDidChangeAttached=s._register(new $t),s.onDidChangeAttached=s._onDidChangeAttached.event,s._eventEmitter=s._register(new Gu),Ru++,s.id="$model"+Ru,s.isForSimpleWidget=r.isForSimpleWidget,s._associatedResource=null==o?ht.parse("inmemory://model/"+Ru):o,s._attachedEditorCount=0,s._buffer=Pu(n,r.defaultEOL),s._options=t.resolveOptions(s._buffer,r);var a=s._buffer.getLineCount(),u=s._buffer.getValueLengthInRange(new Yr(1,1,a,s._buffer.getLineLength(a)+1),0);return r.largeFileOptimizations?s._isTooLargeForTokenization=u>t.LARGE_FILE_SIZE_THRESHOLD||a>t.LARGE_FILE_LINE_COUNT_THRESHOLD:s._isTooLargeForTokenization=!1,s._isTooLargeForSyncing=u>t.MODEL_SYNC_LIMIT,s._versionId=1,s._alternativeVersionId=1,s._isDisposed=!1,s._isDisposing=!1,s._languageIdentifier=i||Ha,s._languageRegistryListener=Mu.onDidChange((function(e){e.languageIdentifier.id===s._languageIdentifier.id&&s._onDidChangeLanguageConfiguration.fire({})})),s._instanceId=In(Ru),s._lastDecorationId=0,s._decorations=Object.create(null),s._decorationsTree=new ju,s._commandManager=new Ti(s),s._isUndoing=!1,s._isRedoing=!1,s._trimAutoWhitespaceLines=null,s._tokens=new Qa,s._tokenization=new nu(s),s}return Au(t,e),t.createFromString=function(e,n,r,i){return void 0===n&&(n=t.DEFAULT_CREATION_OPTIONS),void 0===r&&(r=null),void 0===i&&(i=null),new t(e,n,r,i)},t.resolveOptions=function(e,t){if(t.detectIndentation){var n=Ai(e,t.tabSize,t.insertSpaces);return new xi({tabSize:n.tabSize,indentSize:n.tabSize,insertSpaces:n.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL})}return new xi({tabSize:t.tabSize,indentSize:t.indentSize,insertSpaces:t.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL})},t.prototype.onDidChangeRawContentFast=function(e){return this._eventEmitter.fastEvent((function(t){return e(t.rawContentChangedEvent)}))},t.prototype.onDidChangeRawContent=function(e){return this._eventEmitter.slowEvent((function(t){return e(t.rawContentChangedEvent)}))},t.prototype.onDidChangeContentFast=function(e){return this._eventEmitter.fastEvent((function(t){return e(t.contentChangedEvent)}))},t.prototype.onDidChangeContent=function(e){return this._eventEmitter.slowEvent((function(t){return e(t.contentChangedEvent)}))},t.prototype.dispose=function(){this._isDisposing=!0,this._onWillDispose.fire(),this._languageRegistryListener.dispose(),this._tokenization.dispose(),this._isDisposed=!0,e.prototype.dispose.call(this),this._isDisposing=!1},t.prototype._assertNotDisposed=function(){if(this._isDisposed)throw new Error("Model is disposed!")},t.prototype._emitContentChangedEvent=function(e,t){this._isDisposing||this._eventEmitter.fire(new Zo(e,t))},t.prototype.setValue=function(e){if(this._assertNotDisposed(),null!==e){var t=Pu(e,this._options.defaultEOL);this.setValueFromTextBuffer(t)}},t.prototype._createContentChanged2=function(e,t,n,r,i,o,s){return{changes:[{range:e,rangeOffset:t,rangeLength:n,text:r}],eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:i,isRedoing:o,isFlush:s}},t.prototype.setValueFromTextBuffer=function(e){if(this._assertNotDisposed(),null!==e){var t=this.getFullModelRange(),n=this.getValueLengthInRange(t),r=this.getLineCount(),i=this.getLineMaxColumn(r);this._buffer=e,this._increaseVersionId(),this._tokens.flush(),this._decorations=Object.create(null),this._decorationsTree=new ju,this._commandManager=new Ti(this),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new $o([new zo],this._versionId,!1,!1),this._createContentChanged2(new Yr(1,1,r,i),0,n,this.getValue(),!1,!1,!0))}},t.prototype.setEOL=function(e){this._assertNotDisposed();var t=1===e?"\r\n":"\n";if(this._buffer.getEOL()!==t){var n=this.getFullModelRange(),r=this.getValueLengthInRange(n),i=this.getLineCount(),o=this.getLineMaxColumn(i);this._onBeforeEOLChange(),this._buffer.setEOL(t),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new $o([new Go],this._versionId,!1,!1),this._createContentChanged2(new Yr(1,1,i,o),0,r,this.getValue(),!1,!1,!1))}},t.prototype._onBeforeEOLChange=function(){var e=this.getVersionId(),t=this._decorationsTree.search(0,!1,!1,e);this._ensureNodesHaveRanges(t)},t.prototype._onAfterEOLChange=function(){for(var e=this.getVersionId(),t=this._decorationsTree.collectNodesPostOrder(),n=0,r=t.length;n<r;n++){var i=t[n],o=i.cachedAbsoluteStart-i.start,s=this._buffer.getOffsetAt(i.range.startLineNumber,i.range.startColumn),a=this._buffer.getOffsetAt(i.range.endLineNumber,i.range.endColumn);i.cachedAbsoluteStart=s,i.cachedAbsoluteEnd=a,i.cachedVersionId=e,i.start=s-o,i.end=a-o,to(i)}},t.prototype.onBeforeAttached=function(){this._attachedEditorCount++,1===this._attachedEditorCount&&this._onDidChangeAttached.fire(void 0)},t.prototype.onBeforeDetached=function(){this._attachedEditorCount--,0===this._attachedEditorCount&&this._onDidChangeAttached.fire(void 0)},t.prototype.isAttachedToEditor=function(){return this._attachedEditorCount>0},t.prototype.getAttachedEditorCount=function(){return this._attachedEditorCount},t.prototype.isTooLargeForSyncing=function(){return this._isTooLargeForSyncing},t.prototype.isTooLargeForTokenization=function(){return this._isTooLargeForTokenization},t.prototype.isDisposed=function(){return this._isDisposed},t.prototype.isDominatedByLongLines=function(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;for(var e=0,t=0,n=this._buffer.getLineCount(),r=1;r<=n;r++){var i=this._buffer.getLineLength(r);i>=1e4?t+=i:e+=i}return t>e},Object.defineProperty(t.prototype,"uri",{get:function(){return this._associatedResource},enumerable:!0,configurable:!0}),t.prototype.getOptions=function(){return this._assertNotDisposed(),this._options},t.prototype.getFormattingOptions=function(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}},t.prototype.updateOptions=function(e){this._assertNotDisposed();var t=void 0!==e.tabSize?e.tabSize:this._options.tabSize,n=void 0!==e.indentSize?e.indentSize:this._options.indentSize,r=void 0!==e.insertSpaces?e.insertSpaces:this._options.insertSpaces,i=void 0!==e.trimAutoWhitespace?e.trimAutoWhitespace:this._options.trimAutoWhitespace,o=new xi({tabSize:t,indentSize:n,insertSpaces:r,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:i});if(!this._options.equals(o)){var s=this._options.createChangeEvent(o);this._options=o,this._onDidChangeOptions.fire(s)}},t.prototype.detectIndentation=function(e,t){this._assertNotDisposed();var n=Ai(this._buffer,t,e);this.updateOptions({insertSpaces:n.insertSpaces,tabSize:n.tabSize,indentSize:n.tabSize})},t._normalizeIndentationFromWhitespace=function(e,t,n){for(var r=0,i=0;i<e.length;i++)"\t"===e.charAt(i)?r+=t:r++;var o="";if(!n){var s=Math.floor(r/t);r%=t;for(i=0;i<s;i++)o+="\t"}for(i=0;i<r;i++)o+=" ";return o},t.normalizeIndentation=function(e,n,r){var i=gn(e);return-1===i&&(i=e.length),t._normalizeIndentationFromWhitespace(e.substring(0,i),n,r)+e.substring(i)},t.prototype.normalizeIndentation=function(e){return this._assertNotDisposed(),t.normalizeIndentation(e,this._options.indentSize,this._options.insertSpaces)},t.prototype.getVersionId=function(){return this._assertNotDisposed(),this._versionId},t.prototype.mightContainRTL=function(){return this._buffer.mightContainRTL()},t.prototype.mightContainNonBasicASCII=function(){return this._buffer.mightContainNonBasicASCII()},t.prototype.getAlternativeVersionId=function(){return this._assertNotDisposed(),this._alternativeVersionId},t.prototype.getOffsetAt=function(e){this._assertNotDisposed();var t=this._validatePosition(e.lineNumber,e.column,!1);return this._buffer.getOffsetAt(t.lineNumber,t.column)},t.prototype.getPositionAt=function(e){this._assertNotDisposed();var t=Math.min(this._buffer.getLength(),Math.max(0,e));return this._buffer.getPositionAt(t)},t.prototype._increaseVersionId=function(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId},t.prototype._overwriteAlternativeVersionId=function(e){this._alternativeVersionId=e},t.prototype.getValue=function(e,t){void 0===t&&(t=!1),this._assertNotDisposed();var n=this.getFullModelRange(),r=this.getValueInRange(n,e);return t?this._buffer.getBOM()+r:r},t.prototype.getValueLength=function(e,t){void 0===t&&(t=!1),this._assertNotDisposed();var n=this.getFullModelRange(),r=this.getValueLengthInRange(n,e);return t?this._buffer.getBOM().length+r:r},t.prototype.getValueInRange=function(e,t){return void 0===t&&(t=0),this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(e),t)},t.prototype.getValueLengthInRange=function(e,t){return void 0===t&&(t=0),this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(e),t)},t.prototype.getLineCount=function(){return this._assertNotDisposed(),this._buffer.getLineCount()},t.prototype.getLineContent=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineContent(e)},t.prototype.getLineLength=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(e)},t.prototype.getLinesContent=function(){return this._assertNotDisposed(),this._buffer.getLinesContent()},t.prototype.getEOL=function(){return this._assertNotDisposed(),this._buffer.getEOL()},t.prototype.getLineMinColumn=function(e){return this._assertNotDisposed(),1},t.prototype.getLineMaxColumn=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(e)+1},t.prototype.getLineFirstNonWhitespaceColumn=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(e)},t.prototype.getLineLastNonWhitespaceColumn=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(e)},t.prototype._validateRangeRelaxedNoAllocations=function(e){var t,n,r=this._buffer.getLineCount(),i=e.startLineNumber,o=e.startColumn;if(i<1)t=1,n=1;else if(i>r)t=r,n=this.getLineMaxColumn(t);else{if(t=0|i,o<=1)n=1;else n=o>=(c=this.getLineMaxColumn(t))?c:0|o}var s,a,u=e.endLineNumber,l=e.endColumn;if(u<1)s=1,a=1;else if(u>r)s=r,a=this.getLineMaxColumn(s);else{var c;if(s=0|u,l<=1)a=1;else a=l>=(c=this.getLineMaxColumn(s))?c:0|l}return i===t&&o===n&&u===s&&l===a&&e instanceof Yr&&!(e instanceof Br)?e:new Yr(t,n,s,a)},t.prototype._isValidPosition=function(e,t,n){if("number"!=typeof e||"number"!=typeof t)return!1;if(isNaN(e)||isNaN(t))return!1;if(e<1||t<1)return!1;if((0|e)!==e||(0|t)!==t)return!1;if(e>this._buffer.getLineCount())return!1;if(t>this.getLineMaxColumn(e))return!1;if(n&&(t>1&&xn(this._buffer.getLineCharCode(e,t-2))))return!1;return!0},t.prototype._validatePosition=function(e,t,n){var r=Math.floor("number"!=typeof e||isNaN(e)?1:e),i=Math.floor("number"!=typeof t||isNaN(t)?1:t),o=this._buffer.getLineCount();if(r<1)return new Lt(1,1);if(r>o)return new Lt(o,this.getLineMaxColumn(o));if(i<=1)return new Lt(r,1);var s=this.getLineMaxColumn(r);if(i>=s)return new Lt(r,s);if(n&&xn(this._buffer.getLineCharCode(r,i-2)))return new Lt(r,i-1);return new Lt(r,i)},t.prototype.validatePosition=function(e){return this._assertNotDisposed(),e instanceof Lt&&this._isValidPosition(e.lineNumber,e.column,!0)?e:this._validatePosition(e.lineNumber,e.column,!0)},t.prototype._isValidRange=function(e,t){var n=e.startLineNumber,r=e.startColumn,i=e.endLineNumber,o=e.endColumn;if(!this._isValidPosition(n,r,!1))return!1;if(!this._isValidPosition(i,o,!1))return!1;if(t){var s=r>1?this._buffer.getLineCharCode(n,r-2):0,a=o>1&&o<=this._buffer.getLineLength(i)?this._buffer.getLineCharCode(i,o-2):0,u=xn(s),l=xn(a);return!u&&!l}return!0},t.prototype.validateRange=function(e){if(this._assertNotDisposed(),e instanceof Yr&&!(e instanceof Br)&&this._isValidRange(e,!0))return e;var t=this._validatePosition(e.startLineNumber,e.startColumn,!1),n=this._validatePosition(e.endLineNumber,e.endColumn,!1),r=t.lineNumber,i=t.column,o=n.lineNumber,s=n.column,a=i>1?this._buffer.getLineCharCode(r,i-2):0,u=s>1&&s<=this._buffer.getLineLength(o)?this._buffer.getLineCharCode(o,s-2):0,l=xn(a),c=xn(u);return l||c?r===o&&i===s?new Yr(r,i-1,o,s-1):l&&c?new Yr(r,i-1,o,s+1):l?new Yr(r,i-1,o,s):new Yr(r,i,o,s+1):new Yr(r,i,o,s)},t.prototype.modifyPosition=function(e,t){this._assertNotDisposed();var n=this.getOffsetAt(e)+t;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,n)))},t.prototype.getFullModelRange=function(){this._assertNotDisposed();var e=this.getLineCount();return new Yr(1,1,e,this.getLineMaxColumn(e))},t.prototype.findMatchesLineByLine=function(e,t,n,r){return this._buffer.findMatchesLineByLine(e,t,n,r)},t.prototype.findMatches=function(e,t,n,r,i,o,s){var a;if(void 0===s&&(s=999),this._assertNotDisposed(),a=Yr.isIRange(t)?this.validateRange(t):this.getFullModelRange(),!n&&e.indexOf("\n")<0){var u=new Mo(e,n,r,i).parseSearchRequest();return u?this.findMatchesLineByLine(a,u,o,s):[]}return No.findMatches(this,new Mo(e,n,r,i),a,o,s)},t.prototype.findNextMatch=function(e,t,n,r,i,o){this._assertNotDisposed();var s=this.validatePosition(t);if(!n&&e.indexOf("\n")<0){var a=new Mo(e,n,r,i).parseSearchRequest();if(!a)return null;var u=this.getLineCount(),l=new Yr(s.lineNumber,s.column,u,this.getLineMaxColumn(u)),c=this.findMatchesLineByLine(l,a,o,1);return No.findNextMatch(this,new Mo(e,n,r,i),s,o),c.length>0?c[0]:(l=new Yr(1,1,s.lineNumber,this.getLineMaxColumn(s.lineNumber)),(c=this.findMatchesLineByLine(l,a,o,1)).length>0?c[0]:null)}return No.findNextMatch(this,new Mo(e,n,r,i),s,o)},t.prototype.findPreviousMatch=function(e,t,n,r,i,o){this._assertNotDisposed();var s=this.validatePosition(t);return No.findPreviousMatch(this,new Mo(e,n,r,i),s,o)},t.prototype.pushStackElement=function(){this._commandManager.pushStackElement()},t.prototype.pushEOL=function(e){if(("\n"===this.getEOL()?0:1)!==e)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._commandManager.pushEOL(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},t.prototype.pushEditOperations=function(e,t,n){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._pushEditOperations(e,t,n)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},t.prototype._pushEditOperations=function(e,t,n){var r=this;if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){for(var i=t.map((function(e){return{range:r.validateRange(e.range),text:e.text}})),o=!0,s=0,a=e.length;s<a;s++){for(var u=e[s],l=!1,c=0,d=i.length;c<d;c++){var h=(_=i[c].range).startLineNumber>u.endLineNumber,f=u.startLineNumber>_.endLineNumber;if(!h&&!f){l=!0;break}}if(!l){o=!1;break}}if(o)for(s=0,a=this._trimAutoWhitespaceLines.length;s<a;s++){var p=this._trimAutoWhitespaceLines[s],g=this.getLineMaxColumn(p),m=!0;for(c=0,d=i.length;c<d;c++){var _=i[c].range,y=i[c].text;if(!(p<_.startLineNumber||p>_.endLineNumber)&&!(p===_.startLineNumber&&_.startColumn===g&&_.isEmpty()&&y&&y.length>0&&"\n"===y.charAt(0)||p===_.startLineNumber&&1===_.startColumn&&_.isEmpty()&&y&&y.length>0&&"\n"===y.charAt(y.length-1))){m=!1;break}}m&&t.push({range:new Yr(p,1,p,g),text:null})}this._trimAutoWhitespaceLines=null}return this._commandManager.pushEditOperation(e,t,n)},t.prototype.applyEdits=function(e){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._applyEdits(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},t.prototype._applyEdits=function(e){for(var t=0,n=e.length;t<n;t++)e[t].range=this.validateRange(e[t].range);var r=this._buffer.getLineCount(),i=this._buffer.applyEdits(e,this._options.trimAutoWhitespace),o=this._buffer.getLineCount(),s=i.changes;if(this._trimAutoWhitespaceLines=i.trimAutoWhitespaceLineNumbers,0!==s.length){var a=[],u=r;for(t=0,n=s.length;t<n;t++){var l=s[t],c=qa(l.text),d=c[0],h=c[1];this._tokens.acceptEdit(l.range,d,h),this._onDidChangeDecorations.fire(),this._decorationsTree.acceptReplace(l.rangeOffset,l.rangeLength,l.text.length,l.forceMoveMarkers);for(var f=l.range.startLineNumber,p=l.range.endLineNumber,g=p-f,m=d,_=Math.min(g,m),y=m-g,v=_;v>=0;v--){var b=f+v,w=o-u-y+b;a.push(new Uo(b,this.getLineContent(w)))}if(_<g){var C=f+_;a.push(new qo(C+1,p))}if(_<m){for(var S=f+_,x=m-_,L=o-u-x+S+1,k=[],M=0;M<x;M++){var D=L+M;k[D-L]=this.getLineContent(D)}a.push(new Ko(S+1,f+m,k))}u+=y}this._increaseVersionId(),this._emitContentChangedEvent(new $o(a,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:s,eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return i.reverseEdits},t.prototype._undo=function(){this._isUndoing=!0;var e=this._commandManager.undo();return this._isUndoing=!1,e?(this._overwriteAlternativeVersionId(e.recordedVersionId),e.selections):null},t.prototype.undo=function(){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._undo()}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},t.prototype.canUndo=function(){return this._commandManager.canUndo()},t.prototype._redo=function(){this._isRedoing=!0;var e=this._commandManager.redo();return this._isRedoing=!1,e?(this._overwriteAlternativeVersionId(e.recordedVersionId),e.selections):null},t.prototype.redo=function(){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._redo()}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},t.prototype.canRedo=function(){return this._commandManager.canRedo()},t.prototype.changeDecorations=function(e,t){void 0===t&&(t=0),this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(t,e)}finally{this._onDidChangeDecorations.endDeferredEmit()}},t.prototype._changeDecorations=function(e,t){var n=this,r={addDecoration:function(t,r){return n._onDidChangeDecorations.fire(),n._deltaDecorationsImpl(e,[],[{range:t,options:r}])[0]},changeDecoration:function(e,t){n._onDidChangeDecorations.fire(),n._changeDecorationImpl(e,t)},changeDecorationOptions:function(e,t){n._onDidChangeDecorations.fire(),n._changeDecorationOptionsImpl(e,qu(t))},removeDecoration:function(t){n._onDidChangeDecorations.fire(),n._deltaDecorationsImpl(e,[t],[])},deltaDecorations:function(t,r){return 0===t.length&&0===r.length?[]:(n._onDidChangeDecorations.fire(),n._deltaDecorationsImpl(e,t,r))}},i=null;try{i=t(r)}catch(e){Ke(e)}return r.addDecoration=Fu,r.changeDecoration=Fu,r.changeDecorationOptions=Fu,r.removeDecoration=Fu,r.deltaDecorations=Fu,i},t.prototype.deltaDecorations=function(e,t,n){if(void 0===n&&(n=0),this._assertNotDisposed(),e||(e=[]),0===e.length&&0===t.length)return[];try{return this._onDidChangeDecorations.beginDeferredEmit(),this._onDidChangeDecorations.fire(),this._deltaDecorationsImpl(n,e,t)}finally{this._onDidChangeDecorations.endDeferredEmit()}},t.prototype._getTrackedRange=function(e){return this.getDecorationRange(e)},t.prototype._setTrackedRange=function(e,t,n){var r=e?this._decorations[e]:null;if(!r)return t?this._deltaDecorationsImpl(0,[],[{range:t,options:Uu[n]}])[0]:null;if(!t)return this._decorationsTree.delete(r),delete this._decorations[r.id],null;var i=this._validateRangeRelaxedNoAllocations(t),o=this._buffer.getOffsetAt(i.startLineNumber,i.startColumn),s=this._buffer.getOffsetAt(i.endLineNumber,i.endColumn);return this._decorationsTree.delete(r),r.reset(this.getVersionId(),o,s,i),r.setOptions(Uu[n]),this._decorationsTree.insert(r),r.id},t.prototype.removeAllDecorationsWithOwnerId=function(e){if(!this._isDisposed)for(var t=this._decorationsTree.collectNodesFromOwner(e),n=0,r=t.length;n<r;n++){var i=t[n];this._decorationsTree.delete(i),delete this._decorations[i.id]}},t.prototype.getDecorationOptions=function(e){var t=this._decorations[e];return t?t.options:null},t.prototype.getDecorationRange=function(e){var t=this._decorations[e];if(!t)return null;var n=this.getVersionId();return t.cachedVersionId!==n&&this._decorationsTree.resolveNode(t,n),null===t.range&&(t.range=this._getRangeAt(t.cachedAbsoluteStart,t.cachedAbsoluteEnd)),t.range},t.prototype.getLineDecorations=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=!1),e<1||e>this.getLineCount()?[]:this.getLinesDecorations(e,e,t,n)},t.prototype.getLinesDecorations=function(e,t,n,r){void 0===n&&(n=0),void 0===r&&(r=!1);var i=this.getLineCount(),o=Math.min(i,Math.max(1,e)),s=Math.min(i,Math.max(1,t)),a=this.getLineMaxColumn(s);return this._getDecorationsInRange(new Yr(o,1,s,a),n,r)},t.prototype.getDecorationsInRange=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=!1);var r=this.validateRange(e);return this._getDecorationsInRange(r,t,n)},t.prototype.getOverviewRulerDecorations=function(e,t){void 0===e&&(e=0),void 0===t&&(t=!1);var n=this.getVersionId(),r=this._decorationsTree.search(e,t,!0,n);return this._ensureNodesHaveRanges(r)},t.prototype.getAllDecorations=function(e,t){void 0===e&&(e=0),void 0===t&&(t=!1);var n=this.getVersionId(),r=this._decorationsTree.search(e,t,!1,n);return this._ensureNodesHaveRanges(r)},t.prototype._getDecorationsInRange=function(e,t,n){var r=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn),i=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn),o=this.getVersionId(),s=this._decorationsTree.intervalSearch(r,i,t,n,o);return this._ensureNodesHaveRanges(s)},t.prototype._ensureNodesHaveRanges=function(e){for(var t=0,n=e.length;t<n;t++){var r=e[t];null===r.range&&(r.range=this._getRangeAt(r.cachedAbsoluteStart,r.cachedAbsoluteEnd))}return e},t.prototype._getRangeAt=function(e,t){return this._buffer.getRangeAt(e,t-e)},t.prototype._changeDecorationImpl=function(e,t){var n=this._decorations[e];if(n){var r=this._validateRangeRelaxedNoAllocations(t),i=this._buffer.getOffsetAt(r.startLineNumber,r.startColumn),o=this._buffer.getOffsetAt(r.endLineNumber,r.endColumn);this._decorationsTree.delete(n),n.reset(this.getVersionId(),i,o,r),this._decorationsTree.insert(n)}},t.prototype._changeDecorationOptionsImpl=function(e,t){var n=this._decorations[e];n&&(!(!n.options.overviewRuler||!n.options.overviewRuler.color)!==!(!t.overviewRuler||!t.overviewRuler.color)?(this._decorationsTree.delete(n),n.setOptions(t),this._decorationsTree.insert(n)):n.setOptions(t))},t.prototype._deltaDecorationsImpl=function(e,t,n){for(var r=this.getVersionId(),i=t.length,o=0,s=n.length,a=0,u=new Array(s);o<i||a<s;){var l=null;if(o<i){do{l=this._decorations[t[o++]]}while(!l&&o<i);l&&this._decorationsTree.delete(l)}if(a<s){if(!l){var c=++this._lastDecorationId,d=this._instanceId+";"+c;l=new zi(d,0,0),this._decorations[d]=l}var h=n[a],f=this._validateRangeRelaxedNoAllocations(h.range),p=qu(h.options),g=this._buffer.getOffsetAt(f.startLineNumber,f.startColumn),m=this._buffer.getOffsetAt(f.endLineNumber,f.endColumn);l.ownerId=e,l.reset(r,g,m,f),l.setOptions(p),this._decorationsTree.insert(l),u[a]=l.id,a++}else l&&delete this._decorations[l.id]}return u},t.prototype.setLineTokens=function(e,t){if(e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");this._tokens.setTokens(this._languageIdentifier.id,e-1,this._buffer.getLineLength(e),t)},t.prototype.setTokens=function(e){if(0!==e.length){for(var t=[],n=0,r=e.length;n<r;n++){var i=e[n];t.push({fromLineNumber:i.startLineNumber,toLineNumber:i.startLineNumber+i.tokens.length-1});for(var o=0,s=i.tokens.length;o<s;o++)this.setLineTokens(i.startLineNumber+o,i.tokens[o])}this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,ranges:t})}},t.prototype.tokenizeViewport=function(e,t){e=Math.max(1,e),t=Math.min(this._buffer.getLineCount(),t),this._tokenization.tokenizeViewport(e,t)},t.prototype.clearTokens=function(){this._tokens.flush(),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!0,ranges:[{fromLineNumber:1,toLineNumber:this._buffer.getLineCount()}]})},t.prototype._emitModelTokensChangedEvent=function(e){this._isDisposing||this._onDidChangeTokens.fire(e)},t.prototype.resetTokenization=function(){this._tokenization.reset()},t.prototype.forceTokenization=function(e){if(e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");this._tokenization.forceTokenization(e)},t.prototype.isCheapToTokenize=function(e){return this._tokenization.isCheapToTokenize(e)},t.prototype.tokenizeIfCheap=function(e){this.isCheapToTokenize(e)&&this.forceTokenization(e)},t.prototype.getLineTokens=function(e){if(e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._getLineTokens(e)},t.prototype._getLineTokens=function(e){var t=this.getLineContent(e);return this._tokens.getTokens(this._languageIdentifier.id,e-1,t)},t.prototype.getLanguageIdentifier=function(){return this._languageIdentifier},t.prototype.getModeId=function(){return this._languageIdentifier.language},t.prototype.setMode=function(e){if(this._languageIdentifier.id!==e.id){var t={oldLanguage:this._languageIdentifier.language,newLanguage:e.language};this._languageIdentifier=e,this._onDidChangeLanguage.fire(t),this._onDidChangeLanguageConfiguration.fire({})}},t.prototype.getLanguageIdAtPosition=function(e,t){var n=this.validatePosition(new Lt(e,t)),r=this.getLineTokens(n.lineNumber);return r.getLanguageId(r.findTokenIndexAtOffset(n.column-1))},t.prototype.getWordAtPosition=function(e){this._assertNotDisposed();var n=this.validatePosition(e),r=this.getLineContent(n.lineNumber),i=this._getLineTokens(n.lineNumber),o=i.findTokenIndexAtOffset(n.column-1),s=t._findLanguageBoundaries(i,o),a=s[0],u=s[1],l=ii(n.column,Mu.getWordDefinition(i.getLanguageId(o)),r.substring(a,u),a);if(l&&l.startColumn<=e.column&&e.column<=l.endColumn)return l;if(o>0&&a===n.column-1){var c=t._findLanguageBoundaries(i,o-1),d=c[0],h=c[1],f=ii(n.column,Mu.getWordDefinition(i.getLanguageId(o-1)),r.substring(d,h),d);if(f&&f.startColumn<=e.column&&e.column<=f.endColumn)return f}return null},t._findLanguageBoundaries=function(e,t){for(var n=e.getLanguageId(t),r=0,i=t;i>=0&&e.getLanguageId(i)===n;i--)r=e.getStartOffset(i);for(var o=e.getLineContent().length,s=(i=t,e.getCount());i<s&&e.getLanguageId(i)===n;i++)o=e.getEndOffset(i);return[r,o]},t.prototype.getWordUntilPosition=function(e){var t=this.getWordAtPosition(e);return t?{word:t.word.substr(0,e.column-t.startColumn),startColumn:t.startColumn,endColumn:e.column}:{word:"",startColumn:e.column,endColumn:e.column}},t.prototype.findMatchingBracketUp=function(e,t){var n=e.toLowerCase(),r=this.validatePosition(t),i=this._getLineTokens(r.lineNumber),o=i.getLanguageId(i.findTokenIndexAtOffset(r.column-1)),s=Mu.getBracketsSupport(o);if(!s)return null;var a=s.textIsBracket[n];return a?this._findMatchingBracketUp(a,r):null},t.prototype.matchBracket=function(e){return this._matchBracket(this.validatePosition(e))},t.prototype._matchBracket=function(e){var t=e.lineNumber,n=this._getLineTokens(t),r=this._buffer.getLineContent(t),i=n.findTokenIndexAtOffset(e.column-1);if(i<0)return null;var o=Mu.getBracketsSupport(n.getLanguageId(i));if(o&&!au(n.getStandardTokenType(i))){for(var s=Math.max(n.getStartOffset(i),e.column-1-o.maxBracketLength),a=Math.min(n.getEndOffset(i),e.column-1+o.maxBracketLength),u=null;;){if(!(c=wu.findNextBracketInToken(o.forwardRegex,t,r,s,a)))break;if(c.startColumn<=e.column&&e.column<=c.endColumn)d=(d=r.substring(c.startColumn-1,c.endColumn-1)).toLowerCase(),(h=this._matchFoundBracket(c,o.textIsBracket[d],o.textIsOpenBracket[d]))&&(u=h);s=c.endColumn-1}if(u)return u}if(i>0&&n.getStartOffset(i)===e.column-1){a=n.getStartOffset(i);i--;var l=Mu.getBracketsSupport(n.getLanguageId(i));if(l&&!au(n.getStandardTokenType(i))){var c,d,h;s=Math.max(n.getStartOffset(i),e.column-1-l.maxBracketLength);if((c=wu.findPrevBracketInToken(l.reversedRegex,t,r,s,a))&&c.startColumn<=e.column&&e.column<=c.endColumn)if(d=(d=r.substring(c.startColumn-1,c.endColumn-1)).toLowerCase(),h=this._matchFoundBracket(c,l.textIsBracket[d],l.textIsOpenBracket[d]))return h}}return null},t.prototype._matchFoundBracket=function(e,t,n){if(!t)return null;var r;if(n){if(r=this._findMatchingBracketDown(t,e.getEndPosition()))return[e,r]}else if(r=this._findMatchingBracketUp(t,e.getStartPosition()))return[e,r];return null},t.prototype._findMatchingBracketUp=function(e,t){for(var n=e.languageIdentifier.id,r=e.reversedRegex,i=-1,o=t.lineNumber;o>=1;o--){var s=this._getLineTokens(o),a=s.getCount(),u=this._buffer.getLineContent(o),l=a-1,c=-1;for(o===t.lineNumber&&(l=s.findTokenIndexAtOffset(t.column-1),c=t.column-1);l>=0;l--){var d=s.getLanguageId(l),h=s.getStandardTokenType(l),f=s.getStartOffset(l),p=s.getEndOffset(l);if(-1===c&&(c=p),d===n&&!au(h))for(;;){var g=wu.findPrevBracketInToken(r,o,u,f,c);if(!g)break;var m=u.substring(g.startColumn-1,g.endColumn-1);if((m=m.toLowerCase())===e.open?i++:m===e.close&&i--,0===i)return g;c=g.startColumn-1}c=-1}}return null},t.prototype._findMatchingBracketDown=function(e,t){for(var n=e.languageIdentifier.id,r=e.forwardRegex,i=1,o=t.lineNumber,s=this.getLineCount();o<=s;o++){var a=this._getLineTokens(o),u=a.getCount(),l=this._buffer.getLineContent(o),c=0,d=0;for(o===t.lineNumber&&(c=a.findTokenIndexAtOffset(t.column-1),d=t.column-1);c<u;c++){var h=a.getLanguageId(c),f=a.getStandardTokenType(c),p=a.getStartOffset(c),g=a.getEndOffset(c);if(0===d&&(d=p),h===n&&!au(f))for(;;){var m=wu.findNextBracketInToken(r,o,l,d,g);if(!m)break;var _=l.substring(m.startColumn-1,m.endColumn-1);if((_=_.toLowerCase())===e.open?i++:_===e.close&&i--,0===i)return m;d=m.endColumn-1}d=0}}return null},t.prototype.findPrevBracket=function(e){for(var t=this.validatePosition(e),n=-1,r=null,i=t.lineNumber;i>=1;i--){var o=this._getLineTokens(i),s=o.getCount(),a=this._buffer.getLineContent(i),u=s-1,l=-1;for(i===t.lineNumber&&(u=o.findTokenIndexAtOffset(t.column-1),l=t.column-1);u>=0;u--){var c=o.getLanguageId(u),d=o.getStandardTokenType(u),h=o.getStartOffset(u),f=o.getEndOffset(u);if(-1===l&&(l=f),n!==c&&(n=c,r=Mu.getBracketsSupport(n)),r&&!au(d)){var p=wu.findPrevBracketInToken(r.reversedRegex,i,a,h,l);if(p)return this._toFoundBracket(r,p)}l=-1}}return null},t.prototype.findNextBracket=function(e){for(var t=this.validatePosition(e),n=-1,r=null,i=t.lineNumber,o=this.getLineCount();i<=o;i++){var s=this._getLineTokens(i),a=s.getCount(),u=this._buffer.getLineContent(i),l=0,c=0;for(i===t.lineNumber&&(l=s.findTokenIndexAtOffset(t.column-1),c=t.column-1);l<a;l++){var d=s.getLanguageId(l),h=s.getStandardTokenType(l),f=s.getStartOffset(l),p=s.getEndOffset(l);if(0===c&&(c=f),n!==d&&(n=d,r=Mu.getBracketsSupport(n)),r&&!au(h)){var g=wu.findNextBracketInToken(r.forwardRegex,i,u,c,p);if(g)return this._toFoundBracket(r,g)}c=0}}return null},t.prototype._toFoundBracket=function(e,t){if(!t)return null;var n=this.getValueInRange(t);n=n.toLowerCase();var r=e.textIsBracket[n];return r?{range:t,open:r.open,close:r.close,isOpen:e.textIsOpenBracket[n]}:null},t.computeIndentLevel=function(e,t){for(var n=0,r=0,i=e.length;r<i;){var o=e.charCodeAt(r);if(32===o)n++;else{if(9!==o)break;n=n-n%t+t}r++}return r===i?-1:n},t.prototype._computeIndentLevel=function(e){return t.computeIndentLevel(this._buffer.getLineContent(e+1),this._options.tabSize)},t.prototype.getActiveIndentGuide=function(e,t,n){var r=this;this._assertNotDisposed();var i=this.getLineCount();if(e<1||e>i)throw new Error("Illegal value for lineNumber");for(var o=Mu.getFoldingRules(this._languageIdentifier.id),s=Boolean(o&&o.offSide),a=-2,u=-1,l=-2,c=-1,d=function(e){if(-1!==a&&(-2===a||a>e-1)){a=-1,u=-1;for(var t=e-2;t>=0;t--){var n=r._computeIndentLevel(t);if(n>=0){a=t,u=n;break}}}if(-2===l){l=-1,c=-1;for(t=e;t<i;t++){var o=r._computeIndentLevel(t);if(o>=0){l=t,c=o;break}}}},h=-2,f=-1,p=-2,g=-1,m=function(e){if(-2===h){h=-1,f=-1;for(var t=e-2;t>=0;t--){var n=r._computeIndentLevel(t);if(n>=0){h=t,f=n;break}}}if(-1!==p&&(-2===p||p<e-1)){p=-1,g=-1;for(t=e;t<i;t++){var o=r._computeIndentLevel(t);if(o>=0){p=t,g=o;break}}}},_=0,y=!0,v=0,b=!0,w=0,C=0;y||b;C++){var S=e-C,x=e+C;if(0!==C&&(S<1||S<t)&&(y=!1),0!==C&&(x>i||x>n)&&(b=!1),C>5e4&&(y=!1,b=!1),y){var L=void 0;if((k=this._computeIndentLevel(S-1))>=0?(l=S-1,c=k,L=Math.ceil(k/this._options.indentSize)):(d(S),L=this._getIndentLevelForWhitespaceLine(s,u,c)),0===C){if(_=S,v=x,0===(w=L))return{startLineNumber:_,endLineNumber:v,indent:w};continue}L>=w?_=S:y=!1}if(b){var k,M=void 0;(k=this._computeIndentLevel(x-1))>=0?(h=x-1,f=k,M=Math.ceil(k/this._options.indentSize)):(m(x),M=this._getIndentLevelForWhitespaceLine(s,f,g)),M>=w?v=x:b=!1}}return{startLineNumber:_,endLineNumber:v,indent:w}},t.prototype.getLinesIndentGuides=function(e,t){this._assertNotDisposed();var n=this.getLineCount();if(e<1||e>n)throw new Error("Illegal value for startLineNumber");if(t<1||t>n)throw new Error("Illegal value for endLineNumber");for(var r=Mu.getFoldingRules(this._languageIdentifier.id),i=Boolean(r&&r.offSide),o=new Array(t-e+1),s=-2,a=-1,u=-2,l=-1,c=e;c<=t;c++){var d=c-e,h=this._computeIndentLevel(c-1);if(h>=0)s=c-1,a=h,o[d]=Math.ceil(h/this._options.indentSize);else{if(-2===s){s=-1,a=-1;for(var f=c-2;f>=0;f--){if((p=this._computeIndentLevel(f))>=0){s=f,a=p;break}}}if(-1!==u&&(-2===u||u<c-1)){u=-1,l=-1;for(f=c;f<n;f++){var p;if((p=this._computeIndentLevel(f))>=0){u=f,l=p;break}}}o[d]=this._getIndentLevelForWhitespaceLine(i,a,l)}}return o},t.prototype._getIndentLevelForWhitespaceLine=function(e,t,n){return-1===t||-1===n?0:t<n?1+Math.floor(t/this._options.indentSize):t===n?Math.ceil(n/this._options.indentSize):e?Math.ceil(n/this._options.indentSize):1+Math.floor(n/this._options.indentSize)},t.MODEL_SYNC_LIMIT=52428800,t.LARGE_FILE_SIZE_THRESHOLD=20971520,t.LARGE_FILE_LINE_COUNT_THRESHOLD=3e5,t.DEFAULT_CREATION_OPTIONS={isForSimpleWidget:!1,tabSize:Ci.tabSize,indentSize:Ci.indentSize,insertSpaces:Ci.insertSpaces,detectIndentation:!1,defaultEOL:1,trimAutoWhitespace:Ci.trimAutoWhitespace,largeFileOptimizations:Ci.largeFileOptimizations},t}(Ft),ju=function(){function e(){this._decorationsTree0=new qi,this._decorationsTree1=new qi}return e.prototype.intervalSearch=function(e,t,n,r,i){var o=this._decorationsTree0.intervalSearch(e,t,n,r,i),s=this._decorationsTree1.intervalSearch(e,t,n,r,i);return o.concat(s)},e.prototype.search=function(e,t,n,r){if(n)return this._decorationsTree1.search(e,t,r);var i=this._decorationsTree0.search(e,t,r),o=this._decorationsTree1.search(e,t,r);return i.concat(o)},e.prototype.collectNodesFromOwner=function(e){var t=this._decorationsTree0.collectNodesFromOwner(e),n=this._decorationsTree1.collectNodesFromOwner(e);return t.concat(n)},e.prototype.collectNodesPostOrder=function(){var e=this._decorationsTree0.collectNodesPostOrder(),t=this._decorationsTree1.collectNodesPostOrder();return e.concat(t)},e.prototype.insert=function(e){Bi(e)?this._decorationsTree1.insert(e):this._decorationsTree0.insert(e)},e.prototype.delete=function(e){Bi(e)?this._decorationsTree1.delete(e):this._decorationsTree0.delete(e)},e.prototype.resolveNode=function(e,t){Bi(e)?this._decorationsTree1.resolveNode(e,t):this._decorationsTree0.resolveNode(e,t)},e.prototype.acceptReplace=function(e,t,n,r){this._decorationsTree0.acceptReplace(e,t,n,r),this._decorationsTree1.acceptReplace(e,t,n,r)},e}();function Bu(e){return e.replace(/[^a-z0-9\-_]/gi," ")}var Wu=function(e){this.color=e.color||on,this.darkColor=e.darkColor||on},Hu=function(e){function t(t){var n=e.call(this,t)||this;return n._resolvedColor=null,n.position="number"==typeof t.position?t.position:mi.Center,n}return Au(t,e),t.prototype.getColor=function(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor},t.prototype.invalidateCachedColor=function(){this._resolvedColor=null},t.prototype._resolveColor=function(e,t){if("string"==typeof e)return e;var n=e?t.getColor(e.id):null;return n?n.toString():on},t}(Wu),Vu=function(e){function t(t){var n=e.call(this,t)||this;return n.position=t.position,n}return Au(t,e),t.prototype.getColor=function(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor},t.prototype.invalidateCachedColor=function(){this._resolvedColor=void 0},t.prototype._resolveColor=function(e,t){return"string"==typeof e?Ou.fromHex(e):t.getColor(e.id)},t}(Wu),zu=function(){function e(e){this.stickiness=e.stickiness||0,this.zIndex=e.zIndex||0,this.className=e.className?Bu(e.className):null,this.hoverMessage=Ue(e.hoverMessage),this.glyphMarginHoverMessage=Ue(e.glyphMarginHoverMessage),this.isWholeLine=e.isWholeLine||!1,this.showIfCollapsed=e.showIfCollapsed||!1,this.collapseOnReplaceEdit=e.collapseOnReplaceEdit||!1,this.overviewRuler=e.overviewRuler?new Hu(e.overviewRuler):null,this.minimap=e.minimap?new Vu(e.minimap):null,this.glyphMarginClassName=e.glyphMarginClassName?Bu(e.glyphMarginClassName):null,this.linesDecorationsClassName=e.linesDecorationsClassName?Bu(e.linesDecorationsClassName):null,this.marginClassName=e.marginClassName?Bu(e.marginClassName):null,this.inlineClassName=e.inlineClassName?Bu(e.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=e.beforeContentClassName?Bu(e.beforeContentClassName):null,this.afterContentClassName=e.afterContentClassName?Bu(e.afterContentClassName):null}return e.register=function(t){return new e(t)},e.createDynamic=function(t){return new e(t)},e}();zu.EMPTY=zu.register({});var Uu=[zu.register({stickiness:0}),zu.register({stickiness:1}),zu.register({stickiness:2}),zu.register({stickiness:3})];function qu(e){return e instanceof zu?e:zu.createDynamic(e)}var Ku=function(e){function t(){var t=e.call(this)||this;return t._actual=t._register(new $t),t.event=t._actual.event,t._deferredCnt=0,t._shouldFire=!1,t}return Au(t,e),t.prototype.beginDeferredEmit=function(){this._deferredCnt++},t.prototype.endDeferredEmit=function(){this._deferredCnt--,0===this._deferredCnt&&this._shouldFire&&(this._shouldFire=!1,this._actual.fire({}))},t.prototype.fire=function(){this._shouldFire=!0},t}(Ft),Gu=function(e){function t(){var t=e.call(this)||this;return t._fastEmitter=t._register(new $t),t.fastEvent=t._fastEmitter.event,t._slowEmitter=t._register(new $t),t.slowEvent=t._slowEmitter.event,t._deferredCnt=0,t._deferredEvent=null,t}return Au(t,e),t.prototype.beginDeferredEmit=function(){this._deferredCnt++},t.prototype.endDeferredEmit=function(){if(this._deferredCnt--,0===this._deferredCnt&&null!==this._deferredEvent){var e=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(e),this._slowEmitter.fire(e)}},t.prototype.fire=function(e){this._deferredCnt>0?this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(e):this._deferredEvent=e:(this._fastEmitter.fire(e),this._slowEmitter.fire(e))},t}(Ft),$u=function(){return!0},Zu=function(){return!1},Xu=function(e){return" "===e||"\t"===e};function Ju(e,t,n){e.has(t)?e.get(t).push(n):e.set(t,[n])}var Qu=function(){function e(t,n,r){this._languageIdentifier=t;var i=r.editor;this.readOnly=i.readOnly,this.tabSize=n.tabSize,this.indentSize=n.indentSize,this.insertSpaces=n.insertSpaces,this.pageSize=Math.max(1,Math.floor(i.layoutInfo.height/i.fontInfo.lineHeight)-2),this.lineHeight=i.lineHeight,this.useTabStops=i.useTabStops,this.wordSeparators=i.wordSeparators,this.emptySelectionClipboard=i.emptySelectionClipboard,this.copyWithSyntaxHighlighting=i.copyWithSyntaxHighlighting,this.multiCursorMergeOverlapping=i.multiCursorMergeOverlapping,this.autoClosingBrackets=i.autoClosingBrackets,this.autoClosingQuotes=i.autoClosingQuotes,this.autoClosingOvertype=i.autoClosingOvertype,this.autoSurround=i.autoSurround,this.autoIndent=i.autoIndent,this.autoClosingPairsOpen2=new Map,this.autoClosingPairsClose2=new Map,this.surroundingPairs={},this._electricChars=null,this.shouldAutoCloseBefore={quote:e._getShouldAutoClose(t,this.autoClosingQuotes),bracket:e._getShouldAutoClose(t,this.autoClosingBrackets)};var o=e._getAutoClosingPairs(t);if(o)for(var s=0,a=o;s<a.length;s++){var u=a[s];Ju(this.autoClosingPairsOpen2,u.open.charAt(u.open.length-1),u),1===u.close.length&&Ju(this.autoClosingPairsClose2,u.close,u)}var l=e._getSurroundingPairs(t);if(l)for(var c=0,d=l;c<d.length;c++){u=d[c];this.surroundingPairs[u.open]=u.close}}return e.shouldRecreate=function(e){return e.layoutInfo||e.wordSeparators||e.emptySelectionClipboard||e.multiCursorMergeOverlapping||e.autoClosingBrackets||e.autoClosingQuotes||e.autoClosingOvertype||e.autoSurround||e.useTabStops||e.lineHeight||e.readOnly},Object.defineProperty(e.prototype,"electricChars",{get:function(){if(!this._electricChars){this._electricChars={};var t=e._getElectricCharacters(this._languageIdentifier);if(t)for(var n=0,r=t;n<r.length;n++){var i=r[n];this._electricChars[i]=!0}}return this._electricChars},enumerable:!0,configurable:!0}),e.prototype.normalizeIndentation=function(e){return Yu.normalizeIndentation(e,this.indentSize,this.insertSpaces)},e._getElectricCharacters=function(e){try{return Mu.getElectricCharacters(e.id)}catch(e){return Ke(e),null}},e._getAutoClosingPairs=function(e){try{return Mu.getAutoClosingPairs(e.id)}catch(e){return Ke(e),null}},e._getShouldAutoClose=function(t,n){switch(n){case"beforeWhitespace":return Xu;case"languageDefined":return e._getLanguageDefinedShouldAutoClose(t);case"always":return $u;case"never":return Zu}},e._getLanguageDefinedShouldAutoClose=function(e){try{var t=Mu.getAutoCloseBeforeSet(e.id);return function(e){return-1!==t.indexOf(e)}}catch(e){return Ke(e),Zu}},e._getSurroundingPairs=function(e){try{return Mu.getSurroundingPairs(e.id)}catch(e){return Ke(e),null}},e}(),el=function(){function e(t,n,r,i){this.selectionStart=t,this.selectionStartLeftoverVisibleColumns=n,this.position=r,this.leftoverVisibleColumns=i,this.selection=e._computeSelection(this.selectionStart,this.position)}return e.prototype.equals=function(e){return this.selectionStartLeftoverVisibleColumns===e.selectionStartLeftoverVisibleColumns&&this.leftoverVisibleColumns===e.leftoverVisibleColumns&&this.position.equals(e.position)&&this.selectionStart.equalsRange(e.selectionStart)},e.prototype.hasSelection=function(){return!this.selection.isEmpty()||!this.selectionStart.isEmpty()},e.prototype.move=function(t,n,r,i){return t?new e(this.selectionStart,this.selectionStartLeftoverVisibleColumns,new Lt(n,r),i):new e(new Yr(n,r,n,r),i,new Lt(n,r),i)},e._computeSelection=function(e,t){var n,r,i,o;return e.isEmpty()?(n=e.startLineNumber,r=e.startColumn,i=t.lineNumber,o=t.column):t.isBeforeOrEqual(e.getStartPosition())?(n=e.endLineNumber,r=e.endColumn,i=t.lineNumber,o=t.column):(n=e.startLineNumber,r=e.startColumn,i=t.lineNumber,o=t.column),new Br(n,r,i,o)},e}(),tl=function(){function e(e,t,n){this.model=t,this.viewModel=n,this.config=new Qu(this.model.getLanguageIdentifier(),this.model.getOptions(),e)}return e.prototype.validateViewPosition=function(e,t){return this.viewModel.coordinatesConverter.validateViewPosition(e,t)},e.prototype.validateViewRange=function(e,t){return this.viewModel.coordinatesConverter.validateViewRange(e,t)},e.prototype.convertViewRangeToModelRange=function(e){return this.viewModel.coordinatesConverter.convertViewRangeToModelRange(e)},e.prototype.convertViewPositionToModelPosition=function(e,t){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new Lt(e,t))},e.prototype.convertModelPositionToViewPosition=function(e){return this.viewModel.coordinatesConverter.convertModelPositionToViewPosition(e)},e.prototype.convertModelRangeToViewRange=function(e){return this.viewModel.coordinatesConverter.convertModelRangeToViewRange(e)},e.prototype.getCurrentScrollTop=function(){return this.viewModel.viewLayout.getCurrentScrollTop()},e.prototype.getCompletelyVisibleViewRange=function(){return this.viewModel.getCompletelyVisibleViewRange()},e.prototype.getCompletelyVisibleModelRange=function(){var e=this.viewModel.getCompletelyVisibleViewRange();return this.viewModel.coordinatesConverter.convertViewRangeToModelRange(e)},e.prototype.getCompletelyVisibleViewRangeAtScrollTop=function(e){return this.viewModel.getCompletelyVisibleViewRangeAtScrollTop(e)},e.prototype.getVerticalOffsetForViewLine=function(e){return this.viewModel.viewLayout.getVerticalOffsetForLineNumber(e)},e}(),nl=function(e){this.modelState=e,this.viewState=null},rl=function(e){this.modelState=null,this.viewState=e},il=function(){function e(e,t){this.modelState=e,this.viewState=t}return e.fromModelState=function(e){return new nl(e)},e.fromViewState=function(e){return new rl(e)},e.fromModelSelection=function(t){var n=t.selectionStartLineNumber,r=t.selectionStartColumn,i=t.positionLineNumber,o=t.positionColumn,s=new el(new Yr(n,r,n,r),0,new Lt(i,o),0);return e.fromModelState(s)},e.fromModelSelections=function(e){for(var t=[],n=0,r=e.length;n<r;n++)t[n]=this.fromModelSelection(e[n]);return t},e.prototype.equals=function(e){return this.viewState.equals(e.viewState)&&this.modelState.equals(e.modelState)},e}(),ol=function(e,t,n){this.type=e,this.commands=t,this.shouldPushStackElementBefore=n.shouldPushStackElementBefore,this.shouldPushStackElementAfter=n.shouldPushStackElementAfter},sl=function(){function e(){}return e.isLowSurrogate=function(e,t,n){var r=e.getLineContent(t);return!(n<0||n>=r.length)&&Ln(r.charCodeAt(n))},e.isHighSurrogate=function(e,t,n){var r=e.getLineContent(t);return!(n<0||n>=r.length)&&xn(r.charCodeAt(n))},e.isInsideSurrogatePair=function(e,t,n){return this.isHighSurrogate(e,t,n-2)},e.visibleColumnFromColumn=function(e,t,n){var r=e.length;r>t-1&&(r=t-1);for(var i=0,o=0;o<r;o++){var s=e.charCodeAt(o);9===s?i=this.nextRenderTabStop(i,n):Nn(s)?i+=2:i+=1}return i},e.visibleColumnFromColumn2=function(e,t,n){return this.visibleColumnFromColumn(t.getLineContent(n.lineNumber),n.column,e.tabSize)},e.columnFromVisibleColumn=function(e,t,n){if(t<=0)return 1;for(var r=e.length,i=0,o=0;o<r;o++){var s=e.charCodeAt(o),a=void 0;if((a=9===s?this.nextRenderTabStop(i,n):Nn(s)?i+2:i+1)>=t)return a-t<t-i?o+2:o+1;i=a}return r+1},e.columnFromVisibleColumn2=function(e,t,n,r){var i=this.columnFromVisibleColumn(t.getLineContent(n),r,e.tabSize),o=t.getLineMinColumn(n);if(i<o)return o;var s=t.getLineMaxColumn(n);return i>s?s:i},e.nextRenderTabStop=function(e,t){return e+t-e%t},e.nextIndentTabStop=function(e,t){return e+t-e%t},e.prevRenderTabStop=function(e,t){return e-1-(e-1)%t},e.prevIndentTabStop=function(e,t){return e-1-(e-1)%t},e}();function al(e){return"'"===e||'"'===e||"`"===e}var ul=function(){function e(){}return e.columnSelect=function(e,t,n,r,i,o){for(var s=Math.abs(i-n)+1,a=n>i,u=r>o,l=r<o,c=[],d=0;d<s;d++){var h=n+(a?-d:d),f=sl.columnFromVisibleColumn2(e,t,h,r),p=sl.columnFromVisibleColumn2(e,t,h,o),g=sl.visibleColumnFromColumn2(e,t,new Lt(h,f)),m=sl.visibleColumnFromColumn2(e,t,new Lt(h,p));if(l){if(g>o)continue;if(m<r)continue}if(u){if(m>r)continue;if(g<o)continue}c.push(new el(new Yr(h,f,h,f),0,new Lt(h,p),0))}if(0===c.length)for(d=0;d<s;d++){h=n+(a?-d:d);var _=t.getLineMaxColumn(h);c.push(new el(new Yr(h,_,h,_),0,new Lt(h,_),0))}return{viewStates:c,reversed:a,fromLineNumber:n,fromVisualColumn:r,toLineNumber:i,toVisualColumn:o}},e.columnSelectLeft=function(t,n,r){var i=r.toViewVisualColumn;return i>1&&i--,e.columnSelect(t,n,r.fromViewLineNumber,r.fromViewVisualColumn,r.toViewLineNumber,i)},e.columnSelectRight=function(e,t,n){for(var r=0,i=Math.min(n.fromViewLineNumber,n.toViewLineNumber),o=Math.max(n.fromViewLineNumber,n.toViewLineNumber),s=i;s<=o;s++){var a=t.getLineMaxColumn(s),u=sl.visibleColumnFromColumn2(e,t,new Lt(s,a));r=Math.max(r,u)}var l=n.toViewVisualColumn;return l<r&&l++,this.columnSelect(e,t,n.fromViewLineNumber,n.fromViewVisualColumn,n.toViewLineNumber,l)},e.columnSelectUp=function(e,t,n,r){var i=r?e.pageSize:1,o=Math.max(1,n.toViewLineNumber-i);return this.columnSelect(e,t,n.fromViewLineNumber,n.fromViewVisualColumn,o,n.toViewVisualColumn)},e.columnSelectDown=function(e,t,n,r){var i=r?e.pageSize:1,o=Math.min(t.getLineCount(),n.toViewLineNumber+i);return this.columnSelect(e,t,n.fromViewLineNumber,n.fromViewVisualColumn,o,n.toViewVisualColumn)},e}(),ll=function(){function e(e,t,n){void 0===n&&(n=!1),this._range=e,this._text=t,this.insertsAutoWhitespace=n}return e.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(this._range,this._text)},e.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations()[0].range;return new Br(n.endLineNumber,n.endColumn,n.endLineNumber,n.endColumn)},e}(),cl=function(){function e(e,t,n){void 0===n&&(n=!1),this._range=e,this._text=t,this.insertsAutoWhitespace=n}return e.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(this._range,this._text)},e.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations()[0].range;return new Br(n.startLineNumber,n.startColumn,n.startLineNumber,n.startColumn)},e}(),dl=function(){function e(e,t,n,r,i){void 0===i&&(i=!1),this._range=e,this._text=t,this._columnDeltaOffset=r,this._lineNumberDeltaOffset=n,this.insertsAutoWhitespace=i}return e.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(this._range,this._text)},e.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations()[0].range;return new Br(n.endLineNumber+this._lineNumberDeltaOffset,n.endColumn+this._columnDeltaOffset,n.endLineNumber+this._lineNumberDeltaOffset,n.endColumn+this._columnDeltaOffset)},e}(),hl=function(){function e(e,t,n){this._range=e,this._text=t,this._initialSelection=n,this._selectionId=null}return e.prototype.getEditOperations=function(e,t){t.addEditOperation(this._range,this._text),this._selectionId=t.trackSelection(this._initialSelection)},e.prototype.computeCursorState=function(e,t){return t.getTrackedSelection(this._selectionId)},e}(),fl=function(e,t,n){this.lineNumber=e,this.column=t,this.leftoverVisibleColumns=n},pl=function(){function e(){}return e.left=function(e,t,n,r){return r>t.getLineMinColumn(n)?sl.isLowSurrogate(t,n,r-2)?r-=2:r-=1:n>1&&(n-=1,r=t.getLineMaxColumn(n)),new fl(n,r,0)},e.moveLeft=function(t,n,r,i,o){var s,a;if(r.hasSelection()&&!i)s=r.selection.startLineNumber,a=r.selection.startColumn;else{var u=e.left(t,n,r.position.lineNumber,r.position.column-(o-1));s=u.lineNumber,a=u.column}return r.move(i,s,a,0)},e.right=function(e,t,n,r){return r<t.getLineMaxColumn(n)?sl.isHighSurrogate(t,n,r-1)?r+=2:r+=1:n<t.getLineCount()&&(n+=1,r=t.getLineMinColumn(n)),new fl(n,r,0)},e.moveRight=function(t,n,r,i,o){var s,a;if(r.hasSelection()&&!i)s=r.selection.endLineNumber,a=r.selection.endColumn;else{var u=e.right(t,n,r.position.lineNumber,r.position.column+(o-1));s=u.lineNumber,a=u.column}return r.move(i,s,a,0)},e.down=function(e,t,n,r,i,o,s){var a=sl.visibleColumnFromColumn(t.getLineContent(n),r,e.tabSize)+i;n+=o;var u=t.getLineCount();return n>u?(n=u,s?r=t.getLineMaxColumn(n):(r=Math.min(t.getLineMaxColumn(n),r),sl.isInsideSurrogatePair(t,n,r)&&(r-=1))):(r=sl.columnFromVisibleColumn2(e,t,n,a),sl.isInsideSurrogatePair(t,n,r)&&(r-=1)),i=a-sl.visibleColumnFromColumn(t.getLineContent(n),r,e.tabSize),new fl(n,r,i)},e.moveDown=function(t,n,r,i,o){var s,a;r.hasSelection()&&!i?(s=r.selection.endLineNumber,a=r.selection.endColumn):(s=r.position.lineNumber,a=r.position.column);var u=e.down(t,n,s,a,r.leftoverVisibleColumns,o,!0);return r.move(i,u.lineNumber,u.column,u.leftoverVisibleColumns)},e.translateDown=function(t,n,r){var i=r.selection,o=e.down(t,n,i.selectionStartLineNumber,i.selectionStartColumn,r.selectionStartLeftoverVisibleColumns,1,!1),s=e.down(t,n,i.positionLineNumber,i.positionColumn,r.leftoverVisibleColumns,1,!1);return new el(new Yr(o.lineNumber,o.column,o.lineNumber,o.column),o.leftoverVisibleColumns,new Lt(s.lineNumber,s.column),s.leftoverVisibleColumns)},e.up=function(e,t,n,r,i,o,s){var a=sl.visibleColumnFromColumn(t.getLineContent(n),r,e.tabSize)+i;return(n-=o)<1?(n=1,s?r=t.getLineMinColumn(n):(r=Math.min(t.getLineMaxColumn(n),r),sl.isInsideSurrogatePair(t,n,r)&&(r-=1))):(r=sl.columnFromVisibleColumn2(e,t,n,a),sl.isInsideSurrogatePair(t,n,r)&&(r-=1)),i=a-sl.visibleColumnFromColumn(t.getLineContent(n),r,e.tabSize),new fl(n,r,i)},e.moveUp=function(t,n,r,i,o){var s,a;r.hasSelection()&&!i?(s=r.selection.startLineNumber,a=r.selection.startColumn):(s=r.position.lineNumber,a=r.position.column);var u=e.up(t,n,s,a,r.leftoverVisibleColumns,o,!0);return r.move(i,u.lineNumber,u.column,u.leftoverVisibleColumns)},e.translateUp=function(t,n,r){var i=r.selection,o=e.up(t,n,i.selectionStartLineNumber,i.selectionStartColumn,r.selectionStartLeftoverVisibleColumns,1,!1),s=e.up(t,n,i.positionLineNumber,i.positionColumn,r.leftoverVisibleColumns,1,!1);return new el(new Yr(o.lineNumber,o.column,o.lineNumber,o.column),o.leftoverVisibleColumns,new Lt(s.lineNumber,s.column),s.leftoverVisibleColumns)},e.moveToBeginningOfLine=function(e,t,n,r){var i,o=n.position.lineNumber,s=t.getLineMinColumn(o),a=t.getLineFirstNonWhitespaceColumn(o)||s;return i=n.position.column===a?s:a,n.move(r,o,i,0)},e.moveToEndOfLine=function(e,t,n,r){var i=n.position.lineNumber,o=t.getLineMaxColumn(i);return n.move(r,i,o,0)},e.moveToBeginningOfBuffer=function(e,t,n,r){return n.move(r,1,1,0)},e.moveToEndOfBuffer=function(e,t,n,r){var i=t.getLineCount(),o=t.getLineMaxColumn(i);return n.move(r,i,o,0)},e}(),gl=function(){function e(){}return e.deleteRight=function(e,t,n,r){for(var i=[],o=3!==e,s=0,a=r.length;s<a;s++){var u=r[s],l=u;if(l.isEmpty()){var c=u.getPosition(),d=pl.right(t,n,c.lineNumber,c.column);l=new Yr(d.lineNumber,d.column,c.lineNumber,c.column)}l.isEmpty()?i[s]=null:(l.startLineNumber!==l.endLineNumber&&(o=!0),i[s]=new ll(l,""))}return[o,i]},e._isAutoClosingPairDelete=function(e,t,n){if("never"===e.autoClosingBrackets&&"never"===e.autoClosingQuotes)return!1;for(var r=0,i=n.length;r<i;r++){var o=n[r],s=o.getPosition();if(!o.isEmpty())return!1;var a=t.getLineContent(s.lineNumber),u=a[s.column-2],l=e.autoClosingPairsOpen2.get(u);if(!l)return!1;if(al(u)){if("never"===e.autoClosingQuotes)return!1}else if("never"===e.autoClosingBrackets)return!1;for(var c=a[s.column-1],d=!1,h=0,f=l;h<f.length;h++){var p=f[h];p.open===u&&p.close===c&&(d=!0)}if(!d)return!1}return!0},e._runAutoClosingPairDelete=function(e,t,n){for(var r=[],i=0,o=n.length;i<o;i++){var s=n[i].getPosition(),a=new Yr(s.lineNumber,s.column-1,s.lineNumber,s.column+1);r[i]=new ll(a,"")}return[!0,r]},e.deleteLeft=function(e,t,n,r){if(this._isAutoClosingPairDelete(t,n,r))return this._runAutoClosingPairDelete(t,n,r);for(var i=[],o=2!==e,s=0,a=r.length;s<a;s++){var u=r[s],l=u;if(l.isEmpty()){var c=u.getPosition();if(t.useTabStops&&c.column>1){var d=n.getLineContent(c.lineNumber),h=gn(d),f=-1===h?d.length+1:h+1;if(c.column<=f){var p=sl.visibleColumnFromColumn2(t,n,c),g=sl.prevIndentTabStop(p,t.indentSize),m=sl.columnFromVisibleColumn2(t,n,c.lineNumber,g);l=new Yr(c.lineNumber,m,c.lineNumber,c.column)}else l=new Yr(c.lineNumber,c.column-1,c.lineNumber,c.column)}else{var _=pl.left(t,n,c.lineNumber,c.column);l=new Yr(_.lineNumber,_.column,c.lineNumber,c.column)}}l.isEmpty()?i[s]=null:(l.startLineNumber!==l.endLineNumber&&(o=!0),i[s]=new ll(l,""))}return[o,i]},e.cut=function(e,t,n){for(var r=[],i=0,o=n.length;i<o;i++){var s=n[i];if(s.isEmpty())if(e.emptySelectionClipboard){var a=s.getPosition(),u=void 0,l=void 0,c=void 0,d=void 0;a.lineNumber<t.getLineCount()?(u=a.lineNumber,l=1,c=a.lineNumber+1,d=1):a.lineNumber>1?(u=a.lineNumber-1,l=t.getLineMaxColumn(a.lineNumber-1),c=a.lineNumber,d=t.getLineMaxColumn(a.lineNumber)):(u=a.lineNumber,l=1,c=a.lineNumber,d=t.getLineMaxColumn(a.lineNumber));var h=new Yr(u,l,c,d);h.isEmpty()?r[i]=null:r[i]=new ll(h,"")}else r[i]=null;else r[i]=new ll(s,"")}return new ol(0,r,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},e}(),ml=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_l=function(){function e(){}return e._createWord=function(e,t,n,r,i){return{start:r,end:i,wordType:t,nextCharClass:n}},e._findPreviousWordOnLine=function(e,t,n){var r=t.getLineContent(n.lineNumber);return this._doFindPreviousWordOnLine(r,e,n)},e._doFindPreviousWordOnLine=function(e,t,n){for(var r=0,i=n.column-2;i>=0;i--){var o=e.charCodeAt(i),s=t.get(o);if(0===s){if(2===r)return this._createWord(e,r,s,i+1,this._findEndOfWord(e,t,r,i+1));r=1}else if(2===s){if(1===r)return this._createWord(e,r,s,i+1,this._findEndOfWord(e,t,r,i+1));r=2}else if(1===s&&0!==r)return this._createWord(e,r,s,i+1,this._findEndOfWord(e,t,r,i+1))}return 0!==r?this._createWord(e,r,1,0,this._findEndOfWord(e,t,r,0)):null},e._findEndOfWord=function(e,t,n,r){for(var i=e.length,o=r;o<i;o++){var s=e.charCodeAt(o),a=t.get(s);if(1===a)return o;if(1===n&&2===a)return o;if(2===n&&0===a)return o}return i},e._findNextWordOnLine=function(e,t,n){var r=t.getLineContent(n.lineNumber);return this._doFindNextWordOnLine(r,e,n)},e._doFindNextWordOnLine=function(e,t,n){for(var r=0,i=e.length,o=n.column-1;o<i;o++){var s=e.charCodeAt(o),a=t.get(s);if(0===a){if(2===r)return this._createWord(e,r,a,this._findStartOfWord(e,t,r,o-1),o);r=1}else if(2===a){if(1===r)return this._createWord(e,r,a,this._findStartOfWord(e,t,r,o-1),o);r=2}else if(1===a&&0!==r)return this._createWord(e,r,a,this._findStartOfWord(e,t,r,o-1),o)}return 0!==r?this._createWord(e,r,1,this._findStartOfWord(e,t,r,i-1),i):null},e._findStartOfWord=function(e,t,n,r){for(var i=r;i>=0;i--){var o=e.charCodeAt(i),s=t.get(o);if(1===s)return i+1;if(1===n&&2===s)return i+1;if(2===n&&0===s)return i+1}return 0},e.moveWordLeft=function(t,n,r,i){var o=r.lineNumber,s=r.column,a=!1;1===s&&o>1&&(a=!0,o-=1,s=n.getLineMaxColumn(o));var u=e._findPreviousWordOnLine(t,n,new Lt(o,s));if(0===i){if(u&&!a)if(n.getLineLastNonWhitespaceColumn(o)<s)return new Lt(o,u.end+1);return new Lt(o,u?u.start+1:1)}if(1===i)return u&&2===u.wordType&&u.end-u.start==1&&0===u.nextCharClass&&(u=e._findPreviousWordOnLine(t,n,new Lt(o,u.start+1))),new Lt(o,u?u.start+1:1);if(3===i){for(;u&&2===u.wordType;)u=e._findPreviousWordOnLine(t,n,new Lt(o,u.start+1));return new Lt(o,u?u.start+1:1)}return u&&s<=u.end+1&&(u=e._findPreviousWordOnLine(t,n,new Lt(o,u.start+1))),new Lt(o,u?u.end+1:1)},e._moveWordPartLeft=function(e,t){var n=t.lineNumber,r=e.getLineMaxColumn(n);if(1===t.column)return n>1?new Lt(n-1,e.getLineMaxColumn(n-1)):t;for(var i=e.getLineContent(n),o=t.column-1;o>1;o--){var s=i.charCodeAt(o-2),a=i.charCodeAt(o-1);if(95!==s&&95===a)return new Lt(n,o);if(yn(s)&&vn(a))return new Lt(n,o);if(vn(s)&&vn(a))if(o+1<r)if(yn(i.charCodeAt(o)))return new Lt(n,o)}return new Lt(n,1)},e.moveWordRight=function(t,n,r,i){var o=r.lineNumber,s=r.column,a=!1;s===n.getLineMaxColumn(o)&&o<n.getLineCount()&&(a=!0,o+=1,s=1);var u=e._findNextWordOnLine(t,n,new Lt(o,s));if(2===i)u&&2===u.wordType&&u.end-u.start==1&&0===u.nextCharClass&&(u=e._findNextWordOnLine(t,n,new Lt(o,u.end+1))),s=u?u.end+1:n.getLineMaxColumn(o);else if(3===i){for(;u&&2===u.wordType;)u=e._findNextWordOnLine(t,n,new Lt(o,u.end+1));s=u?u.end+1:n.getLineMaxColumn(o)}else u&&!a&&s>=u.start+1&&(u=e._findNextWordOnLine(t,n,new Lt(o,u.end+1))),s=u?u.start+1:n.getLineMaxColumn(o);return new Lt(o,s)},e._moveWordPartRight=function(e,t){var n=t.lineNumber,r=e.getLineMaxColumn(n);if(t.column===r)return n<e.getLineCount()?new Lt(n+1,1):t;for(var i=e.getLineContent(n),o=t.column+1;o<r;o++){var s=i.charCodeAt(o-2),a=i.charCodeAt(o-1);if(95===s&&95!==a)return new Lt(n,o);if(yn(s)&&vn(a))return new Lt(n,o);if(vn(s)&&vn(a))if(o+1<r)if(yn(i.charCodeAt(o)))return new Lt(n,o)}return new Lt(n,r)},e._deleteWordLeftWhitespace=function(e,t){var n=e.getLineContent(t.lineNumber),r=t.column-2,i=_n(n,r);return i+1<r?new Yr(t.lineNumber,i+2,t.lineNumber,t.column):null},e.deleteWordLeft=function(t,n,r,i,o){if(!r.isEmpty())return r;var s=new Lt(r.positionLineNumber,r.positionColumn),a=s.lineNumber,u=s.column;if(1===a&&1===u)return null;if(i){var l=this._deleteWordLeftWhitespace(n,s);if(l)return l}var c=e._findPreviousWordOnLine(t,n,s);return 0===o?c?u=c.start+1:u>1?u=1:(a--,u=n.getLineMaxColumn(a)):(c&&u<=c.end+1&&(c=e._findPreviousWordOnLine(t,n,new Lt(a,c.start+1))),c?u=c.end+1:u>1?u=1:(a--,u=n.getLineMaxColumn(a))),new Yr(a,u,s.lineNumber,s.column)},e._deleteWordPartLeft=function(t,n){if(!n.isEmpty())return n;var r=n.getPosition(),i=e._moveWordPartLeft(t,r);return new Yr(r.lineNumber,r.column,i.lineNumber,i.column)},e._findFirstNonWhitespaceChar=function(e,t){for(var n=e.length,r=t;r<n;r++){var i=e.charAt(r);if(" "!==i&&"\t"!==i)return r}return n},e._deleteWordRightWhitespace=function(e,t){var n=e.getLineContent(t.lineNumber),r=t.column-1,i=this._findFirstNonWhitespaceChar(n,r);return r+1<i?new Yr(t.lineNumber,t.column,t.lineNumber,i+1):null},e.deleteWordRight=function(t,n,r,i,o){if(!r.isEmpty())return r;var s=new Lt(r.positionLineNumber,r.positionColumn),a=s.lineNumber,u=s.column,l=n.getLineCount(),c=n.getLineMaxColumn(a);if(a===l&&u===c)return null;if(i){var d=this._deleteWordRightWhitespace(n,s);if(d)return d}var h=e._findNextWordOnLine(t,n,s);return 2===o?h?u=h.end+1:u<c||a===l?u=c:(a++,u=(h=e._findNextWordOnLine(t,n,new Lt(a,1)))?h.start+1:n.getLineMaxColumn(a)):(h&&u>=h.start+1&&(h=e._findNextWordOnLine(t,n,new Lt(a,h.end+1))),h?u=h.start+1:u<c||a===l?u=c:(a++,u=(h=e._findNextWordOnLine(t,n,new Lt(a,1)))?h.start+1:n.getLineMaxColumn(a))),new Yr(a,u,s.lineNumber,s.column)},e._deleteWordPartRight=function(t,n){if(!n.isEmpty())return n;var r=n.getPosition(),i=e._moveWordPartRight(t,r);return new Yr(r.lineNumber,r.column,i.lineNumber,i.column)},e.word=function(t,n,r,i,o){var s,a,u,l,c=ko(t.wordSeparators),d=e._findPreviousWordOnLine(c,n,o),h=e._findNextWordOnLine(c,n,o);if(!i)return d&&1===d.wordType&&d.start<=o.column-1&&o.column-1<=d.end?(s=d.start+1,a=d.end+1):h&&1===h.wordType&&h.start<=o.column-1&&o.column-1<=h.end?(s=h.start+1,a=h.end+1):(s=d?d.end+1:1,a=h?h.start+1:n.getLineMaxColumn(o.lineNumber)),new el(new Yr(o.lineNumber,s,o.lineNumber,a),0,new Lt(o.lineNumber,a),0);d&&1===d.wordType&&d.start<o.column-1&&o.column-1<d.end?(u=d.start+1,l=d.end+1):h&&1===h.wordType&&h.start<o.column-1&&o.column-1<h.end?(u=h.start+1,l=h.end+1):(u=o.column,l=o.column);var f,p=o.lineNumber;if(r.selectionStart.containsPosition(o))f=r.selectionStart.endColumn;else if(o.isBeforeOrEqual(r.selectionStart.getStartPosition())){var g=new Lt(p,f=u);r.selectionStart.containsPosition(g)&&(f=r.selectionStart.endColumn)}else{g=new Lt(p,f=l);r.selectionStart.containsPosition(g)&&(f=r.selectionStart.startColumn)}return r.move(!0,p,f,0)},e}();!function(e){function t(){return null!==e&&e.apply(this,arguments)||this}ml(t,e),t.deleteWordPartLeft=function(e,t,n,r){var i=yl([_l.deleteWordLeft(e,t,n,r,0),_l.deleteWordLeft(e,t,n,r,2),_l._deleteWordPartLeft(t,n)]);return i.sort(Yr.compareRangesUsingEnds),i[2]},t.deleteWordPartRight=function(e,t,n,r){var i=yl([_l.deleteWordRight(e,t,n,r,0),_l.deleteWordRight(e,t,n,r,2),_l._deleteWordPartRight(t,n)]);return i.sort(Yr.compareRangesUsingStarts),i[0]},t.moveWordPartLeft=function(e,t,n){var r=yl([_l.moveWordLeft(e,t,n,0),_l.moveWordLeft(e,t,n,2),_l._moveWordPartLeft(t,n)]);return r.sort(Lt.compare),r[2]},t.moveWordPartRight=function(e,t,n){var r=yl([_l.moveWordRight(e,t,n,0),_l.moveWordRight(e,t,n,2),_l._moveWordPartRight(t,n)]);return r.sort(Lt.compare),r[0]}}(_l);function yl(e){return e.filter((function(e){return Boolean(e)}))}var vl,bl,wl=function(){function e(){}return e.addCursorDown=function(e,t,n){for(var r=[],i=0,o=0,s=t.length;o<s;o++){var a=t[o];r[i++]=new il(a.modelState,a.viewState),r[i++]=n?il.fromModelState(pl.translateDown(e.config,e.model,a.modelState)):il.fromViewState(pl.translateDown(e.config,e.viewModel,a.viewState))}return r},e.addCursorUp=function(e,t,n){for(var r=[],i=0,o=0,s=t.length;o<s;o++){var a=t[o];r[i++]=new il(a.modelState,a.viewState),r[i++]=n?il.fromModelState(pl.translateUp(e.config,e.model,a.modelState)):il.fromViewState(pl.translateUp(e.config,e.viewModel,a.viewState))}return r},e.moveToBeginningOfLine=function(e,t,n){for(var r=[],i=0,o=t.length;i<o;i++){var s=t[i];r[i]=this._moveToLineStart(e,s,n)}return r},e._moveToLineStart=function(e,t,n){var r=t.viewState.position.column,i=r===t.modelState.position.column,o=t.viewState.position.lineNumber,s=e.viewModel.getLineFirstNonWhitespaceColumn(o);return i||r===s?this._moveToLineStartByModel(e,t,n):this._moveToLineStartByView(e,t,n)},e._moveToLineStartByView=function(e,t,n){return il.fromViewState(pl.moveToBeginningOfLine(e.config,e.viewModel,t.viewState,n))},e._moveToLineStartByModel=function(e,t,n){return il.fromModelState(pl.moveToBeginningOfLine(e.config,e.model,t.modelState,n))},e.moveToEndOfLine=function(e,t,n){for(var r=[],i=0,o=t.length;i<o;i++){var s=t[i];r[i]=this._moveToLineEnd(e,s,n)}return r},e._moveToLineEnd=function(e,t,n){var r=t.viewState.position,i=e.viewModel.getLineMaxColumn(r.lineNumber),o=r.column===i,s=t.modelState.position,a=e.model.getLineMaxColumn(s.lineNumber),u=i-r.column==a-s.column;return o||u?this._moveToLineEndByModel(e,t,n):this._moveToLineEndByView(e,t,n)},e._moveToLineEndByView=function(e,t,n){return il.fromViewState(pl.moveToEndOfLine(e.config,e.viewModel,t.viewState,n))},e._moveToLineEndByModel=function(e,t,n){return il.fromModelState(pl.moveToEndOfLine(e.config,e.model,t.modelState,n))},e.expandLineSelection=function(e,t){for(var n=[],r=0,i=t.length;r<i;r++){var o=t[r].viewState.selection,s=o.startLineNumber,a=e.viewModel.getLineCount(),u=o.endLineNumber,l=void 0;u===a?l=e.viewModel.getLineMaxColumn(a):(u++,l=1),n[r]=il.fromViewState(new el(new Yr(s,1,s,1),0,new Lt(u,l),0))}return n},e.moveToBeginningOfBuffer=function(e,t,n){for(var r=[],i=0,o=t.length;i<o;i++){var s=t[i];r[i]=il.fromModelState(pl.moveToBeginningOfBuffer(e.config,e.model,s.modelState,n))}return r},e.moveToEndOfBuffer=function(e,t,n){for(var r=[],i=0,o=t.length;i<o;i++){var s=t[i];r[i]=il.fromModelState(pl.moveToEndOfBuffer(e.config,e.model,s.modelState,n))}return r},e.selectAll=function(e,t){var n=e.model.getLineCount(),r=e.model.getLineMaxColumn(n);return il.fromModelState(new el(new Yr(1,1,1,1),0,new Lt(n,r),0))},e.line=function(e,t,n,r,i){var o=e.model.validatePosition(r),s=i?e.validateViewPosition(new Lt(i.lineNumber,i.column),o):e.convertModelPositionToViewPosition(o);if(!n||!t.modelState.hasSelection()){var a=e.model.getLineCount(),u=o.lineNumber+1,l=1;return u>a&&(u=a,l=e.model.getLineMaxColumn(u)),il.fromModelState(new el(new Yr(o.lineNumber,1,u,l),0,new Lt(u,l),0))}var c=t.modelState.selectionStart.getStartPosition().lineNumber;if(o.lineNumber<c)return il.fromViewState(t.viewState.move(t.modelState.hasSelection(),s.lineNumber,1,0));if(o.lineNumber>c){a=e.viewModel.getLineCount();var d=s.lineNumber+1,h=1;return d>a&&(d=a,h=e.viewModel.getLineMaxColumn(d)),il.fromViewState(t.viewState.move(t.modelState.hasSelection(),d,h,0))}var f=t.modelState.selectionStart.getEndPosition();return il.fromModelState(t.modelState.move(t.modelState.hasSelection(),f.lineNumber,f.column,0))},e.word=function(e,t,n,r){var i=e.model.validatePosition(r);return il.fromModelState(_l.word(e.config,e.model,t.modelState,n,i))},e.cancelSelection=function(e,t){if(!t.modelState.hasSelection())return new il(t.modelState,t.viewState);var n=t.viewState.position.lineNumber,r=t.viewState.position.column;return il.fromViewState(new el(new Yr(n,r,n,r),0,new Lt(n,r),0))},e.moveTo=function(e,t,n,r,i){var o=e.model.validatePosition(r),s=i?e.validateViewPosition(new Lt(i.lineNumber,i.column),o):e.convertModelPositionToViewPosition(o);return il.fromViewState(t.viewState.move(n,s.lineNumber,s.column,0))},e.move=function(e,t,n){var r=n.select,i=n.value;switch(n.direction){case 0:return 4===n.unit?this._moveHalfLineLeft(e,t,r):this._moveLeft(e,t,r,i);case 1:return 4===n.unit?this._moveHalfLineRight(e,t,r):this._moveRight(e,t,r,i);case 2:return 2===n.unit?this._moveUpByViewLines(e,t,r,i):this._moveUpByModelLines(e,t,r,i);case 3:return 2===n.unit?this._moveDownByViewLines(e,t,r,i):this._moveDownByModelLines(e,t,r,i);case 4:return this._moveToViewMinColumn(e,t,r);case 5:return this._moveToViewFirstNonWhitespaceColumn(e,t,r);case 6:return this._moveToViewCenterColumn(e,t,r);case 7:return this._moveToViewMaxColumn(e,t,r);case 8:return this._moveToViewLastNonWhitespaceColumn(e,t,r);case 9:var o=t[0],s=e.getCompletelyVisibleModelRange(),a=this._firstLineNumberInRange(e.model,s,i),u=e.model.getLineFirstNonWhitespaceColumn(a);return[this._moveToModelPosition(e,o,r,a,u)];case 11:o=t[0],s=e.getCompletelyVisibleModelRange(),a=this._lastLineNumberInRange(e.model,s,i),u=e.model.getLineFirstNonWhitespaceColumn(a);return[this._moveToModelPosition(e,o,r,a,u)];case 10:o=t[0],s=e.getCompletelyVisibleModelRange(),a=Math.round((s.startLineNumber+s.endLineNumber)/2),u=e.model.getLineFirstNonWhitespaceColumn(a);return[this._moveToModelPosition(e,o,r,a,u)];case 12:for(var l=e.getCompletelyVisibleViewRange(),c=[],d=0,h=t.length;d<h;d++){o=t[d];c[d]=this.findPositionInViewportIfOutside(e,o,l,r)}return c}return null},e.findPositionInViewportIfOutside=function(e,t,n,r){var i=t.viewState.position.lineNumber;if(n.startLineNumber<=i&&i<=n.endLineNumber-1)return new il(t.modelState,t.viewState);i>n.endLineNumber-1&&(i=n.endLineNumber-1),i<n.startLineNumber&&(i=n.startLineNumber);var o=e.viewModel.getLineFirstNonWhitespaceColumn(i);return this._moveToViewPosition(e,t,r,i,o)},e._firstLineNumberInRange=function(e,t,n){var r=t.startLineNumber;return t.startColumn!==e.getLineMinColumn(r)&&r++,Math.min(t.endLineNumber,r+n-1)},e._lastLineNumberInRange=function(e,t,n){var r=t.startLineNumber;return t.startColumn!==e.getLineMinColumn(r)&&r++,Math.max(r,t.endLineNumber-n+1)},e._moveLeft=function(e,t,n,r){for(var i=[],o=0,s=t.length;o<s;o++){var a=t[o],u=pl.moveLeft(e.config,e.viewModel,a.viewState,n,r);if(1===r&&u.position.lineNumber!==a.viewState.position.lineNumber)e.viewModel.coordinatesConverter.convertViewPositionToModelPosition(u.position).lineNumber===a.modelState.position.lineNumber&&(u=pl.moveLeft(e.config,e.viewModel,u,n,1));i[o]=il.fromViewState(u)}return i},e._moveHalfLineLeft=function(e,t,n){for(var r=[],i=0,o=t.length;i<o;i++){var s=t[i],a=s.viewState.position.lineNumber,u=Math.round(e.viewModel.getLineContent(a).length/2);r[i]=il.fromViewState(pl.moveLeft(e.config,e.viewModel,s.viewState,n,u))}return r},e._moveRight=function(e,t,n,r){for(var i=[],o=0,s=t.length;o<s;o++){var a=t[o],u=pl.moveRight(e.config,e.viewModel,a.viewState,n,r);if(1===r&&u.position.lineNumber!==a.viewState.position.lineNumber)e.viewModel.coordinatesConverter.convertViewPositionToModelPosition(u.position).lineNumber===a.modelState.position.lineNumber&&(u=pl.moveRight(e.config,e.viewModel,u,n,1));i[o]=il.fromViewState(u)}return i},e._moveHalfLineRight=function(e,t,n){for(var r=[],i=0,o=t.length;i<o;i++){var s=t[i],a=s.viewState.position.lineNumber,u=Math.round(e.viewModel.getLineContent(a).length/2);r[i]=il.fromViewState(pl.moveRight(e.config,e.viewModel,s.viewState,n,u))}return r},e._moveDownByViewLines=function(e,t,n,r){for(var i=[],o=0,s=t.length;o<s;o++){var a=t[o];i[o]=il.fromViewState(pl.moveDown(e.config,e.viewModel,a.viewState,n,r))}return i},e._moveDownByModelLines=function(e,t,n,r){for(var i=[],o=0,s=t.length;o<s;o++){var a=t[o];i[o]=il.fromModelState(pl.moveDown(e.config,e.model,a.modelState,n,r))}return i},e._moveUpByViewLines=function(e,t,n,r){for(var i=[],o=0,s=t.length;o<s;o++){var a=t[o];i[o]=il.fromViewState(pl.moveUp(e.config,e.viewModel,a.viewState,n,r))}return i},e._moveUpByModelLines=function(e,t,n,r){for(var i=[],o=0,s=t.length;o<s;o++){var a=t[o];i[o]=il.fromModelState(pl.moveUp(e.config,e.model,a.modelState,n,r))}return i},e._moveToViewPosition=function(e,t,n,r,i){return il.fromViewState(t.viewState.move(n,r,i,0))},e._moveToModelPosition=function(e,t,n,r,i){return il.fromModelState(t.modelState.move(n,r,i,0))},e._moveToViewMinColumn=function(e,t,n){for(var r=[],i=0,o=t.length;i<o;i++){var s=t[i],a=s.viewState.position.lineNumber,u=e.viewModel.getLineMinColumn(a);r[i]=this._moveToViewPosition(e,s,n,a,u)}return r},e._moveToViewFirstNonWhitespaceColumn=function(e,t,n){for(var r=[],i=0,o=t.length;i<o;i++){var s=t[i],a=s.viewState.position.lineNumber,u=e.viewModel.getLineFirstNonWhitespaceColumn(a);r[i]=this._moveToViewPosition(e,s,n,a,u)}return r},e._moveToViewCenterColumn=function(e,t,n){for(var r=[],i=0,o=t.length;i<o;i++){var s=t[i],a=s.viewState.position.lineNumber,u=Math.round((e.viewModel.getLineMaxColumn(a)+e.viewModel.getLineMinColumn(a))/2);r[i]=this._moveToViewPosition(e,s,n,a,u)}return r},e._moveToViewMaxColumn=function(e,t,n){for(var r=[],i=0,o=t.length;i<o;i++){var s=t[i],a=s.viewState.position.lineNumber,u=e.viewModel.getLineMaxColumn(a);r[i]=this._moveToViewPosition(e,s,n,a,u)}return r},e._moveToViewLastNonWhitespaceColumn=function(e,t,n){for(var r=[],i=0,o=t.length;i<o;i++){var s=t[i],a=s.viewState.position.lineNumber,u=e.viewModel.getLineLastNonWhitespaceColumn(a);r[i]=this._moveToViewPosition(e,s,n,a,u)}return r},e}();(bl=vl||(vl={})).description={description:"Move cursor to a logical position in the view",args:[{name:"Cursor move argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'to': A mandatory logical position value providing where to move the cursor.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'left', 'right', 'up', 'down'\n\t\t\t\t\t\t'wrappedLineStart', 'wrappedLineEnd', 'wrappedLineColumnCenter'\n\t\t\t\t\t\t'wrappedLineFirstNonWhitespaceCharacter', 'wrappedLineLastNonWhitespaceCharacter'\n\t\t\t\t\t\t'viewPortTop', 'viewPortCenter', 'viewPortBottom', 'viewPortIfOutside'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'by': Unit to move. Default is computed based on 'to' value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'line', 'wrappedLine', 'character', 'halfLine'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'value': Number of units to move. Default is '1'.\n\t\t\t\t\t* 'select': If 'true' makes the selection. Default is 'false'.\n\t\t\t\t",constraint:function(e){if(!Oe(e))return!1;var t=e;return!(!Ne(t.to)||!Pe(t.select)&&!Ie(t.select)||!Pe(t.by)&&!Ne(t.by)||!Pe(t.value)&&!Ae(t.value))},schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["left","right","up","down","wrappedLineStart","wrappedLineEnd","wrappedLineColumnCenter","wrappedLineFirstNonWhitespaceCharacter","wrappedLineLastNonWhitespaceCharacter","viewPortTop","viewPortCenter","viewPortBottom","viewPortIfOutside"]},by:{type:"string",enum:["line","wrappedLine","character","halfLine"]},value:{type:"number",default:1},select:{type:"boolean",default:!1}}}}]},bl.RawDirection={Left:"left",Right:"right",Up:"up",Down:"down",WrappedLineStart:"wrappedLineStart",WrappedLineFirstNonWhitespaceCharacter:"wrappedLineFirstNonWhitespaceCharacter",WrappedLineColumnCenter:"wrappedLineColumnCenter",WrappedLineEnd:"wrappedLineEnd",WrappedLineLastNonWhitespaceCharacter:"wrappedLineLastNonWhitespaceCharacter",ViewPortTop:"viewPortTop",ViewPortCenter:"viewPortCenter",ViewPortBottom:"viewPortBottom",ViewPortIfOutside:"viewPortIfOutside"},bl.RawUnit={Line:"line",WrappedLine:"wrappedLine",Character:"character",HalfLine:"halfLine"},bl.parse=function(e){if(!e.to)return null;var t;switch(e.to){case bl.RawDirection.Left:t=0;break;case bl.RawDirection.Right:t=1;break;case bl.RawDirection.Up:t=2;break;case bl.RawDirection.Down:t=3;break;case bl.RawDirection.WrappedLineStart:t=4;break;case bl.RawDirection.WrappedLineFirstNonWhitespaceCharacter:t=5;break;case bl.RawDirection.WrappedLineColumnCenter:t=6;break;case bl.RawDirection.WrappedLineEnd:t=7;break;case bl.RawDirection.WrappedLineLastNonWhitespaceCharacter:t=8;break;case bl.RawDirection.ViewPortTop:t=9;break;case bl.RawDirection.ViewPortBottom:t=11;break;case bl.RawDirection.ViewPortCenter:t=10;break;case bl.RawDirection.ViewPortIfOutside:t=12;break;default:return null}var n=0;switch(e.by){case bl.RawUnit.Line:n=1;break;case bl.RawUnit.WrappedLine:n=2;break;case bl.RawUnit.Character:n=3;break;case bl.RawUnit.HalfLine:n=4}return{direction:t,unit:n,select:!!e.select,value:e.value||1}};var Cl=Object.create(null);function Sl(e,t){Cl[e]||(Cl[e]=["",e]);for(var n=Cl[e],r=n.length;r<=t;r++)n[r]=n[r-1]+e;return n[t]}var xl=function(){function e(e,t){this._opts=t,this._selection=e,this._selectionId=null,this._useLastEditRangeForCursorEndPosition=!1,this._selectionStartColumnStaysPut=!1}return e.unshiftIndent=function(e,t,n,r,i){var o=sl.visibleColumnFromColumn(e,t,n);if(i){var s=Sl(" ",r);return Sl(s,sl.prevIndentTabStop(o,r)/r)}return Sl(s="\t",sl.prevRenderTabStop(o,n)/n)},e.shiftIndent=function(e,t,n,r,i){var o=sl.visibleColumnFromColumn(e,t,n);if(i){var s=Sl(" ",r);return Sl(s,sl.nextIndentTabStop(o,r)/r)}return Sl(s="\t",sl.nextRenderTabStop(o,n)/n)},e.prototype._addEditOperation=function(e,t,n){this._useLastEditRangeForCursorEndPosition?e.addTrackedEditOperation(t,n):e.addEditOperation(t,n)},e.prototype.getEditOperations=function(t,n){var r=this._selection.startLineNumber,i=this._selection.endLineNumber;1===this._selection.endColumn&&r!==i&&(i-=1);var o=this._opts,s=o.tabSize,a=o.indentSize,u=o.insertSpaces,l=r===i;if(this._selection.isEmpty()&&/^\s*$/.test(t.getLineContent(r))&&(this._useLastEditRangeForCursorEndPosition=!0),this._opts.useTabStops)for(var c=0,d=0,h=r;h<=i;h++,c=d){d=0;var f=gn(v=t.getLineContent(h));if((!this._opts.isUnshift||0!==v.length&&0!==f)&&(l||this._opts.isUnshift||0!==v.length)){if(-1===f&&(f=v.length),h>1)if(sl.visibleColumnFromColumn(v,f+1,s)%a!=0&&t.isCheapToTokenize(h-1)){var p=Mu.getRawEnterActionAtPosition(t,h-1,t.getLineMaxColumn(h-1));if(p){if(d=c,p.appendText)for(var g=0,m=p.appendText.length;g<m&&d<a&&32===p.appendText.charCodeAt(g);g++)d++;p.removeText&&(d=Math.max(0,d-p.removeText));for(g=0;g<d&&(0!==f&&32===v.charCodeAt(f-1));g++)f--}}if(!this._opts.isUnshift||0!==f){var _=void 0;_=this._opts.isUnshift?e.unshiftIndent(v,f+1,s,a,u):e.shiftIndent(v,f+1,s,a,u),this._addEditOperation(n,new Yr(h,1,h,f+1),_),h===r&&(this._selectionStartColumnStaysPut=this._selection.startColumn<=f+1)}}}else{var y=u?Sl(" ",a):"\t";for(h=r;h<=i;h++){var v;f=gn(v=t.getLineContent(h));if((!this._opts.isUnshift||0!==v.length&&0!==f)&&((l||this._opts.isUnshift||0!==v.length)&&(-1===f&&(f=v.length),!this._opts.isUnshift||0!==f)))if(this._opts.isUnshift){f=Math.min(f,a);for(var b=0;b<f;b++){if(9===v.charCodeAt(b)){f=b+1;break}}this._addEditOperation(n,new Yr(h,1,h,f+1),"")}else this._addEditOperation(n,new Yr(h,1,h,1),y),h===r&&(this._selectionStartColumnStaysPut=1===this._selection.startColumn)}}this._selectionId=n.trackSelection(this._selection)},e.prototype.computeCursorState=function(e,t){if(this._useLastEditRangeForCursorEndPosition){var n=t.getInverseEditOperations()[0];return new Br(n.range.endLineNumber,n.range.endColumn,n.range.endLineNumber,n.range.endColumn)}var r=t.getTrackedSelection(this._selectionId);if(this._selectionStartColumnStaysPut){var i=this._selection.startColumn;return r.startColumn<=i?r:0===r.getDirection()?new Br(r.startLineNumber,i,r.endLineNumber,r.endColumn):new Br(r.endLineNumber,r.endColumn,r.startLineNumber,i)}return r},e}(),Ll=function(){function e(e,t,n){this._range=e,this._charBeforeSelection=t,this._charAfterSelection=n}return e.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(new Yr(this._range.startLineNumber,this._range.startColumn,this._range.startLineNumber,this._range.startColumn),this._charBeforeSelection),t.addTrackedEditOperation(new Yr(this._range.endLineNumber,this._range.endColumn,this._range.endLineNumber,this._range.endColumn),this._charAfterSelection)},e.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations(),r=n[0].range,i=n[1].range;return new Br(r.endLineNumber,r.endColumn,i.endLineNumber,i.endColumn-this._charAfterSelection.length)},e}(),kl=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ml=function(){function e(){}return e.indent=function(e,t,n){if(null===t||null===n)return[];for(var r=[],i=0,o=n.length;i<o;i++)r[i]=new xl(n[i],{isUnshift:!1,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops});return r},e.outdent=function(e,t,n){for(var r=[],i=0,o=n.length;i<o;i++)r[i]=new xl(n[i],{isUnshift:!0,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops});return r},e.shiftIndent=function(e,t,n){return n=n||1,xl.shiftIndent(t,t.length+n,e.tabSize,e.indentSize,e.insertSpaces)},e.unshiftIndent=function(e,t,n){return n=n||1,xl.unshiftIndent(t,t.length+n,e.tabSize,e.indentSize,e.insertSpaces)},e._distributedPaste=function(e,t,n,r){for(var i=[],o=0,s=n.length;o<s;o++)i[o]=new ll(n[o],r[o]);return new ol(0,i,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},e._simplePaste=function(e,t,n,r,i){for(var o=[],s=0,a=n.length;s<a;s++){var u=n[s],l=u.getPosition();if(i&&r.indexOf("\n")!==r.length-1&&(i=!1),i&&u.startLineNumber!==u.endLineNumber&&(i=!1),i&&u.startColumn===t.getLineMinColumn(u.startLineNumber)&&u.endColumn===t.getLineMaxColumn(u.startLineNumber)&&(i=!1),i){var c=new Yr(l.lineNumber,1,l.lineNumber,1);o[s]=new ll(c,r)}else o[s]=new ll(u,r)}return new ol(0,o,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},e._distributePasteToCursors=function(e,t,n,r){if(n)return null;if(1===e.length)return null;if(r&&r.length===e.length)return r;10===t.charCodeAt(t.length-1)&&(t=t.substr(0,t.length-1));var i=t.split(/\r\n|\r|\n/);return i.length===e.length?i:null},e.paste=function(e,t,n,r,i,o){var s=this._distributePasteToCursors(n,r,i,o);return s?(n=n.sort(Yr.compareRangesUsingStarts),this._distributedPaste(e,t,n,s)):this._simplePaste(e,t,n,r,i)},e._goodIndentForLine=function(t,n,r){var i=null,o="",s=t.autoIndent?Mu.getInheritIndentForLine(n,r,!1):null;if(s)i=s.action,o=s.indentation;else if(r>1){var a=void 0;for(a=r-1;a>=1;a--){if(_n(n.getLineContent(a))>=0)break}if(a<1)return null;var u=n.getLineMaxColumn(a),l=Mu.getEnterAction(n,new Yr(a,u,a,u));l&&(o=l.indentation,(i=l.enterAction)&&(o+=i.appendText))}return i&&(i===Ja.Indent&&(o=e.shiftIndent(t,o)),i===Ja.Outdent&&(o=e.unshiftIndent(t,o)),o=t.normalizeIndentation(o)),o||null},e._replaceJumpToNextIndent=function(e,t,n,r){var i="",o=n.getStartPosition();if(e.insertSpaces)for(var s=sl.visibleColumnFromColumn2(e,t,o),a=e.indentSize,u=a-s%a,l=0;l<u;l++)i+=" ";else i="\t";return new ll(n,i,r)},e.tab=function(e,t,n){for(var r=[],i=0,o=n.length;i<o;i++){var s=n[i];if(s.isEmpty()){var a=t.getLineContent(s.startLineNumber);if(/^\s*$/.test(a)&&t.isCheapToTokenize(s.startLineNumber)){var u=this._goodIndentForLine(e,t,s.startLineNumber);u=u||"\t";var l=e.normalizeIndentation(u);if(!dn(a,l)){r[i]=new ll(new Yr(s.startLineNumber,1,s.startLineNumber,a.length+1),l,!0);continue}}r[i]=this._replaceJumpToNextIndent(e,t,s,!0)}else{if(s.startLineNumber===s.endLineNumber){var c=t.getLineMaxColumn(s.startLineNumber);if(1!==s.startColumn||s.endColumn!==c){r[i]=this._replaceJumpToNextIndent(e,t,s,!1);continue}}r[i]=new xl(s,{isUnshift:!1,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops})}}return r},e.replacePreviousChar=function(e,t,n,r,i,o){for(var s=[],a=0,u=r.length;a<u;a++){var l=r[a];if(l.isEmpty()){var c=l.getPosition(),d=Math.max(1,c.column-o),h=new Yr(c.lineNumber,d,c.lineNumber,c.column);s[a]=new ll(h,i)}else s[a]=null}return new ol(1,s,{shouldPushStackElementBefore:1!==e,shouldPushStackElementAfter:!1})},e._typeCommand=function(e,t,n){return n?new cl(e,t,!0):new ll(e,t,!0)},e._enter=function(t,n,r,i){if(!n.isCheapToTokenize(i.getStartPosition().lineNumber)){var o=mn(n.getLineContent(i.startLineNumber)).substring(0,i.startColumn-1);return e._typeCommand(i,"\n"+t.normalizeIndentation(o),r)}var s=Mu.getEnterAction(n,i);if(s){var a=s.enterAction,u=s.indentation;if(a.indentAction===Ja.None)return e._typeCommand(i,"\n"+t.normalizeIndentation(u+a.appendText),r);if(a.indentAction===Ja.Indent)return e._typeCommand(i,"\n"+t.normalizeIndentation(u+a.appendText),r);if(a.indentAction===Ja.IndentOutdent){var l=t.normalizeIndentation(u),c=t.normalizeIndentation(u+a.appendText),d="\n"+c+"\n"+l;return r?new cl(i,d,!0):new dl(i,d,-1,c.length-l.length,!0)}if(a.indentAction===Ja.Outdent){var h=e.unshiftIndent(t,u);return e._typeCommand(i,"\n"+t.normalizeIndentation(h+a.appendText),r)}}if(!t.autoIndent){var f=mn(n.getLineContent(i.startLineNumber)).substring(0,i.startColumn-1);return e._typeCommand(i,"\n"+t.normalizeIndentation(f),r)}var p=Mu.getIndentForEnter(n,i,{unshiftIndent:function(n){return e.unshiftIndent(t,n)},shiftIndent:function(n){return e.shiftIndent(t,n)},normalizeIndentation:function(e){return t.normalizeIndentation(e)}},t.autoIndent),g=n.getLineContent(i.startLineNumber),m=mn(g).substring(0,i.startColumn-1);if(p){var _=sl.visibleColumnFromColumn2(t,n,i.getEndPosition()),y=i.endColumn,v="\n";m!==t.normalizeIndentation(p.beforeEnter)&&(v=t.normalizeIndentation(p.beforeEnter)+g.substring(m.length,i.startColumn-1)+"\n",i=new Yr(i.startLineNumber,1,i.endLineNumber,i.endColumn));var b=gn(n.getLineContent(i.endLineNumber));if(i=b>=0?i.setEndPosition(i.endLineNumber,Math.max(i.endColumn,b+1)):i.setEndPosition(i.endLineNumber,n.getLineMaxColumn(i.endLineNumber)),r)return new cl(i,v+t.normalizeIndentation(p.afterEnter),!0);var w=0;return y<=b+1&&(t.insertSpaces||(_=Math.ceil(_/t.indentSize)),w=Math.min(_+1-t.normalizeIndentation(p.afterEnter).length-1,0)),new dl(i,v+t.normalizeIndentation(p.afterEnter),0,w,!0)}return e._typeCommand(i,"\n"+t.normalizeIndentation(m),r)},e._isAutoIndentType=function(e,t,n){if(!e.autoIndent)return!1;for(var r=0,i=n.length;r<i;r++)if(!t.isCheapToTokenize(n[r].getEndPosition().lineNumber))return!1;return!0},e._runAutoIndentType=function(t,n,r,i){var o=Mu.getIndentationAtPosition(n,r.startLineNumber,r.startColumn),s=Mu.getIndentActionForType(n,r,i,{shiftIndent:function(n){return e.shiftIndent(t,n)},unshiftIndent:function(n){return e.unshiftIndent(t,n)}});if(null===s)return null;if(s!==t.normalizeIndentation(o)){var a=n.getLineFirstNonWhitespaceColumn(r.startLineNumber);return 0===a?e._typeCommand(new Yr(r.startLineNumber,0,r.endLineNumber,r.endColumn),t.normalizeIndentation(s)+i,!1):e._typeCommand(new Yr(r.startLineNumber,0,r.endLineNumber,r.endColumn),t.normalizeIndentation(s)+n.getLineContent(r.startLineNumber).substring(a-1,r.startColumn-1)+i,!1)}return null},e._isAutoClosingOvertype=function(e,t,n,r,i){if("never"===e.autoClosingOvertype)return!1;if(!e.autoClosingPairsClose2.has(i))return!1;for(var o=0,s=n.length;o<s;o++){var a=n[o];if(!a.isEmpty())return!1;var u=a.getPosition();if(t.getLineContent(u.lineNumber).charAt(u.column-1)!==i)return!1;if("auto"===e.autoClosingOvertype){for(var l=!1,c=0,d=r.length;c<d;c++){var h=r[c];if(u.lineNumber===h.startLineNumber&&u.column===h.startColumn){l=!0;break}}if(!l)return!1}}return!0},e._runAutoClosingOvertype=function(e,t,n,r,i){for(var o=[],s=0,a=r.length;s<a;s++){var u=r[s].getPosition(),l=new Yr(u.lineNumber,u.column,u.lineNumber,u.column+1);o[s]=new ll(l,i)}return new ol(1,o,{shouldPushStackElementBefore:1!==e,shouldPushStackElementAfter:!1})},e._isBeforeClosingBrace=function(e,t,n){var r=e.autoClosingPairsClose2.get(n);if(!r)return!1;for(var i=t.open===t.close,o=0,s=r;o<s.length;o++){var a=s[o],u=a.open===a.close;if(i||!u)return!0}return!1},e._findAutoClosingPairOpen=function(e,t,n,r){var i=e.autoClosingPairsOpen2.get(r);if(!i)return null;for(var o=null,s=0,a=i;s<a.length;s++){var u=a[s];if(null===o||u.open.length>o.open.length){for(var l=!0,c=0,d=n;c<d.length;c++){var h=d[c];if(t.getValueInRange(new Yr(h.lineNumber,h.column-u.open.length+1,h.lineNumber,h.column))+r!==u.open){l=!1;break}}l&&(o=u)}}return o},e._isAutoClosingOpenCharType=function(t,n,r,i,o){var s=al(i),a=s?t.autoClosingQuotes:t.autoClosingBrackets;if("never"===a)return null;var u=this._findAutoClosingPairOpen(t,n,r.map((function(e){return e.getPosition()})),i);if(!u)return null;for(var l=s?t.shouldAutoCloseBefore.quote:t.shouldAutoCloseBefore.bracket,c=0,d=r.length;c<d;c++){var h=r[c];if(!h.isEmpty())return null;var f=h.getPosition(),p=n.getLineContent(f.lineNumber);if(p.length>f.column-1){var g=p.charAt(f.column-1);if(!e._isBeforeClosingBrace(t,u,g)&&!l(g))return null}if(!n.isCheapToTokenize(f.lineNumber))return null;if(1===u.open.length&&s&&"always"!==a){var m=ko(t.wordSeparators);if(o&&f.column>1&&0===m.get(p.charCodeAt(f.column-2)))return null;if(!o&&f.column>2&&0===m.get(p.charCodeAt(f.column-3)))return null}n.forceTokenization(f.lineNumber);var _=n.getLineTokens(f.lineNumber),y=!1;try{y=Mu.shouldAutoClosePair(u,_,o?f.column:f.column-1)}catch(e){Ke(e)}if(!y)return null}return u},e._runAutoClosingOpenCharType=function(e,t,n,r,i,o,s){for(var a=[],u=0,l=r.length;u<l;u++){var c=r[u];a[u]=new Dl(c,i,o,s.close)}return new ol(1,a,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})},e._shouldSurroundChar=function(e,t){return al(t)?"quotes"===e.autoSurround||"languageDefined"===e.autoSurround:"brackets"===e.autoSurround||"languageDefined"===e.autoSurround},e._isSurroundSelectionType=function(t,n,r,i){if(!e._shouldSurroundChar(t,i)||!t.surroundingPairs.hasOwnProperty(i))return!1;for(var o=al(i),s=0,a=r.length;s<a;s++){var u=r[s];if(u.isEmpty())return!1;for(var l=!0,c=u.startLineNumber;c<=u.endLineNumber;c++){var d=n.getLineContent(c),h=c===u.startLineNumber?u.startColumn-1:0,f=c===u.endLineNumber?u.endColumn-1:d.length,p=d.substring(h,f);if(/[^ \t]/.test(p)){l=!1;break}}if(l)return!1;if(o&&u.startLineNumber===u.endLineNumber&&u.startColumn+1===u.endColumn)if(al(n.getValueInRange(u)))return!1}return!0},e._runSurroundSelectionType=function(e,t,n,r,i){for(var o=[],s=0,a=r.length;s<a;s++){var u=r[s],l=t.surroundingPairs[i];o[s]=new Ll(u,i,l)}return new ol(0,o,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},e._isTypeInterceptorElectricChar=function(e,t,n){return!(1!==n.length||!t.isCheapToTokenize(n[0].getEndPosition().lineNumber))},e._typeInterceptorElectricChar=function(e,t,n,r,i){if(!t.electricChars.hasOwnProperty(i)||!r.isEmpty())return null;var o=r.getPosition();n.forceTokenization(o.lineNumber);var s,a=n.getLineTokens(o.lineNumber);try{s=Mu.onElectricCharacter(i,a,o.column)}catch(e){return Ke(e),null}if(!s)return null;if(s.matchOpenBracket){var u=(a.getLineContent()+i).lastIndexOf(s.matchOpenBracket)+1,l=n.findMatchingBracketUp(s.matchOpenBracket,{lineNumber:o.lineNumber,column:u});if(l){if(l.startLineNumber===o.lineNumber)return null;var c=mn(n.getLineContent(l.startLineNumber)),d=t.normalizeIndentation(c),h=n.getLineContent(o.lineNumber),f=n.getLineFirstNonWhitespaceColumn(o.lineNumber)||o.column,p=d+h.substring(f-1,o.column-1)+i,g=new Yr(o.lineNumber,1,o.lineNumber,o.column),m=new ll(g,p);return new ol(1,[m],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!0})}}return null},e.compositionEndWithInterceptors=function(e,t,n,r,i){for(var o=null,s=0,a=r;s<a.length;s++){var u=a[s];if(!u.isEmpty())return null;var l=u.getPosition(),c=n.getValueInRange(new Yr(l.lineNumber,l.column-1,l.lineNumber,l.column));if(null===o)o=c;else if(o!==c)return null}if(!o)return null;if(this._isAutoClosingOvertype(t,n,r,i,o)){var d=r.map((function(e){return new ll(new Yr(e.positionLineNumber,e.positionColumn,e.positionLineNumber,e.positionColumn+1),"",!1)}));return new ol(1,d,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}var h=this._isAutoClosingOpenCharType(t,n,r,o,!1);return h?this._runAutoClosingOpenCharType(e,t,n,r,o,!1,h):null},e.typeWithInterceptors=function(t,n,r,i,o,s){if("\n"===s){for(var a=[],u=0,l=i.length;u<l;u++)a[u]=e._enter(n,r,!1,i[u]);return new ol(1,a,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(this._isAutoIndentType(n,r,i)){var c=[],d=!1;for(u=0,l=i.length;u<l;u++)if(c[u]=this._runAutoIndentType(n,r,i[u],s),!c[u]){d=!0;break}if(!d)return new ol(1,c,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(this._isAutoClosingOvertype(n,r,i,o,s))return this._runAutoClosingOvertype(t,n,r,i,s);var h=this._isAutoClosingOpenCharType(n,r,i,s,!0);if(h)return this._runAutoClosingOpenCharType(t,n,r,i,s,!0,h);if(this._isSurroundSelectionType(n,r,i,s))return this._runSurroundSelectionType(t,n,r,i,s);if(this._isTypeInterceptorElectricChar(n,r,i)){var f=this._typeInterceptorElectricChar(t,n,r,i[0],s);if(f)return f}var p=[];for(u=0,l=i.length;u<l;u++)p[u]=new ll(i[u],s);var g=1!==t;return" "===s&&(g=!0),new ol(1,p,{shouldPushStackElementBefore:g,shouldPushStackElementAfter:!1})},e.typeWithoutInterceptors=function(e,t,n,r,i){for(var o=[],s=0,a=r.length;s<a;s++)o[s]=new ll(r[s],i);return new ol(1,o,{shouldPushStackElementBefore:1!==e,shouldPushStackElementAfter:!1})},e.lineInsertBefore=function(e,t,n){if(null===t||null===n)return[];for(var r=[],i=0,o=n.length;i<o;i++){var s=n[i].positionLineNumber;if(1===s)r[i]=new cl(new Yr(1,1,1,1),"\n");else{s--;var a=t.getLineMaxColumn(s);r[i]=this._enter(e,t,!1,new Yr(s,a,s,a))}}return r},e.lineInsertAfter=function(e,t,n){if(null===t||null===n)return[];for(var r=[],i=0,o=n.length;i<o;i++){var s=n[i].positionLineNumber,a=t.getLineMaxColumn(s);r[i]=this._enter(e,t,!1,new Yr(s,a,s,a))}return r},e.lineBreakInsert=function(e,t,n){for(var r=[],i=0,o=n.length;i<o;i++)r[i]=this._enter(e,t,!0,n[i]);return r},e}(),Dl=function(e){function t(t,n,r,i){var o=e.call(this,t,(r?n:"")+i,0,-i.length)||this;return o._openCharacter=n,o._closeCharacter=i,o.closeCharacterRange=null,o.enclosingRange=null,o}return kl(t,e),t.prototype.computeCursorState=function(t,n){var r=n.getInverseEditOperations()[0].range;return this.closeCharacterRange=new Yr(r.startLineNumber,r.endColumn-this._closeCharacter.length,r.endLineNumber,r.endColumn),this.enclosingRange=new Yr(r.startLineNumber,r.endColumn-this._openCharacter.length-this._closeCharacter.length,r.endLineNumber,r.endColumn),e.prototype.computeCursorState.call(this,t,n)},t}(dl);var El,Tl,Nl={ICodeEditor:"vs.editor.ICodeEditor",IDiffEditor:"vs.editor.IDiffEditor"},Ol={ExecuteCommand:"executeCommand",ExecuteCommands:"executeCommands",Type:"type",ReplacePreviousChar:"replacePreviousChar",CompositionStart:"compositionStart",CompositionEnd:"compositionEnd",Paste:"paste",Cut:"cut",Undo:"undo",Redo:"redo"};(Tl=El||(El={})).editorTextFocus=new qn("editorTextFocus",!1),Tl.focus=new qn("editorFocus",!1),Tl.textInputFocus=new qn("textInputFocus",!1),Tl.readOnly=new qn("editorReadonly",!1),Tl.writable=Tl.readOnly.toNegated(),Tl.hasNonEmptySelection=new qn("editorHasSelection",!1),Tl.hasOnlyEmptySelection=Tl.hasNonEmptySelection.toNegated(),Tl.hasMultipleSelections=new qn("editorHasMultipleSelections",!1),Tl.hasSingleSelection=Tl.hasMultipleSelections.toNegated(),Tl.tabMovesFocus=new qn("editorTabMovesFocus",!1),Tl.tabDoesNotMoveFocus=Tl.tabMovesFocus.toNegated(),Tl.isInEmbeddedEditor=new qn("isInEmbeddedEditor",!1),Tl.canUndo=new qn("canUndo",!1),Tl.canRedo=new qn("canRedo",!1),Tl.languageId=new qn("editorLangId",""),Tl.hasCompletionItemProvider=new qn("editorHasCompletionItemProvider",!1),Tl.hasCodeActionsProvider=new qn("editorHasCodeActionsProvider",!1),Tl.hasCodeLensProvider=new qn("editorHasCodeLensProvider",!1),Tl.hasDefinitionProvider=new qn("editorHasDefinitionProvider",!1),Tl.hasDeclarationProvider=new qn("editorHasDeclarationProvider",!1),Tl.hasImplementationProvider=new qn("editorHasImplementationProvider",!1),Tl.hasTypeDefinitionProvider=new qn("editorHasTypeDefinitionProvider",!1),Tl.hasHoverProvider=new qn("editorHasHoverProvider",!1),Tl.hasDocumentHighlightProvider=new qn("editorHasDocumentHighlightProvider",!1),Tl.hasDocumentSymbolProvider=new qn("editorHasDocumentSymbolProvider",!1),Tl.hasReferenceProvider=new qn("editorHasReferenceProvider",!1),Tl.hasRenameProvider=new qn("editorHasRenameProvider",!1),Tl.hasSignatureHelpProvider=new qn("editorHasSignatureHelpProvider",!1),Tl.hasDocumentFormattingProvider=new qn("editorHasDocumentFormattingProvider",!1),Tl.hasDocumentSelectionFormattingProvider=new qn("editorHasDocumentSelectionFormattingProvider",!1),Tl.hasMultipleDocumentFormattingProvider=new qn("editorHasMultipleDocumentFormattingProvider",!1),Tl.hasMultipleDocumentSelectionFormattingProvider=new qn("editorHasMultipleDocumentSelectionFormattingProvider",!1);var Al,Il,Pl,Rl,Fl,Yl,jl,Bl,Wl=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Hl=0,Vl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Wl(t,e),t.prototype.runEditorCommand=function(e,t,n){var r=t._getCursors();r&&this.runCoreEditorCommand(r,n||{})},t}(Ar);function zl(e){e.register()}(Il=Al||(Al={})).description={description:"Scroll editor in the given direction",args:[{name:"Editor scroll argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'to': A mandatory direction value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'up', 'down'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'by': Unit to move. Default is computed based on 'to' value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'line', 'wrappedLine', 'page', 'halfPage'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'value': Number of units to move. Default is '1'.\n\t\t\t\t\t* 'revealCursor': If 'true' reveals the cursor if it is outside view port.\n\t\t\t\t",constraint:function(e){if(!Oe(e))return!1;var t=e;return!(!Ne(t.to)||!Pe(t.by)&&!Ne(t.by)||!Pe(t.value)&&!Ae(t.value)||!Pe(t.revealCursor)&&!Ie(t.revealCursor))},schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["up","down"]},by:{type:"string",enum:["line","wrappedLine","page","halfPage"]},value:{type:"number",default:1},revealCursor:{type:"boolean"}}}}]},Il.RawDirection={Up:"up",Down:"down"},Il.RawUnit={Line:"line",WrappedLine:"wrappedLine",Page:"page",HalfPage:"halfPage"},Il.parse=function(e){var t,n;switch(e.to){case Il.RawDirection.Up:t=1;break;case Il.RawDirection.Down:t=2;break;default:return null}switch(e.by){case Il.RawUnit.Line:n=1;break;case Il.RawUnit.WrappedLine:n=2;break;case Il.RawUnit.Page:n=3;break;case Il.RawUnit.HalfPage:n=4;break;default:n=2}return{direction:t,unit:n,value:Math.floor(e.value||1),revealCursor:!!e.revealCursor,select:!!e.select}},(Rl=Pl||(Pl={})).description={description:"Reveal the given line at the given logical position",args:[{name:"Reveal line argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'lineNumber': A mandatory line number value.\n\t\t\t\t\t* 'at': Logical position at which line has to be revealed .\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'top', 'center', 'bottom'\n\t\t\t\t\t\t```\n\t\t\t\t",constraint:function(e){if(!Oe(e))return!1;var t=e;return!(!Ae(t.lineNumber)||!Pe(t.at)&&!Ne(t.at))},schema:{type:"object",required:["lineNumber"],properties:{lineNumber:{type:"number"},at:{type:"string",enum:["top","center","bottom"]}}}}]},Rl.RawAtArgument={Top:"top",Center:"center",Bottom:"bottom"},function(e){var t=function(e){function t(t){var n=e.call(this,t)||this;return n._inSelectionMode=t.inSelectionMode,n}return Wl(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[wl.moveTo(e.context,e.getPrimaryCursor(),this._inSelectionMode,t.position,t.viewPosition)]),e.reveal(!0,0,0)},t}(Vl);e.MoveTo=Pr(new t({id:"_moveTo",inSelectionMode:!1,precondition:void 0})),e.MoveToSelect=Pr(new t({id:"_moveToSelect",inSelectionMode:!0,precondition:void 0}));var n=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Wl(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement();var n=this._getColumnSelectResult(e.context,e.getPrimaryCursor(),e.getColumnSelectData(),t);e.setStates(t.source,3,n.viewStates.map((function(e){return il.fromViewState(e)}))),e.setColumnSelectData({isReal:!0,fromViewLineNumber:n.fromLineNumber,fromViewVisualColumn:n.fromVisualColumn,toViewLineNumber:n.toLineNumber,toViewVisualColumn:n.toVisualColumn}),e.reveal(!0,n.reversed?1:2,0)},t}(Vl);e.ColumnSelect=Pr(new(function(e){function t(){return e.call(this,{id:"columnSelect",precondition:void 0})||this}return Wl(t,e),t.prototype._getColumnSelectResult=function(e,t,n,r){var i=e.model.validatePosition(r.position),o=e.validateViewPosition(new Lt(r.viewPosition.lineNumber,r.viewPosition.column),i),s=n.fromViewLineNumber,a=n.fromViewVisualColumn;return!n.isReal&&r.setAnchorIfNotSet&&(s=o.lineNumber,a=r.mouseColumn-1),ul.columnSelect(e.config,e.viewModel,s,a,o.lineNumber,r.mouseColumn-1)},t}(n))),e.CursorColumnSelectLeft=Pr(new(function(e){function t(){return e.call(this,{id:"cursorColumnSelectLeft",precondition:void 0,kbOpts:{weight:Hl,kbExpr:El.textInputFocus,primary:3599,linux:{primary:0}}})||this}return Wl(t,e),t.prototype._getColumnSelectResult=function(e,t,n,r){return ul.columnSelectLeft(e.config,e.viewModel,n)},t}(n))),e.CursorColumnSelectRight=Pr(new(function(e){function t(){return e.call(this,{id:"cursorColumnSelectRight",precondition:void 0,kbOpts:{weight:Hl,kbExpr:El.textInputFocus,primary:3601,linux:{primary:0}}})||this}return Wl(t,e),t.prototype._getColumnSelectResult=function(e,t,n,r){return ul.columnSelectRight(e.config,e.viewModel,n)},t}(n)));var r=function(e){function t(t){var n=e.call(this,t)||this;return n._isPaged=t.isPaged,n}return Wl(t,e),t.prototype._getColumnSelectResult=function(e,t,n,r){return ul.columnSelectUp(e.config,e.viewModel,n,this._isPaged)},t}(n);e.CursorColumnSelectUp=Pr(new r({isPaged:!1,id:"cursorColumnSelectUp",precondition:void 0,kbOpts:{weight:Hl,kbExpr:El.textInputFocus,primary:3600,linux:{primary:0}}})),e.CursorColumnSelectPageUp=Pr(new r({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:void 0,kbOpts:{weight:Hl,kbExpr:El.textInputFocus,primary:3595,linux:{primary:0}}}));var i=function(e){function t(t){var n=e.call(this,t)||this;return n._isPaged=t.isPaged,n}return Wl(t,e),t.prototype._getColumnSelectResult=function(e,t,n,r){return ul.columnSelectDown(e.config,e.viewModel,n,this._isPaged)},t}(n);e.CursorColumnSelectDown=Pr(new i({isPaged:!1,id:"cursorColumnSelectDown",precondition:void 0,kbOpts:{weight:Hl,kbExpr:El.textInputFocus,primary:3602,linux:{primary:0}}})),e.CursorColumnSelectPageDown=Pr(new i({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:void 0,kbOpts:{weight:Hl,kbExpr:El.textInputFocus,primary:3596,linux:{primary:0}}}));var o=function(e){function t(){return e.call(this,{id:"cursorMove",precondition:void 0,description:vl.description})||this}return Wl(t,e),t.prototype.runCoreEditorCommand=function(e,t){var n=vl.parse(t);n&&this._runCursorMove(e,t.source,n)},t.prototype._runCursorMove=function(e,t,n){e.context.model.pushStackElement(),e.setStates(t,3,wl.move(e.context,e.getAll(),n)),e.reveal(!0,0,0)},t}(Vl);e.CursorMoveImpl=o,e.CursorMove=Pr(new o);var s=function(t){function n(e){var n=t.call(this,e)||this;return n._staticArgs=e.args,n}return Wl(n,t),n.prototype.runCoreEditorCommand=function(t,n){var r=this._staticArgs;-1===this._staticArgs.value&&(r={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:t.context.config.pageSize}),e.CursorMove._runCursorMove(t,n.source,r)},n}(Vl);e.CursorLeft=Pr(new s({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:void 0,kbOpts:{weight:Hl,kbExpr:El.textInputFocus,primary:15,mac:{primary:15,secondary:[288]}}})),e.CursorLeftSelect=Pr(new s({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:void 0,kbOpts:{weight:Hl,kbExpr:El.textInputFocus,primary:1039}})),e.CursorRight=Pr(new s({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:void 0,kbOpts:{weight:Hl,kbExpr:El.textInputFocus,primary:17,mac:{primary:17,secondary:[292]}}})),e.CursorRightSelect=Pr(new s({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:void 0,kbOpts:{weight:Hl,kbExpr:El.textInputFocus,primary:1041}})),e.CursorUp=Pr(new s({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:void 0,kbOpts:{weight:Hl,kbExpr:El.textInputFocus,primary:16,mac:{primary:16,secondary:[302]}}})),e.CursorUpSelect=Pr(new s({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:void 0,kbOpts:{weight:Hl,kbExpr:El.textInputFocus,primary:1040,secondary:[3088],mac:{primary:1040},linux:{primary:1040}}})),e.CursorPageUp=Pr(new s({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:void 0,kbOpts:{weight:Hl,kbExpr:El.textInputFocus,primary:11}})),e.CursorPageUpSelect=Pr(new s({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:void 0,kbOpts:{weight:Hl,kbExpr:El.textInputFocus,primary:1035}})),e.CursorDown=Pr(new s({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:void 0,kbOpts:{weight:Hl,kbExpr:El.textInputFocus,primary:18,mac:{primary:18,secondary:[300]}}})),e.CursorDownSelect=Pr(new s({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:void 0,kbOpts:{weight:Hl,kbExpr:El.textInputFocus,primary:1042,secondary:[3090],mac:{primary:1042},linux:{primary:1042}}})),e.CursorPageDown=Pr(new s({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:void 0,kbOpts:{weight:Hl,kbExpr:El.textInputFocus,primary:12}})),e.CursorPageDownSelect=Pr(new s({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:void 0,kbOpts:{weight:Hl,kbExpr:El.textInputFocus,primary:1036}})),e.CreateCursor=Pr(new(function(e){function t(){return e.call(this,{id:"createCursor",precondition:void 0})||this}return Wl(t,e),t.prototype.runCoreEditorCommand=function(e,t){var n,r=e.context;n=t.wholeLine?wl.line(r,e.getPrimaryCursor(),!1,t.position,t.viewPosition):wl.moveTo(r,e.getPrimaryCursor(),!1,t.position,t.viewPosition);var i=e.getAll();if(i.length>1)for(var o=n.modelState?n.modelState.position:null,s=n.viewState?n.viewState.position:null,a=0,u=i.length;a<u;a++){var l=i[a];if((!o||l.modelState.selection.containsPosition(o))&&(!s||l.viewState.selection.containsPosition(s)))return i.splice(a,1),e.context.model.pushStackElement(),void e.setStates(t.source,3,i)}i.push(n),e.context.model.pushStackElement(),e.setStates(t.source,3,i)},t}(Vl))),e.LastCursorMoveToSelect=Pr(new(function(e){function t(){return e.call(this,{id:"_lastCursorMoveToSelect",precondition:void 0})||this}return Wl(t,e),t.prototype.runCoreEditorCommand=function(e,t){var n=e.context,r=e.getLastAddedCursorIndex(),i=e.getAll(),o=i.slice(0);o[r]=wl.moveTo(n,i[r],!0,t.position,t.viewPosition),e.context.model.pushStackElement(),e.setStates(t.source,3,o)},t}(Vl)));var a=function(e){function t(t){var n=e.call(this,t)||this;return n._inSelectionMode=t.inSelectionMode,n}return Wl(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,wl.moveToBeginningOfLine(e.context,e.getAll(),this._inSelectionMode)),e.reveal(!0,0,0)},t}(Vl);e.CursorHome=Pr(new a({inSelectionMode:!1,id:"cursorHome",precondition:void 0,kbOpts:{weight:Hl,kbExpr:El.textInputFocus,primary:14,mac:{primary:14,secondary:[2063]}}})),e.CursorHomeSelect=Pr(new a({inSelectionMode:!0,id:"cursorHomeSelect",precondition:void 0,kbOpts:{weight:Hl,kbExpr:El.textInputFocus,primary:1038,mac:{primary:1038,secondary:[3087]}}})),e.CursorLineStart=Pr(new(function(e){function t(){return e.call(this,{id:"cursorLineStart",precondition:void 0,kbOpts:{weight:Hl,kbExpr:El.textInputFocus,primary:0,mac:{primary:287}}})||this}return Wl(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,this._exec(e.context,e.getAll())),e.reveal(!0,0,0)},t.prototype._exec=function(e,t){for(var n=[],r=0,i=t.length;r<i;r++){var o=t[r],s=o.modelState.position.lineNumber;n[r]=il.fromModelState(o.modelState.move(!1,s,1,0))}return n},t}(Vl)));var u=function(e){function t(t){var n=e.call(this,t)||this;return n._inSelectionMode=t.inSelectionMode,n}return Wl(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,wl.moveToEndOfLine(e.context,e.getAll(),this._inSelectionMode)),e.reveal(!0,0,0)},t}(Vl);e.CursorEnd=Pr(new u({inSelectionMode:!1,id:"cursorEnd",precondition:void 0,kbOpts:{weight:Hl,kbExpr:El.textInputFocus,primary:13,mac:{primary:13,secondary:[2065]}}})),e.CursorEndSelect=Pr(new u({inSelectionMode:!0,id:"cursorEndSelect",precondition:void 0,kbOpts:{weight:Hl,kbExpr:El.textInputFocus,primary:1037,mac:{primary:1037,secondary:[3089]}}})),e.CursorLineEnd=Pr(new(function(e){function t(){return e.call(this,{id:"cursorLineEnd",precondition:void 0,kbOpts:{weight:Hl,kbExpr:El.textInputFocus,primary:0,mac:{primary:291}}})||this}return Wl(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,this._exec(e.context,e.getAll())),e.reveal(!0,0,0)},t.prototype._exec=function(e,t){for(var n=[],r=0,i=t.length;r<i;r++){var o=t[r],s=o.modelState.position.lineNumber,a=e.model.getLineMaxColumn(s);n[r]=il.fromModelState(o.modelState.move(!1,s,a,0))}return n},t}(Vl)));var l=function(e){function t(t){var n=e.call(this,t)||this;return n._inSelectionMode=t.inSelectionMode,n}return Wl(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,wl.moveToBeginningOfBuffer(e.context,e.getAll(),this._inSelectionMode)),e.reveal(!0,0,0)},t}(Vl);e.CursorTop=Pr(new l({inSelectionMode:!1,id:"cursorTop",precondition:void 0,kbOpts:{weight:Hl,kbExpr:El.textInputFocus,primary:2062,mac:{primary:2064}}})),e.CursorTopSelect=Pr(new l({inSelectionMode:!0,id:"cursorTopSelect",precondition:void 0,kbOpts:{weight:Hl,kbExpr:El.textInputFocus,primary:3086,mac:{primary:3088}}}));var c=function(e){function t(t){var n=e.call(this,t)||this;return n._inSelectionMode=t.inSelectionMode,n}return Wl(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,wl.moveToEndOfBuffer(e.context,e.getAll(),this._inSelectionMode)),e.reveal(!0,0,0)},t}(Vl);e.CursorBottom=Pr(new c({inSelectionMode:!1,id:"cursorBottom",precondition:void 0,kbOpts:{weight:Hl,kbExpr:El.textInputFocus,primary:2061,mac:{primary:2066}}})),e.CursorBottomSelect=Pr(new c({inSelectionMode:!0,id:"cursorBottomSelect",precondition:void 0,kbOpts:{weight:Hl,kbExpr:El.textInputFocus,primary:3085,mac:{primary:3090}}}));var d=function(e){function t(){return e.call(this,{id:"editorScroll",precondition:void 0,description:Al.description})||this}return Wl(t,e),t.prototype.runCoreEditorCommand=function(e,t){var n=Al.parse(t);n&&this._runEditorScroll(e,t.source,n)},t.prototype._runEditorScroll=function(e,t,n){var r=this._computeDesiredScrollTop(e.context,n);if(n.revealCursor){var i=e.context.getCompletelyVisibleViewRangeAtScrollTop(r);e.setStates(t,3,[wl.findPositionInViewportIfOutside(e.context,e.getPrimaryCursor(),i,n.select)])}e.scrollTo(r)},t.prototype._computeDesiredScrollTop=function(e,t){if(1===t.unit){var n=e.getCompletelyVisibleModelRange(),r=void 0;r=1===t.direction?Math.max(1,n.startLineNumber-t.value):Math.min(e.model.getLineCount(),n.startLineNumber+t.value);var i=e.convertModelPositionToViewPosition(new Lt(r,1));return e.getVerticalOffsetForViewLine(i.lineNumber)}var o;o=3===t.unit?e.config.pageSize*t.value:4===t.unit?Math.round(e.config.pageSize/2)*t.value:t.value;var s=(1===t.direction?-1:1)*o;return e.getCurrentScrollTop()+s*e.config.lineHeight},t}(Vl);e.EditorScrollImpl=d,e.EditorScroll=Pr(new d),e.ScrollLineUp=Pr(new(function(t){function n(){return t.call(this,{id:"scrollLineUp",precondition:void 0,kbOpts:{weight:Hl,kbExpr:El.textInputFocus,primary:2064,mac:{primary:267}}})||this}return Wl(n,t),n.prototype.runCoreEditorCommand=function(t,n){e.EditorScroll._runEditorScroll(t,n.source,{direction:1,unit:2,value:1,revealCursor:!1,select:!1})},n}(Vl))),e.ScrollPageUp=Pr(new(function(t){function n(){return t.call(this,{id:"scrollPageUp",precondition:void 0,kbOpts:{weight:Hl,kbExpr:El.textInputFocus,primary:2059,win:{primary:523},linux:{primary:523}}})||this}return Wl(n,t),n.prototype.runCoreEditorCommand=function(t,n){e.EditorScroll._runEditorScroll(t,n.source,{direction:1,unit:3,value:1,revealCursor:!1,select:!1})},n}(Vl))),e.ScrollLineDown=Pr(new(function(t){function n(){return t.call(this,{id:"scrollLineDown",precondition:void 0,kbOpts:{weight:Hl,kbExpr:El.textInputFocus,primary:2066,mac:{primary:268}}})||this}return Wl(n,t),n.prototype.runCoreEditorCommand=function(t,n){e.EditorScroll._runEditorScroll(t,n.source,{direction:2,unit:2,value:1,revealCursor:!1,select:!1})},n}(Vl))),e.ScrollPageDown=Pr(new(function(t){function n(){return t.call(this,{id:"scrollPageDown",precondition:void 0,kbOpts:{weight:Hl,kbExpr:El.textInputFocus,primary:2060,win:{primary:524},linux:{primary:524}}})||this}return Wl(n,t),n.prototype.runCoreEditorCommand=function(t,n){e.EditorScroll._runEditorScroll(t,n.source,{direction:2,unit:3,value:1,revealCursor:!1,select:!1})},n}(Vl)));var h=function(e){function t(t){var n=e.call(this,t)||this;return n._inSelectionMode=t.inSelectionMode,n}return Wl(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[wl.word(e.context,e.getPrimaryCursor(),this._inSelectionMode,t.position)]),e.reveal(!0,0,0)},t}(Vl);e.WordSelect=Pr(new h({inSelectionMode:!1,id:"_wordSelect",precondition:void 0})),e.WordSelectDrag=Pr(new h({inSelectionMode:!0,id:"_wordSelectDrag",precondition:void 0})),e.LastCursorWordSelect=Pr(new(function(e){function t(){return e.call(this,{id:"lastCursorWordSelect",precondition:void 0})||this}return Wl(t,e),t.prototype.runCoreEditorCommand=function(e,t){var n=e.context,r=e.getLastAddedCursorIndex(),i=e.getAll(),o=i.slice(0),s=i[r];o[r]=wl.word(n,s,s.modelState.hasSelection(),t.position),n.model.pushStackElement(),e.setStates(t.source,3,o)},t}(Vl)));var f=function(e){function t(t){var n=e.call(this,t)||this;return n._inSelectionMode=t.inSelectionMode,n}return Wl(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[wl.line(e.context,e.getPrimaryCursor(),this._inSelectionMode,t.position,t.viewPosition)]),e.reveal(!1,0,0)},t}(Vl);e.LineSelect=Pr(new f({inSelectionMode:!1,id:"_lineSelect",precondition:void 0})),e.LineSelectDrag=Pr(new f({inSelectionMode:!0,id:"_lineSelectDrag",precondition:void 0}));var p=function(e){function t(t){var n=e.call(this,t)||this;return n._inSelectionMode=t.inSelectionMode,n}return Wl(t,e),t.prototype.runCoreEditorCommand=function(e,t){var n=e.getLastAddedCursorIndex(),r=e.getAll(),i=r.slice(0);i[n]=wl.line(e.context,r[n],this._inSelectionMode,t.position,t.viewPosition),e.context.model.pushStackElement(),e.setStates(t.source,3,i)},t}(Vl);e.LastCursorLineSelect=Pr(new p({inSelectionMode:!1,id:"lastCursorLineSelect",precondition:void 0})),e.LastCursorLineSelectDrag=Pr(new p({inSelectionMode:!0,id:"lastCursorLineSelectDrag",precondition:void 0})),e.ExpandLineSelection=Pr(new(function(e){function t(){return e.call(this,{id:"expandLineSelection",precondition:void 0,kbOpts:{weight:Hl,kbExpr:El.textInputFocus,primary:2090}})||this}return Wl(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,wl.expandLineSelection(e.context,e.getAll())),e.reveal(!0,0,0)},t}(Vl))),e.CancelSelection=Pr(new(function(e){function t(){return e.call(this,{id:"cancelSelection",precondition:El.hasNonEmptySelection,kbOpts:{weight:Hl,kbExpr:El.textInputFocus,primary:9,secondary:[1033]}})||this}return Wl(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[wl.cancelSelection(e.context,e.getPrimaryCursor())]),e.reveal(!0,0,0)},t}(Vl))),e.RemoveSecondaryCursors=Pr(new(function(e){function t(){return e.call(this,{id:"removeSecondaryCursors",precondition:El.hasMultipleSelections,kbOpts:{weight:Hl+1,kbExpr:El.textInputFocus,primary:9,secondary:[1033]}})||this}return Wl(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[e.getPrimaryCursor()]),e.reveal(!0,0,0)},t}(Vl))),e.RevealLine=Pr(new(function(e){function t(){return e.call(this,{id:"revealLine",precondition:void 0,description:Pl.description})||this}return Wl(t,e),t.prototype.runCoreEditorCommand=function(e,t){var n=t,r=(n.lineNumber||0)+1;r<1&&(r=1);var i=e.context.model.getLineCount();r>i&&(r=i);var o=new Yr(r,1,r,e.context.model.getLineMaxColumn(r)),s=0;if(n.at)switch(n.at){case Pl.RawAtArgument.Top:s=3;break;case Pl.RawAtArgument.Center:s=1;break;case Pl.RawAtArgument.Bottom:s=4}var a=e.context.convertModelRangeToViewRange(o);e.revealRange(!1,a,s,0)},t}(Vl))),e.SelectAll=Pr(new(function(e){function t(){return e.call(this,{id:"selectAll",precondition:void 0})||this}return Wl(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[wl.selectAll(e.context,e.getPrimaryCursor())])},t}(Vl))),e.SetSelection=Pr(new(function(e){function t(){return e.call(this,{id:"setSelection",precondition:void 0})||this}return Wl(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[il.fromModelSelection(t.selection)])},t}(Vl)))}(Fl||(Fl={})),jl=Yl||(Yl={}),Bl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Wl(t,e),t.prototype.runEditorCommand=function(e,t,n){var r=t._getCursors();r&&this.runCoreEditingCommand(t,r,n||{})},t}(Ar),jl.CoreEditingCommand=Bl,jl.LineBreakInsert=Pr(new(function(e){function t(){return e.call(this,{id:"lineBreakInsert",precondition:El.writable,kbOpts:{weight:Hl,kbExpr:El.textInputFocus,primary:0,mac:{primary:301}}})||this}return Wl(t,e),t.prototype.runCoreEditingCommand=function(e,t,n){e.pushUndoStop(),e.executeCommands(this.id,Ml.lineBreakInsert(t.context.config,t.context.model,t.getAll().map((function(e){return e.modelState.selection}))))},t}(Bl))),jl.Outdent=Pr(new(function(e){function t(){return e.call(this,{id:"outdent",precondition:El.writable,kbOpts:{weight:Hl,kbExpr:Rn.and(El.editorTextFocus,El.tabDoesNotMoveFocus),primary:1026}})||this}return Wl(t,e),t.prototype.runCoreEditingCommand=function(e,t,n){e.pushUndoStop(),e.executeCommands(this.id,Ml.outdent(t.context.config,t.context.model,t.getAll().map((function(e){return e.modelState.selection})))),e.pushUndoStop()},t}(Bl))),jl.Tab=Pr(new(function(e){function t(){return e.call(this,{id:"tab",precondition:El.writable,kbOpts:{weight:Hl,kbExpr:Rn.and(El.editorTextFocus,El.tabDoesNotMoveFocus),primary:2}})||this}return Wl(t,e),t.prototype.runCoreEditingCommand=function(e,t,n){e.pushUndoStop(),e.executeCommands(this.id,Ml.tab(t.context.config,t.context.model,t.getAll().map((function(e){return e.modelState.selection})))),e.pushUndoStop()},t}(Bl))),jl.DeleteLeft=Pr(new(function(e){function t(){return e.call(this,{id:"deleteLeft",precondition:El.writable,kbOpts:{weight:Hl,kbExpr:El.textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})||this}return Wl(t,e),t.prototype.runCoreEditingCommand=function(e,t,n){var r=gl.deleteLeft(t.getPrevEditOperationType(),t.context.config,t.context.model,t.getAll().map((function(e){return e.modelState.selection}))),i=r[0],o=r[1];i&&e.pushUndoStop(),e.executeCommands(this.id,o),t.setPrevEditOperationType(2)},t}(Bl))),jl.DeleteRight=Pr(new(function(e){function t(){return e.call(this,{id:"deleteRight",precondition:El.writable,kbOpts:{weight:Hl,kbExpr:El.textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})||this}return Wl(t,e),t.prototype.runCoreEditingCommand=function(e,t,n){var r=gl.deleteRight(t.getPrevEditOperationType(),t.context.config,t.context.model,t.getAll().map((function(e){return e.modelState.selection}))),i=r[0],o=r[1];i&&e.pushUndoStop(),e.executeCommands(this.id,o),t.setPrevEditOperationType(3)},t}(Bl)));var Ul=function(e){function t(t){var n=e.call(this,t)||this;return n._editorHandler=t.editorHandler,n._inputHandler=t.inputHandler,n}return Wl(t,e),t.prototype.runCommand=function(e,t){var n=e.get(xt).getFocusedCodeEditor();if(n&&n.hasTextFocus())return this._runEditorHandler(e,n,t);var r=document.activeElement;if(!(r&&["input","textarea"].indexOf(r.tagName.toLowerCase())>=0)){var i=e.get(xt).getActiveCodeEditor();return i?(i.focus(),this._runEditorHandler(e,i,t)):void 0}document.execCommand(this._inputHandler)},t.prototype._runEditorHandler=function(e,t,n){var r=this._editorHandler;"string"==typeof r?t.trigger("keyboard",r,n):((n=n||{}).source="keyboard",r.runEditorCommand(e,t,n))},t}(Or),ql=function(e){function t(t,n,r){var i=e.call(this,{id:t,precondition:void 0,description:r})||this;return i._handlerId=n,i}return Wl(t,e),t.prototype.runCommand=function(e,t){var n=e.get(xt).getFocusedCodeEditor();n&&n.trigger("keyboard",this._handlerId,t)},t}(Or);function Kl(e,t){zl(new ql("default:"+e,e)),zl(new ql(e,e,t))}zl(new Ul({editorHandler:Fl.SelectAll,inputHandler:"selectAll",id:"editor.action.selectAll",precondition:El.textInputFocus,kbOpts:{weight:Hl,kbExpr:null,primary:2079},menubarOpts:{menuId:22,group:"1_basic",title:Ee({key:"miSelectAll",comment:["&& denotes a mnemonic"]},"&&Select All"),order:1}})),zl(new Ul({editorHandler:Ol.Undo,inputHandler:"undo",id:Ol.Undo,precondition:El.writable,kbOpts:{weight:Hl,kbExpr:El.textInputFocus,primary:2104},menubarOpts:{menuId:14,group:"1_do",title:Ee({key:"miUndo",comment:["&& denotes a mnemonic"]},"&&Undo"),order:1}})),zl(new ql("default:"+Ol.Undo,Ol.Undo)),zl(new Ul({editorHandler:Ol.Redo,inputHandler:"redo",id:Ol.Redo,precondition:El.writable,kbOpts:{weight:Hl,kbExpr:El.textInputFocus,primary:2103,secondary:[3128],mac:{primary:3128}},menubarOpts:{menuId:14,group:"1_do",title:Ee({key:"miRedo",comment:["&& denotes a mnemonic"]},"&&Redo"),order:2}})),zl(new ql("default:"+Ol.Redo,Ol.Redo)),Kl(Ol.Type,{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]}),Kl(Ol.ReplacePreviousChar),Kl(Ol.CompositionStart),Kl(Ol.CompositionEnd),Kl(Ol.Paste),Kl(Ol.Cut);var Gl="base.contributions.json";var $l=new(function(){function e(){this._onDidChangeSchema=new $t,this.schemasById={}}return e.prototype.registerSchema=function(e,t){var n;this.schemasById[(n=e,n.length>0&&"#"===n.charAt(n.length-1)?n.substring(0,n.length-1):n)]=t,this._onDidChangeSchema.fire(e)},e.prototype.notifySchemaChanged=function(e){this._onDidChangeSchema.fire(e)},e}());kr.add(Gl,$l);var Zl="base.contributions.colors",Xl=new(function(){function e(){this._onDidChangeSchema=new $t,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}return e.prototype.registerColor=function(e,t,n,r,i){void 0===r&&(r=!1);var o={id:e,description:n,defaults:t,needsTransparency:r,deprecationMessage:i};this.colorsById[e]=o;var s={type:"string",description:n,format:"color-hex",default:"#ff0000"};return i&&(s.deprecationMessage=i),this.colorSchema.properties[e]=s,this.colorReferenceSchema.enum.push(e),this.colorReferenceSchema.enumDescriptions.push(n),this._onDidChangeSchema.fire(),e},e.prototype.resolveDefaultColor=function(e,t){var n=this.colorsById[e];if(n&&n.defaults)return Nd(n.defaults[t.type],t)},e.prototype.getColorSchema=function(){return this.colorSchema},e.prototype.toString=function(){var e=this;return Object.keys(this.colorsById).sort((function(e,t){var n=-1===e.indexOf(".")?0:1,r=-1===t.indexOf(".")?0:1;return n!==r?n-r:e.localeCompare(t)})).map((function(t){return"- `"+t+"`: "+e.colorsById[t].description})).join("\n")},e}());function Jl(e,t,n,r,i){return Xl.registerColor(e,t,n,r,i)}kr.add(Zl,Xl);var Ql,ec,tc=Jl("foreground",{dark:"#CCCCCC",light:"#616161",hc:"#FFFFFF"},Ee("foreground","Overall foreground color. This color is only used if not overridden by a component.")),nc=Jl("errorForeground",{dark:"#F48771",light:"#A1260D",hc:"#F48771"},Ee("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component.")),rc=Jl("focusBorder",{dark:Ou.fromHex("#0E639C").transparent(.8),light:Ou.fromHex("#007ACC").transparent(.4),hc:"#F38518"},Ee("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),ic=Jl("contrastBorder",{light:null,dark:null,hc:"#6FC3DF"},Ee("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),oc=Jl("contrastActiveBorder",{light:null,dark:null,hc:rc},Ee("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast.")),sc=(Jl("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hc:"#3794FF"},Ee("textLinkForeground","Foreground color for links in text.")),Jl("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hc:Ou.black},Ee("textCodeBlockBackground","Background color for code blocks in text.")),Jl("widget.shadow",{dark:"#000000",light:"#A8A8A8",hc:null},Ee("widgetShadow","Shadow color of widgets such as find/replace inside the editor."))),ac=Jl("input.background",{dark:"#3C3C3C",light:Ou.white,hc:Ou.black},Ee("inputBoxBackground","Input box background.")),uc=Jl("input.foreground",{dark:tc,light:tc,hc:tc},Ee("inputBoxForeground","Input box foreground.")),lc=Jl("input.border",{dark:null,light:null,hc:ic},Ee("inputBoxBorder","Input box border.")),cc=Jl("inputOption.activeBorder",{dark:"#007ACC00",light:"#007ACC00",hc:ic},Ee("inputBoxActiveOptionBorder","Border color of activated options in input fields.")),dc=Jl("inputOption.activeBackground",{dark:Ed(rc,.5),light:Ed(rc,.3),hc:null},Ee("inputOption.activeBackground","Background color of activated options in input fields.")),hc=Jl("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hc:Ou.black},Ee("inputValidationInfoBackground","Input validation background color for information severity.")),fc=Jl("inputValidation.infoForeground",{dark:null,light:null,hc:null},Ee("inputValidationInfoForeground","Input validation foreground color for information severity.")),pc=Jl("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hc:ic},Ee("inputValidationInfoBorder","Input validation border color for information severity.")),gc=Jl("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hc:Ou.black},Ee("inputValidationWarningBackground","Input validation background color for warning severity.")),mc=Jl("inputValidation.warningForeground",{dark:null,light:null,hc:null},Ee("inputValidationWarningForeground","Input validation foreground color for warning severity.")),_c=Jl("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hc:ic},Ee("inputValidationWarningBorder","Input validation border color for warning severity.")),yc=Jl("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hc:Ou.black},Ee("inputValidationErrorBackground","Input validation background color for error severity.")),vc=Jl("inputValidation.errorForeground",{dark:null,light:null,hc:null},Ee("inputValidationErrorForeground","Input validation foreground color for error severity.")),bc=Jl("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hc:ic},Ee("inputValidationErrorBorder","Input validation border color for error severity.")),wc=Jl("dropdown.background",{dark:"#3C3C3C",light:Ou.white,hc:Ou.black},Ee("dropdownBackground","Dropdown background.")),Cc=Jl("dropdown.foreground",{dark:"#F0F0F0",light:null,hc:Ou.white},Ee("dropdownForeground","Dropdown foreground.")),Sc=Jl("list.focusBackground",{dark:"#062F4A",light:"#D6EBFF",hc:null},Ee("listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),xc=Jl("list.focusForeground",{dark:null,light:null,hc:null},Ee("listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Lc=Jl("list.activeSelectionBackground",{dark:"#094771",light:"#0074E8",hc:null},Ee("listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),kc=Jl("list.activeSelectionForeground",{dark:Ou.white,light:Ou.white,hc:null},Ee("listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Mc=Jl("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hc:null},Ee("listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),Dc=Jl("list.inactiveSelectionForeground",{dark:null,light:null,hc:null},Ee("listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),Ec=Jl("list.inactiveFocusBackground",{dark:null,light:null,hc:null},Ee("listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),Tc=Jl("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hc:null},Ee("listHoverBackground","List/Tree background when hovering over items using the mouse.")),Nc=Jl("list.hoverForeground",{dark:null,light:null,hc:null},Ee("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),Oc=Jl("list.dropBackground",{dark:Sc,light:Sc,hc:null},Ee("listDropBackground","List/Tree drag and drop background when moving items around using the mouse.")),Ac=(Jl("list.highlightForeground",{dark:"#0097fb",light:"#0066BF",hc:rc},Ee("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")),Jl("listFilterWidget.background",{light:"#efc1ad",dark:"#653723",hc:Ou.black},Ee("listFilterWidgetBackground","Background color of the type filter widget in lists and trees."))),Ic=Jl("listFilterWidget.outline",{dark:Ou.transparent,light:Ou.transparent,hc:"#f38518"},Ee("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),Pc=Jl("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hc:ic},Ee("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),Rc=Jl("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hc:"#a9a9a9"},Ee("treeIndentGuidesStroke","Tree stroke color for the indentation guides.")),Fc=(Jl("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hc:Ou.white},Ee("pickerGroupForeground","Quick picker color for grouping labels.")),Jl("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hc:Ou.white},Ee("pickerGroupBorder","Quick picker color for grouping borders.")),Jl("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hc:Ou.black},Ee("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count.")),Jl("badge.foreground",{dark:Ou.white,light:"#333",hc:Ou.white},Ee("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),Jl("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hc:null},Ee("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled."))),Yc=Jl("scrollbarSlider.background",{dark:Ou.fromHex("#797979").transparent(.4),light:Ou.fromHex("#646464").transparent(.4),hc:Ed(ic,.6)},Ee("scrollbarSliderBackground","Scrollbar slider background color.")),jc=Jl("scrollbarSlider.hoverBackground",{dark:Ou.fromHex("#646464").transparent(.7),light:Ou.fromHex("#646464").transparent(.7),hc:Ed(ic,.8)},Ee("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),Bc=Jl("scrollbarSlider.activeBackground",{dark:Ou.fromHex("#BFBFBF").transparent(.4),light:Ou.fromHex("#000000").transparent(.6),hc:ic},Ee("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),Wc=(Jl("progressBar.background",{dark:Ou.fromHex("#0E70C0"),light:Ou.fromHex("#0E70C0"),hc:ic},Ee("progressBarBackground","Background color of the progress bar that can show for long running operations.")),Jl("menu.border",{dark:null,light:null,hc:ic},Ee("menuBorder","Border color of menus."))),Hc=Jl("menu.foreground",{dark:Cc,light:tc,hc:Cc},Ee("menuForeground","Foreground color of menu items.")),Vc=Jl("menu.background",{dark:wc,light:wc,hc:wc},Ee("menuBackground","Background color of menu items.")),zc=Jl("menu.selectionForeground",{dark:kc,light:kc,hc:kc},Ee("menuSelectionForeground","Foreground color of the selected menu item in menus.")),Uc=Jl("menu.selectionBackground",{dark:Lc,light:Lc,hc:Lc},Ee("menuSelectionBackground","Background color of the selected menu item in menus.")),qc=Jl("menu.selectionBorder",{dark:null,light:null,hc:oc},Ee("menuSelectionBorder","Border color of the selected menu item in menus.")),Kc=Jl("menu.separatorBackground",{dark:"#BBBBBB",light:"#888888",hc:ic},Ee("menuSeparatorBackground","Color of a separator menu item in menus.")),Gc=Jl("editorError.foreground",{dark:"#F48771",light:"#E51400",hc:null},Ee("editorError.foreground","Foreground color of error squigglies in the editor.")),$c=Jl("editorError.border",{dark:null,light:null,hc:Ou.fromHex("#E47777").transparent(.8)},Ee("errorBorder","Border color of error boxes in the editor.")),Zc=Jl("editorWarning.foreground",{dark:"#CCA700",light:"#E9A700",hc:null},Ee("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),Xc=Jl("editorWarning.border",{dark:null,light:null,hc:Ou.fromHex("#FFCC00").transparent(.8)},Ee("warningBorder","Border color of warning boxes in the editor.")),Jc=Jl("editorInfo.foreground",{dark:"#75BEFF",light:"#75BEFF",hc:null},Ee("editorInfo.foreground","Foreground color of info squigglies in the editor.")),Qc=Jl("editorInfo.border",{dark:null,light:null,hc:Ou.fromHex("#75BEFF").transparent(.8)},Ee("infoBorder","Border color of info boxes in the editor.")),ed=Jl("editorHint.foreground",{dark:Ou.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hc:null},Ee("editorHint.foreground","Foreground color of hint squigglies in the editor.")),td=Jl("editorHint.border",{dark:null,light:null,hc:Ou.fromHex("#eeeeee").transparent(.8)},Ee("hintBorder","Border color of hint boxes in the editor.")),nd=Jl("editor.background",{light:"#fffffe",dark:"#1E1E1E",hc:Ou.black},Ee("editorBackground","Editor background color.")),rd=Jl("editor.foreground",{light:"#333333",dark:"#BBBBBB",hc:Ou.white},Ee("editorForeground","Editor default foreground color.")),id=Jl("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hc:"#0C141F"},Ee("editorWidgetBackground","Background color of editor widgets, such as find/replace.")),od=Jl("editorWidget.foreground",{dark:tc,light:tc,hc:tc},Ee("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),sd=Jl("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hc:ic},Ee("editorWidgetBorder","Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.")),ad=Jl("editorWidget.resizeBorder",{light:null,dark:null,hc:null},Ee("editorWidgetResizeBorder","Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),ud=Jl("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hc:"#f3f518"},Ee("editorSelectionBackground","Color of the editor selection.")),ld=Jl("editor.selectionForeground",{light:null,dark:null,hc:"#000000"},Ee("editorSelectionForeground","Color of the selected text for high contrast.")),cd=Jl("editor.inactiveSelectionBackground",{light:Ed(ud,.5),dark:Ed(ud,.5),hc:Ed(ud,.5)},Ee("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),dd=Jl("editor.selectionHighlightBackground",{light:Td(ud,nd,.3,.6),dark:Td(ud,nd,.3,.6),hc:null},Ee("editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0),hd=(Jl("editor.selectionHighlightBorder",{light:null,dark:null,hc:oc},Ee("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),Jl("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hc:null},Ee("editorFindMatch","Color of the current search match."))),fd=Jl("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hc:null},Ee("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0),pd=Jl("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hc:null},Ee("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),gd=Jl("editor.findMatchBorder",{light:null,dark:null,hc:oc},Ee("editorFindMatchBorder","Border color of the current search match.")),md=Jl("editor.findMatchHighlightBorder",{light:null,dark:null,hc:oc},Ee("findMatchHighlightBorder","Border color of the other search matches.")),_d=Jl("editor.findRangeHighlightBorder",{dark:null,light:null,hc:Ed(oc,.4)},Ee("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),yd=(Jl("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hc:"#ADD6FF26"},Ee("hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0),Jl("editorHoverWidget.background",{light:id,dark:id,hc:id},Ee("hoverBackground","Background color of the editor hover."))),vd=(Jl("editorHoverWidget.border",{light:sd,dark:sd,hc:sd},Ee("hoverBorder","Border color of the editor hover.")),Jl("editorHoverWidget.statusBarBackground",{dark:(Ql=yd,ec=.2,function(e){var t=Nd(Ql,e);if(t)return t.lighten(ec)}),light:Dd(yd,.05),hc:id},Ee("statusBarBackground","Background color of the editor hover status bar.")),Jl("editorLink.activeForeground",{dark:"#4E94CE",light:Ou.blue,hc:Ou.cyan},Ee("activeLinkForeground","Color of active links.")),new Ou(new Eu(155,185,85,.2))),bd=new Ou(new Eu(255,0,0,.2)),wd=Jl("diffEditor.insertedTextBackground",{dark:vd,light:vd,hc:null},Ee("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),Cd=Jl("diffEditor.removedTextBackground",{dark:bd,light:bd,hc:null},Ee("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),Sd=Jl("diffEditor.insertedTextBorder",{dark:null,light:null,hc:"#33ff2eff"},Ee("diffEditorInsertedOutline","Outline color for the text that got inserted.")),xd=Jl("diffEditor.removedTextBorder",{dark:null,light:null,hc:"#FF008F"},Ee("diffEditorRemovedOutline","Outline color for text that got removed.")),Ld=Jl("diffEditor.border",{dark:null,light:null,hc:ic},Ee("diffEditorBorder","Border color between the two text editors.")),kd=(Jl("editor.snippetTabstopHighlightBackground",{dark:new Ou(new Eu(124,124,124,.3)),light:new Ou(new Eu(10,50,100,.2)),hc:new Ou(new Eu(124,124,124,.3))},Ee("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),Jl("editor.snippetTabstopHighlightBorder",{dark:null,light:null,hc:null},Ee("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),Jl("editor.snippetFinalTabstopHighlightBackground",{dark:null,light:null,hc:null},Ee("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),Jl("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new Ou(new Eu(10,50,100,.5)),hc:"#525252"},Ee("snippetFinalTabstopHighlightBorder","Highlight border color of the final stabstop of a snippet.")),Jl("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hc:"#AB5A00"},Ee("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0)),Md=(Jl("editorOverviewRuler.selectionHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hc:"#A0A0A0CC"},Ee("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),Jl("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hc:"#AB5A00"},Ee("minimapFindMatchHighlight","Minimap marker color for find matches."),!0));function Dd(e,t){return function(n){var r=Nd(e,n);if(r)return r.darken(t)}}function Ed(e,t){return function(n){var r=Nd(e,n);if(r)return r.transparent(t)}}function Td(e,t,n,r){return function(i){var o=Nd(e,i);if(o){var s=Nd(t,i);return s?o.isDarkerThan(s)?Ou.getLighterColor(o,s,n).transparent(r):Ou.getDarkerColor(o,s,n).transparent(r):o.transparent(n*r)}}}function Nd(e,t){if(null!==e)return"string"==typeof e?"#"===e[0]?Ou.fromHex(e):t.getColor(e):e instanceof Ou?e:"function"==typeof e?e(t):void 0}var Od=kr.as(Gl);Od.registerSchema("vscode://schemas/workbench-colors",Xl.getColorSchema());var Ad=new As((function(){return Od.notifySchemaChanged("vscode://schemas/workbench-colors")}),200);Xl.onDidChangeSchema((function(){Ad.isScheduled()||Ad.schedule()}));var Id=Ct("themeService");function Pd(e){return{id:e}}var Rd="dark",Fd="hc";function Yd(e){switch(e){case Rd:return"vs-dark";case Fd:return"hc-black";default:return"vs"}}var jd="base.contributions.theming",Bd=new(function(){function e(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new $t}return e.prototype.onThemeChange=function(e){var t=this;return this.themingParticipants.push(e),this.onThemingParticipantAddedEmitter.fire(e),Pt((function(){var n=t.themingParticipants.indexOf(e);t.themingParticipants.splice(n,1)}))},e.prototype.getThemingParticipants=function(){return this.themingParticipants},e}());function Wd(e){return Bd.onThemeChange(e)}kr.add(jd,Bd);var Hd=function(){function e(e){this._editor=e,this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationId=null,this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null,this._startPosition=this._editor.getPosition()}return e.prototype.dispose=function(){this._editor.deltaDecorations(this._allDecorations(),[]),this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationId=null,this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null},e.prototype.reset=function(){this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationId=null,this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null},e.prototype.getCount=function(){return this._decorations.length},e.prototype.getFindScope=function(){return this._findScopeDecorationId?this._editor.getModel().getDecorationRange(this._findScopeDecorationId):null},e.prototype.getStartPosition=function(){return this._startPosition},e.prototype.setStartPosition=function(e){this._startPosition=e,this.setCurrentFindMatch(null)},e.prototype._getDecorationIndex=function(e){var t=this._decorations.indexOf(e);return t>=0?t+1:1},e.prototype.getCurrentMatchesPosition=function(t){for(var n=0,r=this._editor.getModel().getDecorationsInRange(t);n<r.length;n++){var i=r[n],o=i.options;if(o===e._FIND_MATCH_DECORATION||o===e._CURRENT_FIND_MATCH_DECORATION)return this._getDecorationIndex(i.id)}return 1},e.prototype.setCurrentFindMatch=function(t){var n=this,r=null,i=0;if(t)for(var o=0,s=this._decorations.length;o<s;o++){var a=this._editor.getModel().getDecorationRange(this._decorations[o]);if(t.equalsRange(a)){r=this._decorations[o],i=o+1;break}}return null===this._highlightedDecorationId&&null===r||this._editor.changeDecorations((function(t){if(null!==n._highlightedDecorationId&&(t.changeDecorationOptions(n._highlightedDecorationId,e._FIND_MATCH_DECORATION),n._highlightedDecorationId=null),null!==r&&(n._highlightedDecorationId=r,t.changeDecorationOptions(n._highlightedDecorationId,e._CURRENT_FIND_MATCH_DECORATION)),null!==n._rangeHighlightDecorationId&&(t.removeDecoration(n._rangeHighlightDecorationId),n._rangeHighlightDecorationId=null),null!==r){var i=n._editor.getModel().getDecorationRange(r);if(i.startLineNumber!==i.endLineNumber&&1===i.endColumn){var o=i.endLineNumber-1,s=n._editor.getModel().getLineMaxColumn(o);i=new Yr(i.startLineNumber,i.startColumn,o,s)}n._rangeHighlightDecorationId=t.addDecoration(i,e._RANGE_HIGHLIGHT_DECORATION)}})),i},e.prototype.set=function(t,n){var r=this;this._editor.changeDecorations((function(i){var o=e._FIND_MATCH_DECORATION,s=[];if(t.length>1e3){o=e._FIND_MATCH_NO_OVERVIEW_DECORATION;for(var a=r._editor.getModel().getLineCount(),u=r._editor.getLayoutInfo().height/a,l=Math.max(2,Math.ceil(3/u)),c=t[0].range.startLineNumber,d=t[0].range.endLineNumber,h=1,f=t.length;h<f;h++){var p=t[h].range;d+l>=p.startLineNumber?p.endLineNumber>d&&(d=p.endLineNumber):(s.push({range:new Yr(c,1,d,1),options:e._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),c=p.startLineNumber,d=p.endLineNumber)}s.push({range:new Yr(c,1,d,1),options:e._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}var g=new Array(t.length);for(h=0,f=t.length;h<f;h++)g[h]={range:t[h].range,options:o};r._decorations=i.deltaDecorations(r._decorations,g),r._overviewRulerApproximateDecorations=i.deltaDecorations(r._overviewRulerApproximateDecorations,s),r._rangeHighlightDecorationId&&(i.removeDecoration(r._rangeHighlightDecorationId),r._rangeHighlightDecorationId=null),r._findScopeDecorationId&&(i.removeDecoration(r._findScopeDecorationId),r._findScopeDecorationId=null),n&&(r._findScopeDecorationId=i.addDecoration(n,e._FIND_SCOPE_DECORATION))}))},e.prototype.matchBeforePosition=function(e){if(0===this._decorations.length)return null;for(var t=this._decorations.length-1;t>=0;t--){var n=this._decorations[t],r=this._editor.getModel().getDecorationRange(n);if(r&&!(r.endLineNumber>e.lineNumber)){if(r.endLineNumber<e.lineNumber)return r;if(!(r.endColumn>e.column))return r}}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1])},e.prototype.matchAfterPosition=function(e){if(0===this._decorations.length)return null;for(var t=0,n=this._decorations.length;t<n;t++){var r=this._decorations[t],i=this._editor.getModel().getDecorationRange(r);if(i&&!(i.startLineNumber<e.lineNumber)){if(i.startLineNumber>e.lineNumber)return i;if(!(i.startColumn<e.column))return i}}return this._editor.getModel().getDecorationRange(this._decorations[0])},e.prototype._allDecorations=function(){var e=[];return e=(e=e.concat(this._decorations)).concat(this._overviewRulerApproximateDecorations),this._findScopeDecorationId&&e.push(this._findScopeDecorationId),this._rangeHighlightDecorationId&&e.push(this._rangeHighlightDecorationId),e},e._CURRENT_FIND_MATCH_DECORATION=zu.register({stickiness:1,zIndex:13,className:"currentFindMatch",showIfCollapsed:!0,overviewRuler:{color:Pd(kd),position:mi.Center},minimap:{color:Pd(Md),position:_i.Inline}}),e._FIND_MATCH_DECORATION=zu.register({stickiness:1,className:"findMatch",showIfCollapsed:!0,overviewRuler:{color:Pd(kd),position:mi.Center},minimap:{color:Pd(Md),position:_i.Inline}}),e._FIND_MATCH_NO_OVERVIEW_DECORATION=zu.register({stickiness:1,className:"findMatch",showIfCollapsed:!0}),e._FIND_MATCH_ONLY_OVERVIEW_DECORATION=zu.register({stickiness:1,overviewRuler:{color:Pd(kd),position:mi.Center}}),e._RANGE_HIGHLIGHT_DECORATION=zu.register({stickiness:1,className:"rangeHighlight",isWholeLine:!0}),e._FIND_SCOPE_DECORATION=zu.register({className:"findScope",isWholeLine:!0}),e}(),Vd=function(){function e(e,t,n){this._editorSelection=e,this._ranges=t,this._replaceStrings=n,this._trackedEditorSelectionId=null}return e.prototype.getEditOperations=function(e,t){if(this._ranges.length>0){for(var n=[],r=0;r<this._ranges.length;r++)n.push({range:this._ranges[r],text:this._replaceStrings[r]});n.sort((function(e,t){return Yr.compareRangesUsingStarts(e.range,t.range)}));var i=[],o=n[0];for(r=1;r<n.length;r++)o.range.endLineNumber===n[r].range.startLineNumber&&o.range.endColumn===n[r].range.startColumn?(o.range=o.range.plusRange(n[r].range),o.text=o.text+n[r].text):(i.push(o),o=n[r]);i.push(o);for(var s=0,a=i;s<a.length;s++){var u=a[s];t.addEditOperation(u.range,u.text)}}this._trackedEditorSelectionId=t.trackSelection(this._editorSelection)},e.prototype.computeCursorState=function(e,t){return t.getTrackedSelection(this._trackedEditorSelectionId)},e}();function zd(e,t){return e&&""!==e[0]?e[0].toUpperCase()===e[0]?t.toUpperCase():e[0].toLowerCase()===e[0]?t.toLowerCase():(n=e[0][0],void 0===r&&(r=!1),n&&(r&&(n=n.replace(/\\./g,"")),n.toLowerCase()!==n)?function(e,t,n){return-1!==e[0].indexOf(n)&&-1!==t.indexOf(n)&&e[0].split(n).length===t.split(n).length}(e,t,"-")?function(e,t,n){var r=t.split(n),i=e[0].split(n),o="";return r.forEach((function(e,t){o+=zd([i[t]],e)+n})),o.slice(0,-1)}(e,t,"-"):t[0].toUpperCase()+t.substr(1):t):t;var n,r}var Ud=function(e){this.staticValue=e,this.kind=0},qd=function(e){this.pieces=e,this.kind=1},Kd=function(){function e(e){e&&0!==e.length?1===e.length&&null!==e[0].staticValue?this._state=new Ud(e[0].staticValue):this._state=new qd(e):this._state=new Ud("")}return e.fromStaticValue=function(t){return new e([Gd.staticValue(t)])},Object.defineProperty(e.prototype,"hasReplacementPatterns",{get:function(){return 1===this._state.kind},enumerable:!0,configurable:!0}),e.prototype.buildReplaceString=function(t,n){if(0===this._state.kind)return n?zd(t,this._state.staticValue):this._state.staticValue;for(var r="",i=0,o=this._state.pieces.length;i<o;i++){var s=this._state.pieces[i];null===s.staticValue?r+=e._substitute(s.matchIndex,t):r+=s.staticValue}return r},e._substitute=function(e,t){if(null===t)return"";if(0===e)return t[0];for(var n="";e>0;){if(e<t.length)return(t[e]||"")+n;n=String(e%10)+n,e=Math.floor(e/10)}return"$"+n},e}(),Gd=function(){function e(e,t){this.staticValue=e,this.matchIndex=t}return e.staticValue=function(t){return new e(t,-1)},e.matchIndex=function(t){return new e(null,t)},e}(),$d=function(){function e(e){this._source=e,this._lastCharIndex=0,this._result=[],this._resultLen=0,this._currentStaticPiece=""}return e.prototype.emitUnchanged=function(e){this._emitStatic(this._source.substring(this._lastCharIndex,e)),this._lastCharIndex=e},e.prototype.emitStatic=function(e,t){this._emitStatic(e),this._lastCharIndex=t},e.prototype._emitStatic=function(e){0!==e.length&&(this._currentStaticPiece+=e)},e.prototype.emitMatchIndex=function(e,t){0!==this._currentStaticPiece.length&&(this._result[this._resultLen++]=Gd.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),this._result[this._resultLen++]=Gd.matchIndex(e),this._lastCharIndex=t},e.prototype.finalize=function(){return this.emitUnchanged(this._source.length),0!==this._currentStaticPiece.length&&(this._result[this._resultLen++]=Gd.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),new Kd(this._result)},e}();var Zd=new qn("findWidgetVisible",!1),Xd=new qn("findInputFocussed",!1),Jd=new qn("replaceInputFocussed",!1),Qd={primary:545,mac:{primary:2593}},eh={primary:565,mac:{primary:2613}},th={primary:560,mac:{primary:2608}},nh={primary:554,mac:{primary:2602}},rh={StartFindAction:"actions.find",StartFindWithSelection:"actions.findWithSelection",NextMatchFindAction:"editor.action.nextMatchFindAction",PreviousMatchFindAction:"editor.action.previousMatchFindAction",NextSelectionMatchFindAction:"editor.action.nextSelectionMatchFindAction",PreviousSelectionMatchFindAction:"editor.action.previousSelectionMatchFindAction",StartFindReplaceAction:"editor.action.startFindReplaceAction",CloseFindWidgetCommand:"closeFindWidget",ToggleCaseSensitiveCommand:"toggleFindCaseSensitive",ToggleWholeWordCommand:"toggleFindWholeWord",ToggleRegexCommand:"toggleFindRegex",ToggleSearchScopeCommand:"toggleFindInSelection",TogglePreserveCaseCommand:"togglePreserveCase",ReplaceOneAction:"editor.action.replaceOne",ReplaceAllAction:"editor.action.replaceAll",SelectAllMatchesAction:"editor.action.selectAllMatches"},ih=function(){function e(e,t){var n=this;this._toDispose=new Rt,this._editor=e,this._state=t,this._isDisposed=!1,this._startSearchingTimer=new Ns,this._decorations=new Hd(e),this._toDispose.add(this._decorations),this._updateDecorationsScheduler=new As((function(){return n.research(!1)}),100),this._toDispose.add(this._updateDecorationsScheduler),this._toDispose.add(this._editor.onDidChangeCursorPosition((function(e){3!==e.reason&&5!==e.reason&&6!==e.reason||n._decorations.setStartPosition(n._editor.getPosition())}))),this._ignoreModelContentChanged=!1,this._toDispose.add(this._editor.onDidChangeModelContent((function(e){n._ignoreModelContentChanged||(e.isFlush&&n._decorations.reset(),n._decorations.setStartPosition(n._editor.getPosition()),n._updateDecorationsScheduler.schedule())}))),this._toDispose.add(this._state.onFindReplaceStateChange((function(e){return n._onStateChanged(e)}))),this.research(!1,this._state.searchScope)}return e.prototype.dispose=function(){this._isDisposed=!0,At(this._startSearchingTimer),this._toDispose.dispose()},e.prototype._onStateChanged=function(e){var t=this;this._isDisposed||this._editor.hasModel()&&(e.searchString||e.isReplaceRevealed||e.isRegex||e.wholeWord||e.matchCase||e.searchScope)&&(this._editor.getModel().isTooLargeForSyncing()?(this._startSearchingTimer.cancel(),this._startSearchingTimer.setIfNotSet((function(){e.searchScope?t.research(e.moveCursor,t._state.searchScope):t.research(e.moveCursor)}),240)):e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor))},e._getSearchRange=function(e,t){return t||e.getFullModelRange()},e.prototype.research=function(e,t){var n=null;null!==(n=void 0!==t?t:this._decorations.getFindScope())&&n.startLineNumber!==n.endLineNumber&&(n=1===n.endColumn?new Yr(n.startLineNumber,1,n.endLineNumber-1,this._editor.getModel().getLineMaxColumn(n.endLineNumber-1)):new Yr(n.startLineNumber,1,n.endLineNumber,this._editor.getModel().getLineMaxColumn(n.endLineNumber)));var r=this._findMatches(n,!1,19999);this._decorations.set(r,n),this._state.changeMatchInfo(this._decorations.getCurrentMatchesPosition(this._editor.getSelection()),this._decorations.getCount(),void 0),e&&this._moveToNextMatch(this._decorations.getStartPosition())},e.prototype._hasMatches=function(){return this._state.matchesCount>0},e.prototype._cannotFind=function(){if(!this._hasMatches()){var e=this._decorations.getFindScope();return e&&this._editor.revealRangeInCenterIfOutsideViewport(e,0),!0}return!1},e.prototype._setCurrentFindMatch=function(e){var t=this._decorations.setCurrentFindMatch(e);this._state.changeMatchInfo(t,this._decorations.getCount(),e),this._editor.setSelection(e),this._editor.revealRangeInCenterIfOutsideViewport(e,0)},e.prototype._prevSearchPosition=function(e){var t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0),n=e.lineNumber,r=e.column,i=this._editor.getModel();return t||1===r?(1===n?n=i.getLineCount():n--,r=i.getLineMaxColumn(n)):r--,new Lt(n,r)},e.prototype._moveToPrevMatch=function(t,n){if(void 0===n&&(n=!1),this._decorations.getCount()<19999){var r=this._decorations.matchBeforePosition(t);return r&&r.isEmpty()&&r.getStartPosition().equals(t)&&(t=this._prevSearchPosition(t),r=this._decorations.matchBeforePosition(t)),void(r&&this._setCurrentFindMatch(r))}if(!this._cannotFind()){var i=this._decorations.getFindScope(),o=e._getSearchRange(this._editor.getModel(),i);o.getEndPosition().isBefore(t)&&(t=o.getEndPosition()),t.isBefore(o.getStartPosition())&&(t=o.getEndPosition());var s=t.lineNumber,a=t.column,u=this._editor.getModel(),l=new Lt(s,a),c=u.findPreviousMatch(this._state.searchString,l,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getConfiguration().wordSeparators:null,!1);if(c&&c.range.isEmpty()&&c.range.getStartPosition().equals(l)&&(l=this._prevSearchPosition(l),c=u.findPreviousMatch(this._state.searchString,l,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getConfiguration().wordSeparators:null,!1)),c)return n||o.containsRange(c.range)?void this._setCurrentFindMatch(c.range):this._moveToPrevMatch(c.range.getStartPosition(),!0)}},e.prototype.moveToPrevMatch=function(){this._moveToPrevMatch(this._editor.getSelection().getStartPosition())},e.prototype._nextSearchPosition=function(e){var t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0),n=e.lineNumber,r=e.column,i=this._editor.getModel();return t||r===i.getLineMaxColumn(n)?(n===i.getLineCount()?n=1:n++,r=1):r++,new Lt(n,r)},e.prototype._moveToNextMatch=function(e){if(this._decorations.getCount()<19999){var t=this._decorations.matchAfterPosition(e);return t&&t.isEmpty()&&t.getStartPosition().equals(e)&&(e=this._nextSearchPosition(e),t=this._decorations.matchAfterPosition(e)),void(t&&this._setCurrentFindMatch(t))}var n=this._getNextMatch(e,!1,!0);n&&this._setCurrentFindMatch(n.range)},e.prototype._getNextMatch=function(t,n,r,i){if(void 0===i&&(i=!1),this._cannotFind())return null;var o=this._decorations.getFindScope(),s=e._getSearchRange(this._editor.getModel(),o);s.getEndPosition().isBefore(t)&&(t=s.getStartPosition()),t.isBefore(s.getStartPosition())&&(t=s.getStartPosition());var a=t.lineNumber,u=t.column,l=this._editor.getModel(),c=new Lt(a,u),d=l.findNextMatch(this._state.searchString,c,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getConfiguration().wordSeparators:null,n);return r&&d&&d.range.isEmpty()&&d.range.getStartPosition().equals(c)&&(c=this._nextSearchPosition(c),d=l.findNextMatch(this._state.searchString,c,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getConfiguration().wordSeparators:null,n)),d?i||s.containsRange(d.range)?d:this._getNextMatch(d.range.getEndPosition(),n,r,!0):null},e.prototype.moveToNextMatch=function(){this._moveToNextMatch(this._editor.getSelection().getEndPosition())},e.prototype._getReplacePattern=function(){return this._state.isRegex?function(e){if(!e||0===e.length)return new Kd(null);for(var t=new $d(e),n=0,r=e.length;n<r;n++){var i=e.charCodeAt(n);if(92!==i){if(36===i){if(++n>=r)break;if(36===(a=e.charCodeAt(n))){t.emitUnchanged(n-1),t.emitStatic("$",n+1);continue}if(48===a||38===a){t.emitUnchanged(n-1),t.emitMatchIndex(0,n+1);continue}if(49<=a&&a<=57){var o=a-48;if(n+1<r){var s=e.charCodeAt(n+1);if(48<=s&&s<=57){n++,o=10*o+(s-48),t.emitUnchanged(n-2),t.emitMatchIndex(o,n+1);continue}}t.emitUnchanged(n-1),t.emitMatchIndex(o,n+1);continue}}}else{if(++n>=r)break;var a;switch(a=e.charCodeAt(n)){case 92:t.emitUnchanged(n-1),t.emitStatic("\\",n+1);break;case 110:t.emitUnchanged(n-1),t.emitStatic("\n",n+1);break;case 116:t.emitUnchanged(n-1),t.emitStatic("\t",n+1)}}}return t.finalize()}(this._state.replaceString):Kd.fromStaticValue(this._state.replaceString)},e.prototype.replace=function(){if(this._hasMatches()){var e=this._getReplacePattern(),t=this._editor.getSelection(),n=this._getNextMatch(t.getStartPosition(),!0,!1);if(n)if(t.equalsRange(n.range)){var r=e.buildReplaceString(n.matches,this._state.preserveCase),i=new ll(t,r);this._executeEditorCommand("replace",i),this._decorations.setStartPosition(new Lt(t.startLineNumber,t.startColumn+r.length)),this.research(!0)}else this._decorations.setStartPosition(this._editor.getPosition()),this._setCurrentFindMatch(n.range)}},e.prototype._findMatches=function(t,n,r){var i=e._getSearchRange(this._editor.getModel(),t);return this._editor.getModel().findMatches(this._state.searchString,i,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getConfiguration().wordSeparators:null,n,r)},e.prototype.replaceAll=function(){if(this._hasMatches()){var e=this._decorations.getFindScope();null===e&&this._state.matchesCount>=19999?this._largeReplaceAll():this._regularReplaceAll(e),this.research(!1)}},e.prototype._largeReplaceAll=function(){var e=new Mo(this._state.searchString,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getConfiguration().wordSeparators:null).parseSearchRequest();if(e){var t=e.regex;if(!t.multiline){var n="m";t.ignoreCase&&(n+="i"),t.global&&(n+="g"),t=new RegExp(t.source,n)}var r,i=this._editor.getModel(),o=i.getValue(1),s=i.getFullModelRange(),a=this._getReplacePattern(),u=this._state.preserveCase;r=a.hasReplacementPatterns||u?o.replace(t,(function(){return a.buildReplaceString(arguments,u)})):o.replace(t,a.buildReplaceString(null,u));var l=new hl(s,r,this._editor.getSelection());this._executeEditorCommand("replaceAll",l)}},e.prototype._regularReplaceAll=function(e){for(var t=this._getReplacePattern(),n=this._findMatches(e,t.hasReplacementPatterns||this._state.preserveCase,1073741824),r=[],i=0,o=n.length;i<o;i++)r[i]=t.buildReplaceString(n[i].matches,this._state.preserveCase);var s=new Vd(this._editor.getSelection(),n.map((function(e){return e.range})),r);this._executeEditorCommand("replaceAll",s)},e.prototype.selectAllMatches=function(){if(this._hasMatches()){for(var e=this._decorations.getFindScope(),t=this._findMatches(e,!1,1073741824).map((function(e){return new Br(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn)})),n=this._editor.getSelection(),r=0,i=t.length;r<i;r++){if(t[r].equalsRange(n)){t=[n].concat(t.slice(0,r)).concat(t.slice(r+1));break}}this._editor.setSelections(t)}},e.prototype._executeEditorCommand=function(e,t){try{this._ignoreModelContentChanged=!0,this._editor.pushUndoStop(),this._editor.executeCommand(e,t),this._editor.pushUndoStop()}finally{this._ignoreModelContentChanged=!1}},e}(),oh=function(){function e(){this._zoomLevel=0,this._lastZoomLevelChangeTime=0,this._onDidChangeZoomLevel=new $t,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}return e.prototype.getZoomLevel=function(){return this._zoomLevel},e.prototype.getTimeSinceLastZoomLevelChanged=function(){return Date.now()-this._lastZoomLevelChangeTime},e.prototype.getPixelRatio=function(){var e=document.createElement("canvas").getContext("2d");return(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)},e.INSTANCE=new e,e}();function sh(){return oh.INSTANCE.getZoomLevel()}var ah=navigator.userAgent,uh=ah.indexOf("Trident")>=0,lh=ah.indexOf("Edge/")>=0,ch=uh||lh,dh=ah.indexOf("Firefox")>=0,hh=ah.indexOf("AppleWebKit")>=0,fh=ah.indexOf("Chrome")>=0,ph=!fh&&ah.indexOf("Safari")>=0,gh=!fh&&!ph&&hh,mh=ah.indexOf("iPad")>=0,_h=lh&&ah.indexOf("WebView/")>=0;var yh=function(e,t,n){var r=function(e){return i.fire(e)},i=new $t({onFirstListenerAdd:function(){e.addEventListener(t,r,n)},onLastListenerRemove:function(){e.removeEventListener(t,r,n)}});return i.event};var vh=new Array(230),bh=new Array(112);!function(){for(var e=0;e<bh.length;e++)bh[e]=-1;function t(e,t){vh[e]=t,bh[t]=e}t(3,7),t(8,1),t(9,2),t(13,3),t(16,4),t(17,5),t(18,6),t(19,7),t(20,8),t(27,9),t(32,10),t(33,11),t(34,12),t(35,13),t(36,14),t(37,15),t(38,16),t(39,17),t(40,18),t(45,19),t(46,20),t(48,21),t(49,22),t(50,23),t(51,24),t(52,25),t(53,26),t(54,27),t(55,28),t(56,29),t(57,30),t(65,31),t(66,32),t(67,33),t(68,34),t(69,35),t(70,36),t(71,37),t(72,38),t(73,39),t(74,40),t(75,41),t(76,42),t(77,43),t(78,44),t(79,45),t(80,46),t(81,47),t(82,48),t(83,49),t(84,50),t(85,51),t(86,52),t(87,53),t(88,54),t(89,55),t(90,56),t(93,58),t(96,93),t(97,94),t(98,95),t(99,96),t(100,97),t(101,98),t(102,99),t(103,100),t(104,101),t(105,102),t(106,103),t(107,104),t(108,105),t(109,106),t(110,107),t(111,108),t(112,59),t(113,60),t(114,61),t(115,62),t(116,63),t(117,64),t(118,65),t(119,66),t(120,67),t(121,68),t(122,69),t(123,70),t(124,71),t(125,72),t(126,73),t(127,74),t(128,75),t(129,76),t(130,77),t(144,78),t(145,79),t(186,80),t(187,81),t(188,82),t(189,83),t(190,84),t(191,85),t(192,86),t(193,110),t(194,111),t(219,87),t(220,88),t(221,89),t(222,90),t(223,91),t(226,92),t(229,109),uh?t(91,57):dh?(t(59,80),t(107,81),t(109,83),nt.d&&t(224,57)):hh&&(t(91,57),nt.d?t(93,57):t(92,57))}();var wh=nt.d?256:2048,Ch=nt.d?2048:256,Sh=function(){function e(e){this._standardKeyboardEventBrand=!0;var t=e;this.browserEvent=t,this.target=t.target,this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,this.keyCode=function(e){if(e.charCode){var t=String.fromCharCode(e.charCode).toUpperCase();return lr.fromString(t)}return vh[e.keyCode]||0}(t),this.code=t.code,this.ctrlKey=this.ctrlKey||5===this.keyCode,this.altKey=this.altKey||6===this.keyCode,this.shiftKey=this.shiftKey||4===this.keyCode,this.metaKey=this.metaKey||57===this.keyCode,this._asKeybinding=this._computeKeybinding(),this._asRuntimeKeybinding=this._computeRuntimeKeybinding()}return e.prototype.preventDefault=function(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()},e.prototype.stopPropagation=function(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()},e.prototype.toKeybinding=function(){return this._asRuntimeKeybinding},e.prototype.equals=function(e){return this._asKeybinding===e},e.prototype._computeKeybinding=function(){var e=0;5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode);var t=0;return this.ctrlKey&&(t|=wh),this.altKey&&(t|=512),this.shiftKey&&(t|=1024),this.metaKey&&(t|=Ch),t|=e},e.prototype._computeRuntimeKeybinding=function(){var e=0;return 5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode),new wr(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)},e}(),xh=!1,Lh=null;function kh(e){if(!e.parent||e.parent===e)return null;try{var t=e.location,n=e.parent.location;if(t.protocol!==n.protocol||t.hostname!==n.hostname||t.port!==n.port)return xh=!0,null}catch(e){return xh=!0,null}return e.parent}function Mh(e,t){for(var n,r=e.document.getElementsByTagName("iframe"),i=0,o=r.length;i<o;i++)if((n=r[i]).contentWindow===t)return n;return null}var Dh,Eh=function(){function e(){}return e.getSameOriginWindowChain=function(){if(!Lh){Lh=[];var e,t=window;do{(e=kh(t))?Lh.push({window:t,iframeElement:Mh(e,t)}):Lh.push({window:t,iframeElement:null}),t=e}while(t)}return Lh.slice(0)},e.hasDifferentOriginAncestor=function(){return Lh||this.getSameOriginWindowChain(),xh},e.getPositionOfChildWindowRelativeToAncestorWindow=function(e,t){if(!t||e===t)return{top:0,left:0};for(var n=0,r=0,i=0,o=this.getSameOriginWindowChain();i<o.length;i++){var s=o[i];if(s.window===t)break;if(!s.iframeElement)break;var a=s.iframeElement.getBoundingClientRect();n+=a.top,r+=a.left}return{top:n,left:r}},e}(),Th=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Nh=function(){function e(e){this.timestamp=Date.now(),this.browserEvent=e,this.leftButton=0===e.button,this.middleButton=1===e.button,this.rightButton=2===e.button,this.target=e.target,this.detail=e.detail||1,"dblclick"===e.type&&(this.detail=2),this.ctrlKey=e.ctrlKey,this.shiftKey=e.shiftKey,this.altKey=e.altKey,this.metaKey=e.metaKey,"number"==typeof e.pageX?(this.posx=e.pageX,this.posy=e.pageY):(this.posx=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,this.posy=e.clientY+document.body.scrollTop+document.documentElement.scrollTop);var t=Eh.getPositionOfChildWindowRelativeToAncestorWindow(self,e.view);this.posx-=t.left,this.posy-=t.top}return e.prototype.preventDefault=function(){this.browserEvent.preventDefault&&this.browserEvent.preventDefault()},e.prototype.stopPropagation=function(){this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()},e}(),Oh=(function(e){function t(t){var n=e.call(this,t)||this;return n.dataTransfer=t.dataTransfer,n}Th(t,e)}(Nh),function(){function e(e,t,n){if(void 0===t&&(t=0),void 0===n&&(n=0),this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=n,this.deltaX=t,e)if("wheel"===e.type){var r=e;r.deltaMode===r.DOM_DELTA_LINE?(this.deltaY=-e.deltaY,this.deltaX=-e.deltaX):(this.deltaY=-e.deltaY/40,this.deltaX=-e.deltaX/40)}else{var i=e,o=e;void 0!==i.wheelDeltaY?this.deltaY=i.wheelDeltaY/120:void 0!==o.VERTICAL_AXIS&&o.axis===o.VERTICAL_AXIS&&(this.deltaY=-o.detail/3),void 0!==i.wheelDeltaX?ph&&nt.g?this.deltaX=-i.wheelDeltaX/120:this.deltaX=i.wheelDeltaX/120:void 0!==o.HORIZONTAL_AXIS&&o.axis===o.HORIZONTAL_AXIS&&(this.deltaX=-e.detail/3),0===this.deltaY&&0===this.deltaX&&e.wheelDelta&&(this.deltaY=e.wheelDelta/120)}}return e.prototype.preventDefault=function(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()},e.prototype.stopPropagation=function(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()},e}());!function(e){e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",e.http="http",e.https="https",e.file="file",e.mailto="mailto",e.untitled="untitled",e.data="data",e.command="command",e.vscodeRemote="vscode-remote",e.vscodeRemoteResource="vscode-remote-resource",e.userData="vscode-userdata"}(Dh||(Dh={}));var Ah=new(function(){function e(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http"}return e.prototype.setPreferredWebSchema=function(e){this._preferredWebSchema=e},e.prototype.rewrite=function(e,t){var n=this._hosts[e],r=this._ports[e],i=this._connectionTokens[e];return ht.from({scheme:nt.f?this._preferredWebSchema:Dh.vscodeRemoteResource,authority:n+":"+r,path:"/vscode-remote-resource",query:"path="+encodeURIComponent(t)+"&tkn="+encodeURIComponent(i)})},e}()),Ih=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ph=function(){return(Ph=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function Rh(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function Fh(e){e.parentNode&&e.parentNode.removeChild(e)}var Yh=new(function(){function e(){this._lastStart=-1,this._lastEnd=-1}return e.prototype._findClassName=function(e,t){var n=e.className;if(n){t=t.trim();var r=n.length,i=t.length;if(0!==i)if(r<i)this._lastStart=-1;else{if(n===t)return this._lastStart=0,void(this._lastEnd=r);for(var o,s=-1;(s=n.indexOf(t,s+1))>=0;){if(o=s+i,(0===s||32===n.charCodeAt(s-1))&&32===n.charCodeAt(o))return this._lastStart=s,void(this._lastEnd=o+1);if(s>0&&32===n.charCodeAt(s-1)&&o===r)return this._lastStart=s-1,void(this._lastEnd=o);if(0===s&&o===r)return this._lastStart=0,void(this._lastEnd=o)}this._lastStart=-1}else this._lastStart=-1}else this._lastStart=-1},e.prototype.hasClass=function(e,t){return this._findClassName(e,t),-1!==this._lastStart},e.prototype.addClasses=function(e){for(var t=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];n.forEach((function(n){return n.split(" ").forEach((function(n){return t.addClass(e,n)}))}))},e.prototype.addClass=function(e,t){e.className?(this._findClassName(e,t),-1===this._lastStart&&(e.className=e.className+" "+t)):e.className=t},e.prototype.removeClass=function(e,t){this._findClassName(e,t),-1!==this._lastStart&&(e.className=e.className.substring(0,this._lastStart)+e.className.substring(this._lastEnd))},e.prototype.removeClasses=function(e){for(var t=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];n.forEach((function(n){return n.split(" ").forEach((function(n){return t.removeClass(e,n)}))}))},e.prototype.toggleClass=function(e,t,n){this._findClassName(e,t),-1===this._lastStart||void 0!==n&&n||this.removeClass(e,t),-1!==this._lastStart||void 0!==n&&!n||this.addClass(e,t)},e}()),jh=new(function(){function e(){}return e.prototype.hasClass=function(e,t){return Boolean(t)&&e.classList&&e.classList.contains(t)},e.prototype.addClasses=function(e){for(var t=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];n.forEach((function(n){return n.split(" ").forEach((function(n){return t.addClass(e,n)}))}))},e.prototype.addClass=function(e,t){t&&e.classList&&e.classList.add(t)},e.prototype.removeClass=function(e,t){t&&e.classList&&e.classList.remove(t)},e.prototype.removeClasses=function(e){for(var t=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];n.forEach((function(n){return n.split(" ").forEach((function(n){return t.removeClass(e,n)}))}))},e.prototype.toggleClass=function(e,t,n){e.classList&&e.classList.toggle(t,n)},e}()),Bh=uh?Yh:jh,Wh=Bh.hasClass.bind(Bh),Hh=Bh.addClass.bind(Bh),Vh=Bh.addClasses.bind(Bh),zh=Bh.removeClass.bind(Bh),Uh=Bh.removeClasses.bind(Bh),qh=Bh.toggleClass.bind(Bh),Kh=function(){function e(e,t,n,r){this._node=e,this._type=t,this._handler=n,this._useCapture=r||!1,this._node.addEventListener(this._type,this._handler,this._useCapture)}return e.prototype.dispose=function(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._useCapture),this._node=null,this._handler=null)},e}();function Gh(e,t,n,r){return new Kh(e,t,n,r)}var $h=function(e,t,n,r){var i=n;return"click"===t||"mousedown"===t?i=function(e){return function(t){return e(new Nh(t))}}(n):"keydown"!==t&&"keypress"!==t&&"keyup"!==t||(i=function(e){return function(t){return e(new Sh(t))}}(n)),Gh(e,t,i,r)};function Zh(e,t){return Gh(e,"mouseout",(function(n){for(var r=n.relatedTarget||n.target;r&&r!==e;)r=r.parentNode;r!==e&&t(n)}))}var Xh,Jh,Qh=null;var ef,tf,nf,rf,of,sf=function(){function e(e,t){void 0===t&&(t=0),this._runner=e,this.priority=t,this._canceled=!1}return e.prototype.dispose=function(){this._canceled=!0},e.prototype.execute=function(){if(!this._canceled)try{this._runner()}catch(e){Ke(e)}},e.sort=function(e,t){return t.priority-e.priority},e}();ef=[],tf=null,nf=!1,rf=!1,of=function(){for(nf=!1,tf=ef,ef=[],rf=!0;tf.length>0;)tf.sort(sf.sort),tf.shift().execute();rf=!1},Jh=function(e,t){void 0===t&&(t=0);var n,r=new sf(e,t);return ef.push(r),nf||(nf=!0,n=of,Qh||(Qh=self.requestAnimationFrame||self.msRequestAnimationFrame||self.webkitRequestAnimationFrame||self.mozRequestAnimationFrame||self.oRequestAnimationFrame||function(e){return setTimeout((function(){return e((new Date).getTime())}),0)}),Qh.call(self,n)),r},Xh=function(e,t){if(rf){var n=new sf(e,t);return tf.push(n),n}return Jh(e,t)};var af=16,uf=function(e,t){return t},lf=function(e){function t(t,n,r,i,o){void 0===i&&(i=uf),void 0===o&&(o=af);var s=e.call(this)||this,a=null,u=0,l=s._register(new Ns),c=function(){u=(new Date).getTime(),r(a),a=null};return s._register(Gh(t,n,(function(e){a=i(a,e);var t=(new Date).getTime()-u;t>=o?(l.cancel(),c()):l.setIfNotSet(c,o-t)}))),s}return Ih(t,e),t}(Ft);function cf(e,t,n,r,i){return new lf(e,t,n,r,i)}function df(e){return document.defaultView.getComputedStyle(e,null)}var hf=function(){function e(){}return e.convertToPixels=function(e,t){return parseFloat(t)||0},e.getDimension=function(t,n,r){var i=df(t),o="0";return i&&(o=i.getPropertyValue?i.getPropertyValue(n):i.getAttribute(r)),e.convertToPixels(t,o)},e.getBorderLeftWidth=function(t){return e.getDimension(t,"border-left-width","borderLeftWidth")},e.getBorderRightWidth=function(t){return e.getDimension(t,"border-right-width","borderRightWidth")},e.getBorderTopWidth=function(t){return e.getDimension(t,"border-top-width","borderTopWidth")},e.getBorderBottomWidth=function(t){return e.getDimension(t,"border-bottom-width","borderBottomWidth")},e.getPaddingLeft=function(t){return e.getDimension(t,"padding-left","paddingLeft")},e.getPaddingRight=function(t){return e.getDimension(t,"padding-right","paddingRight")},e.getPaddingTop=function(t){return e.getDimension(t,"padding-top","paddingTop")},e.getPaddingBottom=function(t){return e.getDimension(t,"padding-bottom","paddingBottom")},e.getMarginLeft=function(t){return e.getDimension(t,"margin-left","marginLeft")},e.getMarginTop=function(t){return e.getDimension(t,"margin-top","marginTop")},e.getMarginRight=function(t){return e.getDimension(t,"margin-right","marginRight")},e.getMarginBottom=function(t){return e.getDimension(t,"margin-bottom","marginBottom")},e}();function ff(e){for(var t=e.offsetParent,n=e.offsetTop,r=e.offsetLeft;null!==(e=e.parentNode)&&e!==document.body&&e!==document.documentElement;){n-=e.scrollTop;var i=df(e);i&&(r-="rtl"!==i.direction?e.scrollLeft:-e.scrollLeft),e===t&&(r+=hf.getBorderLeftWidth(e),n+=hf.getBorderTopWidth(e),n+=e.offsetTop,r+=e.offsetLeft,t=e.offsetParent)}return{left:r,top:n}}function pf(e){var t=e.getBoundingClientRect();return{left:t.left+gf.scrollX,top:t.top+gf.scrollY,width:t.width,height:t.height}}var gf=new(function(){function e(){}return Object.defineProperty(e.prototype,"scrollX",{get:function(){return"number"==typeof window.scrollX?window.scrollX:document.body.scrollLeft+document.documentElement.scrollLeft},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scrollY",{get:function(){return"number"==typeof window.scrollY?window.scrollY:document.body.scrollTop+document.documentElement.scrollTop},enumerable:!0,configurable:!0}),e}());function mf(e){var t=hf.getMarginLeft(e)+hf.getMarginRight(e);return e.offsetWidth+t}function _f(e){var t=hf.getBorderLeftWidth(e)+hf.getBorderRightWidth(e),n=hf.getPaddingLeft(e)+hf.getPaddingRight(e);return e.offsetWidth-t-n}function yf(e){var t=hf.getMarginTop(e)+hf.getMarginBottom(e);return e.offsetHeight+t}function vf(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function bf(e){void 0===e&&(e=document.getElementsByTagName("head")[0]);var t=document.createElement("style");return t.type="text/css",t.media="screen",e.appendChild(t),t}var wf=null;function Cf(){return wf||(wf=bf()),wf}var Sf={CLICK:"click",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",BEFORE_UNLOAD:"beforeunload",UNLOAD:"unload",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",FULLSCREEN_CHANGE:"fullscreenchange",WK_FULLSCREEN_CHANGE:"webkitfullscreenchange",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:hh?"webkitAnimationStart":"animationstart",ANIMATION_END:hh?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:hh?"webkitAnimationIteration":"animationiteration"},xf={stop:function(e,t){e.preventDefault?e.preventDefault():e.returnValue=!1,t&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0)}};var Lf=function(e){function t(t){var n=e.call(this)||this;n._onDidFocus=n._register(new $t),n.onDidFocus=n._onDidFocus.event,n._onDidBlur=n._register(new $t),n.onDidBlur=n._onDidBlur.event;var r=vf(document.activeElement,t),i=!1;return n._register(yh(t,Sf.FOCUS,!0)((function(){i=!1,r||(r=!0,n._onDidFocus.fire())}))),n._register(yh(t,Sf.BLUR,!0)((function(){r&&(i=!0,window.setTimeout((function(){i&&(i=!1,r=!1,n._onDidBlur.fire())}),0))}))),n}return Ih(t,e),t}(Ft);function kf(e){return new Lf(e)}function Mf(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.forEach((function(t){return e.appendChild(t)})),t[t.length-1]}var Df,Ef=/([\w\-]+)?(#([\w\-]+))?((.([\w\-]+))*)/;function Tf(e,t,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i];var o=Ef.exec(t);if(!o)throw new Error("Bad use of emmet");n=Ph({},n||{});var s,a,u=o[1]||"div";return s=e!==Df.HTML?document.createElementNS(e,u):document.createElement(u),o[3]&&(s.id=o[3]),o[4]&&(s.className=o[4].replace(/\./g," ").trim()),Object.keys(n).forEach((function(e){var t=n[e];/^on\w+$/.test(e)?s[e]=t:"selected"===e?t&&s.setAttribute(e,"true"):s.setAttribute(e,t)})),(a=r,a.filter((function(e){return!!e}))).forEach((function(e){e instanceof Node?s.appendChild(e):s.appendChild(document.createTextNode(e))})),s}function Nf(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return Tf.apply(void 0,[Df.HTML,e,t].concat(n))}function Of(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e;n<r.length;n++){var i=r[n];i.style.display="none",i.setAttribute("aria-hidden","true")}}function Af(e){if(e&&e.hasAttribute("tabIndex")){if(document.activeElement===e){var t=function(e,t){for(;e;){if(e instanceof HTMLElement&&e.hasAttribute(t))return e;e=e.parentNode}return null}(e.parentElement,"tabIndex");t&&t.focus()}e.removeAttribute("tabindex")}}function If(e){return Array.prototype.slice.call(document.getElementsByTagName(e),0)}function Pf(e){var t=window.devicePixelRatio*e;return Math.max(1,Math.floor(t))/window.devicePixelRatio}function Rf(e){if(nt.e||_h)window.open(e);else{var t=window.open();t&&(t.opener=null,t.location.href=e)}}function Ff(e){return e?"url('"+function(e){return e&&Dh.vscodeRemote===e.scheme?Ah.rewrite(e.authority,e.path):e}(e).toString(!0).replace(/'/g,"%27")+"')":"url('')"}!function(e){e.HTML="http://www.w3.org/1999/xhtml",e.SVG="http://www.w3.org/2000/svg"}(Df||(Df={})),Nf.SVG=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return Tf.apply(void 0,[Df.SVG,e,t].concat(n))},Ah.setPreferredWebSchema(/^https:/.test(window.location.href)?"https":"http");n(321);var Yf=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),jf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Yf(t,e),t.prototype.onclick=function(e,t){this._register(Gh(e,Sf.CLICK,(function(e){return t(new Nh(e))})))},t.prototype.onmousedown=function(e,t){this._register(Gh(e,Sf.MOUSE_DOWN,(function(e){return t(new Nh(e))})))},t.prototype.onmouseover=function(e,t){this._register(Gh(e,Sf.MOUSE_OVER,(function(e){return t(new Nh(e))})))},t.prototype.onnonbubblingmouseout=function(e,t){this._register(Zh(e,(function(e){return t(new Nh(e))})))},t.prototype.onkeydown=function(e,t){this._register(Gh(e,Sf.KEY_DOWN,(function(e){return t(new Sh(e))})))},t.prototype.onkeyup=function(e,t){this._register(Gh(e,Sf.KEY_UP,(function(e){return t(new Sh(e))})))},t.prototype.oninput=function(e,t){this._register(Gh(e,Sf.INPUT,t))},t.prototype.onblur=function(e,t){this._register(Gh(e,Sf.BLUR,t))},t.prototype.onfocus=function(e,t){this._register(Gh(e,Sf.FOCUS,t))},t.prototype.onchange=function(e,t){this._register(Gh(e,Sf.CHANGE,t))},t}(Ft),Bf=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Wf={inputActiveOptionBorder:Ou.fromHex("#007ACC00"),inputActiveOptionBackground:Ou.fromHex("#0E639C50")},Hf=function(e){function t(t){var n=e.call(this)||this;return n._onChange=n._register(new $t),n.onChange=n._onChange.event,n._onKeyDown=n._register(new $t),n.onKeyDown=n._onKeyDown.event,n._opts=Zr(t),Jr(n._opts,Wf,!1),n._checked=n._opts.isChecked,n.domNode=document.createElement("div"),n.domNode.title=n._opts.title,n.domNode.className="monaco-custom-checkbox "+(n._opts.actionClassName||"")+" "+(n._checked?"checked":"unchecked"),n.domNode.tabIndex=0,n.domNode.setAttribute("role","checkbox"),n.domNode.setAttribute("aria-checked",String(n._checked)),n.domNode.setAttribute("aria-label",n._opts.title),n.applyStyles(),n.onclick(n.domNode,(function(e){n.checked=!n._checked,n._onChange.fire(!1),e.preventDefault()})),n.onkeydown(n.domNode,(function(e){if(10===e.keyCode||3===e.keyCode)return n.checked=!n._checked,n._onChange.fire(!0),void e.preventDefault();n._onKeyDown.fire(e)})),n}return Bf(t,e),t.prototype.focus=function(){this.domNode.focus()},Object.defineProperty(t.prototype,"checked",{get:function(){return this._checked},set:function(e){this._checked=e,this.domNode.setAttribute("aria-checked",String(this._checked)),this._checked?this.domNode.classList.add("checked"):this.domNode.classList.remove("checked"),this.applyStyles()},enumerable:!0,configurable:!0}),t.prototype.width=function(){return 22},t.prototype.style=function(e){e.inputActiveOptionBorder&&(this._opts.inputActiveOptionBorder=e.inputActiveOptionBorder),e.inputActiveOptionBackground&&(this._opts.inputActiveOptionBackground=e.inputActiveOptionBackground),this.applyStyles()},t.prototype.applyStyles=function(){this.domNode&&(this.domNode.style.borderColor=this._checked&&this._opts.inputActiveOptionBorder?this._opts.inputActiveOptionBorder.toString():"transparent",this.domNode.style.backgroundColor=this._checked&&this._opts.inputActiveOptionBackground?this._opts.inputActiveOptionBackground.toString():"transparent")},t.prototype.enable=function(){this.domNode.tabIndex=0,this.domNode.setAttribute("aria-disabled",String(!1))},t.prototype.disable=function(){Af(this.domNode),this.domNode.setAttribute("aria-disabled",String(!0))},t}(jf),Vf=(n(322),function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),zf=Ee("caseDescription","Match Case"),Uf=Ee("wordsDescription","Match Whole Word"),qf=Ee("regexDescription","Use Regular Expression"),Kf=function(e){function t(t){return e.call(this,{actionClassName:"monaco-case-sensitive",title:zf+t.appendTitle,isChecked:t.isChecked,inputActiveOptionBorder:t.inputActiveOptionBorder,inputActiveOptionBackground:t.inputActiveOptionBackground})||this}return Vf(t,e),t}(Hf),Gf=function(e){function t(t){return e.call(this,{actionClassName:"monaco-whole-word",title:Uf+t.appendTitle,isChecked:t.isChecked,inputActiveOptionBorder:t.inputActiveOptionBorder,inputActiveOptionBackground:t.inputActiveOptionBackground})||this}return Vf(t,e),t}(Hf),$f=function(e){function t(t){return e.call(this,{actionClassName:"monaco-regex",title:qf+t.appendTitle,isChecked:t.isChecked,inputActiveOptionBorder:t.inputActiveOptionBorder,inputActiveOptionBackground:t.inputActiveOptionBackground})||this}return Vf(t,e),t}(Hf),Zf=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Xf=function(e){function t(t,n,r,i){var o=e.call(this)||this;o._hideSoon=o._register(new As((function(){return o._hide()}),2e3)),o._isVisible=!1,o._editor=t,o._state=n,o._keybindingService=r,o._domNode=document.createElement("div"),o._domNode.className="findOptionsWidget",o._domNode.style.display="none",o._domNode.style.top="10px",o._domNode.setAttribute("role","presentation"),o._domNode.setAttribute("aria-hidden","true");var s=i.getTheme().getColor(cc),a=i.getTheme().getColor(dc);return o.caseSensitive=o._register(new Kf({appendTitle:o._keybindingLabelFor(rh.ToggleCaseSensitiveCommand),isChecked:o._state.matchCase,inputActiveOptionBorder:s,inputActiveOptionBackground:a})),o._domNode.appendChild(o.caseSensitive.domNode),o._register(o.caseSensitive.onChange((function(){o._state.change({matchCase:o.caseSensitive.checked},!1)}))),o.wholeWords=o._register(new Gf({appendTitle:o._keybindingLabelFor(rh.ToggleWholeWordCommand),isChecked:o._state.wholeWord,inputActiveOptionBorder:s,inputActiveOptionBackground:a})),o._domNode.appendChild(o.wholeWords.domNode),o._register(o.wholeWords.onChange((function(){o._state.change({wholeWord:o.wholeWords.checked},!1)}))),o.regex=o._register(new $f({appendTitle:o._keybindingLabelFor(rh.ToggleRegexCommand),isChecked:o._state.isRegex,inputActiveOptionBorder:s,inputActiveOptionBackground:a})),o._domNode.appendChild(o.regex.domNode),o._register(o.regex.onChange((function(){o._state.change({isRegex:o.regex.checked},!1)}))),o._editor.addOverlayWidget(o),o._register(o._state.onFindReplaceStateChange((function(e){var t=!1;e.isRegex&&(o.regex.checked=o._state.isRegex,t=!0),e.wholeWord&&(o.wholeWords.checked=o._state.wholeWord,t=!0),e.matchCase&&(o.caseSensitive.checked=o._state.matchCase,t=!0),!o._state.isRevealed&&t&&o._revealTemporarily()}))),o._register(Zh(o._domNode,(function(e){return o._onMouseOut()}))),o._register(Gh(o._domNode,"mouseover",(function(e){return o._onMouseOver()}))),o._applyTheme(i.getTheme()),o._register(i.onThemeChange(o._applyTheme.bind(o))),o}return Zf(t,e),t.prototype._keybindingLabelFor=function(e){var t=this._keybindingService.lookupKeybinding(e);return t?" ("+t.getLabel()+")":""},t.prototype.dispose=function(){this._editor.removeOverlayWidget(this),e.prototype.dispose.call(this)},t.prototype.getId=function(){return t.ID},t.prototype.getDomNode=function(){return this._domNode},t.prototype.getPosition=function(){return{preference:0}},t.prototype.highlightFindOptions=function(){this._revealTemporarily()},t.prototype._revealTemporarily=function(){this._show(),this._hideSoon.schedule()},t.prototype._onMouseOut=function(){this._hideSoon.schedule()},t.prototype._onMouseOver=function(){this._hideSoon.cancel()},t.prototype._show=function(){this._isVisible||(this._isVisible=!0,this._domNode.style.display="block")},t.prototype._hide=function(){this._isVisible&&(this._isVisible=!1,this._domNode.style.display="none")},t.prototype._applyTheme=function(e){var t={inputActiveOptionBorder:e.getColor(cc),inputActiveOptionBackground:e.getColor(dc)};this.caseSensitive.style(t),this.wholeWords.style(t),this.regex.style(t)},t.ID="editor.contrib.findOptionsWidget",t}(jf);function Jf(e,t){return 1===e||2!==e&&t}Wd((function(e,t){var n=e.getColor(id);n&&t.addRule(".monaco-editor .findOptionsWidget { background-color: "+n+"; }");var r=e.getColor(sc);r&&t.addRule(".monaco-editor .findOptionsWidget { box-shadow: 0 2px 8px "+r+"; }");var i=e.getColor(ic);i&&t.addRule(".monaco-editor .findOptionsWidget { border: 2px solid "+i+"; }")}));var Qf,ep,tp,np=function(){function e(){this._onFindReplaceStateChange=new $t,this.onFindReplaceStateChange=this._onFindReplaceStateChange.event,this._searchString="",this._replaceString="",this._isRevealed=!1,this._isReplaceRevealed=!1,this._isRegex=!1,this._isRegexOverride=0,this._wholeWord=!1,this._wholeWordOverride=0,this._matchCase=!1,this._matchCaseOverride=0,this._preserveCase=!1,this._preserveCaseOverride=0,this._searchScope=null,this._matchesPosition=0,this._matchesCount=0,this._currentMatch=null}return Object.defineProperty(e.prototype,"searchString",{get:function(){return this._searchString},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"replaceString",{get:function(){return this._replaceString},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isRevealed",{get:function(){return this._isRevealed},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isReplaceRevealed",{get:function(){return this._isReplaceRevealed},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isRegex",{get:function(){return Jf(this._isRegexOverride,this._isRegex)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wholeWord",{get:function(){return Jf(this._wholeWordOverride,this._wholeWord)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"matchCase",{get:function(){return Jf(this._matchCaseOverride,this._matchCase)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"preserveCase",{get:function(){return Jf(this._preserveCaseOverride,this._preserveCase)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"actualIsRegex",{get:function(){return this._isRegex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"actualWholeWord",{get:function(){return this._wholeWord},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"actualMatchCase",{get:function(){return this._matchCase},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"actualPreserveCase",{get:function(){return this._preserveCase},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"searchScope",{get:function(){return this._searchScope},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"matchesPosition",{get:function(){return this._matchesPosition},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"matchesCount",{get:function(){return this._matchesCount},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currentMatch",{get:function(){return this._currentMatch},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){},e.prototype.changeMatchInfo=function(e,t,n){var r={moveCursor:!1,updateHistory:!1,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1},i=!1;0===t&&(e=0),e>t&&(e=t),this._matchesPosition!==e&&(this._matchesPosition=e,r.matchesPosition=!0,i=!0),this._matchesCount!==t&&(this._matchesCount=t,r.matchesCount=!0,i=!0),void 0!==n&&(Yr.equalsRange(this._currentMatch,n)||(this._currentMatch=n,r.currentMatch=!0,i=!0)),i&&this._onFindReplaceStateChange.fire(r)},e.prototype.change=function(e,t,n){void 0===n&&(n=!0);var r={moveCursor:t,updateHistory:n,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1},i=!1,o=this.isRegex,s=this.wholeWord,a=this.matchCase,u=this.preserveCase;void 0!==e.searchString&&this._searchString!==e.searchString&&(this._searchString=e.searchString,r.searchString=!0,i=!0),void 0!==e.replaceString&&this._replaceString!==e.replaceString&&(this._replaceString=e.replaceString,r.replaceString=!0,i=!0),void 0!==e.isRevealed&&this._isRevealed!==e.isRevealed&&(this._isRevealed=e.isRevealed,r.isRevealed=!0,i=!0),void 0!==e.isReplaceRevealed&&this._isReplaceRevealed!==e.isReplaceRevealed&&(this._isReplaceRevealed=e.isReplaceRevealed,r.isReplaceRevealed=!0,i=!0),void 0!==e.isRegex&&(this._isRegex=e.isRegex),void 0!==e.wholeWord&&(this._wholeWord=e.wholeWord),void 0!==e.matchCase&&(this._matchCase=e.matchCase),void 0!==e.preserveCase&&(this._preserveCase=e.preserveCase),void 0!==e.searchScope&&(Yr.equalsRange(this._searchScope,e.searchScope)||(this._searchScope=e.searchScope,r.searchScope=!0,i=!0)),this._isRegexOverride=void 0!==e.isRegexOverride?e.isRegexOverride:0,this._wholeWordOverride=void 0!==e.wholeWordOverride?e.wholeWordOverride:0,this._matchCaseOverride=void 0!==e.matchCaseOverride?e.matchCaseOverride:0,this._preserveCaseOverride=void 0!==e.preserveCaseOverride?e.preserveCaseOverride:0,o!==this.isRegex&&(i=!0,r.isRegex=!0),s!==this.wholeWord&&(i=!0,r.wholeWord=!0),a!==this.matchCase&&(i=!0,r.matchCase=!0),u!==this.preserveCase&&(i=!0,r.preserveCase=!0),i&&this._onFindReplaceStateChange.fire(r)},e}();n(323),n(324);function rp(e,t){ap(ep,e,t)}function ip(e,t){nt.d?rp(e,t):ap(tp,e,t)}var op=0,sp=void 0;function ap(e,t,n){if(Qf){if(!n)switch(sp===t?op++:(sp=t,op=0),op){case 0:break;case 1:t=Ee("repeated","{0} (occurred again)",t);break;default:t=Ee("repeatedNtimes","{0} (occurred {1} times)",t,op)}Rh(e),e.textContent=t,e.style.visibility="hidden",e.style.visibility="visible"}}n(325);function up(e,t,n){var r=null,i=null;if("function"==typeof n.value?(r="value",0!==(i=n.value).length&&console.warn("Memoize should only be used in functions with zero parameters")):"function"==typeof n.get&&(r="get",i=n.get),!i)throw new Error("not supported");var o="$memoize$"+t;n[r]=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.hasOwnProperty(o)||Object.defineProperty(this,o,{configurable:!1,enumerable:!1,writable:!1,value:i.apply(this,e)}),this[o]}}var lp,cp=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),dp=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s};!function(e){e.Tap="-monaco-gesturetap",e.Change="-monaco-gesturechange",e.Start="-monaco-gesturestart",e.End="-monaco-gesturesend",e.Contextmenu="-monaco-gesturecontextmenu"}(lp||(lp={}));var hp=function(e){function t(){var t=e.call(this)||this;return t.dispatched=!1,t.activeTouches={},t.handle=null,t.targets=[],t._register(Gh(document,"touchstart",(function(e){return t.onTouchStart(e)}))),t._register(Gh(document,"touchend",(function(e){return t.onTouchEnd(e)}))),t._register(Gh(document,"touchmove",(function(e){return t.onTouchMove(e)}))),t}return cp(t,e),t.addTarget=function(e){t.isTouchDevice()&&(t.INSTANCE||(t.INSTANCE=new t),t.INSTANCE.targets.push(e))},t.isTouchDevice=function(){return"ontouchstart"in window||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0},t.prototype.dispose=function(){this.handle&&(this.handle.dispose(),this.handle=null),e.prototype.dispose.call(this)},t.prototype.onTouchStart=function(e){var t=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(var n=0,r=e.targetTouches.length;n<r;n++){var i=e.targetTouches.item(n);this.activeTouches[i.identifier]={id:i.identifier,initialTarget:i.target,initialTimeStamp:t,initialPageX:i.pageX,initialPageY:i.pageY,rollingTimestamps:[t],rollingPageX:[i.pageX],rollingPageY:[i.pageY]};var o=this.newGestureEvent(lp.Start,i.target);o.pageX=i.pageX,o.pageY=i.pageY,this.dispatchEvent(o)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)},t.prototype.onTouchEnd=function(e){for(var n=Date.now(),r=Object.keys(this.activeTouches).length,i=function(i,s){var a=e.changedTouches.item(i);if(!o.activeTouches.hasOwnProperty(String(a.identifier)))return console.warn("move of an UNKNOWN touch",a),"continue";var u=o.activeTouches[a.identifier],l=Date.now()-u.initialTimeStamp;if(l<t.HOLD_DELAY&&Math.abs(u.initialPageX-Wr(u.rollingPageX))<30&&Math.abs(u.initialPageY-Wr(u.rollingPageY))<30)(c=o.newGestureEvent(lp.Tap,u.initialTarget)).pageX=Wr(u.rollingPageX),c.pageY=Wr(u.rollingPageY),o.dispatchEvent(c);else if(l>=t.HOLD_DELAY&&Math.abs(u.initialPageX-Wr(u.rollingPageX))<30&&Math.abs(u.initialPageY-Wr(u.rollingPageY))<30){var c;(c=o.newGestureEvent(lp.Contextmenu,u.initialTarget)).pageX=Wr(u.rollingPageX),c.pageY=Wr(u.rollingPageY),o.dispatchEvent(c)}else if(1===r){var d=Wr(u.rollingPageX),h=Wr(u.rollingPageY),f=Wr(u.rollingTimestamps)-u.rollingTimestamps[0],p=d-u.rollingPageX[0],g=h-u.rollingPageY[0],m=o.targets.filter((function(e){return u.initialTarget instanceof Node&&e.contains(u.initialTarget)}));o.inertia(m,n,Math.abs(p)/f,p>0?1:-1,d,Math.abs(g)/f,g>0?1:-1,h)}o.dispatchEvent(o.newGestureEvent(lp.End,u.initialTarget)),delete o.activeTouches[a.identifier]},o=this,s=0,a=e.changedTouches.length;s<a;s++)i(s);this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)},t.prototype.newGestureEvent=function(e,t){var n=document.createEvent("CustomEvent");return n.initEvent(e,!1,!0),n.initialTarget=t,n},t.prototype.dispatchEvent=function(e){var t=this;this.targets.forEach((function(n){e.initialTarget instanceof Node&&n.contains(e.initialTarget)&&(n.dispatchEvent(e),t.dispatched=!0)}))},t.prototype.inertia=function(e,n,r,i,o,s,a,u){var l=this;this.handle=Jh((function(){var c=Date.now(),d=c-n,h=0,f=0,p=!0;r+=t.SCROLL_FRICTION*d,s+=t.SCROLL_FRICTION*d,r>0&&(p=!1,h=i*r*d),s>0&&(p=!1,f=a*s*d);var g=l.newGestureEvent(lp.Change);g.translationX=h,g.translationY=f,e.forEach((function(e){return e.dispatchEvent(g)})),p||l.inertia(e,c,r,i,o+h,s,a,u+f)}))},t.prototype.onTouchMove=function(e){for(var t=Date.now(),n=0,r=e.changedTouches.length;n<r;n++){var i=e.changedTouches.item(n);if(this.activeTouches.hasOwnProperty(String(i.identifier))){var o=this.activeTouches[i.identifier],s=this.newGestureEvent(lp.Change,o.initialTarget);s.translationX=i.pageX-Wr(o.rollingPageX),s.translationY=i.pageY-Wr(o.rollingPageY),s.pageX=i.pageX,s.pageY=i.pageY,this.dispatchEvent(s),o.rollingPageX.length>3&&(o.rollingPageX.shift(),o.rollingPageY.shift(),o.rollingTimestamps.shift()),o.rollingPageX.push(i.pageX),o.rollingPageY.push(i.pageY),o.rollingTimestamps.push(t)}else console.warn("end of an UNKNOWN touch",i)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)},t.SCROLL_FRICTION=-.005,t.HOLD_DELAY=700,dp([up],t,"isTouchDevice",null),t}(Ft),fp=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),pp=!1,gp=function(e){function t(t,n,r){void 0===r&&(r={});var i=e.call(this)||this;return i._state=3,i._onDidEnablementChange=i._register(new $t),i.onDidEnablementChange=i._onDidEnablementChange.event,i._onDidStart=i._register(new $t),i.onDidStart=i._onDidStart.event,i._onDidChange=i._register(new $t),i.onDidChange=i._onDidChange.event,i._onDidReset=i._register(new $t),i.onDidReset=i._onDidReset.event,i._onDidEnd=i._register(new $t),i.onDidEnd=i._onDidEnd.event,i.linkedSash=void 0,i.orthogonalStartSashDisposables=i._register(new Rt),i.orthogonalEndSashDisposables=i._register(new Rt),i.el=Mf(t,Nf(".monaco-sash")),nt.d&&Hh(i.el,"mac"),i._register(yh(i.el,"mousedown")(i.onMouseDown,i)),i._register(yh(i.el,"dblclick")(i.onMouseDoubleClick,i)),hp.addTarget(i.el),i._register(yh(i.el,lp.Start)(i.onTouchStart,i)),mh&&Hh(i.el,"touch"),i.setOrientation(r.orientation||0),i.hidden=!1,i.layoutProvider=n,i.orthogonalStartSash=r.orthogonalStartSash,i.orthogonalEndSash=r.orthogonalEndSash,qh(i.el,"debug",pp),i}return fp(t,e),Object.defineProperty(t.prototype,"state",{get:function(){return this._state},set:function(e){this._state!==e&&(qh(this.el,"disabled",0===e),qh(this.el,"minimum",1===e),qh(this.el,"maximum",2===e),this._state=e,this._onDidEnablementChange.fire(e))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"orthogonalStartSash",{get:function(){return this._orthogonalStartSash},set:function(e){this.orthogonalStartSashDisposables.clear(),e?(this.orthogonalStartSashDisposables.add(e.onDidEnablementChange(this.onOrthogonalStartSashEnablementChange,this)),this.onOrthogonalStartSashEnablementChange(e.state)):this.onOrthogonalStartSashEnablementChange(0),this._orthogonalStartSash=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"orthogonalEndSash",{get:function(){return this._orthogonalEndSash},set:function(e){this.orthogonalEndSashDisposables.clear(),e?(this.orthogonalEndSashDisposables.add(e.onDidEnablementChange(this.onOrthogonalEndSashEnablementChange,this)),this.onOrthogonalEndSashEnablementChange(e.state)):this.onOrthogonalEndSashEnablementChange(0),this._orthogonalEndSash=e},enumerable:!0,configurable:!0}),t.prototype.setOrientation=function(e){this.orientation=e,1===this.orientation?(Hh(this.el,"horizontal"),zh(this.el,"vertical")):(zh(this.el,"horizontal"),Hh(this.el,"vertical")),this.layoutProvider&&this.layout()},t.prototype.onMouseDown=function(e){var t=this;xf.stop(e,!1);var n=!1;if(!e.__orthogonalSashEvent){var r=this.getOrthogonalSash(e);r&&(n=!0,e.__orthogonalSashEvent=!0,r.onMouseDown(e))}if(this.linkedSash&&!e.__linkedSashEvent&&(e.__linkedSashEvent=!0,this.linkedSash.onMouseDown(e)),this.state){for(var i=If("iframe").concat(If("webview")),o=0,s=i;o<s.length;o++){s[o].style.pointerEvents="none"}var a=new Nh(e),u=a.posx,l=a.posy,c=a.altKey,d={startX:u,currentX:u,startY:l,currentY:l,altKey:c};Hh(this.el,"active"),this._onDidStart.fire(d);var h=bf(this.el),f=function(){var e="";e=n?"all-scroll":1===t.orientation?1===t.state?"s-resize":2===t.state?"n-resize":nt.d?"row-resize":"ns-resize":1===t.state?"e-resize":2===t.state?"w-resize":nt.d?"col-resize":"ew-resize",h.innerHTML="* { cursor: "+e+" !important; }"},p=new Rt;f(),n||this.onDidEnablementChange(f,null,p);yh(window,"mousemove")((function(e){xf.stop(e,!1);var n=new Nh(e),r={startX:u,currentX:n.posx,startY:l,currentY:n.posy,altKey:c};t._onDidChange.fire(r)}),null,p),yh(window,"mouseup")((function(e){xf.stop(e,!1),t.el.removeChild(h),zh(t.el,"active"),t._onDidEnd.fire(),p.dispose();for(var n=0,r=i;n<r.length;n++){r[n].style.pointerEvents="auto"}}),null,p)}},t.prototype.onMouseDoubleClick=function(e){var t=this.getOrthogonalSash(e);t&&t._onDidReset.fire(),this.linkedSash&&this.linkedSash._onDidReset.fire(),this._onDidReset.fire()},t.prototype.onTouchStart=function(e){var t=this;xf.stop(e);var n=[],r=e.pageX,i=e.pageY,o=e.altKey;this._onDidStart.fire({startX:r,currentX:r,startY:i,currentY:i,altKey:o}),n.push(Gh(this.el,lp.Change,(function(e){Ae(e.pageX)&&Ae(e.pageY)&&t._onDidChange.fire({startX:r,currentX:e.pageX,startY:i,currentY:e.pageY,altKey:o})}))),n.push(Gh(this.el,lp.End,(function(e){t._onDidEnd.fire(),At(n)})))},t.prototype.layout=function(){var e=mh?20:4;if(0===this.orientation){var t=this.layoutProvider;this.el.style.left=t.getVerticalSashLeft(this)-e/2+"px",t.getVerticalSashTop&&(this.el.style.top=t.getVerticalSashTop(this)+"px"),t.getVerticalSashHeight&&(this.el.style.height=t.getVerticalSashHeight(this)+"px")}else{var n=this.layoutProvider;this.el.style.top=n.getHorizontalSashTop(this)-e/2+"px",n.getHorizontalSashLeft&&(this.el.style.left=n.getHorizontalSashLeft(this)+"px"),n.getHorizontalSashWidth&&(this.el.style.width=n.getHorizontalSashWidth(this)+"px")}},t.prototype.hide=function(){this.hidden=!0,this.el.style.display="none",this.el.setAttribute("aria-hidden","true")},t.prototype.onOrthogonalStartSashEnablementChange=function(e){qh(this.el,"orthogonal-start",0!==e)},t.prototype.onOrthogonalEndSashEnablementChange=function(e){qh(this.el,"orthogonal-end",0!==e)},t.prototype.getOrthogonalSash=function(e){if(0===this.orientation){if(e.offsetY<=4)return this.orthogonalStartSash;if(e.offsetY>=this.el.clientHeight-4)return this.orthogonalEndSash}else{if(e.offsetX<=4)return this.orthogonalStartSash;if(e.offsetX>=this.el.clientWidth-4)return this.orthogonalEndSash}},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.el&&this.el.parentElement&&this.el.parentElement.removeChild(this.el),this.el=null},t}(Ft);n(100),n(326);function mp(e,t){void 0===t&&(t={});var n=_p(t);return function e(t,n,r){var i;if(2===n.type)i=document.createTextNode(n.content||"");else if(3===n.type)i=document.createElement("b");else if(4===n.type)i=document.createElement("i");else if(5===n.type&&r){var o=document.createElement("a");o.href="#",r.disposeables.add($h(o,"click",(function(e){r.callback(String(n.index),e)}))),i=o}else 7===n.type?i=document.createElement("br"):1===n.type&&(i=t);i&&t!==i&&t.appendChild(i);i&&Array.isArray(n.children)&&n.children.forEach((function(t){e(i,t,r)}))}(n,function(e){var t={type:1,children:[]},n=0,r=t,i=[],o=new yp(e);for(;!o.eos();){var s=o.next(),a="\\"===s&&0!==vp(o.peek());if(a&&(s=o.next()),a||0===vp(s)||s!==o.peek())if("\n"===s)2===r.type&&(r=i.pop()),r.children.push({type:7});else if(2!==r.type){var u={type:2,content:s};r.children.push(u),i.push(r),r=u}else r.content+=s;else{o.advance(),2===r.type&&(r=i.pop());var l=vp(s);if(r.type===l||5===r.type&&6===l)r=i.pop();else{var c={type:l,children:[]};5===l&&(c.index=n,n++),r.children.push(c),i.push(r),r=c}}}2===r.type&&(r=i.pop());i.length;return t}(e),t.actionHandler),n}function _p(e){var t=e.inline?"span":"div",n=document.createElement(t);return e.className&&(n.className=e.className),n}var yp=function(){function e(e){this.source=e,this.index=0}return e.prototype.eos=function(){return this.index>=this.source.length},e.prototype.next=function(){var e=this.peek();return this.advance(),e},e.prototype.peek=function(){return this.source[this.index]},e.prototype.advance=function(){this.index++},e}();function vp(e){switch(e){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;default:return 0}}n(327);var bp=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),wp=function(e){function t(t,n,r){var i=e.call(this)||this;return i.options=r,i._context=t||i,i._action=n,n instanceof nn&&i._register(n.onDidChange((function(e){i.element&&i.handleActionChangeEvent(e)}))),i}return bp(t,e),t.prototype.handleActionChangeEvent=function(e){void 0!==e.enabled&&this.updateEnabled(),void 0!==e.checked&&this.updateChecked(),void 0!==e.class&&this.updateClass(),void 0!==e.label&&(this.updateLabel(),this.updateTooltip()),void 0!==e.tooltip&&this.updateTooltip()},Object.defineProperty(t.prototype,"actionRunner",{get:function(){return this._actionRunner},set:function(e){this._actionRunner=e},enumerable:!0,configurable:!0}),t.prototype.getAction=function(){return this._action},t.prototype.isEnabled=function(){return this._action.enabled},t.prototype.setActionContext=function(e){this._context=e},t.prototype.render=function(e){var t=this;this.element=e,hp.addTarget(e);var n=this.options&&this.options.draggable;n&&(e.draggable=!0),this._register(Gh(this.element,lp.Tap,(function(e){return t.onClick(e)}))),this._register(Gh(this.element,Sf.MOUSE_DOWN,(function(e){n||xf.stop(e,!0),t._action.enabled&&0===e.button&&t.element&&Hh(t.element,"active")}))),this._register(Gh(this.element,Sf.CLICK,(function(e){xf.stop(e,!0),t.options&&t.options.isMenu?t.onClick(e):nt.h((function(){return t.onClick(e)}))}))),this._register(Gh(this.element,Sf.DBLCLICK,(function(e){xf.stop(e,!0)}))),[Sf.MOUSE_UP,Sf.MOUSE_OUT].forEach((function(e){t._register(Gh(t.element,e,(function(e){xf.stop(e),zh(t.element,"active")})))}))},t.prototype.onClick=function(e){var t;xf.stop(e,!0),Re(this._context)?t=e:Oe(t=this._context)&&(t.event=e),this._actionRunner.run(this._action,t)},t.prototype.focus=function(){this.element&&(this.element.focus(),Hh(this.element,"focused"))},t.prototype.blur=function(){this.element&&(this.element.blur(),zh(this.element,"focused"))},t.prototype.updateEnabled=function(){},t.prototype.updateLabel=function(){},t.prototype.updateTooltip=function(){},t.prototype.updateClass=function(){},t.prototype.updateChecked=function(){},t.prototype.dispose=function(){this.element&&(Fh(this.element),this.element=void 0),e.prototype.dispose.call(this)},t}(Ft),Cp=function(e){function t(n){var r=e.call(this,t.ID,n,n?"separator text":"separator")||this;return r.checked=!1,r.radio=!1,r.enabled=!1,r}return bp(t,e),t.ID="vs.actions.separator",t}(nn),Sp=function(e){function t(t,n,r){void 0===r&&(r={});var i=e.call(this,t,n,r)||this;return i.options=r,i.options.icon=void 0!==r.icon&&r.icon,i.options.label=void 0===r.label||r.label,i.cssClass="",i}return bp(t,e),t.prototype.render=function(t){e.prototype.render.call(this,t),this.element&&(this.label=Mf(this.element,Nf("a.action-label"))),this._action.id===Cp.ID?this.label.setAttribute("role","presentation"):this.options.isMenu?this.label.setAttribute("role","menuitem"):this.label.setAttribute("role","button"),this.options.label&&this.options.keybinding&&this.element&&(Mf(this.element,Nf("span.keybinding")).textContent=this.options.keybinding),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()},t.prototype.focus=function(){e.prototype.focus.call(this),this.label.focus()},t.prototype.updateLabel=function(){this.options.label&&(this.label.textContent=this.getAction().label)},t.prototype.updateTooltip=function(){var e=null;this.getAction().tooltip?e=this.getAction().tooltip:!this.options.label&&this.getAction().label&&this.options.icon&&(e=this.getAction().label,this.options.keybinding&&(e=Ee({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",e,this.options.keybinding))),e&&(this.label.title=e)},t.prototype.updateClass=function(){this.cssClass&&Uh(this.label,this.cssClass),this.options.icon?(this.cssClass=this.getAction().class,Hh(this.label,"icon"),this.cssClass&&Vh(this.label,this.cssClass),this.updateEnabled()):zh(this.label,"icon")},t.prototype.updateEnabled=function(){this.getAction().enabled?(this.label.removeAttribute("aria-disabled"),this.element&&zh(this.element,"disabled"),zh(this.label,"disabled"),this.label.tabIndex=0):(this.label.setAttribute("aria-disabled","true"),this.element&&Hh(this.element,"disabled"),Hh(this.label,"disabled"),Af(this.label))},t.prototype.updateChecked=function(){this.getAction().checked?Hh(this.label,"checked"):zh(this.label,"checked")},t}(wp),xp={orientation:0,context:null,triggerKeys:{keys:[3,10],keyDown:!1}},Lp=function(e){function t(t,n){void 0===n&&(n=xp);var r,i,o=e.call(this)||this;switch(o._onDidBlur=o._register(new $t),o.onDidBlur=o._onDidBlur.event,o._onDidCancel=o._register(new $t),o.onDidCancel=o._onDidCancel.event,o._onDidRun=o._register(new $t),o.onDidRun=o._onDidRun.event,o._onDidBeforeRun=o._register(new $t),o.onDidBeforeRun=o._onDidBeforeRun.event,o.options=n,o._context=n.context,o.options.triggerKeys||(o.options.triggerKeys=xp.triggerKeys),o.options.actionRunner?o._actionRunner=o.options.actionRunner:(o._actionRunner=new rn,o._register(o._actionRunner)),o._register(o._actionRunner.onDidRun((function(e){return o._onDidRun.fire(e)}))),o._register(o._actionRunner.onDidBeforeRun((function(e){return o._onDidBeforeRun.fire(e)}))),o.viewItems=[],o.focusedItem=void 0,o.domNode=document.createElement("div"),o.domNode.className="monaco-action-bar",!1!==n.animated&&Hh(o.domNode,"animated"),o.options.orientation){case 0:r=15,i=17;break;case 1:r=17,i=15,o.domNode.className+=" reverse";break;case 2:r=16,i=18,o.domNode.className+=" vertical";break;case 3:r=18,i=16,o.domNode.className+=" vertical reverse"}return o._register(Gh(o.domNode,Sf.KEY_DOWN,(function(e){var t=new Sh(e),n=!0;t.equals(r)?o.focusPrevious():t.equals(i)?o.focusNext():t.equals(9)?o.cancel():o.isTriggerKeyEvent(t)?o.options.triggerKeys&&o.options.triggerKeys.keyDown&&o.doTrigger(t):n=!1,n&&(t.preventDefault(),t.stopPropagation())}))),o._register(Gh(o.domNode,Sf.KEY_UP,(function(e){var t=new Sh(e);o.isTriggerKeyEvent(t)?(o.options.triggerKeys&&!o.options.triggerKeys.keyDown&&o.doTrigger(t),t.preventDefault(),t.stopPropagation()):(t.equals(2)||t.equals(1026))&&o.updateFocusedItem()}))),o.focusTracker=o._register(kf(o.domNode)),o._register(o.focusTracker.onDidBlur((function(){document.activeElement!==o.domNode&&vf(document.activeElement,o.domNode)||(o._onDidBlur.fire(),o.focusedItem=void 0)}))),o._register(o.focusTracker.onDidFocus((function(){return o.updateFocusedItem()}))),o.actionsList=document.createElement("ul"),o.actionsList.className="actions-container",o.actionsList.setAttribute("role","toolbar"),o.options.ariaLabel&&o.actionsList.setAttribute("aria-label",o.options.ariaLabel),o.domNode.appendChild(o.actionsList),t.appendChild(o.domNode),o}return bp(t,e),t.prototype.isTriggerKeyEvent=function(e){var t=!1;return this.options.triggerKeys&&this.options.triggerKeys.keys.forEach((function(n){t=t||e.equals(n)})),t},t.prototype.updateFocusedItem=function(){for(var e=0;e<this.actionsList.children.length;e++){var t=this.actionsList.children[e];if(vf(document.activeElement,t)){this.focusedItem=e;break}}},Object.defineProperty(t.prototype,"context",{get:function(){return this._context},set:function(e){this._context=e,this.viewItems.forEach((function(t){return t.setActionContext(e)}))},enumerable:!0,configurable:!0}),t.prototype.getContainer=function(){return this.domNode},t.prototype.push=function(e,t){var n=this;void 0===t&&(t={});var r=Array.isArray(e)?e:[e],i=Ae(t.index)?t.index:null;r.forEach((function(e){var r,o=document.createElement("li");o.className="action-item",o.setAttribute("role","presentation"),n._register(Gh(o,Sf.CONTEXT_MENU,(function(e){e.preventDefault(),e.stopPropagation()}))),n.options.actionViewItemProvider&&(r=n.options.actionViewItemProvider(e)),r||(r=new Sp(n.context,e,t)),r.actionRunner=n._actionRunner,r.setActionContext(n.context),r.render(o),null===i||i<0||i>=n.actionsList.children.length?(n.actionsList.appendChild(o),n.viewItems.push(r)):(n.actionsList.insertBefore(o,n.actionsList.children[i]),n.viewItems.splice(i,0,r),i++)}))},t.prototype.clear=function(){this.viewItems=At(this.viewItems),Rh(this.actionsList)},t.prototype.isEmpty=function(){return 0===this.viewItems.length},t.prototype.focus=function(e){var t=!1,n=void 0;void 0===e?t=!0:"number"==typeof e?n=e:"boolean"==typeof e&&(t=e),t&&void 0===this.focusedItem?(this.focusedItem=this.viewItems.length-1,this.focusNext()):(void 0!==n&&(this.focusedItem=n),this.updateFocus())},t.prototype.focusNext=function(){void 0===this.focusedItem&&(this.focusedItem=this.viewItems.length-1);var e,t=this.focusedItem;do{this.focusedItem=(this.focusedItem+1)%this.viewItems.length,e=this.viewItems[this.focusedItem]}while(this.focusedItem!==t&&!e.isEnabled());this.focusedItem!==t||e.isEnabled()||(this.focusedItem=void 0),this.updateFocus()},t.prototype.focusPrevious=function(){void 0===this.focusedItem&&(this.focusedItem=0);var e,t=this.focusedItem;do{this.focusedItem=this.focusedItem-1,this.focusedItem<0&&(this.focusedItem=this.viewItems.length-1),e=this.viewItems[this.focusedItem]}while(this.focusedItem!==t&&!e.isEnabled());this.focusedItem!==t||e.isEnabled()||(this.focusedItem=void 0),this.updateFocus(!0)},t.prototype.updateFocus=function(e){void 0===this.focusedItem&&this.actionsList.focus();for(var t=0;t<this.viewItems.length;t++){var n=this.viewItems[t];t===this.focusedItem?je(n.isEnabled)&&(n.isEnabled()&&je(n.focus)?n.focus(e):this.actionsList.focus()):je(n.blur)&&n.blur()}},t.prototype.doTrigger=function(e){if(void 0!==this.focusedItem){var t=this.viewItems[this.focusedItem];if(t instanceof wp){var n=null===t._context||void 0===t._context?e:t._context;this.run(t._action,n)}}},t.prototype.cancel=function(){document.activeElement instanceof HTMLElement&&document.activeElement.blur(),this._onDidCancel.fire()},t.prototype.run=function(e,t){return this._actionRunner.run(e,t)},t.prototype.dispose=function(){At(this.viewItems),this.viewItems=[],Fh(this.getContainer()),e.prototype.dispose.call(this)},t}(Ft),kp=function(){function e(e,t){void 0===e&&(e=[]),void 0===t&&(t=10),this._initialize(e),this._limit=t,this._onChange()}return e.prototype.add=function(e){this._history.delete(e),this._history.add(e),this._onChange()},e.prototype.next=function(){return this._navigator.next()},e.prototype.previous=function(){return this._navigator.previous()},e.prototype.current=function(){return this._navigator.current()},e.prototype.parent=function(){return null},e.prototype.first=function(){return this._navigator.first()},e.prototype.last=function(){return this._navigator.last()},e.prototype.has=function(e){return this._history.has(e)},e.prototype._onChange=function(){this._reduceToLimit(),this._navigator=new Vt(this._elements,0,this._elements.length,this._elements.length)},e.prototype._reduceToLimit=function(){var e=this._elements;e.length>this._limit&&this._initialize(e.slice(e.length-this._limit))},e.prototype._initialize=function(e){this._history=new Set;for(var t=0,n=e;t<n.length;t++){var r=n[t];this._history.add(r)}},Object.defineProperty(e.prototype,"_elements",{get:function(){var e=[];return this._history.forEach((function(t){return e.push(t)})),e},enumerable:!0,configurable:!0}),e}(),Mp=(n(328),function(){function e(e){this.domNode=e,this._maxWidth=-1,this._width=-1,this._height=-1,this._top=-1,this._left=-1,this._bottom=-1,this._right=-1,this._fontFamily="",this._fontWeight="",this._fontSize=-1,this._lineHeight=-1,this._letterSpacing=-100,this._className="",this._display="",this._position="",this._visibility="",this._layerHint=!1}return e.prototype.setMaxWidth=function(e){this._maxWidth!==e&&(this._maxWidth=e,this.domNode.style.maxWidth=this._maxWidth+"px")},e.prototype.setWidth=function(e){this._width!==e&&(this._width=e,this.domNode.style.width=this._width+"px")},e.prototype.setHeight=function(e){this._height!==e&&(this._height=e,this.domNode.style.height=this._height+"px")},e.prototype.setTop=function(e){this._top!==e&&(this._top=e,this.domNode.style.top=this._top+"px")},e.prototype.unsetTop=function(){-1!==this._top&&(this._top=-1,this.domNode.style.top="")},e.prototype.setLeft=function(e){this._left!==e&&(this._left=e,this.domNode.style.left=this._left+"px")},e.prototype.setBottom=function(e){this._bottom!==e&&(this._bottom=e,this.domNode.style.bottom=this._bottom+"px")},e.prototype.setRight=function(e){this._right!==e&&(this._right=e,this.domNode.style.right=this._right+"px")},e.prototype.setFontFamily=function(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily)},e.prototype.setFontWeight=function(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight)},e.prototype.setFontSize=function(e){this._fontSize!==e&&(this._fontSize=e,this.domNode.style.fontSize=this._fontSize+"px")},e.prototype.setLineHeight=function(e){this._lineHeight!==e&&(this._lineHeight=e,this.domNode.style.lineHeight=this._lineHeight+"px")},e.prototype.setLetterSpacing=function(e){this._letterSpacing!==e&&(this._letterSpacing=e,this.domNode.style.letterSpacing=this._letterSpacing+"px")},e.prototype.setClassName=function(e){this._className!==e&&(this._className=e,this.domNode.className=this._className)},e.prototype.toggleClassName=function(e,t){qh(this.domNode,e,t),this._className=this.domNode.className},e.prototype.setDisplay=function(e){this._display!==e&&(this._display=e,this.domNode.style.display=this._display)},e.prototype.setPosition=function(e){this._position!==e&&(this._position=e,this.domNode.style.position=this._position)},e.prototype.setVisibility=function(e){this._visibility!==e&&(this._visibility=e,this.domNode.style.visibility=this._visibility)},e.prototype.setLayerHinting=function(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.willChange=this._layerHint?"transform":"auto")},e.prototype.setAttribute=function(e,t){this.domNode.setAttribute(e,t)},e.prototype.removeAttribute=function(e){this.domNode.removeAttribute(e)},e.prototype.appendChild=function(e){this.domNode.appendChild(e.domNode)},e.prototype.removeChild=function(e){this.domNode.removeChild(e.domNode)},e}());function Dp(e){return new Mp(e)}function Ep(e,t){var n=new Nh(t);return n.preventDefault(),{leftButton:n.leftButton,posx:n.posx,posy:n.posy}}var Tp=function(){function e(){this.hooks=new Rt,this.mouseMoveEventMerger=null,this.mouseMoveCallback=null,this.onStopCallback=null}return e.prototype.dispose=function(){this.stopMonitoring(!1),this.hooks.dispose()},e.prototype.stopMonitoring=function(e){if(this.isMonitoring()){this.hooks.clear(),this.mouseMoveEventMerger=null,this.mouseMoveCallback=null;var t=this.onStopCallback;this.onStopCallback=null,e&&t&&t()}},e.prototype.isMonitoring=function(){return!!this.mouseMoveEventMerger},e.prototype.startMonitoring=function(e,t,n){var r=this;if(!this.isMonitoring()){this.mouseMoveEventMerger=e,this.mouseMoveCallback=t,this.onStopCallback=n;for(var i=Eh.getSameOriginWindowChain(),o=0,s=i;o<s.length;o++){var a=s[o];this.hooks.add(cf(a.window.document,"mousemove",(function(e){return r.mouseMoveCallback(e)}),(function(e,t){return r.mouseMoveEventMerger(e,t)}))),this.hooks.add(Gh(a.window.document,"mouseup",(function(e){return r.stopMonitoring(!0)})))}if(Eh.hasDifferentOriginAncestor()){var u=i[i.length-1];this.hooks.add(Gh(u.window.document,"mouseout",(function(e){"html"===new Nh(e).target.tagName.toLowerCase()&&r.stopMonitoring(!0)}))),this.hooks.add(Gh(u.window.document,"mouseover",(function(e){"html"===new Nh(e).target.tagName.toLowerCase()&&r.stopMonitoring(!0)}))),this.hooks.add(Gh(u.window.document.body,"mouseleave",(function(e){r.stopMonitoring(!0)})))}}},e}(),Np=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Op=11,Ap=function(e){function t(t){var n=e.call(this)||this;return n._onActivate=t.onActivate,n.bgDomNode=document.createElement("div"),n.bgDomNode.className="arrow-background",n.bgDomNode.style.position="absolute",n.bgDomNode.style.width=t.bgWidth+"px",n.bgDomNode.style.height=t.bgHeight+"px",void 0!==t.top&&(n.bgDomNode.style.top="0px"),void 0!==t.left&&(n.bgDomNode.style.left="0px"),void 0!==t.bottom&&(n.bgDomNode.style.bottom="0px"),void 0!==t.right&&(n.bgDomNode.style.right="0px"),n.domNode=document.createElement("div"),n.domNode.className=t.className,n.domNode.style.position="absolute",n.domNode.style.width=Op+"px",n.domNode.style.height=Op+"px",void 0!==t.top&&(n.domNode.style.top=t.top+"px"),void 0!==t.left&&(n.domNode.style.left=t.left+"px"),void 0!==t.bottom&&(n.domNode.style.bottom=t.bottom+"px"),void 0!==t.right&&(n.domNode.style.right=t.right+"px"),n._mouseMoveMonitor=n._register(new Tp),n.onmousedown(n.bgDomNode,(function(e){return n._arrowMouseDown(e)})),n.onmousedown(n.domNode,(function(e){return n._arrowMouseDown(e)})),n._mousedownRepeatTimer=n._register(new Os),n._mousedownScheduleRepeatTimer=n._register(new Ns),n}return Np(t,e),t.prototype._arrowMouseDown=function(e){var t=this;this._onActivate(),this._mousedownRepeatTimer.cancel(),this._mousedownScheduleRepeatTimer.cancelAndSet((function(){t._mousedownRepeatTimer.cancelAndSet((function(){return t._onActivate()}),1e3/24)}),200),this._mouseMoveMonitor.startMonitoring(Ep,(function(e){}),(function(){t._mousedownRepeatTimer.cancel(),t._mousedownScheduleRepeatTimer.cancel()})),e.preventDefault()},t}(jf),Ip=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Pp=function(e){function t(t,n,r){var i=e.call(this)||this;return i._visibility=t,i._visibleClassName=n,i._invisibleClassName=r,i._domNode=null,i._isVisible=!1,i._isNeeded=!1,i._shouldBeVisible=!1,i._revealTimer=i._register(new Ns),i}return Ip(t,e),t.prototype.applyVisibilitySetting=function(e){return 2!==this._visibility&&(3===this._visibility||e)},t.prototype.setShouldBeVisible=function(e){var t=this.applyVisibilitySetting(e);this._shouldBeVisible!==t&&(this._shouldBeVisible=t,this.ensureVisibility())},t.prototype.setIsNeeded=function(e){this._isNeeded!==e&&(this._isNeeded=e,this.ensureVisibility())},t.prototype.setDomNode=function(e){this._domNode=e,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)},t.prototype.ensureVisibility=function(){this._isNeeded?this._shouldBeVisible?this._reveal():this._hide(!0):this._hide(!1)},t.prototype._reveal=function(){var e=this;this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet((function(){e._domNode&&e._domNode.setClassName(e._visibleClassName)}),0))},t.prototype._hide=function(e){this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,this._domNode&&this._domNode.setClassName(this._invisibleClassName+(e?" fade":"")))},t}(Ft),Rp=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Fp=function(e){function t(t){var n=e.call(this)||this;return n._lazyRender=t.lazyRender,n._host=t.host,n._scrollable=t.scrollable,n._scrollbarState=t.scrollbarState,n._visibilityController=n._register(new Pp(t.visibility,"visible scrollbar "+t.extraScrollbarClassName,"invisible scrollbar "+t.extraScrollbarClassName)),n._mouseMoveMonitor=n._register(new Tp),n._shouldRender=!0,n.domNode=Dp(document.createElement("div")),n.domNode.setAttribute("role","presentation"),n.domNode.setAttribute("aria-hidden","true"),n._visibilityController.setDomNode(n.domNode),n.domNode.setPosition("absolute"),n.onmousedown(n.domNode.domNode,(function(e){return n._domNodeMouseDown(e)})),n}return Rp(t,e),t.prototype._createArrow=function(e){var t=this._register(new Ap(e));this.domNode.domNode.appendChild(t.bgDomNode),this.domNode.domNode.appendChild(t.domNode)},t.prototype._createSlider=function(e,t,n,r){var i=this;this.slider=Dp(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(e),this.slider.setLeft(t),"number"==typeof n&&this.slider.setWidth(n),"number"==typeof r&&this.slider.setHeight(r),this.slider.setLayerHinting(!0),this.domNode.domNode.appendChild(this.slider.domNode),this.onmousedown(this.slider.domNode,(function(e){e.leftButton&&(e.preventDefault(),i._sliderMouseDown(e,(function(){})))})),this.onclick(this.slider.domNode,(function(e){e.leftButton&&e.stopPropagation()}))},t.prototype._onElementSize=function(e){return this._scrollbarState.setVisibleSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender},t.prototype._onElementScrollSize=function(e){return this._scrollbarState.setScrollSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender},t.prototype._onElementScrollPosition=function(e){return this._scrollbarState.setScrollPosition(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender},t.prototype.beginReveal=function(){this._visibilityController.setShouldBeVisible(!0)},t.prototype.beginHide=function(){this._visibilityController.setShouldBeVisible(!1)},t.prototype.render=function(){this._shouldRender&&(this._shouldRender=!1,this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize()),this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition()))},t.prototype._domNodeMouseDown=function(e){e.target===this.domNode.domNode&&this._onMouseDown(e)},t.prototype.delegateMouseDown=function(e){var t=this.domNode.domNode.getClientRects()[0].top,n=t+this._scrollbarState.getSliderPosition(),r=t+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),i=this._sliderMousePosition(e);n<=i&&i<=r?e.leftButton&&(e.preventDefault(),this._sliderMouseDown(e,(function(){}))):this._onMouseDown(e)},t.prototype._onMouseDown=function(e){var t,n;if(e.target===this.domNode.domNode&&"number"==typeof e.browserEvent.offsetX&&"number"==typeof e.browserEvent.offsetY)t=e.browserEvent.offsetX,n=e.browserEvent.offsetY;else{var r=pf(this.domNode.domNode);t=e.posx-r.left,n=e.posy-r.top}this._setDesiredScrollPositionNow(this._scrollbarState.getDesiredScrollPositionFromOffset(this._mouseDownRelativePosition(t,n))),e.leftButton&&(e.preventDefault(),this._sliderMouseDown(e,(function(){})))},t.prototype._sliderMouseDown=function(e,t){var n=this,r=this._sliderMousePosition(e),i=this._sliderOrthogonalMousePosition(e),o=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._mouseMoveMonitor.startMonitoring(Ep,(function(e){var t=n._sliderOrthogonalMousePosition(e),s=Math.abs(t-i);if(nt.g&&s>140)n._setDesiredScrollPositionNow(o.getScrollPosition());else{var a=n._sliderMousePosition(e)-r;n._setDesiredScrollPositionNow(o.getDesiredScrollPositionFromDelta(a))}}),(function(){n.slider.toggleClassName("active",!1),n._host.onDragEnd(),t()})),this._host.onDragStart()},t.prototype._setDesiredScrollPositionNow=function(e){var t={};this.writeScrollPosition(t,e),this._scrollable.setScrollPositionNow(t)},t}(jf),Yp=function(){function e(e,t,n){this._scrollbarSize=Math.round(t),this._oppositeScrollbarSize=Math.round(n),this._arrowSize=Math.round(e),this._visibleSize=0,this._scrollSize=0,this._scrollPosition=0,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}return e.prototype.clone=function(){var t=new e(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize);return t.setVisibleSize(this._visibleSize),t.setScrollSize(this._scrollSize),t.setScrollPosition(this._scrollPosition),t},e.prototype.setVisibleSize=function(e){var t=Math.round(e);return this._visibleSize!==t&&(this._visibleSize=t,this._refreshComputedValues(),!0)},e.prototype.setScrollSize=function(e){var t=Math.round(e);return this._scrollSize!==t&&(this._scrollSize=t,this._refreshComputedValues(),!0)},e.prototype.setScrollPosition=function(e){var t=Math.round(e);return this._scrollPosition!==t&&(this._scrollPosition=t,this._refreshComputedValues(),!0)},e._computeValues=function(e,t,n,r,i){var o=Math.max(0,n-e),s=Math.max(0,o-2*t),a=r>0&&r>n;if(!a)return{computedAvailableSize:Math.round(o),computedIsNeeded:a,computedSliderSize:Math.round(s),computedSliderRatio:0,computedSliderPosition:0};var u=Math.round(Math.max(20,Math.floor(n*s/r))),l=(s-u)/(r-n),c=i*l;return{computedAvailableSize:Math.round(o),computedIsNeeded:a,computedSliderSize:Math.round(u),computedSliderRatio:l,computedSliderPosition:Math.round(c)}},e.prototype._refreshComputedValues=function(){var t=e._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=t.computedAvailableSize,this._computedIsNeeded=t.computedIsNeeded,this._computedSliderSize=t.computedSliderSize,this._computedSliderRatio=t.computedSliderRatio,this._computedSliderPosition=t.computedSliderPosition},e.prototype.getArrowSize=function(){return this._arrowSize},e.prototype.getScrollPosition=function(){return this._scrollPosition},e.prototype.getRectangleLargeSize=function(){return this._computedAvailableSize},e.prototype.getRectangleSmallSize=function(){return this._scrollbarSize},e.prototype.isNeeded=function(){return this._computedIsNeeded},e.prototype.getSliderSize=function(){return this._computedSliderSize},e.prototype.getSliderPosition=function(){return this._computedSliderPosition},e.prototype.getDesiredScrollPositionFromOffset=function(e){if(!this._computedIsNeeded)return 0;var t=e-this._arrowSize-this._computedSliderSize/2;return Math.round(t/this._computedSliderRatio)},e.prototype.getDesiredScrollPositionFromDelta=function(e){if(!this._computedIsNeeded)return 0;var t=this._computedSliderPosition+e;return Math.round(t/this._computedSliderRatio)},e}(),jp=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Bp=function(e){function t(t,n,r){var i=e.call(this,{lazyRender:n.lazyRender,host:r,scrollbarState:new Yp(n.horizontalHasArrows?n.arrowSize:0,2===n.horizontal?0:n.horizontalScrollbarSize,2===n.vertical?0:n.verticalScrollbarSize),visibility:n.horizontal,extraScrollbarClassName:"horizontal",scrollable:t})||this;if(n.horizontalHasArrows){var o=(n.arrowSize-Op)/2,s=(n.horizontalScrollbarSize-Op)/2;i._createArrow({className:"left-arrow",top:s,left:o,bottom:void 0,right:void 0,bgWidth:n.arrowSize,bgHeight:n.horizontalScrollbarSize,onActivate:function(){return i._host.onMouseWheel(new Oh(null,1,0))}}),i._createArrow({className:"right-arrow",top:s,left:void 0,bottom:void 0,right:o,bgWidth:n.arrowSize,bgHeight:n.horizontalScrollbarSize,onActivate:function(){return i._host.onMouseWheel(new Oh(null,-1,0))}})}return i._createSlider(Math.floor((n.horizontalScrollbarSize-n.horizontalSliderSize)/2),0,void 0,n.horizontalSliderSize),i}return jp(t,e),t.prototype._updateSlider=function(e,t){this.slider.setWidth(e),this.slider.setLeft(t)},t.prototype._renderDomNode=function(e,t){this.domNode.setWidth(e),this.domNode.setHeight(t),this.domNode.setLeft(0),this.domNode.setBottom(0)},t.prototype.onDidScroll=function(e){return this._shouldRender=this._onElementScrollSize(e.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(e.width)||this._shouldRender,this._shouldRender},t.prototype._mouseDownRelativePosition=function(e,t){return e},t.prototype._sliderMousePosition=function(e){return e.posx},t.prototype._sliderOrthogonalMousePosition=function(e){return e.posy},t.prototype.writeScrollPosition=function(e,t){e.scrollLeft=t},t}(Fp),Wp=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Hp=function(e){function t(t,n,r){var i=e.call(this,{lazyRender:n.lazyRender,host:r,scrollbarState:new Yp(n.verticalHasArrows?n.arrowSize:0,2===n.vertical?0:n.verticalScrollbarSize,0),visibility:n.vertical,extraScrollbarClassName:"vertical",scrollable:t})||this;if(n.verticalHasArrows){var o=(n.arrowSize-Op)/2,s=(n.verticalScrollbarSize-Op)/2;i._createArrow({className:"up-arrow",top:o,left:s,bottom:void 0,right:void 0,bgWidth:n.verticalScrollbarSize,bgHeight:n.arrowSize,onActivate:function(){return i._host.onMouseWheel(new Oh(null,0,1))}}),i._createArrow({className:"down-arrow",top:void 0,left:s,bottom:o,right:void 0,bgWidth:n.verticalScrollbarSize,bgHeight:n.arrowSize,onActivate:function(){return i._host.onMouseWheel(new Oh(null,0,-1))}})}return i._createSlider(0,Math.floor((n.verticalScrollbarSize-n.verticalSliderSize)/2),n.verticalSliderSize,void 0),i}return Wp(t,e),t.prototype._updateSlider=function(e,t){this.slider.setHeight(e),this.slider.setTop(t)},t.prototype._renderDomNode=function(e,t){this.domNode.setWidth(t),this.domNode.setHeight(e),this.domNode.setRight(0),this.domNode.setTop(0)},t.prototype.onDidScroll=function(e){return this._shouldRender=this._onElementScrollSize(e.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(e.height)||this._shouldRender,this._shouldRender},t.prototype._mouseDownRelativePosition=function(e,t){return t},t.prototype._sliderMousePosition=function(e){return e.posy},t.prototype._sliderOrthogonalMousePosition=function(e){return e.posx},t.prototype.writeScrollPosition=function(e,t){e.scrollTop=t},t}(Fp),Vp=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),zp=function(){function e(e,t,n,r,i,o){(e|=0)<0&&(e=0),(n|=0)+e>(t|=0)&&(n=t-e),n<0&&(n=0),(r|=0)<0&&(r=0),(o|=0)+r>(i|=0)&&(o=i-r),o<0&&(o=0),this.width=e,this.scrollWidth=t,this.scrollLeft=n,this.height=r,this.scrollHeight=i,this.scrollTop=o}return e.prototype.equals=function(e){return this.width===e.width&&this.scrollWidth===e.scrollWidth&&this.scrollLeft===e.scrollLeft&&this.height===e.height&&this.scrollHeight===e.scrollHeight&&this.scrollTop===e.scrollTop},e.prototype.withScrollDimensions=function(t){return new e(void 0!==t.width?t.width:this.width,void 0!==t.scrollWidth?t.scrollWidth:this.scrollWidth,this.scrollLeft,void 0!==t.height?t.height:this.height,void 0!==t.scrollHeight?t.scrollHeight:this.scrollHeight,this.scrollTop)},e.prototype.withScrollPosition=function(t){return new e(this.width,this.scrollWidth,void 0!==t.scrollLeft?t.scrollLeft:this.scrollLeft,this.height,this.scrollHeight,void 0!==t.scrollTop?t.scrollTop:this.scrollTop)},e.prototype.createScrollEvent=function(e){var t=this.width!==e.width,n=this.scrollWidth!==e.scrollWidth,r=this.scrollLeft!==e.scrollLeft,i=this.height!==e.height,o=this.scrollHeight!==e.scrollHeight,s=this.scrollTop!==e.scrollTop;return{width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:t,scrollWidthChanged:n,scrollLeftChanged:r,heightChanged:i,scrollHeightChanged:o,scrollTopChanged:s}},e}(),Up=function(e){function t(t,n){var r=e.call(this)||this;return r._onScroll=r._register(new $t),r.onScroll=r._onScroll.event,r._smoothScrollDuration=t,r._scheduleAtNextAnimationFrame=n,r._state=new zp(0,0,0,0,0,0),r._smoothScrolling=null,r}return Vp(t,e),t.prototype.dispose=function(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),e.prototype.dispose.call(this)},t.prototype.setSmoothScrollDuration=function(e){this._smoothScrollDuration=e},t.prototype.validateScrollPosition=function(e){return this._state.withScrollPosition(e)},t.prototype.getScrollDimensions=function(){return this._state},t.prototype.setScrollDimensions=function(e){var t=this._state.withScrollDimensions(e);this._setState(t),this._smoothScrolling&&this._smoothScrolling.acceptScrollDimensions(this._state)},t.prototype.getFutureScrollPosition=function(){return this._smoothScrolling?this._smoothScrolling.to:this._state},t.prototype.getCurrentScrollPosition=function(){return this._state},t.prototype.setScrollPositionNow=function(e){var t=this._state.withScrollPosition(e);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(t)},t.prototype.setScrollPositionSmooth=function(e){var t=this;if(0===this._smoothScrollDuration)return this.setScrollPositionNow(e);if(this._smoothScrolling){e={scrollLeft:void 0===e.scrollLeft?this._smoothScrolling.to.scrollLeft:e.scrollLeft,scrollTop:void 0===e.scrollTop?this._smoothScrolling.to.scrollTop:e.scrollTop};var n=this._state.withScrollPosition(e);if(this._smoothScrolling.to.scrollLeft===n.scrollLeft&&this._smoothScrolling.to.scrollTop===n.scrollTop)return;var r=this._smoothScrolling.combine(this._state,n,this._smoothScrollDuration);this._smoothScrolling.dispose(),this._smoothScrolling=r}else{n=this._state.withScrollPosition(e);this._smoothScrolling=Gp.start(this._state,n,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame((function(){t._smoothScrolling&&(t._smoothScrolling.animationFrameDisposable=null,t._performSmoothScrolling())}))},t.prototype._performSmoothScrolling=function(){var e=this;if(this._smoothScrolling){var t=this._smoothScrolling.tick(),n=this._state.withScrollPosition(t);if(this._setState(n),t.isDone)return this._smoothScrolling.dispose(),void(this._smoothScrolling=null);this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame((function(){e._smoothScrolling&&(e._smoothScrolling.animationFrameDisposable=null,e._performSmoothScrolling())}))}},t.prototype._setState=function(e){var t=this._state;t.equals(e)||(this._state=e,this._onScroll.fire(this._state.createScrollEvent(t)))},t}(Ft),qp=function(e,t,n){this.scrollLeft=e,this.scrollTop=t,this.isDone=n};function Kp(e,t){var n=t-e;return function(t){return e+n*(1-function(e){return Math.pow(e,3)}(1-t))}}var Gp=function(){function e(e,t,n,r){this.from=e,this.to=t,this.duration=r,this._startTime=n,this.animationFrameDisposable=null,this._initAnimations()}return e.prototype._initAnimations=function(){this.scrollLeft=this._initAnimation(this.from.scrollLeft,this.to.scrollLeft,this.to.width),this.scrollTop=this._initAnimation(this.from.scrollTop,this.to.scrollTop,this.to.height)},e.prototype._initAnimation=function(e,t,n){var r,i,o;if(Math.abs(e-t)>2.5*n){var s=void 0,a=void 0;return e<t?(s=e+.75*n,a=t-.75*n):(s=e-.75*n,a=t+.75*n),r=Kp(e,s),i=Kp(a,t),o=.33,function(e){return e<o?r(e/o):i((e-o)/(1-o))}}return Kp(e,t)},e.prototype.dispose=function(){null!==this.animationFrameDisposable&&(this.animationFrameDisposable.dispose(),this.animationFrameDisposable=null)},e.prototype.acceptScrollDimensions=function(e){this.to=e.withScrollPosition(this.to),this._initAnimations()},e.prototype.tick=function(){return this._tick(Date.now())},e.prototype._tick=function(e){var t=(e-this._startTime)/this.duration;if(t<1){var n=this.scrollLeft(t),r=this.scrollTop(t);return new qp(n,r,!1)}return new qp(this.to.scrollLeft,this.to.scrollTop,!0)},e.prototype.combine=function(t,n,r){return e.start(t,n,r)},e.start=function(t,n,r){return r+=10,new e(t,n,Date.now()-10,r)},e}();var $p=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Zp=function(e,t,n){this.timestamp=e,this.deltaX=t,this.deltaY=n,this.score=0},Xp=function(){function e(){this._capacity=5,this._memory=[],this._front=-1,this._rear=-1}return e.prototype.isPhysicalMouseWheel=function(){if(-1===this._front&&-1===this._rear)return!1;for(var e=1,t=0,n=1,r=this._rear;;){var i=r===this._front?e:Math.pow(2,-n);if(e-=i,t+=this._memory[r].score*i,r===this._front)break;r=(this._capacity+r-1)%this._capacity,n++}return t<=.5},e.prototype.accept=function(e,t,n){var r=new Zp(e,t,n);r.score=this._computeScore(r),-1===this._front&&-1===this._rear?(this._memory[0]=r,this._front=0,this._rear=0):(this._rear=(this._rear+1)%this._capacity,this._rear===this._front&&(this._front=(this._front+1)%this._capacity),this._memory[this._rear]=r)},e.prototype._computeScore=function(e){if(Math.abs(e.deltaX)>0&&Math.abs(e.deltaY)>0)return 1;var t=.5;-1===this._front&&-1===this._rear||this._memory[this._rear];return(Math.abs(e.deltaX-Math.round(e.deltaX))>0||Math.abs(e.deltaY-Math.round(e.deltaY))>0)&&(t+=.25),Math.min(Math.max(t,0),1)},e.INSTANCE=new e,e}(),Jp=function(e){function t(t,n,r){var i=e.call(this)||this;i._onScroll=i._register(new $t),i.onScroll=i._onScroll.event,t.style.overflow="hidden",i._options=ng(n),i._scrollable=r,i._register(i._scrollable.onScroll((function(e){i._onDidScroll(e),i._onScroll.fire(e)})));var o={onMouseWheel:function(e){return i._onMouseWheel(e)},onDragStart:function(){return i._onDragStart()},onDragEnd:function(){return i._onDragEnd()}};return i._verticalScrollbar=i._register(new Hp(i._scrollable,i._options,o)),i._horizontalScrollbar=i._register(new Bp(i._scrollable,i._options,o)),i._domNode=document.createElement("div"),i._domNode.className="monaco-scrollable-element "+i._options.className,i._domNode.setAttribute("role","presentation"),i._domNode.style.position="relative",i._domNode.style.overflow="hidden",i._domNode.appendChild(t),i._domNode.appendChild(i._horizontalScrollbar.domNode.domNode),i._domNode.appendChild(i._verticalScrollbar.domNode.domNode),i._options.useShadows?(i._leftShadowDomNode=Dp(document.createElement("div")),i._leftShadowDomNode.setClassName("shadow"),i._domNode.appendChild(i._leftShadowDomNode.domNode),i._topShadowDomNode=Dp(document.createElement("div")),i._topShadowDomNode.setClassName("shadow"),i._domNode.appendChild(i._topShadowDomNode.domNode),i._topLeftShadowDomNode=Dp(document.createElement("div")),i._topLeftShadowDomNode.setClassName("shadow top-left-corner"),i._domNode.appendChild(i._topLeftShadowDomNode.domNode)):(i._leftShadowDomNode=null,i._topShadowDomNode=null,i._topLeftShadowDomNode=null),i._listenOnDomNode=i._options.listenOnDomNode||i._domNode,i._mouseWheelToDispose=[],i._setListeningToMouseWheel(i._options.handleMouseWheel),i.onmouseover(i._listenOnDomNode,(function(e){return i._onMouseOver(e)})),i.onnonbubblingmouseout(i._listenOnDomNode,(function(e){return i._onMouseOut(e)})),i._hideTimeout=i._register(new Ns),i._isDragging=!1,i._mouseIsOver=!1,i._shouldRender=!0,i._revealOnScroll=!0,i}return $p(t,e),t.prototype.dispose=function(){this._mouseWheelToDispose=At(this._mouseWheelToDispose),e.prototype.dispose.call(this)},t.prototype.getDomNode=function(){return this._domNode},t.prototype.getOverviewRulerLayoutInfo=function(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}},t.prototype.delegateVerticalScrollbarMouseDown=function(e){this._verticalScrollbar.delegateMouseDown(e)},t.prototype.getScrollDimensions=function(){return this._scrollable.getScrollDimensions()},t.prototype.setScrollDimensions=function(e){this._scrollable.setScrollDimensions(e)},t.prototype.updateClassName=function(e){this._options.className=e,nt.d&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className},t.prototype.updateOptions=function(e){var t=ng(e);this._options.handleMouseWheel=t.handleMouseWheel,this._options.mouseWheelScrollSensitivity=t.mouseWheelScrollSensitivity,this._options.fastScrollSensitivity=t.fastScrollSensitivity,this._setListeningToMouseWheel(this._options.handleMouseWheel),this._options.lazyRender||this._render()},t.prototype._setListeningToMouseWheel=function(e){var t=this;if(this._mouseWheelToDispose.length>0!==e&&(this._mouseWheelToDispose=At(this._mouseWheelToDispose),e)){this._mouseWheelToDispose.push(Gh(this._listenOnDomNode,ch?"mousewheel":"wheel",(function(e){t._onMouseWheel(new Oh(e))})))}},t.prototype._onMouseWheel=function(e){var t,n=Xp.INSTANCE;if(n.accept(Date.now(),e.deltaX,e.deltaY),e.deltaY||e.deltaX){var r=e.deltaY*this._options.mouseWheelScrollSensitivity,i=e.deltaX*this._options.mouseWheelScrollSensitivity;this._options.flipAxes&&(r=(t=[i,r])[0],i=t[1]);var o=!nt.d&&e.browserEvent&&e.browserEvent.shiftKey;!this._options.scrollYToX&&!o||i||(i=r,r=0),e.browserEvent&&e.browserEvent.altKey&&(i*=this._options.fastScrollSensitivity,r*=this._options.fastScrollSensitivity);var s=this._scrollable.getFutureScrollPosition(),a={};if(r){var u=s.scrollTop-50*r;this._verticalScrollbar.writeScrollPosition(a,u)}if(i){var l=s.scrollLeft-50*i;this._horizontalScrollbar.writeScrollPosition(a,l)}if(a=this._scrollable.validateScrollPosition(a),s.scrollLeft!==a.scrollLeft||s.scrollTop!==a.scrollTop)this._options.mouseWheelSmoothScroll&&n.isPhysicalMouseWheel()?this._scrollable.setScrollPositionSmooth(a):this._scrollable.setScrollPositionNow(a),this._shouldRender=!0}(this._options.alwaysConsumeMouseWheel||this._shouldRender)&&(e.preventDefault(),e.stopPropagation())},t.prototype._onDidScroll=function(e){this._shouldRender=this._horizontalScrollbar.onDidScroll(e)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(e)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()},t.prototype.renderNow=function(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()},t.prototype._render=function(){if(this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){var e=this._scrollable.getCurrentScrollPosition(),t=e.scrollTop>0,n=e.scrollLeft>0;this._leftShadowDomNode.setClassName("shadow"+(n?" left":"")),this._topShadowDomNode.setClassName("shadow"+(t?" top":"")),this._topLeftShadowDomNode.setClassName("shadow top-left-corner"+(t?" top":"")+(n?" left":""))}},t.prototype._onDragStart=function(){this._isDragging=!0,this._reveal()},t.prototype._onDragEnd=function(){this._isDragging=!1,this._hide()},t.prototype._onMouseOut=function(e){this._mouseIsOver=!1,this._hide()},t.prototype._onMouseOver=function(e){this._mouseIsOver=!0,this._reveal()},t.prototype._reveal=function(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()},t.prototype._hide=function(){this._mouseIsOver||this._isDragging||(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())},t.prototype._scheduleHide=function(){var e=this;this._mouseIsOver||this._isDragging||this._hideTimeout.cancelAndSet((function(){return e._hide()}),500)},t}(jf),Qp=function(e){function t(t,n){var r=this;(n=n||{}).mouseWheelSmoothScroll=!1;var i=new Up(0,(function(e){return Jh(e)}));return(r=e.call(this,t,n,i)||this)._register(i),r}return $p(t,e),t.prototype.setScrollPosition=function(e){this._scrollable.setScrollPositionNow(e)},t.prototype.getScrollPosition=function(){return this._scrollable.getCurrentScrollPosition()},t}(Jp),eg=function(e){function t(t,n,r){return e.call(this,t,n,r)||this}return $p(t,e),t}(Jp),tg=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r._element=t,r.onScroll((function(e){e.scrollTopChanged&&(r._element.scrollTop=e.scrollTop),e.scrollLeftChanged&&(r._element.scrollLeft=e.scrollLeft)})),r.scanDomNode(),r}return $p(t,e),t.prototype.scanDomNode=function(){this.setScrollDimensions({width:this._element.clientWidth,scrollWidth:this._element.scrollWidth,height:this._element.clientHeight,scrollHeight:this._element.scrollHeight}),this.setScrollPosition({scrollLeft:this._element.scrollLeft,scrollTop:this._element.scrollTop})},t}(Qp);function ng(e){var t={lazyRender:void 0!==e.lazyRender&&e.lazyRender,className:void 0!==e.className?e.className:"",useShadows:void 0===e.useShadows||e.useShadows,handleMouseWheel:void 0===e.handleMouseWheel||e.handleMouseWheel,flipAxes:void 0!==e.flipAxes&&e.flipAxes,alwaysConsumeMouseWheel:void 0!==e.alwaysConsumeMouseWheel&&e.alwaysConsumeMouseWheel,scrollYToX:void 0!==e.scrollYToX&&e.scrollYToX,mouseWheelScrollSensitivity:void 0!==e.mouseWheelScrollSensitivity?e.mouseWheelScrollSensitivity:1,fastScrollSensitivity:void 0!==e.fastScrollSensitivity?e.fastScrollSensitivity:5,mouseWheelSmoothScroll:void 0===e.mouseWheelSmoothScroll||e.mouseWheelSmoothScroll,arrowSize:void 0!==e.arrowSize?e.arrowSize:11,listenOnDomNode:void 0!==e.listenOnDomNode?e.listenOnDomNode:null,horizontal:void 0!==e.horizontal?e.horizontal:1,horizontalScrollbarSize:void 0!==e.horizontalScrollbarSize?e.horizontalScrollbarSize:10,horizontalSliderSize:void 0!==e.horizontalSliderSize?e.horizontalSliderSize:0,horizontalHasArrows:void 0!==e.horizontalHasArrows&&e.horizontalHasArrows,vertical:void 0!==e.vertical?e.vertical:1,verticalScrollbarSize:void 0!==e.verticalScrollbarSize?e.verticalScrollbarSize:10,verticalHasArrows:void 0!==e.verticalHasArrows&&e.verticalHasArrows,verticalSliderSize:void 0!==e.verticalSliderSize?e.verticalSliderSize:0};return t.horizontalSliderSize=void 0!==e.horizontalSliderSize?e.horizontalSliderSize:t.horizontalScrollbarSize,t.verticalSliderSize=void 0!==e.verticalSliderSize?e.verticalSliderSize:t.verticalScrollbarSize,nt.d&&(t.className+=" mac"),t}var rg=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ig=Nf,og={inputBackground:Ou.fromHex("#3C3C3C"),inputForeground:Ou.fromHex("#CCCCCC"),inputValidationInfoBorder:Ou.fromHex("#55AAFF"),inputValidationInfoBackground:Ou.fromHex("#063B49"),inputValidationWarningBorder:Ou.fromHex("#B89500"),inputValidationWarningBackground:Ou.fromHex("#352A05"),inputValidationErrorBorder:Ou.fromHex("#BE1100"),inputValidationErrorBackground:Ou.fromHex("#5A1D1D")},sg=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.history=new kp(r.history,100),i}return rg(t,e),t.prototype.addToHistory=function(){this.value&&this.value!==this.getCurrentValue()&&this.history.add(this.value)},t.prototype.showNextValue=function(){this.history.has(this.value)||this.addToHistory();var e=this.getNextValue();e&&(e=e===this.value?this.getNextValue():e),e&&(this.value=e,ip(this.value))},t.prototype.showPreviousValue=function(){this.history.has(this.value)||this.addToHistory();var e=this.getPreviousValue();e&&(e=e===this.value?this.getPreviousValue():e),e&&(this.value=e,ip(this.value))},t.prototype.getCurrentValue=function(){var e=this.history.current();return e||(e=this.history.last(),this.history.next()),e},t.prototype.getPreviousValue=function(){return this.history.previous()||this.history.first()},t.prototype.getNextValue=function(){return this.history.next()||this.history.last()},t}(function(e){function t(t,n,r){var i=e.call(this)||this;i.state="idle",i.maxHeight=Number.POSITIVE_INFINITY,i._onDidChange=i._register(new $t),i.onDidChange=i._onDidChange.event,i._onDidHeightChange=i._register(new $t),i.onDidHeightChange=i._onDidHeightChange.event,i.contextViewProvider=n,i.options=r||Object.create(null),Jr(i.options,og,!1),i.message=null,i.placeholder=i.options.placeholder||"",i.ariaLabel=i.options.ariaLabel||"",i.inputBackground=i.options.inputBackground,i.inputForeground=i.options.inputForeground,i.inputBorder=i.options.inputBorder,i.inputValidationInfoBorder=i.options.inputValidationInfoBorder,i.inputValidationInfoBackground=i.options.inputValidationInfoBackground,i.inputValidationInfoForeground=i.options.inputValidationInfoForeground,i.inputValidationWarningBorder=i.options.inputValidationWarningBorder,i.inputValidationWarningBackground=i.options.inputValidationWarningBackground,i.inputValidationWarningForeground=i.options.inputValidationWarningForeground,i.inputValidationErrorBorder=i.options.inputValidationErrorBorder,i.inputValidationErrorBackground=i.options.inputValidationErrorBackground,i.inputValidationErrorForeground=i.options.inputValidationErrorForeground,i.options.validationOptions&&(i.validation=i.options.validationOptions.validation),i.element=Mf(t,ig(".monaco-inputbox.idle"));var o=i.options.flexibleHeight?"textarea":"input",s=Mf(i.element,ig(".wrapper"));if(i.input=Mf(s,ig(o+".input")),i.input.setAttribute("autocorrect","off"),i.input.setAttribute("autocapitalize","off"),i.input.setAttribute("spellcheck","false"),i.onfocus(i.input,(function(){return Hh(i.element,"synthetic-focus")})),i.onblur(i.input,(function(){return zh(i.element,"synthetic-focus")})),i.options.flexibleHeight){i.maxHeight="number"==typeof i.options.flexibleMaxHeight?i.options.flexibleMaxHeight:Number.POSITIVE_INFINITY,i.mirror=Mf(s,ig("div.mirror")),i.mirror.innerHTML=" ",i.scrollableElement=new Qp(i.element,{vertical:1}),i.options.flexibleWidth&&(i.input.setAttribute("wrap","off"),i.mirror.style.whiteSpace="pre",i.mirror.style.wordWrap="initial"),Mf(t,i.scrollableElement.getDomNode()),i._register(i.scrollableElement),i._register(i.scrollableElement.onScroll((function(e){return i.input.scrollTop=e.scrollTop})));var a=Ht.filter(yh(document,"selectionchange"),(function(){var e=document.getSelection();return!!e&&e.anchorNode===s}));i._register(a(i.updateScrollDimensions,i)),i._register(i.onDidHeightChange(i.updateScrollDimensions,i))}else i.input.type=i.options.type||"text",i.input.setAttribute("wrap","off");return i.ariaLabel&&i.input.setAttribute("aria-label",i.ariaLabel),i.placeholder&&i.setPlaceHolder(i.placeholder),i.oninput(i.input,(function(){return i.onValueChange()})),i.onblur(i.input,(function(){return i.onBlur()})),i.onfocus(i.input,(function(){return i.onFocus()})),i.placeholder&&uh&&i.onclick(i.input,(function(e){xf.stop(e,!0),i.input.focus()})),setTimeout((function(){i.input&&i.updateMirror()}),0),i.options.actions&&(i.actionbar=i._register(new Lp(i.element)),i.actionbar.push(i.options.actions,{icon:!0,label:!1})),i.applyStyles(),i}return rg(t,e),t.prototype.onBlur=function(){this._hideMessage()},t.prototype.onFocus=function(){this._showMessage()},t.prototype.setPlaceHolder=function(e){this.input&&(this.input.setAttribute("placeholder",e),this.input.title=e)},t.prototype.setAriaLabel=function(e){this.ariaLabel=e,this.input&&(e?this.input.setAttribute("aria-label",this.ariaLabel):this.input.removeAttribute("aria-label"))},Object.defineProperty(t.prototype,"inputElement",{get:function(){return this.input},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.input.value},set:function(e){this.input.value!==e&&(this.input.value=e,this.onValueChange())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return"number"==typeof this.cachedHeight?this.cachedHeight:yf(this.element)},enumerable:!0,configurable:!0}),t.prototype.focus=function(){this.input.focus()},t.prototype.blur=function(){this.input.blur()},t.prototype.hasFocus=function(){return document.activeElement===this.input},t.prototype.select=function(e){void 0===e&&(e=null),this.input.select(),e&&this.input.setSelectionRange(e.start,e.end)},t.prototype.enable=function(){this.input.removeAttribute("disabled")},t.prototype.disable=function(){this.input.disabled=!0,this._hideMessage()},Object.defineProperty(t.prototype,"width",{get:function(){return mf(this.input)},set:function(e){if(this.options.flexibleHeight&&this.options.flexibleWidth){var t=0;if(this.mirror)t=(parseFloat(this.mirror.style.paddingLeft||"")||0)+(parseFloat(this.mirror.style.paddingRight||"")||0);this.input.style.width=e-t+"px"}else this.input.style.width=e+"px";this.mirror&&(this.mirror.style.width=e+"px")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paddingRight",{set:function(e){this.options.flexibleHeight&&this.options.flexibleWidth?this.input.style.width="calc(100% - "+e+"px)":this.input.style.paddingRight=e+"px",this.mirror&&(this.mirror.style.paddingRight=e+"px")},enumerable:!0,configurable:!0}),t.prototype.updateScrollDimensions=function(){if("number"==typeof this.cachedContentHeight&&"number"==typeof this.cachedHeight){var e=this.cachedContentHeight,t=this.cachedHeight,n=this.input.scrollTop;this.scrollableElement.setScrollDimensions({scrollHeight:e,height:t}),this.scrollableElement.setScrollPosition({scrollTop:n})}},t.prototype.showMessage=function(e,t){this.message=e,zh(this.element,"idle"),zh(this.element,"info"),zh(this.element,"warning"),zh(this.element,"error"),Hh(this.element,this.classForType(e.type));var n=this.stylesForType(this.message.type);this.element.style.border=n.border?"1px solid "+n.border:null,rp(3===e.type?Ee("alertErrorMessage","Error: {0}",e.content):2===e.type?Ee("alertWarningMessage","Warning: {0}",e.content):Ee("alertInfoMessage","Info: {0}",e.content)),(this.hasFocus()||t)&&this._showMessage()},t.prototype.hideMessage=function(){this.message=null,zh(this.element,"info"),zh(this.element,"warning"),zh(this.element,"error"),Hh(this.element,"idle"),this._hideMessage(),this.applyStyles()},t.prototype.validate=function(){var e=null;return this.validation&&((e=this.validation(this.value))?(this.inputElement.setAttribute("aria-invalid","true"),this.showMessage(e)):this.inputElement.hasAttribute("aria-invalid")&&(this.inputElement.removeAttribute("aria-invalid"),this.hideMessage())),!e},t.prototype.stylesForType=function(e){switch(e){case 1:return{border:this.inputValidationInfoBorder,background:this.inputValidationInfoBackground,foreground:this.inputValidationInfoForeground};case 2:return{border:this.inputValidationWarningBorder,background:this.inputValidationWarningBackground,foreground:this.inputValidationWarningForeground};default:return{border:this.inputValidationErrorBorder,background:this.inputValidationErrorBackground,foreground:this.inputValidationErrorForeground}}},t.prototype.classForType=function(e){switch(e){case 1:return"info";case 2:return"warning";default:return"error"}},t.prototype._showMessage=function(){var e=this;if(this.contextViewProvider&&this.message){var t,n=function(){return t.style.width=mf(e.element)+"px"};this.contextViewProvider.showContextView({getAnchor:function(){return e.element},anchorAlignment:1,render:function(r){if(!e.message)return null;t=Mf(r,ig(".monaco-inputbox-container")),n();var i={inline:!0,className:"monaco-inputbox-message"},o=e.message.formatContent?mp(e.message.content,i):function(e,t){void 0===t&&(t={});var n=_p(t);return n.textContent=e,n}(e.message.content,i);Hh(o,e.classForType(e.message.type));var s=e.stylesForType(e.message.type);return o.style.backgroundColor=s.background?s.background.toString():null,o.style.color=s.foreground?s.foreground.toString():null,o.style.border=s.border?"1px solid "+s.border:null,Mf(t,o),null},onHide:function(){e.state="closed"},layout:n}),this.state="open"}},t.prototype._hideMessage=function(){this.contextViewProvider&&("open"===this.state&&this.contextViewProvider.hideContextView(),this.state="idle")},t.prototype.onValueChange=function(){this._onDidChange.fire(this.value),this.validate(),this.updateMirror(),"open"===this.state&&this.contextViewProvider&&this.contextViewProvider.layout()},t.prototype.updateMirror=function(){if(this.mirror){var e=this.value||this.placeholder,t=10===e.charCodeAt(e.length-1)?" ":"";e+t?this.mirror.textContent=e+t:this.mirror.innerHTML=" ",this.layout()}},t.prototype.style=function(e){this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()},t.prototype.applyStyles=function(){if(this.element){var e=this.inputBackground?this.inputBackground.toString():null,t=this.inputForeground?this.inputForeground.toString():null,n=this.inputBorder?this.inputBorder.toString():null;this.element.style.backgroundColor=e,this.element.style.color=t,this.input.style.backgroundColor=e,this.input.style.color=t,this.element.style.borderWidth=n?"1px":null,this.element.style.borderStyle=n?"solid":null,this.element.style.borderColor=n}},t.prototype.layout=function(){if(this.mirror){var e=this.cachedContentHeight;this.cachedContentHeight=yf(this.mirror),e!==this.cachedContentHeight&&(this.cachedHeight=Math.min(this.cachedContentHeight,this.maxHeight),this.input.style.height=this.cachedHeight+"px",this._onDidHeightChange.fire(this.cachedContentHeight))}},t.prototype.dispose=function(){this._hideMessage(),this.element=null,this.input=null,this.contextViewProvider=void 0,this.message=null,this.validation=void 0,this.state=null,this.actionbar=void 0,e.prototype.dispose.call(this)},t}(jf)),ag=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ug=Ee("defaultLabel","input"),lg=function(e){function t(t,n,r,i){var o=e.call(this)||this;o._showOptionButtons=r,o.fixFocusOnOptionClickEnabled=!0,o._onDidOptionChange=o._register(new $t),o.onDidOptionChange=o._onDidOptionChange.event,o._onKeyDown=o._register(new $t),o.onKeyDown=o._onKeyDown.event,o._onMouseDown=o._register(new $t),o.onMouseDown=o._onMouseDown.event,o._onInput=o._register(new $t),o._onKeyUp=o._register(new $t),o._onCaseSensitiveKeyDown=o._register(new $t),o.onCaseSensitiveKeyDown=o._onCaseSensitiveKeyDown.event,o._onRegexKeyDown=o._register(new $t),o.onRegexKeyDown=o._onRegexKeyDown.event,o._lastHighlightFindOptions=0,o.contextViewProvider=n,o.placeholder=i.placeholder||"",o.validation=i.validation,o.label=i.label||ug,o.inputActiveOptionBorder=i.inputActiveOptionBorder,o.inputActiveOptionBackground=i.inputActiveOptionBackground,o.inputBackground=i.inputBackground,o.inputForeground=i.inputForeground,o.inputBorder=i.inputBorder,o.inputValidationInfoBorder=i.inputValidationInfoBorder,o.inputValidationInfoBackground=i.inputValidationInfoBackground,o.inputValidationInfoForeground=i.inputValidationInfoForeground,o.inputValidationWarningBorder=i.inputValidationWarningBorder,o.inputValidationWarningBackground=i.inputValidationWarningBackground,o.inputValidationWarningForeground=i.inputValidationWarningForeground,o.inputValidationErrorBorder=i.inputValidationErrorBorder,o.inputValidationErrorBackground=i.inputValidationErrorBackground,o.inputValidationErrorForeground=i.inputValidationErrorForeground;var s=i.appendCaseSensitiveLabel||"",a=i.appendWholeWordsLabel||"",u=i.appendRegexLabel||"",l=i.history||[],c=!!i.flexibleHeight,d=!!i.flexibleWidth,h=i.flexibleMaxHeight;o.domNode=document.createElement("div"),Hh(o.domNode,"monaco-findInput"),o.inputBox=o._register(new sg(o.domNode,o.contextViewProvider,{placeholder:o.placeholder||"",ariaLabel:o.label||"",validationOptions:{validation:o.validation},inputBackground:o.inputBackground,inputForeground:o.inputForeground,inputBorder:o.inputBorder,inputValidationInfoBackground:o.inputValidationInfoBackground,inputValidationInfoForeground:o.inputValidationInfoForeground,inputValidationInfoBorder:o.inputValidationInfoBorder,inputValidationWarningBackground:o.inputValidationWarningBackground,inputValidationWarningForeground:o.inputValidationWarningForeground,inputValidationWarningBorder:o.inputValidationWarningBorder,inputValidationErrorBackground:o.inputValidationErrorBackground,inputValidationErrorForeground:o.inputValidationErrorForeground,inputValidationErrorBorder:o.inputValidationErrorBorder,history:l,flexibleHeight:c,flexibleWidth:d,flexibleMaxHeight:h})),o.regex=o._register(new $f({appendTitle:u,isChecked:!1,inputActiveOptionBorder:o.inputActiveOptionBorder,inputActiveOptionBackground:o.inputActiveOptionBackground})),o._register(o.regex.onChange((function(e){o._onDidOptionChange.fire(e),!e&&o.fixFocusOnOptionClickEnabled&&o.inputBox.focus(),o.validate()}))),o._register(o.regex.onKeyDown((function(e){o._onRegexKeyDown.fire(e)}))),o.wholeWords=o._register(new Gf({appendTitle:a,isChecked:!1,inputActiveOptionBorder:o.inputActiveOptionBorder,inputActiveOptionBackground:o.inputActiveOptionBackground})),o._register(o.wholeWords.onChange((function(e){o._onDidOptionChange.fire(e),!e&&o.fixFocusOnOptionClickEnabled&&o.inputBox.focus(),o.validate()}))),o.caseSensitive=o._register(new Kf({appendTitle:s,isChecked:!1,inputActiveOptionBorder:o.inputActiveOptionBorder,inputActiveOptionBackground:o.inputActiveOptionBackground})),o._register(o.caseSensitive.onChange((function(e){o._onDidOptionChange.fire(e),!e&&o.fixFocusOnOptionClickEnabled&&o.inputBox.focus(),o.validate()}))),o._register(o.caseSensitive.onKeyDown((function(e){o._onCaseSensitiveKeyDown.fire(e)}))),o._showOptionButtons&&(o.inputBox.paddingRight=o.caseSensitive.width()+o.wholeWords.width()+o.regex.width());var f=[o.caseSensitive.domNode,o.wholeWords.domNode,o.regex.domNode];o.onkeydown(o.domNode,(function(e){if(e.equals(15)||e.equals(17)||e.equals(9)){var t=f.indexOf(document.activeElement);if(t>=0){var n=-1;e.equals(17)?n=(t+1)%f.length:e.equals(15)&&(n=0===t?f.length-1:t-1),e.equals(9)?f[t].blur():n>=0&&f[n].focus(),xf.stop(e,!0)}}}));var p=document.createElement("div");return p.className="controls",p.style.display=o._showOptionButtons?"block":"none",p.appendChild(o.caseSensitive.domNode),p.appendChild(o.wholeWords.domNode),p.appendChild(o.regex.domNode),o.domNode.appendChild(p),t&&t.appendChild(o.domNode),o.onkeydown(o.inputBox.inputElement,(function(e){return o._onKeyDown.fire(e)})),o.onkeyup(o.inputBox.inputElement,(function(e){return o._onKeyUp.fire(e)})),o.oninput(o.inputBox.inputElement,(function(e){return o._onInput.fire()})),o.onmousedown(o.inputBox.inputElement,(function(e){return o._onMouseDown.fire(e)})),o}return ag(t,e),t.prototype.enable=function(){zh(this.domNode,"disabled"),this.inputBox.enable(),this.regex.enable(),this.wholeWords.enable(),this.caseSensitive.enable()},t.prototype.disable=function(){Hh(this.domNode,"disabled"),this.inputBox.disable(),this.regex.disable(),this.wholeWords.disable(),this.caseSensitive.disable()},t.prototype.setFocusInputOnOptionClick=function(e){this.fixFocusOnOptionClickEnabled=e},t.prototype.setEnabled=function(e){e?this.enable():this.disable()},t.prototype.getValue=function(){return this.inputBox.value},t.prototype.setValue=function(e){this.inputBox.value!==e&&(this.inputBox.value=e)},t.prototype.style=function(e){this.inputActiveOptionBorder=e.inputActiveOptionBorder,this.inputActiveOptionBackground=e.inputActiveOptionBackground,this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()},t.prototype.applyStyles=function(){if(this.domNode){var e={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionBackground:this.inputActiveOptionBackground};this.regex.style(e),this.wholeWords.style(e),this.caseSensitive.style(e);var t={inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder};this.inputBox.style(t)}},t.prototype.select=function(){this.inputBox.select()},t.prototype.focus=function(){this.inputBox.focus()},t.prototype.getCaseSensitive=function(){return this.caseSensitive.checked},t.prototype.setCaseSensitive=function(e){this.caseSensitive.checked=e},t.prototype.getWholeWords=function(){return this.wholeWords.checked},t.prototype.setWholeWords=function(e){this.wholeWords.checked=e},t.prototype.getRegex=function(){return this.regex.checked},t.prototype.setRegex=function(e){this.regex.checked=e,this.validate()},t.prototype.focusOnCaseSensitive=function(){this.caseSensitive.focus()},t.prototype.highlightFindOptions=function(){zh(this.domNode,"highlight-"+this._lastHighlightFindOptions),this._lastHighlightFindOptions=1-this._lastHighlightFindOptions,Hh(this.domNode,"highlight-"+this._lastHighlightFindOptions)},t.prototype.validate=function(){this.inputBox&&this.inputBox.validate()},t.prototype.clearMessage=function(){this.inputBox&&this.inputBox.hideMessage()},t.prototype.dispose=function(){e.prototype.dispose.call(this)},t}(jf),cg=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),dg=Ee("defaultLabel","input"),hg=Ee("label.preserveCaseCheckbox","Preserve Case"),fg=function(e){function t(t){return e.call(this,{actionClassName:"monaco-case-sensitive",title:hg+t.appendTitle,isChecked:t.isChecked,inputActiveOptionBorder:t.inputActiveOptionBorder})||this}return cg(t,e),t}(Hf),pg=function(e){function t(t,n,r,i){var o=e.call(this)||this;o._showOptionButtons=r,o.fixFocusOnOptionClickEnabled=!0,o.cachedOptionsWidth=0,o._onDidOptionChange=o._register(new $t),o.onDidOptionChange=o._onDidOptionChange.event,o._onKeyDown=o._register(new $t),o.onKeyDown=o._onKeyDown.event,o._onMouseDown=o._register(new $t),o._onInput=o._register(new $t),o._onKeyUp=o._register(new $t),o._onPreserveCaseKeyDown=o._register(new $t),o.onPreserveCaseKeyDown=o._onPreserveCaseKeyDown.event,o.contextViewProvider=n,o.placeholder=i.placeholder||"",o.validation=i.validation,o.label=i.label||dg,o.inputActiveOptionBorder=i.inputActiveOptionBorder,o.inputBackground=i.inputBackground,o.inputForeground=i.inputForeground,o.inputBorder=i.inputBorder,o.inputValidationInfoBorder=i.inputValidationInfoBorder,o.inputValidationInfoBackground=i.inputValidationInfoBackground,o.inputValidationInfoForeground=i.inputValidationInfoForeground,o.inputValidationWarningBorder=i.inputValidationWarningBorder,o.inputValidationWarningBackground=i.inputValidationWarningBackground,o.inputValidationWarningForeground=i.inputValidationWarningForeground,o.inputValidationErrorBorder=i.inputValidationErrorBorder,o.inputValidationErrorBackground=i.inputValidationErrorBackground,o.inputValidationErrorForeground=i.inputValidationErrorForeground;var s=!!i.flexibleHeight,a=!!i.flexibleWidth,u=i.flexibleMaxHeight;return o.buildDomNode(i.history||[],s,a,u),t&&t.appendChild(o.domNode),o.onkeydown(o.inputBox.inputElement,(function(e){return o._onKeyDown.fire(e)})),o.onkeyup(o.inputBox.inputElement,(function(e){return o._onKeyUp.fire(e)})),o.oninput(o.inputBox.inputElement,(function(e){return o._onInput.fire()})),o.onmousedown(o.inputBox.inputElement,(function(e){return o._onMouseDown.fire(e)})),o}return cg(t,e),t.prototype.enable=function(){zh(this.domNode,"disabled"),this.inputBox.enable(),this.preserveCase.enable()},t.prototype.disable=function(){Hh(this.domNode,"disabled"),this.inputBox.disable(),this.preserveCase.disable()},t.prototype.setEnabled=function(e){e?this.enable():this.disable()},t.prototype.style=function(e){this.inputActiveOptionBorder=e.inputActiveOptionBorder,this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()},t.prototype.applyStyles=function(){if(this.domNode){var e={inputActiveOptionBorder:this.inputActiveOptionBorder};this.preserveCase.style(e);var t={inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder};this.inputBox.style(t)}},t.prototype.select=function(){this.inputBox.select()},t.prototype.focus=function(){this.inputBox.focus()},t.prototype.getPreserveCase=function(){return this.preserveCase.checked},t.prototype.setPreserveCase=function(e){this.preserveCase.checked=e},t.prototype.focusOnPreserve=function(){this.preserveCase.focus()},t.prototype.buildDomNode=function(e,t,n,r){var i=this;this.domNode=document.createElement("div"),Hh(this.domNode,"monaco-findInput"),this.inputBox=this._register(new sg(this.domNode,this.contextViewProvider,{ariaLabel:this.label||"",placeholder:this.placeholder||"",validationOptions:{validation:this.validation},inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder,history:e,flexibleHeight:t,flexibleWidth:n,flexibleMaxHeight:r})),this.preserveCase=this._register(new fg({appendTitle:"",isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder})),this._register(this.preserveCase.onChange((function(e){i._onDidOptionChange.fire(e),!e&&i.fixFocusOnOptionClickEnabled&&i.inputBox.focus(),i.validate()}))),this._register(this.preserveCase.onKeyDown((function(e){i._onPreserveCaseKeyDown.fire(e)}))),this._showOptionButtons?this.cachedOptionsWidth=this.preserveCase.width():this.cachedOptionsWidth=0;var o=[this.preserveCase.domNode];this.onkeydown(this.domNode,(function(e){if(e.equals(15)||e.equals(17)||e.equals(9)){var t=o.indexOf(document.activeElement);if(t>=0){var n=-1;e.equals(17)?n=(t+1)%o.length:e.equals(15)&&(n=0===t?o.length-1:t-1),e.equals(9)?o[t].blur():n>=0&&o[n].focus(),xf.stop(e,!0)}}}));var s=document.createElement("div");s.className="controls",s.style.display=this._showOptionButtons?"block":"none",s.appendChild(this.preserveCase.domNode),this.domNode.appendChild(s)},t.prototype.validate=function(){this.inputBox&&this.inputBox.validate()},Object.defineProperty(t.prototype,"width",{set:function(e){this.inputBox.paddingRight=this.cachedOptionsWidth,this.inputBox.width=e,this.domNode.style.width=e+"px"},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t}(jf),gg=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),mg=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},_g=function(e,t){return function(n,r){t(n,r,e)}},yg="historyNavigationWidget",vg="historyNavigationEnabled";function bg(e,t){return e.getContext(document.activeElement).getValue(t)}function wg(e,t){var n=function(e,t){return e.createScoped(t.target)}(e,t);return function(e,t,n){new qn(n,t).bindTo(e)}(n,t,yg),{scopedContextKeyService:n,historyNavigationEnablement:new qn(vg,!0).bindTo(n)}}var Cg=function(e){function t(t,n,r,i,o){void 0===o&&(o=!1);var s=e.call(this,t,n,o,r)||this;return s._register(wg(i,{target:s.inputBox.element,historyNavigator:s.inputBox}).scopedContextKeyService),s}return gg(t,e),t=mg([_g(3,Kn)],t)}(lg),Sg=function(e){function t(t,n,r,i,o){void 0===o&&(o=!1);var s=e.call(this,t,n,o,r)||this;return s._register(wg(i,{target:s.inputBox.element,historyNavigator:s.inputBox}).scopedContextKeyService),s}return gg(t,e),t=mg([_g(3,Kn)],t)}(pg);Mr.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:Rn.and(Rn.has(yg),Rn.equals(vg,!0)),primary:16,secondary:[528],handler:function(e,t){var n=bg(e.get(Kn),yg);n&&n.historyNavigator.showPreviousValue()}}),Mr.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:Rn.and(Rn.has(yg),Rn.equals(vg,!0)),primary:18,secondary:[530],handler:function(e,t){var n=bg(e.get(Kn),yg);n&&n.historyNavigator.showNextValue()}});var xg=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Lg=Ee("label.find","Find"),kg=Ee("placeholder.find","Find"),Mg=Ee("label.previousMatchButton","Previous match"),Dg=Ee("label.nextMatchButton","Next match"),Eg=Ee("label.toggleSelectionFind","Find in selection"),Tg=Ee("label.closeButton","Close"),Ng=Ee("label.replace","Replace"),Og=Ee("placeholder.replace","Replace"),Ag=Ee("label.replaceButton","Replace"),Ig=Ee("label.replaceAllButton","Replace All"),Pg=Ee("label.toggleReplaceButton","Toggle Replace mode"),Rg=Ee("title.matchesCountLimit","Only the first {0} results are highlighted, but all find operations work on the entire text.",19999),Fg=Ee("label.matchesLocation","{0} of {1}"),Yg=Ee("label.noResults","No Results"),jg=69,Bg=17+(jg+3+1)+92+2,Wg=33,Hg="ctrlEnterReplaceAll.windows.donotask",Vg=nt.d?256:2048,zg=function(e){this.afterLineNumber=e,this.heightInPx=Wg,this.suppressMouseDown=!1,this.domNode=document.createElement("div"),this.domNode.className="dock-find-viewzone"};function Ug(e,t,n){var r=!!t.match(/\n/);n&&r&&n.selectionStart>0&&e.stopPropagation()}function qg(e,t,n){var r=!!t.match(/\n/);n&&r&&n.selectionEnd<n.value.length&&e.stopPropagation()}var Kg=function(e){function t(t,n,r,i,o,s,a,u,l){var c=e.call(this)||this;return c._codeEditor=t,c._controller=n,c._state=r,c._contextViewProvider=i,c._keybindingService=o,c._contextKeyService=s,c._storageService=u,c._notificationService=l,c._ctrlEnterReplaceAllWarningPrompted=!!u.getBoolean(Hg,0),c._isVisible=!1,c._isReplaceVisible=!1,c._ignoreChangeEvent=!1,c._updateHistoryDelayer=new Ds(500),c._register(Pt((function(){return c._updateHistoryDelayer.cancel()}))),c._register(c._state.onFindReplaceStateChange((function(e){return c._onStateChanged(e)}))),c._buildDomNode(),c._updateButtons(),c._tryUpdateWidgetWidth(),c._findInput.inputBox.layout(),c._register(c._codeEditor.onDidChangeConfiguration((function(e){if(e.readOnly&&(c._codeEditor.getConfiguration().readOnly&&c._state.change({isReplaceRevealed:!1},!1),c._updateButtons()),e.layoutInfo&&c._tryUpdateWidgetWidth(),e.accessibilitySupport&&c.updateAccessibilitySupport(),e.contribInfo){var t=c._codeEditor.getConfiguration().contribInfo.find.addExtraSpaceOnTop;t&&!c._viewZone&&(c._viewZone=new zg(0),c._showViewZone()),!t&&c._viewZone&&c._removeViewZone()}}))),c.updateAccessibilitySupport(),c._register(c._codeEditor.onDidChangeCursorSelection((function(){c._isVisible&&c._updateToggleSelectionFindButton()}))),c._register(c._codeEditor.onDidFocusEditorWidget((function(){if(c._isVisible){var e=c._controller.getGlobalBufferTerm();e&&e!==c._state.searchString&&(c._state.change({searchString:e},!0),c._findInput.select())}}))),c._findInputFocused=Xd.bindTo(s),c._findFocusTracker=c._register(kf(c._findInput.inputBox.inputElement)),c._register(c._findFocusTracker.onDidFocus((function(){c._findInputFocused.set(!0),c._updateSearchScope()}))),c._register(c._findFocusTracker.onDidBlur((function(){c._findInputFocused.set(!1)}))),c._replaceInputFocused=Jd.bindTo(s),c._replaceFocusTracker=c._register(kf(c._replaceInput.inputBox.inputElement)),c._register(c._replaceFocusTracker.onDidFocus((function(){c._replaceInputFocused.set(!0),c._updateSearchScope()}))),c._register(c._replaceFocusTracker.onDidBlur((function(){c._replaceInputFocused.set(!1)}))),c._codeEditor.addOverlayWidget(c),c._codeEditor.getConfiguration().contribInfo.find.addExtraSpaceOnTop&&(c._viewZone=new zg(0)),c._applyTheme(a.getTheme()),c._register(a.onThemeChange(c._applyTheme.bind(c))),c._register(c._codeEditor.onDidChangeModel((function(){c._isVisible&&(c._viewZoneId=void 0)}))),c._register(c._codeEditor.onDidScrollChange((function(e){e.scrollTopChanged?c._layoutViewZone():setTimeout((function(){c._layoutViewZone()}),0)}))),c}return xg(t,e),t.prototype.getId=function(){return t.ID},t.prototype.getDomNode=function(){return this._domNode},t.prototype.getPosition=function(){return this._isVisible?{preference:0}:null},t.prototype._onStateChanged=function(e){if(e.searchString){this._state.searchString.indexOf("\n")>=0?Hh(this._domNode,"multipleline"):zh(this._domNode,"multipleline");try{this._ignoreChangeEvent=!0,this._findInput.setValue(this._state.searchString)}finally{this._ignoreChangeEvent=!1}this._updateButtons()}if(e.replaceString&&(this._replaceInput.inputBox.value=this._state.replaceString),e.isRevealed&&(this._state.isRevealed?this._reveal():this._hide(!0)),e.isReplaceRevealed&&(this._state.isReplaceRevealed?this._codeEditor.getConfiguration().readOnly||this._isReplaceVisible||(this._isReplaceVisible=!0,this._replaceInput.width=mf(this._findInput.domNode),this._updateButtons(),this._replaceInput.inputBox.layout()):this._isReplaceVisible&&(this._isReplaceVisible=!1,this._updateButtons())),(e.isRevealed||e.isReplaceRevealed)&&(this._state.isRevealed||this._state.isReplaceRevealed)&&this._tryUpdateHeight()&&this._showViewZone(),e.isRegex&&this._findInput.setRegex(this._state.isRegex),e.wholeWord&&this._findInput.setWholeWords(this._state.wholeWord),e.matchCase&&this._findInput.setCaseSensitive(this._state.matchCase),e.searchScope&&(this._state.searchScope?this._toggleSelectionFind.checked=!0:this._toggleSelectionFind.checked=!1,this._updateToggleSelectionFindButton()),e.searchString||e.matchesCount||e.matchesPosition){var t=this._state.searchString.length>0&&0===this._state.matchesCount;qh(this._domNode,"no-results",t),this._updateMatchesCount(),this._updateButtons()}(e.searchString||e.currentMatch)&&this._layoutViewZone(),e.updateHistory&&this._delayedUpdateHistory()},t.prototype._delayedUpdateHistory=function(){this._updateHistoryDelayer.trigger(this._updateHistory.bind(this))},t.prototype._updateHistory=function(){this._state.searchString&&this._findInput.inputBox.addToHistory(),this._state.replaceString&&this._replaceInput.inputBox.addToHistory()},t.prototype._updateMatchesCount=function(){var e;if(this._matchesCount.style.minWidth=jg+"px",this._state.matchesCount>=19999?this._matchesCount.title=Rg:this._matchesCount.title="",this._matchesCount.firstChild&&this._matchesCount.removeChild(this._matchesCount.firstChild),this._state.matchesCount>0){var t=String(this._state.matchesCount);this._state.matchesCount>=19999&&(t+="+");var n=String(this._state.matchesPosition);"0"===n&&(n="?"),e=an(Fg,n,t)}else e=Yg;this._matchesCount.appendChild(document.createTextNode(e)),rp(this._getAriaLabel(e,this._state.currentMatch,this._state.searchString),!0),jg=Math.max(jg,this._matchesCount.clientWidth)},t.prototype._getAriaLabel=function(e,t,n){return e===Yg?""===n?Ee("ariaSearchNoResultEmpty","{0} found",e):Ee("ariaSearchNoResult","{0} found for {1}",e,n):t?Ee("ariaSearchNoResultWithLineNum","{0} found for {1} at {2}",e,n,t.startLineNumber+":"+t.startColumn):Ee("ariaSearchNoResultWithLineNumNoCurrentMatch","{0} found for {1}",e,n)},t.prototype._updateToggleSelectionFindButton=function(){var e=this._codeEditor.getSelection(),t=!!e&&(e.startLineNumber!==e.endLineNumber||e.startColumn!==e.endColumn),n=this._toggleSelectionFind.checked;this._toggleSelectionFind.setEnabled(this._isVisible&&(n||t))},t.prototype._updateButtons=function(){this._findInput.setEnabled(this._isVisible),this._replaceInput.setEnabled(this._isVisible&&this._isReplaceVisible),this._updateToggleSelectionFindButton(),this._closeBtn.setEnabled(this._isVisible);var e=this._state.searchString.length>0,t=!!this._state.matchesCount;this._prevBtn.setEnabled(this._isVisible&&e&&t),this._nextBtn.setEnabled(this._isVisible&&e&&t),this._replaceBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._replaceAllBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),qh(this._domNode,"replaceToggled",this._isReplaceVisible),this._toggleReplaceBtn.toggleClass("collapse",!this._isReplaceVisible),this._toggleReplaceBtn.toggleClass("expand",this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible);var n=!this._codeEditor.getConfiguration().readOnly;this._toggleReplaceBtn.setEnabled(this._isVisible&&n)},t.prototype._reveal=function(){var e=this;if(!this._isVisible){this._isVisible=!0;var t=this._codeEditor.getSelection();!!t&&(t.startLineNumber!==t.endLineNumber||t.startColumn!==t.endColumn)&&this._codeEditor.getConfiguration().contribInfo.find.autoFindInSelection?this._toggleSelectionFind.checked=!0:this._toggleSelectionFind.checked=!1,this._tryUpdateWidgetWidth(),this._updateButtons(),setTimeout((function(){Hh(e._domNode,"visible"),e._domNode.setAttribute("aria-hidden","false")}),0),setTimeout((function(){e._findInput.validate()}),200),this._codeEditor.layoutOverlayWidget(this);var n=!0;if(this._codeEditor.getConfiguration().contribInfo.find.seedSearchStringFromSelection&&t){var r=this._codeEditor.getDomNode();if(r){var i=pf(r),o=this._codeEditor.getScrolledVisiblePosition(t.getStartPosition()),s=i.left+(o?o.left:0),a=o?o.top:0;if(this._viewZone&&a<this._viewZone.heightInPx){t.endLineNumber>t.startLineNumber&&(n=!1);var u=ff(this._domNode).left;s>u&&(n=!1);var l=this._codeEditor.getScrolledVisiblePosition(t.getEndPosition());i.left+(l?l.left:0)>u&&(n=!1)}}}this._showViewZone(n)}},t.prototype._hide=function(e){this._isVisible&&(this._isVisible=!1,this._updateButtons(),zh(this._domNode,"visible"),this._domNode.setAttribute("aria-hidden","true"),this._findInput.clearMessage(),e&&this._codeEditor.focus(),this._codeEditor.layoutOverlayWidget(this),this._removeViewZone())},t.prototype._layoutViewZone=function(){var e=this;if(this._codeEditor.getConfiguration().contribInfo.find.addExtraSpaceOnTop){if(this._isVisible){var t=this._viewZone;void 0===this._viewZoneId&&t&&this._codeEditor.changeViewZones((function(n){t.heightInPx=e._getHeight(),e._viewZoneId=n.addZone(t),e._codeEditor.setScrollTop(e._codeEditor.getScrollTop()+t.heightInPx)}))}}else this._removeViewZone()},t.prototype._showViewZone=function(e){var t=this;if((void 0===e&&(e=!0),this._isVisible)&&this._codeEditor.getConfiguration().contribInfo.find.addExtraSpaceOnTop){void 0===this._viewZone&&(this._viewZone=new zg(0));var n=this._viewZone;this._codeEditor.changeViewZones((function(r){if(void 0!==t._viewZoneId){var i=t._getHeight();if(i===n.heightInPx)return;var o=i-n.heightInPx;return n.heightInPx=i,r.layoutZone(t._viewZoneId),void(e&&t._codeEditor.setScrollTop(t._codeEditor.getScrollTop()+o))}o=t._getHeight();n.heightInPx=o,t._viewZoneId=r.addZone(n),e&&t._codeEditor.setScrollTop(t._codeEditor.getScrollTop()+o)}))}},t.prototype._removeViewZone=function(){var e=this;this._codeEditor.changeViewZones((function(t){void 0!==e._viewZoneId&&(t.removeZone(e._viewZoneId),e._viewZoneId=void 0,e._viewZone&&(e._codeEditor.setScrollTop(e._codeEditor.getScrollTop()-e._viewZone.heightInPx),e._viewZone=void 0))}))},t.prototype._applyTheme=function(e){var t={inputActiveOptionBorder:e.getColor(cc),inputActiveOptionBackground:e.getColor(dc),inputBackground:e.getColor(ac),inputForeground:e.getColor(uc),inputBorder:e.getColor(lc),inputValidationInfoBackground:e.getColor(hc),inputValidationInfoForeground:e.getColor(fc),inputValidationInfoBorder:e.getColor(pc),inputValidationWarningBackground:e.getColor(gc),inputValidationWarningForeground:e.getColor(mc),inputValidationWarningBorder:e.getColor(_c),inputValidationErrorBackground:e.getColor(yc),inputValidationErrorForeground:e.getColor(vc),inputValidationErrorBorder:e.getColor(bc)};this._findInput.style(t),this._replaceInput.style(t)},t.prototype._tryUpdateWidgetWidth=function(){if(this._isVisible)if(this._codeEditor.getConfiguration().layoutInfo.contentWidth<=0)Hh(this._domNode,"hiddenEditor");else{Wh(this._domNode,"hiddenEditor")&&zh(this._domNode,"hiddenEditor");var e=this._codeEditor.getConfiguration().layoutInfo.width,t=this._codeEditor.getConfiguration().layoutInfo.minimapWidth,n=!1,r=!1,i=!1;if(this._resized)if(mf(this._domNode)>419)return this._domNode.style.maxWidth=e-28-t-15+"px",void(this._replaceInput.width=mf(this._findInput.domNode));if(447+t>=e&&(r=!0),447+t-jg>=e&&(i=!0),447+t-jg>=e+50&&(n=!0),qh(this._domNode,"collapsed-find-widget",n),qh(this._domNode,"narrow-find-widget",i),qh(this._domNode,"reduced-find-widget",r),i||n||(this._domNode.style.maxWidth=e-28-t-15+"px"),this._resized){this._findInput.inputBox.layout();var o=this._findInput.inputBox.width;o>0&&(this._replaceInput.width=o)}}},t.prototype._getHeight=function(){var e=0;return e+=4,e+=this._findInput.inputBox.height+2,this._isReplaceVisible&&(e+=4,e+=this._replaceInput.inputBox.height+2),e+=4},t.prototype._tryUpdateHeight=function(){var e=this._getHeight();return(null===this._cachedHeight||this._cachedHeight!==e)&&(this._cachedHeight=e,this._domNode.style.height=e+"px",!0)},t.prototype.focusFindInput=function(){this._findInput.select(),this._findInput.focus()},t.prototype.focusReplaceInput=function(){this._replaceInput.select(),this._replaceInput.focus()},t.prototype.highlightFindOptions=function(){this._findInput.highlightFindOptions()},t.prototype._updateSearchScope=function(){if(this._codeEditor.hasModel()&&this._toggleSelectionFind.checked){var e=this._codeEditor.getSelection();1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(e.endLineNumber-1)));var t=this._state.currentMatch;e.startLineNumber!==e.endLineNumber&&(Yr.equalsRange(e,t)||this._state.change({searchScope:e},!0))}},t.prototype._onFindInputMouseDown=function(e){e.middleButton&&e.stopPropagation()},t.prototype._onFindInputKeyDown=function(e){if(e.equals(3|Vg)){var t=this._findInput.inputBox.inputElement,n=t.selectionStart,r=t.selectionEnd,i=t.value;if(null!==n&&null!==r){var o=i.substr(0,n)+"\n"+i.substr(r);return this._findInput.inputBox.value=o,t.setSelectionRange(n+1,n+1),this._findInput.inputBox.layout(),void e.preventDefault()}}return e.equals(2)?(this._isReplaceVisible?this._replaceInput.focus():this._findInput.focusOnCaseSensitive(),void e.preventDefault()):e.equals(2066)?(this._codeEditor.focus(),void e.preventDefault()):e.equals(16)?Ug(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea")):e.equals(18)?qg(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea")):void 0},t.prototype._onReplaceInputKeyDown=function(e){if(e.equals(3|Vg)){nt.g&&nt.e&&!this._ctrlEnterReplaceAllWarningPrompted&&(this._notificationService.info(Ee("ctrlEnter.keybindingChanged","Ctrl+Enter now inserts line break instead of replacing all. You can modify the keybinding for editor.action.replaceAll to override this behavior.")),this._ctrlEnterReplaceAllWarningPrompted=!0,this._storageService.store(Hg,!0,0));var t=this._replaceInput.inputBox.inputElement,n=t.selectionStart,r=t.selectionEnd,i=t.value;if(null!==n&&null!==r){var o=i.substr(0,n)+"\n"+i.substr(r);return this._replaceInput.inputBox.value=o,t.setSelectionRange(n+1,n+1),this._replaceInput.inputBox.layout(),void e.preventDefault()}}return e.equals(2)?(this._findInput.focusOnCaseSensitive(),void e.preventDefault()):e.equals(1026)?(this._findInput.focus(),void e.preventDefault()):e.equals(2066)?(this._codeEditor.focus(),void e.preventDefault()):e.equals(16)?Ug(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea")):e.equals(18)?qg(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea")):void 0},t.prototype.getHorizontalSashTop=function(e){return 0},t.prototype.getHorizontalSashLeft=function(e){return 0},t.prototype.getHorizontalSashWidth=function(e){return 500},t.prototype._keybindingLabelFor=function(e){var t=this._keybindingService.lookupKeybinding(e);return t?" ("+t.getLabel()+")":""},t.prototype._buildDomNode=function(){var e=this;this._findInput=this._register(new Cg(null,this._contextViewProvider,{width:221,label:Lg,placeholder:kg,appendCaseSensitiveLabel:this._keybindingLabelFor(rh.ToggleCaseSensitiveCommand),appendWholeWordsLabel:this._keybindingLabelFor(rh.ToggleWholeWordCommand),appendRegexLabel:this._keybindingLabelFor(rh.ToggleRegexCommand),validation:function(t){if(0===t.length||!e._findInput.getRegex())return null;try{return new RegExp(t),null}catch(e){return{content:e.message}}},flexibleHeight:!0,flexibleWidth:!0,flexibleMaxHeight:118},this._contextKeyService,!0)),this._findInput.setRegex(!!this._state.isRegex),this._findInput.setCaseSensitive(!!this._state.matchCase),this._findInput.setWholeWords(!!this._state.wholeWord),this._register(this._findInput.onKeyDown((function(t){return e._onFindInputKeyDown(t)}))),this._register(this._findInput.inputBox.onDidChange((function(){e._ignoreChangeEvent||e._state.change({searchString:e._findInput.getValue()},!0)}))),this._register(this._findInput.onDidOptionChange((function(){e._state.change({isRegex:e._findInput.getRegex(),wholeWord:e._findInput.getWholeWords(),matchCase:e._findInput.getCaseSensitive()},!0)}))),this._register(this._findInput.onCaseSensitiveKeyDown((function(t){t.equals(1026)&&e._isReplaceVisible&&(e._replaceInput.focus(),t.preventDefault())}))),this._register(this._findInput.onRegexKeyDown((function(t){t.equals(2)&&e._isReplaceVisible&&(e._replaceInput.focusOnPreserve(),t.preventDefault())}))),this._register(this._findInput.inputBox.onDidHeightChange((function(t){e._tryUpdateHeight()&&e._showViewZone()}))),nt.c&&this._register(this._findInput.onMouseDown((function(t){return e._onFindInputMouseDown(t)}))),this._matchesCount=document.createElement("div"),this._matchesCount.className="matchesCount",this._updateMatchesCount(),this._prevBtn=this._register(new $g({label:Mg+this._keybindingLabelFor(rh.PreviousMatchFindAction),className:"previous",onTrigger:function(){e._codeEditor.getAction(rh.PreviousMatchFindAction).run().then(void 0,Ke)}})),this._nextBtn=this._register(new $g({label:Dg+this._keybindingLabelFor(rh.NextMatchFindAction),className:"next",onTrigger:function(){e._codeEditor.getAction(rh.NextMatchFindAction).run().then(void 0,Ke)}}));var t=document.createElement("div");t.className="find-part",t.appendChild(this._findInput.domNode);var n=document.createElement("div");n.className="find-actions",t.appendChild(n),n.appendChild(this._matchesCount),n.appendChild(this._prevBtn.domNode),n.appendChild(this._nextBtn.domNode),this._toggleSelectionFind=this._register(new Gg({parent:n,title:Eg+this._keybindingLabelFor(rh.ToggleSearchScopeCommand),onChange:function(){if(e._toggleSelectionFind.checked){if(e._codeEditor.hasModel()){var t=e._codeEditor.getSelection();1===t.endColumn&&t.endLineNumber>t.startLineNumber&&(t=t.setEndPosition(t.endLineNumber-1,e._codeEditor.getModel().getLineMaxColumn(t.endLineNumber-1))),t.isEmpty()||e._state.change({searchScope:t},!0)}}else e._state.change({searchScope:null},!0)}})),this._closeBtn=this._register(new $g({label:Tg+this._keybindingLabelFor(rh.CloseFindWidgetCommand),className:"close-fw",onTrigger:function(){e._state.change({isRevealed:!1,searchScope:null},!1)},onKeyDown:function(t){t.equals(2)&&e._isReplaceVisible&&(e._replaceBtn.isEnabled()?e._replaceBtn.focus():e._codeEditor.focus(),t.preventDefault())}})),n.appendChild(this._closeBtn.domNode),this._replaceInput=this._register(new Sg(null,void 0,{label:Ng,placeholder:Og,history:[],flexibleHeight:!0,flexibleWidth:!0,flexibleMaxHeight:118},this._contextKeyService,!0)),this._replaceInput.setPreserveCase(!!this._state.preserveCase),this._register(this._replaceInput.onKeyDown((function(t){return e._onReplaceInputKeyDown(t)}))),this._register(this._replaceInput.inputBox.onDidChange((function(){e._state.change({replaceString:e._replaceInput.inputBox.value},!1)}))),this._register(this._replaceInput.inputBox.onDidHeightChange((function(t){e._isReplaceVisible&&e._tryUpdateHeight()&&e._showViewZone()}))),this._register(this._replaceInput.onDidOptionChange((function(){e._state.change({preserveCase:e._replaceInput.getPreserveCase()},!0)}))),this._register(this._replaceInput.onPreserveCaseKeyDown((function(t){t.equals(2)&&(e._prevBtn.isEnabled()?e._prevBtn.focus():e._nextBtn.isEnabled()?e._nextBtn.focus():e._toggleSelectionFind.isEnabled()?e._toggleSelectionFind.focus():e._closeBtn.isEnabled()&&e._closeBtn.focus(),t.preventDefault())}))),this._replaceBtn=this._register(new $g({label:Ag+this._keybindingLabelFor(rh.ReplaceOneAction),className:"replace",onTrigger:function(){e._controller.replace()},onKeyDown:function(t){t.equals(1026)&&(e._closeBtn.focus(),t.preventDefault())}})),this._replaceAllBtn=this._register(new $g({label:Ig+this._keybindingLabelFor(rh.ReplaceAllAction),className:"replace-all",onTrigger:function(){e._controller.replaceAll()}}));var r=document.createElement("div");r.className="replace-part",r.appendChild(this._replaceInput.domNode);var i=document.createElement("div");i.className="replace-actions",r.appendChild(i),i.appendChild(this._replaceBtn.domNode),i.appendChild(this._replaceAllBtn.domNode),this._toggleReplaceBtn=this._register(new $g({label:Pg,className:"toggle left",onTrigger:function(){e._state.change({isReplaceRevealed:!e._isReplaceVisible},!1),e._isReplaceVisible&&(e._replaceInput.width=mf(e._findInput.domNode),e._replaceInput.inputBox.layout()),e._showViewZone()}})),this._toggleReplaceBtn.toggleClass("expand",this._isReplaceVisible),this._toggleReplaceBtn.toggleClass("collapse",!this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible),this._domNode=document.createElement("div"),this._domNode.className="editor-widget find-widget",this._domNode.setAttribute("aria-hidden","true"),this._domNode.style.width="419px",this._domNode.appendChild(this._toggleReplaceBtn.domNode),this._domNode.appendChild(t),this._domNode.appendChild(r),this._resizeSash=new gp(this._domNode,this,{orientation:0}),this._resized=!1;var o=419;this._register(this._resizeSash.onDidStart((function(){o=mf(e._domNode)}))),this._register(this._resizeSash.onDidChange((function(t){e._resized=!0;var n=o+t.startX-t.currentX;if(!(n<419)){var r=n-Bg;n>(parseFloat(df(e._domNode).maxWidth)||0)||(e._domNode.style.width=n+"px",e._findInput.inputBox.width=r,e._isReplaceVisible&&(e._replaceInput.width=mf(e._findInput.domNode)),e._findInput.inputBox.layout(),e._tryUpdateHeight())}}))),this._register(this._resizeSash.onDidReset((function(){var t=mf(e._domNode);if(!(t<419)){var n=419;e._resized&&419!==t||(n=e._codeEditor.getConfiguration().layoutInfo.width-28-e._codeEditor.getConfiguration().layoutInfo.minimapWidth-15,e._resized=!0);var r=n-Bg;e._domNode.style.width=n+"px",e._findInput.inputBox.width=r,e._isReplaceVisible&&(e._replaceInput.width=mf(e._findInput.domNode)),e._findInput.inputBox.layout()}})))},t.prototype.updateAccessibilitySupport=function(){var e=this._codeEditor.getConfiguration().accessibilitySupport;this._findInput.setFocusInputOnOptionClick(2!==e)},t.ID="editor.contrib.findWidget",t}(jf),Gg=function(e){function t(n){var r=e.call(this)||this;return r._opts=n,r._domNode=document.createElement("div"),r._domNode.className="monaco-checkbox",r._domNode.title=r._opts.title,r._domNode.tabIndex=0,r._checkbox=document.createElement("input"),r._checkbox.type="checkbox",r._checkbox.className="checkbox",r._checkbox.id="checkbox-"+t._COUNTER++,r._checkbox.tabIndex=-1,r._label=document.createElement("label"),r._label.className="label",r._label.htmlFor=r._checkbox.id,r._label.tabIndex=-1,r._domNode.appendChild(r._checkbox),r._domNode.appendChild(r._label),r._opts.parent.appendChild(r._domNode),r.onchange(r._checkbox,(function(){r._opts.onChange()})),r}return xg(t,e),Object.defineProperty(t.prototype,"domNode",{get:function(){return this._domNode},enumerable:!0,configurable:!0}),t.prototype.isEnabled=function(){return this._domNode.tabIndex>=0},Object.defineProperty(t.prototype,"checked",{get:function(){return this._checkbox.checked},set:function(e){this._checkbox.checked=e},enumerable:!0,configurable:!0}),t.prototype.focus=function(){this._domNode.focus()},t.prototype.enable=function(){this._checkbox.removeAttribute("disabled")},t.prototype.disable=function(){this._checkbox.disabled=!0},t.prototype.setEnabled=function(e){e?(this.enable(),this.domNode.tabIndex=0):(this.disable(),this.domNode.tabIndex=-1)},t._COUNTER=0,t}(jf),$g=function(e){function t(t){var n=e.call(this)||this;return n._opts=t,n._domNode=document.createElement("div"),n._domNode.title=n._opts.label,n._domNode.tabIndex=0,n._domNode.className="button "+n._opts.className,n._domNode.setAttribute("role","button"),n._domNode.setAttribute("aria-label",n._opts.label),n.onclick(n._domNode,(function(e){n._opts.onTrigger(),e.preventDefault()})),n.onkeydown(n._domNode,(function(e){if(e.equals(10)||e.equals(3))return n._opts.onTrigger(),void e.preventDefault();n._opts.onKeyDown&&n._opts.onKeyDown(e)})),n}return xg(t,e),Object.defineProperty(t.prototype,"domNode",{get:function(){return this._domNode},enumerable:!0,configurable:!0}),t.prototype.isEnabled=function(){return this._domNode.tabIndex>=0},t.prototype.focus=function(){this._domNode.focus()},t.prototype.setEnabled=function(e){qh(this._domNode,"disabled",!e),this._domNode.setAttribute("aria-disabled",String(!e)),this._domNode.tabIndex=e?0:-1},t.prototype.setExpanded=function(e){this._domNode.setAttribute("aria-expanded",String(!!e))},t.prototype.toggleClass=function(e,t){qh(this._domNode,e,t)},t}(jf);Wd((function(e,t){var n=function(e,n){n&&t.addRule(".monaco-editor "+e+" { background-color: "+n+"; }")};n(".findMatch",e.getColor(fd)),n(".currentFindMatch",e.getColor(hd)),n(".findScope",e.getColor(pd)),n(".find-widget",e.getColor(id));var r=e.getColor(sc);r&&t.addRule(".monaco-editor .find-widget { box-shadow: 0 2px 8px "+r+"; }");var i=e.getColor(md);i&&t.addRule(".monaco-editor .findMatch { border: 1px "+("hc"===e.type?"dotted":"solid")+" "+i+"; box-sizing: border-box; }");var o=e.getColor(gd);o&&t.addRule(".monaco-editor .currentFindMatch { border: 2px solid "+o+"; padding: 1px; box-sizing: border-box; }");var s=e.getColor(_d);s&&t.addRule(".monaco-editor .findScope { border: 1px "+("hc"===e.type?"dashed":"solid")+" "+s+"; }");var a=e.getColor(ic);a&&t.addRule(".monaco-editor .find-widget { border: 2px solid "+a+"; }");var u=e.getColor(od);u&&t.addRule(".monaco-editor .find-widget { color: "+u+"; }");var l=e.getColor(nc);l&&t.addRule(".monaco-editor .find-widget.no-results .matchesCount { color: "+l+"; }");var c=e.getColor(ad);if(c)t.addRule(".monaco-editor .find-widget .monaco-sash { background-color: "+c+"; width: 3px !important; margin-left: -4px;}");else{var d=e.getColor(sd);d&&t.addRule(".monaco-editor .find-widget .monaco-sash { background-color: "+d+"; width: 3px !important; margin-left: -4px;}")}var h=e.getColor(cc);h&&t.addRule(".monaco-editor .find-widget .monaco-checkbox .checkbox:checked + .label { border: 1px solid "+h.toString()+"; }");var f=e.getColor(dc);f&&t.addRule(".monaco-editor .find-widget .monaco-checkbox .checkbox:checked + .label { background-color: "+f.toString()+"; }");var p=e.getColor(rc);p&&t.addRule(".monaco-workbench .monaco-editor .find-widget .monaco-inputbox.synthetic-focus { outline-color: "+p+"; }")}));var Zg,Xg=Ct("clipboardService"),Jg=Ct("contextViewService"),Qg=Ct("contextMenuService"),em=Ct("keybindingService"),tm=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),nm=Ct("storageService");!function(e){e[e.NONE=0]="NONE",e[e.SHUTDOWN=1]="SHUTDOWN"}(Zg||(Zg={}));var rm,im,om=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._serviceBrand=null,t._onDidChangeStorage=t._register(new $t),t.onDidChangeStorage=t._onDidChangeStorage.event,t.onWillSaveState=Ht.None,t.globalCache=new Map,t.workspaceCache=new Map,t}return tm(t,e),t.prototype.getCache=function(e){return 0===e?this.globalCache:this.workspaceCache},t.prototype.get=function(e,t,n){var r=this.getCache(t).get(e);return Re(r)?n:r},t.prototype.getBoolean=function(e,t,n){var r=this.getCache(t).get(e);return Re(r)?n:"true"===r},t.prototype.store=function(e,t,n){if(Re(t))return this.remove(e,n);var r=String(t);return this.getCache(n).get(e)===r?Promise.resolve():(this.getCache(n).set(e,r),this._onDidChangeStorage.fire({scope:n,key:e}),Promise.resolve())},t.prototype.remove=function(e,t){return this.getCache(t).delete(e)?(this._onDidChangeStorage.fire({scope:t,key:e}),Promise.resolve()):Promise.resolve()},t}(Ft);(im=rm||(rm={}))[im.Ignore=0]="Ignore",im[im.Info=1]="Info",im[im.Warning=2]="Warning",im[im.Error=3]="Error",function(e){var t="error",n="warning",r="warn",i="info",o=Object.create(null);o[e.Error]=Ee("sev.error","Error"),o[e.Warning]=Ee("sev.warning","Warning"),o[e.Info]=Ee("sev.info","Info"),e.fromValue=function(o){return o?wn(t,o)?e.Error:wn(n,o)||wn(r,o)?e.Warning:wn(i,o)?e.Info:e.Ignore:e.Ignore}}(rm||(rm={}));var sm=rm,am=Ct("notificationService"),um=function(){},lm=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),cm=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},dm=function(e,t){return function(n,r){t(n,r,e)}},hm=524288;function fm(e){if(!e.hasModel())return null;var t=e.getSelection();if(t.startLineNumber===t.endLineNumber)if(t.isEmpty()){var n=e.getModel().getWordAtPosition(t.getStartPosition());if(n)return n.word}else if(e.getModel().getValueLengthInRange(t)<hm)return e.getModel().getValueInRange(t);return null}var pm,gm=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o._editor=t,o._findWidgetVisible=Zd.bindTo(n),o._contextKeyService=n,o._storageService=r,o._clipboardService=i,o._updateHistoryDelayer=new Ds(500),o._state=o._register(new np),o.loadQueryState(),o._register(o._state.onFindReplaceStateChange((function(e){return o._onStateChanged(e)}))),o._model=null,o._register(o._editor.onDidChangeModel((function(){var e=o._editor.getModel()&&o._state.isRevealed;o.disposeModel(),o._state.change({searchScope:null,matchCase:o._storageService.getBoolean("editor.matchCase",1,!1),wholeWord:o._storageService.getBoolean("editor.wholeWord",1,!1),isRegex:o._storageService.getBoolean("editor.isRegex",1,!1),preserveCase:o._storageService.getBoolean("editor.preserveCase",1,!1)},!1),e&&o._start({forceRevealReplace:!1,seedSearchStringFromSelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!1,updateSearchScope:!1})}))),o}return lm(t,e),t.get=function(e){return e.getContribution(t.ID)},t.prototype.dispose=function(){this.disposeModel(),e.prototype.dispose.call(this)},t.prototype.disposeModel=function(){this._model&&(this._model.dispose(),this._model=null)},t.prototype.getId=function(){return t.ID},t.prototype._onStateChanged=function(e){this.saveQueryState(e),e.isRevealed&&(this._state.isRevealed?this._findWidgetVisible.set(!0):(this._findWidgetVisible.reset(),this.disposeModel())),e.searchString&&this.setGlobalBufferTerm(this._state.searchString)},t.prototype.saveQueryState=function(e){e.isRegex&&this._storageService.store("editor.isRegex",this._state.actualIsRegex,1),e.wholeWord&&this._storageService.store("editor.wholeWord",this._state.actualWholeWord,1),e.matchCase&&this._storageService.store("editor.matchCase",this._state.actualMatchCase,1),e.preserveCase&&this._storageService.store("editor.preserveCase",this._state.actualPreserveCase,1)},t.prototype.loadQueryState=function(){this._state.change({matchCase:this._storageService.getBoolean("editor.matchCase",1,this._state.matchCase),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,this._state.wholeWord),isRegex:this._storageService.getBoolean("editor.isRegex",1,this._state.isRegex),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,this._state.preserveCase)},!1)},t.prototype.isFindInputFocused=function(){return!!Xd.getValue(this._contextKeyService)},t.prototype.getState=function(){return this._state},t.prototype.closeFindWidget=function(){this._state.change({isRevealed:!1,searchScope:null},!1),this._editor.focus()},t.prototype.toggleCaseSensitive=function(){this._state.change({matchCase:!this._state.matchCase},!1),this._state.isRevealed||this.highlightFindOptions()},t.prototype.toggleWholeWords=function(){this._state.change({wholeWord:!this._state.wholeWord},!1),this._state.isRevealed||this.highlightFindOptions()},t.prototype.toggleRegex=function(){this._state.change({isRegex:!this._state.isRegex},!1),this._state.isRevealed||this.highlightFindOptions()},t.prototype.toggleSearchScope=function(){if(this._state.searchScope)this._state.change({searchScope:null},!0);else if(this._editor.hasModel()){var e=this._editor.getSelection();1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._editor.getModel().getLineMaxColumn(e.endLineNumber-1))),e.isEmpty()||this._state.change({searchScope:e},!0)}},t.prototype.setSearchString=function(e){this._state.isRegex&&(e=ln(e)),this._state.change({searchString:e},!1)},t.prototype.highlightFindOptions=function(){},t.prototype._start=function(e){if(this.disposeModel(),this._editor.hasModel()){var t,n={isRevealed:!0};if(e.seedSearchStringFromSelection)(t=fm(this._editor))&&(this._state.isRegex?n.searchString=ln(t):n.searchString=t);if(!n.searchString&&e.seedSearchStringFromGlobalClipboard)(t=this.getGlobalBufferTerm())&&(n.searchString=t);if(e.forceRevealReplace?n.isReplaceRevealed=!0:this._findWidgetVisible.get()||(n.isReplaceRevealed=!1),e.updateSearchScope){var r=this._editor.getSelection();r.isEmpty()||(n.searchScope=r)}this._state.change(n,!1),this._model||(this._model=new ih(this._editor,this._state))}},t.prototype.start=function(e){this._start(e)},t.prototype.moveToNextMatch=function(){return!!this._model&&(this._model.moveToNextMatch(),!0)},t.prototype.moveToPrevMatch=function(){return!!this._model&&(this._model.moveToPrevMatch(),!0)},t.prototype.replace=function(){return!!this._model&&(this._model.replace(),!0)},t.prototype.replaceAll=function(){return!!this._model&&(this._model.replaceAll(),!0)},t.prototype.selectAllMatches=function(){return!!this._model&&(this._model.selectAllMatches(),this._editor.focus(),!0)},t.prototype.getGlobalBufferTerm=function(){return this._editor.getConfiguration().contribInfo.find.globalFindClipboard&&this._clipboardService&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()?this._clipboardService.readFindText():""},t.prototype.setGlobalBufferTerm=function(e){this._editor.getConfiguration().contribInfo.find.globalFindClipboard&&this._clipboardService&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()&&this._clipboardService.writeFindText(e)},t.ID="editor.contrib.findController",t=cm([dm(1,Kn),dm(2,nm),dm(3,Xg)],t)}(Ft),mm=function(e){function t(t,n,r,i,o,s,a,u){var l=e.call(this,t,r,a,u)||this;return l._contextViewService=n,l._keybindingService=i,l._themeService=o,l._notificationService=s,l._widget=null,l._findOptionsWidget=null,l}return lm(t,e),t.prototype._start=function(t){this._widget||this._createFindWidget(),!this._widget.getPosition()&&this._editor.getConfiguration().contribInfo.find.autoFindInSelection&&(t.updateSearchScope=!0),e.prototype._start.call(this,t),2===t.shouldFocus?this._widget.focusReplaceInput():1===t.shouldFocus&&this._widget.focusFindInput()},t.prototype.highlightFindOptions=function(){this._widget||this._createFindWidget(),this._state.isRevealed?this._widget.highlightFindOptions():this._findOptionsWidget.highlightFindOptions()},t.prototype._createFindWidget=function(){this._widget=this._register(new Kg(this._editor,this,this._state,this._contextViewService,this._keybindingService,this._contextKeyService,this._themeService,this._storageService,this._notificationService)),this._findOptionsWidget=this._register(new Xf(this._editor,this._state,this._keybindingService,this._themeService))},t=cm([dm(1,Jg),dm(2,Kn),dm(3,em),dm(4,Id),dm(5,am),dm(6,nm),dm(7,St(Xg))],t)}(gm),_m=function(e){function t(){return e.call(this,{id:rh.StartFindAction,label:Ee("startFindAction","Find"),alias:"Find",precondition:void 0,kbOpts:{kbExpr:null,primary:2084,weight:100},menubarOpts:{menuId:14,group:"3_find",title:Ee({key:"miFind",comment:["&& denotes a mnemonic"]},"&&Find"),order:1}})||this}return lm(t,e),t.prototype.run=function(e,t){var n=gm.get(t);n&&n.start({forceRevealReplace:!1,seedSearchStringFromSelection:t.getConfiguration().contribInfo.find.seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:t.getConfiguration().contribInfo.find.globalFindClipboard,shouldFocus:1,shouldAnimate:!0,updateSearchScope:!1})},t}(Ir),ym=function(e){function t(){return e.call(this,{id:rh.StartFindWithSelection,label:Ee("startFindWithSelectionAction","Find With Selection"),alias:"Find With Selection",precondition:void 0,kbOpts:{kbExpr:null,primary:0,mac:{primary:2083},weight:100}})||this}return lm(t,e),t.prototype.run=function(e,t){var n=gm.get(t);n&&(n.start({forceRevealReplace:!1,seedSearchStringFromSelection:!0,seedSearchStringFromGlobalClipboard:!1,shouldFocus:1,shouldAnimate:!0,updateSearchScope:!1}),n.setGlobalBufferTerm(n.getState().searchString))},t}(Ir),vm=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return lm(t,e),t.prototype.run=function(e,t){var n=gm.get(t);n&&!this._run(n)&&(n.start({forceRevealReplace:!1,seedSearchStringFromSelection:0===n.getState().searchString.length&&t.getConfiguration().contribInfo.find.seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!0,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1}),this._run(n))},t}(Ir),bm=function(e){function t(){return e.call(this,{id:rh.NextMatchFindAction,label:Ee("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:{kbExpr:El.focus,primary:61,mac:{primary:2085,secondary:[61]},weight:100}})||this}return lm(t,e),t.prototype._run=function(e){return e.moveToNextMatch()},t}(vm),wm=function(e){function t(){return e.call(this,{id:rh.NextMatchFindAction,label:Ee("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:{kbExpr:Rn.and(El.focus,Xd),primary:3,weight:100}})||this}return lm(t,e),t.prototype._run=function(e){return e.moveToNextMatch()},t}(vm),Cm=function(e){function t(){return e.call(this,{id:rh.PreviousMatchFindAction,label:Ee("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:{kbExpr:El.focus,primary:1085,mac:{primary:3109,secondary:[1085]},weight:100}})||this}return lm(t,e),t.prototype._run=function(e){return e.moveToPrevMatch()},t}(vm),Sm=function(e){function t(){return e.call(this,{id:rh.PreviousMatchFindAction,label:Ee("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:{kbExpr:Rn.and(El.focus,Xd),primary:1027,weight:100}})||this}return lm(t,e),t.prototype._run=function(e){return e.moveToPrevMatch()},t}(vm),xm=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return lm(t,e),t.prototype.run=function(e,t){var n=gm.get(t);if(n){var r=fm(t);r&&n.setSearchString(r),this._run(n)||(n.start({forceRevealReplace:!1,seedSearchStringFromSelection:t.getConfiguration().contribInfo.find.seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1}),this._run(n))}},t}(Ir),Lm=function(e){function t(){return e.call(this,{id:rh.NextSelectionMatchFindAction,label:Ee("nextSelectionMatchFindAction","Find Next Selection"),alias:"Find Next Selection",precondition:void 0,kbOpts:{kbExpr:El.focus,primary:2109,weight:100}})||this}return lm(t,e),t.prototype._run=function(e){return e.moveToNextMatch()},t}(xm),km=function(e){function t(){return e.call(this,{id:rh.PreviousSelectionMatchFindAction,label:Ee("previousSelectionMatchFindAction","Find Previous Selection"),alias:"Find Previous Selection",precondition:void 0,kbOpts:{kbExpr:El.focus,primary:3133,weight:100}})||this}return lm(t,e),t.prototype._run=function(e){return e.moveToPrevMatch()},t}(xm),Mm=function(e){function t(){return e.call(this,{id:rh.StartFindReplaceAction,label:Ee("startReplace","Replace"),alias:"Replace",precondition:void 0,kbOpts:{kbExpr:null,primary:2086,mac:{primary:2596},weight:100},menubarOpts:{menuId:14,group:"3_find",title:Ee({key:"miReplace",comment:["&& denotes a mnemonic"]},"&&Replace"),order:2}})||this}return lm(t,e),t.prototype.run=function(e,t){if(t.hasModel()&&!t.getConfiguration().readOnly){var n=gm.get(t),r=t.getSelection(),i=n.isFindInputFocused(),o=!r.isEmpty()&&r.startLineNumber===r.endLineNumber&&t.getConfiguration().contribInfo.find.seedSearchStringFromSelection&&!i,s=i||o?2:1;n&&n.start({forceRevealReplace:!0,seedSearchStringFromSelection:o,seedSearchStringFromGlobalClipboard:t.getConfiguration().contribInfo.find.seedSearchStringFromSelection,shouldFocus:s,shouldAnimate:!0,updateSearchScope:!1})}},t}(Ir);pm=mm,Fr.INSTANCE.registerEditorContribution(pm),Rr(_m),Rr(ym),Rr(bm),Rr(wm),Rr(Cm),Rr(Sm),Rr(Lm),Rr(km),Rr(Mm);var Dm=Ar.bindToContribution(gm.get);Pr(new Dm({id:rh.CloseFindWidgetCommand,precondition:Zd,handler:function(e){return e.closeFindWidget()},kbOpts:{weight:105,kbExpr:El.focus,primary:9,secondary:[1033]}})),Pr(new Dm({id:rh.ToggleCaseSensitiveCommand,precondition:void 0,handler:function(e){return e.toggleCaseSensitive()},kbOpts:{weight:105,kbExpr:El.focus,primary:Qd.primary,mac:Qd.mac,win:Qd.win,linux:Qd.linux}})),Pr(new Dm({id:rh.ToggleWholeWordCommand,precondition:void 0,handler:function(e){return e.toggleWholeWords()},kbOpts:{weight:105,kbExpr:El.focus,primary:eh.primary,mac:eh.mac,win:eh.win,linux:eh.linux}})),Pr(new Dm({id:rh.ToggleRegexCommand,precondition:void 0,handler:function(e){return e.toggleRegex()},kbOpts:{weight:105,kbExpr:El.focus,primary:th.primary,mac:th.mac,win:th.win,linux:th.linux}})),Pr(new Dm({id:rh.ToggleSearchScopeCommand,precondition:void 0,handler:function(e){return e.toggleSearchScope()},kbOpts:{weight:105,kbExpr:El.focus,primary:nh.primary,mac:nh.mac,win:nh.win,linux:nh.linux}})),Pr(new Dm({id:rh.ReplaceOneAction,precondition:Zd,handler:function(e){return e.replace()},kbOpts:{weight:105,kbExpr:El.focus,primary:3094}})),Pr(new Dm({id:rh.ReplaceOneAction,precondition:Zd,handler:function(e){return e.replace()},kbOpts:{weight:105,kbExpr:Rn.and(El.focus,Jd),primary:3}})),Pr(new Dm({id:rh.ReplaceAllAction,precondition:Zd,handler:function(e){return e.replaceAll()},kbOpts:{weight:105,kbExpr:El.focus,primary:2563}})),Pr(new Dm({id:rh.ReplaceAllAction,precondition:Zd,handler:function(e){return e.replaceAll()},kbOpts:{weight:105,kbExpr:Rn.and(El.focus,Jd),primary:void 0,mac:{primary:2051}}})),Pr(new Dm({id:rh.SelectAllMatchesAction,precondition:Zd,handler:function(e){return e.selectAllMatches()},kbOpts:{weight:105,kbExpr:El.focus,primary:515}}));var Em,Tm,Nm,Om,Am,Im,Pm,Rm,Fm,Ym,jm,Bm,Wm,Hm,Vm,zm,Um,qm,Km,Gm,$m,Zm,Xm,Jm,Qm,e_,t_,n_,r_,i_,o_;n(329);!function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"}(Em||(Em={})),(Nm=Tm||(Tm={}))[Nm.Hint=1]="Hint",Nm[Nm.Info=2]="Info",Nm[Nm.Warning=4]="Warning",Nm[Nm.Error=8]="Error",function(e){e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.KEY_0=21]="KEY_0",e[e.KEY_1=22]="KEY_1",e[e.KEY_2=23]="KEY_2",e[e.KEY_3=24]="KEY_3",e[e.KEY_4=25]="KEY_4",e[e.KEY_5=26]="KEY_5",e[e.KEY_6=27]="KEY_6",e[e.KEY_7=28]="KEY_7",e[e.KEY_8=29]="KEY_8",e[e.KEY_9=30]="KEY_9",e[e.KEY_A=31]="KEY_A",e[e.KEY_B=32]="KEY_B",e[e.KEY_C=33]="KEY_C",e[e.KEY_D=34]="KEY_D",e[e.KEY_E=35]="KEY_E",e[e.KEY_F=36]="KEY_F",e[e.KEY_G=37]="KEY_G",e[e.KEY_H=38]="KEY_H",e[e.KEY_I=39]="KEY_I",e[e.KEY_J=40]="KEY_J",e[e.KEY_K=41]="KEY_K",e[e.KEY_L=42]="KEY_L",e[e.KEY_M=43]="KEY_M",e[e.KEY_N=44]="KEY_N",e[e.KEY_O=45]="KEY_O",e[e.KEY_P=46]="KEY_P",e[e.KEY_Q=47]="KEY_Q",e[e.KEY_R=48]="KEY_R",e[e.KEY_S=49]="KEY_S",e[e.KEY_T=50]="KEY_T",e[e.KEY_U=51]="KEY_U",e[e.KEY_V=52]="KEY_V",e[e.KEY_W=53]="KEY_W",e[e.KEY_X=54]="KEY_X",e[e.KEY_Y=55]="KEY_Y",e[e.KEY_Z=56]="KEY_Z",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.NumLock=78]="NumLock",e[e.ScrollLock=79]="ScrollLock",e[e.US_SEMICOLON=80]="US_SEMICOLON",e[e.US_EQUAL=81]="US_EQUAL",e[e.US_COMMA=82]="US_COMMA",e[e.US_MINUS=83]="US_MINUS",e[e.US_DOT=84]="US_DOT",e[e.US_SLASH=85]="US_SLASH",e[e.US_BACKTICK=86]="US_BACKTICK",e[e.US_OPEN_SQUARE_BRACKET=87]="US_OPEN_SQUARE_BRACKET",e[e.US_BACKSLASH=88]="US_BACKSLASH",e[e.US_CLOSE_SQUARE_BRACKET=89]="US_CLOSE_SQUARE_BRACKET",e[e.US_QUOTE=90]="US_QUOTE",e[e.OEM_8=91]="OEM_8",e[e.OEM_102=92]="OEM_102",e[e.NUMPAD_0=93]="NUMPAD_0",e[e.NUMPAD_1=94]="NUMPAD_1",e[e.NUMPAD_2=95]="NUMPAD_2",e[e.NUMPAD_3=96]="NUMPAD_3",e[e.NUMPAD_4=97]="NUMPAD_4",e[e.NUMPAD_5=98]="NUMPAD_5",e[e.NUMPAD_6=99]="NUMPAD_6",e[e.NUMPAD_7=100]="NUMPAD_7",e[e.NUMPAD_8=101]="NUMPAD_8",e[e.NUMPAD_9=102]="NUMPAD_9",e[e.NUMPAD_MULTIPLY=103]="NUMPAD_MULTIPLY",e[e.NUMPAD_ADD=104]="NUMPAD_ADD",e[e.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",e[e.NUMPAD_SUBTRACT=106]="NUMPAD_SUBTRACT",e[e.NUMPAD_DECIMAL=107]="NUMPAD_DECIMAL",e[e.NUMPAD_DIVIDE=108]="NUMPAD_DIVIDE",e[e.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",e[e.ABNT_C1=110]="ABNT_C1",e[e.ABNT_C2=111]="ABNT_C2",e[e.MAX_VALUE=112]="MAX_VALUE"}(Om||(Om={})),function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(Am||(Am={})),function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"}(Im||(Im={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(Pm||(Pm={})),function(e){e[e.Inline=1]="Inline"}(Rm||(Rm={})),function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(Fm||(Fm={})),function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(Ym||(Ym={})),function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"}(jm||(jm={})),function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"}(Bm||(Bm={})),function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"}(Wm||(Wm={})),function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"}(Hm||(Hm={})),function(e){e[e.None=0]="None",e[e.Small=1]="Small",e[e.Large=2]="Large",e[e.SmallBlocks=3]="SmallBlocks",e[e.LargeBlocks=4]="LargeBlocks"}(Vm||(Vm={})),function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"}(zm||(zm={})),function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"}(Um||(Um={})),function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"}(qm||(qm={})),function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"}(Km||(Km={})),function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"}(Gm||(Gm={})),function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"}($m||($m={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"}(Zm||(Zm={})),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(Xm||(Xm={})),function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.Snippet=25]="Snippet"}(Jm||(Jm={})),function(e){e[e.Deprecated=1]="Deprecated"}(Qm||(Qm={})),function(e){e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"}(e_||(e_={})),function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(t_||(t_={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(n_||(n_={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(r_||(r_={})),function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"}(i_||(i_={})),function(e){e[e.Deprecated=1]="Deprecated"}(o_||(o_={}));var s_=function(){function e(){}return e.chord=function(e,t){return function(e,t){return(e|(65535&t)<<16>>>0)>>>0}(e,t)},e.CtrlCmd=2048,e.Shift=1024,e.Alt=512,e.WinCtrl=256,e}();function a_(){return{editor:void 0,languages:void 0,CancellationTokenSource:ks,Emitter:$t,KeyCode:Om,KeyMod:s_,Position:Lt,Range:Yr,Selection:Br,SelectionDirection:Am,MarkerSeverity:Tm,MarkerTag:Em,Uri:ht,Token:Ya}}var u_;n(332);function l_(e){var t=JSON.parse(e);return t=function e(t,n){if(!t||n>200)return t;if("object"==typeof t){switch(t.$mid){case 1:return ht.revive(t);case 2:return new RegExp(t.source,t.flags)}for(var r in t)Object.hasOwnProperty.call(t,r)&&(t[r]=e(t[r],n+1))}return t}(t,0)}function c_(e){var t,n,r=e.path;return t=e.authority&&r.length>1&&e.scheme===Dh.file?"//"+e.authority+r:nt.g&&47===r.charCodeAt(0)&&((n=r.charCodeAt(1))>=65&&n<=90||n>=97&&n<=122)&&58===r.charCodeAt(2)?r.substr(1):r,nt.g&&(t=t.replace(/\//g,"\\")),t}!function(e){e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime",e.parseMetaData=function(t){var n=new Map;t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach((function(e){var t=e.split(":"),r=t[0],i=t[1];r&&i&&n.set(r,i)}));var r=t.path.substring(0,t.path.indexOf(";"));return r&&n.set(e.META_DATA_MIME,r),n}}(u_||(u_={}));var d_=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),h_=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},f_=function(e,t){return function(n,r){t(n,r,e)}},p_=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))},g_=function(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},m_=function(e){function t(t,n){var r=e.call(this)||this;return r._editorService=t,r._commandService=n,r._openers=new Ut,r._validators=new Ut,r}return d_(t,e),t.prototype.open=function(e,t){return p_(this,void 0,void 0,(function(){var n,r,i,o;return g_(this,(function(s){switch(s.label){case 0:if(!e.scheme)return[2,Promise.resolve(!1)];n=0,r=this._validators.toArray(),s.label=1;case 1:return n<r.length?[4,r[n].shouldOpen(e)]:[3,4];case 2:if(!s.sent())return[2,!1];s.label=3;case 3:return n++,[3,1];case 4:i=0,o=this._openers.toArray(),s.label=5;case 5:return i<o.length?[4,o[i].open(e,t)]:[3,8];case 6:if(s.sent())return[2,!0];s.label=7;case 7:return i++,[3,5];case 8:return[2,this._doOpen(e,t)]}}))}))},t.prototype._doOpen=function(e,t){var n,r=e.scheme,i=e.path,o=e.query,s=e.fragment;if(wn(r,Dh.mailto)||t&&t.openExternal)return this._doOpenExternal(e);if(wn(r,Dh.http)||wn(r,Dh.https))return this._doOpenExternal(e);if(wn(r,Dh.command)){if(!ir.getCommand(i))return Promise.reject("command '"+i+"' NOT known");var a=[];try{a=l_(o),Array.isArray(a)||(a=[a])}catch(e){}return(n=this._commandService).executeCommand.apply(n,[i].concat(a)).then((function(){return!0}))}var u=void 0,l=/^L?(\d+)(?:,(\d+))?/.exec(s);return l&&(u={startLineNumber:parseInt(l[1]),startColumn:l[2]?parseInt(l[2]):1},e=e.with({fragment:""})),e.scheme===Dh.file&&(e=function(e){return e.path.length?(t=e.scheme===Dh.file?ht.file(gs(c_(e))).path:ps.normalize(e.path),e.with({path:t})):e;var t}(e)),this._editorService.openCodeEditor({resource:e,options:{selection:u}},this._editorService.getFocusedCodeEditor(),t&&t.openToSide).then((function(){return!0}))},t.prototype._doOpenExternal=function(e){return Rf(encodeURI(e.toString(!0))),Promise.resolve(!0)},t.prototype.dispose=function(){this._validators.clear()},t=h_([f_(0,xt),f_(1,rr)],t)}(Ft),__=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),y_={followsCaret:!0,ignoreCharChanges:!0,alwaysRevealFirst:!0},v_=function(e){function t(t,n){void 0===n&&(n={});var r=e.call(this)||this;return r._onDidUpdate=r._register(new $t),r._editor=t,r._options=Jr(n,y_,!1),r.disposed=!1,r.nextIdx=-1,r.ranges=[],r.ignoreSelectionChange=!1,r.revealFirst=Boolean(r._options.alwaysRevealFirst),r._register(r._editor.onDidDispose((function(){return r.dispose()}))),r._register(r._editor.onDidUpdateDiff((function(){return r._onDiffUpdated()}))),r._options.followsCaret&&r._register(r._editor.getModifiedEditor().onDidChangeCursorPosition((function(e){r.ignoreSelectionChange||(r.nextIdx=-1)}))),r._options.alwaysRevealFirst&&r._register(r._editor.getModifiedEditor().onDidChangeModel((function(e){r.revealFirst=!0}))),r._init(),r}return __(t,e),t.prototype._init=function(){this._editor.getLineChanges()},t.prototype._onDiffUpdated=function(){this._init(),this._compute(this._editor.getLineChanges()),this.revealFirst&&null!==this._editor.getLineChanges()&&(this.revealFirst=!1,this.nextIdx=-1,this.next(1))},t.prototype._compute=function(e){var t=this;this.ranges=[],e&&e.forEach((function(e){!t._options.ignoreCharChanges&&e.charChanges?e.charChanges.forEach((function(e){t.ranges.push({rhs:!0,range:new Yr(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn)})})):t.ranges.push({rhs:!0,range:new Yr(e.modifiedStartLineNumber,1,e.modifiedStartLineNumber,1)})})),this.ranges.sort((function(e,t){return e.range.getStartPosition().isBeforeOrEqual(t.range.getStartPosition())?-1:t.range.getStartPosition().isBeforeOrEqual(e.range.getStartPosition())?1:0})),this._onDidUpdate.fire(this)},t.prototype._initIdx=function(e){var t=!1,n=this._editor.getPosition();if(n){for(var r=0,i=this.ranges.length;r<i&&!t;r++){var o=this.ranges[r].range;n.isBeforeOrEqual(o.getStartPosition())&&(this.nextIdx=r+(e?0:-1),t=!0)}t||(this.nextIdx=e?0:this.ranges.length-1),this.nextIdx<0&&(this.nextIdx=this.ranges.length-1)}else this.nextIdx=0},t.prototype._move=function(e,t){if(Lr(!this.disposed,"Illegal State - diff navigator has been disposed"),this.canNavigate()){-1===this.nextIdx?this._initIdx(e):e?(this.nextIdx+=1,this.nextIdx>=this.ranges.length&&(this.nextIdx=0)):(this.nextIdx-=1,this.nextIdx<0&&(this.nextIdx=this.ranges.length-1));var n=this.ranges[this.nextIdx];this.ignoreSelectionChange=!0;try{var r=n.range.getStartPosition();this._editor.setPosition(r),this._editor.revealPositionInCenter(r,t)}finally{this.ignoreSelectionChange=!1}}},t.prototype.canNavigate=function(){return this.ranges&&this.ranges.length>0},t.prototype.next=function(e){void 0===e&&(e=0),this._move(!0,e)},t.prototype.previous=function(e){void 0===e&&(e=0),this._move(!1,e)},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.ranges=[],this.disposed=!0},t}(Ft),b_=new(function(){function e(){this._zoomLevel=0,this._onDidChangeZoomLevel=new $t,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}return e.prototype.getZoomLevel=function(){return this._zoomLevel},e.prototype.setZoomLevel=function(e){e=Math.min(Math.max(-5,e),20),this._zoomLevel!==e&&(this._zoomLevel=e,this._onDidChangeZoomLevel.fire(this._zoomLevel))},e}()),w_=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),C_=nt.d?1.5:1.35;function S_(e,t){if("number"==typeof e)return e;if(void 0===e)return t;var n=parseFloat(e);return isNaN(n)?t:n}function x_(e,t,n){return e<t?t:e>n?n:e}function L_(e,t){return"string"!=typeof e?t:e}var k_=function(){function e(e){this.zoomLevel=e.zoomLevel,this.fontFamily=String(e.fontFamily),this.fontWeight=String(e.fontWeight),this.fontSize=e.fontSize,this.lineHeight=0|e.lineHeight,this.letterSpacing=e.letterSpacing}return e.createFromRawSettings=function(t,n,r){void 0===r&&(r=!1);var i=L_(t.fontFamily,wi.fontFamily),o=L_(t.fontWeight,wi.fontWeight),s=S_(t.fontSize,wi.fontSize);0===(s=x_(s,0,100))?s=wi.fontSize:s<8&&(s=8);var a=function(e,t){if("number"==typeof e)return Math.round(e);if(void 0===e)return t;var n=parseInt(e);return isNaN(n)?t:n}(t.lineHeight,0);0===(a=x_(a,0,150))?a=Math.round(C_*s):a<8&&(a=8);var u=S_(t.letterSpacing,0);u=x_(u,-5,20);var l=1+(r?0:.1*b_.getZoomLevel());return new e({zoomLevel:n,fontFamily:i,fontWeight:o,fontSize:s*=l,lineHeight:a*=l,letterSpacing:u})},e.prototype.getId=function(){return this.zoomLevel+"-"+this.fontFamily+"-"+this.fontWeight+"-"+this.fontSize+"-"+this.lineHeight+"-"+this.letterSpacing},e.prototype.getMassagedFontFamily=function(){return/[,"']/.test(this.fontFamily)?this.fontFamily:/[+ ]/.test(this.fontFamily)?'"'+this.fontFamily+'"':this.fontFamily},e}(),M_=function(e){function t(t,n){var r=e.call(this,t)||this;return r.isTrusted=n,r.isMonospace=t.isMonospace,r.typicalHalfwidthCharacterWidth=t.typicalHalfwidthCharacterWidth,r.typicalFullwidthCharacterWidth=t.typicalFullwidthCharacterWidth,r.canUseHalfwidthRightwardsArrow=t.canUseHalfwidthRightwardsArrow,r.spaceWidth=t.spaceWidth,r.maxDigitWidth=t.maxDigitWidth,r}return w_(t,e),t.prototype.equals=function(e){return this.fontFamily===e.fontFamily&&this.fontWeight===e.fontWeight&&this.fontSize===e.fontSize&&this.lineHeight===e.lineHeight&&this.letterSpacing===e.letterSpacing&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.typicalFullwidthCharacterWidth===e.typicalFullwidthCharacterWidth&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.spaceWidth===e.spaceWidth&&this.maxDigitWidth===e.maxDigitWidth},t}(k_),D_=Ct("editorWorkerService"),E_=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),T_="$initialize",N_=!1;function O_(e){nt.f&&(N_||(N_=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/Microsoft/monaco-editor#faq")),console.warn(e.message))}var A_=function(){function e(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null)}return e.prototype.setWorkerId=function(e){this._workerId=e},e.prototype.sendMessage=function(e,t){var n=this,r=String(++this._lastSentReq);return new Promise((function(i,o){n._pendingReplies[r]={resolve:i,reject:o},n._send({vsWorker:n._workerId,req:r,method:e,args:t})}))},e.prototype.handleMessage=function(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))},e.prototype._handleMessage=function(e){var t=this;if(e.seq){var n=e;if(!this._pendingReplies[n.seq])return void console.warn("Got reply to unknown seq");var r=this._pendingReplies[n.seq];if(delete this._pendingReplies[n.seq],n.err){var i=n.err;return n.err.$isError&&((i=new Error).name=n.err.name,i.message=n.err.message,i.stack=n.err.stack),void r.reject(i)}r.resolve(n.res)}else{var o=e,s=o.req;this._handler.handleMessage(o.method,o.args).then((function(e){t._send({vsWorker:t._workerId,seq:s,res:e,err:void 0})}),(function(e){e.detail instanceof Error&&(e.detail=Ge(e.detail)),t._send({vsWorker:t._workerId,seq:s,res:void 0,err:Ge(e)})}))}},e.prototype._send=function(e){var t=[];if(e.req)for(var n=e,r=0;r<n.args.length;r++)n.args[r]instanceof ArrayBuffer&&t.push(n.args[r]);else(n=e).res instanceof ArrayBuffer&&t.push(n.res);this._handler.sendMessage(e,t)},e}(),I_=function(e){function t(t,n,r){var i=e.call(this)||this,o=null;i._worker=i._register(t.create("vs/base/common/worker/simpleWorker",(function(e){i._protocol.handleMessage(e)}),(function(e){o&&o(e)}))),i._protocol=new A_({sendMessage:function(e,t){i._worker.postMessage(e,t)},handleMessage:function(e,t){if("function"!=typeof r[e])return Promise.reject(new Error("Missing method "+e+" on main thread host."));try{return Promise.resolve(r[e].apply(r,t))}catch(e){return Promise.reject(e)}}}),i._protocol.setWorkerId(i._worker.getId());var s=null;void 0!==self.require&&"function"==typeof self.require.getConfig?s=self.require.getConfig():void 0!==self.requirejs&&(s=self.requirejs.s.contexts._.config);var a=He(r);i._onModuleLoaded=i._protocol.sendMessage(T_,[i._worker.getId(),JSON.parse(JSON.stringify(s)),n,a]);var u=function(e,t){return i._request(e,t)};return i._lazyProxy=new Promise((function(e,t){o=t,i._onModuleLoaded.then((function(t){e(Ve(t,u))}),(function(e){t(e),i._onError("Worker failed to load "+n,e)}))})),i}return E_(t,e),t.prototype.getProxyObject=function(){return this._lazyProxy},t.prototype._request=function(e,t){var n=this;return new Promise((function(r,i){n._onModuleLoaded.then((function(){n._protocol.sendMessage(e,t).then(r,i)}),i)}))},t.prototype._onError=function(e,t){console.error(e),console.info(t)},t}(Ft);!function(){function e(e,t){var n=this;this._requestHandlerFactory=t,this._requestHandler=null,this._protocol=new A_({sendMessage:function(t,n){e(t,n)},handleMessage:function(e,t){return n._handleMessage(e,t)}})}e.prototype.onmessage=function(e){this._protocol.handleMessage(e)},e.prototype._handleMessage=function(e,t){if(e===T_)return this.initialize(t[0],t[1],t[2],t[3]);if(!this._requestHandler||"function"!=typeof this._requestHandler[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._requestHandler[e].apply(this._requestHandler,t))}catch(e){return Promise.reject(e)}},e.prototype.initialize=function(e,t,n,r){var i=this;this._protocol.setWorkerId(e);var o=Ve(r,(function(e,t){return i._protocol.sendMessage(e,t)}));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(o),Promise.resolve(He(this._requestHandler))):(t&&(void 0!==t.baseUrl&&delete t.baseUrl,void 0!==t.paths&&void 0!==t.paths.vs&&delete t.paths.vs,t.catchError=!0,self.require.config(t)),new Promise((function(e,t){self.require([n],(function(n){i._requestHandler=n.create(o),i._requestHandler?e(He(i._requestHandler)):t(new Error("No RequestHandler!"))}),t)})))}}();var P_=function(){function e(e,t,n,r,i){this.id=t;var o=function(e,t){if(nt.b.MonacoEnvironment){if("function"==typeof nt.b.MonacoEnvironment.getWorker)return nt.b.MonacoEnvironment.getWorker(e,t);if("function"==typeof nt.b.MonacoEnvironment.getWorkerUrl)return new Worker(nt.b.MonacoEnvironment.getWorkerUrl(e,t))}throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}("workerMain.js",n);"function"==typeof o.then?this.worker=o:this.worker=Promise.resolve(o),this.postMessage(e,[]),this.worker.then((function(e){e.onmessage=function(e){r(e.data)},e.onmessageerror=i,"function"==typeof e.addEventListener&&e.addEventListener("error",i)}))}return e.prototype.getId=function(){return this.id},e.prototype.postMessage=function(e,t){this.worker&&this.worker.then((function(n){return n.postMessage(e,t)}))},e.prototype.dispose=function(){this.worker&&this.worker.then((function(e){return e.terminate()})),this.worker=null},e}(),R_=function(){function e(e){this._label=e,this._webWorkerFailedBeforeError=!1}return e.prototype.create=function(t,n,r){var i=this,o=++e.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new P_(t,o,this._label||"anonymous"+o,n,(function(e){O_(e),i._webWorkerFailedBeforeError=e,r(e)}))},e.LAST_WORKER_ID=0,e}(),F_=function(){function e(e,t,n,r){this.originalStart=e,this.originalLength=t,this.modifiedStart=n,this.modifiedLength=r}return e.prototype.getOriginalEnd=function(){return this.originalStart+this.originalLength},e.prototype.getModifiedEnd=function(){return this.modifiedStart+this.modifiedLength},e}();function Y_(e){return{getLength:function(){return e.length},getElementAtIndex:function(t){return e.charCodeAt(t)}}}function j_(e,t,n){return new V_(Y_(e),Y_(t)).ComputeDiff(n)}var B_=function(){function e(){}return e.Assert=function(e,t){if(!e)throw new Error(t)},e}(),W_=function(){function e(){}return e.Copy=function(e,t,n,r,i){for(var o=0;o<i;o++)n[r+o]=e[t+o]},e}(),H_=function(){function e(){this.m_changes=[],this.m_originalStart=Number.MAX_VALUE,this.m_modifiedStart=Number.MAX_VALUE,this.m_originalCount=0,this.m_modifiedCount=0}return e.prototype.MarkNextChange=function(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new F_(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=Number.MAX_VALUE,this.m_modifiedStart=Number.MAX_VALUE},e.prototype.AddOriginalElement=function(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++},e.prototype.AddModifiedElement=function(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++},e.prototype.getChanges=function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes},e.prototype.getReverseChanges=function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes},e}(),V_=function(){function e(e,t,n){void 0===n&&(n=null),this.OriginalSequence=e,this.ModifiedSequence=t,this.ContinueProcessingPredicate=n,this.m_forwardHistory=[],this.m_reverseHistory=[]}return e.prototype.ElementsAreEqual=function(e,t){return this.OriginalSequence.getElementAtIndex(e)===this.ModifiedSequence.getElementAtIndex(t)},e.prototype.OriginalElementsAreEqual=function(e,t){return this.OriginalSequence.getElementAtIndex(e)===this.OriginalSequence.getElementAtIndex(t)},e.prototype.ModifiedElementsAreEqual=function(e,t){return this.ModifiedSequence.getElementAtIndex(e)===this.ModifiedSequence.getElementAtIndex(t)},e.prototype.ComputeDiff=function(e){return this._ComputeDiff(0,this.OriginalSequence.getLength()-1,0,this.ModifiedSequence.getLength()-1,e)},e.prototype._ComputeDiff=function(e,t,n,r,i){var o=this.ComputeDiffRecursive(e,t,n,r,[!1]);return i?this.PrettifyChanges(o):o},e.prototype.ComputeDiffRecursive=function(e,t,n,r,i){for(i[0]=!1;e<=t&&n<=r&&this.ElementsAreEqual(e,n);)e++,n++;for(;t>=e&&r>=n&&this.ElementsAreEqual(t,r);)t--,r--;if(e>t||n>r){var o=void 0;return n<=r?(B_.Assert(e===t+1,"originalStart should only be one more than originalEnd"),o=[new F_(e,0,n,r-n+1)]):e<=t?(B_.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),o=[new F_(e,t-e+1,n,0)]):(B_.Assert(e===t+1,"originalStart should only be one more than originalEnd"),B_.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),o=[]),o}var s=[0],a=[0],u=this.ComputeRecursionPoint(e,t,n,r,s,a,i),l=s[0],c=a[0];if(null!==u)return u;if(!i[0]){var d=this.ComputeDiffRecursive(e,l,n,c,i),h=[];return h=i[0]?[new F_(l+1,t-(l+1)+1,c+1,r-(c+1)+1)]:this.ComputeDiffRecursive(l+1,t,c+1,r,i),this.ConcatenateChanges(d,h)}return[new F_(e,t-e+1,n,r-n+1)]},e.prototype.WALKTRACE=function(e,t,n,r,i,o,s,a,u,l,c,d,h,f,p,g,m,_){var y,v,b=null,w=new H_,C=t,S=n,x=h[0]-g[0]-r,L=Number.MIN_VALUE,k=this.m_forwardHistory.length-1;do{(v=x+e)===C||v<S&&u[v-1]<u[v+1]?(f=(c=u[v+1])-x-r,c<L&&w.MarkNextChange(),L=c,w.AddModifiedElement(c+1,f),x=v+1-e):(f=(c=u[v-1]+1)-x-r,c<L&&w.MarkNextChange(),L=c-1,w.AddOriginalElement(c,f+1),x=v-1-e),k>=0&&(e=(u=this.m_forwardHistory[k])[0],C=1,S=u.length-1)}while(--k>=-1);if(y=w.getReverseChanges(),_[0]){var M=h[0]+1,D=g[0]+1;if(null!==y&&y.length>0){var E=y[y.length-1];M=Math.max(M,E.getOriginalEnd()),D=Math.max(D,E.getModifiedEnd())}b=[new F_(M,d-M+1,D,p-D+1)]}else{w=new H_,C=o,S=s,x=h[0]-g[0]-a,L=Number.MAX_VALUE,k=m?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{(v=x+i)===C||v<S&&l[v-1]>=l[v+1]?(f=(c=l[v+1]-1)-x-a,c>L&&w.MarkNextChange(),L=c+1,w.AddOriginalElement(c+1,f+1),x=v+1-i):(f=(c=l[v-1])-x-a,c>L&&w.MarkNextChange(),L=c,w.AddModifiedElement(c+1,f+1),x=v-1-i),k>=0&&(i=(l=this.m_reverseHistory[k])[0],C=1,S=l.length-1)}while(--k>=-1);b=w.getChanges()}return this.ConcatenateChanges(y,b)},e.prototype.ComputeRecursionPoint=function(e,t,n,r,i,o,s){var a,u=0,l=0,c=0,d=0,h=0,f=0;e--,n--,i[0]=0,o[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];var p,g,m=t-e+(r-n),_=m+1,y=new Array(_),v=new Array(_),b=r-n,w=t-e,C=e-n,S=t-r,x=(w-b)%2==0;for(y[b]=e,v[w]=t,s[0]=!1,a=1;a<=m/2+1;a++){var L=0,k=0;for(c=this.ClipDiagonalBound(b-a,a,b,_),d=this.ClipDiagonalBound(b+a,a,b,_),p=c;p<=d;p+=2){for(l=(u=p===c||p<d&&y[p-1]<y[p+1]?y[p+1]:y[p-1]+1)-(p-b)-C,g=u;u<t&&l<r&&this.ElementsAreEqual(u+1,l+1);)u++,l++;if(y[p]=u,u+l>L+k&&(L=u,k=l),!x&&Math.abs(p-w)<=a-1&&u>=v[p])return i[0]=u,o[0]=l,g<=v[p]&&a<=1448?this.WALKTRACE(b,c,d,C,w,h,f,S,y,v,u,t,i,l,r,o,x,s):null}var M=(L-e+(k-n)-a)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(L,this.OriginalSequence,M))return s[0]=!0,i[0]=L,o[0]=k,M>0&&a<=1448?this.WALKTRACE(b,c,d,C,w,h,f,S,y,v,u,t,i,l,r,o,x,s):(e++,n++,[new F_(e,t-e+1,n,r-n+1)]);for(h=this.ClipDiagonalBound(w-a,a,w,_),f=this.ClipDiagonalBound(w+a,a,w,_),p=h;p<=f;p+=2){for(l=(u=p===h||p<f&&v[p-1]>=v[p+1]?v[p+1]-1:v[p-1])-(p-w)-S,g=u;u>e&&l>n&&this.ElementsAreEqual(u,l);)u--,l--;if(v[p]=u,x&&Math.abs(p-b)<=a&&u<=y[p])return i[0]=u,o[0]=l,g>=y[p]&&a<=1448?this.WALKTRACE(b,c,d,C,w,h,f,S,y,v,u,t,i,l,r,o,x,s):null}if(a<=1447){var D=new Array(d-c+2);D[0]=b-c+1,W_.Copy(y,c,D,1,d-c+1),this.m_forwardHistory.push(D),(D=new Array(f-h+2))[0]=w-h+1,W_.Copy(v,h,D,1,f-h+1),this.m_reverseHistory.push(D)}}return this.WALKTRACE(b,c,d,C,w,h,f,S,y,v,u,t,i,l,r,o,x,s)},e.prototype.PrettifyChanges=function(e){for(var t=0;t<e.length;t++){for(var n=e[t],r=t<e.length-1?e[t+1].originalStart:this.OriginalSequence.getLength(),i=t<e.length-1?e[t+1].modifiedStart:this.ModifiedSequence.getLength(),o=n.originalLength>0,s=n.modifiedLength>0;n.originalStart+n.originalLength<r&&n.modifiedStart+n.modifiedLength<i&&(!o||this.OriginalElementsAreEqual(n.originalStart,n.originalStart+n.originalLength))&&(!s||this.ModifiedElementsAreEqual(n.modifiedStart,n.modifiedStart+n.modifiedLength));)n.originalStart++,n.modifiedStart++;var a=[null];t<e.length-1&&this.ChangesOverlap(e[t],e[t+1],a)&&(e[t]=a[0],e.splice(t+1,1),t--)}for(t=e.length-1;t>=0;t--){n=e[t],r=0,i=0;if(t>0){var u=e[t-1];u.originalLength>0&&(r=u.originalStart+u.originalLength),u.modifiedLength>0&&(i=u.modifiedStart+u.modifiedLength)}o=n.originalLength>0,s=n.modifiedLength>0;for(var l=0,c=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength),d=1;;d++){var h=n.originalStart-d,f=n.modifiedStart-d;if(h<r||f<i)break;if(o&&!this.OriginalElementsAreEqual(h,h+n.originalLength))break;if(s&&!this.ModifiedElementsAreEqual(f,f+n.modifiedLength))break;var p=this._boundaryScore(h,n.originalLength,f,n.modifiedLength);p>c&&(c=p,l=d)}n.originalStart-=l,n.modifiedStart-=l}return e},e.prototype._OriginalIsBoundary=function(e){if(e<=0||e>=this.OriginalSequence.getLength()-1)return!0;var t=this.OriginalSequence.getElementAtIndex(e);return"string"==typeof t&&/^\s*$/.test(t)},e.prototype._OriginalRegionIsBoundary=function(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){var n=e+t;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1},e.prototype._ModifiedIsBoundary=function(e){if(e<=0||e>=this.ModifiedSequence.getLength()-1)return!0;var t=this.ModifiedSequence.getElementAtIndex(e);return"string"==typeof t&&/^\s*$/.test(t)},e.prototype._ModifiedRegionIsBoundary=function(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){var n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1},e.prototype._boundaryScore=function(e,t,n,r){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(n,r)?1:0)},e.prototype.ConcatenateChanges=function(e,t){var n=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){var r=new Array(e.length+t.length-1);return W_.Copy(e,0,r,0,e.length-1),r[e.length-1]=n[0],W_.Copy(t,1,r,e.length,t.length-1),r}r=new Array(e.length+t.length);return W_.Copy(e,0,r,0,e.length),W_.Copy(t,0,r,e.length,t.length),r},e.prototype.ChangesOverlap=function(e,t,n){if(B_.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),B_.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){var r=e.originalStart,i=e.originalLength,o=e.modifiedStart,s=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(i=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(s=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new F_(r,i,o,s),!0}return n[0]=null,!1},e.prototype.ClipDiagonalBound=function(e,t,n,r){if(e>=0&&e<r)return e;var i=t%2==0;return e<0?i===(n%2==0)?0:1:i===((r-n-1)%2==0)?r-1:r-2},e}(),z_=5e3,U_=3;function q_(e,t,n,r){return new V_(e,t,n).ComputeDiff(r)}var K_=function(){function e(t){for(var n=[],r=[],i=0,o=t.length;i<o;i++)n[i]=e._getFirstNonBlankColumn(t[i],1),r[i]=e._getLastNonBlankColumn(t[i],1);this._lines=t,this._startColumns=n,this._endColumns=r}return e.prototype.getLength=function(){return this._lines.length},e.prototype.getElementAtIndex=function(e){return this._lines[e].substring(this._startColumns[e]-1,this._endColumns[e]-1)},e.prototype.getStartLineNumber=function(e){return e+1},e.prototype.getEndLineNumber=function(e){return e+1},e._getFirstNonBlankColumn=function(e,t){var n=gn(e);return-1===n?t:n+1},e._getLastNonBlankColumn=function(e,t){var n=_n(e);return-1===n?t:n+2},e.prototype.getCharSequence=function(e,t,n){for(var r=[],i=[],o=[],s=0,a=t;a<=n;a++)for(var u=this._lines[a],l=e?this._startColumns[a]:1,c=e?this._endColumns[a]:u.length+1,d=l;d<c;d++)r[s]=u.charCodeAt(d-1),i[s]=a+1,o[s]=d,s++;return new G_(r,i,o)},e}(),G_=function(){function e(e,t,n){this._charCodes=e,this._lineNumbers=t,this._columns=n}return e.prototype.getLength=function(){return this._charCodes.length},e.prototype.getElementAtIndex=function(e){return this._charCodes[e]},e.prototype.getStartLineNumber=function(e){return this._lineNumbers[e]},e.prototype.getStartColumn=function(e){return this._columns[e]},e.prototype.getEndLineNumber=function(e){return this._lineNumbers[e]},e.prototype.getEndColumn=function(e){return this._columns[e]+1},e}(),$_=function(){function e(e,t,n,r,i,o,s,a){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=n,this.originalEndColumn=r,this.modifiedStartLineNumber=i,this.modifiedStartColumn=o,this.modifiedEndLineNumber=s,this.modifiedEndColumn=a}return e.createFromDiffChange=function(t,n,r){var i,o,s,a,u,l,c,d;return 0===t.originalLength?(i=0,o=0,s=0,a=0):(i=n.getStartLineNumber(t.originalStart),o=n.getStartColumn(t.originalStart),s=n.getEndLineNumber(t.originalStart+t.originalLength-1),a=n.getEndColumn(t.originalStart+t.originalLength-1)),0===t.modifiedLength?(u=0,l=0,c=0,d=0):(u=r.getStartLineNumber(t.modifiedStart),l=r.getStartColumn(t.modifiedStart),c=r.getEndLineNumber(t.modifiedStart+t.modifiedLength-1),d=r.getEndColumn(t.modifiedStart+t.modifiedLength-1)),new e(i,o,s,a,u,l,c,d)},e}();var Z_=function(){function e(e,t,n,r,i){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=n,this.modifiedEndLineNumber=r,this.charChanges=i}return e.createFromDiffResult=function(t,n,r,i,o,s,a){var u,l,c,d,h=void 0;if(0===n.originalLength?(u=r.getStartLineNumber(n.originalStart)-1,l=0):(u=r.getStartLineNumber(n.originalStart),l=r.getEndLineNumber(n.originalStart+n.originalLength-1)),0===n.modifiedLength?(c=i.getStartLineNumber(n.modifiedStart)-1,d=0):(c=i.getStartLineNumber(n.modifiedStart),d=i.getEndLineNumber(n.modifiedStart+n.modifiedLength-1)),s&&0!==n.originalLength&&0!==n.modifiedLength&&o()){var f=r.getCharSequence(t,n.originalStart,n.originalStart+n.originalLength-1),p=i.getCharSequence(t,n.modifiedStart,n.modifiedStart+n.modifiedLength-1),g=q_(f,p,o,!0);a&&(g=function(e){if(e.length<=1)return e;for(var t=[e[0]],n=t[0],r=1,i=e.length;r<i;r++){var o=e[r],s=o.originalStart-(n.originalStart+n.originalLength),a=o.modifiedStart-(n.modifiedStart+n.modifiedLength);Math.min(s,a)<U_?(n.originalLength=o.originalStart+o.originalLength-n.originalStart,n.modifiedLength=o.modifiedStart+o.modifiedLength-n.modifiedStart):(t.push(o),n=o)}return t}(g)),h=[];for(var m=0,_=g.length;m<_;m++)h.push($_.createFromDiffChange(g[m],f,p))}return new e(u,l,c,d,h)},e}(),X_=function(){function e(e,t,n){this.shouldComputeCharChanges=n.shouldComputeCharChanges,this.shouldPostProcessCharChanges=n.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=n.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=n.shouldMakePrettyDiff,this.maximumRunTimeMs=z_,this.originalLines=e,this.modifiedLines=t,this.original=new K_(e),this.modified=new K_(t),this.computationStartTime=(new Date).getTime()}return e.prototype.computeDiff=function(){if(1===this.original.getLength()&&0===this.original.getElementAtIndex(0).length)return[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.getLength(),charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}];if(1===this.modified.getLength()&&0===this.modified.getElementAtIndex(0).length)return[{originalStartLineNumber:1,originalEndLineNumber:this.original.getLength(),modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}];this.computationStartTime=(new Date).getTime();var e=q_(this.original,this.modified,this._continueProcessingPredicate.bind(this),this.shouldMakePrettyDiff);if(this.shouldIgnoreTrimWhitespace){for(var t=[],n=0,r=e.length;n<r;n++)t.push(Z_.createFromDiffResult(this.shouldIgnoreTrimWhitespace,e[n],this.original,this.modified,this._continueProcessingPredicate.bind(this),this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return t}for(var i=[],o=0,s=0,a=(n=-1,e.length);n<a;n++){for(var u=n+1<a?e[n+1]:null,l=u?u.originalStart:this.originalLines.length,c=u?u.modifiedStart:this.modifiedLines.length;o<l&&s<c;){var d=this.originalLines[o],h=this.modifiedLines[s];if(d!==h){for(var f=K_._getFirstNonBlankColumn(d,1),p=K_._getFirstNonBlankColumn(h,1);f>1&&p>1;){if(d.charCodeAt(f-2)!==h.charCodeAt(p-2))break;f--,p--}(f>1||p>1)&&this._pushTrimWhitespaceCharChange(i,o+1,1,f,s+1,1,p);for(var g=K_._getLastNonBlankColumn(d,1),m=K_._getLastNonBlankColumn(h,1),_=d.length+1,y=h.length+1;g<_&&m<y;){if(d.charCodeAt(g-1)!==d.charCodeAt(m-1))break;g++,m++}(g<_||m<y)&&this._pushTrimWhitespaceCharChange(i,o+1,g,_,s+1,m,y)}o++,s++}u&&(i.push(Z_.createFromDiffResult(this.shouldIgnoreTrimWhitespace,u,this.original,this.modified,this._continueProcessingPredicate.bind(this),this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),o+=u.originalLength,s+=u.modifiedLength)}return i},e.prototype._pushTrimWhitespaceCharChange=function(e,t,n,r,i,o,s){if(!this._mergeTrimWhitespaceCharChange(e,t,n,r,i,o,s)){var a=void 0;this.shouldComputeCharChanges&&(a=[new $_(t,n,t,r,i,o,i,s)]),e.push(new Z_(t,t,i,i,a))}},e.prototype._mergeTrimWhitespaceCharChange=function(e,t,n,r,i,o,s){var a=e.length;if(0===a)return!1;var u=e[a-1];return 0!==u.originalEndLineNumber&&0!==u.modifiedEndLineNumber&&(u.originalEndLineNumber+1===t&&u.modifiedEndLineNumber+1===i&&(u.originalEndLineNumber=t,u.modifiedEndLineNumber=i,this.shouldComputeCharChanges&&u.charChanges.push(new $_(t,n,t,r,i,o,i,s)),!0))},e.prototype._continueProcessingPredicate=function(){return 0===this.maximumRunTimeMs||(new Date).getTime()-this.computationStartTime<this.maximumRunTimeMs},e}(),J_=function(e,t){this.index=e,this.remainder=t},Q_=function(){function e(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}return e.prototype.getCount=function(){return this.values.length},e.prototype.insertValues=function(e,t){e=bo(e);var n=this.values,r=this.prefixSum,i=t.length;return 0!==i&&(this.values=new Uint32Array(n.length+i),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e),e+i),this.values.set(t,e),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},e.prototype.changeValue=function(e,t){return e=bo(e),t=bo(t),this.values[e]!==t&&(this.values[e]=t,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)},e.prototype.removeValues=function(e,t){e=bo(e),t=bo(t);var n=this.values,r=this.prefixSum;if(e>=n.length)return!1;var i=n.length-e;return t>=i&&(t=i),0!==t&&(this.values=new Uint32Array(n.length-t),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},e.prototype.getTotalValue=function(){return 0===this.values.length?0:this._getAccumulatedValue(this.values.length-1)},e.prototype.getAccumulatedValue=function(e){return e<0?0:(e=bo(e),this._getAccumulatedValue(e))},e.prototype._getAccumulatedValue=function(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];var t=this.prefixSumValidIndex[0]+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(var n=t;n<=e;n++)this.prefixSum[n]=this.prefixSum[n-1]+this.values[n];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]},e.prototype.getIndexOf=function(e){e=Math.floor(e),this.getTotalValue();for(var t=0,n=this.values.length-1,r=0,i=0,o=0;t<=n;)if(r=t+(n-t)/2|0,e<(o=(i=this.prefixSum[r])-this.values[r]))n=r-1;else{if(!(e>=i))break;t=r+1}return new J_(r,e-o)},e}(),ey=function(){function e(e){this._cacheAccumulatedValueStart=0,this._cache=null,this._actual=new Q_(e),this._bustCache()}return e.prototype._bustCache=function(){this._cacheAccumulatedValueStart=0,this._cache=null},e.prototype.insertValues=function(e,t){this._actual.insertValues(e,t)&&this._bustCache()},e.prototype.changeValue=function(e,t){this._actual.changeValue(e,t)&&this._bustCache()},e.prototype.removeValues=function(e,t){this._actual.removeValues(e,t)&&this._bustCache()},e.prototype.getTotalValue=function(){return this._actual.getTotalValue()},e.prototype.getAccumulatedValue=function(e){return this._actual.getAccumulatedValue(e)},e.prototype.getIndexOf=function(e){if(e=Math.floor(e),null!==this._cache){var t=e-this._cacheAccumulatedValueStart;if(t>=0&&t<this._cache.length)return this._cache[t]}return this._actual.getIndexOf(e)},e.prototype.warmUpCache=function(e,t){for(var n=[],r=e;r<=t;r++)n[r-e]=this.getIndexOf(r);this._cache=n,this._cacheAccumulatedValueStart=e},e}(),ty=function(){function e(e,t,n,r){this._uri=e,this._lines=t,this._eol=n,this._versionId=r,this._lineStarts=null}return e.prototype.dispose=function(){this._lines.length=0},e.prototype.getText=function(){return this._lines.join(this._eol)},e.prototype.onEvents=function(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);for(var t=0,n=e.changes;t<n.length;t++){var r=n[t];this._acceptDeleteRange(r.range),this._acceptInsertText(new Lt(r.range.startLineNumber,r.range.startColumn),r.text)}this._versionId=e.versionId},e.prototype._ensureLineStarts=function(){if(!this._lineStarts){for(var e=this._eol.length,t=this._lines.length,n=new Uint32Array(t),r=0;r<t;r++)n[r]=this._lines[r].length+e;this._lineStarts=new Q_(n)}},e.prototype._setLineText=function(e,t){this._lines[e]=t,this._lineStarts&&this._lineStarts.changeValue(e,this._lines[e].length+this._eol.length)},e.prototype._acceptDeleteRange=function(e){if(e.startLineNumber!==e.endLineNumber)this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.endLineNumber-1].substring(e.endColumn-1)),this._lines.splice(e.startLineNumber,e.endLineNumber-e.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(e.startLineNumber,e.endLineNumber-e.startLineNumber);else{if(e.startColumn===e.endColumn)return;this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.startLineNumber-1].substring(e.endColumn-1))}},e.prototype._acceptInsertText=function(e,t){if(0!==t.length){var n=t.split(/\r\n|\r|\n/);if(1!==n.length){n[n.length-1]+=this._lines[e.lineNumber-1].substring(e.column-1),this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]);for(var r=new Uint32Array(n.length-1),i=1;i<n.length;i++)this._lines.splice(e.lineNumber+i-1,0,n[i]),r[i-1]=n[i].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,r)}else this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]+this._lines[e.lineNumber-1].substring(e.column-1))}},e}(),ny=function(){function e(e){for(var t=0,n=0,r=0,i=e.length;r<i;r++){var o=e[r],s=o[0];(l=o[1])>t&&(t=l),s>n&&(n=s),(c=o[2])>n&&(n=c)}t++,n++;var a=new yo(n,t,0);for(r=0,i=e.length;r<i;r++){var u=e[r],l=(s=u[0],u[1]),c=u[2];a.set(s,l,c)}this._states=a,this._maxCharCode=t}return e.prototype.nextState=function(e,t){return t<0||t>=this._maxCharCode?0:this._states.get(e,t)},e}(),ry=null;var iy=null;var oy=function(){function e(){}return e._createLink=function(e,t,n,r,i){var o=i-1;do{var s=t.charCodeAt(o);if(2!==e.get(s))break;o--}while(o>r);if(r>0){var a=t.charCodeAt(r-1),u=t.charCodeAt(o);(40===a&&41===u||91===a&&93===u||123===a&&125===u)&&o--}return{range:{startLineNumber:n,startColumn:r+1,endLineNumber:n,endColumn:o+2},url:t.substring(r,o+1)}},e.computeLinks=function(t,n){void 0===n&&(null===ry&&(ry=new ny([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),n=ry);for(var r=function(){if(null===iy){iy=new wo(0);for(var e=0;e<" \t<>'\"、。。、,.:;?!@#$%&*‘“〈《「『【〔([{「」}])〕】』」》〉”’`~…".length;e++)iy.set(" \t<>'\"、。。、,.:;?!@#$%&*‘“〈《「『【〔([{「」}])〕】』」》〉”’`~…".charCodeAt(e),1);for(e=0;e<".,;".length;e++)iy.set(".,;".charCodeAt(e),2)}return iy}(),i=[],o=1,s=t.getLineCount();o<=s;o++){for(var a=t.getLineContent(o),u=a.length,l=0,c=0,d=0,h=1,f=!1,p=!1,g=!1;l<u;){var m=!1,_=a.charCodeAt(l);if(13===h){var y=void 0;switch(_){case 40:f=!0,y=0;break;case 41:y=f?0:1;break;case 91:p=!0,y=0;break;case 93:y=p?0:1;break;case 123:g=!0,y=0;break;case 125:y=g?0:1;break;case 39:y=34===d||96===d?0:1;break;case 34:y=39===d||96===d?0:1;break;case 96:y=39===d||34===d?0:1;break;default:y=r.get(_)}1===y&&(i.push(e._createLink(r,a,o,c,l)),m=!0)}else if(12===h){y=void 0;91===_?(p=!0,y=0):y=r.get(_),1===y?m=!0:h=13}else 0===(h=n.nextState(h,_))&&(m=!0);m&&(h=1,f=!1,p=!1,g=!1,c=l+1,d=_),l++}13===h&&i.push(e._createLink(r,a,o,c,u))}return i},e}();var sy=function(){function e(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}return e.prototype.navigateValueSet=function(e,t,n,r,i){var o;if(e&&t&&(o=this.doNavigateValueSet(t,i)))return{range:e,value:o};if(n&&r&&(o=this.doNavigateValueSet(r,i)))return{range:n,value:o};return null},e.prototype.doNavigateValueSet=function(e,t){var n=this.numberReplace(e,t);return null!==n?n:this.textReplace(e,t)},e.prototype.numberReplace=function(e,t){var n=Math.pow(10,e.length-(e.lastIndexOf(".")+1)),r=Number(e),i=parseFloat(e);return isNaN(r)||isNaN(i)||r!==i?null:0!==r||t?(r=Math.floor(r*n),r+=t?n:-n,String(r/n)):null},e.prototype.textReplace=function(e,t){return this.valueSetsReplace(this._defaultValueSet,e,t)},e.prototype.valueSetsReplace=function(e,t,n){for(var r=null,i=0,o=e.length;null===r&&i<o;i++)r=this.valueSetReplace(e[i],t,n);return r},e.prototype.valueSetReplace=function(e,t,n){var r=e.indexOf(t);return r>=0?((r+=n?1:-1)<0?r=e.length-1:r%=e.length,e[r]):null},e.INSTANCE=new e,e}(),ay=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),uy=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ay(t,e),Object.defineProperty(t.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._versionId},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"eol",{get:function(){return this._eol},enumerable:!0,configurable:!0}),t.prototype.getValue=function(){return this.getText()},t.prototype.getLinesContent=function(){return this._lines.slice(0)},t.prototype.getLineCount=function(){return this._lines.length},t.prototype.getLineContent=function(e){return this._lines[e-1]},t.prototype.getWordAtPosition=function(e,t){var n=ii(e.column,ri(t),this._lines[e.lineNumber-1],0);return n?new Yr(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn):null},t.prototype.getWordUntilPosition=function(e,t){var n=this.getWordAtPosition(e,t);return n?{word:this._lines[e.lineNumber-1].substring(n.startColumn-1,e.column-1),startColumn:n.startColumn,endColumn:e.column}:{word:"",startColumn:e.column,endColumn:e.column}},t.prototype.createWordIterator=function(e){var t,n,r=this,i=0,o=0,s=[],a=function(){if(o<s.length){var u=n.substring(s[o].start,s[o].end);return o+=1,t?t.value=u:t={done:!1,value:u},t}return i>=r._lines.length?Wt:(n=r._lines[i],s=r._wordenize(n,e),o=0,i+=1,a())};return{next:a}},t.prototype.getLineWords=function(e,t){for(var n=this._lines[e-1],r=[],i=0,o=this._wordenize(n,t);i<o.length;i++){var s=o[i];r.push({word:n.substring(s.start,s.end),startColumn:s.start+1,endColumn:s.end+1})}return r},t.prototype._wordenize=function(e,t){var n,r=[];for(t.lastIndex=0;(n=t.exec(e))&&0!==n[0].length;)r.push({start:n.index,end:n.index+n[0].length});return r},t.prototype.getValueInRange=function(e){if((e=this._validateRange(e)).startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);var t=this._eol,n=e.startLineNumber-1,r=e.endLineNumber-1,i=[];i.push(this._lines[n].substring(e.startColumn-1));for(var o=n+1;o<r;o++)i.push(this._lines[o]);return i.push(this._lines[r].substring(0,e.endColumn-1)),i.join(t)},t.prototype.offsetAt=function(e){return e=this._validatePosition(e),this._ensureLineStarts(),this._lineStarts.getAccumulatedValue(e.lineNumber-2)+(e.column-1)},t.prototype.positionAt=function(e){e=Math.floor(e),e=Math.max(0,e),this._ensureLineStarts();var t=this._lineStarts.getIndexOf(e),n=this._lines[t.index].length;return{lineNumber:1+t.index,column:1+Math.min(t.remainder,n)}},t.prototype._validateRange=function(e){var t=this._validatePosition({lineNumber:e.startLineNumber,column:e.startColumn}),n=this._validatePosition({lineNumber:e.endLineNumber,column:e.endColumn});return t.lineNumber!==e.startLineNumber||t.column!==e.startColumn||n.lineNumber!==e.endLineNumber||n.column!==e.endColumn?{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:n.lineNumber,endColumn:n.column}:e},t.prototype._validatePosition=function(e){if(!Lt.isIPosition(e))throw new Error("bad position");var t=e.lineNumber,n=e.column,r=!1;if(t<1)t=1,n=1,r=!0;else if(t>this._lines.length)t=this._lines.length,n=this._lines[t-1].length+1,r=!0;else{var i=this._lines[t-1].length+1;n<1?(n=1,r=!0):n>i&&(n=i,r=!0)}return r?{lineNumber:t,column:n}:e},t}(ty),ly=function(){function e(e,t){this._host=e,this._models=Object.create(null),this._foreignModuleFactory=t,this._foreignModule=null}return e.prototype.dispose=function(){this._models=Object.create(null)},e.prototype._getModel=function(e){return this._models[e]},e.prototype._getModels=function(){var e=this,t=[];return Object.keys(this._models).forEach((function(n){return t.push(e._models[n])})),t},e.prototype.acceptNewModel=function(e){this._models[e.url]=new uy(ht.parse(e.url),e.lines,e.EOL,e.versionId)},e.prototype.acceptModelChanged=function(e,t){this._models[e]&&this._models[e].onEvents(t)},e.prototype.acceptRemovedModel=function(e){this._models[e]&&delete this._models[e]},e.prototype.computeDiff=function(e,t,n){var r=this._getModel(e),i=this._getModel(t);if(!r||!i)return Promise.resolve(null);var o=r.getLinesContent(),s=i.getLinesContent(),a=new X_(o,s,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:n,shouldMakePrettyDiff:!0}).computeDiff(),u=!(a.length>0)&&this._modelsAreIdentical(r,i);return Promise.resolve({identical:u,changes:a})},e.prototype._modelsAreIdentical=function(e,t){var n=e.getLineCount();if(n!==t.getLineCount())return!1;for(var r=1;r<=n;r++){if(e.getLineContent(r)!==t.getLineContent(r))return!1}return!0},e.prototype.computeMoreMinimalEdits=function(t,n){var r=this._getModel(t);if(!r)return Promise.resolve(n);for(var i=[],o=void 0,s=0,a=n=Vr(n,(function(e,t){return e.range&&t.range?Yr.compareRangesUsingStarts(e.range,t.range):(e.range?0:1)-(t.range?0:1)}));s<a.length;s++){var u=a[s],l=u.range,c=u.text,d=u.eol;if("number"==typeof d&&(o=d),!Yr.isEmpty(l)||c){var h=r.getValueInRange(l);if(h!==(c=c.replace(/\r\n|\n|\r/g,r.eol)))if(Math.max(c.length,h.length)>e._diffLimit)i.push({range:l,text:c});else for(var f=j_(h,c,!1),p=r.offsetAt(Yr.lift(l).getStartPosition()),g=0,m=f;g<m.length;g++){var _=m[g],y=r.positionAt(p+_.originalStart),v=r.positionAt(p+_.originalStart+_.originalLength),b={text:c.substr(_.modifiedStart,_.modifiedLength),range:{startLineNumber:y.lineNumber,startColumn:y.column,endLineNumber:v.lineNumber,endColumn:v.column}};r.getValueInRange(b.range)!==b.text&&i.push(b)}}}return"number"==typeof o&&i.push({eol:o,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),Promise.resolve(i)},e.prototype.computeLinks=function(e){var t=this._getModel(e);return t?Promise.resolve(function(e){return e&&"function"==typeof e.getLineCount&&"function"==typeof e.getLineContent?oy.computeLinks(e):[]}(t)):Promise.resolve(null)},e.prototype.textualSuggest=function(t,n,r,i){var o=this._getModel(t);if(!o)return Promise.resolve(null);var s=Object.create(null),a=[],u=new RegExp(r,i),l=o.getWordUntilPosition(n,u),c=o.getWordAtPosition(n,u);c&&(s[o.getValueInRange(c)]=!0);for(var d=o.createWordIterator(u),h=d.next();!h.done&&a.length<=e._suggestionsLimit;h=d.next()){var f=h.value;s[f]||(s[f]=!0,isNaN(Number(f))&&a.push({kind:18,label:f,insertText:f,range:{startLineNumber:n.lineNumber,startColumn:l.startColumn,endLineNumber:n.lineNumber,endColumn:l.endColumn}}))}return Promise.resolve({suggestions:a})},e.prototype.computeWordRanges=function(e,t,n,r){var i=this._getModel(e);if(!i)return Promise.resolve(Object.create(null));for(var o=new RegExp(n,r),s=Object.create(null),a=t.startLineNumber;a<t.endLineNumber;a++)for(var u=0,l=i.getLineWords(a,o);u<l.length;u++){var c=l[u];if(isNaN(Number(c.word))){var d=s[c.word];d||(d=[],s[c.word]=d),d.push({startLineNumber:a,startColumn:c.startColumn,endLineNumber:a,endColumn:c.endColumn})}}return Promise.resolve(s)},e.prototype.navigateValueSet=function(e,t,n,r,i){var o=this._getModel(e);if(!o)return Promise.resolve(null);var s=new RegExp(r,i);t.startColumn===t.endColumn&&(t={startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn+1});var a=o.getValueInRange(t),u=o.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn},s);if(!u)return Promise.resolve(null);var l=o.getValueInRange(u),c=sy.INSTANCE.navigateValueSet(t,a,u,l,n);return Promise.resolve(c)},e.prototype.loadForeignModule=function(e,t,n){var r=this,i={host:Ve(n,(function(e,t){return r._host.fhr(e,t)})),getMirrorModels:function(){return r._getModels()}};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(i,t),Promise.resolve(He(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))},e.prototype.fmr=function(e,t){if(!this._foreignModule||"function"!=typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(e){return Promise.reject(e)}},e._diffLimit=1e5,e._suggestionsLimit=1e4,e}();"function"==typeof importScripts&&(nt.b.monaco=a_());var cy=Ct("textResourceConfigurationService"),dy=Ct("textResourcePropertiesService"),hy=Ct("logService"),fy=function(){function e(){}return e.prototype.trace=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]},e.prototype.error=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]},e.prototype.dispose=function(){},e}(),py=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),gy=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},my=function(e,t){return function(n,r){t(n,r,e)}},_y=6e4,yy=3e5;function vy(e,t){var n=e.getModel(t);return!!n&&!n.isTooLargeForSyncing()}var by=function(e){function t(t,n,r){var i=e.call(this)||this;return i._modelService=t,i._workerManager=i._register(new Cy(i._modelService)),i._logService=r,i._register(Na.register("*",{provideLinks:function(e,t){return vy(i._modelService,e.uri)?i._workerManager.withWorker().then((function(t){return t.computeLinks(e.uri)})).then((function(e){return e&&{links:e}})):Promise.resolve({links:[]})}})),i._register(_a.register("*",new wy(i._workerManager,n,i._modelService))),i}return py(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.canComputeDiff=function(e,t){return vy(this._modelService,e)&&vy(this._modelService,t)},t.prototype.computeDiff=function(e,t,n){return this._workerManager.withWorker().then((function(r){return r.computeDiff(e,t,n)}))},t.prototype.computeMoreMinimalEdits=function(e,t){var n,r=this;if(n=t,Array.isArray(n)&&n.length>0){if(!vy(this._modelService,e))return Promise.resolve(t);var i=Ua.create(!0),o=this._workerManager.withWorker().then((function(n){return n.computeMoreMinimalEdits(e,t)}));return o.finally((function(){return r._logService.trace("FORMAT#computeMoreMinimalEdits",e.toString(!0),i.elapsed())})),o}return Promise.resolve(void 0)},t.prototype.canNavigateValueSet=function(e){return vy(this._modelService,e)},t.prototype.navigateValueSet=function(e,t,n){return this._workerManager.withWorker().then((function(r){return r.navigateValueSet(e,t,n)}))},t.prototype.canComputeWordRanges=function(e){return vy(this._modelService,e)},t.prototype.computeWordRanges=function(e,t){return this._workerManager.withWorker().then((function(n){return n.computeWordRanges(e,t)}))},t=gy([my(0,kt),my(1,cy),my(2,hy)],t)}(Ft),wy=function(){function e(e,t,n){this._debugDisplayName="wordbasedCompletions",this._workerManager=e,this._configurationService=t,this._modelService=n}return e.prototype.provideCompletionItems=function(e,t){if(this._configurationService.getValue(e.uri,t,"editor").wordBasedSuggestions&&vy(this._modelService,e.uri))return this._workerManager.withWorker().then((function(n){return n.textualSuggest(e.uri,t)}))},e}(),Cy=function(e){function t(t){var n=e.call(this)||this;return n._modelService=t,n._editorWorkerClient=null,n._lastWorkerUsedTime=(new Date).getTime(),n._register(new Os).cancelAndSet((function(){return n._checkStopIdleWorker()}),Math.round(yy/2)),n._register(n._modelService.onModelRemoved((function(e){return n._checkStopEmptyWorker()}))),n}return py(t,e),t.prototype.dispose=function(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),e.prototype.dispose.call(this)},t.prototype._checkStopEmptyWorker=function(){this._editorWorkerClient&&(0===this._modelService.getModels().length&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null))},t.prototype._checkStopIdleWorker=function(){this._editorWorkerClient&&((new Date).getTime()-this._lastWorkerUsedTime>yy&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null))},t.prototype.withWorker=function(){return this._lastWorkerUsedTime=(new Date).getTime(),this._editorWorkerClient||(this._editorWorkerClient=new ky(this._modelService,"editorWorkerService")),Promise.resolve(this._editorWorkerClient)},t}(Ft),Sy=function(e){function t(t,n,r){var i=e.call(this)||this;if(i._syncedModels=Object.create(null),i._syncedModelsLastUsedTime=Object.create(null),i._proxy=t,i._modelService=n,!r){var o=new Os;o.cancelAndSet((function(){return i._checkStopModelSync()}),Math.round(_y/2)),i._register(o)}return i}return py(t,e),t.prototype.dispose=function(){for(var t in this._syncedModels)At(this._syncedModels[t]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),e.prototype.dispose.call(this)},t.prototype.ensureSyncedResources=function(e){for(var t=0,n=e;t<n.length;t++){var r=n[t],i=r.toString();this._syncedModels[i]||this._beginModelSync(r),this._syncedModels[i]&&(this._syncedModelsLastUsedTime[i]=(new Date).getTime())}},t.prototype._checkStopModelSync=function(){var e=(new Date).getTime(),t=[];for(var n in this._syncedModelsLastUsedTime){e-this._syncedModelsLastUsedTime[n]>_y&&t.push(n)}for(var r=0,i=t;r<i.length;r++){var o=i[r];this._stopModelSync(o)}},t.prototype._beginModelSync=function(e){var t=this,n=this._modelService.getModel(e);if(n&&!n.isTooLargeForSyncing()){var r=e.toString();this._proxy.acceptNewModel({url:n.uri.toString(),lines:n.getLinesContent(),EOL:n.getEOL(),versionId:n.getVersionId()});var i=new Rt;i.add(n.onDidChangeContent((function(e){t._proxy.acceptModelChanged(r.toString(),e)}))),i.add(n.onWillDispose((function(){t._stopModelSync(r)}))),i.add(Pt((function(){t._proxy.acceptRemovedModel(r)}))),this._syncedModels[r]=i}},t.prototype._stopModelSync=function(e){var t=this._syncedModels[e];delete this._syncedModels[e],delete this._syncedModelsLastUsedTime[e],At(t)},t}(Ft),xy=function(){function e(e){this._instance=e,this._proxyObj=Promise.resolve(this._instance)}return e.prototype.dispose=function(){this._instance.dispose()},e.prototype.getProxyObject=function(){return this._proxyObj},e}(),Ly=function(){function e(e){this._workerClient=e}return e.prototype.fhr=function(e,t){return this._workerClient.fhr(e,t)},e}(),ky=function(e){function t(t,n){var r=e.call(this)||this;return r._modelService=t,r._workerFactory=new R_(n),r._worker=null,r._modelManager=null,r}return py(t,e),t.prototype.fhr=function(e,t){throw new Error("Not implemented!")},t.prototype._getOrCreateWorker=function(){if(!this._worker)try{this._worker=this._register(new I_(this._workerFactory,"vs/editor/common/services/editorSimpleWorker",new Ly(this)))}catch(e){O_(e),this._worker=new xy(new ly(new Ly(this),null))}return this._worker},t.prototype._getProxy=function(){var e=this;return this._getOrCreateWorker().getProxyObject().then(void 0,(function(t){return O_(t),e._worker=new xy(new ly(new Ly(e),null)),e._getOrCreateWorker().getProxyObject()}))},t.prototype._getOrCreateModelManager=function(e){return this._modelManager||(this._modelManager=this._register(new Sy(e,this._modelService,!1))),this._modelManager},t.prototype._withSyncedResources=function(e){var t=this;return this._getProxy().then((function(n){return t._getOrCreateModelManager(n).ensureSyncedResources(e),n}))},t.prototype.computeDiff=function(e,t,n){return this._withSyncedResources([e,t]).then((function(r){return r.computeDiff(e.toString(),t.toString(),n)}))},t.prototype.computeMoreMinimalEdits=function(e,t){return this._withSyncedResources([e]).then((function(n){return n.computeMoreMinimalEdits(e.toString(),t)}))},t.prototype.computeLinks=function(e){return this._withSyncedResources([e]).then((function(t){return t.computeLinks(e.toString())}))},t.prototype.textualSuggest=function(e,t){var n=this;return this._withSyncedResources([e]).then((function(r){var i=n._modelService.getModel(e);if(!i)return null;var o=Mu.getWordDefinition(i.getLanguageIdentifier().id),s=o.source,a=pn(o);return r.textualSuggest(e.toString(),t,s,a)}))},t.prototype.computeWordRanges=function(e,t){var n=this;return this._withSyncedResources([e]).then((function(r){var i=n._modelService.getModel(e);if(!i)return Promise.resolve(null);var o=Mu.getWordDefinition(i.getLanguageIdentifier().id),s=o.source,a=pn(o);return r.computeWordRanges(e.toString(),t,s,a)}))},t.prototype.navigateValueSet=function(e,t,n){var r=this;return this._withSyncedResources([e]).then((function(i){var o=r._modelService.getModel(e);if(!o)return null;var s=Mu.getWordDefinition(o.getLanguageIdentifier().id),a=s.source,u=pn(s);return i.navigateValueSet(e.toString(),t,n,a,u)}))},t}(Ft),My=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var Dy,Ey=function(e){function t(t,n){var r=e.call(this,t,n.label)||this;return r._foreignModuleId=n.moduleId,r._foreignModuleCreateData=n.createData||null,r._foreignModuleHost=n.host||null,r._foreignProxy=null,r}return My(t,e),t.prototype.fhr=function(e,t){if(!this._foreignModuleHost||"function"!=typeof this._foreignModuleHost[e])return Promise.reject(new Error("Missing method "+e+" or missing main thread foreign host."));try{return Promise.resolve(this._foreignModuleHost[e].apply(this._foreignModuleHost,t))}catch(e){return Promise.reject(e)}},t.prototype._getForeignProxy=function(){var e=this;return this._foreignProxy||(this._foreignProxy=this._getProxy().then((function(t){var n=e._foreignModuleHost?He(e._foreignModuleHost):[];return t.loadForeignModule(e._foreignModuleId,e._foreignModuleCreateData,n).then((function(n){e._foreignModuleCreateData=null;for(var r=function(e,n){return t.fmr(e,n)},i=function(e,t){return function(){var n=Array.prototype.slice.call(arguments,0);return t(e,n)}},o={},s=0,a=n;s<a.length;s++){var u=a[s];o[u]=i(u,r)}return o}))}))),this._foreignProxy},t.prototype.getProxy=function(){return this._getForeignProxy()},t.prototype.withSyncedResources=function(e){var t=this;return this._withSyncedResources(e).then((function(e){return t.getProxy()}))},t}(ky);Dy="undefined"!=typeof TextDecoder?function(e){return new Ty(e)}:function(e){return new Ny};var Ty=function(){function e(e){this._decoder=new TextDecoder("UTF-16LE"),this._capacity=0|e,this._buffer=new Uint16Array(this._capacity),this._completedStrings=null,this._bufferLength=0}return e.prototype.reset=function(){this._completedStrings=null,this._bufferLength=0},e.prototype.build=function(){return null!==this._completedStrings?(this._flushBuffer(),this._completedStrings.join("")):this._buildBuffer()},e.prototype._buildBuffer=function(){if(0===this._bufferLength)return"";var e=new Uint16Array(this._buffer.buffer,0,this._bufferLength);return this._decoder.decode(e)},e.prototype._flushBuffer=function(){var e=this._buildBuffer();this._bufferLength=0,null===this._completedStrings?this._completedStrings=[e]:this._completedStrings[this._completedStrings.length]=e},e.prototype.write1=function(e){var t=this._capacity-this._bufferLength;t<=1&&(0===t||xn(e))&&this._flushBuffer(),this._buffer[this._bufferLength++]=e},e.prototype.appendASCII=function(e){this._bufferLength===this._capacity&&this._flushBuffer(),this._buffer[this._bufferLength++]=e},e.prototype.appendASCIIString=function(e){var t=e.length;if(this._bufferLength+t>=this._capacity)return this._flushBuffer(),void(this._completedStrings[this._completedStrings.length]=e);for(var n=0;n<t;n++)this._buffer[this._bufferLength++]=e.charCodeAt(n)},e}(),Ny=function(){function e(){this._pieces=[],this._piecesLen=0}return e.prototype.reset=function(){this._pieces=[],this._piecesLen=0},e.prototype.build=function(){return this._pieces.join("")},e.prototype.write1=function(e){this._pieces[this._piecesLen++]=String.fromCharCode(e)},e.prototype.appendASCII=function(e){this._pieces[this._piecesLen++]=String.fromCharCode(e)},e.prototype.appendASCIIString=function(e){this._pieces[this._piecesLen++]=e},e}(),Oy=function(){function e(e,t,n,r){this.startColumn=e,this.endColumn=t,this.className=n,this.type=r}return e._equals=function(e,t){return e.startColumn===t.startColumn&&e.endColumn===t.endColumn&&e.className===t.className&&e.type===t.type},e.equalsArr=function(t,n){var r=t.length;if(r!==n.length)return!1;for(var i=0;i<r;i++)if(!e._equals(t[i],n[i]))return!1;return!0},e.filter=function(t,n,r,i){if(0===t.length)return[];for(var o=[],s=0,a=0,u=t.length;a<u;a++){var l=t[a],c=l.range;if(!(c.endLineNumber<n||c.startLineNumber>n)&&(!c.isEmpty()||0!==l.type&&3!==l.type)){var d=c.startLineNumber===n?c.startColumn:r,h=c.endLineNumber===n?c.endColumn:i;o[s++]=new e(d,h,l.inlineClassName,l.type)}}return o},e.compare=function(e,t){return e.startColumn===t.startColumn?e.endColumn===t.endColumn?e.className<t.className?-1:e.className>t.className?1:0:e.endColumn-t.endColumn:e.startColumn-t.startColumn},e}(),Ay=function(e,t,n){this.startOffset=e,this.endOffset=t,this.className=n},Iy=function(){function e(){this.stopOffsets=[],this.classNames=[],this.count=0}return e.prototype.consumeLowerThan=function(e,t,n){for(;this.count>0&&this.stopOffsets[0]<e;){for(var r=0;r+1<this.count&&this.stopOffsets[r]===this.stopOffsets[r+1];)r++;n.push(new Ay(t,this.stopOffsets[r],this.classNames.join(" "))),t=this.stopOffsets[r]+1,this.stopOffsets.splice(0,r+1),this.classNames.splice(0,r+1),this.count-=r+1}return this.count>0&&t<e&&(n.push(new Ay(t,e-1,this.classNames.join(" "))),t=e),t},e.prototype.insert=function(e,t){if(0===this.count||this.stopOffsets[this.count-1]<=e)this.stopOffsets.push(e),this.classNames.push(t);else for(var n=0;n<this.count;n++)if(this.stopOffsets[n]>=e){this.stopOffsets.splice(n,0,e),this.classNames.splice(n,0,t);break}this.count++},e}(),Py=function(){function e(){}return e.normalize=function(e,t){if(0===t.length)return[];for(var n=[],r=new Iy,i=0,o=0,s=t.length;o<s;o++){var a=t[o],u=a.startColumn,l=a.endColumn,c=a.className;if(u>1)xn(e.charCodeAt(u-2))&&u--;if(l>1)xn(e.charCodeAt(l-2))&&l--;var d=u-1,h=l-2;i=r.consumeLowerThan(d,i,n),0===r.count&&(i=d),r.insert(h,c)}return r.consumeLowerThan(1073741824,i,n),n},e}(),Ry=function(e,t){this.endIndex=e,this.type=t},Fy=function(){function e(e,t){this.startOffset=e,this.endOffset=t}return e.prototype.equals=function(e){return this.startOffset===e.startOffset&&this.endOffset===e.endOffset},e}(),Yy=function(){function e(e,t,n,r,i,o,s,a,u,l,c,d,h,f,p,g){this.useMonospaceOptimizations=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=n,this.continuesWithWrappedLine=r,this.isBasicASCII=i,this.containsRTL=o,this.fauxIndentLength=s,this.lineTokens=a,this.lineDecorations=u,this.tabSize=l,this.spaceWidth=c,this.stopRenderingLineAfter=d,this.renderWhitespace="all"===h?3:"boundary"===h?1:"selection"===h?2:0,this.renderControlCharacters=f,this.fontLigatures=p,this.selectionsOnLine=g&&g.sort((function(e,t){return e.startOffset<t.startOffset?-1:1}))}return e.prototype.sameSelection=function(e){if(null===this.selectionsOnLine)return null===e;if(null===e)return!1;if(e.length!==this.selectionsOnLine.length)return!1;for(var t=0;t<this.selectionsOnLine.length;t++)if(!this.selectionsOnLine[t].equals(e[t]))return!1;return!0},e.prototype.equals=function(e){return this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineContent===e.lineContent&&this.continuesWithWrappedLine===e.continuesWithWrappedLine&&this.isBasicASCII===e.isBasicASCII&&this.containsRTL===e.containsRTL&&this.fauxIndentLength===e.fauxIndentLength&&this.tabSize===e.tabSize&&this.spaceWidth===e.spaceWidth&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.fontLigatures===e.fontLigatures&&Oy.equalsArr(this.lineDecorations,e.lineDecorations)&&this.lineTokens.equals(e.lineTokens)&&this.sameSelection(e.selectionsOnLine)},e}(),jy=function(){function e(e,t){this.length=e,this._data=new Uint32Array(this.length),this._absoluteOffsets=new Uint32Array(this.length)}return e.getPartIndex=function(e){return(4294901760&e)>>>16},e.getCharIndex=function(e){return(65535&e)>>>0},e.prototype.setPartData=function(e,t,n,r){var i=(t<<16|n<<0)>>>0;this._data[e]=i,this._absoluteOffsets[e]=r+n},e.prototype.getAbsoluteOffsets=function(){return this._absoluteOffsets},e.prototype.charOffsetToPartData=function(e){return 0===this.length?0:e<0?this._data[0]:e>=this.length?this._data[this.length-1]:this._data[e]},e.prototype.partDataToCharOffset=function(t,n,r){if(0===this.length)return 0;for(var i=(t<<16|r<<0)>>>0,o=0,s=this.length-1;o+1<s;){var a=o+s>>>1,u=this._data[a];if(u===i)return a;u>i?s=a:o=a}if(o===s)return o;var l=this._data[o],c=this._data[s];if(l===i)return o;if(c===i)return s;var d=e.getPartIndex(l);return r-e.getCharIndex(l)<=(d!==e.getPartIndex(c)?n:e.getCharIndex(c))-r?o:s},e}(),By=function(e,t,n){this.characterMapping=e,this.containsRTL=t,this.containsForeignElements=n};function Wy(e,t){if(0===e.lineContent.length){var n=0,r="<span><span> </span></span>";if(e.lineDecorations.length>0){for(var i=[],o=0,s=e.lineDecorations.length;o<s;o++){var a=e.lineDecorations[o];1===a.type&&(i.push(e.lineDecorations[o].className),n|=1),2===a.type&&(i.push(e.lineDecorations[o].className),n|=2)}0!==n&&(r='<span><span class="'+i.join(" ")+'"></span></span>')}return t.appendASCIIString(r),new By(new jy(0,0),!1,n)}return function(e,t){var n=e.fontIsMonospace,r=e.canUseHalfwidthRightwardsArrow,i=e.containsForeignElements,o=e.lineContent,s=e.len,a=e.isOverflowing,u=e.parts,l=e.tabSize,c=e.containsRTL,d=e.spaceWidth,h=e.renderWhitespace,f=e.renderControlCharacters,p=new jy(s+1,u.length),g=0,m=0,_=0,y=0,v=0;t.appendASCIIString("<span>");for(var b=0,w=u.length;b<w;b++){v+=y;var C=u[b],S=C.endIndex,x=C.type,L=0!==h&&x.indexOf("vs-whitespace")>=0;if(_=0,t.appendASCIIString('<span class="'),t.appendASCIIString(x),t.appendASCII(34),L){for(var k=0,M=g,D=m;M<S;M++){if(9===(E=o.charCodeAt(M)))D+=(T=l-(M+D)%l)-1,k+=T;else k++}if(!n)!("vs-whitespace"===x)&&i||(t.appendASCIIString(' style="width:'),t.appendASCIIString(String(d*k)),t.appendASCIIString('px"'));for(t.appendASCII(62);g<S;g++){if(p.setPartData(g,b,_,v),9===(E=o.charCodeAt(g)))for(m+=(T=l-(g+m)%l)-1,_+=T-1,T>0&&(!r||T>1?t.write1(8594):t.write1(65515),T--);T>0;)t.write1(160),T--;else t.write1(183);_++}y=k}else{k=0;for(c&&t.appendASCIIString(' dir="ltr"'),t.appendASCII(62);g<S;g++){var E;switch(p.setPartData(g,b,_,v),E=o.charCodeAt(g)){case 9:var T;for(m+=(T=l-(g+m)%l)-1,_+=T-1;T>0;)t.write1(160),k++,T--;break;case 32:t.write1(160),k++;break;case 60:t.appendASCIIString("<"),k++;break;case 62:t.appendASCIIString(">"),k++;break;case 38:t.appendASCIIString("&"),k++;break;case 0:t.appendASCIIString("�"),k++;break;case 65279:case 8232:t.write1(65533),k++;break;default:Nn(E)&&m++,f&&E<32?(t.write1(9216+E),k++):(t.write1(E),k++)}_++}y=k}t.appendASCIIString("</span>")}p.setPartData(s,u.length-1,_,v),a&&t.appendASCIIString("<span>…</span>");return t.appendASCIIString("</span>"),new By(p,c,i)}(function(e){var t,n,r=e.useMonospaceOptimizations,i=e.lineContent;-1!==e.stopRenderingLineAfter&&e.stopRenderingLineAfter<i.length?(t=!0,n=e.stopRenderingLineAfter):(t=!1,n=i.length);var o=function(e,t,n){var r=[],i=0;t>0&&(r[i++]=new Ry(t,""));for(var o=0,s=e.getCount();o<s;o++){var a=e.getEndOffset(o);if(!(a<=t)){var u=e.getClassName(o);if(a>=n){r[i++]=new Ry(n,u);break}r[i++]=new Ry(a,u)}}return r}(e.lineTokens,e.fauxIndentLength,n);(3===e.renderWhitespace||1===e.renderWhitespace||2===e.renderWhitespace&&e.selectionsOnLine)&&(o=function(e,t,n,r,i,o,s,a,u){var l,c=[],d=0,h=0,f=r[h].type,p=r[h].endIndex,g=r.length,m=gn(e);-1===m?(m=t,l=t):l=_n(e);for(var _=0,y=0;y<i;y++){9===(C=e.charCodeAt(y))?_=o:Nn(C)?_+=2:_++}_%=o;var v=!1,b=0,w=a&&a[b];for(y=i;y<t;y++){var C=e.charCodeAt(y);w&&y>=w.endOffset&&(b++,w=a&&a[b]);var S=void 0;if(y<m||y>l)S=!0;else if(9===C)S=!0;else if(32===C)if(u)if(v)S=!0;else{var x=y+1<t?e.charCodeAt(y+1):0;S=32===x||9===x}else S=!0;else S=!1;S&&a&&(S=!!w&&w.startOffset<=y&&w.endOffset>y),v?(!S||!s&&_>=o)&&(c[d++]=new Ry(y,"vs-whitespace"),_%=o):(y===p||S&&y>i)&&(c[d++]=new Ry(y,f),_%=o),9===C?_=o:Nn(C)?_+=2:_++,v=S,y===p&&++h<g&&(f=r[h].type,p=r[h].endIndex)}var L=!1;if(v)if(n&&u){var k=t>0?e.charCodeAt(t-1):0,M=t>1?e.charCodeAt(t-2):0;32===k&&32!==M&&9!==M||(L=!0)}else L=!0;return c[d++]=new Ry(t,L?"vs-whitespace":f),c}(i,n,e.continuesWithWrappedLine,o,e.fauxIndentLength,e.tabSize,r,e.selectionsOnLine,1===e.renderWhitespace));var s=0;if(e.lineDecorations.length>0){for(var a=0,u=e.lineDecorations.length;a<u;a++){var l=e.lineDecorations[a];3===l.type?s|=1:1===l.type?s|=1:2===l.type&&(s|=2)}o=function(e,t,n,r){r.sort(Oy.compare);for(var i=Py.normalize(e,r),o=i.length,s=0,a=[],u=0,l=0,c=0,d=n.length;c<d;c++){for(var h=n[c],f=h.endIndex,p=h.type;s<o&&i[s].startOffset<f;){var g=i[s];if(g.startOffset>l&&(l=g.startOffset,a[u++]=new Ry(l,p)),!(g.endOffset+1<=f)){l=f,a[u++]=new Ry(l,p+" "+g.className);break}l=g.endOffset+1,a[u++]=new Ry(l,p+" "+g.className),s++}f>l&&(l=f,a[u++]=new Ry(l,p))}var m=n[n.length-1].endIndex;if(s<o&&i[s].startOffset===m){for(var _=[];s<o&&i[s].startOffset===m;)_.push(i[s].className),s++;a[u++]=new Ry(l,_.join(" "))}return a}(i,0,o,e.lineDecorations)}e.containsRTL||(o=function(e,t,n){var r=0,i=[],o=0;if(n)for(var s=0,a=t.length;s<a;s++){var u=(f=t[s]).endIndex;if(r+50<u){for(var l=f.type,c=-1,d=r,h=r;h<u;h++)32===e.charCodeAt(h)&&(c=h),-1!==c&&h-d>=50&&(i[o++]=new Ry(c+1,l),d=c+1,c=-1);d!==u&&(i[o++]=new Ry(u,l))}else i[o++]=f;r=u}else for(s=0,a=t.length;s<a;s++){var f=t[s],p=(u=f.endIndex)-r;if(p>50){l=f.type;var g=Math.ceil(p/50);for(h=1;h<g;h++){var m=r+50*h;i[o++]=new Ry(m,l)}i[o++]=new Ry(u,l)}else i[o++]=f;r=u}return i}(i,o,!e.isBasicASCII||e.fontLigatures));return new zy(r,e.canUseHalfwidthRightwardsArrow,i,n,t,o,s,e.tabSize,e.containsRTL,e.spaceWidth,e.renderWhitespace,e.renderControlCharacters)}(e),t)}var Hy=function(e,t,n,r){this.characterMapping=e,this.html=t,this.containsRTL=n,this.containsForeignElements=r};function Vy(e){var t=Dy(1e4),n=Wy(e,t);return new Hy(n.characterMapping,t.build(),n.containsRTL,n.containsForeignElements)}var zy=function(e,t,n,r,i,o,s,a,u,l,c,d){this.fontIsMonospace=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=n,this.len=r,this.isOverflowing=i,this.parts=o,this.containsForeignElements=s,this.tabSize=a,this.containsRTL=u,this.spaceWidth=l,this.renderWhitespace=c,this.renderControlCharacters=d};var Uy=function(e,t,n,r){this.top=0|e,this.left=0|t,this.width=0|n,this.height=0|r},qy=function(e,t){this.tabSize=e,this.data=t},Ky=function(e,t,n,r,i){this.content=e,this.continuesWithWrappedLine=t,this.minColumn=n,this.maxColumn=r,this.tokens=i},Gy=function(){function e(t,n,r,i,o,s,a,u,l){this.minColumn=t,this.maxColumn=n,this.content=r,this.continuesWithWrappedLine=i,this.isBasicASCII=e.isBasicASCII(r,s),this.containsRTL=e.containsRTL(r,this.isBasicASCII,o),this.tokens=a,this.inlineDecorations=u,this.tabSize=l}return e.isBasicASCII=function(e,t){return!t||Tn(e)},e.containsRTL=function(e,t,n){return!(t||!n)&&Mn(e)},e}(),$y=function(e,t,n){this.range=e,this.inlineClassName=t,this.type=n},Zy=function(e,t){this.range=e,this.options=t};function Xy(e){return!function(e){return Array.isArray(e)}(e)}function Jy(e){return"string"==typeof e}function Qy(e){return!Jy(e)}function ev(e){return!e}function tv(e,t){return e.ignoreCase&&t?t.toLowerCase():t}function nv(e){return e.replace(/[&<>'"_]/g,"-")}function rv(e,t){return new Error(e.languageId+": "+t)}function iv(e,t,n,r,i){var o=null;return t.replace(/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g,(function(t,s,a,u,l,c,d,h,f){return ev(a)?ev(u)?!ev(l)&&l<r.length?tv(e,r[l]):!ev(d)&&e&&"string"==typeof e[d]?e[d]:(null===o&&(o=i.split(".")).unshift(i),!ev(c)&&c<o.length?tv(e,o[c]):""):tv(e,n):"$"}))}function ov(e,t){for(var n=t;n&&n.length>0;){var r=e.tokenizer[n];if(r)return r;var i=n.lastIndexOf(".");n=i<0?null:n.substr(0,i)}return null}var sv=function(){function e(e){this._maxCacheDepth=e,this._entries=Object.create(null)}return e.create=function(e,t){return this._INSTANCE.create(e,t)},e.prototype.create=function(e,t){if(null!==e&&e.depth>=this._maxCacheDepth)return new av(e,t);var n=av.getStackElementId(e);n.length>0&&(n+="|"),n+=t;var r=this._entries[n];return r||(r=new av(e,t),this._entries[n]=r,r)},e._INSTANCE=new e(5),e}(),av=function(){function e(e,t){this.parent=e,this.state=t,this.depth=(this.parent?this.parent.depth:0)+1}return e.getStackElementId=function(e){for(var t="";null!==e;)t.length>0&&(t+="|"),t+=e.state,e=e.parent;return t},e._equals=function(e,t){for(;null!==e&&null!==t;){if(e===t)return!0;if(e.state!==t.state)return!1;e=e.parent,t=t.parent}return null===e&&null===t},e.prototype.equals=function(t){return e._equals(this,t)},e.prototype.push=function(e){return sv.create(this,e)},e.prototype.pop=function(){return this.parent},e.prototype.popall=function(){for(var e=this;e.parent;)e=e.parent;return e},e.prototype.switchTo=function(e){return sv.create(this.parent,e)},e}(),uv=function(){function e(e,t){this.modeId=e,this.state=t}return e.prototype.equals=function(e){return this.modeId===e.modeId&&this.state.equals(e.state)},e.prototype.clone=function(){return this.state.clone()===this.state?this:new e(this.modeId,this.state)},e}(),lv=function(){function e(e){this._maxCacheDepth=e,this._entries=Object.create(null)}return e.create=function(e,t){return this._INSTANCE.create(e,t)},e.prototype.create=function(e,t){if(null!==t)return new cv(e,t);if(null!==e&&e.depth>=this._maxCacheDepth)return new cv(e,t);var n=av.getStackElementId(e),r=this._entries[n];return r||(r=new cv(e,null),this._entries[n]=r,r)},e._INSTANCE=new e(5),e}(),cv=function(){function e(e,t){this.stack=e,this.embeddedModeData=t}return e.prototype.clone=function(){return(this.embeddedModeData?this.embeddedModeData.clone():null)===this.embeddedModeData?this:lv.create(this.stack,this.embeddedModeData)},e.prototype.equals=function(t){return t instanceof e&&(!!this.stack.equals(t.stack)&&(null===this.embeddedModeData&&null===t.embeddedModeData||null!==this.embeddedModeData&&null!==t.embeddedModeData&&this.embeddedModeData.equals(t.embeddedModeData)))},e}(),dv=function(){function e(){this._tokens=[],this._language=null,this._lastTokenType=null,this._lastTokenLanguage=null}return e.prototype.enterMode=function(e,t){this._language=t},e.prototype.emit=function(e,t){this._lastTokenType===t&&this._lastTokenLanguage===this._language||(this._lastTokenType=t,this._lastTokenLanguage=this._language,this._tokens.push(new Ya(e,t,this._language)))},e.prototype.nestedModeTokenize=function(e,t,n){var r=t.modeId,i=t.state,o=Pa.get(r);if(!o)return this.enterMode(n,r),this.emit(n,""),i;var s=o.tokenize(e,i,n);return this._tokens=this._tokens.concat(s.tokens),this._lastTokenType=null,this._lastTokenLanguage=null,this._language=null,s.endState},e.prototype.finalize=function(e){return new ja(this._tokens,e)},e}(),hv=function(){function e(e,t){this._modeService=e,this._theme=t,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}return e.prototype.enterMode=function(e,t){this._currentLanguageId=this._modeService.getLanguageIdentifier(t).id},e.prototype.emit=function(e,t){var n=this._theme.match(this._currentLanguageId,t);this._lastTokenMetadata!==n&&(this._lastTokenMetadata=n,this._tokens.push(e),this._tokens.push(n))},e._merge=function(e,t,n){var r=null!==e?e.length:0,i=t.length,o=null!==n?n.length:0;if(0===r&&0===i&&0===o)return new Uint32Array(0);if(0===r&&0===i)return n;if(0===i&&0===o)return e;var s=new Uint32Array(r+i+o);null!==e&&s.set(e);for(var a=0;a<i;a++)s[r+a]=t[a];return null!==n&&s.set(n,r+i),s},e.prototype.nestedModeTokenize=function(t,n,r){var i=n.modeId,o=n.state,s=Pa.get(i);if(!s)return this.enterMode(r,i),this.emit(r,""),o;var a=s.tokenize2(t,o,r);return this._prependTokens=e._merge(this._prependTokens,this._tokens,a.tokens),this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0,a.endState},e.prototype.finalize=function(t){return new Ba(e._merge(this._prependTokens,this._tokens,null),t)},e}(),fv=function(){function e(e,t,n,r){var i=this;this._modeService=e,this._standaloneThemeService=t,this._modeId=n,this._lexer=r,this._embeddedModes=Object.create(null),this.embeddedLoaded=Promise.resolve(void 0);var o=!1;this._tokenizationRegistryListener=Pa.onDidChange((function(e){if(!o){for(var t=!1,n=0,r=e.changedLanguages.length;n<r;n++){var s=e.changedLanguages[n];if(i._embeddedModes[s]){t=!0;break}}t&&(o=!0,Pa.fire([i._modeId]),o=!1)}}))}return e.prototype.dispose=function(){this._tokenizationRegistryListener.dispose()},e.prototype.getLoadStatus=function(){var t=[];for(var n in this._embeddedModes)if(this._embeddedModes.hasOwnProperty(n)){var r=Pa.get(n);if(r){if(r instanceof e){var i=r.getLoadStatus();!1===i.loaded&&t.push(i.promise)}continue}var o=Pa.getPromise(n);o&&t.push(o)}return 0===t.length?{loaded:!0}:{loaded:!1,promise:Promise.all(t).then((function(e){}))}},e.prototype.getInitialState=function(){var e=sv.create(null,this._lexer.start);return lv.create(e,null)},e.prototype.tokenize=function(e,t,n){var r=new dv,i=this._tokenize(e,t,n,r);return r.finalize(i)},e.prototype.tokenize2=function(e,t,n){var r=new hv(this._modeService,this._standaloneThemeService.getTheme().tokenTheme),i=this._tokenize(e,t,n,r);return r.finalize(i)},e.prototype._tokenize=function(e,t,n,r){return t.embeddedModeData?this._nestedTokenize(e,t,n,r):this._myTokenize(e,t,n,r)},e.prototype._findLeavingNestedModeOffset=function(e,t){var n=this._lexer.tokenizer[t.stack.state];if(!n&&!(n=ov(this._lexer,t.stack.state)))throw rv(this._lexer,"tokenizer state is not defined: "+t.stack.state);for(var r=-1,i=!1,o=0,s=n;o<s.length;o++){var a=s[o];if(Qy(a.action)&&"@pop"===a.action.nextEmbedded){i=!0;var u=a.regex,l=a.regex.source;"^(?:"===l.substr(0,4)&&")"===l.substr(l.length-1,1)&&(u=new RegExp(l.substr(4,l.length-5),u.ignoreCase?"i":""));var c=e.search(u);-1!==c&&(-1===r||c<r)&&(r=c)}}if(!i)throw rv(this._lexer,'no rule containing nextEmbedded: "@pop" in tokenizer embedded state: '+t.stack.state);return r},e.prototype._nestedTokenize=function(e,t,n,r){var i=this._findLeavingNestedModeOffset(e,t);if(-1===i){var o=r.nestedModeTokenize(e,t.embeddedModeData,n);return lv.create(t.stack,new uv(t.embeddedModeData.modeId,o))}var s=e.substring(0,i);s.length>0&&r.nestedModeTokenize(s,t.embeddedModeData,n);var a=e.substring(i);return this._myTokenize(a,t,n+i,r)},e.prototype._safeRuleName=function(e){return e?e.name:"(unknown)"},e.prototype._myTokenize=function(e,t,n,r){r.enterMode(n,this._modeId);for(var i,o,s=e.length,a=t.embeddedModeData,u=t.stack,l=0,c=null,d=!0;d||l<s;){var h=l,f=u.depth,p=c?c.groups.length:0,g=u.state,m=null,_=null,y=null,v=null,b=null;if(c){m=c.matches;var w=c.groups.shift();_=w.matched,y=w.action,v=c.rule,0===c.groups.length&&(c=null)}else{if(!d&&l>=s)break;d=!1;var C=this._lexer.tokenizer[g];if(!C&&!(C=ov(this._lexer,g)))throw rv(this._lexer,"tokenizer state is not defined: "+g);for(var S=e.substr(l),x=0,L=C;x<L.length;x++){var k=L[x];if((0===l||!k.matchOnlyAtLineStart)&&(m=S.match(k.regex))){_=m[0],y=k.action;break}}}if(m||(m=[""],_=""),y||(l<s&&(_=(m=[e.charAt(l)])[0]),y=this._lexer.defaultToken),null===_)break;for(l+=_.length;Xy(y)&&Qy(y)&&y.test;)y=y.test(_,m,g,l===s);var M=null;if("string"==typeof y||Array.isArray(y))M=y;else if(y.group)M=y.group;else if(null!==y.token&&void 0!==y.token){if(M=y.tokenSubst?iv(this._lexer,y.token,_,m,g):y.token,y.nextEmbedded)if("@pop"===y.nextEmbedded){if(!a)throw rv(this._lexer,"cannot pop embedded mode if not inside one");a=null}else{if(a)throw rv(this._lexer,"cannot enter embedded mode from within an embedded mode");b=iv(this._lexer,y.nextEmbedded,_,m,g)}if(y.goBack&&(l=Math.max(0,l-y.goBack)),y.switchTo&&"string"==typeof y.switchTo){if("@"===(D=iv(this._lexer,y.switchTo,_,m,g))[0]&&(D=D.substr(1)),!ov(this._lexer,D))throw rv(this._lexer,"trying to switch to a state '"+D+"' that is undefined in rule: "+this._safeRuleName(v));u=u.switchTo(D)}else{if(y.transform&&"function"==typeof y.transform)throw rv(this._lexer,"action.transform not supported");if(y.next)if("@push"===y.next){if(u.depth>=this._lexer.maxStack)throw rv(this._lexer,"maximum tokenizer stack size reached: ["+u.state+","+u.parent.state+",...]");u=u.push(g)}else if("@pop"===y.next){if(u.depth<=1)throw rv(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(v));u=u.pop()}else if("@popall"===y.next)u=u.popall();else{var D;if("@"===(D=iv(this._lexer,y.next,_,m,g))[0]&&(D=D.substr(1)),!ov(this._lexer,D))throw rv(this._lexer,"trying to set a next state '"+D+"' that is undefined in rule: "+this._safeRuleName(v));u=u.push(D)}}y.log&&"string"==typeof y.log&&(i=this._lexer,o=this._lexer.languageId+": "+iv(this._lexer,y.log,_,m,g),console.log(i.languageId+": "+o))}if(null===M)throw rv(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(v));if(Array.isArray(M)){if(c&&c.groups.length>0)throw rv(this._lexer,"groups cannot be nested: "+this._safeRuleName(v));if(m.length!==M.length+1)throw rv(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(v));for(var E=0,T=1;T<m.length;T++)E+=m[T].length;if(E!==_.length)throw rv(this._lexer,"with groups, all characters should be matched in consecutive groups in rule: "+this._safeRuleName(v));c={rule:v,matches:m,groups:[]};for(T=0;T<M.length;T++)c.groups[T]={action:M[T],matched:m[T+1]};l-=_.length}else{if("@rematch"===M&&(l-=_.length,_="",m=null,M=""),0===_.length){if(0===s||f!==u.depth||g!==u.state||(c?c.groups.length:0)!==p)continue;throw rv(this._lexer,"no progress in tokenizer in rule: "+this._safeRuleName(v))}var N=null;if(Jy(M)&&0===M.indexOf("@brackets")){var O=M.substr("@brackets".length),A=pv(this._lexer,_);if(!A)throw rv(this._lexer,"@brackets token returned but no bracket defined as: "+_);N=nv(A.token+O)}else{N=nv(""===M?"":M+this._lexer.tokenPostfix)}if(r.emit(h+n,N),null!==b){var I=this._modeService.getModeIdForLanguageName(b);I&&(b=I);var P=this._getNestedEmbeddedModeData(b);if(l<s){S=e.substr(l);return this._nestedTokenize(S,lv.create(u,P),n+l,r)}return lv.create(u,P)}}}return lv.create(u,a)},e.prototype._getNestedEmbeddedModeData=function(e){var t=this._locateMode(e);if(t){var n=Pa.get(t);if(n)return new uv(t,n.getInitialState())}return new uv(t||"vs.editor.nullMode",Wa)},e.prototype._locateMode=function(e){if(!e||!this._modeService.isRegisteredMode(e))return null;if(e===this._modeId)return e;var t=this._modeService.getModeId(e);return t&&(this._modeService.triggerMode(t),this._embeddedModes[t]=!0),t},e}();function pv(e,t){if(!t)return null;t=tv(e,t);for(var n=0,r=e.brackets;n<r.length;n++){var i=r[n];if(i.open===t)return{token:i.token,bracketType:1};if(i.close===t)return{token:i.token,bracketType:-1}}return null}var gv=function(){function e(){}return e.colorizeElement=function(e,t,n,r){var i=(r=r||{}).theme||"vs",o=r.mimeType||n.getAttribute("lang")||n.getAttribute("data-lang");if(!o)return console.error("Mode not detected"),Promise.resolve();e.setTheme(i);var s=n.firstChild?n.firstChild.nodeValue:"";n.className+=" "+i;return this.colorize(t,s||"",o,r).then((function(e){n.innerHTML=e}),(function(e){return console.error(e)}))},e.colorize=function(e,t,n,r){var i=4;r&&"number"==typeof r.tabSize&&(i=r.tabSize),An(t)&&(t=t.substr(1));var o=t.split(/\r\n|\r|\n/),s=e.getModeId(n);if(!s)return Promise.resolve(_v(o,i));e.triggerMode(s);var a=Pa.get(s);if(a)return mv(o,i,a);var u=Pa.getPromise(s);return new Promise(u?function(e,t){u.then((function(n){mv(o,i,n).then(e,t)}),t)}:function(e,t){var n=null,r=null,a=function(){n&&(n.dispose(),n=null),r&&(r.dispose(),r=null);var a=Pa.get(s);a?mv(o,i,a).then(e,t):e(_v(o,i))};(r=new Ns).cancelAndSet(a,500),n=Pa.onDidChange((function(e){e.changedLanguages.indexOf(s)>=0&&a()}))})},e.colorizeLine=function(e,t,n,r,i){void 0===i&&(i=4);var o=Gy.isBasicASCII(e,t),s=Gy.containsRTL(e,o,n);return Vy(new Yy(!1,!0,e,!1,o,s,0,r,[],i,0,-1,"none",!1,!1,null)).html},e.colorizeModelLine=function(e,t,n){void 0===n&&(n=4);var r=e.getLineContent(t);e.forceTokenization(t);var i=e.getLineTokens(t).inflate();return this.colorizeLine(r,e.mightContainNonBasicASCII(),e.mightContainRTL(),i,n)},e}();function mv(e,t,n){return new Promise((function(r,i){var o=function(){var s=function(e,t,n){for(var r=[],i=n.getInitialState(),o=0,s=e.length;o<s;o++){var a=e[o],u=n.tokenize2(a,i,0);Ra.convertToEndOffset(u.tokens,a.length);var l=new Ra(u.tokens,a),c=Gy.isBasicASCII(a,!0),d=Gy.containsRTL(a,c,!0),h=Vy(new Yy(!1,!0,a,!1,c,d,0,l.inflate(),[],t,0,-1,"none",!1,!1,null));(r=r.concat(h.html)).push("<br/>"),i=u.endState}return r.join("")}(e,t,n);if(n instanceof fv){var a=n.getLoadStatus();if(!1===a.loaded)return void a.promise.then(o,i)}r(s)};o()}))}function _v(e,t){var n=[],r=new Uint32Array(2);r[0]=0,r[1]=16793600;for(var i=0,o=e.length;i<o;i++){var s=e[i];r[0]=s.length;var a=new Ra(r,s),u=Gy.isBasicASCII(s,!0),l=Gy.containsRTL(s,u,!0),c=Vy(new Yy(!1,!0,s,!1,u,l,0,a,[],t,0,-1,"none",!1,!1,null));(n=n.concat(c.html)).push("<br/>")}return n.join("")}var yv={Configuration:"base.contributions.configuration"},vv={properties:{},patternProperties:{}},bv={properties:{},patternProperties:{}},wv={properties:{},patternProperties:{}},Cv={properties:{},patternProperties:{}},Sv={properties:{},patternProperties:{}},xv={properties:{},patternProperties:{}},Lv="vscode://schemas/settings/editor",kv=kr.as(Gl),Mv=function(){function e(){this.overrideIdentifiers=[],this._onDidSchemaChange=new $t,this._onDidUpdateConfiguration=new $t,this.defaultOverridesConfigurationNode={id:"defaultOverrides",title:Ee("defaultConfigurations.title","Default Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultOverridesConfigurationNode],this.editorConfigurationSchema={properties:{},patternProperties:{},additionalProperties:!1,errorMessage:"Unknown editor configuration setting",allowsTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.excludedConfigurationProperties={},this.computeOverridePropertyPattern(),kv.registerSchema(Lv,this.editorConfigurationSchema)}return e.prototype.registerConfiguration=function(e,t){void 0===t&&(t=!0),this.registerConfigurations([e],t)},e.prototype.registerConfigurations=function(e,t){var n=this;void 0===t&&(t=!0);var r=[];e.forEach((function(e){r.push.apply(r,n.validateAndRegisterProperties(e,t)),n.configurationContributors.push(e),n.registerJSONConfiguration(e),n.updateSchemaForOverrideSettingsConfiguration(e)})),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire(r)},e.prototype.registerOverrideIdentifiers=function(e){var t;(t=this.overrideIdentifiers).push.apply(t,e),this.updateOverridePropertyPatternKey()},e.prototype.validateAndRegisterProperties=function(e,t,n,r){void 0===t&&(t=!0),void 0===n&&(n=3),void 0===r&&(r=!1),n=Re(e.scope)?n:e.scope,r=e.overridable||r;var i=[],o=e.properties;if(o)for(var s in o){var a=void 0;if(t&&(a=Iv(s)))console.warn(a),delete o[s];else{var u=o[s];Pe(u.default)&&(u.default=Ov(u.type)),r&&(u.overridable=!0),Nv.test(s)?u.scope=void 0:u.scope=Re(u.scope)?n:u.scope,!o[s].hasOwnProperty("included")||o[s].included?(this.configurationProperties[s]=o[s],i.push(s)):(this.excludedConfigurationProperties[s]=o[s],delete o[s])}}var l=e.allOf;if(l)for(var c=0,d=l;c<d.length;c++){var h=d[c];i.push.apply(i,this.validateAndRegisterProperties(h,t,n,r))}return i},e.prototype.getConfigurationProperties=function(){return this.configurationProperties},e.prototype.registerJSONConfiguration=function(e){!function e(t){var n=t.properties;if(n)for(var r in n)switch(vv.properties[r]=n[r],n[r].scope){case 1:bv.properties[r]=n[r];break;case 2:wv.properties[r]=n[r];break;case 5:Cv.properties[r]=n[r];break;case 3:Sv.properties[r]=n[r];break;case 4:xv.properties[r]=n[r]}var i=t.allOf;i&&i.forEach(e)}(e)},e.prototype.updateSchemaForOverrideSettingsConfiguration=function(e){e.id!==Dv&&(this.update(e),kv.registerSchema(Lv,this.editorConfigurationSchema))},e.prototype.updateOverridePropertyPatternKey=function(){var e=vv.patternProperties[this.overridePropertyPattern];e||(e={type:"object",description:Ee("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:"Unknown Identifier. Use language identifiers",$ref:Lv}),delete vv.patternProperties[this.overridePropertyPattern],delete bv.patternProperties[this.overridePropertyPattern],delete wv.patternProperties[this.overridePropertyPattern],delete Cv.patternProperties[this.overridePropertyPattern],delete Sv.patternProperties[this.overridePropertyPattern],delete xv.patternProperties[this.overridePropertyPattern],this.computeOverridePropertyPattern(),vv.patternProperties[this.overridePropertyPattern]=e,bv.patternProperties[this.overridePropertyPattern]=e,wv.patternProperties[this.overridePropertyPattern]=e,Cv.patternProperties[this.overridePropertyPattern]=e,Sv.patternProperties[this.overridePropertyPattern]=e,xv.patternProperties[this.overridePropertyPattern]=e,this._onDidSchemaChange.fire()},e.prototype.update=function(e){var t=this,n=e.properties;if(n)for(var r in n)n[r].overridable&&(this.editorConfigurationSchema.properties[r]=this.getConfigurationProperties()[r]);var i=e.allOf;i&&i.forEach((function(e){return t.update(e)}))},e.prototype.computeOverridePropertyPattern=function(){this.overridePropertyPattern=this.overrideIdentifiers.length?Tv.replace("${0}",this.overrideIdentifiers.map((function(e){return fn(e,!1).source})).join("|")):Ev},e}(),Dv="override",Ev="\\[.*\\]$",Tv="\\[(${0})\\]$",Nv=new RegExp(Ev);function Ov(e){switch(Array.isArray(e)?e[0]:e){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}var Av=new Mv;function Iv(e){return Nv.test(e)?Ee("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",e):void 0!==Av.getConfigurationProperties()[e]?Ee("config.property.duplicate","Cannot register '{0}'. This property is already registered.",e):null}kr.add(yv.Configuration,Av);var Pv=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Rv=Si,Fv=wi,Yv=Ci,jv=new(function(){function e(){this._tabFocus=!1,this._onDidChangeTabFocus=new $t,this.onDidChangeTabFocus=this._onDidChangeTabFocus.event}return e.prototype.getTabFocusMode=function(){return this._tabFocus},e.prototype.setTabFocusMode=function(e){this._tabFocus!==e&&(this._tabFocus=e,this._onDidChangeTabFocus.fire(this._tabFocus))},e}()),Bv=Object.hasOwnProperty,Wv=function(e){function t(t,n){var r=e.call(this)||this;return r._onDidChange=r._register(new $t),r.onDidChange=r._onDidChange.event,r.isSimpleWidget=t,r._rawOptions=Jr({},n||{}),r._rawOptions.scrollbar=Jr({},r._rawOptions.scrollbar||{}),r._rawOptions.minimap=Jr({},r._rawOptions.minimap||{}),r._rawOptions.find=Jr({},r._rawOptions.find||{}),r._rawOptions.hover=Jr({},r._rawOptions.hover||{}),r._rawOptions.parameterHints=Jr({},r._rawOptions.parameterHints||{}),r._validatedOptions=yi.validate(r._rawOptions,Rv),r._isDominatedByLongLines=!1,r._lineNumbersDigitCount=1,r._register(b_.onDidChangeZoomLevel((function(e){return r._recomputeOptions()}))),r._register(jv.onDidChangeTabFocus((function(e){return r._recomputeOptions()}))),r}return Pv(t,e),t.prototype.observeReferenceElement=function(e){},t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype._recomputeOptions=function(){var e=this.editor,t=this._computeInternalOptions();e&&e.equals(t)||(this.editor=t,e&&this._onDidChange.fire(e.createChangeEvent(t)))},t.prototype.getRawOptions=function(){return this._rawOptions},t.prototype._computeInternalOptions=function(){var e=this._validatedOptions,t=this._getEnvConfiguration(),n=k_.createFromRawSettings(this._rawOptions,t.zoomLevel,this.isSimpleWidget),r={outerWidth:t.outerWidth,outerHeight:t.outerHeight,fontInfo:this.readConfiguration(n),extraEditorClassName:t.extraEditorClassName,isDominatedByLongLines:this._isDominatedByLongLines,lineNumbersDigitCount:this._lineNumbersDigitCount,emptySelectionClipboard:t.emptySelectionClipboard,pixelRatio:t.pixelRatio,tabFocusMode:jv.getTabFocusMode(),accessibilitySupport:t.accessibilitySupport};return vi.createInternalEditorOptions(r,e)},t._primitiveArrayEquals=function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0},t._subsetEquals=function(e,t){for(var n in t)if(Bv.call(t,n)){var r=t[n],i=e[n];if(i===r)continue;if(Array.isArray(i)&&Array.isArray(r)){if(!this._primitiveArrayEquals(i,r))return!1;continue}if("object"==typeof i&&"object"==typeof r){if(!this._subsetEquals(i,r))return!1;continue}return!1}return!0},t.prototype.updateOptions=function(e){void 0!==e&&(t._subsetEquals(this._rawOptions,e)||(this._rawOptions=Jr(this._rawOptions,e||{}),this._validatedOptions=yi.validate(this._rawOptions,Rv),this._recomputeOptions()))},t.prototype.setIsDominatedByLongLines=function(e){this._isDominatedByLongLines=e,this._recomputeOptions()},t.prototype.setMaxLineNumber=function(e){var n=t._digitCount(e);this._lineNumbersDigitCount!==n&&(this._lineNumbersDigitCount=n,this._recomputeOptions())},t._digitCount=function(e){for(var t=0;e;)e=Math.floor(e/10),t++;return t||1},t}(Ft),Hv=kr.as(yv.Configuration),Vv={id:"editor",order:5,type:"object",title:Ee("editorConfigurationTitle","Editor"),overridable:!0,scope:4,properties:{"editor.fontFamily":{type:"string",default:Fv.fontFamily,description:Ee("fontFamily","Controls the font family.")},"editor.fontWeight":{type:"string",enum:["normal","bold","100","200","300","400","500","600","700","800","900"],default:Fv.fontWeight,description:Ee("fontWeight","Controls the font weight.")},"editor.fontSize":{type:"number",default:Fv.fontSize,description:Ee("fontSize","Controls the font size in pixels.")},"editor.lineHeight":{type:"number",default:Fv.lineHeight,description:Ee("lineHeight","Controls the line height. Use 0 to compute the line height from the font size.")},"editor.letterSpacing":{type:"number",default:Fv.letterSpacing,description:Ee("letterSpacing","Controls the letter spacing in pixels.")},"editor.lineNumbers":{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[Ee("lineNumbers.off","Line numbers are not rendered."),Ee("lineNumbers.on","Line numbers are rendered as absolute number."),Ee("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),Ee("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:Ee("lineNumbers","Controls the display of line numbers.")},"editor.cursorSurroundingLines":{type:"number",default:Rv.viewInfo.cursorSurroundingLines,description:Ee("cursorSurroundingLines","Controls the minimal number of visible leading and trailing lines surrounding the cursor. Known as 'scrollOff' or `scrollOffset` in some other editors.")},"editor.renderFinalNewline":{type:"boolean",default:Rv.viewInfo.renderFinalNewline,description:Ee("renderFinalNewline","Render last line number when the file ends with a newline.")},"editor.rulers":{type:"array",items:{type:"number"},default:Rv.viewInfo.rulers,description:Ee("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")},"editor.wordSeparators":{type:"string",default:Rv.wordSeparators,description:Ee("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")},"editor.tabSize":{type:"number",default:Yv.tabSize,minimum:1,markdownDescription:Ee("tabSize","The number of spaces a tab is equal to. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.")},"editor.insertSpaces":{type:"boolean",default:Yv.insertSpaces,markdownDescription:Ee("insertSpaces","Insert spaces when pressing `Tab`. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.")},"editor.detectIndentation":{type:"boolean",default:Yv.detectIndentation,markdownDescription:Ee("detectIndentation","Controls whether `#editor.tabSize#` and `#editor.insertSpaces#` will be automatically detected when a file is opened based on the file contents.")},"editor.roundedSelection":{type:"boolean",default:Rv.viewInfo.roundedSelection,description:Ee("roundedSelection","Controls whether selections should have rounded corners.")},"editor.scrollBeyondLastLine":{type:"boolean",default:Rv.viewInfo.scrollBeyondLastLine,description:Ee("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")},"editor.scrollBeyondLastColumn":{type:"number",default:Rv.viewInfo.scrollBeyondLastColumn,description:Ee("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")},"editor.smoothScrolling":{type:"boolean",default:Rv.viewInfo.smoothScrolling,description:Ee("smoothScrolling","Controls whether the editor will scroll using an animation.")},"editor.minimap.enabled":{type:"boolean",default:Rv.viewInfo.minimap.enabled,description:Ee("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:Rv.viewInfo.minimap.side,description:Ee("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:Rv.viewInfo.minimap.showSlider,description:Ee("minimap.showSlider","Controls whether the minimap slider is automatically hidden.")},"editor.minimap.renderCharacters":{type:"boolean",default:Rv.viewInfo.minimap.renderCharacters,description:Ee("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:Rv.viewInfo.minimap.maxColumn,description:Ee("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")},"editor.hover.enabled":{type:"boolean",default:Rv.contribInfo.hover.enabled,description:Ee("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:Rv.contribInfo.hover.delay,description:Ee("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:Rv.contribInfo.hover.sticky,description:Ee("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.find.seedSearchStringFromSelection":{type:"boolean",default:Rv.contribInfo.find.seedSearchStringFromSelection,description:Ee("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"boolean",default:Rv.contribInfo.find.autoFindInSelection,description:Ee("find.autoFindInSelection","Controls whether the find operation is carried out on selected text or the entire file in the editor.")},"editor.find.globalFindClipboard":{type:"boolean",default:Rv.contribInfo.find.globalFindClipboard,description:Ee("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:nt.d},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:!0,description:Ee("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.wordWrap":{type:"string",enum:["off","on","wordWrapColumn","bounded"],markdownEnumDescriptions:[Ee("wordWrap.off","Lines will never wrap."),Ee("wordWrap.on","Lines will wrap at the viewport width."),Ee({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),Ee({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],default:Rv.wordWrap,description:Ee({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")},"editor.wordWrapColumn":{type:"integer",default:Rv.wordWrapColumn,minimum:1,markdownDescription:Ee({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")},"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[Ee("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),Ee("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),Ee("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),Ee("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],default:"same",description:Ee("wrappingIndent","Controls the indentation of wrapped lines.")},"editor.mouseWheelScrollSensitivity":{type:"number",default:Rv.viewInfo.scrollbar.mouseWheelScrollSensitivity,markdownDescription:Ee("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")},"editor.fastScrollSensitivity":{type:"number",default:Rv.viewInfo.scrollbar.fastScrollSensitivity,markdownDescription:Ee("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")},"editor.multiCursorModifier":{type:"string",enum:["ctrlCmd","alt"],markdownEnumDescriptions:[Ee("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),Ee("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"alt",markdownDescription:Ee({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. The Go To Definition and Open Link mouse gestures will adapt such that they do not conflict with the multicursor modifier. [Read more](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")},"editor.multiCursorMergeOverlapping":{type:"boolean",default:Rv.multiCursorMergeOverlapping,description:Ee("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")},"editor.quickSuggestions":{anyOf:[{type:"boolean"},{type:"object",properties:{strings:{type:"boolean",default:!1,description:Ee("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{type:"boolean",default:!1,description:Ee("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{type:"boolean",default:!0,description:Ee("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}}}],default:Rv.contribInfo.quickSuggestions,description:Ee("quickSuggestions","Controls whether suggestions should automatically show up while typing.")},"editor.quickSuggestionsDelay":{type:"integer",default:Rv.contribInfo.quickSuggestionsDelay,minimum:0,description:Ee("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")},"editor.parameterHints.enabled":{type:"boolean",default:Rv.contribInfo.parameterHints.enabled,description:Ee("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:Rv.contribInfo.parameterHints.cycle,description:Ee("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")},"editor.autoClosingBrackets":{type:"string",enum:["always","languageDefined","beforeWhitespace","never"],enumDescriptions:["",Ee("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),Ee("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],default:Rv.autoClosingBrackets,description:Ee("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")},"editor.autoClosingQuotes":{type:"string",enum:["always","languageDefined","beforeWhitespace","never"],enumDescriptions:["",Ee("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),Ee("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],default:Rv.autoClosingQuotes,description:Ee("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")},"editor.autoClosingOvertype":{type:"string",enum:["always","auto","never"],enumDescriptions:[Ee("editor.autoClosingOvertype.always","Always type over closing quotes or brackets."),Ee("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),Ee("editor.autoClosingOvertype.never","Never type over closing quotes or brackets.")],default:Rv.autoClosingOvertype,description:Ee("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")},"editor.autoSurround":{type:"string",enum:["languageDefined","brackets","quotes","never"],enumDescriptions:[Ee("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),Ee("editor.autoSurround.brackets","Surround with brackets but not quotes."),Ee("editor.autoSurround.quotes","Surround with quotes but not brackets."),""],default:Rv.autoSurround,description:Ee("autoSurround","Controls whether the editor should automatically surround selections.")},"editor.formatOnType":{type:"boolean",default:Rv.contribInfo.formatOnType,description:Ee("formatOnType","Controls whether the editor should automatically format the line after typing.")},"editor.formatOnPaste":{type:"boolean",default:Rv.contribInfo.formatOnPaste,description:Ee("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")},"editor.autoIndent":{type:"boolean",default:Rv.autoIndent,description:Ee("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste or move lines. Extensions with indentation rules of the language must be available.")},"editor.suggestOnTriggerCharacters":{type:"boolean",default:Rv.contribInfo.suggestOnTriggerCharacters,description:Ee("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")},"editor.acceptSuggestionOnEnter":{type:"string",enum:["on","smart","off"],default:Rv.contribInfo.acceptSuggestionOnEnter,markdownEnumDescriptions:["",Ee("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:Ee("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")},"editor.acceptSuggestionOnCommitCharacter":{type:"boolean",default:Rv.contribInfo.acceptSuggestionOnCommitCharacter,markdownDescription:Ee("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")},"editor.snippetSuggestions":{type:"string",enum:["top","bottom","inline","none"],enumDescriptions:[Ee("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),Ee("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),Ee("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),Ee("snippetSuggestions.none","Do not show snippet suggestions.")],default:Rv.contribInfo.suggest.snippets,description:Ee("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")},"editor.emptySelectionClipboard":{type:"boolean",default:Rv.emptySelectionClipboard,description:Ee("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")},"editor.copyWithSyntaxHighlighting":{type:"boolean",default:Rv.copyWithSyntaxHighlighting,description:Ee("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")},"editor.wordBasedSuggestions":{type:"boolean",default:Rv.contribInfo.wordBasedSuggestions,description:Ee("wordBasedSuggestions","Controls whether completions should be computed based on words in the document.")},"editor.suggestSelection":{type:"string",enum:["first","recentlyUsed","recentlyUsedByPrefix"],markdownEnumDescriptions:[Ee("suggestSelection.first","Always select the first suggestion."),Ee("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),Ee("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],default:"recentlyUsed",description:Ee("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")},"editor.suggestFontSize":{type:"integer",default:0,minimum:0,markdownDescription:Ee("suggestFontSize","Font size for the suggest widget. When set to `0`, the value of `#editor.fontSize#` is used.")},"editor.suggestLineHeight":{type:"integer",default:0,minimum:0,markdownDescription:Ee("suggestLineHeight","Line height for the suggest widget. When set to `0`, the value of `#editor.lineHeight#` is used.")},"editor.tabCompletion":{type:"string",default:"off",enum:["on","off","onlySnippets"],enumDescriptions:[Ee("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),Ee("tabCompletion.off","Disable tab completions."),Ee("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:Ee("tabCompletion","Enables tab completions.")},"editor.suggest.filterGraceful":{type:"boolean",default:!0,description:Ee("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:!1,description:Ee("suggest.localityBonus","Controls whether sorting favours words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:!1,markdownDescription:Ee("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:!0,description:Ee("suggest.snippetsPreventQuickSuggestions","Control whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:Rv.contribInfo.suggest.showIcons,description:Ee("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.maxVisibleSuggestions":{type:"number",default:Rv.contribInfo.suggest.maxVisibleSuggestions,minimum:1,maximum:15,description:Ee("suggest.maxVisibleSuggestions","Controls how many suggestions IntelliSense will show before showing a scrollbar (maximum 15).")},"editor.suggest.filteredTypes":{type:"object",default:{keyword:!0,snippet:!0},markdownDescription:Ee("suggest.filtered","Controls whether some suggestion types should be filtered from IntelliSense. A list of suggestion types can be found here: https://code.visualstudio.com/docs/editor/intellisense#_types-of-completions."),properties:{method:{type:"boolean",default:!0,markdownDescription:Ee("suggest.filtered.method","When set to `false` IntelliSense never shows `method` suggestions.")},function:{type:"boolean",default:!0,markdownDescription:Ee("suggest.filtered.function","When set to `false` IntelliSense never shows `function` suggestions.")},constructor:{type:"boolean",default:!0,markdownDescription:Ee("suggest.filtered.constructor","When set to `false` IntelliSense never shows `constructor` suggestions.")},field:{type:"boolean",default:!0,markdownDescription:Ee("suggest.filtered.field","When set to `false` IntelliSense never shows `field` suggestions.")},variable:{type:"boolean",default:!0,markdownDescription:Ee("suggest.filtered.variable","When set to `false` IntelliSense never shows `variable` suggestions.")},class:{type:"boolean",default:!0,markdownDescription:Ee("suggest.filtered.class","When set to `false` IntelliSense never shows `class` suggestions.")},struct:{type:"boolean",default:!0,markdownDescription:Ee("suggest.filtered.struct","When set to `false` IntelliSense never shows `struct` suggestions.")},interface:{type:"boolean",default:!0,markdownDescription:Ee("suggest.filtered.interface","When set to `false` IntelliSense never shows `interface` suggestions.")},module:{type:"boolean",default:!0,markdownDescription:Ee("suggest.filtered.module","When set to `false` IntelliSense never shows `module` suggestions.")},property:{type:"boolean",default:!0,markdownDescription:Ee("suggest.filtered.property","When set to `false` IntelliSense never shows `property` suggestions.")},event:{type:"boolean",default:!0,markdownDescription:Ee("suggest.filtered.event","When set to `false` IntelliSense never shows `event` suggestions.")},operator:{type:"boolean",default:!0,markdownDescription:Ee("suggest.filtered.operator","When set to `false` IntelliSense never shows `operator` suggestions.")},unit:{type:"boolean",default:!0,markdownDescription:Ee("suggest.filtered.unit","When set to `false` IntelliSense never shows `unit` suggestions.")},value:{type:"boolean",default:!0,markdownDescription:Ee("suggest.filtered.value","When set to `false` IntelliSense never shows `value` suggestions.")},constant:{type:"boolean",default:!0,markdownDescription:Ee("suggest.filtered.constant","When set to `false` IntelliSense never shows `constant` suggestions.")},enum:{type:"boolean",default:!0,markdownDescription:Ee("suggest.filtered.enum","When set to `false` IntelliSense never shows `enum` suggestions.")},enumMember:{type:"boolean",default:!0,markdownDescription:Ee("suggest.filtered.enumMember","When set to `false` IntelliSense never shows `enumMember` suggestions.")},keyword:{type:"boolean",default:!0,markdownDescription:Ee("suggest.filtered.keyword","When set to `false` IntelliSense never shows `keyword` suggestions.")},text:{type:"boolean",default:!0,markdownDescription:Ee("suggest.filtered.text","When set to `false` IntelliSense never shows `text` suggestions.")},color:{type:"boolean",default:!0,markdownDescription:Ee("suggest.filtered.color","When set to `false` IntelliSense never shows `color` suggestions.")},file:{type:"boolean",default:!0,markdownDescription:Ee("suggest.filtered.file","When set to `false` IntelliSense never shows `file` suggestions.")},reference:{type:"boolean",default:!0,markdownDescription:Ee("suggest.filtered.reference","When set to `false` IntelliSense never shows `reference` suggestions.")},customcolor:{type:"boolean",default:!0,markdownDescription:Ee("suggest.filtered.customcolor","When set to `false` IntelliSense never shows `customcolor` suggestions.")},folder:{type:"boolean",default:!0,markdownDescription:Ee("suggest.filtered.folder","When set to `false` IntelliSense never shows `folder` suggestions.")},typeParameter:{type:"boolean",default:!0,markdownDescription:Ee("suggest.filtered.typeParameter","When set to `false` IntelliSense never shows `typeParameter` suggestions.")},snippet:{type:"boolean",default:!0,markdownDescription:Ee("suggest.filtered.snippet","When set to `false` IntelliSense never shows `snippet` suggestions.")}}},"editor.gotoLocation.multiple":{description:Ee("editor.gotoLocation.multiple","Controls the behavior of 'Go To' commands, like Go To Definition, when multiple target locations exist."),type:"string",enum:["peek","gotoAndPeek","goto"],default:Rv.contribInfo.gotoLocation.multiple,enumDescriptions:[Ee("editor.gotoLocation.multiple.peek","Show peek view of the results (default)"),Ee("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a peek view"),Ee("editor.gotoLocation.multiple.goto","Go to the primary result and enable peek-less navigation to others")]},"editor.selectionHighlight":{type:"boolean",default:Rv.contribInfo.selectionHighlight,description:Ee("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")},"editor.occurrencesHighlight":{type:"boolean",default:Rv.contribInfo.occurrencesHighlight,description:Ee("occurrencesHighlight","Controls whether the editor should highlight semantic symbol occurrences.")},"editor.overviewRulerLanes":{type:"integer",default:3,description:Ee("overviewRulerLanes","Controls the number of decorations that can show up at the same position in the overview ruler.")},"editor.overviewRulerBorder":{type:"boolean",default:Rv.viewInfo.overviewRulerBorder,description:Ee("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")},"editor.cursorBlinking":{type:"string",enum:["blink","smooth","phase","expand","solid"],default:function(e){if(1===e)return"blink";if(4===e)return"expand";if(3===e)return"phase";if(2===e)return"smooth";if(5===e)return"solid";throw new Error("blinkingStyleToString: Unknown blinkingStyle")}(Rv.viewInfo.cursorBlinking),description:Ee("cursorBlinking","Control the cursor animation style.")},"editor.mouseWheelZoom":{type:"boolean",default:Rv.viewInfo.mouseWheelZoom,markdownDescription:Ee("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")},"editor.cursorSmoothCaretAnimation":{type:"boolean",default:Rv.viewInfo.cursorSmoothCaretAnimation,description:Ee("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")},"editor.cursorStyle":{type:"string",enum:["block","block-outline","line","line-thin","underline","underline-thin"],default:function(e){if(e===oi.Line)return"line";if(e===oi.Block)return"block";if(e===oi.Underline)return"underline";if(e===oi.LineThin)return"line-thin";if(e===oi.BlockOutline)return"block-outline";if(e===oi.UnderlineThin)return"underline-thin";throw new Error("cursorStyleToString: Unknown cursorStyle")}(Rv.viewInfo.cursorStyle),description:Ee("cursorStyle","Controls the cursor style.")},"editor.cursorWidth":{type:"integer",default:Rv.viewInfo.cursorWidth,markdownDescription:Ee("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")},"editor.fontLigatures":{type:"boolean",default:Rv.viewInfo.fontLigatures,description:Ee("fontLigatures","Enables/Disables font ligatures.")},"editor.hideCursorInOverviewRuler":{type:"boolean",default:Rv.viewInfo.hideCursorInOverviewRuler,description:Ee("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")},"editor.renderWhitespace":{type:"string",enum:["none","boundary","selection","all"],enumDescriptions:["",Ee("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),Ee("renderWhitespace.selection","Render whitespace characters only on selected text."),""],default:Rv.viewInfo.renderWhitespace,description:Ee("renderWhitespace","Controls how the editor should render whitespace characters.")},"editor.renderControlCharacters":{type:"boolean",default:Rv.viewInfo.renderControlCharacters,description:Ee("renderControlCharacters","Controls whether the editor should render control characters.")},"editor.renderIndentGuides":{type:"boolean",default:Rv.viewInfo.renderIndentGuides,description:Ee("renderIndentGuides","Controls whether the editor should render indent guides.")},"editor.highlightActiveIndentGuide":{type:"boolean",default:Rv.viewInfo.highlightActiveIndentGuide,description:Ee("highlightActiveIndentGuide","Controls whether the editor should highlight the active indent guide.")},"editor.renderLineHighlight":{type:"string",enum:["none","gutter","line","all"],enumDescriptions:["","","",Ee("renderLineHighlight.all","Highlights both the gutter and the current line.")],default:Rv.viewInfo.renderLineHighlight,description:Ee("renderLineHighlight","Controls how the editor should render the current line highlight.")},"editor.codeLens":{type:"boolean",default:Rv.contribInfo.codeLens,description:Ee("codeLens","Controls whether the editor shows CodeLens.")},"editor.folding":{type:"boolean",default:Rv.contribInfo.folding,description:Ee("folding","Controls whether the editor has code folding enabled.")},"editor.foldingStrategy":{type:"string",enum:["auto","indentation"],default:Rv.contribInfo.foldingStrategy,markdownDescription:Ee("foldingStrategy","Controls the strategy for computing folding ranges. `auto` uses a language specific folding strategy, if available. `indentation` uses the indentation based folding strategy.")},"editor.showFoldingControls":{type:"string",enum:["always","mouseover"],default:Rv.contribInfo.showFoldingControls,description:Ee("showFoldingControls","Controls whether the fold controls on the gutter are automatically hidden.")},"editor.matchBrackets":{type:"boolean",default:Rv.contribInfo.matchBrackets,description:Ee("matchBrackets","Highlight matching brackets when one of them is selected.")},"editor.glyphMargin":{type:"boolean",default:Rv.viewInfo.glyphMargin,description:Ee("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")},"editor.useTabStops":{type:"boolean",default:Rv.useTabStops,description:Ee("useTabStops","Inserting and deleting whitespace follows tab stops.")},"editor.trimAutoWhitespace":{type:"boolean",default:Yv.trimAutoWhitespace,description:Ee("trimAutoWhitespace","Remove trailing auto inserted whitespace.")},"editor.stablePeek":{type:"boolean",default:!1,markdownDescription:Ee("stablePeek","Keep peek editors open even when double clicking their content or when hitting `Escape`.")},"editor.dragAndDrop":{type:"boolean",default:Rv.dragAndDrop,description:Ee("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")},"editor.accessibilitySupport":{type:"string",enum:["auto","on","off"],enumDescriptions:[Ee("accessibilitySupport.auto","The editor will use platform APIs to detect when a Screen Reader is attached."),Ee("accessibilitySupport.on","The editor will be permanently optimized for usage with a Screen Reader."),Ee("accessibilitySupport.off","The editor will never be optimized for usage with a Screen Reader.")],default:Rv.accessibilitySupport,description:Ee("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers.")},"editor.showUnused":{type:"boolean",default:Rv.showUnused,description:Ee("showUnused","Controls fading out of unused code.")},"editor.links":{type:"boolean",default:Rv.contribInfo.links,description:Ee("links","Controls whether the editor should detect links and make them clickable.")},"editor.colorDecorators":{type:"boolean",default:Rv.contribInfo.colorDecorators,description:Ee("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")},"editor.lightbulb.enabled":{type:"boolean",default:Rv.contribInfo.lightbulbEnabled,description:Ee("codeActions","Enables the code action lightbulb in the editor.")},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:Ee("maxTokenizationLineLength","Lines above this length will not be tokenized for performance reasons")},"editor.codeActionsOnSave":{type:"object",properties:{"source.organizeImports":{type:"boolean",description:Ee("codeActionsOnSave.organizeImports","Controls whether organize imports action should be run on file save.")},"source.fixAll":{type:"boolean",description:Ee("codeActionsOnSave.fixAll","Controls whether auto fix action should be run on file save.")}},additionalProperties:{type:"boolean"},default:Rv.contribInfo.codeActionsOnSave,description:Ee("codeActionsOnSave","Code action kinds to be run on save.")},"editor.codeActionsOnSaveTimeout":{type:"number",default:Rv.contribInfo.codeActionsOnSaveTimeout,description:Ee("codeActionsOnSaveTimeout","Timeout in milliseconds after which the code actions that are run on save are cancelled.")},"editor.selectionClipboard":{type:"boolean",default:Rv.contribInfo.selectionClipboard,description:Ee("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:nt.c},"diffEditor.renderSideBySide":{type:"boolean",default:!0,description:Ee("sideBySide","Controls whether the diff editor shows the diff side by side or inline.")},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:!0,description:Ee("ignoreTrimWhitespace","Controls whether the diff editor shows changes in leading or trailing whitespace as diffs.")},"editor.largeFileOptimizations":{type:"boolean",default:Yv.largeFileOptimizations,description:Ee("largeFileOptimizations","Special handling for large files to disable certain memory intensive features.")},"diffEditor.renderIndicators":{type:"boolean",default:!0,description:Ee("renderIndicators","Controls whether the diff editor shows +/- indicators for added/removed changes.")}}},zv=null;function Uv(){return null===zv&&(zv=Object.create(null),Object.keys(Vv.properties).forEach((function(e){zv[e]=!0}))),zv}Hv.registerConfiguration(Vv);var qv=function(){function e(){}return e.insert=function(e,t){return{range:new Yr(e.lineNumber,e.column,e.lineNumber,e.column),text:t,forceMoveMarkers:!0}},e.delete=function(e){return{range:e,text:null}},e.replace=function(e,t){return{range:e,text:t}},e.replaceMove=function(e,t){return{range:e,text:t,forceMoveMarkers:!0}},e}(),Kv=Ct("configurationService");function Gv(e,t){var n=Object.create(null);for(var r in e)$v(n,r,e[r],t);return n}function $v(e,t,n,r){for(var i=t.split("."),o=i.pop(),s=e,a=0;a<i.length;a++){var u=i[a],l=s[u];switch(typeof l){case"undefined":l=s[u]=Object.create(null);break;case"object":break;default:return void r("Ignoring "+t+" as "+i.slice(0,a+1).join(".")+" is "+JSON.stringify(l))}s=l}"object"==typeof s?s[o]=n:r("Ignoring "+t+" as "+i.join(".")+" is "+JSON.stringify(s))}function Zv(e,t){!function e(t,n){var r=n.shift();if(0===n.length)return void delete t[r];if(-1!==Object.keys(t).indexOf(r)){var i=t[r];"object"!=typeof i||Array.isArray(i)||(e(i,n),0===Object.keys(i).length&&delete t[r])}}(e,t.split("."))}function Xv(e){return e.substring(1,e.length-1)}var Jv=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qv=function(){function e(e,t,n){void 0===e&&(e={}),void 0===t&&(t=[]),void 0===n&&(n=[]),this._contents=e,this._keys=t,this._overrides=n,this.isFrozen=!1}return Object.defineProperty(e.prototype,"contents",{get:function(){return this.checkAndFreeze(this._contents)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"overrides",{get:function(){return this.checkAndFreeze(this._overrides)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"keys",{get:function(){return this.checkAndFreeze(this._keys)},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return 0===this._keys.length&&0===Object.keys(this._contents).length&&0===this._overrides.length},e.prototype.getValue=function(e){return e?(t=this.contents,void 0===(r=function(e,t){for(var n=e,r=0,i=t;r<i.length;r++){var o=i[r];if("object"!=typeof n||null===n)return;n=n[o]}return n}(t,e.split(".")))?n:r):this.contents;var t,n,r},e.prototype.override=function(t){var n=this.getContentsForOverrideIdentifer(t);if(!n||"object"!=typeof n||!Object.keys(n).length)return this;for(var r={},i=0,o=zr(Object.keys(this.contents).concat(Object.keys(n)));i<o.length;i++){var s=o[i],a=this.contents[s],u=n[s];u&&("object"==typeof a&&"object"==typeof u?(a=Zr(a),this.mergeContents(a,u)):a=u),r[s]=a}return new e(r)},e.prototype.merge=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r=Zr(this.contents),i=Zr(this.overrides),o=this.keys.slice(),s=0,a=t;s<a.length;s++){var u=a[s];this.mergeContents(r,u.contents);for(var l=function(e){var t=i.filter((function(t){return Hr(t.identifiers,e.identifiers)}))[0];t?c.mergeContents(t.contents,e.contents):i.push(Zr(e))},c=this,d=0,h=u.overrides;d<h.length;d++){var f=h[d];l(f)}for(var p=0,g=u.keys;p<g.length;p++){var m=g[p];-1===o.indexOf(m)&&o.push(m)}}return new e(r,o,i)},e.prototype.freeze=function(){return this.isFrozen=!0,this},e.prototype.mergeContents=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];i in e&&Oe(e[i])&&Oe(t[i])?this.mergeContents(e[i],t[i]):e[i]=Zr(t[i])}},e.prototype.checkAndFreeze=function(e){return this.isFrozen&&!Object.isFrozen(e)?function(e){if(!e||"object"!=typeof e)return e;for(var t=[e];t.length>0;){var n=t.shift();for(var r in Object.freeze(n),n)if(Xr.call(n,r)){var i=n[r];"object"!=typeof i||Object.isFrozen(i)||t.push(i)}}return e}(e):e},e.prototype.getContentsForOverrideIdentifer=function(e){for(var t=0,n=this.overrides;t<n.length;t++){var r=n[t];if(-1!==r.identifiers.indexOf(e))return r.contents}return null},e.prototype.toJSON=function(){return{contents:this.contents,overrides:this.overrides,keys:this.keys}},e.prototype.setValue=function(e,t){this.addKey(e),$v(this.contents,e,t,(function(e){throw new Error(e)}))},e.prototype.removeValue=function(e){this.removeKey(e)&&Zv(this.contents,e)},e.prototype.addKey=function(e){for(var t=this.keys.length,n=0;n<t;n++)0===e.indexOf(this.keys[n])&&(t=n);this.keys.splice(t,1,e)},e.prototype.removeKey=function(e){var t=this.keys.indexOf(e);return-1!==t&&(this.keys.splice(t,1),!0)},e}(),eb=function(e){function t(){for(var t,n=function(){var e=Object.create(null),t=kr.as(yv.Configuration).getConfigurationProperties();for(var n in t){$v(e,n,t[n].default,(function(e){return console.error("Conflict in default settings: "+e)}))}return e}(),r=(t=kr.as(yv.Configuration).getConfigurationProperties(),Object.keys(t)),i=[],o=0,s=Object.keys(n);o<s.length;o++){var a=s[o];Nv.test(a)&&i.push({identifiers:[Xv(a).trim()],contents:Gv(n[a],(function(e){return console.error("Conflict in default settings file: "+e)}))})}return e.call(this,n,r,i)||this}return Jv(t,e),t}(Qv),tb=function(){function e(e,t,n,r,i,o,s,a){void 0===n&&(n=new Qv),void 0===r&&(r=new Qv),void 0===i&&(i=new tr),void 0===o&&(o=new Qv),void 0===s&&(s=new tr),void 0===a&&(a=!0),this._defaultConfiguration=e,this._localUserConfiguration=t,this._remoteUserConfiguration=n,this._workspaceConfiguration=r,this._folderConfigurations=i,this._memoryConfiguration=o,this._memoryConfigurationByResource=s,this._freeze=a,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations=new tr}return e.prototype.getValue=function(e,t,n){return this.getConsolidateConfigurationModel(t,n).getValue(e)},e.prototype.updateValue=function(e,t,n){var r;void 0===n&&(n={}),n.resource?(r=this._memoryConfigurationByResource.get(n.resource))||(r=new Qv,this._memoryConfigurationByResource.set(n.resource,r)):r=this._memoryConfiguration,void 0===t?r.removeValue(e):r.setValue(e,t),n.resource||(this._workspaceConsolidatedConfiguration=null)},e.prototype.inspect=function(e,t,n){var r=this.getConsolidateConfigurationModel(t,n),i=this.getFolderConfigurationModelForResource(t.resource,n),o=t.resource&&this._memoryConfigurationByResource.get(t.resource)||this._memoryConfiguration;return{default:t.overrideIdentifier?this._defaultConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this._defaultConfiguration.freeze().getValue(e),user:t.overrideIdentifier?this.userConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this.userConfiguration.freeze().getValue(e),userLocal:t.overrideIdentifier?this.localUserConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this.localUserConfiguration.freeze().getValue(e),userRemote:t.overrideIdentifier?this.remoteUserConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this.remoteUserConfiguration.freeze().getValue(e),workspace:n?t.overrideIdentifier?this._workspaceConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this._workspaceConfiguration.freeze().getValue(e):void 0,workspaceFolder:i?t.overrideIdentifier?i.freeze().override(t.overrideIdentifier).getValue(e):i.freeze().getValue(e):void 0,memory:t.overrideIdentifier?o.override(t.overrideIdentifier).getValue(e):o.getValue(e),value:r.getValue(e)}},Object.defineProperty(e.prototype,"userConfiguration",{get:function(){return this._userConfiguration||(this._userConfiguration=this._remoteUserConfiguration.isEmpty()?this._localUserConfiguration:this._localUserConfiguration.merge(this._remoteUserConfiguration),this._freeze&&this._userConfiguration.freeze()),this._userConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"localUserConfiguration",{get:function(){return this._localUserConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"remoteUserConfiguration",{get:function(){return this._remoteUserConfiguration},enumerable:!0,configurable:!0}),e.prototype.getConsolidateConfigurationModel=function(e,t){var n=this.getConsolidatedConfigurationModelForResource(e,t);return e.overrideIdentifier?n.override(e.overrideIdentifier):n},e.prototype.getConsolidatedConfigurationModelForResource=function(e,t){var n=e.resource,r=this.getWorkspaceConsolidatedConfiguration();if(t&&n){var i=t.getFolder(n);i&&(r=this.getFolderConsolidatedConfiguration(i.uri)||r);var o=this._memoryConfigurationByResource.get(n);o&&(r=r.merge(o))}return r},e.prototype.getWorkspaceConsolidatedConfiguration=function(){return this._workspaceConsolidatedConfiguration||(this._workspaceConsolidatedConfiguration=this._defaultConfiguration.merge(this.userConfiguration,this._workspaceConfiguration,this._memoryConfiguration),this._freeze&&(this._workspaceConfiguration=this._workspaceConfiguration.freeze())),this._workspaceConsolidatedConfiguration},e.prototype.getFolderConsolidatedConfiguration=function(e){var t=this._foldersConsolidatedConfigurations.get(e);if(!t){var n=this.getWorkspaceConsolidatedConfiguration(),r=this._folderConfigurations.get(e);r?(t=n.merge(r),this._freeze&&(t=t.freeze()),this._foldersConsolidatedConfigurations.set(e,t)):t=n}return t},e.prototype.getFolderConfigurationModelForResource=function(e,t){if(t&&e){var n=t.getFolder(e);if(n)return Ue(this._folderConfigurations.get(n.uri))}return null},e}(),nb=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),rb=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o._contextKeyService=t,o._commandService=n,o._telemetryService=r,o._notificationService=i,o._onDidUpdateKeybindings=o._register(new $t),o._currentChord=null,o._currentChordChecker=new Os,o._currentChordStatusMessage=null,o}return nb(t,e),Object.defineProperty(t.prototype,"onDidUpdateKeybindings",{get:function(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:Ht.None},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.lookupKeybinding=function(e){var t=this._getResolver().lookupPrimaryKeybinding(e);if(t)return t.resolvedKeybinding},t.prototype.softDispatch=function(e,t){var n=this.resolveKeyboardEvent(e);if(n.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),null;var r=n.getDispatchParts()[0];if(null===r)return null;var i=this._contextKeyService.getContext(t),o=this._currentChord?this._currentChord.keypress:null;return this._getResolver().resolve(i,o,r)},t.prototype._enterChordMode=function(e,t){var n=this;this._currentChord={keypress:e,label:t},this._currentChordStatusMessage=this._notificationService.status(Ee("first.chord","({0}) was pressed. Waiting for second key of chord...",t));var r=Date.now();this._currentChordChecker.cancelAndSet((function(){n._documentHasFocus()?Date.now()-r>5e3&&n._leaveChordMode():n._leaveChordMode()}),500)},t.prototype._leaveChordMode=function(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChord=null},t.prototype._dispatch=function(e,t){return this._doDispatch(this.resolveKeyboardEvent(e),t)},t.prototype._doDispatch=function(e,t){var n=this,r=!1;if(e.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),!1;var i=e.getDispatchParts()[0];if(null===i)return r;var o=this._contextKeyService.getContext(t),s=this._currentChord?this._currentChord.keypress:null,a=e.getLabel(),u=this._getResolver().resolve(o,s,i);return u&&u.enterChord?(r=!0,this._enterChordMode(i,a),r):(this._currentChord&&(u&&u.commandId||(this._notificationService.status(Ee("missing.chord","The key combination ({0}, {1}) is not a command.",this._currentChord.label,a),{hideAfter:1e4}),r=!0)),this._leaveChordMode(),u&&u.commandId&&(u.bubble||(r=!0),void 0===u.commandArgs?this._commandService.executeCommand(u.commandId).then(void 0,(function(e){return n._notificationService.warn(e)})):this._commandService.executeCommand(u.commandId,u.commandArgs).then(void 0,(function(e){return n._notificationService.warn(e)})),this._telemetryService.publicLog2("workbenchActionExecuted",{id:u.commandId,from:"keybinding"})),r)},t.prototype.mightProducePrintableCharacter=function(e){return!e.ctrlKey&&!e.metaKey&&(e.keyCode>=31&&e.keyCode<=56||e.keyCode>=21&&e.keyCode<=30)},t}(Ft),ib=function(){function e(t,n){this._defaultKeybindings=t,this._defaultBoundCommands=new Map;for(var r=0,i=t.length;r<i;r++){var o=t[r].command;o&&this._defaultBoundCommands.set(o,!0)}this._map=new Map,this._lookupMap=new Map,this._keybindings=e.combine(t,n);for(r=0,i=this._keybindings.length;r<i;r++){var s=this._keybindings[r];0!==s.keypressParts.length&&this._addKeyPress(s.keypressParts[0],s)}}return e._isTargetedForRemoval=function(e,t,n,r,i){if(e.command!==r)return!1;if(t&&e.keypressParts[0]!==t)return!1;if(n&&e.keypressParts[1]!==n)return!1;if(i){if(!e.when)return!1;if(!i.equals(e.when))return!1}return!0},e.combine=function(e,t){e=e.slice(0);for(var n=[],r=0,i=t;r<i.length;r++){var o=i[r];if(o.command&&0!==o.command.length&&"-"===o.command.charAt(0))for(var s=o.command.substr(1),a=o.keypressParts[0],u=o.keypressParts[1],l=o.when,c=e.length-1;c>=0;c--)this._isTargetedForRemoval(e[c],a,u,s,l)&&e.splice(c,1);else n.push(o)}return e.concat(n)},e.prototype._addKeyPress=function(t,n){var r=this._map.get(t);if(void 0===r)return this._map.set(t,[n]),void this._addToLookupMap(n);for(var i=r.length-1;i>=0;i--){var o=r[i];if(o.command!==n.command){var s=o.keypressParts.length>1,a=n.keypressParts.length>1;s&&a&&o.keypressParts[1]!==n.keypressParts[1]||e.whenIsEntirelyIncluded(o.when,n.when)&&this._removeFromLookupMap(o)}}r.push(n),this._addToLookupMap(n)},e.prototype._addToLookupMap=function(e){if(e.command){var t=this._lookupMap.get(e.command);void 0===t?(t=[e],this._lookupMap.set(e.command,t)):t.push(e)}},e.prototype._removeFromLookupMap=function(e){if(e.command){var t=this._lookupMap.get(e.command);if(void 0!==t)for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return void t.splice(n,1)}},e.whenIsEntirelyIncluded=function(e,t){return!t||!!e&&this._implies(e,t)},e._implies=function(e,t){for(var n=function(e){return e instanceof Un?e.expr:[e]},r=n(e.negate()).concat(n(t)),i=0;i<r.length;i++)for(var o=r[i].negate(),s=i+1;s<r.length;s++){var a=r[s];if(o.equals(a))return!0}return!1},e.prototype.lookupPrimaryKeybinding=function(e){var t=this._lookupMap.get(e);return void 0===t||0===t.length?null:t[t.length-1]},e.prototype.resolve=function(e,t,n){var r=null;if(null!==t){if(void 0===(a=this._map.get(t)))return null;r=[];for(var i=0,o=a.length;i<o;i++){var s=a[i];s.keypressParts[1]===n&&r.push(s)}}else{var a;if(void 0===(a=this._map.get(n)))return null;r=a}var u=this._findCommand(e,r);return u?null===t&&u.keypressParts.length>1&&null!==u.keypressParts[1]?{enterChord:!0,commandId:null,commandArgs:null,bubble:!1}:{enterChord:!1,commandId:u.command,commandArgs:u.commandArgs,bubble:u.bubble}:null},e.prototype._findCommand=function(t,n){for(var r=n.length-1;r>=0;r--){var i=n[r];if(e.contextMatchesRules(t,i.when))return i}return null},e.contextMatchesRules=function(e,t){return!t||t.evaluate(e)},e}(),ob=function(e,t,n,r,i){this.resolvedKeybinding=e,this.keypressParts=e?function(e){for(var t=[],n=0,r=e.length;n<r;n++){var i=e[n];if(!i)return t;t.push(i)}return t}(e.getDispatchParts()):[],this.bubble=!!t&&94===t.charCodeAt(0),this.command=this.bubble?t.substr(1):t,this.commandArgs=n,this.when=r,this.isDefault=i};var sb=function(){function e(e,t,n){void 0===n&&(n=t),this.modifierLabels=[null],this.modifierLabels[2]=e,this.modifierLabels[1]=t,this.modifierLabels[3]=n}return e.prototype.toLabel=function(e,t,n){if(0===t.length)return null;for(var r=[],i=0,o=t.length;i<o;i++){var s=t[i],a=n(s);if(null===a)return null;r[i]=lb(s,a,this.modifierLabels[e])}return r.join(" ")},e}(),ab=new sb({ctrlKey:"⌃",shiftKey:"⇧",altKey:"⌥",metaKey:"⌘",separator:""},{ctrlKey:Ee({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:Ee({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:Ee({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:Ee({key:"windowsKey",comment:["This is the short form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:Ee({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:Ee({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:Ee({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:Ee({key:"superKey",comment:["This is the short form for the Super key on the keyboard"]},"Super"),separator:"+"}),ub=new sb({ctrlKey:Ee({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:Ee({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:Ee({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:Ee({key:"cmdKey.long",comment:["This is the long form for the Command key on the keyboard"]},"Command"),separator:"+"},{ctrlKey:Ee({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:Ee({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:Ee({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:Ee({key:"windowsKey.long",comment:["This is the long form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:Ee({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:Ee({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:Ee({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:Ee({key:"superKey.long",comment:["This is the long form for the Super key on the keyboard"]},"Super"),separator:"+"});function lb(e,t,n){if(null===t)return"";var r=[];return e.ctrlKey&&r.push(n.ctrlKey),e.shiftKey&&r.push(n.shiftKey),e.altKey&&r.push(n.altKey),e.metaKey&&r.push(n.metaKey),r.push(t),r.join(n.separator)}var cb,db,hb=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),fb=function(e){function t(t,n){var r=e.call(this)||this;if(0===n.length)throw Je("parts");return r._os=t,r._parts=n,r}return hb(t,e),t.prototype.getLabel=function(){var e=this;return ab.toLabel(this._os,this._parts,(function(t){return e._getLabel(t)}))},t.prototype.getAriaLabel=function(){var e=this;return ub.toLabel(this._os,this._parts,(function(t){return e._getAriaLabel(t)}))},t.prototype.isChord=function(){return this._parts.length>1},t.prototype.getParts=function(){var e=this;return this._parts.map((function(t){return e._getPart(t)}))},t.prototype._getPart=function(e){return new Sr(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,this._getLabel(e),this._getAriaLabel(e))},t.prototype.getDispatchParts=function(){var e=this;return this._parts.map((function(t){return e._getDispatchPart(t)}))},t}(xr),pb=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),gb=function(e){function t(t,n){return e.call(this,n,t.parts)||this}return pb(t,e),t.prototype._keyCodeToUILabel=function(e){if(2===this._os)switch(e){case 15:return"←";case 16:return"↑";case 17:return"→";case 18:return"↓"}return lr.toString(e)},t.prototype._getLabel=function(e){return e.isDuplicateModifierCase()?"":this._keyCodeToUILabel(e.keyCode)},t.prototype._getAriaLabel=function(e){return e.isDuplicateModifierCase()?"":lr.toString(e.keyCode)},t.prototype._getDispatchPart=function(e){return t.getDispatchStr(e)},t.getDispatchStr=function(e){if(e.isModifierKey())return null;var t="";return e.ctrlKey&&(t+="ctrl+"),e.shiftKey&&(t+="shift+"),e.altKey&&(t+="alt+"),e.metaKey&&(t+="meta+"),t+=lr.toString(e.keyCode)},t}(fb),mb=Ct("contextService");!function(e){e.isIWorkspace=function(e){return e&&"object"==typeof e&&"string"==typeof e.id&&Array.isArray(e.folders)}}(cb||(cb={})),(db||(db={})).isIWorkspaceFolder=function(e){return e&&"object"==typeof e&&ht.isUri(e.uri)&&"string"==typeof e.name&&"function"==typeof e.toResource};!function(){function e(e,t,n){void 0===t&&(t=[]),void 0===n&&(n=null),this._id=e,this._configuration=n,this._foldersMap=er.forPaths(),this.folders=t}Object.defineProperty(e.prototype,"folders",{get:function(){return this._folders},set:function(e){this._folders=e,this.updateFoldersMap()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"configuration",{get:function(){return this._configuration},set:function(e){this._configuration=e},enumerable:!0,configurable:!0}),e.prototype.getFolder=function(e){return e&&this._foldersMap.findSubstr(e.with({scheme:e.scheme,authority:e.authority,path:e.path}).toString())||null},e.prototype.updateFoldersMap=function(){this._foldersMap=er.forPaths();for(var e=0,t=this.folders;e<t.length;e++){var n=t[e];this._foldersMap.set(n.uri.toString(),n)}},e.prototype.toJSON=function(){return{id:this.id,folders:this.folders,configuration:this.configuration}}}();var _b,yb,vb,bb,wb,Cb,Sb,xb,Lb,kb,Mb,Db,Eb,Tb=function(){function e(e,t){this.raw=t,this.uri=e.uri,this.index=e.index,this.name=e.name}return e.prototype.toResource=function(e){return function(e){for(var t,n,i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];return n=e.scheme===Dh.file?ht.file(ms.apply(r,[c_(e)].concat(i))).path:(t=ps).join.apply(t,[e.path||"/"].concat(i)),e.with({path:n})}(this.uri,e)},e.prototype.toJSON=function(){return{uri:this.uri,name:this.name,index:this.index}},e}();(yb=_b||(_b={})).noSelection=Ee("noSelection","No selection"),yb.singleSelectionRange=Ee("singleSelectionRange","Line {0}, Column {1} ({2} selected)"),yb.singleSelection=Ee("singleSelection","Line {0}, Column {1}"),yb.multiSelectionRange=Ee("multiSelectionRange","{0} selections ({1} characters selected)"),yb.multiSelection=Ee("multiSelection","{0} selections"),yb.emergencyConfOn=Ee("emergencyConfOn","Now changing the setting `accessibilitySupport` to 'on'."),yb.openingDocs=Ee("openingDocs","Now opening the Editor Accessibility documentation page."),yb.readonlyDiffEditor=Ee("readonlyDiffEditor"," in a read-only pane of a diff editor."),yb.editableDiffEditor=Ee("editableDiffEditor"," in a pane of a diff editor."),yb.readonlyEditor=Ee("readonlyEditor"," in a read-only code editor"),yb.editableEditor=Ee("editableEditor"," in a code editor"),yb.changeConfigToOnMac=Ee("changeConfigToOnMac","To configure the editor to be optimized for usage with a Screen Reader press Command+E now."),yb.changeConfigToOnWinLinux=Ee("changeConfigToOnWinLinux","To configure the editor to be optimized for usage with a Screen Reader press Control+E now."),yb.auto_on=Ee("auto_on","The editor is configured to be optimized for usage with a Screen Reader."),yb.auto_off=Ee("auto_off","The editor is configured to never be optimized for usage with a Screen Reader, which is not the case at this time."),yb.tabFocusModeOnMsg=Ee("tabFocusModeOnMsg","Pressing Tab in the current editor will move focus to the next focusable element. Toggle this behavior by pressing {0}."),yb.tabFocusModeOnMsgNoKb=Ee("tabFocusModeOnMsgNoKb","Pressing Tab in the current editor will move focus to the next focusable element. The command {0} is currently not triggerable by a keybinding."),yb.tabFocusModeOffMsg=Ee("tabFocusModeOffMsg","Pressing Tab in the current editor will insert the tab character. Toggle this behavior by pressing {0}."),yb.tabFocusModeOffMsgNoKb=Ee("tabFocusModeOffMsgNoKb","Pressing Tab in the current editor will insert the tab character. The command {0} is currently not triggerable by a keybinding."),yb.openDocMac=Ee("openDocMac","Press Command+H now to open a browser window with more information related to editor accessibility."),yb.openDocWinLinux=Ee("openDocWinLinux","Press Control+H now to open a browser window with more information related to editor accessibility."),yb.outroMsg=Ee("outroMsg","You can dismiss this tooltip and return to the editor by pressing Escape or Shift+Escape."),yb.showAccessibilityHelpAction=Ee("showAccessibilityHelpAction","Show Accessibility Help"),(vb||(vb={})).inspectTokensAction=Ee("inspectTokens","Developer: Inspect Tokens"),(wb=bb||(bb={})).gotoLineLabelValidLineAndColumn=Ee("gotoLineLabelValidLineAndColumn","Go to line {0} and character {1}"),wb.gotoLineLabelValidLine=Ee("gotoLineLabelValidLine","Go to line {0}"),wb.gotoLineLabelEmptyWithLineLimit=Ee("gotoLineLabelEmptyWithLineLimit","Type a line number between 1 and {0} to navigate to"),wb.gotoLineLabelEmptyWithLineAndColumnLimit=Ee("gotoLineLabelEmptyWithLineAndColumnLimit","Type a character between 1 and {0} to navigate to"),wb.gotoLineAriaLabel=Ee("gotoLineAriaLabel","Current Line: {0}. Go to line {1}."),wb.gotoLineActionInput=Ee("gotoLineActionInput","Type a line number, followed by an optional colon and a character number to navigate to"),wb.gotoLineActionLabel=Ee("gotoLineActionLabel","Go to Line..."),(Sb=Cb||(Cb={})).ariaLabelEntryWithKey=Ee("ariaLabelEntryWithKey","{0}, {1}, commands"),Sb.ariaLabelEntry=Ee("ariaLabelEntry","{0}, commands"),Sb.quickCommandActionInput=Ee("quickCommandActionInput","Type the name of an action you want to execute"),Sb.quickCommandActionLabel=Ee("quickCommandActionLabel","Command Palette"),(Lb=xb||(xb={})).entryAriaLabel=Ee("entryAriaLabel","{0}, symbols"),Lb.quickOutlineActionInput=Ee("quickOutlineActionInput","Type the name of an identifier you wish to navigate to"),Lb.quickOutlineActionLabel=Ee("quickOutlineActionLabel","Go to Symbol..."),Lb._symbols_=Ee("symbols","symbols ({0})"),Lb._modules_=Ee("modules","modules ({0})"),Lb._class_=Ee("class","classes ({0})"),Lb._interface_=Ee("interface","interfaces ({0})"),Lb._method_=Ee("method","methods ({0})"),Lb._function_=Ee("function","functions ({0})"),Lb._property_=Ee("property","properties ({0})"),Lb._variable_=Ee("variable","variables ({0})"),Lb._variable2_=Ee("variable2","variables ({0})"),Lb._constructor_=Ee("_constructor","constructors ({0})"),Lb._call_=Ee("call","calls ({0})"),(Mb=kb||(kb={})).editorViewAccessibleLabel=Ee("editorViewAccessibleLabel","Editor content"),Mb.accessibilityHelpMessageIE=Ee("accessibilityHelpMessageIE","Press Ctrl+F1 for Accessibility Options."),Mb.accessibilityHelpMessage=Ee("accessibilityHelpMessage","Press Alt+F1 for Accessibility Options."),(Db||(Db={})).toggleHighContrast=Ee("toggleHighContrast","Toggle High Contrast Theme"),(Eb||(Eb={})).bulkEditServiceSummary=Ee("bulkEditServiceSummary","Made {0} edits in {1} files");var Nb=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ob=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Ab=function(e,t){return function(n,r){t(n,r,e)}},Ib=function(){function e(e){this.model=e,this._onDispose=new $t}return Object.defineProperty(e.prototype,"textEditorModel",{get:function(){return this.model},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this._onDispose.fire()},e}();function Pb(e,t,n){return(r=e)&&"function"==typeof r.getEditorType&&r.getEditorType()===Nl.ICodeEditor?t(e):n(e);var r}var Rb=function(){function e(){}return e.prototype.setEditor=function(e){this.editor=e},e.prototype.createModelReference=function(e){var t=this,n=null;return this.editor&&(n=Pb(this.editor,(function(n){return t.findModel(n,e)}),(function(n){return t.findModel(n.getOriginalEditor(),e)||t.findModel(n.getModifiedEditor(),e)}))),n?Promise.resolve(new Yt(new Ib(n))):Promise.reject(new Error("Model not found"))},e.prototype.findModel=function(e,t){var n=e.getModel();return n&&n.uri.toString()!==t.toString()?null:n},e}(),Fb=function(){function e(){}return e.prototype.showWhile=function(e,t){return Promise.resolve(void 0)},e}(),Yb=function(){},jb=function(){function e(){}return e.prototype.info=function(e){return this.notify({severity:sm.Info,message:e})},e.prototype.warn=function(e){return this.notify({severity:sm.Warning,message:e})},e.prototype.error=function(e){return this.notify({severity:sm.Error,message:e})},e.prototype.notify=function(t){switch(t.severity){case sm.Error:console.error(t.message);break;case sm.Warning:console.warn(t.message);break;default:console.log(t.message)}return e.NO_OP},e.prototype.status=function(e,t){return Ft.None},e.NO_OP=new um,e}(),Bb=function(){function e(e){this._onWillExecuteCommand=new $t,this._onDidExecuteCommand=new $t,this._instantiationService=e,this._dynamicCommands=Object.create(null)}return e.prototype.addCommand=function(e){var t=this,n=e.id;return this._dynamicCommands[n]=e,Pt((function(){delete t._dynamicCommands[n]}))},e.prototype.executeCommand=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=ir.getCommand(e)||this._dynamicCommands[e];if(!r)return Promise.reject(new Error("command '"+e+"' not found"));try{this._onWillExecuteCommand.fire({commandId:e,args:t});var i=this._instantiationService.invokeFunction.apply(this._instantiationService,[r.handler].concat(t));return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(i)}catch(e){return Promise.reject(e)}},e}(),Wb=function(e){function t(t,n,r,i,o){var s=e.call(this,t,n,r,i)||this;return s._cachedResolver=null,s._dynamicKeybindings=[],s._register(Gh(o,Sf.KEY_DOWN,(function(e){var t=new Sh(e);s._dispatch(t,t.target)&&t.preventDefault()}))),s}return Nb(t,e),t.prototype.addDynamicKeybinding=function(e,t,n,r){var i=this,o=vr(t,nt.a);if(!o)throw new Error("Invalid keybinding");var s=new Rt;this._dynamicKeybindings.push({keybinding:o,command:e,when:r,weight1:1e3,weight2:0}),s.add(Pt((function(){for(var t=0;t<i._dynamicKeybindings.length;t++){if(i._dynamicKeybindings[t].command===e)return i._dynamicKeybindings.splice(t,1),void i.updateResolver({source:1})}})));var a=this._commandService;if(!(a instanceof Bb))throw new Error("Unknown command service!");return s.add(a.addCommand({id:e,handler:n})),this.updateResolver({source:1}),s},t.prototype.updateResolver=function(e){this._cachedResolver=null,this._onDidUpdateKeybindings.fire(e)},t.prototype._getResolver=function(){if(!this._cachedResolver){var e=this._toNormalizedKeybindingItems(Mr.getDefaultKeybindings(),!0),t=this._toNormalizedKeybindingItems(this._dynamicKeybindings,!1);this._cachedResolver=new ib(e,t)}return this._cachedResolver},t.prototype._documentHasFocus=function(){return document.hasFocus()},t.prototype._toNormalizedKeybindingItems=function(e,t){for(var n=[],r=0,i=0,o=e;i<o.length;i++){var s=o[i],a=s.when||void 0,u=s.keybinding;if(u)for(var l=0,c=this.resolveKeybinding(u);l<c.length;l++){var d=c[l];n[r++]=new ob(d,s.command,s.commandArgs,a,t)}else n[r++]=new ob(void 0,s.command,s.commandArgs,a,t)}return n},t.prototype.resolveKeybinding=function(e){return[new gb(e,nt.a)]},t.prototype.resolveKeyboardEvent=function(e){var t=new wr(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,e.keyCode).toChord();return new gb(t,nt.a)},t}(rb);function Hb(e){return e&&"object"==typeof e&&(!e.overrideIdentifier||"string"==typeof e.overrideIdentifier)&&(!e.resource||e.resource instanceof ht)}var Vb=function(){function e(){this._onDidChangeConfiguration=new $t,this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._configuration=new tb(new eb,new Qv)}return e.prototype.configuration=function(){return this._configuration},e.prototype.getValue=function(e,t){var n="string"==typeof e?e:void 0,r=Hb(e)?e:Hb(t)?t:{};return this.configuration().getValue(n,r,void 0)},e.prototype.updateValue=function(e,t,n,r){return this.configuration().updateValue(e,t),Promise.resolve()},e.prototype.inspect=function(e,t){return void 0===t&&(t={}),this.configuration().inspect(e,t,void 0)},e}(),zb=function(){function e(e){var t=this;this.configurationService=e,this._onDidChangeConfiguration=new $t,this.configurationService.onDidChangeConfiguration((function(e){t._onDidChangeConfiguration.fire(e)}))}return e.prototype.getValue=function(e,t,n){var r=(Lt.isIPosition(t)?t:null)?"string"==typeof n?n:void 0:"string"==typeof t?t:void 0;return void 0===r?this.configurationService.getValue():this.configurationService.getValue(r)},e}(),Ub=function(){function e(e){this.configurationService=e}return e.prototype.getEOL=function(e){var t=this.configurationService.getValue("files");return t&&t.eol&&"auto"!==t.eol?t.eol:nt.c||nt.d?"\n":"\r\n"},e=Ob([Ab(0,Kv)],e)}(),qb=function(){function e(){this._serviceBrand=void 0}return e.prototype.publicLog=function(e,t){return Promise.resolve(void 0)},e.prototype.publicLog2=function(e,t){return this.publicLog(e,t)},e}(),Kb=function(){function e(){var t=ht.from({scheme:e.SCHEME,authority:"model",path:"/"});this.workspace={id:"4064f6ec-cb38-4ad0-af64-ee6467e63c82",folders:[new Tb({uri:t,name:"",index:0})]}}return e.prototype.getWorkspace=function(){return this.workspace},e.prototype.getWorkspaceFolder=function(t){return t&&t.scheme===e.SCHEME?this.workspace.folders[0]:null},e.SCHEME="inmemory",e}();function Gb(e,t,n){t&&e instanceof Vb&&Object.keys(t).forEach((function(r){(function(e){return Uv()["editor."+e]||!1})(r)&&e.updateValue("editor."+r,t[r]),n&&function(e){return Uv()["diffEditor."+e]||!1}(r)&&e.updateValue("diffEditor."+r,t[r])}))}var $b=function(){function e(e){this._modelService=e}return e.prototype.apply=function(e,t){var n,r=new Map;if(e.edits)for(var i=0,o=e.edits;i<o.length;i++){var s=o[i];if(!(Oe(n=s)&&n.resource&&Array.isArray(n.edits)))return Promise.reject(new Error("bad edit - only text edits are supported"));var a=this._modelService.getModel(s.resource);if(!a)return Promise.reject(new Error("bad edit - model not found"));var u=r.get(a);u||(u=[]),r.set(a,u.concat(s.edits))}var l=0,c=0;return r.forEach((function(e,t){t.applyEdits(e.map((function(e){return qv.replaceMove(Yr.lift(e.range),e.text)}))),c+=1,l+=e.length})),Promise.resolve({selection:void 0,ariaSummary:an(Eb.bulkEditServiceSummary,l,c)})},e}(),Zb=function(){function e(){}return e.prototype.getUriLabel=function(e,t){return"file"===e.scheme?e.fsPath:e.path},e}(),Xb=function(){function e(e){this._container=e,this.onLayout=Ht.None}return Object.defineProperty(e.prototype,"container",{get:function(){return this._container},enumerable:!0,configurable:!0}),e}(),Jb=(n(333),n(334),function(){function e(e,t){this.chr=e,this.type=t,this.width=0}return e.prototype.fulfill=function(e){this.width=e},e}()),Qb=function(){function e(e,t){this._bareFontInfo=e,this._requests=t,this._container=null,this._testElements=null}return e.prototype.read=function(){this._createDomElements(),document.body.appendChild(this._container),this._readFromDomElements(),document.body.removeChild(this._container),this._container=null,this._testElements=null},e.prototype._createDomElements=function(){var t=document.createElement("div");t.style.position="absolute",t.style.top="-50000px",t.style.width="50000px";var n=document.createElement("div");n.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),n.style.fontWeight=this._bareFontInfo.fontWeight,n.style.fontSize=this._bareFontInfo.fontSize+"px",n.style.lineHeight=this._bareFontInfo.lineHeight+"px",n.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",t.appendChild(n);var r=document.createElement("div");r.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),r.style.fontWeight="bold",r.style.fontSize=this._bareFontInfo.fontSize+"px",r.style.lineHeight=this._bareFontInfo.lineHeight+"px",r.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",t.appendChild(r);var i=document.createElement("div");i.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),i.style.fontWeight=this._bareFontInfo.fontWeight,i.style.fontSize=this._bareFontInfo.fontSize+"px",i.style.lineHeight=this._bareFontInfo.lineHeight+"px",i.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",i.style.fontStyle="italic",t.appendChild(i);for(var o=[],s=0,a=this._requests.length;s<a;s++){var u=this._requests[s],l=void 0;0===u.type&&(l=n),2===u.type&&(l=r),1===u.type&&(l=i),l.appendChild(document.createElement("br"));var c=document.createElement("span");e._render(c,u),l.appendChild(c),o[s]=c}this._container=t,this._testElements=o},e._render=function(e,t){if(" "===t.chr){for(var n=" ",r=0;r<8;r++)n+=n;e.innerHTML=n}else{var i=t.chr;for(r=0;r<8;r++)i+=i;e.textContent=i}},e.prototype._readFromDomElements=function(){for(var e=0,t=this._requests.length;e<t;e++){var n=this._requests[e],r=this._testElements[e];n.fulfill(r.offsetWidth/256)}},e}();var ew=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),tw=function(e){function t(t,n){var r=e.call(this)||this;return r.referenceDomElement=t,r.changeCallback=n,r.measureReferenceDomElementToken=-1,r.width=-1,r.height=-1,r.measureReferenceDomElement(!1),r}return ew(t,e),t.prototype.dispose=function(){this.stopObserving(),e.prototype.dispose.call(this)},t.prototype.getWidth=function(){return this.width},t.prototype.getHeight=function(){return this.height},t.prototype.startObserving=function(){var e=this;-1===this.measureReferenceDomElementToken&&(this.measureReferenceDomElementToken=setInterval((function(){return e.measureReferenceDomElement(!0)}),100))},t.prototype.stopObserving=function(){-1!==this.measureReferenceDomElementToken&&(clearInterval(this.measureReferenceDomElementToken),this.measureReferenceDomElementToken=-1)},t.prototype.observe=function(e){this.measureReferenceDomElement(!0,e)},t.prototype.measureReferenceDomElement=function(e,t){var n=0,r=0;t?(n=t.width,r=t.height):this.referenceDomElement&&(n=this.referenceDomElement.clientWidth,r=this.referenceDomElement.clientHeight),n=Math.max(5,n),r=Math.max(5,r),this.width===n&&this.height===r||(this.width=n,this.height=r,e&&this.changeCallback())},t}(Ft),nw=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),rw=function(){function e(){this._keys=Object.create(null),this._values=Object.create(null)}return e.prototype.has=function(e){var t=e.getId();return!!this._values[t]},e.prototype.get=function(e){var t=e.getId();return this._values[t]},e.prototype.put=function(e,t){var n=e.getId();this._keys[n]=e,this._values[n]=t},e.prototype.remove=function(e){var t=e.getId();delete this._keys[t],delete this._values[t]},e.prototype.getValues=function(){var e=this;return Object.keys(this._keys).map((function(t){return e._values[t]}))},e}();var iw=function(e){function t(){var t=e.call(this)||this;return t._onDidChange=t._register(new $t),t.onDidChange=t._onDidChange.event,t._cache=new rw,t._evictUntrustedReadingsTimeout=-1,t}return nw(t,e),t.prototype.dispose=function(){-1!==this._evictUntrustedReadingsTimeout&&(clearTimeout(this._evictUntrustedReadingsTimeout),this._evictUntrustedReadingsTimeout=-1),e.prototype.dispose.call(this)},t.prototype.clearCache=function(){this._cache=new rw,this._onDidChange.fire()},t.prototype._writeToCache=function(e,t){var n=this;this._cache.put(e,t),t.isTrusted||-1!==this._evictUntrustedReadingsTimeout||(this._evictUntrustedReadingsTimeout=setTimeout((function(){n._evictUntrustedReadingsTimeout=-1,n._evictUntrustedReadings()}),5e3))},t.prototype._evictUntrustedReadings=function(){for(var e=this._cache.getValues(),t=!1,n=0,r=e.length;n<r;n++){var i=e[n];i.isTrusted||(t=!0,this._cache.remove(i))}t&&this._onDidChange.fire()},t.prototype.readConfiguration=function(e){if(!this._cache.has(e)){var n=t._actualReadConfiguration(e);(n.typicalHalfwidthCharacterWidth<=2||n.typicalFullwidthCharacterWidth<=2||n.spaceWidth<=2||n.maxDigitWidth<=2)&&(n=new M_({zoomLevel:sh(),fontFamily:n.fontFamily,fontWeight:n.fontWeight,fontSize:n.fontSize,lineHeight:n.lineHeight,letterSpacing:n.letterSpacing,isMonospace:n.isMonospace,typicalHalfwidthCharacterWidth:Math.max(n.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(n.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:n.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(n.spaceWidth,5),maxDigitWidth:Math.max(n.maxDigitWidth,5)},!1)),this._writeToCache(e,n)}return this._cache.get(e)},t.createRequest=function(e,t,n,r){var i=new Jb(e,t);return n.push(i),r&&r.push(i),i},t._actualReadConfiguration=function(e){var t=[],n=[],r=this.createRequest("n",0,t,n),i=this.createRequest("m",0,t,null),o=this.createRequest(" ",0,t,n),s=this.createRequest("0",0,t,n),a=this.createRequest("1",0,t,n),u=this.createRequest("2",0,t,n),l=this.createRequest("3",0,t,n),c=this.createRequest("4",0,t,n),d=this.createRequest("5",0,t,n),h=this.createRequest("6",0,t,n),f=this.createRequest("7",0,t,n),p=this.createRequest("8",0,t,n),g=this.createRequest("9",0,t,n),m=this.createRequest("→",0,t,n),_=this.createRequest("→",0,t,null);this.createRequest("·",0,t,n),this.createRequest("|",0,t,n),this.createRequest("/",0,t,n),this.createRequest("-",0,t,n),this.createRequest("_",0,t,n),this.createRequest("i",0,t,n),this.createRequest("l",0,t,n),this.createRequest("m",0,t,n),this.createRequest("|",1,t,n),this.createRequest("_",1,t,n),this.createRequest("i",1,t,n),this.createRequest("l",1,t,n),this.createRequest("m",1,t,n),this.createRequest("n",1,t,n),this.createRequest("|",2,t,n),this.createRequest("_",2,t,n),this.createRequest("i",2,t,n),this.createRequest("l",2,t,n),this.createRequest("m",2,t,n),this.createRequest("n",2,t,n),function(e,t){new Qb(e,t).read()}(e,t);for(var y=Math.max(s.width,a.width,u.width,l.width,c.width,d.width,h.width,f.width,p.width,g.width),v=!0,b=n[0].width,w=1,C=n.length;w<C;w++){var S=b-n[w].width;if(S<-.001||S>.001){v=!1;break}}var x=!0;v&&_.width!==b&&(x=!1),_.width>m.width&&(x=!1);var L=oh.INSTANCE.getTimeSinceLastZoomLevelChanged()>2e3;return new M_({zoomLevel:sh(),fontFamily:e.fontFamily,fontWeight:e.fontWeight,fontSize:e.fontSize,lineHeight:e.lineHeight,letterSpacing:e.letterSpacing,isMonospace:v,typicalHalfwidthCharacterWidth:r.width,typicalFullwidthCharacterWidth:i.width,canUseHalfwidthRightwardsArrow:x,spaceWidth:o.width,maxDigitWidth:y},L)},t.INSTANCE=new t,t}(Ft),ow=function(e){function t(t,n,r,i){void 0===r&&(r=null);var o,s=e.call(this,t,n)||this;return s.accessibilityService=i,s._elementSizeObserver=s._register(new tw(r,(function(){return s._onReferenceDomElementSizeChanged()}))),s._register(iw.INSTANCE.onDidChange((function(){return s._onCSSBasedConfigurationChanged()}))),s._validatedOptions.automaticLayout&&s._elementSizeObserver.startObserving(),s._register((o=function(e){return s._recomputeOptions()},oh.INSTANCE.onDidChangeZoomLevel(o))),s._register(s.accessibilityService.onDidChangeAccessibilitySupport((function(){return s._recomputeOptions()}))),s._recomputeOptions(),s}return nw(t,e),t.applyFontInfoSlow=function(e,t){e.style.fontFamily=t.getMassagedFontFamily(),e.style.fontWeight=t.fontWeight,e.style.fontSize=t.fontSize+"px",e.style.lineHeight=t.lineHeight+"px",e.style.letterSpacing=t.letterSpacing+"px"},t.applyFontInfo=function(e,t){e.setFontFamily(t.getMassagedFontFamily()),e.setFontWeight(t.fontWeight),e.setFontSize(t.fontSize),e.setLineHeight(t.lineHeight),e.setLetterSpacing(t.letterSpacing)},t.prototype._onReferenceDomElementSizeChanged=function(){this._recomputeOptions()},t.prototype._onCSSBasedConfigurationChanged=function(){this._recomputeOptions()},t.prototype.observeReferenceElement=function(e){this._elementSizeObserver.observe(e)},t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype._getExtraEditorClassName=function(){var e="";return ph||gh||(e+="no-user-select "),nt.d&&(e+="mac "),e},t.prototype._getEnvConfiguration=function(){return{extraEditorClassName:this._getExtraEditorClassName(),outerWidth:this._elementSizeObserver.getWidth(),outerHeight:this._elementSizeObserver.getHeight(),emptySelectionClipboard:hh||dh,pixelRatio:oh.INSTANCE.getPixelRatio(),zoomLevel:sh(),accessibilitySupport:this.accessibilityService.getAccessibilitySupport()}},t.prototype.readConfiguration=function(e){return iw.INSTANCE.readConfiguration(e)},t}(Wv),sw=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),aw=function(){function e(e,t){this.x=e,this.y=t}return e.prototype.toClientCoordinates=function(){return new uw(this.x-gf.scrollX,this.y-gf.scrollY)},e}(),uw=function(){function e(e,t){this.clientX=e,this.clientY=t}return e.prototype.toPageCoordinates=function(){return new aw(this.clientX+gf.scrollX,this.clientY+gf.scrollY)},e}(),lw=function(e,t,n,r){this.x=e,this.y=t,this.width=n,this.height=r};function cw(e){var t=pf(e);return new lw(t.left,t.top,t.width,t.height)}var dw=function(e){function t(t,n){var r=e.call(this,t)||this;return r.pos=new aw(r.posx,r.posy),r.editorPos=cw(n),r}return sw(t,e),t}(Nh),hw=function(){function e(e){this._editorViewDomNode=e}return e.prototype._create=function(e){return new dw(e,this._editorViewDomNode)},e.prototype.onContextMenu=function(e,t){var n=this;return Gh(e,"contextmenu",(function(e){t(n._create(e))}))},e.prototype.onMouseUp=function(e,t){var n=this;return Gh(e,"mouseup",(function(e){t(n._create(e))}))},e.prototype.onMouseDown=function(e,t){var n=this;return Gh(e,"mousedown",(function(e){t(n._create(e))}))},e.prototype.onMouseLeave=function(e,t){var n=this;return Zh(e,(function(e){t(n._create(e))}))},e.prototype.onMouseMoveThrottled=function(e,t,n,r){var i=this;return cf(e,"mousemove",t,(function(e,t){return n(e,i._create(t))}),r)},e}(),fw=function(e){function t(t){var n=e.call(this)||this;return n._editorViewDomNode=t,n._globalMouseMoveMonitor=n._register(new Tp),n._keydownListener=null,n}return sw(t,e),t.prototype.startMonitoring=function(e,t,n){var r=this;this._keydownListener=$h(document,"keydown",(function(e){e.toKeybinding().isModifierKey()||r._globalMouseMoveMonitor.stopMonitoring(!0)}),!0);this._globalMouseMoveMonitor.startMonitoring((function(t,n){return e(t,new dw(n,r._editorViewDomNode))}),t,(function(){r._keydownListener.dispose(),n()}))},t}(Ft),pw=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),gw=function(e){function t(){var t=e.call(this)||this;return t._shouldRender=!0,t}return pw(t,e),t.prototype.shouldRender=function(){return this._shouldRender},t.prototype.forceShouldRender=function(){this._shouldRender=!0},t.prototype.setShouldRender=function(){this._shouldRender=!0},t.prototype.onDidRender=function(){this._shouldRender=!1},t.prototype.onConfigurationChanged=function(e){return!1},t.prototype.onCursorStateChanged=function(e){return!1},t.prototype.onDecorationsChanged=function(e){return!1},t.prototype.onFlushed=function(e){return!1},t.prototype.onFocusChanged=function(e){return!1},t.prototype.onLanguageConfigurationChanged=function(e){return!1},t.prototype.onLineMappingChanged=function(e){return!1},t.prototype.onLinesChanged=function(e){return!1},t.prototype.onLinesDeleted=function(e){return!1},t.prototype.onLinesInserted=function(e){return!1},t.prototype.onRevealRangeRequest=function(e){return!1},t.prototype.onScrollChanged=function(e){return!1},t.prototype.onTokensChanged=function(e){return!1},t.prototype.onTokensColorsChanged=function(e){return!1},t.prototype.onZonesChanged=function(e){return!1},t.prototype.onThemeChanged=function(e){return!1},t.prototype.handleEvents=function(e){for(var t=!1,n=0,r=e.length;n<r;n++){var i=e[n];switch(i.type){case 1:this.onConfigurationChanged(i)&&(t=!0);break;case 2:this.onCursorStateChanged(i)&&(t=!0);break;case 3:this.onDecorationsChanged(i)&&(t=!0);break;case 4:this.onFlushed(i)&&(t=!0);break;case 5:this.onFocusChanged(i)&&(t=!0);break;case 16:this.onLanguageConfigurationChanged(i)&&(t=!0);break;case 6:this.onLineMappingChanged(i)&&(t=!0);break;case 7:this.onLinesChanged(i)&&(t=!0);break;case 8:this.onLinesDeleted(i)&&(t=!0);break;case 9:this.onLinesInserted(i)&&(t=!0);break;case 10:this.onRevealRangeRequest(i)&&(t=!0);break;case 11:this.onScrollChanged(i)&&(t=!0);break;case 12:this.onTokensChanged(i)&&(t=!0);break;case 13:this.onTokensColorsChanged(i)&&(t=!0);break;case 14:this.onZonesChanged(i)&&(t=!0);break;case 15:this.onThemeChanged(i)&&(t=!0);break;default:console.info("View received unknown event: "),console.info(i)}}t&&(this._shouldRender=!0)},t}(Ft),mw=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_w=function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._context.addEventHandler(n),n}return mw(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),e.prototype.dispose.call(this)},t}(gw),yw=function(){function e(){}return e.write=function(e,t){e.setAttribute("data-mprt",String(t))},e.read=function(e){var t=e.getAttribute("data-mprt");return null===t?0:parseInt(t,10)},e.collect=function(e,t){for(var n=[],r=0;e&&e!==document.body&&e!==t;)e.nodeType===e.ELEMENT_NODE&&(n[r++]=this.read(e)),e=e.parentElement;for(var i=new Uint8Array(r),o=0;o<r;o++)i[o]=n[r-o-1];return i},e}(),vw=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),bw=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i._viewLines=r,i}return vw(t,e),t.prototype.linesVisibleRangesForRange=function(e,t){return this._viewLines.linesVisibleRangesForRange(e,t)},t.prototype.visibleRangeForPosition=function(e){return this._viewLines.visibleRangeForPosition(e)},t}(function(){function e(e,t){this._viewLayout=e,this.viewportData=t,this.scrollWidth=this._viewLayout.getScrollWidth(),this.scrollHeight=this._viewLayout.getScrollHeight(),this.visibleRange=this.viewportData.visibleRange,this.bigNumbersDelta=this.viewportData.bigNumbersDelta;var n=this._viewLayout.getCurrentViewport();this.scrollTop=n.top,this.scrollLeft=n.left,this.viewportWidth=n.width,this.viewportHeight=n.height}return e.prototype.getScrolledTopFromAbsoluteTop=function(e){return e-this.scrollTop},e.prototype.getVerticalOffsetForLineNumber=function(e){return this._viewLayout.getVerticalOffsetForLineNumber(e)},e.prototype.getDecorationsInViewport=function(){return this.viewportData.getDecorationsInViewport()},e}()),ww=function(e,t){this.lineNumber=e,this.ranges=t},Cw=function(){function e(e,t){this.left=Math.round(e),this.width=Math.round(t)}return e.prototype.toString=function(){return"["+this.left+","+this.width+"]"},e}(),Sw=function(){function e(e,t){this.left=e,this.width=t}return e.prototype.toString=function(){return"["+this.left+","+this.width+"]"},e.compare=function(e,t){return e.left-t.left},e}(),xw=function(){function e(){}return e._createRange=function(){return this._handyReadyRange||(this._handyReadyRange=document.createRange()),this._handyReadyRange},e._detachRange=function(e,t){e.selectNodeContents(t)},e._readClientRects=function(e,t,n,r,i){var o=this._createRange();try{return o.setStart(e,t),o.setEnd(n,r),o.getClientRects()}catch(e){return null}finally{this._detachRange(o,i)}},e._mergeAdjacentRanges=function(e){if(1===e.length)return[new Cw(e[0].left,e[0].width)];e.sort(Sw.compare);for(var t=[],n=0,r=e[0].left,i=e[0].width,o=1,s=e.length;o<s;o++){var a=e[o],u=a.left,l=a.width;r+i+.9>=u?i=Math.max(i,u+l-r):(t[n++]=new Cw(r,i),r=u,i=l)}return t[n++]=new Cw(r,i),t},e._createHorizontalRangesFromClientRects=function(e,t){if(!e||0===e.length)return null;for(var n=[],r=0,i=e.length;r<i;r++){var o=e[r];n[r]=new Sw(Math.max(0,o.left-t),o.width)}return this._mergeAdjacentRanges(n)},e.readHorizontalRanges=function(e,t,n,r,i,o,s){var a=e.children.length-1;if(0>a)return null;(t=Math.min(a,Math.max(0,t)))!==(r=Math.min(a,Math.max(0,r)))&&r>0&&0===i&&(r--,i=1073741824);var u=e.children[t].firstChild,l=e.children[r].firstChild;if(u&&l||(!u&&0===n&&t>0&&(u=e.children[t-1].firstChild,n=1073741824),!l&&0===i&&r>0&&(l=e.children[r-1].firstChild,i=1073741824)),!u||!l)return null;n=Math.min(u.textContent.length,Math.max(0,n)),i=Math.min(l.textContent.length,Math.max(0,i));var c=this._readClientRects(u,n,l,i,s);return this._createHorizontalRangesFromClientRects(c,o)},e}(),Lw=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),kw=!!nt.e||!(nt.c||dh||ph),Mw=ch,Dw=function(){function e(e,t){this._domNode=e,this._clientRectDeltaLeft=0,this._clientRectDeltaLeftRead=!1,this.endNode=t}return Object.defineProperty(e.prototype,"clientRectDeltaLeft",{get:function(){return this._clientRectDeltaLeftRead||(this._clientRectDeltaLeftRead=!0,this._clientRectDeltaLeft=this._domNode.getBoundingClientRect().left),this._clientRectDeltaLeft},enumerable:!0,configurable:!0}),e}(),Ew=function(){function e(e,t){this.themeType=t,this.renderWhitespace=e.editor.viewInfo.renderWhitespace,this.renderControlCharacters=e.editor.viewInfo.renderControlCharacters,this.spaceWidth=e.editor.fontInfo.spaceWidth,this.useMonospaceOptimizations=e.editor.fontInfo.isMonospace&&!e.editor.viewInfo.disableMonospaceOptimizations,this.canUseHalfwidthRightwardsArrow=e.editor.fontInfo.canUseHalfwidthRightwardsArrow,this.lineHeight=e.editor.lineHeight,this.stopRenderingLineAfter=e.editor.viewInfo.stopRenderingLineAfter,this.fontLigatures=e.editor.viewInfo.fontLigatures}return e.prototype.equals=function(e){return this.themeType===e.themeType&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.spaceWidth===e.spaceWidth&&this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineHeight===e.lineHeight&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.fontLigatures===e.fontLigatures},e}(),Tw=function(){function e(e){this._options=e,this._isMaybeInvalid=!0,this._renderedViewLine=null}return e.prototype.getDomNode=function(){return this._renderedViewLine&&this._renderedViewLine.domNode?this._renderedViewLine.domNode.domNode:null},e.prototype.setDomNode=function(e){if(!this._renderedViewLine)throw new Error("I have no rendered view line to set the dom node to...");this._renderedViewLine.domNode=Dp(e)},e.prototype.onContentChanged=function(){this._isMaybeInvalid=!0},e.prototype.onTokensChanged=function(){this._isMaybeInvalid=!0},e.prototype.onDecorationsChanged=function(){this._isMaybeInvalid=!0},e.prototype.onOptionsChanged=function(e){this._isMaybeInvalid=!0,this._options=e},e.prototype.onSelectionChanged=function(){return!(!Mw&&this._options.themeType!==Fd&&"selection"!==this._options.renderWhitespace)&&(this._isMaybeInvalid=!0,!0)},e.prototype.renderLine=function(t,n,r,i){if(!1===this._isMaybeInvalid)return!1;this._isMaybeInvalid=!1;var o=r.getViewLineRenderingData(t),s=this._options,a=Oy.filter(o.inlineDecorations,t,o.minColumn,o.maxColumn),u=null;if(Mw||s.themeType===Fd||"selection"===this._options.renderWhitespace)for(var l=0,c=r.selections;l<c.length;l++){var d=c[l];if(!(d.endLineNumber<t||d.startLineNumber>t)){var h=d.startLineNumber===t?d.startColumn:o.minColumn,f=d.endLineNumber===t?d.endColumn:o.maxColumn;h<f&&("selection"!==this._options.renderWhitespace?a.push(new Oy(h,f,"inline-selected-text",0)):(u||(u=[]),u.push(new Fy(h-1,f-1))))}}var p=new Yy(s.useMonospaceOptimizations,s.canUseHalfwidthRightwardsArrow,o.content,o.continuesWithWrappedLine,o.isBasicASCII,o.containsRTL,o.minColumn-1,o.tokens,a,o.tabSize,s.spaceWidth,s.stopRenderingLineAfter,s.renderWhitespace,s.renderControlCharacters,s.fontLigatures,u);if(this._renderedViewLine&&this._renderedViewLine.input.equals(p))return!1;i.appendASCIIString('<div style="top:'),i.appendASCIIString(String(n)),i.appendASCIIString("px;height:"),i.appendASCIIString(String(this._options.lineHeight)),i.appendASCIIString('px;" class="'),i.appendASCIIString(e.CLASS_NAME),i.appendASCIIString('">');var g=Wy(p,i);i.appendASCIIString("</div>");var m=null;return kw&&o.isBasicASCII&&s.useMonospaceOptimizations&&0===g.containsForeignElements&&o.content.length<300&&p.lineTokens.getCount()<100&&(m=new Nw(this._renderedViewLine?this._renderedViewLine.domNode:null,p,g.characterMapping)),m||(m=Iw(this._renderedViewLine?this._renderedViewLine.domNode:null,p,g.characterMapping,g.containsRTL,g.containsForeignElements)),this._renderedViewLine=m,!0},e.prototype.layoutLine=function(e,t){this._renderedViewLine&&this._renderedViewLine.domNode&&(this._renderedViewLine.domNode.setTop(t),this._renderedViewLine.domNode.setHeight(this._options.lineHeight))},e.prototype.getWidth=function(){return this._renderedViewLine?this._renderedViewLine.getWidth():0},e.prototype.getWidthIsFast=function(){return!this._renderedViewLine||this._renderedViewLine.getWidthIsFast()},e.prototype.getVisibleRangesForRange=function(e,t,n){if(!this._renderedViewLine)return null;e|=0,t|=0,e=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,e)),t=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,t));var r=0|this._renderedViewLine.input.stopRenderingLineAfter;return-1!==r&&e>r&&t>r?null:(-1!==r&&e>r&&(e=r),-1!==r&&t>r&&(t=r),this._renderedViewLine.getVisibleRangesForRange(e,t,n))},e.prototype.getColumnOfNodeOffset=function(e,t,n){return this._renderedViewLine?this._renderedViewLine.getColumnOfNodeOffset(e,t,n):1},e.CLASS_NAME="view-line",e}(),Nw=function(){function e(e,t,n){this.domNode=e,this.input=t,this._characterMapping=n,this._charWidth=t.spaceWidth}return e.prototype.getWidth=function(){return this._getCharPosition(this._characterMapping.length)},e.prototype.getWidthIsFast=function(){return!0},e.prototype.getVisibleRangesForRange=function(e,t,n){var r=this._getCharPosition(e),i=this._getCharPosition(t);return[new Cw(r,i-r)]},e.prototype._getCharPosition=function(e){var t=this._characterMapping.getAbsoluteOffsets();return 0===t.length?0:Math.round(this._charWidth*t[e-1])},e.prototype.getColumnOfNodeOffset=function(e,t,n){for(var r=t.textContent.length,i=-1;t;)t=t.previousSibling,i++;return this._characterMapping.partDataToCharOffset(i,r,n)+1},e}(),Ow=function(){function e(e,t,n,r,i){if(this.domNode=e,this.input=t,this._characterMapping=n,this._isWhitespaceOnly=/^\s*$/.test(t.lineContent),this._containsForeignElements=i,this._cachedWidth=-1,this._pixelOffsetCache=null,!r||0===this._characterMapping.length){this._pixelOffsetCache=new Int32Array(Math.max(2,this._characterMapping.length+1));for(var o=0,s=this._characterMapping.length;o<=s;o++)this._pixelOffsetCache[o]=-1}}return e.prototype._getReadingTarget=function(){return this.domNode.domNode.firstChild},e.prototype.getWidth=function(){return-1===this._cachedWidth&&(this._cachedWidth=this._getReadingTarget().offsetWidth),this._cachedWidth},e.prototype.getWidthIsFast=function(){return-1!==this._cachedWidth},e.prototype.getVisibleRangesForRange=function(e,t,n){if(null!==this._pixelOffsetCache){var r=this._readPixelOffset(e,n);if(-1===r)return null;var i=this._readPixelOffset(t,n);return-1===i?null:[new Cw(r,i-r)]}return this._readVisibleRangesForRange(e,t,n)},e.prototype._readVisibleRangesForRange=function(e,t,n){if(e===t){var r=this._readPixelOffset(e,n);return-1===r?null:[new Cw(r,0)]}return this._readRawVisibleRangesForRange(e,t,n)},e.prototype._readPixelOffset=function(e,t){if(0===this._characterMapping.length){if(0===this._containsForeignElements)return 0;if(2===this._containsForeignElements)return 0;if(1===this._containsForeignElements)return this.getWidth()}if(null!==this._pixelOffsetCache){var n=this._pixelOffsetCache[e];if(-1!==n)return n;var r=this._actualReadPixelOffset(e,t);return this._pixelOffsetCache[e]=r,r}return this._actualReadPixelOffset(e,t)},e.prototype._actualReadPixelOffset=function(e,t){if(0===this._characterMapping.length){var n=xw.readHorizontalRanges(this._getReadingTarget(),0,0,0,0,t.clientRectDeltaLeft,t.endNode);return n&&0!==n.length?n[0].left:-1}if(e===this._characterMapping.length&&this._isWhitespaceOnly&&0===this._containsForeignElements)return this.getWidth();var r=this._characterMapping.charOffsetToPartData(e-1),i=jy.getPartIndex(r),o=jy.getCharIndex(r),s=xw.readHorizontalRanges(this._getReadingTarget(),i,o,i,o,t.clientRectDeltaLeft,t.endNode);return s&&0!==s.length?s[0].left:-1},e.prototype._readRawVisibleRangesForRange=function(e,t,n){if(1===e&&t===this._characterMapping.length)return[new Cw(0,this.getWidth())];var r=this._characterMapping.charOffsetToPartData(e-1),i=jy.getPartIndex(r),o=jy.getCharIndex(r),s=this._characterMapping.charOffsetToPartData(t-1),a=jy.getPartIndex(s),u=jy.getCharIndex(s);return xw.readHorizontalRanges(this._getReadingTarget(),i,o,a,u,n.clientRectDeltaLeft,n.endNode)},e.prototype.getColumnOfNodeOffset=function(e,t,n){for(var r=t.textContent.length,i=-1;t;)t=t.previousSibling,i++;return this._characterMapping.partDataToCharOffset(i,r,n)+1},e}(),Aw=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Lw(t,e),t.prototype._readVisibleRangesForRange=function(t,n,r){var i=e.prototype._readVisibleRangesForRange.call(this,t,n,r);if(!i||0===i.length||t===n||1===t&&n===this._characterMapping.length)return i;if(!this.input.containsRTL){var o=this._readPixelOffset(n,r);if(-1!==o){var s=i[i.length-1];s.left<o&&(s.width=o-s.left)}}return i},t}(Ow),Iw=hh?Pw:Rw;function Pw(e,t,n,r,i){return new Aw(e,t,n,r,i)}function Rw(e,t,n,r,i){return new Ow(e,t,n,r,i)}var Fw=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Yw=function(){function e(e,t,n,r,i,o){void 0===n&&(n=0),void 0===r&&(r=null),void 0===i&&(i=null),void 0===o&&(o=null),this.element=e,this.type=t,this.mouseColumn=n,this.position=r,!i&&r&&(i=new Yr(r.lineNumber,r.column,r.lineNumber,r.column)),this.range=i,this.detail=o}return e._typeToString=function(e){return 1===e?"TEXTAREA":2===e?"GUTTER_GLYPH_MARGIN":3===e?"GUTTER_LINE_NUMBERS":4===e?"GUTTER_LINE_DECORATIONS":5===e?"GUTTER_VIEW_ZONE":6===e?"CONTENT_TEXT":7===e?"CONTENT_EMPTY":8===e?"CONTENT_VIEW_ZONE":9===e?"CONTENT_WIDGET":10===e?"OVERVIEW_RULER":11===e?"SCROLLBAR":12===e?"OVERLAY_WIDGET":"UNKNOWN"},e.toString=function(e){return this._typeToString(e.type)+": "+e.position+" - "+e.range+" - "+e.detail},e.prototype.toString=function(){return e.toString(this)},e}(),jw=function(){function e(){}return e.isTextArea=function(e){return 2===e.length&&3===e[0]&&6===e[1]},e.isChildOfViewLines=function(e){return e.length>=4&&3===e[0]&&7===e[3]},e.isStrictChildOfViewLines=function(e){return e.length>4&&3===e[0]&&7===e[3]},e.isChildOfScrollableElement=function(e){return e.length>=2&&3===e[0]&&5===e[1]},e.isChildOfMinimap=function(e){return e.length>=2&&3===e[0]&&8===e[1]},e.isChildOfContentWidgets=function(e){return e.length>=4&&3===e[0]&&1===e[3]},e.isChildOfOverflowingContentWidgets=function(e){return e.length>=1&&2===e[0]},e.isChildOfOverlayWidgets=function(e){return e.length>=2&&3===e[0]&&4===e[1]},e}(),Bw=function(){function e(e,t,n){this.model=e.model,this.layoutInfo=e.configuration.editor.layoutInfo,this.viewDomNode=t.viewDomNode,this.lineHeight=e.configuration.editor.lineHeight,this.typicalHalfwidthCharacterWidth=e.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,this.lastViewCursorsRenderData=n,this._context=e,this._viewHelper=t}return e.prototype.getZoneAtCoord=function(t){return e.getZoneAtCoord(this._context,t)},e.getZoneAtCoord=function(e,t){var n=e.viewLayout.getWhitespaceAtVerticalOffset(t);if(n){var r=n.verticalOffset+n.height/2,i=e.model.getLineCount(),o=null,s=void 0,a=null;return n.afterLineNumber!==i&&(a=new Lt(n.afterLineNumber+1,1)),n.afterLineNumber>0&&(o=new Lt(n.afterLineNumber,e.model.getLineMaxColumn(n.afterLineNumber))),s=null===a?o:null===o?a:t<r?o:a,{viewZoneId:n.id,afterLineNumber:n.afterLineNumber,positionBefore:o,positionAfter:a,position:s}}return null},e.prototype.getFullLineRangeAtCoord=function(e){if(this._context.viewLayout.isAfterLines(e)){var t=this._context.model.getLineCount(),n=this._context.model.getLineMaxColumn(t);return{range:new Yr(t,n,t,n),isAfterLines:!0}}var r=this._context.viewLayout.getLineNumberAtVerticalOffset(e),i=this._context.model.getLineMaxColumn(r);return{range:new Yr(r,1,r,i),isAfterLines:!1}},e.prototype.getLineNumberAtVerticalOffset=function(e){return this._context.viewLayout.getLineNumberAtVerticalOffset(e)},e.prototype.isAfterLines=function(e){return this._context.viewLayout.isAfterLines(e)},e.prototype.getVerticalOffsetForLineNumber=function(e){return this._context.viewLayout.getVerticalOffsetForLineNumber(e)},e.prototype.findAttribute=function(t,n){return e._findAttribute(t,n,this._viewHelper.viewDomNode)},e._findAttribute=function(e,t,n){for(;e&&e!==document.body;){if(e.hasAttribute&&e.hasAttribute(t))return e.getAttribute(t);if(e===n)return null;e=e.parentNode}return null},e.prototype.getLineWidth=function(e){return this._viewHelper.getLineWidth(e)},e.prototype.visibleRangeForPosition2=function(e,t){return this._viewHelper.visibleRangeForPosition2(e,t)},e.prototype.getPositionFromDOMInfo=function(e,t){return this._viewHelper.getPositionFromDOMInfo(e,t)},e.prototype.getCurrentScrollTop=function(){return this._context.viewLayout.getCurrentScrollTop()},e.prototype.getCurrentScrollLeft=function(){return this._context.viewLayout.getCurrentScrollLeft()},e}(),Ww=function(e){function t(t,n,r,i){var o=e.call(this,t,n,r)||this;return o._ctx=t,i?(o.target=i,o.targetPath=yw.collect(i,t.viewDomNode)):(o.target=null,o.targetPath=new Uint8Array(0)),o}return Fw(t,e),t.prototype.toString=function(){return"pos("+this.pos.x+","+this.pos.y+"), editorPos("+this.editorPos.x+","+this.editorPos.y+"), mouseVerticalOffset: "+this.mouseVerticalOffset+", mouseContentHorizontalOffset: "+this.mouseContentHorizontalOffset+"\n\ttarget: "+(this.target?this.target.outerHTML:null)},t.prototype.fulfill=function(e,t,n,r){void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null);var i=this.mouseColumn;return t&&t.column<this._ctx.model.getLineMaxColumn(t.lineNumber)&&(i=sl.visibleColumnFromColumn(this._ctx.model.getLineContent(t.lineNumber),t.column,this._ctx.model.getOptions().tabSize)+1),new Yw(this.target,e,i,t,n,r)},t.prototype.withTarget=function(e){return new t(this._ctx,this.editorPos,this.pos,e)},t}((function(e,t,n){this.editorPos=t,this.pos=n,this.mouseVerticalOffset=Math.max(0,e.getCurrentScrollTop()+n.y-t.y),this.mouseContentHorizontalOffset=e.getCurrentScrollLeft()+n.x-t.x-e.layoutInfo.contentLeft,this.isInMarginArea=n.x-t.x<e.layoutInfo.contentLeft&&n.x-t.x>=e.layoutInfo.glyphMarginLeft,this.isInContentArea=!this.isInMarginArea,this.mouseColumn=Math.max(0,zw._getMouseColumn(this.mouseContentHorizontalOffset,e.typicalHalfwidthCharacterWidth))})),Hw={isAfterLines:!0};function Vw(e){return{isAfterLines:!1,horizontalDistanceToText:e}}var zw=function(){function e(e,t){this._context=e,this._viewHelper=t}return e.prototype.mouseTargetIsWidget=function(e){var t=e.target,n=yw.collect(t,this._viewHelper.viewDomNode);return!(!jw.isChildOfContentWidgets(n)&&!jw.isChildOfOverflowingContentWidgets(n))||!!jw.isChildOfOverlayWidgets(n)},e.prototype.createMouseTarget=function(t,n,r,i){var o=new Bw(this._context,this._viewHelper,t),s=new Ww(o,n,r,i);try{return e._createMouseTarget(o,s,!1)}catch(e){return s.fulfill(0)}},e._createMouseTarget=function(t,n,r){if(null===n.target){if(r)return n.fulfill(0);var i=e._doHitTest(t,n);return i.position?e.createMouseTargetFromHitTestPosition(t,n,i.position.lineNumber,i.position.column):this._createMouseTarget(t,n.withTarget(i.hitTarget),!0)}var o=n,s=null;return(s=(s=(s=(s=(s=(s=(s=(s=(s=(s=s||e._hitTestContentWidget(t,o))||e._hitTestOverlayWidget(t,o))||e._hitTestMinimap(t,o))||e._hitTestScrollbarSlider(t,o))||e._hitTestViewZone(t,o))||e._hitTestMargin(t,o))||e._hitTestViewCursor(t,o))||e._hitTestTextArea(t,o))||e._hitTestViewLines(t,o,r))||e._hitTestScrollbar(t,o))||n.fulfill(0)},e._hitTestContentWidget=function(e,t){if(jw.isChildOfContentWidgets(t.targetPath)||jw.isChildOfOverflowingContentWidgets(t.targetPath)){var n=e.findAttribute(t.target,"widgetId");return n?t.fulfill(9,null,null,n):t.fulfill(0)}return null},e._hitTestOverlayWidget=function(e,t){if(jw.isChildOfOverlayWidgets(t.targetPath)){var n=e.findAttribute(t.target,"widgetId");return n?t.fulfill(12,null,null,n):t.fulfill(0)}return null},e._hitTestViewCursor=function(e,t){if(t.target)for(var n=0,r=o=e.lastViewCursorsRenderData;n<r.length;n++){var i=r[n];if(t.target===i.domNode)return t.fulfill(6,i.position)}if(t.isInContentArea)for(var o=e.lastViewCursorsRenderData,s=t.mouseContentHorizontalOffset,a=t.mouseVerticalOffset,u=0,l=o;u<l.length;u++){if(!(s<(i=l[u]).contentLeft)&&!(s>i.contentLeft+i.width)){var c=e.getVerticalOffsetForLineNumber(i.position.lineNumber);if(c<=a&&a<=c+i.height)return t.fulfill(6,i.position)}}return null},e._hitTestViewZone=function(e,t){var n=e.getZoneAtCoord(t.mouseVerticalOffset);if(n){var r=t.isInContentArea?8:5;return t.fulfill(r,n.position,null,n)}return null},e._hitTestTextArea=function(e,t){return jw.isTextArea(t.targetPath)?t.fulfill(1):null},e._hitTestMargin=function(e,t){if(t.isInMarginArea){var n=e.getFullLineRangeAtCoord(t.mouseVerticalOffset),r=n.range.getStartPosition(),i=Math.abs(t.pos.x-t.editorPos.x),o={isAfterLines:n.isAfterLines,glyphMarginLeft:e.layoutInfo.glyphMarginLeft,glyphMarginWidth:e.layoutInfo.glyphMarginWidth,lineNumbersWidth:e.layoutInfo.lineNumbersWidth,offsetX:i};return(i-=e.layoutInfo.glyphMarginLeft)<=e.layoutInfo.glyphMarginWidth?t.fulfill(2,r,n.range,o):(i-=e.layoutInfo.glyphMarginWidth)<=e.layoutInfo.lineNumbersWidth?t.fulfill(3,r,n.range,o):(i-=e.layoutInfo.lineNumbersWidth,t.fulfill(4,r,n.range,o))}return null},e._hitTestViewLines=function(t,n,r){if(!jw.isChildOfViewLines(n.targetPath))return null;if(t.isAfterLines(n.mouseVerticalOffset)){var i=t.model.getLineCount(),o=t.model.getLineMaxColumn(i);return n.fulfill(7,new Lt(i,o),void 0,Hw)}if(r){if(jw.isStrictChildOfViewLines(n.targetPath)){var s=t.getLineNumberAtVerticalOffset(n.mouseVerticalOffset);if(0===t.model.getLineLength(s)){var a=t.getLineWidth(s),u=Vw(n.mouseContentHorizontalOffset-a);return n.fulfill(7,new Lt(s,1),void 0,u)}}return n.fulfill(0)}var l=e._doHitTest(t,n);return l.position?e.createMouseTargetFromHitTestPosition(t,n,l.position.lineNumber,l.position.column):this._createMouseTarget(t,n.withTarget(l.hitTarget),!0)},e._hitTestMinimap=function(e,t){if(jw.isChildOfMinimap(t.targetPath)){var n=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),r=e.model.getLineMaxColumn(n);return t.fulfill(11,new Lt(n,r))}return null},e._hitTestScrollbarSlider=function(e,t){if(jw.isChildOfScrollableElement(t.targetPath)&&t.target&&1===t.target.nodeType){var n=t.target.className;if(n&&/\b(slider|scrollbar)\b/.test(n)){var r=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),i=e.model.getLineMaxColumn(r);return t.fulfill(11,new Lt(r,i))}}return null},e._hitTestScrollbar=function(e,t){if(jw.isChildOfScrollableElement(t.targetPath)){var n=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),r=e.model.getLineMaxColumn(n);return t.fulfill(11,new Lt(n,r))}return null},e.prototype.getMouseColumn=function(t,n){var r=this._context.configuration.editor.layoutInfo,i=this._context.viewLayout.getCurrentScrollLeft()+n.x-t.x-r.contentLeft;return e._getMouseColumn(i,this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth)},e._getMouseColumn=function(e,t){return e<0?1:Math.round(e/t)+1},e.createMouseTargetFromHitTestPosition=function(e,t,n,r){var i=new Lt(n,r),o=e.getLineWidth(n);if(t.mouseContentHorizontalOffset>o){if(lh&&1===i.column){var s=Vw(t.mouseContentHorizontalOffset-o);return t.fulfill(7,new Lt(n,e.model.getLineMaxColumn(n)),void 0,s)}var a=Vw(t.mouseContentHorizontalOffset-o);return t.fulfill(7,i,void 0,a)}var u=e.visibleRangeForPosition2(n,r);if(!u)return t.fulfill(0,i);var l=u.left;if(t.mouseContentHorizontalOffset===l)return t.fulfill(6,i);var c=[];if(c.push({offset:u.left,column:r}),r>1){var d=e.visibleRangeForPosition2(n,r-1);d&&c.push({offset:d.left,column:r-1})}if(r<e.model.getLineMaxColumn(n)){var h=e.visibleRangeForPosition2(n,r+1);h&&c.push({offset:h.left,column:r+1})}c.sort((function(e,t){return e.offset-t.offset}));for(var f=1;f<c.length;f++){var p=c[f-1],g=c[f];if(p.offset<=t.mouseContentHorizontalOffset&&t.mouseContentHorizontalOffset<=g.offset){var m=new Yr(n,p.column,n,g.column);return t.fulfill(6,i,m)}}return t.fulfill(6,i)},e._doHitTestWithCaretRangeFromPoint=function(e,t){var n=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),r=e.getVerticalOffsetForLineNumber(n)+Math.floor(e.lineHeight/2),i=t.pos.y+(r-t.mouseVerticalOffset);i<=t.editorPos.y&&(i=t.editorPos.y+1),i>=t.editorPos.y+e.layoutInfo.height&&(i=t.editorPos.y+e.layoutInfo.height-1);var o=new aw(t.pos.x,i),s=this._actualDoHitTestWithCaretRangeFromPoint(e,o.toClientCoordinates());return s.position?s:this._actualDoHitTestWithCaretRangeFromPoint(e,t.pos.toClientCoordinates())},e._actualDoHitTestWithCaretRangeFromPoint=function(e,t){var n=document.caretRangeFromPoint(t.clientX,t.clientY);if(!n||!n.startContainer)return{position:null,hitTarget:null};var r=n.startContainer,i=null;if(r.nodeType===r.TEXT_NODE){var o=(a=(s=r.parentNode)?s.parentNode:null)?a.parentNode:null;if((o&&o.nodeType===o.ELEMENT_NODE?o.className:null)===Tw.CLASS_NAME)return{position:e.getPositionFromDOMInfo(s,n.startOffset),hitTarget:null};i=r.parentNode}else if(r.nodeType===r.ELEMENT_NODE){var s,a;if(((a=(s=r.parentNode)?s.parentNode:null)&&a.nodeType===a.ELEMENT_NODE?a.className:null)===Tw.CLASS_NAME)return{position:e.getPositionFromDOMInfo(r,r.textContent.length),hitTarget:null};i=r}return{position:null,hitTarget:i}},e._doHitTestWithCaretPositionFromPoint=function(e,t){var n=document.caretPositionFromPoint(t.clientX,t.clientY);if(n.offsetNode.nodeType===n.offsetNode.TEXT_NODE){var r=n.offsetNode.parentNode,i=r?r.parentNode:null,o=i?i.parentNode:null;return(o&&o.nodeType===o.ELEMENT_NODE?o.className:null)===Tw.CLASS_NAME?{position:e.getPositionFromDOMInfo(n.offsetNode.parentNode,n.offset),hitTarget:null}:{position:null,hitTarget:n.offsetNode.parentNode}}return{position:null,hitTarget:n.offsetNode}},e._doHitTestWithMoveToPoint=function(e,t){var n=null,r=null,i=document.body.createTextRange();try{i.moveToPoint(t.clientX,t.clientY)}catch(e){return{position:null,hitTarget:null}}i.collapse(!0);var o=i?i.parentElement():null,s=o?o.parentNode:null,a=s?s.parentNode:null;if((a&&a.nodeType===a.ELEMENT_NODE?a.className:"")===Tw.CLASS_NAME){var u=i.duplicate();u.moveToElementText(o),u.setEndPoint("EndToStart",i),n=e.getPositionFromDOMInfo(o,u.text.length),u.moveToElementText(e.viewDomNode)}else r=o;return i.moveToElementText(e.viewDomNode),{position:n,hitTarget:r}},e._doHitTest=function(e,t){return document.caretRangeFromPoint?this._doHitTestWithCaretRangeFromPoint(e,t):document.caretPositionFromPoint?this._doHitTestWithCaretPositionFromPoint(e,t.pos.toClientCoordinates()):document.body.createTextRange?this._doHitTestWithMoveToPoint(e,t.pos.toClientCoordinates()):{position:null,hitTarget:null}},e}(),Uw=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function qw(e){return function(t,n){var r=!1;return e&&(r=e.mouseTargetIsWidget(n)),r||n.preventDefault(),n}}var Kw=function(e){function t(n,r,i){var o=e.call(this)||this;o._isFocused=!1,o._context=n,o.viewController=r,o.viewHelper=i,o.mouseTargetFactory=new zw(o._context,i),o._mouseDownOperation=o._register(new Gw(o._context,o.viewController,o.viewHelper,(function(e,t){return o._createMouseTarget(e,t)}),(function(e){return o._getMouseColumn(e)}))),o._asyncFocus=o._register(new As((function(){return o.viewHelper.focusTextArea()}),0)),o.lastMouseLeaveTime=-1;var s=new hw(o.viewHelper.viewDomNode);o._register(s.onContextMenu(o.viewHelper.viewDomNode,(function(e){return o._onContextMenu(e,!0)}))),o._register(s.onMouseMoveThrottled(o.viewHelper.viewDomNode,(function(e){return o._onMouseMove(e)}),qw(o.mouseTargetFactory),t.MOUSE_MOVE_MINIMUM_TIME)),o._register(s.onMouseUp(o.viewHelper.viewDomNode,(function(e){return o._onMouseUp(e)}))),o._register(s.onMouseLeave(o.viewHelper.viewDomNode,(function(e){return o._onMouseLeave(e)}))),o._register(s.onMouseDown(o.viewHelper.viewDomNode,(function(e){return o._onMouseDown(e)})));return o._register(Gh(o.viewHelper.viewDomNode,ch?"mousewheel":"wheel",(function(e){if(o.viewController.emitMouseWheel(e),o._context.configuration.editor.viewInfo.mouseWheelZoom){var t=new Oh(e);if(t.browserEvent.ctrlKey||t.browserEvent.metaKey){var n=b_.getZoomLevel(),r=t.deltaY>0?1:-1;b_.setZoomLevel(n+r),t.preventDefault(),t.stopPropagation()}}}),!0)),o._context.addEventHandler(o),o}return Uw(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),e.prototype.dispose.call(this)},t.prototype.onCursorStateChanged=function(e){return this._mouseDownOperation.onCursorStateChanged(e),!1},t.prototype.onFocusChanged=function(e){return this._isFocused=e.isFocused,!1},t.prototype.onScrollChanged=function(e){return this._mouseDownOperation.onScrollChanged(),!1},t.prototype.getTargetAtClientPoint=function(e,t){var n=new uw(e,t).toPageCoordinates(),r=cw(this.viewHelper.viewDomNode);if(n.y<r.y||n.y>r.y+r.height||n.x<r.x||n.x>r.x+r.width)return null;var i=this.viewHelper.getLastViewCursorsRenderData();return this.mouseTargetFactory.createMouseTarget(i,r,n,null)},t.prototype._createMouseTarget=function(e,t){var n=this.viewHelper.getLastViewCursorsRenderData();return this.mouseTargetFactory.createMouseTarget(n,e.editorPos,e.pos,t?e.target:null)},t.prototype._getMouseColumn=function(e){return this.mouseTargetFactory.getMouseColumn(e.editorPos,e.pos)},t.prototype._onContextMenu=function(e,t){this.viewController.emitContextMenu({event:e,target:this._createMouseTarget(e,t)})},t.prototype._onMouseMove=function(e){this._mouseDownOperation.isActive()||(e.timestamp<this.lastMouseLeaveTime||this.viewController.emitMouseMove({event:e,target:this._createMouseTarget(e,!0)}))},t.prototype._onMouseLeave=function(e){this.lastMouseLeaveTime=(new Date).getTime(),this.viewController.emitMouseLeave({event:e,target:null})},t.prototype._onMouseUp=function(e){this.viewController.emitMouseUp({event:e,target:this._createMouseTarget(e,!0)})},t.prototype._onMouseDown=function(e){var t=this,n=this._createMouseTarget(e,!0),r=6===n.type||7===n.type,i=2===n.type||3===n.type||4===n.type,o=3===n.type,s=this._context.configuration.editor.viewInfo.selectOnLineNumbers,a=8===n.type||5===n.type,u=9===n.type,l=e.leftButton||e.middleButton;nt.d&&e.leftButton&&e.ctrlKey&&(l=!1);var c=function(){uh&&!t._isFocused?t._asyncFocus.schedule():(e.preventDefault(),t.viewHelper.focusTextArea())};if(l&&(r||o&&s))c(),this._mouseDownOperation.start(n.type,e);else if(i)e.preventDefault();else if(a){var d=n.detail;this.viewHelper.shouldSuppressMouseDownOnViewZone(d.viewZoneId)&&(c(),this._mouseDownOperation.start(n.type,e),e.preventDefault())}else u&&this.viewHelper.shouldSuppressMouseDownOnWidget(n.detail)&&(c(),e.preventDefault());this.viewController.emitMouseDown({event:e,target:n})},t.MOUSE_MOVE_MINIMUM_TIME=100,t}(gw),Gw=function(e){function t(t,n,r,i,o){var s=e.call(this)||this;return s._context=t,s._viewController=n,s._viewHelper=r,s._createMouseTarget=i,s._getMouseColumn=o,s._mouseMoveMonitor=s._register(new fw(s._viewHelper.viewDomNode)),s._onScrollTimeout=s._register(new Ns),s._mouseState=new $w,s._currentSelection=new Br(1,1,1,1),s._isActive=!1,s._lastMouseEvent=null,s}return Uw(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.isActive=function(){return this._isActive},t.prototype._onMouseDownThenMove=function(e){this._lastMouseEvent=e,this._mouseState.setModifiers(e);var t=this._findMousePosition(e,!0);t&&(this._mouseState.isDragAndDrop?this._viewController.emitMouseDrag({event:e,target:t}):this._dispatchMouse(t,!0))},t.prototype.start=function(e,t){var n=this;this._lastMouseEvent=t,this._mouseState.setStartedOnLineNumbers(3===e),this._mouseState.setStartButtons(t),this._mouseState.setModifiers(t);var r=this._findMousePosition(t,!0);if(r&&r.position){if(this._mouseState.trySetCount(t.detail,r.position),t.detail=this._mouseState.count,!this._context.configuration.editor.readOnly&&this._context.configuration.editor.dragAndDrop&&!this._mouseState.altKey&&t.detail<2&&!this._isActive&&!this._currentSelection.isEmpty()&&6===r.type&&r.position&&this._currentSelection.containsPosition(r.position))return this._mouseState.isDragAndDrop=!0,this._isActive=!0,void this._mouseMoveMonitor.startMonitoring(qw(null),(function(e){return n._onMouseDownThenMove(e)}),(function(){var e=n._findMousePosition(n._lastMouseEvent,!0);n._viewController.emitMouseDrop({event:n._lastMouseEvent,target:e?n._createMouseTarget(n._lastMouseEvent,!0):null}),n._stop()}));this._mouseState.isDragAndDrop=!1,this._dispatchMouse(r,t.shiftKey),this._isActive||(this._isActive=!0,this._mouseMoveMonitor.startMonitoring(qw(null),(function(e){return n._onMouseDownThenMove(e)}),(function(){return n._stop()})))}},t.prototype._stop=function(){this._isActive=!1,this._onScrollTimeout.cancel()},t.prototype.onScrollChanged=function(){var e=this;this._isActive&&this._onScrollTimeout.setIfNotSet((function(){if(e._lastMouseEvent){var t=e._findMousePosition(e._lastMouseEvent,!1);t&&(e._mouseState.isDragAndDrop||e._dispatchMouse(t,!0))}}),10)},t.prototype.onCursorStateChanged=function(e){this._currentSelection=e.selections[0]},t.prototype._getPositionOutsideEditor=function(e){var t=e.editorPos,n=this._context.model,r=this._context.viewLayout,i=this._getMouseColumn(e);if(e.posy<t.y){var o=Math.max(r.getCurrentScrollTop()-(t.y-e.posy),0);if(a=Bw.getZoneAtCoord(this._context,o))if(u=this._helpPositionJumpOverViewZone(a))return new Yw(null,13,i,u);var s=r.getLineNumberAtVerticalOffset(o);return new Yw(null,13,i,new Lt(s,1))}if(e.posy>t.y+t.height){var a,u;o=r.getCurrentScrollTop()+(e.posy-t.y);if(a=Bw.getZoneAtCoord(this._context,o))if(u=this._helpPositionJumpOverViewZone(a))return new Yw(null,13,i,u);var l=r.getLineNumberAtVerticalOffset(o);return new Yw(null,13,i,new Lt(l,n.getLineMaxColumn(l)))}var c=r.getLineNumberAtVerticalOffset(r.getCurrentScrollTop()+(e.posy-t.y));return e.posx<t.x?new Yw(null,13,i,new Lt(c,1)):e.posx>t.x+t.width?new Yw(null,13,i,new Lt(c,n.getLineMaxColumn(c))):null},t.prototype._findMousePosition=function(e,t){var n=this._getPositionOutsideEditor(e);if(n)return n;var r=this._createMouseTarget(e,t);if(!r.position)return null;if(8===r.type||5===r.type){var i=this._helpPositionJumpOverViewZone(r.detail);if(i)return new Yw(r.element,r.type,r.mouseColumn,i,null,r.detail)}return r},t.prototype._helpPositionJumpOverViewZone=function(e){var t=new Lt(this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),n=e.positionBefore,r=e.positionAfter;return n&&r?n.isBefore(t)?n:r:null},t.prototype._dispatchMouse=function(e,t){e.position&&this._viewController.dispatchMouse({position:e.position,mouseColumn:e.mouseColumn,startedOnLineNumbers:this._mouseState.startedOnLineNumbers,inSelectionMode:t,mouseDownCount:this._mouseState.count,altKey:this._mouseState.altKey,ctrlKey:this._mouseState.ctrlKey,metaKey:this._mouseState.metaKey,shiftKey:this._mouseState.shiftKey,leftButton:this._mouseState.leftButton,middleButton:this._mouseState.middleButton})},t}(Ft),$w=function(){function e(){this._altKey=!1,this._ctrlKey=!1,this._metaKey=!1,this._shiftKey=!1,this._leftButton=!1,this._middleButton=!1,this._startedOnLineNumbers=!1,this._lastMouseDownPosition=null,this._lastMouseDownPositionEqualCount=0,this._lastMouseDownCount=0,this._lastSetMouseDownCountTime=0,this.isDragAndDrop=!1}return Object.defineProperty(e.prototype,"altKey",{get:function(){return this._altKey},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ctrlKey",{get:function(){return this._ctrlKey},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"metaKey",{get:function(){return this._metaKey},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shiftKey",{get:function(){return this._shiftKey},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"leftButton",{get:function(){return this._leftButton},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"middleButton",{get:function(){return this._middleButton},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startedOnLineNumbers",{get:function(){return this._startedOnLineNumbers},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"count",{get:function(){return this._lastMouseDownCount},enumerable:!0,configurable:!0}),e.prototype.setModifiers=function(e){this._altKey=e.altKey,this._ctrlKey=e.ctrlKey,this._metaKey=e.metaKey,this._shiftKey=e.shiftKey},e.prototype.setStartButtons=function(e){this._leftButton=e.leftButton,this._middleButton=e.middleButton},e.prototype.setStartedOnLineNumbers=function(e){this._startedOnLineNumbers=e},e.prototype.trySetCount=function(t,n){var r=(new Date).getTime();r-this._lastSetMouseDownCountTime>e.CLEAR_MOUSE_DOWN_COUNT_TIME&&(t=1),this._lastSetMouseDownCountTime=r,t>this._lastMouseDownCount+1&&(t=this._lastMouseDownCount+1),this._lastMouseDownPosition&&this._lastMouseDownPosition.equals(n)?this._lastMouseDownPositionEqualCount++:this._lastMouseDownPositionEqualCount=1,this._lastMouseDownPosition=n,this._lastMouseDownCount=Math.min(t,this._lastMouseDownPositionEqualCount)},e.CLEAR_MOUSE_DOWN_COUNT_TIME=400,e}(),Zw=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function Xw(e,t){var n={translationY:t.translationY,translationX:t.translationX};return e&&(n.translationY+=e.translationY,n.translationX+=e.translationX),n}var Jw=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.viewHelper.linesContentDomNode.style.msTouchAction="none",i.viewHelper.linesContentDomNode.style.msContentZooming="none",i._installGestureHandlerTimeout=window.setTimeout((function(){if(i._installGestureHandlerTimeout=-1,window.MSGesture){var e=new MSGesture,t=new MSGesture;e.target=i.viewHelper.linesContentDomNode,t.target=i.viewHelper.linesContentDomNode,i.viewHelper.linesContentDomNode.addEventListener("MSPointerDown",(function(n){var r=n.pointerType;r!==(n.MSPOINTER_TYPE_MOUSE||"mouse")?r===(n.MSPOINTER_TYPE_TOUCH||"touch")?(i._lastPointerType="touch",e.addPointer(n.pointerId)):(i._lastPointerType="pen",t.addPointer(n.pointerId)):i._lastPointerType="mouse"})),i._register(cf(i.viewHelper.linesContentDomNode,"MSGestureChange",(function(e){return i._onGestureChange(e)}),Xw)),i._register(Gh(i.viewHelper.linesContentDomNode,"MSGestureTap",(function(e){return i._onCaptureGestureTap(e)}),!0))}}),100),i._lastPointerType="mouse",i}return Zw(t,e),t.prototype._onMouseDown=function(t){"mouse"===this._lastPointerType&&e.prototype._onMouseDown.call(this,t)},t.prototype._onCaptureGestureTap=function(e){var t=this,n=new dw(e,this.viewHelper.viewDomNode),r=this._createMouseTarget(n,!1);r.position&&this.viewController.moveTo(r.position),n.browserEvent.fromElement?(n.preventDefault(),this.viewHelper.focusTextArea()):setTimeout((function(){t.viewHelper.focusTextArea()}))},t.prototype._onGestureChange=function(e){this._context.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)},t.prototype.dispose=function(){window.clearTimeout(this._installGestureHandlerTimeout),e.prototype.dispose.call(this)},t}(Kw),Qw=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.viewHelper.linesContentDomNode.style.touchAction="none",i._installGestureHandlerTimeout=window.setTimeout((function(){if(i._installGestureHandlerTimeout=-1,window.MSGesture){var e=new MSGesture,t=new MSGesture;e.target=i.viewHelper.linesContentDomNode,t.target=i.viewHelper.linesContentDomNode,i.viewHelper.linesContentDomNode.addEventListener("pointerdown",(function(n){var r=n.pointerType;"mouse"!==r?"touch"===r?(i._lastPointerType="touch",e.addPointer(n.pointerId)):(i._lastPointerType="pen",t.addPointer(n.pointerId)):i._lastPointerType="mouse"})),i._register(cf(i.viewHelper.linesContentDomNode,"MSGestureChange",(function(e){return i._onGestureChange(e)}),Xw)),i._register(Gh(i.viewHelper.linesContentDomNode,"MSGestureTap",(function(e){return i._onCaptureGestureTap(e)}),!0))}}),100),i._lastPointerType="mouse",i}return Zw(t,e),t.prototype._onMouseDown=function(t){"mouse"===this._lastPointerType&&e.prototype._onMouseDown.call(this,t)},t.prototype._onCaptureGestureTap=function(e){var t=this,n=new dw(e,this.viewHelper.viewDomNode),r=this._createMouseTarget(n,!1);r.position&&this.viewController.moveTo(r.position),n.browserEvent.fromElement?(n.preventDefault(),this.viewHelper.focusTextArea()):setTimeout((function(){t.viewHelper.focusTextArea()}))},t.prototype._onGestureChange=function(e){this._context.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)},t.prototype.dispose=function(){window.clearTimeout(this._installGestureHandlerTimeout),e.prototype.dispose.call(this)},t}(Kw),eC=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return hp.addTarget(i.viewHelper.linesContentDomNode),i._register(Gh(i.viewHelper.linesContentDomNode,lp.Tap,(function(e){return i.onTap(e)}))),i._register(Gh(i.viewHelper.linesContentDomNode,lp.Change,(function(e){return i.onChange(e)}))),i._register(Gh(i.viewHelper.linesContentDomNode,lp.Contextmenu,(function(e){return i._onContextMenu(new dw(e,i.viewHelper.viewDomNode),!1)}))),i}return Zw(t,e),t.prototype.onTap=function(e){e.preventDefault(),this.viewHelper.focusTextArea();var t=this._createMouseTarget(new dw(e,this.viewHelper.viewDomNode),!1);t.position&&this.viewController.moveTo(t.position)},t.prototype.onChange=function(e){this._context.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)},t}(Kw),tC=function(e){function t(t,n,r){var i=e.call(this)||this;return window.navigator.msPointerEnabled?i.handler=i._register(new Jw(t,n,r)):window.TouchEvent?i.handler=i._register(new eC(t,n,r)):window.navigator.pointerEnabled||window.PointerEvent?i.handler=i._register(new Qw(t,n,r)):i.handler=i._register(new Kw(t,n,r)),i}return Zw(t,e),t.prototype.getTargetAtClientPoint=function(e,t){return this.handler.getTargetAtClientPoint(e,t)},t}(Ft),nC=(n(335),function(){function e(e,t,n,r,i){this.value=e,this.selectionStart=t,this.selectionEnd=n,this.selectionStartPosition=r,this.selectionEndPosition=i}return e.prototype.toString=function(){return"[ <"+this.value+">, selectionStart: "+this.selectionStart+", selectionEnd: "+this.selectionEnd+"]"},e.readFromTextArea=function(t){return new e(t.getValue(),t.getSelectionStart(),t.getSelectionEnd(),null,null)},e.prototype.collapseSelection=function(){return new e(this.value,this.value.length,this.value.length,null,null)},e.prototype.writeToTextArea=function(e,t,n){t.setValue(e,this.value),n&&t.setSelectionRange(e,this.selectionStart,this.selectionEnd)},e.prototype.deduceEditorPosition=function(e){if(e<=this.selectionStart){var t=this.value.substring(e,this.selectionStart);return this._finishDeduceEditorPosition(this.selectionStartPosition,t,-1)}if(e>=this.selectionEnd){t=this.value.substring(this.selectionEnd,e);return this._finishDeduceEditorPosition(this.selectionEndPosition,t,1)}var n=this.value.substring(this.selectionStart,e);if(-1===n.indexOf(String.fromCharCode(8230)))return this._finishDeduceEditorPosition(this.selectionStartPosition,n,1);var r=this.value.substring(e,this.selectionEnd);return this._finishDeduceEditorPosition(this.selectionEndPosition,r,-1)},e.prototype._finishDeduceEditorPosition=function(e,t,n){for(var r=0,i=-1;-1!==(i=t.indexOf("\n",i+1));)r++;return[e,n*t.length,r]},e.selectedText=function(t){return new e(t,0,t.length,null,null)},e.deduceInput=function(e,t,n,r){if(!e)return{text:"",replaceCharCnt:0};var i=e.value,o=e.selectionStart,s=e.selectionEnd,a=t.value,u=t.selectionStart,l=t.selectionEnd;r&&i.length>0&&o===s&&u===l&&!dn(a,i)&&hn(a,i)&&(o=0,s=0);var c=function(e,t){var n,r=Math.min(e.length,t.length),i=e.length-1,o=t.length-1;for(n=0;n<r;n++)if(e.charCodeAt(i-n)!==t.charCodeAt(o-n))return n;return r}(i.substring(s),a.substring(l));a=a.substring(0,a.length-c);var d,h=(i=i.substring(0,i.length-c)).substring(0,o),f=function(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n++)if(e.charCodeAt(n)!==t.charCodeAt(n))return n;return r}(h,a.substring(0,u));if(a=a.substring(f),i=i.substring(f),u-=f,o-=f,l-=f,s-=f,n&&u===l&&i.length>0){var p=null;if(u===a.length?dn(a,i)&&(p=a.substring(i.length)):hn(a,i)&&(p=a.substring(0,a.length-i.length)),null!==p&&p.length>0&&(/\uFE0F/.test(p)||(d=p,Dn.test(d))))return{text:p,replaceCharCnt:0}}return u===l?i===a&&0===o&&s===i.length&&u===a.length&&-1===a.indexOf("\n")&&function(e){for(var t=0,n=e.length;t<n;t++)if(Nn(e.charCodeAt(t)))return!0;return!1}(a)?{text:"",replaceCharCnt:0}:{text:a,replaceCharCnt:h.length-f}:{text:a,replaceCharCnt:s-o}},e.EMPTY=new e("",0,0,null,null),e}()),rC=function(){function e(){}return e._getPageOfLine=function(t){return Math.floor((t-1)/e._LINES_PER_PAGE)},e._getRangeForPage=function(t){var n=t*e._LINES_PER_PAGE,r=n+1,i=n+e._LINES_PER_PAGE;return new Yr(r,1,i+1,1)},e.fromEditorSelection=function(t,n,r,i){var o,s=e._getPageOfLine(r.startLineNumber),a=e._getRangeForPage(s),u=e._getPageOfLine(r.endLineNumber),l=e._getRangeForPage(u),c=a.intersectRanges(new Yr(1,1,r.startLineNumber,r.startColumn)),d=n.getValueInRange(c,1),h=n.getLineCount(),f=n.getLineMaxColumn(h),p=l.intersectRanges(new Yr(r.endLineNumber,r.endColumn,h,f)),g=n.getValueInRange(p,1);if(s===u||s+1===u)o=n.getValueInRange(r,1);else{var m=a.intersectRanges(r),_=l.intersectRanges(r);o=n.getValueInRange(m,1)+String.fromCharCode(8230)+n.getValueInRange(_,1)}if(i){d.length>500&&(d=d.substring(d.length-500,d.length)),g.length>500&&(g=g.substring(0,500)),o.length>1e3&&(o=o.substring(0,500)+String.fromCharCode(8230)+o.substring(o.length-500,o.length))}return new nC(d+o+g,d.length,d.length+o.length,new Lt(r.startLineNumber,r.startColumn),new Lt(r.endLineNumber,r.endColumn))},e._LINES_PER_PAGE=10,e}(),iC=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),oC={forceCopyWithSyntaxHighlighting:!1},sC=function(e){function t(t,n){var r=e.call(this)||this;r._onFocus=r._register(new $t),r.onFocus=r._onFocus.event,r._onBlur=r._register(new $t),r.onBlur=r._onBlur.event,r._onKeyDown=r._register(new $t),r.onKeyDown=r._onKeyDown.event,r._onKeyUp=r._register(new $t),r.onKeyUp=r._onKeyUp.event,r._onCut=r._register(new $t),r.onCut=r._onCut.event,r._onPaste=r._register(new $t),r.onPaste=r._onPaste.event,r._onType=r._register(new $t),r.onType=r._onType.event,r._onCompositionStart=r._register(new $t),r.onCompositionStart=r._onCompositionStart.event,r._onCompositionUpdate=r._register(new $t),r.onCompositionUpdate=r._onCompositionUpdate.event,r._onCompositionEnd=r._register(new $t),r.onCompositionEnd=r._onCompositionEnd.event,r._onSelectionChangeRequest=r._register(new $t),r.onSelectionChangeRequest=r._onSelectionChangeRequest.event,r._host=t,r._textArea=r._register(new uC(n)),r._lastTextAreaEvent=0,r._asyncTriggerCut=r._register(new As((function(){return r._onCut.fire()}),0)),r._textAreaState=nC.EMPTY,r._selectionChangeListener=null,r.writeScreenReaderContent("ctor"),r._hasFocus=!1,r._isDoingComposition=!1,r._nextCommand=0,r._register($h(n.domNode,"keydown",(function(e){!r._isDoingComposition||109!==e.keyCode&&1!==e.keyCode||e.stopPropagation(),e.equals(9)&&e.preventDefault(),r._onKeyDown.fire(e)}))),r._register($h(n.domNode,"keyup",(function(e){r._onKeyUp.fire(e)}))),r._register(Gh(n.domNode,"compositionstart",(function(e){r._lastTextAreaEvent=1,r._isDoingComposition||(r._isDoingComposition=!0,ch||r._setAndWriteTextAreaState("compositionstart",nC.EMPTY),r._onCompositionStart.fire())})));var i=function(e,t){var n=r._textAreaState,i=nC.readFromTextArea(r._textArea);return[i,nC.deduceInput(n,i,e,t)]},o=function(e){var t=r._textAreaState,n=nC.selectedText(e);return[n,{text:n.value,replaceCharCnt:t.selectionEnd-t.selectionStart}]},s=function(e){return!(!ch||"ja"!==e)||!(!uh||0!==e.indexOf("zh-Han"))};return r._register(Gh(n.domNode,"compositionupdate",(function(e){if(r._lastTextAreaEvent=2,s(e.locale)){var t=i(!1,!1),n=t[0],a=t[1];return r._textAreaState=n,r._onType.fire(a),void r._onCompositionUpdate.fire(e)}var u=o(e.data),l=u[0],c=u[1];r._textAreaState=l,r._onType.fire(c),r._onCompositionUpdate.fire(e)}))),r._register(Gh(n.domNode,"compositionend",(function(e){if(r._lastTextAreaEvent=3,s(e.locale)){var t=i(!1,!1),n=t[0],a=t[1];r._textAreaState=n,r._onType.fire(a)}else{var u=o(e.data);n=u[0],a=u[1];r._textAreaState=n,r._onType.fire(a)}(ch||fh)&&(r._textAreaState=nC.readFromTextArea(r._textArea)),r._isDoingComposition&&(r._isDoingComposition=!1,r._onCompositionEnd.fire())}))),r._register(Gh(n.domNode,"input",(function(){var e=8===r._lastTextAreaEvent;if(r._lastTextAreaEvent=4,r._textArea.setIgnoreSelectionChangeTime("received input event"),!r._isDoingComposition){var t=i(nt.d,e&&nt.d),n=t[0],o=t[1];0===o.replaceCharCnt&&1===o.text.length&&xn(o.text.charCodeAt(0))||(r._textAreaState=n,0===r._nextCommand?""!==o.text&&r._onType.fire(o):(""!==o.text&&r._onPaste.fire({text:o.text}),r._nextCommand=0))}}))),r._register(Gh(n.domNode,"cut",(function(e){r._lastTextAreaEvent=5,r._textArea.setIgnoreSelectionChangeTime("received cut event"),r._ensureClipboardGetsEditorSelection(e),r._asyncTriggerCut.schedule()}))),r._register(Gh(n.domNode,"copy",(function(e){r._lastTextAreaEvent=6,r._ensureClipboardGetsEditorSelection(e)}))),r._register(Gh(n.domNode,"paste",(function(e){if(r._lastTextAreaEvent=7,r._textArea.setIgnoreSelectionChangeTime("received paste event"),aC.canUseTextData(e)){var t=aC.getTextData(e);""!==t&&r._onPaste.fire({text:t})}else r._textArea.getSelectionStart()!==r._textArea.getSelectionEnd()&&r._setAndWriteTextAreaState("paste",nC.EMPTY),r._nextCommand=1}))),r._register(Gh(n.domNode,"focus",(function(){r._lastTextAreaEvent=8,r._setHasFocus(!0)}))),r._register(Gh(n.domNode,"blur",(function(){r._lastTextAreaEvent=9,r._setHasFocus(!1)}))),r}return iC(t,e),t.prototype._installSelectionChangeListener=function(){var e=this,t=0;return Gh(document,"selectionchange",(function(n){if(e._hasFocus&&!e._isDoingComposition&&fh&&nt.g){var r=Date.now(),i=r-t;if(t=r,!(i<5)){var o=r-e._textArea.getIgnoreSelectionChangeTime();if(e._textArea.resetSelectionChangeTime(),!(o<100)&&e._textAreaState.selectionStartPosition&&e._textAreaState.selectionEndPosition){var s=e._textArea.getValue();if(e._textAreaState.value===s){var a=e._textArea.getSelectionStart(),u=e._textArea.getSelectionEnd();if(e._textAreaState.selectionStart!==a||e._textAreaState.selectionEnd!==u){var l=e._textAreaState.deduceEditorPosition(a),c=e._host.deduceModelPosition(l[0],l[1],l[2]),d=e._textAreaState.deduceEditorPosition(u),h=e._host.deduceModelPosition(d[0],d[1],d[2]),f=new Br(c.lineNumber,c.column,h.lineNumber,h.column);e._onSelectionChangeRequest.fire(f)}}}}}}))},t.prototype.dispose=function(){e.prototype.dispose.call(this),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)},t.prototype.focusTextArea=function(){this._setHasFocus(!0)},t.prototype.isFocused=function(){return this._hasFocus},t.prototype._setHasFocus=function(e){this._hasFocus!==e&&(this._hasFocus=e,this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null),this._hasFocus&&(this._selectionChangeListener=this._installSelectionChangeListener()),this._hasFocus&&(lh?this._setAndWriteTextAreaState("focusgain",nC.EMPTY):this.writeScreenReaderContent("focusgain")),this._hasFocus?this._onFocus.fire():this._onBlur.fire())},t.prototype._setAndWriteTextAreaState=function(e,t){this._hasFocus||(t=t.collapseSelection()),t.writeToTextArea(e,this._textArea,this._hasFocus),this._textAreaState=t},t.prototype.writeScreenReaderContent=function(e){this._isDoingComposition||this._setAndWriteTextAreaState(e,this._host.getScreenReaderContent(this._textAreaState))},t.prototype._ensureClipboardGetsEditorSelection=function(e){var t=this._host.getPlainTextToCopy();if(aC.canUseTextData(e)){var n=null;(function(){if(uh)return!1;if(lh){var e=ah.indexOf("Edge/"),t=parseInt(ah.substring(e+5,ah.indexOf(".",e)),10);if(!t||t>=12&&t<=16)return!1}return!0})()&&(t.length<65536||oC.forceCopyWithSyntaxHighlighting)&&(n=this._host.getHTMLToCopy()),aC.setTextData(e,t,n)}else this._setAndWriteTextAreaState("copy or cut",nC.selectedText(t))},t}(Ft),aC=function(){function e(){}return e.canUseTextData=function(e){return!!e.clipboardData||!!window.clipboardData},e.getTextData=function(e){if(e.clipboardData)return e.preventDefault(),e.clipboardData.getData("text/plain");if(window.clipboardData)return e.preventDefault(),window.clipboardData.getData("Text");throw new Error("ClipboardEventUtils.getTextData: Cannot use text data!")},e.setTextData=function(e,t,n){if(e.clipboardData)return e.clipboardData.setData("text/plain",t),null!==n&&e.clipboardData.setData("text/html",n),void e.preventDefault();if(window.clipboardData)return window.clipboardData.setData("Text",t),void e.preventDefault();throw new Error("ClipboardEventUtils.setTextData: Cannot use text data!")},e}(),uC=function(e){function t(t){var n=e.call(this)||this;return n._actual=t,n._ignoreSelectionChangeTime=0,n}return iC(t,e),t.prototype.setIgnoreSelectionChangeTime=function(e){this._ignoreSelectionChangeTime=Date.now()},t.prototype.getIgnoreSelectionChangeTime=function(){return this._ignoreSelectionChangeTime},t.prototype.resetSelectionChangeTime=function(){this._ignoreSelectionChangeTime=0},t.prototype.getValue=function(){return this._actual.domNode.value},t.prototype.setValue=function(e,t){var n=this._actual.domNode;n.value!==t&&(this.setIgnoreSelectionChangeTime("setValue"),n.value=t)},t.prototype.getSelectionStart=function(){return this._actual.domNode.selectionStart},t.prototype.getSelectionEnd=function(){return this._actual.domNode.selectionEnd},t.prototype.setSelectionRange=function(e,t,n){var r=this._actual.domNode,i=document.activeElement===r,o=r.selectionStart,s=r.selectionEnd;if(i&&o===t&&s===n)dh&&window.parent!==window&&r.focus();else{if(i)return this.setIgnoreSelectionChangeTime("setSelectionRange"),r.setSelectionRange(t,n),void(dh&&window.parent!==window&&r.focus());try{var a=function(e){for(var t=[],n=0;e&&e.nodeType===e.ELEMENT_NODE;n++)t[n]=e.scrollTop,e=e.parentNode;return t}(r);this.setIgnoreSelectionChangeTime("setSelectionRange"),r.focus(),r.setSelectionRange(t,n),function(e,t){for(var n=0;e&&e.nodeType===e.ELEMENT_NODE;n++)e.scrollTop!==t[n]&&(e.scrollTop=t[n]),e=e.parentNode}(r,a)}catch(e){}}},t}(Ft),lC=(n(336),function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),cC=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return lC(t,e),t}(gw),dC=Jl("editor.lineHighlightBackground",{dark:null,light:null,hc:null},Ee("lineHighlight","Background color for the highlight of line at the cursor position.")),hC=Jl("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hc:"#f38518"},Ee("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),fC=Jl("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hc:null},Ee("rangeHighlight","Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations."),!0),pC=Jl("editor.rangeHighlightBorder",{dark:null,light:null,hc:oc},Ee("rangeHighlightBorder","Background color of the border around highlighted ranges."),!0),gC=Jl("editorCursor.foreground",{dark:"#AEAFAD",light:Ou.black,hc:Ou.white},Ee("caret","Color of the editor cursor.")),mC=Jl("editorCursor.background",null,Ee("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),_C=Jl("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hc:"#e3e4e229"},Ee("editorWhitespaces","Color of whitespace characters in the editor.")),yC=Jl("editorIndentGuide.background",{dark:_C,light:_C,hc:_C},Ee("editorIndentGuides","Color of the editor indentation guides.")),vC=Jl("editorIndentGuide.activeBackground",{dark:_C,light:_C,hc:_C},Ee("editorActiveIndentGuide","Color of the active editor indentation guides.")),bC=Jl("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hc:Ou.white},Ee("editorLineNumbers","Color of editor line numbers.")),wC=Jl("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hc:oc},Ee("editorActiveLineNumber","Color of editor active line number"),!1,Ee("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead.")),CC=Jl("editorLineNumber.activeForeground",{dark:wC,light:wC,hc:wC},Ee("editorActiveLineNumber","Color of editor active line number")),SC=Jl("editorRuler.foreground",{dark:"#5A5A5A",light:Ou.lightgrey,hc:Ou.white},Ee("editorRuler","Color of the editor rulers.")),xC=(Jl("editorCodeLens.foreground",{dark:"#999999",light:"#999999",hc:"#999999"},Ee("editorCodeLensForeground","Foreground color of editor code lenses")),Jl("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hc:"#0064001a"},Ee("editorBracketMatchBackground","Background color behind matching brackets")),Jl("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hc:ic},Ee("editorBracketMatchBorder","Color for matching brackets boxes")),Jl("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hc:"#7f7f7f4d"},Ee("editorOverviewRulerBorder","Color of the overview ruler border."))),LC=Jl("editorGutter.background",{dark:nd,light:nd,hc:nd},Ee("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),kC=Jl("editorUnnecessaryCode.border",{dark:null,light:null,hc:Ou.fromHex("#fff").transparent(.8)},Ee("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),MC=Jl("editorUnnecessaryCode.opacity",{dark:Ou.fromHex("#000a"),light:Ou.fromHex("#0007"),hc:null},Ee("unnecessaryCodeOpacity","Opacity of unnecessary (unused) source code in the editor. For example, \"#000000c0\" will render the code with 75% opacity. For high contrast themes, use the 'editorUnnecessaryCode.border' theme color to underline unnecessary code instead of fading it out.")),DC=Jl("editorOverviewRuler.errorForeground",{dark:new Ou(new Eu(255,18,18,.7)),light:new Ou(new Eu(255,18,18,.7)),hc:new Ou(new Eu(255,50,50,1))},Ee("overviewRuleError","Overview ruler marker color for errors.")),EC=Jl("editorOverviewRuler.warningForeground",{dark:Zc,light:Zc,hc:Xc},Ee("overviewRuleWarning","Overview ruler marker color for warnings.")),TC=Jl("editorOverviewRuler.infoForeground",{dark:Jc,light:Jc,hc:Qc},Ee("overviewRuleInfo","Overview ruler marker color for infos."));Wd((function(e,t){var n=e.getColor(nd);n&&t.addRule(".monaco-editor, .monaco-editor-background, .monaco-editor .inputarea.ime-input { background-color: "+n+"; }");var r=e.getColor(rd);r&&t.addRule(".monaco-editor, .monaco-editor .inputarea.ime-input { color: "+r+"; }");var i=e.getColor(LC);i&&t.addRule(".monaco-editor .margin { background-color: "+i+"; }");var o=e.getColor(fC);o&&t.addRule(".monaco-editor .rangeHighlight { background-color: "+o+"; }");var s=e.getColor(pC);s&&t.addRule(".monaco-editor .rangeHighlight { border: 1px "+("hc"===e.type?"dotted":"solid")+" "+s+"; }");var a=e.getColor(_C);a&&t.addRule(".vs-whitespace { color: "+a+" !important; }")}));var NC=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),OC=function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._readConfig(),n._lastCursorModelPosition=new Lt(1,1),n._renderResult=null,n._context.addEventHandler(n),n}return NC(t,e),t.prototype._readConfig=function(){var e=this._context.configuration.editor;this._lineHeight=e.lineHeight,this._renderLineNumbers=e.viewInfo.renderLineNumbers,this._renderCustomLineNumbers=e.viewInfo.renderCustomLineNumbers,this._renderFinalNewline=e.viewInfo.renderFinalNewline,this._lineNumbersLeft=e.layoutInfo.lineNumbersLeft,this._lineNumbersWidth=e.layoutInfo.lineNumbersWidth},t.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return this._readConfig(),!0},t.prototype.onCursorStateChanged=function(e){var t=e.selections[0].getPosition();return this._lastCursorModelPosition=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(t),2===this._renderLineNumbers||3===this._renderLineNumbers},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype._getLineRenderLineNumber=function(e){var t=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new Lt(e,1));if(1!==t.column)return"";var n=t.lineNumber;if(!this._renderFinalNewline){var r=this._context.model.getLineCount(),i=this._context.model.getLineContent(n);if(n===r&&""===i)return""}if(this._renderCustomLineNumbers)return this._renderCustomLineNumbers(n);if(2===this._renderLineNumbers){var o=Math.abs(this._lastCursorModelPosition.lineNumber-n);return 0===o?'<span class="relative-current-line-number">'+n+"</span>":String(o)}return 3===this._renderLineNumbers?this._lastCursorModelPosition.lineNumber===n?String(n):n%10==0?String(n):"":String(n)},t.prototype.prepareRender=function(e){if(0!==this._renderLineNumbers){for(var n=nt.c?this._lineHeight%2==0?" lh-even":" lh-odd":"",r=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,o='<div class="'+t.CLASS_NAME+n+'" style="left:'+this._lineNumbersLeft.toString()+"px;width:"+this._lineNumbersWidth.toString()+'px;">',s=[],a=r;a<=i;a++){var u=a-r,l=this._getLineRenderLineNumber(a);s[u]=l?o+l+"</div>":""}this._renderResult=s}else this._renderResult=null},t.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]},t.CLASS_NAME="line-numbers",t}(cC);Wd((function(e,t){var n=e.getColor(bC);n&&t.addRule(".monaco-editor .line-numbers { color: "+n+"; }");var r=e.getColor(CC);r&&t.addRule(".monaco-editor .current-line ~ .line-numbers { color: "+r+"; }")}));var AC=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),IC=function(e){function t(n){var r=e.call(this,n)||this;return r._canUseLayerHinting=r._context.configuration.editor.canUseLayerHinting,r._contentLeft=r._context.configuration.editor.layoutInfo.contentLeft,r._glyphMarginLeft=r._context.configuration.editor.layoutInfo.glyphMarginLeft,r._glyphMarginWidth=r._context.configuration.editor.layoutInfo.glyphMarginWidth,r._domNode=Dp(document.createElement("div")),r._domNode.setClassName(t.OUTER_CLASS_NAME),r._domNode.setPosition("absolute"),r._domNode.setAttribute("role","presentation"),r._domNode.setAttribute("aria-hidden","true"),r._glyphMarginBackgroundDomNode=Dp(document.createElement("div")),r._glyphMarginBackgroundDomNode.setClassName(t.CLASS_NAME),r._domNode.appendChild(r._glyphMarginBackgroundDomNode),r}return AC(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.getDomNode=function(){return this._domNode},t.prototype.onConfigurationChanged=function(e){return e.canUseLayerHinting&&(this._canUseLayerHinting=this._context.configuration.editor.canUseLayerHinting),e.layoutInfo&&(this._contentLeft=this._context.configuration.editor.layoutInfo.contentLeft,this._glyphMarginLeft=this._context.configuration.editor.layoutInfo.glyphMarginLeft,this._glyphMarginWidth=this._context.configuration.editor.layoutInfo.glyphMarginWidth),!0},t.prototype.onScrollChanged=function(t){return e.prototype.onScrollChanged.call(this,t)||t.scrollTopChanged},t.prototype.prepareRender=function(e){},t.prototype.render=function(e){this._domNode.setLayerHinting(this._canUseLayerHinting);var t=e.scrollTop-e.bigNumbersDelta;this._domNode.setTop(-t);var n=Math.min(e.scrollHeight,1e6);this._domNode.setHeight(n),this._domNode.setWidth(this._contentLeft),this._glyphMarginBackgroundDomNode.setLeft(this._glyphMarginLeft),this._glyphMarginBackgroundDomNode.setWidth(this._glyphMarginWidth),this._glyphMarginBackgroundDomNode.setHeight(n)},t.CLASS_NAME="glyph-margin",t.OUTER_CLASS_NAME="margin",t}(_w),PC=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),RC=function(e){this.type=1,this.canUseLayerHinting=e.canUseLayerHinting,this.pixelRatio=e.pixelRatio,this.editorClassName=e.editorClassName,this.lineHeight=e.lineHeight,this.readOnly=e.readOnly,this.accessibilitySupport=e.accessibilitySupport,this.emptySelectionClipboard=e.emptySelectionClipboard,this.copyWithSyntaxHighlighting=e.copyWithSyntaxHighlighting,this.layoutInfo=e.layoutInfo,this.fontInfo=e.fontInfo,this.viewInfo=e.viewInfo,this.wrappingInfo=e.wrappingInfo},FC=function(e){this.type=2,this.selections=e},YC=function(){this.type=3},jC=function(){this.type=4},BC=function(e){this.type=5,this.isFocused=e},WC=function(){this.type=6},HC=function(e,t){this.type=7,this.fromLineNumber=e,this.toLineNumber=t},VC=function(e,t){this.type=8,this.fromLineNumber=e,this.toLineNumber=t},zC=function(e,t){this.type=9,this.fromLineNumber=e,this.toLineNumber=t},UC=function(e,t,n,r){this.type=10,this.range=e,this.verticalType=t,this.revealHorizontal=n,this.scrollType=r},qC=function(e){this.type=11,this.scrollWidth=e.scrollWidth,this.scrollLeft=e.scrollLeft,this.scrollHeight=e.scrollHeight,this.scrollTop=e.scrollTop,this.scrollWidthChanged=e.scrollWidthChanged,this.scrollLeftChanged=e.scrollLeftChanged,this.scrollHeightChanged=e.scrollHeightChanged,this.scrollTopChanged=e.scrollTopChanged},KC=function(e){this.type=12,this.ranges=e},GC=function(){this.type=15},$C=function(){this.type=13},ZC=function(){this.type=14},XC=function(){this.type=16},JC=function(e){function t(){var t=e.call(this)||this;return t._listeners=[],t._collector=null,t._collectorCnt=0,t}return PC(t,e),t.prototype.dispose=function(){this._listeners=[],e.prototype.dispose.call(this)},t.prototype._beginEmit=function(){return this._collectorCnt++,1===this._collectorCnt&&(this._collector=new QC),this._collector},t.prototype._endEmit=function(){if(this._collectorCnt--,0===this._collectorCnt){var e=this._collector.finalize();this._collector=null,e.length>0&&this._emit(e)}},t.prototype._emit=function(e){for(var t=this._listeners.slice(0),n=0,r=t.length;n<r;n++)eS(t[n],e)},t.prototype.addEventListener=function(e){var t=this;return this._listeners.push(e),Pt((function(){for(var n=t._listeners,r=0,i=n.length;r<i;r++)if(n[r]===e){n.splice(r,1);break}}))},t}(Ft),QC=function(){function e(){this._eventsLen=0,this._events=[],this._eventsLen=0}return e.prototype.emit=function(e){this._events[this._eventsLen++]=e},e.prototype.finalize=function(){var e=this._events;return this._events=[],e},e}();function eS(e,t){try{e(t)}catch(e){Ke(e)}}var tS=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),nS=function(){function e(e,t,n){this.top=e,this.left=t,this.width=n}return e.prototype.setWidth=function(t){return new e(this.top,this.left,t)},e}(),rS=ch||dh,iS=function(){function e(){this._lastState=null}return e.prototype.set=function(e){this._lastState=e},e.prototype.get=function(e){return this._lastState&&this._lastState.lastCopiedValue===e?this._lastState:(this._lastState=null,null)},e.INSTANCE=new e,e}(),oS=function(e){function t(t,n,r){var i=e.call(this,t)||this;i._primaryCursorVisibleRange=null,i._viewController=n,i._viewHelper=r;var o=i._context.configuration.editor;i._accessibilitySupport=o.accessibilitySupport,i._contentLeft=o.layoutInfo.contentLeft,i._contentWidth=o.layoutInfo.contentWidth,i._contentHeight=o.layoutInfo.contentHeight,i._scrollLeft=0,i._scrollTop=0,i._fontInfo=o.fontInfo,i._lineHeight=o.lineHeight,i._emptySelectionClipboard=o.emptySelectionClipboard,i._copyWithSyntaxHighlighting=o.copyWithSyntaxHighlighting,i._visibleTextArea=null,i._selections=[new Br(1,1,1,1)],i.textArea=Dp(document.createElement("textarea")),yw.write(i.textArea,6),i.textArea.setClassName("inputarea"),i.textArea.setAttribute("wrap","off"),i.textArea.setAttribute("autocorrect","off"),i.textArea.setAttribute("autocapitalize","off"),i.textArea.setAttribute("autocomplete","off"),i.textArea.setAttribute("spellcheck","false"),i.textArea.setAttribute("aria-label",o.viewInfo.ariaLabel),i.textArea.setAttribute("role","textbox"),i.textArea.setAttribute("aria-multiline","true"),i.textArea.setAttribute("aria-haspopup","false"),i.textArea.setAttribute("aria-autocomplete","both"),i.textAreaCover=Dp(document.createElement("div")),i.textAreaCover.setPosition("absolute");var s={getLineCount:function(){return i._context.model.getLineCount()},getLineMaxColumn:function(e){return i._context.model.getLineMaxColumn(e)},getValueInRange:function(e,t){return i._context.model.getValueInRange(e,t)}},a={getPlainTextToCopy:function(){var e=i._context.model.getPlainTextToCopy(i._selections,i._emptySelectionClipboard,nt.g),t=i._context.model.getEOL(),n=i._emptySelectionClipboard&&1===i._selections.length&&i._selections[0].isEmpty(),r=Array.isArray(e)?e:null,o=Array.isArray(e)?e.join(t):e,s=null;(n||r)&&(s={lastCopiedValue:dh?o.replace(/\r\n/g,"\n"):o,isFromEmptySelection:i._emptySelectionClipboard&&1===i._selections.length&&i._selections[0].isEmpty(),multicursorText:r});return iS.INSTANCE.set(s),o},getHTMLToCopy:function(){return i._copyWithSyntaxHighlighting||oC.forceCopyWithSyntaxHighlighting?i._context.model.getHTMLToCopy(i._selections,i._emptySelectionClipboard):null},getScreenReaderContent:function(e){if(mh)return nC.EMPTY;if(1===i._accessibilitySupport){if(nt.d){var t=i._selections[0];if(t.isEmpty()){var n=t.getStartPosition(),r=i._getWordBeforePosition(n);if(0===r.length&&(r=i._getCharacterBeforePosition(n)),r.length>0)return new nC(r,r.length,r.length,n,n)}}return nC.EMPTY}return rC.fromEditorSelection(e,s,i._selections[0],0===i._accessibilitySupport)},deduceModelPosition:function(e,t,n){return i._context.model.deduceModelPositionRelativeToViewPosition(e,t,n)}};return i._textAreaInput=i._register(new sC(a,i.textArea)),i._register(i._textAreaInput.onKeyDown((function(e){i._viewController.emitKeyDown(e)}))),i._register(i._textAreaInput.onKeyUp((function(e){i._viewController.emitKeyUp(e)}))),i._register(i._textAreaInput.onPaste((function(e){var t=iS.INSTANCE.get(e.text),n=!1,r=null;t&&(n=i._emptySelectionClipboard&&t.isFromEmptySelection,r=t.multicursorText),i._viewController.paste("keyboard",e.text,n,r)}))),i._register(i._textAreaInput.onCut((function(){i._viewController.cut("keyboard")}))),i._register(i._textAreaInput.onType((function(e){e.replaceCharCnt?i._viewController.replacePreviousChar("keyboard",e.text,e.replaceCharCnt):i._viewController.type("keyboard",e.text)}))),i._register(i._textAreaInput.onSelectionChangeRequest((function(e){i._viewController.setSelection("keyboard",e)}))),i._register(i._textAreaInput.onCompositionStart((function(){var e=i._selections[0].startLineNumber,t=i._selections[0].startColumn;i._context.privateViewEventBus.emit(new UC(new Yr(e,t,e,t),0,!0,1));var n=i._viewHelper.visibleRangeForPositionRelativeToEditor(e,t);n&&(i._visibleTextArea=new nS(i._context.viewLayout.getVerticalOffsetForLineNumber(e),n.left,rS?0:1),i._render()),i.textArea.setClassName("inputarea ime-input"),i._viewController.compositionStart("keyboard")}))),i._register(i._textAreaInput.onCompositionUpdate((function(e){i._visibleTextArea=ch?i._visibleTextArea.setWidth(0):i._visibleTextArea.setWidth(function(e,t){var n=document.createElement("canvas").getContext("2d");n.font=(r=t,i="normal",o=r.fontWeight,s=r.fontSize,a=r.lineHeight,u=r.fontFamily,i+" normal "+o+" "+s+"px / "+a+"px "+u);var r,i,o,s,a,u;var l=n.measureText(e);return dh?l.width+2:l.width}(e.data,i._fontInfo)),i._render()}))),i._register(i._textAreaInput.onCompositionEnd((function(){i._visibleTextArea=null,i._render(),i.textArea.setClassName("inputarea"),i._viewController.compositionEnd("keyboard")}))),i._register(i._textAreaInput.onFocus((function(){i._context.privateViewEventBus.emit(new BC(!0))}))),i._register(i._textAreaInput.onBlur((function(){i._context.privateViewEventBus.emit(new BC(!1))}))),i}return tS(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype._getWordBeforePosition=function(e){for(var t=this._context.model.getLineContent(e.lineNumber),n=ko(this._context.configuration.editor.wordSeparators),r=e.column,i=0;r>1;){var o=t.charCodeAt(r-2);if(0!==n.get(o)||i>50)return t.substring(r-1,e.column-1);i++,r--}return t.substring(0,e.column-1)},t.prototype._getCharacterBeforePosition=function(e){if(e.column>1){var t=this._context.model.getLineContent(e.lineNumber).charAt(e.column-2);if(!xn(t.charCodeAt(0)))return t}return""},t.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.editor;return e.fontInfo&&(this._fontInfo=t.fontInfo),e.viewInfo&&this.textArea.setAttribute("aria-label",t.viewInfo.ariaLabel),e.layoutInfo&&(this._contentLeft=t.layoutInfo.contentLeft,this._contentWidth=t.layoutInfo.contentWidth,this._contentHeight=t.layoutInfo.contentHeight),e.lineHeight&&(this._lineHeight=t.lineHeight),e.accessibilitySupport&&(this._accessibilitySupport=t.accessibilitySupport,this._textAreaInput.writeScreenReaderContent("strategy changed")),e.emptySelectionClipboard&&(this._emptySelectionClipboard=t.emptySelectionClipboard),e.copyWithSyntaxHighlighting&&(this._copyWithSyntaxHighlighting=t.copyWithSyntaxHighlighting),!0},t.prototype.onCursorStateChanged=function(e){return this._selections=e.selections.slice(0),this._textAreaInput.writeScreenReaderContent("selection changed"),!0},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return this._scrollLeft=e.scrollLeft,this._scrollTop=e.scrollTop,!0},t.prototype.onZonesChanged=function(e){return!0},t.prototype.isFocused=function(){return this._textAreaInput.isFocused()},t.prototype.focusTextArea=function(){this._textAreaInput.focusTextArea()},t.prototype.prepareRender=function(e){var t=new Lt(this._selections[0].positionLineNumber,this._selections[0].positionColumn);this._primaryCursorVisibleRange=e.visibleRangeForPosition(t)},t.prototype.render=function(e){this._textAreaInput.writeScreenReaderContent("render"),this._render()},t.prototype._render=function(){if(this._visibleTextArea)this._renderInsideEditor(this._visibleTextArea.top-this._scrollTop,this._contentLeft+this._visibleTextArea.left-this._scrollLeft,this._visibleTextArea.width,this._lineHeight,!0);else if(this._primaryCursorVisibleRange){var e=this._contentLeft+this._primaryCursorVisibleRange.left-this._scrollLeft;if(e<this._contentLeft||e>this._contentLeft+this._contentWidth)this._renderAtTopLeft();else{var t=this._context.viewLayout.getVerticalOffsetForLineNumber(this._selections[0].positionLineNumber)-this._scrollTop;t<0||t>this._contentHeight?this._renderAtTopLeft():this._renderInsideEditor(t,e,rS?0:1,rS?0:1,!1)}}else this._renderAtTopLeft()},t.prototype._renderInsideEditor=function(e,t,n,r,i){var o=this.textArea,s=this.textAreaCover;i?ow.applyFontInfo(o,this._fontInfo):(o.setFontSize(1),o.setLineHeight(this._fontInfo.lineHeight)),o.setTop(e),o.setLeft(t),o.setWidth(n),o.setHeight(r),s.setTop(0),s.setLeft(0),s.setWidth(0),s.setHeight(0)},t.prototype._renderAtTopLeft=function(){var e=this.textArea,t=this.textAreaCover;if(ow.applyFontInfo(e,this._fontInfo),e.setTop(0),e.setLeft(0),t.setTop(0),t.setLeft(0),rS)return e.setWidth(0),e.setHeight(0),t.setWidth(0),void t.setHeight(0);e.setWidth(1),e.setHeight(1),t.setWidth(1),t.setHeight(1),this._context.configuration.editor.viewInfo.glyphMargin?t.setClassName("monaco-editor-background textAreaCover "+IC.OUTER_CLASS_NAME):0!==this._context.configuration.editor.viewInfo.renderLineNumbers?t.setClassName("monaco-editor-background textAreaCover "+OC.CLASS_NAME):t.setClassName("monaco-editor-background textAreaCover")},t}(_w);var sS=function(){function e(e,t,n,r){this.configuration=e,this.viewModel=t,this.outgoingEvents=n,this.commandDelegate=r}return e.prototype._execMouseCommand=function(e,t){t.source="mouse",this.commandDelegate.executeEditorCommand(e,t)},e.prototype.paste=function(e,t,n,r){this.commandDelegate.paste(e,t,n,r)},e.prototype.type=function(e,t){this.commandDelegate.type(e,t)},e.prototype.replacePreviousChar=function(e,t,n){this.commandDelegate.replacePreviousChar(e,t,n)},e.prototype.compositionStart=function(e){this.commandDelegate.compositionStart(e)},e.prototype.compositionEnd=function(e){this.commandDelegate.compositionEnd(e)},e.prototype.cut=function(e){this.commandDelegate.cut(e)},e.prototype.setSelection=function(e,t){this.commandDelegate.executeEditorCommand(Fl.SetSelection,{source:e,selection:t})},e.prototype._validateViewColumn=function(e){var t=this.viewModel.getLineMinColumn(e.lineNumber);return e.column<t?new Lt(e.lineNumber,t):e},e.prototype._hasMulticursorModifier=function(e){switch(this.configuration.editor.multiCursorModifier){case"altKey":return e.altKey;case"ctrlKey":return e.ctrlKey;case"metaKey":return e.metaKey}return!1},e.prototype._hasNonMulticursorModifier=function(e){switch(this.configuration.editor.multiCursorModifier){case"altKey":return e.ctrlKey||e.metaKey;case"ctrlKey":return e.altKey||e.metaKey;case"metaKey":return e.ctrlKey||e.altKey}return!1},e.prototype.dispatchMouse=function(e){e.middleButton?e.inSelectionMode?this._columnSelect(e.position,e.mouseColumn,!0):this.moveTo(e.position):e.startedOnLineNumbers?this._hasMulticursorModifier(e)?e.inSelectionMode?this._lastCursorLineSelect(e.position):this._createCursor(e.position,!0):e.inSelectionMode?this._lineSelectDrag(e.position):this._lineSelect(e.position):e.mouseDownCount>=4?this._selectAll():3===e.mouseDownCount?this._hasMulticursorModifier(e)?e.inSelectionMode?this._lastCursorLineSelectDrag(e.position):this._lastCursorLineSelect(e.position):e.inSelectionMode?this._lineSelectDrag(e.position):this._lineSelect(e.position):2===e.mouseDownCount?this._hasMulticursorModifier(e)?this._lastCursorWordSelect(e.position):e.inSelectionMode?this._wordSelectDrag(e.position):this._wordSelect(e.position):this._hasMulticursorModifier(e)?this._hasNonMulticursorModifier(e)||(e.shiftKey?this._columnSelect(e.position,e.mouseColumn,!1):e.inSelectionMode?this._lastCursorMoveToSelect(e.position):this._createCursor(e.position,!1)):e.inSelectionMode?e.altKey?this._columnSelect(e.position,e.mouseColumn,!0):this._moveToSelect(e.position):this.moveTo(e.position)},e.prototype._usualArgs=function(e){return e=this._validateViewColumn(e),{position:this._convertViewToModelPosition(e),viewPosition:e}},e.prototype.moveTo=function(e){this._execMouseCommand(Fl.MoveTo,this._usualArgs(e))},e.prototype._moveToSelect=function(e){this._execMouseCommand(Fl.MoveToSelect,this._usualArgs(e))},e.prototype._columnSelect=function(e,t,n){e=this._validateViewColumn(e),this._execMouseCommand(Fl.ColumnSelect,{position:this._convertViewToModelPosition(e),viewPosition:e,mouseColumn:t,setAnchorIfNotSet:n})},e.prototype._createCursor=function(e,t){e=this._validateViewColumn(e),this._execMouseCommand(Fl.CreateCursor,{position:this._convertViewToModelPosition(e),viewPosition:e,wholeLine:t})},e.prototype._lastCursorMoveToSelect=function(e){this._execMouseCommand(Fl.LastCursorMoveToSelect,this._usualArgs(e))},e.prototype._wordSelect=function(e){this._execMouseCommand(Fl.WordSelect,this._usualArgs(e))},e.prototype._wordSelectDrag=function(e){this._execMouseCommand(Fl.WordSelectDrag,this._usualArgs(e))},e.prototype._lastCursorWordSelect=function(e){this._execMouseCommand(Fl.LastCursorWordSelect,this._usualArgs(e))},e.prototype._lineSelect=function(e){this._execMouseCommand(Fl.LineSelect,this._usualArgs(e))},e.prototype._lineSelectDrag=function(e){this._execMouseCommand(Fl.LineSelectDrag,this._usualArgs(e))},e.prototype._lastCursorLineSelect=function(e){this._execMouseCommand(Fl.LastCursorLineSelect,this._usualArgs(e))},e.prototype._lastCursorLineSelectDrag=function(e){this._execMouseCommand(Fl.LastCursorLineSelectDrag,this._usualArgs(e))},e.prototype._selectAll=function(){this._execMouseCommand(Fl.SelectAll,{})},e.prototype._convertViewToModelPosition=function(e){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(e)},e.prototype.emitKeyDown=function(e){this.outgoingEvents.emitKeyDown(e)},e.prototype.emitKeyUp=function(e){this.outgoingEvents.emitKeyUp(e)},e.prototype.emitContextMenu=function(e){this.outgoingEvents.emitContextMenu(e)},e.prototype.emitMouseMove=function(e){this.outgoingEvents.emitMouseMove(e)},e.prototype.emitMouseLeave=function(e){this.outgoingEvents.emitMouseLeave(e)},e.prototype.emitMouseUp=function(e){this.outgoingEvents.emitMouseUp(e)},e.prototype.emitMouseDown=function(e){this.outgoingEvents.emitMouseDown(e)},e.prototype.emitMouseDrag=function(e){this.outgoingEvents.emitMouseDrag(e)},e.prototype.emitMouseDrop=function(e){this.outgoingEvents.emitMouseDrop(e)},e.prototype.emitMouseWheel=function(e){this.outgoingEvents.emitMouseWheel(e)},e}(),aS=function(){function e(e){this._createLine=e,this._set(1,[])}return e.prototype.flush=function(){this._set(1,[])},e.prototype._set=function(e,t){this._lines=t,this._rendLineNumberStart=e},e.prototype._get=function(){return{rendLineNumberStart:this._rendLineNumberStart,lines:this._lines}},e.prototype.getStartLineNumber=function(){return this._rendLineNumberStart},e.prototype.getEndLineNumber=function(){return this._rendLineNumberStart+this._lines.length-1},e.prototype.getCount=function(){return this._lines.length},e.prototype.getLine=function(e){var t=e-this._rendLineNumberStart;if(t<0||t>=this._lines.length)throw new Error("Illegal value for lineNumber");return this._lines[t]},e.prototype.onLinesDeleted=function(e,t){if(0===this.getCount())return null;var n=this.getStartLineNumber(),r=this.getEndLineNumber();if(t<n){var i=t-e+1;return this._rendLineNumberStart-=i,null}if(e>r)return null;for(var o=0,s=0,a=n;a<=r;a++){var u=a-this._rendLineNumberStart;e<=a&&a<=t&&(0===s?(o=u,s=1):s++)}if(e<n){var l=0;l=t<n?t-e+1:n-e,this._rendLineNumberStart-=l}return this._lines.splice(o,s)},e.prototype.onLinesChanged=function(e,t){if(0===this.getCount())return!1;for(var n=this.getStartLineNumber(),r=this.getEndLineNumber(),i=!1,o=e;o<=t;o++)o>=n&&o<=r&&(this._lines[o-this._rendLineNumberStart].onContentChanged(),i=!0);return i},e.prototype.onLinesInserted=function(e,t){if(0===this.getCount())return null;var n=t-e+1,r=this.getStartLineNumber(),i=this.getEndLineNumber();if(e<=r)return this._rendLineNumberStart+=n,null;if(e>i)return null;if(n+e>i)return this._lines.splice(e-this._rendLineNumberStart,i-e+1);for(var o=[],s=0;s<n;s++)o[s]=this._createLine();var a=e-this._rendLineNumberStart,u=this._lines.slice(0,a),l=this._lines.slice(a,this._lines.length-n),c=this._lines.slice(this._lines.length-n,this._lines.length);return this._lines=u.concat(o).concat(l),c},e.prototype.onTokensChanged=function(e){if(0===this.getCount())return!1;for(var t=this.getStartLineNumber(),n=this.getEndLineNumber(),r=!1,i=0,o=e.length;i<o;i++){var s=e[i];if(!(s.toLineNumber<t||s.fromLineNumber>n))for(var a=Math.max(t,s.fromLineNumber),u=Math.min(n,s.toLineNumber),l=a;l<=u;l++){var c=l-this._rendLineNumberStart;this._lines[c].onTokensChanged(),r=!0}}return r},e}(),uS=function(){function e(e){var t=this;this._host=e,this.domNode=this._createDomNode(),this._linesCollection=new aS((function(){return t._host.createVisibleLine()}))}return e.prototype._createDomNode=function(){var e=Dp(document.createElement("div"));return e.setClassName("view-layer"),e.setPosition("absolute"),e.domNode.setAttribute("role","presentation"),e.domNode.setAttribute("aria-hidden","true"),e},e.prototype.onConfigurationChanged=function(e){return e.layoutInfo},e.prototype.onFlushed=function(e){return this._linesCollection.flush(),!0},e.prototype.onLinesChanged=function(e){return this._linesCollection.onLinesChanged(e.fromLineNumber,e.toLineNumber)},e.prototype.onLinesDeleted=function(e){var t=this._linesCollection.onLinesDeleted(e.fromLineNumber,e.toLineNumber);if(t)for(var n=0,r=t.length;n<r;n++){var i=t[n].getDomNode();i&&this.domNode.domNode.removeChild(i)}return!0},e.prototype.onLinesInserted=function(e){var t=this._linesCollection.onLinesInserted(e.fromLineNumber,e.toLineNumber);if(t)for(var n=0,r=t.length;n<r;n++){var i=t[n].getDomNode();i&&this.domNode.domNode.removeChild(i)}return!0},e.prototype.onScrollChanged=function(e){return e.scrollTopChanged},e.prototype.onTokensChanged=function(e){return this._linesCollection.onTokensChanged(e.ranges)},e.prototype.onZonesChanged=function(e){return!0},e.prototype.getStartLineNumber=function(){return this._linesCollection.getStartLineNumber()},e.prototype.getEndLineNumber=function(){return this._linesCollection.getEndLineNumber()},e.prototype.getVisibleLine=function(e){return this._linesCollection.getLine(e)},e.prototype.renderLines=function(e){var t=this._linesCollection._get(),n=new lS(this.domNode.domNode,this._host,e),r={rendLineNumberStart:t.rendLineNumberStart,lines:t.lines,linesLength:t.lines.length},i=n.render(r,e.startLineNumber,e.endLineNumber,e.relativeVerticalOffset);this._linesCollection._set(i.rendLineNumberStart,i.lines)},e}(),lS=function(){function e(e,t,n){this.domNode=e,this.host=t,this.viewportData=n}return e.prototype.render=function(e,t,n,r){var i={rendLineNumberStart:e.rendLineNumberStart,lines:e.lines.slice(0),linesLength:e.linesLength};if(i.rendLineNumberStart+i.linesLength-1<t||n<i.rendLineNumberStart){i.rendLineNumberStart=t,i.linesLength=n-t+1,i.lines=[];for(var o=t;o<=n;o++)i.lines[o-t]=this.host.createVisibleLine();return this._finishRendering(i,!0,r),i}if(this._renderUntouchedLines(i,Math.max(t-i.rendLineNumberStart,0),Math.min(n-i.rendLineNumberStart,i.linesLength-1),r,t),i.rendLineNumberStart>t)(u=t)<=(s=Math.min(n,i.rendLineNumberStart-1))&&(this._insertLinesBefore(i,u,s,r,t),i.linesLength+=s-u+1);else if(i.rendLineNumberStart<t){(a=Math.min(i.linesLength,t-i.rendLineNumberStart))>0&&(this._removeLinesBefore(i,a),i.linesLength-=a)}if(i.rendLineNumberStart=t,i.rendLineNumberStart+i.linesLength-1<n)(u=i.rendLineNumberStart+i.linesLength)<=(s=n)&&(this._insertLinesAfter(i,u,s,r,t),i.linesLength+=s-u+1);else if(i.rendLineNumberStart+i.linesLength-1>n){var s,a,u=Math.max(0,n-i.rendLineNumberStart+1);(a=(s=i.linesLength-1)-u+1)>0&&(this._removeLinesAfter(i,a),i.linesLength-=a)}return this._finishRendering(i,!1,r),i},e.prototype._renderUntouchedLines=function(e,t,n,r,i){for(var o=e.rendLineNumberStart,s=e.lines,a=t;a<=n;a++){var u=o+a;s[a].layoutLine(u,r[u-i])}},e.prototype._insertLinesBefore=function(e,t,n,r,i){for(var o=[],s=0,a=t;a<=n;a++)o[s++]=this.host.createVisibleLine();e.lines=o.concat(e.lines)},e.prototype._removeLinesBefore=function(e,t){for(var n=0;n<t;n++){var r=e.lines[n].getDomNode();r&&this.domNode.removeChild(r)}e.lines.splice(0,t)},e.prototype._insertLinesAfter=function(e,t,n,r,i){for(var o=[],s=0,a=t;a<=n;a++)o[s++]=this.host.createVisibleLine();e.lines=e.lines.concat(o)},e.prototype._removeLinesAfter=function(e,t){for(var n=e.linesLength-t,r=0;r<t;r++){var i=e.lines[n+r].getDomNode();i&&this.domNode.removeChild(i)}e.lines.splice(n,t)},e.prototype._finishRenderingNewLines=function(e,t,n,r){var i=this.domNode.lastChild;t||!i?this.domNode.innerHTML=n:i.insertAdjacentHTML("afterend",n);for(var o=this.domNode.lastChild,s=e.linesLength-1;s>=0;s--){var a=e.lines[s];r[s]&&(a.setDomNode(o),o=o.previousSibling)}},e.prototype._finishRenderingInvalidLines=function(e,t,n){var r=document.createElement("div");r.innerHTML=t;for(var i=0;i<e.linesLength;i++){var o=e.lines[i];if(n[i]){var s=r.firstChild,a=o.getDomNode();a.parentNode.replaceChild(s,a),o.setDomNode(s)}}},e.prototype._finishRendering=function(t,n,r){var i=e._sb,o=t.linesLength,s=t.lines,a=t.rendLineNumberStart,u=[];i.reset();for(var l=!1,c=0;c<o;c++){var d=s[c];if(u[c]=!1,!d.getDomNode())d.renderLine(c+a,r[c],this.viewportData,i)&&(u[c]=!0,l=!0)}l&&this._finishRenderingNewLines(t,n,i.build(),u),i.reset();var h=!1,f=[];for(c=0;c<o;c++){d=s[c];if(f[c]=!1,!u[c])d.renderLine(c+a,r[c],this.viewportData,i)&&(f[c]=!0,h=!0)}h&&this._finishRenderingInvalidLines(t,i.build(),f)},e._sb=Dy(1e5),e}(),cS=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),dS=function(e){function t(t){var n=e.call(this,t)||this;return n._visibleLines=new uS(n),n.domNode=n._visibleLines.domNode,n._dynamicOverlays=[],n._isFocused=!1,n.domNode.setClassName("view-overlays"),n}return cS(t,e),t.prototype.shouldRender=function(){if(e.prototype.shouldRender.call(this))return!0;for(var t=0,n=this._dynamicOverlays.length;t<n;t++){if(this._dynamicOverlays[t].shouldRender())return!0}return!1},t.prototype.dispose=function(){e.prototype.dispose.call(this);for(var t=0,n=this._dynamicOverlays.length;t<n;t++){this._dynamicOverlays[t].dispose()}this._dynamicOverlays=[]},t.prototype.getDomNode=function(){return this.domNode},t.prototype.createVisibleLine=function(){return new hS(this._context.configuration,this._dynamicOverlays)},t.prototype.addDynamicOverlay=function(e){this._dynamicOverlays.push(e)},t.prototype.onConfigurationChanged=function(e){this._visibleLines.onConfigurationChanged(e);for(var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber(),r=t;r<=n;r++){this._visibleLines.getVisibleLine(r).onConfigurationChanged(e)}return!0},t.prototype.onFlushed=function(e){return this._visibleLines.onFlushed(e)},t.prototype.onFocusChanged=function(e){return this._isFocused=e.isFocused,!0},t.prototype.onLinesChanged=function(e){return this._visibleLines.onLinesChanged(e)},t.prototype.onLinesDeleted=function(e){return this._visibleLines.onLinesDeleted(e)},t.prototype.onLinesInserted=function(e){return this._visibleLines.onLinesInserted(e)},t.prototype.onScrollChanged=function(e){return this._visibleLines.onScrollChanged(e)||!0},t.prototype.onTokensChanged=function(e){return this._visibleLines.onTokensChanged(e)},t.prototype.onZonesChanged=function(e){return this._visibleLines.onZonesChanged(e)},t.prototype.prepareRender=function(e){for(var t=this._dynamicOverlays.filter((function(e){return e.shouldRender()})),n=0,r=t.length;n<r;n++){var i=t[n];i.prepareRender(e),i.onDidRender()}},t.prototype.render=function(e){this._viewOverlaysRender(e),this.domNode.toggleClassName("focused",this._isFocused)},t.prototype._viewOverlaysRender=function(e){this._visibleLines.renderLines(e.viewportData)},t}(_w),hS=function(){function e(e,t){this._configuration=e,this._lineHeight=this._configuration.editor.lineHeight,this._dynamicOverlays=t,this._domNode=null,this._renderedContent=null}return e.prototype.getDomNode=function(){return this._domNode?this._domNode.domNode:null},e.prototype.setDomNode=function(e){this._domNode=Dp(e)},e.prototype.onContentChanged=function(){},e.prototype.onTokensChanged=function(){},e.prototype.onConfigurationChanged=function(e){e.lineHeight&&(this._lineHeight=this._configuration.editor.lineHeight)},e.prototype.renderLine=function(e,t,n,r){for(var i="",o=0,s=this._dynamicOverlays.length;o<s;o++){i+=this._dynamicOverlays[o].render(n.startLineNumber,e)}return this._renderedContent!==i&&(this._renderedContent=i,r.appendASCIIString('<div style="position:absolute;top:'),r.appendASCIIString(String(t)),r.appendASCIIString("px;width:100%;height:"),r.appendASCIIString(String(this._lineHeight)),r.appendASCIIString('px;">'),r.appendASCIIString(i),r.appendASCIIString("</div>"),!0)},e.prototype.layoutLine=function(e,t){this._domNode&&(this._domNode.setTop(t),this._domNode.setHeight(this._lineHeight))},e}(),fS=function(e){function t(t){var n=e.call(this,t)||this;return n._contentWidth=n._context.configuration.editor.layoutInfo.contentWidth,n.domNode.setHeight(0),n}return cS(t,e),t.prototype.onConfigurationChanged=function(t){return t.layoutInfo&&(this._contentWidth=this._context.configuration.editor.layoutInfo.contentWidth),e.prototype.onConfigurationChanged.call(this,t)},t.prototype.onScrollChanged=function(t){return e.prototype.onScrollChanged.call(this,t)||t.scrollWidthChanged},t.prototype._viewOverlaysRender=function(t){e.prototype._viewOverlaysRender.call(this,t),this.domNode.setWidth(Math.max(t.scrollWidth,this._contentWidth))},t}(dS),pS=function(e){function t(t){var n=e.call(this,t)||this;return n._contentLeft=n._context.configuration.editor.layoutInfo.contentLeft,n.domNode.setClassName("margin-view-overlays"),n.domNode.setWidth(1),ow.applyFontInfo(n.domNode,n._context.configuration.editor.fontInfo),n}return cS(t,e),t.prototype.onConfigurationChanged=function(t){var n=!1;return t.fontInfo&&(ow.applyFontInfo(this.domNode,this._context.configuration.editor.fontInfo),n=!0),t.layoutInfo&&(this._contentLeft=this._context.configuration.editor.layoutInfo.contentLeft,n=!0),e.prototype.onConfigurationChanged.call(this,t)||n},t.prototype.onScrollChanged=function(t){return e.prototype.onScrollChanged.call(this,t)||t.scrollHeightChanged},t.prototype._viewOverlaysRender=function(t){e.prototype._viewOverlaysRender.call(this,t);var n=Math.min(t.scrollHeight,1e6);this.domNode.setHeight(n),this.domNode.setWidth(this._contentLeft)},t}(dS),gS=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),mS=function(e,t){this.top=e,this.left=t},_S=function(e){function t(t,n){var r=e.call(this,t)||this;return r._viewDomNode=n,r._widgets={},r.domNode=Dp(document.createElement("div")),yw.write(r.domNode,1),r.domNode.setClassName("contentWidgets"),r.domNode.setPosition("absolute"),r.domNode.setTop(0),r.overflowingContentWidgetsDomNode=Dp(document.createElement("div")),yw.write(r.overflowingContentWidgetsDomNode,2),r.overflowingContentWidgetsDomNode.setClassName("overflowingContentWidgets"),r}return gS(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._widgets={}},t.prototype.onConfigurationChanged=function(e){for(var t=0,n=Object.keys(this._widgets);t<n.length;t++){var r=n[t];this._widgets[r].onConfigurationChanged(e)}return!0},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onLineMappingChanged=function(e){for(var t=0,n=Object.keys(this._widgets);t<n.length;t++){var r=n[t];this._widgets[r].onLineMappingChanged(e)}return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return!0},t.prototype.onZonesChanged=function(e){return!0},t.prototype.addWidget=function(e){var t=new yS(this._context,this._viewDomNode,e);this._widgets[t.id]=t,t.allowEditorOverflow?this.overflowingContentWidgetsDomNode.appendChild(t.domNode):this.domNode.appendChild(t.domNode),this.setShouldRender()},t.prototype.setWidgetPosition=function(e,t,n,r){this._widgets[e.getId()].setPosition(t,n,r),this.setShouldRender()},t.prototype.removeWidget=function(e){var t=e.getId();if(this._widgets.hasOwnProperty(t)){var n=this._widgets[t];delete this._widgets[t];var r=n.domNode.domNode;r.parentNode.removeChild(r),r.removeAttribute("monaco-visible-content-widget"),this.setShouldRender()}},t.prototype.shouldSuppressMouseDownOnWidget=function(e){return!!this._widgets.hasOwnProperty(e)&&this._widgets[e].suppressMouseDown},t.prototype.onBeforeRender=function(e){for(var t=0,n=Object.keys(this._widgets);t<n.length;t++){var r=n[t];this._widgets[r].onBeforeRender(e)}},t.prototype.prepareRender=function(e){for(var t=0,n=Object.keys(this._widgets);t<n.length;t++){var r=n[t];this._widgets[r].prepareRender(e)}},t.prototype.render=function(e){for(var t=0,n=Object.keys(this._widgets);t<n.length;t++){var r=n[t];this._widgets[r].render(e)}},t}(_w),yS=function(){function e(e,t,n){this._context=e,this._viewDomNode=t,this._actual=n,this.domNode=Dp(this._actual.getDomNode()),this.id=this._actual.getId(),this.allowEditorOverflow=this._actual.allowEditorOverflow||!1,this.suppressMouseDown=this._actual.suppressMouseDown||!1,this._fixedOverflowWidgets=this._context.configuration.editor.viewInfo.fixedOverflowWidgets,this._contentWidth=this._context.configuration.editor.layoutInfo.contentWidth,this._contentLeft=this._context.configuration.editor.layoutInfo.contentLeft,this._lineHeight=this._context.configuration.editor.lineHeight,this._position=null,this._range=null,this._viewPosition=null,this._viewRange=null,this._preference=[],this._cachedDomNodeClientWidth=-1,this._cachedDomNodeClientHeight=-1,this._maxWidth=this._getMaxWidth(),this._isVisible=!1,this._renderData=null,this.domNode.setPosition(this._fixedOverflowWidgets&&this.allowEditorOverflow?"fixed":"absolute"),this.domNode.setVisibility("hidden"),this.domNode.setAttribute("widgetId",this.id),this.domNode.setMaxWidth(this._maxWidth)}return e.prototype.onConfigurationChanged=function(e){e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.layoutInfo&&(this._contentLeft=this._context.configuration.editor.layoutInfo.contentLeft,this._contentWidth=this._context.configuration.editor.layoutInfo.contentWidth,this._maxWidth=this._getMaxWidth())},e.prototype.onLineMappingChanged=function(e){this._setPosition(this._position,this._range)},e.prototype._setPosition=function(e,t){if(this._position=e,this._range=t,this._viewPosition=null,this._viewRange=null,this._position){var n=this._context.model.validateModelPosition(this._position);this._context.model.coordinatesConverter.modelPositionIsVisible(n)&&(this._viewPosition=this._context.model.coordinatesConverter.convertModelPositionToViewPosition(n))}if(this._range){var r=this._context.model.validateModelRange(this._range);this._viewRange=this._context.model.coordinatesConverter.convertModelRangeToViewRange(r)}},e.prototype._getMaxWidth=function(){return this.allowEditorOverflow?window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth:this._contentWidth},e.prototype.setPosition=function(e,t,n){this._setPosition(e,t),this._preference=n,this._cachedDomNodeClientWidth=-1,this._cachedDomNodeClientHeight=-1},e.prototype._layoutBoxInViewport=function(e,t,n,r,i){var o=e.top,s=o,a=t.top+this._lineHeight,u=o-r,l=s>=r,c=a,d=i.viewportHeight-a>=r,h=e.left,f=t.left;return h+n>i.scrollLeft+i.viewportWidth&&(h=i.scrollLeft+i.viewportWidth-n),f+n>i.scrollLeft+i.viewportWidth&&(f=i.scrollLeft+i.viewportWidth-n),h<i.scrollLeft&&(h=i.scrollLeft),f<i.scrollLeft&&(f=i.scrollLeft),{fitsAbove:l,aboveTop:u,aboveLeft:h,fitsBelow:d,belowTop:c,belowLeft:f}},e.prototype._layoutBoxInPage=function(e,t,n,r,i){var o,s=e.left-i.scrollLeft,a=t.left-i.scrollLeft,u=e.top-r,l=t.top+this._lineHeight,c=s+this._contentLeft,d=a+this._contentLeft,h=pf(this._viewDomNode.domNode),f=h.top+u-gf.scrollY,p=h.top+l-gf.scrollY,g=h.left+c-gf.scrollX,m=h.left+d-gf.scrollX,_=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,y=f>=22,v=p+r<=(window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)-22;g+n+20>_&&(g-=o=g-(_-n-20),c-=o);m+n+20>_&&(m-=o=m-(_-n-20),d-=o);g<0&&(g-=o=g,c-=o);m<0&&(m-=o=m,d-=o);return this._fixedOverflowWidgets&&(u=f,l=p,c=g,d=m),{fitsAbove:y,aboveTop:u,aboveLeft:c,fitsBelow:v,belowTop:l,belowLeft:d}},e.prototype._prepareRenderWidgetAtExactPositionOverflowing=function(e){return new mS(e.top,e.left+this._contentLeft)},e.prototype._getTopAndBottomLeft=function(e){if(!this._viewPosition)return[null,null];var t=e.visibleRangeForPosition(this._viewPosition);if(!t)return[null,null];var n=e.getVerticalOffsetForLineNumber(this._viewPosition.lineNumber)-e.scrollTop,r=new mS(n,t.left),i=this._viewPosition.lineNumber,o=t.left;if(this._viewRange){var s=e.linesVisibleRangesForRange(this._viewRange,!1);if(s&&s.length>0)for(var a=s.length-1;a>=0;a--){var u=s[a];if(u.lineNumber>=i){u.lineNumber>i&&(i=u.lineNumber,o=1073741824);for(var l=0,c=u.ranges.length;l<c;l++){var d=u.ranges[l];d.left<o&&(o=d.left)}}}}var h=e.getVerticalOffsetForLineNumber(i)-e.scrollTop;return[r,new mS(h,o)]},e.prototype._prepareRenderWidget=function(e){var t,n=this._getTopAndBottomLeft(e),r=n[0],i=n[1];if(!r||!i)return null;if(-1===this._cachedDomNodeClientWidth||-1===this._cachedDomNodeClientHeight){var o=this.domNode.domNode;this._cachedDomNodeClientWidth=o.clientWidth,this._cachedDomNodeClientHeight=o.clientHeight}if(t=this.allowEditorOverflow?this._layoutBoxInPage(r,i,this._cachedDomNodeClientWidth,this._cachedDomNodeClientHeight,e):this._layoutBoxInViewport(r,i,this._cachedDomNodeClientWidth,this._cachedDomNodeClientHeight,e),this._preference)for(var s=1;s<=2;s++)for(var a=0,u=this._preference;a<u.length;a++){var l=u[a];if(1===l){if(!t)return null;if(2===s||t.fitsAbove)return new mS(t.aboveTop,t.aboveLeft)}else{if(2!==l)return this.allowEditorOverflow?this._prepareRenderWidgetAtExactPositionOverflowing(r):r;if(!t)return null;if(2===s||t.fitsBelow)return new mS(t.belowTop,t.belowLeft)}}return null},e.prototype.onBeforeRender=function(e){this._viewPosition&&this._preference&&(this._viewPosition.lineNumber<e.startLineNumber||this._viewPosition.lineNumber>e.endLineNumber||this.domNode.setMaxWidth(this._maxWidth))},e.prototype.prepareRender=function(e){this._renderData=this._prepareRenderWidget(e)},e.prototype.render=function(e){this._renderData?(this.allowEditorOverflow?(this.domNode.setTop(this._renderData.top),this.domNode.setLeft(this._renderData.left)):(this.domNode.setTop(this._renderData.top+e.scrollTop-e.bigNumbersDelta),this.domNode.setLeft(this._renderData.left)),this._isVisible||(this.domNode.setVisibility("inherit"),this.domNode.setAttribute("monaco-visible-content-widget","true"),this._isVisible=!0)):this._isVisible&&(this.domNode.removeAttribute("monaco-visible-content-widget"),this._isVisible=!1,this.domNode.setVisibility("hidden"))},e}(),vS=(n(337),function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),bS=function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._lineHeight=n._context.configuration.editor.lineHeight,n._renderLineHighlight=n._context.configuration.editor.viewInfo.renderLineHighlight,n._selectionIsEmpty=!0,n._primaryCursorLineNumber=1,n._scrollWidth=0,n._contentWidth=n._context.configuration.editor.layoutInfo.contentWidth,n._context.addEventHandler(n),n}return vS(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.viewInfo&&(this._renderLineHighlight=this._context.configuration.editor.viewInfo.renderLineHighlight),e.layoutInfo&&(this._contentWidth=this._context.configuration.editor.layoutInfo.contentWidth),!0},t.prototype.onCursorStateChanged=function(e){var t=!1,n=e.selections[0].positionLineNumber;this._primaryCursorLineNumber!==n&&(this._primaryCursorLineNumber=n,t=!0);var r=e.selections[0].isEmpty();return this._selectionIsEmpty!==r?(this._selectionIsEmpty=r,!0):t},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollWidthChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype.prepareRender=function(e){this._scrollWidth=e.scrollWidth},t.prototype.render=function(e,t){return t===this._primaryCursorLineNumber&&this._shouldShowCurrentLine()?'<div class="'+("current-line"+(this._willRenderMarginCurrentLine()?" current-line-both":""))+'" style="width:'+String(Math.max(this._scrollWidth,this._contentWidth))+"px; height:"+String(this._lineHeight)+'px;"></div>':""},t.prototype._shouldShowCurrentLine=function(){return("line"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&this._selectionIsEmpty},t.prototype._willRenderMarginCurrentLine=function(){return"gutter"===this._renderLineHighlight||"all"===this._renderLineHighlight},t}(cC);Wd((function(e,t){var n=e.getColor(dC);if(n&&t.addRule(".monaco-editor .view-overlays .current-line { background-color: "+n+"; }"),!n||n.isTransparent()||e.defines(hC)){var r=e.getColor(hC);r&&(t.addRule(".monaco-editor .view-overlays .current-line { border: 2px solid "+r+"; }"),"hc"===e.type&&t.addRule(".monaco-editor .view-overlays .current-line { border-width: 1px; }"))}}));n(338);var wS=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),CS=function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._lineHeight=n._context.configuration.editor.lineHeight,n._renderLineHighlight=n._context.configuration.editor.viewInfo.renderLineHighlight,n._selectionIsEmpty=!0,n._primaryCursorLineNumber=1,n._contentLeft=n._context.configuration.editor.layoutInfo.contentLeft,n._context.addEventHandler(n),n}return wS(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.viewInfo&&(this._renderLineHighlight=this._context.configuration.editor.viewInfo.renderLineHighlight),e.layoutInfo&&(this._contentLeft=this._context.configuration.editor.layoutInfo.contentLeft),!0},t.prototype.onCursorStateChanged=function(e){var t=!1,n=e.selections[0].positionLineNumber;this._primaryCursorLineNumber!==n&&(this._primaryCursorLineNumber=n,t=!0);var r=e.selections[0].isEmpty();return this._selectionIsEmpty!==r?(this._selectionIsEmpty=r,!0):t},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onZonesChanged=function(e){return!0},t.prototype.prepareRender=function(e){},t.prototype.render=function(e,t){if(t===this._primaryCursorLineNumber){var n="current-line";if(this._shouldShowCurrentLine())n="current-line current-line-margin"+(this._willRenderContentCurrentLine()?" current-line-margin-both":"");return'<div class="'+n+'" style="width:'+String(this._contentLeft)+"px; height:"+String(this._lineHeight)+'px;"></div>'}return""},t.prototype._shouldShowCurrentLine=function(){return"gutter"===this._renderLineHighlight||"all"===this._renderLineHighlight},t.prototype._willRenderContentCurrentLine=function(){return("line"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&this._selectionIsEmpty},t}(cC);Wd((function(e,t){var n=e.getColor(dC);if(n)t.addRule(".monaco-editor .margin-view-overlays .current-line-margin { background-color: "+n+"; border: none; }");else{var r=e.getColor(hC);r&&t.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border: 2px solid "+r+"; }"),"hc"===e.type&&t.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border-width: 1px; }")}}));n(339);var SS=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xS=function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._lineHeight=n._context.configuration.editor.lineHeight,n._typicalHalfwidthCharacterWidth=n._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,n._renderResult=null,n._context.addEventHandler(n),n}return SS(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.fontInfo&&(this._typicalHalfwidthCharacterWidth=this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth),!0},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged||e.scrollWidthChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype.prepareRender=function(e){for(var t=e.getDecorationsInViewport(),n=[],r=0,i=0,o=t.length;i<o;i++){var s=t[i];s.options.className&&(n[r++]=s)}n=n.sort((function(e,t){if(e.options.zIndex<t.options.zIndex)return-1;if(e.options.zIndex>t.options.zIndex)return 1;var n=e.options.className,r=t.options.className;return n<r?-1:n>r?1:Yr.compareRangesUsingStarts(e.range,t.range)}));for(var a=e.visibleRange.startLineNumber,u=e.visibleRange.endLineNumber,l=[],c=a;c<=u;c++){l[c-a]=""}this._renderWholeLineDecorations(e,n,l),this._renderNormalDecorations(e,n,l),this._renderResult=l},t.prototype._renderWholeLineDecorations=function(e,t,n){for(var r=String(this._lineHeight),i=e.visibleRange.startLineNumber,o=e.visibleRange.endLineNumber,s=0,a=t.length;s<a;s++){var u=t[s];if(u.options.isWholeLine)for(var l='<div class="cdr '+u.options.className+'" style="left:0;width:100%;height:'+r+'px;"></div>',c=Math.max(u.range.startLineNumber,i),d=Math.min(u.range.endLineNumber,o),h=c;h<=d;h++){n[h-i]+=l}}},t.prototype._renderNormalDecorations=function(e,t,n){for(var r=String(this._lineHeight),i=e.visibleRange.startLineNumber,o=null,s=!1,a=null,u=0,l=t.length;u<l;u++){var c=t[u];if(!c.options.isWholeLine){var d=c.options.className,h=Boolean(c.options.showIfCollapsed),f=c.range;h&&1===f.endColumn&&f.endLineNumber!==f.startLineNumber&&(f=new Yr(f.startLineNumber,f.startColumn,f.endLineNumber-1,this._context.model.getLineMaxColumn(f.endLineNumber-1))),o===d&&s===h&&Yr.areIntersectingOrTouching(a,f)?a=Yr.plusRange(a,f):(null!==o&&this._renderNormalDecoration(e,a,o,s,r,i,n),o=d,s=h,a=f)}}null!==o&&this._renderNormalDecoration(e,a,o,s,r,i,n)},t.prototype._renderNormalDecoration=function(e,t,n,r,i,o,s){var a=e.linesVisibleRangesForRange(t,"findMatch"===n);if(a)for(var u=0,l=a.length;u<l;u++){var c=a[u],d=c.lineNumber-o;if(r&&1===c.ranges.length){var h=c.ranges[0];0===h.width&&(c.ranges[0]=new Cw(h.left,this._typicalHalfwidthCharacterWidth))}for(var f=0,p=c.ranges.length;f<p;f++){var g=c.ranges[f],m='<div class="cdr '+n+'" style="left:'+String(g.left)+"px;width:"+String(g.width)+"px;height:"+i+'px;"></div>';s[d]+=m}}},t.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]},t}(cC),LS=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),kS=function(e){function t(t,n,r,i){var o=e.call(this,t)||this,s=o._context.configuration.editor.viewInfo.scrollbar,a={listenOnDomNode:r.domNode,className:"editor-scrollable "+Yd(t.theme.type),useShadows:!1,lazyRender:!0,vertical:s.vertical,horizontal:s.horizontal,verticalHasArrows:s.verticalHasArrows,horizontalHasArrows:s.horizontalHasArrows,verticalScrollbarSize:s.verticalScrollbarSize,verticalSliderSize:s.verticalSliderSize,horizontalScrollbarSize:s.horizontalScrollbarSize,horizontalSliderSize:s.horizontalSliderSize,handleMouseWheel:s.handleMouseWheel,arrowSize:s.arrowSize,mouseWheelScrollSensitivity:s.mouseWheelScrollSensitivity,fastScrollSensitivity:s.fastScrollSensitivity};o.scrollbar=o._register(new eg(n.domNode,a,o._context.viewLayout.scrollable)),yw.write(o.scrollbar.getDomNode(),5),o.scrollbarDomNode=Dp(o.scrollbar.getDomNode()),o.scrollbarDomNode.setPosition("absolute"),o._setLayout();var u=function(e,t,n){var r={};if(t){var i=e.scrollTop;i&&(r.scrollTop=o._context.viewLayout.getCurrentScrollTop()+i,e.scrollTop=0)}if(n){var s=e.scrollLeft;s&&(r.scrollLeft=o._context.viewLayout.getCurrentScrollLeft()+s,e.scrollLeft=0)}o._context.viewLayout.setScrollPositionNow(r)};return o._register(Gh(r.domNode,"scroll",(function(e){return u(r.domNode,!0,!0)}))),o._register(Gh(n.domNode,"scroll",(function(e){return u(n.domNode,!0,!1)}))),o._register(Gh(i.domNode,"scroll",(function(e){return u(i.domNode,!0,!1)}))),o._register(Gh(o.scrollbarDomNode.domNode,"scroll",(function(e){return u(o.scrollbarDomNode.domNode,!0,!1)}))),o}return LS(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype._setLayout=function(){var e=this._context.configuration.editor.layoutInfo;this.scrollbarDomNode.setLeft(e.contentLeft),"right"===this._context.configuration.editor.viewInfo.minimap.side?this.scrollbarDomNode.setWidth(e.contentWidth+e.minimapWidth):this.scrollbarDomNode.setWidth(e.contentWidth),this.scrollbarDomNode.setHeight(e.contentHeight)},t.prototype.getOverviewRulerLayoutInfo=function(){return this.scrollbar.getOverviewRulerLayoutInfo()},t.prototype.getDomNode=function(){return this.scrollbarDomNode},t.prototype.delegateVerticalScrollbarMouseDown=function(e){this.scrollbar.delegateVerticalScrollbarMouseDown(e)},t.prototype.onConfigurationChanged=function(e){if(e.viewInfo){var t=this._context.configuration.editor,n={handleMouseWheel:t.viewInfo.scrollbar.handleMouseWheel,mouseWheelScrollSensitivity:t.viewInfo.scrollbar.mouseWheelScrollSensitivity,fastScrollSensitivity:t.viewInfo.scrollbar.fastScrollSensitivity};this.scrollbar.updateOptions(n)}return e.layoutInfo&&this._setLayout(),!0},t.prototype.onScrollChanged=function(e){return!0},t.prototype.onThemeChanged=function(e){return this.scrollbar.updateClassName("editor-scrollable "+Yd(this._context.theme.type)),!0},t.prototype.prepareRender=function(e){},t.prototype.render=function(e){this.scrollbar.renderNow()},t}(_w),MS=(n(340),function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),DS=function(e,t,n){this.startLineNumber=+e,this.endLineNumber=+t,this.className=String(n)},ES=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return MS(t,e),t.prototype._render=function(e,t,n){for(var r=[],i=e;i<=t;i++){r[i-e]=[]}if(0===n.length)return r;n.sort((function(e,t){return e.className===t.className?e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber:e.className<t.className?-1:1}));for(var o=null,s=0,a=0,u=n.length;a<u;a++){var l=n[a],c=l.className,d=Math.max(l.startLineNumber,e)-e,h=Math.min(l.endLineNumber,t)-e;o===c?(d=Math.max(s+1,d),s=Math.max(s,h)):(o=c,s=h);for(var f=d;f<=s;f++)r[f].push(o)}return r},t}(cC),TS=function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._lineHeight=n._context.configuration.editor.lineHeight,n._glyphMargin=n._context.configuration.editor.viewInfo.glyphMargin,n._glyphMarginLeft=n._context.configuration.editor.layoutInfo.glyphMarginLeft,n._glyphMarginWidth=n._context.configuration.editor.layoutInfo.glyphMarginWidth,n._renderResult=null,n._context.addEventHandler(n),n}return MS(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.viewInfo&&(this._glyphMargin=this._context.configuration.editor.viewInfo.glyphMargin),e.layoutInfo&&(this._glyphMarginLeft=this._context.configuration.editor.layoutInfo.glyphMarginLeft,this._glyphMarginWidth=this._context.configuration.editor.layoutInfo.glyphMarginWidth),!0},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype._getDecorations=function(e){for(var t=e.getDecorationsInViewport(),n=[],r=0,i=0,o=t.length;i<o;i++){var s=t[i],a=s.options.glyphMarginClassName;a&&(n[r++]=new DS(s.range.startLineNumber,s.range.endLineNumber,a))}return n},t.prototype.prepareRender=function(e){if(this._glyphMargin){for(var t=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,r=this._render(t,n,this._getDecorations(e)),i=this._lineHeight.toString(),o='" style="left:'+this._glyphMarginLeft.toString()+"px;width:"+this._glyphMarginWidth.toString()+"px;height:"+i+'px;"></div>',s=[],a=t;a<=n;a++){var u=a-t,l=r[u];0===l.length?s[u]="":s[u]='<div class="cgmr '+l.join(" ")+o}this._renderResult=s}else this._renderResult=null},t.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]},t}(ES),NS=(n(341),function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),OS=function(e){function t(t){var n=e.call(this)||this;n._context=t,n._primaryLineNumber=0,n._lineHeight=n._context.configuration.editor.lineHeight,n._spaceWidth=n._context.configuration.editor.fontInfo.spaceWidth,n._enabled=n._context.configuration.editor.viewInfo.renderIndentGuides,n._activeIndentEnabled=n._context.configuration.editor.viewInfo.highlightActiveIndentGuide;var r=n._context.configuration.editor.wrappingInfo.wrappingColumn;return n._maxIndentLeft=-1===r?-1:r*n._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,n._renderResult=null,n._context.addEventHandler(n),n}return NS(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){if(e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.fontInfo&&(this._spaceWidth=this._context.configuration.editor.fontInfo.spaceWidth),e.viewInfo&&(this._enabled=this._context.configuration.editor.viewInfo.renderIndentGuides,this._activeIndentEnabled=this._context.configuration.editor.viewInfo.highlightActiveIndentGuide),e.wrappingInfo||e.fontInfo){var t=this._context.configuration.editor.wrappingInfo.wrappingColumn;this._maxIndentLeft=-1===t?-1:t*this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth}return!0},t.prototype.onCursorStateChanged=function(e){var t=e.selections[0],n=t.isEmpty()?t.positionLineNumber:0;return this._primaryLineNumber!==n&&(this._primaryLineNumber=n,!0)},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype.onLanguageConfigurationChanged=function(e){return!0},t.prototype.prepareRender=function(e){if(this._enabled){var t=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,r=this._context.model.getOptions().indentSize*this._spaceWidth,i=e.scrollWidth,o=this._lineHeight,s=this._context.model.getLinesIndentGuides(t,n),a=0,u=0,l=0;if(this._activeIndentEnabled&&this._primaryLineNumber){var c=this._context.model.getActiveIndentGuide(this._primaryLineNumber,t,n);a=c.startLineNumber,u=c.endLineNumber,l=c.indent}for(var d=[],h=t;h<=n;h++){for(var f=a<=h&&h<=u,p=h-t,g=s[p],m="",_=e.visibleRangeForPosition(new Lt(h,1)),y=_?_.left:0,v=1;v<=g;v++){if(m+='<div class="'+(f&&v===l?"cigra":"cigr")+'" style="left:'+y+"px;height:"+o+"px;width:"+r+'px"></div>',(y+=r)>i||this._maxIndentLeft>0&&y>this._maxIndentLeft)break}d[p]=m}this._renderResult=d}else this._renderResult=null},t.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]},t}(cC);Wd((function(e,t){var n=e.getColor(yC);n&&t.addRule(".monaco-editor .lines-content .cigr { box-shadow: 1px 0 0 0 "+n+" inset; }");var r=e.getColor(vC)||n;r&&t.addRule(".monaco-editor .lines-content .cigra { box-shadow: 1px 0 0 0 "+r+" inset; }")}));n(342);var AS=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),IS=function(){function e(){this._currentVisibleRange=new Yr(1,1,1,1)}return e.prototype.getCurrentVisibleRange=function(){return this._currentVisibleRange},e.prototype.setCurrentVisibleRange=function(e){this._currentVisibleRange=e},e}(),PS=function(e,t,n,r,i,o){this.lineNumber=e,this.startColumn=t,this.endColumn=n,this.startScrollTop=r,this.stopScrollTop=i,this.scrollType=o},RS=function(e){function t(t,n){var r=e.call(this,t)||this;r._linesContent=n,r._textRangeRestingSpot=document.createElement("div"),r._visibleLines=new uS(r),r.domNode=r._visibleLines.domNode;var i=r._context.configuration;return r._lineHeight=i.editor.lineHeight,r._typicalHalfwidthCharacterWidth=i.editor.fontInfo.typicalHalfwidthCharacterWidth,r._isViewportWrapping=i.editor.wrappingInfo.isViewportWrapping,r._revealHorizontalRightPadding=i.editor.viewInfo.revealHorizontalRightPadding,r._scrollOff=i.editor.viewInfo.cursorSurroundingLines,r._canUseLayerHinting=i.editor.canUseLayerHinting,r._viewLineOptions=new Ew(i,r._context.theme.type),yw.write(r.domNode,7),r.domNode.setClassName("view-lines"),ow.applyFontInfo(r.domNode,i.editor.fontInfo),r._maxLineWidth=0,r._asyncUpdateLineWidths=new As((function(){r._updateLineWidthsSlow()}),200),r._lastRenderedData=new IS,r._horizontalRevealRequest=null,r}return AS(t,e),t.prototype.dispose=function(){this._asyncUpdateLineWidths.dispose(),e.prototype.dispose.call(this)},t.prototype.getDomNode=function(){return this.domNode},t.prototype.createVisibleLine=function(){return new Tw(this._viewLineOptions)},t.prototype.onConfigurationChanged=function(e){this._visibleLines.onConfigurationChanged(e),e.wrappingInfo&&(this._maxLineWidth=0);var t=this._context.configuration;return e.lineHeight&&(this._lineHeight=t.editor.lineHeight),e.fontInfo&&(this._typicalHalfwidthCharacterWidth=t.editor.fontInfo.typicalHalfwidthCharacterWidth),e.wrappingInfo&&(this._isViewportWrapping=t.editor.wrappingInfo.isViewportWrapping),e.viewInfo&&(this._revealHorizontalRightPadding=t.editor.viewInfo.revealHorizontalRightPadding,this._scrollOff=t.editor.viewInfo.cursorSurroundingLines),e.canUseLayerHinting&&(this._canUseLayerHinting=t.editor.canUseLayerHinting),e.fontInfo&&ow.applyFontInfo(this.domNode,t.editor.fontInfo),this._onOptionsMaybeChanged(),e.layoutInfo&&(this._maxLineWidth=0),!0},t.prototype._onOptionsMaybeChanged=function(){var e=this._context.configuration,t=new Ew(e,this._context.theme.type);if(!this._viewLineOptions.equals(t)){this._viewLineOptions=t;for(var n=this._visibleLines.getStartLineNumber(),r=this._visibleLines.getEndLineNumber(),i=n;i<=r;i++){this._visibleLines.getVisibleLine(i).onOptionsChanged(this._viewLineOptions)}return!0}return!1},t.prototype.onCursorStateChanged=function(e){for(var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber(),r=!1,i=t;i<=n;i++)r=this._visibleLines.getVisibleLine(i).onSelectionChanged()||r;return r},t.prototype.onDecorationsChanged=function(e){for(var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber(),r=t;r<=n;r++)this._visibleLines.getVisibleLine(r).onDecorationsChanged();return!0},t.prototype.onFlushed=function(e){var t=this._visibleLines.onFlushed(e);return this._maxLineWidth=0,t},t.prototype.onLinesChanged=function(e){return this._visibleLines.onLinesChanged(e)},t.prototype.onLinesDeleted=function(e){return this._visibleLines.onLinesDeleted(e)},t.prototype.onLinesInserted=function(e){return this._visibleLines.onLinesInserted(e)},t.prototype.onRevealRangeRequest=function(e){var t=this._computeScrollTopToRevealRange(this._context.viewLayout.getFutureViewport(),e.range,e.verticalType),n=this._context.viewLayout.validateScrollPosition({scrollTop:t});e.revealHorizontal?e.range.startLineNumber!==e.range.endLineNumber?n={scrollTop:n.scrollTop,scrollLeft:0}:this._horizontalRevealRequest=new PS(e.range.startLineNumber,e.range.startColumn,e.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),n.scrollTop,e.scrollType):this._horizontalRevealRequest=null;var r=Math.abs(this._context.viewLayout.getCurrentScrollTop()-n.scrollTop);return 0===e.scrollType&&r>this._lineHeight?this._context.viewLayout.setScrollPositionSmooth(n):this._context.viewLayout.setScrollPositionNow(n),!0},t.prototype.onScrollChanged=function(e){if(this._horizontalRevealRequest&&e.scrollLeftChanged&&(this._horizontalRevealRequest=null),this._horizontalRevealRequest&&e.scrollTopChanged){var t=Math.min(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop),n=Math.max(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop);(e.scrollTop<t||e.scrollTop>n)&&(this._horizontalRevealRequest=null)}return this.domNode.setWidth(e.scrollWidth),this._visibleLines.onScrollChanged(e)||!0},t.prototype.onTokensChanged=function(e){return this._visibleLines.onTokensChanged(e)},t.prototype.onZonesChanged=function(e){return this._context.viewLayout.onMaxLineWidthChanged(this._maxLineWidth),this._visibleLines.onZonesChanged(e)},t.prototype.onThemeChanged=function(e){return this._onOptionsMaybeChanged()},t.prototype.getPositionFromDOMInfo=function(e,t){var n=this._getViewLineDomNode(e);if(null===n)return null;var r=this._getLineNumberFor(n);if(-1===r)return null;if(r<1||r>this._context.model.getLineCount())return null;if(1===this._context.model.getLineMaxColumn(r))return new Lt(r,1);var i=this._visibleLines.getStartLineNumber(),o=this._visibleLines.getEndLineNumber();if(r<i||r>o)return null;var s=this._visibleLines.getVisibleLine(r).getColumnOfNodeOffset(r,e,t),a=this._context.model.getLineMinColumn(r);return s<a&&(s=a),new Lt(r,s)},t.prototype._getViewLineDomNode=function(e){for(;e&&1===e.nodeType;){if(e.className===Tw.CLASS_NAME)return e;e=e.parentElement}return null},t.prototype._getLineNumberFor=function(e){for(var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber(),r=t;r<=n;r++){if(e===this._visibleLines.getVisibleLine(r).getDomNode())return r}return-1},t.prototype.getLineWidth=function(e){var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber();return e<t||e>n?-1:this._visibleLines.getVisibleLine(e).getWidth()},t.prototype.linesVisibleRangesForRange=function(e,t){if(this.shouldRender())return null;var n=e.endLineNumber,r=Yr.intersectRanges(e,this._lastRenderedData.getCurrentVisibleRange());if(!r)return null;var i=[],o=0,s=new Dw(this.domNode.domNode,this._textRangeRestingSpot),a=0;t&&(a=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new Lt(r.startLineNumber,1)).lineNumber);for(var u=this._visibleLines.getStartLineNumber(),l=this._visibleLines.getEndLineNumber(),c=r.startLineNumber;c<=r.endLineNumber;c++)if(!(c<u||c>l)){var d=c===r.startLineNumber?r.startColumn:1,h=c===r.endLineNumber?r.endColumn:this._context.model.getLineMaxColumn(c),f=this._visibleLines.getVisibleLine(c).getVisibleRangesForRange(d,h,s);if(f&&0!==f.length){if(t&&c<n)a!==(a=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new Lt(c+1,1)).lineNumber)&&(f[f.length-1].width+=this._typicalHalfwidthCharacterWidth);i[o++]=new ww(c,f)}}return 0===o?null:i},t.prototype.visibleRangesForRange2=function(e){if(this.shouldRender())return null;var t=Yr.intersectRanges(e,this._lastRenderedData.getCurrentVisibleRange());if(!t)return null;for(var n=[],r=new Dw(this.domNode.domNode,this._textRangeRestingSpot),i=this._visibleLines.getStartLineNumber(),o=this._visibleLines.getEndLineNumber(),s=t.startLineNumber;s<=t.endLineNumber;s++)if(!(s<i||s>o)){var a=s===t.startLineNumber?t.startColumn:1,u=s===t.endLineNumber?t.endColumn:this._context.model.getLineMaxColumn(s),l=this._visibleLines.getVisibleLine(s).getVisibleRangesForRange(a,u,r);l&&0!==l.length&&(n=n.concat(l))}return 0===n.length?null:n},t.prototype.visibleRangeForPosition=function(e){var t=this.visibleRangesForRange2(new Yr(e.lineNumber,e.column,e.lineNumber,e.column));return t?t[0]:null},t.prototype.updateLineWidths=function(){this._updateLineWidths(!1)},t.prototype._updateLineWidthsFast=function(){return this._updateLineWidths(!0)},t.prototype._updateLineWidthsSlow=function(){this._updateLineWidths(!1)},t.prototype._updateLineWidths=function(e){for(var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber(),r=1,i=!0,o=t;o<=n;o++){var s=this._visibleLines.getVisibleLine(o);!e||s.getWidthIsFast()?r=Math.max(r,s.getWidth()):i=!1}return i&&1===t&&n===this._context.model.getLineCount()&&(this._maxLineWidth=0),this._ensureMaxLineWidth(r),i},t.prototype.prepareRender=function(){throw new Error("Not supported")},t.prototype.render=function(){throw new Error("Not supported")},t.prototype.renderText=function(e){if(this._visibleLines.renderLines(e),this._lastRenderedData.setCurrentVisibleRange(e.visibleRange),this.domNode.setWidth(this._context.viewLayout.getScrollWidth()),this.domNode.setHeight(Math.min(this._context.viewLayout.getScrollHeight(),1e6)),this._horizontalRevealRequest){var t=this._horizontalRevealRequest.lineNumber,n=this._horizontalRevealRequest.startColumn,r=this._horizontalRevealRequest.endColumn,i=this._horizontalRevealRequest.scrollType;if(e.startLineNumber<=t&&t<=e.endLineNumber){this._horizontalRevealRequest=null,this.onDidRender();var o=this._computeScrollLeftToRevealRange(t,n,r);this._isViewportWrapping||this._ensureMaxLineWidth(o.maxHorizontalOffset),0===i?this._context.viewLayout.setScrollPositionSmooth({scrollLeft:o.scrollLeft}):this._context.viewLayout.setScrollPositionNow({scrollLeft:o.scrollLeft})}}this._updateLineWidthsFast()||this._asyncUpdateLineWidths.schedule(),this._linesContent.setLayerHinting(this._canUseLayerHinting);var s=this._context.viewLayout.getCurrentScrollTop()-e.bigNumbersDelta;this._linesContent.setTop(-s),this._linesContent.setLeft(-this._context.viewLayout.getCurrentScrollLeft())},t.prototype._ensureMaxLineWidth=function(e){var t=Math.ceil(e);this._maxLineWidth<t&&(this._maxLineWidth=t,this._context.viewLayout.onMaxLineWidthChanged(this._maxLineWidth))},t.prototype._computeScrollTopToRevealRange=function(e,t,n){var r,i,o=e.top,s=e.height,a=o+s;r=this._context.viewLayout.getVerticalOffsetForLineNumber(t.startLineNumber),i=this._context.viewLayout.getVerticalOffsetForLineNumber(t.endLineNumber)+this._lineHeight;var u,l=Math.min(s/this._lineHeight/2,this._scrollOff);if(r-=l*this._lineHeight,i+=Math.max(0,l-1)*this._lineHeight,0!==n&&4!==n||(i+=this._lineHeight),1===n||2===n)if(2===n&&o<=r&&i<=a)u=o;else{var c=(r+i)/2;u=Math.max(0,c-s/2)}else u=this._computeMinimumScrolling(o,a,r,i,3===n,4===n);return u},t.prototype._computeScrollLeftToRevealRange=function(e,n,r){var i=0,o=this._context.viewLayout.getCurrentViewport(),s=o.left,a=s+o.width,u=this.visibleRangesForRange2(new Yr(e,n,e,r)),l=Number.MAX_VALUE,c=0;if(!u)return{scrollLeft:s,maxHorizontalOffset:i};for(var d=0,h=u;d<h.length;d++){var f=h[d];f.left<l&&(l=f.left),f.left+f.width>c&&(c=f.left+f.width)}return i=c,l=Math.max(0,l-t.HORIZONTAL_EXTRA_PX),c+=this._revealHorizontalRightPadding,{scrollLeft:this._computeMinimumScrolling(s,a,l,c),maxHorizontalOffset:i}},t.prototype._computeMinimumScrolling=function(e,t,n,r,i,o){i=!!i,o=!!o;var s=(t|=0)-(e|=0);return(r|=0)-(n|=0)<s?i?n:o?Math.max(0,r-s):n<e?n:r>t?Math.max(0,r-s):e:n},t.HORIZONTAL_EXTRA_PX=30,t}(_w),FS=(n(343),function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),YS=function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._decorationsLeft=n._context.configuration.editor.layoutInfo.decorationsLeft,n._decorationsWidth=n._context.configuration.editor.layoutInfo.decorationsWidth,n._renderResult=null,n._context.addEventHandler(n),n}return FS(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return e.layoutInfo&&(this._decorationsLeft=this._context.configuration.editor.layoutInfo.decorationsLeft,this._decorationsWidth=this._context.configuration.editor.layoutInfo.decorationsWidth),!0},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype._getDecorations=function(e){for(var t=e.getDecorationsInViewport(),n=[],r=0,i=0,o=t.length;i<o;i++){var s=t[i],a=s.options.linesDecorationsClassName;a&&(n[r++]=new DS(s.range.startLineNumber,s.range.endLineNumber,a))}return n},t.prototype.prepareRender=function(e){for(var t=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,r=this._render(t,n,this._getDecorations(e)),i='" style="left:'+this._decorationsLeft.toString()+"px;width:"+this._decorationsWidth.toString()+'px;"></div>',o=[],s=t;s<=n;s++){for(var a=s-t,u=r[a],l="",c=0,d=u.length;c<d;c++)l+='<div class="cldr '+u[c]+i;o[a]=l}this._renderResult=o},t.prototype.render=function(e,t){return this._renderResult?this._renderResult[t-e]:""},t}(ES),jS=(n(344),function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),BS=function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._renderResult=null,n._context.addEventHandler(n),n}return jS(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return!0},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype._getDecorations=function(e){for(var t=e.getDecorationsInViewport(),n=[],r=0,i=0,o=t.length;i<o;i++){var s=t[i],a=s.options.marginClassName;a&&(n[r++]=new DS(s.range.startLineNumber,s.range.endLineNumber,a))}return n},t.prototype.prepareRender=function(e){for(var t=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,r=this._render(t,n,this._getDecorations(e)),i=[],o=t;o<=n;o++){for(var s=o-t,a=r[s],u="",l=0,c=a.length;l<c;l++)u+='<div class="cmdr '+a[l]+'" style=""></div>';i[s]=u}this._renderResult=i},t.prototype.render=function(e,t){return this._renderResult?this._renderResult[t-e]:""},t}(ES),WS=(n(345),function(){function e(t,n,r,i){this.r=e._clamp(t),this.g=e._clamp(n),this.b=e._clamp(r),this.a=e._clamp(i)}return e._clamp=function(e){return e<0?0:e>255?255:0|e},e.Empty=new e(0,0,0,0),e}()),HS=function(){function e(){var e=this;this._onDidChange=new $t,this.onDidChange=this._onDidChange.event,this._updateColorMap(),Pa.onDidChange((function(t){t.changedColorMap&&e._updateColorMap()}))}return e.getInstance=function(){return this._INSTANCE||(this._INSTANCE=new e),this._INSTANCE},e.prototype._updateColorMap=function(){var e=Pa.getColorMap();if(!e)return this._colors=[WS.Empty],void(this._backgroundIsLight=!0);this._colors=[WS.Empty];for(var t=1;t<e.length;t++){var n=e[t].rgba;this._colors[t]=new WS(n.r,n.g,n.b,Math.round(255*n.a))}var r=e[2].getRelativeLuminance();this._backgroundIsLight=r>=.5,this._onDidChange.fire(void 0)},e.prototype.getColor=function(e){return(e<1||e>=this._colors.length)&&(e=2),this._colors[e]},e.prototype.backgroundIsLight=function(){return this._backgroundIsLight},e._INSTANCE=null,e}(),VS=function(){function e(t,n){if(760!==t.length)throw new Error("Invalid x2CharData");if(190!==n.length)throw new Error("Invalid x1CharData");this.x2charData=t,this.x1charData=n,this.x2charDataLight=e.soften(t,.8),this.x1charDataLight=e.soften(n,50/60)}return e.soften=function(e,t){for(var n=new Uint8ClampedArray(e.length),r=0,i=e.length;r<i;r++)n[r]=e[r]*t;return n},e._getChIndex=function(e){return(e-=32)<0&&(e+=95),e%95},e.prototype.x2RenderChar=function(t,n,r,i,o,s,a){if(n+2>t.width||r+4>t.height)console.warn("bad render request outside image data");else{var u=a?this.x2charDataLight:this.x2charData,l=e._getChIndex(i),c=4*t.width,d=s.r,h=s.g,f=s.b,p=o.r-d,g=o.g-h,m=o.b-f,_=t.data,y=4*l*2,v=r*c+4*n,b=u[y]/255;_[v+0]=d+p*b,_[v+1]=h+g*b,_[v+2]=f+m*b;b=u[y+1]/255;_[v+4]=d+p*b,_[v+5]=h+g*b,_[v+6]=f+m*b,v+=c;b=u[y+2]/255;_[v+0]=d+p*b,_[v+1]=h+g*b,_[v+2]=f+m*b;b=u[y+3]/255;_[v+4]=d+p*b,_[v+5]=h+g*b,_[v+6]=f+m*b,v+=c;b=u[y+4]/255;_[v+0]=d+p*b,_[v+1]=h+g*b,_[v+2]=f+m*b;b=u[y+5]/255;_[v+4]=d+p*b,_[v+5]=h+g*b,_[v+6]=f+m*b,v+=c;b=u[y+6]/255;_[v+0]=d+p*b,_[v+1]=h+g*b,_[v+2]=f+m*b;b=u[y+7]/255;_[v+4]=d+p*b,_[v+5]=h+g*b,_[v+6]=f+m*b}},e.prototype.x1RenderChar=function(t,n,r,i,o,s,a){if(n+1>t.width||r+2>t.height)console.warn("bad render request outside image data");else{var u=a?this.x1charDataLight:this.x1charData,l=e._getChIndex(i),c=4*t.width,d=s.r,h=s.g,f=s.b,p=o.r-d,g=o.g-h,m=o.b-f,_=t.data,y=2*l*1,v=r*c+4*n,b=u[y]/255;_[v+0]=d+p*b,_[v+1]=h+g*b,_[v+2]=f+m*b,v+=c;b=u[y+1]/255;_[v+0]=d+p*b,_[v+1]=h+g*b,_[v+2]=f+m*b}},e.prototype.x2BlockRenderChar=function(e,t,n,r,i,o){if(t+2>e.width||n+4>e.height)console.warn("bad render request outside image data");else{var s=4*e.width,a=i.r,u=i.g,l=i.b,c=a+.5*(r.r-a),d=u+.5*(r.g-u),h=l+.5*(r.b-l),f=e.data,p=n*s+4*t;f[p+0]=c,f[p+1]=d,f[p+2]=h,f[p+4]=c,f[p+5]=d,f[p+6]=h,f[(p+=s)+0]=c,f[p+1]=d,f[p+2]=h,f[p+4]=c,f[p+5]=d,f[p+6]=h,f[(p+=s)+0]=c,f[p+1]=d,f[p+2]=h,f[p+4]=c,f[p+5]=d,f[p+6]=h,f[(p+=s)+0]=c,f[p+1]=d,f[p+2]=h,f[p+4]=c,f[p+5]=d,f[p+6]=h}},e.prototype.x1BlockRenderChar=function(e,t,n,r,i,o){if(t+1>e.width||n+2>e.height)console.warn("bad render request outside image data");else{var s=4*e.width,a=i.r,u=i.g,l=i.b,c=a+.5*(r.r-a),d=u+.5*(r.g-u),h=l+.5*(r.b-l),f=e.data,p=n*s+4*t;f[p+0]=c,f[p+1]=d,f[p+2]=h,f[(p+=s)+0]=c,f[p+1]=d,f[p+2]=h}},e}();function zS(e){for(var t=new Uint8ClampedArray(e.length),n=0,r=e.length;n<r;n++)t[n]=e[n];return t}var US=null;function qS(){if(!US){var e=zS(GS);GS=null;var t=zS(KS);KS=null,US=new VS(t,e)}return US}var KS=[0,0,0,0,0,0,0,0,39,14,39,14,14,5,29,10,96,96,29,29,0,0,0,0,49,113,195,214,227,166,135,42,40,29,194,38,75,148,197,187,145,0,160,61,75,143,2,183,138,58,163,6,177,223,197,227,38,13,11,4,0,0,0,0,10,54,52,8,62,4,71,122,73,2,19,40,10,50,155,36,79,70,145,121,7,5,0,0,2,1,36,12,204,166,16,5,0,0,0,0,1,0,154,34,0,0,0,0,96,83,0,0,0,0,0,0,0,0,46,34,0,82,2,56,53,3,146,0,146,119,152,132,152,131,145,119,170,42,15,42,15,42,172,194,131,132,0,139,80,28,227,143,159,135,15,118,11,126,171,144,20,124,88,106,217,196,0,106,189,92,168,43,5,130,164,133,130,115,183,65,134,120,141,141,170,196,2,106,31,32,105,2,145,130,116,114,132,135,138,140,138,113,147,137,81,183,129,94,0,0,21,16,4,3,46,34,0,0,45,34,1,0,160,49,0,0,43,143,203,23,1,76,0,0,38,28,131,96,38,28,0,0,168,31,29,191,98,0,118,139,5,113,45,13,37,6,97,115,161,179,204,105,223,224,83,52,111,100,184,186,120,132,212,145,180,139,174,161,212,182,104,162,131,0,131,0,104,161,219,120,110,116,110,116,219,120,207,154,163,40,147,22,207,154,202,159,161,47,145,23,111,0,139,154,144,30,144,135,139,187,110,110,168,161,150,145,110,110,185,162,43,16,43,16,185,162,73,129,0,110,0,110,191,87,149,149,236,48,195,91,146,149,146,0,146,0,146,0,187,173,200,201,222,215,172,147,95,95,193,97,224,129,159,206,97,192,155,139,153,115,153,115,156,140,189,158,123,136,190,64,111,0,155,139,153,115,153,114,156,241,197,148,150,152,170,116,110,157,156,128,169,14,13,159,158,149,212,189,43,16,43,16,43,16,148,110,148,110,147,109,182,151,133,121,106,118,114,103,89,66,94,94,211,188,205,207,139,168,151,152,87,76,101,79,151,152,130,156,125,116,47,29,43,16,169,228,11,103,120,6,230,176,55,49,55,6,55,6,193,102,92,0,71,0,13,30,0,147,63,43,12,43,12,43,142,152,71,53,61,61,0,0,0,0,0,0,0,0,0,0,158,146,25,2,0,0,0,0,0,0,0,0,107,130,170,194,176,188,109,0,203,159,113,111,202,158,0,0,135,135,114,0,136,135,0,109,187,190,148,126,177,187,0,0,149,130,218,105,169,135,37,113,146,113,49,13,49,13,0,0,178,195,147,114,255,255,109,0,193,149,110,109,109,109,12,15,125,41,33,41,144,188,1,6,75,53,10,53,210,161,110,0,152,148,210,60,110,156,213,5,63,5,63,5,45,111,0,0,232,172,190,168,190,169,0,0,190,144,109,109,109,109,0,0,168,140,148,111,168,140,0,0,200,151,113,110,255,158,0,0,184,188,147,139,186,255,0,0,122,130,111,0,109,0,0,0,132,69,109,93,110,136,51,5,205,103,61,6,47,106,0,0,110,109,110,122,155,179,0,0,132,120,113,114,84,63,0,0,124,108,202,189,160,174,0,0,144,142,79,57,159,146,0,0,138,138,119,117,255,69,0,0,97,198,47,38,208,84,23,112,41,14,157,7,121,192,35,11,35,11,35,11,160,61,129,9,40,19,20,139,236,44,0,0,15,3,97,93,0,0],GS=[0,0,23,12,53,0,130,127,58,149,67,77,72,198,13,0,25,51,25,49,94,2,8,64,0,24,0,21,0,9,19,27,126,126,51,80,72,105,87,98,73,93,106,85,111,123,87,30,116,126,123,110,4,16,9,28,21,53,8,62,23,52,73,21,132,183,78,142,168,175,70,70,128,128,123,110,125,43,100,139,125,119,78,78,54,77,139,139,33,87,201,117,162,149,130,130,138,60,130,172,149,127,95,98,95,25,118,135,110,85,147,175,105,110,121,30,101,113,34,68,20,26,34,68,56,0,0,44,3,0,27,175,80,133,31,66,85,147,32,150,90,25,45,230,77,101,36,83,22,84,71,118,44,44,52,172,38,101,35,130,40,197,43,197,29,26,23,103,67,44,25,129,29,85,27,177,33,97,32,145,33,77,38,96,20,55,36,95,2,22],$S=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function ZS(e){return 2===e?4:4===e?6:1===e?2:3}function XS(e){return 2===e?2:4===e?2:1}var JS=140,QS=function(){function e(e){var t=e.editor.pixelRatio,n=e.editor.layoutInfo,r=e.editor.viewInfo,i=e.editor.fontInfo;this.renderMinimap=0|n.renderMinimap,this.scrollBeyondLastLine=r.scrollBeyondLastLine,this.showSlider=r.minimap.showSlider,this.pixelRatio=t,this.typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this.lineHeight=e.editor.lineHeight,this.minimapLeft=n.minimapLeft,this.minimapWidth=n.minimapWidth,this.minimapHeight=n.height,this.canvasInnerWidth=Math.max(1,Math.floor(t*this.minimapWidth)),this.canvasInnerHeight=Math.max(1,Math.floor(t*this.minimapHeight)),this.canvasOuterWidth=this.canvasInnerWidth/t,this.canvasOuterHeight=this.canvasInnerHeight/t}return e.prototype.equals=function(e){return this.renderMinimap===e.renderMinimap&&this.scrollBeyondLastLine===e.scrollBeyondLastLine&&this.showSlider===e.showSlider&&this.pixelRatio===e.pixelRatio&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.lineHeight===e.lineHeight&&this.minimapLeft===e.minimapLeft&&this.minimapWidth===e.minimapWidth&&this.minimapHeight===e.minimapHeight&&this.canvasInnerWidth===e.canvasInnerWidth&&this.canvasInnerHeight===e.canvasInnerHeight&&this.canvasOuterWidth===e.canvasOuterWidth&&this.canvasOuterHeight===e.canvasOuterHeight},e}(),ex=function(){function e(e,t,n,r,i,o,s){this.scrollTop=e,this.scrollHeight=t,this._computedSliderRatio=n,this.sliderTop=r,this.sliderHeight=i,this.startLineNumber=o,this.endLineNumber=s}return e.prototype.getDesiredScrollTopFromDelta=function(e){var t=this.sliderTop+e;return Math.round(t/this._computedSliderRatio)},e.create=function(t,n,r,i,o,s,a,u,l){var c,d,h=t.pixelRatio,f=ZS(t.renderMinimap),p=Math.floor(t.canvasInnerHeight/f),g=t.lineHeight;if(o&&r!==s){var m=r-n+1;c=Math.floor(m*f/h)}else{var _=i/g;c=Math.floor(_*f/h)}d=t.scrollBeyondLastLine?(s-1)*f/h:Math.max(0,s*f/h-c);var y=(d=Math.min(t.minimapHeight-c,d))/(u-i),v=a*y,b=0;t.scrollBeyondLastLine&&(b=_=i/g);if(p>=s+b)return new e(a,u,y,v,c,w=1,s);var w=Math.max(1,Math.floor(n-v*h/f));return l&&l.scrollHeight===u&&(l.scrollTop>a&&(w=Math.min(w,l.startLineNumber)),l.scrollTop<a&&(w=Math.max(w,l.startLineNumber))),new e(a,u,y,v,c,w,Math.min(s,w+p-1))},e}(),tx=function(){function e(e){this.dy=e}return e.prototype.onContentChanged=function(){this.dy=-1},e.prototype.onTokensChanged=function(){this.dy=-1},e.INVALID=new e(-1),e}(),nx=function(){function e(e,t,n){this.renderedLayout=e,this._imageData=t,this._renderedLines=new aS((function(){return tx.INVALID})),this._renderedLines._set(e.startLineNumber,n)}return e.prototype.linesEquals=function(e){if(!this.scrollEquals(e))return!1;for(var t=this._renderedLines._get().lines,n=0,r=t.length;n<r;n++)if(-1===t[n].dy)return!1;return!0},e.prototype.scrollEquals=function(e){return this.renderedLayout.startLineNumber===e.startLineNumber&&this.renderedLayout.endLineNumber===e.endLineNumber},e.prototype._get=function(){var e=this._renderedLines._get();return{imageData:this._imageData,rendLineNumberStart:e.rendLineNumberStart,lines:e.lines}},e.prototype.onLinesChanged=function(e){return this._renderedLines.onLinesChanged(e.fromLineNumber,e.toLineNumber)},e.prototype.onLinesDeleted=function(e){this._renderedLines.onLinesDeleted(e.fromLineNumber,e.toLineNumber)},e.prototype.onLinesInserted=function(e){this._renderedLines.onLinesInserted(e.fromLineNumber,e.toLineNumber)},e.prototype.onTokensChanged=function(e){return this._renderedLines.onTokensChanged(e.ranges)},e}(),rx=function(){function e(t,n,r,i){this._backgroundFillData=e._createBackgroundFillData(n,r,i),this._buffers=[t.createImageData(n,r),t.createImageData(n,r)],this._lastUsedBuffer=0}return e.prototype.getBuffer=function(){this._lastUsedBuffer=1-this._lastUsedBuffer;var e=this._buffers[this._lastUsedBuffer];return e.data.set(this._backgroundFillData),e},e._createBackgroundFillData=function(e,t,n){for(var r=n.r,i=n.g,o=n.b,s=new Uint8ClampedArray(e*t*4),a=0,u=0;u<t;u++)for(var l=0;l<e;l++)s[a]=r,s[a+1]=i,s[a+2]=o,s[a+3]=255,a+=4;return s},e}(),ix=function(e){function t(t){var n=e.call(this,t)||this;return n._renderDecorations=!1,n._options=new QS(n._context.configuration),n._lastRenderData=null,n._buffers=null,n._domNode=Dp(document.createElement("div")),yw.write(n._domNode,8),n._domNode.setClassName(n._getMinimapDomNodeClassName()),n._domNode.setPosition("absolute"),n._domNode.setAttribute("role","presentation"),n._domNode.setAttribute("aria-hidden","true"),n._shadow=Dp(document.createElement("div")),n._shadow.setClassName("minimap-shadow-hidden"),n._domNode.appendChild(n._shadow),n._canvas=Dp(document.createElement("canvas")),n._canvas.setPosition("absolute"),n._canvas.setLeft(0),n._domNode.appendChild(n._canvas),n._decorationsCanvas=Dp(document.createElement("canvas")),n._decorationsCanvas.setPosition("absolute"),n._decorationsCanvas.setClassName("minimap-decorations-layer"),n._decorationsCanvas.setLeft(0),n._domNode.appendChild(n._decorationsCanvas),n._slider=Dp(document.createElement("div")),n._slider.setPosition("absolute"),n._slider.setClassName("minimap-slider"),n._slider.setLayerHinting(!0),n._domNode.appendChild(n._slider),n._sliderHorizontal=Dp(document.createElement("div")),n._sliderHorizontal.setPosition("absolute"),n._sliderHorizontal.setClassName("minimap-slider-horizontal"),n._slider.appendChild(n._sliderHorizontal),n._tokensColorTracker=HS.getInstance(),n._applyLayout(),n._mouseDownListener=$h(n._domNode.domNode,"mousedown",(function(e){e.preventDefault();var t=n._options.renderMinimap;if(0!==t&&n._lastRenderData){var r=ZS(t),i=n._options.pixelRatio*e.browserEvent.offsetY,o=Math.floor(i/r)+n._lastRenderData.renderedLayout.startLineNumber;o=Math.min(o,n._context.model.getLineCount()),n._context.privateViewEventBus.emit(new UC(new Yr(o,1,o,1),1,!1,0))}})),n._sliderMouseMoveMonitor=new Tp,n._sliderMouseDownListener=$h(n._slider.domNode,"mousedown",(function(e){if(e.preventDefault(),e.stopPropagation(),e.leftButton&&n._lastRenderData){var t=e.posy,r=e.posx,i=n._lastRenderData.renderedLayout;n._slider.toggleClassName("active",!0),n._sliderMouseMoveMonitor.startMonitoring(Ep,(function(e){var o=Math.abs(e.posx-r);if(nt.g&&o>JS)n._context.viewLayout.setScrollPositionNow({scrollTop:i.scrollTop});else{var s=e.posy-t;n._context.viewLayout.setScrollPositionNow({scrollTop:i.getDesiredScrollTopFromDelta(s)})}}),(function(){n._slider.toggleClassName("active",!1)}))}})),n}return $S(t,e),t.prototype.dispose=function(){this._mouseDownListener.dispose(),this._sliderMouseMoveMonitor.dispose(),this._sliderMouseDownListener.dispose(),e.prototype.dispose.call(this)},t.prototype._getMinimapDomNodeClassName=function(){return"always"===this._options.showSlider?"minimap slider-always":"minimap slider-mouseover"},t.prototype.getDomNode=function(){return this._domNode},t.prototype._applyLayout=function(){this._domNode.setLeft(this._options.minimapLeft),this._domNode.setWidth(this._options.minimapWidth),this._domNode.setHeight(this._options.minimapHeight),this._shadow.setHeight(this._options.minimapHeight),this._canvas.setWidth(this._options.canvasOuterWidth),this._canvas.setHeight(this._options.canvasOuterHeight),this._canvas.domNode.width=this._options.canvasInnerWidth,this._canvas.domNode.height=this._options.canvasInnerHeight,this._decorationsCanvas.setWidth(this._options.canvasOuterWidth),this._decorationsCanvas.setHeight(this._options.canvasOuterHeight),this._decorationsCanvas.domNode.width=this._options.canvasInnerWidth,this._decorationsCanvas.domNode.height=this._options.canvasInnerHeight,this._slider.setWidth(this._options.minimapWidth)},t.prototype._getBuffer=function(){return this._buffers||(this._buffers=new rx(this._canvas.domNode.getContext("2d"),this._options.canvasInnerWidth,this._options.canvasInnerHeight,this._tokensColorTracker.getColor(2))),this._buffers.getBuffer()},t.prototype._onOptionsMaybeChanged=function(){var e=new QS(this._context.configuration);return!this._options.equals(e)&&(this._options=e,this._lastRenderData=null,this._buffers=null,this._applyLayout(),this._domNode.setClassName(this._getMinimapDomNodeClassName()),!0)},t.prototype.onConfigurationChanged=function(e){return this._onOptionsMaybeChanged()},t.prototype.onFlushed=function(e){return this._lastRenderData=null,!0},t.prototype.onLinesChanged=function(e){return!!this._lastRenderData&&this._lastRenderData.onLinesChanged(e)},t.prototype.onLinesDeleted=function(e){return this._lastRenderData&&this._lastRenderData.onLinesDeleted(e),!0},t.prototype.onLinesInserted=function(e){return this._lastRenderData&&this._lastRenderData.onLinesInserted(e),!0},t.prototype.onScrollChanged=function(e){return this._renderDecorations=!0,!0},t.prototype.onTokensChanged=function(e){return!!this._lastRenderData&&this._lastRenderData.onTokensChanged(e)},t.prototype.onTokensColorsChanged=function(e){return this._lastRenderData=null,this._buffers=null,!0},t.prototype.onZonesChanged=function(e){return this._lastRenderData=null,!0},t.prototype.onDecorationsChanged=function(e){return this._renderDecorations=!0,!0},t.prototype.onThemeChanged=function(e){return this._context.model.invalidateMinimapColorCache(),this._renderDecorations=!!this._lastDecorations,!!this._lastDecorations},t.prototype.prepareRender=function(e){},t.prototype.render=function(e){if(0===this._options.renderMinimap)return this._shadow.setClassName("minimap-shadow-hidden"),this._sliderHorizontal.setWidth(0),void this._sliderHorizontal.setHeight(0);e.scrollLeft+e.viewportWidth>=e.scrollWidth?this._shadow.setClassName("minimap-shadow-hidden"):this._shadow.setClassName("minimap-shadow-visible");var t=ex.create(this._options,e.visibleRange.startLineNumber,e.visibleRange.endLineNumber,e.viewportHeight,e.viewportData.whitespaceViewportData.length>0,this._context.model.getLineCount(),e.scrollTop,e.scrollHeight,this._lastRenderData?this._lastRenderData.renderedLayout:null);this._slider.setTop(t.sliderTop),this._slider.setHeight(t.sliderHeight);var n=e.scrollLeft/this._options.typicalHalfwidthCharacterWidth,r=Math.min(this._options.minimapWidth,Math.round(n*XS(this._options.renderMinimap)/this._options.pixelRatio));this._sliderHorizontal.setLeft(r),this._sliderHorizontal.setWidth(this._options.minimapWidth-r),this._sliderHorizontal.setTop(0),this._sliderHorizontal.setHeight(t.sliderHeight),this.renderDecorations(t),this._lastRenderData=this.renderLines(t)},t.prototype.renderDecorations=function(e){if(this._renderDecorations){this._renderDecorations=!1;var t=this._context.model.getDecorationsInViewport(new Yr(e.startLineNumber,1,e.endLineNumber,this._context.model.getLineMaxColumn(e.endLineNumber))),n=this._options,r=n.renderMinimap,i=n.canvasInnerWidth,o=n.canvasInnerHeight,s=ZS(r),a=XS(r),u=this._context.model.getOptions().tabSize,l=this._decorationsCanvas.domNode.getContext("2d");l.clearRect(0,0,i,o);for(var c=new Map,d=0;d<t.length;d++){var h=t[d];if(h.options.minimap)for(var f=h.range.startLineNumber;f<=h.range.endLineNumber;f++)this.renderDecorationOnLine(l,c,h,e,f,s,s,u,a)}this._lastDecorations=t}},t.prototype.renderDecorationOnLine=function(e,t,n,r,i,o,s,a,u){var l=(i-r.startLineNumber)*s,c=t.get(i),d=!c;if(!c){var h=this._context.model.getLineContent(i);c=[0];for(var f=1;f<h.length+1;f++){var p=h.charCodeAt(f-1),g=9===p?a*u:Nn(p)?2*u:u;c[f]=c[f-1]+g}t.set(i,c)}var m=n.range,_=m.startColumn,y=m.endColumn,v=m.startLineNumber,b=m.endLineNumber,w=v===i?c[_-1]:0,C=b>i?c.length-1:y-1;if(C>0){var S=c[C]-w||2;this.renderDecoration(e,n.options.minimap,w,l,S,o)}d&&this.renderLineHighlight(e,n.options.minimap,l,o)},t.prototype.renderLineHighlight=function(e,t,n,r){var i=t.getColor(this._context.theme);e.fillStyle=i&&i.transparent(.5).toString()||"",e.fillRect(0,n,e.canvas.width,r)},t.prototype.renderDecoration=function(e,t,n,r,i,o){var s=t.getColor(this._context.theme);e.fillStyle=s&&s.toString()||"",e.fillRect(n,r,i,o)},t.prototype.renderLines=function(e){var n=this._options.renderMinimap,r=e.startLineNumber,i=e.endLineNumber,o=ZS(n);if(this._lastRenderData&&this._lastRenderData.linesEquals(e)){var s=this._lastRenderData._get();return new nx(e,s.imageData,s.lines)}for(var a=this._getBuffer(),u=t._renderUntouchedLines(a,r,i,o,this._lastRenderData),l=u[0],c=u[1],d=u[2],h=this._context.model.getMinimapLinesRenderingData(r,i,d),f=h.tabSize,p=this._tokensColorTracker.getColor(2),g=this._tokensColorTracker.backgroundIsLight(),m=0,_=[],y=0,v=i-r+1;y<v;y++)d[y]&&t._renderLine(a,p,g,n,this._tokensColorTracker,qS(),m,f,h.data[y]),_[y]=new tx(m),m+=o;var b=-1===l?0:l,w=(-1===c?a.height:c)-b;return this._canvas.domNode.getContext("2d").putImageData(a,0,0,0,b,a.width,w),new nx(e,a,_)},t._renderUntouchedLines=function(e,t,n,r,i){var o=[];if(!i){for(var s=0,a=n-t+1;s<a;s++)o[s]=!0;return[-1,-1,o]}for(var u=i._get(),l=u.imageData.data,c=u.rendLineNumberStart,d=u.lines,h=d.length,f=e.width,p=e.data,g=(n-t+1)*r*f*4,m=-1,_=-1,y=-1,v=-1,b=-1,w=-1,C=0,S=t;S<=n;S++){var x=S-t,L=S-c,k=L>=0&&L<h?d[L].dy:-1;if(-1!==k){var M=k*f*4,D=(k+r)*f*4,E=C*f*4,T=(C+r)*f*4;v===M&&w===E?(v=D,w=T):(-1!==y&&(p.set(l.subarray(y,v),b),-1===m&&0===y&&y===b&&(m=v),-1===_&&v===g&&y===b&&(_=y)),y=M,v=D,b=E,w=T),o[x]=!1,C+=r}else o[x]=!0,C+=r}return-1!==y&&(p.set(l.subarray(y,v),b),-1===m&&0===y&&y===b&&(m=v),-1===_&&v===g&&y===b&&(_=y)),[-1===m?-1:m/(4*f),-1===_?-1:_/(4*f),o]},t._renderLine=function(e,t,n,r,i,o,s,a,u){for(var l=u.content,c=u.tokens,d=XS(r),h=e.width-d,f=0,p=0,g=0,m=0,_=c.getCount();m<_;m++)for(var y=c.getEndOffset(m),v=c.getForeground(m),b=i.getColor(v);p<y;p++){if(f>h)return;var w=l.charCodeAt(p);if(9===w){var C=a-(p+g)%a;g+=C-1,f+=C*d}else if(32===w)f+=d;else for(var S=Nn(w)?2:1,x=0;x<S;x++)if(2===r?o.x2RenderChar(e,f,s,w,b,t,n):1===r?o.x1RenderChar(e,f,s,w,b,t,n):4===r?o.x2BlockRenderChar(e,f,s,b,t,n):o.x1BlockRenderChar(e,f,s,b,t,n),(f+=d)>h)return}},t}(_w);Wd((function(e,t){var n=e.getColor(Yc);if(n){var r=n.transparent(.5);t.addRule(".monaco-editor .minimap-slider, .monaco-editor .minimap-slider .minimap-slider-horizontal { background: "+r+"; }")}var i=e.getColor(jc);if(i){var o=i.transparent(.5);t.addRule(".monaco-editor .minimap-slider:hover, .monaco-editor .minimap-slider:hover .minimap-slider-horizontal { background: "+o+"; }")}var s=e.getColor(Bc);if(s){var a=s.transparent(.5);t.addRule(".monaco-editor .minimap-slider.active, .monaco-editor .minimap-slider.active .minimap-slider-horizontal { background: "+a+"; }")}var u=e.getColor(Fc);u&&t.addRule(".monaco-editor .minimap-shadow-visible { box-shadow: "+u+" -6px 0 6px -6px inset; }")}));n(346);var ox=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),sx=function(e){function t(t){var n=e.call(this,t)||this;return n._widgets={},n._verticalScrollbarWidth=n._context.configuration.editor.layoutInfo.verticalScrollbarWidth,n._minimapWidth=n._context.configuration.editor.layoutInfo.minimapWidth,n._horizontalScrollbarHeight=n._context.configuration.editor.layoutInfo.horizontalScrollbarHeight,n._editorHeight=n._context.configuration.editor.layoutInfo.height,n._editorWidth=n._context.configuration.editor.layoutInfo.width,n._domNode=Dp(document.createElement("div")),yw.write(n._domNode,4),n._domNode.setClassName("overlayWidgets"),n}return ox(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._widgets={}},t.prototype.getDomNode=function(){return this._domNode},t.prototype.onConfigurationChanged=function(e){return!!e.layoutInfo&&(this._verticalScrollbarWidth=this._context.configuration.editor.layoutInfo.verticalScrollbarWidth,this._minimapWidth=this._context.configuration.editor.layoutInfo.minimapWidth,this._horizontalScrollbarHeight=this._context.configuration.editor.layoutInfo.horizontalScrollbarHeight,this._editorHeight=this._context.configuration.editor.layoutInfo.height,this._editorWidth=this._context.configuration.editor.layoutInfo.width,!0)},t.prototype.addWidget=function(e){var t=Dp(e.getDomNode());this._widgets[e.getId()]={widget:e,preference:null,domNode:t},t.setPosition("absolute"),t.setAttribute("widgetId",e.getId()),this._domNode.appendChild(t),this.setShouldRender()},t.prototype.setWidgetPosition=function(e,t){var n=this._widgets[e.getId()];return n.preference!==t&&(n.preference=t,this.setShouldRender(),!0)},t.prototype.removeWidget=function(e){var t=e.getId();if(this._widgets.hasOwnProperty(t)){var n=this._widgets[t].domNode.domNode;delete this._widgets[t],n.parentNode.removeChild(n),this.setShouldRender()}},t.prototype._renderWidget=function(e){var t=e.domNode;if(null!==e.preference)if(0===e.preference)t.setTop(0),t.setRight(2*this._verticalScrollbarWidth+this._minimapWidth);else if(1===e.preference){var n=t.domNode.clientHeight;t.setTop(this._editorHeight-n-2*this._horizontalScrollbarHeight),t.setRight(2*this._verticalScrollbarWidth+this._minimapWidth)}else 2===e.preference&&(t.setTop(0),t.domNode.style.right="50%");else t.unsetTop()},t.prototype.prepareRender=function(e){},t.prototype.render=function(e){this._domNode.setWidth(this._editorWidth);for(var t=Object.keys(this._widgets),n=0,r=t.length;n<r;n++){var i=t[n];this._renderWidget(this._widgets[i])}},t}(_w),ax=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ux=function(){function e(e,t){this.lineHeight=e.editor.lineHeight,this.pixelRatio=e.editor.pixelRatio,this.overviewRulerLanes=e.editor.viewInfo.overviewRulerLanes,this.renderBorder=e.editor.viewInfo.overviewRulerBorder;var n=t.getColor(xC);this.borderColor=n?n.toString():null,this.hideCursor=e.editor.viewInfo.hideCursorInOverviewRuler;var r=t.getColor(gC);this.cursorColor=r?r.transparent(.7).toString():null,this.themeType=t.type;var i=e.editor.viewInfo.minimap.enabled,o=e.editor.viewInfo.minimap.side,s=i?Pa.getDefaultBackground():null;this.backgroundColor=null===s||"left"===o?null:Ou.Format.CSS.formatHex(s);var a=e.editor.layoutInfo.overviewRuler;this.top=a.top,this.right=a.right,this.domWidth=a.width,this.domHeight=a.height,this.canvasWidth=this.domWidth*this.pixelRatio|0,this.canvasHeight=this.domHeight*this.pixelRatio|0;var u=this._initLanes(1,this.canvasWidth,this.overviewRulerLanes),l=u[0],c=u[1];this.x=l,this.w=c}return e.prototype._initLanes=function(e,t,n){var r=t-e;if(n>=3){var i,o,s,a=r-(i=Math.floor(r/3))-(o=Math.floor(r/3)),u=(s=e)+i;return[[0,s,u,s,s+i+a,s,u,s],[0,i,a,i+a,o,i+a+o,a+o,i+a+o]]}if(2===n)return[[0,s=e,s,s,s+(i=Math.floor(r/2)),s,s,s],[0,i,i,i,o=r-i,i+o,i+o,i+o]];return[[0,e,e,e,e,e,e,e],[0,r,r,r,r,r,r,r]]},e.prototype.equals=function(e){return this.lineHeight===e.lineHeight&&this.pixelRatio===e.pixelRatio&&this.overviewRulerLanes===e.overviewRulerLanes&&this.renderBorder===e.renderBorder&&this.borderColor===e.borderColor&&this.hideCursor===e.hideCursor&&this.cursorColor===e.cursorColor&&this.themeType===e.themeType&&this.backgroundColor===e.backgroundColor&&this.top===e.top&&this.right===e.right&&this.domWidth===e.domWidth&&this.domHeight===e.domHeight&&this.canvasWidth===e.canvasWidth&&this.canvasHeight===e.canvasHeight},e}(),lx=function(e){function t(t){var n=e.call(this,t)||this;return n._domNode=Dp(document.createElement("canvas")),n._domNode.setClassName("decorationsOverviewRuler"),n._domNode.setPosition("absolute"),n._domNode.setLayerHinting(!0),n._domNode.setAttribute("aria-hidden","true"),n._updateSettings(!1),n._tokensColorTrackerListener=Pa.onDidChange((function(e){e.changedColorMap&&n._updateSettings(!0)})),n._cursorPositions=[],n}return ax(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._tokensColorTrackerListener.dispose()},t.prototype._updateSettings=function(e){var t=new ux(this._context.configuration,this._context.theme);return(!this._settings||!this._settings.equals(t))&&(this._settings=t,this._domNode.setTop(this._settings.top),this._domNode.setRight(this._settings.right),this._domNode.setWidth(this._settings.domWidth),this._domNode.setHeight(this._settings.domHeight),this._domNode.domNode.width=this._settings.canvasWidth,this._domNode.domNode.height=this._settings.canvasHeight,e&&this._render(),!0)},t.prototype.onConfigurationChanged=function(e){return this._updateSettings(!1)},t.prototype.onCursorStateChanged=function(e){this._cursorPositions=[];for(var t=0,n=e.selections.length;t<n;t++)this._cursorPositions[t]=e.selections[t].getPosition();return this._cursorPositions.sort(Lt.compare),!0},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollHeightChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype.onThemeChanged=function(e){return this._context.model.invalidateOverviewRulerColorCache(),this._updateSettings(!1)},t.prototype.getDomNode=function(){return this._domNode.domNode},t.prototype.prepareRender=function(e){},t.prototype.render=function(e){this._render()},t.prototype._render=function(){var e=this._settings.canvasWidth,t=this._settings.canvasHeight,n=this._settings.lineHeight,r=this._context.viewLayout,i=t/this._context.viewLayout.getScrollHeight(),o=this._context.model.getAllOverviewRulerDecorations(this._context.theme),s=6*this._settings.pixelRatio|0,a=s/2|0,u=this._domNode.domNode.getContext("2d");null===this._settings.backgroundColor?u.clearRect(0,0,e,t):(u.fillStyle=this._settings.backgroundColor,u.fillRect(0,0,e,t));var l=this._settings.x,c=this._settings.w,d=Object.keys(o);d.sort();for(var h=0,f=d.length;h<f;h++){var p=d[h],g=o[p];u.fillStyle=p;for(var m=0,_=0,y=0,v=0,b=g.length;v<b;v++){var w=g[3*v],C=g[3*v+1],S=g[3*v+2],x=r.getVerticalOffsetForLineNumber(C)*i|0;if((N=(r.getVerticalOffsetForLineNumber(S)+n)*i|0)-x<s)(E=(x+N)/2|0)<a?E=a:E+a>t&&(E=t-a),x=E-a,N=E+a;x>y+1||w!==m?(0!==v&&u.fillRect(l[m],_,c[m],y-_),m=w,_=x,y=N):N>y&&(y=N)}u.fillRect(l[m],_,c[m],y-_)}if(!this._settings.hideCursor&&this._settings.cursorColor){var L=2*this._settings.pixelRatio|0,k=L/2|0,M=this._settings.x[7],D=this._settings.w[7];u.fillStyle=this._settings.cursorColor;for(_=-100,y=-100,v=0,b=this._cursorPositions.length;v<b;v++){var E,T=this._cursorPositions[v];(E=r.getVerticalOffsetForLineNumber(T.lineNumber)*i|0)<k?E=k:E+k>t&&(E=t-k);var N=(x=E-k)+L;x>y+1?(0!==v&&u.fillRect(M,_,D,y-_),_=x,y=N):N>y&&(y=N)}u.fillRect(M,_,D,y-_)}this._settings.renderBorder&&this._settings.borderColor&&this._settings.overviewRulerLanes>0&&(u.beginPath(),u.lineWidth=1,u.strokeStyle=this._settings.borderColor,u.moveTo(0,0),u.lineTo(0,t),u.stroke(),u.moveTo(0,0),u.lineTo(e,0),u.stroke())},t}(_w),cx=function(){function e(e,t,n){this.from=0|e,this.to=0|t,this.colorId=0|n}return e.compare=function(e,t){return e.colorId===t.colorId?e.from===t.from?e.to-t.to:e.from-t.from:e.colorId-t.colorId},e}(),dx=function(){function e(e,t,n){this.startLineNumber=e,this.endLineNumber=t,this.color=n,this._colorZone=null}return e.compare=function(e,t){return e.color===t.color?e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber:e.color<t.color?-1:1},e.prototype.setColorZone=function(e){this._colorZone=e},e.prototype.getColorZones=function(){return this._colorZone},e}(),hx=function(){function e(e){this._getVerticalOffsetForLine=e,this._zones=[],this._colorZonesInvalid=!1,this._lineHeight=0,this._domWidth=0,this._domHeight=0,this._outerHeight=0,this._pixelRatio=1,this._lastAssignedId=0,this._color2Id=Object.create(null),this._id2Color=[]}return e.prototype.getId2Color=function(){return this._id2Color},e.prototype.setZones=function(e){this._zones=e,this._zones.sort(dx.compare)},e.prototype.setLineHeight=function(e){return this._lineHeight!==e&&(this._lineHeight=e,this._colorZonesInvalid=!0,!0)},e.prototype.setPixelRatio=function(e){this._pixelRatio=e,this._colorZonesInvalid=!0},e.prototype.getDOMWidth=function(){return this._domWidth},e.prototype.getCanvasWidth=function(){return this._domWidth*this._pixelRatio},e.prototype.setDOMWidth=function(e){return this._domWidth!==e&&(this._domWidth=e,this._colorZonesInvalid=!0,!0)},e.prototype.getDOMHeight=function(){return this._domHeight},e.prototype.getCanvasHeight=function(){return this._domHeight*this._pixelRatio},e.prototype.setDOMHeight=function(e){return this._domHeight!==e&&(this._domHeight=e,this._colorZonesInvalid=!0,!0)},e.prototype.getOuterHeight=function(){return this._outerHeight},e.prototype.setOuterHeight=function(e){return this._outerHeight!==e&&(this._outerHeight=e,this._colorZonesInvalid=!0,!0)},e.prototype.resolveColorZones=function(){for(var e=this._colorZonesInvalid,t=Math.floor(this._lineHeight),n=Math.floor(this.getCanvasHeight()),r=n/Math.floor(this._outerHeight),i=Math.floor(4*this._pixelRatio/2),o=[],s=0,a=this._zones.length;s<a;s++){var u=this._zones[s];if(!e){var l=u.getColorZones();if(l){o.push(l);continue}}var c=Math.floor(r*this._getVerticalOffsetForLine(u.startLineNumber)),d=Math.floor(r*(this._getVerticalOffsetForLine(u.endLineNumber)+t)),h=Math.floor((c+d)/2),f=d-h;f<i&&(f=i),h-f<0&&(h=f),h+f>n&&(h=n-f);var p=u.color,g=this._color2Id[p];g||(g=++this._lastAssignedId,this._color2Id[p]=g,this._id2Color[g]=p);var m=new cx(h-f,h+f,g);u.setColorZone(m),o.push(m)}return this._colorZonesInvalid=!1,o.sort(cx.compare),o},e}(),fx=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),px=function(e){function t(t,n){var r=e.call(this)||this;return r._context=t,r._domNode=Dp(document.createElement("canvas")),r._domNode.setClassName(n),r._domNode.setPosition("absolute"),r._domNode.setLayerHinting(!0),r._zoneManager=new hx((function(e){return r._context.viewLayout.getVerticalOffsetForLineNumber(e)})),r._zoneManager.setDOMWidth(0),r._zoneManager.setDOMHeight(0),r._zoneManager.setOuterHeight(r._context.viewLayout.getScrollHeight()),r._zoneManager.setLineHeight(r._context.configuration.editor.lineHeight),r._zoneManager.setPixelRatio(r._context.configuration.editor.pixelRatio),r._context.addEventHandler(r),r}return fx(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._zoneManager.setLineHeight(this._context.configuration.editor.lineHeight),this._render()),e.pixelRatio&&(this._zoneManager.setPixelRatio(this._context.configuration.editor.pixelRatio),this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render()),!0},t.prototype.onFlushed=function(e){return this._render(),!0},t.prototype.onScrollChanged=function(e){return e.scrollHeightChanged&&(this._zoneManager.setOuterHeight(e.scrollHeight),this._render()),!0},t.prototype.onZonesChanged=function(e){return this._render(),!0},t.prototype.getDomNode=function(){return this._domNode.domNode},t.prototype.setLayout=function(e){this._domNode.setTop(e.top),this._domNode.setRight(e.right);var t=!1;t=this._zoneManager.setDOMWidth(e.width)||t,(t=this._zoneManager.setDOMHeight(e.height)||t)&&(this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render())},t.prototype.setZones=function(e){this._zoneManager.setZones(e),this._render()},t.prototype._render=function(){if(0===this._zoneManager.getOuterHeight())return!1;var e=this._zoneManager.getCanvasWidth(),t=this._zoneManager.getCanvasHeight(),n=this._zoneManager.resolveColorZones(),r=this._zoneManager.getId2Color(),i=this._domNode.domNode.getContext("2d");return i.clearRect(0,0,e,t),n.length>0&&this._renderOneLane(i,n,r,e),!0},t.prototype._renderOneLane=function(e,t,n,r){for(var i=0,o=0,s=0,a=0,u=t;a<u.length;a++){var l=u[a],c=l.colorId,d=l.from,h=l.to;c!==i?(e.fillRect(0,o,r,s-o),i=c,e.fillStyle=n[i],o=d,s=h):s>=d?s=Math.max(s,h):(e.fillRect(0,o,r,s-o),o=d,s=h)}e.fillRect(0,o,r,s-o)},t}(gw),gx=(n(347),function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),mx=function(e){function t(t){var n=e.call(this,t)||this;return n.domNode=Dp(document.createElement("div")),n.domNode.setAttribute("role","presentation"),n.domNode.setAttribute("aria-hidden","true"),n.domNode.setClassName("view-rulers"),n._renderedRulers=[],n._rulers=n._context.configuration.editor.viewInfo.rulers,n._typicalHalfwidthCharacterWidth=n._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,n}return gx(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return!!(e.viewInfo||e.layoutInfo||e.fontInfo)&&(this._rulers=this._context.configuration.editor.viewInfo.rulers,this._typicalHalfwidthCharacterWidth=this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,!0)},t.prototype.onScrollChanged=function(e){return e.scrollHeightChanged},t.prototype.prepareRender=function(e){},t.prototype._ensureRulersCount=function(){var e=this._renderedRulers.length,t=this._rulers.length;if(e!==t)if(e<t)for(var n=this._context.model.getOptions().tabSize,r=t-e;r>0;){(o=Dp(document.createElement("div"))).setClassName("view-ruler"),o.setWidth(n),this.domNode.appendChild(o),this._renderedRulers.push(o),r--}else for(var i=e-t;i>0;){var o=this._renderedRulers.pop();this.domNode.removeChild(o),i--}},t.prototype.render=function(e){this._ensureRulersCount();for(var t=0,n=this._rulers.length;t<n;t++){var r=this._renderedRulers[t];r.setHeight(Math.min(e.scrollHeight,1e6)),r.setLeft(this._rulers[t]*this._typicalHalfwidthCharacterWidth)}},t}(_w);Wd((function(e,t){var n=e.getColor(SC);n&&t.addRule(".monaco-editor .view-ruler { box-shadow: 1px 0 0 0 "+n+" inset; }")}));n(348);var _x=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),yx=function(e){function t(t){var n=e.call(this,t)||this;return n._scrollTop=0,n._width=0,n._updateWidth(),n._shouldShow=!1,n._useShadows=n._context.configuration.editor.viewInfo.scrollbar.useShadows,n._domNode=Dp(document.createElement("div")),n._domNode.setAttribute("role","presentation"),n._domNode.setAttribute("aria-hidden","true"),n}return _x(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype._updateShouldShow=function(){var e=this._useShadows&&this._scrollTop>0;return this._shouldShow!==e&&(this._shouldShow=e,!0)},t.prototype.getDomNode=function(){return this._domNode},t.prototype._updateWidth=function(){var e=this._context.configuration.editor.layoutInfo,t=0;return t=0===e.renderMinimap||e.minimapWidth>0&&0===e.minimapLeft?e.width:e.width-e.minimapWidth-e.verticalScrollbarWidth,this._width!==t&&(this._width=t,!0)},t.prototype.onConfigurationChanged=function(e){var t=!1;return e.viewInfo&&(this._useShadows=this._context.configuration.editor.viewInfo.scrollbar.useShadows),e.layoutInfo&&(t=this._updateWidth()),this._updateShouldShow()||t},t.prototype.onScrollChanged=function(e){return this._scrollTop=e.scrollTop,this._updateShouldShow()},t.prototype.prepareRender=function(e){},t.prototype.render=function(e){this._domNode.setWidth(this._width),this._domNode.setClassName(this._shouldShow?"scroll-decoration":"")},t}(_w);Wd((function(e,t){var n=e.getColor(Fc);n&&t.addRule(".monaco-editor .scroll-decoration { box-shadow: "+n+" 0 6px 6px -6px inset; }")}));n(349);var vx=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),bx=function(e){this.left=e.left,this.width=e.width,this.startStyle=null,this.endStyle=null},wx=function(e,t){this.lineNumber=e,this.ranges=t};function Cx(e){return new bx(e)}function Sx(e){return new wx(e.lineNumber,e.ranges.map(Cx))}var xx=ch,Lx=function(e){function t(t){var n=e.call(this)||this;return n._previousFrameVisibleRangesWithStyle=[],n._context=t,n._lineHeight=n._context.configuration.editor.lineHeight,n._roundedSelection=n._context.configuration.editor.viewInfo.roundedSelection,n._typicalHalfwidthCharacterWidth=n._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,n._selections=[],n._renderResult=null,n._context.addEventHandler(n),n}return vx(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.viewInfo&&(this._roundedSelection=this._context.configuration.editor.viewInfo.roundedSelection),e.fontInfo&&(this._typicalHalfwidthCharacterWidth=this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth),!0},t.prototype.onCursorStateChanged=function(e){return this._selections=e.selections.slice(0),!0},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype._visibleRangesHaveGaps=function(e){for(var t=0,n=e.length;t<n;t++){if(e[t].ranges.length>1)return!0}return!1},t.prototype._enrichVisibleRangesWithStyle=function(e,t,n){var r=this._typicalHalfwidthCharacterWidth/4,i=null,o=null;if(n&&n.length>0&&t.length>0){var s=t[0].lineNumber;if(s===e.startLineNumber)for(var a=0;!i&&a<n.length;a++)n[a].lineNumber===s&&(i=n[a].ranges[0]);var u=t[t.length-1].lineNumber;if(u===e.endLineNumber)for(a=n.length-1;!o&&a>=0;a--)n[a].lineNumber===u&&(o=n[a].ranges[0]);i&&!i.startStyle&&(i=null),o&&!o.startStyle&&(o=null)}a=0;for(var l=t.length;a<l;a++){var c=t[a].ranges[0],d=c.left,h=c.left+c.width,f={top:0,bottom:0},p={top:0,bottom:0};if(a>0){var g=t[a-1].ranges[0].left,m=t[a-1].ranges[0].left+t[a-1].ranges[0].width;kx(d-g)<r?f.top=2:d>g&&(f.top=1),kx(h-m)<r?p.top=2:g<h&&h<m&&(p.top=1)}else i&&(f.top=i.startStyle.top,p.top=i.endStyle.top);if(a+1<l){var _=t[a+1].ranges[0].left,y=t[a+1].ranges[0].left+t[a+1].ranges[0].width;kx(d-_)<r?f.bottom=2:_<d&&d<y&&(f.bottom=1),kx(h-y)<r?p.bottom=2:h<y&&(p.bottom=1)}else o&&(f.bottom=o.startStyle.bottom,p.bottom=o.endStyle.bottom);c.startStyle=f,c.endStyle=p}},t.prototype._getVisibleRangesWithStyle=function(e,t,n){var r=(t.linesVisibleRangesForRange(e,!0)||[]).map(Sx),i=this._visibleRangesHaveGaps(r);return xx||i||!this._roundedSelection||this._enrichVisibleRangesWithStyle(t.visibleRange,r,n),r},t.prototype._createSelectionPiece=function(e,t,n,r,i){return'<div class="cslr '+n+'" style="top:'+e.toString()+"px;left:"+r.toString()+"px;width:"+i.toString()+"px;height:"+t+'px;"></div>'},t.prototype._actualRenderOneSelection=function(e,n,r,i){for(var o=i.length>0&&i[0].ranges[0].startStyle,s=this._lineHeight.toString(),a=(this._lineHeight-1).toString(),u=i.length>0?i[0].lineNumber:0,l=i.length>0?i[i.length-1].lineNumber:0,c=0,d=i.length;c<d;c++){for(var h=i[c],f=h.lineNumber,p=f-n,g=r&&(f===l||f===u)?a:s,m=r&&f===u?1:0,_="",y=0,v=h.ranges.length;y<v;y++){var b=h.ranges[y];if(o){var w=b.startStyle,C=b.endStyle;if(1===w.top||1===w.bottom){_+=this._createSelectionPiece(m,g,t.SELECTION_CLASS_NAME,b.left-t.ROUNDED_PIECE_WIDTH,t.ROUNDED_PIECE_WIDTH);var S=t.EDITOR_BACKGROUND_CLASS_NAME;1===w.top&&(S+=" "+t.SELECTION_TOP_RIGHT),1===w.bottom&&(S+=" "+t.SELECTION_BOTTOM_RIGHT),_+=this._createSelectionPiece(m,g,S,b.left-t.ROUNDED_PIECE_WIDTH,t.ROUNDED_PIECE_WIDTH)}if(1===C.top||1===C.bottom){_+=this._createSelectionPiece(m,g,t.SELECTION_CLASS_NAME,b.left+b.width,t.ROUNDED_PIECE_WIDTH);var x=t.EDITOR_BACKGROUND_CLASS_NAME;1===C.top&&(x+=" "+t.SELECTION_TOP_LEFT),1===C.bottom&&(x+=" "+t.SELECTION_BOTTOM_LEFT),_+=this._createSelectionPiece(m,g,x,b.left+b.width,t.ROUNDED_PIECE_WIDTH)}}var L=t.SELECTION_CLASS_NAME;if(o){w=b.startStyle,C=b.endStyle;0===w.top&&(L+=" "+t.SELECTION_TOP_LEFT),0===w.bottom&&(L+=" "+t.SELECTION_BOTTOM_LEFT),0===C.top&&(L+=" "+t.SELECTION_TOP_RIGHT),0===C.bottom&&(L+=" "+t.SELECTION_BOTTOM_RIGHT)}_+=this._createSelectionPiece(m,g,L,b.left,b.width)}e[p]+=_}},t.prototype.prepareRender=function(e){for(var t=[],n=e.visibleRange.startLineNumber,r=e.visibleRange.endLineNumber,i=n;i<=r;i++){t[i-n]=""}for(var o=[],s=0,a=this._selections.length;s<a;s++){var u=this._selections[s];if(u.isEmpty())o[s]=null;else{var l=this._getVisibleRangesWithStyle(u,e,this._previousFrameVisibleRangesWithStyle[s]);o[s]=l,this._actualRenderOneSelection(t,n,this._selections.length>1,l)}}this._previousFrameVisibleRangesWithStyle=o,this._renderResult=t},t.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]},t.SELECTION_CLASS_NAME="selected-text",t.SELECTION_TOP_LEFT="top-left-radius",t.SELECTION_BOTTOM_LEFT="bottom-left-radius",t.SELECTION_TOP_RIGHT="top-right-radius",t.SELECTION_BOTTOM_RIGHT="bottom-right-radius",t.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background",t.ROUNDED_PIECE_WIDTH=10,t}(cC);function kx(e){return e<0?-e:e}Wd((function(e,t){var n=e.getColor(ud);n&&t.addRule(".monaco-editor .focused .selected-text { background-color: "+n+"; }");var r=e.getColor(cd);r&&t.addRule(".monaco-editor .selected-text { background-color: "+r+"; }");var i=e.getColor(ld);i&&t.addRule(".monaco-editor .view-line span.inline-selected-text { color: "+i+"; }")}));n(350);var Mx=function(e,t,n,r,i,o){this.top=e,this.left=t,this.width=n,this.height=r,this.textContent=i,this.textContentClassName=o},Dx=function(){function e(e){this._context=e,this._cursorStyle=this._context.configuration.editor.viewInfo.cursorStyle,this._lineHeight=this._context.configuration.editor.lineHeight,this._typicalHalfwidthCharacterWidth=this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(this._context.configuration.editor.viewInfo.cursorWidth,this._typicalHalfwidthCharacterWidth),this._isVisible=!0,this._domNode=Dp(document.createElement("div")),this._domNode.setClassName("cursor"),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),ow.applyFontInfo(this._domNode,this._context.configuration.editor.fontInfo),this._domNode.setDisplay("none"),this._position=new Lt(1,1),this._lastRenderedContent="",this._renderData=null}return e.prototype.getDomNode=function(){return this._domNode},e.prototype.getPosition=function(){return this._position},e.prototype.show=function(){this._isVisible||(this._domNode.setVisibility("inherit"),this._isVisible=!0)},e.prototype.hide=function(){this._isVisible&&(this._domNode.setVisibility("hidden"),this._isVisible=!1)},e.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.fontInfo&&(ow.applyFontInfo(this._domNode,this._context.configuration.editor.fontInfo),this._typicalHalfwidthCharacterWidth=this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth),e.viewInfo&&(this._cursorStyle=this._context.configuration.editor.viewInfo.cursorStyle,this._lineCursorWidth=Math.min(this._context.configuration.editor.viewInfo.cursorWidth,this._typicalHalfwidthCharacterWidth)),!0},e.prototype.onCursorPositionChanged=function(e){return this._position=e,!0},e.prototype._prepareRender=function(e){var t="",n="";if(this._cursorStyle===oi.Line||this._cursorStyle===oi.LineThin){var r,i=e.visibleRangeForPosition(this._position);if(!i)return null;if(this._cursorStyle===oi.Line){if((r=Pf(this._lineCursorWidth>0?this._lineCursorWidth:2))>2)t=this._context.model.getLineContent(this._position.lineNumber).charAt(this._position.column-1)}else r=Pf(1);var o=i.left;r>=2&&o>=1&&(o-=1);var s=e.getVerticalOffsetForLineNumber(this._position.lineNumber)-e.bigNumbersDelta;return new Mx(s,o,r,this._lineHeight,t,n)}var a=e.linesVisibleRangesForRange(new Yr(this._position.lineNumber,this._position.column,this._position.lineNumber,this._position.column+1),!1);if(!a||0===a.length||0===a[0].ranges.length)return null;var u=a[0].ranges[0],l=u.width<1?this._typicalHalfwidthCharacterWidth:u.width;if(this._cursorStyle===oi.Block){var c=this._context.model.getViewLineData(this._position.lineNumber);t=c.content.charAt(this._position.column-1),xn(c.content.charCodeAt(this._position.column-1))&&(t+=c.content.charAt(this._position.column));var d=c.tokens.findTokenIndexAtOffset(this._position.column-1);n=c.tokens.getClassName(d)}var h=e.getVerticalOffsetForLineNumber(this._position.lineNumber)-e.bigNumbersDelta,f=this._lineHeight;return this._cursorStyle!==oi.Underline&&this._cursorStyle!==oi.UnderlineThin||(h+=this._lineHeight-2,f=2),new Mx(h,u.left,l,f,t,n)},e.prototype.prepareRender=function(e){this._renderData=this._prepareRender(e)},e.prototype.render=function(e){return this._renderData?(this._lastRenderedContent!==this._renderData.textContent&&(this._lastRenderedContent=this._renderData.textContent,this._domNode.domNode.textContent=this._lastRenderedContent),this._domNode.setClassName("cursor "+this._renderData.textContentClassName),this._domNode.setDisplay("block"),this._domNode.setTop(this._renderData.top),this._domNode.setLeft(this._renderData.left),this._domNode.setWidth(this._renderData.width),this._domNode.setLineHeight(this._renderData.height),this._domNode.setHeight(this._renderData.height),{domNode:this._domNode.domNode,position:this._position,contentLeft:this._renderData.left,height:this._renderData.height,width:2}):(this._domNode.setDisplay("none"),null)},e}(),Ex=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Tx=function(e){function t(t){var n=e.call(this,t)||this;return n._readOnly=n._context.configuration.editor.readOnly,n._cursorBlinking=n._context.configuration.editor.viewInfo.cursorBlinking,n._cursorStyle=n._context.configuration.editor.viewInfo.cursorStyle,n._cursorSmoothCaretAnimation=n._context.configuration.editor.viewInfo.cursorSmoothCaretAnimation,n._selectionIsEmpty=!0,n._isVisible=!1,n._primaryCursor=new Dx(n._context),n._secondaryCursors=[],n._renderData=[],n._domNode=Dp(document.createElement("div")),n._domNode.setAttribute("role","presentation"),n._domNode.setAttribute("aria-hidden","true"),n._updateDomClassName(),n._domNode.appendChild(n._primaryCursor.getDomNode()),n._startCursorBlinkAnimation=new Ns,n._cursorFlatBlinkInterval=new Os,n._blinkingEnabled=!1,n._editorHasFocus=!1,n._updateBlinking(),n}return Ex(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._startCursorBlinkAnimation.dispose(),this._cursorFlatBlinkInterval.dispose()},t.prototype.getDomNode=function(){return this._domNode},t.prototype.onConfigurationChanged=function(e){e.readOnly&&(this._readOnly=this._context.configuration.editor.readOnly),e.viewInfo&&(this._cursorBlinking=this._context.configuration.editor.viewInfo.cursorBlinking,this._cursorStyle=this._context.configuration.editor.viewInfo.cursorStyle,this._cursorSmoothCaretAnimation=this._context.configuration.editor.viewInfo.cursorSmoothCaretAnimation),this._primaryCursor.onConfigurationChanged(e),this._updateBlinking(),e.viewInfo&&this._updateDomClassName();for(var t=0,n=this._secondaryCursors.length;t<n;t++)this._secondaryCursors[t].onConfigurationChanged(e);return!0},t.prototype._onCursorPositionChanged=function(e,t){if(this._primaryCursor.onCursorPositionChanged(e),this._updateBlinking(),this._secondaryCursors.length<t.length)for(var n=t.length-this._secondaryCursors.length,r=0;r<n;r++){var i=new Dx(this._context);this._domNode.domNode.insertBefore(i.getDomNode().domNode,this._primaryCursor.getDomNode().domNode.nextSibling),this._secondaryCursors.push(i)}else if(this._secondaryCursors.length>t.length){var o=this._secondaryCursors.length-t.length;for(r=0;r<o;r++)this._domNode.removeChild(this._secondaryCursors[0].getDomNode()),this._secondaryCursors.splice(0,1)}for(r=0;r<t.length;r++)this._secondaryCursors[r].onCursorPositionChanged(t[r])},t.prototype.onCursorStateChanged=function(e){for(var t=[],n=0,r=e.selections.length;n<r;n++)t[n]=e.selections[n].getPosition();this._onCursorPositionChanged(t[0],t.slice(1));var i=e.selections[0].isEmpty();return this._selectionIsEmpty!==i&&(this._selectionIsEmpty=i,this._updateDomClassName()),!0},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onFocusChanged=function(e){return this._editorHasFocus=e.isFocused,this._updateBlinking(),!1},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return!0},t.prototype.onTokensChanged=function(e){var t=function(t){for(var n=0,r=e.ranges.length;n<r;n++)if(e.ranges[n].fromLineNumber<=t.lineNumber&&t.lineNumber<=e.ranges[n].toLineNumber)return!0;return!1};if(t(this._primaryCursor.getPosition()))return!0;for(var n=0,r=this._secondaryCursors;n<r.length;n++){if(t(r[n].getPosition()))return!0}return!1},t.prototype.onZonesChanged=function(e){return!0},t.prototype._getCursorBlinking=function(){return this._editorHasFocus?this._readOnly?5:this._cursorBlinking:0},t.prototype._updateBlinking=function(){var e=this;this._startCursorBlinkAnimation.cancel(),this._cursorFlatBlinkInterval.cancel();var n=this._getCursorBlinking(),r=0===n,i=5===n;r?this._hide():this._show(),this._blinkingEnabled=!1,this._updateDomClassName(),r||i||(1===n?this._cursorFlatBlinkInterval.cancelAndSet((function(){e._isVisible?e._hide():e._show()}),t.BLINK_INTERVAL):this._startCursorBlinkAnimation.setIfNotSet((function(){e._blinkingEnabled=!0,e._updateDomClassName()}),t.BLINK_INTERVAL))},t.prototype._updateDomClassName=function(){this._domNode.setClassName(this._getClassName())},t.prototype._getClassName=function(){var e="cursors-layer";switch(this._selectionIsEmpty||(e+=" has-selection"),this._cursorStyle){case oi.Line:e+=" cursor-line-style";break;case oi.Block:e+=" cursor-block-style";break;case oi.Underline:e+=" cursor-underline-style";break;case oi.LineThin:e+=" cursor-line-thin-style";break;case oi.BlockOutline:e+=" cursor-block-outline-style";break;case oi.UnderlineThin:e+=" cursor-underline-thin-style";break;default:e+=" cursor-line-style"}if(this._blinkingEnabled)switch(this._getCursorBlinking()){case 1:e+=" cursor-blink";break;case 2:e+=" cursor-smooth";break;case 3:e+=" cursor-phase";break;case 4:e+=" cursor-expand";break;case 5:e+=" cursor-solid";break;default:e+=" cursor-solid"}else e+=" cursor-solid";return this._cursorSmoothCaretAnimation&&(e+=" cursor-smooth-caret-animation"),e},t.prototype._show=function(){this._primaryCursor.show();for(var e=0,t=this._secondaryCursors.length;e<t;e++)this._secondaryCursors[e].show();this._isVisible=!0},t.prototype._hide=function(){this._primaryCursor.hide();for(var e=0,t=this._secondaryCursors.length;e<t;e++)this._secondaryCursors[e].hide();this._isVisible=!1},t.prototype.prepareRender=function(e){this._primaryCursor.prepareRender(e);for(var t=0,n=this._secondaryCursors.length;t<n;t++)this._secondaryCursors[t].prepareRender(e)},t.prototype.render=function(e){var t=[],n=0,r=this._primaryCursor.render(e);r&&(t[n++]=r);for(var i=0,o=this._secondaryCursors.length;i<o;i++){var s=this._secondaryCursors[i].render(e);s&&(t[n++]=s)}this._renderData=t},t.prototype.getLastRenderData=function(){return this._renderData},t.BLINK_INTERVAL=500,t}(_w);Wd((function(e,t){var n=e.getColor(gC);if(n){var r=e.getColor(mC);r||(r=n.opposite()),t.addRule(".monaco-editor .cursor { background-color: "+n+"; border-color: "+n+"; color: "+r+"; }"),"hc"===e.type&&t.addRule(".monaco-editor .cursors-layer.has-selection .cursor { border-left: 1px solid "+r+"; border-right: 1px solid "+r+"; }")}}));var Nx=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ox=function(e){function t(t){var n=e.call(this,t)||this;return n._lineHeight=n._context.configuration.editor.lineHeight,n._contentWidth=n._context.configuration.editor.layoutInfo.contentWidth,n._contentLeft=n._context.configuration.editor.layoutInfo.contentLeft,n.domNode=Dp(document.createElement("div")),n.domNode.setClassName("view-zones"),n.domNode.setPosition("absolute"),n.domNode.setAttribute("role","presentation"),n.domNode.setAttribute("aria-hidden","true"),n.marginDomNode=Dp(document.createElement("div")),n.marginDomNode.setClassName("margin-view-zones"),n.marginDomNode.setPosition("absolute"),n.marginDomNode.setAttribute("role","presentation"),n.marginDomNode.setAttribute("aria-hidden","true"),n._zones={},n}return Nx(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._zones={}},t.prototype._recomputeWhitespacesProps=function(){for(var e=!1,t=Object.keys(this._zones),n=0,r=t.length;n<r;n++){var i=t[n],o=this._zones[i],s=this._computeWhitespaceProps(o.delegate);this._context.viewLayout.changeWhitespace(i,s.afterViewLineNumber,s.heightInPx)&&(this._safeCallOnComputedHeight(o.delegate,s.heightInPx),e=!0)}return e},t.prototype.onConfigurationChanged=function(e){return e.lineHeight?(this._lineHeight=this._context.configuration.editor.lineHeight,this._recomputeWhitespacesProps()):(e.layoutInfo&&(this._contentWidth=this._context.configuration.editor.layoutInfo.contentWidth,this._contentLeft=this._context.configuration.editor.layoutInfo.contentLeft),!0)},t.prototype.onLineMappingChanged=function(e){var t=this._recomputeWhitespacesProps();return t&&this._context.viewLayout.onHeightMaybeChanged(),t},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged||e.scrollWidthChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype._getZoneOrdinal=function(e){return void 0!==e.afterColumn?e.afterColumn:1e4},t.prototype._computeWhitespaceProps=function(e){if(0===e.afterLineNumber)return{afterViewLineNumber:0,heightInPx:this._heightInPixels(e),minWidthInPx:this._minWidthInPixels(e)};var t,n;if(void 0!==e.afterColumn)t=this._context.model.validateModelPosition({lineNumber:e.afterLineNumber,column:e.afterColumn});else{var r=this._context.model.validateModelPosition({lineNumber:e.afterLineNumber,column:1}).lineNumber;t=new Lt(r,this._context.model.getModelLineMaxColumn(r))}n=t.column===this._context.model.getModelLineMaxColumn(t.lineNumber)?this._context.model.validateModelPosition({lineNumber:t.lineNumber+1,column:1}):this._context.model.validateModelPosition({lineNumber:t.lineNumber,column:t.column+1});var i=this._context.model.coordinatesConverter.convertModelPositionToViewPosition(t),o=this._context.model.coordinatesConverter.modelPositionIsVisible(n);return{afterViewLineNumber:i.lineNumber,heightInPx:o?this._heightInPixels(e):0,minWidthInPx:this._minWidthInPixels(e)}},t.prototype.addZone=function(e){var t=this._computeWhitespaceProps(e),n={whitespaceId:this._context.viewLayout.addWhitespace(t.afterViewLineNumber,this._getZoneOrdinal(e),t.heightInPx,t.minWidthInPx),delegate:e,isVisible:!1,domNode:Dp(e.domNode),marginDomNode:e.marginDomNode?Dp(e.marginDomNode):null};return this._safeCallOnComputedHeight(n.delegate,t.heightInPx),n.domNode.setPosition("absolute"),n.domNode.domNode.style.width="100%",n.domNode.setDisplay("none"),n.domNode.setAttribute("monaco-view-zone",n.whitespaceId),this.domNode.appendChild(n.domNode),n.marginDomNode&&(n.marginDomNode.setPosition("absolute"),n.marginDomNode.domNode.style.width="100%",n.marginDomNode.setDisplay("none"),n.marginDomNode.setAttribute("monaco-view-zone",n.whitespaceId),this.marginDomNode.appendChild(n.marginDomNode)),this._zones[n.whitespaceId]=n,this.setShouldRender(),n.whitespaceId},t.prototype.removeZone=function(e){if(this._zones.hasOwnProperty(e)){var t=this._zones[e];return delete this._zones[e],this._context.viewLayout.removeWhitespace(t.whitespaceId),t.domNode.removeAttribute("monaco-visible-view-zone"),t.domNode.removeAttribute("monaco-view-zone"),t.domNode.domNode.parentNode.removeChild(t.domNode.domNode),t.marginDomNode&&(t.marginDomNode.removeAttribute("monaco-visible-view-zone"),t.marginDomNode.removeAttribute("monaco-view-zone"),t.marginDomNode.domNode.parentNode.removeChild(t.marginDomNode.domNode)),this.setShouldRender(),!0}return!1},t.prototype.layoutZone=function(e){var t=!1;if(this._zones.hasOwnProperty(e)){var n=this._zones[e],r=this._computeWhitespaceProps(n.delegate);(t=this._context.viewLayout.changeWhitespace(n.whitespaceId,r.afterViewLineNumber,r.heightInPx)||t)&&(this._safeCallOnComputedHeight(n.delegate,r.heightInPx),this.setShouldRender())}return t},t.prototype.shouldSuppressMouseDownOnViewZone=function(e){if(this._zones.hasOwnProperty(e)){var t=this._zones[e];return Boolean(t.delegate.suppressMouseDown)}return!1},t.prototype._heightInPixels=function(e){return"number"==typeof e.heightInPx?e.heightInPx:"number"==typeof e.heightInLines?this._lineHeight*e.heightInLines:this._lineHeight},t.prototype._minWidthInPixels=function(e){return"number"==typeof e.minWidthInPx?e.minWidthInPx:0},t.prototype._safeCallOnComputedHeight=function(e,t){if("function"==typeof e.onComputedHeight)try{e.onComputedHeight(t)}catch(e){Ke(e)}},t.prototype._safeCallOnDomNodeTop=function(e,t){if("function"==typeof e.onDomNodeTop)try{e.onDomNodeTop(t)}catch(e){Ke(e)}},t.prototype.prepareRender=function(e){},t.prototype.render=function(e){for(var t=e.viewportData.whitespaceViewportData,n={},r=!1,i=0,o=t.length;i<o;i++)n[t[i].id]=t[i],r=!0;var s=Object.keys(this._zones);for(i=0,o=s.length;i<o;i++){var a=s[i],u=this._zones[a],l=0,c=0,d="none";n.hasOwnProperty(a)?(l=n[a].verticalOffset-e.bigNumbersDelta,c=n[a].height,d="block",u.isVisible||(u.domNode.setAttribute("monaco-visible-view-zone","true"),u.isVisible=!0),this._safeCallOnDomNodeTop(u.delegate,e.getScrolledTopFromAbsoluteTop(n[a].verticalOffset))):(u.isVisible&&(u.domNode.removeAttribute("monaco-visible-view-zone"),u.isVisible=!1),this._safeCallOnDomNodeTop(u.delegate,e.getScrolledTopFromAbsoluteTop(-1e6))),u.domNode.setTop(l),u.domNode.setHeight(c),u.domNode.setDisplay(d),u.marginDomNode&&(u.marginDomNode.setTop(l),u.marginDomNode.setHeight(c),u.marginDomNode.setDisplay(d))}r&&(this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth)),this.marginDomNode.setWidth(this._contentLeft))},t}(_w),Ax=function(){function e(e,t,n,r){this.configuration=e,this.theme=t,this.model=n,this.viewLayout=n.viewLayout,this.privateViewEventBus=r}return e.prototype.addEventHandler=function(e){this.privateViewEventBus.addEventHandler(e)},e.prototype.removeEventHandler=function(e){this.privateViewEventBus.removeEventHandler(e)},e}(),Ix=function(){function e(e){this._eventHandlerGateKeeper=e,this._eventHandlers=[],this._eventQueue=null,this._isConsumingQueue=!1}return e.prototype.addEventHandler=function(e){for(var t=0,n=this._eventHandlers.length;t<n;t++)this._eventHandlers[t]===e&&console.warn("Detected duplicate listener in ViewEventDispatcher",e);this._eventHandlers.push(e)},e.prototype.removeEventHandler=function(e){for(var t=0;t<this._eventHandlers.length;t++)if(this._eventHandlers[t]===e){this._eventHandlers.splice(t,1);break}},e.prototype.emit=function(e){this._eventQueue?this._eventQueue.push(e):this._eventQueue=[e],this._isConsumingQueue||this.consumeQueue()},e.prototype.emitMany=function(e){this._eventQueue?this._eventQueue=this._eventQueue.concat(e):this._eventQueue=e,this._isConsumingQueue||this.consumeQueue()},e.prototype.consumeQueue=function(){var e=this;this._eventHandlerGateKeeper((function(){try{e._isConsumingQueue=!0,e._doConsumeQueue()}finally{e._isConsumingQueue=!1}}))},e.prototype._doConsumeQueue=function(){for(;this._eventQueue;){var e=this._eventQueue;this._eventQueue=null;for(var t=this._eventHandlers.slice(0),n=0,r=t.length;n<r;n++)t[n].handleEvents(e)}},e}(),Px=function(){function e(e,t,n,r){this.selections=e,this.startLineNumber=0|t.startLineNumber,this.endLineNumber=0|t.endLineNumber,this.relativeVerticalOffset=t.relativeVerticalOffset,this.bigNumbersDelta=0|t.bigNumbersDelta,this.whitespaceViewportData=n,this._model=r,this.visibleRange=new Yr(t.startLineNumber,this._model.getLineMinColumn(t.startLineNumber),t.endLineNumber,this._model.getLineMaxColumn(t.endLineNumber))}return e.prototype.getViewLineRenderingData=function(e){return this._model.getViewLineRenderingData(this.visibleRange,e)},e.prototype.getDecorationsInViewport=function(){return this._model.getDecorationsInViewport(this.visibleRange)},e}(),Rx=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Fx=function(){throw new Error("Invalid change accessor")},Yx=function(e){function t(t,n,r,i,o,s){var a=e.call(this)||this;a._cursor=o,a._renderAnimationFrame=null,a.outgoingEvents=s;var u=new sS(n,i,a.outgoingEvents,t);a.eventDispatcher=new Ix((function(e){return a._renderOnce(e)})),a.eventDispatcher.addEventHandler(a),a._context=new Ax(n,r.getTheme(),i,a.eventDispatcher),a._register(r.onThemeChange((function(e){a._context.theme=e,a.eventDispatcher.emit(new GC),a.render(!0,!1)}))),a.viewParts=[],a._textAreaHandler=new oS(a._context,u,a.createTextAreaHandlerHelper()),a.viewParts.push(a._textAreaHandler),a.linesContent=Dp(document.createElement("div")),a.linesContent.setClassName("lines-content monaco-editor-background"),a.linesContent.setPosition("absolute"),a.domNode=Dp(document.createElement("div")),a.domNode.setClassName(a.getEditorClassName()),a.overflowGuardContainer=Dp(document.createElement("div")),yw.write(a.overflowGuardContainer,3),a.overflowGuardContainer.setClassName("overflow-guard"),a._scrollbar=new kS(a._context,a.linesContent,a.domNode,a.overflowGuardContainer),a.viewParts.push(a._scrollbar),a.viewLines=new RS(a._context,a.linesContent),a.viewZones=new Ox(a._context),a.viewParts.push(a.viewZones);var l=new lx(a._context);a.viewParts.push(l);var c=new yx(a._context);a.viewParts.push(c);var d=new fS(a._context);a.viewParts.push(d),d.addDynamicOverlay(new bS(a._context)),d.addDynamicOverlay(new Lx(a._context)),d.addDynamicOverlay(new OS(a._context)),d.addDynamicOverlay(new xS(a._context));var h=new pS(a._context);a.viewParts.push(h),h.addDynamicOverlay(new CS(a._context)),h.addDynamicOverlay(new TS(a._context)),h.addDynamicOverlay(new BS(a._context)),h.addDynamicOverlay(new YS(a._context)),h.addDynamicOverlay(new OC(a._context));var f=new IC(a._context);f.getDomNode().appendChild(a.viewZones.marginDomNode),f.getDomNode().appendChild(h.getDomNode()),a.viewParts.push(f),a.contentWidgets=new _S(a._context,a.domNode),a.viewParts.push(a.contentWidgets),a.viewCursors=new Tx(a._context),a.viewParts.push(a.viewCursors),a.overlayWidgets=new sx(a._context),a.viewParts.push(a.overlayWidgets);var p=new mx(a._context);a.viewParts.push(p);var g=new ix(a._context);if(a.viewParts.push(g),l){var m=a._scrollbar.getOverviewRulerLayoutInfo();m.parent.insertBefore(l.getDomNode(),m.insertBefore)}return a.linesContent.appendChild(d.getDomNode()),a.linesContent.appendChild(p.domNode),a.linesContent.appendChild(a.viewZones.domNode),a.linesContent.appendChild(a.viewLines.getDomNode()),a.linesContent.appendChild(a.contentWidgets.domNode),a.linesContent.appendChild(a.viewCursors.getDomNode()),a.overflowGuardContainer.appendChild(f.getDomNode()),a.overflowGuardContainer.appendChild(a._scrollbar.getDomNode()),a.overflowGuardContainer.appendChild(c.getDomNode()),a.overflowGuardContainer.appendChild(a._textAreaHandler.textArea),a.overflowGuardContainer.appendChild(a._textAreaHandler.textAreaCover),a.overflowGuardContainer.appendChild(a.overlayWidgets.getDomNode()),a.overflowGuardContainer.appendChild(g.getDomNode()),a.domNode.appendChild(a.overflowGuardContainer),a.domNode.appendChild(a.contentWidgets.overflowingContentWidgetsDomNode),a._setLayout(),a.pointerHandler=a._register(new tC(a._context,u,a.createPointerHandlerHelper())),a._register(i.addEventListener((function(e){a.eventDispatcher.emitMany(e)}))),a._register(a._cursor.addEventListener((function(e){a.eventDispatcher.emitMany(e)}))),a}return Rx(t,e),t.prototype._flushAccumulatedAndRenderNow=function(){this._renderNow()},t.prototype.createPointerHandlerHelper=function(){var e=this;return{viewDomNode:this.domNode.domNode,linesContentDomNode:this.linesContent.domNode,focusTextArea:function(){e.focus()},getLastViewCursorsRenderData:function(){return e.viewCursors.getLastRenderData()||[]},shouldSuppressMouseDownOnViewZone:function(t){return e.viewZones.shouldSuppressMouseDownOnViewZone(t)},shouldSuppressMouseDownOnWidget:function(t){return e.contentWidgets.shouldSuppressMouseDownOnWidget(t)},getPositionFromDOMInfo:function(t,n){return e._flushAccumulatedAndRenderNow(),e.viewLines.getPositionFromDOMInfo(t,n)},visibleRangeForPosition2:function(t,n){return e._flushAccumulatedAndRenderNow(),e.viewLines.visibleRangeForPosition(new Lt(t,n))},getLineWidth:function(t){return e._flushAccumulatedAndRenderNow(),e.viewLines.getLineWidth(t)}}},t.prototype.createTextAreaHandlerHelper=function(){var e=this;return{visibleRangeForPositionRelativeToEditor:function(t,n){return e._flushAccumulatedAndRenderNow(),e.viewLines.visibleRangeForPosition(new Lt(t,n))}}},t.prototype._setLayout=function(){var e=this._context.configuration.editor.layoutInfo;this.domNode.setWidth(e.width),this.domNode.setHeight(e.height),this.overflowGuardContainer.setWidth(e.width),this.overflowGuardContainer.setHeight(e.height),this.linesContent.setWidth(1e6),this.linesContent.setHeight(1e6)},t.prototype.getEditorClassName=function(){var e=this._textAreaHandler.isFocused()?" focused":"";return this._context.configuration.editor.editorClassName+" "+Yd(this._context.theme.type)+e},t.prototype.onConfigurationChanged=function(e){return e.editorClassName&&this.domNode.setClassName(this.getEditorClassName()),e.layoutInfo&&this._setLayout(),!1},t.prototype.onFocusChanged=function(e){return this.domNode.setClassName(this.getEditorClassName()),this._context.model.setHasFocus(e.isFocused),e.isFocused?this.outgoingEvents.emitViewFocusGained():this.outgoingEvents.emitViewFocusLost(),!1},t.prototype.onScrollChanged=function(e){return this.outgoingEvents.emitScrollChanged(e),!1},t.prototype.onThemeChanged=function(e){return this.domNode.setClassName(this.getEditorClassName()),!1},t.prototype.dispose=function(){null!==this._renderAnimationFrame&&(this._renderAnimationFrame.dispose(),this._renderAnimationFrame=null),this.eventDispatcher.removeEventHandler(this),this.outgoingEvents.dispose(),this.viewLines.dispose();for(var t=0,n=this.viewParts.length;t<n;t++)this.viewParts[t].dispose();this.viewParts=[],e.prototype.dispose.call(this)},t.prototype._renderOnce=function(e){var t=jx(e);return this._scheduleRender(),t},t.prototype._scheduleRender=function(){null===this._renderAnimationFrame&&(this._renderAnimationFrame=Xh(this._onRenderScheduled.bind(this),100))},t.prototype._onRenderScheduled=function(){this._renderAnimationFrame=null,this._flushAccumulatedAndRenderNow()},t.prototype._renderNow=function(){var e=this;jx((function(){return e._actualRender()}))},t.prototype._getViewPartsToRender=function(){for(var e=[],t=0,n=0,r=this.viewParts.length;n<r;n++){var i=this.viewParts[n];i.shouldRender()&&(e[t++]=i)}return e},t.prototype._actualRender=function(){if(function(e){for(;e;){if(e===document.body)return!0;e=e.parentNode||e.host}return!1}(this.domNode.domNode)){var e=this._getViewPartsToRender();if(this.viewLines.shouldRender()||0!==e.length){var t=this._context.viewLayout.getLinesViewportData();this._context.model.setViewport(t.startLineNumber,t.endLineNumber,t.centeredLineNumber);var n=new Px(this._cursor.getViewSelections(),t,this._context.viewLayout.getWhitespaceViewportData(),this._context.model);this.contentWidgets.shouldRender()&&this.contentWidgets.onBeforeRender(n),this.viewLines.shouldRender()&&(this.viewLines.renderText(n),this.viewLines.onDidRender(),e=this._getViewPartsToRender());for(var r=new bw(this._context.viewLayout,n,this.viewLines),i=0,o=e.length;i<o;i++){(s=e[i]).prepareRender(r)}for(i=0,o=e.length;i<o;i++){var s;(s=e[i]).render(r),s.onDidRender()}}}},t.prototype.delegateVerticalScrollbarMouseDown=function(e){this._scrollbar.delegateVerticalScrollbarMouseDown(e)},t.prototype.restoreState=function(e){this._context.viewLayout.setScrollPositionNow({scrollTop:e.scrollTop}),this._context.model.tokenizeViewport(),this._renderNow(),this.viewLines.updateLineWidths(),this._context.viewLayout.setScrollPositionNow({scrollLeft:e.scrollLeft})},t.prototype.getOffsetForColumn=function(e,t){var n=this._context.model.validateModelPosition({lineNumber:e,column:t}),r=this._context.model.coordinatesConverter.convertModelPositionToViewPosition(n);this._flushAccumulatedAndRenderNow();var i=this.viewLines.visibleRangeForPosition(new Lt(r.lineNumber,r.column));return i?i.left:-1},t.prototype.getTargetAtClientPoint=function(e,t){return this.pointerHandler.getTargetAtClientPoint(e,t)},t.prototype.createOverviewRuler=function(e){return new px(this._context,e)},t.prototype.change=function(e){var t=this,n=!1;return this._renderOnce((function(){var r={addZone:function(e){return n=!0,t.viewZones.addZone(e)},removeZone:function(e){e&&(n=t.viewZones.removeZone(e)||n)},layoutZone:function(e){e&&(n=t.viewZones.layoutZone(e)||n)}};!function(e,t){try{e(t)}catch(e){Ke(e)}}(e,r),r.addZone=Fx,r.removeZone=Fx,r.layoutZone=Fx,n&&(t._context.viewLayout.onHeightMaybeChanged(),t._context.privateViewEventBus.emit(new ZC))})),n},t.prototype.render=function(e,t){if(t){this.viewLines.forceShouldRender();for(var n=0,r=this.viewParts.length;n<r;n++){this.viewParts[n].forceShouldRender()}}e?this._flushAccumulatedAndRenderNow():this._scheduleRender()},t.prototype.focus=function(){this._textAreaHandler.focusTextArea()},t.prototype.isFocused=function(){return this._textAreaHandler.isFocused()},t.prototype.addContentWidget=function(e){this.contentWidgets.addWidget(e.widget),this.layoutContentWidget(e),this._scheduleRender()},t.prototype.layoutContentWidget=function(e){var t=e.position?e.position.position:null,n=e.position&&e.position.range||null,r=e.position?e.position.preference:null;this.contentWidgets.setWidgetPosition(e.widget,t,n,r),this._scheduleRender()},t.prototype.removeContentWidget=function(e){this.contentWidgets.removeWidget(e.widget),this._scheduleRender()},t.prototype.addOverlayWidget=function(e){this.overlayWidgets.addWidget(e.widget),this.layoutOverlayWidget(e),this._scheduleRender()},t.prototype.layoutOverlayWidget=function(e){var t=e.position?e.position.preference:null;this.overlayWidgets.setWidgetPosition(e.widget,t)&&this._scheduleRender()},t.prototype.removeOverlayWidget=function(e){this.overlayWidgets.removeWidget(e.widget),this._scheduleRender()},t}(gw);function jx(e){try{return e()}catch(e){Ke(e)}}var Bx=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Wx=function(e){function t(t){var n=e.call(this)||this;return n.onDidScroll=null,n.onDidGainFocus=null,n.onDidLoseFocus=null,n.onKeyDown=null,n.onKeyUp=null,n.onContextMenu=null,n.onMouseMove=null,n.onMouseLeave=null,n.onMouseUp=null,n.onMouseDown=null,n.onMouseDrag=null,n.onMouseDrop=null,n.onMouseWheel=null,n._viewModel=t,n}return Bx(t,e),t.prototype.emitScrollChanged=function(e){this.onDidScroll&&this.onDidScroll(e)},t.prototype.emitViewFocusGained=function(){this.onDidGainFocus&&this.onDidGainFocus(void 0)},t.prototype.emitViewFocusLost=function(){this.onDidLoseFocus&&this.onDidLoseFocus(void 0)},t.prototype.emitKeyDown=function(e){this.onKeyDown&&this.onKeyDown(e)},t.prototype.emitKeyUp=function(e){this.onKeyUp&&this.onKeyUp(e)},t.prototype.emitContextMenu=function(e){this.onContextMenu&&this.onContextMenu(this._convertViewToModelMouseEvent(e))},t.prototype.emitMouseMove=function(e){this.onMouseMove&&this.onMouseMove(this._convertViewToModelMouseEvent(e))},t.prototype.emitMouseLeave=function(e){this.onMouseLeave&&this.onMouseLeave(this._convertViewToModelMouseEvent(e))},t.prototype.emitMouseUp=function(e){this.onMouseUp&&this.onMouseUp(this._convertViewToModelMouseEvent(e))},t.prototype.emitMouseDown=function(e){this.onMouseDown&&this.onMouseDown(this._convertViewToModelMouseEvent(e))},t.prototype.emitMouseDrag=function(e){this.onMouseDrag&&this.onMouseDrag(this._convertViewToModelMouseEvent(e))},t.prototype.emitMouseDrop=function(e){this.onMouseDrop&&this.onMouseDrop(this._convertViewToModelMouseEvent(e))},t.prototype.emitMouseWheel=function(e){this.onMouseWheel&&this.onMouseWheel(e)},t.prototype._convertViewToModelMouseEvent=function(e){return e.target?{event:e.event,target:this._convertViewToModelMouseTarget(e.target)}:e},t.prototype._convertViewToModelMouseTarget=function(e){return new Hx(e.element,e.type,e.mouseColumn,e.position?this._convertViewToModelPosition(e.position):null,e.range?this._convertViewToModelRange(e.range):null,e.detail)},t.prototype._convertViewToModelPosition=function(e){return this._viewModel.coordinatesConverter.convertViewPositionToModelPosition(e)},t.prototype._convertViewToModelRange=function(e){return this._viewModel.coordinatesConverter.convertViewRangeToModelRange(e)},t}(Ft),Hx=function(){function e(e,t,n,r,i,o){this.element=e,this.type=t,this.mouseColumn=n,this.position=r,this.range=i,this.detail=o}return e.prototype.toString=function(){return Yw.toString(this)},e}(),Vx=function(){function e(e){this._selTrackedRange=null,this._trackSelection=!0,this._setState(e,new el(new Yr(1,1,1,1),0,new Lt(1,1),0),new el(new Yr(1,1,1,1),0,new Lt(1,1),0))}return e.prototype.dispose=function(e){this._removeTrackedRange(e)},e.prototype.startTrackingSelection=function(e){this._trackSelection=!0,this._updateTrackedRange(e)},e.prototype.stopTrackingSelection=function(e){this._trackSelection=!1,this._removeTrackedRange(e)},e.prototype._updateTrackedRange=function(e){this._trackSelection&&(this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,this.modelState.selection,0))},e.prototype._removeTrackedRange=function(e){this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,null,0)},e.prototype.asCursorState=function(){return new il(this.modelState,this.viewState)},e.prototype.readSelectionFromMarkers=function(e){var t=e.model._getTrackedRange(this._selTrackedRange);return 0===this.modelState.selection.getDirection()?new Br(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):new Br(t.endLineNumber,t.endColumn,t.startLineNumber,t.startColumn)},e.prototype.ensureValidState=function(e){this._setState(e,this.modelState,this.viewState)},e.prototype.setState=function(e,t,n){this._setState(e,t,n)},e.prototype._setState=function(e,t,n){if(t){o=e.model.validateRange(t.selectionStart);var r=t.selectionStart.equalsRange(o)?t.selectionStartLeftoverVisibleColumns:0,i=(s=e.model.validatePosition(t.position),t.position.equals(s)?t.leftoverVisibleColumns:0);t=new el(o,r,s,i)}else{if(!n)return;var o=e.model.validateRange(e.convertViewRangeToModelRange(n.selectionStart)),s=e.model.validatePosition(e.convertViewPositionToModelPosition(n.position.lineNumber,n.position.column));t=new el(o,n.selectionStartLeftoverVisibleColumns,s,n.leftoverVisibleColumns)}if(n){l=e.validateViewRange(n.selectionStart,t.selectionStart),c=e.validateViewPosition(n.position,t.position);n=new el(l,t.selectionStartLeftoverVisibleColumns,c,t.leftoverVisibleColumns)}else{var a=e.convertModelPositionToViewPosition(new Lt(t.selectionStart.startLineNumber,t.selectionStart.startColumn)),u=e.convertModelPositionToViewPosition(new Lt(t.selectionStart.endLineNumber,t.selectionStart.endColumn)),l=new Yr(a.lineNumber,a.column,u.lineNumber,u.column),c=e.convertModelPositionToViewPosition(t.position);n=new el(l,t.selectionStartLeftoverVisibleColumns,c,t.leftoverVisibleColumns)}this.modelState=t,this.viewState=n,this._updateTrackedRange(e)},e}(),zx=function(){function e(e){this.context=e,this.primaryCursor=new Vx(e),this.secondaryCursors=[],this.lastAddedCursorIndex=0}return e.prototype.dispose=function(){this.primaryCursor.dispose(this.context),this.killSecondaryCursors()},e.prototype.startTrackingSelections=function(){this.primaryCursor.startTrackingSelection(this.context);for(var e=0,t=this.secondaryCursors.length;e<t;e++)this.secondaryCursors[e].startTrackingSelection(this.context)},e.prototype.stopTrackingSelections=function(){this.primaryCursor.stopTrackingSelection(this.context);for(var e=0,t=this.secondaryCursors.length;e<t;e++)this.secondaryCursors[e].stopTrackingSelection(this.context)},e.prototype.updateContext=function(e){this.context=e},e.prototype.ensureValidState=function(){this.primaryCursor.ensureValidState(this.context);for(var e=0,t=this.secondaryCursors.length;e<t;e++)this.secondaryCursors[e].ensureValidState(this.context)},e.prototype.readSelectionFromMarkers=function(){var e=[];e[0]=this.primaryCursor.readSelectionFromMarkers(this.context);for(var t=0,n=this.secondaryCursors.length;t<n;t++)e[t+1]=this.secondaryCursors[t].readSelectionFromMarkers(this.context);return e},e.prototype.getAll=function(){var e=[];e[0]=this.primaryCursor.asCursorState();for(var t=0,n=this.secondaryCursors.length;t<n;t++)e[t+1]=this.secondaryCursors[t].asCursorState();return e},e.prototype.getViewPositions=function(){var e=[];e[0]=this.primaryCursor.viewState.position;for(var t=0,n=this.secondaryCursors.length;t<n;t++)e[t+1]=this.secondaryCursors[t].viewState.position;return e},e.prototype.getSelections=function(){var e=[];e[0]=this.primaryCursor.modelState.selection;for(var t=0,n=this.secondaryCursors.length;t<n;t++)e[t+1]=this.secondaryCursors[t].modelState.selection;return e},e.prototype.getViewSelections=function(){var e=[];e[0]=this.primaryCursor.viewState.selection;for(var t=0,n=this.secondaryCursors.length;t<n;t++)e[t+1]=this.secondaryCursors[t].viewState.selection;return e},e.prototype.setSelections=function(e){this.setStates(il.fromModelSelections(e))},e.prototype.getPrimaryCursor=function(){return this.primaryCursor.asCursorState()},e.prototype.setStates=function(e){null!==e&&(this.primaryCursor.setState(this.context,e[0].modelState,e[0].viewState),this._setSecondaryStates(e.slice(1)))},e.prototype._setSecondaryStates=function(e){var t=this.secondaryCursors.length,n=e.length;if(t<n)for(var r=n-t,i=0;i<r;i++)this._addSecondaryCursor();else if(t>n){var o=t-n;for(i=0;i<o;i++)this._removeSecondaryCursor(this.secondaryCursors.length-1)}for(i=0;i<n;i++)this.secondaryCursors[i].setState(this.context,e[i].modelState,e[i].viewState)},e.prototype.killSecondaryCursors=function(){this._setSecondaryStates([])},e.prototype._addSecondaryCursor=function(){this.secondaryCursors.push(new Vx(this.context)),this.lastAddedCursorIndex=this.secondaryCursors.length},e.prototype.getLastAddedCursorIndex=function(){return 0===this.secondaryCursors.length||0===this.lastAddedCursorIndex?0:this.lastAddedCursorIndex},e.prototype._removeSecondaryCursor=function(e){this.lastAddedCursorIndex>=e+1&&this.lastAddedCursorIndex--,this.secondaryCursors[e].dispose(this.context),this.secondaryCursors.splice(e,1)},e.prototype._getAll=function(){var e=[];e[0]=this.primaryCursor;for(var t=0,n=this.secondaryCursors.length;t<n;t++)e[t+1]=this.secondaryCursors[t];return e},e.prototype.normalize=function(){if(0!==this.secondaryCursors.length){for(var e=this._getAll(),t=[],n=0,r=e.length;n<r;n++)t.push({index:n,selection:e[n].modelState.selection});t.sort((function(e,t){return e.selection.startLineNumber===t.selection.startLineNumber?e.selection.startColumn-t.selection.startColumn:e.selection.startLineNumber-t.selection.startLineNumber}));for(var i=0;i<t.length-1;i++){var o=t[i],s=t[i+1],a=o.selection,u=s.selection;if(this.context.config.multiCursorMergeOverlapping){if(u.isEmpty()||a.isEmpty()?u.getStartPosition().isBeforeOrEqual(a.getEndPosition()):u.getStartPosition().isBefore(a.getEndPosition())){var l=o.index<s.index?i:i+1,c=o.index<s.index?i+1:i,d=t[c].index,h=t[l].index,f=t[c].selection,p=t[l].selection;if(!f.equalsSelection(p)){var g=f.plusRange(p),m=f.selectionStartLineNumber===f.startLineNumber&&f.selectionStartColumn===f.startColumn,_=p.selectionStartLineNumber===p.startLineNumber&&p.selectionStartColumn===p.startColumn,y=void 0;d===this.lastAddedCursorIndex?(y=m,this.lastAddedCursorIndex=h):y=_;var v=void 0;v=y?new Br(g.startLineNumber,g.startColumn,g.endLineNumber,g.endColumn):new Br(g.endLineNumber,g.endColumn,g.startLineNumber,g.startColumn),t[l].selection=v;var b=il.fromModelSelection(v);e[h].setState(this.context,b.modelState,b.viewState)}for(var w=0,C=t;w<C.length;w++){var S=C[w];S.index>d&&S.index--}e.splice(d,1),t.splice(c,1),this._removeSecondaryCursor(d-1),i--}}}}},e}(),Ux=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var qx=function(e,t,n){this.selections=e,this.source=t,this.reason=n},Kx=function(){function e(e,t){this.modelVersionId=e.getVersionId(),this.cursorState=t.getAll()}return e.prototype.equals=function(e){if(!e)return!1;if(this.modelVersionId!==e.modelVersionId)return!1;if(this.cursorState.length!==e.cursorState.length)return!1;for(var t=0,n=this.cursorState.length;t<n;t++)if(!this.cursorState[t].equals(e.cursorState[t]))return!1;return!0},e}(),Gx=function(){function e(e,t,n){this._model=e,this._autoClosedCharactersDecorations=t,this._autoClosedEnclosingDecorations=n}return e.getAllAutoClosedCharacters=function(e){for(var t=[],n=0,r=e;n<r.length;n++){var i=r[n];t=t.concat(i.getAutoClosedCharactersRanges())}return t},e.prototype.dispose=function(){this._autoClosedCharactersDecorations=this._model.deltaDecorations(this._autoClosedCharactersDecorations,[]),this._autoClosedEnclosingDecorations=this._model.deltaDecorations(this._autoClosedEnclosingDecorations,[])},e.prototype.getAutoClosedCharactersRanges=function(){for(var e=[],t=0;t<this._autoClosedCharactersDecorations.length;t++){var n=this._model.getDecorationRange(this._autoClosedCharactersDecorations[t]);n&&e.push(n)}return e},e.prototype.isValid=function(e){for(var t=[],n=0;n<this._autoClosedEnclosingDecorations.length;n++){var r=this._model.getDecorationRange(this._autoClosedEnclosingDecorations[n]);if(r&&(t.push(r),r.startLineNumber!==r.endLineNumber))return!1}t.sort(Yr.compareRangesUsingStarts),e.sort(Yr.compareRangesUsingStarts);for(n=0;n<e.length;n++){if(n>=t.length)return!1;if(!t[n].strictContainsRange(e[n]))return!1}return!0},e}(),$x=function(e){function t(t,n,r){var i=e.call(this)||this;i._onDidReachMaxCursorCount=i._register(new $t),i.onDidReachMaxCursorCount=i._onDidReachMaxCursorCount.event,i._onDidAttemptReadOnlyEdit=i._register(new $t),i.onDidAttemptReadOnlyEdit=i._onDidAttemptReadOnlyEdit.event,i._onDidChange=i._register(new $t),i.onDidChange=i._onDidChange.event,i._configuration=t,i._model=n,i._knownModelVersionId=i._model.getVersionId(),i._viewModel=r,i.context=new tl(i._configuration,i._model,i._viewModel),i._cursors=new zx(i.context),i._isHandling=!1,i._isDoingComposition=!1,i._columnSelectData=null,i._autoClosedActions=[],i._prevEditOperationType=0,i._register(i._model.onDidChangeRawContent((function(e){if(i._knownModelVersionId=e.versionId,!i._isHandling){var t=e.containsEvent(1);i._onModelContentChanged(t)}}))),i._register(r.addEventListener((function(e){(function(e){for(var t=0,n=e.length;t<n;t++)if(6===e[t].type)return!0;return!1})(e)&&i._knownModelVersionId===i._model.getVersionId()&&i.setStates("viewModel",0,i.getAll())})));var o=function(){i.context=new tl(i._configuration,i._model,i._viewModel),i._cursors.updateContext(i.context)};return i._register(i._model.onDidChangeLanguage((function(e){o()}))),i._register(i._model.onDidChangeLanguageConfiguration((function(){o()}))),i._register(i._model.onDidChangeOptions((function(){o()}))),i._register(i._configuration.onDidChange((function(e){Qu.shouldRecreate(e)&&o()}))),i}return Ux(t,e),t.prototype.dispose=function(){this._cursors.dispose(),this._autoClosedActions=At(this._autoClosedActions),e.prototype.dispose.call(this)},t.prototype._validateAutoClosedActions=function(){if(this._autoClosedActions.length>0)for(var e=this._cursors.getSelections(),t=0;t<this._autoClosedActions.length;t++){var n=this._autoClosedActions[t];n.isValid(e)||(n.dispose(),this._autoClosedActions.splice(t,1),t--)}},t.prototype.getPrimaryCursor=function(){return this._cursors.getPrimaryCursor()},t.prototype.getLastAddedCursorIndex=function(){return this._cursors.getLastAddedCursorIndex()},t.prototype.getAll=function(){return this._cursors.getAll()},t.prototype.setStates=function(e,n,r){null!==r&&r.length>t.MAX_CURSOR_COUNT&&(r=r.slice(0,t.MAX_CURSOR_COUNT),this._onDidReachMaxCursorCount.fire(void 0));var i=new Kx(this._model,this);this._cursors.setStates(r),this._cursors.normalize(),this._columnSelectData=null,this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,n,i)},t.prototype.setColumnSelectData=function(e){this._columnSelectData=e},t.prototype.reveal=function(e,t,n){this._revealRange(t,0,e,n)},t.prototype.revealRange=function(e,t,n,r){this.emitCursorRevealRange(t,n,e,r)},t.prototype.scrollTo=function(e){this._viewModel.viewLayout.setScrollPositionSmooth({scrollTop:e})},t.prototype.saveState=function(){for(var e=[],t=this._cursors.getSelections(),n=0,r=t.length;n<r;n++){var i=t[n];e.push({inSelectionMode:!i.isEmpty(),selectionStart:{lineNumber:i.selectionStartLineNumber,column:i.selectionStartColumn},position:{lineNumber:i.positionLineNumber,column:i.positionColumn}})}return e},t.prototype.restoreState=function(e){for(var t=[],n=0,r=e.length;n<r;n++){var i=e[n],o=1,s=1;i.position&&i.position.lineNumber&&(o=i.position.lineNumber),i.position&&i.position.column&&(s=i.position.column);var a=o,u=s;i.selectionStart&&i.selectionStart.lineNumber&&(a=i.selectionStart.lineNumber),i.selectionStart&&i.selectionStart.column&&(u=i.selectionStart.column),t.push({selectionStartLineNumber:a,selectionStartColumn:u,positionLineNumber:o,positionColumn:s})}this.setStates("restoreState",0,il.fromModelSelections(t)),this.reveal(!0,0,1)},t.prototype._onModelContentChanged=function(e){if(this._prevEditOperationType=0,e)this._cursors.dispose(),this._cursors=new zx(this.context),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary("model",1,null);else{var t=this._cursors.readSelectionFromMarkers();this.setStates("modelChange",2,il.fromModelSelections(t))}},t.prototype.getSelection=function(){return this._cursors.getPrimaryCursor().modelState.selection},t.prototype.getColumnSelectData=function(){if(this._columnSelectData)return this._columnSelectData;var e=this._cursors.getPrimaryCursor().viewState.position,t=e.lineNumber,n=sl.visibleColumnFromColumn2(this.context.config,this.context.viewModel,e);return{isReal:!1,fromViewLineNumber:t,fromViewVisualColumn:n,toViewLineNumber:t,toViewVisualColumn:n}},t.prototype.getSelections=function(){return this._cursors.getSelections()},t.prototype.getViewSelections=function(){return this._cursors.getViewSelections()},t.prototype.getPosition=function(){return this._cursors.getPrimaryCursor().modelState.position},t.prototype.setSelections=function(e,t){this.setStates(e,0,il.fromModelSelections(t))},t.prototype.getPrevEditOperationType=function(){return this._prevEditOperationType},t.prototype.setPrevEditOperationType=function(e){this._prevEditOperationType=e},t.prototype._pushAutoClosedAction=function(e,t){for(var n=[],r=[],i=0,o=e.length;i<o;i++)n.push({range:e[i],options:{inlineClassName:"auto-closed-character",stickiness:1}}),r.push({range:t[i],options:{stickiness:1}});var s=this._model.deltaDecorations([],n),a=this._model.deltaDecorations([],r);this._autoClosedActions.push(new Gx(this._model,s,a))},t.prototype._executeEditOperation=function(e){if(e){e.shouldPushStackElementBefore&&this._model.pushStackElement();var t=Zx.executeCommands(this._model,this._cursors.getSelections(),e.commands);if(t){this._interpretCommandResult(t);for(var n=[],r=[],i=0;i<e.commands.length;i++){var o=e.commands[i];o instanceof Dl&&o.enclosingRange&&o.closeCharacterRange&&(n.push(o.closeCharacterRange),r.push(o.enclosingRange))}n.length>0&&this._pushAutoClosedAction(n,r),this._prevEditOperationType=e.type}e.shouldPushStackElementAfter&&this._model.pushStackElement()}},t.prototype._interpretCommandResult=function(e){e&&0!==e.length||(e=this._cursors.readSelectionFromMarkers()),this._columnSelectData=null,this._cursors.setSelections(e),this._cursors.normalize()},t.prototype._emitStateChangedIfNecessary=function(e,t,n){var r=new Kx(this._model,this);if(r.equals(n))return!1;var i=this._cursors.getSelections(),o=this._cursors.getViewSelections();try{this._beginEmit().emit(new FC(o))}finally{this._endEmit()}return n&&n.cursorState.length===r.cursorState.length&&!r.cursorState.some((function(e,t){return!e.modelState.equals(n.cursorState[t].modelState)}))||this._onDidChange.fire(new qx(i,e||"keyboard",t)),!0},t.prototype._revealRange=function(e,t,n,r){var i=this._cursors.getViewPositions(),o=i[0];if(1===e)for(var s=1;s<i.length;s++)i[s].isBefore(o)&&(o=i[s]);else if(2===e)for(s=1;s<i.length;s++)o.isBeforeOrEqual(i[s])&&(o=i[s]);else if(i.length>1)return;var a=new Yr(o.lineNumber,o.column,o.lineNumber,o.column);this.emitCursorRevealRange(a,t,n,r)},t.prototype.emitCursorRevealRange=function(e,t,n,r){try{this._beginEmit().emit(new UC(e,t,n,r))}finally{this._endEmit()}},t.prototype._findAutoClosingPairs=function(e){if(!e.length)return null;for(var t=[],n=0,r=e.length;n<r;n++){var i=e[n];if(!i.text||i.text.indexOf("\n")>=0)return null;var o=i.text.match(/([)\]}>'"`])([^)\]}>'"`]*)$/);if(!o)return null;var s=o[1],a=this.context.config.autoClosingPairsClose2.get(s);if(!a||1!==a.length)return null;var u=a[0].open,l=i.text.length-o[2].length-1,c=i.text.lastIndexOf(u,l-1);if(-1===c)return null;t.push([c,l])}return t},t.prototype.executeEdits=function(e,t,n){var r=this,i=null;"snippet"===e&&(i=this._findAutoClosingPairs(t)),i&&(t[0]._isTracked=!0);var o=[],s=[],a=this._model.pushEditOperations(this.getSelections(),t,(function(e){if(i)for(var t=0,a=i.length;t<a;t++){var u=i[t],l=u[0],c=u[1],d=e[t],h=d.range.startLineNumber,f=d.range.startColumn-1+l,p=d.range.startColumn-1+c;o.push(new Yr(h,p+1,h,p+2)),s.push(new Yr(h,f+1,h,p+2))}var g=n(e);return g&&(r._isHandling=!0),g}));a&&(this._isHandling=!1,this.setSelections(e,a)),o.length>0&&this._pushAutoClosedAction(o,s)},t.prototype.trigger=function(e,t,n){var r=Ol;if(t!==r.CompositionStart)if(t===r.CompositionEnd&&(this._isDoingComposition=!1),this._configuration.editor.readOnly)this._onDidAttemptReadOnlyEdit.fire(void 0);else{var i=new Kx(this._model,this),o=0;t!==r.Undo&&t!==r.Redo&&this._cursors.stopTrackingSelections(),this._cursors.ensureValidState(),this._isHandling=!0;try{switch(t){case r.Type:this._type(e,n.text);break;case r.ReplacePreviousChar:this._replacePreviousChar(n.text,n.replaceCharCnt);break;case r.Paste:o=4,this._paste(n.text,n.pasteOnNewLine,n.multicursorText);break;case r.Cut:this._cut();break;case r.Undo:o=5,this._interpretCommandResult(this._model.undo());break;case r.Redo:o=6,this._interpretCommandResult(this._model.redo());break;case r.ExecuteCommand:this._externalExecuteCommand(n);break;case r.ExecuteCommands:this._externalExecuteCommands(n);break;case r.CompositionEnd:this._interpretCompositionEnd(e)}}catch(e){Ke(e)}this._isHandling=!1,t!==r.Undo&&t!==r.Redo&&this._cursors.startTrackingSelections(),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,o,i)&&this._revealRange(0,0,!0,0)}else this._isDoingComposition=!0},t.prototype._interpretCompositionEnd=function(e){if(!this._isDoingComposition&&"keyboard"===e){var t=Gx.getAllAutoClosedCharacters(this._autoClosedActions);this._executeEditOperation(Ml.compositionEndWithInterceptors(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections(),t))}},t.prototype._type=function(e,t){if(this._isDoingComposition||"keyboard"!==e)this._executeEditOperation(Ml.typeWithoutInterceptors(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections(),t));else for(var n=0,r=t.length;n<r;n++){var i=void 0;xn(t.charCodeAt(n))&&n+1<r?(i=t.charAt(n)+t.charAt(n+1),n++):i=t.charAt(n);var o=Gx.getAllAutoClosedCharacters(this._autoClosedActions);this._executeEditOperation(Ml.typeWithInterceptors(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections(),o,i))}},t.prototype._replacePreviousChar=function(e,t){this._executeEditOperation(Ml.replacePreviousChar(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections(),e,t))},t.prototype._paste=function(e,t,n){this._executeEditOperation(Ml.paste(this.context.config,this.context.model,this.getSelections(),e,t,n))},t.prototype._cut=function(){this._executeEditOperation(gl.cut(this.context.config,this.context.model,this.getSelections()))},t.prototype._externalExecuteCommand=function(e){this._cursors.killSecondaryCursors(),this._executeEditOperation(new ol(0,[e],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},t.prototype._externalExecuteCommands=function(e){this._executeEditOperation(new ol(0,e,{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},t.MAX_CURSOR_COUNT=1e4,t}(JC),Zx=function(){function e(){}return e.executeCommands=function(e,t,n){for(var r={model:e,selectionsBefore:t,trackedRanges:[],trackedRangesDirection:[]},i=this._innerExecuteCommands(r,n),o=0,s=r.trackedRanges.length;o<s;o++)r.model._setTrackedRange(r.trackedRanges[o],null,0);return i},e._innerExecuteCommands=function(e,t){if(this._arrayIsEmpty(t))return null;var n=this._getEditOperations(e,t);if(0===n.operations.length)return null;var r=n.operations,i=this._getLoserCursorMap(r);if(i.hasOwnProperty("0"))return console.warn("Ignoring commands"),null;for(var o=[],s=0,a=r.length;s<a;s++)i.hasOwnProperty(r[s].identifier.major.toString())||o.push(r[s]);n.hadTrackedEditOperation&&o.length>0&&(o[0]._isTracked=!0);var u=e.model.pushEditOperations(e.selectionsBefore,o,(function(n){for(var r=[],i=0;i<e.selectionsBefore.length;i++)r[i]=[];for(var o=0,s=n;o<s.length;o++){var a=s[o];a.identifier&&r[a.identifier.major].push(a)}var u=function(e,t){return e.identifier.minor-t.identifier.minor},l=[],c=function(n){r[n].length>0?(r[n].sort(u),l[n]=t[n].computeCursorState(e.model,{getInverseEditOperations:function(){return r[n]},getTrackedSelection:function(t){var n=parseInt(t,10),r=e.model._getTrackedRange(e.trackedRanges[n]);return 0===e.trackedRangesDirection[n]?new Br(r.startLineNumber,r.startColumn,r.endLineNumber,r.endColumn):new Br(r.endLineNumber,r.endColumn,r.startLineNumber,r.startColumn)}})):l[n]=e.selectionsBefore[n]};for(i=0;i<e.selectionsBefore.length;i++)c(i);return l}));u||(u=e.selectionsBefore);var l=[];for(var c in i)i.hasOwnProperty(c)&&l.push(parseInt(c,10));l.sort((function(e,t){return t-e}));for(var d=0,h=l;d<h.length;d++){var f=h[d];u.splice(f,1)}return u},e._arrayIsEmpty=function(e){for(var t=0,n=e.length;t<n;t++)if(e[t])return!1;return!0},e._getEditOperations=function(e,t){for(var n=[],r=!1,i=0,o=t.length;i<o;i++){var s=t[i];if(s){var a=this._getEditOperationsFromCommand(e,i,s);n=n.concat(a.operations),r=r||a.hadTrackedEditOperation}}return{operations:n,hadTrackedEditOperation:r}},e._getEditOperationsFromCommand=function(e,t,n){var r=[],i=0,o=function(e,o){e.isEmpty()&&""===o||r.push({identifier:{major:t,minor:i++},range:e,text:o,forceMoveMarkers:!1,isAutoWhitespaceEdit:n.insertsAutoWhitespace})},s=!1,a={addEditOperation:o,addTrackedEditOperation:function(e,t){s=!0,o(e,t)},trackSelection:function(t,n){var r;if(t.isEmpty())if("boolean"==typeof n)r=n?2:3;else{var i=e.model.getLineMaxColumn(t.startLineNumber);r=t.startColumn===i?2:3}else r=1;var o=e.trackedRanges.length,s=e.model._setTrackedRange(null,t,r);return e.trackedRanges[o]=s,e.trackedRangesDirection[o]=t.getDirection(),o.toString()}};try{n.getEditOperations(e.model,a)}catch(e){return Ke(e),{operations:[],hadTrackedEditOperation:!1}}return{operations:r,hadTrackedEditOperation:s}},e._getLoserCursorMap=function(e){(e=e.slice(0)).sort((function(e,t){return-Yr.compareRangesUsingEnds(e.range,t.range)}));for(var t={},n=1;n<e.length;n++){var r=e[n-1],i=e[n];if(r.range.getStartPosition().isBefore(i.range.getEndPosition())){var o=void 0;t[(o=r.identifier.major>i.identifier.major?r.identifier.major:i.identifier.major).toString()]=!0;for(var s=0;s<e.length;s++)e[s].identifier.major===o&&(e.splice(s,1),s<n&&n--,s--);n>0&&n--}}return t},e}(),Xx=function(){function e(e,t,n,r,i,o){this.id=e,this.label=t,this.alias=n,this._precondition=r,this._run=i,this._contextKeyService=o}return e.prototype.isSupported=function(){return this._contextKeyService.contextMatchesRules(this._precondition)},e.prototype.run=function(){if(!this.isSupported())return Promise.resolve(void 0);var e=this._run();return e||Promise.resolve(void 0)},e}();function Jx(e,t,n,r,i,o){for(var s="<div>",a=r,u=0,l=0,c=t.getCount();l<c;l++){var d=t.getEndOffset(l);if(!(d<=r)){for(var h="";a<d&&a<i;a++){var f=e.charCodeAt(a);switch(f){case 9:var p=o-(a+u)%o;for(u+=p-1;p>0;)h+=" ",p--;break;case 60:h+="<";break;case 62:h+=">";break;case 38:h+="&";break;case 0:h+="�";break;case 65279:case 8232:h+="�";break;case 13:h+="​";break;case 32:h+=" ";break;default:h+=String.fromCharCode(f)}}if(s+='<span style="'+t.getInlineStyle(l,n)+'">'+h+"</span>",d>i||a>=i)break}}return s+="</div>"}var Qx=function(){function e(){this._instanceId=In(++e.INSTANCE_COUNT),this._heights=[],this._minWidths=[],this._ids=[],this._afterLineNumbers=[],this._ordinals=[],this._prefixSum=[],this._prefixSumValidIndex=-1,this._whitespaceId2Index={},this._lastWhitespaceId=0,this._minWidth=-1}return e.findInsertionIndex=function(e,t,n,r){for(var i=0,o=e.length;i<o;){var s=i+o>>>1;t===e[s]?r<n[s]?o=s:i=s+1:t<e[s]?o=s:i=s+1}return i},e.prototype.insertWhitespace=function(t,n,r,i){t|=0,n|=0,r|=0,i|=0;var o=this._instanceId+ ++this._lastWhitespaceId,s=e.findInsertionIndex(this._afterLineNumbers,t,this._ordinals,n);return this._insertWhitespaceAtIndex(o,s,t,n,r,i),this._minWidth=-1,o},e.prototype._insertWhitespaceAtIndex=function(e,t,n,r,i,o){t|=0,n|=0,r|=0,i|=0,o|=0,this._heights.splice(t,0,i),this._minWidths.splice(t,0,o),this._ids.splice(t,0,e),this._afterLineNumbers.splice(t,0,n),this._ordinals.splice(t,0,r),this._prefixSum.splice(t,0,0);for(var s=Object.keys(this._whitespaceId2Index),a=0,u=s.length;a<u;a++){var l=s[a],c=this._whitespaceId2Index[l];c>=t&&(this._whitespaceId2Index[l]=c+1)}this._whitespaceId2Index[e]=t,this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,t-1)},e.prototype.changeWhitespace=function(e,t,n){t|=0,n|=0;var r=!1;return r=this.changeWhitespaceHeight(e,n)||r,r=this.changeWhitespaceAfterLineNumber(e,t)||r},e.prototype.changeWhitespaceHeight=function(e,t){if(t|=0,this._whitespaceId2Index.hasOwnProperty(e)){var n=this._whitespaceId2Index[e];if(this._heights[n]!==t)return this._heights[n]=t,this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,n-1),!0}return!1},e.prototype.changeWhitespaceAfterLineNumber=function(t,n){if(n|=0,this._whitespaceId2Index.hasOwnProperty(t)){var r=this._whitespaceId2Index[t];if(this._afterLineNumbers[r]!==n){var i=this._ordinals[r],o=this._heights[r],s=this._minWidths[r];this.removeWhitespace(t);var a=e.findInsertionIndex(this._afterLineNumbers,n,this._ordinals,i);return this._insertWhitespaceAtIndex(t,a,n,i,o,s),!0}}return!1},e.prototype.removeWhitespace=function(e){if(this._whitespaceId2Index.hasOwnProperty(e)){var t=this._whitespaceId2Index[e];return delete this._whitespaceId2Index[e],this._removeWhitespaceAtIndex(t),this._minWidth=-1,!0}return!1},e.prototype._removeWhitespaceAtIndex=function(e){e|=0,this._heights.splice(e,1),this._minWidths.splice(e,1),this._ids.splice(e,1),this._afterLineNumbers.splice(e,1),this._ordinals.splice(e,1),this._prefixSum.splice(e,1),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,e-1);for(var t=Object.keys(this._whitespaceId2Index),n=0,r=t.length;n<r;n++){var i=t[n],o=this._whitespaceId2Index[i];o>=e&&(this._whitespaceId2Index[i]=o-1)}},e.prototype.onLinesDeleted=function(e,t){e|=0,t|=0;for(var n=0,r=this._afterLineNumbers.length;n<r;n++){var i=this._afterLineNumbers[n];e<=i&&i<=t?this._afterLineNumbers[n]=e-1:i>t&&(this._afterLineNumbers[n]-=t-e+1)}},e.prototype.onLinesInserted=function(e,t){e|=0,t|=0;for(var n=0,r=this._afterLineNumbers.length;n<r;n++){e<=this._afterLineNumbers[n]&&(this._afterLineNumbers[n]+=t-e+1)}},e.prototype.getTotalHeight=function(){return 0===this._heights.length?0:this.getAccumulatedHeight(this._heights.length-1)},e.prototype.getAccumulatedHeight=function(e){e|=0;var t=Math.max(0,this._prefixSumValidIndex+1);0===t&&(this._prefixSum[0]=this._heights[0],t++);for(var n=t;n<=e;n++)this._prefixSum[n]=this._prefixSum[n-1]+this._heights[n];return this._prefixSumValidIndex=Math.max(this._prefixSumValidIndex,e),this._prefixSum[e]},e.prototype.getAccumulatedHeightBeforeLineNumber=function(e){e|=0;var t=this._findLastWhitespaceBeforeLineNumber(e);return-1===t?0:this.getAccumulatedHeight(t)},e.prototype._findLastWhitespaceBeforeLineNumber=function(e){e|=0;for(var t=this._afterLineNumbers,n=0,r=t.length-1;n<=r;){var i=n+((r-n|0)/2|0)|0;if(t[i]<e){if(i+1>=t.length||t[i+1]>=e)return i;n=i+1|0}else r=i-1|0}return-1},e.prototype._findFirstWhitespaceAfterLineNumber=function(e){e|=0;var t=this._findLastWhitespaceBeforeLineNumber(e)+1;return t<this._heights.length?t:-1},e.prototype.getFirstWhitespaceIndexAfterLineNumber=function(e){return e|=0,this._findFirstWhitespaceAfterLineNumber(e)},e.prototype.getCount=function(){return this._heights.length},e.prototype.getMinWidth=function(){if(-1===this._minWidth){for(var e=0,t=0,n=this._minWidths.length;t<n;t++)e=Math.max(e,this._minWidths[t]);this._minWidth=e}return this._minWidth},e.prototype.getAfterLineNumberForWhitespaceIndex=function(e){return e|=0,this._afterLineNumbers[e]},e.prototype.getIdForWhitespaceIndex=function(e){return e|=0,this._ids[e]},e.prototype.getHeightForWhitespaceIndex=function(e){return e|=0,this._heights[e]},e.prototype.getWhitespaces=function(e){e|=0;for(var t=[],n=0;n<this._heights.length;n++)t.push({id:this._ids[n],afterLineNumber:this._afterLineNumbers[n],heightInLines:this._heights[n]/e});return t},e.INSTANCE_COUNT=0,e}(),eL=function(){function e(e,t){this._lineCount=e,this._lineHeight=t,this._whitespaces=new Qx}return e.prototype.setLineHeight=function(e){this._lineHeight=e},e.prototype.onFlushed=function(e){this._lineCount=e},e.prototype.insertWhitespace=function(e,t,n,r){return this._whitespaces.insertWhitespace(e,t,n,r)},e.prototype.changeWhitespace=function(e,t,n){return this._whitespaces.changeWhitespace(e,t,n)},e.prototype.removeWhitespace=function(e){return this._whitespaces.removeWhitespace(e)},e.prototype.onLinesDeleted=function(e,t){this._lineCount-=t-e+1,this._whitespaces.onLinesDeleted(e,t)},e.prototype.onLinesInserted=function(e,t){this._lineCount+=t-e+1,this._whitespaces.onLinesInserted(e,t)},e.prototype.getLinesTotalHeight=function(){return this._lineHeight*this._lineCount+this._whitespaces.getTotalHeight()},e.prototype.getVerticalOffsetForLineNumber=function(e){return((e|=0)>1?this._lineHeight*(e-1):0)+this._whitespaces.getAccumulatedHeightBeforeLineNumber(e)},e.prototype.getWhitespaceAccumulatedHeightBeforeLineNumber=function(e){return this._whitespaces.getAccumulatedHeightBeforeLineNumber(e)},e.prototype.getWhitespaceMinWidth=function(){return this._whitespaces.getMinWidth()},e.prototype.isAfterLines=function(e){return e>this.getLinesTotalHeight()},e.prototype.getLineNumberAtOrAfterVerticalOffset=function(e){if((e|=0)<0)return 1;for(var t=0|this._lineCount,n=this._lineHeight,r=1,i=t;r<i;){var o=(r+i)/2|0,s=0|this.getVerticalOffsetForLineNumber(o);if(e>=s+n)r=o+1;else{if(e>=s)return o;i=o}}return r>t?t:r},e.prototype.getLinesViewportData=function(e,t){e|=0,t|=0;var n,r,i=this._lineHeight,o=0|this.getLineNumberAtOrAfterVerticalOffset(e),s=0|this.getVerticalOffsetForLineNumber(o),a=0|this._lineCount,u=0|this._whitespaces.getFirstWhitespaceIndexAfterLineNumber(o),l=0|this._whitespaces.getCount();-1===u?(u=l,r=a+1,n=0):(r=0|this._whitespaces.getAfterLineNumberForWhitespaceIndex(u),n=0|this._whitespaces.getHeightForWhitespaceIndex(u));var c=s,d=c,h=0;s>=5e5&&(h=5e5*Math.floor(s/5e5),d-=h=Math.floor(h/i)*i);for(var f=[],p=e+(t-e)/2,g=-1,m=o;m<=a;m++){if(-1===g){(c<=p&&p<c+i||c>p)&&(g=m)}for(c+=i,f[m-o]=d,d+=i;r===m;)d+=n,c+=n,++u>=l?r=a+1:(r=0|this._whitespaces.getAfterLineNumberForWhitespaceIndex(u),n=0|this._whitespaces.getHeightForWhitespaceIndex(u));if(c>=t){a=m;break}}-1===g&&(g=a);var _=0|this.getVerticalOffsetForLineNumber(a),y=o,v=a;return y<v&&s<e&&y++,y<v&&_+i>t&&v--,{bigNumbersDelta:h,startLineNumber:o,endLineNumber:a,relativeVerticalOffset:f,centeredLineNumber:g,completelyVisibleStartLineNumber:y,completelyVisibleEndLineNumber:v}},e.prototype.getVerticalOffsetForWhitespaceIndex=function(e){e|=0;var t=this._whitespaces.getAfterLineNumberForWhitespaceIndex(e);return(t>=1?this._lineHeight*t:0)+(e>0?this._whitespaces.getAccumulatedHeight(e-1):0)},e.prototype.getWhitespaceIndexAtOrAfterVerticallOffset=function(e){e|=0;var t,n,r=0,i=this._whitespaces.getCount()-1;if(i<0)return-1;if(e>=this.getVerticalOffsetForWhitespaceIndex(i)+this._whitespaces.getHeightForWhitespaceIndex(i))return-1;for(;r<i;)if(t=Math.floor((r+i)/2),e>=(n=this.getVerticalOffsetForWhitespaceIndex(t))+this._whitespaces.getHeightForWhitespaceIndex(t))r=t+1;else{if(e>=n)return t;i=t}return r},e.prototype.getWhitespaceAtVerticalOffset=function(e){e|=0;var t=this.getWhitespaceIndexAtOrAfterVerticallOffset(e);if(t<0)return null;if(t>=this._whitespaces.getCount())return null;var n=this.getVerticalOffsetForWhitespaceIndex(t);if(n>e)return null;var r=this._whitespaces.getHeightForWhitespaceIndex(t);return{id:this._whitespaces.getIdForWhitespaceIndex(t),afterLineNumber:this._whitespaces.getAfterLineNumberForWhitespaceIndex(t),verticalOffset:n,height:r}},e.prototype.getWhitespaceViewportData=function(e,t){e|=0,t|=0;var n=this.getWhitespaceIndexAtOrAfterVerticallOffset(e),r=this._whitespaces.getCount()-1;if(n<0)return[];for(var i=[],o=n;o<=r;o++){var s=this.getVerticalOffsetForWhitespaceIndex(o),a=this._whitespaces.getHeightForWhitespaceIndex(o);if(s>=t)break;i.push({id:this._whitespaces.getIdForWhitespaceIndex(o),afterLineNumber:this._whitespaces.getAfterLineNumberForWhitespaceIndex(o),verticalOffset:s,height:a})}return i},e.prototype.getWhitespaces=function(){return this._whitespaces.getWhitespaces(this._lineHeight)},e}(),tL=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),nL=function(e){function t(t,n,r){var i=e.call(this)||this;return i._configuration=t,i._linesLayout=new eL(n,i._configuration.editor.lineHeight),i.scrollable=i._register(new Up(0,r)),i._configureSmoothScrollDuration(),i.scrollable.setScrollDimensions({width:t.editor.layoutInfo.contentWidth,height:t.editor.layoutInfo.contentHeight}),i.onDidScroll=i.scrollable.onScroll,i._updateHeight(),i}return tL(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.onHeightMaybeChanged=function(){this._updateHeight()},t.prototype._configureSmoothScrollDuration=function(){this.scrollable.setSmoothScrollDuration(this._configuration.editor.viewInfo.smoothScrolling?125:0)},t.prototype.onConfigurationChanged=function(e){e.lineHeight&&this._linesLayout.setLineHeight(this._configuration.editor.lineHeight),e.layoutInfo&&this.scrollable.setScrollDimensions({width:this._configuration.editor.layoutInfo.contentWidth,height:this._configuration.editor.layoutInfo.contentHeight}),e.viewInfo&&this._configureSmoothScrollDuration(),this._updateHeight()},t.prototype.onFlushed=function(e){this._linesLayout.onFlushed(e)},t.prototype.onLinesDeleted=function(e,t){this._linesLayout.onLinesDeleted(e,t)},t.prototype.onLinesInserted=function(e,t){this._linesLayout.onLinesInserted(e,t)},t.prototype._getHorizontalScrollbarHeight=function(e){return 2===this._configuration.editor.viewInfo.scrollbar.horizontal?0:e.width>=e.scrollWidth?0:this._configuration.editor.viewInfo.scrollbar.horizontalScrollbarSize},t.prototype._getTotalHeight=function(){var e=this.scrollable.getScrollDimensions(),t=this._linesLayout.getLinesTotalHeight();return this._configuration.editor.viewInfo.scrollBeyondLastLine?t+=e.height-this._configuration.editor.lineHeight:t+=this._getHorizontalScrollbarHeight(e),Math.max(e.height,t)},t.prototype._updateHeight=function(){this.scrollable.setScrollDimensions({scrollHeight:this._getTotalHeight()})},t.prototype.getCurrentViewport=function(){var e=this.scrollable.getScrollDimensions(),t=this.scrollable.getCurrentScrollPosition();return new Uy(t.scrollTop,t.scrollLeft,e.width,e.height)},t.prototype.getFutureViewport=function(){var e=this.scrollable.getScrollDimensions(),t=this.scrollable.getFutureScrollPosition();return new Uy(t.scrollTop,t.scrollLeft,e.width,e.height)},t.prototype._computeScrollWidth=function(e,t){if(!this._configuration.editor.wrappingInfo.isViewportWrapping){var n=this._configuration.editor.viewInfo.scrollBeyondLastColumn*this._configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,r=this._linesLayout.getWhitespaceMinWidth();return Math.max(e+n,t,r)}return Math.max(e,t)},t.prototype.onMaxLineWidthChanged=function(e){var t=this._computeScrollWidth(e,this.getCurrentViewport().width);this.scrollable.setScrollDimensions({scrollWidth:t}),this._updateHeight()},t.prototype.saveState=function(){var e=this.scrollable.getFutureScrollPosition(),t=e.scrollTop,n=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(t);return{scrollTop:t,scrollTopWithoutViewZones:t-this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(n),scrollLeft:e.scrollLeft}},t.prototype.addWhitespace=function(e,t,n,r){return this._linesLayout.insertWhitespace(e,t,n,r)},t.prototype.changeWhitespace=function(e,t,n){return this._linesLayout.changeWhitespace(e,t,n)},t.prototype.removeWhitespace=function(e){return this._linesLayout.removeWhitespace(e)},t.prototype.getVerticalOffsetForLineNumber=function(e){return this._linesLayout.getVerticalOffsetForLineNumber(e)},t.prototype.isAfterLines=function(e){return this._linesLayout.isAfterLines(e)},t.prototype.getLineNumberAtVerticalOffset=function(e){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(e)},t.prototype.getWhitespaceAtVerticalOffset=function(e){return this._linesLayout.getWhitespaceAtVerticalOffset(e)},t.prototype.getLinesViewportData=function(){var e=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(e.top,e.top+e.height)},t.prototype.getLinesViewportDataAtScrollTop=function(e){var t=this.scrollable.getScrollDimensions();return e+t.height>t.scrollHeight&&(e=t.scrollHeight-t.height),e<0&&(e=0),this._linesLayout.getLinesViewportData(e,e+t.height)},t.prototype.getWhitespaceViewportData=function(){var e=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(e.top,e.top+e.height)},t.prototype.getWhitespaces=function(){return this._linesLayout.getWhitespaces()},t.prototype.getScrollWidth=function(){return this.scrollable.getScrollDimensions().scrollWidth},t.prototype.getScrollHeight=function(){return this.scrollable.getScrollDimensions().scrollHeight},t.prototype.getCurrentScrollLeft=function(){return this.scrollable.getCurrentScrollPosition().scrollLeft},t.prototype.getCurrentScrollTop=function(){return this.scrollable.getCurrentScrollPosition().scrollTop},t.prototype.validateScrollPosition=function(e){return this.scrollable.validateScrollPosition(e)},t.prototype.setScrollPositionNow=function(e){this.scrollable.setScrollPositionNow(e)},t.prototype.setScrollPositionSmooth=function(e){this.scrollable.setScrollPositionSmooth(e)},t.prototype.deltaScrollNow=function(e,t){var n=this.scrollable.getCurrentScrollPosition();this.scrollable.setScrollPositionNow({scrollLeft:n.scrollLeft+e,scrollTop:n.scrollTop+t})},t}(Ft),rL=function(e,t){this.outputLineIndex=e,this.outputOffset=t},iL=function(){function e(e){this._lines=e}return e.prototype.convertViewPositionToModelPosition=function(e){return this._lines.convertViewPositionToModelPosition(e.lineNumber,e.column)},e.prototype.convertViewRangeToModelRange=function(e){var t=this._lines.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),n=this._lines.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);return new Yr(t.lineNumber,t.column,n.lineNumber,n.column)},e.prototype.validateViewPosition=function(e,t){return this._lines.validateViewPosition(e.lineNumber,e.column,t)},e.prototype.validateViewRange=function(e,t){var n=this._lines.validateViewPosition(e.startLineNumber,e.startColumn,t.getStartPosition()),r=this._lines.validateViewPosition(e.endLineNumber,e.endColumn,t.getEndPosition());return new Yr(n.lineNumber,n.column,r.lineNumber,r.column)},e.prototype.convertModelPositionToViewPosition=function(e){return this._lines.convertModelPositionToViewPosition(e.lineNumber,e.column)},e.prototype.convertModelRangeToViewRange=function(e){var t=this._lines.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn),n=this._lines.convertModelPositionToViewPosition(e.endLineNumber,e.endColumn);return new Yr(t.lineNumber,t.column,n.lineNumber,n.column)},e.prototype.modelPositionIsVisible=function(e){return this._lines.modelPositionIsVisible(e.lineNumber,e.column)},e}(),oL=function(){function e(e,t,n,r,i,o){this.model=e,this._validModelVersionId=-1,this.tabSize=n,this.wrappingColumn=r,this.columnsForFullWidthChar=i,this.wrappingIndent=o,this.linePositionMapperFactory=t,this._constructLines(!0)}return e.prototype.dispose=function(){this.hiddenAreasIds=this.model.deltaDecorations(this.hiddenAreasIds,[])},e.prototype.createCoordinatesConverter=function(){return new iL(this)},e.prototype._ensureValidState=function(){if(this.model.getVersionId()!==this._validModelVersionId)throw new Error("ViewModel is out of sync with Model!");this.lines.length!==this.model.getLineCount()&&this._constructLines(!1)},e.prototype._constructLines=function(e){var t=this;this.lines=[],e&&(this.hiddenAreasIds=[]);for(var n=this.model.getLinesContent(),r=n.length,i=new Uint32Array(r),o=this.hiddenAreasIds.map((function(e){return t.model.getDecorationRange(e)})).sort(Yr.compareRangesUsingStarts),s=1,a=0,u=-1,l=u+1<o.length?a+1:r+2,c=0;c<r;c++){var d=c+1;d===l&&(s=o[++u].startLineNumber,a=o[u].endLineNumber,l=u+1<o.length?a+1:r+2);var h=d>=s&&d<=a,f=lL(this.linePositionMapperFactory,n[c],this.tabSize,this.wrappingColumn,this.columnsForFullWidthChar,this.wrappingIndent,!h);i[c]=f.getViewLineCount(),this.lines[c]=f}this._validModelVersionId=this.model.getVersionId(),this.prefixSumComputer=new ey(i)},e.prototype.getHiddenAreas=function(){var e=this;return this.hiddenAreasIds.map((function(t){return e.model.getDecorationRange(t)}))},e.prototype._reduceRanges=function(e){var t=this;if(0===e.length)return[];for(var n=e.map((function(e){return t.model.validateRange(e)})).sort(Yr.compareRangesUsingStarts),r=[],i=n[0].startLineNumber,o=n[0].endLineNumber,s=1,a=n.length;s<a;s++){var u=n[s];u.startLineNumber>o+1?(r.push(new Yr(i,1,o,1)),i=u.startLineNumber,o=u.endLineNumber):u.endLineNumber>o&&(o=u.endLineNumber)}return r.push(new Yr(i,1,o,1)),r},e.prototype.setHiddenAreas=function(e){var t=this,n=this._reduceRanges(e),r=this.hiddenAreasIds.map((function(e){return t.model.getDecorationRange(e)})).sort(Yr.compareRangesUsingStarts);if(n.length===r.length){for(var i=!1,o=0;o<n.length;o++)if(!n[o].equalsRange(r[o])){i=!0;break}if(!i)return!1}for(var s=[],a=0,u=n;a<u.length;a++){var l=u[a];s.push({range:l,options:zu.EMPTY})}this.hiddenAreasIds=this.model.deltaDecorations(this.hiddenAreasIds,s);var c=n,d=1,h=0,f=-1,p=f+1<c.length?h+1:this.lines.length+2,g=!1;for(o=0;o<this.lines.length;o++){var m=o+1;m===p&&(d=c[++f].startLineNumber,h=c[f].endLineNumber,p=f+1<c.length?h+1:this.lines.length+2);var _=!1;if(m>=d&&m<=h?this.lines[o].isVisible()&&(this.lines[o]=this.lines[o].setVisible(!1),_=!0):(g=!0,this.lines[o].isVisible()||(this.lines[o]=this.lines[o].setVisible(!0),_=!0)),_){var y=this.lines[o].getViewLineCount();this.prefixSumComputer.changeValue(o,y)}}return g||this.setHiddenAreas([]),!0},e.prototype.modelPositionIsVisible=function(e,t){return!(e<1||e>this.lines.length)&&this.lines[e-1].isVisible()},e.prototype.setTabSize=function(e){return this.tabSize!==e&&(this.tabSize=e,this._constructLines(!1),!0)},e.prototype.setWrappingSettings=function(e,t,n){return(this.wrappingIndent!==e||this.wrappingColumn!==t||this.columnsForFullWidthChar!==n)&&(this.wrappingIndent=e,this.wrappingColumn=t,this.columnsForFullWidthChar=n,this._constructLines(!1),!0)},e.prototype.onModelFlushed=function(){this._constructLines(!0)},e.prototype.onModelLinesDeleted=function(e,t,n){if(e<=this._validModelVersionId)return null;var r=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,i=this.prefixSumComputer.getAccumulatedValue(n-1);return this.lines.splice(t-1,n-t+1),this.prefixSumComputer.removeValues(t-1,n-t+1),new VC(r,i)},e.prototype.onModelLinesInserted=function(e,t,n,r){if(e<=this._validModelVersionId)return null;for(var i=this.getHiddenAreas(),o=!1,s=new Lt(t,1),a=0,u=i;a<u.length;a++){if(u[a].containsPosition(s)){o=!0;break}}for(var l=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,c=0,d=[],h=new Uint32Array(r.length),f=0,p=r.length;f<p;f++){var g=lL(this.linePositionMapperFactory,r[f],this.tabSize,this.wrappingColumn,this.columnsForFullWidthChar,this.wrappingIndent,!o);d.push(g);var m=g.getViewLineCount();c+=m,h[f]=m}return this.lines=this.lines.slice(0,t-1).concat(d).concat(this.lines.slice(t-1)),this.prefixSumComputer.insertValues(t-1,h),new zC(l,l+c-1)},e.prototype.onModelLineChanged=function(e,t,n){if(e<=this._validModelVersionId)return[!1,null,null,null];var r=t-1,i=this.lines[r].getViewLineCount(),o=this.lines[r].isVisible(),s=lL(this.linePositionMapperFactory,n,this.tabSize,this.wrappingColumn,this.columnsForFullWidthChar,this.wrappingIndent,o);this.lines[r]=s;var a=this.lines[r].getViewLineCount(),u=!1,l=0,c=-1,d=0,h=-1,f=0,p=-1;return i>a?(p=(f=(c=(l=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1)+a-1)+1)+(i-a)-1,u=!0):i<a?(h=(d=(c=(l=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1)+i-1)+1)+(a-i)-1,u=!0):c=(l=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1)+a-1,this.prefixSumComputer.changeValue(r,a),[u,l<=c?new HC(l,c):null,d<=h?new zC(d,h):null,f<=p?new VC(f,p):null]},e.prototype.acceptVersionId=function(e){this._validModelVersionId=e,1!==this.lines.length||this.lines[0].isVisible()||this.setHiddenAreas([])},e.prototype.getViewLineCount=function(){return this._ensureValidState(),this.prefixSumComputer.getTotalValue()},e.prototype._toValidViewLineNumber=function(e){if(e<1)return 1;var t=this.getViewLineCount();return e>t?t:e},e.prototype.warmUpLookupCache=function(e,t){this.prefixSumComputer.warmUpCache(e-1,t-1)},e.prototype.getActiveIndentGuide=function(e,t,n){this._ensureValidState(),e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t),n=this._toValidViewLineNumber(n);var r=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),i=this.convertViewPositionToModelPosition(t,this.getViewLineMinColumn(t)),o=this.convertViewPositionToModelPosition(n,this.getViewLineMinColumn(n)),s=this.model.getActiveIndentGuide(r.lineNumber,i.lineNumber,o.lineNumber),a=this.convertModelPositionToViewPosition(s.startLineNumber,1),u=this.convertModelPositionToViewPosition(s.endLineNumber,this.model.getLineMaxColumn(s.endLineNumber));return{startLineNumber:a.lineNumber,endLineNumber:u.lineNumber,indent:s.indent}},e.prototype.getViewLinesIndentGuides=function(e,t){this._ensureValidState(),e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);for(var n=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),r=this.convertViewPositionToModelPosition(t,this.getViewLineMaxColumn(t)),i=[],o=[],s=[],a=n.lineNumber-1,u=r.lineNumber-1,l=null,c=a;c<=u;c++){var d=this.lines[c];if(d.isVisible()){var h=d.getViewLineNumberOfModelPosition(0,c===a?n.column:1),f=d.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(c+1)),p=0;(w=f-h+1)>1&&1===d.getViewLineMinColumn(this.model,c+1,f)&&(p=0===h?1:2),o.push(w),s.push(p),null===l&&(l=new Lt(c+1,0))}else null!==l&&(i=i.concat(this.model.getLinesIndentGuides(l.lineNumber,c)),l=null)}null!==l&&(i=i.concat(this.model.getLinesIndentGuides(l.lineNumber,r.lineNumber)),l=null);for(var g=t-e+1,m=new Array(g),_=0,y=0,v=i.length;y<v;y++){var b=i[y],w=Math.min(g-_,o[y]),C=void 0;C=2===(p=s[y])?0:1===p?1:w;for(var S=0;S<w;S++)S===C&&(b=0),m[_++]=b}return m},e.prototype.getViewLineContent=function(e){this._ensureValidState(),e=this._toValidViewLineNumber(e);var t=this.prefixSumComputer.getIndexOf(e-1),n=t.index,r=t.remainder;return this.lines[n].getViewLineContent(this.model,n+1,r)},e.prototype.getViewLineLength=function(e){this._ensureValidState(),e=this._toValidViewLineNumber(e);var t=this.prefixSumComputer.getIndexOf(e-1),n=t.index,r=t.remainder;return this.lines[n].getViewLineLength(this.model,n+1,r)},e.prototype.getViewLineMinColumn=function(e){this._ensureValidState(),e=this._toValidViewLineNumber(e);var t=this.prefixSumComputer.getIndexOf(e-1),n=t.index,r=t.remainder;return this.lines[n].getViewLineMinColumn(this.model,n+1,r)},e.prototype.getViewLineMaxColumn=function(e){this._ensureValidState(),e=this._toValidViewLineNumber(e);var t=this.prefixSumComputer.getIndexOf(e-1),n=t.index,r=t.remainder;return this.lines[n].getViewLineMaxColumn(this.model,n+1,r)},e.prototype.getViewLineData=function(e){this._ensureValidState(),e=this._toValidViewLineNumber(e);var t=this.prefixSumComputer.getIndexOf(e-1),n=t.index,r=t.remainder;return this.lines[n].getViewLineData(this.model,n+1,r)},e.prototype.getViewLinesData=function(e,t,n){this._ensureValidState(),e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);for(var r=this.prefixSumComputer.getIndexOf(e-1),i=e,o=r.index,s=r.remainder,a=[],u=o,l=this.model.getLineCount();u<l;u++){var c=this.lines[u];if(c.isVisible()){var d=u===o?s:0,h=c.getViewLineCount()-d,f=!1;i+h>t&&(f=!0,h=t-i+1);var p=d+h;if(c.getViewLinesData(this.model,u+1,d,p,i-e,n,a),i+=h,f)break}}return a},e.prototype.validateViewPosition=function(e,t,n){this._ensureValidState(),e=this._toValidViewLineNumber(e);var r=this.prefixSumComputer.getIndexOf(e-1),i=r.index,o=r.remainder,s=this.lines[i],a=s.getViewLineMinColumn(this.model,i+1,o),u=s.getViewLineMaxColumn(this.model,i+1,o);t<a&&(t=a),t>u&&(t=u);var l=s.getModelColumnOfViewPosition(o,t);return this.model.validatePosition(new Lt(i+1,l)).equals(n)?new Lt(e,t):this.convertModelPositionToViewPosition(n.lineNumber,n.column)},e.prototype.convertViewPositionToModelPosition=function(e,t){this._ensureValidState(),e=this._toValidViewLineNumber(e);var n=this.prefixSumComputer.getIndexOf(e-1),r=n.index,i=n.remainder,o=this.lines[r].getModelColumnOfViewPosition(i,t);return this.model.validatePosition(new Lt(r+1,o))},e.prototype.convertModelPositionToViewPosition=function(e,t){this._ensureValidState();for(var n=this.model.validatePosition(new Lt(e,t)),r=n.lineNumber,i=n.column,o=r-1,s=!1;o>0&&!this.lines[o].isVisible();)o--,s=!0;if(0===o&&!this.lines[o].isVisible())return new Lt(1,1);var a=1+(0===o?0:this.prefixSumComputer.getAccumulatedValue(o-1));return s?this.lines[o].getViewPositionOfModelPosition(a,this.model.getLineMaxColumn(o+1)):this.lines[r-1].getViewPositionOfModelPosition(a,i)},e.prototype._getViewLineNumberForModelPosition=function(e,t){var n=e-1;if(this.lines[n].isVisible()){var r=1+(0===n?0:this.prefixSumComputer.getAccumulatedValue(n-1));return this.lines[n].getViewLineNumberOfModelPosition(r,t)}for(;n>0&&!this.lines[n].isVisible();)n--;if(0===n&&!this.lines[n].isVisible())return 1;var i=1+(0===n?0:this.prefixSumComputer.getAccumulatedValue(n-1));return this.lines[n].getViewLineNumberOfModelPosition(i,this.model.getLineMaxColumn(n+1))},e.prototype.getAllOverviewRulerDecorations=function(e,t,n){for(var r=this.model.getOverviewRulerDecorations(e,t),i=new hL,o=0,s=r;o<s.length;o++){var a=s[o],u=a.options.overviewRuler,l=u?u.position:0;if(0!==l){var c=u.getColor(n),d=this._getViewLineNumberForModelPosition(a.range.startLineNumber,a.range.startColumn),h=this._getViewLineNumberForModelPosition(a.range.endLineNumber,a.range.endColumn);i.accept(c,d,h,l)}}return i.result},e.prototype.getDecorationsInRange=function(e,t,n){var r=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),i=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);if(i.lineNumber-r.lineNumber<=e.endLineNumber-e.startLineNumber)return this.model.getDecorationsInRange(new Yr(r.lineNumber,1,i.lineNumber,i.column),t,n);for(var o=[],s=r.lineNumber-1,a=i.lineNumber-1,u=null,l=s;l<=a;l++){if(this.lines[l].isVisible())null===u&&(u=new Lt(l+1,l===s?r.column:1));else if(null!==u){var c=this.model.getLineMaxColumn(l);o=o.concat(this.model.getDecorationsInRange(new Yr(u.lineNumber,u.column,l,c),t,n)),u=null}}null!==u&&(o=o.concat(this.model.getDecorationsInRange(new Yr(u.lineNumber,u.column,i.lineNumber,i.column),t,n)),u=null),o.sort((function(e,t){var n=Yr.compareRangesUsingStarts(e.range,t.range);return 0===n?e.id<t.id?-1:e.id>t.id?1:0:n}));for(var d=[],h=0,f=null,p=0,g=o;p<g.length;p++){var m=g[p],_=m.id;f!==_&&(f=_,d[h++]=m)}return d},e}(),sL=function(){function e(){}return e.prototype.isVisible=function(){return!0},e.prototype.setVisible=function(e){return e?this:aL.INSTANCE},e.prototype.getViewLineCount=function(){return 1},e.prototype.getViewLineContent=function(e,t,n){return e.getLineContent(t)},e.prototype.getViewLineLength=function(e,t,n){return e.getLineLength(t)},e.prototype.getViewLineMinColumn=function(e,t,n){return e.getLineMinColumn(t)},e.prototype.getViewLineMaxColumn=function(e,t,n){return e.getLineMaxColumn(t)},e.prototype.getViewLineData=function(e,t,n){var r=e.getLineTokens(t),i=r.getLineContent();return new Ky(i,!1,1,i.length+1,r.inflate())},e.prototype.getViewLinesData=function(e,t,n,r,i,o,s){o[i]?s[i]=this.getViewLineData(e,t,0):s[i]=null},e.prototype.getModelColumnOfViewPosition=function(e,t){return t},e.prototype.getViewPositionOfModelPosition=function(e,t){return new Lt(e,t)},e.prototype.getViewLineNumberOfModelPosition=function(e,t){return e},e.INSTANCE=new e,e}(),aL=function(){function e(){}return e.prototype.isVisible=function(){return!1},e.prototype.setVisible=function(e){return e?sL.INSTANCE:this},e.prototype.getViewLineCount=function(){return 0},e.prototype.getViewLineContent=function(e,t,n){throw new Error("Not supported")},e.prototype.getViewLineLength=function(e,t,n){throw new Error("Not supported")},e.prototype.getViewLineMinColumn=function(e,t,n){throw new Error("Not supported")},e.prototype.getViewLineMaxColumn=function(e,t,n){throw new Error("Not supported")},e.prototype.getViewLineData=function(e,t,n){throw new Error("Not supported")},e.prototype.getViewLinesData=function(e,t,n,r,i,o,s){throw new Error("Not supported")},e.prototype.getModelColumnOfViewPosition=function(e,t){throw new Error("Not supported")},e.prototype.getViewPositionOfModelPosition=function(e,t){throw new Error("Not supported")},e.prototype.getViewLineNumberOfModelPosition=function(e,t){throw new Error("Not supported")},e.INSTANCE=new e,e}(),uL=function(){function e(e,t){this.positionMapper=e,this.wrappedIndent=this.positionMapper.getWrappedLinesIndent(),this.wrappedIndentLength=this.wrappedIndent.length,this.outputLineCount=this.positionMapper.getOutputLineCount(),this._isVisible=t}return e.prototype.isVisible=function(){return this._isVisible},e.prototype.setVisible=function(e){return this._isVisible=e,this},e.prototype.getViewLineCount=function(){return this._isVisible?this.outputLineCount:0},e.prototype.getInputStartOffsetOfOutputLineIndex=function(e){return this.positionMapper.getInputOffsetOfOutputPosition(e,0)},e.prototype.getInputEndOffsetOfOutputLineIndex=function(e,t,n){return n+1===this.outputLineCount?e.getLineMaxColumn(t)-1:this.positionMapper.getInputOffsetOfOutputPosition(n+1,0)},e.prototype.getViewLineContent=function(e,t,n){if(!this._isVisible)throw new Error("Not supported");var r=this.getInputStartOffsetOfOutputLineIndex(n),i=this.getInputEndOffsetOfOutputLineIndex(e,t,n),o=e.getValueInRange({startLineNumber:t,startColumn:r+1,endLineNumber:t,endColumn:i+1});return n>0&&(o=this.wrappedIndent+o),o},e.prototype.getViewLineLength=function(e,t,n){if(!this._isVisible)throw new Error("Not supported");var r=this.getInputStartOffsetOfOutputLineIndex(n),i=this.getInputEndOffsetOfOutputLineIndex(e,t,n)-r;return n>0&&(i=this.wrappedIndent.length+i),i},e.prototype.getViewLineMinColumn=function(e,t,n){if(!this._isVisible)throw new Error("Not supported");return n>0?this.wrappedIndentLength+1:1},e.prototype.getViewLineMaxColumn=function(e,t,n){if(!this._isVisible)throw new Error("Not supported");return this.getViewLineContent(e,t,n).length+1},e.prototype.getViewLineData=function(e,t,n){if(!this._isVisible)throw new Error("Not supported");var r=this.getInputStartOffsetOfOutputLineIndex(n),i=this.getInputEndOffsetOfOutputLineIndex(e,t,n),o=e.getValueInRange({startLineNumber:t,startColumn:r+1,endLineNumber:t,endColumn:i+1});n>0&&(o=this.wrappedIndent+o);var s=n>0?this.wrappedIndentLength+1:1,a=o.length+1,u=n+1<this.getViewLineCount(),l=0;n>0&&(l=this.wrappedIndentLength);var c=e.getLineTokens(t);return new Ky(o,u,s,a,c.sliceAndInflate(r,i,l))},e.prototype.getViewLinesData=function(e,t,n,r,i,o,s){if(!this._isVisible)throw new Error("Not supported");for(var a=n;a<r;a++){var u=i+a-n;o[u]?s[u]=this.getViewLineData(e,t,a):s[u]=null}},e.prototype.getModelColumnOfViewPosition=function(e,t){if(!this._isVisible)throw new Error("Not supported");var n=t-1;return e>0&&(n<this.wrappedIndentLength?n=0:n-=this.wrappedIndentLength),this.positionMapper.getInputOffsetOfOutputPosition(e,n)+1},e.prototype.getViewPositionOfModelPosition=function(e,t){if(!this._isVisible)throw new Error("Not supported");var n=this.positionMapper.getOutputPositionOfInputOffset(t-1),r=n.outputLineIndex,i=n.outputOffset+1;return r>0&&(i+=this.wrappedIndentLength),new Lt(e+r,i)},e.prototype.getViewLineNumberOfModelPosition=function(e,t){if(!this._isVisible)throw new Error("Not supported");return e+this.positionMapper.getOutputPositionOfInputOffset(t-1).outputLineIndex},e}();function lL(e,t,n,r,i,o,s){var a=e.createLineMapping(t,n,r,i,o);return null===a?s?sL.INSTANCE:aL.INSTANCE:new uL(a,s)}var cL=function(){function e(e){this._lines=e}return e.prototype._validPosition=function(e){return this._lines.model.validatePosition(e)},e.prototype._validRange=function(e){return this._lines.model.validateRange(e)},e.prototype.convertViewPositionToModelPosition=function(e){return this._validPosition(e)},e.prototype.convertViewRangeToModelRange=function(e){return this._validRange(e)},e.prototype.validateViewPosition=function(e,t){return this._validPosition(t)},e.prototype.validateViewRange=function(e,t){return this._validRange(t)},e.prototype.convertModelPositionToViewPosition=function(e){return this._validPosition(e)},e.prototype.convertModelRangeToViewRange=function(e){return this._validRange(e)},e.prototype.modelPositionIsVisible=function(e){var t=this._lines.model.getLineCount();return!(e.lineNumber<1||e.lineNumber>t)},e}(),dL=function(){function e(e){this.model=e}return e.prototype.dispose=function(){},e.prototype.createCoordinatesConverter=function(){return new cL(this)},e.prototype.getHiddenAreas=function(){return[]},e.prototype.setHiddenAreas=function(e){return!1},e.prototype.setTabSize=function(e){return!1},e.prototype.setWrappingSettings=function(e,t,n){return!1},e.prototype.onModelFlushed=function(){},e.prototype.onModelLinesDeleted=function(e,t,n){return new VC(t,n)},e.prototype.onModelLinesInserted=function(e,t,n,r){return new zC(t,n)},e.prototype.onModelLineChanged=function(e,t,n){return[!1,new HC(t,t),null,null]},e.prototype.acceptVersionId=function(e){},e.prototype.getViewLineCount=function(){return this.model.getLineCount()},e.prototype.warmUpLookupCache=function(e,t){},e.prototype.getActiveIndentGuide=function(e,t,n){return{startLineNumber:e,endLineNumber:e,indent:0}},e.prototype.getViewLinesIndentGuides=function(e,t){for(var n=t-e+1,r=new Array(n),i=0;i<n;i++)r[i]=0;return r},e.prototype.getViewLineContent=function(e){return this.model.getLineContent(e)},e.prototype.getViewLineLength=function(e){return this.model.getLineLength(e)},e.prototype.getViewLineMinColumn=function(e){return this.model.getLineMinColumn(e)},e.prototype.getViewLineMaxColumn=function(e){return this.model.getLineMaxColumn(e)},e.prototype.getViewLineData=function(e){var t=this.model.getLineTokens(e),n=t.getLineContent();return new Ky(n,!1,1,n.length+1,t.inflate())},e.prototype.getViewLinesData=function(e,t,n){var r=this.model.getLineCount();e=Math.min(Math.max(1,e),r),t=Math.min(Math.max(1,t),r);for(var i=[],o=e;o<=t;o++){var s=o-e;n[s]||(i[s]=null),i[s]=this.getViewLineData(o)}return i},e.prototype.getAllOverviewRulerDecorations=function(e,t,n){for(var r=this.model.getOverviewRulerDecorations(e,t),i=new hL,o=0,s=r;o<s.length;o++){var a=s[o],u=a.options.overviewRuler,l=u?u.position:0;if(0!==l){var c=u.getColor(n),d=a.range.startLineNumber,h=a.range.endLineNumber;i.accept(c,d,h,l)}}return i.result},e.prototype.getDecorationsInRange=function(e,t,n){return this.model.getDecorationsInRange(e,t,n)},e}(),hL=function(){function e(){this.result=Object.create(null)}return e.prototype.accept=function(e,t,n,r){var i=this.result[e];if(i){var o=i[i.length-3],s=i[i.length-1];if(o===r&&s+1>=t)return void(n>s&&(i[i.length-1]=n));i.push(r,t,n)}else this.result[e]=[r,t,n]},e}(),fL=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),pL=function(e){function t(t,n,r){for(var i=e.call(this,0)||this,o=0;o<t.length;o++)i.set(t.charCodeAt(o),1);for(o=0;o<n.length;o++)i.set(n.charCodeAt(o),2);for(o=0;o<r.length;o++)i.set(r.charCodeAt(o),3);return i}return fL(t,e),t.prototype.get=function(t){return t>=12352&&t<=12543||t>=13312&&t<=19903||t>=19968&&t<=40959?4:e.prototype.get.call(this,t)},t}(wo),gL=function(){function e(e,t,n){this.classifier=new pL(e,t,n)}return e.nextVisibleColumn=function(e,t,n,r){return e=+e,t=+t,r=+r,n?e+(t-e%t):e+r},e.prototype.createLineMapping=function(t,n,r,i,o){if(-1===r)return null;n=+n,r=+r,i=+i;var s=0,a="",u=-1;if(0!==(o=+o)&&-1!==(u=gn(t))){a=t.substring(0,u);for(var l=0;l<u;l++)s=e.nextVisibleColumn(s,n,9===t.charCodeAt(l),1);var c=0;2===o?c=1:3===o&&(c=2);for(l=0;l<c;l++)a+="\t",s=e.nextVisibleColumn(s,n,!0,1);s+i>r&&(a="",s=0)}var d=this.classifier,h=0,f=[],p=0,g=0,m=-1,_=0,y=-1,v=0,b=t.length;for(l=0;l<b;l++){var w=t.charCodeAt(l),C=9===w,S=d.get(w);if(Ln(w))g+=1;else{if(1===S&&(m=l,_=s),4===S&&l>0){var x=t.charCodeAt(l-1);1!==d.get(x)&&(m=l,_=s)}var L=1;if(Nn(w)&&(L=i),(g=e.nextVisibleColumn(g,n,C,L))>r&&0!==l){var k=void 0,M=void 0;-1!==m&&_<=r?(k=m,M=_):-1!==y&&v<=r?(k=y,M=v):(k=l,M=s),f[p++]=k-h,h=k,g=e.nextVisibleColumn(M,n,C,L),m=-1,_=0,y=-1,v=0}if(-1!==m&&(_=e.nextVisibleColumn(_,n,C,L)),-1!==y&&(v=e.nextVisibleColumn(v,n,C,L)),2===S&&(0===o||l>=u)&&(m=l+1,_=s),4===S&&l<b-1){var D=t.charCodeAt(l+1);2!==d.get(D)&&(m=l+1,_=s)}3===S&&(y=l+1,v=s)}}return 0===p?null:(f[p++]=b-h,new mL(new Q_(function(e){for(var t=e.length,n=new Uint32Array(t),r=0;r<t;r++)n[r]=bo(e[r]);return n}(f)),a))},e}(),mL=function(){function e(e,t){this._prefixSums=e,this._wrappedLinesIndent=t}return e.prototype.getOutputLineCount=function(){return this._prefixSums.getCount()},e.prototype.getWrappedLinesIndent=function(){return this._wrappedLinesIndent},e.prototype.getInputOffsetOfOutputPosition=function(e,t){return 0===e?t:this._prefixSums.getAccumulatedValue(e-1)+t},e.prototype.getOutputPositionOfInputOffset=function(e){var t=this._prefixSums.getIndexOf(e);return new rL(t.index,t.remainder)},e}(),_L=function(){function e(e,t,n,r,i){this.editorId=e,this.model=t,this.configuration=n,this._linesCollection=r,this._coordinatesConverter=i,this._decorationsCache=Object.create(null),this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}return e.prototype._clearCachedModelDecorationsResolver=function(){this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null},e.prototype.dispose=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},e.prototype.reset=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},e.prototype.onModelDecorationsChanged=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},e.prototype.onLineMappingChanged=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},e.prototype._getOrCreateViewModelDecoration=function(e){var t=e.id,n=this._decorationsCache[t];if(!n){var r=e.range,i=e.options,o=void 0;if(i.isWholeLine){var s=this._coordinatesConverter.convertModelPositionToViewPosition(new Lt(r.startLineNumber,1)),a=this._coordinatesConverter.convertModelPositionToViewPosition(new Lt(r.endLineNumber,this.model.getLineMaxColumn(r.endLineNumber)));o=new Yr(s.lineNumber,s.column,a.lineNumber,a.column)}else o=this._coordinatesConverter.convertModelRangeToViewRange(r);n=new Zy(o,i),this._decorationsCache[t]=n}return n},e.prototype.getDecorationsViewportData=function(e){var t=null!==this._cachedModelDecorationsResolver;return(t=t&&e.equalsRange(this._cachedModelDecorationsResolverViewRange))||(this._cachedModelDecorationsResolver=this._getDecorationsViewportData(e),this._cachedModelDecorationsResolverViewRange=e),this._cachedModelDecorationsResolver},e.prototype._getDecorationsViewportData=function(e){for(var t=this._linesCollection.getDecorationsInRange(e,this.editorId,this.configuration.editor.readOnly),n=e.startLineNumber,r=e.endLineNumber,i=[],o=0,s=[],a=n;a<=r;a++)s[a-n]=[];for(var u=0,l=t.length;u<l;u++){var c=t[u],d=c.options,h=this._getOrCreateViewModelDecoration(c),f=h.range;if(i[o++]=h,d.inlineClassName){var p=new $y(f,d.inlineClassName,d.inlineClassNameAffectsLetterSpacing?3:0),g=Math.max(n,f.startLineNumber),m=Math.min(r,f.endLineNumber);for(a=g;a<=m;a++)s[a-n].push(p)}if(d.beforeContentClassName&&n<=f.startLineNumber&&f.startLineNumber<=r){p=new $y(new Yr(f.startLineNumber,f.startColumn,f.startLineNumber,f.startColumn),d.beforeContentClassName,1);s[f.startLineNumber-n].push(p)}if(d.afterContentClassName&&n<=f.endLineNumber&&f.endLineNumber<=r){p=new $y(new Yr(f.endLineNumber,f.endColumn,f.endLineNumber,f.endColumn),d.afterContentClassName,2);s[f.endLineNumber-n].push(p)}}return{decorations:i,inlineDecorations:s}},e}(),yL=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),vL=!0,bL=function(e){function t(t,n,r,i){var o=e.call(this)||this;if(o.editorId=t,o.configuration=n,o.model=r,o._tokenizeViewportSoon=o._register(new As((function(){return o.tokenizeViewport()}),50)),o.hasFocus=!1,o.viewportStartLine=-1,o.viewportStartLineTrackedRange=null,o.viewportStartLineDelta=0,vL&&o.model.isTooLargeForTokenization())o.lines=new dL(o.model);else{var s=o.configuration.editor,a=new gL(s.wrappingInfo.wordWrapBreakBeforeCharacters,s.wrappingInfo.wordWrapBreakAfterCharacters,s.wrappingInfo.wordWrapBreakObtrusiveCharacters);o.lines=new oL(o.model,a,o.model.getOptions().tabSize,s.wrappingInfo.wrappingColumn,s.fontInfo.typicalFullwidthCharacterWidth/s.fontInfo.typicalHalfwidthCharacterWidth,s.wrappingInfo.wrappingIndent)}return o.coordinatesConverter=o.lines.createCoordinatesConverter(),o.viewLayout=o._register(new nL(o.configuration,o.getLineCount(),i)),o._register(o.viewLayout.onDidScroll((function(e){e.scrollTopChanged&&o._tokenizeViewportSoon.schedule();try{o._beginEmit().emit(new qC(e))}finally{o._endEmit()}}))),o.decorations=new _L(o.editorId,o.model,o.configuration,o.lines,o.coordinatesConverter),o._registerModelEvents(),o._register(o.configuration.onDidChange((function(e){try{var t=o._beginEmit();o._onConfigurationChanged(t,e)}finally{o._endEmit()}}))),o._register(HS.getInstance().onDidChange((function(){try{o._beginEmit().emit(new $C)}finally{o._endEmit()}}))),o}return yL(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this.decorations.dispose(),this.lines.dispose(),this.viewportStartLineTrackedRange=this.model._setTrackedRange(this.viewportStartLineTrackedRange,null,1)},t.prototype.tokenizeViewport=function(){var e=this.viewLayout.getLinesViewportData(),t=this.coordinatesConverter.convertViewPositionToModelPosition(new Lt(e.startLineNumber,1)),n=this.coordinatesConverter.convertViewPositionToModelPosition(new Lt(e.endLineNumber,1));this.model.tokenizeViewport(t.lineNumber,n.lineNumber)},t.prototype.setHasFocus=function(e){this.hasFocus=e},t.prototype._onConfigurationChanged=function(e,t){var n=null;if(-1!==this.viewportStartLine){var r=new Lt(this.viewportStartLine,this.getLineMinColumn(this.viewportStartLine));n=this.coordinatesConverter.convertViewPositionToModelPosition(r)}var i=!1,o=this.configuration.editor;if(this.lines.setWrappingSettings(o.wrappingInfo.wrappingIndent,o.wrappingInfo.wrappingColumn,o.fontInfo.typicalFullwidthCharacterWidth/o.fontInfo.typicalHalfwidthCharacterWidth)&&(e.emit(new jC),e.emit(new WC),e.emit(new YC),this.decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),0!==this.viewLayout.getCurrentScrollTop()&&(i=!0)),t.readOnly&&(this.decorations.reset(),e.emit(new YC)),e.emit(new RC(t)),this.viewLayout.onConfigurationChanged(t),i&&n){var s=this.coordinatesConverter.convertModelPositionToViewPosition(n),a=this.viewLayout.getVerticalOffsetForLineNumber(s.lineNumber);this.viewLayout.setScrollPositionNow({scrollTop:a+this.viewportStartLineDelta})}},t.prototype._registerModelEvents=function(){var e=this;this._register(this.model.onDidChangeRawContentFast((function(t){try{for(var n=e._beginEmit(),r=!1,i=!1,o=t.changes,s=t.versionId,a=0,u=o.length;a<u;a++){var l=o[a];switch(l.changeType){case 1:e.lines.onModelFlushed(),n.emit(new jC),e.decorations.reset(),e.viewLayout.onFlushed(e.getLineCount()),r=!0;break;case 3:null!==(p=e.lines.onModelLinesDeleted(s,l.fromLineNumber,l.toLineNumber))&&(n.emit(p),e.viewLayout.onLinesDeleted(p.fromLineNumber,p.toLineNumber)),r=!0;break;case 4:null!==(f=e.lines.onModelLinesInserted(s,l.fromLineNumber,l.toLineNumber,l.detail))&&(n.emit(f),e.viewLayout.onLinesInserted(f.fromLineNumber,f.toLineNumber)),r=!0;break;case 2:var c=e.lines.onModelLineChanged(s,l.lineNumber,l.detail),d=c[0],h=c[1],f=c[2],p=c[3];i=d,h&&n.emit(h),f&&(n.emit(f),e.viewLayout.onLinesInserted(f.fromLineNumber,f.toLineNumber)),p&&(n.emit(p),e.viewLayout.onLinesDeleted(p.fromLineNumber,p.toLineNumber))}}e.lines.acceptVersionId(s),e.viewLayout.onHeightMaybeChanged(),!r&&i&&(n.emit(new WC),n.emit(new YC),e.decorations.onLineMappingChanged())}finally{e._endEmit()}if(e.viewportStartLine=-1,e.configuration.setMaxLineNumber(e.model.getLineCount()),!e.hasFocus&&e.model.getAttachedEditorCount()>=2&&e.viewportStartLineTrackedRange){var g=e.model._getTrackedRange(e.viewportStartLineTrackedRange);if(g){var m=e.coordinatesConverter.convertModelPositionToViewPosition(g.getStartPosition()),_=e.viewLayout.getVerticalOffsetForLineNumber(m.lineNumber);e.viewLayout.setScrollPositionNow({scrollTop:_+e.viewportStartLineDelta})}}}))),this._register(this.model.onDidChangeTokens((function(t){for(var n=[],r=0,i=t.ranges.length;r<i;r++){var o=t.ranges[r],s=e.coordinatesConverter.convertModelPositionToViewPosition(new Lt(o.fromLineNumber,1)).lineNumber,a=e.coordinatesConverter.convertModelPositionToViewPosition(new Lt(o.toLineNumber,e.model.getLineMaxColumn(o.toLineNumber))).lineNumber;n[r]={fromLineNumber:s,toLineNumber:a}}try{e._beginEmit().emit(new KC(n))}finally{e._endEmit()}t.tokenizationSupportChanged&&e._tokenizeViewportSoon.schedule()}))),this._register(this.model.onDidChangeLanguageConfiguration((function(t){try{e._beginEmit().emit(new XC)}finally{e._endEmit()}}))),this._register(this.model.onDidChangeOptions((function(t){if(e.lines.setTabSize(e.model.getOptions().tabSize)){e.decorations.onLineMappingChanged(),e.viewLayout.onFlushed(e.getLineCount());try{var n=e._beginEmit();n.emit(new jC),n.emit(new WC),n.emit(new YC)}finally{e._endEmit()}}}))),this._register(this.model.onDidChangeDecorations((function(t){e.decorations.onModelDecorationsChanged();try{e._beginEmit().emit(new YC)}finally{e._endEmit()}})))},t.prototype.setHiddenAreas=function(e){try{var t=this._beginEmit();this.lines.setHiddenAreas(e)&&(t.emit(new jC),t.emit(new WC),t.emit(new YC),this.decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.onHeightMaybeChanged())}finally{this._endEmit()}},t.prototype.getVisibleRanges=function(){var e=this.getCompletelyVisibleViewRange(),t=this.coordinatesConverter.convertViewRangeToModelRange(e),n=this.lines.getHiddenAreas();if(0===n.length)return[t];for(var r=[],i=0,o=t.startLineNumber,s=t.startColumn,a=t.endLineNumber,u=t.endColumn,l=0,c=n.length;l<c;l++){var d=n[l].startLineNumber,h=n[l].endLineNumber;h<o||(d>a||(o<d&&(r[i++]=new Yr(o,s,d-1,this.model.getLineMaxColumn(d-1))),o=h+1,s=1))}return(o<a||o===a&&s<u)&&(r[i++]=new Yr(o,s,a,u)),r},t.prototype.getCompletelyVisibleViewRange=function(){var e=this.viewLayout.getLinesViewportData(),t=e.completelyVisibleStartLineNumber,n=e.completelyVisibleEndLineNumber;return new Yr(t,this.getLineMinColumn(t),n,this.getLineMaxColumn(n))},t.prototype.getCompletelyVisibleViewRangeAtScrollTop=function(e){var t=this.viewLayout.getLinesViewportDataAtScrollTop(e),n=t.completelyVisibleStartLineNumber,r=t.completelyVisibleEndLineNumber;return new Yr(n,this.getLineMinColumn(n),r,this.getLineMaxColumn(r))},t.prototype.saveState=function(){var e=this.viewLayout.saveState(),t=e.scrollTop,n=this.viewLayout.getLineNumberAtVerticalOffset(t),r=this.coordinatesConverter.convertViewPositionToModelPosition(new Lt(n,this.getLineMinColumn(n))),i=this.viewLayout.getVerticalOffsetForLineNumber(n)-t;return{scrollLeft:e.scrollLeft,firstPosition:r,firstPositionDeltaTop:i}},t.prototype.reduceRestoreState=function(e){if(void 0===e.firstPosition)return this._reduceRestoreStateCompatibility(e);var t=this.model.validatePosition(e.firstPosition),n=this.coordinatesConverter.convertModelPositionToViewPosition(t),r=this.viewLayout.getVerticalOffsetForLineNumber(n.lineNumber)-e.firstPositionDeltaTop;return{scrollLeft:e.scrollLeft,scrollTop:r}},t.prototype._reduceRestoreStateCompatibility=function(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTopWithoutViewZones}},t.prototype.getTabSize=function(){return this.model.getOptions().tabSize},t.prototype.getOptions=function(){return this.model.getOptions()},t.prototype.getLineCount=function(){return this.lines.getViewLineCount()},t.prototype.setViewport=function(e,t,n){this.lines.warmUpLookupCache(e,t),this.viewportStartLine=e;var r=this.coordinatesConverter.convertViewPositionToModelPosition(new Lt(e,this.getLineMinColumn(e)));this.viewportStartLineTrackedRange=this.model._setTrackedRange(this.viewportStartLineTrackedRange,new Yr(r.lineNumber,r.column,r.lineNumber,r.column),1);var i=this.viewLayout.getVerticalOffsetForLineNumber(e),o=this.viewLayout.getCurrentScrollTop();this.viewportStartLineDelta=o-i},t.prototype.getActiveIndentGuide=function(e,t,n){return this.lines.getActiveIndentGuide(e,t,n)},t.prototype.getLinesIndentGuides=function(e,t){return this.lines.getViewLinesIndentGuides(e,t)},t.prototype.getLineContent=function(e){return this.lines.getViewLineContent(e)},t.prototype.getLineLength=function(e){return this.lines.getViewLineLength(e)},t.prototype.getLineMinColumn=function(e){return this.lines.getViewLineMinColumn(e)},t.prototype.getLineMaxColumn=function(e){return this.lines.getViewLineMaxColumn(e)},t.prototype.getLineFirstNonWhitespaceColumn=function(e){var t=gn(this.getLineContent(e));return-1===t?0:t+1},t.prototype.getLineLastNonWhitespaceColumn=function(e){var t=_n(this.getLineContent(e));return-1===t?0:t+2},t.prototype.getDecorationsInViewport=function(e){return this.decorations.getDecorationsViewportData(e).decorations},t.prototype.getViewLineRenderingData=function(e,t){var n=this.model.mightContainRTL(),r=this.model.mightContainNonBasicASCII(),i=this.getTabSize(),o=this.lines.getViewLineData(t),s=this.decorations.getDecorationsViewportData(e).inlineDecorations[t-e.startLineNumber];return new Gy(o.minColumn,o.maxColumn,o.content,o.continuesWithWrappedLine,n,r,o.tokens,s,i)},t.prototype.getViewLineData=function(e){return this.lines.getViewLineData(e)},t.prototype.getMinimapLinesRenderingData=function(e,t,n){var r=this.lines.getViewLinesData(e,t,n);return new qy(this.getTabSize(),r)},t.prototype.getAllOverviewRulerDecorations=function(e){return this.lines.getAllOverviewRulerDecorations(this.editorId,this.configuration.editor.readOnly,e)},t.prototype.invalidateOverviewRulerColorCache=function(){for(var e=0,t=this.model.getOverviewRulerDecorations();e<t.length;e++){var n=t[e].options.overviewRuler;n&&n.invalidateCachedColor()}},t.prototype.invalidateMinimapColorCache=function(){for(var e=0,t=this.model.getAllDecorations();e<t.length;e++){var n=t[e].options.minimap;n&&n.invalidateCachedColor()}},t.prototype.getValueInRange=function(e,t){var n=this.coordinatesConverter.convertViewRangeToModelRange(e);return this.model.getValueInRange(n,t)},t.prototype.getModelLineMaxColumn=function(e){return this.model.getLineMaxColumn(e)},t.prototype.validateModelPosition=function(e){return this.model.validatePosition(e)},t.prototype.validateModelRange=function(e){return this.model.validateRange(e)},t.prototype.deduceModelPositionRelativeToViewPosition=function(e,t,n){var r=this.coordinatesConverter.convertViewPositionToModelPosition(e);2===this.model.getEOL().length&&(t<0?t-=n:t+=n);var i=this.model.getOffsetAt(r)+t;return this.model.getPositionAt(i)},t.prototype.getEOL=function(){return this.model.getEOL()},t.prototype.getPlainTextToCopy=function(e,t,n){var r=this,i=n?"\r\n":this.model.getEOL();(e=e.slice(0)).sort(Yr.compareRangesUsingStarts);var o=e.filter((function(e){return!e.isEmpty()}));if(0===o.length){if(!t)return"";for(var s=e.map((function(e){var t=new Lt(e.startLineNumber,1);return r.coordinatesConverter.convertViewPositionToModelPosition(t).lineNumber})),a="",u=0;u<s.length;u++)u>0&&s[u-1]===s[u]||(a+=this.model.getLineContent(s[u])+i);return a}for(var l=[],c=0,d=o;c<d.length;c++){var h=d[c];l.push(this.getValueInRange(h,n?2:0))}return 1===l.length?l[0]:l},t.prototype.getHTMLToCopy=function(e,t){if(1===this.model.getLanguageIdentifier().id)return null;if(1!==e.length)return null;var n=this.coordinatesConverter.convertViewRangeToModelRange(e[0]);if(n.isEmpty()){if(!t)return null;var r=n.startLineNumber;n=new Yr(r,this.model.getLineMinColumn(r),r,this.model.getLineMaxColumn(r))}var i=this.configuration.editor.fontInfo,o=this._getColorMap(),s=i.fontFamily===wi.fontFamily?i.fontFamily:"'"+i.fontFamily+"', "+wi.fontFamily;return'<div style="color: '+o[1]+";background-color: "+o[2]+";font-family: "+s+";font-weight: "+i.fontWeight+";font-size: "+i.fontSize+"px;line-height: "+i.lineHeight+'px;white-space: pre;">'+this._getHTMLToCopy(n,o)+"</div>"},t.prototype._getHTMLToCopy=function(e,t){for(var n=e.startLineNumber,r=e.startColumn,i=e.endLineNumber,o=e.endColumn,s=this.getTabSize(),a="",u=n;u<=i;u++){var l=this.model.getLineTokens(u),c=l.getLineContent(),d=u===n?r-1:0,h=u===i?o-1:c.length;a+=""===c?"<br>":Jx(c,l.inflate(),t,d,h,s)}return a},t.prototype._getColorMap=function(){var e=Pa.getColorMap(),t=["#000000"];if(e)for(var n=1,r=e.length;n<r;n++)t[n]=Ou.Format.CSS.formatHex(e[n]);return t},t}(JC),wL=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._entries=new Map;for(var n=0,r=e;n<r.length;n++){var i=r[n],o=i[0],s=i[1];this.set(o,s)}}return e.prototype.set=function(e,t){var n=this._entries.get(e);return this._entries.set(e,t),n},e.prototype.has=function(e){return this._entries.has(e)},e.prototype.get=function(e){return this._entries.get(e)},e}(),CL=Ct("accessibilityService"),SL=new qn("accessibilityModeEnabled",!1),xL=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),LL=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},kL=function(e,t){return function(n,r){t(n,r,e)}},ML=0,DL="showUnused",EL=function(){function e(e,t,n,r,i,o){this.model=e,this.viewModel=t,this.cursor=n,this.view=r,this.hasRealView=i,this.listenersToRemove=o}return e.prototype.dispose=function(){At(this.listenersToRemove),this.model.onBeforeDetached(),this.hasRealView&&this.view.dispose(),this.cursor.dispose(),this.viewModel.dispose()},e}(),TL=function(e){function t(t,n,r,i,o,s,a,u,l,c){var d,h=e.call(this)||this;h._onDidDispose=h._register(new $t),h.onDidDispose=h._onDidDispose.event,h._onDidChangeModelContent=h._register(new $t),h.onDidChangeModelContent=h._onDidChangeModelContent.event,h._onDidChangeModelLanguage=h._register(new $t),h.onDidChangeModelLanguage=h._onDidChangeModelLanguage.event,h._onDidChangeModelLanguageConfiguration=h._register(new $t),h.onDidChangeModelLanguageConfiguration=h._onDidChangeModelLanguageConfiguration.event,h._onDidChangeModelOptions=h._register(new $t),h.onDidChangeModelOptions=h._onDidChangeModelOptions.event,h._onDidChangeModelDecorations=h._register(new $t),h.onDidChangeModelDecorations=h._onDidChangeModelDecorations.event,h._onDidChangeConfiguration=h._register(new $t),h.onDidChangeConfiguration=h._onDidChangeConfiguration.event,h._onDidChangeModel=h._register(new $t),h.onDidChangeModel=h._onDidChangeModel.event,h._onDidChangeCursorPosition=h._register(new $t),h.onDidChangeCursorPosition=h._onDidChangeCursorPosition.event,h._onDidChangeCursorSelection=h._register(new $t),h.onDidChangeCursorSelection=h._onDidChangeCursorSelection.event,h._onDidAttemptReadOnlyEdit=h._register(new $t),h.onDidAttemptReadOnlyEdit=h._onDidAttemptReadOnlyEdit.event,h._onDidLayoutChange=h._register(new $t),h.onDidLayoutChange=h._onDidLayoutChange.event,h._editorTextFocus=h._register(new NL),h.onDidFocusEditorText=h._editorTextFocus.onDidChangeToTrue,h.onDidBlurEditorText=h._editorTextFocus.onDidChangeToFalse,h._editorWidgetFocus=h._register(new NL),h.onDidFocusEditorWidget=h._editorWidgetFocus.onDidChangeToTrue,h.onDidBlurEditorWidget=h._editorWidgetFocus.onDidChangeToFalse,h._onWillType=h._register(new $t),h.onWillType=h._onWillType.event,h._onDidType=h._register(new $t),h.onDidType=h._onDidType.event,h._onCompositionStart=h._register(new $t),h.onCompositionStart=h._onCompositionStart.event,h._onCompositionEnd=h._register(new $t),h.onCompositionEnd=h._onCompositionEnd.event,h._onDidPaste=h._register(new $t),h.onDidPaste=h._onDidPaste.event,h._onMouseUp=h._register(new $t),h.onMouseUp=h._onMouseUp.event,h._onMouseDown=h._register(new $t),h.onMouseDown=h._onMouseDown.event,h._onMouseDrag=h._register(new $t),h.onMouseDrag=h._onMouseDrag.event,h._onMouseDrop=h._register(new $t),h.onMouseDrop=h._onMouseDrop.event,h._onContextMenu=h._register(new $t),h.onContextMenu=h._onContextMenu.event,h._onMouseMove=h._register(new $t),h.onMouseMove=h._onMouseMove.event,h._onMouseLeave=h._register(new $t),h.onMouseLeave=h._onMouseLeave.event,h._onMouseWheel=h._register(new $t),h.onMouseWheel=h._onMouseWheel.event,h._onKeyUp=h._register(new $t),h.onKeyUp=h._onKeyUp.event,h._onKeyDown=h._register(new $t),h.onKeyDown=h._onKeyDown.event,h._onDidScrollChange=h._register(new $t),h.onDidScrollChange=h._onDidScrollChange.event,h._onDidChangeViewZones=h._register(new $t),h.onDidChangeViewZones=h._onDidChangeViewZones.event,h._domElement=t,h._id=++ML,h._decorationTypeKeysToIds={},h._decorationTypeSubtypes={},h.isSimpleWidget=r.isSimpleWidget||!1,h._telemetryData=r.telemetryData,n=n||{},h._configuration=h._register(h._createConfiguration(n,c)),h._register(h._configuration.onDidChange((function(e){h._onDidChangeConfiguration.fire(e),e.layoutInfo&&h._onDidLayoutChange.fire(h._configuration.editor.layoutInfo),h._configuration.editor.showUnused?h._domElement.classList.add(DL):h._domElement.classList.remove(DL)}))),h._contextKeyService=h._register(a.createScoped(h._domElement)),h._notificationService=l,h._codeEditorService=o,h._commandService=s,h._themeService=u,h._register(new OL(h,h._contextKeyService)),h._register(new AL(h,h._contextKeyService)),h._instantiationService=i.createChild(new wL([Kn,h._contextKeyService])),h._modelData=null,h._contributions={},h._actions={},h._focusTracker=new IL(t),h._focusTracker.onChange((function(){h._editorWidgetFocus.setValue(h._focusTracker.hasFocus())})),h._contentWidgets={},h._overlayWidgets={};for(var f=0,p=(d=Array.isArray(r.contributions)?r.contributions:Er.getEditorContributions()).length;f<p;f++){var g=d[f];try{var m=h._instantiationService.createInstance(g,h);h._contributions[m.getId()]=m}catch(e){Ke(e)}}return Er.getEditorActions().forEach((function(e){var t=new Xx(e.id,e.label,e.alias,ze(e.precondition),(function(){return h._instantiationService.invokeFunction((function(t){return Promise.resolve(e.runEditorCommand(t,h,null))}))}),h._contextKeyService);h._actions[t.id]=t})),h._codeEditorService.addCodeEditor(h),h}return xL(t,e),t.prototype._createConfiguration=function(e,t){return new ow(this.isSimpleWidget,e,this._domElement,t)},t.prototype.getId=function(){return this.getEditorType()+":"+this._id},t.prototype.getEditorType=function(){return Nl.ICodeEditor},t.prototype.dispose=function(){this._codeEditorService.removeCodeEditor(this),this._focusTracker.dispose();for(var t=Object.keys(this._contributions),n=0,r=t.length;n<r;n++){var i=t[n];this._contributions[i].dispose()}this._removeDecorationTypes(),this._postDetachModelCleanup(this._detachModel()),this._onDidDispose.fire(),e.prototype.dispose.call(this)},t.prototype.invokeWithinContext=function(e){return this._instantiationService.invokeFunction(e)},t.prototype.updateOptions=function(e){this._configuration.updateOptions(e)},t.prototype.getConfiguration=function(){return this._configuration.editor},t.prototype.getRawConfiguration=function(){return this._configuration.getRawOptions()},t.prototype.getValue=function(e){if(void 0===e&&(e=null),!this._modelData)return"";var t=!(!e||!e.preserveBOM),n=0;return e&&e.lineEnding&&"\n"===e.lineEnding?n=1:e&&e.lineEnding&&"\r\n"===e.lineEnding&&(n=2),this._modelData.model.getValue(n,t)},t.prototype.setValue=function(e){this._modelData&&this._modelData.model.setValue(e)},t.prototype.getModel=function(){return this._modelData?this._modelData.model:null},t.prototype.setModel=function(e){void 0===e&&(e=null);var t=e;if(!(null===this._modelData&&null===t||this._modelData&&this._modelData.model===t)){var n=this._detachModel();this._attachModel(t);var r={oldModelUrl:n?n.uri:null,newModelUrl:t?t.uri:null};this._removeDecorationTypes(),this._onDidChangeModel.fire(r),this._postDetachModelCleanup(n)}},t.prototype._removeDecorationTypes=function(){if(this._decorationTypeKeysToIds={},this._decorationTypeSubtypes){for(var e in this._decorationTypeSubtypes){var t=this._decorationTypeSubtypes[e];for(var n in t)this._removeDecorationType(e+"-"+n)}this._decorationTypeSubtypes={}}},t.prototype.getVisibleRanges=function(){return this._modelData?this._modelData.viewModel.getVisibleRanges():[]},t.prototype.getWhitespaces=function(){return this._modelData?this._modelData.viewModel.viewLayout.getWhitespaces():[]},t._getVerticalOffsetForPosition=function(e,t,n){var r=e.model.validatePosition({lineNumber:t,column:n}),i=e.viewModel.coordinatesConverter.convertModelPositionToViewPosition(r);return e.viewModel.viewLayout.getVerticalOffsetForLineNumber(i.lineNumber)},t.prototype.getTopForLineNumber=function(e){return this._modelData?t._getVerticalOffsetForPosition(this._modelData,e,1):-1},t.prototype.getTopForPosition=function(e,n){return this._modelData?t._getVerticalOffsetForPosition(this._modelData,e,n):-1},t.prototype.setHiddenAreas=function(e){this._modelData&&this._modelData.viewModel.setHiddenAreas(e.map((function(e){return Yr.lift(e)})))},t.prototype.getVisibleColumnFromPosition=function(e){if(!this._modelData)return e.column;var t=this._modelData.model.validatePosition(e),n=this._modelData.model.getOptions().tabSize;return sl.visibleColumnFromColumn(this._modelData.model.getLineContent(t.lineNumber),t.column,n)+1},t.prototype.getPosition=function(){return this._modelData?this._modelData.cursor.getPosition():null},t.prototype.setPosition=function(e){if(this._modelData){if(!Lt.isIPosition(e))throw new Error("Invalid arguments");this._modelData.cursor.setSelections("api",[{selectionStartLineNumber:e.lineNumber,selectionStartColumn:e.column,positionLineNumber:e.lineNumber,positionColumn:e.column}])}},t.prototype._sendRevealRange=function(e,t,n,r){if(this._modelData){if(!Yr.isIRange(e))throw new Error("Invalid arguments");var i=this._modelData.model.validateRange(e),o=this._modelData.viewModel.coordinatesConverter.convertModelRangeToViewRange(i);this._modelData.cursor.emitCursorRevealRange(o,t,n,r)}},t.prototype.revealLine=function(e,t){void 0===t&&(t=0),this._revealLine(e,0,t)},t.prototype.revealLineInCenter=function(e,t){void 0===t&&(t=0),this._revealLine(e,1,t)},t.prototype.revealLineInCenterIfOutsideViewport=function(e,t){void 0===t&&(t=0),this._revealLine(e,2,t)},t.prototype._revealLine=function(e,t,n){if("number"!=typeof e)throw new Error("Invalid arguments");this._sendRevealRange(new Yr(e,1,e,1),t,!1,n)},t.prototype.revealPosition=function(e,t){void 0===t&&(t=0),this._revealPosition(e,0,!0,t)},t.prototype.revealPositionInCenter=function(e,t){void 0===t&&(t=0),this._revealPosition(e,1,!0,t)},t.prototype.revealPositionInCenterIfOutsideViewport=function(e,t){void 0===t&&(t=0),this._revealPosition(e,2,!0,t)},t.prototype._revealPosition=function(e,t,n,r){if(!Lt.isIPosition(e))throw new Error("Invalid arguments");this._sendRevealRange(new Yr(e.lineNumber,e.column,e.lineNumber,e.column),t,n,r)},t.prototype.getSelection=function(){return this._modelData?this._modelData.cursor.getSelection():null},t.prototype.getSelections=function(){return this._modelData?this._modelData.cursor.getSelections():null},t.prototype.setSelection=function(e){var t=Br.isISelection(e),n=Yr.isIRange(e);if(!t&&!n)throw new Error("Invalid arguments");if(t)this._setSelectionImpl(e);else if(n){var r={selectionStartLineNumber:e.startLineNumber,selectionStartColumn:e.startColumn,positionLineNumber:e.endLineNumber,positionColumn:e.endColumn};this._setSelectionImpl(r)}},t.prototype._setSelectionImpl=function(e){if(this._modelData){var t=new Br(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn);this._modelData.cursor.setSelections("api",[t])}},t.prototype.revealLines=function(e,t,n){void 0===n&&(n=0),this._revealLines(e,t,0,n)},t.prototype.revealLinesInCenter=function(e,t,n){void 0===n&&(n=0),this._revealLines(e,t,1,n)},t.prototype.revealLinesInCenterIfOutsideViewport=function(e,t,n){void 0===n&&(n=0),this._revealLines(e,t,2,n)},t.prototype._revealLines=function(e,t,n,r){if("number"!=typeof e||"number"!=typeof t)throw new Error("Invalid arguments");this._sendRevealRange(new Yr(e,1,t,1),n,!1,r)},t.prototype.revealRange=function(e,t,n,r){void 0===t&&(t=0),void 0===n&&(n=!1),void 0===r&&(r=!0),this._revealRange(e,n?1:0,r,t)},t.prototype.revealRangeInCenter=function(e,t){void 0===t&&(t=0),this._revealRange(e,1,!0,t)},t.prototype.revealRangeInCenterIfOutsideViewport=function(e,t){void 0===t&&(t=0),this._revealRange(e,2,!0,t)},t.prototype.revealRangeAtTop=function(e,t){void 0===t&&(t=0),this._revealRange(e,3,!0,t)},t.prototype._revealRange=function(e,t,n,r){if(!Yr.isIRange(e))throw new Error("Invalid arguments");this._sendRevealRange(Yr.lift(e),t,n,r)},t.prototype.setSelections=function(e,t){if(void 0===t&&(t="api"),this._modelData){if(!e||0===e.length)throw new Error("Invalid arguments");for(var n=0,r=e.length;n<r;n++)if(!Br.isISelection(e[n]))throw new Error("Invalid arguments");this._modelData.cursor.setSelections(t,e)}},t.prototype.getScrollWidth=function(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollWidth():-1},t.prototype.getScrollLeft=function(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollLeft():-1},t.prototype.getScrollHeight=function(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollHeight():-1},t.prototype.getScrollTop=function(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollTop():-1},t.prototype.setScrollLeft=function(e){if(this._modelData){if("number"!=typeof e)throw new Error("Invalid arguments");this._modelData.viewModel.viewLayout.setScrollPositionNow({scrollLeft:e})}},t.prototype.setScrollTop=function(e){if(this._modelData){if("number"!=typeof e)throw new Error("Invalid arguments");this._modelData.viewModel.viewLayout.setScrollPositionNow({scrollTop:e})}},t.prototype.setScrollPosition=function(e){this._modelData&&this._modelData.viewModel.viewLayout.setScrollPositionNow(e)},t.prototype.saveViewState=function(){if(!this._modelData)return null;for(var e={},t=0,n=Object.keys(this._contributions);t<n.length;t++){var r=n[t],i=this._contributions[r];"function"==typeof i.saveViewState&&(e[r]=i.saveViewState())}return{cursorState:this._modelData.cursor.saveState(),viewState:this._modelData.viewModel.saveState(),contributionsState:e}},t.prototype.restoreViewState=function(e){if(this._modelData&&this._modelData.hasRealView){var t=e;if(t&&t.cursorState&&t.viewState){var n=t.cursorState;Array.isArray(n)?this._modelData.cursor.restoreState(n):this._modelData.cursor.restoreState([n]);for(var r=t.contributionsState||{},i=Object.keys(this._contributions),o=0,s=i.length;o<s;o++){var a=i[o],u=this._contributions[a];"function"==typeof u.restoreViewState&&u.restoreViewState(r[a])}var l=this._modelData.viewModel.reduceRestoreState(t.viewState);this._modelData.view.restoreState(l)}}},t.prototype.getContribution=function(e){return this._contributions[e]||null},t.prototype.getActions=function(){for(var e=[],t=Object.keys(this._actions),n=0,r=t.length;n<r;n++){var i=t[n];e.push(this._actions[i])}return e},t.prototype.getSupportedActions=function(){var e=this.getActions();return e=e.filter((function(e){return e.isSupported()}))},t.prototype.getAction=function(e){return this._actions[e]||null},t.prototype.trigger=function(e,t,n){if(n=n||{},t===Ol.Type){if(!this._modelData||"string"!=typeof n.text||0===n.text.length)return;return"keyboard"===e&&this._onWillType.fire(n.text),this._modelData.cursor.trigger(e,t,n),void("keyboard"===e&&this._onDidType.fire(n.text))}if(t!==Ol.Paste){t===Ol.CompositionStart&&this._onCompositionStart.fire(),t===Ol.CompositionEnd&&this._onCompositionEnd.fire();var r=this.getAction(t);r?Promise.resolve(r.run()).then(void 0,Ke):this._modelData&&(this._triggerEditorCommand(e,t,n)||this._modelData.cursor.trigger(e,t,n))}else{if(!this._modelData||"string"!=typeof n.text||0===n.text.length)return;var i=this._modelData.cursor.getSelection().getStartPosition();this._modelData.cursor.trigger(e,t,n);var o=this._modelData.cursor.getSelection().getStartPosition();"keyboard"===e&&this._onDidPaste.fire(new Yr(i.lineNumber,i.column,o.lineNumber,o.column))}},t.prototype._triggerEditorCommand=function(e,t,n){var r=this,i=Er.getEditorCommand(t);return!!i&&((n=n||{}).source=e,this._instantiationService.invokeFunction((function(e){Promise.resolve(i.runEditorCommand(e,r,n)).then(void 0,Ke)})),!0)},t.prototype._getCursors=function(){return this._modelData?this._modelData.cursor:null},t.prototype.pushUndoStop=function(){return!!this._modelData&&(!this._configuration.editor.readOnly&&(this._modelData.model.pushStackElement(),!0))},t.prototype.executeEdits=function(e,t,n){return!!this._modelData&&(!this._configuration.editor.readOnly&&(r=n?Array.isArray(n)?function(){return n}:n:function(){return null},this._modelData.cursor.executeEdits(e,t,r),!0));var r},t.prototype.executeCommand=function(e,t){this._modelData&&this._modelData.cursor.trigger(e,Ol.ExecuteCommand,t)},t.prototype.executeCommands=function(e,t){this._modelData&&this._modelData.cursor.trigger(e,Ol.ExecuteCommands,t)},t.prototype.changeDecorations=function(e){return this._modelData?this._modelData.model.changeDecorations(e,this._id):null},t.prototype.getLineDecorations=function(e){return this._modelData?this._modelData.model.getLineDecorations(e,this._id,this._configuration.editor.readOnly):null},t.prototype.deltaDecorations=function(e,t){return this._modelData?0===e.length&&0===t.length?e:this._modelData.model.deltaDecorations(e,t,this._id):[]},t.prototype.removeDecorations=function(e){var t=this._decorationTypeKeysToIds[e];t&&this.deltaDecorations(t,[]),this._decorationTypeKeysToIds.hasOwnProperty(e)&&delete this._decorationTypeKeysToIds[e],this._decorationTypeSubtypes.hasOwnProperty(e)&&delete this._decorationTypeSubtypes[e]},t.prototype.getLayoutInfo=function(){return this._configuration.editor.layoutInfo},t.prototype.createOverviewRuler=function(e){return this._modelData&&this._modelData.hasRealView?this._modelData.view.createOverviewRuler(e):null},t.prototype.getDomNode=function(){return this._modelData&&this._modelData.hasRealView?this._modelData.view.domNode.domNode:null},t.prototype.delegateVerticalScrollbarMouseDown=function(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.delegateVerticalScrollbarMouseDown(e)},t.prototype.layout=function(e){this._configuration.observeReferenceElement(e),this.render()},t.prototype.focus=function(){this._modelData&&this._modelData.hasRealView&&this._modelData.view.focus()},t.prototype.hasTextFocus=function(){return!(!this._modelData||!this._modelData.hasRealView)&&this._modelData.view.isFocused()},t.prototype.hasWidgetFocus=function(){return this._focusTracker&&this._focusTracker.hasFocus()},t.prototype.addContentWidget=function(e){var t={widget:e,position:e.getPosition()};this._contentWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting a content widget with the same id."),this._contentWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addContentWidget(t)},t.prototype.layoutContentWidget=function(e){var t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){var n=this._contentWidgets[t];n.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutContentWidget(n)}},t.prototype.removeContentWidget=function(e){var t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){var n=this._contentWidgets[t];delete this._contentWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeContentWidget(n)}},t.prototype.addOverlayWidget=function(e){var t={widget:e,position:e.getPosition()};this._overlayWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting an overlay widget with the same id."),this._overlayWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addOverlayWidget(t)},t.prototype.layoutOverlayWidget=function(e){var t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){var n=this._overlayWidgets[t];n.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutOverlayWidget(n)}},t.prototype.removeOverlayWidget=function(e){var t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){var n=this._overlayWidgets[t];delete this._overlayWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeOverlayWidget(n)}},t.prototype.changeViewZones=function(e){this._modelData&&this._modelData.hasRealView&&(this._modelData.view.change(e)&&this._onDidChangeViewZones.fire())},t.prototype.getTargetAtClientPoint=function(e,t){return this._modelData&&this._modelData.hasRealView?this._modelData.view.getTargetAtClientPoint(e,t):null},t.prototype.getScrolledVisiblePosition=function(e){if(!this._modelData||!this._modelData.hasRealView)return null;var n=this._modelData.model.validatePosition(e),r=this._configuration.editor.layoutInfo;return{top:t._getVerticalOffsetForPosition(this._modelData,n.lineNumber,n.column)-this.getScrollTop(),left:this._modelData.view.getOffsetForColumn(n.lineNumber,n.column)+r.glyphMarginWidth+r.lineNumbersWidth+r.decorationsWidth-this.getScrollLeft(),height:this._configuration.editor.lineHeight}},t.prototype.getOffsetForColumn=function(e,t){return this._modelData&&this._modelData.hasRealView?this._modelData.view.getOffsetForColumn(e,t):-1},t.prototype.render=function(e){void 0===e&&(e=!1),this._modelData&&this._modelData.hasRealView&&this._modelData.view.render(!0,e)},t.prototype.applyFontInfo=function(e){ow.applyFontInfoSlow(e,this._configuration.editor.fontInfo)},t.prototype._attachModel=function(e){var t=this;if(e){var n=[];this._domElement.setAttribute("data-mode-id",e.getLanguageIdentifier().language),this._configuration.setIsDominatedByLongLines(e.isDominatedByLongLines()),this._configuration.setMaxLineNumber(e.getLineCount()),e.onBeforeAttached();var r=new bL(this._id,this._configuration,e,(function(e){return Jh(e)}));n.push(e.onDidChangeDecorations((function(e){return t._onDidChangeModelDecorations.fire(e)}))),n.push(e.onDidChangeLanguage((function(n){t._domElement.setAttribute("data-mode-id",e.getLanguageIdentifier().language),t._onDidChangeModelLanguage.fire(n)}))),n.push(e.onDidChangeLanguageConfiguration((function(e){return t._onDidChangeModelLanguageConfiguration.fire(e)}))),n.push(e.onDidChangeContent((function(e){return t._onDidChangeModelContent.fire(e)}))),n.push(e.onDidChangeOptions((function(e){return t._onDidChangeModelOptions.fire(e)}))),n.push(e.onWillDispose((function(){return t.setModel(null)})));var i=new $x(this._configuration,e,r);n.push(i.onDidReachMaxCursorCount((function(){t._notificationService.warn(Ee("cursors.maximum","The number of cursors has been limited to {0}.",$x.MAX_CURSOR_COUNT))}))),n.push(i.onDidAttemptReadOnlyEdit((function(){t._onDidAttemptReadOnlyEdit.fire(void 0)}))),n.push(i.onDidChange((function(e){for(var n=[],r=0,i=e.selections.length;r<i;r++)n[r]=e.selections[r].getPosition();var o={position:n[0],secondaryPositions:n.slice(1),reason:e.reason,source:e.source};t._onDidChangeCursorPosition.fire(o);var s={selection:e.selections[0],secondarySelections:e.selections.slice(1),source:e.source,reason:e.reason};t._onDidChangeCursorSelection.fire(s)})));var o=this._createView(r,i),s=o[0],a=o[1];if(a){this._domElement.appendChild(s.domNode.domNode);for(var u=Object.keys(this._contentWidgets),l=0,c=u.length;l<c;l++){var d=u[l];s.addContentWidget(this._contentWidgets[d])}for(l=0,c=(u=Object.keys(this._overlayWidgets)).length;l<c;l++){d=u[l];s.addOverlayWidget(this._overlayWidgets[d])}s.render(!1,!0),s.domNode.domNode.setAttribute("data-uri",e.uri.toString())}this._modelData=new EL(e,r,i,s,a,n)}else this._modelData=null},t.prototype._createView=function(e,t){var n,r=this;n=this.isSimpleWidget?{executeEditorCommand:function(e,n){e.runCoreEditorCommand(t,n)},paste:function(e,t,n,i){r.trigger(e,Ol.Paste,{text:t,pasteOnNewLine:n,multicursorText:i})},type:function(e,t){r.trigger(e,Ol.Type,{text:t})},replacePreviousChar:function(e,t,n){r.trigger(e,Ol.ReplacePreviousChar,{text:t,replaceCharCnt:n})},compositionStart:function(e){r.trigger(e,Ol.CompositionStart,void 0)},compositionEnd:function(e){r.trigger(e,Ol.CompositionEnd,void 0)},cut:function(e){r.trigger(e,Ol.Cut,void 0)}}:{executeEditorCommand:function(e,n){e.runCoreEditorCommand(t,n)},paste:function(e,t,n,i){r._commandService.executeCommand(Ol.Paste,{text:t,pasteOnNewLine:n,multicursorText:i})},type:function(e,t){r._commandService.executeCommand(Ol.Type,{text:t})},replacePreviousChar:function(e,t,n){r._commandService.executeCommand(Ol.ReplacePreviousChar,{text:t,replaceCharCnt:n})},compositionStart:function(e){r._commandService.executeCommand(Ol.CompositionStart,{})},compositionEnd:function(e){r._commandService.executeCommand(Ol.CompositionEnd,{})},cut:function(e){r._commandService.executeCommand(Ol.Cut,{})}};var i=new Wx(e);return i.onDidGainFocus=function(){r._editorTextFocus.setValue(!0),r._editorWidgetFocus.setValue(!0)},i.onDidScroll=function(e){return r._onDidScrollChange.fire(e)},i.onDidLoseFocus=function(){return r._editorTextFocus.setValue(!1)},i.onContextMenu=function(e){return r._onContextMenu.fire(e)},i.onMouseDown=function(e){return r._onMouseDown.fire(e)},i.onMouseUp=function(e){return r._onMouseUp.fire(e)},i.onMouseDrag=function(e){return r._onMouseDrag.fire(e)},i.onMouseDrop=function(e){return r._onMouseDrop.fire(e)},i.onKeyUp=function(e){return r._onKeyUp.fire(e)},i.onMouseMove=function(e){return r._onMouseMove.fire(e)},i.onMouseLeave=function(e){return r._onMouseLeave.fire(e)},i.onMouseWheel=function(e){return r._onMouseWheel.fire(e)},i.onKeyDown=function(e){return r._onKeyDown.fire(e)},[new Yx(n,this._configuration,this._themeService,e,t,i),!0]},t.prototype._postDetachModelCleanup=function(e){e&&e.removeAllDecorationsWithOwnerId(this._id)},t.prototype._detachModel=function(){if(!this._modelData)return null;var e=this._modelData.model,t=this._modelData.hasRealView?this._modelData.view.domNode.domNode:null;return this._modelData.dispose(),this._modelData=null,this._domElement.removeAttribute("data-mode-id"),t&&this._domElement.removeChild(t),e},t.prototype._removeDecorationType=function(e){this._codeEditorService.removeDecorationType(e)},t.prototype.hasModel=function(){return null!==this._modelData},t=LL([kL(3,bt),kL(4,xt),kL(5,rr),kL(6,Kn),kL(7,Id),kL(8,am),kL(9,CL)],t)}(Ft),NL=function(e){function t(){var t=e.call(this)||this;return t._onDidChangeToTrue=t._register(new $t),t.onDidChangeToTrue=t._onDidChangeToTrue.event,t._onDidChangeToFalse=t._register(new $t),t.onDidChangeToFalse=t._onDidChangeToFalse.event,t._value=0,t}return xL(t,e),t.prototype.setValue=function(e){var t=e?2:1;this._value!==t&&(this._value=t,2===this._value?this._onDidChangeToTrue.fire():1===this._value&&this._onDidChangeToFalse.fire())},t}(Ft),OL=function(e){function t(t,n){var r=e.call(this)||this;return r._editor=t,n.createKey("editorId",t.getId()),r._editorFocus=El.focus.bindTo(n),r._textInputFocus=El.textInputFocus.bindTo(n),r._editorTextFocus=El.editorTextFocus.bindTo(n),r._editorTabMovesFocus=El.tabMovesFocus.bindTo(n),r._editorReadonly=El.readOnly.bindTo(n),r._hasMultipleSelections=El.hasMultipleSelections.bindTo(n),r._hasNonEmptySelection=El.hasNonEmptySelection.bindTo(n),r._canUndo=El.canUndo.bindTo(n),r._canRedo=El.canRedo.bindTo(n),r._register(r._editor.onDidChangeConfiguration((function(){return r._updateFromConfig()}))),r._register(r._editor.onDidChangeCursorSelection((function(){return r._updateFromSelection()}))),r._register(r._editor.onDidFocusEditorWidget((function(){return r._updateFromFocus()}))),r._register(r._editor.onDidBlurEditorWidget((function(){return r._updateFromFocus()}))),r._register(r._editor.onDidFocusEditorText((function(){return r._updateFromFocus()}))),r._register(r._editor.onDidBlurEditorText((function(){return r._updateFromFocus()}))),r._register(r._editor.onDidChangeModel((function(){return r._updateFromModel()}))),r._register(r._editor.onDidChangeConfiguration((function(){return r._updateFromModel()}))),r._updateFromConfig(),r._updateFromSelection(),r._updateFromFocus(),r._updateFromModel(),r}return xL(t,e),t.prototype._updateFromConfig=function(){var e=this._editor.getConfiguration();this._editorTabMovesFocus.set(e.tabFocusMode),this._editorReadonly.set(e.readOnly)},t.prototype._updateFromSelection=function(){var e=this._editor.getSelections();e?(this._hasMultipleSelections.set(e.length>1),this._hasNonEmptySelection.set(e.some((function(e){return!e.isEmpty()})))):(this._hasMultipleSelections.reset(),this._hasNonEmptySelection.reset())},t.prototype._updateFromFocus=function(){this._editorFocus.set(this._editor.hasWidgetFocus()&&!this._editor.isSimpleWidget),this._editorTextFocus.set(this._editor.hasTextFocus()&&!this._editor.isSimpleWidget),this._textInputFocus.set(this._editor.hasTextFocus())},t.prototype._updateFromModel=function(){var e=this._editor.getModel();this._canUndo.set(Boolean(e&&e.canUndo())),this._canRedo.set(Boolean(e&&e.canRedo()))},t}(Ft),AL=function(e){function t(t,n){var r=e.call(this)||this;r._editor=t,r._contextKeyService=n,r._langId=El.languageId.bindTo(n),r._hasCompletionItemProvider=El.hasCompletionItemProvider.bindTo(n),r._hasCodeActionsProvider=El.hasCodeActionsProvider.bindTo(n),r._hasCodeLensProvider=El.hasCodeLensProvider.bindTo(n),r._hasDefinitionProvider=El.hasDefinitionProvider.bindTo(n),r._hasDeclarationProvider=El.hasDeclarationProvider.bindTo(n),r._hasImplementationProvider=El.hasImplementationProvider.bindTo(n),r._hasTypeDefinitionProvider=El.hasTypeDefinitionProvider.bindTo(n),r._hasHoverProvider=El.hasHoverProvider.bindTo(n),r._hasDocumentHighlightProvider=El.hasDocumentHighlightProvider.bindTo(n),r._hasDocumentSymbolProvider=El.hasDocumentSymbolProvider.bindTo(n),r._hasReferenceProvider=El.hasReferenceProvider.bindTo(n),r._hasRenameProvider=El.hasRenameProvider.bindTo(n),r._hasSignatureHelpProvider=El.hasSignatureHelpProvider.bindTo(n),r._hasDocumentFormattingProvider=El.hasDocumentFormattingProvider.bindTo(n),r._hasDocumentSelectionFormattingProvider=El.hasDocumentSelectionFormattingProvider.bindTo(n),r._hasMultipleDocumentFormattingProvider=El.hasMultipleDocumentFormattingProvider.bindTo(n),r._hasMultipleDocumentSelectionFormattingProvider=El.hasMultipleDocumentSelectionFormattingProvider.bindTo(n),r._isInWalkThrough=El.isInEmbeddedEditor.bindTo(n);var i=function(){return r._update()};return r._register(t.onDidChangeModel(i)),r._register(t.onDidChangeModelLanguage(i)),r._register(_a.onDidChange(i)),r._register(Ma.onDidChange(i)),r._register(ka.onDidChange(i)),r._register(Ca.onDidChange(i)),r._register(Sa.onDidChange(i)),r._register(xa.onDidChange(i)),r._register(La.onDidChange(i)),r._register(va.onDidChange(i)),r._register(wa.onDidChange(i)),r._register(ba.onDidChange(i)),r._register(pa.onDidChange(i)),r._register(ma.onDidChange(i)),r._register(Da.onDidChange(i)),r._register(Ea.onDidChange(i)),r._register(ya.onDidChange(i)),i(),r}return xL(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.reset=function(){var e=this;this._contextKeyService.bufferChangeEvents((function(){e._langId.reset(),e._hasCompletionItemProvider.reset(),e._hasCodeActionsProvider.reset(),e._hasCodeLensProvider.reset(),e._hasDefinitionProvider.reset(),e._hasDeclarationProvider.reset(),e._hasImplementationProvider.reset(),e._hasTypeDefinitionProvider.reset(),e._hasHoverProvider.reset(),e._hasDocumentHighlightProvider.reset(),e._hasDocumentSymbolProvider.reset(),e._hasReferenceProvider.reset(),e._hasRenameProvider.reset(),e._hasDocumentFormattingProvider.reset(),e._hasDocumentSelectionFormattingProvider.reset(),e._hasSignatureHelpProvider.reset(),e._isInWalkThrough.reset()}))},t.prototype._update=function(){var e=this,t=this._editor.getModel();t?this._contextKeyService.bufferChangeEvents((function(){e._langId.set(t.getLanguageIdentifier().language),e._hasCompletionItemProvider.set(_a.has(t)),e._hasCodeActionsProvider.set(Ma.has(t)),e._hasCodeLensProvider.set(ka.has(t)),e._hasDefinitionProvider.set(Ca.has(t)),e._hasDeclarationProvider.set(Sa.has(t)),e._hasImplementationProvider.set(xa.has(t)),e._hasTypeDefinitionProvider.set(La.has(t)),e._hasHoverProvider.set(va.has(t)),e._hasDocumentHighlightProvider.set(wa.has(t)),e._hasDocumentSymbolProvider.set(ba.has(t)),e._hasReferenceProvider.set(pa.has(t)),e._hasRenameProvider.set(ma.has(t)),e._hasSignatureHelpProvider.set(ya.has(t)),e._hasDocumentFormattingProvider.set(Da.has(t)||Ea.has(t)),e._hasDocumentSelectionFormattingProvider.set(Ea.has(t)),e._hasMultipleDocumentFormattingProvider.set(Da.all(t).length+Ea.all(t).length>1),e._hasMultipleDocumentSelectionFormattingProvider.set(Ea.all(t).length>1),e._isInWalkThrough.set(t.uri.scheme===Dh.walkThroughSnippet)})):this.reset()},t}(Ft),IL=function(e){function t(t){var n=e.call(this)||this;return n._onChange=n._register(new $t),n.onChange=n._onChange.event,n._hasFocus=!1,n._domFocusTracker=n._register(kf(t)),n._register(n._domFocusTracker.onDidFocus((function(){n._hasFocus=!0,n._onChange.fire(void 0)}))),n._register(n._domFocusTracker.onDidBlur((function(){n._hasFocus=!1,n._onChange.fire(void 0)}))),n}return xL(t,e),t.prototype.hasFocus=function(){return this._hasFocus},t}(Ft),PL=encodeURIComponent("<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 3' enable-background='new 0 0 6 3' height='3' width='6'><g fill='"),RL=encodeURIComponent("'><polygon points='5.5,0 2.5,3 1.1,3 4.1,0'/><polygon points='4,0 6,2 6,0.6 5.4,0'/><polygon points='0,2 1,3 2.4,3 0,0.6'/></g></svg>");function FL(e){return PL+encodeURIComponent(e.toString())+RL}var YL=encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" height="3" width="12"><g fill="'),jL=encodeURIComponent('"><circle cx="1" cy="1" r="1"/><circle cx="5" cy="1" r="1"/><circle cx="9" cy="1" r="1"/></g></svg>');Wd((function(e,t){var n=e.getColor($c);n&&t.addRule(".monaco-editor .squiggly-error { border-bottom: 4px double "+n+"; }");var r=e.getColor(Gc);r&&t.addRule('.monaco-editor .squiggly-error { background: url("data:image/svg+xml,'+FL(r)+'") repeat-x bottom left; }');var i=e.getColor(Xc);i&&t.addRule(".monaco-editor .squiggly-warning { border-bottom: 4px double "+i+"; }");var o=e.getColor(Zc);o&&t.addRule('.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,'+FL(o)+'") repeat-x bottom left; }');var s=e.getColor(Qc);s&&t.addRule(".monaco-editor .squiggly-info { border-bottom: 4px double "+s+"; }");var a=e.getColor(Jc);a&&t.addRule('.monaco-editor .squiggly-info { background: url("data:image/svg+xml,'+FL(a)+'") repeat-x bottom left; }');var u=e.getColor(td);u&&t.addRule(".monaco-editor .squiggly-hint { border-bottom: 2px dotted "+u+"; }");var l=e.getColor(ed);l&&t.addRule('.monaco-editor .squiggly-hint { background: url("data:image/svg+xml,'+(YL+encodeURIComponent(l.toString())+jL)+'") no-repeat bottom left; }');var c=e.getColor(MC);c&&t.addRule("."+DL+" .monaco-editor .squiggly-inline-unnecessary { opacity: "+c.rgba.a+"; }");var d=e.getColor(kC);d&&t.addRule("."+DL+" .monaco-editor .squiggly-unnecessary { border-bottom: 2px dashed "+d+"; }");var h=e.getColor(rd)||"inherit";t.addRule(".monaco-editor .squiggly-inline-deprecated { text-decoration: line-through; text-decoration-color: "+h+"}")}));n(351);var BL=function(e,t,n){void 0===t&&(t=[]),void 0===n&&(n=!1),this.ctor=e,this.staticArguments=t,this.supportsDelayedInstantiation=n},WL=[];var HL=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),VL=Ct("IEditorCancelService"),zL=new qn("cancellableOperation",!1);!function(e,t,n){WL.push([e,new BL(t,[],n)])}(VL,function(){function e(){this._tokens=new WeakMap}return e.prototype.add=function(e,t){var n,r=this._tokens.get(e);return r||(r=e.invokeWithinContext((function(e){return{key:zL.bindTo(e.get(Kn)),tokens:new Ut}})),this._tokens.set(e,r)),r.key.set(!0),n=r.tokens.push(t),function(){n&&(n(),r.key.set(!r.tokens.isEmpty()),n=void 0)}},e.prototype.cancel=function(e){var t=this._tokens.get(e);if(t){var n=t.tokens.pop();n&&(n.cancel(),t.key.set(!t.tokens.isEmpty()))}},e}(),!0);var UL=function(e){function t(t,n){var r=e.call(this,n)||this;return r.editor=t,r._unregister=t.invokeWithinContext((function(e){return e.get(VL).add(t,r)})),r}return HL(t,e),t.prototype.dispose=function(){this._unregister(),e.prototype.dispose.call(this)},t}(ks);Pr(new(function(e){function t(){return e.call(this,{id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:zL})||this}return HL(t,e),t.prototype.runEditorCommand=function(e,t){e.get(VL).cancel(t)},t}(Ar)));var qL=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),KL=(function(){function e(e,t){if(this.flags=t,0!=(1&this.flags)){var n=e.getModel();this.modelVersionId=n?an("{0}#{1}",n.uri.toString(),n.getVersionId()):null}else this.modelVersionId=null;0!=(4&this.flags)?this.position=e.getPosition():this.position=null,0!=(2&this.flags)?this.selection=e.getSelection():this.selection=null,0!=(8&this.flags)?(this.scrollLeft=e.getScrollLeft(),this.scrollTop=e.getScrollTop()):(this.scrollLeft=-1,this.scrollTop=-1)}e.prototype._equals=function(t){if(!(t instanceof e))return!1;var n=t;return this.modelVersionId===n.modelVersionId&&(this.scrollLeft===n.scrollLeft&&this.scrollTop===n.scrollTop&&(!(!this.position&&n.position||this.position&&!n.position||this.position&&n.position&&!this.position.equals(n.position))&&!(!this.selection&&n.selection||this.selection&&!n.selection||this.selection&&n.selection&&!this.selection.equalsRange(n.selection))))},e.prototype.validate=function(t){return this._equals(new e(t,this.flags))}}(),function(e){function t(t,n,r){var i=e.call(this,t,r)||this;return i.editor=t,i._listener=new Rt,4&n&&i._listener.add(t.onDidChangeCursorPosition((function(e){return i.cancel()}))),2&n&&i._listener.add(t.onDidChangeCursorSelection((function(e){return i.cancel()}))),8&n&&i._listener.add(t.onDidScrollChange((function(e){return i.cancel()}))),1&n&&(i._listener.add(t.onDidChangeModel((function(e){return i.cancel()}))),i._listener.add(t.onDidChangeModelContent((function(e){return i.cancel()})))),i}qL(t,e),t.prototype.dispose=function(){this._listener.dispose(),e.prototype.dispose.call(this)}}(UL),function(e){function t(t,n){var r=e.call(this,n)||this;return r._listener=t.onDidChangeContent((function(){return r.cancel()})),r}qL(t,e),t.prototype.dispose=function(){this._listener.dispose(),e.prototype.dispose.call(this)}}(ks),function(){function e(e,t){this._visiblePosition=e,this._visiblePositionScrollDelta=t}return e.capture=function(t){var n=null,r=0;if(0!==t.getScrollTop()){var i=t.getVisibleRanges();if(i.length>0){n=i[0].getStartPosition();var o=t.getTopForPosition(n.lineNumber,n.column);r=t.getScrollTop()-o}}return new e(n,r)},e.prototype.restore=function(e){if(this._visiblePosition){var t=e.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);e.setScrollTop(t+this._visiblePositionScrollDelta)}},e}()),GL=(n(352),function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),$L=function(){function e(e,t,n,r){this.originalLineStart=e,this.originalLineEnd=t,this.modifiedLineStart=n,this.modifiedLineEnd=r}return e.prototype.getType=function(){return 0===this.originalLineStart?1:0===this.modifiedLineStart?2:0},e}(),ZL=function(e){this.entries=e},XL=function(e){function t(t){var n=e.call(this)||this;return n._width=0,n._diffEditor=t,n._isVisible=!1,n.shadow=Dp(document.createElement("div")),n.shadow.setClassName("diff-review-shadow"),n.actionBarContainer=Dp(document.createElement("div")),n.actionBarContainer.setClassName("diff-review-actions"),n._actionBar=n._register(new Lp(n.actionBarContainer.domNode)),n._actionBar.push(new nn("diffreview.close",Ee("label.close","Close"),"close-diff-review",!0,(function(){return n.hide(),Promise.resolve(null)})),{label:!1,icon:!0}),n.domNode=Dp(document.createElement("div")),n.domNode.setClassName("diff-review monaco-editor-background"),n._content=Dp(document.createElement("div")),n._content.setClassName("diff-review-content"),n.scrollbar=n._register(new tg(n._content.domNode,{})),n.domNode.domNode.appendChild(n.scrollbar.getDomNode()),n._register(t.onDidUpdateDiff((function(){n._isVisible&&(n._diffs=n._compute(),n._render())}))),n._register(t.getModifiedEditor().onDidChangeCursorPosition((function(){n._isVisible&&n._render()}))),n._register(t.getOriginalEditor().onDidFocusEditorWidget((function(){n._isVisible&&n.hide()}))),n._register(t.getModifiedEditor().onDidFocusEditorWidget((function(){n._isVisible&&n.hide()}))),n._register($h(n.domNode.domNode,"click",(function(e){e.preventDefault();var t=function(e,t,n){for(;e;){if(Wh(e,t))return e;if(n)if("string"==typeof n){if(Wh(e,n))return null}else if(e===n)return null;e=e.parentNode}return null}(e.target,"diff-review-row");t&&n._goToRow(t)}))),n._register($h(n.domNode.domNode,"keydown",(function(e){(e.equals(18)||e.equals(2066)||e.equals(530))&&(e.preventDefault(),n._goToRow(n._getNextRow())),(e.equals(16)||e.equals(2064)||e.equals(528))&&(e.preventDefault(),n._goToRow(n._getPrevRow())),(e.equals(9)||e.equals(2057)||e.equals(521)||e.equals(1033))&&(e.preventDefault(),n.hide()),(e.equals(10)||e.equals(3))&&(e.preventDefault(),n.accept())}))),n._diffs=[],n._currentDiff=null,n}return GL(t,e),t.prototype.prev=function(){var e=0;if(this._isVisible||(this._diffs=this._compute()),this._isVisible){for(var t=-1,n=0,r=this._diffs.length;n<r;n++)if(this._diffs[n]===this._currentDiff){t=n;break}e=this._diffs.length+t-1}else e=this._findDiffIndex(this._diffEditor.getPosition());0!==this._diffs.length&&(e%=this._diffs.length,this._diffEditor.setPosition(new Lt(this._diffs[e].entries[0].modifiedLineStart,1)),this._isVisible=!0,this._diffEditor.doLayout(),this._render(),this._goToRow(this._getNextRow()))},t.prototype.next=function(){var e=0;if(this._isVisible||(this._diffs=this._compute()),this._isVisible){for(var t=-1,n=0,r=this._diffs.length;n<r;n++)if(this._diffs[n]===this._currentDiff){t=n;break}e=t+1}else e=this._findDiffIndex(this._diffEditor.getPosition());0!==this._diffs.length&&(e%=this._diffs.length,this._diffEditor.setPosition(new Lt(this._diffs[e].entries[0].modifiedLineStart,1)),this._isVisible=!0,this._diffEditor.doLayout(),this._render(),this._goToRow(this._getNextRow()))},t.prototype.accept=function(){var e=-1,t=this._getCurrentFocusedRow();if(t){var n=parseInt(t.getAttribute("data-line"),10);isNaN(n)||(e=n)}this.hide(),-1!==e&&(this._diffEditor.setPosition(new Lt(e,1)),this._diffEditor.revealPosition(new Lt(e,1),1))},t.prototype.hide=function(){this._isVisible=!1,this._diffEditor.focus(),this._diffEditor.doLayout(),this._render()},t.prototype._getPrevRow=function(){var e=this._getCurrentFocusedRow();return e?e.previousElementSibling?e.previousElementSibling:e:this._getFirstRow()},t.prototype._getNextRow=function(){var e=this._getCurrentFocusedRow();return e?e.nextElementSibling?e.nextElementSibling:e:this._getFirstRow()},t.prototype._getFirstRow=function(){return this.domNode.domNode.querySelector(".diff-review-row")},t.prototype._getCurrentFocusedRow=function(){var e=document.activeElement;return e&&/diff-review-row/.test(e.className)?e:null},t.prototype._goToRow=function(e){var t=this._getCurrentFocusedRow();e.tabIndex=0,e.focus(),t&&t!==e&&(t.tabIndex=-1),this.scrollbar.scanDomNode()},t.prototype.isVisible=function(){return this._isVisible},t.prototype.layout=function(e,t,n){this._width=t,this.shadow.setTop(e-6),this.shadow.setWidth(t),this.shadow.setHeight(this._isVisible?6:0),this.domNode.setTop(e),this.domNode.setWidth(t),this.domNode.setHeight(n),this._content.setHeight(n),this._content.setWidth(t),this._isVisible?(this.actionBarContainer.setAttribute("aria-hidden","false"),this.actionBarContainer.setDisplay("block")):(this.actionBarContainer.setAttribute("aria-hidden","true"),this.actionBarContainer.setDisplay("none"))},t.prototype._compute=function(){var e=this._diffEditor.getLineChanges();if(!e||0===e.length)return[];var n=this._diffEditor.getOriginalEditor().getModel(),r=this._diffEditor.getModifiedEditor().getModel();return n&&r?t._mergeAdjacent(e,n.getLineCount(),r.getLineCount()):[]},t._mergeAdjacent=function(e,t,n){if(!e||0===e.length)return[];for(var r=[],i=0,o=0,s=e.length;o<s;o++){var a=e[o],u=a.originalStartLineNumber,l=a.originalEndLineNumber,c=a.modifiedStartLineNumber,d=a.modifiedEndLineNumber,h=[],f=0,p=0===l?u:u-1,g=0===d?c:c-1,m=1,_=1;if(o>0){var y=e[o-1];m=0===y.originalEndLineNumber?y.originalStartLineNumber+1:y.originalEndLineNumber+1,_=0===y.modifiedEndLineNumber?y.modifiedStartLineNumber+1:y.modifiedEndLineNumber+1}var v=p-3+1,b=g-3+1;if(v<m)v+=k=m-v,b+=k;if(b<_)v+=k=_-b,b+=k;h[f++]=new $L(v,p,b,g),0!==l&&(h[f++]=new $L(u,l,0,0)),0!==d&&(h[f++]=new $L(0,0,c,d));var w=0===l?u+1:l+1,C=0===d?c+1:d+1,S=t,x=n;if(o+1<s){var L=e[o+1];S=0===L.originalEndLineNumber?L.originalStartLineNumber:L.originalStartLineNumber-1,x=0===L.modifiedEndLineNumber?L.modifiedStartLineNumber:L.modifiedStartLineNumber-1}var k,M=w+3-1,D=C+3-1;if(M>S)M+=k=S-M,D+=k;if(D>x)M+=k=x-D,D+=k;h[f++]=new $L(w,M,C,D),r[i++]=new ZL(h)}var E=r[0].entries,T=[],N=0;for(o=1,s=r.length;o<s;o++){var O=r[o].entries,A=E[E.length-1],I=O[0];0===A.getType()&&0===I.getType()&&I.originalLineStart<=A.originalLineEnd?(E[E.length-1]=new $L(A.originalLineStart,I.originalLineEnd,A.modifiedLineStart,I.modifiedLineEnd),E=E.concat(O.slice(1))):(T[N++]=new ZL(E),E=O)}return T[N++]=new ZL(E),T},t.prototype._findDiffIndex=function(e){for(var t=e.lineNumber,n=0,r=this._diffs.length;n<r;n++){var i=this._diffs[n].entries;if(t<=i[i.length-1].modifiedLineEnd)return n}return 0},t.prototype._render=function(){var e=this._diffEditor.getOriginalEditor().getConfiguration(),n=this._diffEditor.getModifiedEditor().getConfiguration(),r=this._diffEditor.getOriginalEditor().getModel(),i=this._diffEditor.getModifiedEditor().getModel(),o=r.getOptions(),s=i.getOptions();if(!this._isVisible||!r||!i)return Rh(this._content.domNode),this._currentDiff=null,void this.scrollbar.scanDomNode();var a=this._findDiffIndex(this._diffEditor.getPosition());if(this._diffs[a]!==this._currentDiff){this._currentDiff=this._diffs[a];var u=this._diffs[a].entries,l=document.createElement("div");l.className="diff-review-table",l.setAttribute("role","list"),ow.applyFontInfoSlow(l,n.fontInfo);for(var c=0,d=0,h=0,f=0,p=0,g=u.length;p<g;p++){var m=(D=u[p]).originalLineStart,_=D.originalLineEnd,y=D.modifiedLineStart,v=D.modifiedLineEnd;0!==m&&(0===c||m<c)&&(c=m),0!==_&&(0===d||_>d)&&(d=_),0!==y&&(0===h||y<h)&&(h=y),0!==v&&(0===f||v>f)&&(f=v)}var b=document.createElement("div");b.className="diff-review-row";var w=document.createElement("div");w.className="diff-review-cell diff-review-summary";var C=d-c+1,S=f-h+1;w.appendChild(document.createTextNode(a+1+"/"+this._diffs.length+": @@ -"+c+","+C+" +"+h+","+S+" @@")),b.setAttribute("data-line",String(h));var x=function(e){return 0===e?Ee("no_lines","no lines"):1===e?Ee("one_line","1 line"):Ee("more_lines","{0} lines",e)},L=x(C),k=x(S);b.setAttribute("aria-label",Ee({key:"header",comment:["This is the ARIA label for a git diff header.","A git diff header looks like this: @@ -154,12 +159,39 @@.","That encodes that at original line 154 (which is now line 159), 12 lines were removed/changed with 39 lines.","Variables 0 and 1 refer to the diff index out of total number of diffs.","Variables 2 and 4 will be numbers (a line number).",'Variables 3 and 5 will be "no lines", "1 line" or "X lines", localized separately.']},"Difference {0} of {1}: original {2}, {3}, modified {4}, {5}",a+1,this._diffs.length,c,L,h,k)),b.appendChild(w),b.setAttribute("role","listitem"),l.appendChild(b);var M=h;for(p=0,g=u.length;p<g;p++){var D=u[p];t._renderSection(l,D,M,this._width,e,r,o,n,i,s),0!==D.modifiedLineStart&&(M=D.modifiedLineEnd)}Rh(this._content.domNode),this._content.domNode.appendChild(l),this.scrollbar.scanDomNode()}},t._renderSection=function(e,t,n,r,i,o,s,a,u,l){var c=t.getType(),d="diff-review-row",h="",f="diff-review-spacer";switch(c){case 1:d="diff-review-row line-insert",h=" char-insert",f="diff-review-spacer insert-sign";break;case 2:d="diff-review-row line-delete",h=" char-delete",f="diff-review-spacer delete-sign"}for(var p=t.originalLineStart,g=t.originalLineEnd,m=t.modifiedLineStart,_=t.modifiedLineEnd,y=Math.max(_-m,g-p),v=i.layoutInfo.glyphMarginWidth+i.layoutInfo.lineNumbersWidth,b=10+a.layoutInfo.glyphMarginWidth+a.layoutInfo.lineNumbersWidth,w=0;w<=y;w++){var C=0===p?0:p+w,S=0===m?0:m+w,x=document.createElement("div");x.style.minWidth=r+"px",x.className=d,x.setAttribute("role","listitem"),0!==S&&(n=S),x.setAttribute("data-line",String(n));var L=document.createElement("div");L.className="diff-review-cell",x.appendChild(L);var k=document.createElement("span");k.style.width=v+"px",k.style.minWidth=v+"px",k.className="diff-review-line-number"+h,0!==C?k.appendChild(document.createTextNode(String(C))):k.innerHTML=" ",L.appendChild(k);var M=document.createElement("span");M.style.width=b+"px",M.style.minWidth=b+"px",M.style.paddingRight="10px",M.className="diff-review-line-number"+h,0!==S?M.appendChild(document.createTextNode(String(S))):M.innerHTML=" ",L.appendChild(M);var D=document.createElement("span");D.className=f,D.innerHTML="  ",L.appendChild(D);var E=void 0;0!==S?(L.insertAdjacentHTML("beforeend",this._renderLine(u,a,l.tabSize,S)),E=u.getLineContent(S)):(L.insertAdjacentHTML("beforeend",this._renderLine(o,i,s.tabSize,C)),E=o.getLineContent(C)),0===E.length&&(E=Ee("blankLine","blank"));var T="";switch(c){case 0:T=Ee("equalLine","original {0}, modified {1}: {2}",C,S,E);break;case 1:T=Ee("insertLine","+ modified {0}: {1}",S,E);break;case 2:T=Ee("deleteLine","- original {0}: {1}",C,E)}x.setAttribute("aria-label",T),e.appendChild(x)}},t._renderLine=function(e,t,n,r){var i=e.getLineContent(r),o=new Uint32Array(2);o[0]=i.length,o[1]=16793600;var s=new Ra(o,i),a=Gy.isBasicASCII(i,e.mightContainNonBasicASCII()),u=Gy.containsRTL(i,a,e.mightContainRTL());return Vy(new Yy(t.fontInfo.isMonospace&&!t.viewInfo.disableMonospaceOptimizations,t.fontInfo.canUseHalfwidthRightwardsArrow,i,!1,a,u,0,s,[],n,t.fontInfo.spaceWidth,t.viewInfo.stopRenderingLineAfter,t.viewInfo.renderWhitespace,t.viewInfo.renderControlCharacters,t.viewInfo.fontLigatures,null)).html},t}(Ft);Wd((function(e,t){var n=e.getColor(bC);n&&t.addRule(".monaco-diff-editor .diff-review-line-number { color: "+n+"; }");var r=e.getColor(Fc);r&&t.addRule(".monaco-diff-editor .diff-review-shadow { box-shadow: "+r+" 0 -6px 6px -6px inset; }")}));var JL=function(e){function t(){return e.call(this,{id:"editor.action.diffReview.next",label:Ee("editor.action.diffReview.next","Go to Next Difference"),alias:"Go to Next Difference",precondition:Rn.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:65,weight:100}})||this}return GL(t,e),t.prototype.run=function(e,t){var n=ek(e);n&&n.diffReviewNext()},t}(Ir),QL=function(e){function t(){return e.call(this,{id:"editor.action.diffReview.prev",label:Ee("editor.action.diffReview.prev","Go to Previous Difference"),alias:"Go to Previous Difference",precondition:Rn.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:1089,weight:100}})||this}return GL(t,e),t.prototype.run=function(e,t){var n=ek(e);n&&n.diffReviewPrev()},t}(Ir);function ek(e){for(var t=e.get(xt).listDiffEditors(),n=0,r=t.length;n<r;n++){var i=t[n];if(i.hasWidgetFocus())return i}return null}Rr(JL),Rr(QL);var tk=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),nk=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))},rk=function(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},ik=function(e){function t(t,n,r,i,o,s){var a=e.call(this)||this;a._viewZoneId=t,a._marginDomNode=n,a.editor=r,a.diff=i,a._contextMenuService=o,a._clipboardService=s,a._visibility=!1,a._marginDomNode.style.zIndex="10",a._diffActions=document.createElement("div"),a._diffActions.className="lightbulb-glyph",a._diffActions.style.position="absolute";var u=r.getConfiguration().lineHeight,l=r.getModel().getEOL();a._diffActions.style.right="0px",a._diffActions.style.visibility="hidden",a._diffActions.style.height=u+"px",a._diffActions.style.lineHeight=u+"px",a._marginDomNode.appendChild(a._diffActions);var c=[];c.push(new nn("diff.clipboard.copyDeletedContent",i.originalEndLineNumber>i.modifiedStartLineNumber?Ee("diff.clipboard.copyDeletedLinesContent.label","Copy deleted lines"):Ee("diff.clipboard.copyDeletedLinesContent.single.label","Copy deleted line"),void 0,!0,(function(){return nk(a,void 0,void 0,(function(){return rk(this,(function(e){switch(e.label){case 0:return[4,this._clipboardService.writeText(i.originalContent.join(l)+l)];case 1:return e.sent(),[2]}}))}))})));var d=0,h=void 0;return i.originalEndLineNumber>i.modifiedStartLineNumber&&(h=new nn("diff.clipboard.copyDeletedLineContent",Ee("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",i.originalStartLineNumber),void 0,!0,(function(){return nk(a,void 0,void 0,(function(){return rk(this,(function(e){switch(e.label){case 0:return[4,this._clipboardService.writeText(i.originalContent[d])];case 1:return e.sent(),[2]}}))}))})),c.push(h)),r.getConfiguration().readOnly||c.push(new nn("diff.inline.revertChange",Ee("diff.inline.revertChange.label","Revert this change"),void 0,!0,(function(){return nk(a,void 0,void 0,(function(){var e;return rk(this,(function(t){return 0===i.modifiedEndLineNumber?(e=r.getModel().getLineMaxColumn(i.modifiedStartLineNumber),r.executeEdits("diffEditor",[{range:new Yr(i.modifiedStartLineNumber,e,i.modifiedStartLineNumber,e),text:l+i.originalContent.join(l)}])):(e=r.getModel().getLineMaxColumn(i.modifiedEndLineNumber),r.executeEdits("diffEditor",[{range:new Yr(i.modifiedStartLineNumber,1,i.modifiedEndLineNumber,e),text:i.originalContent.join(l)}])),[2]}))}))}))),a._register($h(a._diffActions,"mousedown",(function(e){var t=pf(a._diffActions),n=t.top,r=t.height,o=Math.floor(u/3);e.preventDefault(),a._contextMenuService.showContextMenu({getAnchor:function(){return{x:e.posx,y:n+r+o}},getActions:function(){return h&&(h.label=Ee("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",i.originalStartLineNumber+d)),c},autoSelectFirstItem:!0})}))),a._register(r.onMouseMove((function(e){8===e.target.type||5===e.target.type?e.target.detail.viewZoneId===a._viewZoneId?(a.visibility=!0,d=a._updateLightBulbPosition(a._marginDomNode,e.event.browserEvent.y,u)):a.visibility=!1:a.visibility=!1}))),a}return tk(t,e),Object.defineProperty(t.prototype,"visibility",{get:function(){return this._visibility},set:function(e){this._visibility!==e&&(this._visibility=e,this._diffActions.style.visibility=e?"visible":"hidden")},enumerable:!0,configurable:!0}),t.prototype._updateLightBulbPosition=function(e,t,n){var r=t-pf(e).top,i=Math.floor(r/n),o=i*n;return this._diffActions.style.top=o+"px",i},t}(Ft),ok=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),sk=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},ak=function(e,t){return function(n,r){t(n,r,e)}},uk=function(){function e(e,t){this._contextMenuService=e,this._clipboardService=t,this._zones=[],this.inlineDiffMargins=[],this._zonesMap={},this._decorations=[]}return e.prototype.getForeignViewZones=function(e){var t=this;return e.filter((function(e){return!t._zonesMap[String(e.id)]}))},e.prototype.clean=function(e){var t=this;this._zones.length>0&&e.changeViewZones((function(e){for(var n=0,r=t._zones.length;n<r;n++)e.removeZone(t._zones[n])})),this._zones=[],this._zonesMap={},this._decorations=e.deltaDecorations(this._decorations,[])},e.prototype.apply=function(e,t,n,r){var i=this,o=r?KL.capture(e):null;e.changeViewZones((function(t){for(var r=0,o=i._zones.length;r<o;r++)t.removeZone(i._zones[r]);r=0;for(var s=i.inlineDiffMargins.length;r<s;r++)i.inlineDiffMargins[r].dispose();i._zones=[],i._zonesMap={},i.inlineDiffMargins=[];r=0;for(var a=n.zones.length;r<a;r++){var u=n.zones[r];u.suppressMouseDown=!1;var l=t.addZone(u);i._zones.push(l),i._zonesMap[String(l)]=!0,n.zones[r].diff&&u.marginDomNode&&i._clipboardService&&i.inlineDiffMargins.push(new ik(l,u.marginDomNode,e,n.zones[r].diff,i._contextMenuService,i._clipboardService))}})),o&&o.restore(e),this._decorations=e.deltaDecorations(this._decorations,n.decorations),t&&t.setZones(n.overviewZones)},e}(),lk=0,ck=function(e){function t(n,r,i,o,s,a,u,l,c,d){var h=e.call(this)||this;h._onDidDispose=h._register(new $t),h.onDidDispose=h._onDidDispose.event,h._onDidUpdateDiff=h._register(new $t),h.onDidUpdateDiff=h._onDidUpdateDiff.event,h._lastOriginalWarning=null,h._lastModifiedWarning=null,h._editorWorkerService=o,h._codeEditorService=u,h._contextKeyService=h._register(s.createScoped(n)),h._contextKeyService.createKey("isInDiffEditor",!0),h._themeService=l,h._notificationService=c,h.id=++lk,h._domElement=n,r=r||{},h._renderSideBySide=!0,void 0!==r.renderSideBySide&&(h._renderSideBySide=r.renderSideBySide),h._ignoreTrimWhitespace=!0,void 0!==r.ignoreTrimWhitespace&&(h._ignoreTrimWhitespace=r.ignoreTrimWhitespace),h._renderIndicators=!0,void 0!==r.renderIndicators&&(h._renderIndicators=r.renderIndicators),h._originalIsEditable=!1,void 0!==r.originalEditable&&(h._originalIsEditable=Boolean(r.originalEditable)),h._updateDecorationsRunner=h._register(new As((function(){return h._updateDecorations()}),0)),h._containerDomElement=document.createElement("div"),h._containerDomElement.className=t._getClassName(h._themeService.getTheme(),h._renderSideBySide),h._containerDomElement.style.position="relative",h._containerDomElement.style.height="100%",h._domElement.appendChild(h._containerDomElement),h._overviewViewportDomElement=Dp(document.createElement("div")),h._overviewViewportDomElement.setClassName("diffViewport"),h._overviewViewportDomElement.setPosition("absolute"),h._overviewDomElement=document.createElement("div"),h._overviewDomElement.className="diffOverview",h._overviewDomElement.style.position="absolute",h._overviewDomElement.appendChild(h._overviewViewportDomElement.domNode),h._register($h(h._overviewDomElement,"mousedown",(function(e){h.modifiedEditor.delegateVerticalScrollbarMouseDown(e)}))),h._containerDomElement.appendChild(h._overviewDomElement),h._originalDomNode=document.createElement("div"),h._originalDomNode.className="editor original",h._originalDomNode.style.position="absolute",h._originalDomNode.style.height="100%",h._containerDomElement.appendChild(h._originalDomNode),h._modifiedDomNode=document.createElement("div"),h._modifiedDomNode.className="editor modified",h._modifiedDomNode.style.position="absolute",h._modifiedDomNode.style.height="100%",h._containerDomElement.appendChild(h._modifiedDomNode),h._beginUpdateDecorationsTimeout=-1,h._currentlyChangingViewZones=!1,h._diffComputationToken=0,h._originalEditorState=new uk(d,i),h._modifiedEditorState=new uk(d,i),h._isVisible=!0,h._isHandlingScrollEvent=!1,h._width=0,h._height=0,h._reviewHeight=0,h._diffComputationResult=null;var f=h._contextKeyService.createScoped();f.createKey("isInDiffLeftEditor",!0);var p=new wL;p.set(Kn,f);var g=a.createChild(p),m=h._contextKeyService.createScoped();m.createKey("isInDiffRightEditor",!0);var _=new wL;_.set(Kn,m);var y=a.createChild(_);return h.originalEditor=h._createLeftHandSideEditor(r,g),h.modifiedEditor=h._createRightHandSideEditor(r,y),h._originalOverviewRuler=null,h._modifiedOverviewRuler=null,h._reviewPane=new XL(h),h._containerDomElement.appendChild(h._reviewPane.domNode.domNode),h._containerDomElement.appendChild(h._reviewPane.shadow.domNode),h._containerDomElement.appendChild(h._reviewPane.actionBarContainer.domNode),r.automaticLayout?(h._measureDomElementToken=new Os,h._measureDomElementToken.cancelAndSet((function(){return h._measureDomElement(!1)}),100)):h._measureDomElementToken=null,h._enableSplitViewResizing=!0,void 0!==r.enableSplitViewResizing&&(h._enableSplitViewResizing=r.enableSplitViewResizing),h._renderSideBySide?h._setStrategy(new mk(h._createDataSource(),h._enableSplitViewResizing)):h._setStrategy(new yk(h._createDataSource(),h._enableSplitViewResizing)),h._register(l.onThemeChange((function(e){h._strategy&&h._strategy.applyColors(e)&&h._updateDecorationsRunner.schedule(),h._containerDomElement.className=t._getClassName(h._themeService.getTheme(),h._renderSideBySide)}))),h._codeEditorService.addDiffEditor(h),h}return ok(t,e),t.prototype.hasWidgetFocus=function(){return vf(document.activeElement,this._domElement)},t.prototype.diffReviewNext=function(){this._reviewPane.next()},t.prototype.diffReviewPrev=function(){this._reviewPane.prev()},t._getClassName=function(e,t){var n="monaco-diff-editor monaco-editor-background ";return t&&(n+="side-by-side "),n+=Yd(e.type)},t.prototype._recreateOverviewRulers=function(){this._originalOverviewRuler&&(this._overviewDomElement.removeChild(this._originalOverviewRuler.getDomNode()),this._originalOverviewRuler.dispose()),this.originalEditor.hasModel()&&(this._originalOverviewRuler=this.originalEditor.createOverviewRuler("original diffOverviewRuler"),this._overviewDomElement.appendChild(this._originalOverviewRuler.getDomNode())),this._modifiedOverviewRuler&&(this._overviewDomElement.removeChild(this._modifiedOverviewRuler.getDomNode()),this._modifiedOverviewRuler.dispose()),this.modifiedEditor.hasModel()&&(this._modifiedOverviewRuler=this.modifiedEditor.createOverviewRuler("modified diffOverviewRuler"),this._overviewDomElement.appendChild(this._modifiedOverviewRuler.getDomNode())),this._layoutOverviewRulers()},t.prototype._createLeftHandSideEditor=function(e,t){var n=this,r=this._createInnerEditor(t,this._originalDomNode,this._adjustOptionsForLeftHandSide(e,this._originalIsEditable));return this._register(r.onDidScrollChange((function(e){n._isHandlingScrollEvent||(e.scrollTopChanged||e.scrollLeftChanged||e.scrollHeightChanged)&&(n._isHandlingScrollEvent=!0,n.modifiedEditor.setScrollPosition({scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}),n._isHandlingScrollEvent=!1,n._layoutOverviewViewport())}))),this._register(r.onDidChangeViewZones((function(){n._onViewZonesChanged()}))),this._register(r.onDidChangeModelContent((function(){n._isVisible&&n._beginUpdateDecorationsSoon()}))),r},t.prototype._createRightHandSideEditor=function(e,t){var n=this,r=this._createInnerEditor(t,this._modifiedDomNode,this._adjustOptionsForRightHandSide(e));return this._register(r.onDidScrollChange((function(e){n._isHandlingScrollEvent||(e.scrollTopChanged||e.scrollLeftChanged||e.scrollHeightChanged)&&(n._isHandlingScrollEvent=!0,n.originalEditor.setScrollPosition({scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}),n._isHandlingScrollEvent=!1,n._layoutOverviewViewport())}))),this._register(r.onDidChangeViewZones((function(){n._onViewZonesChanged()}))),this._register(r.onDidChangeConfiguration((function(e){e.fontInfo&&r.getModel()&&n._onViewZonesChanged()}))),this._register(r.onDidChangeModelContent((function(){n._isVisible&&n._beginUpdateDecorationsSoon()}))),r},t.prototype._createInnerEditor=function(e,t,n){return e.createInstance(TL,t,n,{})},t.prototype.dispose=function(){this._codeEditorService.removeDiffEditor(this),-1!==this._beginUpdateDecorationsTimeout&&(window.clearTimeout(this._beginUpdateDecorationsTimeout),this._beginUpdateDecorationsTimeout=-1),this._measureDomElementToken&&this._measureDomElementToken.dispose(),this._cleanViewZonesAndDecorations(),this._originalOverviewRuler&&(this._overviewDomElement.removeChild(this._originalOverviewRuler.getDomNode()),this._originalOverviewRuler.dispose()),this._modifiedOverviewRuler&&(this._overviewDomElement.removeChild(this._modifiedOverviewRuler.getDomNode()),this._modifiedOverviewRuler.dispose()),this._overviewDomElement.removeChild(this._overviewViewportDomElement.domNode),this._containerDomElement.removeChild(this._overviewDomElement),this._containerDomElement.removeChild(this._originalDomNode),this.originalEditor.dispose(),this._containerDomElement.removeChild(this._modifiedDomNode),this.modifiedEditor.dispose(),this._strategy.dispose(),this._containerDomElement.removeChild(this._reviewPane.domNode.domNode),this._containerDomElement.removeChild(this._reviewPane.shadow.domNode),this._containerDomElement.removeChild(this._reviewPane.actionBarContainer.domNode),this._reviewPane.dispose(),this._domElement.removeChild(this._containerDomElement),this._onDidDispose.fire(),e.prototype.dispose.call(this)},t.prototype.getId=function(){return this.getEditorType()+":"+this.id},t.prototype.getEditorType=function(){return Nl.IDiffEditor},t.prototype.getLineChanges=function(){return this._diffComputationResult?this._diffComputationResult.changes:null},t.prototype.getOriginalEditor=function(){return this.originalEditor},t.prototype.getModifiedEditor=function(){return this.modifiedEditor},t.prototype.updateOptions=function(e){var n=!1;void 0!==e.renderSideBySide&&this._renderSideBySide!==e.renderSideBySide&&(this._renderSideBySide=e.renderSideBySide,n=!0);var r=!1;void 0!==e.ignoreTrimWhitespace&&this._ignoreTrimWhitespace!==e.ignoreTrimWhitespace&&(this._ignoreTrimWhitespace=e.ignoreTrimWhitespace,r=!0),void 0!==e.renderIndicators&&this._renderIndicators!==e.renderIndicators&&(this._renderIndicators=e.renderIndicators,r=!0),r&&this._beginUpdateDecorations(),void 0!==e.originalEditable&&(this._originalIsEditable=Boolean(e.originalEditable)),this.modifiedEditor.updateOptions(this._adjustOptionsForRightHandSide(e)),this.originalEditor.updateOptions(this._adjustOptionsForLeftHandSide(e,this._originalIsEditable)),void 0!==e.enableSplitViewResizing&&(this._enableSplitViewResizing=e.enableSplitViewResizing),this._strategy.setEnableSplitViewResizing(this._enableSplitViewResizing),n&&(this._renderSideBySide?this._setStrategy(new mk(this._createDataSource(),this._enableSplitViewResizing)):this._setStrategy(new yk(this._createDataSource(),this._enableSplitViewResizing)),this._containerDomElement.className=t._getClassName(this._themeService.getTheme(),this._renderSideBySide))},t.prototype.getModel=function(){return{original:this.originalEditor.getModel(),modified:this.modifiedEditor.getModel()}},t.prototype.setModel=function(e){if(e&&(!e.original||!e.modified))throw new Error(e.original?"DiffEditorWidget.setModel: Modified model is null":"DiffEditorWidget.setModel: Original model is null");this._cleanViewZonesAndDecorations(),this.originalEditor.setModel(e?e.original:null),this.modifiedEditor.setModel(e?e.modified:null),this._updateDecorationsRunner.cancel(),e&&(this.originalEditor.setScrollTop(0),this.modifiedEditor.setScrollTop(0)),this._diffComputationResult=null,this._diffComputationToken++,e?(this._recreateOverviewRulers(),this._beginUpdateDecorations()):this._diffComputationResult=null,this._layoutOverviewViewport()},t.prototype.getDomNode=function(){return this._domElement},t.prototype.getVisibleColumnFromPosition=function(e){return this.modifiedEditor.getVisibleColumnFromPosition(e)},t.prototype.getPosition=function(){return this.modifiedEditor.getPosition()},t.prototype.setPosition=function(e){this.modifiedEditor.setPosition(e)},t.prototype.revealLine=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealLine(e,t)},t.prototype.revealLineInCenter=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealLineInCenter(e,t)},t.prototype.revealLineInCenterIfOutsideViewport=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealLineInCenterIfOutsideViewport(e,t)},t.prototype.revealPosition=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealPosition(e,t)},t.prototype.revealPositionInCenter=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealPositionInCenter(e,t)},t.prototype.revealPositionInCenterIfOutsideViewport=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealPositionInCenterIfOutsideViewport(e,t)},t.prototype.getSelection=function(){return this.modifiedEditor.getSelection()},t.prototype.getSelections=function(){return this.modifiedEditor.getSelections()},t.prototype.setSelection=function(e){this.modifiedEditor.setSelection(e)},t.prototype.setSelections=function(e){this.modifiedEditor.setSelections(e)},t.prototype.revealLines=function(e,t,n){void 0===n&&(n=0),this.modifiedEditor.revealLines(e,t,n)},t.prototype.revealLinesInCenter=function(e,t,n){void 0===n&&(n=0),this.modifiedEditor.revealLinesInCenter(e,t,n)},t.prototype.revealLinesInCenterIfOutsideViewport=function(e,t,n){void 0===n&&(n=0),this.modifiedEditor.revealLinesInCenterIfOutsideViewport(e,t,n)},t.prototype.revealRange=function(e,t,n,r){void 0===t&&(t=0),void 0===n&&(n=!1),void 0===r&&(r=!0),this.modifiedEditor.revealRange(e,t,n,r)},t.prototype.revealRangeInCenter=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealRangeInCenter(e,t)},t.prototype.revealRangeInCenterIfOutsideViewport=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealRangeInCenterIfOutsideViewport(e,t)},t.prototype.revealRangeAtTop=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealRangeAtTop(e,t)},t.prototype.getSupportedActions=function(){return this.modifiedEditor.getSupportedActions()},t.prototype.saveViewState=function(){return{original:this.originalEditor.saveViewState(),modified:this.modifiedEditor.saveViewState()}},t.prototype.restoreViewState=function(e){if(e.original&&e.modified){var t=e;this.originalEditor.restoreViewState(t.original),this.modifiedEditor.restoreViewState(t.modified)}},t.prototype.layout=function(e){this._measureDomElement(!1,e)},t.prototype.focus=function(){this.modifiedEditor.focus()},t.prototype.hasTextFocus=function(){return this.originalEditor.hasTextFocus()||this.modifiedEditor.hasTextFocus()},t.prototype.trigger=function(e,t,n){this.modifiedEditor.trigger(e,t,n)},t.prototype.changeDecorations=function(e){return this.modifiedEditor.changeDecorations(e)},t.prototype._measureDomElement=function(e,t){if((t=t||{width:this._containerDomElement.clientWidth,height:this._containerDomElement.clientHeight}).width<=0)return this._width=0,this._height=0,void(this._reviewHeight=0);(e||t.width!==this._width||t.height!==this._height)&&(this._width=t.width,this._height=t.height,this._reviewHeight=this._reviewPane.isVisible()?this._height:0,this._doLayout())},t.prototype._layoutOverviewRulers=function(){if(this._originalOverviewRuler&&this._modifiedOverviewRuler){var e=t.ENTIRE_DIFF_OVERVIEW_WIDTH-2*t.ONE_OVERVIEW_WIDTH;this.modifiedEditor.getLayoutInfo()&&(this._originalOverviewRuler.setLayout({top:0,width:t.ONE_OVERVIEW_WIDTH,right:e+t.ONE_OVERVIEW_WIDTH,height:this._height-this._reviewHeight}),this._modifiedOverviewRuler.setLayout({top:0,right:0,width:t.ONE_OVERVIEW_WIDTH,height:this._height-this._reviewHeight}))}},t.prototype._onViewZonesChanged=function(){this._currentlyChangingViewZones||this._updateDecorationsRunner.schedule()},t.prototype._beginUpdateDecorationsSoon=function(){var e=this;-1!==this._beginUpdateDecorationsTimeout&&(window.clearTimeout(this._beginUpdateDecorationsTimeout),this._beginUpdateDecorationsTimeout=-1),this._beginUpdateDecorationsTimeout=window.setTimeout((function(){return e._beginUpdateDecorations()}),t.UPDATE_DIFF_DECORATIONS_DELAY)},t._equals=function(e,t){return!e&&!t||!(!e||!t)&&e.toString()===t.toString()},t.prototype._beginUpdateDecorations=function(){var e=this;this._beginUpdateDecorationsTimeout=-1;var n=this.originalEditor.getModel(),r=this.modifiedEditor.getModel();if(n&&r){this._diffComputationToken++;var i=this._diffComputationToken;this._editorWorkerService.canComputeDiff(n.uri,r.uri)?this._editorWorkerService.computeDiff(n.uri,r.uri,this._ignoreTrimWhitespace).then((function(t){i===e._diffComputationToken&&n===e.originalEditor.getModel()&&r===e.modifiedEditor.getModel()&&(e._diffComputationResult=t,e._updateDecorationsRunner.schedule(),e._onDidUpdateDiff.fire())}),(function(t){i===e._diffComputationToken&&n===e.originalEditor.getModel()&&r===e.modifiedEditor.getModel()&&(e._diffComputationResult=null,e._updateDecorationsRunner.schedule())})):t._equals(n.uri,this._lastOriginalWarning)&&t._equals(r.uri,this._lastModifiedWarning)||(this._lastOriginalWarning=n.uri,this._lastModifiedWarning=r.uri,this._notificationService.warn(Ee("diff.tooLarge","Cannot compare files because one file is too large.")))}},t.prototype._cleanViewZonesAndDecorations=function(){this._originalEditorState.clean(this.originalEditor),this._modifiedEditorState.clean(this.modifiedEditor)},t.prototype._updateDecorations=function(){if(this.originalEditor.getModel()&&this.modifiedEditor.getModel()&&this._originalOverviewRuler&&this._modifiedOverviewRuler){var e=this._diffComputationResult?this._diffComputationResult.changes:[],t=this._originalEditorState.getForeignViewZones(this.originalEditor.getWhitespaces()),n=this._modifiedEditorState.getForeignViewZones(this.modifiedEditor.getWhitespaces()),r=this._strategy.getEditorsDiffDecorations(e,this._ignoreTrimWhitespace,this._renderIndicators,t,n,this.originalEditor,this.modifiedEditor);try{this._currentlyChangingViewZones=!0,this._originalEditorState.apply(this.originalEditor,this._originalOverviewRuler,r.original,!1),this._modifiedEditorState.apply(this.modifiedEditor,this._modifiedOverviewRuler,r.modified,!0)}finally{this._currentlyChangingViewZones=!1}}},t.prototype._adjustOptionsForSubEditor=function(e){var t=Zr(e||{});return t.inDiffEditor=!0,t.wordWrap="off",t.wordWrapMinified=!1,t.automaticLayout=!1,t.scrollbar=t.scrollbar||{},t.scrollbar.vertical="visible",t.folding=!1,t.codeLens=!1,t.fixedOverflowWidgets=!0,t.minimap||(t.minimap={}),t.minimap.enabled=!1,t},t.prototype._adjustOptionsForLeftHandSide=function(e,t){var n=this._adjustOptionsForSubEditor(e);return n.readOnly=!t,n.overviewRulerLanes=1,n.extraEditorClassName="original-in-monaco-diff-editor",n},t.prototype._adjustOptionsForRightHandSide=function(e){var n=this._adjustOptionsForSubEditor(e);return n.revealHorizontalRightPadding=Si.viewInfo.revealHorizontalRightPadding+t.ENTIRE_DIFF_OVERVIEW_WIDTH,n.scrollbar.verticalHasArrows=!1,n.extraEditorClassName="modified-in-monaco-diff-editor",n},t.prototype.doLayout=function(){this._measureDomElement(!0)},t.prototype._doLayout=function(){var e=this._strategy.layout();this._originalDomNode.style.width=e+"px",this._originalDomNode.style.left="0px",this._modifiedDomNode.style.width=this._width-e+"px",this._modifiedDomNode.style.left=e+"px",this._overviewDomElement.style.top="0px",this._overviewDomElement.style.height=this._height-this._reviewHeight+"px",this._overviewDomElement.style.width=t.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewDomElement.style.left=this._width-t.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewViewportDomElement.setWidth(t.ENTIRE_DIFF_OVERVIEW_WIDTH),this._overviewViewportDomElement.setHeight(30),this.originalEditor.layout({width:e,height:this._height-this._reviewHeight}),this.modifiedEditor.layout({width:this._width-e-t.ENTIRE_DIFF_OVERVIEW_WIDTH,height:this._height-this._reviewHeight}),(this._originalOverviewRuler||this._modifiedOverviewRuler)&&this._layoutOverviewRulers(),this._reviewPane.layout(this._height-this._reviewHeight,this._width,this._reviewHeight),this._layoutOverviewViewport()},t.prototype._layoutOverviewViewport=function(){var e=this._computeOverviewViewport();e?(this._overviewViewportDomElement.setTop(e.top),this._overviewViewportDomElement.setHeight(e.height)):(this._overviewViewportDomElement.setTop(0),this._overviewViewportDomElement.setHeight(0))},t.prototype._computeOverviewViewport=function(){var e=this.modifiedEditor.getLayoutInfo();if(!e)return null;var t=this.modifiedEditor.getScrollTop(),n=this.modifiedEditor.getScrollHeight(),r=Math.max(0,e.contentHeight),i=Math.max(0,r-0),o=n>0?i/n:0;return{height:Math.max(0,Math.floor(e.contentHeight*o)),top:Math.floor(t*o)}},t.prototype._createDataSource=function(){var e=this;return{getWidth:function(){return e._width},getHeight:function(){return e._height-e._reviewHeight},getContainerDomNode:function(){return e._containerDomElement},relayoutEditors:function(){e._doLayout()},getOriginalEditor:function(){return e.originalEditor},getModifiedEditor:function(){return e.modifiedEditor}}},t.prototype._setStrategy=function(e){this._strategy&&this._strategy.dispose(),this._strategy=e,e.applyColors(this._themeService.getTheme()),this._diffComputationResult&&this._updateDecorations(),this._measureDomElement(!0)},t.prototype._getLineChangeAtOrBeforeLineNumber=function(e,t){var n=this._diffComputationResult?this._diffComputationResult.changes:[];if(0===n.length||e<t(n[0]))return null;for(var r=0,i=n.length-1;r<i;){var o=Math.floor((r+i)/2),s=t(n[o]),a=o+1<=i?t(n[o+1]):Number.MAX_VALUE;e<s?i=o-1:e>=a?r=o+1:(r=o,i=o)}return n[r]},t.prototype._getEquivalentLineForOriginalLineNumber=function(e){var t=this._getLineChangeAtOrBeforeLineNumber(e,(function(e){return e.originalStartLineNumber}));if(!t)return e;var n=t.originalStartLineNumber+(t.originalEndLineNumber>0?-1:0),r=t.modifiedStartLineNumber+(t.modifiedEndLineNumber>0?-1:0),i=t.originalEndLineNumber>0?t.originalEndLineNumber-t.originalStartLineNumber+1:0,o=t.modifiedEndLineNumber>0?t.modifiedEndLineNumber-t.modifiedStartLineNumber+1:0,s=e-n;return s<=i?r+Math.min(s,o):r+o-i+s},t.prototype._getEquivalentLineForModifiedLineNumber=function(e){var t=this._getLineChangeAtOrBeforeLineNumber(e,(function(e){return e.modifiedStartLineNumber}));if(!t)return e;var n=t.originalStartLineNumber+(t.originalEndLineNumber>0?-1:0),r=t.modifiedStartLineNumber+(t.modifiedEndLineNumber>0?-1:0),i=t.originalEndLineNumber>0?t.originalEndLineNumber-t.originalStartLineNumber+1:0,o=t.modifiedEndLineNumber>0?t.modifiedEndLineNumber-t.modifiedStartLineNumber+1:0,s=e-r;return s<=o?n+Math.min(s,i):n+i-o+s},t.prototype.getDiffLineInformationForOriginal=function(e){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForOriginalLineNumber(e)}:null},t.prototype.getDiffLineInformationForModified=function(e){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForModifiedLineNumber(e)}:null},t.ONE_OVERVIEW_WIDTH=15,t.ENTIRE_DIFF_OVERVIEW_WIDTH=30,t.UPDATE_DIFF_DECORATIONS_DELAY=200,t=sk([ak(3,D_),ak(4,Kn),ak(5,bt),ak(6,xt),ak(7,Id),ak(8,am),ak(9,Qg)],t)}(Ft),dk=function(e){function t(t){var n=e.call(this)||this;return n._dataSource=t,n._insertColor=null,n._removeColor=null,n}return ok(t,e),t.prototype.applyColors=function(e){var t=(e.getColor(wd)||vd).transparent(2),n=(e.getColor(Cd)||bd).transparent(2),r=!t.equals(this._insertColor)||!n.equals(this._removeColor);return this._insertColor=t,this._removeColor=n,r},t.prototype.getEditorsDiffDecorations=function(e,t,n,r,i,o,s){i=i.sort((function(e,t){return e.afterLineNumber-t.afterLineNumber})),r=r.sort((function(e,t){return e.afterLineNumber-t.afterLineNumber}));var a=this._getViewZones(e,r,i,o,s,n),u=this._getOriginalEditorDecorations(e,t,n,o,s),l=this._getModifiedEditorDecorations(e,t,n,o,s);return{original:{decorations:u.decorations,overviewZones:u.overviewZones,zones:a.original},modified:{decorations:l.decorations,overviewZones:l.overviewZones,zones:a.modified}}},t}(Ft),hk=function(){function e(e){this._source=e,this._index=-1,this.current=null,this.advance()}return e.prototype.advance=function(){this._index++,this._index<this._source.length?this.current=this._source[this._index]:this.current=null},e}(),fk=function(){function e(e,t,n){this.lineChanges=e,this.originalForeignVZ=t,this.modifiedForeignVZ=n}return e.prototype.getViewZones=function(){for(var t=[],n=[],r=0,i=0,o=0,s=0,a=0,u=0,l=function(e,t){return e.afterLineNumber-t.afterLineNumber},c=function(e,t){if(null===t.domNode&&e.length>0){var n=e[e.length-1];if(n.afterLineNumber===t.afterLineNumber&&null===n.domNode)return void(n.heightInLines+=t.heightInLines)}e.push(t)},d=new hk(this.modifiedForeignVZ),h=new hk(this.originalForeignVZ),f=0,p=this.lineChanges.length;f<=p;f++){var g=f<p?this.lineChanges[f]:null;null!==g?(o=g.originalStartLineNumber+(g.originalEndLineNumber>0?-1:0),s=g.modifiedStartLineNumber+(g.modifiedEndLineNumber>0?-1:0),i=g.originalEndLineNumber>0?g.originalEndLineNumber-g.originalStartLineNumber+1:0,r=g.modifiedEndLineNumber>0?g.modifiedEndLineNumber-g.modifiedStartLineNumber+1:0,a=Math.max(g.originalStartLineNumber,g.originalEndLineNumber),u=Math.max(g.modifiedStartLineNumber,g.modifiedEndLineNumber)):(a=o+=1e7+i,u=s+=1e7+r);for(var m,_=[],y=[];d.current&&d.current.afterLineNumber<=u;){var v=void 0;v=d.current.afterLineNumber<=s?o-s+d.current.afterLineNumber:a;var b=null;g&&g.modifiedStartLineNumber<=d.current.afterLineNumber&&d.current.afterLineNumber<=g.modifiedEndLineNumber&&(b=this._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion()),_.push({afterLineNumber:v,heightInLines:d.current.heightInLines,domNode:null,marginDomNode:b}),d.advance()}for(;h.current&&h.current.afterLineNumber<=a;){v=void 0;v=h.current.afterLineNumber<=o?s-o+h.current.afterLineNumber:u,y.push({afterLineNumber:v,heightInLines:h.current.heightInLines,domNode:null}),h.advance()}if(null!==g&&bk(g))(m=this._produceOriginalFromDiff(g,i,r))&&_.push(m);if(null!==g&&wk(g))(m=this._produceModifiedFromDiff(g,i,r))&&y.push(m);var w=0,C=0;for(_=_.sort(l),y=y.sort(l);w<_.length&&C<y.length;){var S=_[w],x=y[C],L=S.afterLineNumber-o,k=x.afterLineNumber-s;L<k?(c(t,S),w++):k<L?(c(n,x),C++):S.shouldNotShrink?(c(t,S),w++):x.shouldNotShrink?(c(n,x),C++):S.heightInLines>=x.heightInLines?(S.heightInLines-=x.heightInLines,C++):(x.heightInLines-=S.heightInLines,w++)}for(;w<_.length;)c(t,_[w]),w++;for(;C<y.length;)c(n,y[C]),C++}return{original:e._ensureDomNodes(t),modified:e._ensureDomNodes(n)}},e._ensureDomNodes=function(e){return e.map((function(e){var t;return e.domNode||(e.domNode=((t=document.createElement("div")).className="diagonal-fill",t)),e}))},e}();function pk(e,t,n,r,i){return{range:new Yr(e,t,n,r),options:i}}var gk={charDelete:zu.register({className:"char-delete"}),charDeleteWholeLine:zu.register({className:"char-delete",isWholeLine:!0}),charInsert:zu.register({className:"char-insert"}),charInsertWholeLine:zu.register({className:"char-insert",isWholeLine:!0}),lineInsert:zu.register({className:"line-insert",marginClassName:"line-insert",isWholeLine:!0}),lineInsertWithSign:zu.register({className:"line-insert",linesDecorationsClassName:"insert-sign",marginClassName:"line-insert",isWholeLine:!0}),lineDelete:zu.register({className:"line-delete",marginClassName:"line-delete",isWholeLine:!0}),lineDeleteWithSign:zu.register({className:"line-delete",linesDecorationsClassName:"delete-sign",marginClassName:"line-delete",isWholeLine:!0}),lineDeleteMargin:zu.register({marginClassName:"line-delete"})},mk=function(e){function t(t,n){var r=e.call(this,t)||this;return r._disableSash=!1===n,r._sashRatio=null,r._sashPosition=null,r._startSashPosition=null,r._sash=r._register(new gp(r._dataSource.getContainerDomNode(),r)),r._disableSash&&(r._sash.state=0),r._sash.onDidStart((function(){return r.onSashDragStart()})),r._sash.onDidChange((function(e){return r.onSashDrag(e)})),r._sash.onDidEnd((function(){return r.onSashDragEnd()})),r._sash.onDidReset((function(){return r.onSashReset()})),r}return ok(t,e),t.prototype.setEnableSplitViewResizing=function(e){var t=!1===e;this._disableSash!==t&&(this._disableSash=t,this._sash.state=this._disableSash?0:3)},t.prototype.layout=function(e){void 0===e&&(e=this._sashRatio);var n=this._dataSource.getWidth()-ck.ENTIRE_DIFF_OVERVIEW_WIDTH,r=Math.floor((e||.5)*n),i=Math.floor(.5*n);return r=this._disableSash?i:r||i,n>2*t.MINIMUM_EDITOR_WIDTH?(r<t.MINIMUM_EDITOR_WIDTH&&(r=t.MINIMUM_EDITOR_WIDTH),r>n-t.MINIMUM_EDITOR_WIDTH&&(r=n-t.MINIMUM_EDITOR_WIDTH)):r=i,this._sashPosition!==r&&(this._sashPosition=r,this._sash.layout()),this._sashPosition},t.prototype.onSashDragStart=function(){this._startSashPosition=this._sashPosition},t.prototype.onSashDrag=function(e){var t=this._dataSource.getWidth()-ck.ENTIRE_DIFF_OVERVIEW_WIDTH,n=this.layout((this._startSashPosition+(e.currentX-e.startX))/t);this._sashRatio=n/t,this._dataSource.relayoutEditors()},t.prototype.onSashDragEnd=function(){this._sash.layout()},t.prototype.onSashReset=function(){this._sashRatio=.5,this._dataSource.relayoutEditors(),this._sash.layout()},t.prototype.getVerticalSashTop=function(e){return 0},t.prototype.getVerticalSashLeft=function(e){return this._sashPosition},t.prototype.getVerticalSashHeight=function(e){return this._dataSource.getHeight()},t.prototype._getViewZones=function(e,t,n,r,i){return new _k(e,t,n).getViewZones()},t.prototype._getOriginalEditorDecorations=function(e,t,n,r,i){for(var o=String(this._removeColor),s={decorations:[],overviewZones:[]},a=r.getModel(),u=0,l=e.length;u<l;u++){var c=e[u];if(wk(c)&&(s.decorations.push({range:new Yr(c.originalStartLineNumber,1,c.originalEndLineNumber,Number.MAX_VALUE),options:n?gk.lineDeleteWithSign:gk.lineDelete}),bk(c)&&c.charChanges||s.decorations.push(pk(c.originalStartLineNumber,1,c.originalEndLineNumber,Number.MAX_VALUE,gk.charDeleteWholeLine)),s.overviewZones.push(new dx(c.originalStartLineNumber,c.originalEndLineNumber,o)),c.charChanges))for(var d=0,h=c.charChanges.length;d<h;d++){var f=c.charChanges[d];if(wk(f))if(t)for(var p=f.originalStartLineNumber;p<=f.originalEndLineNumber;p++){var g=void 0,m=void 0;g=p===f.originalStartLineNumber?f.originalStartColumn:a.getLineFirstNonWhitespaceColumn(p),m=p===f.originalEndLineNumber?f.originalEndColumn:a.getLineLastNonWhitespaceColumn(p),s.decorations.push(pk(p,g,p,m,gk.charDelete))}else s.decorations.push(pk(f.originalStartLineNumber,f.originalStartColumn,f.originalEndLineNumber,f.originalEndColumn,gk.charDelete))}}return s},t.prototype._getModifiedEditorDecorations=function(e,t,n,r,i){for(var o=String(this._insertColor),s={decorations:[],overviewZones:[]},a=i.getModel(),u=0,l=e.length;u<l;u++){var c=e[u];if(bk(c)&&(s.decorations.push({range:new Yr(c.modifiedStartLineNumber,1,c.modifiedEndLineNumber,Number.MAX_VALUE),options:n?gk.lineInsertWithSign:gk.lineInsert}),wk(c)&&c.charChanges||s.decorations.push(pk(c.modifiedStartLineNumber,1,c.modifiedEndLineNumber,Number.MAX_VALUE,gk.charInsertWholeLine)),s.overviewZones.push(new dx(c.modifiedStartLineNumber,c.modifiedEndLineNumber,o)),c.charChanges))for(var d=0,h=c.charChanges.length;d<h;d++){var f=c.charChanges[d];if(bk(f))if(t)for(var p=f.modifiedStartLineNumber;p<=f.modifiedEndLineNumber;p++){var g=void 0,m=void 0;g=p===f.modifiedStartLineNumber?f.modifiedStartColumn:a.getLineFirstNonWhitespaceColumn(p),m=p===f.modifiedEndLineNumber?f.modifiedEndColumn:a.getLineLastNonWhitespaceColumn(p),s.decorations.push(pk(p,g,p,m,gk.charInsert))}else s.decorations.push(pk(f.modifiedStartLineNumber,f.modifiedStartColumn,f.modifiedEndLineNumber,f.modifiedEndColumn,gk.charInsert))}}return s},t.MINIMUM_EDITOR_WIDTH=100,t}(dk),_k=function(e){function t(t,n,r){return e.call(this,t,n,r)||this}return ok(t,e),t.prototype._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion=function(){return null},t.prototype._produceOriginalFromDiff=function(e,t,n){return n>t?{afterLineNumber:Math.max(e.originalStartLineNumber,e.originalEndLineNumber),heightInLines:n-t,domNode:null}:null},t.prototype._produceModifiedFromDiff=function(e,t,n){return t>n?{afterLineNumber:Math.max(e.modifiedStartLineNumber,e.modifiedEndLineNumber),heightInLines:t-n,domNode:null}:null},t}(fk),yk=function(e){function t(t,n){var r=e.call(this,t)||this;return r.decorationsLeft=t.getOriginalEditor().getLayoutInfo().decorationsLeft,r._register(t.getOriginalEditor().onDidLayoutChange((function(e){r.decorationsLeft!==e.decorationsLeft&&(r.decorationsLeft=e.decorationsLeft,t.relayoutEditors())}))),r}return ok(t,e),t.prototype.setEnableSplitViewResizing=function(e){},t.prototype._getViewZones=function(e,t,n,r,i,o){return new vk(e,t,n,r,i,o).getViewZones()},t.prototype._getOriginalEditorDecorations=function(e,t,n,r,i){for(var o=String(this._removeColor),s={decorations:[],overviewZones:[]},a=0,u=e.length;a<u;a++){var l=e[a];wk(l)&&(s.decorations.push({range:new Yr(l.originalStartLineNumber,1,l.originalEndLineNumber,Number.MAX_VALUE),options:gk.lineDeleteMargin}),s.overviewZones.push(new dx(l.originalStartLineNumber,l.originalEndLineNumber,o)))}return s},t.prototype._getModifiedEditorDecorations=function(e,t,n,r,i){for(var o=String(this._insertColor),s={decorations:[],overviewZones:[]},a=i.getModel(),u=0,l=e.length;u<l;u++){var c=e[u];if(bk(c))if(s.decorations.push({range:new Yr(c.modifiedStartLineNumber,1,c.modifiedEndLineNumber,Number.MAX_VALUE),options:n?gk.lineInsertWithSign:gk.lineInsert}),s.overviewZones.push(new dx(c.modifiedStartLineNumber,c.modifiedEndLineNumber,o)),c.charChanges)for(var d=0,h=c.charChanges.length;d<h;d++){var f=c.charChanges[d];if(bk(f))if(t)for(var p=f.modifiedStartLineNumber;p<=f.modifiedEndLineNumber;p++){var g=void 0,m=void 0;g=p===f.modifiedStartLineNumber?f.modifiedStartColumn:a.getLineFirstNonWhitespaceColumn(p),m=p===f.modifiedEndLineNumber?f.modifiedEndColumn:a.getLineLastNonWhitespaceColumn(p),s.decorations.push(pk(p,g,p,m,gk.charInsert))}else s.decorations.push(pk(f.modifiedStartLineNumber,f.modifiedStartColumn,f.modifiedEndLineNumber,f.modifiedEndColumn,gk.charInsert))}else s.decorations.push(pk(c.modifiedStartLineNumber,1,c.modifiedEndLineNumber,Number.MAX_VALUE,gk.charInsertWholeLine))}return s},t.prototype.layout=function(){return Math.max(5,this.decorationsLeft)},t}(dk),vk=function(e){function t(t,n,r,i,o,s){var a=e.call(this,t,n,r)||this;return a.originalModel=i.getModel(),a.modifiedEditorConfiguration=o.getConfiguration(),a.modifiedEditorTabSize=o.getModel().getOptions().tabSize,a.renderIndicators=s,a}return ok(t,e),t.prototype._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion=function(){var e=document.createElement("div");return e.className="inline-added-margin-view-zone",e},t.prototype._produceOriginalFromDiff=function(e,t,n){var r=document.createElement("div");return r.className="inline-added-margin-view-zone",{afterLineNumber:Math.max(e.originalStartLineNumber,e.originalEndLineNumber),heightInLines:n,domNode:document.createElement("div"),marginDomNode:r}},t.prototype._produceModifiedFromDiff=function(e,t,n){var r=[];if(e.charChanges)for(var i=0,o=e.charChanges.length;i<o;i++){var s=e.charChanges[i];wk(s)&&r.push(new $y(new Yr(s.originalStartLineNumber,s.originalStartColumn,s.originalEndLineNumber,s.originalEndColumn),"char-delete",0))}for(var a=Dy(1e4),u=[],l=this.modifiedEditorConfiguration.layoutInfo.decorationsWidth,c=this.modifiedEditorConfiguration.lineHeight,d=this.modifiedEditorConfiguration.fontInfo.typicalHalfwidthCharacterWidth,h=0,f=[],p=e.originalStartLineNumber;p<=e.originalEndLineNumber;p++)if(h=Math.max(h,this._renderOriginalLine(p-e.originalStartLineNumber,this.originalModel,this.modifiedEditorConfiguration,this.modifiedEditorTabSize,p,r,a)),f.push(this.originalModel.getLineContent(p)),this.renderIndicators){var g=p-e.originalStartLineNumber;u=u.concat(['<div class="delete-sign" style="position:absolute;top:'+g*c+"px;width:"+l+"px;height:"+c+'px;right:0;"></div>'])}h+=this.modifiedEditorConfiguration.viewInfo.scrollBeyondLastColumn;var m=document.createElement("div");m.className="view-lines line-delete",m.innerHTML=a.build(),ow.applyFontInfoSlow(m,this.modifiedEditorConfiguration.fontInfo);var _=document.createElement("div");return _.className="inline-deleted-margin-view-zone",_.innerHTML=u.join(""),ow.applyFontInfoSlow(_,this.modifiedEditorConfiguration.fontInfo),{shouldNotShrink:!0,afterLineNumber:0===e.modifiedEndLineNumber?e.modifiedStartLineNumber:e.modifiedStartLineNumber-1,heightInLines:t,minWidthInPx:h*d,domNode:m,marginDomNode:_,diff:{originalStartLineNumber:e.originalStartLineNumber,originalEndLineNumber:e.originalEndLineNumber,modifiedStartLineNumber:e.modifiedStartLineNumber,modifiedEndLineNumber:e.modifiedEndLineNumber,originalContent:f}}},t.prototype._renderOriginalLine=function(e,t,n,r,i,o,s){var a=t.getLineTokens(i),u=a.getLineContent(),l=Oy.filter(o,i,1,u.length+1);s.appendASCIIString('<div class="view-line'),0===o.length&&s.appendASCIIString(" char-delete"),s.appendASCIIString('" style="top:'),s.appendASCIIString(String(e*n.lineHeight)),s.appendASCIIString('px;width:1000000px;">');var c=Gy.isBasicASCII(u,t.mightContainNonBasicASCII()),d=Gy.containsRTL(u,c,t.mightContainRTL()),h=Wy(new Yy(n.fontInfo.isMonospace&&!n.viewInfo.disableMonospaceOptimizations,n.fontInfo.canUseHalfwidthRightwardsArrow,u,!1,c,d,0,a,l,r,n.fontInfo.spaceWidth,n.viewInfo.stopRenderingLineAfter,n.viewInfo.renderWhitespace,n.viewInfo.renderControlCharacters,n.viewInfo.fontLigatures,null),s);s.appendASCIIString("</div>");var f=h.characterMapping.getAbsoluteOffsets();return f.length>0?f[f.length-1]:0},t}(fk);function bk(e){return e.modifiedEndLineNumber>0}function wk(e){return e.originalEndLineNumber>0}Wd((function(e,t){var n=e.getColor(wd);n&&(t.addRule(".monaco-editor .line-insert, .monaco-editor .char-insert { background-color: "+n+"; }"),t.addRule(".monaco-diff-editor .line-insert, .monaco-diff-editor .char-insert { background-color: "+n+"; }"),t.addRule(".monaco-editor .inline-added-margin-view-zone { background-color: "+n+"; }"));var r=e.getColor(Cd);r&&(t.addRule(".monaco-editor .line-delete, .monaco-editor .char-delete { background-color: "+r+"; }"),t.addRule(".monaco-diff-editor .line-delete, .monaco-diff-editor .char-delete { background-color: "+r+"; }"),t.addRule(".monaco-editor .inline-deleted-margin-view-zone { background-color: "+r+"; }"));var i=e.getColor(Sd);i&&t.addRule(".monaco-editor .line-insert, .monaco-editor .char-insert { border: 1px "+("hc"===e.type?"dashed":"solid")+" "+i+"; }");var o=e.getColor(xd);o&&t.addRule(".monaco-editor .line-delete, .monaco-editor .char-delete { border: 1px "+("hc"===e.type?"dashed":"solid")+" "+o+"; }");var s=e.getColor(Fc);s&&t.addRule(".monaco-diff-editor.side-by-side .editor.modified { box-shadow: -6px 0 5px -5px "+s+"; }");var a=e.getColor(Ld);a&&t.addRule(".monaco-diff-editor.side-by-side .editor.modified { border-left: 1px solid "+a+"; }")}));var Ck=Ct("themeService"),Sk=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xk=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Lk=function(e,t){return function(n,r){t(n,r,e)}},kk=0,Mk=!1;function Dk(){var e;Mk||(Mk=!0,e=document.body,(Qf=document.createElement("div")).className="monaco-aria-container",(ep=document.createElement("div")).className="monaco-alert",ep.setAttribute("role","alert"),ep.setAttribute("aria-atomic","true"),Qf.appendChild(ep),(tp=document.createElement("div")).className="monaco-status",tp.setAttribute("role","status"),tp.setAttribute("aria-atomic","true"),Qf.appendChild(tp),e.appendChild(Qf))}var Ek=function(e){function t(t,n,r,i,o,s,a,u,l,c){var d=this;return(n=n||{}).ariaLabel=n.ariaLabel||kb.editorViewAccessibleLabel,n.ariaLabel=n.ariaLabel+";"+(uh?kb.accessibilityHelpMessageIE:kb.accessibilityHelpMessage),(d=e.call(this,t,n,{},r,i,o,s,u,l,c)||this)._standaloneKeybindingService=a instanceof Wb?a:null,Dk(),d}return Sk(t,e),t.prototype.addCommand=function(e,t,n){if(!this._standaloneKeybindingService)return console.warn("Cannot add command because the editor is configured with an unrecognized KeybindingService"),null;var r="DYNAMIC_"+ ++kk,i=Rn.deserialize(n);return this._standaloneKeybindingService.addDynamicKeybinding(r,e,t,i),r},t.prototype.createContextKey=function(e,t){return this._contextKeyService.createKey(e,t)},t.prototype.addAction=function(e){var t=this;if("string"!=typeof e.id||"string"!=typeof e.label||"function"!=typeof e.run)throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");if(!this._standaloneKeybindingService)return console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),Ft.None;var n=e.id,r=e.label,i=Rn.and(Rn.equals("editorId",this.getId()),Rn.deserialize(e.precondition)),o=e.keybindings,s=Rn.and(i,Rn.deserialize(e.keybindingContext)),a=e.contextMenuGroupId||null,u=e.contextMenuOrder||0,l=function(){return Promise.resolve(e.run(t))},c=new Rt,d=this.getId()+":"+n;if(c.add(ir.registerCommand(d,l)),a){var h={command:{id:d,title:r},when:i,group:a,order:u};c.add(dr.appendMenuItem(7,h))}if(Array.isArray(o))for(var f=0,p=o;f<p.length;f++){var g=p[f];c.add(this._standaloneKeybindingService.addDynamicKeybinding(d,g,l,s))}var m=new Xx(d,r,r,i,l,this._contextKeyService);return this._actions[n]=m,c.add(Pt((function(){delete t._actions[n]}))),c},t=xk([Lk(2,bt),Lk(3,xt),Lk(4,rr),Lk(5,Kn),Lk(6,em),Lk(7,Id),Lk(8,am),Lk(9,CL)],t)}(TL),Tk=function(e){function t(t,n,r,i,o,s,a,u,l,c,d,h,f){var p=this;Gb(h,n,!1),"string"==typeof(n=n||{}).theme&&c.setTheme(n.theme);var g,m=n.model;if(delete n.model,(p=e.call(this,t,n,i,o,s,a,u,c,d,f)||this)._contextViewService=l,p._configurationService=h,p._register(r),void 0===m?(g=self.monaco.editor.createModel(n.value||"",n.language||"text/plain"),p._ownsModel=!0):(g=m,p._ownsModel=!1),p._attachModel(g),g){var _={oldModelUrl:null,newModelUrl:g.uri};p._onDidChangeModel.fire(_)}return p}return Sk(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.updateOptions=function(t){Gb(this._configurationService,t,!1),e.prototype.updateOptions.call(this,t)},t.prototype._attachModel=function(t){e.prototype._attachModel.call(this,t),this._modelData&&this._contextViewService.setContainer(this._modelData.view.domNode.domNode)},t.prototype._postDetachModelCleanup=function(t){e.prototype._postDetachModelCleanup.call(this,t),t&&this._ownsModel&&(t.dispose(),this._ownsModel=!1)},t=xk([Lk(3,bt),Lk(4,xt),Lk(5,rr),Lk(6,Kn),Lk(7,em),Lk(8,Jg),Lk(9,Ck),Lk(10,am),Lk(11,Kv),Lk(12,CL)],t)}(Ek),Nk=function(e){function t(t,n,r,i,o,s,a,u,l,c,d,h,f,p){var g=this;return Gb(h,n,!0),"string"==typeof(n=n||{}).theme&&(n.theme=c.setTheme(n.theme)),(g=e.call(this,t,n,p,u,o,i,l,c,d,f)||this)._contextViewService=a,g._configurationService=h,g._register(r),g._contextViewService.setContainer(g._containerDomElement),g}return Sk(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.updateOptions=function(t){Gb(this._configurationService,t,!0),e.prototype.updateOptions.call(this,t)},t.prototype._createInnerEditor=function(e,t,n){return e.createInstance(Ek,t,n)},t.prototype.getOriginalEditor=function(){return e.prototype.getOriginalEditor.call(this)},t.prototype.getModifiedEditor=function(){return e.prototype.getModifiedEditor.call(this)},t.prototype.addCommand=function(e,t,n){return this.getModifiedEditor().addCommand(e,t,n)},t.prototype.createContextKey=function(e,t){return this.getModifiedEditor().createContextKey(e,t)},t.prototype.addAction=function(e){return this.getModifiedEditor().addAction(e)},t=xk([Lk(3,bt),Lk(4,Kn),Lk(5,em),Lk(6,Jg),Lk(7,D_),Lk(8,xt),Lk(9,Ck),Lk(10,am),Lk(11,Kv),Lk(12,Qg),Lk(13,St(Xg))],t)}(ck),Ok=Ct("IWorkspaceEditService"),Ak=Ct("modeService"),Ik=function(){function e(e){this._languageIdentifier=e}return e.prototype.getId=function(){return this._languageIdentifier.language},e}(),Pk="text/plain",Rk="application/unknown",Fk=[],Yk=[],jk=[];function Bk(e,t){void 0===t&&(t=!1);var n=function(e){return{id:e.id,mime:e.mime,filename:e.filename,extension:e.extension,filepattern:e.filepattern,firstline:e.firstline,userConfigured:e.userConfigured,filenameLowercase:e.filename?e.filename.toLowerCase():void 0,extensionLowercase:e.extension?e.extension.toLowerCase():void 0,filepatternLowercase:e.filepattern?e.filepattern.toLowerCase():void 0,filepatternOnPath:!!e.filepattern&&e.filepattern.indexOf(ps.sep)>=0}}(e);Fk.push(n),n.userConfigured?jk.push(n):Yk.push(n),t&&!n.userConfigured&&Fk.forEach((function(e){e.mime===n.mime||e.userConfigured||(n.extension&&e.extension===n.extension&&console.warn("Overwriting extension <<"+n.extension+">> to now point to mime <<"+n.mime+">>"),n.filename&&e.filename===n.filename&&console.warn("Overwriting filename <<"+n.filename+">> to now point to mime <<"+n.mime+">>"),n.filepattern&&e.filepattern===n.filepattern&&console.warn("Overwriting filepattern <<"+n.filepattern+">> to now point to mime <<"+n.mime+">>"),n.firstline&&e.firstline===n.firstline&&console.warn("Overwriting firstline <<"+n.firstline+">> to now point to mime <<"+n.mime+">>"))}))}function Wk(e,t){var n;if(e)switch(e.scheme){case Dh.file:n=e.fsPath;break;case Dh.data:n=u_.parseMetaData(e).get(u_.META_DATA_LABEL);break;default:n=e.path}if(!n)return[Rk];n=n.toLowerCase();var r=vs(n),i=Hk(n,r,jk);if(i)return[i,Pk];var o=Hk(n,r,Yk);if(o)return[o,Pk];if(t){var s=function(e){An(e)&&(e=e.substr(1));if(e.length>0)for(var t=Fk.length-1;t>=0;t--){var n=Fk[t];if(n.firstline){var r=e.match(n.firstline);if(r&&r.length>0)return n.mime}}return null}(t);if(s)return[s,Pk]}return[Rk]}function Hk(e,t,n){for(var r=null,i=null,o=null,s=n.length-1;s>=0;s--){var a=n[s];if(t===a.filenameLowercase){r=a;break}if(a.filepattern&&(!i||a.filepattern.length>i.filepattern.length)){var u=a.filepatternOnPath?e:t;ta(a.filepatternLowercase,u)&&(i=a)}a.extension&&(!o||a.extension.length>o.extension.length)&&hn(t,a.extensionLowercase)&&(o=a)}return r?r.mime:i?i.mime:o?o.mime:null}var Vk=new(function(){function e(){this._onDidChangeLanguages=new $t,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[],this._dynamicLanguages=[]}return e.prototype.registerLanguage=function(e){this._languages.push(e),this._onDidChangeLanguages.fire(void 0)},e.prototype.getLanguages=function(){return[].concat(this._languages).concat(this._dynamicLanguages)},e}());kr.add("editor.modesRegistry",Vk);var zk=new ca("plaintext",1);Vk.registerLanguage({id:"plaintext",extensions:[".txt",".gitignore"],aliases:[Ee("plainText.alias","Plain Text"),"text"],mimetypes:["text/plain"]}),Mu.register(zk,{brackets:[["(",")"],["[","]"],["{","}"]]});var Uk=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),qk=Object.prototype.hasOwnProperty,Kk=function(e){function t(t,n){void 0===t&&(t=!0),void 0===n&&(n=!1);var r=e.call(this)||this;return r._onDidChange=r._register(new $t),r.onDidChange=r._onDidChange.event,r._warnOnOverwrite=n,r._nextLanguageId2=1,r._languageIdToLanguage=[],r._languageToLanguageId=Object.create(null),r._languages={},r._mimeTypesMap={},r._nameMap={},r._lowercaseNameMap={},t&&(r._initializeFromRegistry(),r._register(Vk.onDidChangeLanguages((function(e){return r._initializeFromRegistry()})))),r}return Uk(t,e),t.prototype._initializeFromRegistry=function(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={};var e=Vk.getLanguages();this._registerLanguages(e)},t.prototype._registerLanguages=function(e){for(var t=this,n=0,r=e;n<r.length;n++){var i=r[n];this._registerLanguage(i)}this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach((function(e){var n=t._languages[e];n.name&&(t._nameMap[n.name]=n.identifier),n.aliases.forEach((function(e){t._lowercaseNameMap[e.toLowerCase()]=n.identifier})),n.mimetypes.forEach((function(e){t._mimeTypesMap[e]=n.identifier}))})),kr.as(yv.Configuration).registerOverrideIdentifiers(Vk.getLanguages().map((function(e){return e.id}))),this._onDidChange.fire()},t.prototype._getLanguageId=function(e){if(this._languageToLanguageId[e])return this._languageToLanguageId[e];var t=this._nextLanguageId2++;return this._languageIdToLanguage[t]=e,this._languageToLanguageId[e]=t,t},t.prototype._registerLanguage=function(e){var t,n=e.id;if(qk.call(this._languages,n))t=this._languages[n];else{var r=this._getLanguageId(n);t={identifier:new ca(n,r),name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[]},this._languages[n]=t}this._mergeLanguage(t,e)},t.prototype._mergeLanguage=function(e,t){var n,r,i=t.id,o=null;if(Array.isArray(t.mimetypes)&&t.mimetypes.length>0&&((n=e.mimetypes).push.apply(n,t.mimetypes),o=t.mimetypes[0]),o||(o="text/x-"+i,e.mimetypes.push(o)),Array.isArray(t.extensions))for(var s=0,a=t.extensions;s<a.length;s++){var u=a[s];Bk({id:i,mime:o,extension:u},this._warnOnOverwrite),e.extensions.push(u)}if(Array.isArray(t.filenames))for(var l=0,c=t.filenames;l<c.length;l++){var d=c[l];Bk({id:i,mime:o,filename:d},this._warnOnOverwrite),e.filenames.push(d)}if(Array.isArray(t.filenamePatterns))for(var h=0,f=t.filenamePatterns;h<f.length;h++){Bk({id:i,mime:o,filepattern:f[h]},this._warnOnOverwrite)}if("string"==typeof t.firstLine&&t.firstLine.length>0){var p=t.firstLine;"^"!==p.charAt(0)&&(p="^"+p);try{var g=new RegExp(p);"^"!==(r=g).source&&"^$"!==r.source&&"$"!==r.source&&"^\\s*$"!==r.source&&r.exec("")&&0===r.lastIndex||Bk({id:i,mime:o,firstline:g},this._warnOnOverwrite)}catch(e){Ke(e)}}e.aliases.push(i);var m=null;if(void 0!==t.aliases&&Array.isArray(t.aliases)&&(m=0===t.aliases.length?[null]:t.aliases),null!==m)for(var _=0,y=m;_<y.length;_++){var v=y[_];v&&0!==v.length&&e.aliases.push(v)}var b=null!==m&&m.length>0;if(b&&null===m[0]);else{var w=(b?m[0]:null)||i;!b&&e.name||(e.name=w)}t.configuration&&e.configurationFiles.push(t.configuration)},t.prototype.isRegisteredMode=function(e){return!!qk.call(this._mimeTypesMap,e)||qk.call(this._languages,e)},t.prototype.getModeIdForLanguageNameLowercase=function(e){return qk.call(this._lowercaseNameMap,e)?this._lowercaseNameMap[e].language:null},t.prototype.extractModeIds=function(e){var t=this;return e?e.split(",").map((function(e){return e.trim()})).map((function(e){return qk.call(t._mimeTypesMap,e)?t._mimeTypesMap[e].language:e})).filter((function(e){return qk.call(t._languages,e)})):[]},t.prototype.getLanguageIdentifier=function(e){if("vs.editor.nullMode"===e||0===e)return Ha;var t;if("string"==typeof e)t=e;else if(!(t=this._languageIdToLanguage[e]))return null;return qk.call(this._languages,t)?this._languages[t].identifier:null},t.prototype.getModeIdsFromFilepathOrFirstLine=function(e,t){if(!e&&!t)return[];var n=Wk(e,t);return this.extractModeIds(n.join(","))},t}(Ft),Gk=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$k=function(e){function t(t,n){var r=e.call(this)||this;return r._onDidChange=r._register(new $t),r.onDidChange=r._onDidChange.event,r._selector=n,r.languageIdentifier=r._selector(),r._register(t((function(){return r._evaluate()}))),r}return Gk(t,e),t.prototype._evaluate=function(){var e=this._selector();e.id!==this.languageIdentifier.id&&(this.languageIdentifier=e,this._onDidChange.fire(this.languageIdentifier))},t}(Ft),Zk=function(){function e(e){var t=this;void 0===e&&(e=!1),this._onDidCreateMode=new $t,this.onDidCreateMode=this._onDidCreateMode.event,this._onLanguagesMaybeChanged=new $t,this.onLanguagesMaybeChanged=this._onLanguagesMaybeChanged.event,this._instantiatedModes={},this._registry=new Kk(!0,e),this._registry.onDidChange((function(){return t._onLanguagesMaybeChanged.fire()}))}return e.prototype.isRegisteredMode=function(e){return this._registry.isRegisteredMode(e)},e.prototype.getModeIdForLanguageName=function(e){return this._registry.getModeIdForLanguageNameLowercase(e)},e.prototype.getModeIdByFilepathOrFirstLine=function(e,t){var n=this._registry.getModeIdsFromFilepathOrFirstLine(e,t);return n.length>0?n[0]:null},e.prototype.getModeId=function(e){var t=this._registry.extractModeIds(e);return t.length>0?t[0]:null},e.prototype.getLanguageIdentifier=function(e){return this._registry.getLanguageIdentifier(e)},e.prototype.create=function(e){var t=this;return new $k(this.onLanguagesMaybeChanged,(function(){var n=t.getModeId(e);return t._createModeAndGetLanguageIdentifier(n)}))},e.prototype.createByFilepathOrFirstLine=function(e,t){var n=this;return new $k(this.onLanguagesMaybeChanged,(function(){var r=n.getModeIdByFilepathOrFirstLine(e,t);return n._createModeAndGetLanguageIdentifier(r)}))},e.prototype._createModeAndGetLanguageIdentifier=function(e){var t=this.getLanguageIdentifier(e||"plaintext")||Ha;return this._getOrCreateMode(t.language),t},e.prototype.triggerMode=function(e){var t=this.getModeId(e);this._getOrCreateMode(t||"plaintext")},e.prototype._getOrCreateMode=function(e){if(!this._instantiatedModes.hasOwnProperty(e)){var t=this.getLanguageIdentifier(e)||Ha;this._instantiatedModes[e]=new Ik(t),this._onDidCreateMode.fire(this._instantiatedModes[e])}return this._instantiatedModes[e]},e}(),Xk=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Jk=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Qk=function(e,t){return function(n,r){t(n,r,e)}};function eM(e){return e.toString()}var tM=function(){function e(e,t,n){this._modelEventListeners=new Rt,this.model=e,this._languageSelection=null,this._languageSelectionListener=null,this._modelEventListeners.add(e.onWillDispose((function(){return t(e)}))),this._modelEventListeners.add(e.onDidChangeLanguage((function(t){return n(e,t)})))}return e.prototype._disposeLanguageSelection=function(){this._languageSelectionListener&&(this._languageSelectionListener.dispose(),this._languageSelectionListener=null),this._languageSelection&&(this._languageSelection.dispose(),this._languageSelection=null)},e.prototype.dispose=function(){this._modelEventListeners.dispose(),this._disposeLanguageSelection()},e.prototype.setLanguage=function(e){var t=this;this._disposeLanguageSelection(),this._languageSelection=e,this._languageSelectionListener=this._languageSelection.onDidChange((function(){return t.model.setMode(e.languageIdentifier)})),this.model.setMode(e.languageIdentifier)},e}(),nM=nt.c||nt.d?1:2,rM=function(e){function t(t,n){var r=e.call(this)||this;return r._onModelAdded=r._register(new $t),r.onModelAdded=r._onModelAdded.event,r._onModelRemoved=r._register(new $t),r.onModelRemoved=r._onModelRemoved.event,r._onModelModeChanged=r._register(new $t),r.onModelModeChanged=r._onModelModeChanged.event,r._configurationService=t,r._resourcePropertiesService=n,r._models={},r._modelCreationOptionsByLanguageAndResource=Object.create(null),r._configurationServiceSubscription=r._configurationService.onDidChangeConfiguration((function(e){return r._updateModelOptions()})),r._updateModelOptions(),r}return Xk(t,e),t._readModelOptions=function(e,t){var n=Ci.tabSize;if(e.editor&&void 0!==e.editor.tabSize){var r=parseInt(e.editor.tabSize,10);isNaN(r)||(n=r),n<1&&(n=1)}var i=n;if(e.editor&&void 0!==e.editor.indentSize&&"tabSize"!==e.editor.indentSize){var o=parseInt(e.editor.indentSize,10);isNaN(o)||(i=o),i<1&&(i=1)}var s=Ci.insertSpaces;e.editor&&void 0!==e.editor.insertSpaces&&(s="false"!==e.editor.insertSpaces&&Boolean(e.editor.insertSpaces));var a=nM,u=e.eol;"\r\n"===u?a=2:"\n"===u&&(a=1);var l=Ci.trimAutoWhitespace;e.editor&&void 0!==e.editor.trimAutoWhitespace&&(l="false"!==e.editor.trimAutoWhitespace&&Boolean(e.editor.trimAutoWhitespace));var c=Ci.detectIndentation;e.editor&&void 0!==e.editor.detectIndentation&&(c="false"!==e.editor.detectIndentation&&Boolean(e.editor.detectIndentation));var d=Ci.largeFileOptimizations;return e.editor&&void 0!==e.editor.largeFileOptimizations&&(d="false"!==e.editor.largeFileOptimizations&&Boolean(e.editor.largeFileOptimizations)),{isForSimpleWidget:t,tabSize:n,indentSize:i,insertSpaces:s,detectIndentation:c,defaultEOL:a,trimAutoWhitespace:l,largeFileOptimizations:d}},t.prototype.getCreationOptions=function(e,n,r){var i=this._modelCreationOptionsByLanguageAndResource[e+n];if(!i){var o=this._configurationService.getValue("editor",{overrideIdentifier:e,resource:n}),s=this._resourcePropertiesService.getEOL(n,e);i=t._readModelOptions({editor:o,eol:s},r),this._modelCreationOptionsByLanguageAndResource[e+n]=i}return i},t.prototype._updateModelOptions=function(){var e=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);for(var n=Object.keys(this._models),r=0,i=n.length;r<i;r++){var o=n[r],s=this._models[o],a=s.model.getLanguageIdentifier().language,u=s.model.uri,l=e[a+u],c=this.getCreationOptions(a,u,s.model.isForSimpleWidget);t._setModelOptionsForModel(s.model,c,l)}},t._setModelOptionsForModel=function(e,t,n){n&&n.detectIndentation===t.detectIndentation&&n.insertSpaces===t.insertSpaces&&n.tabSize===t.tabSize&&n.indentSize===t.indentSize&&n.trimAutoWhitespace===t.trimAutoWhitespace||(t.detectIndentation?(e.detectIndentation(t.insertSpaces,t.tabSize),e.updateOptions({trimAutoWhitespace:t.trimAutoWhitespace})):e.updateOptions({insertSpaces:t.insertSpaces,tabSize:t.tabSize,indentSize:t.indentSize,trimAutoWhitespace:t.trimAutoWhitespace}))},t.prototype.dispose=function(){this._configurationServiceSubscription.dispose(),e.prototype.dispose.call(this)},t.prototype._createModelData=function(e,t,n,r){var i=this,o=this.getCreationOptions(t.language,n,r),s=new Yu(e,o,t,n),a=eM(s.uri);if(this._models[a])throw new Error("ModelService: Cannot add model because it already exists!");var u=new tM(s,(function(e){return i._onWillDispose(e)}),(function(e,t){return i._onDidChangeLanguage(e,t)}));return this._models[a]=u,u},t.prototype.createModel=function(e,t,n,r){var i;return void 0===r&&(r=!1),t?(i=this._createModelData(e,t.languageIdentifier,n,r),this.setMode(i.model,t)):i=this._createModelData(e,zk,n,r),this._onModelAdded.fire(i.model),i.model},t.prototype.setMode=function(e,t){if(t){var n=this._models[eM(e.uri)];n&&n.setLanguage(t)}},t.prototype.getModels=function(){for(var e=[],t=Object.keys(this._models),n=0,r=t.length;n<r;n++){var i=t[n];e.push(this._models[i].model)}return e},t.prototype.getModel=function(e){var t=eM(e),n=this._models[t];return n?n.model:null},t.prototype._onWillDispose=function(e){var t=eM(e.uri),n=this._models[t];delete this._models[t],n.dispose(),delete this._modelCreationOptionsByLanguageAndResource[e.getLanguageIdentifier().language+e.uri],this._onModelRemoved.fire(e)},t.prototype._onDidChangeLanguage=function(e,n){var r=n.oldLanguage,i=e.getLanguageIdentifier().language,o=this.getCreationOptions(r,e.uri,e.isForSimpleWidget),s=this.getCreationOptions(i,e.uri,e.isForSimpleWidget);t._setModelOptionsForModel(e,s,o),this._onModelModeChanged.fire({model:e,oldModeId:r})},t=Jk([Qk(0,Kv),Qk(1,dy)],t)}(Ft),iM=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),oM=function(e){function t(){var t=e.call(this)||this;return t._onCodeEditorAdd=t._register(new $t),t.onCodeEditorAdd=t._onCodeEditorAdd.event,t._onCodeEditorRemove=t._register(new $t),t.onCodeEditorRemove=t._onCodeEditorRemove.event,t._onDiffEditorAdd=t._register(new $t),t._onDiffEditorRemove=t._register(new $t),t._codeEditors=Object.create(null),t._diffEditors=Object.create(null),t}return iM(t,e),t.prototype.addCodeEditor=function(e){this._codeEditors[e.getId()]=e,this._onCodeEditorAdd.fire(e)},t.prototype.removeCodeEditor=function(e){delete this._codeEditors[e.getId()]&&this._onCodeEditorRemove.fire(e)},t.prototype.listCodeEditors=function(){var e=this;return Object.keys(this._codeEditors).map((function(t){return e._codeEditors[t]}))},t.prototype.addDiffEditor=function(e){this._diffEditors[e.getId()]=e,this._onDiffEditorAdd.fire(e)},t.prototype.removeDiffEditor=function(e){delete this._diffEditors[e.getId()]&&this._onDiffEditorRemove.fire(e)},t.prototype.listDiffEditors=function(){var e=this;return Object.keys(this._diffEditors).map((function(t){return e._diffEditors[t]}))},t.prototype.getFocusedCodeEditor=function(){for(var e=null,t=0,n=this.listCodeEditors();t<n.length;t++){var r=n[t];if(r.hasTextFocus())return r;r.hasWidgetFocus()&&(e=r)}return e},t}(Ft),sM=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),aM=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},uM=function(e,t){return function(n,r){t(n,r,e)}},lM=function(e){function t(t,n){void 0===n&&(n=bf());var r=e.call(this)||this;return r._decorationOptionProviders=new Map,r._styleSheet=n,r._themeService=t,r}return sM(t,e),t.prototype.registerDecorationType=function(e,t,n){var r=this._decorationOptionProviders.get(e);if(!r){var i={styleSheet:this._styleSheet,key:e,parentTypeKey:n,options:t||Object.create(null)};r=n?new cM(this._themeService,i):new dM(this._themeService,i),this._decorationOptionProviders.set(e,r)}r.refCount++},t.prototype.removeDecorationType=function(e){var t=this._decorationOptionProviders.get(e);t&&(t.refCount--,t.refCount<=0&&(this._decorationOptionProviders.delete(e),t.dispose(),this.listCodeEditors().forEach((function(t){return t.removeDecorations(e)}))))},t.prototype.resolveDecorationOptions=function(e,t){var n=this._decorationOptionProviders.get(e);if(!n)throw new Error("Unknown decoration type key: "+e);return n.getOptions(this,t)},t=aM([uM(0,Id)],t)}(oM),cM=function(){function e(e,t){this._parentTypeKey=t.parentTypeKey,this.refCount=0,this._beforeContentRules=new fM(3,t,e),this._afterContentRules=new fM(4,t,e)}return e.prototype.getOptions=function(e,t){var n=e.resolveDecorationOptions(this._parentTypeKey,!0);return this._beforeContentRules&&(n.beforeContentClassName=this._beforeContentRules.className),this._afterContentRules&&(n.afterContentClassName=this._afterContentRules.className),n},e.prototype.dispose=function(){this._beforeContentRules&&(this._beforeContentRules.dispose(),this._beforeContentRules=null),this._afterContentRules&&(this._afterContentRules.dispose(),this._afterContentRules=null)},e}(),dM=function(){function e(e,t){var n=this;this._disposables=new Rt,this.refCount=0;var r=function(r){var i=new fM(r,t,e);if(n._disposables.add(i),i.hasContent)return i.className};this.className=r(0);var i,o=(i=new fM(1,t,e),n._disposables.add(i),i.hasContent?{className:i.className,hasLetterSpacing:i.hasLetterSpacing}:null);o&&(this.inlineClassName=o.className,this.inlineClassNameAffectsLetterSpacing=o.hasLetterSpacing),this.beforeContentClassName=r(3),this.afterContentClassName=r(4),this.glyphMarginClassName=r(2);var s=t.options;this.isWholeLine=Boolean(s.isWholeLine),this.stickiness=s.rangeBehavior;var a=s.light&&s.light.overviewRulerColor||s.overviewRulerColor,u=s.dark&&s.dark.overviewRulerColor||s.overviewRulerColor;void 0===a&&void 0===u||(this.overviewRuler={color:a||u,darkColor:u||a,position:s.overviewRulerLane||mi.Center})}return e.prototype.getOptions=function(e,t){return t?{inlineClassName:this.inlineClassName,beforeContentClassName:this.beforeContentClassName,afterContentClassName:this.afterContentClassName,className:this.className,glyphMarginClassName:this.glyphMarginClassName,isWholeLine:this.isWholeLine,overviewRuler:this.overviewRuler,stickiness:this.stickiness}:this},e.prototype.dispose=function(){this._disposables.dispose()},e}(),hM={color:"color:{0} !important;",opacity:"opacity:{0};",backgroundColor:"background-color:{0};",outline:"outline:{0};",outlineColor:"outline-color:{0};",outlineStyle:"outline-style:{0};",outlineWidth:"outline-width:{0};",border:"border:{0};",borderColor:"border-color:{0};",borderRadius:"border-radius:{0};",borderSpacing:"border-spacing:{0};",borderStyle:"border-style:{0};",borderWidth:"border-width:{0};",fontStyle:"font-style:{0};",fontWeight:"font-weight:{0};",textDecoration:"text-decoration:{0};",cursor:"cursor:{0};",letterSpacing:"letter-spacing:{0};",gutterIconPath:"background:{0} center center no-repeat;",gutterIconSize:"background-size:{0};",contentText:"content:'{0}';",contentIconPath:"content:{0};",margin:"margin:{0};",width:"width:{0};",height:"height:{0};"},fM=function(){function e(e,t,n){var r=this;this._theme=n.getTheme(),this._ruleType=e,this._providerArgs=t,this._usesThemeColors=!1,this._hasContent=!1,this._hasLetterSpacing=!1;var i=pM.getClassName(this._providerArgs.key,e);this._providerArgs.parentTypeKey&&(i=i+" "+pM.getClassName(this._providerArgs.parentTypeKey,e)),this._className=i,this._unThemedSelector=pM.getSelector(this._providerArgs.key,this._providerArgs.parentTypeKey,e),this._buildCSS(),this._usesThemeColors?this._themeListener=n.onThemeChange((function(e){r._theme=n.getTheme(),r._removeCSS(),r._buildCSS()})):this._themeListener=null}return e.prototype.dispose=function(){this._hasContent&&(this._removeCSS(),this._hasContent=!1),this._themeListener&&(this._themeListener.dispose(),this._themeListener=null)},Object.defineProperty(e.prototype,"hasContent",{get:function(){return this._hasContent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasLetterSpacing",{get:function(){return this._hasLetterSpacing},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"className",{get:function(){return this._className},enumerable:!0,configurable:!0}),e.prototype._buildCSS=function(){var e,t,n,r=this._providerArgs.options;switch(this._ruleType){case 0:e=this.getCSSTextForModelDecorationClassName(r),t=this.getCSSTextForModelDecorationClassName(r.light),n=this.getCSSTextForModelDecorationClassName(r.dark);break;case 1:e=this.getCSSTextForModelDecorationInlineClassName(r),t=this.getCSSTextForModelDecorationInlineClassName(r.light),n=this.getCSSTextForModelDecorationInlineClassName(r.dark);break;case 2:e=this.getCSSTextForModelDecorationGlyphMarginClassName(r),t=this.getCSSTextForModelDecorationGlyphMarginClassName(r.light),n=this.getCSSTextForModelDecorationGlyphMarginClassName(r.dark);break;case 3:e=this.getCSSTextForModelDecorationContentClassName(r.before),t=this.getCSSTextForModelDecorationContentClassName(r.light&&r.light.before),n=this.getCSSTextForModelDecorationContentClassName(r.dark&&r.dark.before);break;case 4:e=this.getCSSTextForModelDecorationContentClassName(r.after),t=this.getCSSTextForModelDecorationContentClassName(r.light&&r.light.after),n=this.getCSSTextForModelDecorationContentClassName(r.dark&&r.dark.after);break;default:throw new Error("Unknown rule type: "+this._ruleType)}var i=this._providerArgs.styleSheet.sheet,o=!1;e.length>0&&(i.insertRule(this._unThemedSelector+" {"+e+"}",0),o=!0),t.length>0&&(i.insertRule(".vs"+this._unThemedSelector+" {"+t+"}",0),o=!0),n.length>0&&(i.insertRule(".vs-dark"+this._unThemedSelector+", .hc-black"+this._unThemedSelector+" {"+n+"}",0),o=!0),this._hasContent=o},e.prototype._removeCSS=function(){!function(e,t){if(void 0===t&&(t=Cf()),t){for(var n=function(e){return e&&e.sheet&&e.sheet.rules?e.sheet.rules:e&&e.sheet&&e.sheet.cssRules?e.sheet.cssRules:[]}(t),r=[],i=0;i<n.length;i++){-1!==n[i].selectorText.indexOf(e)&&r.push(i)}for(i=r.length-1;i>=0;i--)t.sheet.deleteRule(r[i])}}(this._unThemedSelector,this._providerArgs.styleSheet)},e.prototype.getCSSTextForModelDecorationClassName=function(e){if(!e)return"";var t=[];return this.collectCSSText(e,["backgroundColor"],t),this.collectCSSText(e,["outline","outlineColor","outlineStyle","outlineWidth"],t),this.collectBorderSettingsCSSText(e,t),t.join("")},e.prototype.getCSSTextForModelDecorationInlineClassName=function(e){if(!e)return"";var t=[];return this.collectCSSText(e,["fontStyle","fontWeight","textDecoration","cursor","color","opacity","letterSpacing"],t),e.letterSpacing&&(this._hasLetterSpacing=!0),t.join("")},e.prototype.getCSSTextForModelDecorationContentClassName=function(e){if(!e)return"";var t=[];if(void 0!==e){if(this.collectBorderSettingsCSSText(e,t),void 0!==e.contentIconPath&&t.push(an(hM.contentIconPath,Ff(ht.revive(e.contentIconPath)))),"string"==typeof e.contentText){var n=e.contentText.match(/^.*$/m)[0].replace(/['\\]/g,"\\$&");t.push(an(hM.contentText,n))}this.collectCSSText(e,["fontStyle","fontWeight","textDecoration","color","opacity","backgroundColor","margin"],t),this.collectCSSText(e,["width","height"],t)&&t.push("display:inline-block;")}return t.join("")},e.prototype.getCSSTextForModelDecorationGlyphMarginClassName=function(e){if(!e)return"";var t=[];return void 0!==e.gutterIconPath&&(t.push(an(hM.gutterIconPath,Ff(ht.revive(e.gutterIconPath)))),void 0!==e.gutterIconSize&&t.push(an(hM.gutterIconSize,e.gutterIconSize))),t.join("")},e.prototype.collectBorderSettingsCSSText=function(e,t){return!!this.collectCSSText(e,["border","borderColor","borderRadius","borderSpacing","borderStyle","borderWidth"],t)&&(t.push(an("box-sizing: border-box;")),!0)},e.prototype.collectCSSText=function(e,t,n){for(var r=n.length,i=0,o=t;i<o.length;i++){var s=o[i],a=this.resolveValue(e[s]);"string"==typeof a&&n.push(an(hM[s],a))}return n.length!==r},e.prototype.resolveValue=function(e){if((n=e)&&"string"==typeof n.id){this._usesThemeColors=!0;var t=this._theme.getColor(e.id);return t?t.toString():"transparent"}var n;return e},e}(),pM=function(){function e(){}return e.getClassName=function(e,t){return"ced-"+e+"-"+t},e.getSelector=function(e,t,n){var r=".monaco-editor ."+this.getClassName(e,n);return t&&(r=r+"."+this.getClassName(t,n)),3===n?r+="::before":4===n&&(r+="::after"),r},e}(),gM=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),mM=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return gM(t,e),t.prototype.getActiveCodeEditor=function(){return null},t.prototype.openCodeEditor=function(e,t,n){return t?Promise.resolve(this.doOpenEditor(t,e)):Promise.resolve(null)},t.prototype.doOpenEditor=function(e,t){if(!this.findModel(e,t.resource)){if(t.resource){var n=t.resource.scheme;if(n===Dh.http||n===Dh.https)return Rf(t.resource.toString()),e}return null}var r=t.options?t.options.selection:null;if(r)if("number"==typeof r.endLineNumber&&"number"==typeof r.endColumn)e.setSelection(r),e.revealRangeInCenter(r,1);else{var i={lineNumber:r.startLineNumber,column:r.startColumn};e.setPosition(i),e.revealPositionInCenter(i,1)}return e},t.prototype.findModel=function(e,t){var n=e.getModel();return n&&n.uri.toString()!==t.toString()?null:n},t}(lM),_M=function(e,t,n,r,i){this.token=e,this.index=t,this.fontStyle=n,this.foreground=r,this.background=i};function yM(e,t){e.sort((function(e,t){var n=function(e,t){if(e<t)return-1;if(e>t)return 1;return 0}(e.token,t.token);return 0!==n?n:e.index-t.index}));for(var n=0,r="000000",i="ffffff";e.length>=1&&""===e[0].token;){var o=e.shift();-1!==o.fontStyle&&(n=o.fontStyle),null!==o.foreground&&(r=o.foreground),null!==o.background&&(i=o.background)}for(var s=new bM,a=0,u=t;a<u.length;a++){var l=u[a];s.getId(l)}for(var c=s.getId(r),d=s.getId(i),h=new kM(n,c,d),f=new MM(h),p=0,g=e.length;p<g;p++){var m=e[p];f.insert(m.token,m.fontStyle,s.getId(m.foreground),s.getId(m.background))}return new wM(s,f)}var vM=/^#?([0-9A-Fa-f]{6})([0-9A-Fa-f]{2})?$/,bM=function(){function e(){this._lastColorId=0,this._id2color=[],this._color2id=new Map}return e.prototype.getId=function(e){if(null===e)return 0;var t=e.match(vM);if(!t)throw new Error("Illegal value for token color: "+e);e=t[1].toUpperCase();var n=this._color2id.get(e);return n||(n=++this._lastColorId,this._color2id.set(e,n),this._id2color[n]=Ou.fromHex("#"+e),n)},e.prototype.getColorMap=function(){return this._id2color.slice(0)},e}(),wM=function(){function e(e,t){this._colorMap=e,this._root=t,this._cache=new Map}return e.createFromRawTokenTheme=function(e,t){return this.createFromParsedTokenTheme(function(e){if(!e||!Array.isArray(e))return[];for(var t=[],n=0,r=0,i=e.length;r<i;r++){var o=e[r],s=-1;if("string"==typeof o.fontStyle){s=0;for(var a=o.fontStyle.split(" "),u=0,l=a.length;u<l;u++){switch(a[u]){case"italic":s|=1;break;case"bold":s|=2;break;case"underline":s|=4}}}var c=null;"string"==typeof o.foreground&&(c=o.foreground);var d=null;"string"==typeof o.background&&(d=o.background),t[n++]=new _M(o.token||"",r,s,c,d)}return t}(e),t)},e.createFromParsedTokenTheme=function(e,t){return yM(e,t)},e.prototype.getColorMap=function(){return this._colorMap.getColorMap()},e.prototype._match=function(e){return this._root.match(e)},e.prototype.match=function(e,t){var n=this._cache.get(t);if(void 0===n){var r=this._match(t),i=function(e){var t=e.match(CM);if(!t)return 0;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":case"regexp":return 4}throw new Error("Unexpected match for standard token type!")}(t);n=(r.metadata|i<<8)>>>0,this._cache.set(t,n)}return(n|e<<0)>>>0},e}(),CM=/\b(comment|string|regex|regexp)\b/;var SM,xM,LM,kM=function(){function e(e,t,n){this._fontStyle=e,this._foreground=t,this._background=n,this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0}return e.prototype.clone=function(){return new e(this._fontStyle,this._foreground,this._background)},e.prototype.acceptOverwrite=function(e,t,n){-1!==e&&(this._fontStyle=e),0!==t&&(this._foreground=t),0!==n&&(this._background=n),this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0},e}(),MM=function(){function e(e){this._mainRule=e,this._children=new Map}return e.prototype.match=function(e){if(""===e)return this._mainRule;var t,n,r=e.indexOf(".");-1===r?(t=e,n=""):(t=e.substring(0,r),n=e.substring(r+1));var i=this._children.get(t);return void 0!==i?i.match(n):this._mainRule},e.prototype.insert=function(t,n,r,i){if(""!==t){var o,s,a=t.indexOf(".");-1===a?(o=t,s=""):(o=t.substring(0,a),s=t.substring(a+1));var u=this._children.get(o);void 0===u&&(u=new e(this._mainRule.clone()),this._children.set(o,u)),u.insert(s,n,r,i)}else this._mainRule.acceptOverwrite(n,r,i)},e}();var DM={base:"vs",inherit:!1,rules:[{token:"",foreground:"000000",background:"fffffe"},{token:"invalid",foreground:"cd3131"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"001188"},{token:"variable.predefined",foreground:"4864AA"},{token:"constant",foreground:"dd0000"},{token:"comment",foreground:"008000"},{token:"number",foreground:"09885A"},{token:"number.hex",foreground:"3030c0"},{token:"regexp",foreground:"800000"},{token:"annotation",foreground:"808080"},{token:"type",foreground:"008080"},{token:"delimiter",foreground:"000000"},{token:"delimiter.html",foreground:"383838"},{token:"delimiter.xml",foreground:"0000FF"},{token:"tag",foreground:"800000"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"800000"},{token:"metatag",foreground:"e00000"},{token:"metatag.content.html",foreground:"FF0000"},{token:"metatag.html",foreground:"808080"},{token:"metatag.xml",foreground:"808080"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"863B00"},{token:"string.key.json",foreground:"A31515"},{token:"string.value.json",foreground:"0451A5"},{token:"attribute.name",foreground:"FF0000"},{token:"attribute.value",foreground:"0451A5"},{token:"attribute.value.number",foreground:"09885A"},{token:"attribute.value.unit",foreground:"09885A"},{token:"attribute.value.html",foreground:"0000FF"},{token:"attribute.value.xml",foreground:"0000FF"},{token:"string",foreground:"A31515"},{token:"string.html",foreground:"0000FF"},{token:"string.sql",foreground:"FF0000"},{token:"string.yaml",foreground:"0451A5"},{token:"keyword",foreground:"0000FF"},{token:"keyword.json",foreground:"0451A5"},{token:"keyword.flow",foreground:"AF00DB"},{token:"keyword.flow.scss",foreground:"0000FF"},{token:"operator.scss",foreground:"666666"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"666666"},{token:"predefined.sql",foreground:"FF00FF"}],colors:(SM={},SM[nd]="#FFFFFE",SM[rd]="#000000",SM[cd]="#E5EBF1",SM[yC]="#D3D3D3",SM[vC]="#939393",SM[dd]="#ADD6FF4D",SM)},EM={base:"vs-dark",inherit:!1,rules:[{token:"",foreground:"D4D4D4",background:"1E1E1E"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"74B0DF"},{token:"variable.predefined",foreground:"4864AA"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"B5CEA8"},{token:"number.hex",foreground:"5BB498"},{token:"regexp",foreground:"B46695"},{token:"annotation",foreground:"cc6666"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"DCDCDC"},{token:"delimiter.html",foreground:"808080"},{token:"delimiter.xml",foreground:"808080"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"A79873"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"DD6A6F"},{token:"metatag.content.html",foreground:"9CDCFE"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key.json",foreground:"9CDCFE"},{token:"string.value.json",foreground:"CE9178"},{token:"attribute.name",foreground:"9CDCFE"},{token:"attribute.value",foreground:"CE9178"},{token:"attribute.value.number.css",foreground:"B5CEA8"},{token:"attribute.value.unit.css",foreground:"B5CEA8"},{token:"attribute.value.hex.css",foreground:"D4D4D4"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"keyword.json",foreground:"CE9178"},{token:"keyword.flow.scss",foreground:"569CD6"},{token:"operator.scss",foreground:"909090"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:(xM={},xM[nd]="#1E1E1E",xM[rd]="#D4D4D4",xM[cd]="#3A3D41",xM[yC]="#404040",xM[vC]="#707070",xM[dd]="#ADD6FF26",xM)},TM={base:"hc-black",inherit:!1,rules:[{token:"",foreground:"FFFFFF",background:"000000"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"1AEBFF"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"FFFFFF"},{token:"regexp",foreground:"C0C0C0"},{token:"annotation",foreground:"569CD6"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"FFFF00"},{token:"delimiter.html",foreground:"FFFF00"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta",foreground:"D4D4D4"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"569CD6"},{token:"metatag.content.html",foreground:"1AEBFF"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key",foreground:"9CDCFE"},{token:"string.value",foreground:"CE9178"},{token:"attribute.name",foreground:"569CD6"},{token:"attribute.value",foreground:"3FF23F"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:(LM={},LM[nd]="#000000",LM[rd]="#FFFFFF",LM[yC]="#FFFFFF",LM[vC]="#FFFFFF",LM)},NM="vs",OM="vs-dark",AM="hc-black",IM=kr.as(Zl),PM=kr.as(jd),RM=function(){function e(e,t){this.themeData=t;var n=t.base;e.length>0?(this.id=n+" "+e,this.themeName=e):(this.id=n,this.themeName=n),this.colors=null,this.defaultColors=Object.create(null),this._tokenTheme=null}return Object.defineProperty(e.prototype,"base",{get:function(){return this.themeData.base},enumerable:!0,configurable:!0}),e.prototype.notifyBaseUpdated=function(){this.themeData.inherit&&(this.colors=null,this._tokenTheme=null)},e.prototype.getColors=function(){if(!this.colors){var e=new Map;for(var t in this.themeData.colors)e.set(t,Ou.fromHex(this.themeData.colors[t]));if(this.themeData.inherit){var n=YM(this.themeData.base);for(var t in n.colors)e.has(t)||e.set(t,Ou.fromHex(n.colors[t]))}this.colors=e}return this.colors},e.prototype.getColor=function(e,t){var n=this.getColors().get(e);return n||(!1!==t?this.getDefault(e):void 0)},e.prototype.getDefault=function(e){var t=this.defaultColors[e];return t||(t=IM.resolveDefaultColor(e,this),this.defaultColors[e]=t,t)},e.prototype.defines=function(e){return Object.prototype.hasOwnProperty.call(this.getColors(),e)},Object.defineProperty(e.prototype,"type",{get:function(){switch(this.base){case NM:return"light";case AM:return"hc";default:return"dark"}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tokenTheme",{get:function(){if(!this._tokenTheme){var e=[],t=[];if(this.themeData.inherit){var n=YM(this.themeData.base);e=n.rules,n.encodedTokensColors&&(t=n.encodedTokensColors)}e=e.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(t=this.themeData.encodedTokensColors),this._tokenTheme=wM.createFromRawTokenTheme(e,t)}return this._tokenTheme},enumerable:!0,configurable:!0}),e}();function FM(e){return e===NM||e===OM||e===AM}function YM(e){switch(e){case NM:return DM;case OM:return EM;case AM:return TM}}function jM(e){var t=YM(e);return new RM(e,t)}var BM=function(){function e(){this.environment=Object.create(null),this._onThemeChange=new $t,this._onIconThemeChange=new $t,this._knownThemes=new Map,this._knownThemes.set(NM,jM(NM)),this._knownThemes.set(OM,jM(OM)),this._knownThemes.set(AM,jM(AM)),this._styleElement=bf(),this._styleElement.className="monaco-colors",this.setTheme(NM)}return Object.defineProperty(e.prototype,"onThemeChange",{get:function(){return this._onThemeChange.event},enumerable:!0,configurable:!0}),e.prototype.defineTheme=function(e,t){if(!/^[a-z0-9\-]+$/i.test(e))throw new Error("Illegal theme name!");if(!FM(t.base)&&!FM(e))throw new Error("Illegal theme base!");this._knownThemes.set(e,new RM(e,t)),FM(e)&&this._knownThemes.forEach((function(t){t.base===e&&t.notifyBaseUpdated()})),this._theme&&this._theme.themeName===e&&this.setTheme(e)},e.prototype.getTheme=function(){return this._theme},e.prototype.setTheme=function(e){var t,n=this;if(t=this._knownThemes.has(e)?this._knownThemes.get(e):this._knownThemes.get(NM),this._theme===t)return t.id;this._theme=t;var r=[],i={},o={addRule:function(e){i[e]||(r.push(e),i[e]=!0)}};PM.getThemingParticipants().forEach((function(e){return e(t,o,n.environment)}));var s=t.tokenTheme.getColorMap();return o.addRule(function(e){for(var t=[],n=1,r=e.length;n<r;n++){var i=e[n];t[n]=".mtk"+n+" { color: "+i+"; }"}return t.push(".mtki { font-style: italic; }"),t.push(".mtkb { font-weight: bold; }"),t.push(".mtku { text-decoration: underline; text-underline-position: under; }"),t.join("\n")}(s)),this._styleElement.innerHTML=r.join("\n"),Pa.setColorMap(s),this._onThemeChange.fire(t),t.id},e.prototype.getIconTheme=function(){return{hasFileIcons:!1,hasFolderIcons:!1,hidesExplorerArrows:!1}},e}(),WM=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),HM=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},VM=function(e,t){return function(n,r){t(n,r,e)}},zM="data-keybinding-context",UM=function(){function e(e,t){this._id=e,this._parent=t,this._value=Object.create(null),this._value._contextId=e}return e.prototype.setValue=function(e,t){return this._value[e]!==t&&(this._value[e]=t,!0)},e.prototype.removeValue=function(e){return e in this._value&&(delete this._value[e],!0)},e.prototype.getValue=function(e){var t=this._value[e];return void 0===t&&this._parent?this._parent.getValue(e):t},e}(),qM=function(e){function t(){return e.call(this,-1,null)||this}return WM(t,e),t.prototype.setValue=function(e,t){return!1},t.prototype.removeValue=function(e){return!1},t.prototype.getValue=function(e){},t.INSTANCE=new t,t}(UM),KM=function(e){function t(t,n,r){var i=e.call(this,t,null)||this;return i._configurationService=n,i._values=new Map,i._listener=i._configurationService.onDidChangeConfiguration((function(e){if(6===e.source){var t=Zn(i._values);i._values.clear(),r.fire(new ZM(t))}else{for(var n=[],o=0,s=e.affectedKeys;o<s.length;o++){var a="config."+s[o];i._values.has(a)&&(i._values.delete(a),n.push(a))}r.fire(new ZM(n))}})),i}return WM(t,e),t.prototype.dispose=function(){this._listener.dispose()},t.prototype.getValue=function(n){if(0!==n.indexOf(t._keyPrefix))return e.prototype.getValue.call(this,n);if(this._values.has(n))return this._values.get(n);var r=n.substr(t._keyPrefix.length),i=this._configurationService.getValue(r),o=void 0;switch(typeof i){case"number":case"boolean":case"string":o=i}return this._values.set(n,o),o},t.prototype.setValue=function(t,n){return e.prototype.setValue.call(this,t,n)},t.prototype.removeValue=function(t){return e.prototype.removeValue.call(this,t)},t._keyPrefix="config.",t}(UM),GM=function(){function e(e,t,n){this._service=e,this._key=t,this._defaultValue=n,this.reset()}return e.prototype.set=function(e){this._service.setContext(this._key,e)},e.prototype.reset=function(){void 0===this._defaultValue?this._service.removeContext(this._key):this._service.setContext(this._key,this._defaultValue)},e.prototype.get=function(){return this._service.getContextKeyValue(this._key)},e}(),$M=function(){function e(e){this.key=e}return e.prototype.affectsSome=function(e){return e.has(this.key)},e}(),ZM=function(){function e(e){this.keys=e}return e.prototype.affectsSome=function(e){for(var t=0,n=this.keys;t<n.length;t++){var r=n[t];if(e.has(r))return!0}return!1},e}(),XM=function(){function e(e){this.events=e}return e.prototype.affectsSome=function(e){for(var t=0,n=this.events;t<n.length;t++){if(n[t].affectsSome(e))return!0}return!1},e}(),JM=function(){function e(e){this._onDidChangeContext=new Zt({merge:function(e){return new XM(e)}}),this._isDisposed=!1,this._myContextId=e}return e.prototype.createKey=function(e,t){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new GM(this,e,t)},Object.defineProperty(e.prototype,"onDidChangeContext",{get:function(){return this._onDidChangeContext.event},enumerable:!0,configurable:!0}),e.prototype.bufferChangeEvents=function(e){this._onDidChangeContext.pause();try{e()}finally{this._onDidChangeContext.resume()}},e.prototype.createScoped=function(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new eD(this,e)},e.prototype.contextMatchesRules=function(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");var t=this.getContextValuesContainer(this._myContextId);return ib.contextMatchesRules(t,e)},e.prototype.getContextKeyValue=function(e){if(!this._isDisposed)return this.getContextValuesContainer(this._myContextId).getValue(e)},e.prototype.setContext=function(e,t){if(!this._isDisposed){var n=this.getContextValuesContainer(this._myContextId);n&&n.setValue(e,t)&&this._onDidChangeContext.fire(new $M(e))}},e.prototype.removeContext=function(e){this._isDisposed||this.getContextValuesContainer(this._myContextId).removeValue(e)&&this._onDidChangeContext.fire(new $M(e))},e.prototype.getContext=function(e){return this._isDisposed?qM.INSTANCE:this.getContextValuesContainer(function(e){for(;e;){if(e.hasAttribute(zM)){var t=e.getAttribute(zM);return t?parseInt(t,10):NaN}e=e.parentElement}return 0}(e))},e}(),QM=function(e){function t(t){var n=e.call(this,0)||this;n._contexts=new Map,n._toDispose=new Rt,n._lastContextId=0;var r=new KM(n._myContextId,t,n._onDidChangeContext);return n._contexts.set(n._myContextId,r),n._toDispose.add(r),n}return WM(t,e),t.prototype.dispose=function(){this._isDisposed=!0,this._toDispose.dispose()},t.prototype.getContextValuesContainer=function(e){return this._isDisposed?qM.INSTANCE:this._contexts.get(e)||qM.INSTANCE},t.prototype.createChildContext=function(e){if(void 0===e&&(e=this._myContextId),this._isDisposed)throw new Error("ContextKeyService has been disposed");var t=++this._lastContextId;return this._contexts.set(t,new UM(t,this.getContextValuesContainer(e))),t},t.prototype.disposeContext=function(e){this._isDisposed||this._contexts.delete(e)},t=HM([VM(0,Kv)],t)}(JM),eD=function(e){function t(t,n){var r=e.call(this,t.createChildContext())||this;return r._parent=t,n&&(r._domNode=n,r._domNode.setAttribute(zM,String(r._myContextId))),r}return WM(t,e),t.prototype.dispose=function(){this._isDisposed=!0,this._parent.disposeContext(this._myContextId),this._domNode&&(this._domNode.removeAttribute(zM),this._domNode=void 0)},Object.defineProperty(t.prototype,"onDidChangeContext",{get:function(){return Ht.any(this._parent.onDidChangeContext,this._onDidChangeContext.event)},enumerable:!0,configurable:!0}),t.prototype.getContextValuesContainer=function(e){return this._isDisposed?qM.INSTANCE:this._parent.getContextValuesContainer(e)},t.prototype.createChildContext=function(e){if(void 0===e&&(e=this._myContextId),this._isDisposed)throw new Error("ScopedContextKeyService has been disposed");return this._parent.createChildContext(e)},t.prototype.disposeContext=function(e){this._isDisposed||this._parent.disposeContext(e)},t}(JM);ir.registerCommand("setContext",(function(e,t,n){e.get(Kn).createKey(String(t),n)}));n(353),n(354);var tD=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),nD=/\(&([^\s&])\)|(^|[^&])&([^\s&])/,rD=/(&)?(&)([^\s&])/g,iD=function(e){function t(t,n,r){var i=e.call(this,r||"submenu",t,"",!0)||this;return i.entries=n,i}return tD(t,e),t}(nn),oD=function(e){function t(t,n,r){void 0===r&&(r={});var i=this;Hh(t,"monaco-menu-container"),t.setAttribute("role","presentation");var o=document.createElement("div");Hh(o,"monaco-menu"),o.setAttribute("role","presentation"),(i=e.call(this,o,{orientation:2,actionViewItemProvider:function(e){return i.doGetActionViewItem(e,r,s)},context:r.context,actionRunner:r.actionRunner,ariaLabel:r.ariaLabel,triggerKeys:{keys:[3].concat(nt.d?[10]:[]),keyDown:!0}})||this).menuElement=o,i._onScroll=i._register(new $t),i.actionsList.setAttribute("role","menu"),i.actionsList.tabIndex=0,i.menuDisposables=i._register(new Rt),Gh(o,Sf.KEY_DOWN,(function(e){new Sh(e).equals(2)&&e.preventDefault()})),r.enableMnemonics&&i.menuDisposables.add(Gh(o,Sf.KEY_DOWN,(function(e){var t=e.key.toLocaleLowerCase();if(i.mnemonics.has(t)){xf.stop(e,!0);var n=i.mnemonics.get(t);if(1===n.length&&(n[0]instanceof aD&&i.focusItemByElement(n[0].container),n[0].onClick(e)),n.length>1){var r=n.shift();r&&(i.focusItemByElement(r.container),n.push(r)),i.mnemonics.set(t,n)}}}))),nt.c&&i._register(Gh(o,Sf.KEY_DOWN,(function(e){var t=new Sh(e);t.equals(14)||t.equals(11)?(i.focusedItem=i.viewItems.length-1,i.focusNext(),xf.stop(e,!0)):(t.equals(13)||t.equals(12))&&(i.focusedItem=0,i.focusPrevious(),xf.stop(e,!0))}))),i._register(Gh(i.domNode,Sf.MOUSE_OUT,(function(e){vf(e.relatedTarget,i.domNode)||(i.focusedItem=void 0,i.scrollTopHold=i.menuElement.scrollTop,i.updateFocus(),e.stopPropagation())}))),i._register(Gh(i.domNode,Sf.MOUSE_UP,(function(e){xf.stop(e,!0)}))),i._register(Gh(i.actionsList,Sf.MOUSE_OVER,(function(e){var t=e.target;if(t&&vf(t,i.actionsList)&&t!==i.actionsList){for(;t.parentElement!==i.actionsList&&null!==t.parentElement;)t=t.parentElement;if(Wh(t,"action-item")){var n=i.focusedItem;i.scrollTopHold=i.menuElement.scrollTop,i.setFocusedItem(t),n!==i.focusedItem&&i.updateFocus()}}})));var s={parent:i};return i.mnemonics=new Map,i.push(n,{icon:!0,label:!0,isMenu:!0}),i.scrollableElement=i._register(new tg(o,{alwaysConsumeMouseWheel:!0,horizontal:2,vertical:3,verticalScrollbarSize:7,handleMouseWheel:!0,useShadows:!0})),i.scrollableElement.getDomNode().style.position=null,o.style.maxHeight=Math.max(10,window.innerHeight-t.getBoundingClientRect().top-30)+"px",i.menuDisposables.add(i.scrollableElement.onScroll((function(){i._onScroll.fire()}),i)),i._register(Gh(i.menuElement,Sf.SCROLL,(function(e){void 0!==i.scrollTopHold&&(i.menuElement.scrollTop=i.scrollTopHold,i.scrollTopHold=void 0),i.scrollableElement.scanDomNode()}))),t.appendChild(i.scrollableElement.getDomNode()),i.scrollableElement.scanDomNode(),i.viewItems.filter((function(e){return!(e instanceof uD)})).forEach((function(e,t,n){e.updatePositionInSet(t+1,n.length)})),i}return tD(t,e),t.prototype.style=function(e){var t=this.getContainer(),n=e.foregroundColor?""+e.foregroundColor:null,r=e.backgroundColor?""+e.backgroundColor:null,i=e.borderColor?"2px solid "+e.borderColor:null,o=e.shadowColor?"0 2px 4px "+e.shadowColor:null;t.style.border=i,this.domNode.style.color=n,this.domNode.style.backgroundColor=r,t.style.boxShadow=o,this.viewItems&&this.viewItems.forEach((function(t){(t instanceof sD||t instanceof uD)&&t.style(e)}))},t.prototype.getContainer=function(){return this.scrollableElement.getDomNode()},Object.defineProperty(t.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scrollOffset",{get:function(){return this.menuElement.scrollTop},enumerable:!0,configurable:!0}),t.prototype.focusItemByElement=function(e){var t=this.focusedItem;this.setFocusedItem(e),t!==this.focusedItem&&this.updateFocus()},t.prototype.setFocusedItem=function(e){for(var t=0;t<this.actionsList.children.length;t++){if(e===this.actionsList.children[t]){this.focusedItem=t;break}}},t.prototype.doGetActionViewItem=function(e,t,n){if(e instanceof Cp)return new uD(t.context,e,{icon:!0});if(e instanceof iD){var r=new aD(e,e.entries,n,t);if(t.enableMnemonics)if((u=r.getMnemonic())&&r.isEnabled()){var i=[];this.mnemonics.has(u)&&(i=this.mnemonics.get(u)),i.push(r),this.mnemonics.set(u,i)}return r}var o={enableMnemonics:t.enableMnemonics};if(t.getKeyBinding){var s=t.getKeyBinding(e);if(s){var a=s.getLabel();a&&(o.keybinding=a)}}var u;r=new sD(t.context,e,o);if(t.enableMnemonics&&(u=r.getMnemonic())&&r.isEnabled()){i=[];this.mnemonics.has(u)&&(i=this.mnemonics.get(u)),i.push(r),this.mnemonics.set(u,i)}return r},t}(Lp),sD=function(e){function t(t,n,r){void 0===r&&(r={});var i=this;if(r.isMenu=!0,(i=e.call(this,n,n,r)||this).options=r,i.options.icon=void 0!==r.icon&&r.icon,i.options.label=void 0===r.label||r.label,i.cssClass="",i.options.label&&r.enableMnemonics){var o=i.getAction().label;if(o){var s=nD.exec(o);s&&(i.mnemonic=(s[1]?s[1]:s[3]).toLocaleLowerCase())}}return i.runOnceToEnableMouseUp=new As((function(){i.element&&i._register(Gh(i.element,Sf.MOUSE_UP,(function(e){xf.stop(e,!0),i.onClick(e)})))}),50),i._register(i.runOnceToEnableMouseUp),i}return tD(t,e),t.prototype.render=function(t){e.prototype.render.call(this,t),this.element&&(this.container=t,this.item=Mf(this.element,Nf("a.action-menu-item")),this._action.id===Cp.ID?this.item.setAttribute("role","presentation"):(this.item.setAttribute("role","menuitem"),this.mnemonic&&this.item.setAttribute("aria-keyshortcuts",""+this.mnemonic)),this.check=Mf(this.item,Nf("span.menu-item-check")),this.check.setAttribute("role","none"),this.label=Mf(this.item,Nf("span.action-label")),this.options.label&&this.options.keybinding&&(Mf(this.item,Nf("span.keybinding")).textContent=this.options.keybinding),this.runOnceToEnableMouseUp.schedule(),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked())},t.prototype.blur=function(){e.prototype.blur.call(this),this.applyStyle()},t.prototype.focus=function(){e.prototype.focus.call(this),this.item.focus(),this.applyStyle()},t.prototype.updatePositionInSet=function(e,t){this.item.setAttribute("aria-posinset",""+e),this.item.setAttribute("aria-setsize",""+t)},t.prototype.updateLabel=function(){if(this.options.label){var e=this.getAction().label;if(e){var t=function(e){var t=nD,n=t.exec(e);if(!n)return e;var r=!n[1];return e.replace(t,r?"$2$3":"").trim()}(e);this.options.enableMnemonics||(e=t),this.label.setAttribute("aria-label",t.replace(/&&/g,"&"));var n=nD.exec(e);if(n){e=un(e),rD.lastIndex=0;for(var r=rD.exec(e);r&&r[1];)r=rD.exec(e);r&&(e=e.substr(0,r.index)+'<u aria-hidden="true">'+r[3]+"</u>"+e.substr(r.index+r[0].length)),e=e.replace(/&&/g,"&"),this.item.setAttribute("aria-keyshortcuts",(n[1]?n[1]:n[3]).toLocaleLowerCase())}else e=e.replace(/&&/g,"&")}this.label.innerHTML=e.trim()}},t.prototype.updateTooltip=function(){var e=null;this.getAction().tooltip?e=this.getAction().tooltip:!this.options.label&&this.getAction().label&&this.options.icon&&(e=this.getAction().label,this.options.keybinding&&(e=Ee({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",e,this.options.keybinding))),e&&(this.item.title=e)},t.prototype.updateClass=function(){this.cssClass&&Uh(this.item,this.cssClass),this.options.icon?(this.cssClass=this.getAction().class||"",Hh(this.label,"icon"),this.cssClass&&Vh(this.label,this.cssClass),this.updateEnabled()):zh(this.label,"icon")},t.prototype.updateEnabled=function(){this.getAction().enabled?(this.element&&zh(this.element,"disabled"),zh(this.item,"disabled"),this.item.tabIndex=0):(this.element&&Hh(this.element,"disabled"),Hh(this.item,"disabled"),Af(this.item))},t.prototype.updateChecked=function(){this.getAction().checked?(Hh(this.item,"checked"),this.item.setAttribute("role","menuitemcheckbox"),this.item.setAttribute("aria-checked","true")):(zh(this.item,"checked"),this.item.setAttribute("role","menuitem"),this.item.setAttribute("aria-checked","false"))},t.prototype.getMnemonic=function(){return this.mnemonic},t.prototype.applyStyle=function(){if(this.menuStyle){var e=this.element&&Wh(this.element,"focused"),t=e&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor,n=e&&this.menuStyle.selectionBackgroundColor?this.menuStyle.selectionBackgroundColor:this.menuStyle.backgroundColor,r=e&&this.menuStyle.selectionBorderColor?"thin solid "+this.menuStyle.selectionBorderColor:null;this.item.style.color=t?""+t:null,this.check.style.backgroundColor=t?""+t:null,this.item.style.backgroundColor=n?""+n:null,this.container.style.border=r}},t.prototype.style=function(e){this.menuStyle=e,this.applyStyle()},t}(wp),aD=function(e){function t(t,n,r,i){var o=e.call(this,t,t,i)||this;return o.submenuActions=n,o.parentData=r,o.submenuOptions=i,o.submenuDisposables=o._register(new Rt),o.showScheduler=new As((function(){o.mouseOver&&(o.cleanupExistingSubmenu(!1),o.createSubmenu(!1))}),250),o.hideScheduler=new As((function(){o.element&&!vf(document.activeElement,o.element)&&o.parentData.submenu===o.mysubmenu&&(o.parentData.parent.focus(!1),o.cleanupExistingSubmenu(!0))}),750),o}return tD(t,e),t.prototype.render=function(t){var n=this;e.prototype.render.call(this,t),this.element&&(Hh(this.item,"monaco-submenu-item"),this.item.setAttribute("aria-haspopup","true"),this.submenuIndicator=Mf(this.item,Nf("span.submenu-indicator")),this.submenuIndicator.setAttribute("aria-hidden","true"),this._register(Gh(this.element,Sf.KEY_UP,(function(e){var t=new Sh(e);(t.equals(17)||t.equals(3))&&(xf.stop(e,!0),n.createSubmenu(!0))}))),this._register(Gh(this.element,Sf.KEY_DOWN,(function(e){var t=new Sh(e);document.activeElement===n.item&&(t.equals(17)||t.equals(3))&&xf.stop(e,!0)}))),this._register(Gh(this.element,Sf.MOUSE_OVER,(function(e){n.mouseOver||(n.mouseOver=!0,n.showScheduler.schedule())}))),this._register(Gh(this.element,Sf.MOUSE_LEAVE,(function(e){n.mouseOver=!1}))),this._register(Gh(this.element,Sf.FOCUS_OUT,(function(e){n.element&&!vf(document.activeElement,n.element)&&n.hideScheduler.schedule()}))),this._register(this.parentData.parent.onScroll((function(){n.parentData.parent.focus(!1),n.cleanupExistingSubmenu(!1)}))))},t.prototype.onClick=function(e){xf.stop(e,!0),this.cleanupExistingSubmenu(!1),this.createSubmenu(!1)},t.prototype.cleanupExistingSubmenu=function(e){this.parentData.submenu&&(e||this.parentData.submenu!==this.mysubmenu)&&(this.parentData.submenu.dispose(),this.parentData.submenu=void 0,this.submenuContainer&&(this.submenuDisposables.clear(),this.submenuContainer=void 0))},t.prototype.createSubmenu=function(e){var t=this;if(void 0===e&&(e=!0),this.element)if(this.parentData.submenu)this.parentData.submenu.focus(!1);else{this.submenuContainer=Mf(this.element,Nf("div.monaco-submenu")),Vh(this.submenuContainer,"menubar-menu-items-holder","context-view"),this.parentData.submenu=new oD(this.submenuContainer,this.submenuActions,this.submenuOptions),this.menuStyle&&this.parentData.submenu.style(this.menuStyle);var n=this.element.getBoundingClientRect(),r=this.submenuContainer.getBoundingClientRect(),i=getComputedStyle(this.parentData.parent.domNode),o=parseFloat(i.paddingTop||"0")||0;window.innerWidth<=n.right+r.width?(this.submenuContainer.style.left="10px",this.submenuContainer.style.top=this.element.offsetTop-this.parentData.parent.scrollOffset+n.height+"px"):(this.submenuContainer.style.left=this.element.offsetWidth+"px",this.submenuContainer.style.top=this.element.offsetTop-this.parentData.parent.scrollOffset-o+"px"),this.submenuDisposables.add(Gh(this.submenuContainer,Sf.KEY_UP,(function(e){new Sh(e).equals(15)&&(xf.stop(e,!0),t.parentData.parent.focus(),t.parentData.submenu&&(t.parentData.submenu.dispose(),t.parentData.submenu=void 0),t.submenuDisposables.clear(),t.submenuContainer=void 0)}))),this.submenuDisposables.add(Gh(this.submenuContainer,Sf.KEY_DOWN,(function(e){new Sh(e).equals(15)&&xf.stop(e,!0)}))),this.submenuDisposables.add(this.parentData.submenu.onDidCancel((function(){t.parentData.parent.focus(),t.parentData.submenu&&(t.parentData.submenu.dispose(),t.parentData.submenu=void 0),t.submenuDisposables.clear(),t.submenuContainer=void 0}))),this.parentData.submenu.focus(e),this.mysubmenu=this.parentData.submenu}},t.prototype.applyStyle=function(){if(e.prototype.applyStyle.call(this),this.menuStyle){var t=this.element&&Wh(this.element,"focused")&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor;this.submenuIndicator.style.backgroundColor=t?""+t:null,this.parentData.submenu&&this.parentData.submenu.style(this.menuStyle)}},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.hideScheduler.dispose(),this.mysubmenu&&(this.mysubmenu.dispose(),this.mysubmenu=null),this.submenuContainer&&(this.submenuContainer=void 0)},t}(sD),uD=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return tD(t,e),t.prototype.style=function(e){this.label.style.borderBottomColor=e.separatorColor?""+e.separatorColor:null},t}(Sp);var lD=function(){return(lD=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function cD(e,t){var n=Object.create(null);for(var r in t){var i=t[r];"string"==typeof i?n[r]=e.getColor(i):"function"==typeof i&&(n[r]=i(e))}return n}function dD(e,t,n){function r(r){var i=cD(e.getTheme(),t);"function"==typeof n?n(i):n.style(i)}return r(e.getTheme()),e.onThemeChange(r)}var hD={listFocusBackground:Sc,listFocusForeground:xc,listActiveSelectionBackground:Dd(Lc,.1),listActiveSelectionForeground:kc,listFocusAndSelectionBackground:Lc,listFocusAndSelectionForeground:kc,listInactiveSelectionBackground:Mc,listInactiveSelectionForeground:Dc,listInactiveFocusBackground:Ec,listHoverBackground:Tc,listHoverForeground:Nc,listDropBackground:Oc,listFocusOutline:oc,listSelectionOutline:oc,listHoverOutline:oc,listFilterWidgetBackground:Ac,listFilterWidgetOutline:Ic,listFilterWidgetNoMatchesOutline:Pc,listMatchesShadow:sc,treeIndentGuidesStroke:Rc},fD={shadowColor:sc,borderColor:Wc,foregroundColor:Hc,backgroundColor:Vc,selectionForegroundColor:zc,selectionBackgroundColor:Uc,selectionBorderColor:qc,separatorColor:Kc};var pD,gD=function(){function e(e,t,n,r,i){this.contextViewService=e,this.telemetryService=t,this.notificationService=n,this.keybindingService=r,this.themeService=i,this.options={blockMouse:!0}}return e.prototype.configure=function(e){this.options=e},e.prototype.showContextMenu=function(e){var t,n=this,r=e.getActions();r.length&&(this.focusToReturn=document.activeElement,this.contextViewService.showContextView({getAnchor:function(){return e.getAnchor()},canRelayout:!1,anchorAlignment:e.anchorAlignment,render:function(i){var o=e.getMenuClassName?e.getMenuClassName():"";o&&(i.className+=" "+o),n.options.blockMouse&&(n.block=i.appendChild(Nf(".context-view-block")));var s,a,u=new Rt,l=e.actionRunner||new rn;return l.onDidBeforeRun(n.onActionRun,n,u),l.onDidRun(n.onDidActionRun,n,u),t=new oD(i,r,{actionViewItemProvider:e.getActionViewItem,context:e.getActionsContext?e.getActionsContext():null,actionRunner:l,getKeyBinding:e.getKeyBinding?e.getKeyBinding:function(e){return n.keybindingService.lookupKeybinding(e.id)}}),u.add((s=t,dD(n.themeService,lD({},fD,a),s))),t.onDidCancel((function(){return n.contextViewService.hideContextView(!0)}),null,u),t.onDidBlur((function(){return n.contextViewService.hideContextView(!0)}),null,u),yh(window,Sf.BLUR)((function(){n.contextViewService.hideContextView(!0)}),null,u),yh(window,Sf.MOUSE_DOWN)((function(e){if(!e.defaultPrevented){var t=new Nh(e),r=t.target;if(!t.rightButton){for(;r;){if(r===i)return;r=r.parentElement}n.contextViewService.hideContextView(!0)}}}),null,u),It(u,t)},focus:function(){t&&t.focus(!!e.autoSelectFirstItem)},onHide:function(t){e.onHide&&e.onHide(!!t),n.block&&(Fh(n.block),n.block=null),n.focusToReturn&&n.focusToReturn.focus()}}))},e.prototype.onActionRun=function(e){this.telemetryService&&this.telemetryService.publicLog2("workbenchActionExecuted",{id:e.action.id,from:"contextMenu"}),this.contextViewService.hideContextView(!1),this.focusToReturn&&this.focusToReturn.focus()},e.prototype.onDidActionRun=function(e){e.error&&this.notificationService&&this.notificationService.error(e.error)},e}(),mD=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_D=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},yD=function(e,t){return function(n,r){t(n,r,e)}},vD=function(e){function t(t,n,r,i,o){var s=e.call(this)||this;return s._onDidContextMenu=s._register(new $t),s.contextMenuHandler=new gD(r,t,n,i,o),s}return mD(t,e),t.prototype.configure=function(e){this.contextMenuHandler.configure(e)},t.prototype.showContextMenu=function(e){this.contextMenuHandler.showContextMenu(e),this._onDidContextMenu.fire()},t=_D([yD(0,Tr),yD(1,am),yD(2,Jg),yD(3,em),yD(4,Id)],t)}(Ft);n(355);!function(e){function t(e,t){if(e.start>=t.end||t.start>=e.end)return{start:0,end:0};var n=Math.max(e.start,t.start),r=Math.min(e.end,t.end);return r-n<=0?{start:0,end:0}:{start:n,end:r}}function n(e){return e.end-e.start<=0}e.intersect=t,e.isEmpty=n,e.intersects=function(e,r){return!n(t(e,r))},e.relativeComplement=function(e,t){var r=[],i={start:e.start,end:Math.min(t.start,e.end)},o={start:Math.max(t.end,e.start),end:e.end};return n(i)||r.push(i),n(o)||r.push(o),r}}(pD||(pD={}));var bD=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function wD(e,t,n){var r=n.offset+n.size;return 0===n.position?t<=e-r?r:t<=n.offset?n.offset-t:Math.max(e-t,0):t<=n.offset?n.offset-t:t<=e-r?r:0}var CD=function(e){function t(t){var n=e.call(this)||this;return n.container=null,n.delegate=null,n.toDisposeOnClean=Ft.None,n.toDisposeOnSetContainer=Ft.None,n.view=Nf(".context-view"),Of(n.view),n.setContainer(t),n._register(Pt((function(){return n.setContainer(null)}))),n}return bD(t,e),t.prototype.setContainer=function(e){var n=this;if(this.container&&(this.toDisposeOnSetContainer.dispose(),this.container.removeChild(this.view),this.container=null),e){this.container=e,this.container.appendChild(this.view);var r=new Rt;t.BUBBLE_UP_EVENTS.forEach((function(e){r.add($h(n.container,e,(function(e){n.onDOMEvent(e,!1)})))})),t.BUBBLE_DOWN_EVENTS.forEach((function(e){r.add($h(n.container,e,(function(e){n.onDOMEvent(e,!0)}),!0))})),this.toDisposeOnSetContainer=r}},t.prototype.show=function(e){this.isVisible()&&this.hide(),Rh(this.view),this.view.className="context-view",this.view.style.top="0px",this.view.style.left="0px",function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e;n<r.length;n++){var i=r[n];i.style.display="",i.removeAttribute("aria-hidden")}}(this.view),this.toDisposeOnClean=e.render(this.view)||Ft.None,this.delegate=e,this.doLayout(),this.delegate.focus&&this.delegate.focus()},t.prototype.layout=function(){this.isVisible()&&(!1!==this.delegate.canRelayout?(this.delegate.layout&&this.delegate.layout(),this.doLayout()):this.hide())},t.prototype.doLayout=function(){if(this.isVisible()){var e,t,n=this.delegate.getAnchor();if(t=n,"object"==typeof HTMLElement?t instanceof HTMLElement:t&&"object"==typeof t&&1===t.nodeType&&"string"==typeof t.nodeName){var r=pf(n);e={top:r.top,left:r.left,width:r.width,height:r.height}}else e={top:n.y,left:n.x,width:n.width||1,height:n.height||2};var i,o=mf(this.view),s=yf(this.view),a=this.delegate.anchorPosition||0,u=this.delegate.anchorAlignment||0,l={offset:e.top-window.pageYOffset,size:e.height,position:0===a?0:1};i=0===u?{offset:e.left,size:0,position:0}:{offset:e.left+e.width,size:0,position:1};var c=wD(window.innerHeight,s,l)+window.pageYOffset;pD.intersects({start:c,end:c+s},{start:l.offset,end:l.offset+l.size})&&(i.size=e.width,1===u&&(i.offset=e.left));var d=wD(window.innerWidth,o,i);Uh(this.view,"top","bottom","left","right"),Hh(this.view,0===a?"bottom":"top"),Hh(this.view,0===u?"left":"right");var h=pf(this.container);this.view.style.top=c-h.top+"px",this.view.style.left=d-h.left+"px",this.view.style.width="initial"}},t.prototype.hide=function(e){var t=this.delegate;this.delegate=null,t&&t.onHide&&t.onHide(e),this.toDisposeOnClean.dispose(),Of(this.view)},t.prototype.isVisible=function(){return!!this.delegate},t.prototype.onDOMEvent=function(e,t){this.delegate&&(this.delegate.onDOMEvent?this.delegate.onDOMEvent(e,document.activeElement):t&&!vf(e.target,this.container)&&this.hide())},t.prototype.dispose=function(){this.hide(),e.prototype.dispose.call(this)},t.BUBBLE_UP_EVENTS=["click","keydown","focus","blur"],t.BUBBLE_DOWN_EVENTS=["click"],t}(Ft),SD=Ct("layoutService"),xD=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),LD=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},kD=function(e,t){return function(n,r){t(n,r,e)}},MD=function(e){function t(t){var n=e.call(this)||this;return n.layoutService=t,n.contextView=n._register(new CD(t.container)),n.layout(),n._register(t.onLayout((function(){return n.layout()}))),n}return xD(t,e),t.prototype.setContainer=function(e){this.contextView.setContainer(e)},t.prototype.showContextView=function(e){this.contextView.show(e)},t.prototype.layout=function(){this.contextView.layout()},t.prototype.hideContextView=function(e){this.contextView.hide(e)},t=LD([kD(0,SD)],t)}(Ft),DD=Ct("dialogService"),ED=Object.prototype.hasOwnProperty;function TD(e,t){var n=function(n){if(ED.call(e,n)&&!1===t({key:n,value:e[n]},(function(){delete e[n]})))return{value:void 0}};for(var r in e){var i=n(r);if("object"==typeof i)return i.value}}var ND=function(){function e(){this.map=new Map}return e.prototype.add=function(e,t){var n=this.map.get(e);n||(n=new Set,this.map.set(e,n)),n.add(t)},e.prototype.delete=function(e,t){var n=this.map.get(e);n&&(n.delete(t),0===n.size&&this.map.delete(e))},e.prototype.forEach=function(e,t){var n=this.map.get(e);n&&n.forEach(t)},e}();var OD,AD=function(){function e(e){this._hashFn=e,this._nodes=Object.create(null)}return e.prototype.roots=function(){var e=[];return TD(this._nodes,(function(t){Ye(t.value.outgoing)&&e.push(t.value)})),e},e.prototype.insertEdge=function(e,t){var n=this.lookupOrInsertNode(e),r=this.lookupOrInsertNode(t);n.outgoing[this._hashFn(t)]=r,r.incoming[this._hashFn(e)]=n},e.prototype.removeNode=function(e){var t=this._hashFn(e);delete this._nodes[t],TD(this._nodes,(function(e){delete e.value.outgoing[t],delete e.value.incoming[t]}))},e.prototype.lookupOrInsertNode=function(e){var t=this._hashFn(e),n=this._nodes[t];return n||(n=function(e){return{data:e,incoming:Object.create(null),outgoing:Object.create(null)}}(e),this._nodes[t]=n),n},e.prototype.isEmpty=function(){for(var e in this._nodes)return!1;return!0},e.prototype.toString=function(){var e=[];return TD(this._nodes,(function(t){e.push(t.key+", (incoming)["+Object.keys(t.value.incoming).join(", ")+"], (outgoing)["+Object.keys(t.value.outgoing).join(",")+"]")})),e.join("\n")},e}(),ID=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),PD="function"==typeof Proxy,RD=function(e){function t(t){var n=e.call(this,"cyclic dependency between services")||this;return n.message=t.toString(),n}return ID(t,e),t}(Error),FD=function(){function e(e,t,n){void 0===e&&(e=new wL),void 0===t&&(t=!1),this._services=e,this._strict=t,this._parent=n,this._services.set(bt,this)}return e.prototype.createChild=function(t){return new e(t,this._strict,this)},e.prototype.invokeFunction=function(e){for(var t=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=YD.traceInvocation(e),o=!1;try{var s={get:function(e,n){if(o)throw Qe("service accessor is only valid during the invocation of its target method");var r=t._getOrCreateServiceInstance(e,i);if(!r&&n!==St)throw new Error("[invokeFunction] unknown service '"+e+"'");return r}};return e.apply(void 0,[s].concat(n))}finally{o=!0,i.stop()}},e.prototype.createInstance=function(e){for(var t,n,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];return e instanceof BL?(t=YD.traceCreation(e.ctor),n=this._createInstance(e.ctor,e.staticArguments.concat(r),t)):(t=YD.traceCreation(e),n=this._createInstance(e,r,t)),t.stop(),n},e.prototype._createInstance=function(e,t,n){void 0===t&&(t=[]);for(var r=ut.getServiceDependencies(e).sort((function(e,t){return e.index-t.index})),i=[],o=0,s=r;o<s.length;o++){var a=s[o],u=this._getOrCreateServiceInstance(a.id,n);if(!u&&this._strict&&!a.optional)throw new Error("[createInstance] "+e.name+" depends on UNKNOWN service "+a.id+".");i.push(u)}var l=r.length>0?r[0].index:t.length;if(t.length!==l){console.warn("[createInstance] First service dependency of "+e.name+" at position "+(l+1)+" conflicts with "+t.length+" static arguments");var c=l-t.length;t=c>0?t.concat(new Array(c)):t.slice(0,l)}return new(e.bind.apply(e,[void 0].concat(t.concat(i))))},e.prototype._setServiceInstance=function(e,t){if(this._services.get(e)instanceof BL)this._services.set(e,t);else{if(!this._parent)throw new Error("illegalState - setting UNKNOWN service instance");this._parent._setServiceInstance(e,t)}},e.prototype._getServiceInstanceOrDescriptor=function(e){var t=this._services.get(e);return!t&&this._parent?this._parent._getServiceInstanceOrDescriptor(e):t},e.prototype._getOrCreateServiceInstance=function(e,t){var n=this._getServiceInstanceOrDescriptor(e);return n instanceof BL?this._createAndCacheServiceInstance(e,n,t.branch(e,!0)):(t.branch(e,!1),n)},e.prototype._createAndCacheServiceInstance=function(e,t,n){for(var r=new AD((function(e){return e.id.toString()})),i=0,o=[{id:e,desc:t,_trace:n}];o.length;){var s=o.pop();if(r.lookupOrInsertNode(s),i++>100)throw new RD(r);for(var a=0,u=ut.getServiceDependencies(s.desc.ctor);a<u.length;a++){var l=u[a],c=this._getServiceInstanceOrDescriptor(l.id);if(c||l.optional||console.warn("[createInstance] "+e+" depends on "+l.id+" which is NOT registered."),c instanceof BL){var d={id:l.id,desc:c,_trace:s._trace.branch(l.id,!0)};r.insertEdge(s,d),o.push(d)}}}for(;;){var h=r.roots();if(0===h.length){if(!r.isEmpty())throw new RD(r);break}for(var f=0,p=h;f<p.length;f++){var g=p[f].data,m=this._createServiceInstanceWithOwner(g.id,g.desc.ctor,g.desc.staticArguments,g.desc.supportsDelayedInstantiation,g._trace);this._setServiceInstance(g.id,m),r.removeNode(g)}}return this._getServiceInstanceOrDescriptor(e)},e.prototype._createServiceInstanceWithOwner=function(e,t,n,r,i){if(void 0===n&&(n=[]),this._services.get(e)instanceof BL)return this._createServiceInstance(t,n,r,i);if(this._parent)return this._parent._createServiceInstanceWithOwner(e,t,n,r,i);throw new Error("illegalState - creating UNKNOWN service instance")},e.prototype._createServiceInstance=function(e,t,n,r){var i=this;if(void 0===t&&(t=[]),n&&PD){var o=new Is((function(){return i._createInstance(e,t,r)}));return new Proxy(Object.create(null),{get:function(e,t){return o.getValue()[t]},set:function(e,t,n){return o.getValue()[t]=n,!0}})}return this._createInstance(e,t,r)},e}(),YD=function(){function e(e,t){this.type=e,this.name=t,this._start=Date.now(),this._dep=[]}return e.traceInvocation=function(t){return e._None},e.traceCreation=function(t){return e._None},e.prototype.branch=function(t,n){var r=new e(2,t.toString());return this._dep.push([t,n,r]),r},e.prototype.stop=function(){var t=Date.now()-this._start;e._totals+=t;var n=!1;var r=[(0===this.type?"CREATE":"CALL")+" "+this.name,""+function e(t,r){for(var i=[],o=new Array(t+1).join("\t"),s=0,a=r._dep;s<a.length;s++){var u=a[s],l=u[0],c=u[1],d=u[2];if(c&&d){n=!0,i.push(o+"CREATES -> "+l);var h=e(t+1,d);h&&i.push(h)}else i.push(o+"uses -> "+l)}return i.join("\n")}(1,this),"DONE, took "+t.toFixed(2)+"ms (grand total "+e._totals.toFixed(2)+"ms)"];(t>2||n)&&console.log(r.join("\n"))},e._None=new(function(e){function t(){return e.call(this,-1,null)||this}return ID(t,e),t.prototype.stop=function(){},t.prototype.branch=function(){return this},t}(e)),e._totals=0,e}(),jD=Ct("label");n(356);function BD(e,t){for(var n=[],r=0,i=t;r<i.length;r++){var o=i[r];if(!(e.start>=o.range.end)){if(e.end<o.range.start)break;var s=pD.intersect(e,o.range);pD.isEmpty(s)||n.push({range:s,size:o.size})}}return n}function WD(e,t){return{start:e.start+t,end:e.end+t}}!function(e){e.TREE="tree",e.FORM="form"}(OD||(OD={}));var HD=function(){function e(){this.groups=[],this._size=0}return e.prototype.splice=function(e,t,n){void 0===n&&(n=[]);var r=n.length-t,i=BD({start:0,end:e},this.groups),o=BD({start:e+t,end:Number.POSITIVE_INFINITY},this.groups).map((function(e){return{range:WD(e.range,r),size:e.size}})),s=n.map((function(t,n){return{range:{start:e+n,end:e+n+1},size:t.size}}));this.groups=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(e){for(var t=[],n=null,r=0,i=e;r<i.length;r++){var o=i[r],s=o.range.start,a=o.range.end,u=o.size;n&&u===n.size?n.range.end=a:(n={range:{start:s,end:a},size:u},t.push(n))}return t}(e.reduce((function(e,t){return e.concat(t)}),[]))}(i,s,o),this._size=this.groups.reduce((function(e,t){return e+t.size*(t.range.end-t.range.start)}),0)},Object.defineProperty(e.prototype,"count",{get:function(){var e=this.groups.length;return e?this.groups[e-1].range.end:0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),e.prototype.indexAt=function(e){if(e<0)return-1;for(var t=0,n=0,r=0,i=this.groups;r<i.length;r++){var o=i[r],s=o.range.end-o.range.start,a=n+s*o.size;if(e<a)return t+Math.floor((e-n)/o.size);t+=s,n=a}return t},e.prototype.indexAfter=function(e){return Math.min(this.indexAt(e)+1,this.count)},e.prototype.positionAt=function(e){if(e<0)return-1;for(var t=0,n=0,r=0,i=this.groups;r<i.length;r++){var o=i[r],s=o.range.end-o.range.start,a=n+s;if(e<a)return t+(e-n)*o.size;t+=s*o.size,n=a}return-1},e.prototype.dispose=function(){this.groups=null},e}();var VD=function(){function e(e){this.renderers=e,this.cache=new Map}return e.prototype.alloc=function(e){var t=this.getTemplateCache(e).pop();if(!t){var n=Nf(".monaco-list-row");t={domNode:n,templateId:e,templateData:this.getRenderer(e).renderTemplate(n)}}return t},e.prototype.release=function(e){e&&this.releaseRow(e)},e.prototype.releaseRow=function(e){var t=e.domNode,n=e.templateId;t&&(zh(t,"scrolling"),function(e){try{e.parentElement&&e.parentElement.removeChild(e)}catch(e){}}(t)),this.getTemplateCache(n).push(e)},e.prototype.getTemplateCache=function(e){var t=this.cache.get(e);return t||(t=[],this.cache.set(e,t)),t},e.prototype.garbageCollect=function(){var e=this;this.renderers&&(this.cache.forEach((function(t,n){for(var r=0,i=t;r<i.length;r++){var o=i[r];e.getRenderer(n).disposeTemplate(o.templateData),o.domNode=null,o.templateData=null}})),this.cache.clear())},e.prototype.dispose=function(){this.garbageCollect(),this.cache.clear(),this.renderers=null},e.prototype.getRenderer=function(e){var t=this.renderers.get(e);if(!t)throw new Error("No renderer found for "+e);return t},e}(),zD="ResourceURLs",UD=function(){function e(e){this.data=e}return e.prototype.update=function(){},e.prototype.getData=function(){return this.data},e}(),qD={CurrentDragAndDropData:void 0},KD=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},GD={useShadows:!0,verticalScrollMode:1,setRowLineHeight:!0,supportDynamicHeights:!1,dnd:{getDragElements:function(e){return[e]},getDragURI:function(){return null},onDragStart:function(){},onDragOver:function(){return!1},drop:function(){}},horizontalScrolling:!1},$D=function(){function e(e){this.elements=e}return e.prototype.update=function(){},e.prototype.getData=function(){return this.elements},e}(),ZD=function(){function e(e){this.elements=e}return e.prototype.update=function(){},e.prototype.getData=function(){return this.elements},e}(),XD=function(){function e(){this.types=[],this.files=[]}return e.prototype.update=function(e){var t;if(e.types&&(t=this.types).splice.apply(t,[0,this.types.length].concat(e.types)),e.files){this.files.splice(0,this.files.length);for(var n=0;n<e.files.length;n++){var r=e.files.item(n);r&&(r.size||r.type)&&this.files.push(r)}}},e.prototype.getData=function(){return{types:this.types,files:this.files}},e}();var JD=function(){function e(t,n,r,i){var o=this;if(void 0===i&&(i=GD),this.virtualDelegate=n,this.domId="list_id_"+ ++e.InstanceCount,this.renderers=new Map,this.renderWidth=0,this._scrollHeight=0,this.scrollableElementUpdateDisposable=null,this.scrollableElementWidthDelayer=new Ds(50),this.splicing=!1,this.dragOverAnimationStopDisposable=Ft.None,this.dragOverMouseY=0,this.canUseTranslate3d=void 0,this.canDrop=!1,this.currentDragFeedbackDisposable=Ft.None,this.onDragLeaveTimeout=Ft.None,this._onDidChangeContentHeight=new $t,i.horizontalScrolling&&i.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");this.items=[],this.itemId=0,this.rangeMap=new HD;for(var s=0,a=r;s<a.length;s++){var u=a[s];this.renderers.set(u.templateId,u)}this.cache=new VD(this.renderers),this.lastRenderTop=0,this.lastRenderHeight=0,this.domNode=document.createElement("div"),this.domNode.className="monaco-list",Hh(this.domNode,this.domId),this.domNode.tabIndex=0,qh(this.domNode,"mouse-support","boolean"!=typeof i.mouseSupport||i.mouseSupport),this.horizontalScrolling=ei(i,(function(e){return e.horizontalScrolling}),GD.horizontalScrolling),qh(this.domNode,"horizontal-scrolling",this.horizontalScrolling),this.additionalScrollHeight=void 0===i.additionalScrollHeight?0:i.additionalScrollHeight,this.ariaProvider=i.ariaProvider||{getSetSize:function(e,t,n){return n},getPosInSet:function(e,t){return t+1}},this.rowsContainer=document.createElement("div"),this.rowsContainer.className="monaco-list-rows",hp.addTarget(this.rowsContainer),this.scrollableElement=new Qp(this.rowsContainer,{alwaysConsumeMouseWheel:!0,horizontal:this.horizontalScrolling?1:2,vertical:ei(i,(function(e){return e.verticalScrollMode}),GD.verticalScrollMode),useShadows:ei(i,(function(e){return e.useShadows}),GD.useShadows)}),this.domNode.appendChild(this.scrollableElement.getDomNode()),t.appendChild(this.domNode),this.disposables=[this.rangeMap,this.scrollableElement,this.cache],this.scrollableElement.onScroll(this.onScroll,this,this.disposables),yh(this.rowsContainer,lp.Change)(this.onTouchChange,this,this.disposables),yh(this.scrollableElement.getDomNode(),"scroll")((function(e){return e.target.scrollTop=0}),null,this.disposables),Ht.map(yh(this.domNode,"dragover"),(function(e){return o.toDragEvent(e)}))(this.onDragOver,this,this.disposables),Ht.map(yh(this.domNode,"drop"),(function(e){return o.toDragEvent(e)}))(this.onDrop,this,this.disposables),yh(this.domNode,"dragleave")(this.onDragLeave,this,this.disposables),yh(window,"dragend")(this.onDragEnd,this,this.disposables),this.setRowLineHeight=ei(i,(function(e){return e.setRowLineHeight}),GD.setRowLineHeight),this.supportDynamicHeights=ei(i,(function(e){return e.supportDynamicHeights}),GD.supportDynamicHeights),this.dnd=ei(i,(function(e){return e.dnd}),GD.dnd),this.layout()}return Object.defineProperty(e.prototype,"contentHeight",{get:function(){return this.rangeMap.size},enumerable:!0,configurable:!0}),e.prototype.splice=function(e,t,n){if(void 0===n&&(n=[]),this.splicing)throw new Error("Can't run recursive splices.");this.splicing=!0;try{return this._splice(e,t,n)}finally{this.splicing=!1,this._onDidChangeContentHeight.fire(this.contentHeight)}},e.prototype._splice=function(e,t,n){var r,i=this;void 0===n&&(n=[]);for(var o=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),s={start:e,end:e+t},a=pD.intersect(o,s),u=a.start;u<a.end;u++)this.removeItemFromDOM(u);var l,c={start:e+t,end:this.items.length},d=pD.intersect(c,o),h=pD.relativeComplement(c,o),f=n.map((function(e){return{id:String(i.itemId++),element:e,templateId:i.virtualDelegate.getTemplateId(e),size:i.virtualDelegate.getHeight(e),width:void 0,hasDynamicHeight:!!i.virtualDelegate.hasDynamicHeight&&i.virtualDelegate.hasDynamicHeight(e),lastDynamicHeightWidth:void 0,row:null,uri:void 0,dropTarget:!1,dragStartDisposable:Ft.None}}));0===e&&t>=this.items.length?(this.rangeMap=new HD,this.rangeMap.splice(0,0,f),this.items=f,l=[]):(this.rangeMap.splice(e,t,f),l=(r=this.items).splice.apply(r,[e,t].concat(f)));var p=n.length-t,g=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),m=WD(d,p),_=pD.intersect(g,m);for(u=_.start;u<_.end;u++)this.updateItemInDOM(this.items[u],u);for(var y=0,v=pD.relativeComplement(m,g);y<v.length;y++)for(u=(L=v[y]).start;u<L.end;u++)this.removeItemFromDOM(u);for(var b=h.map((function(e){return WD(e,p)})),w=[{start:e,end:e+n.length}].concat(b).map((function(e){return pD.intersect(g,e)})),C=this.getNextToLastElement(w),S=0,x=w;S<x.length;S++){var L;for(u=(L=x[S]).start;u<L.end;u++)this.insertItemInDOM(u,C)}return this.eventuallyUpdateScrollDimensions(),this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight),l.map((function(e){return e.element}))},e.prototype.eventuallyUpdateScrollDimensions=function(){var e=this;this._scrollHeight=this.contentHeight,this.rowsContainer.style.height=this._scrollHeight+"px",this.scrollableElementUpdateDisposable||(this.scrollableElementUpdateDisposable=Jh((function(){e.scrollableElement.setScrollDimensions({scrollHeight:e.scrollHeight}),e.updateScrollWidth(),e.scrollableElementUpdateDisposable=null})))},e.prototype.eventuallyUpdateScrollWidth=function(){var e=this;this.horizontalScrolling&&this.scrollableElementWidthDelayer.trigger((function(){return e.updateScrollWidth()}))},e.prototype.updateScrollWidth=function(){if(this.horizontalScrolling){0===this.items.length&&this.scrollableElement.setScrollDimensions({scrollWidth:0});for(var e=0,t=0,n=this.items;t<n.length;t++){var r=n[t];void 0!==r.width&&(e=Math.max(e,r.width))}this.scrollWidth=e,this.scrollableElement.setScrollDimensions({scrollWidth:e+10})}},e.prototype.rerender=function(){if(this.supportDynamicHeights){for(var e=0,t=this.items;e<t.length;e++){t[e].lastDynamicHeightWidth=void 0}this._rerender(this.lastRenderTop,this.lastRenderHeight)}},Object.defineProperty(e.prototype,"length",{get:function(){return this.items.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderHeight",{get:function(){return this.scrollableElement.getScrollDimensions().height},enumerable:!0,configurable:!0}),e.prototype.element=function(e){return this.items[e].element},e.prototype.domElement=function(e){var t=this.items[e].row;return t&&t.domNode},e.prototype.elementHeight=function(e){return this.items[e].size},e.prototype.elementTop=function(e){return this.rangeMap.positionAt(e)},e.prototype.indexAt=function(e){return this.rangeMap.indexAt(e)},e.prototype.indexAfter=function(e){return this.rangeMap.indexAfter(e)},e.prototype.layout=function(e,t){var n,r,i,o={height:"number"==typeof e?e:(n=this.domNode,r=hf.getBorderTopWidth(n)+hf.getBorderBottomWidth(n),i=hf.getPaddingTop(n)+hf.getPaddingBottom(n),n.offsetHeight-r-i)};this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,o.scrollHeight=this.scrollHeight),this.scrollableElement.setScrollDimensions(o),void 0!==t&&(this.renderWidth=t,this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight),this.horizontalScrolling&&this.scrollableElement.setScrollDimensions({width:"number"==typeof t?t:_f(this.domNode)}))},e.prototype.render=function(e,t,n,r){for(var i=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),o=this.getRenderRange(e,t),s=pD.relativeComplement(o,i),a=pD.relativeComplement(i,o),u=this.getNextToLastElement(s),l=0,c=s;l<c.length;l++)for(var d=(p=c[l]).start;d<p.end;d++)this.insertItemInDOM(d,u);for(var h=0,f=a;h<f.length;h++){var p;for(d=(p=f[h]).start;d<p.end;d++)this.removeItemFromDOM(d)}var g=!nt.g&&!dh&&0===sh();if(g){var m="translate3d(-"+n+"px, -"+e+"px, 0px)";this.rowsContainer.style.transform=m,this.rowsContainer.style.webkitTransform=m,g!==this.canUseTranslate3d&&(this.rowsContainer.style.left="0",this.rowsContainer.style.top="0")}else this.rowsContainer.style.left="-"+n+"px",this.rowsContainer.style.top="-"+e+"px",g!==this.canUseTranslate3d&&(this.rowsContainer.style.transform="",this.rowsContainer.style.webkitTransform="");this.horizontalScrolling&&(this.rowsContainer.style.width=Math.max(r,this.renderWidth)+"px"),this.canUseTranslate3d=g,this.lastRenderTop=e,this.lastRenderHeight=t},e.prototype.insertItemInDOM=function(e,t){var n=this,r=this.items[e];if(!r.row){r.row=this.cache.alloc(r.templateId);var i=this.ariaProvider.getRole?this.ariaProvider.getRole(r.element):"treeitem";r.row.domNode.setAttribute("role",i);var o=this.ariaProvider.isChecked?this.ariaProvider.isChecked(r.element):void 0;void 0!==o&&r.row.domNode.setAttribute("aria-checked",String(o))}r.row.domNode.parentElement||(t?this.rowsContainer.insertBefore(r.row.domNode,t):this.rowsContainer.appendChild(r.row.domNode)),this.updateItemInDOM(r,e);var s=this.renderers.get(r.templateId);if(!s)throw new Error("No renderer found for template id "+r.templateId);s&&s.renderElement(r.element,e,r.row.templateData,r.size);var a=this.dnd.getDragURI(r.element);if(r.dragStartDisposable.dispose(),r.row.domNode.draggable=!!a,a){var u=yh(r.row.domNode,"dragstart");r.dragStartDisposable=u((function(e){return n.onDragStart(r.element,a,e)}))}this.horizontalScrolling&&(this.measureItemWidth(r),this.eventuallyUpdateScrollWidth())},e.prototype.measureItemWidth=function(e){if(e.row&&e.row.domNode){e.row.domNode.style.width="fit-content",e.width=_f(e.row.domNode);var t=window.getComputedStyle(e.row.domNode);t.paddingLeft&&(e.width+=parseFloat(t.paddingLeft)),t.paddingRight&&(e.width+=parseFloat(t.paddingRight)),e.row.domNode.style.width=""}},e.prototype.updateItemInDOM=function(e,t){e.row.domNode.style.top=this.elementTop(t)+"px",e.row.domNode.style.height=e.size+"px",this.setRowLineHeight&&(e.row.domNode.style.lineHeight=e.size+"px"),e.row.domNode.setAttribute("data-index",""+t),e.row.domNode.setAttribute("data-last-element",t===this.length-1?"true":"false"),e.row.domNode.setAttribute("aria-setsize",String(this.ariaProvider.getSetSize(e.element,t,this.length))),e.row.domNode.setAttribute("aria-posinset",String(this.ariaProvider.getPosInSet(e.element,t))),e.row.domNode.setAttribute("id",this.getElementDomId(t)),qh(e.row.domNode,"drop-target",e.dropTarget)},e.prototype.removeItemFromDOM=function(e){var t=this.items[e];t.dragStartDisposable.dispose();var n=this.renderers.get(t.templateId);n&&n.disposeElement&&n.disposeElement(t.element,e,t.row.templateData,t.size),this.cache.release(t.row),t.row=null,this.horizontalScrolling&&this.eventuallyUpdateScrollWidth()},e.prototype.getScrollTop=function(){return this.scrollableElement.getScrollPosition().scrollTop},e.prototype.setScrollTop=function(e){this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),this.scrollableElement.setScrollPosition({scrollTop:e})},Object.defineProperty(e.prototype,"scrollTop",{get:function(){return this.getScrollTop()},set:function(e){this.setScrollTop(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scrollHeight",{get:function(){return this._scrollHeight+(this.horizontalScrolling?10:0)+this.additionalScrollHeight},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseClick",{get:function(){var e=this;return Ht.map(yh(this.domNode,"click"),(function(t){return e.toMouseEvent(t)}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseDblClick",{get:function(){var e=this;return Ht.map(yh(this.domNode,"dblclick"),(function(t){return e.toMouseEvent(t)}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseMiddleClick",{get:function(){var e=this;return Ht.filter(Ht.map(yh(this.domNode,"auxclick"),(function(t){return e.toMouseEvent(t)})),(function(e){return 1===e.browserEvent.button}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseDown",{get:function(){var e=this;return Ht.map(yh(this.domNode,"mousedown"),(function(t){return e.toMouseEvent(t)}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onContextMenu",{get:function(){var e=this;return Ht.map(yh(this.domNode,"contextmenu"),(function(t){return e.toMouseEvent(t)}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onTouchStart",{get:function(){var e=this;return Ht.map(yh(this.domNode,"touchstart"),(function(t){return e.toTouchEvent(t)}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onTap",{get:function(){var e=this;return Ht.map(yh(this.rowsContainer,lp.Tap),(function(t){return e.toGestureEvent(t)}))},enumerable:!0,configurable:!0}),e.prototype.toMouseEvent=function(e){var t=this.getItemIndexFromEventTarget(e.target||null),n=void 0===t?void 0:this.items[t];return{browserEvent:e,index:t,element:n&&n.element}},e.prototype.toTouchEvent=function(e){var t=this.getItemIndexFromEventTarget(e.target||null),n=void 0===t?void 0:this.items[t];return{browserEvent:e,index:t,element:n&&n.element}},e.prototype.toGestureEvent=function(e){var t=this.getItemIndexFromEventTarget(e.initialTarget||null),n=void 0===t?void 0:this.items[t];return{browserEvent:e,index:t,element:n&&n.element}},e.prototype.toDragEvent=function(e){var t=this.getItemIndexFromEventTarget(e.target||null),n=void 0===t?void 0:this.items[t];return{browserEvent:e,index:t,element:n&&n.element}},e.prototype.onScroll=function(e){try{this.render(e.scrollTop,e.height,e.scrollLeft,e.scrollWidth),this.supportDynamicHeights&&this._rerender(e.scrollTop,e.height)}catch(t){throw console.error("Got bad scroll event:",e),t}},e.prototype.onTouchChange=function(e){e.preventDefault(),e.stopPropagation(),this.scrollTop-=e.translationY},e.prototype.onDragStart=function(e,t,n){if(n.dataTransfer){var r=this.dnd.getDragElements(e);if(n.dataTransfer.effectAllowed="copyMove",n.dataTransfer.setData(zD,JSON.stringify([t])),n.dataTransfer.setDragImage){var i=void 0;this.dnd.getDragLabel&&(i=this.dnd.getDragLabel(r)),void 0===i&&(i=String(r.length));var o=Nf(".monaco-drag-image");o.textContent=i,document.body.appendChild(o),n.dataTransfer.setDragImage(o,-10,-10),setTimeout((function(){return document.body.removeChild(o)}),0)}this.currentDragData=new $D(r),qD.CurrentDragAndDropData=new ZD(r),this.dnd.onDragStart&&this.dnd.onDragStart(this.currentDragData,n)}},e.prototype.onDragOver=function(e){var t=this;if(e.browserEvent.preventDefault(),this.onDragLeaveTimeout.dispose(),qD.CurrentDragAndDropData&&"vscode-ui"===qD.CurrentDragAndDropData.getData())return!1;if(this.setupDragAndDropScrollTopAnimation(e.browserEvent),!e.browserEvent.dataTransfer)return!1;if(!this.currentDragData)if(qD.CurrentDragAndDropData)this.currentDragData=qD.CurrentDragAndDropData;else{if(!e.browserEvent.dataTransfer.types)return!1;this.currentDragData=new XD}var n,r,i,o=this.dnd.onDragOver(this.currentDragData,e.element,e.index,e.browserEvent);if(this.canDrop="boolean"==typeof o?o:o.accept,!this.canDrop)return this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),!1;if(e.browserEvent.dataTransfer.dropEffect="boolean"!=typeof o&&0===o.effect?"copy":"move",0===(n=-1===(n=zr(n="boolean"!=typeof o&&o.feedback?o.feedback:void 0===e.index?[-1]:[e.index]).filter((function(e){return e>=-1&&e<t.length})).sort())[0]?[-1]:n).length)throw new Error("Invalid empty feedback list");if(r=this.currentDragFeedback,i=n,Array.isArray(r)&&Array.isArray(i)?Hr(r,i):r===i)return!0;if(this.currentDragFeedback=n,this.currentDragFeedbackDisposable.dispose(),-1===n[0])Hh(this.domNode,"drop-target"),this.currentDragFeedbackDisposable=Pt((function(){return zh(t.domNode,"drop-target")}));else{for(var s=0,a=n;s<a.length;s++){var u=a[s],l=this.items[u];l.dropTarget=!0,l.row&&l.row.domNode&&Hh(l.row.domNode,"drop-target")}this.currentDragFeedbackDisposable=Pt((function(){for(var e=0,r=n;e<r.length;e++){var i=r[e],o=t.items[i];o.dropTarget=!1,o.row&&o.row.domNode&&zh(o.row.domNode,"drop-target")}}))}return!0},e.prototype.onDragLeave=function(){var e=this;this.onDragLeaveTimeout.dispose(),this.onDragLeaveTimeout=Es((function(){return e.clearDragOverFeedback()}),100)},e.prototype.onDrop=function(e){if(this.canDrop){var t=this.currentDragData;this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,qD.CurrentDragAndDropData=void 0,t&&e.browserEvent.dataTransfer&&(e.browserEvent.preventDefault(),t.update(e.browserEvent.dataTransfer),this.dnd.drop(t,e.element,e.index,e.browserEvent))}},e.prototype.onDragEnd=function(){this.canDrop=!1,this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,qD.CurrentDragAndDropData=void 0},e.prototype.clearDragOverFeedback=function(){this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),this.currentDragFeedbackDisposable=Ft.None},e.prototype.setupDragAndDropScrollTopAnimation=function(e){var t,n,r,i=this;if(!this.dragOverAnimationDisposable){var o=ff(this.domNode).top;this.dragOverAnimationDisposable=(t=this.animateDragAndDropScrollTop.bind(this,o),n=function(){t(),r=Jh(n)},r=Jh(n),Pt((function(){return r.dispose()})))}this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationStopDisposable=Es((function(){i.dragOverAnimationDisposable&&(i.dragOverAnimationDisposable.dispose(),i.dragOverAnimationDisposable=void 0)}),1e3),this.dragOverMouseY=e.pageY},e.prototype.animateDragAndDropScrollTop=function(e){if(void 0!==this.dragOverMouseY){var t=this.dragOverMouseY-e,n=this.renderHeight-35;t<35?this.scrollTop+=Math.max(-14,Math.floor(.3*(t-35))):t>n&&(this.scrollTop+=Math.min(14,Math.floor(.3*(t-n))))}},e.prototype.teardownDragAndDropScrollTopAnimation=function(){this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)},e.prototype.getItemIndexFromEventTarget=function(e){for(var t=e;t instanceof HTMLElement&&t!==this.rowsContainer;){var n=t.getAttribute("data-index");if(n){var r=Number(n);if(!isNaN(r))return r}t=t.parentElement}},e.prototype.getRenderRange=function(e,t){return{start:this.rangeMap.indexAt(e),end:this.rangeMap.indexAfter(e+t-1)}},e.prototype._rerender=function(e,t){var n,r,i=this.getRenderRange(e,t);e===this.elementTop(i.start)?(n=i.start,r=0):i.end-i.start>1&&(n=i.start+1,r=this.elementTop(n)-e);for(var o=0;;){for(var s=this.getRenderRange(e,t),a=!1,u=s.start;u<s.end;u++){var l=this.probeDynamicHeight(u);0!==l&&this.rangeMap.splice(u,1,[this.items[u]]),o+=l,a=a||0!==l}if(!a){0!==o&&this.eventuallyUpdateScrollDimensions();for(var c=0,d=pD.relativeComplement(i,s);c<d.length;c++)for(u=(p=d[c]).start;u<p.end;u++)this.items[u].row&&this.removeItemFromDOM(u);for(var h=0,f=pD.relativeComplement(s,i);h<f.length;h++){var p;for(u=(p=f[h]).start;u<p.end;u++){var g=u+1,m=g<this.items.length?this.items[g].row:null,_=m?m.domNode:null;this.insertItemInDOM(u,_)}}for(u=s.start;u<s.end;u++)this.items[u].row&&this.updateItemInDOM(this.items[u],u);return"number"==typeof n&&(this.scrollTop=this.elementTop(n)-r),void this._onDidChangeContentHeight.fire(this.contentHeight)}}},e.prototype.probeDynamicHeight=function(e){var t=this.items[e];if(!t.hasDynamicHeight||t.lastDynamicHeightWidth===this.renderWidth)return 0;var n=t.size,r=this.cache.alloc(t.templateId);r.domNode.style.height="",this.rowsContainer.appendChild(r.domNode);var i=this.renderers.get(t.templateId);return i&&(i.renderElement(t.element,e,r.templateData,void 0),i.disposeElement&&i.disposeElement(t.element,e,r.templateData,void 0)),t.size=r.domNode.offsetHeight,this.virtualDelegate.setDynamicHeight&&this.virtualDelegate.setDynamicHeight(t.element,t.size),t.lastDynamicHeightWidth=this.renderWidth,this.rowsContainer.removeChild(r.domNode),this.cache.release(r),t.size-n},e.prototype.getNextToLastElement=function(e){var t=e[e.length-1];if(!t)return null;var n=this.items[t.end];return n&&n.row?n.row.domNode:null},e.prototype.getElementDomId=function(e){return this.domId+"_"+e},e.prototype.dispose=function(){if(this.items){for(var e=0,t=this.items;e<t.length;e++){var n=t[e];if(n.row){var r=this.renderers.get(n.row.templateId);r&&r.disposeTemplate(n.row.templateData)}}this.items=[]}this.domNode&&this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.disposables=At(this.disposables)},e.InstanceCount=0,KD([up],e.prototype,"onMouseClick",null),KD([up],e.prototype,"onMouseDblClick",null),KD([up],e.prototype,"onMouseMiddleClick",null),KD([up],e.prototype,"onMouseDown",null),KD([up],e.prototype,"onContextMenu",null),KD([up],e.prototype,"onTouchStart",null),KD([up],e.prototype,"onTap",null),e}(),QD=function(){function e(e){this.spliceables=e}return e.prototype.splice=function(e,t,n){this.spliceables.forEach((function(r){return r.splice(e,t,n)}))},e}();function eE(e,t,n){return Math.min(Math.max(e,t),n)}function tE(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t,n){for(var r=0,i=e.length;r<i;r++){var o=e[r](t,n);if(o)return o}return null}}var nE=function(e,t,n){if(!n||n.length<t.length)return null;var r;r=e?Sn(n,t):0===n.indexOf(t);if(!r)return null;return t.length>0?[{start:0,end:t.length}]:[]}.bind(void 0,!0);function rE(e){return 97<=e&&e<=122}function iE(e){return 65<=e&&e<=90}function oE(e){return 48<=e&&e<=57}function sE(e){return 32===e||9===e||10===e||13===e}var aE=new Set;function uE(e){return rE(e)||iE(e)||oE(e)}function lE(e,t){return 0===t.length?t=[e]:e.end===t[0].start?t[0].start=e.start:t.unshift(e),t}function cE(e,t){for(var n=t;n<e.length;n++){var r=e.charCodeAt(n);if(iE(r)||oE(r)||n>0&&!uE(e.charCodeAt(n-1)))return n}return e.length}function dE(e,t,n,r){if(n===e.length)return[];if(r===t.length)return null;if(e[n]!==t[r].toLowerCase())return null;var i=null,o=r+1;for(i=dE(e,t,n+1,r+1);!i&&(o=cE(t,o))<t.length;)i=dE(e,t,n+1,o),o++;return null===i?null:lE({start:r,end:r+1},i)}function hE(e,t){if(!t)return null;if(0===(t=t.trim()).length)return null;if(!function(e){for(var t=0,n=0,r=0,i=0,o=0;o<e.length;o++)iE(r=e.charCodeAt(o))&&t++,rE(r)&&n++,sE(r)&&i++;return 0!==t&&0!==n||0!==i?t<=5:e.length<=30}(e))return null;if(t.length>60)return null;var n=function(e){for(var t=0,n=0,r=0,i=0,o=0,s=0;s<e.length;s++)iE(o=e.charCodeAt(s))&&t++,rE(o)&&n++,uE(o)&&r++,oE(o)&&i++;return{upperPercent:t/e.length,lowerPercent:n/e.length,alphaPercent:r/e.length,numericPercent:i/e.length}}(t);if(!function(e){var t=e.upperPercent,n=e.lowerPercent,r=e.alphaPercent,i=e.numericPercent;return n>.2&&t<.8&&r>.6&&i<.2}(n)){if(!function(e){var t=e.upperPercent;return 0===e.lowerPercent&&t>.6}(n))return null;t=t.toLowerCase()}var r=null,i=0;for(e=e.toLowerCase();i<t.length&&null===(r=dE(e,t,0,i));)i=cE(t,i+1);return r}"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?".split("").forEach((function(e){return aE.add(e.charCodeAt(0))}));tE(nE,hE,(function(e,t){var n=t.toLowerCase().indexOf(e.toLowerCase());return-1===n?null:[{start:n,end:n+e.length}]})),tE(nE,hE,(function(e,t){return function e(t,n,r,i){if(r===t.length)return[];if(i===n.length)return null;if(t[r]===n[i]){var o;return(o=e(t,n,r+1,i+1))?lE({start:i,end:i+1},o):null}return e(t,n,r,i+1)}(e.toLowerCase(),t.toLowerCase(),0,0)})),new nr(1e4);var fE=128;function pE(){for(var e=[],t=[0],n=1;n<=fE;n++)t.push(-n);for(n=0;n<=fE;n++){var r=t.slice(0);r[0]=-n,e.push(r)}return e}var gE,mE=pE(),_E=pE(),yE=pE(),vE=!1;function bE(e,t,n,r,i){function o(e,t,n){for(void 0===n&&(n=" ");e.length<t;)e=n+e;return e}for(var s=" | |"+r.split("").map((function(e){return o(e,3)})).join("|")+"\n",a=0;a<=n;a++)s+=0===a?" |":t[a-1]+"|",s+=e[a].slice(0,i+1).map((function(e){return o(e.toString(),3)})).join("|")+"\n";return s}function wE(e,t){if(t<0||t>=e.length)return!1;switch(e.charCodeAt(t)){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:return!0;default:return!1}}function CE(e,t,n){return t[e]!==n[e]}function SE(e,t,n,r,i,o,s){var a=e.length>fE?fE:e.length,u=r.length>fE?fE:r.length;if(!(n>=a||o>=u||a>u)&&function(e,t,n,r,i,o){for(;t<n&&i<o;)e[t]===r[i]&&(t+=1),i+=1;return t===n}(t,n,a,i,o,u)){var l=1,c=1,d=n,h=o;for(l=1,d=n;d<a;l++,d++)for(c=1,h=o;h<u;c++,h++){var f=xE(e,t,d,n,r,i,h);_E[l][c]=f;var p=mE[l-1][c-1]+(f>1?1:f),g=mE[l-1][c]+-1,m=mE[l][c-1]+-1;m>=g?m>p?(mE[l][c]=m,yE[l][c]=4):m===p?(mE[l][c]=m,yE[l][c]=6):(mE[l][c]=p,yE[l][c]=2):g>p?(mE[l][c]=g,yE[l][c]=1):g===p?(mE[l][c]=g,yE[l][c]=3):(mE[l][c]=p,yE[l][c]=2)}if(vE&&function(e,t,n,r){e=e.substr(t),n=n.substr(r),console.log(bE(mE,e,e.length,n,n.length)),console.log(bE(yE,e,e.length,n,n.length)),console.log(bE(_E,e,e.length,n,n.length))}(e,n,r,o),LE=0,ME=-100,DE=o,EE=s,function e(t,n,r,i,o){if(LE>=10||r<-25)return;var s=0;for(;t>0&&n>0;){var a=_E[t][n],u=yE[t][n];if(4===u)n-=1,o?r-=5:0!==i&&(r-=1),o=!1,s=0;else{if(!(2&u))return;if(4&u&&e(t,n-1,0!==i?r-1:r,i,o),r+=a,t-=1,n-=1,o=!0,i+=Math.pow(2,n+DE),1===a){if(s+=1,0===t&&!EE)return}else r+=1+s*(a-1),s=0}}LE+=1,(r-=n>=3?9:3*n)>ME&&(ME=r,kE=i)}(l-1,c-1,a===u?1:0,0,!1),0!==LE)return[ME,kE,o]}}function xE(e,t,n,r,i,o,s){return t[n]!==o[s]?-1:s===n-r?e[n]===i[s]?7:5:!CE(s,i,o)||0!==s&&CE(s-1,i,o)?!wE(o,s)||0!==s&&wE(o,s-1)?wE(o,s-1)||function(e,t){if(t<0||t>=e.length)return!1;switch(e.charCodeAt(t)){case 32:case 9:return!0;default:return!1}}(o,s-1)?5:1:5:e[n]===i[s]?7:5}!function(e){e.Default=Object.freeze([-100,0,0]),e.isDefault=function(e){return!e||-100===e[0]&&0===e[1]&&0===e[2]}}(gE||(gE={}));var LE=0,kE=0,ME=0,DE=0,EE=!1;var TE=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),NE=function(){return(NE=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},OE=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},AE=function(){function e(e){this.trait=e,this.renderedElements=[]}return Object.defineProperty(e.prototype,"templateId",{get:function(){return"template:"+this.trait.trait},enumerable:!0,configurable:!0}),e.prototype.renderTemplate=function(e){return e},e.prototype.renderElement=function(e,t,n){var r=qr(this.renderedElements,(function(e){return e.templateData===n}));if(r>=0){var i=this.renderedElements[r];this.trait.unrender(n),i.index=t}else{i={index:t,templateData:n};this.renderedElements.push(i)}this.trait.renderIndex(t,n)},e.prototype.splice=function(e,t,n){for(var r=[],i=0,o=this.renderedElements;i<o.length;i++){var s=o[i];s.index<e?r.push(s):s.index>=e+t&&r.push({index:s.index+n-t,templateData:s.templateData})}this.renderedElements=r},e.prototype.renderIndexes=function(e){for(var t=0,n=this.renderedElements;t<n.length;t++){var r=n[t],i=r.index,o=r.templateData;e.indexOf(i)>-1&&this.trait.renderIndex(i,o)}},e.prototype.disposeTemplate=function(e){var t=qr(this.renderedElements,(function(t){return t.templateData===e}));t<0||this.renderedElements.splice(t,1)},e}(),IE=function(){function e(e){this._trait=e,this.indexes=[],this.sortedIndexes=[],this._onChange=new $t,this.onChange=this._onChange.event}return Object.defineProperty(e.prototype,"trait",{get:function(){return this._trait},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderer",{get:function(){return new AE(this)},enumerable:!0,configurable:!0}),e.prototype.splice=function(e,t,n){var r=n.length-t,i=e+t,o=this.sortedIndexes.filter((function(t){return t<e})).concat(n.map((function(t,n){return t?n+e:-1})).filter((function(e){return-1!==e})),this.sortedIndexes.filter((function(e){return e>=i})).map((function(e){return e+r})));this.renderer.splice(e,t,n.length),this._set(o,o)},e.prototype.renderIndex=function(e,t){qh(t,this._trait,this.contains(e))},e.prototype.unrender=function(e){zh(e,this._trait)},e.prototype.set=function(e,t){return this._set(e,e.slice().sort(QE),t)},e.prototype._set=function(e,t,n){var r=this.indexes,i=this.sortedIndexes;this.indexes=e,this.sortedIndexes=t;var o=JE(i,e);return this.renderer.renderIndexes(o),this._onChange.fire({indexes:e,browserEvent:n}),r},e.prototype.get=function(){return this.indexes},e.prototype.contains=function(e){return function(e,t,n){for(var r=0,i=e.length-1;r<=i;){var o=(r+i)/2|0,s=n(e[o],t);if(s<0)r=o+1;else{if(!(s>0))return o;i=o-1}}return-(r+1)}(this.sortedIndexes,e,QE)>=0},e.prototype.dispose=function(){this._onChange=At(this._onChange)},OE([up],e.prototype,"renderer",null),e}(),PE=function(e){function t(){return e.call(this,"focused")||this}return TE(t,e),t.prototype.renderIndex=function(t,n){e.prototype.renderIndex.call(this,t,n),this.contains(t)?n.setAttribute("aria-selected","true"):n.removeAttribute("aria-selected")},t}(IE),RE=function(){function e(e,t,n){this.trait=e,this.view=t,this.identityProvider=n}return e.prototype.splice=function(e,t,n){var r=this;if(!this.identityProvider)return this.trait.splice(e,t,n.map((function(){return!1})));var i=this.trait.get().map((function(e){return r.identityProvider.getId(r.view.element(e)).toString()})),o=n.map((function(e){return i.indexOf(r.identityProvider.getId(e).toString())>-1}));this.trait.splice(e,t,o)},e}();function FE(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName}var YE,jE=function(){function e(e,t,n){this.list=e,this.view=t,this.disposables=new Rt;var r=!1!==n.multipleSelectionSupport;this.openController=n.openController||KE;var i=Ht.chain(yh(t.domNode,"keydown")).filter((function(e){return!FE(e.target)})).map((function(e){return new Sh(e)}));i.filter((function(e){return 3===e.keyCode})).on(this.onEnter,this,this.disposables),i.filter((function(e){return 16===e.keyCode})).on(this.onUpArrow,this,this.disposables),i.filter((function(e){return 18===e.keyCode})).on(this.onDownArrow,this,this.disposables),i.filter((function(e){return 11===e.keyCode})).on(this.onPageUpArrow,this,this.disposables),i.filter((function(e){return 12===e.keyCode})).on(this.onPageDownArrow,this,this.disposables),i.filter((function(e){return 9===e.keyCode})).on(this.onEscape,this,this.disposables),r&&i.filter((function(e){return(nt.d?e.metaKey:e.ctrlKey)&&31===e.keyCode})).on(this.onCtrlA,this,this.disposables)}return e.prototype.onEnter=function(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(this.list.getFocus(),e.browserEvent),this.openController.shouldOpen(e.browserEvent)&&this.list.open(this.list.getFocus(),e.browserEvent)},e.prototype.onUpArrow=function(e){e.preventDefault(),e.stopPropagation(),this.list.focusPrevious(1,!1,e.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},e.prototype.onDownArrow=function(e){e.preventDefault(),e.stopPropagation(),this.list.focusNext(1,!1,e.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},e.prototype.onPageUpArrow=function(e){e.preventDefault(),e.stopPropagation(),this.list.focusPreviousPage(e.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},e.prototype.onPageDownArrow=function(e){e.preventDefault(),e.stopPropagation(),this.list.focusNextPage(e.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},e.prototype.onCtrlA=function(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(Gr(this.list.length),e.browserEvent),this.view.domNode.focus()},e.prototype.onEscape=function(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection([],e.browserEvent),this.view.domNode.focus()},e.prototype.dispose=function(){this.disposables.dispose()},e}();function BE(e){return!(e.ctrlKey||e.metaKey||e.altKey)&&(e.keyCode>=31&&e.keyCode<=56||e.keyCode>=21&&e.keyCode<=30||e.keyCode>=93&&e.keyCode<=102||e.keyCode>=80&&e.keyCode<=90)}!function(e){e[e.Idle=0]="Idle",e[e.Typing=1]="Typing"}(YE||(YE={}));var WE=function(){function e(e,t,n){this.list=e,this.view=t,this.keyboardNavigationLabelProvider=n,this.enabled=!1,this.state=YE.Idle,this.automaticKeyboardNavigation=!0,this.triggered=!1,this.enabledDisposables=new Rt,this.disposables=new Rt,this.updateOptions(e.options)}return e.prototype.updateOptions=function(e){void 0===e.enableKeyboardNavigation||!!e.enableKeyboardNavigation?this.enable():this.disable(),void 0!==e.automaticKeyboardNavigation&&(this.automaticKeyboardNavigation=e.automaticKeyboardNavigation)},e.prototype.enable=function(){var e=this;if(!this.enabled){var t=Ht.chain(yh(this.view.domNode,"keydown")).filter((function(e){return!FE(e.target)})).filter((function(){return e.automaticKeyboardNavigation||e.triggered})).map((function(e){return new Sh(e)})).filter(this.keyboardNavigationLabelProvider.mightProducePrintableCharacter?function(t){return e.keyboardNavigationLabelProvider.mightProducePrintableCharacter(t)}:function(e){return BE(e)}).forEach((function(e){e.stopPropagation(),e.preventDefault()})).map((function(e){return e.browserEvent.key})).event,n=Ht.debounce(t,(function(){return null}),800);Ht.reduce(Ht.any(t,n),(function(e,t){return null===t?null:(e||"")+t}))(this.onInput,this,this.enabledDisposables),this.enabled=!0,this.triggered=!1}},e.prototype.disable=function(){this.enabled&&(this.enabledDisposables.clear(),this.enabled=!1,this.triggered=!1)},e.prototype.onInput=function(e){if(!e)return this.state=YE.Idle,void(this.triggered=!1);var t=this.list.getFocus(),n=t.length>0?t[0]:0,r=this.state===YE.Idle?1:0;this.state=YE.Typing;for(var i=0;i<this.list.length;i++){var o=(n+i+r)%this.list.length,s=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(this.view.element(o)),a=s&&s.toString();if(void 0===a||nE(e,a))return this.list.setFocus([o]),void this.list.reveal(o)}},e.prototype.dispose=function(){this.disable(),this.enabledDisposables.dispose(),this.disposables.dispose()},e}(),HE=function(){function e(e,t){this.list=e,this.view=t,this.disposables=new Rt,Ht.chain(yh(t.domNode,"keydown")).filter((function(e){return!FE(e.target)})).map((function(e){return new Sh(e)})).filter((function(e){return!(2!==e.keyCode||e.ctrlKey||e.metaKey||e.shiftKey||e.altKey)})).on(this.onTab,this,this.disposables)}return e.prototype.onTab=function(e){if(e.target===this.view.domNode){var t=this.list.getFocus();if(0!==t.length){var n=this.view.domElement(t[0]);if(n){var r=n.querySelector("[tabIndex]");if(r&&r instanceof HTMLElement&&-1!==r.tabIndex){var i=window.getComputedStyle(r);"hidden"!==i.visibility&&"none"!==i.display&&(e.preventDefault(),e.stopPropagation(),r.focus())}}}}},e.prototype.dispose=function(){this.disposables.dispose()},e}();function VE(e){return nt.d?e.browserEvent.metaKey:e.browserEvent.ctrlKey}function zE(e){return e.browserEvent.shiftKey}function UE(e){return e instanceof MouseEvent&&2===e.button}var qE={isSelectionSingleChangeEvent:VE,isSelectionRangeChangeEvent:zE},KE={shouldOpen:function(e){return!(e instanceof MouseEvent)||!UE(e)}},GE=function(){function e(e){this.list=e,this.disposables=new Rt,this.multipleSelectionSupport=!(!1===e.options.multipleSelectionSupport),this.multipleSelectionSupport&&(this.multipleSelectionController=e.options.multipleSelectionController||qE),this.openController=e.options.openController||KE,this.mouseSupport=void 0===e.options.mouseSupport||!!e.options.mouseSupport,this.mouseSupport&&(e.onMouseDown(this.onMouseDown,this,this.disposables),e.onContextMenu(this.onContextMenu,this,this.disposables),e.onMouseDblClick(this.onDoubleClick,this,this.disposables),e.onTouchStart(this.onMouseDown,this,this.disposables),hp.addTarget(e.getHTMLElement())),e.onMouseClick(this.onPointer,this,this.disposables),e.onMouseMiddleClick(this.onPointer,this,this.disposables),e.onTap(this.onPointer,this,this.disposables)}return e.prototype.isSelectionSingleChangeEvent=function(e){return this.multipleSelectionController?this.multipleSelectionController.isSelectionSingleChangeEvent(e):nt.d?e.browserEvent.metaKey:e.browserEvent.ctrlKey},e.prototype.isSelectionRangeChangeEvent=function(e){return this.multipleSelectionController?this.multipleSelectionController.isSelectionRangeChangeEvent(e):e.browserEvent.shiftKey},e.prototype.isSelectionChangeEvent=function(e){return this.isSelectionSingleChangeEvent(e)||this.isSelectionRangeChangeEvent(e)},e.prototype.onMouseDown=function(e){document.activeElement!==e.browserEvent.target&&this.list.domFocus()},e.prototype.onContextMenu=function(e){var t=void 0===e.index?[]:[e.index];this.list.setFocus(t,e.browserEvent)},e.prototype.onPointer=function(e){if(this.mouseSupport&&!FE(e.browserEvent.target)){var t=this.list.getFocus()[0],n=this.list.getSelection();t=void 0===t?n[0]:t;var r=e.index;if(void 0===r)return this.list.setFocus([],e.browserEvent),void this.list.setSelection([],e.browserEvent);if(this.multipleSelectionSupport&&this.isSelectionRangeChangeEvent(e))return this.changeSelection(e,t);if(this.multipleSelectionSupport&&this.isSelectionChangeEvent(e))return this.changeSelection(e,t);this.list.setFocus([r],e.browserEvent),UE(e.browserEvent)||(this.list.setSelection([r],e.browserEvent),this.openController.shouldOpen(e.browserEvent)&&this.list.open([r],e.browserEvent))}},e.prototype.onDoubleClick=function(e){if(!(FE(e.browserEvent.target)||this.multipleSelectionSupport&&this.isSelectionChangeEvent(e))){var t=this.list.getFocus();this.list.setSelection(t,e.browserEvent),this.list.pin(t)}},e.prototype.changeSelection=function(e,t){var n=e.index;if(this.isSelectionRangeChangeEvent(e)&&void 0!==t){var r=Gr(Math.min(t,n),Math.max(t,n)+1),i=function(e,t){var n=e.indexOf(t);if(-1===n)return[];var r=[],i=n-1;for(;i>=0&&e[i]===t-(n-i);)r.push(e[i--]);r.reverse(),i=n;for(;i<e.length&&e[i]===t+(i-n);)r.push(e[i++]);return r}(JE(s=this.list.getSelection(),[t]),t);if(0===i.length)return;var o=JE(r,function(e,t){var n=[],r=0,i=0;for(;r<e.length||i<t.length;)if(r>=e.length)n.push(t[i++]);else if(i>=t.length)n.push(e[r++]);else{if(e[r]===t[i]){r++,i++;continue}e[r]<t[i]?n.push(e[r++]):i++}return n}(s,i));this.list.setSelection(o,e.browserEvent)}else if(this.isSelectionSingleChangeEvent(e)){var s;o=(s=this.list.getSelection()).filter((function(e){return e!==n}));this.list.setFocus([n]),s.length===o.length?this.list.setSelection(o.concat([n]),e.browserEvent):this.list.setSelection(o,e.browserEvent)}},e.prototype.dispose=function(){this.disposables.dispose()},e}(),$E=function(){function e(e,t){this.styleElement=e,this.selectorSuffix=t}return e.prototype.style=function(e){var t=this.selectorSuffix?"."+this.selectorSuffix:"",n=[];e.listFocusBackground&&(n.push(".monaco-list"+t+":focus .monaco-list-row.focused { background-color: "+e.listFocusBackground+"; }"),n.push(".monaco-list"+t+":focus .monaco-list-row.focused:hover { background-color: "+e.listFocusBackground+"; }")),e.listFocusForeground&&n.push(".monaco-list"+t+":focus .monaco-list-row.focused { color: "+e.listFocusForeground+"; }"),e.listActiveSelectionBackground&&(n.push(".monaco-list"+t+":focus .monaco-list-row.selected { background-color: "+e.listActiveSelectionBackground+"; }"),n.push(".monaco-list"+t+":focus .monaco-list-row.selected:hover { background-color: "+e.listActiveSelectionBackground+"; }")),e.listActiveSelectionForeground&&n.push(".monaco-list"+t+":focus .monaco-list-row.selected { color: "+e.listActiveSelectionForeground+"; }"),e.listFocusAndSelectionBackground&&n.push("\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list"+t+":focus .monaco-list-row.selected.focused { background-color: "+e.listFocusAndSelectionBackground+"; }\n\t\t\t"),e.listFocusAndSelectionForeground&&n.push("\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list"+t+":focus .monaco-list-row.selected.focused { color: "+e.listFocusAndSelectionForeground+"; }\n\t\t\t"),e.listInactiveFocusBackground&&(n.push(".monaco-list"+t+" .monaco-list-row.focused { background-color: "+e.listInactiveFocusBackground+"; }"),n.push(".monaco-list"+t+" .monaco-list-row.focused:hover { background-color: "+e.listInactiveFocusBackground+"; }")),e.listInactiveSelectionBackground&&(n.push(".monaco-list"+t+" .monaco-list-row.selected { background-color: "+e.listInactiveSelectionBackground+"; }"),n.push(".monaco-list"+t+" .monaco-list-row.selected:hover { background-color: "+e.listInactiveSelectionBackground+"; }")),e.listInactiveSelectionForeground&&n.push(".monaco-list"+t+" .monaco-list-row.selected { color: "+e.listInactiveSelectionForeground+"; }"),e.listHoverBackground&&n.push(".monaco-list"+t+":not(.drop-target) .monaco-list-row:hover:not(.selected):not(.focused) { background-color: "+e.listHoverBackground+"; }"),e.listHoverForeground&&n.push(".monaco-list"+t+" .monaco-list-row:hover:not(.selected):not(.focused) { color: "+e.listHoverForeground+"; }"),e.listSelectionOutline&&n.push(".monaco-list"+t+" .monaco-list-row.selected { outline: 1px dotted "+e.listSelectionOutline+"; outline-offset: -1px; }"),e.listFocusOutline&&n.push("\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list"+t+":focus .monaco-list-row.focused { outline: 1px solid "+e.listFocusOutline+"; outline-offset: -1px; }\n\t\t\t"),e.listInactiveFocusOutline&&n.push(".monaco-list"+t+" .monaco-list-row.focused { outline: 1px dotted "+e.listInactiveFocusOutline+"; outline-offset: -1px; }"),e.listHoverOutline&&n.push(".monaco-list"+t+" .monaco-list-row:hover { outline: 1px dashed "+e.listHoverOutline+"; outline-offset: -1px; }"),e.listDropBackground&&n.push("\n\t\t\t\t.monaco-list"+t+".drop-target,\n\t\t\t\t.monaco-list"+t+" .monaco-list-row.drop-target { background-color: "+e.listDropBackground+" !important; color: inherit !important; }\n\t\t\t"),e.listFilterWidgetBackground&&n.push(".monaco-list-type-filter { background-color: "+e.listFilterWidgetBackground+" }"),e.listFilterWidgetOutline&&n.push(".monaco-list-type-filter { border: 1px solid "+e.listFilterWidgetOutline+"; }"),e.listFilterWidgetNoMatchesOutline&&n.push(".monaco-list-type-filter.no-matches { border: 1px solid "+e.listFilterWidgetNoMatchesOutline+"; }"),e.listMatchesShadow&&n.push(".monaco-list-type-filter { box-shadow: 1px 1px 1px "+e.listMatchesShadow+"; }");var r=n.join("\n");r!==this.styleElement.innerHTML&&(this.styleElement.innerHTML=r)},e}(),ZE={listFocusBackground:Ou.fromHex("#073655"),listActiveSelectionBackground:Ou.fromHex("#0E639C"),listActiveSelectionForeground:Ou.fromHex("#FFFFFF"),listFocusAndSelectionBackground:Ou.fromHex("#094771"),listFocusAndSelectionForeground:Ou.fromHex("#FFFFFF"),listInactiveSelectionBackground:Ou.fromHex("#3F3F46"),listHoverBackground:Ou.fromHex("#2A2D2E"),listDropBackground:Ou.fromHex("#383B3D"),treeIndentGuidesStroke:Ou.fromHex("#a9a9a9")},XE={keyboardSupport:!0,mouseSupport:!0,multipleSelectionSupport:!0,dnd:{getDragURI:function(){return null},onDragStart:function(){},onDragOver:function(){return!1},drop:function(){}},ariaRootRole:OD.TREE};function JE(e,t){for(var n=[],r=0,i=0;r<e.length||i<t.length;)if(r>=e.length)n.push(t[i++]);else if(i>=t.length)n.push(e[r++]);else{if(e[r]===t[i]){n.push(e[r]),r++,i++;continue}e[r]<t[i]?n.push(e[r++]):n.push(t[i++])}return n}var QE=function(e,t){return e-t},eT=function(){function e(e,t){this._templateId=e,this.renderers=t}return Object.defineProperty(e.prototype,"templateId",{get:function(){return this._templateId},enumerable:!0,configurable:!0}),e.prototype.renderTemplate=function(e){return this.renderers.map((function(t){return t.renderTemplate(e)}))},e.prototype.renderElement=function(e,t,n,r){for(var i=0,o=0,s=this.renderers;o<s.length;o++){s[o].renderElement(e,t,n[i++],r)}},e.prototype.disposeElement=function(e,t,n,r){for(var i=0,o=0,s=this.renderers;o<s.length;o++){var a=s[o];a.disposeElement&&a.disposeElement(e,t,n[i],r),i+=1}},e.prototype.disposeTemplate=function(e){for(var t=0,n=0,r=this.renderers;n<r.length;n++){r[n].disposeTemplate(e[t++])}},e}(),tT=function(){function e(e){this.accessibilityProvider=e,this.templateId="a18n"}return e.prototype.renderTemplate=function(e){return e},e.prototype.renderElement=function(e,t,n){var r=this.accessibilityProvider.getAriaLabel(e);r?n.setAttribute("aria-label",r):n.removeAttribute("aria-label");var i=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(e);"number"==typeof i?n.setAttribute("aria-level",""+i):n.removeAttribute("aria-level")},e.prototype.disposeTemplate=function(e){},e}(),nT=function(){function e(e,t){this.list=e,this.dnd=t}return e.prototype.getDragElements=function(e){var t=this.list.getSelectedElements();return t.indexOf(e)>-1?t:[e]},e.prototype.getDragURI=function(e){return this.dnd.getDragURI(e)},e.prototype.getDragLabel=function(e){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e)},e.prototype.onDragStart=function(e,t){this.dnd.onDragStart&&this.dnd.onDragStart(e,t)},e.prototype.onDragOver=function(e,t,n,r){return this.dnd.onDragOver(e,t,n,r)},e.prototype.drop=function(e,t,n,r){this.dnd.drop(e,t,n,r)},e}(),rT=function(){function e(e,t,n,r){void 0===r&&(r=XE),this._options=r,this.eventBufferer=new Xt,this.disposables=new Rt,this._onDidOpen=new $t,this.onDidOpen=this._onDidOpen.event,this._onPin=new $t,this.didJustPressContextMenuKey=!1,this._onDidDispose=new $t,this.onDidDispose=this._onDidDispose.event,this.focus=new PE,this.selection=new IE("selected"),Jr(r,ZE,!1);var i=[this.focus.renderer,this.selection.renderer];r.accessibilityProvider&&i.push(new tT(r.accessibilityProvider)),n=n.map((function(e){return new eT(e.templateId,i.concat([e]))}));var o=NE({},r,{dnd:r.dnd&&new nT(this,r.dnd)});if(this.view=new JD(e,t,n,o),"string"!=typeof r.ariaRole?this.view.domNode.setAttribute("role",OD.TREE):this.view.domNode.setAttribute("role",r.ariaRole),this.styleElement=bf(this.view.domNode),this.styleController=r.styleController||new $E(this.styleElement,this.view.domId),this.spliceable=new QD([new RE(this.focus,this.view,r.identityProvider),new RE(this.selection,this.view,r.identityProvider),this.view]),this.disposables.add(this.focus),this.disposables.add(this.selection),this.disposables.add(this.view),this.disposables.add(this._onDidDispose),this.onDidFocus=Ht.map(yh(this.view.domNode,"focus",!0),(function(){return null})),this.onDidBlur=Ht.map(yh(this.view.domNode,"blur",!0),(function(){return null})),this.disposables.add(new HE(this,this.view)),"boolean"!=typeof r.keyboardSupport||r.keyboardSupport){var s=new jE(this,this.view,r);this.disposables.add(s)}r.keyboardNavigationLabelProvider&&(this.typeLabelController=new WE(this,this.view,r.keyboardNavigationLabelProvider),this.disposables.add(this.typeLabelController)),this.disposables.add(this.createMouseController(r)),this.onFocusChange(this._onFocusChange,this,this.disposables),this.onSelectionChange(this._onSelectionChange,this,this.disposables),r.ariaLabel&&this.view.domNode.setAttribute("aria-label",Ee("aria list","{0}. Use the navigation keys to navigate.",r.ariaLabel)),this.style(r)}return Object.defineProperty(e.prototype,"onFocusChange",{get:function(){var e=this;return Ht.map(this.eventBufferer.wrapEvent(this.focus.onChange),(function(t){return e.toListEvent(t)}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onSelectionChange",{get:function(){var e=this;return Ht.map(this.eventBufferer.wrapEvent(this.selection.onChange),(function(t){return e.toListEvent(t)}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"domId",{get:function(){return this.view.domId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseClick",{get:function(){return this.view.onMouseClick},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseDblClick",{get:function(){return this.view.onMouseDblClick},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseMiddleClick",{get:function(){return this.view.onMouseMiddleClick},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseDown",{get:function(){return this.view.onMouseDown},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onTouchStart",{get:function(){return this.view.onTouchStart},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onTap",{get:function(){return this.view.onTap},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onContextMenu",{get:function(){var e=this,t=Ht.chain(yh(this.view.domNode,"keydown")).map((function(e){return new Sh(e)})).filter((function(t){return e.didJustPressContextMenuKey=58===t.keyCode||t.shiftKey&&68===t.keyCode})).filter((function(e){return e.preventDefault(),e.stopPropagation(),!1})).event,n=Ht.chain(yh(this.view.domNode,"keyup")).filter((function(){var t=e.didJustPressContextMenuKey;return e.didJustPressContextMenuKey=!1,t})).filter((function(){return e.getFocus().length>0&&!!e.view.domElement(e.getFocus()[0])})).map((function(t){var n=e.getFocus()[0];return{index:n,element:e.view.element(n),anchor:e.view.domElement(n),browserEvent:t}})).event,r=Ht.chain(this.view.onContextMenu).filter((function(){return!e.didJustPressContextMenuKey})).map((function(e){var t=e.element,n=e.index,r=e.browserEvent;return{element:t,index:n,anchor:{x:r.clientX+1,y:r.clientY},browserEvent:r}})).event;return Ht.any(t,n,r)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onKeyDown",{get:function(){return yh(this.view.domNode,"keydown")},enumerable:!0,configurable:!0}),e.prototype.createMouseController=function(e){return new GE(this)},e.prototype.updateOptions=function(e){void 0===e&&(e={}),this._options=NE({},this._options,e),this.typeLabelController&&this.typeLabelController.updateOptions(this._options)},Object.defineProperty(e.prototype,"options",{get:function(){return this._options},enumerable:!0,configurable:!0}),e.prototype.splice=function(e,t,n){var r=this;if(void 0===n&&(n=[]),e<0||e>this.view.length)throw new Error("Invalid start index: "+e);if(t<0)throw new Error("Invalid delete count: "+t);0===t&&0===n.length||this.eventBufferer.bufferEvents((function(){return r.spliceable.splice(e,t,n)}))},e.prototype.rerender=function(){this.view.rerender()},e.prototype.element=function(e){return this.view.element(e)},Object.defineProperty(e.prototype,"length",{get:function(){return this.view.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contentHeight",{get:function(){return this.view.contentHeight},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scrollTop",{get:function(){return this.view.getScrollTop()},set:function(e){this.view.setScrollTop(e)},enumerable:!0,configurable:!0}),e.prototype.domFocus=function(){this.view.domNode.focus()},e.prototype.layout=function(e,t){this.view.layout(e,t)},e.prototype.setSelection=function(e,t){for(var n=0,r=e;n<r.length;n++){var i=r[n];if(i<0||i>=this.length)throw new Error("Invalid index "+i)}this.selection.set(e,t)},e.prototype.getSelection=function(){return this.selection.get()},e.prototype.getSelectedElements=function(){var e=this;return this.getSelection().map((function(t){return e.view.element(t)}))},e.prototype.setFocus=function(e,t){for(var n=0,r=e;n<r.length;n++){var i=r[n];if(i<0||i>=this.length)throw new Error("Invalid index "+i)}this.focus.set(e,t)},e.prototype.focusNext=function(e,t,n,r){if(void 0===e&&(e=1),void 0===t&&(t=!1),0!==this.length){var i=this.focus.get(),o=this.findNextIndex(i.length>0?i[0]+e:0,t,r);o>-1&&this.setFocus([o],n)}},e.prototype.focusPrevious=function(e,t,n,r){if(void 0===e&&(e=1),void 0===t&&(t=!1),0!==this.length){var i=this.focus.get(),o=this.findPreviousIndex(i.length>0?i[0]-e:0,t,r);o>-1&&this.setFocus([o],n)}},e.prototype.focusNextPage=function(e,t){var n=this,r=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight);r=0===r?0:r-1;var i=this.view.element(r),o=this.getFocusedElements()[0];if(o!==i){var s=this.findPreviousIndex(r,!1,t);s>-1&&o!==this.view.element(s)?this.setFocus([s],e):this.setFocus([r],e)}else{var a=this.view.getScrollTop();this.view.setScrollTop(a+this.view.renderHeight-this.view.elementHeight(r)),this.view.getScrollTop()!==a&&setTimeout((function(){return n.focusNextPage(e,t)}),0)}},e.prototype.focusPreviousPage=function(e,t){var n,r=this,i=this.view.getScrollTop();n=0===i?this.view.indexAt(i):this.view.indexAfter(i-1);var o=this.view.element(n),s=this.getFocusedElements()[0];if(s!==o){var a=this.findNextIndex(n,!1,t);a>-1&&s!==this.view.element(a)?this.setFocus([a],e):this.setFocus([n],e)}else{var u=i;this.view.setScrollTop(i-this.view.renderHeight),this.view.getScrollTop()!==u&&setTimeout((function(){return r.focusPreviousPage(e,t)}),0)}},e.prototype.focusLast=function(e,t){if(0!==this.length){var n=this.findPreviousIndex(this.length-1,!1,t);n>-1&&this.setFocus([n],e)}},e.prototype.focusFirst=function(e,t){if(0!==this.length){var n=this.findNextIndex(0,!1,t);n>-1&&this.setFocus([n],e)}},e.prototype.findNextIndex=function(e,t,n){void 0===t&&(t=!1);for(var r=0;r<this.length;r++){if(e>=this.length&&!t)return-1;if(e%=this.length,!n||n(this.element(e)))return e;e++}return-1},e.prototype.findPreviousIndex=function(e,t,n){void 0===t&&(t=!1);for(var r=0;r<this.length;r++){if(e<0&&!t)return-1;if(e=(this.length+e%this.length)%this.length,!n||n(this.element(e)))return e;e--}return-1},e.prototype.getFocus=function(){return this.focus.get()},e.prototype.getFocusedElements=function(){var e=this;return this.getFocus().map((function(t){return e.view.element(t)}))},e.prototype.reveal=function(e,t){if(e<0||e>=this.length)throw new Error("Invalid index "+e);var n=this.view.getScrollTop(),r=this.view.elementTop(e),i=this.view.elementHeight(e);if(Ae(t)){var o=i-this.view.renderHeight;this.view.setScrollTop(o*eE(t,0,1)+r)}else{var s=r+i,a=n+this.view.renderHeight;r<n?this.view.setScrollTop(r):s>=a&&this.view.setScrollTop(s-this.view.renderHeight)}},e.prototype.getRelativeTop=function(e){if(e<0||e>=this.length)throw new Error("Invalid index "+e);var t=this.view.getScrollTop(),n=this.view.elementTop(e),r=this.view.elementHeight(e);if(n<t||n+r>t+this.view.renderHeight)return null;var i=r-this.view.renderHeight;return Math.abs((t-n)/i)},e.prototype.getHTMLElement=function(){return this.view.domNode},e.prototype.open=function(e,t){for(var n=this,r=0,i=e;r<i.length;r++){var o=i[r];if(o<0||o>=this.length)throw new Error("Invalid index "+o)}this._onDidOpen.fire({indexes:e,elements:e.map((function(e){return n.view.element(e)})),browserEvent:t})},e.prototype.pin=function(e){for(var t=0,n=e;t<n.length;t++){var r=n[t];if(r<0||r>=this.length)throw new Error("Invalid index "+r)}this._onPin.fire(e)},e.prototype.style=function(e){this.styleController.style(e)},e.prototype.toListEvent=function(e){var t=this,n=e.indexes,r=e.browserEvent;return{indexes:n,elements:n.map((function(e){return t.view.element(e)})),browserEvent:r}},e.prototype._onFocusChange=function(){var e=this.focus.get();e.length>0?this.view.domNode.setAttribute("aria-activedescendant",this.view.getElementDomId(e[0])):this.view.domNode.removeAttribute("aria-activedescendant"),this.view.domNode.setAttribute("role","tree"),qh(this.view.domNode,"element-focused",e.length>0)},e.prototype._onSelectionChange=function(){var e=this.selection.get();qh(this.view.domNode,"selection-none",0===e.length),qh(this.view.domNode,"selection-single",1===e.length),qh(this.view.domNode,"selection-multiple",e.length>1)},e.prototype.dispose=function(){this._onDidDispose.fire(),this.disposables.dispose(),this._onDidOpen.dispose(),this._onPin.dispose(),this._onDidDispose.dispose()},OE([up],e.prototype,"onFocusChange",null),OE([up],e.prototype,"onSelectionChange",null),OE([up],e.prototype,"onContextMenu",null),e}();n(357);function iT(e){return"object"==typeof e&&"visibility"in e&&"data"in e}function oT(e){switch(e){case!0:return 1;case!1:return 0;default:return e}}function sT(e){var t=e.element,n=e.collapsed;return{element:t,children:jt.map(jt.fromArray(e.children),sT),collapsed:n}}var aT=function(){function e(e,t,n){void 0===n&&(n={}),this.list=e,this.rootRef=[],this.eventBufferer=new Xt,this._onDidChangeCollapseState=new $t,this.onDidChangeCollapseState=this.eventBufferer.wrapEvent(this._onDidChangeCollapseState.event),this._onDidChangeRenderNodeCount=new $t,this.onDidChangeRenderNodeCount=this.eventBufferer.wrapEvent(this._onDidChangeRenderNodeCount.event),this._onDidSplice=new $t,this.onDidSplice=this._onDidSplice.event,this.collapseByDefault=void 0!==n.collapseByDefault&&n.collapseByDefault,this.filter=n.filter,this.autoExpandSingleChildren=void 0!==n.autoExpandSingleChildren&&n.autoExpandSingleChildren,this.root={parent:void 0,element:t,children:[],depth:0,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:!1,collapsed:!1,renderNodeCount:0,visible:!0,filterData:void 0}}return e.prototype.splice=function(e,t,n,r,i){var o,s=this;if(0===e.length)throw new Error("Invalid tree location");for(var a=this.getParentNodeWithListIndex(e),u=a.parentNode,l=a.listIndex,c=a.revealed,d=a.visible,h=[],f=jt.map(jt.from(n),(function(e){return s.createTreeNode(e,u,u.visible?1:0,c,h,r)})),p=e[e.length-1],g=0,m=p;m>=0&&m<u.children.length;m--){if((x=u.children[m]).visible){g=x.visibleChildIndex;break}}var _=[],y=0,v=0;jt.forEach(f,(function(e){_.push(e),v+=e.renderNodeCount,e.visible&&(e.visibleChildIndex=g+y++)}));for(var b=(o=u.children).splice.apply(o,[p,t].concat(_)),w=0,C=0,S=b;C<S.length;C++){(x=S[C]).visible&&w++}if(0!==w)for(m=p+_.length;m<u.children.length;m++){var x;(x=u.children[m]).visible&&(x.visibleChildIndex-=w)}if(u.visibleChildrenCount+=y-w,c&&d){var L=b.reduce((function(e,t){return e+t.renderNodeCount}),0);this._updateAncestorsRenderNodeCount(u,v-L),this.list.splice(l,L,h)}if(b.length>0&&i){var k=function(e){i(e),e.children.forEach(k)};b.forEach(k)}var M=jt.map(jt.fromArray(b),sT);return this._onDidSplice.fire({insertedNodes:_,deletedNodes:b}),M},e.prototype.rerender=function(e){if(0===e.length)throw new Error("Invalid tree location");var t=this.getTreeNodeWithListIndex(e),n=t.node,r=t.listIndex;t.revealed&&this.list.splice(r,1,[n])},e.prototype.getListIndex=function(e){var t=this.getTreeNodeWithListIndex(e),n=t.listIndex,r=t.visible,i=t.revealed;return r&&i?n:-1},e.prototype.getListRenderCount=function(e){return this.getTreeNode(e).renderNodeCount},e.prototype.isCollapsed=function(e){return this.getTreeNode(e).collapsed},e.prototype.setCollapsed=function(e,t,n){var r=this,i=this.getTreeNode(e);return void 0===t&&(t=!i.collapsed),this.eventBufferer.bufferEvents((function(){return r._setCollapsed(e,t,n)}))},e.prototype._setCollapsed=function(e,t,n){var r=this.getTreeNodeWithListIndex(e),i=r.node,o=r.listIndex,s=r.revealed,a=this._setListNodeCollapsed(i,o,s,t,n||!1);if(i!==this.root&&this.autoExpandSingleChildren&&!t&&!n){for(var u=-1,l=0;l<i.children.length;l++){if(i.children[l].visible){if(u>-1){u=-1;break}u=l}}u>-1&&this._setCollapsed(e.concat([u]),!1,!1)}return a},e.prototype._setListNodeCollapsed=function(e,t,n,r,i){var o=this._setNodeCollapsed(e,r,i,!1);if(!n||!e.visible)return o;var s=e.renderNodeCount,a=this.updateNodeAfterCollapseChange(e),u=s-(-1===t?0:1);return this.list.splice(t+1,u,a.slice(1)),o},e.prototype._setNodeCollapsed=function(e,t,n,r){var i=e.collapsible&&e.collapsed!==t;if(e.collapsible&&(e.collapsed=t,i&&this._onDidChangeCollapseState.fire({node:e,deep:r})),n)for(var o=0,s=e.children;o<s.length;o++){var a=s[o];i=this._setNodeCollapsed(a,t,!0,!0)||i}return i},e.prototype.expandTo=function(e){var t=this;this.eventBufferer.bufferEvents((function(){for(var n=t.getTreeNode(e);n.parent;)n=n.parent,e=e.slice(0,e.length-1),n.collapsed&&t._setCollapsed(e,!1)}))},e.prototype.refilter=function(){var e=this.root.renderNodeCount,t=this.updateNodeAfterFilterChange(this.root);this.list.splice(0,e,t)},e.prototype.createTreeNode=function(e,t,n,r,i,o){var s=this,a={parent:t,element:e.element,children:[],depth:t.depth+1,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:"boolean"==typeof e.collapsible?e.collapsible:void 0!==e.collapsed,collapsed:void 0===e.collapsed?this.collapseByDefault:e.collapsed,renderNodeCount:1,visible:!0,filterData:void 0},u=this._filterNode(a,n);r&&i.push(a);var l=jt.from(e.children),c=r&&0!==u&&!a.collapsed,d=jt.map(l,(function(e){return s.createTreeNode(e,a,u,c,i,o)})),h=0,f=1;return jt.forEach(d,(function(e){a.children.push(e),f+=e.renderNodeCount,e.visible&&(e.visibleChildIndex=h++)})),a.collapsible=a.collapsible||a.children.length>0,a.visibleChildrenCount=h,a.visible=2===u?h>0:1===u,a.visible?a.collapsed||(a.renderNodeCount=f):(a.renderNodeCount=0,r&&i.pop()),o&&o(a),a},e.prototype.updateNodeAfterCollapseChange=function(e){var t=e.renderNodeCount,n=[];return this._updateNodeAfterCollapseChange(e,n),this._updateAncestorsRenderNodeCount(e.parent,n.length-t),n},e.prototype._updateNodeAfterCollapseChange=function(e,t){if(!1===e.visible)return 0;if(t.push(e),e.renderNodeCount=1,!e.collapsed)for(var n=0,r=e.children;n<r.length;n++){var i=r[n];e.renderNodeCount+=this._updateNodeAfterCollapseChange(i,t)}return this._onDidChangeRenderNodeCount.fire(e),e.renderNodeCount},e.prototype.updateNodeAfterFilterChange=function(e){var t=e.renderNodeCount,n=[];return this._updateNodeAfterFilterChange(e,e.visible?1:0,n),this._updateAncestorsRenderNodeCount(e.parent,n.length-t),n},e.prototype._updateNodeAfterFilterChange=function(e,t,n,r){var i;if(void 0===r&&(r=!0),e!==this.root){if(0===(i=this._filterNode(e,t)))return e.visible=!1,!1;r&&n.push(e)}var o=n.length;e.renderNodeCount=e===this.root?0:1;var s=!1;if(e.collapsed&&0===i)e.visibleChildrenCount=0;else{for(var a=0,u=0,l=e.children;u<l.length;u++){var c=l[u];s=this._updateNodeAfterFilterChange(c,i,n,r&&!e.collapsed)||s,c.visible&&(c.visibleChildIndex=a++)}e.visibleChildrenCount=a}return e!==this.root&&(e.visible=2===i?s:1===i),e.visible?e.collapsed||(e.renderNodeCount+=n.length-o):(e.renderNodeCount=0,r&&n.pop()),this._onDidChangeRenderNodeCount.fire(e),e.visible},e.prototype._updateAncestorsRenderNodeCount=function(e,t){if(0!==t)for(;e;)e.renderNodeCount+=t,this._onDidChangeRenderNodeCount.fire(e),e=e.parent},e.prototype._filterNode=function(e,t){var n=this.filter?this.filter.filter(e.element,t):1;return"boolean"==typeof n?(e.filterData=void 0,n?1:0):iT(n)?(e.filterData=n.data,oT(n.visibility)):(e.filterData=void 0,oT(n))},e.prototype.getTreeNode=function(e,t){if(void 0===t&&(t=this.root),!e||0===e.length)return t;var n=e[0],r=e.slice(1);if(n<0||n>t.children.length)throw new Error("Invalid tree location");return this.getTreeNode(r,t.children[n])},e.prototype.getTreeNodeWithListIndex=function(e){if(0===e.length)return{node:this.root,listIndex:-1,revealed:!0,visible:!1};var t=this.getParentNodeWithListIndex(e),n=t.parentNode,r=t.listIndex,i=t.revealed,o=t.visible,s=e[e.length-1];if(s<0||s>n.children.length)throw new Error("Invalid tree location");var a=n.children[s];return{node:a,listIndex:r,revealed:i,visible:o&&a.visible}},e.prototype.getParentNodeWithListIndex=function(e,t,n,r,i){void 0===t&&(t=this.root),void 0===n&&(n=0),void 0===r&&(r=!0),void 0===i&&(i=!0);var o=e[0],s=e.slice(1);if(o<0||o>t.children.length)throw new Error("Invalid tree location");for(var a=0;a<o;a++)n+=t.children[a].renderNodeCount;return r=r&&!t.collapsed,i=i&&t.visible,0===s.length?{parentNode:t,listIndex:n,revealed:r,visible:i}:this.getParentNodeWithListIndex(s,t.children[o],n+1,r,i)},e.prototype.getNode=function(e){return void 0===e&&(e=[]),this.getTreeNode(e)},e.prototype.getNodeLocation=function(e){for(var t=[];e.parent;)t.push(e.parent.children.indexOf(e)),e=e.parent;return t.reverse()},e.prototype.getParentNodeLocation=function(e){return e.length<=1?[]:function(e){if(0===e.length)throw new Error("Invalid tail call");return[e.slice(0,e.length-1),e[e.length-1]]}(e)[0]},e}(),uT=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),lT=function(){return(lT=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function cT(e){if(e instanceof $D){var t=e.elements;return new $D(t.map((function(e){return e.element})))}return e}var dT=function(){function e(e,t){this.modelProvider=e,this.dnd=t,this.autoExpandDisposable=Ft.None}return e.prototype.getDragURI=function(e){return this.dnd.getDragURI(e.element)},e.prototype.getDragLabel=function(e){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map((function(e){return e.element})))},e.prototype.onDragStart=function(e,t){this.dnd.onDragStart&&this.dnd.onDragStart(cT(e),t)},e.prototype.onDragOver=function(e,t,n,r,i){var o=this;void 0===i&&(i=!0);var s=this.dnd.onDragOver(cT(e),t&&t.element,n,r),a=this.autoExpandNode!==t;if(a&&(this.autoExpandDisposable.dispose(),this.autoExpandNode=t),void 0===t)return s;if(a&&"boolean"!=typeof s&&s.autoExpand&&(this.autoExpandDisposable=Es((function(){var e=o.modelProvider(),n=e.getNodeLocation(t);e.isCollapsed(n)&&e.setCollapsed(n,!1),o.autoExpandNode=void 0}),500)),"boolean"==typeof s||!s.accept||void 0===s.bubble)return i?s:{accept:"boolean"==typeof s?s:s.accept,effect:"boolean"==typeof s?void 0:s.effect,feedback:[n]};if(1===s.bubble){var u=t.parent,l=this.modelProvider(),c=u&&l.getListIndex(l.getNodeLocation(u));return this.onDragOver(e,u,c,r,!1)}var d=this.modelProvider(),h=d.getNodeLocation(t),f=d.getListIndex(h),p=d.getListRenderCount(h);return lT({},s,{feedback:Gr(f,f+p)})},e.prototype.drop=function(e,t,n,r){this.autoExpandDisposable.dispose(),this.autoExpandNode=void 0,this.dnd.drop(cT(e),t&&t.element,n,r)},e}();var hT,fT=function(){function e(e){this.delegate=e}return e.prototype.getHeight=function(e){return this.delegate.getHeight(e.element)},e.prototype.getTemplateId=function(e){return this.delegate.getTemplateId(e.element)},e.prototype.hasDynamicHeight=function(e){return!!this.delegate.hasDynamicHeight&&this.delegate.hasDynamicHeight(e.element)},e.prototype.setDynamicHeight=function(e,t){this.delegate.setDynamicHeight&&this.delegate.setDynamicHeight(e.element,t)},e}();!function(e){e.None="none",e.OnHover="onHover",e.Always="always"}(hT||(hT={}));var pT=function(){function e(e,t){var n=this;void 0===t&&(t=[]),this.onDidChange=e,this._elements=t,this.disposables=new Rt,e((function(e){return n._elements=e}),null,this.disposables)}return Object.defineProperty(e.prototype,"elements",{get:function(){return this._elements},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this.disposables.dispose()},e}(),gT=function(){function e(t,n,r,i){void 0===i&&(i={}),this.renderer=t,this.activeNodes=r,this.renderedElements=new Map,this.renderedNodes=new Map,this.indent=e.DefaultIndent,this._renderIndentGuides=hT.None,this.renderedIndentGuides=new ND,this.activeIndentNodes=new Set,this.indentGuidesDisposable=Ft.None,this.disposables=[],this.templateId=t.templateId,this.updateOptions(i),Ht.map(n,(function(e){return e.node}))(this.onDidChangeNodeTwistieState,this,this.disposables),t.onDidChangeTwistieState&&t.onDidChangeTwistieState(this.onDidChangeTwistieState,this,this.disposables)}return e.prototype.updateOptions=function(e){if(void 0===e&&(e={}),void 0!==e.indent&&(this.indent=eE(e.indent,0,40)),void 0!==e.renderIndentGuides){var t=e.renderIndentGuides;if(t!==this._renderIndentGuides)if(this._renderIndentGuides=t,t){var n=new Rt;this.activeNodes.onDidChange(this._onDidChangeActiveNodes,this,n),this.indentGuidesDisposable=n,this._onDidChangeActiveNodes(this.activeNodes.elements)}else this.indentGuidesDisposable.dispose()}},e.prototype.renderTemplate=function(e){var t=Mf(e,Nf(".monaco-tl-row")),n=Mf(t,Nf(".monaco-tl-indent")),r=Mf(t,Nf(".monaco-tl-twistie")),i=Mf(t,Nf(".monaco-tl-contents")),o=this.renderer.renderTemplate(i);return{container:e,indent:n,twistie:r,indentGuidesDisposable:Ft.None,templateData:o}},e.prototype.renderElement=function(t,n,r,i){"number"==typeof i&&(this.renderedNodes.set(t,{templateData:r,height:i}),this.renderedElements.set(t.element,t));var o=e.DefaultIndent+(t.depth-1)*this.indent;r.twistie.style.marginLeft=o+"px",r.indent.style.width=o+this.indent-16+"px",this.renderTwistie(t,r),"number"==typeof i&&this.renderIndentGuides(t,r),this.renderer.renderElement(t,n,r.templateData,i)},e.prototype.disposeElement=function(e,t,n,r){n.indentGuidesDisposable.dispose(),this.renderer.disposeElement&&this.renderer.disposeElement(e,t,n.templateData,r),"number"==typeof r&&(this.renderedNodes.delete(e),this.renderedElements.delete(e.element))},e.prototype.disposeTemplate=function(e){this.renderer.disposeTemplate(e.templateData)},e.prototype.onDidChangeTwistieState=function(e){var t=this.renderedElements.get(e);t&&this.onDidChangeNodeTwistieState(t)},e.prototype.onDidChangeNodeTwistieState=function(e){var t=this.renderedNodes.get(e);t&&(this.renderTwistie(e,t.templateData),this._onDidChangeActiveNodes(this.activeNodes.elements),this.renderIndentGuides(e,t.templateData))},e.prototype.renderTwistie=function(e,t){this.renderer.renderTwistie&&this.renderer.renderTwistie(e.element,t.twistie),qh(t.twistie,"collapsible",e.collapsible),qh(t.twistie,"collapsed",e.collapsible&&e.collapsed),e.collapsible?t.container.setAttribute("aria-expanded",String(!e.collapsed)):t.container.removeAttribute("aria-expanded")},e.prototype.renderIndentGuides=function(e,t){var n=this;if(Rh(t.indent),t.indentGuidesDisposable.dispose(),this._renderIndentGuides!==hT.None){for(var r=new Rt,i=e,o=function(){var e=i.parent,o=Nf(".indent-guide",{style:"width: "+s.indent+"px"});s.activeIndentNodes.has(e)&&Hh(o,"active"),0===t.indent.childElementCount?t.indent.appendChild(o):t.indent.insertBefore(o,t.indent.firstElementChild),s.renderedIndentGuides.add(e,o),r.add(Pt((function(){return n.renderedIndentGuides.delete(e,o)}))),i=e},s=this;i.parent&&i.parent.parent;)o();t.indentGuidesDisposable=r}},e.prototype._onDidChangeActiveNodes=function(e){var t=this;if(this._renderIndentGuides!==hT.None){var n=new Set;e.forEach((function(e){e.collapsible&&e.children.length>0&&!e.collapsed?n.add(e):e.parent&&n.add(e.parent)})),this.activeIndentNodes.forEach((function(e){n.has(e)||t.renderedIndentGuides.forEach(e,(function(e){return zh(e,"active")}))})),n.forEach((function(e){t.activeIndentNodes.has(e)||t.renderedIndentGuides.forEach(e,(function(e){return Hh(e,"active")}))})),this.activeIndentNodes=n}},e.prototype.dispose=function(){this.renderedNodes.clear(),this.renderedElements.clear(),this.indentGuidesDisposable.dispose(),this.disposables=At(this.disposables)},e.DefaultIndent=8,e}(),mT=function(){function e(e,t,n){this.tree=e,this.keyboardNavigationLabelProvider=t,this._filter=n,this._totalCount=0,this._matchCount=0,this._pattern="",this._lowercasePattern="",this.disposables=[],e.onWillRefilter(this.reset,this,this.disposables)}return Object.defineProperty(e.prototype,"totalCount",{get:function(){return this._totalCount},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"matchCount",{get:function(){return this._matchCount},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pattern",{set:function(e){this._pattern=e,this._lowercasePattern=e.toLowerCase()},enumerable:!0,configurable:!0}),e.prototype.filter=function(e,t){if(this._filter){var n=this._filter.filter(e,t);if(this.tree.options.simpleKeyboardNavigation)return n;if(0===("boolean"==typeof n?n?1:0:iT(n)?oT(n.visibility):n))return!1}if(this._totalCount++,this.tree.options.simpleKeyboardNavigation||!this._pattern)return this._matchCount++,{data:gE.Default,visibility:!0};var r=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e),i=r&&r.toString();if(void 0===i)return{data:gE.Default,visibility:!0};var o=SE(this._pattern,this._lowercasePattern,0,i,i.toLowerCase(),0,!0);return o?(this._matchCount++,{data:o,visibility:!0}):this.tree.options.filterOnType?2:{data:gE.Default,visibility:!0}},e.prototype.reset=function(){this._totalCount=0,this._matchCount=0},e.prototype.dispose=function(){this.disposables=At(this.disposables)},e}(),_T=function(){function e(e,t,n,r,i){this.tree=e,this.view=n,this.filter=r,this.keyboardNavigationLabelProvider=i,this._enabled=!1,this._pattern="",this._empty=!1,this._onDidChangeEmptyState=new $t,this.positionClassName="ne",this.automaticKeyboardNavigation=!0,this.triggered=!1,this._onDidChangePattern=new $t,this.enabledDisposables=[],this.disposables=[],this.domNode=Nf(".monaco-list-type-filter."+this.positionClassName),this.domNode.draggable=!0,yh(this.domNode,"dragstart")(this.onDragStart,this,this.disposables),this.messageDomNode=Mf(n.getHTMLElement(),Nf(".monaco-list-type-filter-message")),this.labelDomNode=Mf(this.domNode,Nf("span.label"));var o=Mf(this.domNode,Nf(".controls"));this._filterOnType=!!e.options.filterOnType,this.filterOnTypeDomNode=Mf(o,Nf("input.filter")),this.filterOnTypeDomNode.type="checkbox",this.filterOnTypeDomNode.checked=this._filterOnType,this.filterOnTypeDomNode.tabIndex=-1,this.updateFilterOnTypeTitle(),yh(this.filterOnTypeDomNode,"input")(this.onDidChangeFilterOnType,this,this.disposables),this.clearDomNode=Mf(o,Nf("button.clear")),this.clearDomNode.tabIndex=-1,this.clearDomNode.title=Ee("clear","Clear"),this.keyboardNavigationEventFilter=e.options.keyboardNavigationEventFilter,t.onDidSplice(this.onDidSpliceModel,this,this.disposables),this.updateOptions(e.options)}return Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pattern",{get:function(){return this._pattern},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filterOnType",{get:function(){return this._filterOnType},enumerable:!0,configurable:!0}),e.prototype.updateOptions=function(e){e.simpleKeyboardNavigation?this.disable():this.enable(),void 0!==e.filterOnType&&(this._filterOnType=!!e.filterOnType,this.filterOnTypeDomNode.checked=this._filterOnType),void 0!==e.automaticKeyboardNavigation&&(this.automaticKeyboardNavigation=e.automaticKeyboardNavigation),this.tree.refilter(),this.render(),this.automaticKeyboardNavigation||this.onEventOrInput("")},e.prototype.enable=function(){var e=this;if(!this._enabled){var t=this.keyboardNavigationLabelProvider.mightProducePrintableCharacter?function(t){return e.keyboardNavigationLabelProvider.mightProducePrintableCharacter(t)}:function(e){return BE(e)},n=Ht.chain(yh(this.view.getHTMLElement(),"keydown")).filter((function(t){return!yT(t.target)||t.target===e.filterOnTypeDomNode})).map((function(e){return new Sh(e)})).filter(this.keyboardNavigationEventFilter||function(){return!0}).filter((function(){return e.automaticKeyboardNavigation||e.triggered})).filter((function(n){return t(n)||(e.pattern.length>0||e.triggered)&&(9===n.keyCode||1===n.keyCode)&&!n.altKey&&!n.ctrlKey&&!n.metaKey||1===n.keyCode&&(nt.d?n.altKey&&!n.metaKey:n.ctrlKey)&&!n.shiftKey})).forEach((function(e){e.stopPropagation(),e.preventDefault()})).event,r=yh(this.clearDomNode,"click");Ht.chain(Ht.any(n,r)).event(this.onEventOrInput,this,this.enabledDisposables),this.filter.pattern="",this.tree.refilter(),this.render(),this._enabled=!0,this.triggered=!1}},e.prototype.disable=function(){this._enabled&&(this.domNode.remove(),this.enabledDisposables=At(this.enabledDisposables),this.tree.refilter(),this.render(),this._enabled=!1,this.triggered=!1)},e.prototype.onEventOrInput=function(e){"string"==typeof e?this.onInput(e):e instanceof MouseEvent||9===e.keyCode||1===e.keyCode&&(nt.d?e.altKey:e.ctrlKey)?this.onInput(""):1===e.keyCode?this.onInput(0===this.pattern.length?"":this.pattern.substr(0,this.pattern.length-1)):this.onInput(this.pattern+e.browserEvent.key)},e.prototype.onInput=function(e){var t=this.view.getHTMLElement();e&&!this.domNode.parentElement?t.append(this.domNode):!e&&this.domNode.parentElement&&(this.domNode.remove(),this.tree.domFocus()),this._pattern=e,this._onDidChangePattern.fire(e),this.filter.pattern=e,this.tree.refilter(),e&&this.tree.focusNext(0,!0,void 0,(function(e){return!gE.isDefault(e.filterData)}));var n=this.tree.getFocus();if(n.length>0){var r=n[0];null===this.tree.getRelativeTop(r)&&this.tree.reveal(r,.5)}this.render(),e||(this.triggered=!1)},e.prototype.onDragStart=function(){var e=this,t=this.view.getHTMLElement(),n=pf(t).left,r=t.clientWidth,i=r/2,o=this.domNode.clientWidth,s=[],a=this.positionClassName,u=function(){switch(a){case"nw":e.domNode.style.top="4px",e.domNode.style.left="4px";break;case"ne":e.domNode.style.top="4px",e.domNode.style.left=r-o-6+"px"}};u(),zh(this.domNode,a),Hh(this.domNode,"dragging"),s.push(Pt((function(){return zh(e.domNode,"dragging")}))),yh(document,"dragover")((function(e){e.preventDefault();var t=e.screenX-n;e.dataTransfer&&(e.dataTransfer.dropEffect="none"),a=t<i?"nw":"ne",u()}),null,s),yh(this.domNode,"dragend")((function(){e.positionClassName=a,e.domNode.className="monaco-list-type-filter "+e.positionClassName,e.domNode.style.top=null,e.domNode.style.left=null,At(s)}),null,s),qD.CurrentDragAndDropData=new UD("vscode-ui"),s.push(Pt((function(){return qD.CurrentDragAndDropData=void 0})))},e.prototype.onDidSpliceModel=function(){this._enabled&&0!==this.pattern.length&&(this.tree.refilter(),this.render())},e.prototype.onDidChangeFilterOnType=function(){this.tree.updateOptions({filterOnType:this.filterOnTypeDomNode.checked}),this.tree.refilter(),this.tree.domFocus(),this.render(),this.updateFilterOnTypeTitle()},e.prototype.updateFilterOnTypeTitle=function(){this.filterOnType?this.filterOnTypeDomNode.title=Ee("disable filter on type","Disable Filter on Type"):this.filterOnTypeDomNode.title=Ee("enable filter on type","Enable Filter on Type")},e.prototype.render=function(){var e=this.filter.totalCount>0&&0===this.filter.matchCount;this.pattern&&this.tree.options.filterOnType&&e?(this.messageDomNode.textContent=Ee("empty","No elements found"),this._empty=!0):(this.messageDomNode.innerHTML="",this._empty=!1),qh(this.domNode,"no-matches",e),this.domNode.title=Ee("found","Matched {0} out of {1} elements",this.filter.matchCount,this.filter.totalCount),this.labelDomNode.textContent=this.pattern.length>16?"…"+this.pattern.substr(this.pattern.length-16):this.pattern,this._onDidChangeEmptyState.fire(this._empty)},e.prototype.shouldAllowFocus=function(e){return!(this.enabled&&this.pattern&&!this.filterOnType)||(this.filter.totalCount>0&&this.filter.matchCount<=1||!gE.isDefault(e.filterData))},e.prototype.dispose=function(){this.disable(),this._onDidChangePattern.dispose(),this.disposables=At(this.disposables)},e}();function yT(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName}function vT(e){return{elements:e.elements.map((function(e){return e.element})),browserEvent:e.browserEvent}}function bT(e,t){t(e),e.children.forEach((function(e){return bT(e,t)}))}var wT=function(){function e(e){this.identityProvider=e,this.nodes=[],this._onDidChange=new $t,this.onDidChange=this._onDidChange.event}return Object.defineProperty(e.prototype,"nodeSet",{get:function(){return this._nodeSet||(this._nodeSet=this.createNodeSet()),this._nodeSet},enumerable:!0,configurable:!0}),e.prototype.set=function(e,t){Hr(this.nodes,e)||this._set(e,!1,t)},e.prototype._set=function(e,t,n){if(this.nodes=e.slice(),this.elements=void 0,this._nodeSet=void 0,!t){var r=this;this._onDidChange.fire({get elements(){return r.get()},browserEvent:n})}},e.prototype.get=function(){return this.elements||(this.elements=this.nodes.map((function(e){return e.element}))),this.elements.slice()},e.prototype.getNodes=function(){return this.nodes},e.prototype.has=function(e){return this.nodeSet.has(e)},e.prototype.onDidModelSplice=function(e){var t=this,n=e.insertedNodes,r=e.deletedNodes;if(!this.identityProvider){var i=this.createNodeSet(),o=function(e){return i.delete(e)};return r.forEach((function(e){return bT(e,o)})),void this.set($n(i))}var s=new Set,a=function(e){return s.add(t.identityProvider.getId(e.element).toString())};r.forEach((function(e){return bT(e,a)}));var u=new Map,l=function(e){return u.set(t.identityProvider.getId(e.element).toString(),e)};n.forEach((function(e){return bT(e,l)}));for(var c=[],d=!0,h=0,f=this.nodes;h<f.length;h++){var p=f[h],g=this.identityProvider.getId(p.element).toString();if(s.has(g)){var m=u.get(g);m?c.push(m):d=!1}else c.push(p)}this._set(c,d)},e.prototype.createNodeSet=function(){for(var e=new Set,t=0,n=this.nodes;t<n.length;t++){var r=n[t];e.add(r)}return e},e}(),CT=function(e){function t(t,n){var r=e.call(this,t)||this;return r.tree=n,r}return uT(t,e),t.prototype.onPointer=function(t){if(!yT(t.browserEvent.target)){var n=t.element;if(!n)return e.prototype.onPointer.call(this,t);if(this.isSelectionRangeChangeEvent(t)||this.isSelectionSingleChangeEvent(t))return e.prototype.onPointer.call(this,t);var r=Wh(t.browserEvent.target,"monaco-tl-twistie");if(!this.tree.openOnSingleClick&&2!==t.browserEvent.detail&&!r)return e.prototype.onPointer.call(this,t);var i=!1;if((i="function"==typeof this.tree.expandOnlyOnTwistieClick?this.tree.expandOnlyOnTwistieClick(n.element):!!this.tree.expandOnlyOnTwistieClick)&&!r)return e.prototype.onPointer.call(this,t);var o=this.tree.model,s=o.getNodeLocation(n),a=t.browserEvent.altKey;o.setCollapsed(s,void 0,a),i&&r||e.prototype.onPointer.call(this,t)}},t.prototype.onDoubleClick=function(t){Wh(t.browserEvent.target,"monaco-tl-twistie")||e.prototype.onDoubleClick.call(this,t)},t}(GE),ST=function(e){function t(t,n,r,i,o,s){var a=e.call(this,t,n,r,s)||this;return a.focusTrait=i,a.selectionTrait=o,a}return uT(t,e),t.prototype.createMouseController=function(e){return new CT(this,e.tree)},t.prototype.splice=function(t,n,r){var i=this;if(void 0===r&&(r=[]),e.prototype.splice.call(this,t,n,r),0!==r.length){var o=[],s=[];r.forEach((function(e,n){i.focusTrait.has(e)&&o.push(t+n),i.selectionTrait.has(e)&&s.push(t+n)})),o.length>0&&e.prototype.setFocus.call(this,Ur(e.prototype.getFocus.call(this).concat(o))),s.length>0&&e.prototype.setSelection.call(this,Ur(e.prototype.getSelection.call(this).concat(s)))}},t.prototype.setFocus=function(t,n,r){var i=this;void 0===r&&(r=!1),e.prototype.setFocus.call(this,t,n),r||this.focusTrait.set(t.map((function(e){return i.element(e)})),n)},t.prototype.setSelection=function(t,n,r){var i=this;void 0===r&&(r=!1),e.prototype.setSelection.call(this,t,n),r||this.selectionTrait.set(t.map((function(e){return i.element(e)})),n)},t}(rT),xT=function(){function e(e,t,n,r){var i,o=this;void 0===r&&(r={}),this._options=r,this.eventBufferer=new Xt,this.disposables=[],this._onWillRefilter=new $t,this.onWillRefilter=this._onWillRefilter.event,this._onDidUpdateOptions=new $t;var s,a,u,l=new fT(t),c=new Jt,d=new Jt,h=new pT(d.event);if(this.disposables.push(h),this.renderers=n.map((function(e){return new gT(e,c.event,h,r)})),(i=this.disposables).push.apply(i,this.renderers),r.keyboardNavigationLabelProvider&&(s=new mT(this,r.keyboardNavigationLabelProvider,r.filter),r=lT({},r,{filter:s}),this.disposables.push(s)),this.focus=new wT(r.identityProvider),this.selection=new wT(r.identityProvider),this.view=new ST(e,l,this.renderers,this.focus,this.selection,lT({},(a=function(){return o.model},(u=r)&&lT({},u,{identityProvider:u.identityProvider&&{getId:function(e){return u.identityProvider.getId(e.element)}},dnd:u.dnd&&new dT(a,u.dnd),multipleSelectionController:u.multipleSelectionController&&{isSelectionSingleChangeEvent:function(e){return u.multipleSelectionController.isSelectionSingleChangeEvent(lT({},e,{element:e.element}))},isSelectionRangeChangeEvent:function(e){return u.multipleSelectionController.isSelectionRangeChangeEvent(lT({},e,{element:e.element}))}},accessibilityProvider:u.accessibilityProvider&&{getAriaLabel:function(e){return u.accessibilityProvider.getAriaLabel(e.element)},getAriaLevel:function(e){return e.depth}},keyboardNavigationLabelProvider:u.keyboardNavigationLabelProvider&&lT({},u.keyboardNavigationLabelProvider,{getKeyboardNavigationLabel:function(e){return u.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e.element)}}),enableKeyboardNavigation:u.simpleKeyboardNavigation,ariaProvider:{getSetSize:function(e){return e.parent.visibleChildrenCount},getPosInSet:function(e){return e.visibleChildIndex+1}}})),{tree:this})),this.model=this.createModel(this.view,r),c.input=this.model.onDidChangeCollapseState,this.model.onDidSplice((function(e){o.focus.onDidModelSplice(e),o.selection.onDidModelSplice(e)}),null,this.disposables),d.input=Ht.map(Ht.any(this.focus.onDidChange,this.selection.onDidChange,this.model.onDidSplice),(function(){return o.focus.getNodes().concat(o.selection.getNodes())})),!1!==r.keyboardSupport){var f=Ht.chain(this.view.onKeyDown).filter((function(e){return!yT(e.target)})).map((function(e){return new Sh(e)}));f.filter((function(e){return 15===e.keyCode})).on(this.onLeftArrow,this,this.disposables),f.filter((function(e){return 17===e.keyCode})).on(this.onRightArrow,this,this.disposables),f.filter((function(e){return 10===e.keyCode})).on(this.onSpace,this,this.disposables)}r.keyboardNavigationLabelProvider&&(this.typeFilterController=new _T(this,this.model,this.view,s,r.keyboardNavigationLabelProvider),this.focusNavigationFilter=function(e){return o.typeFilterController.shouldAllowFocus(e)},this.disposables.push(this.typeFilterController)),this.styleElement=bf(this.view.getHTMLElement()),qh(this.getHTMLElement(),"always",this._options.renderIndentGuides===hT.Always)}return Object.defineProperty(e.prototype,"onDidChangeFocus",{get:function(){return this.eventBufferer.wrapEvent(this.focus.onDidChange)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidChangeSelection",{get:function(){return this.eventBufferer.wrapEvent(this.selection.onDidChange)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidOpen",{get:function(){return Ht.map(this.view.onDidOpen,vT)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidFocus",{get:function(){return this.view.onDidFocus},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidChangeCollapseState",{get:function(){return this.model.onDidChangeCollapseState},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"openOnSingleClick",{get:function(){return void 0===this._options.openOnSingleClick||this._options.openOnSingleClick},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"expandOnlyOnTwistieClick",{get:function(){return void 0!==this._options.expandOnlyOnTwistieClick&&this._options.expandOnlyOnTwistieClick},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidDispose",{get:function(){return this.view.onDidDispose},enumerable:!0,configurable:!0}),e.prototype.updateOptions=function(e){void 0===e&&(e={}),this._options=lT({},this._options,e);for(var t=0,n=this.renderers;t<n.length;t++){n[t].updateOptions(e)}this.view.updateOptions({enableKeyboardNavigation:this._options.simpleKeyboardNavigation,automaticKeyboardNavigation:this._options.automaticKeyboardNavigation}),this.typeFilterController&&this.typeFilterController.updateOptions(this._options),this._onDidUpdateOptions.fire(this._options),qh(this.getHTMLElement(),"always",this._options.renderIndentGuides===hT.Always)},Object.defineProperty(e.prototype,"options",{get:function(){return this._options},enumerable:!0,configurable:!0}),e.prototype.getHTMLElement=function(){return this.view.getHTMLElement()},Object.defineProperty(e.prototype,"scrollTop",{get:function(){return this.view.scrollTop},set:function(e){this.view.scrollTop=e},enumerable:!0,configurable:!0}),e.prototype.domFocus=function(){this.view.domFocus()},e.prototype.layout=function(e,t){this.view.layout(e,t)},e.prototype.style=function(e){var t="."+this.view.domId,n=[];e.treeIndentGuidesStroke&&(n.push(".monaco-list"+t+":hover .monaco-tl-indent > .indent-guide, .monaco-list"+t+".always .monaco-tl-indent > .indent-guide { border-color: "+e.treeIndentGuidesStroke.transparent(.4)+"; }"),n.push(".monaco-list"+t+" .monaco-tl-indent > .indent-guide.active { border-color: "+e.treeIndentGuidesStroke+"; }"));var r=n.join("\n");r!==this.styleElement.innerHTML&&(this.styleElement.innerHTML=r),this.view.style(e)},e.prototype.getNode=function(e){return this.model.getNode(e)},e.prototype.collapse=function(e,t){return void 0===t&&(t=!1),this.model.setCollapsed(e,!0,t)},e.prototype.expand=function(e,t){return void 0===t&&(t=!1),this.model.setCollapsed(e,!1,t)},e.prototype.isCollapsed=function(e){return this.model.isCollapsed(e)},e.prototype.refilter=function(){this._onWillRefilter.fire(void 0),this.model.refilter()},e.prototype.setSelection=function(e,t){var n=this,r=e.map((function(e){return n.model.getNode(e)}));this.selection.set(r,t);var i=e.map((function(e){return n.model.getListIndex(e)})).filter((function(e){return e>-1}));this.view.setSelection(i,t,!0)},e.prototype.getSelection=function(){return this.selection.get()},e.prototype.setFocus=function(e,t){var n=this,r=e.map((function(e){return n.model.getNode(e)}));this.focus.set(r,t);var i=e.map((function(e){return n.model.getListIndex(e)})).filter((function(e){return e>-1}));this.view.setFocus(i,t,!0)},e.prototype.focusNext=function(e,t,n,r){void 0===e&&(e=1),void 0===t&&(t=!1),void 0===r&&(r=this.focusNavigationFilter),this.view.focusNext(e,t,n,r)},e.prototype.getFocus=function(){return this.focus.get()},e.prototype.reveal=function(e,t){this.model.expandTo(e);var n=this.model.getListIndex(e);-1!==n&&this.view.reveal(n,t)},e.prototype.getRelativeTop=function(e){var t=this.model.getListIndex(e);return-1===t?null:this.view.getRelativeTop(t)},e.prototype.onLeftArrow=function(e){e.preventDefault(),e.stopPropagation();var t=this.view.getFocusedElements();if(0!==t.length){var n=t[0],r=this.model.getNodeLocation(n);if(!this.model.setCollapsed(r,!0)){var i=this.model.getParentNodeLocation(r);if(null===i)return;var o=this.model.getListIndex(i);this.view.reveal(o),this.view.setFocus([o])}}},e.prototype.onRightArrow=function(e){e.preventDefault(),e.stopPropagation();var t=this.view.getFocusedElements();if(0!==t.length){var n=t[0],r=this.model.getNodeLocation(n);if(!this.model.setCollapsed(r,!1)){if(!n.children.some((function(e){return e.visible})))return;var i=this.view.getFocus()[0]+1;this.view.reveal(i),this.view.setFocus([i])}}},e.prototype.onSpace=function(e){e.preventDefault(),e.stopPropagation();var t=this.view.getFocusedElements();if(0!==t.length){var n=t[0],r=this.model.getNodeLocation(n),i=e.browserEvent.altKey;this.model.setCollapsed(r,void 0,i)}},e.prototype.dispose=function(){this.disposables=At(this.disposables),this.view.dispose()},e}(),LT=function(){return(LT=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},kT=function(){function e(e,t){void 0===t&&(t={}),this.nodes=new Map,this.nodesByIdentity=new Map,this.model=new aT(e,null,t),this.onDidSplice=this.model.onDidSplice,this.onDidChangeCollapseState=this.model.onDidChangeCollapseState,this.onDidChangeRenderNodeCount=this.model.onDidChangeRenderNodeCount,t.sorter&&(this.sorter={compare:function(e,n){return t.sorter.compare(e.element,n.element)}}),this.identityProvider=t.identityProvider}return e.prototype.setChildren=function(e,t,n,r){var i=this.getElementLocation(e);return this._setChildren(i,this.preserveCollapseState(t),n,r)},e.prototype._setChildren=function(e,t,n,r){var i=this,o=new Set,s=new Set;return this.model.splice(e.concat([0]),Number.MAX_VALUE,t,(function(e){if(o.add(e.element),i.nodes.set(e.element,e),i.identityProvider){var t=i.identityProvider.getId(e.element).toString();s.add(t),i.nodesByIdentity.set(t,e)}n&&n(e)}),(function(e){if(o.has(e.element)||i.nodes.delete(e.element),i.identityProvider){var t=i.identityProvider.getId(e.element).toString();s.has(t)||i.nodesByIdentity.delete(t)}r&&r(e)}))},e.prototype.preserveCollapseState=function(e){var t,n=this,r=e?(t=e,Array.isArray(t)?jt.fromArray(t):t):jt.empty();return this.sorter&&(r=jt.fromArray(jt.collect(r).sort(this.sorter.compare.bind(this.sorter)))),jt.map(r,(function(e){var t=n.nodes.get(e.element);if(!t&&n.identityProvider){var r=n.identityProvider.getId(e.element).toString();t=n.nodesByIdentity.get(r)}if(!t)return LT({},e,{children:n.preserveCollapseState(e.children)});var i="boolean"==typeof e.collapsible?e.collapsible:t.collapsible,o=void 0!==e.collapsed?e.collapsed:t.collapsed;return LT({},e,{collapsible:i,collapsed:o,children:n.preserveCollapseState(e.children)})}))},e.prototype.rerender=function(e){var t=this.getElementLocation(e);this.model.rerender(t)},e.prototype.getListIndex=function(e){var t=this.getElementLocation(e);return this.model.getListIndex(t)},e.prototype.getListRenderCount=function(e){var t=this.getElementLocation(e);return this.model.getListRenderCount(t)},e.prototype.isCollapsed=function(e){var t=this.getElementLocation(e);return this.model.isCollapsed(t)},e.prototype.setCollapsed=function(e,t,n){var r=this.getElementLocation(e);return this.model.setCollapsed(r,t,n)},e.prototype.expandTo=function(e){var t=this.getElementLocation(e);this.model.expandTo(t)},e.prototype.refilter=function(){this.model.refilter()},e.prototype.getNode=function(e){if(void 0===e&&(e=null),null===e)return this.model.getNode(this.model.rootRef);var t=this.nodes.get(e);if(!t)throw new Error("Tree element not found: "+e);return t},e.prototype.getNodeLocation=function(e){return e.element},e.prototype.getParentNodeLocation=function(e){if(null===e)throw new Error("Invalid getParentNodeLocation call");var t=this.nodes.get(e);if(!t)throw new Error("Tree element not found: "+e);return t.parent.element},e.prototype.getElementLocation=function(e){if(null===e)return[];var t=this.nodes.get(e);if(!t)throw new Error("Tree element not found: "+e);return this.model.getNodeLocation(t)},e}(),MT=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),DT=function(e){function t(t,n,r,i){return void 0===i&&(i={}),e.call(this,t,n,r,i)||this}return MT(t,e),Object.defineProperty(t.prototype,"onDidChangeCollapseState",{get:function(){return this.model.onDidChangeCollapseState},enumerable:!0,configurable:!0}),t.prototype.setChildren=function(e,t){return this.model.setChildren(e,t)},t.prototype.rerender=function(e){void 0!==e?this.model.rerender(e):this.view.rerender()},t.prototype.createModel=function(e,t){return new kT(e,t)},t}(xT),ET=function(){return(ET=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},TT=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))},NT=function(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};function OT(e){return ET({},e,{children:[],loading:!1,stale:!0,slow:!1,collapsedByDefault:void 0})}function AT(e,t){return!!t.parent&&(t.parent===e||AT(e,t.parent))}var IT,PT=function(){function e(e){this.node=e}return Object.defineProperty(e.prototype,"element",{get:function(){return this.node.element.element},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this.node.parent&&new e(this.node.parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this.node.children.map((function(t){return new e(t)}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"depth",{get:function(){return this.node.depth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visibleChildrenCount",{get:function(){return this.node.visibleChildrenCount},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visibleChildIndex",{get:function(){return this.node.visibleChildIndex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"collapsible",{get:function(){return this.node.collapsible},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"collapsed",{get:function(){return this.node.collapsed},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return this.node.visible},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filterData",{get:function(){return this.node.filterData},enumerable:!0,configurable:!0}),e}(),RT=function(){function e(e,t){this.renderer=e,this.onDidChangeTwistieState=t,this.renderedNodes=new Map,this.disposables=[],this.templateId=e.templateId}return e.prototype.renderTemplate=function(e){return{templateData:this.renderer.renderTemplate(e)}},e.prototype.renderElement=function(e,t,n,r){this.renderer.renderElement(new PT(e),t,n.templateData,r)},e.prototype.renderTwistie=function(e,t){return qh(t,"loading",e.slow),!1},e.prototype.disposeElement=function(e,t,n,r){this.renderer.disposeElement&&this.renderer.disposeElement(new PT(e),t,n.templateData,r)},e.prototype.disposeTemplate=function(e){this.renderer.disposeTemplate(e.templateData)},e.prototype.dispose=function(){this.renderedNodes.clear(),this.disposables=At(this.disposables)},e}();function FT(e){return{browserEvent:e.browserEvent,elements:e.elements.map((function(e){return e.element}))}}function YT(e){if(e instanceof $D){var t=e.elements;return new $D(t.map((function(e){return e.element})))}return e}!function(e){e[e.Refresh=0]="Refresh",e[e.Expand=1]="Expand"}(IT||(IT={}));var jT=function(){function e(e){this.dnd=e}return e.prototype.getDragURI=function(e){return this.dnd.getDragURI(e.element)},e.prototype.getDragLabel=function(e){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map((function(e){return e.element})))},e.prototype.onDragStart=function(e,t){this.dnd.onDragStart&&this.dnd.onDragStart(YT(e),t)},e.prototype.onDragOver=function(e,t,n,r,i){return void 0===i&&(i=!0),this.dnd.onDragOver(YT(e),t&&t.element,n,r)},e.prototype.drop=function(e,t,n,r){this.dnd.drop(YT(e),t&&t.element,n,r)},e}();function BT(e,t){t(e),e.children.forEach((function(e){return BT(e,t)}))}var WT,HT=function(){function e(e,t,n,r,i){var o=this;void 0===i&&(i={}),this.dataSource=r,this.nodes=new Map,this.subTreeRefreshPromises=new Map,this.refreshPromises=new Map,this._onDidRender=new $t,this._onDidChangeNodeSlowState=new $t,this.disposables=[],this.identityProvider=i.identityProvider,this.autoExpandSingleChildren=void 0!==i.autoExpandSingleChildren&&i.autoExpandSingleChildren,this.sorter=i.sorter,this.collapseByDefault=i.collapseByDefault;var s=new fT(t),a=n.map((function(e){return new RT(e,o._onDidChangeNodeSlowState.event)})),u=function(e){return e&&ET({},e,{collapseByDefault:!0,identityProvider:e.identityProvider&&{getId:function(t){return e.identityProvider.getId(t.element)}},dnd:e.dnd&&new jT(e.dnd),multipleSelectionController:e.multipleSelectionController&&{isSelectionSingleChangeEvent:function(t){return e.multipleSelectionController.isSelectionSingleChangeEvent(ET({},t,{element:t.element}))},isSelectionRangeChangeEvent:function(t){return e.multipleSelectionController.isSelectionRangeChangeEvent(ET({},t,{element:t.element}))}},accessibilityProvider:e.accessibilityProvider&&{getAriaLabel:function(t){return e.accessibilityProvider.getAriaLabel(t.element)}},filter:e.filter&&{filter:function(t,n){return e.filter.filter(t.element,n)}},keyboardNavigationLabelProvider:e.keyboardNavigationLabelProvider&&ET({},e.keyboardNavigationLabelProvider,{getKeyboardNavigationLabel:function(t){return e.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(t.element)}}),sorter:void 0,expandOnlyOnTwistieClick:void 0===e.expandOnlyOnTwistieClick?void 0:"function"!=typeof e.expandOnlyOnTwistieClick?e.expandOnlyOnTwistieClick:function(t){return e.expandOnlyOnTwistieClick(t.element)},ariaProvider:void 0,additionalScrollHeight:e.additionalScrollHeight})}(i)||{};this.tree=new DT(e,s,a,u),this.root=OT({element:void 0,parent:null,hasChildren:!0}),this.identityProvider&&(this.root=ET({},this.root,{id:null})),this.nodes.set(null,this.root),this.tree.onDidChangeCollapseState(this._onDidChangeCollapseState,this,this.disposables)}return Object.defineProperty(e.prototype,"onDidChangeFocus",{get:function(){return Ht.map(this.tree.onDidChangeFocus,FT)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidChangeSelection",{get:function(){return Ht.map(this.tree.onDidChangeSelection,FT)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidOpen",{get:function(){return Ht.map(this.tree.onDidOpen,FT)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidFocus",{get:function(){return this.tree.onDidFocus},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidDispose",{get:function(){return this.tree.onDidDispose},enumerable:!0,configurable:!0}),e.prototype.updateOptions=function(e){void 0===e&&(e={}),this.tree.updateOptions(e)},e.prototype.getHTMLElement=function(){return this.tree.getHTMLElement()},Object.defineProperty(e.prototype,"scrollTop",{get:function(){return this.tree.scrollTop},set:function(e){this.tree.scrollTop=e},enumerable:!0,configurable:!0}),e.prototype.domFocus=function(){this.tree.domFocus()},e.prototype.layout=function(e,t){this.tree.layout(e,t)},e.prototype.style=function(e){this.tree.style(e)},e.prototype.getInput=function(){return this.root.element},e.prototype.setInput=function(e,t){return TT(this,void 0,void 0,(function(){var n;return NT(this,(function(r){switch(r.label){case 0:return this.refreshPromises.forEach((function(e){return e.cancel()})),this.refreshPromises.clear(),this.root.element=e,n=t&&{viewState:t,focus:[],selection:[]},[4,this.updateChildren(e,!0,n)];case 1:return r.sent(),n&&(this.tree.setFocus(n.focus),this.tree.setSelection(n.selection)),t&&"number"==typeof t.scrollTop&&(this.scrollTop=t.scrollTop),[2]}}))}))},e.prototype.updateChildren=function(e,t,n){return void 0===e&&(e=this.root.element),void 0===t&&(t=!0),TT(this,void 0,void 0,(function(){return NT(this,(function(r){switch(r.label){case 0:if(void 0===this.root.element)throw new Error("Tree input not set");return this.root.loading?[4,this.subTreeRefreshPromises.get(this.root)]:[3,3];case 1:return r.sent(),[4,Ht.toPromise(this._onDidRender.event)];case 2:r.sent(),r.label=3;case 3:return[4,this.refreshAndRenderNode(this.getDataNode(e),t,IT.Refresh,n)];case 4:return r.sent(),[2]}}))}))},e.prototype.rerender=function(e){if(void 0!==e&&e!==this.root.element){var t=this.getDataNode(e);this.tree.rerender(t)}else this.tree.rerender()},e.prototype.collapse=function(e,t){void 0===t&&(t=!1);var n=this.getDataNode(e);return this.tree.collapse(n===this.root?null:n,t)},e.prototype.expand=function(e,t){return void 0===t&&(t=!1),TT(this,void 0,void 0,(function(){var n,r;return NT(this,(function(i){switch(i.label){case 0:if(void 0===this.root.element)throw new Error("Tree input not set");return this.root.loading?[4,this.subTreeRefreshPromises.get(this.root)]:[3,3];case 1:return i.sent(),[4,Ht.toPromise(this._onDidRender.event)];case 2:i.sent(),i.label=3;case 3:return(n=this.getDataNode(e))===this.root||n.loading||this.tree.isCollapsed(n)?(r=this.tree.expand(n===this.root?null:n,t),n.loading?[4,this.subTreeRefreshPromises.get(n)]:[3,6]):[2,!1];case 4:return i.sent(),[4,Ht.toPromise(this._onDidRender.event)];case 5:i.sent(),i.label=6;case 6:return[2,r]}}))}))},e.prototype.setSelection=function(e,t){var n=this,r=e.map((function(e){return n.getDataNode(e)}));this.tree.setSelection(r,t)},e.prototype.getSelection=function(){return this.tree.getSelection().map((function(e){return e.element}))},e.prototype.setFocus=function(e,t){var n=this,r=e.map((function(e){return n.getDataNode(e)}));this.tree.setFocus(r,t)},e.prototype.getFocus=function(){return this.tree.getFocus().map((function(e){return e.element}))},e.prototype.reveal=function(e,t){this.tree.reveal(this.getDataNode(e),t)},e.prototype.getDataNode=function(e){var t=this.nodes.get(e===this.root.element?null:e);if(!t)throw new Error("Data tree node not found: "+e);return t},e.prototype.refreshAndRenderNode=function(e,t,n,r){return TT(this,void 0,void 0,(function(){var i,o;return NT(this,(function(s){switch(s.label){case 0:return[4,this.refreshNode(e,t,r)];case 1:return s.sent(),this.render(e,r),e!==this.root&&this.autoExpandSingleChildren&&n===IT.Expand?(i=this.tree.getNode(e),1!==(o=i.children.filter((function(e){return e.visible}))).length?[3,3]:[4,this.tree.expand(o[0].element,!1)]):[3,3];case 2:s.sent(),s.label=3;case 3:return[2]}}))}))},e.prototype.refreshNode=function(e,t,n){return TT(this,void 0,void 0,(function(){var r,i=this;return NT(this,(function(o){switch(o.label){case 0:if(this.subTreeRefreshPromises.forEach((function(o,s){!r&&function(e,t){return e===t||AT(e,t)||AT(t,e)}(s,e)&&(r=o.then((function(){return i.refreshNode(e,t,n)})))})),r)return[2,r];r=this.doRefreshSubTree(e,t,n),this.subTreeRefreshPromises.set(e,r),o.label=1;case 1:return o.trys.push([1,,3,4]),[4,r];case 2:return o.sent(),[3,4];case 3:return this.subTreeRefreshPromises.delete(e),[7];case 4:return[2]}}))}))},e.prototype.doRefreshSubTree=function(e,t,n){return TT(this,void 0,void 0,(function(){var r,i=this;return NT(this,(function(o){switch(o.label){case 0:e.loading=!0,o.label=1;case 1:return o.trys.push([1,,4,5]),[4,this.doRefreshNode(e,t,n)];case 2:return r=o.sent(),e.stale=!1,[4,Promise.all(r.map((function(e){return i.doRefreshSubTree(e,t,n)})))];case 3:return o.sent(),[3,5];case 4:return e.loading=!1,[7];case 5:return[2]}}))}))},e.prototype.doRefreshNode=function(e,t,n){return TT(this,void 0,void 0,(function(){var r,i,o,s,a=this;return NT(this,(function(u){switch(u.label){case 0:e.hasChildren=!!this.dataSource.hasChildren(e.element),e.hasChildren?((i=function e(t,n){return n?new Promise((function(e,r){var i=setTimeout(e,t);n.onCancellationRequested((function(){clearTimeout(i),r(Xe())}))})):Ms((function(n){return e(t,n)}))}(800)).then((function(){e.slow=!0,a._onDidChangeNodeSlowState.fire(e)}),(function(e){return null})),r=this.doGetChildren(e).finally((function(){return i.cancel()}))):r=Promise.resolve([]),u.label=1;case 1:return u.trys.push([1,3,4,5]),[4,r];case 2:return o=u.sent(),[2,this.setChildren(e,o,t,n)];case 3:if(s=u.sent(),e!==this.root&&this.tree.collapse(e===this.root?null:e),Ze(s))return[2,[]];throw s;case 4:return e.slow&&(e.slow=!1,this._onDidChangeNodeSlowState.fire(e)),[7];case 5:return[2]}}))}))},e.prototype.doGetChildren=function(e){var t=this,n=this.refreshPromises.get(e);return n||(n=Ms((function(){return TT(t,void 0,void 0,(function(){var t;return NT(this,(function(n){switch(n.label){case 0:return[4,this.dataSource.getChildren(e.element)];case 1:return t=n.sent(),this.sorter&&t.sort(this.sorter.compare.bind(this.sorter)),[2,t]}}))}))})),this.refreshPromises.set(e,n),n.finally((function(){return t.refreshPromises.delete(e)})))},e.prototype._onDidChangeCollapseState=function(e){var t=e.node,n=e.deep;!t.collapsed&&t.element.stale&&(n?this.collapse(t.element.element):this.refreshAndRenderNode(t.element,!1,IT.Expand).catch(Ke))},e.prototype.setChildren=function(e,t,n,r){var i,o=this;if(0===e.children.length&&0===t.length)return[];for(var s=new Map,a=new Map,u=0,l=e.children;u<l.length;u++){var c=l[u];s.set(c.element,c),this.identityProvider&&a.set(c.id,this.tree.getNode(c))}for(var d=[],h=t.map((function(t){var i=!!o.dataSource.hasChildren(t);if(!o.identityProvider){var u=OT({element:t,parent:e,hasChildren:i});return i&&o.collapseByDefault&&!o.collapseByDefault(t)&&(u.collapsedByDefault=!1,d.push(u)),u}var l=o.identityProvider.getId(t).toString(),c=a.get(l);if(c){u=c.element;return s.delete(u.element),o.nodes.delete(u.element),o.nodes.set(t,u),u.element=t,u.hasChildren=i,n?c.collapsed?BT(u,(function(e){return e.stale=!0})):d.push(u):i&&o.collapseByDefault&&!o.collapseByDefault(t)&&(u.collapsedByDefault=!1,d.push(u)),u}var h=OT({element:t,parent:e,id:l,hasChildren:i});return r&&r.viewState.focus&&r.viewState.focus.indexOf(l)>-1&&r.focus.push(h),r&&r.viewState.selection&&r.viewState.selection.indexOf(l)>-1&&r.selection.push(h),r&&r.viewState.expanded&&r.viewState.expanded.indexOf(l)>-1?d.push(h):i&&o.collapseByDefault&&!o.collapseByDefault(t)&&(h.collapsedByDefault=!1,d.push(h)),h})),f=0,p=$n(s);f<p.length;f++){BT(p[f],(function(e){return o.nodes.delete(e.element)}))}for(var g=0,m=h;g<m.length;g++){c=m[g];this.nodes.set(c.element,c)}return(i=e.children).splice.apply(i,[0,e.children.length].concat(h)),d},e.prototype.render=function(e,t){var n=e.children.map((function(e){return function e(t,n){var r;return r=!(n&&n.viewState.expanded&&t.id&&n.viewState.expanded.indexOf(t.id)>-1)&&t.collapsedByDefault,t.collapsedByDefault=void 0,{element:t,children:t.hasChildren?jt.map(jt.fromArray(t.children),(function(t){return e(t,n)})):[],collapsible:t.hasChildren,collapsed:r}}(e,t)}));this.tree.setChildren(e===this.root?null:e,n),this._onDidRender.fire()},e.prototype.dispose=function(){At(this.disposables)},e}(),VT=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),zT=function(e){function t(t,n,r,i,o){void 0===o&&(o={});var s=e.call(this,t,n,r,o)||this;return s.dataSource=i,s.identityProvider=o.identityProvider,s}return VT(t,e),t.prototype.createModel=function(e,t){return new kT(e,t)},t}(xT),UT=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),qT=function(){return(qT=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},KT=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},GT=function(e,t){return function(n,r){t(n,r,e)}},$T=Ct("listService"),ZT=function(){function e(e){this.lists=[],this._lastFocusedWidget=void 0}return Object.defineProperty(e.prototype,"lastFocusedList",{get:function(){return this._lastFocusedWidget},enumerable:!0,configurable:!0}),e.prototype.register=function(e,t){var n=this;if(this.lists.some((function(t){return t.widget===e})))throw new Error("Cannot register the same widget multiple times");var r={widget:e,extraContextKeys:t};return this.lists.push(r),e.getHTMLElement()===document.activeElement&&(this._lastFocusedWidget=e),It(e.onDidFocus((function(){return n._lastFocusedWidget=e})),Pt((function(){return n.lists.splice(n.lists.indexOf(r),1)})),e.onDidDispose((function(){n.lists=n.lists.filter((function(e){return e!==r})),n._lastFocusedWidget===e&&(n._lastFocusedWidget=void 0)})))},e=KT([GT(0,Kn)],e)}(),XT=new qn("listFocus",!0),JT=new qn("listSupportsMultiselect",!0),QT=new qn("listHasSelectionOrFocus",!1),eN=new qn("listDoubleSelection",!1),tN=new qn("listMultiSelection",!1),nN=new qn("listSupportsKeyboardNavigation",!0),rN="listAutomaticKeyboardNavigation",iN=new qn(rN,!0),oN=!1;var sN="workbench.list.multiSelectModifier",aN="workbench.list.openMode",uN="workbench.list.horizontalScrolling",lN="workbench.list.keyboardNavigation",cN="workbench.list.automaticKeyboardNavigation",dN="workbench.tree.indent",hN="workbench.tree.renderIndentGuides";function fN(e){return"alt"===e.getValue(sN)}function pN(e){return"doubleClick"!==e.getValue(aN)}var gN,mN=function(e){function t(t){var n=e.call(this)||this;return n.configurationService=t,n.useAltAsMultipleSelectionModifier=fN(t),n.registerListeners(),n}return UT(t,e),t.prototype.registerListeners=function(){var e=this;this._register(this.configurationService.onDidChangeConfiguration((function(t){t.affectsConfiguration(sN)&&(e.useAltAsMultipleSelectionModifier=fN(e.configurationService))})))},t.prototype.isSelectionSingleChangeEvent=function(e){return this.useAltAsMultipleSelectionModifier?e.browserEvent.altKey:VE(e)},t.prototype.isSelectionRangeChangeEvent=function(e){return zE(e)},t}(Ft),_N=function(e){function t(t,n){var r=e.call(this)||this;return r.configurationService=t,r.existingOpenController=n,r.openOnSingleClick=pN(t),r.registerListeners(),r}return UT(t,e),t.prototype.registerListeners=function(){var e=this;this._register(this.configurationService.onDidChangeConfiguration((function(t){t.affectsConfiguration(aN)&&(e.openOnSingleClick=pN(e.configurationService))})))},t.prototype.shouldOpen=function(e){if(e instanceof MouseEvent){var t=0===e.button,n=2===e.detail;return!(t&&!this.openOnSingleClick&&!n)&&(!(!t&&1!==e.button)&&(!this.existingOpenController||this.existingOpenController.shouldOpen(e)))}return!this.existingOpenController||this.existingOpenController.shouldOpen(e)},t}(Ft);function yN(e,t){var n=!1;return function(r){if(n)return n=!1,!1;var i=t.softDispatch(r,e);return i&&i.enterChord?(n=!0,!1):(n=!1,!0)}}(function(e){function t(t,n,r,i,o,s,a,u,l,c){var d=this,h=vN(t,i,o,a,u,l,c),f=h.options,p=h.getAutomaticKeyboardNavigation,g=h.disposable;return(d=e.call(this,t,n,r,f)||this).disposables.push(g),d.internals=new CN(d,f,p,o,s,a,u,c),d.disposables.push(d.internals),d}UT(t,e),t=KT([GT(4,Kn),GT(5,$T),GT(6,Id),GT(7,Kv),GT(8,em),GT(9,CL)],t)})(DT),function(e){function t(t,n,r,i,o,s,a,u,l,c,d){var h=this,f=vN(t,o,s,u,l,c,d),p=f.options,g=f.getAutomaticKeyboardNavigation,m=f.disposable;return(h=e.call(this,t,n,r,i,p)||this).disposables.push(m),h.internals=new CN(h,p,g,s,a,u,l,d),h.disposables.push(h.internals),h}UT(t,e),t=KT([GT(5,Kn),GT(6,$T),GT(7,Id),GT(8,Kv),GT(9,em),GT(10,CL)],t)}(zT),function(e){function t(t,n,r,i,o,s,a,u,l,c,d){var h=this,f=vN(t,o,s,u,l,c,d),p=f.options,g=f.getAutomaticKeyboardNavigation,m=f.disposable;return(h=e.call(this,t,n,r,i,p)||this).disposables.push(m),h.internals=new CN(h,p,g,s,a,u,l,d),h.disposables.push(h.internals),h}UT(t,e),Object.defineProperty(t.prototype,"contextKeyService",{get:function(){return this.internals.contextKeyService},enumerable:!0,configurable:!0}),t=KT([GT(5,Kn),GT(6,$T),GT(7,Id),GT(8,Kv),GT(9,em),GT(10,CL)],t)}(HT);function vN(e,t,n,r,i,o,s){nN.bindTo(n),oN||(iN.bindTo(n),oN=!0);var a=function(){var e=n.getContextKeyValue(rN);return e&&(e=i.getValue(cN)),e},u=2===s.getAccessibilitySupport()?"simple":i.getValue(lN),l=void 0!==t.horizontalScrolling?t.horizontalScrolling:function(e){return function(e,t,n){var r=e.inspect(t),i=e.inspect(n);return void 0!==r.user||void 0!==r.workspace||void 0!==r.workspaceFolder?r.value:void 0!==i.user||void 0!==i.workspace||void 0!==i.workspaceFolder?i.value:r.default}(e,uN,"workbench.tree.horizontalScrolling")}(i),c=pN(i),d=function(e,t,n){var r=new Rt,i=qT({},e);if(!1!==e.multipleSelectionSupport&&!e.multipleSelectionController){var o=new mN(t);i.multipleSelectionController=o,r.add(o)}var s=new _N(t,e.openController);if(i.openController=s,r.add(s),e.keyboardNavigationLabelProvider){var a=e.keyboardNavigationLabelProvider;i.keyboardNavigationLabelProvider={getKeyboardNavigationLabel:function(e){return a.getKeyboardNavigationLabel(e)},mightProducePrintableCharacter:function(e){return n.mightProducePrintableCharacter(e)}}}return[i,r]}(t,i,o),h=d[0],f=d[1],p=t.additionalScrollHeight;return{getAutomaticKeyboardNavigation:a,disposable:f,options:qT({keyboardSupport:!1,styleController:new $E((gN||(gN=bf()),gN))},cD(r.getTheme(),hD),h,{indent:i.getValue(dN),renderIndentGuides:i.getValue(hN),automaticKeyboardNavigation:a(),simpleKeyboardNavigation:"simple"===u,filterOnType:"filter"===u,horizontalScrolling:l,openOnSingleClick:c,keyboardNavigationEventFilter:yN(e,o),additionalScrollHeight:p})}}var bN,wN,CN=function(){function e(e,t,n,r,i,o,s,a){var u=this;this.disposables=[],this.contextKeyService=function(e,t){var n=e.createScoped(t.getHTMLElement());return XT.bindTo(n),n}(r,e),JT.bindTo(this.contextKeyService).set(!(!1===t.multipleSelectionSupport)),this.hasSelectionOrFocus=QT.bindTo(this.contextKeyService),this.hasDoubleSelection=eN.bindTo(this.contextKeyService),this.hasMultiSelection=tN.bindTo(this.contextKeyService),this._useAltAsMultipleSelectionModifier=fN(s);var l=new Set;l.add(rN);var c=function(){var t=2===a.getAccessibilitySupport()?"simple":s.getValue(lN);e.updateOptions({simpleKeyboardNavigation:"simple"===t,filterOnType:"filter"===t})};this.disposables.push(this.contextKeyService,i.register(e),function(e,t,n){return dD(t,Jr(n||Object.create(null),hD,!1),e)}(e,o),e.onDidChangeSelection((function(){var t=e.getSelection(),n=e.getFocus();u.hasSelectionOrFocus.set(t.length>0||n.length>0),u.hasMultiSelection.set(t.length>1),u.hasDoubleSelection.set(2===t.length)})),e.onDidChangeFocus((function(){var t=e.getSelection(),n=e.getFocus();u.hasSelectionOrFocus.set(t.length>0||n.length>0)})),s.onDidChangeConfiguration((function(t){if(t.affectsConfiguration(aN)&&e.updateOptions({openOnSingleClick:pN(s)}),t.affectsConfiguration(sN)&&(u._useAltAsMultipleSelectionModifier=fN(s)),t.affectsConfiguration(dN)){var r=s.getValue(dN);e.updateOptions({indent:r})}if(t.affectsConfiguration(hN)){var i=s.getValue(hN);e.updateOptions({renderIndentGuides:i})}t.affectsConfiguration(lN)&&c(),t.affectsConfiguration(cN)&&e.updateOptions({automaticKeyboardNavigation:n()})})),this.contextKeyService.onDidChangeContext((function(t){t.affectsSome(l)&&e.updateOptions({automaticKeyboardNavigation:n()})})),a.onDidChangeAccessibilitySupport((function(){return c()})))}return e.prototype.dispose=function(){this.disposables=At(this.disposables)},e=KT([GT(3,Kn),GT(4,$T),GT(5,Id),GT(6,Kv),GT(7,CL)],e)}();kr.as(yv.Configuration).registerConfiguration({id:"workbench",order:7,title:Ee("workbenchConfigurationTitle","Workbench"),type:"object",properties:(WT={},WT[sN]={type:"string",enum:["ctrlCmd","alt"],enumDescriptions:[Ee("multiSelectModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),Ee("multiSelectModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"ctrlCmd",description:Ee({key:"multiSelectModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add an item in trees and lists to a multi-selection with the mouse (for example in the explorer, open editors and scm view). The 'Open to Side' mouse gestures - if supported - will adapt such that they do not conflict with the multiselect modifier.")},WT[aN]={type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:Ee({key:"openModeModifier",comment:["`singleClick` and `doubleClick` refers to a value the setting can take and should not be localized."]},"Controls how to open items in trees and lists using the mouse (if supported). For parents with children in trees, this setting will control if a single click expands the parent or a double click. Note that some trees and lists might choose to ignore this setting if it is not applicable. ")},WT[uN]={type:"boolean",default:!1,description:Ee("horizontalScrolling setting","Controls whether lists and trees support horizontal scrolling in the workbench.")},WT["workbench.tree.horizontalScrolling"]={type:"boolean",default:!1,description:Ee("tree horizontalScrolling setting","Controls whether trees support horizontal scrolling in the workbench."),deprecationMessage:Ee("deprecated","This setting is deprecated, please use '{0}' instead.",uN)},WT[dN]={type:"number",default:8,minimum:0,maximum:40,description:Ee("tree indent setting","Controls tree indentation in pixels.")},WT[hN]={type:"string",enum:["none","onHover","always"],default:"onHover",description:Ee("render tree indent guides","Controls whether the tree should render indent guides.")},WT[lN]={type:"string",enum:["simple","highlight","filter"],enumDescriptions:[Ee("keyboardNavigationSettingKey.simple","Simple keyboard navigation focuses elements which match the keyboard input. Matching is done only on prefixes."),Ee("keyboardNavigationSettingKey.highlight","Highlight keyboard navigation highlights elements which match the keyboard input. Further up and down navigation will traverse only the highlighted elements."),Ee("keyboardNavigationSettingKey.filter","Filter keyboard navigation will filter out and hide all the elements which do not match the keyboard input.")],default:"highlight",description:Ee("keyboardNavigationSettingKey","Controls the keyboard navigation style for lists and trees in the workbench. Can be simple, highlight and filter.")},WT[cN]={type:"boolean",default:!0,markdownDescription:Ee("automatic keyboard navigation setting","Controls whether keyboard navigation in lists and trees is automatically triggered simply by typing. If set to `false`, keyboard navigation is only triggered when executing the `list.toggleKeyboardNavigation` command, for which you can assign a keyboard shortcut.")},WT)}),function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(bN||(bN={})),function(e){e.compare=function(e,t){return t-e};var t=Object.create(null);t[e.Error]=Ee("sev.error","Error"),t[e.Warning]=Ee("sev.warning","Warning"),t[e.Info]=Ee("sev.info","Info"),e.toString=function(e){return t[e]||""},e.fromSeverity=function(t){switch(t){case sm.Error:return e.Error;case sm.Warning:return e.Warning;case sm.Info:return e.Info;case sm.Ignore:return e.Hint}},e.toSeverity=function(t){switch(t){case e.Error:return sm.Error;case e.Warning:return sm.Warning;case e.Info:return sm.Info;case e.Hint:return sm.Ignore}}}(bN||(bN={})),function(e){var t="";function n(e,n){var r=[t];return e.source?r.push(e.source.replace("¦","¦")):r.push(t),e.code?r.push(e.code.replace("¦","¦")):r.push(t),void 0!==e.severity&&null!==e.severity?r.push(bN.toString(e.severity)):r.push(t),e.message&&n?r.push(e.message.replace("¦","¦")):r.push(t),void 0!==e.startLineNumber&&null!==e.startLineNumber?r.push(e.startLineNumber.toString()):r.push(t),void 0!==e.startColumn&&null!==e.startColumn?r.push(e.startColumn.toString()):r.push(t),void 0!==e.endLineNumber&&null!==e.endLineNumber?r.push(e.endLineNumber.toString()):r.push(t),void 0!==e.endColumn&&null!==e.endColumn?r.push(e.endColumn.toString()):r.push(t),r.push(t),r.join("¦")}e.makeKey=function(e){return n(e,!0)},e.makeKeyOptionalMessage=n}(wN||(wN={}));var SN,xN,LN=Ct("markerService");(xN=SN||(SN={})).get=function(e,t,n){if(e[t])return e[t][n]},xN.set=function(e,t,n,r){e[t]||(e[t]=Object.create(null)),e[t][n]=r},xN.remove=function(e,t,n){return!(!e[t]||!e[t][n]||(delete e[t][n],Ye(e[t])&&delete e[t],0))};var kN=function(){function e(e){this.errors=0,this.infos=0,this.warnings=0,this.unknowns=0,this._data=Object.create(null),this._service=e,this._subscription=e.onMarkerChanged(this._update,this)}return e.prototype.dispose=function(){this._subscription.dispose(),this._data=void 0},e.prototype._update=function(e){if(this._data)for(var t=0,n=e;t<n.length;t++){var r=n[t],i=r.toString(),o=this._data[i];o&&this._substract(o);var s=this._resourceStats(r);this._add(s),this._data[i]=s}},e.prototype._resourceStats=function(e){var t={errors:0,warnings:0,infos:0,unknowns:0};if(e.scheme===Dh.inMemory||e.scheme===Dh.walkThrough||e.scheme===Dh.walkThroughSnippet)return t;for(var n=0,r=this._service.read({resource:e});n<r.length;n++){var i=r[n].severity;i===bN.Error?t.errors+=1:i===bN.Warning?t.warnings+=1:i===bN.Info?t.infos+=1:t.unknowns+=1}return t},e.prototype._substract=function(e){this.errors-=e.errors,this.warnings-=e.warnings,this.infos-=e.infos,this.unknowns-=e.unknowns},e.prototype._add=function(e){this.errors+=e.errors,this.warnings+=e.warnings,this.infos+=e.infos,this.unknowns+=e.unknowns},e}(),MN=function(){function e(){this._onMarkerChanged=new $t,this._onMarkerChangedEvent=Ht.debounce(this._onMarkerChanged.event,e._debouncer,0),this._byResource=Object.create(null),this._byOwner=Object.create(null),this._stats=new kN(this)}return e.prototype.dispose=function(){this._stats.dispose()},Object.defineProperty(e.prototype,"onMarkerChanged",{get:function(){return this._onMarkerChangedEvent},enumerable:!0,configurable:!0}),e.prototype.remove=function(e,t){for(var n=0,r=t||[];n<r.length;n++){var i=r[n];this.changeOne(e,i,[])}},e.prototype.changeOne=function(t,n,r){if(d=r,Array.isArray(d)&&0!==d.length){for(var i=[],o=0,s=r;o<s.length;o++){var a=s[o],u=e._toMarker(t,n,a);u&&i.push(u)}SN.set(this._byResource,n.toString(),t,i),SN.set(this._byOwner,t,n.toString(),i),this._onMarkerChanged.fire([n])}else{var l=SN.remove(this._byResource,n.toString(),t),c=SN.remove(this._byOwner,t,n.toString());if(l!==c)throw new Error("invalid marker service state");l&&c&&this._onMarkerChanged.fire([n])}var d},e._toMarker=function(e,t,n){var r=n.code,i=n.severity,o=n.message,s=n.source,a=n.startLineNumber,u=n.startColumn,l=n.endLineNumber,c=n.endColumn,d=n.relatedInformation,h=n.tags;if(o)return{resource:t,owner:e,code:r,severity:i,message:o,source:s,startLineNumber:a=a>0?a:1,startColumn:u=u>0?u:1,endLineNumber:l=l>=a?l:a,endColumn:c=c>0?c:u,relatedInformation:d,tags:h}},e.prototype.read=function(t){void 0===t&&(t=Object.create(null));var n=t.owner,r=t.resource,i=t.severities,o=t.take;if((!o||o<0)&&(o=-1),n&&r){if(v=SN.get(this._byResource,r.toString(),n)){for(var s=[],a=0,u=v;a<u.length;a++){var l=u[a];if(e._accept(l,i)){var c=s.push(l);if(o>0&&c===o)break}}return s}return[]}if(n||r){var d=n?this._byOwner[n]:r?this._byResource[r.toString()]:void 0;if(!d)return[];s=[];for(var h in d)for(var f=0,p=d[h];f<p.length;f++){v=p[f];if(e._accept(v,i)){c=s.push(v);if(o>0&&c===o)return s}}return s}var s=[];for(var g in this._byResource)for(var m in this._byResource[g])for(var _=0,y=this._byResource[g][m];_<y.length;_++){var v=y[_];if(e._accept(v,i)){var c=s.push(v);if(o>0&&c===o)return s}}return s},e._accept=function(e,t){return void 0===t||(t&e.severity)===e.severity},e._debouncer=function(t,n){t||(e._dedupeMap=Object.create(null),t=[]);for(var r=0,i=n;r<i.length;r++){var o=i[r];void 0===e._dedupeMap[o.toString()]&&(e._dedupeMap[o.toString()]=!0,t.push(o))}return t},e}(),DN=Ct("editorProgressService"),EN=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),TN=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},NN=function(e,t){return function(n,r){t(n,r,e)}},ON=function(){function e(e){this._commandService=e}return e.prototype.createMenu=function(e,t){return new AN(e,this._commandService,t)},e=TN([NN(0,rr)],e)}(),AN=function(e){function t(t,n,r){var i=e.call(this)||this;return i._id=t,i._commandService=n,i._contextKeyService=r,i._onDidChange=i._register(new $t),i._build(),i._register(Ht.debounce(Ht.filter(dr.onDidChangeMenu,(function(e){return e===i._id})),(function(){}),50)(i._build,i)),i._register(Ht.debounce(i._contextKeyService.onDidChangeContext,(function(e,t){return e||t.affectsSome(i._contextKeys)}),50)((function(e){return e&&i._onDidChange.fire(void 0)}),i)),i}return EN(t,e),t.prototype._build=function(){this._menuGroups=[],this._contextKeys=new Set;var e,n=dr.getMenuItems(this._id);n.sort(t._compareMenuItems);for(var r=0,i=n;r<i.length;r++){var o=i[r],s=o.group||"";e&&e[0]===s||(e=[s,[]],this._menuGroups.push(e)),e[1].push(o),t._fillInKbExprKeys(o.when,this._contextKeys),ur(o)&&o.command.precondition&&t._fillInKbExprKeys(o.command.precondition,this._contextKeys),ur(o)&&o.command.toggled&&t._fillInKbExprKeys(o.command.toggled,this._contextKeys)}this._onDidChange.fire(this)},t.prototype.getActions=function(e){for(var t=[],n=0,r=this._menuGroups;n<r.length;n++){for(var i=r[n],o=i[0],s=[],a=0,u=i[1];a<u.length;a++){var l=u[a];if(this._contextKeyService.contextMatchesRules(l.when)){var c=ur(l)?new pr(l.command,l.alt,e,this._contextKeyService,this._commandService):new fr(l);s.push(c)}}s.length>0&&t.push([o,s])}return t},t._fillInKbExprKeys=function(e,t){if(e)for(var n=0,r=e.keys();n<r.length;n++){var i=r[n];t.add(i)}},t._compareMenuItems=function(e,t){var n=e.group,r=t.group;if(n!==r){if(!n)return 1;if(!r)return-1;if("navigation"===n)return-1;if("navigation"===r)return 1;var i=n.localeCompare(r);if(0!==i)return i}var o=e.order||0,s=t.order||0;if(o<s)return-1;if(o>s)return 1;var a="string"==typeof e.command.title?e.command.title:e.command.title.value,u="string"==typeof t.command.title?t.command.title:t.command.title.value;return a.localeCompare(u)},t=TN([NN(1,rr),NN(2,Kn)],t)}(Ft),IN=Ct("markerDecorationsService"),PN=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),RN=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},FN=function(e,t){return function(n,r){t(n,r,e)}};function YN(e){return e.toString()}var jN,BN=function(e){function t(t){var n=e.call(this)||this;return n.model=t,n._markersData=new Map,n._register(Pt((function(){n.model.deltaDecorations(Zn(n._markersData),[]),n._markersData.clear()}))),n}return PN(t,e),t.prototype.update=function(e,t){for(var n=this.model.deltaDecorations(Zn(this._markersData),t),r=0;r<n.length;r++)this._markersData.set(n[r],e[r])},t.prototype.getMarker=function(e){return this._markersData.get(e.id)},t}(Ft),WN=function(e){function t(t,n){var r=e.call(this)||this;return r._markerService=n,r._onDidChangeMarker=r._register(new $t),r._markerDecorations=new Map,t.getModels().forEach((function(e){return r._onModelAdded(e)})),r._register(t.onModelAdded(r._onModelAdded,r)),r._register(t.onModelRemoved(r._onModelRemoved,r)),r._register(r._markerService.onMarkerChanged(r._handleMarkerChange,r)),r}return PN(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._markerDecorations.forEach((function(e){return e.dispose()})),this._markerDecorations.clear()},t.prototype.getMarker=function(e,t){var n=this._markerDecorations.get(YN(e.uri));return n?Ue(n.getMarker(t)):null},t.prototype._handleMarkerChange=function(e){var t=this;e.forEach((function(e){var n=t._markerDecorations.get(YN(e));n&&t._updateDecorations(n)}))},t.prototype._onModelAdded=function(e){var t=new BN(e);this._markerDecorations.set(YN(e.uri),t),this._updateDecorations(t)},t.prototype._onModelRemoved=function(e){var t=this,n=this._markerDecorations.get(YN(e.uri));n&&(n.dispose(),this._markerDecorations.delete(YN(e.uri))),e.uri.scheme!==Dh.inMemory&&e.uri.scheme!==Dh.internal&&e.uri.scheme!==Dh.vscode||this._markerService&&this._markerService.read({resource:e.uri}).map((function(e){return e.owner})).forEach((function(n){return t._markerService.remove(n,[e.uri])}))},t.prototype._updateDecorations=function(e){var t=this,n=this._markerService.read({resource:e.model.uri,take:500}),r=n.map((function(n){return{range:t._createDecorationRange(e.model,n),options:t._createDecorationOption(n)}}));e.update(n,r),this._onDidChangeMarker.fire(e.model)},t.prototype._createDecorationRange=function(e,t){var n=Yr.lift(t);if(t.severity===bN.Hint&&(t.tags&&-1!==t.tags.indexOf(1)||(n=n.setEndPosition(n.startLineNumber,n.startColumn+2))),(n=e.validateRange(n)).isEmpty()){var r=e.getWordAtPosition(n.getStartPosition());if(r)n=new Yr(n.startLineNumber,r.startColumn,n.endLineNumber,r.endColumn);else{var i=e.getLineLastNonWhitespaceColumn(n.startLineNumber)||e.getLineMaxColumn(n.startLineNumber);1===i||(n=n.endColumn>=i?new Yr(n.startLineNumber,i-1,n.endLineNumber,i):new Yr(n.startLineNumber,n.startColumn,n.endLineNumber,n.endColumn+1))}}else if(t.endColumn===Number.MAX_VALUE&&1===t.startColumn&&n.startLineNumber===n.endLineNumber){var o=e.getLineFirstNonWhitespaceColumn(t.startLineNumber);o<n.endColumn&&(n=new Yr(n.startLineNumber,o,n.endLineNumber,n.endColumn),t.startColumn=o)}return n},t.prototype._createDecorationOption=function(e){var t,n,r=void 0,i=void 0;switch(e.severity){case bN.Hint:t=e.tags&&e.tags.indexOf(1)>=0?"squiggly-unnecessary":"squiggly-hint",n=0;break;case bN.Warning:t="squiggly-warning",r=Pd(EC),n=20;break;case bN.Info:t="squiggly-info",r=Pd(TC),n=10;break;case bN.Error:default:t="squiggly-error",r=Pd(DC),n=30}return e.tags&&(-1!==e.tags.indexOf(1)&&(i="squiggly-inline-unnecessary"),-1!==e.tags.indexOf(2)&&(i="squiggly-inline-deprecated")),{stickiness:1,className:t,showIfCollapsed:!0,overviewRuler:{color:r,position:mi.Right},zIndex:n,inlineClassName:i}},t=RN([FN(0,kt),FN(1,LN)],t)}(Ft),HN=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),VN=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},zN=function(e,t){return function(n,r){t(n,r,e)}},UN=function(e){function t(t,n){var r=e.call(this)||this;return r._contextKeyService=t,r._configurationService=n,r._onDidChangeAccessibilitySupport=new $t,r.onDidChangeAccessibilitySupport=r._onDidChangeAccessibilitySupport.event,r._accessibilityModeEnabledContext=SL.bindTo(r._contextKeyService),r._register(r._configurationService.onDidChangeConfiguration((function(e){e.affectsConfiguration("editor.accessibilitySupport")&&r._updateContextKey()}))),r._updateContextKey(),r.onDidChangeAccessibilitySupport((function(){return r._updateContextKey()})),r}return HN(t,e),t.prototype._updateContextKey=function(){var e=2===this.getAccessibilitySupport(),t=this._configurationService.getValue("editor.accessibilitySupport");this._accessibilityModeEnabledContext.set("on"===t||"auto"===t&&e)},t=VN([zN(0,Kn),zN(1,Kv)],t)}(Ft),qN=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),KN=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},GN=function(e,t){return function(n,r){t(n,r,e)}},$N=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.contextKeyService=t,r.configurationService=n,r._accessibilitySupport=0,r}return qN(t,e),t.prototype.getAccessibilitySupport=function(){return this._accessibilitySupport},t=KN([GN(0,Kn),GN(1,Kv)],t)}(UN),ZN=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();!function(e){var t=new wL,n=function(){function e(e,t){this._serviceId=e,this._factory=t,this._value=null}return Object.defineProperty(e.prototype,"id",{get:function(){return this._serviceId},enumerable:!0,configurable:!0}),e.prototype.get=function(e){if(!this._value){if(e&&(this._value=e[this._serviceId.toString()]),this._value||(this._value=this._factory(e)),!this._value)throw new Error("Service "+this._serviceId+" is missing!");t.set(this._serviceId,this._value)}return this._value},e}();e.LazyStaticService=n;var r=[];function i(e,t){var i=new n(e,t);return r.push(i),i}e.init=function(e){for(var t=new wL,n=0,i=WL;n<i.length;n++){var o=i[n],s=o[0],a=o[1];t.set(s,a)}for(var u in e)e.hasOwnProperty(u)&&t.set(Ct(u),e[u]);r.forEach((function(n){return t.set(n.id,n.get(e))}));var l=new FD(t,!0);return t.set(bt,l),[t,l]},e.instantiationService=i(bt,(function(){return new FD(t,!0)}));var o=new Vb;e.configurationService=i(Kv,(function(){return o})),e.resourceConfigurationService=i(cy,(function(){return new zb(o)})),e.resourcePropertiesService=i(dy,(function(){return new Ub(o)})),e.contextService=i(mb,(function(){return new Kb})),e.labelService=i(jD,(function(){return new Zb})),e.telemetryService=i(Tr,(function(){return new qb})),e.dialogService=i(DD,(function(){return new Yb})),e.notificationService=i(am,(function(){return new jb})),e.markerService=i(LN,(function(){return new MN})),e.modeService=i(Ak,(function(e){return new Zk})),e.modelService=i(kt,(function(t){return new rM(e.configurationService.get(t),e.resourcePropertiesService.get(t))})),e.markerDecorationsService=i(IN,(function(t){return new WN(e.modelService.get(t),e.markerService.get(t))})),e.standaloneThemeService=i(Ck,(function(){return new BM})),e.codeEditorService=i(xt,(function(t){return new mM(e.standaloneThemeService.get(t))})),e.editorProgressService=i(DN,(function(){return new Fb})),e.storageService=i(nm,(function(){return new om})),e.logService=i(hy,(function(){return new fy})),e.editorWorkerService=i(D_,(function(t){return new by(e.modelService.get(t),e.resourceConfigurationService.get(t),e.logService.get(t))}))}(jN||(jN={}));var XN=function(e){function t(t,n){var r=e.call(this)||this,i=jN.init(n),o=i[0],s=i[1];r._serviceCollection=o,r._instantiationService=s;var a=r.get(Kv),u=r.get(am),l=r.get(Tr),c=r.get(Id),d=function(e,t){var i=null;return n&&(i=n[e.toString()]),i||(i=t()),r._serviceCollection.set(e,i),i},h=d(Kn,(function(){return r._register(new QM(a))}));d(CL,(function(){return new $N(h,a)})),d($T,(function(){return new ZT(h)}));var f=d(rr,(function(){return new Bb(r._instantiationService)})),p=d(em,(function(){return r._register(new Wb(h,f,l,u,t))})),g=d(SD,(function(){return new Xb(t)})),m=d(Jg,(function(){return r._register(new MD(g))}));return d(Qg,(function(){var e=new vD(l,u,m,p,c);return e.configure({blockMouse:!1}),r._register(e)})),d(cr,(function(){return new ON(f)})),d(Ok,(function(){return new $b(jN.modelService.get(kt))})),r}return ZN(t,e),t.prototype.get=function(e){var t=this._serviceCollection.get(e);if(!t)throw new Error("Missing service "+e);return t},t.prototype.set=function(e,t){this._serviceCollection.set(e,t)},t.prototype.has=function(e){return this._serviceCollection.has(e)},t}(Ft),JN=Ct("openerService");Object.freeze({_serviceBrand:void 0,registerOpener:function(){return{dispose:function(){}}},registerValidator:function(){return{dispose:function(){}}},open:function(){return Promise.resolve(!1)}});function QN(e,t,n){var r=new XN(e,t),i=null;r.has(Dt)||(i=new Rb,r.set(Dt,i)),r.has(JN)||r.set(JN,new m_(r.get(xt),r.get(rr)));var o=n(r);return i&&i.setEditor(o),o}function eO(e,t,n){return QN(e,n||{},(function(n){return new Tk(e,t,n,n.get(bt),n.get(xt),n.get(rr),n.get(Kn),n.get(em),n.get(Jg),n.get(Ck),n.get(am),n.get(Kv),n.get(CL))}))}function tO(e){return jN.codeEditorService.get().onCodeEditorAdd((function(t){e(t)}))}function nO(e,t,n){return QN(e,n||{},(function(n){return new Nk(e,t,n,n.get(bt),n.get(Kn),n.get(em),n.get(Jg),n.get(D_),n.get(xt),n.get(Ck),n.get(am),n.get(Kv),n.get(Qg),null)}))}function rO(e,t){return new v_(e,t)}function iO(e,t,n){return jN.modelService.get().createModel(e,t,n)}function oO(e,t,n){if(e=e||"",!t){var r=e.indexOf("\n"),i=e;return-1!==r&&(i=e.substring(0,r)),iO(e,jN.modeService.get().createByFilepathOrFirstLine(n||null,i),n)}return iO(e,jN.modeService.get().create(t),n)}function sO(e,t){jN.modelService.get().setMode(e,jN.modeService.get().create(t))}function aO(e,t,n){e&&jN.markerService.get().changeOne(t,e.uri,n)}function uO(e){return jN.markerService.get().read(e)}function lO(e){return jN.modelService.get().getModel(e)}function cO(){return jN.modelService.get().getModels()}function dO(e){return jN.modelService.get().onModelAdded(e)}function hO(e){return jN.modelService.get().onModelRemoved(e)}function fO(e){return jN.modelService.get().onModelModeChanged((function(t){e({model:t.model,oldLanguage:t.oldModeId})}))}function pO(e){return function(e,t){return new Ey(e,t)}(jN.modelService.get(),e)}function gO(e,t){return gv.colorizeElement(jN.standaloneThemeService.get(),jN.modeService.get(),e,t)}function mO(e,t,n){return gv.colorize(jN.modeService.get(),e,t,n)}function _O(e,t,n){return void 0===n&&(n=4),gv.colorizeModelLine(e,t,n)}function yO(e){var t=Pa.get(e);return t||{getInitialState:function(){return Wa},tokenize:function(t,n,r){return function(e,t,n,r){return new ja([new Ya(r,"",e)],n)}(e,0,n,r)}}}function vO(e,t){jN.modeService.get().triggerMode(t);for(var n=yO(t),r=e.split(/\r\n|\r|\n/),i=[],o=n.getInitialState(),s=0,a=r.length;s<a;s++){var u=r[s],l=n.tokenize(u,o,0);i[s]=l.tokens,o=l.endState}return i}function bO(e,t){jN.standaloneThemeService.get().defineTheme(e,t)}function wO(e){jN.standaloneThemeService.get().setTheme(e)}function CO(){iw.INSTANCE.clearCache()}function SO(e,t){return"boolean"==typeof e?e:t}function xO(e,t){return"string"==typeof e?e:t}function LO(e,t){void 0===t&&(t=!1),t&&(e=e.map((function(e){return e.toLowerCase()})));var n=function(e){for(var t={},n=0,r=e;n<r.length;n++){t[r[n]]=!0}return t}(e);return t?function(e){return void 0!==n[e.toLowerCase()]&&n.hasOwnProperty(e.toLowerCase())}:function(e){return void 0!==n[e]&&n.hasOwnProperty(e)}}function kO(e,t){for(var n=0;t.indexOf("@")>=0&&n<5;)n++,t=t.replace(/@(\w+)/g,(function(n,r){var i="";if("string"==typeof e[r])i=e[r];else{if(!(e[r]&&e[r]instanceof RegExp))throw void 0===e[r]?rv(e,"language definition does not contain attribute '"+r+"', used at: "+t):rv(e,"attribute reference '"+r+"' must be a string, used at: "+t);i=e[r].source}return ev(i)?"":"(?:"+i+")"}));return new RegExp(t,e.ignoreCase?"i":"")}function MO(e,t,n,r){var i=-1,o=n,s=n.match(/^\$(([sS]?)(\d\d?)|#)(.*)$/);s&&(s[3]&&(i=parseInt(s[3]),s[2]&&(i+=100)),o=s[4]);var a,u="~",l=o;if(o&&0!==o.length?/^\w*$/.test(l)?u="==":(s=o.match(/^(@|!@|~|!~|==|!=)(.*)$/))&&(u=s[1],l=s[2]):(u="!=",l=""),"~"!==u&&"!~"!==u||!/^(\w|\|)*$/.test(l))if("@"===u||"!@"===u){var c=e[l];if(!c)throw rv(e,"the @ match target '"+l+"' is not defined, in rule: "+t);if(!function(e,t){if(!t)return!1;if(!Array.isArray(t))return!1;for(var n=0,r=t;n<r.length;n++){if(!e(r[n]))return!1}return!0}((function(e){return"string"==typeof e}),c))throw rv(e,"the @ match target '"+l+"' must be an array of strings, in rule: "+t);var d=LO(c,e.ignoreCase);a=function(e){return"@"===u?d(e):!d(e)}}else if("~"===u||"!~"===u)if(l.indexOf("$")<0){var h=kO(e,"^"+l+"$");a=function(e){return"~"===u?h.test(e):!h.test(e)}}else a=function(t,n,r,i){return kO(e,"^"+iv(e,l,n,r,i)+"$").test(t)};else if(l.indexOf("$")<0){var f=tv(e,l);a=function(e){return"=="===u?e===f:e!==f}}else{var p=tv(e,l);a=function(t,n,r,i,o){var s=iv(e,p,n,r,i);return"=="===u?t===s:t!==s}}else{var g=LO(l.split("|"),e.ignoreCase);a=function(e){return"~"===u?g(e):!g(e)}}return-1===i?{name:n,value:r,test:function(e,t,n,r){return a(e,e,t,n,r)}}:{name:n,value:r,test:function(e,t,n,r){var o=function(e,t,n,r){if(r<0)return e;if(r<t.length)return t[r];if(r>=100){r-=100;var i=n.split(".");if(i.unshift(n),r<i.length)return i[r]}return null}(e,t,n,i);return a(o||"",e,t,n,r)}}}var DO=function(){function e(e){this.regex=new RegExp(""),this.action={token:""},this.matchOnlyAtLineStart=!1,this.name="",this.name=e}return e.prototype.setRegex=function(e,t){var n;if("string"==typeof t)n=t;else{if(!(t instanceof RegExp))throw rv(e,"rules must start with a match string or regular expression: "+this.name);n=t.source}this.matchOnlyAtLineStart=n.length>0&&"^"===n[0],this.name=this.name+": "+n,this.regex=kO(e,"^(?:"+(this.matchOnlyAtLineStart?n.substr(1):n)+")")},e.prototype.setAction=function(e,t){this.action=function e(t,n,r){if(r){if("string"==typeof r)return r;if(r.token||""===r.token){if("string"!=typeof r.token)throw rv(t,"a 'token' attribute must be of type string, in rule: "+n);var i={token:r.token};if(r.token.indexOf("$")>=0&&(i.tokenSubst=!0),"string"==typeof r.bracket)if("@open"===r.bracket)i.bracket=1;else{if("@close"!==r.bracket)throw rv(t,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+n);i.bracket=-1}if(r.next){if("string"!=typeof r.next)throw rv(t,"the next state must be a string value in rule: "+n);var o=r.next;if(!/^(@pop|@push|@popall)$/.test(o)&&("@"===o[0]&&(o=o.substr(1)),o.indexOf("$")<0&&!function(e,t){for(var n=t;n&&n.length>0;){if(e.stateNames[n])return!0;var r=n.lastIndexOf(".");n=r<0?null:n.substr(0,r)}return!1}(t,iv(t,o,"",[],""))))throw rv(t,"the next state '"+r.next+"' is not defined in rule: "+n);i.next=o}return"number"==typeof r.goBack&&(i.goBack=r.goBack),"string"==typeof r.switchTo&&(i.switchTo=r.switchTo),"string"==typeof r.log&&(i.log=r.log),"string"==typeof r.nextEmbedded&&(i.nextEmbedded=r.nextEmbedded,t.usesEmbedded=!0),i}if(Array.isArray(r)){for(var s=[],a=0,u=r.length;a<u;a++)s[a]=e(t,n,r[a]);return{group:s}}if(r.cases){var l=[];for(var c in r.cases)if(r.cases.hasOwnProperty(c)){var d=e(t,n,r.cases[c]);"@default"===c||"@"===c||""===c?l.push({test:void 0,value:d,name:c}):"@eos"===c?l.push({test:function(e,t,n,r){return r},value:d,name:c}):l.push(MO(t,n,c,d))}var h=t.defaultToken;return{test:function(e,t,n,r){for(var i=0,o=l;i<o.length;i++){var s=o[i];if(!s.test||s.test(e,t,n,r))return s.value}return h}}}throw rv(t,"an action must be a string, an object with a 'token' or 'cases' attribute, or an array of actions; in rule: "+n)}return{token:""}}(e,this.name,t)},e}();function EO(e){Vk.registerLanguage(e)}function TO(){var e=[];return e=e.concat(Vk.getLanguages())}function NO(e){var t=jN.modeService.get().getLanguageIdentifier(e);return t?t.id:0}function OO(e,t){var n=jN.modeService.get().onDidCreateMode((function(r){r.getId()===e&&(n.dispose(),t())}));return n}function AO(e,t){var n=jN.modeService.get().getLanguageIdentifier(e);if(!n)throw new Error("Cannot set configuration for unknown language "+e);return Mu.register(n,t)}var IO=function(){function e(e){this._actual=e}return e.prototype.getInitialState=function(){return this._actual.getInitialState()},e.prototype.tokenize=function(e,t,n){throw new Error("Not supported!")},e.prototype.tokenize2=function(e,t){var n=this._actual.tokenizeEncoded(e,t);return new Ba(n.tokens,n.endState)},e}(),PO=function(){function e(e,t,n){this._standaloneThemeService=e,this._languageIdentifier=t,this._actual=n}return e.prototype.getInitialState=function(){return this._actual.getInitialState()},e.prototype._toClassicTokens=function(e,t,n){for(var r=[],i=0,o=0,s=e.length;o<s;o++){var a=e[o],u=a.startIndex;0===o?u=0:u<i&&(u=i),r[o]=new Ya(u+n,a.scopes,t),i=u}return r},e.prototype.tokenize=function(e,t,n){var r,i=this._actual.tokenize(e,t),o=this._toClassicTokens(i.tokens,this._languageIdentifier.language,n);return r=i.endState.equals(t)?t:i.endState,new ja(o,r)},e.prototype._toBinaryTokens=function(e,t){for(var n=this._languageIdentifier.id,r=this._standaloneThemeService.getTheme().tokenTheme,i=[],o=0,s=0,a=0,u=e.length;a<u;a++){var l=e[a],c=r.match(n,l.scopes);if(!(o>0&&i[o-1]===c)){var d=l.startIndex;0===a?d=0:d<s&&(d=s),i[o++]=d+t,i[o++]=c,s=d}}var h=new Uint32Array(o);for(a=0;a<o;a++)h[a]=i[a];return h},e.prototype.tokenize2=function(e,t,n){var r,i=this._actual.tokenize(e,t),o=this._toBinaryTokens(i.tokens,n);return r=i.endState.equals(t)?t:i.endState,new Ba(o,r)},e}();function RO(e){return e&&"function"==typeof e.then}function FO(e,t){var n=jN.modeService.get().getLanguageIdentifier(e);if(!n)throw new Error("Cannot set tokens provider for unknown language "+e);var r=function(e){return function(e){return"tokenizeEncoded"in e}(e)?new IO(e):new PO(jN.standaloneThemeService.get(),n,e)};return RO(t)?Pa.registerPromise(e,t.then((function(e){return r(e)}))):Pa.register(e,r(t))}function YO(e,t){var n=function(t){return function(e,t,n,r){return new fv(e,t,n,r)}(jN.modeService.get(),jN.standaloneThemeService.get(),e,function(e,t){if(!t||"object"!=typeof t)throw new Error("Monarch: expecting a language definition object");var n={};n.languageId=e,n.noThrow=!1,n.maxStack=100,n.start="string"==typeof t.start?t.start:null,n.ignoreCase=SO(t.ignoreCase,!1),n.tokenPostfix=xO(t.tokenPostfix,"."+n.languageId),n.defaultToken=xO(t.defaultToken,"source"),n.usesEmbedded=!1;var r=t;function i(e,o,s){for(var a=0,u=s;a<u.length;a++){var l=u[a],c=l.include;if(c){if("string"!=typeof c)throw rv(n,"an 'include' attribute must be a string at: "+e);if("@"===c[0]&&(c=c.substr(1)),!t.tokenizer[c])throw rv(n,"include target '"+c+"' is not defined at: "+e);i(e+"."+c,o,t.tokenizer[c])}else{var d=new DO(e);if(Array.isArray(l)&&l.length>=1&&l.length<=3)if(d.setRegex(r,l[0]),l.length>=3)if("string"==typeof l[1])d.setAction(r,{token:l[1],next:l[2]});else{if("object"!=typeof l[1])throw rv(n,"a next state as the last element of a rule can only be given if the action is either an object or a string, at: "+e);var h=l[1];h.next=l[2],d.setAction(r,h)}else d.setAction(r,l[1]);else{if(!l.regex)throw rv(n,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+e);l.name&&"string"==typeof l.name&&(d.name=l.name),l.matchOnlyAtStart&&(d.matchOnlyAtLineStart=SO(l.matchOnlyAtLineStart,!1)),d.setRegex(r,l.regex),d.setAction(r,l.action)}o.push(d)}}}if(r.languageId=e,r.ignoreCase=n.ignoreCase,r.noThrow=n.noThrow,r.usesEmbedded=n.usesEmbedded,r.stateNames=t.tokenizer,r.defaultToken=n.defaultToken,!t.tokenizer||"object"!=typeof t.tokenizer)throw rv(n,"a language definition must define the 'tokenizer' attribute as an object");for(var o in n.tokenizer=[],t.tokenizer)if(t.tokenizer.hasOwnProperty(o)){n.start||(n.start=o);var s=t.tokenizer[o];n.tokenizer[o]=new Array,i("tokenizer."+o,n.tokenizer[o],s)}if(n.usesEmbedded=r.usesEmbedded,t.brackets){if(!Array.isArray(t.brackets))throw rv(n,"the 'brackets' attribute must be defined as an array")}else t.brackets=[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}];for(var a=[],u=0,l=t.brackets;u<l.length;u++){var c=l[u];if(c&&Array.isArray(c)&&3===c.length&&(c={token:c[2],open:c[0],close:c[1]}),c.open===c.close)throw rv(n,"open and close brackets in a 'brackets' attribute must be different: "+c.open+"\n hint: use the 'bracket' attribute if matching on equal brackets is required.");if("string"!=typeof c.open||"string"!=typeof c.token||"string"!=typeof c.close)throw rv(n,"every element in the 'brackets' array must be a '{open,close,token}' object or array");a.push({token:c.token+n.tokenPostfix,open:tv(n,c.open),close:tv(n,c.close)})}return n.brackets=a,n.noThrow=!0,n}(e,t))};return RO(t)?Pa.registerPromise(e,t.then((function(e){return n(e)}))):Pa.register(e,n(t))}function jO(e,t){return pa.register(e,t)}function BO(e,t){return ma.register(e,t)}function WO(e,t){return ya.register(e,t)}function HO(e,t){return va.register(e,{provideHover:function(e,n,r){var i=e.getWordAtPosition(n);return Promise.resolve(t.provideHover(e,n,r)).then((function(e){if(e)return!e.range&&i&&(e.range=new Yr(n.lineNumber,i.startColumn,n.lineNumber,i.endColumn)),e.range||(e.range=new Yr(n.lineNumber,n.column,n.lineNumber,n.column)),e}))}})}function VO(e,t){return ba.register(e,t)}function zO(e,t){return wa.register(e,t)}function UO(e,t){return Ca.register(e,t)}function qO(e,t){return xa.register(e,t)}function KO(e,t){return La.register(e,t)}function GO(e,t){return ka.register(e,t)}function $O(e,t){return Ma.register(e,{provideCodeActions:function(e,n,r,i){var o=jN.markerService.get().read({resource:e.uri}).filter((function(e){return Yr.areIntersectingOrTouching(e,n)}));return t.provideCodeActions(e,n,{markers:o,only:r.only},i)}})}function ZO(e,t){return Da.register(e,t)}function XO(e,t){return Ea.register(e,t)}function JO(e,t){return Ta.register(e,t)}function QO(e,t){return Na.register(e,t)}function eA(e,t){return _a.register(e,t)}function tA(e,t){return Oa.register(e,t)}function nA(e,t){return Ia.register(e,t)}function rA(e,t){return Sa.register(e,t)}function iA(e,t){return Aa.register(e,t)}var oA=self;Si.wrappingIndent=0,Si.viewInfo.glyphMargin=!1,Si.autoIndent=!1;var sA=a_();sA.editor={create:eO,onDidCreateEditor:tO,createDiffEditor:nO,createDiffNavigator:rO,createModel:oO,setModelLanguage:sO,setModelMarkers:aO,getModelMarkers:uO,getModels:cO,getModel:lO,onDidCreateModel:dO,onWillDisposeModel:hO,onDidChangeModelLanguage:fO,createWebWorker:pO,colorizeElement:gO,colorize:mO,colorizeModelLine:_O,tokenize:vO,defineTheme:bO,setTheme:wO,remeasureFonts:CO,ScrollbarVisibility:Im,WrappingIndent:zm,OverviewRulerLane:Pm,MinimapPosition:Rm,EndOfLinePreference:Fm,DefaultEndOfLine:Ym,EndOfLineSequence:jm,TrackedRangeStickiness:Bm,CursorChangeReason:Hm,MouseTargetType:Zm,TextEditorCursorStyle:qm,TextEditorCursorBlinkingStyle:Um,ContentWidgetPositionPreference:Gm,OverlayWidgetPositionPreference:$m,RenderMinimap:Vm,ScrollType:Wm,RenderLineNumbersType:Km,InternalEditorOptions:ai,BareFontInfo:k_,FontInfo:M_,TextModelResolvedOptions:xi,FindMatch:Li,EditorType:Nl},sA.languages={register:EO,getLanguages:TO,onLanguage:OO,getEncodedLanguageId:NO,setLanguageConfiguration:AO,setTokensProvider:FO,setMonarchTokensProvider:YO,registerReferenceProvider:jO,registerRenameProvider:BO,registerCompletionItemProvider:eA,registerSignatureHelpProvider:WO,registerHoverProvider:HO,registerDocumentSymbolProvider:VO,registerDocumentHighlightProvider:zO,registerDefinitionProvider:UO,registerImplementationProvider:qO,registerTypeDefinitionProvider:KO,registerCodeLensProvider:GO,registerCodeActionProvider:$O,registerDocumentFormattingEditProvider:ZO,registerDocumentRangeFormattingEditProvider:XO,registerOnTypeFormattingEditProvider:JO,registerLinkProvider:QO,registerColorProvider:tA,registerFoldingRangeProvider:nA,registerDeclarationProvider:rA,registerSelectionRangeProvider:iA,DocumentHighlightKind:r_,CompletionItemKind:Jm,CompletionItemTag:Qm,CompletionItemInsertTextRule:e_,SymbolKind:i_,SymbolTag:o_,IndentAction:Xm,CompletionTriggerKind:t_,SignatureHelpTriggerKind:n_,FoldingRangeKind:fa};var aA=sA.CancellationTokenSource,uA=sA.Emitter,lA=sA.KeyCode,cA=sA.KeyMod,dA=sA.Position,hA=sA.Range,fA=sA.Selection,pA=sA.SelectionDirection,gA=sA.MarkerSeverity,mA=sA.MarkerTag,_A=sA.Uri,yA=sA.Token,vA=sA.editor,bA=sA.languages;oA.monaco=sA,void 0!==oA.require&&"function"==typeof oA.require.config&&oA.require.config({ignoreDuplicateModules:["vscode-languageserver-types","vscode-languageserver-types/main","vscode-nls","vscode-nls/vscode-nls","jsonc-parser","jsonc-parser/main","vscode-uri","vscode-uri/index","vs/basic-languages/typescript/typescript"]});var wA=n(317),CA=n.n(wA)()({strategy:"scroll"});function SA(e,t){CA.listenTo(e,t);var n=t;return{update:function(t){CA.removeListener(e,n),CA.listenTo(e,t),n=t},destroy:function(){CA.removeListener(e,n)}}}n(606);function xA(e){let t;const n=new ke({props:{errorText:"Syntax Error"}});return{c(){X(n.$$.fragment)},m(e,r){J(n,e,r),t=!0},i(e){t||(G(n.$$.fragment,e),t=!0)},o(e){$(n.$$.fragment,e),t=!1},d(e){Q(n,e)}}}function LA(e){let t,n,r,i,o,s=e[0]&&xA();return{c(){t=b("div"),n=b("div"),i=C(),s&&s.c(),L(n,"id","editor"),L(n,"class","svelte-129q4vv"),L(t,"id","editor-container")},m(a,u){y(a,t,u),_(t,n),r=SA.call(null,n,e[1])||{},_(t,i),s&&s.m(t,null),o=!0},p(e,[n]){l(r.update)&&2&n&&r.update.call(null,e[1]),e[0]?s?G(s,1):((s=xA()).c(),G(s,1),s.m(t,null)):s&&(q(),$(s,1,1,()=>{s=null}),K())},i(e){o||(G(s),o=!0)},o(e){$(s),o=!1},d(e){e&&v(t),r&&l(r.destroy)&&r.destroy(),s&&s.d()}}}function kA(e,t,n){let{code:r=""}=t;const o=window.matchMedia("(prefers-color-scheme: dark)").matches&&!1;let s,{conf:a={theme:o?"dark":"default"}}=t,{error:u=!1}=t;const l=[];let c=null,d=()=>{};const h=e=>{try{Se.a.parse(e),ye({code:e,mermaid:a,updateEditor:!1}),l.forEach(e=>{s.deltaDecorations(e,[])}),we.set(void 0);s.getModel()}catch(t){if(t){we.set(t),console.log("Error in parsed",t.hash);const n=JSON.stringify({code:e,mermaid:a});ce("/edit/"+pe.Base64.encodeURI(n));t.hash.line;l.push(s.deltaDecorations([],[{range:new hA(t.hash.loc.first_line,t.hash.loc.last_line,t.hash.loc.first_column,t.hash.loc.last_column),options:{inlineClassName:"myInlineDecoration"}}]))}}};return A(async()=>{self.MonacoEnvironment={getWorkerUrl:(e,t)=>"./editor.worker.bundle.js"};me.subscribe(e=>{if(console.log("Code change"),null===c&&(c=document.getElementById("editor")),!r&&e&&n(2,r=e.code),e&&n(3,a=e.mermaid),!s&&r&&null!==c){s=vA.create(c,{value:[r].join("\n"),theme:"myCoolTheme",language:"mermaid"}),n(1,d=De(s));s.onDidChangeModelContent((function(e){const t=s.getValue();h(t)})),h(r)}e&&e.updateEditor&&s&&r&&null!==c&&(s.setValue(e.code),h(e.code))}),we.subscribe(e=>{n(0,u=!!e)});Me(i)}),e.$set=e=>{"code"in e&&n(2,r=e.code),"conf"in e&&n(3,a=e.conf),"error"in e&&n(0,u=e.error)},[u,d,r,a]}var MA=class extends te{constructor(e){super(),ee(this,e,kA,LA,c,{code:2,conf:3,error:0})}};const DA=ie(void 0);n(607);function EA(e){let t;const n=new ke({props:{errorText:e[0]}});return{c(){X(n.$$.fragment)},m(e,r){J(n,e,r),t=!0},p(e,t){const r={};1&t&&(r.errorText=e[0]),n.$set(r)},i(e){t||(G(n.$$.fragment,e),t=!0)},o(e){$(n.$$.fragment,e),t=!1},d(e){Q(n,e)}}}function TA(e){let t,n,r,i,o,s=e[0]&&EA(e);return{c(){t=b("div"),n=b("div"),i=C(),s&&s.c(),L(n,"id","editor-conf"),L(n,"class","svelte-e1y9ss"),L(t,"id","editor-container")},m(a,u){y(a,t,u),_(t,n),r=SA.call(null,n,e[1])||{},_(t,i),s&&s.m(t,null),o=!0},p(e,[n]){l(r.update)&&2&n&&r.update.call(null,e[1]),e[0]?s?(s.p(e,n),G(s,1)):((s=EA(e)).c(),G(s,1),s.m(t,null)):s&&(q(),$(s,1,1,()=>{s=null}),K())},i(e){o||(G(s),o=!0)},o(e){$(s),o=!1},d(e){e&&v(t),r&&l(r.destroy)&&r.destroy(),s&&s.d()}}}function NA(e,t,n){let r,{conf:o=""}=t,{code:s=""}=t,{error:a=!1}=t,u=null;let l=()=>{},c={};const d=e=>{try{console.log(e),JSON.parse(e),be(JSON.parse(e)),DA.set(void 0)}catch(e){console.log("Error in parsed",e),DA.set(e);const t=JSON.stringify({code:s,mermaid:c});ce("/edit/"+pe.Base64.encodeURI(t))}};me.subscribe(e=>{if(null===u&&(console.log("Starting stuff",document.getElementById("editor-conf")),u=document.getElementById("editor-conf")),!o&&e&&n(2,o=JSON.stringify(e.mermaid,null,2)),e&&n(3,s=e.code),!r&&o&&null!==u){r=vA.create(u,{value:[o].join("\n"),theme:"myCoolTheme",language:"JSON"}),n(1,l=De(r));r.onDidChangeModelContent((function(e){const t=r.getValue();d(t)})),d(o)}});Me(i);DA.subscribe(e=>{n(0,a=!!e&&e.toString())});return A(async()=>{console.log("Mounting config"),self.MonacoEnvironment={getWorkerUrl:(e,t)=>"./editor.worker.bundle.js"}}),e.$set=e=>{"conf"in e&&n(2,o=e.conf),"code"in e&&n(3,s=e.code),"error"in e&&n(0,a=e.error)},[a,l,o,s]}var OA=class extends te{constructor(e){super(),ee(this,e,NA,TA,c,{conf:2,code:3,error:0})}};n(608);function AA(e){let t,n,r;return{c(){t=b("div"),L(n=b("div"),"id","container"),L(n,"class","svelte-adxv1m"),L(t,"id","view"),L(t,"class",r=e[1]+" "+e[0]+" svelte-adxv1m")},m(r,i){y(r,t,i),_(t,n),e[9](n)},p(e,[n]){3&n&&r!==(r=e[1]+" "+e[0]+" svelte-adxv1m")&&L(t,"class",r)},i:o,o:o,d(n){n&&v(t),e[9](null)}}}function IA(e,t,n){const r=e=>(e=e.replace(/^\s*%%.*\n/g,"\n"),console.debug("Detecting diagram type based on the text "+e),e.match(/^\s*sequenceDiagram/)?"sequence":e.match(/^\s*gantt/)?"gantt":e.match(/^\s*classDiagram/)?"class":e.match(/^\s*stateDiagram/)?"state":e.match(/^\s*gitGraph/)?"git":e.match(/^\s*flowchart/)?"flowchart":e.match(/^\s*info/)?"info":e.match(/^\s*pie/)?"pie":"flowchart");let i;const o=e=>{clearTimeout(i),i=setTimeout((function(){console.log("ga:","send","event","render",e,e),ga("send","event",e,"render","render")}),5e3)};let s,a;A(async()=>{s=document.querySelector("graph-div");me.subscribe(e=>{try{if(a&&e){n(3,l=e.code);let t=l;t=(t=t.replace(/</g,"<")).replace(/>/g,">"),n(2,a.innerHTML=t,a),o(r(l)),delete a.dataset.processed,Se.a.initialize(Object.assign({},e.mermaid)),Se.a.init(void 0,a),l&&Se.a.render("graph-div",l,u)}}catch(e){console.log("view fail",e)}}),we.subscribe(e=>{void 0===e?n(1,d=""):(n(1,d="error"),console.log("code error: ",e))}),DA.subscribe(e=>{void 0===e?n(0,c=""):(n(0,c="error"),console.log("conf error: ",e))})});let u=function(e,t){},{code:l=""}=t,{configClasses:c=""}=t,{codeClasses:d=""}=t;return e.$set=e=>{"code"in e&&n(3,l=e.code),"configClasses"in e&&n(0,c=e.configClasses),"codeClasses"in e&&n(1,d=e.codeClasses)},[c,d,a,l,i,s,r,o,u,function(e){P[e?"unshift":"push"](()=>{n(2,a=e)})}]}var PA=class extends te{constructor(e){super(),ee(this,e,IA,AA,c,{code:3,configClasses:0,codeClasses:1})}};n(609);function RA(e){let t,n,r,i,o,s,a;const u=e[4].default,l=f(u,e,e[3],null);return{c(){t=b("div"),n=b("div"),r=w(e[0]),i=C(),o=b("div"),l&&l.c(),L(n,"id","title"),L(n,"class","padding svelte-m2i2uf"),L(o,"id","content"),L(o,"class",s=m(e[1])+" svelte-m2i2uf"),L(t,"id","card"),L(t,"class","svelte-m2i2uf")},m(e,s){y(e,t,s),_(t,n),_(n,r),_(t,i),_(t,o),l&&l.m(o,null),a=!0},p(e,[t]){(!a||1&t)&&M(r,e[0]),l&&l.p&&8&t&&l.p(p(u,e,e[3],null),g(u,e[3],t,null)),(!a||2&t&&s!==(s=m(e[1])+" svelte-m2i2uf"))&&L(o,"class",s)},i(e){a||(G(l,e),a=!0)},o(e){$(l,e),a=!1},d(e){e&&v(t),l&&l.d(e)}}}function FA(e,t,n){let{title:r=""}=t,{noPadding:i=!1}=t,o="padding";i&&n(1,o="");let{$$slots:s={},$$scope:a}=t;return e.$set=e=>{"title"in e&&n(0,r=e.title),"noPadding"in e&&n(2,i=e.noPadding),"$$scope"in e&&n(3,a=e.$$scope)},[r,o,i,a,s]}var YA=class extends te{constructor(e){super(),ee(this,e,FA,RA,c,{title:0,noPadding:2})}};n(610);function jA(e){let t,n;const r=e[3].default,i=f(r,e,e[2],null);return{c(){t=b("div"),i&&i.c(),L(t,"id","tag"),L(t,"class","svelte-1m053ch")},m(e,r){y(e,t,r),i&&i.m(t,null),n=!0},p(e,[t]){i&&i.p&&4&t&&i.p(p(r,e,e[2],null),g(r,e[2],t,null))},i(e){n||(G(i,e),n=!0)},o(e){$(i,e),n=!1},d(e){e&&v(t),i&&i.d(e)}}}function BA(e,t,n){let{noPadding:r=!1}=t,i="padding";r&&(i="");let{$$slots:o={},$$scope:s}=t;return e.$set=e=>{"noPadding"in e&&n(0,r=e.noPadding),"$$scope"in e&&n(2,s=e.$$scope)},[r,i,s,o]}var WA=class extends te{constructor(e){super(),ee(this,e,BA,jA,c,{noPadding:0})}},HA=n(0),VA=n.n(HA);n(612);function zA(e){let t,n,r,i,s,a,c,d,h,f,p,g,m,S,k,M,E,T,N,O,A,I,P,R,F,Y,j,B,W,H,V,z,U,q,K,G,$,Z,X,J,Q,ee,te,ne,re,ie,oe,se,ae,ue,le,ce,he,fe,pe,ge,me=!1,_e=!1;function ye(){me=!0,e[20].call(ie)}function ve(){_e=!0,e[22].call(he)}return{c(){t=b("div"),n=b("button"),r=b("a"),i=w("Copy Image"),s=C(),a=b("button"),c=b("a"),d=w("Download PNG"),h=C(),f=b("button"),p=b("a"),g=w("Link to view"),S=C(),k=b("button"),M=b("a"),E=w("Download SVG"),T=C(),N=b("button"),O=b("a"),A=w("Link to Image"),I=C(),P=b("button"),R=b("a"),F=w("Link to SVG"),Y=w("\n (markdown is base64 encoded for these urls)"),j=C(),B=b("div"),(W=b("label")).textContent="Copy Markdown",H=C(),V=b("br"),z=C(),U=b("input"),q=C(),K=b("p"),(G=b("label")).textContent="PNG size:",$=C(),Z=b("input"),X=C(),(J=b("label")).textContent="auto",Q=C(),ee=b("input"),te=C(),(ne=b("label")).textContent="width",re=C(),ie=b("input"),se=C(),ae=b("input"),ue=C(),(le=b("label")).textContent="height",ce=C(),he=b("input"),pe=b("br"),L(r,"class","link-style svelte-187ys3m"),L(r,"href",e[0]),L(r,"download",""),L(n,"class","button-style svelte-187ys3m"),L(c,"class","link-style svelte-187ys3m"),L(c,"href",e[0]),L(c,"download",""),L(a,"class","button-style svelte-187ys3m"),L(p,"class","link-style svelte-187ys3m"),L(p,"href",e[0]),L(f,"class","button-style svelte-187ys3m"),L(M,"class","link-style svelte-187ys3m"),L(M,"href",e[0]),L(M,"download",""),L(k,"class","button-style svelte-187ys3m"),L(O,"class","link-style svelte-187ys3m"),L(O,"href",e[1]),L(N,"class","button-style svelte-187ys3m"),L(R,"class","link-style svelte-187ys3m"),L(R,"href",e[2]),L(P,"class","button-style svelte-187ys3m"),L(t,"id","links"),L(t,"class","svelte-187ys3m"),L(W,"for","markdown"),L(W,"class","button-style svelte-187ys3m"),L(U,"id","markdown"),L(U,"type","text"),U.value=e[3],L(U,"class","svelte-187ys3m"),L(B,"id","copy-section"),L(B,"class","svelte-187ys3m"),L(Z,"type","radio"),Z.__value="auto",Z.value=Z.__value,L(Z,"id","autosize"),e[18][0].push(Z),L(J,"for","autosize"),L(ee,"type","radio"),ee.__value="width",ee.value=ee.__value,L(ee,"id","width-active"),e[18][0].push(ee),L(ne,"for","width"),L(ie,"id","width"),L(ie,"type","number"),L(ie,"min","3"),L(ie,"max","10000"),ie.disabled=oe="width"!==e[4],L(ae,"type","radio"),ae.__value="height",ae.value=ae.__value,L(ae,"id","height-active"),e[18][0].push(ae),L(le,"for","height"),L(he,"id","height"),L(he,"type","number"),L(he,"min","3"),L(he,"max","10000"),he.disabled=fe="height"!==e[4],ge=[x(r,"click",e[7]),x(c,"click",e[8]),x(M,"click",e[9]),x(U,"click",e[10]),x(Z,"change",e[17]),x(ee,"change",e[19]),x(ie,"input",ye),x(ae,"change",e[21]),x(he,"input",ve)]},m(o,u){y(o,t,u),_(t,n),_(n,r),_(r,i),_(t,s),_(t,a),_(a,c),_(c,d),_(t,h),_(t,f),_(f,p),_(p,g),m=de.call(null,p)||{},_(t,S),_(t,k),_(k,M),_(M,E),_(t,T),_(t,N),_(N,O),_(O,A),_(t,I),_(t,P),_(P,R),_(R,F),_(t,Y),y(o,j,u),y(o,B,u),_(B,W),_(B,H),_(B,V),_(B,z),_(B,U),y(o,q,u),y(o,K,u),_(K,G),_(K,$),_(K,Z),Z.checked=Z.__value===e[4],_(K,X),_(K,J),_(K,Q),_(K,ee),ee.checked=ee.__value===e[4],_(K,te),_(K,ne),_(K,re),_(K,ie),D(ie,e[5]),_(K,se),_(K,ae),ae.checked=ae.__value===e[4],_(K,ue),_(K,le),_(K,ce),_(K,he),D(he,e[6]),_(K,pe)},p(e,[t]){1&t&&L(r,"href",e[0]),1&t&&L(c,"href",e[0]),1&t&&L(p,"href",e[0]),1&t&&L(M,"href",e[0]),2&t&&L(O,"href",e[1]),4&t&&L(R,"href",e[2]),8&t&&(U.value=e[3]),16&t&&(Z.checked=Z.__value===e[4]),16&t&&(ee.checked=ee.__value===e[4]),16&t&&oe!==(oe="width"!==e[4])&&(ie.disabled=oe),!me&&32&t&&D(ie,e[5]),me=!1,16&t&&(ae.checked=ae.__value===e[4]),16&t&&fe!==(fe="height"!==e[4])&&(he.disabled=fe),!_e&&64&t&&D(he,e[6]),_e=!1},i:o,o:o,d(n){n&&v(t),m&&l(m.destroy)&&m.destroy(),n&&v(j),n&&v(B),n&&v(q),n&&v(K),e[18][0].splice(e[18][0].indexOf(Z),1),e[18][0].splice(e[18][0].indexOf(ee),1),e[18][0].splice(e[18][0].indexOf(ae),1),u(ge)}}}function UA(e,t,n){const r=()=>{const e=document.getElementById("container").innerHTML.replaceAll("<br>","<br/>");return pe.Base64.encode(e)},i=(e,t)=>{const n=document.createElement("canvas"),i=document.querySelector("#container svg").getBoundingClientRect();if(n.width=i.width,n.height=i.height,"width"===h){const e=i.height/i.width;n.width=f,n.height=f*e}else if("height"===h){const e=i.width/i.height;n.width=p*e,n.height=p}const o=n.getContext("2d");o.fillStyle="white",o.fillRect(0,0,n.width,n.height);const s=new Image;s.onload=t(n,o,s),console.log("SVG",r()),s.src=`data:image/svg+xml;base64,${r()}`,e.stopPropagation(),e.preventDefault()},o=(e,t,n)=>()=>{t.drawImage(n,0,0,e.width,e.height);const r=document.createElement("a");r.download=`mermaid-diagram-${VA()().format("YYYYMMDDHHmmss")}.png`,r.href=e.toDataURL("image/png").replace("image/png","image/octet-stream"),r.click()},s=(e,t,n)=>()=>{t.drawImage(n,0,0,e.width,e.height),e.toBlob(e=>{try{navigator.clipboard.write([new ClipboardItem({[e.type]:e})])}catch(e){console.error(e)}})};let a,u,l,c,d="/mermaid-live-editor/#/view",h="auto",f=1920,p=1080;const g=me.subscribe(e=>{a=pe.Base64.encodeURI(JSON.stringify(e)),n(0,d=`/mermaid-live-editor/#/view/${a}`),n(1,u=`https://mermaid.ink/img/${a}`),n(2,l=`https://mermaid.ink/svg/${a}`),n(3,c=`[![](${u})](${window.location.protocol}//${window.location.host}${window.location.pathname}#/edit/${a})`)});return[d,u,l,c,h,f,p,e=>{i(e,s)},e=>{i(e,o)},e=>{console.log("event",e.target),e.target.href=`data:image/svg+xml;base64,${r()}`,e.target.download=`mermaid-diagram-${VA()().format("YYYYMMDDHHmmss")}.svg`,console.log("event",e)},e=>{e.target.select(),document.execCommand("Copy")},a,r,i,o,s,g,function(){h=this.__value,n(4,h)},[[]],function(){h=this.__value,n(4,h)},function(){f=k(this.value),n(5,f)},function(){h=this.__value,n(4,h)},function(){p=k(this.value),n(6,p)}]}var qA=class extends te{constructor(e){super(),ee(this,e,UA,zA,c,{})}},KA=n(318);n(613);function GA(e,t,n){const r=e.slice();return r[4]=t[n],r[6]=n,r}function $A(e){let t;const n=new MA({props:{data:e[1].data}});return{c(){X(n.$$.fragment)},m(e,r){J(n,e,r),t=!0},p(e,t){const r={};2&t&&(r.data=e[1].data),n.$set(r)},i(e){t||(G(n.$$.fragment,e),t=!0)},o(e){$(n.$$.fragment,e),t=!1},d(e){Q(n,e)}}}function ZA(e){let t;const n=new OA({});return{c(){X(n.$$.fragment)},m(e,r){J(n,e,r),t=!0},i(e){t||(G(n.$$.fragment,e),t=!0)},o(e){$(n.$$.fragment,e),t=!1},d(e){Q(n,e)}}}function XA(e){let t;const n=new PA({});return{c(){X(n.$$.fragment)},m(e,r){J(n,e,r),t=!0},i(e){t||(G(n.$$.fragment,e),t=!0)},o(e){$(n.$$.fragment,e),t=!1},d(e){Q(n,e)}}}function JA(e){let t;return{c(){t=w("No records.")},m(e,n){y(e,t,n)},p:o,d(e){e&&v(t)}}}function QA(e){let t,n=e[2],r=[];for(let t=0;t<n.length;t+=1)r[t]=eI(GA(e,n,t));return{c(){for(let e=0;e<r.length;e+=1)r[e].c();t=S()},m(e,n){for(let t=0;t<r.length;t+=1)r[t].m(e,n);y(e,t,n)},p(e,i){if(4&i){let o;for(n=e[2],o=0;o<n.length;o+=1){const s=GA(e,n,o);r[o]?r[o].p(s,i):(r[o]=eI(s),r[o].c(),r[o].m(t.parentNode,t))}for(;o<r.length;o+=1)r[o].d(1);r.length=n.length}},d(e){!function(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}(r,e),e&&v(t)}}}function eI(e){let t,n,r,i,o=gI(e[4].time)+"";function s(...t){return e[3](e[4],...t)}return{c(){t=b("button"),n=w(o),r=C(),L(t,"class","button-style svelte-mx8k4g"),i=x(t,"click",(function(){s.apply(this,arguments)}))},m(e,i){y(e,t,i),_(t,n),_(t,r)},p(t,r){e=t,4&r&&o!==(o=gI(e[4].time)+"")&&M(n,o)},d(e){e&&v(t),i()}}}function tI(e){let t,n,r,i,o;function s(e,t){return e[2].length>0?QA:JA}let a=s(e),u=a(e);return{c(){(t=b("span")).textContent="Automatically saves once every\n minute, up to 10 records.",n=C(),r=b("br"),i=C(),o=b("div"),u.c(),L(t,"id","historyLoaderSubTitle"),L(t,"class","svelte-mx8k4g"),L(o,"id","historyList"),L(o,"class","button-container svelte-mx8k4g")},m(e,s){y(e,t,s),y(e,n,s),y(e,r,s),y(e,i,s),y(e,o,s),u.m(o,null)},p(e,t){a===(a=s(e))&&u?u.p(e,t):(u.d(1),(u=a(e))&&(u.c(),u.m(o,null)))},d(e){e&&v(t),e&&v(n),e&&v(r),e&&v(i),e&&v(o),u.d()}}}function nI(e){let t;return{c(){(t=b("div")).innerHTML='<button class="button-style svelte-mx8k4g"><a href="https://mermaid-js.github.io/mermaid" target="_blank" class="link-style svelte-mx8k4g">\n Mermaid Documentation\n </a></button> \n <button class="button-style svelte-mx8k4g"><a href="https://github.com/mermaid-js/mermaid" target="_blank" class="link-style svelte-mx8k4g">\n Mermaid on GitHub\n </a></button> \n <button class="button-style svelte-mx8k4g"><a href="https://github.com/mermaid-js/mermaid-live-editor" target="_blank" class="link-style svelte-mx8k4g">\n Live Editor on GitHub\n </a></button> \n <button class="button-style svelte-mx8k4g"><a href="https://github.com/mermaid-js/mermaid-cli" target="_blank" class="link-style svelte-mx8k4g">\n Mermaid CLI\n </a></button>',L(t,"class","button-container svelte-mx8k4g")},m(e,n){y(e,t,n)},d(e){e&&v(t)}}}function rI(e){let t;const n=new qA({});return{c(){X(n.$$.fragment)},m(e,r){J(n,e,r),t=!0},i(e){t||(G(n.$$.fragment,e),t=!0)},o(e){$(n.$$.fragment,e),t=!1},d(e){Q(n,e)}}}function iI(e){let t;return{c(){t=w(e[0])},m(e,n){y(e,t,n)},p(e,n){1&n&&M(t,e[0])},d(e){e&&v(t)}}}function oI(e){let t,n,r,i,o,s,a,l,c,d,h,f,p,g,m,S,k,M,D,E,T,N,O,A,I,P,R,F,Y,j,B,W,H,V,z,U,q;const K=new YA({props:{title:"Code",noPadding:"true",$$slots:{default:[$A]},$$scope:{ctx:e}}}),Z=new YA({props:{title:"Mermaid Configuration",$$slots:{default:[ZA]},$$scope:{ctx:e}}}),ee=new YA({props:{title:"Preview",$$slots:{default:[XA]},$$scope:{ctx:e}}}),te=new YA({props:{title:"Editing history",$$slots:{default:[tI]},$$scope:{ctx:e}}}),ne=new YA({props:{title:"Links",$$slots:{default:[nI]},$$scope:{ctx:e}}}),re=new YA({props:{title:"Actions",$$slots:{default:[rI]},$$scope:{ctx:e}}}),ie=new WA({props:{color:"green",$$slots:{default:[iI]},$$scope:{ctx:e}}});return{c(){t=b("div"),(n=b("div")).innerHTML='<h1 id="app-title" class="svelte-mx8k4g">Mermaid Live Editor</h1>',r=C(),i=b("div"),o=b("div"),(s=b("span")).innerHTML="<strong>Diagram presets:</strong>",a=C(),(l=b("button")).textContent="Flow Chart",c=C(),(d=b("button")).textContent="Sequence Diagram",h=C(),(f=b("button")).textContent="Class Diagram",p=C(),(g=b("button")).textContent="State Diagram",m=C(),(S=b("button")).textContent="Gantt Chart",k=C(),(M=b("button")).textContent="Pie Chart",D=C(),(E=b("button")).textContent="ER Diagram",T=C(),N=b("div"),O=b("div"),X(K.$$.fragment),A=C(),X(Z.$$.fragment),I=C(),P=b("div"),X(ee.$$.fragment),R=C(),F=b("div"),Y=b("div"),X(te.$$.fragment),j=C(),X(ne.$$.fragment),B=C(),W=b("div"),X(re.$$.fragment),H=C(),V=b("div"),z=w("Powered by mermaid\n "),X(ie.$$.fragment),L(n,"id","title-container"),L(n,"class","svelte-mx8k4g"),L(s,"id","sampleLoaderTitle"),L(l,"class","button-style svelte-mx8k4g"),L(d,"class","button-style svelte-mx8k4g"),L(f,"class","button-style svelte-mx8k4g"),L(g,"class","button-style svelte-mx8k4g"),L(S,"class","button-style svelte-mx8k4g"),L(M,"class","button-style svelte-mx8k4g"),L(E,"class","button-style svelte-mx8k4g"),L(o,"class","button-container svelte-mx8k4g"),L(i,"id","sampleLoader"),L(i,"class","svelte-mx8k4g"),L(O,"id","col1"),L(O,"class","svelte-mx8k4g"),L(Y,"id","link-col1"),L(Y,"class","svelte-mx8k4g"),L(W,"id","link-col2"),L(W,"class","svelte-mx8k4g"),L(F,"id","link-root"),L(F,"class","svelte-mx8k4g"),L(P,"id","col2"),L(P,"class","svelte-mx8k4g"),L(N,"id","editor-root"),L(N,"class","svelte-mx8k4g"),L(V,"id","power"),L(V,"class","svelte-mx8k4g"),L(t,"id","body"),L(t,"class","svelte-mx8k4g"),q=[x(l,"click",sI),x(d,"click",aI),x(f,"click",uI),x(g,"click",lI),x(S,"click",cI),x(M,"click",dI),x(E,"click",hI)]},m(e,u){y(e,t,u),_(t,n),_(t,r),_(t,i),_(i,o),_(o,s),_(o,a),_(o,l),_(o,c),_(o,d),_(o,h),_(o,f),_(o,p),_(o,g),_(o,m),_(o,S),_(o,k),_(o,M),_(o,D),_(o,E),_(t,T),_(t,N),_(N,O),J(K,O,null),_(O,A),J(Z,O,null),_(N,I),_(N,P),J(ee,P,null),_(P,R),_(P,F),_(F,Y),J(te,Y,null),_(Y,j),J(ne,Y,null),_(F,B),_(F,W),J(re,W,null),_(t,H),_(t,V),_(V,z),J(ie,V,null),U=!0},p(e,[t]){const n={};130&t&&(n.$$scope={dirty:t,ctx:e}),K.$set(n);const r={};128&t&&(r.$$scope={dirty:t,ctx:e}),Z.$set(r);const i={};128&t&&(i.$$scope={dirty:t,ctx:e}),ee.$set(i);const o={};132&t&&(o.$$scope={dirty:t,ctx:e}),te.$set(o);const s={};128&t&&(s.$$scope={dirty:t,ctx:e}),ne.$set(s);const a={};128&t&&(a.$$scope={dirty:t,ctx:e}),re.$set(a);const u={};129&t&&(u.$$scope={dirty:t,ctx:e}),ie.$set(u)},i(e){U||(G(K.$$.fragment,e),G(Z.$$.fragment,e),G(ee.$$.fragment,e),G(te.$$.fragment,e),G(ne.$$.fragment,e),G(re.$$.fragment,e),G(ie.$$.fragment,e),U=!0)},o(e){$(K.$$.fragment,e),$(Z.$$.fragment,e),$(ee.$$.fragment,e),$(te.$$.fragment,e),$(ne.$$.fragment,e),$(re.$$.fragment,e),$(ie.$$.fragment,e),U=!1},d(e){e&&v(t),Q(K),Q(Z),Q(ee),Q(te),Q(ne),Q(re),Q(ie),u(q)}}}function sI(){fI("FlowChart")}function aI(){fI("SequenceDiagram")}function uI(){fI("ClassDiagram")}function lI(){fI("StateDiagram")}function cI(){fI("GanttChart")}function dI(){fI("PieChart")}function hI(){fI("ERDiagram")}function fI(e){let t="";switch(e){case"FlowChart":t="graph TD\n A[Christmas] --\x3e|Get money| B(Go shopping)\n B --\x3e C{Let me think}\n C --\x3e|One| D[Laptop]\n C --\x3e|Two| E[iPhone]\n C --\x3e|Three| F[fa:fa-car Car]\n ";break;case"SequenceDiagram":t="sequenceDiagram\n Alice->>+John: Hello John, how are you?\n Alice->>+John: John, can you hear me?\n John--\x3e>-Alice: Hi Alice, I can hear you!\n John--\x3e>-Alice: I feel great!\n ";break;case"ClassDiagram":t="classDiagram\n Animal <|-- Duck\n Animal <|-- Fish\n Animal <|-- Zebra\n Animal : +int age\n Animal : +String gender\n Animal: +isMammal()\n Animal: +mate()\n class Duck{\n +String beakColor\n +swim()\n +quack()\n }\n class Fish{\n -int sizeInFeet\n -canEat()\n }\n class Zebra{\n +bool is_wild\n +run()\n }\n ";break;case"StateDiagram":t="stateDiagram-v2\n [*] --\x3e Still\n Still --\x3e [*]\n Still --\x3e Moving\n Moving --\x3e Still\n Moving --\x3e Crash\n Crash --\x3e [*]\n ";break;case"GanttChart":t="gantt\n title A Gantt Diagram\n dateFormat YYYY-MM-DD\n section Section\n A task :a1, 2014-01-01, 30d\n Another task :after a1 , 20d\n section Another\n Task in sec :2014-01-12 , 12d\n another task : 24d\n ";break;case"PieChart":t='pie title Pets adopted by volunteers\n "Dogs" : 386\n "Cats" : 85\n "Rats" : 15\n ';break;case"ERDiagram":t='erDiagram\n CUSTOMER }|..|{ DELIVERY-ADDRESS : has\n CUSTOMER ||--o{ ORDER : places\n CUSTOMER ||--o{ INVOICE : "liable for"\n DELIVERY-ADDRESS ||--o{ ORDER : receives\n INVOICE ||--|{ ORDER : covers\n ORDER ||--|{ ORDER-ITEM : includes\n PRODUCT-CATEGORY ||--|{ PRODUCT : contains\n PRODUCT ||--o{ ORDER-ITEM : "ordered in"\n '}pI(t)}function pI(e){e&&ve(e,!0)}function gI(e){return`${VA()(e).fromNow()} (${new Date(e).toLocaleString()})`}function mI(e,t,n){let{mermaidVersion:r=KA.version}=t,i=[];A(async()=>{ga("send","pageview"),ga("send","event","version",r,r);n(2,i=JSON.parse(localStorage.getItem("_mermaid_history_")||"[]"));let e=i.length>0?i[i.length-1]:null;o.data?_e(o.data):e&&ye({code:e.code,mermaid:{},updateEditor:!0});let t=null;me.subscribe(e=>{t=e&&e.code||t}),setInterval(()=>{t!=e&&(i.unshift({time:(new Date).toISOString(),code:e=t}),i.length>10&&i.pop(),localStorage.setItem("_mermaid_history_",JSON.stringify(i))),n(2,i)},6e4)});let{params:o={}}=t;return e.$set=e=>{"mermaidVersion"in e&&n(0,r=e.mermaidVersion),"params"in e&&n(1,o=e.params)},[r,o,i,(e,t)=>pI(e.code)]}var _I=class extends te{constructor(e){super(),ee(this,e,mI,oI,c,{mermaidVersion:0,params:1})}};n(614);function yI(e){let t,n;const r=new PA({});return{c(){t=b("div"),X(r.$$.fragment),L(t,"id","view-page"),L(t,"class","svelte-clxwlp")},m(e,i){y(e,t,i),J(r,t,null),n=!0},p:o,i(e){n||(G(r.$$.fragment,e),n=!0)},o(e){$(r.$$.fragment,e),n=!1},d(e){e&&v(t),Q(r)}}}function vI(e){return A(async()=>{ga("send","pageview")}),[]}var bI=class extends te{constructor(e){super(),ee(this,e,vI,yI,c,{})}};function wI(e){let t,n,r;const i=new fe({props:{routes:e[0]}});return{c(){t=b("link"),n=C(),X(i.$$.fragment),L(t,"href","https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap"),L(t,"rel","stylesheet")},m(e,o){_(document.head,t),y(e,n,o),J(i,e,o),r=!0},p:o,i(e){r||(G(i.$$.fragment,e),r=!0)},o(e){$(i.$$.fragment,e),r=!1},d(e){v(t),e&&v(n),Q(i,e)}}}function CI(e){return[{"/":_I,"/edit/:data":_I,"/view/:data":bI,"*":_I}]}const SI=new class extends te{constructor(e){super(),ee(this,e,CI,wI,c,{})}}({target:document.body,props:{name:"world"}});window.app=SI;t.default=SI}]); \ No newline at end of file +e.exports={graphlib:n(806),dagre:n(420),intersect:n(844),render:n(846),util:n(134),version:n(858)}},function(e,t,n){var i;try{i=n(414)}catch(e){}i||(i=window.graphlib),e.exports=i},function(e,t,n){e.exports={Graph:n(318),version:n(808)}},function(e,t){e.exports="2.1.8"},function(e,t,n){var i=n(133),r=n(318);function o(e){return i.map(e.nodes(),(function(t){var n=e.node(t),r=e.parent(t),o={v:t};return i.isUndefined(n)||(o.value=n),i.isUndefined(r)||(o.parent=r),o}))}function s(e){return i.map(e.edges(),(function(t){var n=e.edge(t),r={v:t.v,w:t.w};return i.isUndefined(t.name)||(r.name=t.name),i.isUndefined(n)||(r.value=n),r}))}e.exports={write:function(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:o(e),edges:s(e)};i.isUndefined(e.graph())||(t.value=i.clone(e.graph()));return t},read:function(e){var t=new r(e.options).setGraph(e.value);return i.each(e.nodes,(function(e){t.setNode(e.v,e.value),e.parent&&t.setParent(e.v,e.parent)})),i.each(e.edges,(function(e){t.setEdge({v:e.v,w:e.w,name:e.name},e.value)})),t}}},function(e,t,n){e.exports={components:n(811),dijkstra:n(415),dijkstraAll:n(812),findCycles:n(813),floydWarshall:n(814),isAcyclic:n(815),postorder:n(816),preorder:n(817),prim:n(818),tarjan:n(417),topsort:n(418)}},function(e,t,n){var i=n(133);e.exports=function(e){var t,n={},r=[];function o(r){i.has(n,r)||(n[r]=!0,t.push(r),i.each(e.successors(r),o),i.each(e.predecessors(r),o))}return i.each(e.nodes(),(function(e){t=[],o(e),t.length&&r.push(t)})),r}},function(e,t,n){var i=n(415),r=n(133);e.exports=function(e,t,n){return r.transform(e.nodes(),(function(r,o){r[o]=i(e,o,t,n)}),{})}},function(e,t,n){var i=n(133),r=n(417);e.exports=function(e){return i.filter(r(e),(function(t){return t.length>1||1===t.length&&e.hasEdge(t[0],t[0])}))}},function(e,t,n){var i=n(133);e.exports=function(e,t,n){return function(e,t,n){var i={},r=e.nodes();return r.forEach((function(e){i[e]={},i[e][e]={distance:0},r.forEach((function(t){e!==t&&(i[e][t]={distance:Number.POSITIVE_INFINITY})})),n(e).forEach((function(n){var r=n.v===e?n.w:n.v,o=t(n);i[e][r]={distance:o,predecessor:e}}))})),r.forEach((function(e){var t=i[e];r.forEach((function(n){var o=i[n];r.forEach((function(n){var i=o[e],r=t[n],s=o[n],a=i.distance+r.distance;a<s.distance&&(s.distance=a,s.predecessor=r.predecessor)}))}))})),i}(e,t||r,n||function(t){return e.outEdges(t)})};var r=i.constant(1)},function(e,t,n){var i=n(418);e.exports=function(e){try{i(e)}catch(e){if(e instanceof i.CycleException)return!1;throw e}return!0}},function(e,t,n){var i=n(419);e.exports=function(e,t){return i(e,t,"post")}},function(e,t,n){var i=n(419);e.exports=function(e,t){return i(e,t,"pre")}},function(e,t,n){var i=n(133),r=n(318),o=n(416);e.exports=function(e,t){var n,s=new r,a={},l=new o;function c(e){var i=e.v===n?e.w:e.v,r=l.priority(i);if(void 0!==r){var o=t(e);o<r&&(a[i]=n,l.decrease(i,o))}}if(0===e.nodeCount())return s;i.each(e.nodes(),(function(e){l.add(e,Number.POSITIVE_INFINITY),s.setNode(e)})),l.decrease(e.nodes()[0],0);var d=!1;for(;l.size()>0;){if(n=l.removeMin(),i.has(a,n))s.setEdge(n,a[n]);else{if(d)throw new Error("Input graph is not connected: "+e);d=!0}e.nodeEdges(n).forEach(c)}return s}},function(e,t,n){e.exports={graphlib:n(143),layout:n(820),debug:n(842),util:{time:n(119).time,notime:n(119).notime},version:n(843)}},function(e,t,n){"use strict";var i=n(75),r=n(821),o=n(824),s=n(825),a=n(119).normalizeRanks,l=n(827),c=n(119).removeEmptyRanks,d=n(828),u=n(829),h=n(830),f=n(831),g=n(840),p=n(119),m=n(143).Graph;e.exports=function(e,t){var n=t&&t.debugTiming?p.time:p.notime;n("layout",(function(){var t=n(" buildLayoutGraph",(function(){return function(e){var t=new m({multigraph:!0,compound:!0}),n=L(e.graph());return t.setGraph(i.merge({},b,x(n,_),i.pick(n,v))),i.forEach(e.nodes(),(function(n){var r=L(e.node(n));t.setNode(n,i.defaults(x(r,y),w)),t.setParent(n,e.parent(n))})),i.forEach(e.edges(),(function(n){var r=L(e.edge(n));t.setEdge(n,i.merge({},S,x(r,C),i.pick(r,k)))})),t}(e)}));n(" runLayout",(function(){!function(e,t){t(" makeSpaceForEdgeLabels",(function(){!function(e){var t=e.graph();t.ranksep/=2,i.forEach(e.edges(),(function(n){var i=e.edge(n);i.minlen*=2,"c"!==i.labelpos.toLowerCase()&&("TB"===t.rankdir||"BT"===t.rankdir?i.width+=i.labeloffset:i.height+=i.labeloffset)}))}(e)})),t(" removeSelfEdges",(function(){!function(e){i.forEach(e.edges(),(function(t){if(t.v===t.w){var n=e.node(t.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}}))}(e)})),t(" acyclic",(function(){r.run(e)})),t(" nestingGraph.run",(function(){d.run(e)})),t(" rank",(function(){s(p.asNonCompoundGraph(e))})),t(" injectEdgeLabelProxies",(function(){!function(e){i.forEach(e.edges(),(function(t){var n=e.edge(t);if(n.width&&n.height){var i=e.node(t.v),r={rank:(e.node(t.w).rank-i.rank)/2+i.rank,e:t};p.addDummyNode(e,"edge-proxy",r,"_ep")}}))}(e)})),t(" removeEmptyRanks",(function(){c(e)})),t(" nestingGraph.cleanup",(function(){d.cleanup(e)})),t(" normalizeRanks",(function(){a(e)})),t(" assignRankMinMax",(function(){!function(e){var t=0;i.forEach(e.nodes(),(function(n){var r=e.node(n);r.borderTop&&(r.minRank=e.node(r.borderTop).rank,r.maxRank=e.node(r.borderBottom).rank,t=i.max(t,r.maxRank))})),e.graph().maxRank=t}(e)})),t(" removeEdgeLabelProxies",(function(){!function(e){i.forEach(e.nodes(),(function(t){var n=e.node(t);"edge-proxy"===n.dummy&&(e.edge(n.e).labelRank=n.rank,e.removeNode(t))}))}(e)})),t(" normalize.run",(function(){o.run(e)})),t(" parentDummyChains",(function(){l(e)})),t(" addBorderSegments",(function(){u(e)})),t(" order",(function(){f(e)})),t(" insertSelfEdges",(function(){!function(e){var t=p.buildLayerMatrix(e);i.forEach(t,(function(t){var n=0;i.forEach(t,(function(t,r){var o=e.node(t);o.order=r+n,i.forEach(o.selfEdges,(function(t){p.addDummyNode(e,"selfedge",{width:t.label.width,height:t.label.height,rank:o.rank,order:r+ ++n,e:t.e,label:t.label},"_se")})),delete o.selfEdges}))}))}(e)})),t(" adjustCoordinateSystem",(function(){h.adjust(e)})),t(" position",(function(){g(e)})),t(" positionSelfEdges",(function(){!function(e){i.forEach(e.nodes(),(function(t){var n=e.node(t);if("selfedge"===n.dummy){var i=e.node(n.e.v),r=i.x+i.width/2,o=i.y,s=n.x-r,a=i.height/2;e.setEdge(n.e,n.label),e.removeNode(t),n.label.points=[{x:r+2*s/3,y:o-a},{x:r+5*s/6,y:o-a},{x:r+s,y:o},{x:r+5*s/6,y:o+a},{x:r+2*s/3,y:o+a}],n.label.x=n.x,n.label.y=n.y}}))}(e)})),t(" removeBorderNodes",(function(){!function(e){i.forEach(e.nodes(),(function(t){if(e.children(t).length){var n=e.node(t),r=e.node(n.borderTop),o=e.node(n.borderBottom),s=e.node(i.last(n.borderLeft)),a=e.node(i.last(n.borderRight));n.width=Math.abs(a.x-s.x),n.height=Math.abs(o.y-r.y),n.x=s.x+n.width/2,n.y=r.y+n.height/2}})),i.forEach(e.nodes(),(function(t){"border"===e.node(t).dummy&&e.removeNode(t)}))}(e)})),t(" normalize.undo",(function(){o.undo(e)})),t(" fixupEdgeLabelCoords",(function(){!function(e){i.forEach(e.edges(),(function(t){var n=e.edge(t);if(i.has(n,"x"))switch("l"!==n.labelpos&&"r"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}}))}(e)})),t(" undoCoordinateSystem",(function(){h.undo(e)})),t(" translateGraph",(function(){!function(e){var t=Number.POSITIVE_INFINITY,n=0,r=Number.POSITIVE_INFINITY,o=0,s=e.graph(),a=s.marginx||0,l=s.marginy||0;function c(e){var i=e.x,s=e.y,a=e.width,l=e.height;t=Math.min(t,i-a/2),n=Math.max(n,i+a/2),r=Math.min(r,s-l/2),o=Math.max(o,s+l/2)}i.forEach(e.nodes(),(function(t){c(e.node(t))})),i.forEach(e.edges(),(function(t){var n=e.edge(t);i.has(n,"x")&&c(n)})),t-=a,r-=l,i.forEach(e.nodes(),(function(n){var i=e.node(n);i.x-=t,i.y-=r})),i.forEach(e.edges(),(function(n){var o=e.edge(n);i.forEach(o.points,(function(e){e.x-=t,e.y-=r})),i.has(o,"x")&&(o.x-=t),i.has(o,"y")&&(o.y-=r)})),s.width=n-t+a,s.height=o-r+l}(e)})),t(" assignNodeIntersects",(function(){!function(e){i.forEach(e.edges(),(function(t){var n,i,r=e.edge(t),o=e.node(t.v),s=e.node(t.w);r.points?(n=r.points[0],i=r.points[r.points.length-1]):(r.points=[],n=s,i=o),r.points.unshift(p.intersectRect(o,n)),r.points.push(p.intersectRect(s,i))}))}(e)})),t(" reversePoints",(function(){!function(e){i.forEach(e.edges(),(function(t){var n=e.edge(t);n.reversed&&n.points.reverse()}))}(e)})),t(" acyclic.undo",(function(){r.undo(e)}))}(t,n)})),n(" updateInputGraph",(function(){!function(e,t){i.forEach(e.nodes(),(function(n){var i=e.node(n),r=t.node(n);i&&(i.x=r.x,i.y=r.y,t.children(n).length&&(i.width=r.width,i.height=r.height))})),i.forEach(e.edges(),(function(n){var r=e.edge(n),o=t.edge(n);r.points=o.points,i.has(o,"x")&&(r.x=o.x,r.y=o.y)})),e.graph().width=t.graph().width,e.graph().height=t.graph().height}(e,t)}))}))};var _=["nodesep","edgesep","ranksep","marginx","marginy"],b={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},v=["acyclicer","ranker","rankdir","align"],y=["width","height"],w={width:0,height:0},C=["minlen","weight","width","height","labeloffset"],S={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},k=["labelpos"];function x(e,t){return i.mapValues(i.pick(e,t),Number)}function L(e){var t={};return i.forEach(e,(function(e,n){t[n.toLowerCase()]=e})),t}},function(e,t,n){"use strict";var i=n(75),r=n(822);e.exports={run:function(e){var t="greedy"===e.graph().acyclicer?r(e,function(e){return function(t){return e.edge(t).weight}}(e)):function(e){var t=[],n={},r={};return i.forEach(e.nodes(),(function o(s){if(i.has(r,s))return;r[s]=!0,n[s]=!0,i.forEach(e.outEdges(s),(function(e){i.has(n,e.w)?t.push(e):o(e.w)})),delete n[s]})),t}(e);i.forEach(t,(function(t){var n=e.edge(t);e.removeEdge(t),n.forwardName=t.name,n.reversed=!0,e.setEdge(t.w,t.v,n,i.uniqueId("rev"))}))},undo:function(e){i.forEach(e.edges(),(function(t){var n=e.edge(t);if(n.reversed){e.removeEdge(t);var i=n.forwardName;delete n.reversed,delete n.forwardName,e.setEdge(t.w,t.v,n,i)}}))}}},function(e,t,n){var i=n(75),r=n(143).Graph,o=n(823);e.exports=function(e,t){if(e.nodeCount()<=1)return[];var n=function(e,t){var n=new r,s=0,a=0;i.forEach(e.nodes(),(function(e){n.setNode(e,{v:e,in:0,out:0})})),i.forEach(e.edges(),(function(e){var i=n.edge(e.v,e.w)||0,r=t(e),o=i+r;n.setEdge(e.v,e.w,o),a=Math.max(a,n.node(e.v).out+=r),s=Math.max(s,n.node(e.w).in+=r)}));var c=i.range(a+s+3).map((function(){return new o})),d=s+1;return i.forEach(n.nodes(),(function(e){l(c,d,n.node(e))})),{graph:n,buckets:c,zeroIdx:d}}(e,t||s),c=function(e,t,n){var i,r=[],o=t[t.length-1],s=t[0];for(;e.nodeCount();){for(;i=s.dequeue();)a(e,t,n,i);for(;i=o.dequeue();)a(e,t,n,i);if(e.nodeCount())for(var l=t.length-2;l>0;--l)if(i=t[l].dequeue()){r=r.concat(a(e,t,n,i,!0));break}}return r}(n.graph,n.buckets,n.zeroIdx);return i.flatten(i.map(c,(function(t){return e.outEdges(t.v,t.w)})),!0)};var s=i.constant(1);function a(e,t,n,r,o){var s=o?[]:void 0;return i.forEach(e.inEdges(r.v),(function(i){var r=e.edge(i),a=e.node(i.v);o&&s.push({v:i.v,w:i.w}),a.out-=r,l(t,n,a)})),i.forEach(e.outEdges(r.v),(function(i){var r=e.edge(i),o=i.w,s=e.node(o);s.in-=r,l(t,n,s)})),e.removeNode(r.v),s}function l(e,t,n){n.out?n.in?e[n.out-n.in+t].enqueue(n):e[e.length-1].enqueue(n):e[0].enqueue(n)}},function(e,t){function n(){var e={};e._next=e._prev=e,this._sentinel=e}function i(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function r(e,t){if("_next"!==e&&"_prev"!==e)return t}e.exports=n,n.prototype.dequeue=function(){var e=this._sentinel,t=e._prev;if(t!==e)return i(t),t},n.prototype.enqueue=function(e){var t=this._sentinel;e._prev&&e._next&&i(e),e._next=t._next,t._next._prev=e,t._next=e,e._prev=t},n.prototype.toString=function(){for(var e=[],t=this._sentinel,n=t._prev;n!==t;)e.push(JSON.stringify(n,r)),n=n._prev;return"["+e.join(", ")+"]"}},function(e,t,n){"use strict";var i=n(75),r=n(119);e.exports={run:function(e){e.graph().dummyChains=[],i.forEach(e.edges(),(function(t){!function(e,t){var n,i,o,s=t.v,a=e.node(s).rank,l=t.w,c=e.node(l).rank,d=t.name,u=e.edge(t),h=u.labelRank;if(c===a+1)return;for(e.removeEdge(t),o=0,++a;a<c;++o,++a)u.points=[],i={width:0,height:0,edgeLabel:u,edgeObj:t,rank:a},n=r.addDummyNode(e,"edge",i,"_d"),a===h&&(i.width=u.width,i.height=u.height,i.dummy="edge-label",i.labelpos=u.labelpos),e.setEdge(s,n,{weight:u.weight},d),0===o&&e.graph().dummyChains.push(n),s=n;e.setEdge(s,l,{weight:u.weight},d)}(e,t)}))},undo:function(e){i.forEach(e.graph().dummyChains,(function(t){var n,i=e.node(t),r=i.edgeLabel;for(e.setEdge(i.edgeObj,r);i.dummy;)n=e.successors(t)[0],e.removeNode(t),r.points.push({x:i.x,y:i.y}),"edge-label"===i.dummy&&(r.x=i.x,r.y=i.y,r.width=i.width,r.height=i.height),t=n,i=e.node(t)}))}}},function(e,t,n){"use strict";var i=n(261).longestPath,r=n(421),o=n(826);e.exports=function(e){switch(e.graph().ranker){case"network-simplex":a(e);break;case"tight-tree":!function(e){i(e),r(e)}(e);break;case"longest-path":s(e);break;default:a(e)}};var s=i;function a(e){o(e)}},function(e,t,n){"use strict";var i=n(75),r=n(421),o=n(261).slack,s=n(261).longestPath,a=n(143).alg.preorder,l=n(143).alg.postorder,c=n(119).simplify;function d(e){e=c(e),s(e);var t,n=r(e);for(f(n),u(n,e);t=g(n);)m(n,e,t,p(n,e,t))}function u(e,t){var n=l(e,e.nodes());n=n.slice(0,n.length-1),i.forEach(n,(function(n){!function(e,t,n){var i=e.node(n).parent;e.edge(n,i).cutvalue=h(e,t,n)}(e,t,n)}))}function h(e,t,n){var r=e.node(n).parent,o=!0,s=t.edge(n,r),a=0;return s||(o=!1,s=t.edge(r,n)),a=s.weight,i.forEach(t.nodeEdges(n),(function(i){var s,l,c=i.v===n,d=c?i.w:i.v;if(d!==r){var u=c===o,h=t.edge(i).weight;if(a+=u?h:-h,s=n,l=d,e.hasEdge(s,l)){var f=e.edge(n,d).cutvalue;a+=u?-f:f}}})),a}function f(e,t){arguments.length<2&&(t=e.nodes()[0]),function e(t,n,r,o,s){var a=r,l=t.node(o);n[o]=!0,i.forEach(t.neighbors(o),(function(s){i.has(n,s)||(r=e(t,n,r,s,o))})),l.low=a,l.lim=r++,s?l.parent=s:delete l.parent;return r}(e,{},1,t)}function g(e){return i.find(e.edges(),(function(t){return e.edge(t).cutvalue<0}))}function p(e,t,n){var r=n.v,s=n.w;t.hasEdge(r,s)||(r=n.w,s=n.v);var a=e.node(r),l=e.node(s),c=a,d=!1;a.lim>l.lim&&(c=l,d=!0);var u=i.filter(t.edges(),(function(t){return d===_(e,e.node(t.v),c)&&d!==_(e,e.node(t.w),c)}));return i.minBy(u,(function(e){return o(t,e)}))}function m(e,t,n,r){var o=n.v,s=n.w;e.removeEdge(o,s),e.setEdge(r.v,r.w,{}),f(e),u(e,t),function(e,t){var n=i.find(e.nodes(),(function(e){return!t.node(e).parent})),r=a(e,n);r=r.slice(1),i.forEach(r,(function(n){var i=e.node(n).parent,r=t.edge(n,i),o=!1;r||(r=t.edge(i,n),o=!0),t.node(n).rank=t.node(i).rank+(o?r.minlen:-r.minlen)}))}(e,t)}function _(e,t,n){return n.low<=t.lim&&t.lim<=n.lim}e.exports=d,d.initLowLimValues=f,d.initCutValues=u,d.calcCutValue=h,d.leaveEdge=g,d.enterEdge=p,d.exchangeEdges=m},function(e,t,n){var i=n(75);e.exports=function(e){var t=function(e){var t={},n=0;return i.forEach(e.children(),(function r(o){var s=n;i.forEach(e.children(o),r),t[o]={low:s,lim:n++}})),t}(e);i.forEach(e.graph().dummyChains,(function(n){for(var i=e.node(n),r=i.edgeObj,o=function(e,t,n,i){var r,o,s=[],a=[],l=Math.min(t[n].low,t[i].low),c=Math.max(t[n].lim,t[i].lim);r=n;do{r=e.parent(r),s.push(r)}while(r&&(t[r].low>l||c>t[r].lim));o=r,r=i;for(;(r=e.parent(r))!==o;)a.push(r);return{path:s.concat(a.reverse()),lca:o}}(e,t,r.v,r.w),s=o.path,a=o.lca,l=0,c=s[l],d=!0;n!==r.w;){if(i=e.node(n),d){for(;(c=s[l])!==a&&e.node(c).maxRank<i.rank;)l++;c===a&&(d=!1)}if(!d){for(;l<s.length-1&&e.node(c=s[l+1]).minRank<=i.rank;)l++;c=s[l]}e.setParent(n,c),n=e.successors(n)[0]}}))}},function(e,t,n){var i=n(75),r=n(119);e.exports={run:function(e){var t=r.addDummyNode(e,"root",{},"_root"),n=function(e){var t={};return i.forEach(e.children(),(function(n){!function n(r,o){var s=e.children(r);s&&s.length&&i.forEach(s,(function(e){n(e,o+1)}));t[r]=o}(n,1)})),t}(e),o=i.max(i.values(n))-1,s=2*o+1;e.graph().nestingRoot=t,i.forEach(e.edges(),(function(t){e.edge(t).minlen*=s}));var a=function(e){return i.reduce(e.edges(),(function(t,n){return t+e.edge(n).weight}),0)}(e)+1;i.forEach(e.children(),(function(l){!function e(t,n,o,s,a,l,c){var d=t.children(c);if(!d.length)return void(c!==n&&t.setEdge(n,c,{weight:0,minlen:o}));var u=r.addBorderNode(t,"_bt"),h=r.addBorderNode(t,"_bb"),f=t.node(c);t.setParent(u,c),f.borderTop=u,t.setParent(h,c),f.borderBottom=h,i.forEach(d,(function(i){e(t,n,o,s,a,l,i);var r=t.node(i),d=r.borderTop?r.borderTop:i,f=r.borderBottom?r.borderBottom:i,g=r.borderTop?s:2*s,p=d!==f?1:a-l[c]+1;t.setEdge(u,d,{weight:g,minlen:p,nestingEdge:!0}),t.setEdge(f,h,{weight:g,minlen:p,nestingEdge:!0})})),t.parent(c)||t.setEdge(n,u,{weight:0,minlen:a+l[c]})}(e,t,s,a,o,n,l)})),e.graph().nodeRankFactor=s},cleanup:function(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,i.forEach(e.edges(),(function(t){e.edge(t).nestingEdge&&e.removeEdge(t)}))}}},function(e,t,n){var i=n(75),r=n(119);function o(e,t,n,i,o,s){var a={width:0,height:0,rank:s,borderType:t},l=o[t][s-1],c=r.addDummyNode(e,"border",a,n);o[t][s]=c,e.setParent(c,i),l&&e.setEdge(l,c,{weight:1})}e.exports=function(e){i.forEach(e.children(),(function t(n){var r=e.children(n),s=e.node(n);if(r.length&&i.forEach(r,t),i.has(s,"minRank")){s.borderLeft=[],s.borderRight=[];for(var a=s.minRank,l=s.maxRank+1;a<l;++a)o(e,"borderLeft","_bl",n,s,a),o(e,"borderRight","_br",n,s,a)}}))}},function(e,t,n){"use strict";var i=n(75);function r(e){i.forEach(e.nodes(),(function(t){o(e.node(t))})),i.forEach(e.edges(),(function(t){o(e.edge(t))}))}function o(e){var t=e.width;e.width=e.height,e.height=t}function s(e){e.y=-e.y}function a(e){var t=e.x;e.x=e.y,e.y=t}e.exports={adjust:function(e){var t=e.graph().rankdir.toLowerCase();"lr"!==t&&"rl"!==t||r(e)},undo:function(e){var t=e.graph().rankdir.toLowerCase();"bt"!==t&&"rl"!==t||function(e){i.forEach(e.nodes(),(function(t){s(e.node(t))})),i.forEach(e.edges(),(function(t){var n=e.edge(t);i.forEach(n.points,s),i.has(n,"y")&&s(n)}))}(e);"lr"!==t&&"rl"!==t||(!function(e){i.forEach(e.nodes(),(function(t){a(e.node(t))})),i.forEach(e.edges(),(function(t){var n=e.edge(t);i.forEach(n.points,a),i.has(n,"x")&&a(n)}))}(e),r(e))}}},function(e,t,n){"use strict";var i=n(75),r=n(832),o=n(833),s=n(834),a=n(838),l=n(839),c=n(143).Graph,d=n(119);function u(e,t,n){return i.map(t,(function(t){return a(e,t,n)}))}function h(e,t){var n=new c;i.forEach(e,(function(e){var r=e.graph().root,o=s(e,r,n,t);i.forEach(o.vs,(function(t,n){e.node(t).order=n})),l(e,n,o.vs)}))}function f(e,t){i.forEach(t,(function(t){i.forEach(t,(function(t,n){e.node(t).order=n}))}))}e.exports=function(e){var t=d.maxRank(e),n=u(e,i.range(1,t+1),"inEdges"),s=u(e,i.range(t-1,-1,-1),"outEdges"),a=r(e);f(e,a);for(var l,c=Number.POSITIVE_INFINITY,g=0,p=0;p<4;++g,++p){h(g%2?n:s,g%4>=2),a=d.buildLayerMatrix(e);var m=o(e,a);m<c&&(p=0,l=i.cloneDeep(a),c=m)}f(e,l)}},function(e,t,n){"use strict";var i=n(75);e.exports=function(e){var t={},n=i.filter(e.nodes(),(function(t){return!e.children(t).length})),r=i.max(i.map(n,(function(t){return e.node(t).rank}))),o=i.map(i.range(r+1),(function(){return[]}));var s=i.sortBy(n,(function(t){return e.node(t).rank}));return i.forEach(s,(function n(r){if(i.has(t,r))return;t[r]=!0;var s=e.node(r);o[s.rank].push(r),i.forEach(e.successors(r),n)})),o}},function(e,t,n){"use strict";var i=n(75);function r(e,t,n){for(var r=i.zipObject(n,i.map(n,(function(e,t){return t}))),o=i.flatten(i.map(t,(function(t){return i.sortBy(i.map(e.outEdges(t),(function(t){return{pos:r[t.w],weight:e.edge(t).weight}})),"pos")})),!0),s=1;s<n.length;)s<<=1;var a=2*s-1;s-=1;var l=i.map(new Array(a),(function(){return 0})),c=0;return i.forEach(o.forEach((function(e){var t=e.pos+s;l[t]+=e.weight;for(var n=0;t>0;)t%2&&(n+=l[t+1]),l[t=t-1>>1]+=e.weight;c+=e.weight*n}))),c}e.exports=function(e,t){for(var n=0,i=1;i<t.length;++i)n+=r(e,t[i-1],t[i]);return n}},function(e,t,n){var i=n(75),r=n(835),o=n(836),s=n(837);e.exports=function e(t,n,a,l){var c=t.children(n),d=t.node(n),u=d?d.borderLeft:void 0,h=d?d.borderRight:void 0,f={};u&&(c=i.filter(c,(function(e){return e!==u&&e!==h})));var g=r(t,c);i.forEach(g,(function(n){if(t.children(n.v).length){var r=e(t,n.v,a,l);f[n.v]=r,i.has(r,"barycenter")&&(o=n,s=r,i.isUndefined(o.barycenter)?(o.barycenter=s.barycenter,o.weight=s.weight):(o.barycenter=(o.barycenter*o.weight+s.barycenter*s.weight)/(o.weight+s.weight),o.weight+=s.weight))}var o,s}));var p=o(g,a);!function(e,t){i.forEach(e,(function(e){e.vs=i.flatten(e.vs.map((function(e){return t[e]?t[e].vs:e})),!0)}))}(p,f);var m=s(p,l);if(u&&(m.vs=i.flatten([u,m.vs,h],!0),t.predecessors(u).length)){var _=t.node(t.predecessors(u)[0]),b=t.node(t.predecessors(h)[0]);i.has(m,"barycenter")||(m.barycenter=0,m.weight=0),m.barycenter=(m.barycenter*m.weight+_.order+b.order)/(m.weight+2),m.weight+=2}return m}},function(e,t,n){var i=n(75);e.exports=function(e,t){return i.map(t,(function(t){var n=e.inEdges(t);if(n.length){var r=i.reduce(n,(function(t,n){var i=e.edge(n),r=e.node(n.v);return{sum:t.sum+i.weight*r.order,weight:t.weight+i.weight}}),{sum:0,weight:0});return{v:t,barycenter:r.sum/r.weight,weight:r.weight}}return{v:t}}))}},function(e,t,n){"use strict";var i=n(75);e.exports=function(e,t){var n={};return i.forEach(e,(function(e,t){var r=n[e.v]={indegree:0,in:[],out:[],vs:[e.v],i:t};i.isUndefined(e.barycenter)||(r.barycenter=e.barycenter,r.weight=e.weight)})),i.forEach(t.edges(),(function(e){var t=n[e.v],r=n[e.w];i.isUndefined(t)||i.isUndefined(r)||(r.indegree++,t.out.push(n[e.w]))})),function(e){var t=[];function n(e){return function(t){t.merged||(i.isUndefined(t.barycenter)||i.isUndefined(e.barycenter)||t.barycenter>=e.barycenter)&&function(e,t){var n=0,i=0;e.weight&&(n+=e.barycenter*e.weight,i+=e.weight);t.weight&&(n+=t.barycenter*t.weight,i+=t.weight);e.vs=t.vs.concat(e.vs),e.barycenter=n/i,e.weight=i,e.i=Math.min(t.i,e.i),t.merged=!0}(e,t)}}function r(t){return function(n){n.in.push(t),0==--n.indegree&&e.push(n)}}for(;e.length;){var o=e.pop();t.push(o),i.forEach(o.in.reverse(),n(o)),i.forEach(o.out,r(o))}return i.map(i.filter(t,(function(e){return!e.merged})),(function(e){return i.pick(e,["vs","i","barycenter","weight"])}))}(i.filter(n,(function(e){return!e.indegree})))}},function(e,t,n){var i=n(75),r=n(119);function o(e,t,n){for(var r;t.length&&(r=i.last(t)).i<=n;)t.pop(),e.push(r.vs),n++;return n}e.exports=function(e,t){var n=r.partition(e,(function(e){return i.has(e,"barycenter")})),s=n.lhs,a=i.sortBy(n.rhs,(function(e){return-e.i})),l=[],c=0,d=0,u=0;s.sort((h=!!t,function(e,t){return e.barycenter<t.barycenter?-1:e.barycenter>t.barycenter?1:h?t.i-e.i:e.i-t.i})),u=o(l,a,u),i.forEach(s,(function(e){u+=e.vs.length,l.push(e.vs),c+=e.barycenter*e.weight,d+=e.weight,u=o(l,a,u)}));var h;var f={vs:i.flatten(l,!0)};d&&(f.barycenter=c/d,f.weight=d);return f}},function(e,t,n){var i=n(75),r=n(143).Graph;e.exports=function(e,t,n){var o=function(e){var t;for(;e.hasNode(t=i.uniqueId("_root")););return t}(e),s=new r({compound:!0}).setGraph({root:o}).setDefaultNodeLabel((function(t){return e.node(t)}));return i.forEach(e.nodes(),(function(r){var a=e.node(r),l=e.parent(r);(a.rank===t||a.minRank<=t&&t<=a.maxRank)&&(s.setNode(r),s.setParent(r,l||o),i.forEach(e[n](r),(function(t){var n=t.v===r?t.w:t.v,o=s.edge(n,r),a=i.isUndefined(o)?0:o.weight;s.setEdge(n,r,{weight:e.edge(t).weight+a})})),i.has(a,"minRank")&&s.setNode(r,{borderLeft:a.borderLeft[t],borderRight:a.borderRight[t]}))})),s}},function(e,t,n){var i=n(75);e.exports=function(e,t,n){var r,o={};i.forEach(n,(function(n){for(var i,s,a=e.parent(n);a;){if((i=e.parent(a))?(s=o[i],o[i]=a):(s=r,r=a),s&&s!==a)return void t.setEdge(s,a);a=i}}))}},function(e,t,n){"use strict";var i=n(75),r=n(119),o=n(841).positionX;e.exports=function(e){(function(e){var t=r.buildLayerMatrix(e),n=e.graph().ranksep,o=0;i.forEach(t,(function(t){var r=i.max(i.map(t,(function(t){return e.node(t).height})));i.forEach(t,(function(t){e.node(t).y=o+r/2})),o+=r+n}))})(e=r.asNonCompoundGraph(e)),i.forEach(o(e),(function(t,n){e.node(n).x=t}))}},function(e,t,n){"use strict";var i=n(75),r=n(143).Graph,o=n(119);function s(e,t){var n={};return i.reduce(t,(function(t,r){var o=0,s=0,a=t.length,c=i.last(r);return i.forEach(r,(function(t,d){var u=function(e,t){if(e.node(t).dummy)return i.find(e.predecessors(t),(function(t){return e.node(t).dummy}))}(e,t),h=u?e.node(u).order:a;(u||t===c)&&(i.forEach(r.slice(s,d+1),(function(t){i.forEach(e.predecessors(t),(function(i){var r=e.node(i),s=r.order;!(s<o||h<s)||r.dummy&&e.node(t).dummy||l(n,i,t)}))})),s=d+1,o=h)})),r})),n}function a(e,t){var n={};function r(t,r,o,s,a){var c;i.forEach(i.range(r,o),(function(r){c=t[r],e.node(c).dummy&&i.forEach(e.predecessors(c),(function(t){var i=e.node(t);i.dummy&&(i.order<s||i.order>a)&&l(n,t,c)}))}))}return i.reduce(t,(function(t,n){var o,s=-1,a=0;return i.forEach(n,(function(i,l){if("border"===e.node(i).dummy){var c=e.predecessors(i);c.length&&(o=e.node(c[0]).order,r(n,a,l,s,o),a=l,s=o)}r(n,a,n.length,o,t.length)})),n})),n}function l(e,t,n){if(t>n){var i=t;t=n,n=i}var r=e[t];r||(e[t]=r={}),r[n]=!0}function c(e,t,n){if(t>n){var r=t;t=n,n=r}return i.has(e[t],n)}function d(e,t,n,r){var o={},s={},a={};return i.forEach(t,(function(e){i.forEach(e,(function(e,t){o[e]=e,s[e]=e,a[e]=t}))})),i.forEach(t,(function(e){var t=-1;i.forEach(e,(function(e){var l=r(e);if(l.length)for(var d=((l=i.sortBy(l,(function(e){return a[e]}))).length-1)/2,u=Math.floor(d),h=Math.ceil(d);u<=h;++u){var f=l[u];s[e]===e&&t<a[f]&&!c(n,e,f)&&(s[f]=e,s[e]=o[e]=o[f],t=a[f])}}))})),{root:o,align:s}}function u(e,t,n,o,s){var a={},l=function(e,t,n,o){var s=new r,a=e.graph(),l=function(e,t,n){return function(r,o,s){var a,l=r.node(o),c=r.node(s),d=0;if(d+=l.width/2,i.has(l,"labelpos"))switch(l.labelpos.toLowerCase()){case"l":a=-l.width/2;break;case"r":a=l.width/2}if(a&&(d+=n?a:-a),a=0,d+=(l.dummy?t:e)/2,d+=(c.dummy?t:e)/2,d+=c.width/2,i.has(c,"labelpos"))switch(c.labelpos.toLowerCase()){case"l":a=c.width/2;break;case"r":a=-c.width/2}return a&&(d+=n?a:-a),a=0,d}}(a.nodesep,a.edgesep,o);return i.forEach(t,(function(t){var r;i.forEach(t,(function(t){var i=n[t];if(s.setNode(i),r){var o=n[r],a=s.edge(o,i);s.setEdge(o,i,Math.max(l(e,t,r),a||0))}r=t}))})),s}(e,t,n,s),c=s?"borderLeft":"borderRight";function d(e,t){for(var n=l.nodes(),i=n.pop(),r={};i;)r[i]?e(i):(r[i]=!0,n.push(i),n=n.concat(t(i))),i=n.pop()}return d((function(e){a[e]=l.inEdges(e).reduce((function(e,t){return Math.max(e,a[t.v]+l.edge(t))}),0)}),l.predecessors.bind(l)),d((function(t){var n=l.outEdges(t).reduce((function(e,t){return Math.min(e,a[t.w]-l.edge(t))}),Number.POSITIVE_INFINITY),i=e.node(t);n!==Number.POSITIVE_INFINITY&&i.borderType!==c&&(a[t]=Math.max(a[t],n))}),l.successors.bind(l)),i.forEach(o,(function(e){a[e]=a[n[e]]})),a}function h(e,t){return i.minBy(i.values(t),(function(t){var n=Number.NEGATIVE_INFINITY,r=Number.POSITIVE_INFINITY;return i.forIn(t,(function(t,i){var o=function(e,t){return e.node(t).width}(e,i)/2;n=Math.max(t+o,n),r=Math.min(t-o,r)})),n-r}))}function f(e,t){var n=i.values(t),r=i.min(n),o=i.max(n);i.forEach(["u","d"],(function(n){i.forEach(["l","r"],(function(s){var a,l=n+s,c=e[l];if(c!==t){var d=i.values(c);(a="l"===s?r-i.min(d):o-i.max(d))&&(e[l]=i.mapValues(c,(function(e){return e+a})))}}))}))}function g(e,t){return i.mapValues(e.ul,(function(n,r){if(t)return e[t.toLowerCase()][r];var o=i.sortBy(i.map(e,r));return(o[1]+o[2])/2}))}e.exports={positionX:function(e){var t,n=o.buildLayerMatrix(e),r=i.merge(s(e,n),a(e,n)),l={};i.forEach(["u","d"],(function(o){t="u"===o?n:i.values(n).reverse(),i.forEach(["l","r"],(function(n){"r"===n&&(t=i.map(t,(function(e){return i.values(e).reverse()})));var s=("u"===o?e.predecessors:e.successors).bind(e),a=d(e,t,r,s),c=u(e,t,a.root,a.align,"r"===n);"r"===n&&(c=i.mapValues(c,(function(e){return-e}))),l[o+n]=c}))}));var c=h(e,l);return f(l,c),g(l,e.graph().align)},findType1Conflicts:s,findType2Conflicts:a,addConflict:l,hasConflict:c,verticalAlignment:d,horizontalCompaction:u,alignCoordinates:f,findSmallestWidthAlignment:h,balance:g}},function(e,t,n){var i=n(75),r=n(119),o=n(143).Graph;e.exports={debugOrdering:function(e){var t=r.buildLayerMatrix(e),n=new o({compound:!0,multigraph:!0}).setGraph({});return i.forEach(e.nodes(),(function(t){n.setNode(t,{label:t}),n.setParent(t,"layer"+e.node(t).rank)})),i.forEach(e.edges(),(function(e){n.setEdge(e.v,e.w,{},e.name)})),i.forEach(t,(function(e,t){var r="layer"+t;n.setNode(r,{rank:"same"}),i.reduce(e,(function(e,t){return n.setEdge(e,t,{style:"invis"}),t}))})),n}}},function(e,t){e.exports="0.8.5"},function(e,t,n){e.exports={node:n(422),circle:n(423),ellipse:n(319),polygon:n(424),rect:n(425)}},function(e,t){function n(e,t){return e*t>0}e.exports=function(e,t,i,r){var o,s,a,l,c,d,u,h,f,g,p,m,_;if(o=t.y-e.y,a=e.x-t.x,c=t.x*e.y-e.x*t.y,f=o*i.x+a*i.y+c,g=o*r.x+a*r.y+c,0!==f&&0!==g&&n(f,g))return;if(s=r.y-i.y,l=i.x-r.x,d=r.x*i.y-i.x*r.y,u=s*e.x+l*e.y+d,h=s*t.x+l*t.y+d,0!==u&&0!==h&&n(u,h))return;if(0===(p=o*l-s*a))return;return m=Math.abs(p/2),{x:(_=a*d-l*c)<0?(_-m)/p:(_+m)/p,y:(_=s*c-o*d)<0?(_-m)/p:(_+m)/p}}},function(e,t,n){var i=n(197),r=n(166),o=n(420).layout;e.exports=function(){var e=n(847),t=n(850),r=n(851),c=n(852),d=n(853),u=n(854),h=n(855),f=n(856),g=n(857),p=function(n,p){!function(e){e.nodes().forEach((function(t){var n=e.node(t);i.has(n,"label")||e.children(t).length||(n.label=t),i.has(n,"paddingX")&&i.defaults(n,{paddingLeft:n.paddingX,paddingRight:n.paddingX}),i.has(n,"paddingY")&&i.defaults(n,{paddingTop:n.paddingY,paddingBottom:n.paddingY}),i.has(n,"padding")&&i.defaults(n,{paddingLeft:n.padding,paddingRight:n.padding,paddingTop:n.padding,paddingBottom:n.padding}),i.defaults(n,s),i.each(["paddingLeft","paddingRight","paddingTop","paddingBottom"],(function(e){n[e]=Number(n[e])})),i.has(n,"width")&&(n._prevWidth=n.width),i.has(n,"height")&&(n._prevHeight=n.height)})),e.edges().forEach((function(t){var n=e.edge(t);i.has(n,"label")||(n.label=""),i.defaults(n,a)}))}(p);var m=l(n,"output"),_=l(m,"clusters"),b=l(m,"edgePaths"),v=r(l(m,"edgeLabels"),p),y=e(l(m,"nodes"),p,f);o(p),d(y,p),u(v,p),c(b,p,g);var w=t(_,p);h(w,p),function(e){i.each(e.nodes(),(function(t){var n=e.node(t);i.has(n,"_prevWidth")?n.width=n._prevWidth:delete n.width,i.has(n,"_prevHeight")?n.height=n._prevHeight:delete n.height,delete n._prevWidth,delete n._prevHeight}))}(p)};return p.createNodes=function(t){return arguments.length?(e=t,p):e},p.createClusters=function(e){return arguments.length?(t=e,p):t},p.createEdgeLabels=function(e){return arguments.length?(r=e,p):r},p.createEdgePaths=function(e){return arguments.length?(c=e,p):c},p.shapes=function(e){return arguments.length?(f=e,p):f},p.arrows=function(e){return arguments.length?(g=e,p):g},p};var s={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},a={arrowhead:"normal",curve:r.curveLinear};function l(e,t){var n=e.select("g."+t);return n.empty()&&(n=e.append("g").attr("class",t)),n}},function(e,t,n){"use strict";var i=n(197),r=n(320),o=n(134),s=n(166);e.exports=function(e,t,n){var a,l=t.nodes().filter((function(e){return!o.isSubgraph(t,e)})),c=e.selectAll("g.node").data(l,(function(e){return e})).classed("update",!0);c.exit().remove(),c.enter().append("g").attr("class","node").style("opacity",0),(c=e.selectAll("g.node")).each((function(e){var a=t.node(e),l=s.select(this);o.applyClass(l,a.class,(l.classed("update")?"update ":"")+"node"),l.select("g.label").remove();var c=l.append("g").attr("class","label"),d=r(c,a),u=n[a.shape],h=i.pick(d.node().getBBox(),"width","height");a.elem=this,a.id&&l.attr("id",a.id),a.labelId&&c.attr("id",a.labelId),i.has(a,"width")&&(h.width=a.width),i.has(a,"height")&&(h.height=a.height),h.width+=a.paddingLeft+a.paddingRight,h.height+=a.paddingTop+a.paddingBottom,c.attr("transform","translate("+(a.paddingLeft-a.paddingRight)/2+","+(a.paddingTop-a.paddingBottom)/2+")");var f=s.select(this);f.select(".label-container").remove();var g=u(f,h,a).classed("label-container",!0);o.applyStyle(g,a.style);var p=g.node().getBBox();a.width=p.width,a.height=p.height})),a=c.exit?c.exit():c.selectAll(null);return o.applyTransition(a,t).style("opacity",0).remove(),c}},function(e,t,n){var i=n(134);e.exports=function(e,t){for(var n=e.append("text"),r=function(e){for(var t,n="",i=!1,r=0;r<e.length;++r)if(t=e[r],i){switch(t){case"n":n+="\n";break;default:n+=t}i=!1}else"\\"===t?i=!0:n+=t;return n}(t.label).split("\n"),o=0;o<r.length;o++)n.append("tspan").attr("xml:space","preserve").attr("dy","1em").attr("x","1").text(r[o]);return i.applyStyle(n,t.labelStyle),n}},function(e,t,n){var i=n(134);e.exports=function(e,t){var n=e;return n.node().appendChild(t.label),i.applyStyle(n,t.labelStyle),n}},function(e,t,n){var i=n(134),r=n(166),o=n(320);e.exports=function(e,t){var n,s=t.nodes().filter((function(e){return i.isSubgraph(t,e)})),a=e.selectAll("g.cluster").data(s,(function(e){return e}));a.selectAll("*").remove(),a.enter().append("g").attr("class","cluster").attr("id",(function(e){return t.node(e).id})).style("opacity",0),a=e.selectAll("g.cluster"),i.applyTransition(a,t).style("opacity",1),a.each((function(e){var n=t.node(e),i=r.select(this);r.select(this).append("rect");var s=i.append("g").attr("class","label");o(s,n,n.clusterLabelPos)})),a.selectAll("rect").each((function(e){var n=t.node(e),o=r.select(this);i.applyStyle(o,n.style)})),n=a.exit?a.exit():a.selectAll(null);return i.applyTransition(n,t).style("opacity",0).remove(),a}},function(e,t,n){"use strict";var i=n(197),r=n(320),o=n(134),s=n(166);e.exports=function(e,t){var n,a=e.selectAll("g.edgeLabel").data(t.edges(),(function(e){return o.edgeToId(e)})).classed("update",!0);a.exit().remove(),a.enter().append("g").classed("edgeLabel",!0).style("opacity",0),(a=e.selectAll("g.edgeLabel")).each((function(e){var n=s.select(this);n.select(".label").remove();var o=t.edge(e),a=r(n,t.edge(e),0,0).classed("label",!0),l=a.node().getBBox();o.labelId&&a.attr("id",o.labelId),i.has(o,"width")||(o.width=l.width),i.has(o,"height")||(o.height=l.height)})),n=a.exit?a.exit():a.selectAll(null);return o.applyTransition(n,t).style("opacity",0).remove(),a}},function(e,t,n){"use strict";var i=n(197),r=n(422),o=n(134),s=n(166);function a(e,t){var n=(s.line||s.svg.line)().x((function(e){return e.x})).y((function(e){return e.y}));return(n.curve||n.interpolate)(e.curve),n(t)}e.exports=function(e,t,n){var l=e.selectAll("g.edgePath").data(t.edges(),(function(e){return o.edgeToId(e)})).classed("update",!0),c=function(e,t){var n=e.enter().append("g").attr("class","edgePath").style("opacity",0);return n.append("path").attr("class","path").attr("d",(function(e){var n=t.edge(e),r=t.node(e.v).elem;return a(n,i.range(n.points.length).map((function(){return t=(e=r).getBBox(),{x:(n=e.ownerSVGElement.getScreenCTM().inverse().multiply(e.getScreenCTM()).translate(t.width/2,t.height/2)).e,y:n.f};var e,t,n})))})),n.append("defs"),n}(l,t);!function(e,t){var n=e.exit();o.applyTransition(n,t).style("opacity",0).remove()}(l,t);var d=void 0!==l.merge?l.merge(c):l;return o.applyTransition(d,t).style("opacity",1),d.each((function(e){var n=s.select(this),i=t.edge(e);i.elem=this,i.id&&n.attr("id",i.id),o.applyClass(n,i.class,(n.classed("update")?"update ":"")+"edgePath")})),d.selectAll("path.path").each((function(e){var n=t.edge(e);n.arrowheadId=i.uniqueId("arrowhead");var l=s.select(this).attr("marker-end",(function(){return"url("+(e=location.href,t=n.arrowheadId,e.split("#")[0]+"#"+t)+")";var e,t})).style("fill","none");o.applyTransition(l,t).attr("d",(function(e){return function(e,t){var n=e.edge(t),i=e.node(t.v),o=e.node(t.w),s=n.points.slice(1,n.points.length-1);return s.unshift(r(i,s[0])),s.push(r(o,s[s.length-1])),a(n,s)}(t,e)})),o.applyStyle(l,n.style)})),d.selectAll("defs *").remove(),d.selectAll("defs").each((function(e){var i=t.edge(e);(0,n[i.arrowhead])(s.select(this),i.arrowheadId,i,"arrowhead")})),d}},function(e,t,n){"use strict";var i=n(134),r=n(166);e.exports=function(e,t){function n(e){var n=t.node(e);return"translate("+n.x+","+n.y+")"}e.filter((function(){return!r.select(this).classed("update")})).attr("transform",n),i.applyTransition(e,t).style("opacity",1).attr("transform",n)}},function(e,t,n){"use strict";var i=n(134),r=n(166),o=n(197);e.exports=function(e,t){function n(e){var n=t.edge(e);return o.has(n,"x")?"translate("+n.x+","+n.y+")":""}e.filter((function(){return!r.select(this).classed("update")})).attr("transform",n),i.applyTransition(e,t).style("opacity",1).attr("transform",n)}},function(e,t,n){"use strict";var i=n(134),r=n(166);e.exports=function(e,t){var n=e.filter((function(){return!r.select(this).classed("update")}));function o(e){var n=t.node(e);return"translate("+n.x+","+n.y+")"}n.attr("transform",o),i.applyTransition(e,t).style("opacity",1).attr("transform",o),i.applyTransition(n.selectAll("rect"),t).attr("width",(function(e){return t.node(e).width})).attr("height",(function(e){return t.node(e).height})).attr("x",(function(e){return-t.node(e).width/2})).attr("y",(function(e){return-t.node(e).height/2}))}},function(e,t,n){"use strict";var i=n(425),r=n(319),o=n(423),s=n(424);e.exports={rect:function(e,t,n){var r=e.insert("rect",":first-child").attr("rx",n.rx).attr("ry",n.ry).attr("x",-t.width/2).attr("y",-t.height/2).attr("width",t.width).attr("height",t.height);return n.intersect=function(e){return i(n,e)},r},ellipse:function(e,t,n){var i=t.width/2,o=t.height/2,s=e.insert("ellipse",":first-child").attr("x",-t.width/2).attr("y",-t.height/2).attr("rx",i).attr("ry",o);return n.intersect=function(e){return r(n,i,o,e)},s},circle:function(e,t,n){var i=Math.max(t.width,t.height)/2,r=e.insert("circle",":first-child").attr("x",-t.width/2).attr("y",-t.height/2).attr("r",i);return n.intersect=function(e){return o(n,i,e)},r},diamond:function(e,t,n){var i=t.width*Math.SQRT2/2,r=t.height*Math.SQRT2/2,o=[{x:0,y:-r},{x:-i,y:0},{x:0,y:r},{x:i,y:0}],a=e.insert("polygon",":first-child").attr("points",o.map((function(e){return e.x+","+e.y})).join(" "));return n.intersect=function(e){return s(n,o,e)},a}}},function(e,t,n){var i=n(134);function r(e,t,n,r){var o=e.append("marker").attr("id",t).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");i.applyStyle(o,n[r+"Style"]),n[r+"Class"]&&o.attr("class",n[r+"Class"])}e.exports={default:r,normal:r,vee:function(e,t,n,r){var o=e.append("marker").attr("id",t).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 L 4 5 z").style("stroke-width",1).style("stroke-dasharray","1,0");i.applyStyle(o,n[r+"Style"]),n[r+"Class"]&&o.attr("class",n[r+"Class"])},undirected:function(e,t,n,r){var o=e.append("marker").attr("id",t).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");i.applyStyle(o,n[r+"Style"]),n[r+"Class"]&&o.attr("class",n[r+"Class"])}}},function(e,t){e.exports="0.6.4"},function(e,t,n){"use strict";var i;function r(e){return i=i||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),i.innerHTML=e,unescape(i.textContent)}n.r(t),n.d(t,"default",(function(){return r}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(861))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(262);t.hex=i.default;var r=n(262);t.rgb=r.default;var o=n(262);t.rgba=o.default;var s=n(428);t.hsl=s.default;var a=n(428);t.hsla=a.default;var l=n(167);t.channel=l.default;var c=n(871);t.red=c.default;var d=n(872);t.green=d.default;var u=n(873);t.blue=u.default;var h=n(874);t.hue=h.default;var f=n(875);t.saturation=f.default;var g=n(876);t.lightness=g.default;var p=n(429);t.alpha=p.default;var m=n(429);t.opacity=m.default;var _=n(430);t.luminance=_.default;var b=n(877);t.isDark=b.default;var v=n(431);t.isLight=v.default;var y=n(878);t.isValid=y.default;var w=n(879);t.saturate=w.default;var C=n(880);t.desaturate=C.default;var S=n(881);t.lighten=S.default;var k=n(882);t.darken=k.default;var x=n(432);t.opacify=x.default;var L=n(432);t.fadeIn=L.default;var M=n(433);t.transparentize=M.default;var D=n(433);t.fadeOut=D.default;var E=n(883);t.complement=E.default;var T=n(884);t.grayscale=T.default;var O=n(434);t.adjust=O.default;var N=n(263);t.change=N.default;var I=n(885);t.invert=I.default;var A=n(435);t.mix=A.default;var R=n(886);t.scale=R.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:function(e){return e>=255?255:e<0?0:e},g:function(e){return e>=255?255:e<0?0:e},b:function(e){return e>=255?255:e<0?0:e},h:function(e){return e%360},s:function(e){return e>=100?100:e<0?0:e},l:function(e){return e>=100?100:e<0?0:e},a:function(e){return e>=1?1:e<0?0:e}},toLinear:function(e){var t=e/255;return e>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92},hue2rgb:function(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e},hsl2rgb:function(e,t){var n=e.h,r=e.s,o=e.l;if(100===r)return 2.55*o;n/=360,r/=100;var s=(o/=100)<.5?o*(1+r):o+r-o*r,a=2*o-s;switch(t){case"r":return 255*i.hue2rgb(a,s,n+1/3);case"g":return 255*i.hue2rgb(a,s,n);case"b":return 255*i.hue2rgb(a,s,n-1/3)}},rgb2hsl:function(e,t){var n=e.r,i=e.g,r=e.b;n/=255,i/=255,r/=255;var o=Math.max(n,i,r),s=Math.min(n,i,r),a=(o+s)/2;if("l"===t)return 100*a;if(o===s)return 0;var l=o-s;if("s"===t)return 100*(a>.5?l/(2-o-s):l/(o+s));switch(o){case n:return 60*((i-r)/l+(i<r?6:0));case i:return 60*((r-n)/l+2);case r:return 60*((n-i)/l+4);default:return-1}}};t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={round:function(e){return Math.round(1e10*e)/1e10}};t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={frac2hex:function(e){var t=Math.round(255*e).toString(16);return t.length>1?t:"0"+t},dec2hex:function(e){var t=Math.round(e).toString(16);return t.length>1?t:"0"+t}};t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(135),r=n(321),o=n(866),s=function(){function e(e,t){this.color=t,this.changed=!1,this.data=e,this.type=new o.default}return e.prototype.set=function(e,t){return this.color=t,this.changed=!1,this.data=e,this.type.type=r.TYPE.ALL,this},e.prototype._ensureHSL=function(){void 0===this.data.h&&(this.data.h=i.default.channel.rgb2hsl(this.data,"h")),void 0===this.data.s&&(this.data.s=i.default.channel.rgb2hsl(this.data,"s")),void 0===this.data.l&&(this.data.l=i.default.channel.rgb2hsl(this.data,"l"))},e.prototype._ensureRGB=function(){void 0===this.data.r&&(this.data.r=i.default.channel.hsl2rgb(this.data,"r")),void 0===this.data.g&&(this.data.g=i.default.channel.hsl2rgb(this.data,"g")),void 0===this.data.b&&(this.data.b=i.default.channel.hsl2rgb(this.data,"b"))},Object.defineProperty(e.prototype,"r",{get:function(){return this.type.is(r.TYPE.HSL)||void 0===this.data.r?(this._ensureHSL(),i.default.channel.hsl2rgb(this.data,"r")):this.data.r},set:function(e){this.type.set(r.TYPE.RGB),this.changed=!0,this.data.r=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"g",{get:function(){return this.type.is(r.TYPE.HSL)||void 0===this.data.g?(this._ensureHSL(),i.default.channel.hsl2rgb(this.data,"g")):this.data.g},set:function(e){this.type.set(r.TYPE.RGB),this.changed=!0,this.data.g=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"b",{get:function(){return this.type.is(r.TYPE.HSL)||void 0===this.data.b?(this._ensureHSL(),i.default.channel.hsl2rgb(this.data,"b")):this.data.b},set:function(e){this.type.set(r.TYPE.RGB),this.changed=!0,this.data.b=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"h",{get:function(){return this.type.is(r.TYPE.RGB)||void 0===this.data.h?(this._ensureRGB(),i.default.channel.rgb2hsl(this.data,"h")):this.data.h},set:function(e){this.type.set(r.TYPE.HSL),this.changed=!0,this.data.h=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"s",{get:function(){return this.type.is(r.TYPE.RGB)||void 0===this.data.s?(this._ensureRGB(),i.default.channel.rgb2hsl(this.data,"s")):this.data.s},set:function(e){this.type.set(r.TYPE.HSL),this.changed=!0,this.data.s=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"l",{get:function(){return this.type.is(r.TYPE.RGB)||void 0===this.data.l?(this._ensureRGB(),i.default.channel.rgb2hsl(this.data,"l")):this.data.l},set:function(e){this.type.set(r.TYPE.HSL),this.changed=!0,this.data.l=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"a",{get:function(){return this.data.a},set:function(e){this.changed=!0,this.data.a=e},enumerable:!0,configurable:!0}),e}();t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(321),r=function(){function e(){this.type=i.TYPE.ALL}return e.prototype.get=function(){return this.type},e.prototype.set=function(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e},e.prototype.reset=function(){this.type=i.TYPE.ALL},e.prototype.is=function(e){return this.type===e},e}();t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(135),r={};t.DEC2HEX=r;for(var o=0;o<=255;o++)r[o]=i.default.unit.dec2hex(o)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(427),r={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:function(e){e=e.toLowerCase();var t=r.colors[e];if(t)return i.default.parse(t)},stringify:function(e){var t=i.default.stringify(e);for(var n in r.colors)if(r.colors[n]===t)return n}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(135),r=n(221),o={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:function(e){var t=e.charCodeAt(0);if(114===t||82===t){var n=e.match(o.re);if(n){var s=n[1],a=n[2],l=n[3],c=n[4],d=n[5],u=n[6],h=n[7],f=n[8];return r.default.set({r:i.default.channel.clamp.r(a?2.55*parseFloat(s):parseFloat(s)),g:i.default.channel.clamp.g(c?2.55*parseFloat(l):parseFloat(l)),b:i.default.channel.clamp.b(u?2.55*parseFloat(d):parseFloat(d)),a:h?i.default.channel.clamp.a(f?parseFloat(h)/100:parseFloat(h)):1},e)}}},stringify:function(e){return e.a<1?"rgba("+i.default.lang.round(e.r)+", "+i.default.lang.round(e.g)+", "+i.default.lang.round(e.b)+", "+i.default.lang.round(e.a)+")":"rgb("+i.default.lang.round(e.r)+", "+i.default.lang.round(e.g)+", "+i.default.lang.round(e.b)+")"}};t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(135),r=n(221),o={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:function(e){var t=e.match(o.hueRe);if(t){var n=t[1];switch(t[2]){case"grad":return i.default.channel.clamp.h(.9*parseFloat(n));case"rad":return i.default.channel.clamp.h(180*parseFloat(n)/Math.PI);case"turn":return i.default.channel.clamp.h(360*parseFloat(n))}}return i.default.channel.clamp.h(parseFloat(e))},parse:function(e){var t=e.charCodeAt(0);if(104===t||72===t){var n=e.match(o.re);if(n){var s=n[1],a=n[2],l=n[3],c=n[4],d=n[5];return r.default.set({h:o._hue2deg(s),s:i.default.channel.clamp.s(parseFloat(a)),l:i.default.channel.clamp.l(parseFloat(l)),a:c?i.default.channel.clamp.a(d?parseFloat(c)/100:parseFloat(c)):1},e)}}},stringify:function(e){return e.a<1?"hsla("+i.default.lang.round(e.h)+", "+i.default.lang.round(e.s)+"%, "+i.default.lang.round(e.l)+"%, "+e.a+")":"hsl("+i.default.lang.round(e.h)+", "+i.default.lang.round(e.s)+"%, "+i.default.lang.round(e.l)+"%)"}};t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(167);t.default=function(e){return i.default(e,"r")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(167);t.default=function(e){return i.default(e,"g")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(167);t.default=function(e){return i.default(e,"b")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(167);t.default=function(e){return i.default(e,"h")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(167);t.default=function(e){return i.default(e,"s")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(167);t.default=function(e){return i.default(e,"l")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(431);t.default=function(e){return!i.default(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(144);t.default=function(e){try{return i.default.parse(e),!0}catch(e){return!1}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(183);t.default=function(e,t){return i.default(e,"s",t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(183);t.default=function(e,t){return i.default(e,"s",-t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(183);t.default=function(e,t){return i.default(e,"l",t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(183);t.default=function(e,t){return i.default(e,"l",-t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(183);t.default=function(e){return i.default(e,"h",180)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(263);t.default=function(e){return i.default(e,{s:0})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(144),r=n(435);t.default=function(e,t){void 0===t&&(t=100);var n=i.default.parse(e);return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,r.default(n,e,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(135),r=n(144),o=n(434);t.default=function(e,t){var n,s,a,l=r.default.parse(e),c={};for(var d in t)c[d]=(n=l[d],s=t[d],a=i.default.channel.max[d],s>0?(a-n)*s/100:n*s/100);return o.default(e,c)}},function(e,t,n){(function(e){e.exports=function(){"use strict";var t,i;function r(){return t.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function s(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function a(e){return void 0===e}function l(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function c(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function d(e,t){var n,i=[];for(n=0;n<e.length;++n)i.push(t(e[n],n));return i}function u(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function h(e,t){for(var n in t)u(t,n)&&(e[n]=t[n]);return u(t,"toString")&&(e.toString=t.toString),u(t,"valueOf")&&(e.valueOf=t.valueOf),e}function f(e,t,n,i){return Mt(e,t,n,i,!0).utc()}function g(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function p(e){if(null==e._isValid){var t=g(e),n=i.call(t.parsedDateParts,(function(e){return null!=e})),r=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return r;e._isValid=r}return e._isValid}function m(e){var t=f(NaN);return null!=e?h(g(t),e):g(t).userInvalidated=!0,t}i=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,i=0;i<n;i++)if(i in t&&e.call(this,t[i],i,t))return!0;return!1};var _=r.momentProperties=[];function b(e,t){var n,i,r;if(a(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),a(t._i)||(e._i=t._i),a(t._f)||(e._f=t._f),a(t._l)||(e._l=t._l),a(t._strict)||(e._strict=t._strict),a(t._tzm)||(e._tzm=t._tzm),a(t._isUTC)||(e._isUTC=t._isUTC),a(t._offset)||(e._offset=t._offset),a(t._pf)||(e._pf=g(t)),a(t._locale)||(e._locale=t._locale),0<_.length)for(n=0;n<_.length;n++)a(r=t[i=_[n]])||(e[i]=r);return e}var v=!1;function y(e){b(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===v&&(v=!0,r.updateOffset(this),v=!1)}function w(e){return e instanceof y||null!=e&&null!=e._isAMomentObject}function C(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function S(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=C(t)),n}function k(e,t,n){var i,r=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),s=0;for(i=0;i<r;i++)(n&&e[i]!==t[i]||!n&&S(e[i])!==S(t[i]))&&s++;return s+o}function x(e){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function L(e,t){var n=!0;return h((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){for(var i,o=[],s=0;s<arguments.length;s++){if(i="","object"==typeof arguments[s]){for(var a in i+="\n["+s+"] ",arguments[0])i+=a+": "+arguments[0][a]+", ";i=i.slice(0,-2)}else i=arguments[s];o.push(i)}x(e+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var M,D={};function E(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),D[e]||(x(t),D[e]=!0)}function T(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function O(e,t){var n,i=h({},e);for(n in t)u(t,n)&&(s(e[n])&&s(t[n])?(i[n]={},h(i[n],e[n]),h(i[n],t[n])):null!=t[n]?i[n]=t[n]:delete i[n]);for(n in e)u(e,n)&&!u(t,n)&&s(e[n])&&(i[n]=h({},i[n]));return i}function N(e){null!=e&&this.set(e)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,M=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)u(e,t)&&n.push(t);return n};var I={};function A(e,t){var n=e.toLowerCase();I[n]=I[n+"s"]=I[t]=e}function R(e){return"string"==typeof e?I[e]||I[e.toLowerCase()]:void 0}function P(e){var t,n,i={};for(n in e)u(e,n)&&(t=R(n))&&(i[t]=e[n]);return i}var j={};function F(e,t){j[e]=t}function B(e,t,n){var i=""+Math.abs(e),r=t-i.length;return(0<=e?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}var W=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,H=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Y={},V={};function z(e,t,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),e&&(V[e]=r),t&&(V[t[0]]=function(){return B(r.apply(this,arguments),t[1],t[2])}),n&&(V[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function U(e,t){return e.isValid()?(t=$(t,e.localeData()),Y[t]=Y[t]||function(e){var t,n,i,r=e.match(W);for(t=0,n=r.length;t<n;t++)V[r[t]]?r[t]=V[r[t]]:r[t]=(i=r[t]).match(/\[[\s\S]/)?i.replace(/^\[|\]$/g,""):i.replace(/\\/g,"");return function(t){var i,o="";for(i=0;i<n;i++)o+=T(r[i])?r[i].call(t,e):r[i];return o}}(t),Y[t](e)):e.localeData().invalidDate()}function $(e,t){var n=5;function i(e){return t.longDateFormat(e)||e}for(H.lastIndex=0;0<=n&&H.test(e);)e=e.replace(H,i),H.lastIndex=0,n-=1;return e}var q=/\d/,K=/\d\d/,G=/\d{3}/,Z=/\d{4}/,J=/[+-]?\d{6}/,X=/\d\d?/,Q=/\d\d\d\d?/,ee=/\d\d\d\d\d\d?/,te=/\d{1,3}/,ne=/\d{1,4}/,ie=/[+-]?\d{1,6}/,re=/\d+/,oe=/[+-]?\d+/,se=/Z|[+-]\d\d:?\d\d/gi,ae=/Z|[+-]\d\d(?::?\d\d)?/gi,le=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ce={};function de(e,t,n){ce[e]=T(t)?t:function(e,i){return e&&n?n:t}}function ue(e,t){return u(ce,e)?ce[e](t._strict,t._locale):new RegExp(he(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,i,r){return t||n||i||r}))))}function he(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var fe={};function ge(e,t){var n,i=t;for("string"==typeof e&&(e=[e]),l(t)&&(i=function(e,n){n[t]=S(e)}),n=0;n<e.length;n++)fe[e[n]]=i}function pe(e,t){ge(e,(function(e,n,i,r){i._w=i._w||{},t(e,i._w,i,r)}))}var me=0,_e=1,be=2,ve=3,ye=4,we=5,Ce=6,Se=7,ke=8;function xe(e){return Le(e)?366:365}function Le(e){return e%4==0&&e%100!=0||e%400==0}z("Y",0,0,(function(){var e=this.year();return e<=9999?""+e:"+"+e})),z(0,["YY",2],0,(function(){return this.year()%100})),z(0,["YYYY",4],0,"year"),z(0,["YYYYY",5],0,"year"),z(0,["YYYYYY",6,!0],0,"year"),A("year","y"),F("year",1),de("Y",oe),de("YY",X,K),de("YYYY",ne,Z),de("YYYYY",ie,J),de("YYYYYY",ie,J),ge(["YYYYY","YYYYYY"],me),ge("YYYY",(function(e,t){t[me]=2===e.length?r.parseTwoDigitYear(e):S(e)})),ge("YY",(function(e,t){t[me]=r.parseTwoDigitYear(e)})),ge("Y",(function(e,t){t[me]=parseInt(e,10)})),r.parseTwoDigitYear=function(e){return S(e)+(68<S(e)?1900:2e3)};var Me,De=Ee("FullYear",!0);function Ee(e,t){return function(n){return null!=n?(Oe(this,e,n),r.updateOffset(this,t),this):Te(this,e)}}function Te(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Oe(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&Le(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Ne(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Ne(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=(t%12+12)%12;return e+=(t-n)/12,1===n?Le(e)?29:28:31-n%7%2}Me=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},z("M",["MM",2],"Mo",(function(){return this.month()+1})),z("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),z("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),A("month","M"),F("month",8),de("M",X),de("MM",X,K),de("MMM",(function(e,t){return t.monthsShortRegex(e)})),de("MMMM",(function(e,t){return t.monthsRegex(e)})),ge(["M","MM"],(function(e,t){t[_e]=S(e)-1})),ge(["MMM","MMMM"],(function(e,t,n,i){var r=n._locale.monthsParse(e,i,n._strict);null!=r?t[_e]=r:g(n).invalidMonth=e}));var Ie=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ae="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Re="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Pe(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=S(t);else if(!l(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Ne(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function je(e){return null!=e?(Pe(this,e),r.updateOffset(this,!0),this):Te(this,"Month")}var Fe=le,Be=le;function We(){function e(e,t){return t.length-e.length}var t,n,i=[],r=[],o=[];for(t=0;t<12;t++)n=f([2e3,t]),i.push(this.monthsShort(n,"")),r.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(i.sort(e),r.sort(e),o.sort(e),t=0;t<12;t++)i[t]=he(i[t]),r[t]=he(r[t]);for(t=0;t<24;t++)o[t]=he(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function He(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&0<=e&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function Ye(e,t,n){var i=7+t-n;return-(7+He(e,0,i).getUTCDay()-t)%7+i-1}function Ve(e,t,n,i,r){var o,s,a=1+7*(t-1)+(7+n-i)%7+Ye(e,i,r);return a<=0?s=xe(o=e-1)+a:a>xe(e)?(o=e+1,s=a-xe(e)):(o=e,s=a),{year:o,dayOfYear:s}}function ze(e,t,n){var i,r,o=Ye(e.year(),t,n),s=Math.floor((e.dayOfYear()-o-1)/7)+1;return s<1?i=s+Ue(r=e.year()-1,t,n):s>Ue(e.year(),t,n)?(i=s-Ue(e.year(),t,n),r=e.year()+1):(r=e.year(),i=s),{week:i,year:r}}function Ue(e,t,n){var i=Ye(e,t,n),r=Ye(e+1,t,n);return(xe(e)-i+r)/7}z("w",["ww",2],"wo","week"),z("W",["WW",2],"Wo","isoWeek"),A("week","w"),A("isoWeek","W"),F("week",5),F("isoWeek",5),de("w",X),de("ww",X,K),de("W",X),de("WW",X,K),pe(["w","ww","W","WW"],(function(e,t,n,i){t[i.substr(0,1)]=S(e)})),z("d",0,"do","day"),z("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),z("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),z("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),z("e",0,0,"weekday"),z("E",0,0,"isoWeekday"),A("day","d"),A("weekday","e"),A("isoWeekday","E"),F("day",11),F("weekday",11),F("isoWeekday",11),de("d",X),de("e",X),de("E",X),de("dd",(function(e,t){return t.weekdaysMinRegex(e)})),de("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),de("dddd",(function(e,t){return t.weekdaysRegex(e)})),pe(["dd","ddd","dddd"],(function(e,t,n,i){var r=n._locale.weekdaysParse(e,i,n._strict);null!=r?t.d=r:g(n).invalidWeekday=e})),pe(["d","e","E"],(function(e,t,n,i){t[i]=S(e)}));var $e="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),qe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ke="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ge=le,Ze=le,Je=le;function Xe(){function e(e,t){return t.length-e.length}var t,n,i,r,o,s=[],a=[],l=[],c=[];for(t=0;t<7;t++)n=f([2e3,1]).day(t),i=this.weekdaysMin(n,""),r=this.weekdaysShort(n,""),o=this.weekdays(n,""),s.push(i),a.push(r),l.push(o),c.push(i),c.push(r),c.push(o);for(s.sort(e),a.sort(e),l.sort(e),c.sort(e),t=0;t<7;t++)a[t]=he(a[t]),l[t]=he(l[t]),c[t]=he(c[t]);this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function Qe(){return this.hours()%12||12}function et(e,t){z(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function tt(e,t){return t._meridiemParse}z("H",["HH",2],0,"hour"),z("h",["hh",2],0,Qe),z("k",["kk",2],0,(function(){return this.hours()||24})),z("hmm",0,0,(function(){return""+Qe.apply(this)+B(this.minutes(),2)})),z("hmmss",0,0,(function(){return""+Qe.apply(this)+B(this.minutes(),2)+B(this.seconds(),2)})),z("Hmm",0,0,(function(){return""+this.hours()+B(this.minutes(),2)})),z("Hmmss",0,0,(function(){return""+this.hours()+B(this.minutes(),2)+B(this.seconds(),2)})),et("a",!0),et("A",!1),A("hour","h"),F("hour",13),de("a",tt),de("A",tt),de("H",X),de("h",X),de("k",X),de("HH",X,K),de("hh",X,K),de("kk",X,K),de("hmm",Q),de("hmmss",ee),de("Hmm",Q),de("Hmmss",ee),ge(["H","HH"],ve),ge(["k","kk"],(function(e,t,n){var i=S(e);t[ve]=24===i?0:i})),ge(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),ge(["h","hh"],(function(e,t,n){t[ve]=S(e),g(n).bigHour=!0})),ge("hmm",(function(e,t,n){var i=e.length-2;t[ve]=S(e.substr(0,i)),t[ye]=S(e.substr(i)),g(n).bigHour=!0})),ge("hmmss",(function(e,t,n){var i=e.length-4,r=e.length-2;t[ve]=S(e.substr(0,i)),t[ye]=S(e.substr(i,2)),t[we]=S(e.substr(r)),g(n).bigHour=!0})),ge("Hmm",(function(e,t,n){var i=e.length-2;t[ve]=S(e.substr(0,i)),t[ye]=S(e.substr(i))})),ge("Hmmss",(function(e,t,n){var i=e.length-4,r=e.length-2;t[ve]=S(e.substr(0,i)),t[ye]=S(e.substr(i,2)),t[we]=S(e.substr(r))}));var nt,it=Ee("Hours",!0),rt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ae,monthsShort:Re,week:{dow:0,doy:6},weekdays:$e,weekdaysMin:Ke,weekdaysShort:qe,meridiemParse:/[ap]\.?m?\.?/i},ot={},st={};function at(e){return e?e.toLowerCase().replace("_","-"):e}function lt(t){var i=null;if(!ot[t]&&void 0!==e&&e&&e.exports)try{i=nt._abbr,n(888)("./"+t),ct(i)}catch(t){}return ot[t]}function ct(e,t){var n;return e&&((n=a(t)?ut(e):dt(e,t))?nt=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),nt._abbr}function dt(e,t){if(null!==t){var n,i=rt;if(t.abbr=e,null!=ot[e])E("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=ot[e]._config;else if(null!=t.parentLocale)if(null!=ot[t.parentLocale])i=ot[t.parentLocale]._config;else{if(null==(n=lt(t.parentLocale)))return st[t.parentLocale]||(st[t.parentLocale]=[]),st[t.parentLocale].push({name:e,config:t}),null;i=n._config}return ot[e]=new N(O(i,t)),st[e]&&st[e].forEach((function(e){dt(e.name,e.config)})),ct(e),ot[e]}return delete ot[e],null}function ut(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return nt;if(!o(e)){if(t=lt(e))return t;e=[e]}return function(e){for(var t,n,i,r,o=0;o<e.length;){for(t=(r=at(e[o]).split("-")).length,n=(n=at(e[o+1]))?n.split("-"):null;0<t;){if(i=lt(r.slice(0,t).join("-")))return i;if(n&&n.length>=t&&k(r,n,!0)>=t-1)break;t--}o++}return nt}(e)}function ht(e){var t,n=e._a;return n&&-2===g(e).overflow&&(t=n[_e]<0||11<n[_e]?_e:n[be]<1||n[be]>Ne(n[me],n[_e])?be:n[ve]<0||24<n[ve]||24===n[ve]&&(0!==n[ye]||0!==n[we]||0!==n[Ce])?ve:n[ye]<0||59<n[ye]?ye:n[we]<0||59<n[we]?we:n[Ce]<0||999<n[Ce]?Ce:-1,g(e)._overflowDayOfYear&&(t<me||be<t)&&(t=be),g(e)._overflowWeeks&&-1===t&&(t=Se),g(e)._overflowWeekday&&-1===t&&(t=ke),g(e).overflow=t),e}function ft(e,t,n){return null!=e?e:null!=t?t:n}function gt(e){var t,n,i,o,s,a=[];if(!e._d){var l,c;for(l=e,c=new Date(r.now()),i=l._useUTC?[c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()]:[c.getFullYear(),c.getMonth(),c.getDate()],e._w&&null==e._a[be]&&null==e._a[_e]&&function(e){var t,n,i,r,o,s,a,l;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)o=1,s=4,n=ft(t.GG,e._a[me],ze(Dt(),1,4).year),i=ft(t.W,1),((r=ft(t.E,1))<1||7<r)&&(l=!0);else{o=e._locale._week.dow,s=e._locale._week.doy;var c=ze(Dt(),o,s);n=ft(t.gg,e._a[me],c.year),i=ft(t.w,c.week),null!=t.d?((r=t.d)<0||6<r)&&(l=!0):null!=t.e?(r=t.e+o,(t.e<0||6<t.e)&&(l=!0)):r=o}i<1||i>Ue(n,o,s)?g(e)._overflowWeeks=!0:null!=l?g(e)._overflowWeekday=!0:(a=Ve(n,i,r,o,s),e._a[me]=a.year,e._dayOfYear=a.dayOfYear)}(e),null!=e._dayOfYear&&(s=ft(e._a[me],i[me]),(e._dayOfYear>xe(s)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),n=He(s,0,e._dayOfYear),e._a[_e]=n.getUTCMonth(),e._a[be]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=i[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[ve]&&0===e._a[ye]&&0===e._a[we]&&0===e._a[Ce]&&(e._nextDay=!0,e._a[ve]=0),e._d=(e._useUTC?He:function(e,t,n,i,r,o,s){var a=new Date(e,t,n,i,r,o,s);return e<100&&0<=e&&isFinite(a.getFullYear())&&a.setFullYear(e),a}).apply(null,a),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ve]=24),e._w&&void 0!==e._w.d&&e._w.d!==o&&(g(e).weekdayMismatch=!0)}}var pt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,mt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,_t=/Z|[+-]\d\d(?::?\d\d)?/,bt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],vt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],yt=/^\/?Date\((\-?\d+)/i;function wt(e){var t,n,i,r,o,s,a=e._i,l=pt.exec(a)||mt.exec(a);if(l){for(g(e).iso=!0,t=0,n=bt.length;t<n;t++)if(bt[t][1].exec(l[1])){r=bt[t][0],i=!1!==bt[t][2];break}if(null==r)return void(e._isValid=!1);if(l[3]){for(t=0,n=vt.length;t<n;t++)if(vt[t][1].exec(l[3])){o=(l[2]||" ")+vt[t][0];break}if(null==o)return void(e._isValid=!1)}if(!i&&null!=o)return void(e._isValid=!1);if(l[4]){if(!_t.exec(l[4]))return void(e._isValid=!1);s="Z"}e._f=r+(o||"")+(s||""),xt(e)}else e._isValid=!1}var Ct=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,St={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function kt(e){var t,n,i,r=Ct.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim());if(r){var o=function(e,t,n,i,r,o){var s=[function(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}(e),Re.indexOf(t),parseInt(n,10),parseInt(i,10),parseInt(r,10)];return o&&s.push(parseInt(o,10)),s}(r[4],r[3],r[2],r[5],r[6],r[7]);if(n=o,i=e,(t=r[1])&&qe.indexOf(t)!==new Date(n[0],n[1],n[2]).getDay()&&(g(i).weekdayMismatch=!0,!(i._isValid=!1)))return;e._a=o,e._tzm=function(e,t,n){if(e)return St[e];if(t)return 0;var i=parseInt(n,10),r=i%100;return(i-r)/100*60+r}(r[8],r[9],r[10]),e._d=He.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0}else e._isValid=!1}function xt(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],g(e).empty=!0;var t,n,i,o,s,a,l,c,d=""+e._i,h=d.length,f=0;for(i=$(e._f,e._locale).match(W)||[],t=0;t<i.length;t++)o=i[t],(n=(d.match(ue(o,e))||[])[0])&&(0<(s=d.substr(0,d.indexOf(n))).length&&g(e).unusedInput.push(s),d=d.slice(d.indexOf(n)+n.length),f+=n.length),V[o]?(n?g(e).empty=!1:g(e).unusedTokens.push(o),a=o,c=e,null!=(l=n)&&u(fe,a)&&fe[a](l,c._a,c,a)):e._strict&&!n&&g(e).unusedTokens.push(o);g(e).charsLeftOver=h-f,0<d.length&&g(e).unusedInput.push(d),e._a[ve]<=12&&!0===g(e).bigHour&&0<e._a[ve]&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,e._a[ve]=function(e,t,n){var i;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):(null!=e.isPM&&((i=e.isPM(n))&&t<12&&(t+=12),i||12!==t||(t=0)),t)}(e._locale,e._a[ve],e._meridiem),gt(e),ht(e)}else kt(e);else wt(e)}function Lt(e){var t,n,i,u,f=e._i,_=e._f;return e._locale=e._locale||ut(e._l),null===f||void 0===_&&""===f?m({nullInput:!0}):("string"==typeof f&&(e._i=f=e._locale.preparse(f)),w(f)?new y(ht(f)):(c(f)?e._d=f:o(_)?function(e){var t,n,i,r,o;if(0===e._f.length)return g(e).invalidFormat=!0,e._d=new Date(NaN);for(r=0;r<e._f.length;r++)o=0,t=b({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],xt(t),p(t)&&(o+=g(t).charsLeftOver,o+=10*g(t).unusedTokens.length,g(t).score=o,(null==i||o<i)&&(i=o,n=t));h(e,n||t)}(e):_?xt(e):a(n=(t=e)._i)?t._d=new Date(r.now()):c(n)?t._d=new Date(n.valueOf()):"string"==typeof n?(i=t,null===(u=yt.exec(i._i))?(wt(i),!1===i._isValid&&(delete i._isValid,kt(i),!1===i._isValid&&(delete i._isValid,r.createFromInputFallback(i)))):i._d=new Date(+u[1])):o(n)?(t._a=d(n.slice(0),(function(e){return parseInt(e,10)})),gt(t)):s(n)?function(e){if(!e._d){var t=P(e._i);e._a=d([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),gt(e)}}(t):l(n)?t._d=new Date(n):r.createFromInputFallback(t),p(e)||(e._d=null),e))}function Mt(e,t,n,i,r){var a,l={};return!0!==n&&!1!==n||(i=n,n=void 0),(s(e)&&function(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0}(e)||o(e)&&0===e.length)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=r,l._l=n,l._i=e,l._f=t,l._strict=i,(a=new y(ht(Lt(l))))._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function Dt(e,t,n,i){return Mt(e,t,n,i,!1)}r.createFromInputFallback=L("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),r.ISO_8601=function(){},r.RFC_2822=function(){};var Et=L("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Dt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:m()})),Tt=L("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Dt.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:m()}));function Ot(e,t){var n,i;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return Dt();for(n=t[0],i=1;i<t.length;++i)t[i].isValid()&&!t[i][e](n)||(n=t[i]);return n}var Nt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function It(e){var t=P(e),n=t.year||0,i=t.quarter||0,r=t.month||0,o=t.week||0,s=t.day||0,a=t.hour||0,l=t.minute||0,c=t.second||0,d=t.millisecond||0;this._isValid=function(e){for(var t in e)if(-1===Me.call(Nt,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,i=0;i<Nt.length;++i)if(e[Nt[i]]){if(n)return!1;parseFloat(e[Nt[i]])!==S(e[Nt[i]])&&(n=!0)}return!0}(t),this._milliseconds=+d+1e3*c+6e4*l+1e3*a*60*60,this._days=+s+7*o,this._months=+r+3*i+12*n,this._data={},this._locale=ut(),this._bubble()}function At(e){return e instanceof It}function Rt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Pt(e,t){z(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+B(~~(e/60),2)+t+B(~~e%60,2)}))}Pt("Z",":"),Pt("ZZ",""),de("Z",ae),de("ZZ",ae),ge(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=Ft(ae,e)}));var jt=/([\+\-]|\d\d)/gi;function Ft(e,t){var n=(t||"").match(e);if(null===n)return null;var i=((n[n.length-1]||[])+"").match(jt)||["-",0,0],r=60*i[1]+S(i[2]);return 0===r?0:"+"===i[0]?r:-r}function Bt(e,t){var n,i;return t._isUTC?(n=t.clone(),i=(w(e)||c(e)?e.valueOf():Dt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),r.updateOffset(n,!1),n):Dt(e).local()}function Wt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Ht(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Yt=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Vt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function zt(e,t){var n,i,r,o=e,s=null;return At(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:l(e)?(o={},t?o[t]=e:o.milliseconds=e):(s=Yt.exec(e))?(n="-"===s[1]?-1:1,o={y:0,d:S(s[be])*n,h:S(s[ve])*n,m:S(s[ye])*n,s:S(s[we])*n,ms:S(Rt(1e3*s[Ce]))*n}):(s=Vt.exec(e))?(n="-"===s[1]?-1:(s[1],1),o={y:Ut(s[2],n),M:Ut(s[3],n),w:Ut(s[4],n),d:Ut(s[5],n),h:Ut(s[6],n),m:Ut(s[7],n),s:Ut(s[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(r=function(e,t){var n;return e.isValid()&&t.isValid()?(t=Bt(t,e),e.isBefore(t)?n=$t(e,t):((n=$t(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}(Dt(o.from),Dt(o.to)),(o={}).ms=r.milliseconds,o.M=r.months),i=new It(o),At(e)&&u(e,"_locale")&&(i._locale=e._locale),i}function Ut(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function $t(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function qt(e,t){return function(n,i){var r;return null===i||isNaN(+i)||(E(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=n,n=i,i=r),Kt(this,zt(n="string"==typeof n?+n:n,i),e),this}}function Kt(e,t,n,i){var o=t._milliseconds,s=Rt(t._days),a=Rt(t._months);e.isValid()&&(i=null==i||i,a&&Pe(e,Te(e,"Month")+a*n),s&&Oe(e,"Date",Te(e,"Date")+s*n),o&&e._d.setTime(e._d.valueOf()+o*n),i&&r.updateOffset(e,s||a))}zt.fn=It.prototype,zt.invalid=function(){return zt(NaN)};var Gt=qt(1,"add"),Zt=qt(-1,"subtract");function Jt(e,t){var n=12*(t.year()-e.year())+(t.month()-e.month()),i=e.clone().add(n,"months");return-(n+(t-i<0?(t-i)/(i-e.clone().add(n-1,"months")):(t-i)/(e.clone().add(n+1,"months")-i)))||0}function Xt(e){var t;return void 0===e?this._locale._abbr:(null!=(t=ut(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Qt=L("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function en(){return this._locale}function tn(e,t){z(0,[e,e.length],0,t)}function nn(e,t,n,i,r){var o;return null==e?ze(this,i,r).year:((o=Ue(e,i,r))<t&&(t=o),function(e,t,n,i,r){var o=Ve(e,t,n,i,r),s=He(o.year,0,o.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}.call(this,e,t,n,i,r))}z(0,["gg",2],0,(function(){return this.weekYear()%100})),z(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),tn("gggg","weekYear"),tn("ggggg","weekYear"),tn("GGGG","isoWeekYear"),tn("GGGGG","isoWeekYear"),A("weekYear","gg"),A("isoWeekYear","GG"),F("weekYear",1),F("isoWeekYear",1),de("G",oe),de("g",oe),de("GG",X,K),de("gg",X,K),de("GGGG",ne,Z),de("gggg",ne,Z),de("GGGGG",ie,J),de("ggggg",ie,J),pe(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,i){t[i.substr(0,2)]=S(e)})),pe(["gg","GG"],(function(e,t,n,i){t[i]=r.parseTwoDigitYear(e)})),z("Q",0,"Qo","quarter"),A("quarter","Q"),F("quarter",7),de("Q",q),ge("Q",(function(e,t){t[_e]=3*(S(e)-1)})),z("D",["DD",2],"Do","date"),A("date","D"),F("date",9),de("D",X),de("DD",X,K),de("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),ge(["D","DD"],be),ge("Do",(function(e,t){t[be]=S(e.match(X)[0])}));var rn=Ee("Date",!0);z("DDD",["DDDD",3],"DDDo","dayOfYear"),A("dayOfYear","DDD"),F("dayOfYear",4),de("DDD",te),de("DDDD",G),ge(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=S(e)})),z("m",["mm",2],0,"minute"),A("minute","m"),F("minute",14),de("m",X),de("mm",X,K),ge(["m","mm"],ye);var on=Ee("Minutes",!1);z("s",["ss",2],0,"second"),A("second","s"),F("second",15),de("s",X),de("ss",X,K),ge(["s","ss"],we);var sn,an=Ee("Seconds",!1);for(z("S",0,0,(function(){return~~(this.millisecond()/100)})),z(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),z(0,["SSS",3],0,"millisecond"),z(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),z(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),z(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),z(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),z(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),z(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),A("millisecond","ms"),F("millisecond",16),de("S",te,q),de("SS",te,K),de("SSS",te,G),sn="SSSS";sn.length<=9;sn+="S")de(sn,re);function ln(e,t){t[Ce]=S(1e3*("0."+e))}for(sn="S";sn.length<=9;sn+="S")ge(sn,ln);var cn=Ee("Milliseconds",!1);z("z",0,0,"zoneAbbr"),z("zz",0,0,"zoneName");var dn=y.prototype;function un(e){return e}dn.add=Gt,dn.calendar=function(e,t){var n=e||Dt(),i=Bt(n,this).startOf("day"),o=r.calendarFormat(this,i)||"sameElse",s=t&&(T(t[o])?t[o].call(this,n):t[o]);return this.format(s||this.localeData().calendar(o,this,Dt(n)))},dn.clone=function(){return new y(this)},dn.diff=function(e,t,n){var i,r,o;if(!this.isValid())return NaN;if(!(i=Bt(e,this)).isValid())return NaN;switch(r=6e4*(i.utcOffset()-this.utcOffset()),t=R(t)){case"year":o=Jt(this,i)/12;break;case"month":o=Jt(this,i);break;case"quarter":o=Jt(this,i)/3;break;case"second":o=(this-i)/1e3;break;case"minute":o=(this-i)/6e4;break;case"hour":o=(this-i)/36e5;break;case"day":o=(this-i-r)/864e5;break;case"week":o=(this-i-r)/6048e5;break;default:o=this-i}return n?o:C(o)},dn.endOf=function(e){return void 0===(e=R(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))},dn.format=function(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=U(this,e);return this.localeData().postformat(t)},dn.from=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||Dt(e).isValid())?zt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},dn.fromNow=function(e){return this.from(Dt(),e)},dn.to=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||Dt(e).isValid())?zt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},dn.toNow=function(e){return this.to(Dt(),e)},dn.get=function(e){return T(this[e=R(e)])?this[e]():this},dn.invalidAt=function(){return g(this).overflow},dn.isAfter=function(e,t){var n=w(e)?e:Dt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=R(a(t)?"millisecond":t))?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},dn.isBefore=function(e,t){var n=w(e)?e:Dt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=R(a(t)?"millisecond":t))?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},dn.isBetween=function(e,t,n,i){return("("===(i=i||"()")[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===i[1]?this.isBefore(t,n):!this.isAfter(t,n))},dn.isSame=function(e,t){var n,i=w(e)?e:Dt(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=R(t||"millisecond"))?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},dn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},dn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},dn.isValid=function(){return p(this)},dn.lang=Qt,dn.locale=Xt,dn.localeData=en,dn.max=Tt,dn.min=Et,dn.parsingFlags=function(){return h({},g(this))},dn.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t=[];for(var n in e)t.push({unit:n,priority:j[n]});return t.sort((function(e,t){return e.priority-t.priority})),t}(e=P(e)),i=0;i<n.length;i++)this[n[i].unit](e[n[i].unit]);else if(T(this[e=R(e)]))return this[e](t);return this},dn.startOf=function(e){switch(e=R(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this},dn.subtract=Zt,dn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},dn.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},dn.toDate=function(){return new Date(this.valueOf())},dn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||9999<n.year()?U(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):T(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",U(n,"Z")):U(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},dn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r=t+'[")]';return this.format(n+i+"-MM-DD[T]HH:mm:ss.SSS"+r)},dn.toJSON=function(){return this.isValid()?this.toISOString():null},dn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},dn.unix=function(){return Math.floor(this.valueOf()/1e3)},dn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},dn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},dn.year=De,dn.isLeapYear=function(){return Le(this.year())},dn.weekYear=function(e){return nn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},dn.isoWeekYear=function(e){return nn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},dn.quarter=dn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},dn.month=je,dn.daysInMonth=function(){return Ne(this.year(),this.month())},dn.week=dn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},dn.isoWeek=dn.isoWeeks=function(e){var t=ze(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},dn.weeksInYear=function(){var e=this.localeData()._week;return Ue(this.year(),e.dow,e.doy)},dn.isoWeeksInYear=function(){return Ue(this.year(),1,4)},dn.date=rn,dn.day=dn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t,n,i=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(t=e,n=this.localeData(),e="string"!=typeof t?t:isNaN(t)?"number"==typeof(t=n.weekdaysParse(t))?t:null:parseInt(t,10),this.add(e-i,"d")):i},dn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},dn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=(n=e,i=this.localeData(),"string"==typeof n?i.weekdaysParse(n)%7||7:isNaN(n)?null:n);return this.day(this.day()%7?t:t-7)}return this.day()||7;var n,i},dn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},dn.hour=dn.hours=it,dn.minute=dn.minutes=on,dn.second=dn.seconds=an,dn.millisecond=dn.milliseconds=cn,dn.utcOffset=function(e,t,n){var i,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Ft(ae,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=Wt(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),o!==e&&(!t||this._changeInProgress?Kt(this,zt(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:Wt(this)},dn.utc=function(e){return this.utcOffset(0,e)},dn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Wt(this),"m")),this},dn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Ft(se,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},dn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Dt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},dn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},dn.isLocal=function(){return!!this.isValid()&&!this._isUTC},dn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},dn.isUtc=Ht,dn.isUTC=Ht,dn.zoneAbbr=function(){return this._isUTC?"UTC":""},dn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},dn.dates=L("dates accessor is deprecated. Use date instead.",rn),dn.months=L("months accessor is deprecated. Use month instead",je),dn.years=L("years accessor is deprecated. Use year instead",De),dn.zone=L("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),dn.isDSTShifted=L("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!a(this._isDSTShifted))return this._isDSTShifted;var e={};if(b(e,this),(e=Lt(e))._a){var t=e._isUTC?f(e._a):Dt(e._a);this._isDSTShifted=this.isValid()&&0<k(e._a,t.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted}));var hn=N.prototype;function fn(e,t,n,i){var r=ut(),o=f().set(i,t);return r[n](o,e)}function gn(e,t,n){if(l(e)&&(t=e,e=void 0),e=e||"",null!=t)return fn(e,t,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=fn(e,i,n,"month");return r}function pn(e,t,n,i){"boolean"==typeof e?l(t)&&(n=t,t=void 0):(t=e,e=!1,l(n=t)&&(n=t,t=void 0)),t=t||"";var r,o=ut(),s=e?o._week.dow:0;if(null!=n)return fn(t,(n+s)%7,i,"day");var a=[];for(r=0;r<7;r++)a[r]=fn(t,(r+s)%7,i,"day");return a}hn.calendar=function(e,t,n){var i=this._calendar[e]||this._calendar.sameElse;return T(i)?i.call(t,n):i},hn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,(function(e){return e.slice(1)})),this._longDateFormat[e])},hn.invalidDate=function(){return this._invalidDate},hn.ordinal=function(e){return this._ordinal.replace("%d",e)},hn.preparse=un,hn.postformat=un,hn.relativeTime=function(e,t,n,i){var r=this._relativeTime[n];return T(r)?r(e,t,n,i):r.replace(/%d/i,e)},hn.pastFuture=function(e,t){var n=this._relativeTime[0<e?"future":"past"];return T(n)?n(t):n.replace(/%s/i,t)},hn.set=function(e){var t,n;for(n in e)T(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},hn.months=function(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ie).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone},hn.monthsShort=function(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ie.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},hn.monthsParse=function(e,t,n){var i,r,o;if(this._monthsParseExact)return function(e,t,n){var i,r,o,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)o=f([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(r=Me.call(this._shortMonthsParse,s))?r:null:-1!==(r=Me.call(this._longMonthsParse,s))?r:null:"MMM"===t?-1!==(r=Me.call(this._shortMonthsParse,s))?r:-1!==(r=Me.call(this._longMonthsParse,s))?r:null:-1!==(r=Me.call(this._longMonthsParse,s))?r:-1!==(r=Me.call(this._shortMonthsParse,s))?r:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=f([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(o="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}},hn.monthsRegex=function(e){return this._monthsParseExact?(u(this,"_monthsRegex")||We.call(this),e?this._monthsStrictRegex:this._monthsRegex):(u(this,"_monthsRegex")||(this._monthsRegex=Be),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},hn.monthsShortRegex=function(e){return this._monthsParseExact?(u(this,"_monthsRegex")||We.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(u(this,"_monthsShortRegex")||(this._monthsShortRegex=Fe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},hn.week=function(e){return ze(e,this._week.dow,this._week.doy).week},hn.firstDayOfYear=function(){return this._week.doy},hn.firstDayOfWeek=function(){return this._week.dow},hn.weekdays=function(e,t){return e?o(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:o(this._weekdays)?this._weekdays:this._weekdays.standalone},hn.weekdaysMin=function(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin},hn.weekdaysShort=function(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort},hn.weekdaysParse=function(e,t,n){var i,r,o;if(this._weekdaysParseExact)return function(e,t,n){var i,r,o,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=f([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(r=Me.call(this._weekdaysParse,s))?r:null:"ddd"===t?-1!==(r=Me.call(this._shortWeekdaysParse,s))?r:null:-1!==(r=Me.call(this._minWeekdaysParse,s))?r:null:"dddd"===t?-1!==(r=Me.call(this._weekdaysParse,s))?r:-1!==(r=Me.call(this._shortWeekdaysParse,s))?r:-1!==(r=Me.call(this._minWeekdaysParse,s))?r:null:"ddd"===t?-1!==(r=Me.call(this._shortWeekdaysParse,s))?r:-1!==(r=Me.call(this._weekdaysParse,s))?r:-1!==(r=Me.call(this._minWeekdaysParse,s))?r:null:-1!==(r=Me.call(this._minWeekdaysParse,s))?r:-1!==(r=Me.call(this._weekdaysParse,s))?r:-1!==(r=Me.call(this._shortWeekdaysParse,s))?r:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=f([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".",".?")+"$","i")),this._weekdaysParse[i]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}},hn.weekdaysRegex=function(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Xe.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=Ge),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},hn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Xe.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ze),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},hn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Xe.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Je),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},hn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},hn.meridiem=function(e,t,n){return 11<e?n?"pm":"PM":n?"am":"AM"},ct("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===S(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=L("moment.lang is deprecated. Use moment.locale instead.",ct),r.langData=L("moment.langData is deprecated. Use moment.localeData instead.",ut);var mn=Math.abs;function _n(e,t,n,i){var r=zt(t,n);return e._milliseconds+=i*r._milliseconds,e._days+=i*r._days,e._months+=i*r._months,e._bubble()}function bn(e){return e<0?Math.floor(e):Math.ceil(e)}function vn(e){return 4800*e/146097}function yn(e){return 146097*e/4800}function wn(e){return function(){return this.as(e)}}var Cn=wn("ms"),Sn=wn("s"),kn=wn("m"),xn=wn("h"),Ln=wn("d"),Mn=wn("w"),Dn=wn("M"),En=wn("y");function Tn(e){return function(){return this.isValid()?this._data[e]:NaN}}var On=Tn("milliseconds"),Nn=Tn("seconds"),In=Tn("minutes"),An=Tn("hours"),Rn=Tn("days"),Pn=Tn("months"),jn=Tn("years"),Fn=Math.round,Bn={ss:44,s:45,m:45,h:22,d:26,M:11},Wn=Math.abs;function Hn(e){return(0<e)-(e<0)||+e}function Yn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=Wn(this._milliseconds)/1e3,i=Wn(this._days),r=Wn(this._months);t=C((e=C(n/60))/60),n%=60,e%=60;var o=C(r/12),s=r%=12,a=i,l=t,c=e,d=n?n.toFixed(3).replace(/\.?0+$/,""):"",u=this.asSeconds();if(!u)return"P0D";var h=u<0?"-":"",f=Hn(this._months)!==Hn(u)?"-":"",g=Hn(this._days)!==Hn(u)?"-":"",p=Hn(this._milliseconds)!==Hn(u)?"-":"";return h+"P"+(o?f+o+"Y":"")+(s?f+s+"M":"")+(a?g+a+"D":"")+(l||c||d?"T":"")+(l?p+l+"H":"")+(c?p+c+"M":"")+(d?p+d+"S":"")}var Vn=It.prototype;return Vn.isValid=function(){return this._isValid},Vn.abs=function(){var e=this._data;return this._milliseconds=mn(this._milliseconds),this._days=mn(this._days),this._months=mn(this._months),e.milliseconds=mn(e.milliseconds),e.seconds=mn(e.seconds),e.minutes=mn(e.minutes),e.hours=mn(e.hours),e.months=mn(e.months),e.years=mn(e.years),this},Vn.add=function(e,t){return _n(this,e,t,1)},Vn.subtract=function(e,t){return _n(this,e,t,-1)},Vn.as=function(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if("month"===(e=R(e))||"year"===e)return t=this._days+i/864e5,n=this._months+vn(t),"month"===e?n:n/12;switch(t=this._days+Math.round(yn(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}},Vn.asMilliseconds=Cn,Vn.asSeconds=Sn,Vn.asMinutes=kn,Vn.asHours=xn,Vn.asDays=Ln,Vn.asWeeks=Mn,Vn.asMonths=Dn,Vn.asYears=En,Vn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*S(this._months/12):NaN},Vn._bubble=function(){var e,t,n,i,r,o=this._milliseconds,s=this._days,a=this._months,l=this._data;return 0<=o&&0<=s&&0<=a||o<=0&&s<=0&&a<=0||(o+=864e5*bn(yn(a)+s),a=s=0),l.milliseconds=o%1e3,e=C(o/1e3),l.seconds=e%60,t=C(e/60),l.minutes=t%60,n=C(t/60),l.hours=n%24,a+=r=C(vn(s+=C(n/24))),s-=bn(yn(r)),i=C(a/12),a%=12,l.days=s,l.months=a,l.years=i,this},Vn.clone=function(){return zt(this)},Vn.get=function(e){return e=R(e),this.isValid()?this[e+"s"]():NaN},Vn.milliseconds=On,Vn.seconds=Nn,Vn.minutes=In,Vn.hours=An,Vn.days=Rn,Vn.weeks=function(){return C(this.days()/7)},Vn.months=Pn,Vn.years=jn,Vn.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t,n,i,r,o,s,a,l,c,d,u=this.localeData(),h=(t=!e,n=u,i=zt(this).abs(),r=Fn(i.as("s")),o=Fn(i.as("m")),s=Fn(i.as("h")),a=Fn(i.as("d")),l=Fn(i.as("M")),c=Fn(i.as("y")),(d=r<=Bn.ss&&["s",r]||r<Bn.s&&["ss",r]||o<=1&&["m"]||o<Bn.m&&["mm",o]||s<=1&&["h"]||s<Bn.h&&["hh",s]||a<=1&&["d"]||a<Bn.d&&["dd",a]||l<=1&&["M"]||l<Bn.M&&["MM",l]||c<=1&&["y"]||["yy",c])[2]=t,d[3]=0<+this,d[4]=n,function(e,t,n,i,r){return r.relativeTime(t||1,!!n,e,i)}.apply(null,d));return e&&(h=u.pastFuture(+this,h)),u.postformat(h)},Vn.toISOString=Yn,Vn.toString=Yn,Vn.toJSON=Yn,Vn.locale=Xt,Vn.localeData=en,Vn.toIsoString=L("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Yn),Vn.lang=Qt,z("X",0,0,"unix"),z("x",0,0,"valueOf"),de("x",oe),de("X",/[+-]?\d+(\.\d{1,3})?/),ge("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))})),ge("x",(function(e,t,n){n._d=new Date(S(e))})),r.version="2.22.1",t=Dt,r.fn=dn,r.min=function(){return Ot("isBefore",[].slice.call(arguments,0))},r.max=function(){return Ot("isAfter",[].slice.call(arguments,0))},r.now=function(){return Date.now?Date.now():+new Date},r.utc=f,r.unix=function(e){return Dt(1e3*e)},r.months=function(e,t){return gn(e,t,"months")},r.isDate=c,r.locale=ct,r.invalid=m,r.duration=zt,r.isMoment=w,r.weekdays=function(e,t,n){return pn(e,t,n,"weekdays")},r.parseZone=function(){return Dt.apply(null,arguments).parseZone()},r.localeData=ut,r.isDuration=At,r.monthsShort=function(e,t){return gn(e,t,"monthsShort")},r.weekdaysMin=function(e,t,n){return pn(e,t,n,"weekdaysMin")},r.defineLocale=dt,r.updateLocale=function(e,t){if(null!=t){var n,i,r=rt;null!=(i=lt(e))&&(r=i._config),(n=new N(t=O(r,t))).parentLocale=ot[e],ot[e]=n,ct(e)}else null!=ot[e]&&(null!=ot[e].parentLocale?ot[e]=ot[e].parentLocale:null!=ot[e]&&delete ot[e]);return ot[e]},r.locales=function(){return M(ot)},r.weekdaysShort=function(e,t,n){return pn(e,t,n,"weekdaysShort")},r.normalizeUnits=R,r.relativeTimeRounding=function(e){return void 0===e?Fn:"function"==typeof e&&(Fn=e,!0)},r.relativeTimeThreshold=function(e,t){return void 0!==Bn[e]&&(void 0===t?Bn[e]:(Bn[e]=t,"s"===e&&(Bn.ss=t-1),!0))},r.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},r.prototype=dn,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},r}()}).call(this,n(215)(e))},function(e,t,n){var i={"./locale":436,"./locale.js":436};function r(e){var t=o(e);return n(t)}function o(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id=888},function(e,t,n){e.exports=function e(t){"use strict";var n=/^\0+/g,i=/[\0\r\f]/g,r=/: */g,o=/zoo|gra/,s=/([,: ])(transform)/g,a=/,+\s*(?![^(]*[)])/g,l=/ +\s*(?![^(]*[)])/g,c=/ *[\0] */g,d=/,\r+?/g,u=/([\t\r\n ])*\f?&/g,h=/:global\(((?:[^\(\)\[\]]*|\[.*\]|\([^\(\)]*\))*)\)/g,f=/\W+/g,g=/@(k\w+)\s*(\S*)\s*/,p=/::(place)/g,m=/:(read-only)/g,_=/\s+(?=[{\];=:>])/g,b=/([[}=:>])\s+/g,v=/(\{[^{]+?);(?=\})/g,y=/\s{2,}/g,w=/([^\(])(:+) */g,C=/[svh]\w+-[tblr]{2}/,S=/\(\s*(.*)\s*\)/g,k=/([\s\S]*?);/g,x=/-self|flex-/g,L=/[^]*?(:[rp][el]a[\w-]+)[^]*/,M=/stretch|:\s*\w+\-(?:conte|avail)/,D=/([^-])(image-set\()/,E="-webkit-",T="-moz-",O="-ms-",N=59,I=125,A=123,R=40,P=41,j=91,F=93,B=10,W=13,H=9,Y=64,V=32,z=38,U=45,$=95,q=42,K=44,G=58,Z=39,J=34,X=47,Q=62,ee=43,te=126,ne=0,ie=12,re=11,oe=107,se=109,ae=115,le=112,ce=111,de=105,ue=99,he=100,fe=112,ge=1,pe=1,me=0,_e=1,be=1,ve=1,ye=0,we=0,Ce=0,Se=[],ke=[],xe=0,Le=null,Me=-2,De=-1,Ee=0,Te=1,Oe=2,Ne=3,Ie=0,Ae=1,Re="",Pe="",je="";function Fe(e,t,r,o,s){for(var a,l,d=0,u=0,h=0,f=0,_=0,b=0,v=0,y=0,C=0,k=0,x=0,L=0,M=0,D=0,$=0,ye=0,ke=0,Le=0,Me=0,De=r.length,We=De-1,$e="",qe="",Ke="",Ge="",Ze="",Je="";$<De;){if(v=r.charCodeAt($),$===We&&u+f+h+d!==0&&(0!==u&&(v=u===X?B:X),f=h=d=0,De++,We++),u+f+h+d===0){if($===We&&(ye>0&&(qe=qe.replace(i,"")),qe.trim().length>0)){switch(v){case V:case H:case N:case W:case B:break;default:qe+=r.charAt($)}v=N}if(1===ke)switch(v){case A:case I:case N:case J:case Z:case R:case P:case K:ke=0;case H:case W:case B:case V:break;default:for(ke=0,Me=$,_=v,$--,v=N;Me<De;)switch(r.charCodeAt(Me++)){case B:case W:case N:++$,v=_,Me=De;break;case G:ye>0&&(++$,v=_);case A:Me=De}}switch(v){case A:for(_=(qe=qe.trim()).charCodeAt(0),x=1,Me=++$;$<De;){switch(v=r.charCodeAt($)){case A:x++;break;case I:x--;break;case X:switch(b=r.charCodeAt($+1)){case q:case X:$=Ue(b,$,We,r)}break;case j:v++;case R:v++;case J:case Z:for(;$++<We&&r.charCodeAt($)!==v;);}if(0===x)break;$++}switch(Ke=r.substring(Me,$),_===ne&&(_=(qe=qe.replace(n,"").trim()).charCodeAt(0)),_){case Y:switch(ye>0&&(qe=qe.replace(i,"")),b=qe.charCodeAt(1)){case he:case se:case ae:case U:a=t;break;default:a=Se}if(Me=(Ke=Fe(t,a,Ke,b,s+1)).length,Ce>0&&0===Me&&(Me=qe.length),xe>0&&(a=Be(Se,qe,Le),l=ze(Ne,Ke,a,t,pe,ge,Me,b,s,o),qe=a.join(""),void 0!==l&&0===(Me=(Ke=l.trim()).length)&&(b=0,Ke="")),Me>0)switch(b){case ae:qe=qe.replace(S,Ve);case he:case se:case U:Ke=qe+"{"+Ke+"}";break;case oe:Ke=(qe=qe.replace(g,"$1 $2"+(Ae>0?Re:"")))+"{"+Ke+"}",Ke=1===be||2===be&&Ye("@"+Ke,3)?"@"+E+Ke+"@"+Ke:"@"+Ke;break;default:Ke=qe+Ke,o===fe&&(Ge+=Ke,Ke="")}else Ke="";break;default:Ke=Fe(t,Be(t,qe,Le),Ke,o,s+1)}Ze+=Ke,L=0,ke=0,D=0,ye=0,Le=0,M=0,qe="",Ke="",v=r.charCodeAt(++$);break;case I:case N:if((Me=(qe=(ye>0?qe.replace(i,""):qe).trim()).length)>1)switch(0===D&&((_=qe.charCodeAt(0))===U||_>96&&_<123)&&(Me=(qe=qe.replace(" ",":")).length),xe>0&&void 0!==(l=ze(Te,qe,t,e,pe,ge,Ge.length,o,s,o))&&0===(Me=(qe=l.trim()).length)&&(qe="\0\0"),_=qe.charCodeAt(0),b=qe.charCodeAt(1),_){case ne:break;case Y:if(b===de||b===ue){Je+=qe+r.charAt($);break}default:if(qe.charCodeAt(Me-1)===G)break;Ge+=He(qe,_,b,qe.charCodeAt(2))}L=0,ke=0,D=0,ye=0,Le=0,qe="",v=r.charCodeAt(++$)}}switch(v){case W:case B:if(u+f+h+d+we===0)switch(k){case P:case Z:case J:case Y:case te:case Q:case q:case ee:case X:case U:case G:case K:case N:case A:case I:break;default:D>0&&(ke=1)}u===X?u=0:_e+L===0&&o!==oe&&qe.length>0&&(ye=1,qe+="\0"),xe*Ie>0&&ze(Ee,qe,t,e,pe,ge,Ge.length,o,s,o),ge=1,pe++;break;case N:case I:if(u+f+h+d===0){ge++;break}default:switch(ge++,$e=r.charAt($),v){case H:case V:if(f+d+u===0)switch(y){case K:case G:case H:case V:$e="";break;default:v!==V&&($e=" ")}break;case ne:$e="\\0";break;case ie:$e="\\f";break;case re:$e="\\v";break;case z:f+u+d===0&&_e>0&&(Le=1,ye=1,$e="\f"+$e);break;case 108:if(f+u+d+me===0&&D>0)switch($-D){case 2:y===le&&r.charCodeAt($-3)===G&&(me=y);case 8:C===ce&&(me=C)}break;case G:f+u+d===0&&(D=$);break;case K:u+h+f+d===0&&(ye=1,$e+="\r");break;case J:case Z:0===u&&(f=f===v?0:0===f?v:f);break;case j:f+u+h===0&&d++;break;case F:f+u+h===0&&d--;break;case P:f+u+d===0&&h--;break;case R:if(f+u+d===0){if(0===L)switch(2*y+3*C){case 533:break;default:x=0,L=1}h++}break;case Y:u+h+f+d+D+M===0&&(M=1);break;case q:case X:if(f+d+h>0)break;switch(u){case 0:switch(2*v+3*r.charCodeAt($+1)){case 235:u=X;break;case 220:Me=$,u=q}break;case q:v===X&&y===q&&Me+2!==$&&(33===r.charCodeAt(Me+2)&&(Ge+=r.substring(Me,$+1)),$e="",u=0)}}if(0===u){if(_e+f+d+M===0&&o!==oe&&v!==N)switch(v){case K:case te:case Q:case ee:case P:case R:if(0===L){switch(y){case H:case V:case B:case W:$e+="\0";break;default:$e="\0"+$e+(v===K?"":"\0")}ye=1}else switch(v){case R:D+7===$&&108===y&&(D=0),L=++x;break;case P:0==(L=--x)&&(ye=1,$e+="\0")}break;case H:case V:switch(y){case ne:case A:case I:case N:case K:case ie:case H:case V:case B:case W:break;default:0===L&&(ye=1,$e+="\0")}}qe+=$e,v!==V&&v!==H&&(k=v)}}C=y,y=v,$++}if(Me=Ge.length,Ce>0&&0===Me&&0===Ze.length&&0===t[0].length==0&&(o!==se||1===t.length&&(_e>0?Pe:je)===t[0])&&(Me=t.join(",").length+2),Me>0){if(a=0===_e&&o!==oe?function(e){for(var t,n,r=0,o=e.length,s=Array(o);r<o;++r){for(var a=e[r].split(c),l="",d=0,u=0,h=0,f=0,g=a.length;d<g;++d)if(!(0===(u=(n=a[d]).length)&&g>1)){if(h=l.charCodeAt(l.length-1),f=n.charCodeAt(0),t="",0!==d)switch(h){case q:case te:case Q:case ee:case V:case R:break;default:t=" "}switch(f){case z:n=t+Pe;case te:case Q:case ee:case V:case P:case R:break;case j:n=t+n+Pe;break;case G:switch(2*n.charCodeAt(1)+3*n.charCodeAt(2)){case 530:if(ve>0){n=t+n.substring(8,u-1);break}default:(d<1||a[d-1].length<1)&&(n=t+Pe+n)}break;case K:t="";default:n=u>1&&n.indexOf(":")>0?t+n.replace(w,"$1"+Pe+"$2"):t+n+Pe}l+=n}s[r]=l.replace(i,"").trim()}return s}(t):t,xe>0&&void 0!==(l=ze(Oe,Ge,a,e,pe,ge,Me,o,s,o))&&0===(Ge=l).length)return Je+Ge+Ze;if(Ge=a.join(",")+"{"+Ge+"}",be*me!=0){switch(2!==be||Ye(Ge,2)||(me=0),me){case ce:Ge=Ge.replace(m,":"+T+"$1")+Ge;break;case le:Ge=Ge.replace(p,"::"+E+"input-$1")+Ge.replace(p,"::"+T+"$1")+Ge.replace(p,":"+O+"input-$1")+Ge}me=0}}return Je+Ge+Ze}function Be(e,t,n){var i=t.trim().split(d),r=i,o=i.length,s=e.length;switch(s){case 0:case 1:for(var a=0,l=0===s?"":e[0]+" ";a<o;++a)r[a]=We(l,r[a],n,s).trim();break;default:a=0;var c=0;for(r=[];a<o;++a)for(var u=0;u<s;++u)r[c++]=We(e[u]+" ",i[a],n,s).trim()}return r}function We(e,t,n,i){var r=t,o=r.charCodeAt(0);switch(o<33&&(o=(r=r.trim()).charCodeAt(0)),o){case z:switch(_e+i){case 0:case 1:if(0===e.trim().length)break;default:return r.replace(u,"$1"+e.trim())}break;case G:switch(r.charCodeAt(1)){case 103:if(ve>0&&_e>0)return r.replace(h,"$1").replace(u,"$1"+je);break;default:return e.trim()+r.replace(u,"$1"+e.trim())}default:if(n*_e>0&&r.indexOf("\f")>0)return r.replace(u,(e.charCodeAt(0)===G?"":"$1")+e.trim())}return e+r}function He(e,t,n,i){var c,d=0,u=e+";",h=2*t+3*n+4*i;if(944===h)return function(e){var t=e.length,n=e.indexOf(":",9)+1,i=e.substring(0,n).trim(),r=e.substring(n,t-1).trim();switch(e.charCodeAt(9)*Ae){case 0:break;case U:if(110!==e.charCodeAt(10))break;default:var o=r.split((r="",a)),s=0;for(n=0,t=o.length;s<t;n=0,++s){for(var c=o[s],d=c.split(l);c=d[n];){var u=c.charCodeAt(0);if(1===Ae&&(u>Y&&u<90||u>96&&u<123||u===$||u===U&&c.charCodeAt(1)!==U))switch(isNaN(parseFloat(c))+(-1!==c.indexOf("("))){case 1:switch(c){case"infinite":case"alternate":case"backwards":case"running":case"normal":case"forwards":case"both":case"none":case"linear":case"ease":case"ease-in":case"ease-out":case"ease-in-out":case"paused":case"reverse":case"alternate-reverse":case"inherit":case"initial":case"unset":case"step-start":case"step-end":break;default:c+=Re}}d[n++]=c}r+=(0===s?"":",")+d.join(" ")}}return r=i+r+";",1===be||2===be&&Ye(r,1)?E+r+r:r}(u);if(0===be||2===be&&!Ye(u,1))return u;switch(h){case 1015:return 97===u.charCodeAt(10)?E+u+u:u;case 951:return 116===u.charCodeAt(3)?E+u+u:u;case 963:return 110===u.charCodeAt(5)?E+u+u:u;case 1009:if(100!==u.charCodeAt(4))break;case 969:case 942:return E+u+u;case 978:return E+u+T+u+u;case 1019:case 983:return E+u+T+u+O+u+u;case 883:return u.charCodeAt(8)===U?E+u+u:u.indexOf("image-set(",11)>0?u.replace(D,"$1"+E+"$2")+u:u;case 932:if(u.charCodeAt(4)===U)switch(u.charCodeAt(5)){case 103:return E+"box-"+u.replace("-grow","")+E+u+O+u.replace("grow","positive")+u;case 115:return E+u+O+u.replace("shrink","negative")+u;case 98:return E+u+O+u.replace("basis","preferred-size")+u}return E+u+O+u+u;case 964:return E+u+O+"flex-"+u+u;case 1023:if(99!==u.charCodeAt(8))break;return c=u.substring(u.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),E+"box-pack"+c+E+u+O+"flex-pack"+c+u;case 1005:return o.test(u)?u.replace(r,":"+E)+u.replace(r,":"+T)+u:u;case 1e3:switch(d=(c=u.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(d)){case 226:c=u.replace(C,"tb");break;case 232:c=u.replace(C,"tb-rl");break;case 220:c=u.replace(C,"lr");break;default:return u}return E+u+O+c+u;case 1017:if(-1===u.indexOf("sticky",9))return u;case 975:switch(d=(u=e).length-10,h=(c=(33===u.charCodeAt(d)?u.substring(0,d):u).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(c.charCodeAt(8)<111)break;case 115:u=u.replace(c,E+c)+";"+u;break;case 207:case 102:u=u.replace(c,E+(h>102?"inline-":"")+"box")+";"+u.replace(c,E+c)+";"+u.replace(c,O+c+"box")+";"+u}return u+";";case 938:if(u.charCodeAt(5)===U)switch(u.charCodeAt(6)){case 105:return c=u.replace("-items",""),E+u+E+"box-"+c+O+"flex-"+c+u;case 115:return E+u+O+"flex-item-"+u.replace(x,"")+u;default:return E+u+O+"flex-line-pack"+u.replace("align-content","").replace(x,"")+u}break;case 973:case 989:if(u.charCodeAt(3)!==U||122===u.charCodeAt(4))break;case 931:case 953:if(!0===M.test(e))return 115===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?He(e.replace("stretch","fill-available"),t,n,i).replace(":fill-available",":stretch"):u.replace(c,E+c)+u.replace(c,T+c.replace("fill-",""))+u;break;case 962:if(u=E+u+(102===u.charCodeAt(5)?O+u:"")+u,n+i===211&&105===u.charCodeAt(13)&&u.indexOf("transform",10)>0)return u.substring(0,u.indexOf(";",27)+1).replace(s,"$1"+E+"$2")+u}return u}function Ye(e,t){var n=e.indexOf(1===t?":":"{"),i=e.substring(0,3!==t?n:10),r=e.substring(n+1,e.length-1);return Le(2!==t?i:i.replace(L,"$1"),r,t)}function Ve(e,t){var n=He(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(k," or ($1)").substring(4):"("+t+")"}function ze(e,t,n,i,r,o,s,a,l,c){for(var d,u=0,h=t;u<xe;++u)switch(d=ke[u].call(qe,e,h,n,i,r,o,s,a,l,c)){case void 0:case!1:case!0:case null:break;default:h=d}if(h!==t)return h}function Ue(e,t,n,i){for(var r=t+1;r<n;++r)switch(i.charCodeAt(r)){case X:if(e===q&&i.charCodeAt(r-1)===q&&t+2!==r)return r+1;break;case B:if(e===X)return r+1}return r}function $e(e){for(var t in e){var n=e[t];switch(t){case"keyframe":Ae=0|n;break;case"global":ve=0|n;break;case"cascade":_e=0|n;break;case"compress":ye=0|n;break;case"semicolon":we=0|n;break;case"preserve":Ce=0|n;break;case"prefix":Le=null,n?"function"!=typeof n?be=1:(be=2,Le=n):be=0}}return $e}function qe(t,n){if(void 0!==this&&this.constructor===qe)return e(t);var r=t,o=r.charCodeAt(0);o<33&&(o=(r=r.trim()).charCodeAt(0)),Ae>0&&(Re=r.replace(f,o===j?"":"-")),o=1,1===_e?je=r:Pe=r;var s,a=[je];xe>0&&void 0!==(s=ze(De,n,a,a,pe,ge,0,0,0,0))&&"string"==typeof s&&(n=s);var l=Fe(Se,a,n,0,0);return xe>0&&void 0!==(s=ze(Me,l,a,a,pe,ge,l.length,0,0,0))&&"string"!=typeof(l=s)&&(o=0),Re="",je="",Pe="",me=0,pe=1,ge=1,ye*o==0?l:function(e){return e.replace(i,"").replace(_,"").replace(b,"$1").replace(v,"$1").replace(y," ")}(l)}return qe.use=function e(t){switch(t){case void 0:case null:xe=ke.length=0;break;default:if("function"==typeof t)ke[xe++]=t;else if("object"==typeof t)for(var n=0,i=t.length;n<i;++n)e(t[n]);else Ie=0|!!t}return e},qe.set=$e,void 0!==t&&$e(t),qe}(null)},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){var i={"./af":437,"./af.js":437,"./ar":438,"./ar-dz":439,"./ar-dz.js":439,"./ar-kw":440,"./ar-kw.js":440,"./ar-ly":441,"./ar-ly.js":441,"./ar-ma":442,"./ar-ma.js":442,"./ar-sa":443,"./ar-sa.js":443,"./ar-tn":444,"./ar-tn.js":444,"./ar.js":438,"./az":445,"./az.js":445,"./be":446,"./be.js":446,"./bg":447,"./bg.js":447,"./bm":448,"./bm.js":448,"./bn":449,"./bn.js":449,"./bo":450,"./bo.js":450,"./br":451,"./br.js":451,"./bs":452,"./bs.js":452,"./ca":453,"./ca.js":453,"./cs":454,"./cs.js":454,"./cv":455,"./cv.js":455,"./cy":456,"./cy.js":456,"./da":457,"./da.js":457,"./de":458,"./de-at":459,"./de-at.js":459,"./de-ch":460,"./de-ch.js":460,"./de.js":458,"./dv":461,"./dv.js":461,"./el":462,"./el.js":462,"./en-SG":463,"./en-SG.js":463,"./en-au":464,"./en-au.js":464,"./en-ca":465,"./en-ca.js":465,"./en-gb":466,"./en-gb.js":466,"./en-ie":467,"./en-ie.js":467,"./en-il":468,"./en-il.js":468,"./en-nz":469,"./en-nz.js":469,"./eo":470,"./eo.js":470,"./es":471,"./es-do":472,"./es-do.js":472,"./es-us":473,"./es-us.js":473,"./es.js":471,"./et":474,"./et.js":474,"./eu":475,"./eu.js":475,"./fa":476,"./fa.js":476,"./fi":477,"./fi.js":477,"./fo":478,"./fo.js":478,"./fr":479,"./fr-ca":480,"./fr-ca.js":480,"./fr-ch":481,"./fr-ch.js":481,"./fr.js":479,"./fy":482,"./fy.js":482,"./ga":483,"./ga.js":483,"./gd":484,"./gd.js":484,"./gl":485,"./gl.js":485,"./gom-latn":486,"./gom-latn.js":486,"./gu":487,"./gu.js":487,"./he":488,"./he.js":488,"./hi":489,"./hi.js":489,"./hr":490,"./hr.js":490,"./hu":491,"./hu.js":491,"./hy-am":492,"./hy-am.js":492,"./id":493,"./id.js":493,"./is":494,"./is.js":494,"./it":495,"./it-ch":496,"./it-ch.js":496,"./it.js":495,"./ja":497,"./ja.js":497,"./jv":498,"./jv.js":498,"./ka":499,"./ka.js":499,"./kk":500,"./kk.js":500,"./km":501,"./km.js":501,"./kn":502,"./kn.js":502,"./ko":503,"./ko.js":503,"./ku":504,"./ku.js":504,"./ky":505,"./ky.js":505,"./lb":506,"./lb.js":506,"./lo":507,"./lo.js":507,"./lt":508,"./lt.js":508,"./lv":509,"./lv.js":509,"./me":510,"./me.js":510,"./mi":511,"./mi.js":511,"./mk":512,"./mk.js":512,"./ml":513,"./ml.js":513,"./mn":514,"./mn.js":514,"./mr":515,"./mr.js":515,"./ms":516,"./ms-my":517,"./ms-my.js":517,"./ms.js":516,"./mt":518,"./mt.js":518,"./my":519,"./my.js":519,"./nb":520,"./nb.js":520,"./ne":521,"./ne.js":521,"./nl":522,"./nl-be":523,"./nl-be.js":523,"./nl.js":522,"./nn":524,"./nn.js":524,"./pa-in":525,"./pa-in.js":525,"./pl":526,"./pl.js":526,"./pt":527,"./pt-br":528,"./pt-br.js":528,"./pt.js":527,"./ro":529,"./ro.js":529,"./ru":530,"./ru.js":530,"./sd":531,"./sd.js":531,"./se":532,"./se.js":532,"./si":533,"./si.js":533,"./sk":534,"./sk.js":534,"./sl":535,"./sl.js":535,"./sq":536,"./sq.js":536,"./sr":537,"./sr-cyrl":538,"./sr-cyrl.js":538,"./sr.js":537,"./ss":539,"./ss.js":539,"./sv":540,"./sv.js":540,"./sw":541,"./sw.js":541,"./ta":542,"./ta.js":542,"./te":543,"./te.js":543,"./tet":544,"./tet.js":544,"./tg":545,"./tg.js":545,"./th":546,"./th.js":546,"./tl-ph":547,"./tl-ph.js":547,"./tlh":548,"./tlh.js":548,"./tr":549,"./tr.js":549,"./tzl":550,"./tzl.js":550,"./tzm":551,"./tzm-latn":552,"./tzm-latn.js":552,"./tzm.js":551,"./ug-cn":553,"./ug-cn.js":553,"./uk":554,"./uk.js":554,"./ur":555,"./ur.js":555,"./uz":556,"./uz-latn":557,"./uz-latn.js":557,"./uz.js":556,"./vi":558,"./vi.js":558,"./x-pseudo":559,"./x-pseudo.js":559,"./yo":560,"./yo.js":560,"./zh-cn":561,"./zh-cn.js":561,"./zh-hk":562,"./zh-hk.js":562,"./zh-tw":563,"./zh-tw.js":563};function r(e){var t=o(e);return n(t)}function o(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id=895},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";n.r(t);var i,r,o,s,a,l,c,d,u,h,f,g,p,m,_,b,v,y,w,C,S,k,x,L,M,D,E,T,O,N,I,A,R,P=n(27),j=n(26),F=n(6),B=n(39),W=n(24),H=n(10),Y=n(3),V=n(22),z=n(114);!function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"}(i||(i={})),function(e){e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"}(r||(r={})),function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"}(o||(o={})),function(e){e[e.Deprecated=1]="Deprecated"}(s||(s={})),function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(a||(a={})),function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"}(l||(l={})),function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"}(c||(c={})),function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(d||(d={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(u||(u={})),function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"}(h||(h={})),function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.autoClosingBrackets=5]="autoClosingBrackets",e[e.autoClosingOvertype=6]="autoClosingOvertype",e[e.autoClosingQuotes=7]="autoClosingQuotes",e[e.autoIndent=8]="autoIndent",e[e.automaticLayout=9]="automaticLayout",e[e.autoSurround=10]="autoSurround",e[e.codeLens=11]="codeLens",e[e.colorDecorators=12]="colorDecorators",e[e.columnSelection=13]="columnSelection",e[e.comments=14]="comments",e[e.contextmenu=15]="contextmenu",e[e.copyWithSyntaxHighlighting=16]="copyWithSyntaxHighlighting",e[e.cursorBlinking=17]="cursorBlinking",e[e.cursorSmoothCaretAnimation=18]="cursorSmoothCaretAnimation",e[e.cursorStyle=19]="cursorStyle",e[e.cursorSurroundingLines=20]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=21]="cursorSurroundingLinesStyle",e[e.cursorWidth=22]="cursorWidth",e[e.disableLayerHinting=23]="disableLayerHinting",e[e.disableMonospaceOptimizations=24]="disableMonospaceOptimizations",e[e.dragAndDrop=25]="dragAndDrop",e[e.emptySelectionClipboard=26]="emptySelectionClipboard",e[e.extraEditorClassName=27]="extraEditorClassName",e[e.fastScrollSensitivity=28]="fastScrollSensitivity",e[e.find=29]="find",e[e.fixedOverflowWidgets=30]="fixedOverflowWidgets",e[e.folding=31]="folding",e[e.foldingStrategy=32]="foldingStrategy",e[e.foldingHighlight=33]="foldingHighlight",e[e.unfoldOnClickAfterEndOfLine=34]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=35]="fontFamily",e[e.fontInfo=36]="fontInfo",e[e.fontLigatures=37]="fontLigatures",e[e.fontSize=38]="fontSize",e[e.fontWeight=39]="fontWeight",e[e.formatOnPaste=40]="formatOnPaste",e[e.formatOnType=41]="formatOnType",e[e.glyphMargin=42]="glyphMargin",e[e.gotoLocation=43]="gotoLocation",e[e.hideCursorInOverviewRuler=44]="hideCursorInOverviewRuler",e[e.highlightActiveIndentGuide=45]="highlightActiveIndentGuide",e[e.hover=46]="hover",e[e.inDiffEditor=47]="inDiffEditor",e[e.letterSpacing=48]="letterSpacing",e[e.lightbulb=49]="lightbulb",e[e.lineDecorationsWidth=50]="lineDecorationsWidth",e[e.lineHeight=51]="lineHeight",e[e.lineNumbers=52]="lineNumbers",e[e.lineNumbersMinChars=53]="lineNumbersMinChars",e[e.links=54]="links",e[e.matchBrackets=55]="matchBrackets",e[e.minimap=56]="minimap",e[e.mouseStyle=57]="mouseStyle",e[e.mouseWheelScrollSensitivity=58]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=59]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=60]="multiCursorMergeOverlapping",e[e.multiCursorModifier=61]="multiCursorModifier",e[e.multiCursorPaste=62]="multiCursorPaste",e[e.occurrencesHighlight=63]="occurrencesHighlight",e[e.overviewRulerBorder=64]="overviewRulerBorder",e[e.overviewRulerLanes=65]="overviewRulerLanes",e[e.padding=66]="padding",e[e.parameterHints=67]="parameterHints",e[e.peekWidgetDefaultFocus=68]="peekWidgetDefaultFocus",e[e.definitionLinkOpensInPeek=69]="definitionLinkOpensInPeek",e[e.quickSuggestions=70]="quickSuggestions",e[e.quickSuggestionsDelay=71]="quickSuggestionsDelay",e[e.readOnly=72]="readOnly",e[e.renameOnType=73]="renameOnType",e[e.renderControlCharacters=74]="renderControlCharacters",e[e.renderIndentGuides=75]="renderIndentGuides",e[e.renderFinalNewline=76]="renderFinalNewline",e[e.renderLineHighlight=77]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=78]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=79]="renderValidationDecorations",e[e.renderWhitespace=80]="renderWhitespace",e[e.revealHorizontalRightPadding=81]="revealHorizontalRightPadding",e[e.roundedSelection=82]="roundedSelection",e[e.rulers=83]="rulers",e[e.scrollbar=84]="scrollbar",e[e.scrollBeyondLastColumn=85]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=86]="scrollBeyondLastLine",e[e.scrollPredominantAxis=87]="scrollPredominantAxis",e[e.selectionClipboard=88]="selectionClipboard",e[e.selectionHighlight=89]="selectionHighlight",e[e.selectOnLineNumbers=90]="selectOnLineNumbers",e[e.showFoldingControls=91]="showFoldingControls",e[e.showUnused=92]="showUnused",e[e.snippetSuggestions=93]="snippetSuggestions",e[e.smoothScrolling=94]="smoothScrolling",e[e.stopRenderingLineAfter=95]="stopRenderingLineAfter",e[e.suggest=96]="suggest",e[e.suggestFontSize=97]="suggestFontSize",e[e.suggestLineHeight=98]="suggestLineHeight",e[e.suggestOnTriggerCharacters=99]="suggestOnTriggerCharacters",e[e.suggestSelection=100]="suggestSelection",e[e.tabCompletion=101]="tabCompletion",e[e.tabIndex=102]="tabIndex",e[e.unusualLineTerminators=103]="unusualLineTerminators",e[e.useTabStops=104]="useTabStops",e[e.wordSeparators=105]="wordSeparators",e[e.wordWrap=106]="wordWrap",e[e.wordWrapBreakAfterCharacters=107]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=108]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=109]="wordWrapColumn",e[e.wordWrapMinified=110]="wordWrapMinified",e[e.wrappingIndent=111]="wrappingIndent",e[e.wrappingStrategy=112]="wrappingStrategy",e[e.showDeprecated=113]="showDeprecated",e[e.editorClassName=114]="editorClassName",e[e.pixelRatio=115]="pixelRatio",e[e.tabFocusMode=116]="tabFocusMode",e[e.layoutInfo=117]="layoutInfo",e[e.wrappingInfo=118]="wrappingInfo"}(f||(f={})),function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(g||(g={})),function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"}(p||(p={})),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(m||(m={})),function(e){e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.KEY_0=21]="KEY_0",e[e.KEY_1=22]="KEY_1",e[e.KEY_2=23]="KEY_2",e[e.KEY_3=24]="KEY_3",e[e.KEY_4=25]="KEY_4",e[e.KEY_5=26]="KEY_5",e[e.KEY_6=27]="KEY_6",e[e.KEY_7=28]="KEY_7",e[e.KEY_8=29]="KEY_8",e[e.KEY_9=30]="KEY_9",e[e.KEY_A=31]="KEY_A",e[e.KEY_B=32]="KEY_B",e[e.KEY_C=33]="KEY_C",e[e.KEY_D=34]="KEY_D",e[e.KEY_E=35]="KEY_E",e[e.KEY_F=36]="KEY_F",e[e.KEY_G=37]="KEY_G",e[e.KEY_H=38]="KEY_H",e[e.KEY_I=39]="KEY_I",e[e.KEY_J=40]="KEY_J",e[e.KEY_K=41]="KEY_K",e[e.KEY_L=42]="KEY_L",e[e.KEY_M=43]="KEY_M",e[e.KEY_N=44]="KEY_N",e[e.KEY_O=45]="KEY_O",e[e.KEY_P=46]="KEY_P",e[e.KEY_Q=47]="KEY_Q",e[e.KEY_R=48]="KEY_R",e[e.KEY_S=49]="KEY_S",e[e.KEY_T=50]="KEY_T",e[e.KEY_U=51]="KEY_U",e[e.KEY_V=52]="KEY_V",e[e.KEY_W=53]="KEY_W",e[e.KEY_X=54]="KEY_X",e[e.KEY_Y=55]="KEY_Y",e[e.KEY_Z=56]="KEY_Z",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.NumLock=78]="NumLock",e[e.ScrollLock=79]="ScrollLock",e[e.US_SEMICOLON=80]="US_SEMICOLON",e[e.US_EQUAL=81]="US_EQUAL",e[e.US_COMMA=82]="US_COMMA",e[e.US_MINUS=83]="US_MINUS",e[e.US_DOT=84]="US_DOT",e[e.US_SLASH=85]="US_SLASH",e[e.US_BACKTICK=86]="US_BACKTICK",e[e.US_OPEN_SQUARE_BRACKET=87]="US_OPEN_SQUARE_BRACKET",e[e.US_BACKSLASH=88]="US_BACKSLASH",e[e.US_CLOSE_SQUARE_BRACKET=89]="US_CLOSE_SQUARE_BRACKET",e[e.US_QUOTE=90]="US_QUOTE",e[e.OEM_8=91]="OEM_8",e[e.OEM_102=92]="OEM_102",e[e.NUMPAD_0=93]="NUMPAD_0",e[e.NUMPAD_1=94]="NUMPAD_1",e[e.NUMPAD_2=95]="NUMPAD_2",e[e.NUMPAD_3=96]="NUMPAD_3",e[e.NUMPAD_4=97]="NUMPAD_4",e[e.NUMPAD_5=98]="NUMPAD_5",e[e.NUMPAD_6=99]="NUMPAD_6",e[e.NUMPAD_7=100]="NUMPAD_7",e[e.NUMPAD_8=101]="NUMPAD_8",e[e.NUMPAD_9=102]="NUMPAD_9",e[e.NUMPAD_MULTIPLY=103]="NUMPAD_MULTIPLY",e[e.NUMPAD_ADD=104]="NUMPAD_ADD",e[e.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",e[e.NUMPAD_SUBTRACT=106]="NUMPAD_SUBTRACT",e[e.NUMPAD_DECIMAL=107]="NUMPAD_DECIMAL",e[e.NUMPAD_DIVIDE=108]="NUMPAD_DIVIDE",e[e.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",e[e.ABNT_C1=110]="ABNT_C1",e[e.ABNT_C2=111]="ABNT_C2",e[e.MAX_VALUE=112]="MAX_VALUE"}(_||(_={})),function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(b||(b={})),function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"}(v||(v={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(y||(y={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"}(w||(w={})),function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"}(C||(C={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(S||(S={})),function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"}(k||(k={})),function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"}(x||(x={})),function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"}(L||(L={})),function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"}(M||(M={})),function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(D||(D={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(E||(E={})),function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"}(T||(T={})),function(e){e[e.Deprecated=1]="Deprecated"}(O||(O={})),function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"}(N||(N={})),function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"}(I||(I={})),function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"}(A||(A={})),function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"}(R||(R={}));class U{static chord(e,t){return Object(B.a)(e,t)}}function $(){return{editor:void 0,languages:void 0,CancellationTokenSource:j.b,Emitter:F.a,KeyCode:_,KeyMod:U,Position:H.a,Range:Y.a,Selection:V.a,SelectionDirection:D,MarkerSeverity:b,MarkerTag:v,Uri:W.a,Token:z.a}}U.CtrlCmd=2048,U.Shift=1024,U.Alt=512,U.WinCtrl=256;n(630);var q,K=n(33),G=n(1),Z=n(84),J=n(233),X=n(35),Q=n(42),ee=n(28),te=n(66);!function(e){e[e.API=0]="API",e[e.USER=1]="USER"}(q||(q={}));var ne=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},ie=function(e,t){return function(n,i){t(n,i,e)}},re=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};let oe=class{constructor(e){this._commandService=e}open(e){return re(this,void 0,void 0,(function*(){if(!Object(te.c)(e,X.b.command))return!1;"string"==typeof e&&(e=W.a.parse(e));let t=[];try{t=Object(J.a)(decodeURIComponent(e.query))}catch(n){try{t=Object(J.a)(e.query)}catch(e){}}return Array.isArray(t)||(t=[t]),yield this._commandService.executeCommand(e.path,...t),!0}))}};oe=ne([ie(0,ee.b)],oe);let se=class{constructor(e){this._editorService=e}open(e,t){return re(this,void 0,void 0,(function*(){"string"==typeof e&&(e=W.a.parse(e));let n=void 0;const i=/^L?(\d+)(?:,(\d+))?/.exec(e.fragment);return i&&(n={startLineNumber:parseInt(i[1]),startColumn:i[2]?parseInt(i[2]):1},e=e.with({fragment:""})),e.scheme===X.b.file&&(e=Object(Q.h)(e)),yield this._editorService.openCodeEditor({resource:e,options:{selection:n,context:(null==t?void 0:t.fromUserGesture)?q.USER:q.API}},this._editorService.getFocusedCodeEditor(),null==t?void 0:t.openToSide),!0}))}};se=ne([ie(0,K.a)],se);let ae=class{constructor(e,t){this._openers=new Z.a,this._validators=new Z.a,this._resolvers=new Z.a,this._externalOpener={openExternal:e=>(Object(te.c)(e,X.b.http)||Object(te.c)(e,X.b.https)?G.cb(e):window.location.href=e,Promise.resolve(!0))},this._openers.push({open:(e,t)=>re(this,void 0,void 0,(function*(){return!!((null==t?void 0:t.openExternal)||Object(te.c)(e,X.b.mailto)||Object(te.c)(e,X.b.http)||Object(te.c)(e,X.b.https))&&(yield this._doOpenExternal(e,t),!0)}))}),this._openers.push(new oe(t)),this._openers.push(new se(e))}open(e,t){return re(this,void 0,void 0,(function*(){for(const t of this._validators.toArray())if(!(yield t.shouldOpen(e)))return!1;for(const n of this._openers.toArray()){if(yield n.open(e,t))return!0}return!1}))}resolveExternalUri(e,t){return re(this,void 0,void 0,(function*(){for(const n of this._resolvers.toArray()){const i=yield n.resolveExternalUri(e,t);if(i)return i}return{resolved:e,dispose:()=>{}}}))}_doOpenExternal(e,t){return re(this,void 0,void 0,(function*(){const n="string"==typeof e?W.a.parse(e):e,{resolved:i}=yield this.resolveExternalUri(n,t);return"string"==typeof e&&n.toString()===i.toString()?this._externalOpener.openExternal(e):this._externalOpener.openExternal(encodeURI(i.toString(!0)))}))}dispose(){this._validators.clear()}};ae=ne([ie(0,K.a),ie(1,ee.b)],ae);var le=n(340),ce=n(175),de=n(145),ue=n(48),he=n(11),fe=n(78),ge=n(89),pe=n(110),me=n(19),_e=n(2),be=n(15),ve=n(12),ye=n(20);const we="$initialize";let Ce=!1;function Se(e){ve.h&&(Ce||(Ce=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/Microsoft/monaco-editor#faq")),console.warn(e.message))}class ke{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null)}setWorkerId(e){this._workerId=e}sendMessage(e,t){let n=String(++this._lastSentReq);return new Promise((i,r)=>{this._pendingReplies[n]={resolve:i,reject:r},this._send({vsWorker:this._workerId,req:n,method:e,args:t})})}handleMessage(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))}_handleMessage(e){if(e.seq){let t=e;if(!this._pendingReplies[t.seq])return void console.warn("Got reply to unknown seq");let n=this._pendingReplies[t.seq];if(delete this._pendingReplies[t.seq],t.err){let e=t.err;return t.err.$isError&&((e=new Error).name=t.err.name,e.message=t.err.message,e.stack=t.err.stack),void n.reject(e)}return void n.resolve(t.res)}let t=e,n=t.req;this._handler.handleMessage(t.method,t.args).then(e=>{this._send({vsWorker:this._workerId,seq:n,res:e,err:void 0})},e=>{e.detail instanceof Error&&(e.detail=Object(be.g)(e.detail)),this._send({vsWorker:this._workerId,seq:n,res:void 0,err:Object(be.g)(e)})})}_send(e){let t=[];if(e.req){const n=e;for(let e=0;e<n.args.length;e++)n.args[e]instanceof ArrayBuffer&&t.push(n.args[e])}else{const n=e;n.res instanceof ArrayBuffer&&t.push(n.res)}this._handler.sendMessage(e,t)}}class xe extends _e.a{constructor(e,t,n){super();let i=null;this._worker=this._register(e.create("vs/base/common/worker/simpleWorker",e=>{this._protocol.handleMessage(e)},e=>{i&&i(e)})),this._protocol=new ke({sendMessage:(e,t)=>{this._worker.postMessage(e,t)},handleMessage:(e,t)=>{if("function"!=typeof n[e])return Promise.reject(new Error("Missing method "+e+" on main thread host."));try{return Promise.resolve(n[e].apply(n,t))}catch(e){return Promise.reject(e)}}}),this._protocol.setWorkerId(this._worker.getId());let r=null;void 0!==self.require&&"function"==typeof self.require.getConfig?r=self.require.getConfig():void 0!==self.requirejs&&(r=self.requirejs.s.contexts._.config);const o=ye.d(n);this._onModuleLoaded=this._protocol.sendMessage(we,[this._worker.getId(),JSON.parse(JSON.stringify(r)),t,o]);const s=(e,t)=>this._request(e,t);this._lazyProxy=new Promise((e,n)=>{i=n,this._onModuleLoaded.then(t=>{e(ye.c(t,s))},e=>{n(e),this._onError("Worker failed to load "+t,e)})})}getProxyObject(){return this._lazyProxy}_request(e,t){return new Promise((n,i)=>{this._onModuleLoaded.then(()=>{this._protocol.sendMessage(e,t).then(n,i)},i)})}_onError(e,t){console.error(e),console.info(t)}}class Le{constructor(e,t,n,i,r){this.id=t;const o=function(e,t){if(ve.b.MonacoEnvironment){if("function"==typeof ve.b.MonacoEnvironment.getWorker)return ve.b.MonacoEnvironment.getWorker(e,t);if("function"==typeof ve.b.MonacoEnvironment.getWorkerUrl)return new Worker(ve.b.MonacoEnvironment.getWorkerUrl(e,t))}throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}("workerMain.js",n);"function"==typeof o.then?this.worker=o:this.worker=Promise.resolve(o),this.postMessage(e,[]),this.worker.then(e=>{e.onmessage=function(e){i(e.data)},e.onmessageerror=r,"function"==typeof e.addEventListener&&e.addEventListener("error",r)})}getId(){return this.id}postMessage(e,t){this.worker&&this.worker.then(n=>n.postMessage(e,t))}dispose(){this.worker&&this.worker.then(e=>e.terminate()),this.worker=null}}class Me{constructor(e){this._label=e,this._webWorkerFailedBeforeError=!1}create(e,t,n){let i=++Me.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new Le(e,i,this._label||"anonymous"+i,t,e=>{Se(e),this._webWorkerFailedBeforeError=e,n(e)})}}Me.LAST_WORKER_ID=0;var De=n(32),Ee=n(14);class Te{constructor(e,t,n,i){this.originalStart=e,this.originalLength=t,this.modifiedStart=n,this.modifiedLength=i}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}var Oe=n(170);class Ne{constructor(e){this.source=e}getElements(){const e=this.source,t=new Int32Array(e.length);for(let n=0,i=e.length;n<i;n++)t[n]=e.charCodeAt(n);return t}}function Ie(e,t,n){return new je(new Ne(e),new Ne(t)).ComputeDiff(n).changes}class Ae{static Assert(e,t){if(!e)throw new Error(t)}}class Re{static Copy(e,t,n,i,r){for(let o=0;o<r;o++)n[i+o]=e[t+o]}static Copy2(e,t,n,i,r){for(let o=0;o<r;o++)n[i+o]=e[t+o]}}class Pe{constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new Te(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class je{constructor(e,t,n=null){this.ContinueProcessingPredicate=n;const[i,r,o]=je._getElements(e),[s,a,l]=je._getElements(t);this._hasStrings=o&&l,this._originalStringElements=i,this._originalElementsOrHash=r,this._modifiedStringElements=s,this._modifiedElementsOrHash=a,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&"string"==typeof e[0]}static _getElements(e){const t=e.getElements();if(je._isStringArray(t)){const e=new Int32Array(t.length);for(let n=0,i=t.length;n<i;n++)e[n]=Object(Oe.c)(t[n],0);return[t,e,!0]}return t instanceof Int32Array?[[],t,!1]:[[],new Int32Array(t),!1]}ElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._modifiedStringElements[t])}OriginalElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._originalElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._originalStringElements[t])}ModifiedElementsAreEqual(e,t){return this._modifiedElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._modifiedStringElements[e]===this._modifiedStringElements[t])}ComputeDiff(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)}_ComputeDiff(e,t,n,i,r){const o=[!1];let s=this.ComputeDiffRecursive(e,t,n,i,o);return r&&(s=this.PrettifyChanges(s)),{quitEarly:o[0],changes:s}}ComputeDiffRecursive(e,t,n,i,r){for(r[0]=!1;e<=t&&n<=i&&this.ElementsAreEqual(e,n);)e++,n++;for(;t>=e&&i>=n&&this.ElementsAreEqual(t,i);)t--,i--;if(e>t||n>i){let r;return n<=i?(Ae.Assert(e===t+1,"originalStart should only be one more than originalEnd"),r=[new Te(e,0,n,i-n+1)]):e<=t?(Ae.Assert(n===i+1,"modifiedStart should only be one more than modifiedEnd"),r=[new Te(e,t-e+1,n,0)]):(Ae.Assert(e===t+1,"originalStart should only be one more than originalEnd"),Ae.Assert(n===i+1,"modifiedStart should only be one more than modifiedEnd"),r=[]),r}const o=[0],s=[0],a=this.ComputeRecursionPoint(e,t,n,i,o,s,r),l=o[0],c=s[0];if(null!==a)return a;if(!r[0]){const o=this.ComputeDiffRecursive(e,l,n,c,r);let s=[];return s=r[0]?[new Te(l+1,t-(l+1)+1,c+1,i-(c+1)+1)]:this.ComputeDiffRecursive(l+1,t,c+1,i,r),this.ConcatenateChanges(o,s)}return[new Te(e,t-e+1,n,i-n+1)]}WALKTRACE(e,t,n,i,r,o,s,a,l,c,d,u,h,f,g,p,m,_){let b=null,v=null,y=new Pe,w=t,C=n,S=h[0]-p[0]-i,k=-1073741824,x=this.m_forwardHistory.length-1;do{const t=S+e;t===w||t<C&&l[t-1]<l[t+1]?(f=(d=l[t+1])-S-i,d<k&&y.MarkNextChange(),k=d,y.AddModifiedElement(d+1,f),S=t+1-e):(f=(d=l[t-1]+1)-S-i,d<k&&y.MarkNextChange(),k=d-1,y.AddOriginalElement(d,f+1),S=t-1-e),x>=0&&(e=(l=this.m_forwardHistory[x])[0],w=1,C=l.length-1)}while(--x>=-1);if(b=y.getReverseChanges(),_[0]){let e=h[0]+1,t=p[0]+1;if(null!==b&&b.length>0){const n=b[b.length-1];e=Math.max(e,n.getOriginalEnd()),t=Math.max(t,n.getModifiedEnd())}v=[new Te(e,u-e+1,t,g-t+1)]}else{y=new Pe,w=o,C=s,S=h[0]-p[0]-a,k=1073741824,x=m?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const e=S+r;e===w||e<C&&c[e-1]>=c[e+1]?(f=(d=c[e+1]-1)-S-a,d>k&&y.MarkNextChange(),k=d+1,y.AddOriginalElement(d+1,f+1),S=e+1-r):(f=(d=c[e-1])-S-a,d>k&&y.MarkNextChange(),k=d,y.AddModifiedElement(d+1,f+1),S=e-1-r),x>=0&&(r=(c=this.m_reverseHistory[x])[0],w=1,C=c.length-1)}while(--x>=-1);v=y.getChanges()}return this.ConcatenateChanges(b,v)}ComputeRecursionPoint(e,t,n,i,r,o,s){let a=0,l=0,c=0,d=0,u=0,h=0;e--,n--,r[0]=0,o[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const f=t-e+(i-n),g=f+1,p=new Int32Array(g),m=new Int32Array(g),_=i-n,b=t-e,v=e-n,y=t-i,w=(b-_)%2==0;p[_]=e,m[b]=t,s[0]=!1;for(let C=1;C<=f/2+1;C++){let f=0,S=0;c=this.ClipDiagonalBound(_-C,C,_,g),d=this.ClipDiagonalBound(_+C,C,_,g);for(let e=c;e<=d;e+=2){l=(a=e===c||e<d&&p[e-1]<p[e+1]?p[e+1]:p[e-1]+1)-(e-_)-v;const n=a;for(;a<t&&l<i&&this.ElementsAreEqual(a+1,l+1);)a++,l++;if(p[e]=a,a+l>f+S&&(f=a,S=l),!w&&Math.abs(e-b)<=C-1&&a>=m[e])return r[0]=a,o[0]=l,n<=m[e]&&C<=1448?this.WALKTRACE(_,c,d,v,b,u,h,y,p,m,a,t,r,l,i,o,w,s):null}const k=(f-e+(S-n)-C)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(f,k))return s[0]=!0,r[0]=f,o[0]=S,k>0&&C<=1448?this.WALKTRACE(_,c,d,v,b,u,h,y,p,m,a,t,r,l,i,o,w,s):(e++,n++,[new Te(e,t-e+1,n,i-n+1)]);u=this.ClipDiagonalBound(b-C,C,b,g),h=this.ClipDiagonalBound(b+C,C,b,g);for(let f=u;f<=h;f+=2){l=(a=f===u||f<h&&m[f-1]>=m[f+1]?m[f+1]-1:m[f-1])-(f-b)-y;const g=a;for(;a>e&&l>n&&this.ElementsAreEqual(a,l);)a--,l--;if(m[f]=a,w&&Math.abs(f-_)<=C&&a<=p[f])return r[0]=a,o[0]=l,g>=p[f]&&C<=1448?this.WALKTRACE(_,c,d,v,b,u,h,y,p,m,a,t,r,l,i,o,w,s):null}if(C<=1447){let e=new Int32Array(d-c+2);e[0]=_-c+1,Re.Copy2(p,c,e,1,d-c+1),this.m_forwardHistory.push(e),(e=new Int32Array(h-u+2))[0]=b-u+1,Re.Copy2(m,u,e,1,h-u+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(_,c,d,v,b,u,h,y,p,m,a,t,r,l,i,o,w,s)}PrettifyChanges(e){for(let t=0;t<e.length;t++){const n=e[t],i=t<e.length-1?e[t+1].originalStart:this._originalElementsOrHash.length,r=t<e.length-1?e[t+1].modifiedStart:this._modifiedElementsOrHash.length,o=n.originalLength>0,s=n.modifiedLength>0;for(;n.originalStart+n.originalLength<i&&n.modifiedStart+n.modifiedLength<r&&(!o||this.OriginalElementsAreEqual(n.originalStart,n.originalStart+n.originalLength))&&(!s||this.ModifiedElementsAreEqual(n.modifiedStart,n.modifiedStart+n.modifiedLength));)n.originalStart++,n.modifiedStart++;let a=[null];t<e.length-1&&this.ChangesOverlap(e[t],e[t+1],a)&&(e[t]=a[0],e.splice(t+1,1),t--)}for(let t=e.length-1;t>=0;t--){const n=e[t];let i=0,r=0;if(t>0){const n=e[t-1];n.originalLength>0&&(i=n.originalStart+n.originalLength),n.modifiedLength>0&&(r=n.modifiedStart+n.modifiedLength)}const o=n.originalLength>0,s=n.modifiedLength>0;let a=0,l=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength);for(let e=1;;e++){const t=n.originalStart-e,c=n.modifiedStart-e;if(t<i||c<r)break;if(o&&!this.OriginalElementsAreEqual(t,t+n.originalLength))break;if(s&&!this.ModifiedElementsAreEqual(c,c+n.modifiedLength))break;const d=this._boundaryScore(t,n.originalLength,c,n.modifiedLength);d>l&&(l=d,a=e)}n.originalStart-=a,n.modifiedStart-=a}return e}_OriginalIsBoundary(e){return e<=0||e>=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1}_boundaryScore(e,t,n,i){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(n,i)?1:0)}ConcatenateChanges(e,t){let n=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){const i=new Array(e.length+t.length-1);return Re.Copy(e,0,i,0,e.length-1),i[e.length-1]=n[0],Re.Copy(t,1,i,e.length,t.length-1),i}{const n=new Array(e.length+t.length);return Re.Copy(e,0,n,0,e.length),Re.Copy(t,0,n,e.length,t.length),n}}ChangesOverlap(e,t,n){if(Ae.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),Ae.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){const i=e.originalStart;let r=e.originalLength;const o=e.modifiedStart;let s=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(r=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(s=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new Te(i,r,o,s),!0}return n[0]=null,!1}ClipDiagonalBound(e,t,n,i){if(e>=0&&e<i)return e;const r=t%2==0;if(e<0){return r===(n%2==0)?0:1}return r===((i-n-1)%2==0)?i-1:i-2}}var Fe=n(8);const Be=3;function We(e,t,n,i){return new je(e,t,n).ComputeDiff(i)}class He{constructor(e){const t=[],n=[];for(let i=0,r=e.length;i<r;i++)t[i]=$e(e[i],1),n[i]=qe(e[i],1);this.lines=e,this._startColumns=t,this._endColumns=n}getElements(){const e=[];for(let t=0,n=this.lines.length;t<n;t++)e[t]=this.lines[t].substring(this._startColumns[t]-1,this._endColumns[t]-1);return e}getStartLineNumber(e){return e+1}getEndLineNumber(e){return e+1}createCharSequence(e,t,n){const i=[],r=[],o=[];let s=0;for(let a=t;a<=n;a++){const t=this.lines[a],n=e?this._startColumns[a]:1,l=e?this._endColumns[a]:t.length+1;for(let e=n;e<l;e++)i[s]=t.charCodeAt(e-1),r[s]=a+1,o[s]=e,s++}return new Ye(i,r,o)}}class Ye{constructor(e,t,n){this._charCodes=e,this._lineNumbers=t,this._columns=n}getElements(){return this._charCodes}getStartLineNumber(e){return this._lineNumbers[e]}getStartColumn(e){return this._columns[e]}getEndLineNumber(e){return this._lineNumbers[e]}getEndColumn(e){return this._columns[e]+1}}class Ve{constructor(e,t,n,i,r,o,s,a){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=n,this.originalEndColumn=i,this.modifiedStartLineNumber=r,this.modifiedStartColumn=o,this.modifiedEndLineNumber=s,this.modifiedEndColumn=a}static createFromDiffChange(e,t,n){let i,r,o,s,a,l,c,d;return 0===e.originalLength?(i=0,r=0,o=0,s=0):(i=t.getStartLineNumber(e.originalStart),r=t.getStartColumn(e.originalStart),o=t.getEndLineNumber(e.originalStart+e.originalLength-1),s=t.getEndColumn(e.originalStart+e.originalLength-1)),0===e.modifiedLength?(a=0,l=0,c=0,d=0):(a=n.getStartLineNumber(e.modifiedStart),l=n.getStartColumn(e.modifiedStart),c=n.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),d=n.getEndColumn(e.modifiedStart+e.modifiedLength-1)),new Ve(i,r,o,s,a,l,c,d)}}class ze{constructor(e,t,n,i,r){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=n,this.modifiedEndLineNumber=i,this.charChanges=r}static createFromDiffResult(e,t,n,i,r,o,s){let a,l,c,d,u=void 0;if(0===t.originalLength?(a=n.getStartLineNumber(t.originalStart)-1,l=0):(a=n.getStartLineNumber(t.originalStart),l=n.getEndLineNumber(t.originalStart+t.originalLength-1)),0===t.modifiedLength?(c=i.getStartLineNumber(t.modifiedStart)-1,d=0):(c=i.getStartLineNumber(t.modifiedStart),d=i.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),o&&t.originalLength>0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&r()){const o=n.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),a=i.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);let l=We(o,a,r,!0).changes;s&&(l=function(e){if(e.length<=1)return e;const t=[e[0]];let n=t[0];for(let i=1,r=e.length;i<r;i++){const r=e[i],o=r.originalStart-(n.originalStart+n.originalLength),s=r.modifiedStart-(n.modifiedStart+n.modifiedLength);Math.min(o,s)<Be?(n.originalLength=r.originalStart+r.originalLength-n.originalStart,n.modifiedLength=r.modifiedStart+r.modifiedLength-n.modifiedStart):(t.push(r),n=r)}return t}(l)),u=[];for(let e=0,t=l.length;e<t;e++)u.push(Ve.createFromDiffChange(l[e],o,a))}return new ze(a,l,c,d,u)}}class Ue{constructor(e,t,n){this.shouldComputeCharChanges=n.shouldComputeCharChanges,this.shouldPostProcessCharChanges=n.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=n.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=n.shouldMakePrettyDiff,this.originalLines=e,this.modifiedLines=t,this.original=new He(e),this.modified=new He(t),this.continueLineDiff=Ke(n.maxComputationTime),this.continueCharDiff=Ke(0===n.maxComputationTime?0:Math.min(n.maxComputationTime,5e3))}computeDiff(){if(1===this.original.lines.length&&0===this.original.lines[0].length)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}]};if(1===this.modified.lines.length&&0===this.modified.lines[0].length)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}]};const e=We(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),t=e.changes,n=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){const e=[];for(let n=0,i=t.length;n<i;n++)e.push(ze.createFromDiffResult(this.shouldIgnoreTrimWhitespace,t[n],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:n,changes:e}}const i=[];let r=0,o=0;for(let e=-1,n=t.length;e<n;e++){const s=e+1<n?t[e+1]:null,a=s?s.originalStart:this.originalLines.length,l=s?s.modifiedStart:this.modifiedLines.length;for(;r<a&&o<l;){const e=this.originalLines[r],t=this.modifiedLines[o];if(e!==t){{let n=$e(e,1),s=$e(t,1);for(;n>1&&s>1;){if(e.charCodeAt(n-2)!==t.charCodeAt(s-2))break;n--,s--}(n>1||s>1)&&this._pushTrimWhitespaceCharChange(i,r+1,1,n,o+1,1,s)}{let n=qe(e,1),s=qe(t,1);const a=e.length+1,l=t.length+1;for(;n<a&&s<l;){if(e.charCodeAt(n-1)!==e.charCodeAt(s-1))break;n++,s++}(n<a||s<l)&&this._pushTrimWhitespaceCharChange(i,r+1,n,a,o+1,s,l)}}r++,o++}s&&(i.push(ze.createFromDiffResult(this.shouldIgnoreTrimWhitespace,s,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),r+=s.originalLength,o+=s.modifiedLength)}return{quitEarly:n,changes:i}}_pushTrimWhitespaceCharChange(e,t,n,i,r,o,s){if(this._mergeTrimWhitespaceCharChange(e,t,n,i,r,o,s))return;let a=void 0;this.shouldComputeCharChanges&&(a=[new Ve(t,n,t,i,r,o,r,s)]),e.push(new ze(t,t,r,r,a))}_mergeTrimWhitespaceCharChange(e,t,n,i,r,o,s){const a=e.length;if(0===a)return!1;const l=e[a-1];return 0!==l.originalEndLineNumber&&0!==l.modifiedEndLineNumber&&(l.originalEndLineNumber+1===t&&l.modifiedEndLineNumber+1===r&&(l.originalEndLineNumber=t,l.modifiedEndLineNumber=r,this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new Ve(t,n,t,i,r,o,r,s)),!0))}}function $e(e,t){const n=Fe.w(e);return-1===n?t:n+1}function qe(e,t){const n=Fe.J(e);return-1===n?t:n+2}function Ke(e){if(0===e)return()=>!0;const t=Date.now();return()=>Date.now()-t<e}var Ge=n(269);class Ze{constructor(e,t,n,i){this._uri=e,this._lines=t,this._eol=n,this._versionId=i,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}getText(){return null===this._cachedTextValue&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const t=e.changes;for(const e of t)this._acceptDeleteRange(e.range),this._acceptInsertText(new H.a(e.range.startLineNumber,e.range.startColumn),e.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,t=this._lines.length,n=new Uint32Array(t);for(let i=0;i<t;i++)n[i]=this._lines[i].length+e;this._lineStarts=new Ge.a(n)}}_setLineText(e,t){this._lines[e]=t,this._lineStarts&&this._lineStarts.changeValue(e,this._lines[e].length+this._eol.length)}_acceptDeleteRange(e){if(e.startLineNumber!==e.endLineNumber)this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.endLineNumber-1].substring(e.endColumn-1)),this._lines.splice(e.startLineNumber,e.endLineNumber-e.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(e.startLineNumber,e.endLineNumber-e.startLineNumber);else{if(e.startColumn===e.endColumn)return;this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.startLineNumber-1].substring(e.endColumn-1))}}_acceptInsertText(e,t){if(0===t.length)return;let n=t.split(/\r\n|\r|\n/);if(1===n.length)return void this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]+this._lines[e.lineNumber-1].substring(e.column-1));n[n.length-1]+=this._lines[e.lineNumber-1].substring(e.column-1),this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]);let i=new Uint32Array(n.length-1);for(let t=1;t<n.length;t++)this._lines.splice(e.lineNumber+t-1,0,n[t]),i[t-1]=n[t].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,i)}}var Je=n(138),Xe=n(111);class Qe{constructor(e,t,n){const i=new Uint8Array(e*t);for(let r=0,o=e*t;r<o;r++)i[r]=n;this._data=i,this.rows=e,this.cols=t}get(e,t){return this._data[e*this.cols+t]}set(e,t,n){this._data[e*this.cols+t]=n}}class et{constructor(e){let t=0,n=0;for(let i=0,r=e.length;i<r;i++){let[r,o,s]=e[i];o>t&&(t=o),r>n&&(n=r),s>n&&(n=s)}t++,n++;let i=new Qe(n,t,0);for(let t=0,n=e.length;t<n;t++){let[n,r,o]=e[t];i.set(n,r,o)}this._states=i,this._maxCharCode=t}nextState(e,t){return t<0||t>=this._maxCharCode?0:this._states.get(e,t)}}let tt=null;let nt=null;class it{static _createLink(e,t,n,i,r){let o=r-1;do{const n=t.charCodeAt(o);if(2!==e.get(n))break;o--}while(o>i);if(i>0){const e=t.charCodeAt(i-1),n=t.charCodeAt(o);(40===e&&41===n||91===e&&93===n||123===e&&125===n)&&o--}return{range:{startLineNumber:n,startColumn:i+1,endLineNumber:n,endColumn:o+2},url:t.substring(i,o+1)}}static computeLinks(e,t=(null===tt&&(tt=new et([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),tt)){const n=function(){if(null===nt){nt=new Xe.a(0);const e=" \t<>'\"、。。、,.:;‘“〈《「『【〔([{「」}])〕】』」》〉”’`~…";for(let t=0;t<e.length;t++)nt.set(e.charCodeAt(t),1);const t=".,;";for(let e=0;e<t.length;e++)nt.set(t.charCodeAt(e),2)}return nt}();let i=[];for(let r=1,o=e.getLineCount();r<=o;r++){const o=e.getLineContent(r),s=o.length;let a=0,l=0,c=0,d=1,u=!1,h=!1,f=!1,g=!1;for(;a<s;){let e=!1;const s=o.charCodeAt(a);if(13===d){let t;switch(s){case 40:u=!0,t=0;break;case 41:t=u?0:1;break;case 91:f=!0,h=!0,t=0;break;case 93:f=!1,t=h?0:1;break;case 123:g=!0,t=0;break;case 125:t=g?0:1;break;case 39:t=34===c||96===c?0:1;break;case 34:t=39===c||96===c?0:1;break;case 96:t=39===c||34===c?0:1;break;case 42:t=42===c?1:0;break;case 124:t=124===c?1:0;break;case 32:t=f?0:1;break;default:t=n.get(s)}1===t&&(i.push(it._createLink(n,o,r,l,a)),e=!0)}else if(12===d){let t;91===s?(h=!0,t=0):t=n.get(s),1===t?e=!0:d=13}else 0===(d=t.nextState(d,s))&&(e=!0);e&&(d=1,u=!1,h=!1,g=!1,l=a+1,c=s),a++}13===d&&i.push(it._createLink(n,o,r,l,s))}return i}}class rt{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(e,t,n,i,r){if(e&&t){let n=this.doNavigateValueSet(t,r);if(n)return{range:e,value:n}}if(n&&i){let e=this.doNavigateValueSet(i,r);if(e)return{range:n,value:e}}return null}doNavigateValueSet(e,t){let n=this.numberReplace(e,t);return null!==n?n:this.textReplace(e,t)}numberReplace(e,t){let n=Math.pow(10,e.length-(e.lastIndexOf(".")+1)),i=Number(e),r=parseFloat(e);return isNaN(i)||isNaN(r)||i!==r?null:0!==i||t?(i=Math.floor(i*n),i+=t?n:-n,String(i/n)):null}textReplace(e,t){return this.valueSetsReplace(this._defaultValueSet,e,t)}valueSetsReplace(e,t,n){let i=null;for(let r=0,o=e.length;null===i&&r<o;r++)i=this.valueSetReplace(e[r],t,n);return i}valueSetReplace(e,t,n){let i=e.indexOf(t);return i>=0?((i+=n?1:-1)<0?i=e.length-1:i%=e.length,e[i]):null}}rt.INSTANCE=new rt;var ot=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};class st extends Ze{get uri(){return this._uri}get version(){return this._versionId}get eol(){return this._eol}getValue(){return this.getText()}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(e){return this._lines[e-1]}getWordAtPosition(e,t){let n=Object(Je.d)(e.column,Object(Je.c)(t),this._lines[e.lineNumber-1],0);return n?new Y.a(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn):null}words(e){const t=this._lines,n=this._wordenize.bind(this);let i=0,r="",o=0,s=[];return{*[Symbol.iterator](){for(;;)if(o<s.length){const e=r.substring(s[o].start,s[o].end);o+=1,yield e}else{if(!(i<t.length))break;r=t[i],s=n(r,e),o=0,i+=1}}}}getLineWords(e,t){let n=this._lines[e-1],i=this._wordenize(n,t),r=[];for(const e of i)r.push({word:n.substring(e.start,e.end),startColumn:e.start+1,endColumn:e.end+1});return r}_wordenize(e,t){const n=[];let i;for(t.lastIndex=0;(i=t.exec(e))&&0!==i[0].length;)n.push({start:i.index,end:i.index+i[0].length});return n}getValueInRange(e){if((e=this._validateRange(e)).startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);let t=this._eol,n=e.startLineNumber-1,i=e.endLineNumber-1,r=[];r.push(this._lines[n].substring(e.startColumn-1));for(let e=n+1;e<i;e++)r.push(this._lines[e]);return r.push(this._lines[i].substring(0,e.endColumn-1)),r.join(t)}offsetAt(e){return e=this._validatePosition(e),this._ensureLineStarts(),this._lineStarts.getAccumulatedValue(e.lineNumber-2)+(e.column-1)}positionAt(e){e=Math.floor(e),e=Math.max(0,e),this._ensureLineStarts();let t=this._lineStarts.getIndexOf(e),n=this._lines[t.index].length;return{lineNumber:1+t.index,column:1+Math.min(t.remainder,n)}}_validateRange(e){const t=this._validatePosition({lineNumber:e.startLineNumber,column:e.startColumn}),n=this._validatePosition({lineNumber:e.endLineNumber,column:e.endColumn});return t.lineNumber!==e.startLineNumber||t.column!==e.startColumn||n.lineNumber!==e.endLineNumber||n.column!==e.endColumn?{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:n.lineNumber,endColumn:n.column}:e}_validatePosition(e){if(!H.a.isIPosition(e))throw new Error("bad position");let{lineNumber:t,column:n}=e,i=!1;if(t<1)t=1,n=1,i=!0;else if(t>this._lines.length)t=this._lines.length,n=this._lines[t-1].length+1,i=!0;else{let e=this._lines[t-1].length+1;n<1?(n=1,i=!0):n>e&&(n=e,i=!0)}return i?{lineNumber:t,column:n}:e}}class at{constructor(e,t){this._host=e,this._models=Object.create(null),this._foreignModuleFactory=t,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(e){return this._models[e]}_getModels(){let e=[];return Object.keys(this._models).forEach(t=>e.push(this._models[t])),e}acceptNewModel(e){this._models[e.url]=new st(W.a.parse(e.url),e.lines,e.EOL,e.versionId)}acceptModelChanged(e,t){if(!this._models[e])return;this._models[e].onEvents(t)}acceptRemovedModel(e){this._models[e]&&delete this._models[e]}computeDiff(e,t,n,i){return ot(this,void 0,void 0,(function*(){const r=this._getModel(e),o=this._getModel(t);if(!r||!o)return null;const s=r.getLinesContent(),a=o.getLinesContent(),l=new Ue(s,a,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:n,shouldMakePrettyDiff:!0,maxComputationTime:i}).computeDiff(),c=!(l.changes.length>0)&&this._modelsAreIdentical(r,o);return{quitEarly:l.quitEarly,identical:c,changes:l.changes}}))}_modelsAreIdentical(e,t){const n=e.getLineCount();if(n!==t.getLineCount())return!1;for(let i=1;i<=n;i++){if(e.getLineContent(i)!==t.getLineContent(i))return!1}return!0}computeMoreMinimalEdits(e,t){return ot(this,void 0,void 0,(function*(){const n=this._getModel(e);if(!n)return t;const i=[];let r=void 0;t=Object(Ee.p)(t,(e,t)=>{if(e.range&&t.range)return Y.a.compareRangesUsingStarts(e.range,t.range);return(e.range?0:1)-(t.range?0:1)});for(let{range:e,text:o,eol:s}of t){if("number"==typeof s&&(r=s),Y.a.isEmpty(e)&&!o)continue;const t=n.getValueInRange(e);if(t===(o=o.replace(/\r\n|\n|\r/g,n.eol)))continue;if(Math.max(o.length,t.length)>at._diffLimit){i.push({range:e,text:o});continue}const a=Ie(t,o,!1),l=n.offsetAt(Y.a.lift(e).getStartPosition());for(const e of a){const t=n.positionAt(l+e.originalStart),r=n.positionAt(l+e.originalStart+e.originalLength),s={text:o.substr(e.modifiedStart,e.modifiedLength),range:{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:r.lineNumber,endColumn:r.column}};n.getValueInRange(s.range)!==s.text&&i.push(s)}}return"number"==typeof r&&i.push({eol:r,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),i}))}computeLinks(e){return ot(this,void 0,void 0,(function*(){let t=this._getModel(e);return t?function(e){return e&&"function"==typeof e.getLineCount&&"function"==typeof e.getLineContent?it.computeLinks(e):[]}(t):null}))}textualSuggest(e,t,n,i){return ot(this,void 0,void 0,(function*(){const r=this._getModel(e);if(!r)return null;const o=[],s=new Set,a=new RegExp(n,i),l=r.getWordAtPosition(t,a);l&&s.add(r.getValueInRange(l));for(let e of r.words(a))if(!s.has(e)&&(s.add(e),isNaN(Number(e))&&(o.push(e),s.size>at._suggestionsLimit)))break;return o}))}computeWordRanges(e,t,n,i){return ot(this,void 0,void 0,(function*(){let r=this._getModel(e);if(!r)return Object.create(null);const o=new RegExp(n,i),s=Object.create(null);for(let e=t.startLineNumber;e<t.endLineNumber;e++){let t=r.getLineWords(e,o);for(const n of t){if(!isNaN(Number(n.word)))continue;let t=s[n.word];t||(t=[],s[n.word]=t),t.push({startLineNumber:e,startColumn:n.startColumn,endLineNumber:e,endColumn:n.endColumn})}}return s}))}navigateValueSet(e,t,n,i,r){return ot(this,void 0,void 0,(function*(){let o=this._getModel(e);if(!o)return null;let s=new RegExp(i,r);t.startColumn===t.endColumn&&(t={startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn+1});let a=o.getValueInRange(t),l=o.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn},s);if(!l)return null;let c=o.getValueInRange(l);return rt.INSTANCE.navigateValueSet(t,a,l,c,n)}))}loadForeignModule(e,t,n){let i={host:ye.c(n,(e,t)=>this._host.fhr(e,t)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(i,t),Promise.resolve(ye.d(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(e,t){if(!this._foreignModule||"function"!=typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(e){return Promise.reject(e)}}}at._diffLimit=1e5,at._suggestionsLimit=1e4,"function"==typeof importScripts&&(ve.b.monaco=$());var lt=n(54),ct=n(162),dt=n(92),ut=n(169),ht=function(e,t){return function(n,i){t(n,i,e)}},ft=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};const gt=6e4,pt=3e5;function mt(e,t){let n=e.getModel(t);return!!n&&!n.isTooLargeForSyncing()}let _t=class extends _e.a{constructor(e,t,n){super(),this._modelService=e,this._workerManager=this._register(new vt(this._modelService)),this._logService=n,this._register(he.s.register("*",{provideLinks:(e,t)=>mt(this._modelService,e.uri)?this._workerManager.withWorker().then(t=>t.computeLinks(e.uri)).then(e=>e&&{links:e}):Promise.resolve({links:[]})})),this._register(he.d.register("*",new bt(this._workerManager,t,this._modelService)))}dispose(){super.dispose()}canComputeDiff(e,t){return mt(this._modelService,e)&&mt(this._modelService,t)}computeDiff(e,t,n,i){return this._workerManager.withWorker().then(r=>r.computeDiff(e,t,n,i))}computeMoreMinimalEdits(e,t){if(Object(Ee.o)(t)){if(!mt(this._modelService,e))return Promise.resolve(t);const n=ut.a.create(!0),i=this._workerManager.withWorker().then(n=>n.computeMoreMinimalEdits(e,t));return i.finally(()=>this._logService.trace("FORMAT#computeMoreMinimalEdits",e.toString(!0),n.elapsed())),i}return Promise.resolve(void 0)}canNavigateValueSet(e){return mt(this._modelService,e)}navigateValueSet(e,t,n){return this._workerManager.withWorker().then(i=>i.navigateValueSet(e,t,n))}canComputeWordRanges(e){return mt(this._modelService,e)}computeWordRanges(e,t){return this._workerManager.withWorker().then(n=>n.computeWordRanges(e,t))}};_t=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}([ht(0,lt.a),ht(1,ct.a),ht(2,dt.b)],_t);class bt{constructor(e,t,n){this._debugDisplayName="wordbasedCompletions",this._workerManager=e,this._configurationService=t,this._modelService=n}provideCompletionItems(e,t){return ft(this,void 0,void 0,(function*(){const{wordBasedSuggestions:n}=this._configurationService.getValue(e.uri,t,"editor");if(!n)return;if(!mt(this._modelService,e.uri))return;const i=e.getWordAtPosition(t),r=i?new Y.a(t.lineNumber,i.startColumn,t.lineNumber,i.endColumn):Y.a.fromPositions(t),o=r.setEndPosition(t.lineNumber,t.column),s=yield this._workerManager.withWorker(),a=yield s.textualSuggest(e.uri,t);return a?{suggestions:a.map(e=>({kind:18,label:e,insertText:e,range:{insert:o,replace:r}}))}:void 0}))}}class vt extends _e.a{constructor(e){super(),this._modelService=e,this._editorWorkerClient=null,this._lastWorkerUsedTime=(new Date).getTime(),this._register(new me.c).cancelAndSet(()=>this._checkStopIdleWorker(),Math.round(pt/2)),this._register(this._modelService.onModelRemoved(e=>this._checkStopEmptyWorker()))}dispose(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),super.dispose()}_checkStopEmptyWorker(){if(!this._editorWorkerClient)return;0===this._modelService.getModels().length&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}_checkStopIdleWorker(){if(!this._editorWorkerClient)return;(new Date).getTime()-this._lastWorkerUsedTime>pt&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}withWorker(){return this._lastWorkerUsedTime=(new Date).getTime(),this._editorWorkerClient||(this._editorWorkerClient=new St(this._modelService,!1,"editorWorkerService")),Promise.resolve(this._editorWorkerClient)}}class yt extends _e.a{constructor(e,t,n){if(super(),this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),this._proxy=e,this._modelService=t,!n){let e=new me.c;e.cancelAndSet(()=>this._checkStopModelSync(),Math.round(gt/2)),this._register(e)}}dispose(){for(let e in this._syncedModels)Object(_e.f)(this._syncedModels[e]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),super.dispose()}ensureSyncedResources(e){for(const t of e){let e=t.toString();this._syncedModels[e]||this._beginModelSync(t),this._syncedModels[e]&&(this._syncedModelsLastUsedTime[e]=(new Date).getTime())}}_checkStopModelSync(){let e=(new Date).getTime(),t=[];for(let n in this._syncedModelsLastUsedTime){e-this._syncedModelsLastUsedTime[n]>gt&&t.push(n)}for(const e of t)this._stopModelSync(e)}_beginModelSync(e){let t=this._modelService.getModel(e);if(!t)return;if(t.isTooLargeForSyncing())return;let n=e.toString();this._proxy.acceptNewModel({url:t.uri.toString(),lines:t.getLinesContent(),EOL:t.getEOL(),versionId:t.getVersionId()});const i=new _e.b;i.add(t.onDidChangeContent(e=>{this._proxy.acceptModelChanged(n.toString(),e)})),i.add(t.onWillDispose(()=>{this._stopModelSync(n)})),i.add(Object(_e.h)(()=>{this._proxy.acceptRemovedModel(n)})),this._syncedModels[n]=i}_stopModelSync(e){let t=this._syncedModels[e];delete this._syncedModels[e],delete this._syncedModelsLastUsedTime[e],Object(_e.f)(t)}}class wt{constructor(e){this._instance=e,this._proxyObj=Promise.resolve(this._instance)}dispose(){this._instance.dispose()}getProxyObject(){return this._proxyObj}}class Ct{constructor(e){this._workerClient=e}fhr(e,t){return this._workerClient.fhr(e,t)}}class St extends _e.a{constructor(e,t,n){super(),this._disposed=!1,this._modelService=e,this._keepIdleModels=t,this._workerFactory=new Me(n),this._worker=null,this._modelManager=null}fhr(e,t){throw new Error("Not implemented!")}_getOrCreateWorker(){if(!this._worker)try{this._worker=this._register(new xe(this._workerFactory,"vs/editor/common/services/editorSimpleWorker",new Ct(this)))}catch(e){Se(e),this._worker=new wt(new at(new Ct(this),null))}return this._worker}_getProxy(){return this._getOrCreateWorker().getProxyObject().then(void 0,e=>(Se(e),this._worker=new wt(new at(new Ct(this),null)),this._getOrCreateWorker().getProxyObject()))}_getOrCreateModelManager(e){return this._modelManager||(this._modelManager=this._register(new yt(e,this._modelService,this._keepIdleModels))),this._modelManager}_withSyncedResources(e){return this._disposed?Promise.reject(Object(be.a)()):this._getProxy().then(t=>(this._getOrCreateModelManager(t).ensureSyncedResources(e),t))}computeDiff(e,t,n,i){return this._withSyncedResources([e,t]).then(r=>r.computeDiff(e.toString(),t.toString(),n,i))}computeMoreMinimalEdits(e,t){return this._withSyncedResources([e]).then(n=>n.computeMoreMinimalEdits(e.toString(),t))}computeLinks(e){return this._withSyncedResources([e]).then(t=>t.computeLinks(e.toString()))}textualSuggest(e,t){return this._withSyncedResources([e]).then(n=>{let i=this._modelService.getModel(e);if(!i)return null;let r=De.a.getWordDefinition(i.getLanguageIdentifier().id),o=r.source,s=Object(Fe.O)(r);return n.textualSuggest(e.toString(),t,o,s)})}computeWordRanges(e,t){return this._withSyncedResources([e]).then(n=>{let i=this._modelService.getModel(e);if(!i)return Promise.resolve(null);let r=De.a.getWordDefinition(i.getLanguageIdentifier().id),o=r.source,s=Object(Fe.O)(r);return n.computeWordRanges(e.toString(),t,o,s)})}navigateValueSet(e,t,n){return this._withSyncedResources([e]).then(i=>{let r=this._modelService.getModel(e);if(!r)return null;let o=De.a.getWordDefinition(r.getLanguageIdentifier().id),s=o.source,a=Object(Fe.O)(o);return i.navigateValueSet(e.toString(),t,n,s,a)})}dispose(){super.dispose(),this._disposed=!0}}class kt extends St{constructor(e,t){super(e,t.keepIdleModels||!1,t.label),this._foreignModuleId=t.moduleId,this._foreignModuleCreateData=t.createData||null,this._foreignModuleHost=t.host||null,this._foreignProxy=null}fhr(e,t){if(!this._foreignModuleHost||"function"!=typeof this._foreignModuleHost[e])return Promise.reject(new Error("Missing method "+e+" or missing main thread foreign host."));try{return Promise.resolve(this._foreignModuleHost[e].apply(this._foreignModuleHost,t))}catch(e){return Promise.reject(e)}}_getForeignProxy(){return this._foreignProxy||(this._foreignProxy=this._getProxy().then(e=>{const t=this._foreignModuleHost?ye.d(this._foreignModuleHost):[];return e.loadForeignModule(this._foreignModuleId,this._foreignModuleCreateData,t).then(t=>{this._foreignModuleCreateData=null;const n=(t,n)=>e.fmr(t,n),i=(e,t)=>(function(){const n=Array.prototype.slice.call(arguments,0);return t(e,n)});let r={};for(const e of t)r[e]=i(e,n);return r})})),this._foreignProxy}getProxy(){return this._getForeignProxy()}withSyncedResources(e){return this._withSyncedResources(e).then(e=>this.getProxy())}}var xt=n(99),Lt=n(79),Mt=n(63);function Dt(e){return!function(e){return Array.isArray(e)}(e)}function Et(e){return"string"==typeof e}function Tt(e){return!Et(e)}function Ot(e){return!e}function Nt(e,t){return e.ignoreCase&&t?t.toLowerCase():t}function It(e){return e.replace(/[&<>'"_]/g,"-")}function At(e,t){return new Error(`${e.languageId}: ${t}`)}function Rt(e,t,n,i,r){let o=null;return t.replace(/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g,(function(t,s,a,l,c,d,u,h,f){return Ot(a)?Ot(l)?!Ot(c)&&c<i.length?Nt(e,i[c]):!Ot(u)&&e&&"string"==typeof e[u]?e[u]:(null===o&&(o=r.split(".")).unshift(r),!Ot(d)&&d<o.length?Nt(e,o[d]):""):Nt(e,n):"$"}))}function Pt(e,t){let n=t;for(;n&&n.length>0;){const t=e.tokenizer[n];if(t)return t;const i=n.lastIndexOf(".");n=i<0?null:n.substr(0,i)}return null}class jt{constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}static create(e,t){return this._INSTANCE.create(e,t)}create(e,t){if(null!==e&&e.depth>=this._maxCacheDepth)return new Ft(e,t);let n=Ft.getStackElementId(e);n.length>0&&(n+="|"),n+=t;let i=this._entries[n];return i||(i=new Ft(e,t),this._entries[n]=i,i)}}jt._INSTANCE=new jt(5);class Ft{constructor(e,t){this.parent=e,this.state=t,this.depth=(this.parent?this.parent.depth:0)+1}static getStackElementId(e){let t="";for(;null!==e;)t.length>0&&(t+="|"),t+=e.state,e=e.parent;return t}static _equals(e,t){for(;null!==e&&null!==t;){if(e===t)return!0;if(e.state!==t.state)return!1;e=e.parent,t=t.parent}return null===e&&null===t}equals(e){return Ft._equals(this,e)}push(e){return jt.create(this,e)}pop(){return this.parent}popall(){let e=this;for(;e.parent;)e=e.parent;return e}switchTo(e){return jt.create(this.parent,e)}}class Bt{constructor(e,t){this.modeId=e,this.state=t}equals(e){return this.modeId===e.modeId&&this.state.equals(e.state)}clone(){return this.state.clone()===this.state?this:new Bt(this.modeId,this.state)}}class Wt{constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}static create(e,t){return this._INSTANCE.create(e,t)}create(e,t){if(null!==t)return new Ht(e,t);if(null!==e&&e.depth>=this._maxCacheDepth)return new Ht(e,t);let n=Ft.getStackElementId(e),i=this._entries[n];return i||(i=new Ht(e,null),this._entries[n]=i,i)}}Wt._INSTANCE=new Wt(5);class Ht{constructor(e,t){this.stack=e,this.embeddedModeData=t}clone(){return(this.embeddedModeData?this.embeddedModeData.clone():null)===this.embeddedModeData?this:Wt.create(this.stack,this.embeddedModeData)}equals(e){return e instanceof Ht&&(!!this.stack.equals(e.stack)&&(null===this.embeddedModeData&&null===e.embeddedModeData||null!==this.embeddedModeData&&null!==e.embeddedModeData&&this.embeddedModeData.equals(e.embeddedModeData)))}}class Yt{constructor(){this._tokens=[],this._language=null,this._lastTokenType=null,this._lastTokenLanguage=null}enterMode(e,t){this._language=t}emit(e,t){this._lastTokenType===t&&this._lastTokenLanguage===this._language||(this._lastTokenType=t,this._lastTokenLanguage=this._language,this._tokens.push(new z.a(e,t,this._language)))}nestedModeTokenize(e,t,n){const i=t.modeId,r=t.state,o=he.C.get(i);if(!o)return this.enterMode(n,i),this.emit(n,""),r;let s=o.tokenize(e,r,n);return this._tokens=this._tokens.concat(s.tokens),this._lastTokenType=null,this._lastTokenLanguage=null,this._language=null,s.endState}finalize(e){return new z.b(this._tokens,e)}}class Vt{constructor(e,t){this._modeService=e,this._theme=t,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}enterMode(e,t){this._currentLanguageId=this._modeService.getLanguageIdentifier(t).id}emit(e,t){let n=this._theme.match(this._currentLanguageId,t);this._lastTokenMetadata!==n&&(this._lastTokenMetadata=n,this._tokens.push(e),this._tokens.push(n))}static _merge(e,t,n){let i=null!==e?e.length:0,r=t.length,o=null!==n?n.length:0;if(0===i&&0===r&&0===o)return new Uint32Array(0);if(0===i&&0===r)return n;if(0===r&&0===o)return e;let s=new Uint32Array(i+r+o);null!==e&&s.set(e);for(let e=0;e<r;e++)s[i+e]=t[e];return null!==n&&s.set(n,i+r),s}nestedModeTokenize(e,t,n){const i=t.modeId,r=t.state,o=he.C.get(i);if(!o)return this.enterMode(n,i),this.emit(n,""),r;let s=o.tokenize2(e,r,n);return this._prependTokens=Vt._merge(this._prependTokens,this._tokens,s.tokens),this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0,s.endState}finalize(e){return new z.c(Vt._merge(this._prependTokens,this._tokens,null),e)}}class zt{constructor(e,t,n,i){this._modeService=e,this._standaloneThemeService=t,this._modeId=n,this._lexer=i,this._embeddedModes=Object.create(null),this.embeddedLoaded=Promise.resolve(void 0);let r=!1;this._tokenizationRegistryListener=he.C.onDidChange(e=>{if(r)return;let t=!1;for(let n=0,i=e.changedLanguages.length;n<i;n++){let i=e.changedLanguages[n];if(this._embeddedModes[i]){t=!0;break}}t&&(r=!0,he.C.fire([this._modeId]),r=!1)})}dispose(){this._tokenizationRegistryListener.dispose()}getLoadStatus(){let e=[];for(let t in this._embeddedModes){const n=he.C.get(t);if(n){if(n instanceof zt){const t=n.getLoadStatus();!1===t.loaded&&e.push(t.promise)}continue}const i=he.C.getPromise(t);i&&e.push(i)}return 0===e.length?{loaded:!0}:{loaded:!1,promise:Promise.all(e).then(e=>void 0)}}getInitialState(){let e=jt.create(null,this._lexer.start);return Wt.create(e,null)}tokenize(e,t,n){let i=new Yt,r=this._tokenize(e,t,n,i);return i.finalize(r)}tokenize2(e,t,n){let i=new Vt(this._modeService,this._standaloneThemeService.getColorTheme().tokenTheme),r=this._tokenize(e,t,n,i);return i.finalize(r)}_tokenize(e,t,n,i){return t.embeddedModeData?this._nestedTokenize(e,t,n,i):this._myTokenize(e,t,n,i)}_findLeavingNestedModeOffset(e,t){let n=this._lexer.tokenizer[t.stack.state];if(!n&&!(n=Pt(this._lexer,t.stack.state)))throw At(this._lexer,"tokenizer state is not defined: "+t.stack.state);let i=-1,r=!1;for(const t of n){if(!Tt(t.action)||"@pop"!==t.action.nextEmbedded)continue;r=!0;let n=t.regex,o=t.regex.source;if("^(?:"===o.substr(0,4)&&")"===o.substr(o.length-1,1)){let e=(n.ignoreCase?"i":"")+(n.unicode?"u":"");n=new RegExp(o.substr(4,o.length-5),e)}let s=e.search(n);-1===s||0!==s&&t.matchOnlyAtLineStart||(-1===i||s<i)&&(i=s)}if(!r)throw At(this._lexer,'no rule containing nextEmbedded: "@pop" in tokenizer embedded state: '+t.stack.state);return i}_nestedTokenize(e,t,n,i){let r=this._findLeavingNestedModeOffset(e,t);if(-1===r){let r=i.nestedModeTokenize(e,t.embeddedModeData,n);return Wt.create(t.stack,new Bt(t.embeddedModeData.modeId,r))}let o=e.substring(0,r);o.length>0&&i.nestedModeTokenize(o,t.embeddedModeData,n);let s=e.substring(r);return this._myTokenize(s,t,n+r,i)}_safeRuleName(e){return e?e.name:"(unknown)"}_myTokenize(e,t,n,i){i.enterMode(n,this._modeId);const r=e.length;let o=t.embeddedModeData,s=t.stack,a=0,l=null,c=!0;for(;c||a<r;){const t=a,h=s.depth,f=l?l.groups.length:0,g=s.state;let p=null,m=null,_=null,b=null,v=null;if(l){p=l.matches;const e=l.groups.shift();m=e.matched,_=e.action,b=l.rule,0===l.groups.length&&(l=null)}else{if(!c&&a>=r)break;c=!1;let t=this._lexer.tokenizer[g];if(!t&&!(t=Pt(this._lexer,g)))throw At(this._lexer,"tokenizer state is not defined: "+g);let n=e.substr(a);for(const e of t)if((0===a||!e.matchOnlyAtLineStart)&&(p=n.match(e.regex))){m=p[0],_=e.action;break}}if(p||(p=[""],m=""),_||(a<r&&(m=(p=[e.charAt(a)])[0]),_=this._lexer.defaultToken),null===m)break;for(a+=m.length;Dt(_)&&Tt(_)&&_.test;)_=_.test(m,p,g,a===r);let y=null;if("string"==typeof _||Array.isArray(_))y=_;else if(_.group)y=_.group;else if(null!==_.token&&void 0!==_.token){if(y=_.tokenSubst?Rt(this._lexer,_.token,m,p,g):_.token,_.nextEmbedded)if("@pop"===_.nextEmbedded){if(!o)throw At(this._lexer,"cannot pop embedded mode if not inside one");o=null}else{if(o)throw At(this._lexer,"cannot enter embedded mode from within an embedded mode");v=Rt(this._lexer,_.nextEmbedded,m,p,g)}if(_.goBack&&(a=Math.max(0,a-_.goBack)),_.switchTo&&"string"==typeof _.switchTo){let e=Rt(this._lexer,_.switchTo,m,p,g);if("@"===e[0]&&(e=e.substr(1)),!Pt(this._lexer,e))throw At(this._lexer,"trying to switch to a state '"+e+"' that is undefined in rule: "+this._safeRuleName(b));s=s.switchTo(e)}else{if(_.transform&&"function"==typeof _.transform)throw At(this._lexer,"action.transform not supported");if(_.next)if("@push"===_.next){if(s.depth>=this._lexer.maxStack)throw At(this._lexer,"maximum tokenizer stack size reached: ["+s.state+","+s.parent.state+",...]");s=s.push(g)}else if("@pop"===_.next){if(s.depth<=1)throw At(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(b));s=s.pop()}else if("@popall"===_.next)s=s.popall();else{let e=Rt(this._lexer,_.next,m,p,g);if("@"===e[0]&&(e=e.substr(1)),!Pt(this._lexer,e))throw At(this._lexer,"trying to set a next state '"+e+"' that is undefined in rule: "+this._safeRuleName(b));s=s.push(e)}}_.log&&"string"==typeof _.log&&(d=this._lexer,u=this._lexer.languageId+": "+Rt(this._lexer,_.log,m,p,g),console.log(`${d.languageId}: ${u}`))}if(null===y)throw At(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(b));const w=t=>{let o=this._modeService.getModeIdForLanguageName(t);o&&(t=o);const l=this._getNestedEmbeddedModeData(t);if(a<r){const t=e.substr(a);return this._nestedTokenize(t,Wt.create(s,l),n+a,i)}return Wt.create(s,l)};if(Array.isArray(y)){if(l&&l.groups.length>0)throw At(this._lexer,"groups cannot be nested: "+this._safeRuleName(b));if(p.length!==y.length+1)throw At(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(b));let e=0;for(let t=1;t<p.length;t++)e+=p[t].length;if(e!==m.length)throw At(this._lexer,"with groups, all characters should be matched in consecutive groups in rule: "+this._safeRuleName(b));l={rule:b,matches:p,groups:[]};for(let e=0;e<y.length;e++)l.groups[e]={action:y[e],matched:p[e+1]};a-=m.length}else{{if("@rematch"===y&&(a-=m.length,m="",p=null,y="",null!==v))return w(v);if(0===m.length){if(0===r||h!==s.depth||g!==s.state||(l?l.groups.length:0)!==f)continue;throw At(this._lexer,"no progress in tokenizer in rule: "+this._safeRuleName(b))}let e=null;if(Et(y)&&0===y.indexOf("@brackets")){let t=y.substr("@brackets".length),n=Ut(this._lexer,m);if(!n)throw At(this._lexer,"@brackets token returned but no bracket defined as: "+m);e=It(n.token+t)}else{e=It(""===y?"":y+this._lexer.tokenPostfix)}i.emit(t+n,e)}if(null!==v)return w(v)}}var d,u;return Wt.create(s,o)}_getNestedEmbeddedModeData(e){let t=this._locateMode(e);if(t){let e=he.C.get(t);if(e)return new Bt(t,e.getInitialState())}return new Bt(t||fe.b,fe.c)}_locateMode(e){if(!e||!this._modeService.isRegisteredMode(e))return null;if(e===this._modeId)return e;let t=this._modeService.getModeId(e);return t&&(this._modeService.triggerMode(t),this._embeddedModes[t]=!0),t}}function Ut(e,t){if(!t)return null;t=Nt(e,t);let n=e.brackets;for(const e of n){if(e.open===t)return{token:e.token,bracketType:1};if(e.close===t)return{token:e.token,bracketType:-1}}return null}class $t{static colorizeElement(e,t,n,i){let r=(i=i||{}).theme||"vs",o=i.mimeType||n.getAttribute("lang")||n.getAttribute("data-lang");if(!o)return console.error("Mode not detected"),Promise.resolve();e.setTheme(r);let s=n.firstChild?n.firstChild.nodeValue:"";n.className+=" "+r;return this.colorize(t,s||"",o,i).then(e=>{n.innerHTML=e},e=>console.error(e))}static colorize(e,t,n,i){let r=4;i&&"number"==typeof i.tabSize&&(r=i.tabSize),Fe.U(t)&&(t=t.substr(1));let o=t.split(/\r\n|\r|\n/),s=e.getModeId(n);if(!s)return Promise.resolve(Kt(o,r));e.triggerMode(s);const a=he.C.get(s);if(a)return qt(o,r,a);const l=he.C.getPromise(s);return new Promise(l?(e,t)=>{l.then(n=>{qt(o,r,n).then(e,t)},t)}:(e,t)=>{let n=null,i=null;const a=()=>{n&&(n.dispose(),n=null),i&&(i.dispose(),i=null);const a=he.C.get(s);a?qt(o,r,a).then(e,t):e(Kt(o,r))};(i=new me.e).cancelAndSet(a,500),n=he.C.onDidChange(e=>{e.changedLanguages.indexOf(s)>=0&&a()})})}static colorizeLine(e,t,n,i,r=4){const o=Mt.d.isBasicASCII(e,t),s=Mt.d.containsRTL(e,o,n);return Object(Lt.e)(new Lt.c(!1,!0,e,!1,o,s,0,i,[],r,0,0,0,0,-1,"none",!1,!1,null)).html}static colorizeModelLine(e,t,n=4){let i=e.getLineContent(t);e.forceTokenization(t);let r=e.getLineTokens(t).inflate();return this.colorizeLine(i,e.mightContainNonBasicASCII(),e.mightContainRTL(),r,n)}}function qt(e,t,n){return new Promise((i,r)=>{const o=()=>{const s=function(e,t,n){let i=[],r=n.getInitialState();for(let o=0,s=e.length;o<s;o++){let s=e[o],a=n.tokenize2(s,r,0);xt.a.convertToEndOffset(a.tokens,s.length);let l=new xt.a(a.tokens,s);const c=Mt.d.isBasicASCII(s,!0),d=Mt.d.containsRTL(s,c,!0);let u=Object(Lt.e)(new Lt.c(!1,!0,s,!1,c,d,0,l.inflate(),[],t,0,0,0,0,-1,"none",!1,!1,null));(i=i.concat(u.html)).push("<br/>"),r=a.endState}return i.join("")}(e,t,n);if(n instanceof zt){const e=n.getLoadStatus();if(!1===e.loaded)return void e.promise.then(o,r)}i(s)};o()})}function Kt(e,t){let n=[];const i=new Uint32Array(2);i[0]=0,i[1]=16793600;for(let r=0,o=e.length;r<o;r++){let o=e[r];i[0]=o.length;const s=new xt.a(i,o),a=Mt.d.isBasicASCII(o,!0),l=Mt.d.containsRTL(o,a,!0);let c=Object(Lt.e)(new Lt.c(!1,!0,o,!1,a,l,0,s,[],t,0,0,0,0,-1,"none",!1,!1,null));(n=n.concat(c.html)).push("<br/>")}return n.join("")}var Gt=n(56),Zt=n(58),Jt=n(100),Xt=n(152),Qt=n(174),en=n(60),tn=n(43),nn=n(65),rn=n(37),on=n(120);class sn{constructor(e={},t=[],n=[]){this._contents=e,this._keys=t,this._overrides=n,this.isFrozen=!1}get contents(){return this.checkAndFreeze(this._contents)}get overrides(){return this.checkAndFreeze(this._overrides)}get keys(){return this.checkAndFreeze(this._keys)}isEmpty(){return 0===this._keys.length&&0===Object.keys(this._contents).length&&0===this._overrides.length}getValue(e){return e?Object(tn.d)(this.contents,e):this.contents}override(e){const t=this.getContentsForOverrideIdentifer(e);if(!t||"object"!=typeof t||!Object.keys(t).length)return this;let n={};for(const e of Ee.e([...Object.keys(this.contents),...Object.keys(t)])){let i=this.contents[e],r=t[e];r&&("object"==typeof i&&"object"==typeof r?(i=rn.c(i),this.mergeContents(i,r)):i=r),n[e]=i}return new sn(n,this.keys,this.overrides)}merge(...e){const t=rn.c(this.contents),n=rn.c(this.overrides),i=[...this.keys];for(const r of e){this.mergeContents(t,r.contents);for(const e of r.overrides){const[t]=n.filter(t=>Ee.g(t.identifiers,e.identifiers));t?this.mergeContents(t.contents,e.contents):n.push(rn.c(e))}for(const e of r.keys)-1===i.indexOf(e)&&i.push(e)}return new sn(t,i,n)}freeze(){return this.isFrozen=!0,this}mergeContents(e,t){for(const n of Object.keys(t))n in e&&ye.i(e[n])&&ye.i(t[n])?this.mergeContents(e[n],t[n]):e[n]=rn.c(t[n])}checkAndFreeze(e){return this.isFrozen&&!Object.isFrozen(e)?rn.d(e):e}getContentsForOverrideIdentifer(e){for(const t of this.overrides)if(-1!==t.identifiers.indexOf(e))return t.contents;return null}toJSON(){return{contents:this.contents,overrides:this.overrides,keys:this.keys}}setValue(e,t){this.addKey(e),Object(tn.b)(this.contents,e,t,e=>{throw new Error(e)})}removeValue(e){this.removeKey(e)&&Object(tn.f)(this.contents,e)}addKey(e){let t=this.keys.length;for(let n=0;n<t;n++)0===e.indexOf(this.keys[n])&&(t=n);this.keys.splice(t,1,e)}removeKey(e){let t=this.keys.indexOf(e);return-1!==t&&(this.keys.splice(t,1),!0)}}class an extends sn{constructor(){const e=Object(tn.e)(),t=Object(tn.c)(),n=[];for(const t of Object.keys(e))on.b.test(t)&&n.push({identifiers:[Object(on.c)(t).trim()],keys:Object.keys(e[t]),contents:Object(tn.g)(e[t],e=>console.error(`Conflict in default settings file: ${e}`))});super(e,t,n)}}class ln{constructor(e,t,n=new sn,i=new sn,r=new nn.b,o=new sn,s=new nn.b,a=!0){this._defaultConfiguration=e,this._localUserConfiguration=t,this._remoteUserConfiguration=n,this._workspaceConfiguration=i,this._folderConfigurations=r,this._memoryConfiguration=o,this._memoryConfigurationByResource=s,this._freeze=a,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations=new nn.b,this._userConfiguration=null}getValue(e,t,n){return this.getConsolidateConfigurationModel(t,n).getValue(e)}updateValue(e,t,n={}){let i;n.resource?(i=this._memoryConfigurationByResource.get(n.resource))||(i=new sn,this._memoryConfigurationByResource.set(n.resource,i)):i=this._memoryConfiguration,void 0===t?i.removeValue(e):i.setValue(e,t),n.resource||(this._workspaceConsolidatedConfiguration=null)}get userConfiguration(){return this._userConfiguration||(this._userConfiguration=this._remoteUserConfiguration.isEmpty()?this._localUserConfiguration:this._localUserConfiguration.merge(this._remoteUserConfiguration),this._freeze&&this._userConfiguration.freeze()),this._userConfiguration}getConsolidateConfigurationModel(e,t){let n=this.getConsolidatedConfigurationModelForResource(e,t);return e.overrideIdentifier?n.override(e.overrideIdentifier):n}getConsolidatedConfigurationModelForResource({resource:e},t){let n=this.getWorkspaceConsolidatedConfiguration();if(t&&e){const i=t.getFolder(e);i&&(n=this.getFolderConsolidatedConfiguration(i.uri)||n);const r=this._memoryConfigurationByResource.get(e);r&&(n=n.merge(r))}return n}getWorkspaceConsolidatedConfiguration(){return this._workspaceConsolidatedConfiguration||(this._workspaceConsolidatedConfiguration=this._defaultConfiguration.merge(this.userConfiguration,this._workspaceConfiguration,this._memoryConfiguration),this._freeze&&(this._workspaceConfiguration=this._workspaceConfiguration.freeze())),this._workspaceConsolidatedConfiguration}getFolderConsolidatedConfiguration(e){let t=this._foldersConsolidatedConfigurations.get(e);if(!t){const n=this.getWorkspaceConsolidatedConfiguration(),i=this._folderConfigurations.get(e);i?(t=n.merge(i),this._freeze&&(t=t.freeze()),this._foldersConsolidatedConfigurations.set(e,t)):t=n}return t}toData(){return{defaults:{contents:this._defaultConfiguration.contents,overrides:this._defaultConfiguration.overrides,keys:this._defaultConfiguration.keys},user:{contents:this.userConfiguration.contents,overrides:this.userConfiguration.overrides,keys:this.userConfiguration.keys},workspace:{contents:this._workspaceConfiguration.contents,overrides:this._workspaceConfiguration.overrides,keys:this._workspaceConfiguration.keys},folders:[...this._folderConfigurations.keys()].reduce((e,t)=>{const{contents:n,overrides:i,keys:r}=this._folderConfigurations.get(t);return e.push([t,{contents:n,overrides:i,keys:r}]),e},[])}}static parse(e){const t=this.parseConfigurationModel(e.defaults),n=this.parseConfigurationModel(e.user),i=this.parseConfigurationModel(e.workspace),r=e.folders.reduce((e,t)=>(e.set(W.a.revive(t[0]),this.parseConfigurationModel(t[1])),e),new nn.b);return new ln(t,n,new sn,i,r,new sn,new nn.b,!1)}static parseConfigurationModel(e){return new sn(e.contents,e.keys,e.overrides).freeze()}}class cn{constructor(e,t,n,i){this.change=e,this.previous=t,this.currentConfiguraiton=n,this.currentWorkspace=i,this._previousConfiguration=void 0;const r=new Set;e.keys.forEach(e=>r.add(e)),e.overrides.forEach(([,e])=>e.forEach(e=>r.add(e))),this.affectedKeys=[...r.values()];const o=new sn;this.affectedKeys.forEach(e=>o.setValue(e,{})),this.affectedKeysTree=o.contents}get previousConfiguration(){return!this._previousConfiguration&&this.previous&&(this._previousConfiguration=ln.parse(this.previous.data)),this._previousConfiguration}affectsConfiguration(e,t){var n;if(this.doesAffectedKeysTreeContains(this.affectedKeysTree,e)){if(t){const i=this.previousConfiguration?this.previousConfiguration.getValue(e,t,null===(n=this.previous)||void 0===n?void 0:n.workspace):void 0,r=this.currentConfiguraiton.getValue(e,t,this.currentWorkspace);return!rn.e(i,r)}return!0}return!1}doesAffectedKeysTreeContains(e,t){let n,i=Object(tn.g)({[t]:!0},()=>{});for(;"object"==typeof i&&(n=Object.keys(i)[0]);){if(!(e=e[n]))return!1;i=i[n]}return!0}}var dn=n(0);class un extends _e.a{constructor(e,t,n,i,r){super(),this._contextKeyService=e,this._commandService=t,this._telemetryService=n,this._notificationService=i,this._logService=r,this._onDidUpdateKeybindings=this._register(new F.a),this._currentChord=null,this._currentChordChecker=new me.c,this._currentChordStatusMessage=null,this._logging=!1}get onDidUpdateKeybindings(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:F.b.None}dispose(){super.dispose()}_log(e){this._logging&&this._logService.info(`[KeybindingService]: ${e}`)}getKeybindings(){return this._getResolver().getKeybindings()}lookupKeybindings(e){return Ee.d(this._getResolver().lookupKeybindings(e).map(e=>e.resolvedKeybinding))}lookupKeybinding(e){const t=this._getResolver().lookupPrimaryKeybinding(e);if(t)return t.resolvedKeybinding}dispatchEvent(e,t){return this._dispatch(e,t)}softDispatch(e,t){const n=this.resolveKeyboardEvent(e);if(n.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),null;const[i]=n.getDispatchParts();if(null===i)return null;const r=this._contextKeyService.getContext(t),o=this._currentChord?this._currentChord.keypress:null;return this._getResolver().resolve(r,o,i)}_enterChordMode(e,t){this._currentChord={keypress:e,label:t},this._currentChordStatusMessage=this._notificationService.status(dn.a("first.chord","({0}) was pressed. Waiting for second key of chord...",t));const n=Date.now();this._currentChordChecker.cancelAndSet(()=>{this._documentHasFocus()?Date.now()-n>5e3&&this._leaveChordMode():this._leaveChordMode()},500)}_leaveChordMode(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChord=null}_dispatch(e,t){return this._doDispatch(this.resolveKeyboardEvent(e),t)}_doDispatch(e,t){let n=!1;if(e.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),!1;const[i]=e.getDispatchParts();if(null===i)return this._log("\\ Keyboard event cannot be dispatched."),n;const r=this._contextKeyService.getContext(t),o=this._currentChord?this._currentChord.keypress:null,s=e.getLabel(),a=this._getResolver().resolve(r,o,i);return this._logService.trace("KeybindingService#dispatch",s,null==a?void 0:a.commandId),a&&a.enterChord?(n=!0,this._enterChordMode(i,s),n):(this._currentChord&&(a&&a.commandId||(this._notificationService.status(dn.a("missing.chord","The key combination ({0}, {1}) is not a command.",this._currentChord.label,s),{hideAfter:1e4}),n=!0)),this._leaveChordMode(),a&&a.commandId&&(a.bubble||(n=!0),void 0===a.commandArgs?this._commandService.executeCommand(a.commandId).then(void 0,e=>this._notificationService.warn(e)):this._commandService.executeCommand(a.commandId,a.commandArgs).then(void 0,e=>this._notificationService.warn(e)),this._telemetryService.publicLog2("workbenchActionExecuted",{id:a.commandId,from:"keybinding"})),n)}mightProducePrintableCharacter(e){return!e.ctrlKey&&!e.metaKey&&(e.keyCode>=31&&e.keyCode<=56||e.keyCode>=21&&e.keyCode<=30)}}class hn{constructor(e,t,n){this._log=n,this._defaultKeybindings=e,this._defaultBoundCommands=new Map;for(let t=0,n=e.length;t<n;t++){const n=e[t].command;n&&this._defaultBoundCommands.set(n,!0)}this._map=new Map,this._lookupMap=new Map,this._keybindings=hn.combine(e,t);for(let e=0,t=this._keybindings.length;e<t;e++){let t=this._keybindings[e];0!==t.keypressParts.length&&(t.when&&0===t.when.type||this._addKeyPress(t.keypressParts[0],t))}}static _isTargetedForRemoval(e,t,n,i,r){if(e.command!==i)return!1;if(t&&e.keypressParts[0]!==t)return!1;if(n&&e.keypressParts[1]!==n)return!1;if(r){if(!e.when)return!1;if(!r.equals(e.when))return!1}return!0}static combine(e,t){e=e.slice(0);let n=[];for(const i of t){if(!i.command||0===i.command.length||"-"!==i.command.charAt(0)){n.push(i);continue}const t=i.command.substr(1),r=i.keypressParts[0],o=i.keypressParts[1],s=i.when;for(let n=e.length-1;n>=0;n--)this._isTargetedForRemoval(e[n],r,o,t,s)&&e.splice(n,1)}return e.concat(n)}_addKeyPress(e,t){const n=this._map.get(e);if(void 0===n)return this._map.set(e,[t]),void this._addToLookupMap(t);for(let e=n.length-1;e>=0;e--){let i=n[e];if(i.command===t.command)continue;const r=i.keypressParts.length>1,o=t.keypressParts.length>1;r&&o&&i.keypressParts[1]!==t.keypressParts[1]||hn.whenIsEntirelyIncluded(i.when,t.when)&&this._removeFromLookupMap(i)}n.push(t),this._addToLookupMap(t)}_addToLookupMap(e){if(!e.command)return;let t=this._lookupMap.get(e.command);void 0===t?(t=[e],this._lookupMap.set(e.command,t)):t.push(e)}_removeFromLookupMap(e){if(!e.command)return;let t=this._lookupMap.get(e.command);if(void 0!==t)for(let n=0,i=t.length;n<i;n++)if(t[n]===e)return void t.splice(n,1)}static whenIsEntirelyIncluded(e,t){return!t||!!e&&this._implies(e,t)}static _implies(e,t){const n=e=>9===e.type?e.expr:[e];let i=n(e.negate()).concat(n(t));for(let e=0;e<i.length;e++){const t=i[e].negate();for(let n=e+1;n<i.length;n++){const e=i[n];if(t.equals(e))return!0}}return!1}getKeybindings(){return this._keybindings}lookupKeybindings(e){let t=this._lookupMap.get(e);if(void 0===t||0===t.length)return[];let n=[],i=0;for(let e=t.length-1;e>=0;e--)n[i++]=t[e];return n}lookupPrimaryKeybinding(e){let t=this._lookupMap.get(e);return void 0===t||0===t.length?null:t[t.length-1]}resolve(e,t,n){this._log(`| Resolving ${n}${t?` chorded from ${t}`:""}`);let i=null;if(null!==t){const e=this._map.get(t);if(void 0===e)return this._log("\\ No keybinding entries."),null;i=[];for(let t=0,r=e.length;t<r;t++){let r=e[t];r.keypressParts[1]===n&&i.push(r)}}else{const e=this._map.get(n);if(void 0===e)return this._log("\\ No keybinding entries."),null;i=e}let r=this._findCommand(e,i);return r?null===t&&r.keypressParts.length>1&&null!==r.keypressParts[1]?(this._log(`\\ From ${i.length} keybinding entries, matched chord, when: ${fn(r.when)}, source: ${gn(r)}.`),{enterChord:!0,leaveChord:!1,commandId:null,commandArgs:null,bubble:!1}):(this._log(`\\ From ${i.length} keybinding entries, matched ${r.command}, when: ${fn(r.when)}, source: ${gn(r)}.`),{enterChord:!1,leaveChord:r.keypressParts.length>1,commandId:r.command,commandArgs:r.commandArgs,bubble:r.bubble}):(this._log(`\\ From ${i.length} keybinding entries, no when clauses matched the context.`),null)}_findCommand(e,t){for(let n=t.length-1;n>=0;n--){let i=t[n];if(hn.contextMatchesRules(e,i.when))return i}return null}static contextMatchesRules(e,t){return!t||t.evaluate(e)}}function fn(e){return e?`${e.serialize()}`:"no when condition"}function gn(e){return e.isDefault?e.extensionId?`built-in extension ${e.extensionId}`:"built-in":e.extensionId?`user extension ${e.extensionId}`:"user"}var pn=n(80);class mn{constructor(e,t,n,i,r,o){this.resolvedKeybinding=e,this.keypressParts=e?function(e){let t=[];for(let n=0,i=e.length;n<i;n++){const i=e[n];if(!i)return t;t.push(i)}return t}(e.getDispatchParts()):[],this.bubble=!!t&&94===t.charCodeAt(0),this.command=this.bubble?t.substr(1):t,this.commandArgs=n,this.when=i,this.isDefault=r,this.extensionId=o}}class _n{constructor(e,t,n=t){this.modifierLabels=[null],this.modifierLabels[2]=e,this.modifierLabels[1]=t,this.modifierLabels[3]=n}toLabel(e,t,n){if(0===t.length)return null;const i=[];for(let r=0,o=t.length;r<o;r++){const o=t[r],s=n(o);if(null===s)return null;i[r]=yn(o,s,this.modifierLabels[e])}return i.join(" ")}}const bn=new _n({ctrlKey:"⌃",shiftKey:"⇧",altKey:"⌥",metaKey:"⌘",separator:""},{ctrlKey:dn.a({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:dn.a({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:dn.a({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:dn.a({key:"windowsKey",comment:["This is the short form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:dn.a({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:dn.a({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:dn.a({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:dn.a({key:"superKey",comment:["This is the short form for the Super key on the keyboard"]},"Super"),separator:"+"}),vn=new _n({ctrlKey:dn.a({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:dn.a({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:dn.a({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:dn.a({key:"cmdKey.long",comment:["This is the long form for the Command key on the keyboard"]},"Command"),separator:"+"},{ctrlKey:dn.a({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:dn.a({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:dn.a({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:dn.a({key:"windowsKey.long",comment:["This is the long form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:dn.a({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:dn.a({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:dn.a({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:dn.a({key:"superKey.long",comment:["This is the long form for the Super key on the keyboard"]},"Super"),separator:"+"});function yn(e,t,n){if(null===t)return"";const i=[];return e.ctrlKey&&i.push(n.ctrlKey),e.shiftKey&&i.push(n.shiftKey),e.altKey&&i.push(n.altKey),e.metaKey&&i.push(n.metaKey),""!==t&&i.push(t),i.join(n.separator)}class wn extends B.c{constructor(e,t){if(super(),0===t.length)throw Object(be.b)("parts");this._os=e,this._parts=t}getLabel(){return bn.toLabel(this._os,this._parts,e=>this._getLabel(e))}getAriaLabel(){return vn.toLabel(this._os,this._parts,e=>this._getAriaLabel(e))}isChord(){return this._parts.length>1}getParts(){return this._parts.map(e=>this._getPart(e))}_getPart(e){return new B.d(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,this._getLabel(e),this._getAriaLabel(e))}getDispatchParts(){return this._parts.map(e=>this._getDispatchPart(e))}}class Cn extends wn{constructor(e,t){super(t,e.parts)}_keyCodeToUILabel(e){if(2===this._os)switch(e){case 15:return"←";case 16:return"↑";case 17:return"→";case 18:return"↓"}return B.b.toString(e)}_getLabel(e){return e.isDuplicateModifierCase()?"":this._keyCodeToUILabel(e.keyCode)}_getAriaLabel(e){return e.isDuplicateModifierCase()?"":B.b.toString(e.keyCode)}_getDispatchPart(e){return Cn.getDispatchStr(e)}static getDispatchStr(e){if(e.isModifierKey())return null;let t="";return e.ctrlKey&&(t+="ctrl+"),e.shiftKey&&(t+="shift+"),e.altKey&&(t+="alt+"),e.metaKey&&(t+="meta+"),t+=B.b.toString(e.keyCode)}}var Sn=n(40),kn=n(205),xn=n(44),Ln=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Mn=function(e,t){return function(n,i){t(n,i,e)}},Dn=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};class En{constructor(e){this.disposed=!1,this.model=e,this._onDispose=new F.a}get textEditorModel(){return this.model}dispose(){this.disposed=!0,this._onDispose.fire()}}let Tn=class{constructor(e){this.modelService=e}setEditor(e){this.editor=e}createModelReference(e){let t=null;var n,i,r;return this.editor&&(n=this.editor,i=t=>this.findModel(t,e),r=t=>this.findModel(t.getOriginalEditor(),e)||this.findModel(t.getModifiedEditor(),e),t=Object(Jt.b)(n)?i(n):r(n)),t?Promise.resolve(new _e.c(new En(t))):Promise.reject(new Error("Model not found"))}findModel(e,t){let n=this.modelService.getModel(t);return n&&n.uri.toString()!==t.toString()?null:n}};Tn=Ln([Mn(0,lt.a)],Tn);class On{show(){return On.NULL_PROGRESS_RUNNER}showWhile(e,t){return Promise.resolve(void 0)}}On.NULL_PROGRESS_RUNNER={done:()=>{},total:()=>{},worked:()=>{}};class Nn{confirm(e){return this.doConfirm(e).then(e=>({confirmed:e,checkboxChecked:!1}))}doConfirm(e){let t=e.message;return e.detail&&(t=t+"\n\n"+e.detail),Promise.resolve(window.confirm(t))}show(e,t,n,i){return Promise.resolve({choice:0})}}class In{info(e){return this.notify({severity:Zt.a.Info,message:e})}warn(e){return this.notify({severity:Zt.a.Warning,message:e})}error(e){return this.notify({severity:Zt.a.Error,message:e})}notify(e){switch(e.severity){case Zt.a.Error:console.error(e.message);break;case Zt.a.Warning:console.warn(e.message);break;default:console.log(e.message)}return In.NO_OP}status(e,t){return _e.a.None}}In.NO_OP=new Sn.b;class An{constructor(e){this._onWillExecuteCommand=new F.a,this._onDidExecuteCommand=new F.a,this._instantiationService=e}executeCommand(e,...t){const n=ee.a.getCommand(e);if(!n)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:t});const i=this._instantiationService.invokeFunction.apply(this._instantiationService,[n.handler,...t]);return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(i)}catch(e){return Promise.reject(e)}}}class Rn extends un{constructor(e,t,n,i,r,o){super(e,t,n,i,r),this._cachedResolver=null,this._dynamicKeybindings=[],this._register(G.i(o,G.c.KEY_DOWN,e=>{let t=new Gt.a(e);this._dispatch(t,t.target)&&(t.preventDefault(),t.stopPropagation())}))}addDynamicKeybinding(e,t,n,i){const r=Object(B.f)(t,ve.a),o=new _e.b;return r&&(this._dynamicKeybindings.push({keybinding:r,command:e,when:i,weight1:1e3,weight2:0,extensionId:null}),o.add(Object(_e.h)(()=>{for(let t=0;t<this._dynamicKeybindings.length;t++){if(this._dynamicKeybindings[t].command===e)return this._dynamicKeybindings.splice(t,1),void this.updateResolver({source:1})}}))),o.add(ee.a.registerCommand(e,n)),this.updateResolver({source:1}),o}updateResolver(e){this._cachedResolver=null,this._onDidUpdateKeybindings.fire(e)}_getResolver(){if(!this._cachedResolver){const e=this._toNormalizedKeybindingItems(pn.a.getDefaultKeybindings(),!0),t=this._toNormalizedKeybindingItems(this._dynamicKeybindings,!1);this._cachedResolver=new hn(e,t,e=>this._log(e))}return this._cachedResolver}_documentHasFocus(){return document.hasFocus()}_toNormalizedKeybindingItems(e,t){let n=[],i=0;for(const r of e){const e=r.when||void 0,o=r.keybinding;if(o){const s=this.resolveKeybinding(o);for(const o of s)n[i++]=new mn(o,r.command,r.commandArgs,e,t,null)}else n[i++]=new mn(void 0,r.command,r.commandArgs,e,t,null)}return n}resolveKeybinding(e){return[new Cn(e,ve.a)]}resolveKeyboardEvent(e){let t=new B.e(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,e.keyCode).toChord();return new Cn(t,ve.a)}}function Pn(e){return e&&"object"==typeof e&&(!e.overrideIdentifier||"string"==typeof e.overrideIdentifier)&&(!e.resource||e.resource instanceof W.a)}class jn{constructor(){this._onDidChangeConfiguration=new F.a,this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._configuration=new ln(new an,new sn)}getValue(e,t){const n="string"==typeof e?e:void 0,i=Pn(e)?e:Pn(t)?t:{};return this._configuration.getValue(n,i,void 0)}updateValues(e){const t={data:this._configuration.toData()};let n=[];for(const t of e){const[e,i]=t;this.getValue(e)!==i&&(this._configuration.updateValue(e,i),n.push(e))}if(n.length>0){const e=new cn({keys:n,overrides:[]},t,this._configuration);e.source=7,e.sourceConfig=null,this._onDidChangeConfiguration.fire(e)}return Promise.resolve()}}class Fn{constructor(e){this.configurationService=e,this._onDidChangeConfiguration=new F.a,this.configurationService.onDidChangeConfiguration(e=>{this._onDidChangeConfiguration.fire({affectedKeys:e.affectedKeys,affectsConfiguration:(t,n)=>e.affectsConfiguration(n)})})}getValue(e,t,n){const i=(H.a.isIPosition(t)?t:null)?"string"==typeof n?n:void 0:"string"==typeof t?t:void 0;return void 0===i?this.configurationService.getValue():this.configurationService.getValue(i)}}let Bn=class{constructor(e){this.configurationService=e}getEOL(e,t){const n=this.configurationService.getValue("files.eol",{overrideIdentifier:t,resource:e});return n&&"auto"!==n?n:ve.d||ve.f?"\n":"\r\n"}};Bn=Ln([Mn(0,tn.a)],Bn);class Wn{publicLog(e,t){return Promise.resolve(void 0)}publicLog2(e,t){return this.publicLog(e,t)}}class Hn{constructor(){const e=W.a.from({scheme:Hn.SCHEME,authority:"model",path:"/"});this.workspace={id:"4064f6ec-cb38-4ad0-af64-ee6467e63c82",folders:[new kn.b({uri:e,name:"",index:0})]}}getWorkspace(){return this.workspace}getWorkspaceFolder(e){return e&&e.scheme===Hn.SCHEME?this.workspace.folders[0]:null}}function Yn(e,t,n){if(!t)return;if(!(e instanceof jn))return;let i=[];Object.keys(t).forEach(e=>{Object(Qt.d)(e)&&i.push([`editor.${e}`,t[e]]),n&&Object(Qt.c)(e)&&i.push([`diffEditor.${e}`,t[e]])}),i.length>0&&e.updateValues(i)}Hn.SCHEME="inmemory";class Vn{constructor(e){this._modelService=e}hasPreviewHandler(){return!1}apply(e,t){return Dn(this,void 0,void 0,(function*(){const t=new Map;for(let n of e){if(!(n instanceof Xt.c))throw new Error("bad edit - only text edits are supported");const e=this._modelService.getModel(n.resource);if(!e)throw new Error("bad edit - model not found");if("number"==typeof n.versionId&&e.getVersionId()!==n.versionId)throw new Error("bad state - model changed in the meantime");let i=t.get(e);i||(i=[],t.set(e,i)),i.push(en.a.replaceMove(Y.a.lift(n.textEdit.range),n.textEdit.text))}let n=0,i=0;for(const[e,r]of t)e.pushStackElement(),e.pushEditOperations([],r,()=>[]),e.pushStackElement(),i+=1,n+=r.length;return{ariaSummary:Fe.x(xn.g.bulkEditServiceSummary,n,i)}}))}}class zn{getUriLabel(e,t){return"file"===e.scheme?e.fsPath:e.path}}class Un{constructor(e,t){this._codeEditorService=e,this._container=t,this.onLayout=F.b.None}get dimension(){return this._dimension||(this._dimension=G.y(window.document.body)),this._dimension}get container(){return this._container}focus(){var e;null===(e=this._codeEditorService.getFocusedCodeEditor())||void 0===e||e.focus()}}var $n=n(55),qn=n(184),Kn=n(341),Gn=n(268),Zn=n(137),Jn=n(25),Xn=n(9),Qn=n(71),ei=n(17),ti=n(41),ni=n(18),ii=n(67),ri=n(109),oi=n(70),si=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},ai=function(e,t){return function(n,i){t(n,i,e)}};let li=0,ci=!1;let di=class extends qn.a{constructor(e,t,n,i,r,o,s,a,l,c){(t=t||{}).ariaLabel=t.ariaLabel||xn.h.editorViewAccessibleLabel,t.ariaLabel=t.ariaLabel+";"+xn.h.accessibilityHelpMessage,super(e,t,{},n,i,r,o,a,l,c),this._standaloneKeybindingService=s instanceof Rn?s:null,ci||(ci=!0,$n.b(document.body))}addCommand(e,t,n){if(!this._standaloneKeybindingService)return console.warn("Cannot add command because the editor is configured with an unrecognized KeybindingService"),null;let i="DYNAMIC_"+ ++li,r=Xn.a.deserialize(n);return this._standaloneKeybindingService.addDynamicKeybinding(i,e,t,r),i}createContextKey(e,t){return this._contextKeyService.createKey(e,t)}addAction(e){if("string"!=typeof e.id||"string"!=typeof e.label||"function"!=typeof e.run)throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");if(!this._standaloneKeybindingService)return console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),_e.a.None;const t=e.id,n=e.label,i=Xn.a.and(Xn.a.equals("editorId",this.getId()),Xn.a.deserialize(e.precondition)),r=e.keybindings,o=Xn.a.and(i,Xn.a.deserialize(e.keybindingContext)),s=e.contextMenuGroupId||null,a=e.contextMenuOrder||0,l=(t,...n)=>Promise.resolve(e.run(this,...n)),c=new _e.b,d=this.getId()+":"+t;if(c.add(ee.a.registerCommand(d,l)),s){let e={command:{id:d,title:n},when:i,group:s,order:a};c.add(Jn.d.appendMenuItem(Jn.b.EditorContext,e))}if(Array.isArray(r))for(const e of r)c.add(this._standaloneKeybindingService.addDynamicKeybinding(d,e,l,o));let u=new Gn.a(d,n,n,i,l,this._contextKeyService);return this._actions[t]=u,c.add(Object(_e.h)(()=>{delete this._actions[t]})),c}};di=si([ai(2,ei.a),ai(3,K.a),ai(4,ee.b),ai(5,Xn.b),ai(6,ti.a),ai(7,ni.c),ai(8,Sn.a),ai(9,ii.b)],di);let ui=class extends di{constructor(e,t,n,i,r,o,s,a,l,c,d,u,h){Yn(u,t,!1);const f=c.registerEditorContainer(e);"string"==typeof(t=t||{}).theme&&c.setTheme(t.theme);let g,p=t.model;if(delete t.model,super(e,t,i,r,o,s,a,c,d,h),this._contextViewService=l,this._configurationService=u,this._standaloneThemeService=c,this._register(n),this._register(f),void 0===p?(g=self.monaco.editor.createModel(t.value||"",t.language||"text/plain"),this._ownsModel=!0):(g=p,this._ownsModel=!1),this._attachModel(g),g){let e={oldModelUrl:null,newModelUrl:g.uri};this._onDidChangeModel.fire(e)}}dispose(){super.dispose()}updateOptions(e){Yn(this._configurationService,e,!1),"string"==typeof e.theme&&this._standaloneThemeService.setTheme(e.theme),super.updateOptions(e)}_attachModel(e){super._attachModel(e),this._modelData&&this._contextViewService.setContainer(this._modelData.view.domNode.domNode)}_postDetachModelCleanup(e){super._postDetachModelCleanup(e),e&&this._ownsModel&&(e.dispose(),this._ownsModel=!1)}};ui=si([ai(3,ei.a),ai(4,K.a),ai(5,ee.b),ai(6,Xn.b),ai(7,ti.a),ai(8,Qn.b),ai(9,Zn.a),ai(10,Sn.a),ai(11,tn.a),ai(12,ii.b)],ui);let hi=class extends Kn.a{constructor(e,t,n,i,r,o,s,a,l,c,d,u,h,f,g){Yn(u,t,!0);const p=c.registerEditorContainer(e);"string"==typeof(t=t||{}).theme&&(t.theme=c.setTheme(t.theme)),super(e,t,g,a,r,i,l,c,d,h,f),this._contextViewService=s,this._configurationService=u,this._standaloneThemeService=c,this._register(n),this._register(p),this._contextViewService.setContainer(this._containerDomElement)}dispose(){super.dispose()}updateOptions(e){Yn(this._configurationService,e,!0),"string"==typeof e.theme&&this._standaloneThemeService.setTheme(e.theme),super.updateOptions(e)}_createInnerEditor(e,t,n){return e.createInstance(di,t,n)}getOriginalEditor(){return super.getOriginalEditor()}getModifiedEditor(){return super.getModifiedEditor()}addCommand(e,t,n){return this.getModifiedEditor().addCommand(e,t,n)}createContextKey(e,t){return this.getModifiedEditor().createContextKey(e,t)}addAction(e){return this.getModifiedEditor().addAction(e)}};hi=si([ai(3,ei.a),ai(4,Xn.b),ai(5,ti.a),ai(6,Qn.b),ai(7,ge.a),ai(8,K.a),ai(9,Zn.a),ai(10,Sn.a),ai(11,tn.a),ai(12,Qn.a),ai(13,oi.a),ai(14,ri.a)],hi);var fi=n(98);class gi{constructor(e){this._languageIdentifier=e}getId(){return this._languageIdentifier.language}}var pi=n(45),mi=n(266);const _i="text/plain",bi="application/unknown";let vi=[],yi=[],wi=[];function Ci(e,t=!1){const n=function(e){return{id:e.id,mime:e.mime,filename:e.filename,extension:e.extension,filepattern:e.filepattern,firstline:e.firstline,userConfigured:e.userConfigured,filenameLowercase:e.filename?e.filename.toLowerCase():void 0,extensionLowercase:e.extension?e.extension.toLowerCase():void 0,filepatternLowercase:e.filepattern?e.filepattern.toLowerCase():void 0,filepatternOnPath:!!e.filepattern&&e.filepattern.indexOf(pi.e.sep)>=0}}(e);vi.push(n),n.userConfigured?wi.push(n):yi.push(n),t&&!n.userConfigured&&vi.forEach(e=>{e.mime===n.mime||e.userConfigured||(n.extension&&e.extension===n.extension&&console.warn(`Overwriting extension <<${n.extension}>> to now point to mime <<${n.mime}>>`),n.filename&&e.filename===n.filename&&console.warn(`Overwriting filename <<${n.filename}>> to now point to mime <<${n.mime}>>`),n.filepattern&&e.filepattern===n.filepattern&&console.warn(`Overwriting filepattern <<${n.filepattern}>> to now point to mime <<${n.mime}>>`),n.firstline&&e.firstline===n.firstline&&console.warn(`Overwriting firstline <<${n.firstline}>> to now point to mime <<${n.mime}>>`))})}function Si(e,t){let n;if(e)switch(e.scheme){case X.b.file:n=e.fsPath;break;case X.b.data:n=Q.a.parseMetaData(e).get(Q.a.META_DATA_LABEL);break;default:n=e.path}if(!n)return[bi];n=n.toLowerCase();const i=Object(pi.a)(n),r=ki(n,i,wi);if(r)return[r,_i];const o=ki(n,i,yi);if(o)return[o,_i];if(t){const e=function(e){Object(Fe.U)(e)&&(e=e.substr(1));if(e.length>0)for(let t=vi.length-1;t>=0;t--){const n=vi[t];if(!n.firstline)continue;const i=e.match(n.firstline);if(i&&i.length>0)return n.mime}return null}(t);if(e)return[e,_i]}return[bi]}function ki(e,t,n){let i=null,r=null,o=null;for(let s=n.length-1;s>=0;s--){const a=n[s];if(t===a.filenameLowercase){i=a;break}if(a.filepattern&&(!r||a.filepattern.length>r.filepattern.length)){const n=a.filepatternOnPath?e:t;Object(mi.a)(a.filepatternLowercase,n)&&(r=a)}a.extension&&(!o||a.extension.length>o.extension.length)&&t.endsWith(a.extensionLowercase)&&(o=a)}return i?i.mime:r?r.mime:o?o.mime:null}var xi=n(148),Li=n(46);const Mi=Object.prototype.hasOwnProperty;class Di extends _e.a{constructor(e=!0,t=!1){super(),this._onDidChange=this._register(new F.a),this.onDidChange=this._onDidChange.event,this._warnOnOverwrite=t,this._nextLanguageId2=1,this._languageIdToLanguage=[],this._languageToLanguageId=Object.create(null),this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},e&&(this._initializeFromRegistry(),this._register(xi.a.onDidChangeLanguages(e=>this._initializeFromRegistry())))}_initializeFromRegistry(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={};const e=xi.a.getLanguages();this._registerLanguages(e)}_registerLanguages(e){for(const t of e)this._registerLanguage(t);this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach(e=>{let t=this._languages[e];t.name&&(this._nameMap[t.name]=t.identifier),t.aliases.forEach(e=>{this._lowercaseNameMap[e.toLowerCase()]=t.identifier}),t.mimetypes.forEach(e=>{this._mimeTypesMap[e]=t.identifier})}),Li.a.as(on.a.Configuration).registerOverrideIdentifiers(xi.a.getLanguages().map(e=>e.id)),this._onDidChange.fire()}_getLanguageId(e){if(this._languageToLanguageId[e])return this._languageToLanguageId[e];const t=this._nextLanguageId2++;return this._languageIdToLanguage[t]=e,this._languageToLanguageId[e]=t,t}_registerLanguage(e){const t=e.id;let n;if(Mi.call(this._languages,t))n=this._languages[t];else{const e=this._getLanguageId(t);n={identifier:new he.r(t,e),name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[]},this._languages[t]=n}this._mergeLanguage(n,e)}_mergeLanguage(e,t){const n=t.id;let i=null;if(Array.isArray(t.mimetypes)&&t.mimetypes.length>0&&(e.mimetypes.push(...t.mimetypes),i=t.mimetypes[0]),i||(i=`text/x-${n}`,e.mimetypes.push(i)),Array.isArray(t.extensions)){t.configuration?e.extensions=t.extensions.concat(e.extensions):e.extensions=e.extensions.concat(t.extensions);for(let e of t.extensions)Ci({id:n,mime:i,extension:e},this._warnOnOverwrite)}if(Array.isArray(t.filenames))for(let r of t.filenames)Ci({id:n,mime:i,filename:r},this._warnOnOverwrite),e.filenames.push(r);if(Array.isArray(t.filenamePatterns))for(let e of t.filenamePatterns)Ci({id:n,mime:i,filepattern:e},this._warnOnOverwrite);if("string"==typeof t.firstLine&&t.firstLine.length>0){let e=t.firstLine;"^"!==e.charAt(0)&&(e="^"+e);try{let t=new RegExp(e);Fe.P(t)||Ci({id:n,mime:i,firstline:t},this._warnOnOverwrite)}catch(e){Object(be.e)(e)}}e.aliases.push(n);let r=null;if(void 0!==t.aliases&&Array.isArray(t.aliases)&&(r=0===t.aliases.length?[null]:t.aliases),null!==r)for(const t of r)t&&0!==t.length&&e.aliases.push(t);let o=null!==r&&r.length>0;if(o&&null===r[0]);else{let t=(o?r[0]:null)||n;!o&&e.name||(e.name=t)}t.configuration&&e.configurationFiles.push(t.configuration)}isRegisteredMode(e){return!!Mi.call(this._mimeTypesMap,e)||Mi.call(this._languages,e)}getModeIdForLanguageNameLowercase(e){return Mi.call(this._lowercaseNameMap,e)?this._lowercaseNameMap[e].language:null}extractModeIds(e){return e?e.split(",").map(e=>e.trim()).map(e=>Mi.call(this._mimeTypesMap,e)?this._mimeTypesMap[e].language:e).filter(e=>Mi.call(this._languages,e)):[]}getLanguageIdentifier(e){if(e===fe.b||0===e)return fe.a;let t;if("string"==typeof e)t=e;else if(!(t=this._languageIdToLanguage[e]))return null;return Mi.call(this._languages,t)?this._languages[t].identifier:null}getModeIdsFromFilepathOrFirstLine(e,t){if(!e&&!t)return[];let n=Si(e,t);return this.extractModeIds(n.join(","))}}class Ei extends _e.a{constructor(e,t){super(),this._onDidChange=this._register(new F.a),this.onDidChange=this._onDidChange.event,this._selector=t,this.languageIdentifier=this._selector(),this._register(e(()=>this._evaluate()))}_evaluate(){let e=this._selector();e.id!==this.languageIdentifier.id&&(this.languageIdentifier=e,this._onDidChange.fire(this.languageIdentifier))}}class Ti{constructor(e=!1){this._onDidCreateMode=new F.a,this.onDidCreateMode=this._onDidCreateMode.event,this._onLanguagesMaybeChanged=new F.a,this.onLanguagesMaybeChanged=this._onLanguagesMaybeChanged.event,this._instantiatedModes={},this._registry=new Di(!0,e),this._registry.onDidChange(()=>this._onLanguagesMaybeChanged.fire())}isRegisteredMode(e){return this._registry.isRegisteredMode(e)}getModeIdForLanguageName(e){return this._registry.getModeIdForLanguageNameLowercase(e)}getModeIdByFilepathOrFirstLine(e,t){const n=this._registry.getModeIdsFromFilepathOrFirstLine(e,t);return Object(Ee.k)(n,null)}getModeId(e){const t=this._registry.extractModeIds(e);return Object(Ee.k)(t,null)}getLanguageIdentifier(e){return this._registry.getLanguageIdentifier(e)}create(e){return new Ei(this.onLanguagesMaybeChanged,()=>{const t=this.getModeId(e);return this._createModeAndGetLanguageIdentifier(t)})}createByFilepathOrFirstLine(e,t){return new Ei(this.onLanguagesMaybeChanged,()=>{const n=this.getModeIdByFilepathOrFirstLine(e,t);return this._createModeAndGetLanguageIdentifier(n)})}_createModeAndGetLanguageIdentifier(e){const t=this.getLanguageIdentifier(e||"plaintext")||fe.a;return this._getOrCreateMode(t.language),t}triggerMode(e){const t=this.getModeId(e);this._getOrCreateMode(t||"plaintext")}_getOrCreateMode(e){if(!this._instantiatedModes.hasOwnProperty(e)){let t=this.getLanguageIdentifier(e)||fe.a;this._instantiatedModes[e]=new gi(t),this._onDidCreateMode.fire(this._instantiatedModes[e])}return this._instantiatedModes[e]}}var Oi=n(235);class Ni extends _e.a{constructor(){super(),this._onCodeEditorAdd=this._register(new F.a),this.onCodeEditorAdd=this._onCodeEditorAdd.event,this._onCodeEditorRemove=this._register(new F.a),this.onCodeEditorRemove=this._onCodeEditorRemove.event,this._onDiffEditorAdd=this._register(new F.a),this._onDiffEditorRemove=this._register(new F.a),this._modelProperties=new Map,this._codeEditors=Object.create(null),this._diffEditors=Object.create(null)}addCodeEditor(e){this._codeEditors[e.getId()]=e,this._onCodeEditorAdd.fire(e)}removeCodeEditor(e){delete this._codeEditors[e.getId()]&&this._onCodeEditorRemove.fire(e)}listCodeEditors(){return Object.keys(this._codeEditors).map(e=>this._codeEditors[e])}addDiffEditor(e){this._diffEditors[e.getId()]=e,this._onDiffEditorAdd.fire(e)}removeDiffEditor(e){delete this._diffEditors[e.getId()]&&this._onDiffEditorRemove.fire(e)}listDiffEditors(){return Object.keys(this._diffEditors).map(e=>this._diffEditors[e])}getFocusedCodeEditor(){let e=null;const t=this.listCodeEditors();for(const n of t){if(n.hasTextFocus())return n;n.hasWidgetFocus()&&(e=n)}return e}setModelProperty(e,t,n){const i=e.toString();let r;this._modelProperties.has(i)?r=this._modelProperties.get(i):(r=new Map,this._modelProperties.set(i,r)),r.set(t,n)}getModelProperty(e,t){const n=e.toString();if(this._modelProperties.has(n)){return this._modelProperties.get(n).get(t)}}}class Ii{constructor(e,t,n){this._parent=e,this._editorId=t,this._styleSheet=n,this._refCount=0}ref(){this._refCount++}unref(){var e;this._refCount--,0===this._refCount&&(null===(e=this._styleSheet.parentNode)||void 0===e||e.removeChild(this._styleSheet),this._parent._removeEditorStyleSheets(this._editorId))}insertRule(e,t){this._styleSheet.sheet.insertRule(e,t)}removeRulesContainingSelector(e){G.P(e,this._styleSheet)}}class Ai{constructor(e){this._styleSheet=e}ref(){}unref(){}insertRule(e,t){this._styleSheet.sheet.insertRule(e,t)}removeRulesContainingSelector(e){G.P(e,this._styleSheet)}}let Ri=class extends Ni{constructor(e,t=null){super(),this._decorationOptionProviders=new Map,this._editorStyleSheets=new Map,this._globalStyleSheet=t||null,this._themeService=e}_getOrCreateGlobalStyleSheet(){return this._globalStyleSheet||(this._globalStyleSheet=new Ai(G.v())),this._globalStyleSheet}_getOrCreateStyleSheet(e){if(!e)return this._getOrCreateGlobalStyleSheet();const t=e.getContainerDomNode();if(!G.O(t))return this._getOrCreateGlobalStyleSheet();const n=e.getId();if(!this._editorStyleSheets.has(n)){const e=new Ii(this,n,G.v(t));this._editorStyleSheets.set(n,e)}return this._editorStyleSheets.get(n)}_removeEditorStyleSheets(e){this._editorStyleSheets.delete(e)}registerDecorationType(e,t,n,i){let r=this._decorationOptionProviders.get(e);if(!r){const o=this._getOrCreateStyleSheet(i),s={styleSheet:o,key:e,parentTypeKey:n,options:t||Object.create(null)};r=n?new Pi(this._themeService,o,s):new ji(this._themeService,o,s),this._decorationOptionProviders.set(e,r)}r.refCount++}removeDecorationType(e){const t=this._decorationOptionProviders.get(e);t&&(t.refCount--,t.refCount<=0&&(this._decorationOptionProviders.delete(e),t.dispose(),this.listCodeEditors().forEach(t=>t.removeDecorations(e))))}resolveDecorationOptions(e,t){const n=this._decorationOptionProviders.get(e);if(!n)throw new Error("Unknown decoration type key: "+e);return n.getOptions(this,t)}};Ri=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}([function(e,t){return function(n,i){t(n,i,e)}}(0,ni.c)],Ri);class Pi{constructor(e,t,n){this._styleSheet=t,this._styleSheet.ref(),this._parentTypeKey=n.parentTypeKey,this.refCount=0,this._beforeContentRules=new Bi(3,n,e),this._afterContentRules=new Bi(4,n,e)}getOptions(e,t){const n=e.resolveDecorationOptions(this._parentTypeKey,!0);return this._beforeContentRules&&(n.beforeContentClassName=this._beforeContentRules.className),this._afterContentRules&&(n.afterContentClassName=this._afterContentRules.className),n}dispose(){this._beforeContentRules&&(this._beforeContentRules.dispose(),this._beforeContentRules=null),this._afterContentRules&&(this._afterContentRules.dispose(),this._afterContentRules=null),this._styleSheet.unref()}}class ji{constructor(e,t,n){this._disposables=new _e.b,this._styleSheet=t,this._styleSheet.ref(),this.refCount=0;const i=t=>{const i=new Bi(t,n,e);if(this._disposables.add(i),i.hasContent)return i.className};this.className=i(0);const r=(t=>{const i=new Bi(t,n,e);return this._disposables.add(i),i.hasContent?{className:i.className,hasLetterSpacing:i.hasLetterSpacing}:null})(1);r&&(this.inlineClassName=r.className,this.inlineClassNameAffectsLetterSpacing=r.hasLetterSpacing),this.beforeContentClassName=i(3),this.afterContentClassName=i(4),this.glyphMarginClassName=i(2);const o=n.options;this.isWholeLine=Boolean(o.isWholeLine),this.stickiness=o.rangeBehavior;const s=o.light&&o.light.overviewRulerColor||o.overviewRulerColor,a=o.dark&&o.dark.overviewRulerColor||o.overviewRulerColor;void 0===s&&void 0===a||(this.overviewRuler={color:s||a,darkColor:a||s,position:o.overviewRulerLane||ue.d.Center})}getOptions(e,t){return t?{inlineClassName:this.inlineClassName,beforeContentClassName:this.beforeContentClassName,afterContentClassName:this.afterContentClassName,className:this.className,glyphMarginClassName:this.glyphMarginClassName,isWholeLine:this.isWholeLine,overviewRuler:this.overviewRuler,stickiness:this.stickiness}:this}dispose(){this._disposables.dispose(),this._styleSheet.unref()}}const Fi={color:"color:{0} !important;",opacity:"opacity:{0};",backgroundColor:"background-color:{0};",outline:"outline:{0};",outlineColor:"outline-color:{0};",outlineStyle:"outline-style:{0};",outlineWidth:"outline-width:{0};",border:"border:{0};",borderColor:"border-color:{0};",borderRadius:"border-radius:{0};",borderSpacing:"border-spacing:{0};",borderStyle:"border-style:{0};",borderWidth:"border-width:{0};",fontStyle:"font-style:{0};",fontWeight:"font-weight:{0};",textDecoration:"text-decoration:{0};",cursor:"cursor:{0};",letterSpacing:"letter-spacing:{0};",gutterIconPath:"background:{0} center center no-repeat;",gutterIconSize:"background-size:{0};",contentText:"content:'{0}';",contentIconPath:"content:{0};",margin:"margin:{0};",width:"width:{0};",height:"height:{0};"};class Bi{constructor(e,t,n){this._theme=n.getColorTheme(),this._ruleType=e,this._providerArgs=t,this._usesThemeColors=!1,this._hasContent=!1,this._hasLetterSpacing=!1;let i=Wi.getClassName(this._providerArgs.key,e);this._providerArgs.parentTypeKey&&(i=i+" "+Wi.getClassName(this._providerArgs.parentTypeKey,e)),this._className=i,this._unThemedSelector=Wi.getSelector(this._providerArgs.key,this._providerArgs.parentTypeKey,e),this._buildCSS(),this._usesThemeColors?this._themeListener=n.onDidColorThemeChange(e=>{this._theme=n.getColorTheme(),this._removeCSS(),this._buildCSS()}):this._themeListener=null}dispose(){this._hasContent&&(this._removeCSS(),this._hasContent=!1),this._themeListener&&(this._themeListener.dispose(),this._themeListener=null)}get hasContent(){return this._hasContent}get hasLetterSpacing(){return this._hasLetterSpacing}get className(){return this._className}_buildCSS(){const e=this._providerArgs.options;let t,n,i;switch(this._ruleType){case 0:t=this.getCSSTextForModelDecorationClassName(e),n=this.getCSSTextForModelDecorationClassName(e.light),i=this.getCSSTextForModelDecorationClassName(e.dark);break;case 1:t=this.getCSSTextForModelDecorationInlineClassName(e),n=this.getCSSTextForModelDecorationInlineClassName(e.light),i=this.getCSSTextForModelDecorationInlineClassName(e.dark);break;case 2:t=this.getCSSTextForModelDecorationGlyphMarginClassName(e),n=this.getCSSTextForModelDecorationGlyphMarginClassName(e.light),i=this.getCSSTextForModelDecorationGlyphMarginClassName(e.dark);break;case 3:t=this.getCSSTextForModelDecorationContentClassName(e.before),n=this.getCSSTextForModelDecorationContentClassName(e.light&&e.light.before),i=this.getCSSTextForModelDecorationContentClassName(e.dark&&e.dark.before);break;case 4:t=this.getCSSTextForModelDecorationContentClassName(e.after),n=this.getCSSTextForModelDecorationContentClassName(e.light&&e.light.after),i=this.getCSSTextForModelDecorationContentClassName(e.dark&&e.dark.after);break;default:throw new Error("Unknown rule type: "+this._ruleType)}const r=this._providerArgs.styleSheet;let o=!1;t.length>0&&(r.insertRule(`${this._unThemedSelector} {${t}}`,0),o=!0),n.length>0&&(r.insertRule(`.vs${this._unThemedSelector} {${n}}`,0),o=!0),i.length>0&&(r.insertRule(`.vs-dark${this._unThemedSelector}, .hc-black${this._unThemedSelector} {${i}}`,0),o=!0),this._hasContent=o}_removeCSS(){this._providerArgs.styleSheet.removeRulesContainingSelector(this._unThemedSelector)}getCSSTextForModelDecorationClassName(e){if(!e)return"";const t=[];return this.collectCSSText(e,["backgroundColor"],t),this.collectCSSText(e,["outline","outlineColor","outlineStyle","outlineWidth"],t),this.collectBorderSettingsCSSText(e,t),t.join("")}getCSSTextForModelDecorationInlineClassName(e){if(!e)return"";const t=[];return this.collectCSSText(e,["fontStyle","fontWeight","textDecoration","cursor","color","opacity","letterSpacing"],t),e.letterSpacing&&(this._hasLetterSpacing=!0),t.join("")}getCSSTextForModelDecorationContentClassName(e){if(!e)return"";const t=[];if(void 0!==e){if(this.collectBorderSettingsCSSText(e,t),void 0!==e.contentIconPath&&t.push(Fe.x(Fi.contentIconPath,G.q(W.a.revive(e.contentIconPath)))),"string"==typeof e.contentText){const n=e.contentText.match(/^.*$/m)[0].replace(/['\\]/g,"\\$&");t.push(Fe.x(Fi.contentText,n))}this.collectCSSText(e,["fontStyle","fontWeight","textDecoration","color","opacity","backgroundColor","margin"],t),this.collectCSSText(e,["width","height"],t)&&t.push("display:inline-block;")}return t.join("")}getCSSTextForModelDecorationGlyphMarginClassName(e){if(!e)return"";const t=[];return void 0!==e.gutterIconPath&&(t.push(Fe.x(Fi.gutterIconPath,G.q(W.a.revive(e.gutterIconPath)))),void 0!==e.gutterIconSize&&t.push(Fe.x(Fi.gutterIconSize,e.gutterIconSize))),t.join("")}collectBorderSettingsCSSText(e,t){return!!this.collectCSSText(e,["border","borderColor","borderRadius","borderSpacing","borderStyle","borderWidth"],t)&&(t.push(Fe.x("box-sizing: border-box;")),!0)}collectCSSText(e,t,n){const i=n.length;for(let i of t){const t=this.resolveValue(e[i]);"string"==typeof t&&n.push(Fe.x(Fi[i],t))}return n.length!==i}resolveValue(e){if(Object(de.b)(e)){this._usesThemeColors=!0;const t=this._theme.getColor(e.id);return t?t.toString():"transparent"}return e}}class Wi{static getClassName(e,t){return"ced-"+e+"-"+t}static getSelector(e,t,n){let i=".monaco-editor ."+this.getClassName(e,n);return t&&(i=i+"."+this.getClassName(t,n)),3===n?i+="::before":4===n&&(i+="::after"),i}}class Hi extends Ri{getActiveCodeEditor(){return null}openCodeEditor(e,t,n){return t?Promise.resolve(this.doOpenEditor(t,e)):Promise.resolve(null)}doOpenEditor(e,t){if(!this.findModel(e,t.resource)){if(t.resource){const n=t.resource.scheme;if(n===X.b.http||n===X.b.https)return Object(G.cb)(t.resource.toString()),e}return null}const n=t.options?t.options.selection:null;if(n)if("number"==typeof n.endLineNumber&&"number"==typeof n.endColumn)e.setSelection(n),e.revealRangeInCenter(n,1);else{const t={lineNumber:n.startLineNumber,column:n.startColumn};e.setPosition(t),e.revealPositionInCenter(t,1)}return e}findModel(e,t){const n=e.getModel();return n&&n.uri.toString()!==t.toString()?null:n}}var Yi=n(13);class Vi{constructor(e,t,n,i,r){this.token=e,this.index=t,this.fontStyle=n,this.foreground=i,this.background=r}}const zi=/^#?([0-9A-Fa-f]{6})([0-9A-Fa-f]{2})?$/;class Ui{constructor(){this._lastColorId=0,this._id2color=[],this._color2id=new Map}getId(e){if(null===e)return 0;const t=e.match(zi);if(!t)throw new Error("Illegal value for token color: "+e);e=t[1].toUpperCase();let n=this._color2id.get(e);return n||(n=++this._lastColorId,this._color2id.set(e,n),this._id2color[n]=Yi.a.fromHex("#"+e),n)}getColorMap(){return this._id2color.slice(0)}}class $i{constructor(e,t){this._colorMap=e,this._root=t,this._cache=new Map}static createFromRawTokenTheme(e,t){return this.createFromParsedTokenTheme(function(e){if(!e||!Array.isArray(e))return[];let t=[],n=0;for(let i=0,r=e.length;i<r;i++){let r=e[i],o=-1;if("string"==typeof r.fontStyle){o=0;let e=r.fontStyle.split(" ");for(let t=0,n=e.length;t<n;t++){switch(e[t]){case"italic":o|=1;break;case"bold":o|=2;break;case"underline":o|=4}}}let s=null;"string"==typeof r.foreground&&(s=r.foreground);let a=null;"string"==typeof r.background&&(a=r.background),t[n++]=new Vi(r.token||"",i,o,s,a)}return t}(e),t)}static createFromParsedTokenTheme(e,t){return function(e,t){e.sort((e,t)=>{let n=function(e,t){if(e<t)return-1;if(e>t)return 1;return 0}(e.token,t.token);return 0!==n?n:e.index-t.index});let n=0,i="000000",r="ffffff";for(;e.length>=1&&""===e[0].token;){let t=e.shift();-1!==t.fontStyle&&(n=t.fontStyle),null!==t.foreground&&(i=t.foreground),null!==t.background&&(r=t.background)}let o=new Ui;for(let e of t)o.getId(e);let s=o.getId(i),a=o.getId(r),l=new Ki(n,s,a),c=new Gi(l);for(let t=0,n=e.length;t<n;t++){let n=e[t];c.insert(n.token,n.fontStyle,o.getId(n.foreground),o.getId(n.background))}return new $i(o,c)}(e,t)}getColorMap(){return this._colorMap.getColorMap()}_match(e){return this._root.match(e)}match(e,t){let n=this._cache.get(t);if(void 0===n){let e=this._match(t),i=function(e){let t=e.match(qi);if(!t)return 0;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":case"regexp":return 4}throw new Error("Unexpected match for standard token type!")}(t);n=(e.metadata|i<<8)>>>0,this._cache.set(t,n)}return(n|e<<0)>>>0}}const qi=/\b(comment|string|regex|regexp)\b/;class Ki{constructor(e,t,n){this._fontStyle=e,this._foreground=t,this._background=n,this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0}clone(){return new Ki(this._fontStyle,this._foreground,this._background)}acceptOverwrite(e,t,n){-1!==e&&(this._fontStyle=e),0!==t&&(this._foreground=t),0!==n&&(this._background=n),this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0}}class Gi{constructor(e){this._mainRule=e,this._children=new Map}match(e){if(""===e)return this._mainRule;let t,n,i=e.indexOf(".");-1===i?(t=e,n=""):(t=e.substring(0,i),n=e.substring(i+1));let r=this._children.get(t);return void 0!==r?r.match(n):this._mainRule}insert(e,t,n,i){if(""===e)return void this._mainRule.acceptOverwrite(t,n,i);let r,o,s=e.indexOf(".");-1===s?(r=e,o=""):(r=e.substring(0,s),o=e.substring(s+1));let a=this._children.get(r);void 0===a&&(a=new Gi(this._mainRule.clone()),this._children.set(r,a)),a.insert(o,t,n,i)}}var Zi=n(47),Ji=n(5);const Xi={base:"vs",inherit:!1,rules:[{token:"",foreground:"000000",background:"fffffe"},{token:"invalid",foreground:"cd3131"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"001188"},{token:"variable.predefined",foreground:"4864AA"},{token:"constant",foreground:"dd0000"},{token:"comment",foreground:"008000"},{token:"number",foreground:"098658"},{token:"number.hex",foreground:"3030c0"},{token:"regexp",foreground:"800000"},{token:"annotation",foreground:"808080"},{token:"type",foreground:"008080"},{token:"delimiter",foreground:"000000"},{token:"delimiter.html",foreground:"383838"},{token:"delimiter.xml",foreground:"0000FF"},{token:"tag",foreground:"800000"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"800000"},{token:"metatag",foreground:"e00000"},{token:"metatag.content.html",foreground:"FF0000"},{token:"metatag.html",foreground:"808080"},{token:"metatag.xml",foreground:"808080"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"863B00"},{token:"string.key.json",foreground:"A31515"},{token:"string.value.json",foreground:"0451A5"},{token:"attribute.name",foreground:"FF0000"},{token:"attribute.value",foreground:"0451A5"},{token:"attribute.value.number",foreground:"098658"},{token:"attribute.value.unit",foreground:"098658"},{token:"attribute.value.html",foreground:"0000FF"},{token:"attribute.value.xml",foreground:"0000FF"},{token:"string",foreground:"A31515"},{token:"string.html",foreground:"0000FF"},{token:"string.sql",foreground:"FF0000"},{token:"string.yaml",foreground:"0451A5"},{token:"keyword",foreground:"0000FF"},{token:"keyword.json",foreground:"0451A5"},{token:"keyword.flow",foreground:"AF00DB"},{token:"keyword.flow.scss",foreground:"0000FF"},{token:"operator.scss",foreground:"666666"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"666666"},{token:"predefined.sql",foreground:"FF00FF"}],colors:{[Ji.s]:"#FFFFFE",[Ji.B]:"#000000",[Ji.J]:"#E5EBF1",[Zi.h]:"#D3D3D3",[Zi.a]:"#939393",[Ji.Q]:"#ADD6FF4D"}},Qi={base:"vs-dark",inherit:!1,rules:[{token:"",foreground:"D4D4D4",background:"1E1E1E"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"74B0DF"},{token:"variable.predefined",foreground:"4864AA"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"B5CEA8"},{token:"number.hex",foreground:"5BB498"},{token:"regexp",foreground:"B46695"},{token:"annotation",foreground:"cc6666"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"DCDCDC"},{token:"delimiter.html",foreground:"808080"},{token:"delimiter.xml",foreground:"808080"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"A79873"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"DD6A6F"},{token:"metatag.content.html",foreground:"9CDCFE"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key.json",foreground:"9CDCFE"},{token:"string.value.json",foreground:"CE9178"},{token:"attribute.name",foreground:"9CDCFE"},{token:"attribute.value",foreground:"CE9178"},{token:"attribute.value.number.css",foreground:"B5CEA8"},{token:"attribute.value.unit.css",foreground:"B5CEA8"},{token:"attribute.value.hex.css",foreground:"D4D4D4"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"keyword.json",foreground:"CE9178"},{token:"keyword.flow.scss",foreground:"569CD6"},{token:"operator.scss",foreground:"909090"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:{[Ji.s]:"#1E1E1E",[Ji.B]:"#D4D4D4",[Ji.J]:"#3A3D41",[Zi.h]:"#404040",[Zi.a]:"#707070",[Ji.Q]:"#ADD6FF26"}},er={base:"hc-black",inherit:!1,rules:[{token:"",foreground:"FFFFFF",background:"000000"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"1AEBFF"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"FFFFFF"},{token:"regexp",foreground:"C0C0C0"},{token:"annotation",foreground:"569CD6"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"FFFF00"},{token:"delimiter.html",foreground:"FFFF00"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta",foreground:"D4D4D4"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"569CD6"},{token:"metatag.content.html",foreground:"1AEBFF"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key",foreground:"9CDCFE"},{token:"string.value",foreground:"CE9178"},{token:"attribute.name",foreground:"569CD6"},{token:"attribute.value",foreground:"3FF23F"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:{[Ji.s]:"#000000",[Ji.B]:"#FFFFFF",[Zi.h]:"#FFFFFF",[Zi.a]:"#FFFFFF"}};var tr=n(163);const nr="vs",ir="vs-dark",rr="hc-black",or=Li.a.as(Ji.a.ColorContribution),sr=Li.a.as(ni.a.ThemingContribution);class ar{constructor(e,t){this.semanticHighlighting=!1,this.themeData=t;let n=t.base;e.length>0?(this.id=n+" "+e,this.themeName=e):(this.id=n,this.themeName=n),this.colors=null,this.defaultColors=Object.create(null),this._tokenTheme=null}get base(){return this.themeData.base}notifyBaseUpdated(){this.themeData.inherit&&(this.colors=null,this._tokenTheme=null)}getColors(){if(!this.colors){const e=new Map;for(let t in this.themeData.colors)e.set(t,Yi.a.fromHex(this.themeData.colors[t]));if(this.themeData.inherit){let t=cr(this.themeData.base);for(let n in t.colors)e.has(n)||e.set(n,Yi.a.fromHex(t.colors[n]))}this.colors=e}return this.colors}getColor(e,t){const n=this.getColors().get(e);return n||(!1!==t?this.getDefault(e):void 0)}getDefault(e){let t=this.defaultColors[e];return t||(t=or.resolveDefaultColor(e,this),this.defaultColors[e]=t,t)}defines(e){return Object.prototype.hasOwnProperty.call(this.getColors(),e)}get type(){switch(this.base){case nr:return"light";case rr:return"hc";default:return"dark"}}get tokenTheme(){if(!this._tokenTheme){let e=[],t=[];if(this.themeData.inherit){let n=cr(this.themeData.base);e=n.rules,n.encodedTokensColors&&(t=n.encodedTokensColors)}e=e.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(t=this.themeData.encodedTokensColors),this._tokenTheme=$i.createFromRawTokenTheme(e,t)}return this._tokenTheme}getTokenStyleMetadata(e,t,n){const i=this.tokenTheme._match([e].concat(t).join(".")).metadata,r=he.B.getForeground(i),o=he.B.getFontStyle(i);return{foreground:r,italic:Boolean(1&o),bold:Boolean(2&o),underline:Boolean(4&o)}}}function lr(e){return e===nr||e===ir||e===rr}function cr(e){switch(e){case nr:return Xi;case ir:return Qi;case rr:return er}}function dr(e){let t=cr(e);return new ar(e,t)}class ur extends _e.a{constructor(){super(),this._onColorThemeChange=this._register(new F.a),this.onDidColorThemeChange=this._onColorThemeChange.event,this._environment=Object.create(null),this._knownThemes=new Map,this._knownThemes.set(nr,dr(nr)),this._knownThemes.set(ir,dr(ir)),this._knownThemes.set(rr,dr(rr)),this._codiconCSS=tr.a.getCSS(),this._themeCSS="",this._allCSS=`${this._codiconCSS}\n${this._themeCSS}`,this._globalStyleElement=null,this._styleElements=[],this.setTheme(nr),tr.a.onDidChange(()=>{this._codiconCSS=tr.a.getCSS(),this._updateCSS()})}registerEditorContainer(e){return G.O(e)?this._registerShadowDomContainer(e):this._registerRegularEditorContainer()}_registerRegularEditorContainer(){return this._globalStyleElement||(this._globalStyleElement=G.v(),this._globalStyleElement.className="monaco-colors",this._globalStyleElement.innerHTML=this._allCSS,this._styleElements.push(this._globalStyleElement)),_e.a.None}_registerShadowDomContainer(e){const t=G.v(e);return t.className="monaco-colors",t.innerHTML=this._allCSS,this._styleElements.push(t),{dispose:()=>{for(let e=0;e<this._styleElements.length;e++)if(this._styleElements[e]===t)return void this._styleElements.splice(e,1)}}}defineTheme(e,t){if(!/^[a-z0-9\-]+$/i.test(e))throw new Error("Illegal theme name!");if(!lr(t.base)&&!lr(e))throw new Error("Illegal theme base!");this._knownThemes.set(e,new ar(e,t)),lr(e)&&this._knownThemes.forEach(t=>{t.base===e&&t.notifyBaseUpdated()}),this._theme&&this._theme.themeName===e&&this.setTheme(e)}getColorTheme(){return this._theme}setTheme(e){let t;if(t=this._knownThemes.has(e)?this._knownThemes.get(e):this._knownThemes.get(nr),this._theme===t)return t.id;this._theme=t;let n=[],i={},r={addRule:e=>{i[e]||(n.push(e),i[e]=!0)}};sr.getThemingParticipants().forEach(e=>e(t,r,this._environment));let o=t.tokenTheme.getColorMap();return r.addRule(function(e){let t=[];for(let n=1,i=e.length;n<i;n++){let i=e[n];t[n]=`.mtk${n} { color: ${i}; }`}return t.push(".mtki { font-style: italic; }"),t.push(".mtkb { font-weight: bold; }"),t.push(".mtku { text-decoration: underline; text-underline-position: under; }"),t.join("\n")}(o)),this._themeCSS=n.join("\n"),this._updateCSS(),he.C.setColorMap(o),this._onColorThemeChange.fire(t),t.id}_updateCSS(){this._allCSS=`${this._codiconCSS}\n${this._themeCSS}`,this._styleElements.forEach(e=>e.innerHTML=this._allCSS)}getFileIconTheme(){return{hasFileIcons:!1,hasFolderIcons:!1,hidesExplorerArrows:!1}}}var hr=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},fr=function(e,t){return function(n,i){t(n,i,e)}};const gr="data-keybinding-context";class pr{constructor(e,t){this._id=e,this._parent=t,this._value=Object.create(null),this._value._contextId=e}setValue(e,t){return this._value[e]!==t&&(this._value[e]=t,!0)}removeValue(e){return e in this._value&&(delete this._value[e],!0)}getValue(e){const t=this._value[e];return void 0===t&&this._parent?this._parent.getValue(e):t}}class mr extends pr{constructor(){super(-1,null)}setValue(e,t){return!1}removeValue(e){return!1}getValue(e){}}mr.INSTANCE=new mr;class _r extends pr{constructor(e,t,n){super(e,null),this._configurationService=t,this._values=new Map,this._listener=this._configurationService.onDidChangeConfiguration(e=>{if(6===e.source){const e=Array.from(this._values.keys());this._values.clear(),n.fire(new yr(e))}else{const t=[];for(const n of e.affectedKeys){const e=`config.${n}`;this._values.has(e)&&(this._values.delete(e),t.push(e))}n.fire(new yr(t))}})}dispose(){this._listener.dispose()}getValue(e){if(0!==e.indexOf(_r._keyPrefix))return super.getValue(e);if(this._values.has(e))return this._values.get(e);const t=e.substr(_r._keyPrefix.length),n=this._configurationService.getValue(t);let i=void 0;switch(typeof n){case"number":case"boolean":case"string":i=n;break;default:Array.isArray(n)&&(i=JSON.stringify(n))}return this._values.set(e,i),i}setValue(e,t){return super.setValue(e,t)}removeValue(e){return super.removeValue(e)}}_r._keyPrefix="config.";class br{constructor(e,t,n){this._service=e,this._key=t,this._defaultValue=n,this.reset()}set(e){this._service.setContext(this._key,e)}reset(){void 0===this._defaultValue?this._service.removeContext(this._key):this._service.setContext(this._key,this._defaultValue)}get(){return this._service.getContextKeyValue(this._key)}}class vr{constructor(e){this.key=e}affectsSome(e){return e.has(this.key)}}class yr{constructor(e){this.keys=e}affectsSome(e){for(const t of this.keys)if(e.has(t))return!0;return!1}}class wr{constructor(e){this.events=e}affectsSome(e){for(const t of this.events)if(t.affectsSome(e))return!0;return!1}}class Cr{constructor(e){this._onDidChangeContext=new F.d({merge:e=>new wr(e)}),this._isDisposed=!1,this._myContextId=e}createKey(e,t){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new br(this,e,t)}get onDidChangeContext(){return this._onDidChangeContext.event}bufferChangeEvents(e){this._onDidChangeContext.pause();try{e()}finally{this._onDidChangeContext.resume()}}createScoped(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new kr(this,e)}contextMatchesRules(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");const t=this.getContextValuesContainer(this._myContextId);return hn.contextMatchesRules(t,e)}getContextKeyValue(e){if(!this._isDisposed)return this.getContextValuesContainer(this._myContextId).getValue(e)}setContext(e,t){if(this._isDisposed)return;const n=this.getContextValuesContainer(this._myContextId);n&&n.setValue(e,t)&&this._onDidChangeContext.fire(new vr(e))}removeContext(e){this._isDisposed||this.getContextValuesContainer(this._myContextId).removeValue(e)&&this._onDidChangeContext.fire(new vr(e))}getContext(e){return this._isDisposed?mr.INSTANCE:this.getContextValuesContainer(function(e){for(;e;){if(e.hasAttribute(gr)){const t=e.getAttribute(gr);return t?parseInt(t,10):NaN}e=e.parentElement}return 0}(e))}}let Sr=class extends Cr{constructor(e){super(0),this._contexts=new Map,this._toDispose=new _e.b,this._lastContextId=0;const t=new _r(this._myContextId,e,this._onDidChangeContext);this._contexts.set(this._myContextId,t),this._toDispose.add(t)}dispose(){this._isDisposed=!0,this._toDispose.dispose()}getContextValuesContainer(e){return this._isDisposed?mr.INSTANCE:this._contexts.get(e)||mr.INSTANCE}createChildContext(e=this._myContextId){if(this._isDisposed)throw new Error("ContextKeyService has been disposed");let t=++this._lastContextId;return this._contexts.set(t,new pr(t,this.getContextValuesContainer(e))),t}disposeContext(e){this._isDisposed||this._contexts.delete(e)}};Sr=hr([fr(0,tn.a)],Sr);class kr extends Cr{constructor(e,t){super(e.createChildContext()),this._parent=e,t&&(this._domNode=t,this._domNode.setAttribute(gr,String(this._myContextId)))}dispose(){this._isDisposed=!0,this._parent.disposeContext(this._myContextId),this._domNode&&(this._domNode.removeAttribute(gr),this._domNode=void 0)}get onDidChangeContext(){return F.b.any(this._parent.onDidChangeContext,this._onDidChangeContext.event)}getContextValuesContainer(e){return this._isDisposed?mr.INSTANCE:this._parent.getContextValuesContainer(e)}createChildContext(e=this._myContextId){if(this._isDisposed)throw new Error("ScopedContextKeyService has been disposed");return this._parent.createChildContext(e)}disposeContext(e){this._isDisposed||this._parent.disposeContext(e)}}ee.a.registerCommand(Xn.d,(function(e,t,n){e.get(Xn.b).createKey(String(t),n)}));n(633);var xr=n(49),Lr=n(104),Mr=n(94),Dr=(n(634),n(91)),Er=n(136);function Tr(e,t,n){const i=n.offset+n.size;return 0===n.position?t<=e-i?i:t<=n.offset?n.offset-t:Math.max(e-t,0):t<=n.offset?n.offset-t:t<=e-i?i:0}class Or extends _e.a{constructor(e,t){super(),this.container=null,this.delegate=null,this.toDisposeOnClean=_e.a.None,this.toDisposeOnSetContainer=_e.a.None,this.shadowRoot=null,this.shadowRootHostElement=null,this.view=G.a(".context-view"),this.useFixedPosition=!1,this.useShadowDOM=!1,G.K(this.view),this.setContainer(e,t),this._register(Object(_e.h)(()=>this.setContainer(null,1)))}setContainer(e,t){if(this.container&&(this.toDisposeOnSetContainer.dispose(),this.shadowRoot?(this.shadowRoot.removeChild(this.view),this.shadowRoot=null,G.S(this.shadowRootHostElement),this.shadowRootHostElement=null):this.container.removeChild(this.view),this.container=null),e){this.container=e,this.useFixedPosition=1!==t,this.useShadowDOM=3===t,this.useShadowDOM?(this.shadowRootHostElement=G.a(".shadow-root-host"),this.container.appendChild(this.shadowRootHostElement),this.shadowRoot=this.shadowRootHostElement.attachShadow({mode:"open"}),this.shadowRoot.innerHTML=`\n\t\t\t\t\t<style>\n\t\t\t\t\t\t${Nr}\n\t\t\t\t\t</style>\n\t\t\t\t`,this.shadowRoot.appendChild(this.view),this.shadowRoot.appendChild(G.a("slot"))):this.container.appendChild(this.view);const n=new _e.b;Or.BUBBLE_UP_EVENTS.forEach(e=>{n.add(G.n(this.container,e,e=>{this.onDOMEvent(e,!1)}))}),Or.BUBBLE_DOWN_EVENTS.forEach(e=>{n.add(G.n(this.container,e,e=>{this.onDOMEvent(e,!0)},!0))}),this.toDisposeOnSetContainer=n}}show(e){this.isVisible()&&this.hide(),G.s(this.view),this.view.className="context-view",this.view.style.top="0px",this.view.style.left="0px",this.view.style.zIndex="2500",this.view.style.position=this.useFixedPosition?"fixed":"absolute",G.Z(this.view),this.toDisposeOnClean=e.render(this.view)||_e.a.None,this.delegate=e,this.doLayout(),this.delegate.focus&&this.delegate.focus()}getViewElement(){return this.view}layout(){this.isVisible()&&(!1!==this.delegate.canRelayout||ve.c&&Er.a.pointerEvents?(this.delegate.layout&&this.delegate.layout(),this.doLayout()):this.hide())}doLayout(){if(!this.isVisible())return;let e,t=this.delegate.getAnchor();if(G.M(t)){let n=G.C(t);e={top:n.top,left:n.left,width:n.width,height:n.height}}else e={top:t.y,left:t.x,width:t.width||1,height:t.height||2};const n=G.H(this.view),i=G.G(this.view),r=this.delegate.anchorPosition||0,o=this.delegate.anchorAlignment||0,s={offset:e.top-window.pageYOffset,size:e.height,position:0===r?0:1};let a;a=0===o?{offset:e.left,size:0,position:0}:{offset:e.left+e.width,size:0,position:1};const l=Tr(window.innerHeight,i,s)+window.pageYOffset;Dr.a.intersects({start:l,end:l+i},{start:s.offset,end:s.offset+s.size})&&(a.size=e.width,1===o&&(a.offset=e.left));const c=Tr(window.innerWidth,n,a);G.R(this.view,"top","bottom","left","right"),G.e(this.view,0===r?"bottom":"top"),G.e(this.view,0===o?"left":"right"),G.ab(this.view,"fixed",this.useFixedPosition);const d=G.C(this.container);this.view.style.top=`${l-(this.useFixedPosition?G.C(this.view).top:d.top)}px`,this.view.style.left=`${c-(this.useFixedPosition?G.C(this.view).left:d.left)}px`,this.view.style.width="initial"}hide(e){const t=this.delegate;this.delegate=null,(null==t?void 0:t.onHide)&&t.onHide(e),this.toDisposeOnClean.dispose(),G.K(this.view)}isVisible(){return!!this.delegate}onDOMEvent(e,t){this.delegate&&(this.delegate.onDOMEvent?this.delegate.onDOMEvent(e,document.activeElement):t&&!G.L(e.target,this.container)&&this.hide())}dispose(){this.hide(),super.dispose()}}Or.BUBBLE_UP_EVENTS=["click","keydown","focus","blur"],Or.BUBBLE_DOWN_EVENTS=["click"];let Nr='\n\t:host {\n\t\tall: initial; /* 1st rule so subsequent properties are reset. */\n\t}\n\n\t@font-face {\n\t\tfont-family: "codicon";\n\t\tsrc: url("./codicon.ttf?5d4d76ab2ce5108968ad644d591a16a6") format("truetype");\n\t}\n\n\t.codicon[class*=\'codicon-\'] {\n\t\tfont: normal normal normal 16px/1 codicon;\n\t\tdisplay: inline-block;\n\t\ttext-decoration: none;\n\t\ttext-rendering: auto;\n\t\ttext-align: center;\n\t\t-webkit-font-smoothing: antialiased;\n\t\t-moz-osx-font-smoothing: grayscale;\n\t\tuser-select: none;\n\t\t-webkit-user-select: none;\n\t\t-ms-user-select: none;\n\t}\n\n\t:host {\n\t\tfont-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "HelveticaNeue-Light", system-ui, "Ubuntu", "Droid Sans", sans-serif;\n\t}\n\n\t:host-context(.mac) { font-family: -apple-system, BlinkMacSystemFont, sans-serif; }\n\t:host-context(.mac:lang(zh-Hans)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", sans-serif; }\n\t:host-context(.mac:lang(zh-Hant)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", sans-serif; }\n\t:host-context(.mac:lang(ja)) { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic Pro", sans-serif; }\n\t:host-context(.mac:lang(ko)) { font-family: -apple-system, BlinkMacSystemFont, "Nanum Gothic", "Apple SD Gothic Neo", "AppleGothic", sans-serif; }\n\n\t:host-context(.windows) { font-family: "Segoe WPC", "Segoe UI", sans-serif; }\n\t:host-context(.windows:lang(zh-Hans)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft YaHei", sans-serif; }\n\t:host-context(.windows:lang(zh-Hant)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft Jhenghei", sans-serif; }\n\t:host-context(.windows:lang(ja)) { font-family: "Segoe WPC", "Segoe UI", "Yu Gothic UI", "Meiryo UI", sans-serif; }\n\t:host-context(.windows:lang(ko)) { font-family: "Segoe WPC", "Segoe UI", "Malgun Gothic", "Dotom", sans-serif; }\n\n\t:host-context(.linux) { font-family: system-ui, "Ubuntu", "Droid Sans", sans-serif; }\n\t:host-context(.linux:lang(zh-Hans)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans SC", "Source Han Sans CN", "Source Han Sans", sans-serif; }\n\t:host-context(.linux:lang(zh-Hant)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans TC", "Source Han Sans TW", "Source Han Sans", sans-serif; }\n\t:host-context(.linux:lang(ja)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans J", "Source Han Sans JP", "Source Han Sans", sans-serif; }\n\t:host-context(.linux:lang(ko)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans K", "Source Han Sans JR", "Source Han Sans", "UnDotum", "FBaekmuk Gulim", sans-serif; }\n';var Ir=n(16),Ar=n(112),Rr=n(30),Pr=n(59);const jr=/\(&([^\s&])\)|(^|[^&])&([^\s&])/,Fr=/(&)?(&)([^\s&])/g,Br=Object(Ir.e)("menu-selection",Ir.a.check),Wr=Object(Ir.e)("menu-submenu",Ir.a.chevronRight);var Hr;!function(e){e[e.Right=0]="Right",e[e.Left=1]="Left"}(Hr||(Hr={}));class Yr extends Lr.a{constructor(e,t,n={}){Object(G.e)(e,"monaco-menu-container"),e.setAttribute("role","presentation");const i=document.createElement("div");Object(G.e)(i,"monaco-menu"),i.setAttribute("role","presentation"),super(i,{orientation:2,actionViewItemProvider:e=>this.doGetActionViewItem(e,n,r),context:n.context,actionRunner:n.actionRunner,ariaLabel:n.ariaLabel,triggerKeys:{keys:[3,...ve.f||ve.d?[10]:[]],keyDown:!0}}),this.menuElement=i,this.actionsList.setAttribute("role","menu"),this.actionsList.tabIndex=0,this.menuDisposables=this._register(new _e.b),this.initializeStyleSheet(e),Object(G.i)(i,G.c.KEY_DOWN,e=>{new Gt.a(e).equals(2)&&e.preventDefault()}),n.enableMnemonics&&this.menuDisposables.add(Object(G.i)(i,G.c.KEY_DOWN,e=>{const t=e.key.toLocaleLowerCase();if(this.mnemonics.has(t)){G.b.stop(e,!0);const n=this.mnemonics.get(t);if(1===n.length&&(n[0]instanceof zr&&n[0].container&&this.focusItemByElement(n[0].container),n[0].onClick(e)),n.length>1){const e=n.shift();e&&e.container&&(this.focusItemByElement(e.container),n.push(e)),this.mnemonics.set(t,n)}}})),ve.d&&this._register(Object(G.i)(i,G.c.KEY_DOWN,e=>{const t=new Gt.a(e);t.equals(14)||t.equals(11)?(this.focusedItem=this.viewItems.length-1,this.focusNext(),G.b.stop(e,!0)):(t.equals(13)||t.equals(12))&&(this.focusedItem=0,this.focusPrevious(),G.b.stop(e,!0))})),this._register(Object(G.i)(this.domNode,G.c.MOUSE_OUT,e=>{let t=e.relatedTarget;Object(G.L)(t,this.domNode)||(this.focusedItem=void 0,this.updateFocus(),e.stopPropagation())})),this._register(Object(G.i)(this.actionsList,G.c.MOUSE_OVER,e=>{let t=e.target;if(t&&Object(G.L)(t,this.actionsList)&&t!==this.actionsList){for(;t.parentElement!==this.actionsList&&null!==t.parentElement;)t=t.parentElement;if(Object(G.I)(t,"action-item")){const e=this.focusedItem;this.setFocusedItem(t),e!==this.focusedItem&&this.updateFocus()}}}));let r={parent:this};this.mnemonics=new Map,this.scrollableElement=this._register(new Mr.a(i,{alwaysConsumeMouseWheel:!0,horizontal:2,vertical:3,verticalScrollbarSize:7,handleMouseWheel:!0,useShadows:!0}));const o=this.scrollableElement.getDomNode();o.style.position="",this._register(Object(G.i)(o,G.c.MOUSE_UP,e=>{e.preventDefault()})),i.style.maxHeight=`${Math.max(10,window.innerHeight-e.getBoundingClientRect().top-35)}px`,t=t.filter(e=>{var t;return null===(t=n.submenuIds)||void 0===t||!t.has(e.id)||(console.warn(`Found submenu cycle: ${e.id}`),!1)}),this.push(t,{icon:!0,label:!0,isMenu:!0}),e.appendChild(this.scrollableElement.getDomNode()),this.scrollableElement.scanDomNode(),this.viewItems.filter(e=>!(e instanceof Ur)).forEach((e,t,n)=>{e.updatePositionInSet(t+1,n.length)})}initializeStyleSheet(e){Object(G.O)(e)?(this.styleSheet=Object(G.v)(e),this.styleSheet.innerHTML=$r):(Yr.globalStyleSheet||(Yr.globalStyleSheet=Object(G.v)(),Yr.globalStyleSheet.innerHTML=$r),this.styleSheet=Yr.globalStyleSheet)}style(e){const t=this.getContainer(),n=e.foregroundColor?`${e.foregroundColor}`:"",i=e.backgroundColor?`${e.backgroundColor}`:"",r=e.borderColor?`1px solid ${e.borderColor}`:"",o=e.shadowColor?`0 2px 4px ${e.shadowColor}`:"";t.style.border=r,this.domNode.style.color=n,this.domNode.style.backgroundColor=i,t.style.boxShadow=o,this.viewItems&&this.viewItems.forEach(t=>{(t instanceof Vr||t instanceof Ur)&&t.style(e)})}getContainer(){return this.scrollableElement.getDomNode()}get onScroll(){return this.scrollableElement.onScroll}focusItemByElement(e){const t=this.focusedItem;this.setFocusedItem(e),t!==this.focusedItem&&this.updateFocus()}setFocusedItem(e){for(let t=0;t<this.actionsList.children.length;t++){if(e===this.actionsList.children[t]){this.focusedItem=t;break}}}updateFocus(e){super.updateFocus(e,!0),void 0!==this.focusedItem&&this.scrollableElement.setScrollPosition({scrollTop:Math.round(this.menuElement.scrollTop)})}doGetActionViewItem(e,t,n){if(e instanceof xr.c)return new Ur(t.context,e,{icon:!0});if(e instanceof xr.d){const i=new zr(e,e.actions,n,Object.assign(Object.assign({},t),{submenuIds:new Set([...t.submenuIds||[],e.id])}));if(t.enableMnemonics){const e=i.getMnemonic();if(e&&i.isEnabled()){let t=[];this.mnemonics.has(e)&&(t=this.mnemonics.get(e)),t.push(i),this.mnemonics.set(e,t)}}return i}{const n={enableMnemonics:t.enableMnemonics,useEventAsContext:t.useEventAsContext};if(t.getKeyBinding){const i=t.getKeyBinding(e);if(i){const e=i.getLabel();e&&(n.keybinding=e)}}const i=new Vr(t.context,e,n);if(t.enableMnemonics){const e=i.getMnemonic();if(e&&i.isEnabled()){let t=[];this.mnemonics.has(e)&&(t=this.mnemonics.get(e)),t.push(i),this.mnemonics.set(e,t)}}return i}}}class Vr extends Ar.b{constructor(e,t,n={}){if(n.isMenu=!0,super(t,t,n),this.options=n,this.options.icon=void 0!==n.icon&&n.icon,this.options.label=void 0===n.label||n.label,this.cssClass="",this.options.label&&n.enableMnemonics){let e=this.getAction().label;if(e){let t=jr.exec(e);t&&(this.mnemonic=(t[1]?t[1]:t[3]).toLocaleLowerCase())}}this.runOnceToEnableMouseUp=new me.d(()=>{this.element&&(this._register(Object(G.i)(this.element,G.c.MOUSE_UP,e=>{if(G.b.stop(e,!0),Rr.h){if(new Pr.a(e).rightButton)return;this.onClick(e)}setTimeout(()=>{this.onClick(e)},0)})),this._register(Object(G.i)(this.element,G.c.CONTEXT_MENU,e=>{G.b.stop(e,!0)})))},100),this._register(this.runOnceToEnableMouseUp)}render(e){super.render(e),this.element&&(this.container=e,this.item=Object(G.p)(this.element,Object(G.a)("a.action-menu-item")),this._action.id===xr.c.ID?this.item.setAttribute("role","presentation"):(this.item.setAttribute("role","menuitem"),this.mnemonic&&this.item.setAttribute("aria-keyshortcuts",`${this.mnemonic}`)),this.check=Object(G.p)(this.item,Object(G.a)("span.menu-item-check"+Br.cssSelector)),this.check.setAttribute("role","none"),this.label=Object(G.p)(this.item,Object(G.a)("span.action-label")),this.options.label&&this.options.keybinding&&(Object(G.p)(this.item,Object(G.a)("span.keybinding")).textContent=this.options.keybinding),this.runOnceToEnableMouseUp.schedule(),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked())}blur(){super.blur(),this.applyStyle()}focus(){super.focus(),this.item&&this.item.focus(),this.applyStyle()}updatePositionInSet(e,t){this.item&&(this.item.setAttribute("aria-posinset",`${e}`),this.item.setAttribute("aria-setsize",`${t}`))}updateLabel(){if(this.label&&this.options.label){Object(G.s)(this.label);let e=Object(Ir.h)(this.getAction().label);if(e){const t=function(e){const t=jr,n=t.exec(e);if(!n)return e;const i=!n[1];return e.replace(t,i?"$2$3":"").trim()}(e);this.options.enableMnemonics||(e=t),this.label.setAttribute("aria-label",t.replace(/&&/g,"&"));const n=jr.exec(e);if(n){e=Fe.u(e),Fr.lastIndex=0;let t=Fr.exec(e);for(;t&&t[1];)t=Fr.exec(e);const i=e=>e.replace(/&&/g,"&");t?this.label.append(Fe.K(i(e.substr(0,t.index))," "),Object(G.a)("u",{"aria-hidden":"true"},t[3]),Fe.Q(i(e.substr(t.index+t[0].length))," ")):this.label.innerText=i(e).trim(),this.item&&this.item.setAttribute("aria-keyshortcuts",(n[1]?n[1]:n[3]).toLocaleLowerCase())}else this.label.innerText=e.replace(/&&/g,"&").trim()}}}updateTooltip(){let e=null;this.getAction().tooltip?e=this.getAction().tooltip:!this.options.label&&this.getAction().label&&this.options.icon&&(e=this.getAction().label,this.options.keybinding&&(e=dn.a({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",e,this.options.keybinding))),e&&this.item&&(this.item.title=e)}updateClass(){this.cssClass&&this.item&&Object(G.R)(this.item,this.cssClass),this.options.icon&&this.label?(this.cssClass=this.getAction().class||"",Object(G.e)(this.label,"icon"),this.cssClass&&Object(G.f)(this.label,this.cssClass),this.updateEnabled()):this.label&&Object(G.Q)(this.label,"icon")}updateEnabled(){this.getAction().enabled?(this.element&&Object(G.Q)(this.element,"disabled"),this.item&&(Object(G.Q)(this.item,"disabled"),this.item.tabIndex=0)):(this.element&&Object(G.e)(this.element,"disabled"),this.item&&(Object(G.e)(this.item,"disabled"),Object(G.T)(this.item)))}updateChecked(){this.item&&(this.getAction().checked?(Object(G.e)(this.item,"checked"),this.item.setAttribute("role","menuitemcheckbox"),this.item.setAttribute("aria-checked","true")):(Object(G.Q)(this.item,"checked"),this.item.setAttribute("role","menuitem"),this.item.setAttribute("aria-checked","false")))}getMnemonic(){return this.mnemonic}applyStyle(){if(!this.menuStyle)return;const e=this.element&&Object(G.I)(this.element,"focused"),t=e&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor,n=e&&this.menuStyle.selectionBackgroundColor?this.menuStyle.selectionBackgroundColor:void 0,i=e&&this.menuStyle.selectionBorderColor?`thin solid ${this.menuStyle.selectionBorderColor}`:"";this.item&&(this.item.style.color=t?t.toString():"",this.item.style.backgroundColor=n?n.toString():""),this.check&&(this.check.style.color=t?t.toString():""),this.container&&(this.container.style.border=i)}style(e){this.menuStyle=e,this.applyStyle()}}class zr extends Vr{constructor(e,t,n,i){super(e,e,i),this.submenuActions=t,this.parentData=n,this.submenuOptions=i,this.mysubmenu=null,this.submenuDisposables=this._register(new _e.b),this.mouseOver=!1,this.expandDirection=i&&void 0!==i.expandDirection?i.expandDirection:Hr.Right,this.showScheduler=new me.d(()=>{this.mouseOver&&(this.cleanupExistingSubmenu(!1),this.createSubmenu(!1))},250),this.hideScheduler=new me.d(()=>{this.element&&!Object(G.L)(Object(G.x)(),this.element)&&this.parentData.submenu===this.mysubmenu&&(this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!0))},750)}render(e){super.render(e),this.element&&(this.item&&(Object(G.e)(this.item,"monaco-submenu-item"),this.item.setAttribute("aria-haspopup","true"),this.updateAriaExpanded("false"),this.submenuIndicator=Object(G.p)(this.item,Object(G.a)("span.submenu-indicator"+Wr.cssSelector)),this.submenuIndicator.setAttribute("aria-hidden","true")),this._register(Object(G.i)(this.element,G.c.KEY_UP,e=>{let t=new Gt.a(e);(t.equals(17)||t.equals(3))&&(G.b.stop(e,!0),this.createSubmenu(!0))})),this._register(Object(G.i)(this.element,G.c.KEY_DOWN,e=>{let t=new Gt.a(e);Object(G.x)()===this.item&&(t.equals(17)||t.equals(3))&&G.b.stop(e,!0)})),this._register(Object(G.i)(this.element,G.c.MOUSE_OVER,e=>{this.mouseOver||(this.mouseOver=!0,this.showScheduler.schedule())})),this._register(Object(G.i)(this.element,G.c.MOUSE_LEAVE,e=>{this.mouseOver=!1})),this._register(Object(G.i)(this.element,G.c.FOCUS_OUT,e=>{this.element&&!Object(G.L)(Object(G.x)(),this.element)&&this.hideScheduler.schedule()})),this._register(this.parentData.parent.onScroll(()=>{this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!1)})))}onClick(e){G.b.stop(e,!0),this.cleanupExistingSubmenu(!1),this.createSubmenu(!0)}cleanupExistingSubmenu(e){if(this.parentData.submenu&&(e||this.parentData.submenu!==this.mysubmenu)){try{this.parentData.submenu.dispose()}catch(e){}this.parentData.submenu=void 0,this.updateAriaExpanded("false"),this.submenuContainer&&(this.submenuDisposables.clear(),this.submenuContainer=void 0)}}calculateSubmenuMenuLayout(e,t,n,i){const r={top:0,left:0};return r.left=Tr(e.width,t.width,{position:i===Hr.Right?0:1,offset:n.left,size:n.width}),r.left>=n.left&&r.left<n.left+n.width&&(n.left+10+t.width<=e.width&&(r.left=n.left+10),n.top+=10,n.height=0),r.top=Tr(e.height,t.height,{position:0,offset:n.top,size:0}),r.top+t.height===n.top&&r.top+n.height+t.height<=e.height&&(r.top+=n.height),r}createSubmenu(e=!0){if(this.element)if(this.parentData.submenu)this.parentData.submenu.focus(!1);else{this.updateAriaExpanded("true"),this.submenuContainer=Object(G.p)(this.element,Object(G.a)("div.monaco-submenu")),Object(G.f)(this.submenuContainer,"menubar-menu-items-holder","context-view");const t=getComputedStyle(this.parentData.parent.domNode),n=parseFloat(t.paddingTop||"0")||0;this.submenuContainer.style.zIndex="1",this.submenuContainer.style.position="fixed",this.submenuContainer.style.top="0",this.submenuContainer.style.left="0",this.parentData.submenu=new Yr(this.submenuContainer,this.submenuActions,this.submenuOptions),this.menuStyle&&this.parentData.submenu.style(this.menuStyle);const i=this.element.getBoundingClientRect(),r={top:i.top-n,left:i.left,height:i.height+2*n,width:i.width},o=this.submenuContainer.getBoundingClientRect(),{top:s,left:a}=this.calculateSubmenuMenuLayout({height:window.innerHeight,width:window.innerWidth},o,r,this.expandDirection);this.submenuContainer.style.left=`${a}px`,this.submenuContainer.style.top=`${s}px`,this.submenuDisposables.add(Object(G.i)(this.submenuContainer,G.c.KEY_UP,e=>{new Gt.a(e).equals(15)&&(G.b.stop(e,!0),this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0))})),this.submenuDisposables.add(Object(G.i)(this.submenuContainer,G.c.KEY_DOWN,e=>{new Gt.a(e).equals(15)&&G.b.stop(e,!0)})),this.submenuDisposables.add(this.parentData.submenu.onDidCancel(()=>{this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0)})),this.parentData.submenu.focus(e),this.mysubmenu=this.parentData.submenu}}updateAriaExpanded(e){var t;this.item&&(null===(t=this.item)||void 0===t||t.setAttribute("aria-expanded",e))}applyStyle(){if(super.applyStyle(),!this.menuStyle)return;const e=this.element&&Object(G.I)(this.element,"focused")&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor;this.submenuIndicator&&(this.submenuIndicator.style.color=e?`${e}`:""),this.parentData.submenu&&this.parentData.submenu.style(this.menuStyle)}dispose(){super.dispose(),this.hideScheduler.dispose(),this.mysubmenu&&(this.mysubmenu.dispose(),this.mysubmenu=null),this.submenuContainer&&(this.submenuContainer=void 0)}}class Ur extends Ar.a{style(e){this.label&&(this.label.style.borderBottomColor=e.separatorColor?`${e.separatorColor}`:"")}}let $r=`\n.monaco-menu {\n\tfont-size: 13px;\n\n}\n\n${Object(tr.b)(Br)}\n${Object(tr.b)(Wr)}\n\n.monaco-menu .monaco-action-bar {\n\ttext-align: right;\n\toverflow: hidden;\n\twhite-space: nowrap;\n}\n\n.monaco-menu .monaco-action-bar .actions-container {\n\tdisplay: flex;\n\tmargin: 0 auto;\n\tpadding: 0;\n\twidth: 100%;\n\tjustify-content: flex-end;\n}\n\n.monaco-menu .monaco-action-bar.vertical .actions-container {\n\tdisplay: inline-block;\n}\n\n.monaco-menu .monaco-action-bar.reverse .actions-container {\n\tflex-direction: row-reverse;\n}\n\n.monaco-menu .monaco-action-bar .action-item {\n\tcursor: pointer;\n\tdisplay: inline-block;\n\ttransition: transform 50ms ease;\n\tposition: relative; /* DO NOT REMOVE - this is the key to preventing the ghosting icon bug in Chrome 42 */\n}\n\n.monaco-menu .monaco-action-bar .action-item.disabled {\n\tcursor: default;\n}\n\n.monaco-menu .monaco-action-bar.animated .action-item.active {\n\ttransform: scale(1.272019649, 1.272019649); /* 1.272019649 = √φ */\n}\n\n.monaco-menu .monaco-action-bar .action-item .icon,\n.monaco-menu .monaco-action-bar .action-item .codicon {\n\tdisplay: inline-block;\n}\n\n.monaco-menu .monaco-action-bar .action-item .codicon {\n\tdisplay: flex;\n\talign-items: center;\n}\n\n.monaco-menu .monaco-action-bar .action-label {\n\tfont-size: 11px;\n\tmargin-right: 4px;\n}\n\n.monaco-menu .monaco-action-bar .action-item.disabled .action-label,\n.monaco-menu .monaco-action-bar .action-item.disabled .action-label:hover {\n\topacity: 0.4;\n}\n\n/* Vertical actions */\n\n.monaco-menu .monaco-action-bar.vertical {\n\ttext-align: left;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tdisplay: block;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tdisplay: block;\n\tborder-bottom: 1px solid #bbb;\n\tpadding-top: 1px;\n\tmargin-left: .8em;\n\tmargin-right: .8em;\n}\n\n.monaco-menu .secondary-actions .monaco-action-bar .action-label {\n\tmargin-left: 6px;\n}\n\n/* Action Items */\n.monaco-menu .monaco-action-bar .action-item.select-container {\n\toverflow: hidden; /* somehow the dropdown overflows its container, we prevent it here to not push */\n\tflex: 1;\n\tmax-width: 170px;\n\tmin-width: 60px;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tmargin-right: 10px;\n}\n\n.monaco-menu .monaco-action-bar.vertical {\n\tmargin-left: 0;\n\toverflow: visible;\n}\n\n.monaco-menu .monaco-action-bar.vertical .actions-container {\n\tdisplay: block;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tpadding: 0;\n\ttransform: none;\n\tdisplay: flex;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item.active {\n\ttransform: none;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item {\n\tflex: 1 1 auto;\n\tdisplay: flex;\n\theight: 2em;\n\talign-items: center;\n\tposition: relative;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label {\n\tflex: 1 1 auto;\n\ttext-decoration: none;\n\tpadding: 0 1em;\n\tbackground: none;\n\tfont-size: 12px;\n\tline-height: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .keybinding,\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\tdisplay: inline-block;\n\tflex: 2 1 auto;\n\tpadding: 0 1em;\n\ttext-align: right;\n\tfont-size: 12px;\n\tline-height: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\theight: 100%;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator.codicon {\n\tfont-size: 16px !important;\n\tdisplay: flex;\n\talign-items: center;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator.codicon::before {\n\tmargin-left: auto;\n\tmargin-right: -20px;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item.disabled .keybinding,\n.monaco-menu .monaco-action-bar.vertical .action-item.disabled .submenu-indicator {\n\topacity: 0.4;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:not(.separator) {\n\tdisplay: inline-block;\n\tbox-sizing: border-box;\n\tmargin: 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tposition: static;\n\toverflow: visible;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item .monaco-submenu {\n\tposition: absolute;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tpadding: 0.5em 0 0 0;\n\tmargin-bottom: 0.5em;\n\twidth: 100%;\n\theight: 0px !important;\n\tmargin-left: .8em !important;\n\tmargin-right: .8em !important;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator.text {\n\tpadding: 0.7em 1em 0.1em 1em;\n\tfont-weight: bold;\n\topacity: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:hover {\n\tcolor: inherit;\n}\n\n.monaco-menu .monaco-action-bar.vertical .menu-item-check {\n\tposition: absolute;\n\tvisibility: hidden;\n\twidth: 1em;\n\theight: 100%;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item.checked .menu-item-check {\n\tvisibility: visible;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n}\n\n/* Context Menu */\n\n.context-view.monaco-menu-container {\n\toutline: 0;\n\tborder: none;\n\tanimation: fadeIn 0.083s linear;\n}\n\n.context-view.monaco-menu-container :focus,\n.context-view.monaco-menu-container .monaco-action-bar.vertical:focus,\n.context-view.monaco-menu-container .monaco-action-bar.vertical :focus {\n\toutline: 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tborder: thin solid transparent; /* prevents jumping behaviour on hover or focus */\n}\n\n\n/* High Contrast Theming */\n:host-context(.hc-black) .context-view.monaco-menu-container {\n\tbox-shadow: none;\n}\n\n:host-context(.hc-black) .monaco-menu .monaco-action-bar.vertical .action-item.focused {\n\tbackground: none;\n}\n\n/* Vertical Action Bar Styles */\n\n.monaco-menu .monaco-action-bar.vertical {\n\tpadding: .5em 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item {\n\theight: 1.8em;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:not(.separator),\n.monaco-menu .monaco-action-bar.vertical .keybinding {\n\tfont-size: inherit;\n\tpadding: 0 2em;\n}\n\n.monaco-menu .monaco-action-bar.vertical .menu-item-check {\n\tfont-size: inherit;\n\twidth: 2em;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tfont-size: inherit;\n\tpadding: 0.2em 0 0 0;\n\tmargin-bottom: 0.2em;\n}\n\n:host-context(.linux) .monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tmargin-left: 0;\n\tmargin-right: 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\tfont-size: 60%;\n\tpadding: 0 1.8em;\n}\n\n:host-context(.linux) .monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\theight: 100%;\n\tmask-size: 10px 10px;\n\t-webkit-mask-size: 10px 10px;\n}\n\n.monaco-menu .action-item {\n\tcursor: default;\n}\n\n/* Arrows */\n.monaco-scrollable-element > .scrollbar > .scra {\n\tcursor: pointer;\n\tfont-size: 11px !important;\n}\n\n.monaco-scrollable-element > .visible {\n\topacity: 1;\n\n\t/* Background rule added for IE9 - to allow clicks on dom node */\n\tbackground:rgba(0,0,0,0);\n\n\ttransition: opacity 100ms linear;\n}\n.monaco-scrollable-element > .invisible {\n\topacity: 0;\n\tpointer-events: none;\n}\n.monaco-scrollable-element > .invisible.fade {\n\ttransition: opacity 800ms linear;\n}\n\n/* Scrollable Content Inset Shadow */\n.monaco-scrollable-element > .shadow {\n\tposition: absolute;\n\tdisplay: none;\n}\n.monaco-scrollable-element > .shadow.top {\n\tdisplay: block;\n\ttop: 0;\n\tleft: 3px;\n\theight: 3px;\n\twidth: 100%;\n\tbox-shadow: #DDD 0 6px 6px -6px inset;\n}\n.monaco-scrollable-element > .shadow.left {\n\tdisplay: block;\n\ttop: 3px;\n\tleft: 0;\n\theight: 100%;\n\twidth: 3px;\n\tbox-shadow: #DDD 6px 0 6px -6px inset;\n}\n.monaco-scrollable-element > .shadow.top-left-corner {\n\tdisplay: block;\n\ttop: 0;\n\tleft: 0;\n\theight: 3px;\n\twidth: 3px;\n}\n.monaco-scrollable-element > .shadow.top.left {\n\tbox-shadow: #DDD 6px 6px 6px -6px inset;\n}\n\n/* ---------- Default Style ---------- */\n\n:host-context(.vs) .monaco-scrollable-element > .scrollbar > .slider {\n\tbackground: rgba(100, 100, 100, .4);\n}\n:host-context(.vs-dark) .monaco-scrollable-element > .scrollbar > .slider {\n\tbackground: rgba(121, 121, 121, .4);\n}\n:host-context(.hc-black) .monaco-scrollable-element > .scrollbar > .slider {\n\tbackground: rgba(111, 195, 223, .6);\n}\n\n.monaco-scrollable-element > .scrollbar > .slider:hover {\n\tbackground: rgba(100, 100, 100, .7);\n}\n:host-context(.hc-black) .monaco-scrollable-element > .scrollbar > .slider:hover {\n\tbackground: rgba(111, 195, 223, .8);\n}\n\n.monaco-scrollable-element > .scrollbar > .slider.active {\n\tbackground: rgba(0, 0, 0, .6);\n}\n:host-context(.vs-dark) .monaco-scrollable-element > .scrollbar > .slider.active {\n\tbackground: rgba(191, 191, 191, .4);\n}\n:host-context(.hc-black) .monaco-scrollable-element > .scrollbar > .slider.active {\n\tbackground: rgba(111, 195, 223, 1);\n}\n\n:host-context(.vs-dark) .monaco-scrollable-element .shadow.top {\n\tbox-shadow: none;\n}\n\n:host-context(.vs-dark) .monaco-scrollable-element .shadow.left {\n\tbox-shadow: #000 6px 0 6px -6px inset;\n}\n\n:host-context(.vs-dark) .monaco-scrollable-element .shadow.top.left {\n\tbox-shadow: #000 6px 6px 6px -6px inset;\n}\n\n:host-context(.hc-black) .monaco-scrollable-element .shadow.top {\n\tbox-shadow: none;\n}\n\n:host-context(.hc-black) .monaco-scrollable-element .shadow.left {\n\tbox-shadow: none;\n}\n\n:host-context(.hc-black) .monaco-scrollable-element .shadow.top.left {\n\tbox-shadow: none;\n}\n`;var qr=n(82),Kr=n(34);class Gr{constructor(e,t,n,i,r){this.contextViewService=e,this.telemetryService=t,this.notificationService=n,this.keybindingService=i,this.themeService=r,this.focusToReturn=null,this.block=null,this.options={blockMouse:!0}}configure(e){this.options=e}showContextMenu(e){const t=e.getActions();if(!t.length)return;let n;this.focusToReturn=document.activeElement;let i=Object(G.M)(e.domForShadowRoot)?e.domForShadowRoot:void 0;this.contextViewService.showContextView({getAnchor:()=>e.getAnchor(),canRelayout:!1,anchorAlignment:e.anchorAlignment,render:i=>{let r=e.getMenuClassName?e.getMenuClassName():"";r&&(i.className+=" "+r),this.options.blockMouse&&(this.block=i.appendChild(Object(G.a)(".context-view-block")),this.block.style.position="fixed",this.block.style.cursor="initial",this.block.style.left="0",this.block.style.top="0",this.block.style.width="100%",this.block.style.height="100%",this.block.style.zIndex="-1",Object(Kr.a)(this.block,G.c.MOUSE_DOWN)(e=>e.stopPropagation()));const o=new _e.b,s=e.actionRunner||new xr.b;return s.onDidBeforeRun(this.onActionRun,this,o),s.onDidRun(this.onDidActionRun,this,o),n=new Yr(i,t,{actionViewItemProvider:e.getActionViewItem,context:e.getActionsContext?e.getActionsContext():null,actionRunner:s,getKeyBinding:e.getKeyBinding?e.getKeyBinding:e=>this.keybindingService.lookupKeybinding(e.id)}),o.add(Object(qr.c)(n,this.themeService)),n.onDidCancel(()=>this.contextViewService.hideContextView(!0),null,o),n.onDidBlur(()=>this.contextViewService.hideContextView(!0),null,o),Object(Kr.a)(window,G.c.BLUR)(()=>{this.contextViewService.hideContextView(!0)},null,o),Object(Kr.a)(window,G.c.MOUSE_DOWN)(e=>{if(e.defaultPrevented)return;let t=new Pr.a(e),n=t.target;if(!t.rightButton){for(;n;){if(n===i)return;n=n.parentElement}this.contextViewService.hideContextView(!0)}},null,o),Object(_e.e)(o,n)},focus:()=>{n&&n.focus(!!e.autoSelectFirstItem)},onHide:t=>{e.onHide&&e.onHide(!!t),this.block&&(Object(G.S)(this.block),this.block=null),this.focusToReturn&&this.focusToReturn.focus()}},i,!!i)}onActionRun(e){this.telemetryService&&this.telemetryService.publicLog2("workbenchActionExecuted",{id:e.action.id,from:"contextMenu"}),this.contextViewService.hideContextView(!1),this.focusToReturn&&this.focusToReturn.focus()}onDidActionRun(e){e.error&&this.notificationService&&this.notificationService.error(e.error)}}var Zr=n(108),Jr=function(e,t){return function(n,i){t(n,i,e)}};let Xr=class extends _e.a{constructor(e,t,n,i,r){super(),this._onDidContextMenu=this._register(new F.a),this.onDidContextMenu=this._onDidContextMenu.event,this.contextMenuHandler=new Gr(n,e,t,i,r)}configure(e){this.contextMenuHandler.configure(e)}showContextMenu(e){this.contextMenuHandler.showContextMenu(e),this._onDidContextMenu.fire()}};Xr=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}([Jr(0,Zr.a),Jr(1,Sn.a),Jr(2,Qn.b),Jr(3,ti.a),Jr(4,ni.c)],Xr);const Qr=Object(ei.c)("layoutService");let eo=class extends _e.a{constructor(e){super(),this.layoutService=e,this.currentViewDisposable=_e.a.None,this.container=e.container,this.contextView=this._register(new Or(this.container,1)),this.layout(),this._register(e.onLayout(()=>this.layout()))}setContainer(e,t){this.contextView.setContainer(e,t||1)}showContextView(e,t,n){t?t!==this.container&&(this.container=t,this.setContainer(t,n?3:2)):this.container!==this.layoutService.container&&(this.container=this.layoutService.container,this.setContainer(this.container,1)),this.contextView.show(e);const i=Object(_e.h)(()=>{this.currentViewDisposable===i&&this.hideContextView()});return this.currentViewDisposable=i,i}getContextViewElement(){return this.contextView.getViewElement()}layout(){this.contextView.layout()}hideContextView(e){this.contextView.hide(e)}};eo=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}([function(e,t){return function(n,i){t(n,i,e)}}(0,Qr)],eo);var to=n(206);class no{constructor(e){this.incoming=new Map,this.outgoing=new Map,this.data=e}}class io{constructor(e){this._hashFn=e,this._nodes=new Map}roots(){const e=[];for(let t of this._nodes.values())0===t.outgoing.size&&e.push(t);return e}insertEdge(e,t){const n=this.lookupOrInsertNode(e),i=this.lookupOrInsertNode(t);n.outgoing.set(this._hashFn(t),i),i.incoming.set(this._hashFn(e),n)}removeNode(e){const t=this._hashFn(e);this._nodes.delete(t);for(let e of this._nodes.values())e.outgoing.delete(t),e.incoming.delete(t)}lookupOrInsertNode(e){const t=this._hashFn(e);let n=this._nodes.get(t);return n||(n=new no(e),this._nodes.set(t,n)),n}isEmpty(){return 0===this._nodes.size}toString(){let e=[];for(let[t,n]of this._nodes)e.push(`${t}, (incoming)[${[...n.incoming.keys()].join(", ")}], (outgoing)[${[...n.outgoing.keys()].join(",")}]`);return e.join("\n")}}var ro=n(178),oo=n(154);const so=!1;class ao extends Error{constructor(e){super("cyclic dependency between services"),this.message=e.toString()}}class lo{constructor(e=new oo.a,t=!1,n){this._services=e,this._strict=t,this._parent=n,this._services.set(ei.a,this)}createChild(e){return new lo(e,this._strict,this)}invokeFunction(e,...t){let n=co.traceInvocation(e),i=!1;try{return e({get:(e,t)=>{if(i)throw Object(be.c)("service accessor is only valid during the invocation of its target method");const r=this._getOrCreateServiceInstance(e,n);if(!r&&t!==ei.d)throw new Error(`[invokeFunction] unknown service '${e}'`);return r}},...t)}finally{i=!0,n.stop()}}createInstance(e,...t){let n,i;return e instanceof ro.a?(n=co.traceCreation(e.ctor),i=this._createInstance(e.ctor,e.staticArguments.concat(t),n)):(n=co.traceCreation(e),i=this._createInstance(e,t,n)),n.stop(),i}_createInstance(e,t=[],n){let i=ei.b.getServiceDependencies(e).sort((e,t)=>e.index-t.index),r=[];for(const t of i){let i=this._getOrCreateServiceInstance(t.id,n);if(!i&&this._strict&&!t.optional)throw new Error(`[createInstance] ${e.name} depends on UNKNOWN service ${t.id}.`);r.push(i)}let o=i.length>0?i[0].index:t.length;if(t.length!==o){console.warn(`[createInstance] First service dependency of ${e.name} at position ${o+1} conflicts with ${t.length} static arguments`);let n=o-t.length;t=n>0?t.concat(new Array(n)):t.slice(0,o)}return new e(...[...t,...r])}_setServiceInstance(e,t){if(this._services.get(e)instanceof ro.a)this._services.set(e,t);else{if(!this._parent)throw new Error("illegalState - setting UNKNOWN service instance");this._parent._setServiceInstance(e,t)}}_getServiceInstanceOrDescriptor(e){let t=this._services.get(e);return!t&&this._parent?this._parent._getServiceInstanceOrDescriptor(e):t}_getOrCreateServiceInstance(e,t){let n=this._getServiceInstanceOrDescriptor(e);return n instanceof ro.a?this._createAndCacheServiceInstance(e,n,t.branch(e,!0)):(t.branch(e,!1),n)}_createAndCacheServiceInstance(e,t,n){const i=new io(e=>e.id.toString());let r=0;const o=[{id:e,desc:t,_trace:n}];for(;o.length;){const t=o.pop();if(i.lookupOrInsertNode(t),r++>1e3)throw new ao(i);for(let n of ei.b.getServiceDependencies(t.desc.ctor)){let r=this._getServiceInstanceOrDescriptor(n.id);if(r||n.optional||console.warn(`[createInstance] ${e} depends on ${n.id} which is NOT registered.`),r instanceof ro.a){const e={id:n.id,desc:r,_trace:t._trace.branch(n.id,!0)};i.insertEdge(t,e),o.push(e)}}}for(;;){const e=i.roots();if(0===e.length){if(!i.isEmpty())throw new ao(i);break}for(const{data:t}of e){const e=this._createServiceInstanceWithOwner(t.id,t.desc.ctor,t.desc.staticArguments,t.desc.supportsDelayedInstantiation,t._trace);this._setServiceInstance(t.id,e),i.removeNode(t)}}return this._getServiceInstanceOrDescriptor(e)}_createServiceInstanceWithOwner(e,t,n=[],i,r){if(this._services.get(e)instanceof ro.a)return this._createServiceInstance(t,n,i,r);if(this._parent)return this._parent._createServiceInstanceWithOwner(e,t,n,i,r);throw new Error(`illegalState - creating UNKNOWN service instance ${t.name}`)}_createServiceInstance(e,t=[],n,i){if(n){const n=new me.b(()=>this._createInstance(e,t,i));return new Proxy(Object.create(null),{get(e,t){if(t in e)return e[t];let i=n.value,r=i[t];return"function"!=typeof r?r:(r=r.bind(i),e[t]=r,r)},set:(e,t,i)=>(n.value[t]=i,!0)})}return this._createInstance(e,t,i)}}class co{constructor(e,t){this.type=e,this.name=t,this._start=Date.now(),this._dep=[]}static traceInvocation(e){return so?new co(1,e.name||e.toString().substring(0,42).replace(/\n/g,"")):co._None}static traceCreation(e){return so?new co(0,e.name):co._None}branch(e,t){let n=new co(2,e.toString());return this._dep.push([e,t,n]),n}stop(){let e=Date.now()-this._start;co._totals+=e;let t=!1;let n=[`${0===this.type?"CREATE":"CALL"} ${this.name}`,`${function e(n,i){let r=[],o=new Array(n+1).join("\t");for(const[s,a,l]of i._dep)if(a&&l){t=!0,r.push(`${o}CREATES -> ${s}`);let i=e(n+1,l);i&&r.push(i)}else r.push(`${o}uses -> ${s}`);return r.join("\n")}(1,this)}`,`DONE, took ${e.toFixed(2)}ms (grand total ${co._totals.toFixed(2)}ms)`];(e>2||t)&&console.log(n.join("\n"))}}co._None=new class extends co{constructor(){super(-1,null)}stop(){}branch(){return this}},co._totals=0;var uo=n(171),ho=n(129),fo=n(52),go=n(38);class po{constructor(){this._byResource=new nn.b,this._byOwner=new Map}set(e,t,n){let i=this._byResource.get(e);i||(i=new Map,this._byResource.set(e,i)),i.set(t,n);let r=this._byOwner.get(t);r||(r=new nn.b,this._byOwner.set(t,r)),r.set(e,n)}get(e,t){let n=this._byResource.get(e);return null==n?void 0:n.get(t)}delete(e,t){let n=!1,i=!1,r=this._byResource.get(e);r&&(n=r.delete(t));let o=this._byOwner.get(t);if(o&&(i=o.delete(e)),n!==i)throw new Error("illegal state");return n&&i}values(e){var t,n,i,r;return"string"==typeof e?null!==(n=null===(t=this._byOwner.get(e))||void 0===t?void 0:t.values())&&void 0!==n?n:go.a.empty():W.a.isUri(e)?null!==(r=null===(i=this._byResource.get(e))||void 0===i?void 0:i.values())&&void 0!==r?r:go.a.empty():go.a.map(go.a.concat(...this._byOwner.values()),e=>e[1])}}class mo{constructor(e){this.errors=0,this.infos=0,this.warnings=0,this.unknowns=0,this._data=new nn.b,this._service=e,this._subscription=e.onMarkerChanged(this._update,this)}dispose(){this._subscription.dispose()}_update(e){for(const t of e){const e=this._data.get(t);e&&this._substract(e);const n=this._resourceStats(t);this._add(n),this._data.set(t,n)}}_resourceStats(e){const t={errors:0,warnings:0,infos:0,unknowns:0};if(e.scheme===X.b.inMemory||e.scheme===X.b.walkThrough||e.scheme===X.b.walkThroughSnippet)return t;for(const{severity:n}of this._service.read({resource:e}))n===fo.c.Error?t.errors+=1:n===fo.c.Warning?t.warnings+=1:n===fo.c.Info?t.infos+=1:t.unknowns+=1;return t}_substract(e){this.errors-=e.errors,this.warnings-=e.warnings,this.infos-=e.infos,this.unknowns-=e.unknowns}_add(e){this.errors+=e.errors,this.warnings+=e.warnings,this.infos+=e.infos,this.unknowns+=e.unknowns}}class _o{constructor(){this._onMarkerChanged=new F.a,this.onMarkerChanged=F.b.debounce(this._onMarkerChanged.event,_o._debouncer,0),this._data=new po,this._stats=new mo(this)}dispose(){this._stats.dispose()}remove(e,t){for(const n of t||[])this.changeOne(e,n,[])}changeOne(e,t,n){if(Object(Ee.n)(n)){this._data.delete(t,e)&&this._onMarkerChanged.fire([t])}else{const i=[];for(const r of n){const n=_o._toMarker(e,t,r);n&&i.push(n)}this._data.set(t,e,i),this._onMarkerChanged.fire([t])}}static _toMarker(e,t,n){let{code:i,severity:r,message:o,source:s,startLineNumber:a,startColumn:l,endLineNumber:c,endColumn:d,relatedInformation:u,tags:h}=n;if(o)return{resource:t,owner:e,code:i,severity:r,message:o,source:s,startLineNumber:a=a>0?a:1,startColumn:l=l>0?l:1,endLineNumber:c=c>=a?c:a,endColumn:d=d>0?d:l,relatedInformation:u,tags:h}}read(e=Object.create(null)){let{owner:t,resource:n,severities:i,take:r}=e;if((!r||r<0)&&(r=-1),t&&n){const e=this._data.get(n,t);if(e){const t=[];for(const n of e)if(_o._accept(n,i)){const e=t.push(n);if(r>0&&e===r)break}return t}return[]}if(t||n){const e=this._data.values(null!=n?n:t),o=[];for(const t of e)for(const e of t)if(_o._accept(e,i)){const t=o.push(e);if(r>0&&t===r)return o}return o}{const e=[];for(let t of this._data.values())for(let n of t)if(_o._accept(n,i)){const t=e.push(n);if(r>0&&t===r)return e}return e}}static _accept(e,t){return void 0===t||(t&e.severity)===e.severity}static _debouncer(e,t){e||(_o._dedupeMap=new nn.b,e=[]);for(const n of t)_o._dedupeMap.has(n)||(_o._dedupeMap.set(n,!0),e.push(n));return e}}var bo=n(88),vo=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},yo=function(e,t){return function(n,i){t(n,i,e)}};let wo=class{constructor(e){this._commandService=e}createMenu(e,t){return new Co(e,this._commandService,t,this)}};wo=vo([yo(0,ee.b)],wo);let Co=class e{constructor(e,t,n,i){this._id=e,this._commandService=t,this._contextKeyService=n,this._menuService=i,this._onDidChange=new F.a,this._dispoables=new _e.b,this._menuGroups=[],this._contextKeys=new Set,this._build(),this._dispoables.add(F.b.debounce(F.b.filter(Jn.d.onDidChangeMenu,e=>e.has(this._id)),()=>{},50)(this._build,this)),this._dispoables.add(F.b.debounce(this._contextKeyService.onDidChangeContext,(e,t)=>e||t.affectsSome(this._contextKeys),50)(e=>e&&this._onDidChange.fire(void 0),this))}dispose(){this._dispoables.dispose(),this._onDidChange.dispose()}_build(){this._menuGroups.length=0,this._contextKeys.clear();const t=Jn.d.getMenuItems(this._id);let n;t.sort(e._compareMenuItems);for(let i of t){const t=i.group||"";if(n&&n[0]===t||(n=[t,[]],this._menuGroups.push(n)),n[1].push(i),e._fillInKbExprKeys(i.when,this._contextKeys),Object(Jn.f)(i)&&i.command.precondition&&e._fillInKbExprKeys(i.command.precondition,this._contextKeys),Object(Jn.f)(i)&&i.command.toggled){const t=i.command.toggled.condition||i.command.toggled;e._fillInKbExprKeys(t,this._contextKeys)}}this._onDidChange.fire(this)}get onDidChange(){return this._onDidChange.event}getActions(e){const t=[];for(let n of this._menuGroups){const[i,r]=n,o=[];for(const t of r)if(this._contextKeyService.contextMatchesRules(t.when)){const n=Object(Jn.f)(t)?new Jn.c(t.command,t.alt,e,this._contextKeyService,this._commandService):new Jn.e(t,this._menuService,this._contextKeyService,e);o.push(n)}o.length>0&&t.push([i,o])}return t}static _fillInKbExprKeys(e,t){if(e)for(let n of e.keys())t.add(n)}static _compareMenuItems(t,n){let i=t.group,r=n.group;if(i!==r){if(!i)return 1;if(!r)return-1;if("navigation"===i)return-1;if("navigation"===r)return 1;let e=i.localeCompare(r);if(0!==e)return e}let o=t.order||0,s=n.order||0;return o<s?-1:o>s?1:e._compareTitles(Object(Jn.f)(t)?t.command.title:t.title,Object(Jn.f)(n)?n.command.title:n.title)}static _compareTitles(e,t){const n="string"==typeof e?e:e.value,i="string"==typeof t?t:t.value;return n.localeCompare(i)}};Co=vo([yo(1,ee.b),yo(2,Xn.b),yo(3,Jn.a)],Co);var So=n(272),ko=function(e,t){return function(n,i){t(n,i,e)}};function xo(e){return e.toString()}class Lo extends _e.a{constructor(e){super(),this.model=e,this._markersData=new Map,this._register(Object(_e.h)(()=>{this.model.deltaDecorations([...this._markersData.keys()],[]),this._markersData.clear()}))}update(e,t){const n=[...this._markersData.keys()];this._markersData.clear();const i=this.model.deltaDecorations(n,t);for(let t=0;t<i.length;t++)this._markersData.set(i[t],e[t]);return 0!==n.length||0!==i.length}getMarker(e){return this._markersData.get(e.id)}}let Mo=class extends _e.a{constructor(e,t){super(),this._markerService=t,this._onDidChangeMarker=this._register(new F.a),this._markerDecorations=new Map,e.getModels().forEach(e=>this._onModelAdded(e)),this._register(e.onModelAdded(this._onModelAdded,this)),this._register(e.onModelRemoved(this._onModelRemoved,this)),this._register(this._markerService.onMarkerChanged(this._handleMarkerChange,this))}dispose(){super.dispose(),this._markerDecorations.forEach(e=>e.dispose()),this._markerDecorations.clear()}getMarker(e,t){const n=this._markerDecorations.get(xo(e.uri));return n&&n.getMarker(t)||null}_handleMarkerChange(e){e.forEach(e=>{const t=this._markerDecorations.get(xo(e));t&&this._updateDecorations(t)})}_onModelAdded(e){const t=new Lo(e);this._markerDecorations.set(xo(e.uri),t),this._updateDecorations(t)}_onModelRemoved(e){const t=this._markerDecorations.get(xo(e.uri));t&&(t.dispose(),this._markerDecorations.delete(xo(e.uri))),e.uri.scheme!==X.b.inMemory&&e.uri.scheme!==X.b.internal&&e.uri.scheme!==X.b.vscode||this._markerService&&this._markerService.read({resource:e.uri}).map(e=>e.owner).forEach(t=>this._markerService.remove(t,[e.uri]))}_updateDecorations(e){const t=this._markerService.read({resource:e.model.uri,take:500});let n=t.map(t=>({range:this._createDecorationRange(e.model,t),options:this._createDecorationOption(t)}));e.update(t,n)&&this._onDidChangeMarker.fire(e.model)}_createDecorationRange(e,t){let n=Y.a.lift(t);if(t.severity!==fo.c.Hint||this._hasMarkerTag(t,1)||this._hasMarkerTag(t,2)||(n=n.setEndPosition(n.startLineNumber,n.startColumn+2)),(n=e.validateRange(n)).isEmpty()){let t=e.getWordAtPosition(n.getStartPosition());if(t)n=new Y.a(n.startLineNumber,t.startColumn,n.endLineNumber,t.endColumn);else{let t=e.getLineLastNonWhitespaceColumn(n.startLineNumber)||e.getLineMaxColumn(n.startLineNumber);1===t||(n=n.endColumn>=t?new Y.a(n.startLineNumber,t-1,n.endLineNumber,t):new Y.a(n.startLineNumber,n.startColumn,n.endLineNumber,n.endColumn+1))}}else if(t.endColumn===Number.MAX_VALUE&&1===t.startColumn&&n.startLineNumber===n.endLineNumber){let i=e.getLineFirstNonWhitespaceColumn(t.startLineNumber);i<n.endColumn&&(n=new Y.a(n.startLineNumber,i,n.endLineNumber,n.endColumn),t.startColumn=i)}return n}_createDecorationOption(e){let t,n,i,r=void 0,o=void 0;switch(e.severity){case fo.c.Hint:t=this._hasMarkerTag(e,2)?void 0:this._hasMarkerTag(e,1)?"squiggly-unnecessary":"squiggly-hint",n=0;break;case fo.c.Warning:t="squiggly-warning",r=Object(ni.h)(Zi.t),n=20,i={color:Object(ni.h)(Ji.Tb),position:ue.c.Inline};break;case fo.c.Info:t="squiggly-info",r=Object(ni.h)(Zi.r),n=10;break;case fo.c.Error:default:t="squiggly-error",r=Object(ni.h)(Zi.q),n=30,i={color:Object(ni.h)(Ji.Nb),position:ue.c.Inline}}return e.tags&&(-1!==e.tags.indexOf(1)&&(o="squiggly-inline-unnecessary"),-1!==e.tags.indexOf(2)&&(o="squiggly-inline-deprecated")),{stickiness:1,className:t,showIfCollapsed:!0,overviewRuler:{color:r,position:ue.d.Right},minimap:i,zIndex:n,inlineClassName:o}}_hasMarkerTag(e,t){return!!e.tags&&e.tags.indexOf(t)>=0}};Mo=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}([ko(0,lt.a),ko(1,fo.b)],Mo);var Do=n(103),Eo=function(e,t){return function(n,i){t(n,i,e)}};let To=class extends _e.a{constructor(e,t){super(),this._contextKeyService=e,this._configurationService=t,this._accessibilitySupport=0,this._onDidChangeScreenReaderOptimized=new F.a,this._accessibilityModeEnabledContext=ii.a.bindTo(this._contextKeyService);const n=()=>this._accessibilityModeEnabledContext.set(this.isScreenReaderOptimized());this._register(this._configurationService.onDidChangeConfiguration(e=>{e.affectsConfiguration("editor.accessibilitySupport")&&(n(),this._onDidChangeScreenReaderOptimized.fire())})),n(),this.onDidChangeScreenReaderOptimized(()=>n())}get onDidChangeScreenReaderOptimized(){return this._onDidChangeScreenReaderOptimized.event}isScreenReaderOptimized(){const e=this._configurationService.getValue("editor.accessibilitySupport");return"on"===e||"auto"===e&&2===this._accessibilitySupport}getAccessibilitySupport(){return this._accessibilitySupport}};To=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}([Eo(0,Xn.b),Eo(1,tn.a)],To);var Oo=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};class No{constructor(){this.mapTextToType=new Map,this.findText=""}writeText(e,t){return Oo(this,void 0,void 0,(function*(){if(t)return void this.mapTextToType.set(t,e);try{return yield navigator.clipboard.writeText(e)}catch(e){console.error(e)}const n=document.activeElement,i=document.body.appendChild(Object(G.a)("textarea",{"aria-hidden":!0}));i.style.height="1px",i.style.width="1px",i.style.position="absolute",i.value=e,i.focus(),i.select(),document.execCommand("copy"),n instanceof HTMLElement&&n.focus(),document.body.removeChild(i)}))}readText(e){return Oo(this,void 0,void 0,(function*(){if(e)return this.mapTextToType.get(e)||"";try{return yield navigator.clipboard.readText()}catch(e){return console.error(e),""}}))}readFindText(){return Oo(this,void 0,void 0,(function*(){return this.findText}))}writeFindText(e){return Oo(this,void 0,void 0,(function*(){this.findText=e}))}}var Io=n(155),Ao=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Ro=function(e,t){return function(n,i){t(n,i,e)}},Po=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};function jo(e){return e.scheme===X.b.file?e.fsPath:e.path}let Fo=0;class Bo{constructor(e,t,n){this.id=++Fo,this.type=0,this.actual=e,this.label=e.label,this.resourceLabel=t,this.strResource=n,this.resourceLabels=[this.resourceLabel],this.strResources=[this.strResource],this.isValid=!0}setValid(e){this.isValid=e}toString(){return`[${this.id}] [${this.isValid?"VALID":"INVALID"}] ${this.actual}`}}class Wo{constructor(e,t){this.resourceLabel=e,this.reason=t}}class Ho{constructor(){this.elements=new Map}createMessage(){const e=[],t=[];for(const[,n]of this.elements){(0===n.reason?e:t).push(n.resourceLabel)}let n=[];return e.length>0&&n.push(dn.a({key:"externalRemoval",comment:["{0} is a list of filenames"]},"The following files have been closed and modified on disk: {0}.",e.join(", "))),t.length>0&&n.push(dn.a({key:"noParallelUniverses",comment:["{0} is a list of filenames"]},"The following files have been modified in an incompatible way: {0}.",t.join(", "))),n.join("\n")}get size(){return this.elements.size}has(e){return this.elements.has(e)}set(e,t){this.elements.set(e,t)}delete(e){return this.elements.delete(e)}}class Yo{constructor(e,t,n){this.id=++Fo,this.type=1,this.actual=e,this.label=e.label,this.resourceLabels=t,this.strResources=n,this.removedResources=null,this.invalidatedResources=null}canSplit(){return"function"==typeof this.actual.split}removeResource(e,t,n){this.removedResources||(this.removedResources=new Ho),this.removedResources.has(t)||this.removedResources.set(t,new Wo(e,n))}setValid(e,t,n){n?this.invalidatedResources&&(this.invalidatedResources.delete(t),0===this.invalidatedResources.size&&(this.invalidatedResources=null)):(this.invalidatedResources||(this.invalidatedResources=new Ho),this.invalidatedResources.has(t)||this.invalidatedResources.set(t,new Wo(e,0)))}toString(){return`[${this.id}] [${this.invalidatedResources?"INVALID":"VALID"}] ${this.actual}`}}class Vo{constructor(e,t){this.resourceLabel=e,this.strResource=t,this._past=[],this._future=[],this.locked=!1,this.versionId=1}dispose(){for(const e of this._past)1===e.type&&e.removeResource(this.resourceLabel,this.strResource,0);for(const e of this._future)1===e.type&&e.removeResource(this.resourceLabel,this.strResource,0);this.versionId++}toString(){let e=[];e.push(`* ${this.strResource}:`);for(let t=0;t<this._past.length;t++)e.push(` * [UNDO] ${this._past[t]}`);for(let t=this._future.length-1;t>=0;t--)e.push(` * [REDO] ${this._future[t]}`);return e.join("\n")}flushAllElements(){this._past=[],this._future=[],this.versionId++}_setElementValidFlag(e,t){1===e.type?e.setValid(this.resourceLabel,this.strResource,t):e.setValid(t)}setElementsValidFlag(e,t){for(const n of this._past)t(n.actual)&&this._setElementValidFlag(n,e);for(const n of this._future)t(n.actual)&&this._setElementValidFlag(n,e)}pushElement(e){for(const e of this._future)1===e.type&&e.removeResource(this.resourceLabel,this.strResource,1);if(this._future=[],this._past.length>0){const e=this._past[this._past.length-1];0!==e.type||e.isValid||(this._past=[])}this._past.push(e),this.versionId++}createSnapshot(e){const t=[];for(let e=0,n=this._past.length;e<n;e++)t.push(this._past[e].id);for(let e=this._future.length-1;e>=0;e--)t.push(this._future[e].id);return new Io.b(e,t)}restoreSnapshot(e){const t=e.elements.length;let n=!0,i=0,r=-1;for(let o=0,s=this._past.length;o<s;o++,i++){const s=this._past[o];n&&(i>=t||s.id!==e.elements[i])&&(n=!1,r=0),n||1!==s.type||s.removeResource(this.resourceLabel,this.strResource,0)}let o=-1;for(let r=this._future.length-1;r>=0;r--,i++){const s=this._future[r];n&&(i>=t||s.id!==e.elements[i])&&(n=!1,o=r),n||1!==s.type||s.removeResource(this.resourceLabel,this.strResource,0)}-1!==r&&(this._past=this._past.slice(0,r)),-1!==o&&(this._future=this._future.slice(o+1)),this.versionId++}getElements(){const e=[],t=[];for(const t of this._past)e.push(t.actual);for(const e of this._future)t.push(e.actual);return{past:e,future:t}}getClosestPastElement(){return 0===this._past.length?null:this._past[this._past.length-1]}getClosestFutureElement(){return 0===this._future.length?null:this._future[this._future.length-1]}hasPastElements(){return this._past.length>0}hasFutureElements(){return this._future.length>0}splitPastWorkspaceElement(e,t){for(let n=this._past.length-1;n>=0;n--)if(this._past[n]===e){t.has(this.strResource)?this._past[n]=t.get(this.strResource):this._past.splice(n,1);break}this.versionId++}splitFutureWorkspaceElement(e,t){for(let n=this._future.length-1;n>=0;n--)if(this._future[n]===e){t.has(this.strResource)?this._future[n]=t.get(this.strResource):this._future.splice(n,1);break}this.versionId++}moveBackward(e){this._past.pop(),this._future.push(e),this.versionId++}moveForward(e){this._future.pop(),this._past.push(e),this.versionId++}}class zo{constructor(e){this.editStacks=e,this._versionIds=[];for(let e=0,t=this.editStacks.length;e<t;e++)this._versionIds[e]=this.editStacks[e].versionId}isValid(){for(let e=0,t=this.editStacks.length;e<t;e++)if(this._versionIds[e]!==this.editStacks[e].versionId)return!1;return!0}}const Uo=new Vo("","");Uo.locked=!0;let $o=class{constructor(e,t){this._dialogService=e,this._notificationService=t,this._editStacks=new Map,this._uriComparisonKeyComputers=[]}getUriComparisonKey(e){for(const t of this._uriComparisonKeyComputers)if(t[0]===e.scheme)return t[1].getComparisonKey(e);return e.toString()}_print(e){console.log("------------------------------------"),console.log(`AFTER ${e}: `);let t=[];for(const e of this._editStacks)t.push(e[1].toString());console.log(t.join("\n"))}pushElement(e){if(0===e.type){const t=jo(e.resource),n=this.getUriComparisonKey(e.resource);this._pushElement(new Bo(e,t,n))}else{const t=new Set,n=[],i=[];for(const r of e.resources){const e=jo(r),o=this.getUriComparisonKey(r);t.has(o)||(t.add(o),n.push(e),i.push(o))}1===n.length?this._pushElement(new Bo(e,n[0],i[0])):this._pushElement(new Yo(e,n,i))}}_pushElement(e){for(let t=0,n=e.strResources.length;t<n;t++){const n=e.resourceLabels[t],i=e.strResources[t];let r;this._editStacks.has(i)?r=this._editStacks.get(i):(r=new Vo(n,i),this._editStacks.set(i,r)),r.pushElement(e)}}getLastElement(e){const t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){const e=this._editStacks.get(t);if(e.hasFutureElements())return null;const n=e.getClosestPastElement();return n?n.actual:null}return null}_splitPastWorkspaceElement(e,t){const n=e.actual.split(),i=new Map;for(const e of n){const t=jo(e.resource),n=this.getUriComparisonKey(e.resource),r=new Bo(e,t,n);i.set(r.strResource,r)}for(const n of e.strResources){if(t&&t.has(n))continue;this._editStacks.get(n).splitPastWorkspaceElement(e,i)}}_splitFutureWorkspaceElement(e,t){const n=e.actual.split(),i=new Map;for(const e of n){const t=jo(e.resource),n=this.getUriComparisonKey(e.resource),r=new Bo(e,t,n);i.set(r.strResource,r)}for(const n of e.strResources){if(t&&t.has(n))continue;this._editStacks.get(n).splitFutureWorkspaceElement(e,i)}}removeElements(e){const t="string"==typeof e?e:this.getUriComparisonKey(e);if(this._editStacks.has(t)){this._editStacks.get(t).dispose(),this._editStacks.delete(t)}}setElementsValidFlag(e,t,n){const i=this.getUriComparisonKey(e);if(this._editStacks.has(i)){this._editStacks.get(i).setElementsValidFlag(t,n)}}createSnapshot(e){const t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){return this._editStacks.get(t).createSnapshot(e)}return new Io.b(e,[])}restoreSnapshot(e){const t=this.getUriComparisonKey(e.resource);if(this._editStacks.has(t)){const n=this._editStacks.get(t);n.restoreSnapshot(e),n.hasPastElements()||n.hasFutureElements()||(n.dispose(),this._editStacks.delete(t))}}getElements(e){const t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){return this._editStacks.get(t).getElements()}return{past:[],future:[]}}canUndo(e){const t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){return this._editStacks.get(t).hasPastElements()}return!1}_onError(e,t){Object(be.e)(e);for(const e of t.strResources)this.removeElements(e);this._notificationService.error(e)}_acquireLocks(e){for(const t of e.editStacks)if(t.locked)throw new Error("Cannot acquire edit stack lock");for(const t of e.editStacks)t.locked=!0;return()=>{for(const t of e.editStacks)t.locked=!1}}_safeInvokeWithLocks(e,t,n,i=_e.a.None){const r=this._acquireLocks(n);let o;try{o=t()}catch(t){return r(),i.dispose(),this._onError(t,e)}if(o)return o.then(()=>{r(),i.dispose()},t=>(r(),i.dispose(),this._onError(t,e)));r(),i.dispose()}_invokeWorkspacePrepare(e){return Po(this,void 0,void 0,(function*(){if(void 0===e.actual.prepareUndoRedo)return _e.a.None;const t=e.actual.prepareUndoRedo();return void 0===t?_e.a.None:t}))}_invokeResourcePrepare(e,t){if(1!==e.actual.type||void 0===e.actual.prepareUndoRedo)return void t(_e.a.None);const n=e.actual.prepareUndoRedo();if(n){if(!Object(_e.g)(n))return n.then(e=>{t(e)});t(n)}else t(_e.a.None)}_getAffectedEditStacks(e){const t=[];for(const n of e.strResources)t.push(this._editStacks.get(n)||Uo);return new zo(t)}_tryToSplitAndUndo(e,t,n,i){if(t.canSplit())return this._splitPastWorkspaceElement(t,n),this._notificationService.info(i),new qo(this.undo(e));for(const e of t.strResources)this.removeElements(e);return this._notificationService.info(i),new qo}_checkWorkspaceUndo(e,t,n,i){if(t.removedResources)return this._tryToSplitAndUndo(e,t,t.removedResources,dn.a({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",t.label,t.removedResources.createMessage()));if(i&&t.invalidatedResources)return this._tryToSplitAndUndo(e,t,t.invalidatedResources,dn.a({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",t.label,t.invalidatedResources.createMessage()));const r=[];for(const e of n.editStacks)e.getClosestPastElement()!==t&&r.push(e.resourceLabel);if(r.length>0)return this._tryToSplitAndUndo(e,t,null,dn.a({key:"cannotWorkspaceUndoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because changes were made to {1}",t.label,r.join(", ")));const o=[];for(const e of n.editStacks)e.locked&&o.push(e.resourceLabel);return o.length>0?this._tryToSplitAndUndo(e,t,null,dn.a({key:"cannotWorkspaceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because there is already an undo or redo operation running on {1}",t.label,o.join(", "))):n.isValid()?null:this._tryToSplitAndUndo(e,t,null,dn.a({key:"cannotWorkspaceUndoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because an undo or redo operation occurred in the meantime",t.label))}_workspaceUndo(e,t){const n=this._getAffectedEditStacks(t),i=this._checkWorkspaceUndo(e,t,n,!1);return i?i.returnValue:this._confirmAndExecuteWorkspaceUndo(e,t,n)}_confirmAndExecuteWorkspaceUndo(e,t,n){return Po(this,void 0,void 0,(function*(){if(t.canSplit()){const i=yield this._dialogService.show(Zt.a.Info,dn.a("confirmWorkspace","Would you like to undo '{0}' across all files?",t.label),[dn.a({key:"ok",comment:["{0} denotes a number that is > 1"]},"Undo in {0} Files",n.editStacks.length),dn.a("nok","Undo this File"),dn.a("cancel","Cancel")],{cancelId:2});if(2===i.choice)return;if(1===i.choice)return this._splitPastWorkspaceElement(t,null),this.undo(e);const r=this._checkWorkspaceUndo(e,t,n,!1);if(r)return r.returnValue}let i;try{i=yield this._invokeWorkspacePrepare(t)}catch(e){return this._onError(e,t)}const r=this._checkWorkspaceUndo(e,t,n,!0);if(r)return i.dispose(),r.returnValue;for(const e of n.editStacks)e.moveBackward(t);return this._safeInvokeWithLocks(t,()=>t.actual.undo(),n,i)}))}_resourceUndo(e,t){if(t.isValid){if(!e.locked)return this._invokeResourcePrepare(t,n=>(e.moveBackward(t),this._safeInvokeWithLocks(t,()=>t.actual.undo(),new zo([e]),n)));{const e=dn.a({key:"cannotResourceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not undo '{0}' because there is already an undo or redo operation running.",t.label);this._notificationService.info(e)}}else e.flushAllElements()}undo(e){const t="string"==typeof e?e:this.getUriComparisonKey(e);if(!this._editStacks.has(t))return;const n=this._editStacks.get(t),i=n.getClosestPastElement();if(i)try{return 1===i.type?this._workspaceUndo(t,i):this._resourceUndo(n,i)}finally{0}}canRedo(e){const t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){return this._editStacks.get(t).hasFutureElements()}return!1}_tryToSplitAndRedo(e,t,n,i){if(t.canSplit())return this._splitFutureWorkspaceElement(t,n),this._notificationService.info(i),new qo(this.redo(e));for(const e of t.strResources)this.removeElements(e);return this._notificationService.info(i),new qo}_checkWorkspaceRedo(e,t,n,i){if(t.removedResources)return this._tryToSplitAndRedo(e,t,t.removedResources,dn.a({key:"cannotWorkspaceRedo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not redo '{0}' across all files. {1}",t.label,t.removedResources.createMessage()));if(i&&t.invalidatedResources)return this._tryToSplitAndRedo(e,t,t.invalidatedResources,dn.a({key:"cannotWorkspaceRedo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not redo '{0}' across all files. {1}",t.label,t.invalidatedResources.createMessage()));const r=[];for(const e of n.editStacks)e.getClosestFutureElement()!==t&&r.push(e.resourceLabel);if(r.length>0)return this._tryToSplitAndRedo(e,t,null,dn.a({key:"cannotWorkspaceRedoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because changes were made to {1}",t.label,r.join(", ")));const o=[];for(const e of n.editStacks)e.locked&&o.push(e.resourceLabel);return o.length>0?this._tryToSplitAndRedo(e,t,null,dn.a({key:"cannotWorkspaceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because there is already an undo or redo operation running on {1}",t.label,o.join(", "))):n.isValid()?null:this._tryToSplitAndRedo(e,t,null,dn.a({key:"cannotWorkspaceRedoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because an undo or redo operation occurred in the meantime",t.label))}_workspaceRedo(e,t){const n=this._getAffectedEditStacks(t),i=this._checkWorkspaceRedo(e,t,n,!1);return i?i.returnValue:this._executeWorkspaceRedo(e,t,n)}_executeWorkspaceRedo(e,t,n){return Po(this,void 0,void 0,(function*(){let i;try{i=yield this._invokeWorkspacePrepare(t)}catch(e){return this._onError(e,t)}const r=this._checkWorkspaceRedo(e,t,n,!0);if(r)return i.dispose(),r.returnValue;for(const e of n.editStacks)e.moveForward(t);return this._safeInvokeWithLocks(t,()=>t.actual.redo(),n,i)}))}_resourceRedo(e,t){if(t.isValid){if(!e.locked)return this._invokeResourcePrepare(t,n=>(e.moveForward(t),this._safeInvokeWithLocks(t,()=>t.actual.redo(),new zo([e]),n)));{const e=dn.a({key:"cannotResourceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not redo '{0}' because there is already an undo or redo operation running.",t.label);this._notificationService.info(e)}}else e.flushAllElements()}redo(e){const t="string"==typeof e?e:this.getUriComparisonKey(e);if(!this._editStacks.has(t))return;const n=this._editStacks.get(t),i=n.getClosestFutureElement();if(i)try{return 1===i.type?this._workspaceRedo(t,i):this._resourceRedo(n,i)}finally{0}}};$o=Ao([Ro(0,to.a),Ro(1,Sn.a)],$o);class qo{constructor(e){this.returnValue=e}}Object(Do.b)(Io.a,$o);n(635);var Ko=n(4),Go=(n(238),n(139)),Zo=n(156);const Jo=new me.b(()=>{const e=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});return{collator:e,collatorIsNumeric:e.resolvedOptions().numeric}});function Xo(e,t,n){const i=e.toLowerCase(),r=t.toLowerCase(),o=function(e,t,n){const i=e.toLowerCase(),r=t.toLowerCase(),o=i.startsWith(n),s=r.startsWith(n);if(o!==s)return o?-1:1;if(o&&s){if(i.length<r.length)return-1;if(i.length>r.length)return 1}return 0}(e,t,n);if(o)return o;const s=i.endsWith(n);if(s!==r.endsWith(n))return s?-1:1;const a=function(e,t,n=!1){const i=e||"",r=t||"",o=Jo.value.collator.compare(i,r);return Jo.value.collatorIsNumeric&&0===o&&i!==r?i<r?-1:1:o}(i,r);return 0!==a?a:i.localeCompare(r)}var Qo=n(204),es=n(165),ts=n(90),ns=n(150);const is={},rs=new ns.a("quick-input-button-icon-");function os(e){if(!e)return;let t;const n=e.dark.toString();return is[n]?t=is[n]:(t=rs.nextId(),G.u(`.${t}`,`background-image: ${G.q(e.light||e.dark)}`),G.u(`.vs-dark .${t}, .hc-black .${t}`,`background-image: ${G.q(e.dark)}`),is[n]=t),t}n(636);const ss=G.a;class as{constructor(e,t,n){this.os=t,this.options=n,this.domNode=G.p(e,ss(".monaco-keybinding")),this.didEverRender=!1,e.appendChild(this.domNode)}set(e,t){this.didEverRender&&this.keybinding===e&&as.areSame(this.matches,t)||(this.keybinding=e,this.matches=t,this.render())}render(){if(G.s(this.domNode),this.keybinding){let[e,t]=this.keybinding.getParts();e&&this.renderPart(this.domNode,e,this.matches?this.matches.firstPart:null),t&&(G.p(this.domNode,ss("span.monaco-keybinding-key-chord-separator",void 0," ")),this.renderPart(this.domNode,t,this.matches?this.matches.chordPart:null)),this.domNode.title=this.keybinding.getAriaLabel()||""}else this.options&&this.options.renderUnboundKeybindings&&this.renderUnbound(this.domNode);this.didEverRender=!0}renderPart(e,t,n){const i=bn.modifierLabels[this.os];t.ctrlKey&&this.renderKey(e,i.ctrlKey,Boolean(null==n?void 0:n.ctrlKey),i.separator),t.shiftKey&&this.renderKey(e,i.shiftKey,Boolean(null==n?void 0:n.shiftKey),i.separator),t.altKey&&this.renderKey(e,i.altKey,Boolean(null==n?void 0:n.altKey),i.separator),t.metaKey&&this.renderKey(e,i.metaKey,Boolean(null==n?void 0:n.metaKey),i.separator);const r=t.keyLabel;r&&this.renderKey(e,r,Boolean(null==n?void 0:n.keyCode),"")}renderKey(e,t,n,i){G.p(e,ss("span.monaco-keybinding-key"+(n?".highlight":""),void 0,t)),i&&G.p(e,ss("span.monaco-keybinding-key-separator",void 0,i))}renderUnbound(e){G.p(e,ss("span.monaco-keybinding-key",void 0,Object(dn.a)("unbound","Unbound")))}static areSame(e,t){return e===t||!e&&!t||!!e&&!!t&&Object(rn.e)(e.firstPart,t.firstPart)&&Object(rn.e)(e.chordPart,t.chordPart)}}var ls=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s};const cs=G.a;class ds{constructor(e){this.hidden=!1,this._onChecked=new F.a,this.onChecked=this._onChecked.event,Object(rn.a)(this,e)}get checked(){return!!this._checked}set checked(e){e!==this._checked&&(this._checked=e,this._onChecked.fire(e))}dispose(){this._onChecked.dispose()}}class us{get templateId(){return us.ID}renderTemplate(e){const t=Object.create(null);t.toDisposeElement=[],t.toDisposeTemplate=[],t.entry=G.p(e,cs(".quick-input-list-entry"));const n=G.p(t.entry,cs("label.quick-input-list-label"));t.toDisposeTemplate.push(G.n(n,G.c.CLICK,e=>{t.checkbox.offsetParent||e.preventDefault()})),t.checkbox=G.p(n,cs("input.quick-input-list-checkbox")),t.checkbox.type="checkbox",t.toDisposeTemplate.push(G.n(t.checkbox,G.c.CHANGE,e=>{t.element.checked=t.checkbox.checked}));const i=G.p(n,cs(".quick-input-list-rows")),r=G.p(i,cs(".quick-input-list-row")),o=G.p(i,cs(".quick-input-list-row"));t.label=new Qo.a(r,{supportHighlights:!0,supportDescriptionHighlights:!0,supportCodicons:!0});const s=G.p(r,cs(".quick-input-list-entry-keybinding"));t.keybinding=new as(s,ve.a);const a=G.p(o,cs(".quick-input-list-label-meta"));return t.detail=new es.a(a,!0),t.separator=G.p(t.entry,cs(".quick-input-list-separator")),t.actionBar=new Lr.a(t.entry),t.actionBar.domNode.classList.add("quick-input-list-entry-action-bar"),t.toDisposeTemplate.push(t.actionBar),t}renderElement(e,t,n){n.toDisposeElement=Object(_e.f)(n.toDisposeElement),n.element=e,n.checkbox.checked=e.checked,n.toDisposeElement.push(e.onChecked(e=>n.checkbox.checked=e));const{labelHighlights:i,descriptionHighlights:r,detailHighlights:o}=e,s=Object.create(null);s.matches=i||[],s.descriptionTitle=e.saneDescription,s.descriptionMatches=r||[],s.extraClasses=e.item.iconClasses,s.italic=e.item.italic,s.strikethrough=e.item.strikethrough,n.label.setLabel(e.saneLabel,e.saneDescription,s),n.keybinding.set(e.item.keybinding),n.detail.set(e.saneDetail,o),e.separator&&e.separator.label?(n.separator.textContent=e.separator.label,n.separator.style.display=""):n.separator.style.display="none",e.separator?G.e(n.entry,"quick-input-list-separator-border"):G.Q(n.entry,"quick-input-list-separator-border"),n.actionBar.clear();const a=e.item.buttons;a&&a.length?(n.actionBar.push(a.map((t,n)=>{let i=t.iconClass||(t.iconPath?os(t.iconPath):void 0);t.alwaysVisible&&(i=i?`${i} always-visible`:"always-visible");const r=new xr.a(`id-${n}`,"",i,!0,()=>(e.fireButtonTriggered({button:t,item:e.item}),Promise.resolve()));return r.tooltip=t.tooltip||"",r}),{icon:!0,label:!1}),G.e(n.entry,"has-actions")):G.Q(n.entry,"has-actions")}disposeElement(e,t,n){n.toDisposeElement=Object(_e.f)(n.toDisposeElement)}disposeTemplate(e){e.toDisposeElement=Object(_e.f)(e.toDisposeElement),e.toDisposeTemplate=Object(_e.f)(e.toDisposeTemplate)}}us.ID="listelement";class hs{getHeight(e){return e.saneDetail?44:22}getTemplateId(e){return us.ID}}var fs;!function(e){e[e.First=1]="First",e[e.Second=2]="Second",e[e.Last=3]="Last",e[e.Next=4]="Next",e[e.Previous=5]="Previous",e[e.NextPage=6]="NextPage",e[e.PreviousPage=7]="PreviousPage"}(fs||(fs={}));class gs{constructor(e,t,n){this.parent=e,this.inputElements=[],this.elements=[],this.elementsToIndexes=new Map,this.matchOnDescription=!1,this.matchOnDetail=!1,this.matchOnLabel=!0,this.sortByLabel=!0,this._onChangedAllVisibleChecked=new F.a,this.onChangedAllVisibleChecked=this._onChangedAllVisibleChecked.event,this._onChangedCheckedCount=new F.a,this.onChangedCheckedCount=this._onChangedCheckedCount.event,this._onChangedVisibleCount=new F.a,this.onChangedVisibleCount=this._onChangedVisibleCount.event,this._onChangedCheckedElements=new F.a,this.onChangedCheckedElements=this._onChangedCheckedElements.event,this._onButtonTriggered=new F.a,this.onButtonTriggered=this._onButtonTriggered.event,this._onKeyDown=new F.a,this.onKeyDown=this._onKeyDown.event,this._onLeave=new F.a,this.onLeave=this._onLeave.event,this._fireCheckedEvents=!0,this.elementDisposables=[],this.disposables=[],this.id=t,this.container=G.p(this.parent,cs(".quick-input-list"));const i=new hs,r=new ps;this.list=n.createList("QuickInput",this.container,i,[new us],{identityProvider:{getId:e=>e.saneLabel},setRowLineHeight:!1,multipleSelectionSupport:!1,horizontalScrolling:!1,accessibilityProvider:r}),this.list.getHTMLElement().id=t,this.disposables.push(this.list),this.disposables.push(this.list.onKeyDown(e=>{const t=new Gt.a(e);switch(t.keyCode){case 10:this.toggleCheckbox();break;case 31:(ve.f?e.metaKey:e.ctrlKey)&&this.list.setFocus(Object(Ee.s)(this.list.length));break;case 16:const t=this.list.getFocus();1===t.length&&0===t[0]&&this._onLeave.fire();break;case 18:const n=this.list.getFocus();1===n.length&&n[0]===this.list.length-1&&this._onLeave.fire()}this._onKeyDown.fire(t)})),this.disposables.push(this.list.onMouseDown(e=>{2!==e.browserEvent.button&&e.browserEvent.preventDefault()})),this.disposables.push(G.i(this.container,G.c.CLICK,e=>{(e.x||e.y)&&this._onLeave.fire()})),this.disposables.push(this.list.onMouseMiddleClick(e=>{this._onLeave.fire()})),this.disposables.push(this.list.onContextMenu(e=>{"number"==typeof e.index&&(e.browserEvent.preventDefault(),this.list.setSelection([e.index]))})),this.disposables.push(this._onChangedAllVisibleChecked,this._onChangedCheckedCount,this._onChangedVisibleCount,this._onChangedCheckedElements,this._onButtonTriggered,this._onLeave,this._onKeyDown)}get onDidChangeFocus(){return F.b.map(this.list.onDidChangeFocus,e=>e.elements.map(e=>e.item))}get onDidChangeSelection(){return F.b.map(this.list.onDidChangeSelection,e=>({items:e.elements.map(e=>e.item),event:e.browserEvent}))}getAllVisibleChecked(){return this.allVisibleChecked(this.elements,!1)}allVisibleChecked(e,t=!0){for(let n=0,i=e.length;n<i;n++){const i=e[n];if(!i.hidden){if(!i.checked)return!1;t=!0}}return t}getCheckedCount(){let e=0;const t=this.elements;for(let n=0,i=t.length;n<i;n++)t[n].checked&&e++;return e}getVisibleCount(){let e=0;const t=this.elements;for(let n=0,i=t.length;n<i;n++)t[n].hidden||e++;return e}setAllVisibleChecked(e){try{this._fireCheckedEvents=!1,this.elements.forEach(t=>{t.hidden||(t.checked=e)})}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}setElements(e){this.elementDisposables=Object(_e.f)(this.elementDisposables);const t=e=>this.fireButtonTriggered(e);this.inputElements=e,this.elements=e.reduce((n,i,r)=>{var o,s,a;if("separator"!==i.type){const l=r&&e[r-1],c=i.label&&i.label.replace(/\r?\n/g," "),d=i.description&&i.description.replace(/\r?\n/g," "),u=i.detail&&i.detail.replace(/\r?\n/g," "),h=i.ariaLabel||[c,d,u].map(e=>e&&Object(Zo.c)(e).text).filter(e=>!!e).join(", ");n.push(new ds({index:r,item:i,saneLabel:c,saneAriaLabel:h,saneDescription:d,saneDetail:u,labelHighlights:null===(o=i.highlights)||void 0===o?void 0:o.label,descriptionHighlights:null===(s=i.highlights)||void 0===s?void 0:s.description,detailHighlights:null===(a=i.highlights)||void 0===a?void 0:a.detail,checked:!1,separator:l&&"separator"===l.type?l:void 0,fireButtonTriggered:t}))}return n},[]),this.elementDisposables.push(...this.elements),this.elementDisposables.push(...this.elements.map(e=>e.onChecked(()=>this.fireCheckedEvents()))),this.elementsToIndexes=this.elements.reduce((e,t,n)=>(e.set(t.item,n),e),new Map),this.list.splice(0,this.list.length),this.list.splice(0,this.list.length,this.elements),this._onChangedVisibleCount.fire(this.elements.length)}getFocusedElements(){return this.list.getFocusedElements().map(e=>e.item)}setFocusedElements(e){if(this.list.setFocus(e.filter(e=>this.elementsToIndexes.has(e)).map(e=>this.elementsToIndexes.get(e))),e.length>0){const e=this.list.getFocus()[0];"number"==typeof e&&this.list.reveal(e)}}getActiveDescendant(){return this.list.getHTMLElement().getAttribute("aria-activedescendant")}setSelectedElements(e){this.list.setSelection(e.filter(e=>this.elementsToIndexes.has(e)).map(e=>this.elementsToIndexes.get(e)))}getCheckedElements(){return this.elements.filter(e=>e.checked).map(e=>e.item)}setCheckedElements(e){try{this._fireCheckedEvents=!1;const t=new Set;for(const n of e)t.add(n);for(const e of this.elements)e.checked=t.has(e.item)}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}set enabled(e){this.list.getHTMLElement().style.pointerEvents=e?"":"none"}focus(e){if(!this.list.length)return;switch(e===fs.Next&&this.list.getFocus()[0]===this.list.length-1&&(e=fs.First),e===fs.Previous&&0===this.list.getFocus()[0]&&(e=fs.Last),e===fs.Second&&this.list.length<2&&(e=fs.First),e){case fs.First:this.list.focusFirst();break;case fs.Second:this.list.focusNth(1);break;case fs.Last:this.list.focusLast();break;case fs.Next:this.list.focusNext();break;case fs.Previous:this.list.focusPrevious();break;case fs.NextPage:this.list.focusNextPage();break;case fs.PreviousPage:this.list.focusPreviousPage()}const t=this.list.getFocus()[0];"number"==typeof t&&this.list.reveal(t)}clearFocus(){this.list.setFocus([])}domFocus(){this.list.domFocus()}layout(e){this.list.getHTMLElement().style.maxHeight=e?`calc(${44*Math.floor(e/44)}px)`:"",this.list.layout()}filter(e){if(!(this.sortByLabel||this.matchOnLabel||this.matchOnDescription||this.matchOnDetail))return this.list.layout(),!1;(e=e.trim())&&(this.matchOnLabel||this.matchOnDescription||this.matchOnDetail)?this.elements.forEach(t=>{const n=this.matchOnLabel?Object(ye.n)(Object(Zo.b)(e,Object(Zo.c)(t.saneLabel))):void 0,i=this.matchOnDescription?Object(ye.n)(Object(Zo.b)(e,Object(Zo.c)(t.saneDescription||""))):void 0,r=this.matchOnDetail?Object(ye.n)(Object(Zo.b)(e,Object(Zo.c)(t.saneDetail||""))):void 0;n||i||r?(t.labelHighlights=n,t.descriptionHighlights=i,t.detailHighlights=r,t.hidden=!1):(t.labelHighlights=void 0,t.descriptionHighlights=void 0,t.detailHighlights=void 0,t.hidden=!t.item.alwaysShow),t.separator=void 0}):this.elements.forEach(e=>{e.labelHighlights=void 0,e.descriptionHighlights=void 0,e.detailHighlights=void 0,e.hidden=!1;const t=e.index&&this.inputElements[e.index-1];e.separator=t&&"separator"===t.type?t:void 0});const t=this.elements.filter(e=>!e.hidden);if(this.sortByLabel&&e){const n=e.toLowerCase();t.sort((e,t)=>(function(e,t,n){const i=e.labelHighlights||[],r=t.labelHighlights||[];if(i.length&&!r.length)return-1;if(!i.length&&r.length)return 1;if(0===i.length&&0===r.length)return 0;return Xo(e.saneLabel,t.saneLabel,n)})(e,t,n))}return this.elementsToIndexes=t.reduce((e,t,n)=>(e.set(t.item,n),e),new Map),this.list.splice(0,this.list.length,t),this.list.setFocus([]),this.list.layout(),this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedVisibleCount.fire(t.length),!0}toggleCheckbox(){try{this._fireCheckedEvents=!1;const e=this.list.getFocusedElements(),t=this.allVisibleChecked(e);for(const n of e)n.checked=!t}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}display(e){this.container.style.display=e?"":"none"}isDisplayed(){return"none"!==this.container.style.display}dispose(){this.elementDisposables=Object(_e.f)(this.elementDisposables),this.disposables=Object(_e.f)(this.disposables)}fireCheckedEvents(){this._fireCheckedEvents&&(this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedCheckedCount.fire(this.getCheckedCount()),this._onChangedCheckedElements.fire(this.getCheckedElements()))}fireButtonTriggered(e){this._onButtonTriggered.fire(e)}style(e){this.list.style(e)}}ls([ts.a],gs.prototype,"onDidChangeFocus",null),ls([ts.a],gs.prototype,"onDidChangeSelection",null);class ps{getWidgetAriaLabel(){return Object(dn.a)("quickInput","Quick Input")}getAriaLabel(e){return e.saneAriaLabel}getWidgetRole(){return"listbox"}getRole(){return"option"}}var ms=n(207);const _s=G.a;class bs extends _e.a{constructor(e){super(),this.parent=e,this.onKeyDown=e=>G.i(this.inputBox.inputElement,G.c.KEY_DOWN,t=>{e(new Gt.a(t))}),this.onMouseDown=e=>G.i(this.inputBox.inputElement,G.c.MOUSE_DOWN,t=>{e(new Pr.a(t))}),this.onDidChange=e=>this.inputBox.onDidChange(e),this.container=G.p(this.parent,_s(".quick-input-box")),this.inputBox=this._register(new ms.b(this.container,void 0))}get value(){return this.inputBox.value}set value(e){this.inputBox.value=e}select(e=null){this.inputBox.select(e)}isSelectionAtEnd(){return this.inputBox.isSelectionAtEnd()}get placeholder(){return this.inputBox.inputElement.getAttribute("placeholder")||""}set placeholder(e){this.inputBox.setPlaceHolder(e)}get ariaLabel(){return this.inputBox.getAriaLabel()}set ariaLabel(e){this.inputBox.setAriaLabel(e)}get password(){return"password"===this.inputBox.inputElement.type}set password(e){this.inputBox.inputElement.type=e?"password":"text"}setAttribute(e,t){this.inputBox.inputElement.setAttribute(e,t)}removeAttribute(e){this.inputBox.inputElement.removeAttribute(e)}showDecoration(e){e===Zt.a.Ignore?this.inputBox.hideMessage():this.inputBox.showMessage({type:e===Zt.a.Info?1:e===Zt.a.Warning?2:3,content:""})}stylesForType(e){return this.inputBox.stylesForType(e===Zt.a.Info?1:e===Zt.a.Warning?2:3)}setFocus(){this.inputBox.focus()}layout(){this.inputBox.layout()}style(e){this.inputBox.style(e)}}var vs=n(232);n(637);const ys="done",ws="active",Cs="infinite",Ss="discrete",ks="monaco-progress-container",xs="progress-bit",Ls={progressBarBackground:Yi.a.fromHex("#0E70C0")};class Ms extends _e.a{constructor(e,t){super(),this.options=t||Object.create(null),Object(rn.g)(this.options,Ls,!1),this.workedVal=0,this.progressBarBackground=this.options.progressBarBackground,this._register(this.showDelayedScheduler=new me.d(()=>Object(G.Z)(this.element),0)),this.create(e)}create(e){this.element=document.createElement("div"),Object(G.e)(this.element,ks),e.appendChild(this.element),this.bit=document.createElement("div"),Object(G.e)(this.bit,xs),this.element.appendChild(this.bit),this.applyStyles()}off(){this.bit.style.width="inherit",this.bit.style.opacity="1",Object(G.R)(this.element,ws,Cs,Ss),this.workedVal=0,this.totalWork=void 0}stop(){return this.doDone(!1)}doDone(e){return Object(G.e)(this.element,ys),Object(G.I)(this.element,Cs)?(this.bit.style.opacity="0",e?setTimeout(()=>this.off(),200):this.off()):(this.bit.style.width="inherit",e?setTimeout(()=>this.off(),200):this.off()),this}infinite(){return this.bit.style.width="2%",this.bit.style.opacity="1",Object(G.R)(this.element,Ss,ys),Object(G.f)(this.element,ws,Cs),this}getContainer(){return this.element}style(e){this.progressBarBackground=e.progressBarBackground,this.applyStyles()}applyStyles(){if(this.bit){const e=this.progressBarBackground?this.progressBarBackground.toString():"";this.bit.style.backgroundColor=e}}}n(638);var Ds=n(50);const Es={buttonBackground:Yi.a.fromHex("#0E639C"),buttonHoverBackground:Yi.a.fromHex("#006BB3"),buttonForeground:Yi.a.white};class Ts extends _e.a{constructor(e,t){super(),this._onDidClick=this._register(new F.a),this.options=t||Object.create(null),Object(rn.g)(this.options,Es,!1),this.buttonForeground=this.options.buttonForeground,this.buttonBackground=this.options.buttonBackground,this.buttonHoverBackground=this.options.buttonHoverBackground,this.buttonSecondaryForeground=this.options.buttonSecondaryForeground,this.buttonSecondaryBackground=this.options.buttonSecondaryBackground,this.buttonSecondaryHoverBackground=this.options.buttonSecondaryHoverBackground,this.buttonBorder=this.options.buttonBorder,this._element=document.createElement("a"),G.e(this._element,"monaco-button"),this._element.tabIndex=0,this._element.setAttribute("role","button"),e.appendChild(this._element),this._register(Ds.b.addTarget(this._element)),[G.c.CLICK,Ds.a.Tap].forEach(e=>{this._register(G.i(this._element,e,e=>{this.enabled?this._onDidClick.fire(e):G.b.stop(e)}))}),this._register(G.i(this._element,G.c.KEY_DOWN,e=>{const t=new Gt.a(e);let n=!1;this.enabled&&(t.equals(3)||t.equals(10))?(this._onDidClick.fire(e),n=!0):t.equals(9)&&(this._element.blur(),n=!0),n&&G.b.stop(t,!0)})),this._register(G.i(this._element,G.c.MOUSE_OVER,e=>{G.I(this._element,"disabled")||this.setHoverBackground()})),this._register(G.i(this._element,G.c.MOUSE_OUT,e=>{this.applyStyles()})),this.focusTracker=this._register(G.bb(this._element)),this._register(this.focusTracker.onDidFocus(()=>this.setHoverBackground())),this._register(this.focusTracker.onDidBlur(()=>this.applyStyles())),this.applyStyles()}get onDidClick(){return this._onDidClick.event}setHoverBackground(){let e;(e=this.options.secondary?this.buttonSecondaryHoverBackground?this.buttonSecondaryHoverBackground.toString():null:this.buttonHoverBackground?this.buttonHoverBackground.toString():null)&&(this._element.style.backgroundColor=e)}style(e){this.buttonForeground=e.buttonForeground,this.buttonBackground=e.buttonBackground,this.buttonHoverBackground=e.buttonHoverBackground,this.buttonSecondaryForeground=e.buttonSecondaryForeground,this.buttonSecondaryBackground=e.buttonSecondaryBackground,this.buttonSecondaryHoverBackground=e.buttonSecondaryHoverBackground,this.buttonBorder=e.buttonBorder,this.applyStyles()}applyStyles(){if(this._element){let e,t;this.options.secondary?(t=this.buttonSecondaryForeground?this.buttonSecondaryForeground.toString():"",e=this.buttonSecondaryBackground?this.buttonSecondaryBackground.toString():""):(t=this.buttonForeground?this.buttonForeground.toString():"",e=this.buttonBackground?this.buttonBackground.toString():"");const n=this.buttonBorder?this.buttonBorder.toString():"";this._element.style.color=t,this._element.style.backgroundColor=e,this._element.style.borderWidth=n?"1px":"",this._element.style.borderStyle=n?"solid":"",this._element.style.borderColor=n}}get element(){return this._element}set label(e){G.I(this._element,"monaco-text-button")||G.e(this._element,"monaco-text-button"),this.options.supportCodicons?G.U(this._element,...function(e){const t=new Array;let n,i=0,r=0;for(;null!==(n=Ir.g.exec(e));){r=n.index||0,t.push(e.substring(i,r)),i=(n.index||0)+n[0].length;const[,o,s,a,l]=n;t.push(o?`$(${s})`:G.a(`span.codicon.codicon-${a}${l?`.codicon-animation-${l}`:""}`))}return i<e.length&&t.push(e.substring(i)),t}(e)):this._element.textContent=e,"string"==typeof this.options.title?this._element.title=this.options.title:this.options.title&&(this._element.title=e)}set enabled(e){e?(G.Q(this._element,"disabled"),this._element.setAttribute("aria-disabled",String(!1)),this._element.tabIndex=0):(G.e(this._element,"disabled"),this._element.setAttribute("aria-disabled",String(!0)),G.T(this._element))}get enabled(){return!G.I(this._element,"disabled")}}var Os=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};const Ns=G.a,Is={iconClass:Object(Ir.e)("quick-input-back",Ir.a.arrowLeft).classNames,tooltip:Object(dn.a)("quickInput.back","Back"),handle:-1};class As extends _e.a{constructor(e){super(),this.ui=e,this.visible=!1,this._enabled=!0,this._busy=!1,this._ignoreFocusOut=!1,this._buttons=[],this.buttonsUpdated=!1,this.onDidTriggerButtonEmitter=this._register(new F.a),this.onDidHideEmitter=this._register(new F.a),this.onDisposeEmitter=this._register(new F.a),this.visibleDisposables=this._register(new _e.b),this.onDidHide=this.onDidHideEmitter.event}get title(){return this._title}set title(e){this._title=e,this.update()}get description(){return this._description}set description(e){this._description=e,this.update()}get step(){return this._steps}set step(e){this._steps=e,this.update()}get totalSteps(){return this._totalSteps}set totalSteps(e){this._totalSteps=e,this.update()}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this.update()}get contextKey(){return this._contextKey}set contextKey(e){this._contextKey=e,this.update()}get busy(){return this._busy}set busy(e){this._busy=e,this.update()}get ignoreFocusOut(){return this._ignoreFocusOut}set ignoreFocusOut(e){this._ignoreFocusOut=e,this.update()}get buttons(){return this._buttons}set buttons(e){this._buttons=e,this.buttonsUpdated=!0,this.update()}show(){this.visible||(this.visibleDisposables.add(this.ui.onDidTriggerButton(e=>{-1!==this.buttons.indexOf(e)&&this.onDidTriggerButtonEmitter.fire(e)})),this.ui.show(this),this.visible=!0,this.update())}hide(){this.visible&&this.ui.hide()}didHide(){this.visible=!1,this.visibleDisposables.clear(),this.onDidHideEmitter.fire()}update(){if(!this.visible)return;const e=this.getTitle();e&&this.ui.title.textContent!==e?this.ui.title.textContent=e:e||" "===this.ui.title.innerHTML||(this.ui.title.innerText=" ;");const t=this.getDescription();if(this.ui.description.textContent!==t&&(this.ui.description.textContent=t),this.busy&&!this.busyDelay&&(this.busyDelay=new me.e,this.busyDelay.setIfNotSet(()=>{this.visible&&this.ui.progressBar.infinite()},800)),!this.busy&&this.busyDelay&&(this.ui.progressBar.stop(),this.busyDelay.cancel(),this.busyDelay=void 0),this.buttonsUpdated){this.buttonsUpdated=!1,this.ui.leftActionBar.clear();const e=this.buttons.filter(e=>e===Is);this.ui.leftActionBar.push(e.map((e,t)=>{const n=new xr.a(`id-${t}`,"",e.iconClass||os(e.iconPath),!0,()=>Os(this,void 0,void 0,(function*(){this.onDidTriggerButtonEmitter.fire(e)})));return n.tooltip=e.tooltip||"",n}),{icon:!0,label:!1}),this.ui.rightActionBar.clear();const t=this.buttons.filter(e=>e!==Is);this.ui.rightActionBar.push(t.map((e,t)=>{const n=new xr.a(`id-${t}`,"",e.iconClass||os(e.iconPath),!0,()=>Os(this,void 0,void 0,(function*(){this.onDidTriggerButtonEmitter.fire(e)})));return n.tooltip=e.tooltip||"",n}),{icon:!0,label:!1})}this.ui.ignoreFocusOut=this.ignoreFocusOut,this.ui.setEnabled(this.enabled),this.ui.setContextKey(this.contextKey)}getTitle(){return this.title&&this.step?`${this.title} (${this.getSteps()})`:this.title?this.title:this.step?this.getSteps():""}getDescription(){return this.description||""}getSteps(){return this.step&&this.totalSteps?Object(dn.a)("quickInput.steps","{0}/{1}",this.step,this.totalSteps):this.step?String(this.step):""}showMessageDecoration(e){if(this.ui.inputBox.showDecoration(e),e===Zt.a.Error){const t=this.ui.inputBox.stylesForType(e);this.ui.message.style.color=t.foreground?`${t.foreground}`:"",this.ui.message.style.backgroundColor=t.background?`${t.background}`:"",this.ui.message.style.border=t.border?`1px solid ${t.border}`:"",this.ui.message.style.paddingBottom="4px"}else this.ui.message.style.color="",this.ui.message.style.backgroundColor="",this.ui.message.style.border="",this.ui.message.style.paddingBottom=""}dispose(){this.hide(),this.onDisposeEmitter.fire(),super.dispose()}}class Rs extends As{constructor(){super(...arguments),this._value="",this.onDidChangeValueEmitter=this._register(new F.a),this.onDidAcceptEmitter=this._register(new F.a),this.onDidCustomEmitter=this._register(new F.a),this._items=[],this.itemsUpdated=!1,this._canSelectMany=!1,this._canAcceptInBackground=!1,this._matchOnDescription=!1,this._matchOnDetail=!1,this._matchOnLabel=!0,this._sortByLabel=!0,this._autoFocusOnList=!0,this._itemActivation=this.ui.isScreenReaderOptimized()?Go.a.NONE:Go.a.FIRST,this._activeItems=[],this.activeItemsUpdated=!1,this.activeItemsToConfirm=[],this.onDidChangeActiveEmitter=this._register(new F.a),this._selectedItems=[],this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=[],this.onDidChangeSelectionEmitter=this._register(new F.a),this.onDidTriggerItemButtonEmitter=this._register(new F.a),this.valueSelectionUpdated=!0,this._ok="default",this._customButton=!1,this.filterValue=e=>e,this.onDidChangeValue=this.onDidChangeValueEmitter.event,this.onDidAccept=this.onDidAcceptEmitter.event,this.onDidChangeActive=this.onDidChangeActiveEmitter.event,this.onDidChangeSelection=this.onDidChangeSelectionEmitter.event,this.onDidTriggerItemButton=this.onDidTriggerItemButtonEmitter.event}get quickNavigate(){return this._quickNavigate}set quickNavigate(e){this._quickNavigate=e,this.update()}get value(){return this._value}set value(e){this._value=e||"",this.update()}set ariaLabel(e){this._ariaLabel=e,this.update()}get ariaLabel(){return this._ariaLabel}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.update()}get items(){return this._items}set items(e){this._items=e,this.itemsUpdated=!0,this.update()}get canSelectMany(){return this._canSelectMany}set canSelectMany(e){this._canSelectMany=e,this.update()}get canAcceptInBackground(){return this._canAcceptInBackground}set canAcceptInBackground(e){this._canAcceptInBackground=e}get matchOnDescription(){return this._matchOnDescription}set matchOnDescription(e){this._matchOnDescription=e,this.update()}get matchOnDetail(){return this._matchOnDetail}set matchOnDetail(e){this._matchOnDetail=e,this.update()}get matchOnLabel(){return this._matchOnLabel}set matchOnLabel(e){this._matchOnLabel=e,this.update()}get sortByLabel(){return this._sortByLabel}set sortByLabel(e){this._sortByLabel=e,this.update()}get autoFocusOnList(){return this._autoFocusOnList}set autoFocusOnList(e){this._autoFocusOnList=e,this.update()}get itemActivation(){return this._itemActivation}set itemActivation(e){this._itemActivation=e}get activeItems(){return this._activeItems}set activeItems(e){this._activeItems=e,this.activeItemsUpdated=!0,this.update()}get selectedItems(){return this._selectedItems}set selectedItems(e){this._selectedItems=e,this.selectedItemsUpdated=!0,this.update()}get keyMods(){return this._quickNavigate?Go.b:this.ui.keyMods}set valueSelection(e){this._valueSelection=e,this.valueSelectionUpdated=!0,this.update()}get validationMessage(){return this._validationMessage}set validationMessage(e){this._validationMessage=e,this.update()}get customButton(){return this._customButton}set customButton(e){this._customButton=e,this.update()}get customLabel(){return this._customButtonLabel}set customLabel(e){this._customButtonLabel=e,this.update()}get customHover(){return this._customButtonHover}set customHover(e){this._customButtonHover=e,this.update()}get ok(){return this._ok}set ok(e){this._ok=e,this.update()}get hideInput(){return!!this._hideInput}set hideInput(e){this._hideInput=e,this.update()}trySelectFirst(){this.autoFocusOnList&&(this.canSelectMany||this.ui.list.focus(fs.First))}show(){this.visible||(this.visibleDisposables.add(this.ui.inputBox.onDidChange(e=>{if(e===this.value)return;this._value=e,this.ui.list.filter(this.filterValue(this.ui.inputBox.value))&&this.trySelectFirst(),this.onDidChangeValueEmitter.fire(e)})),this.visibleDisposables.add(this.ui.inputBox.onMouseDown(e=>{this.autoFocusOnList||this.ui.list.clearFocus()})),this.visibleDisposables.add((this._hideInput?this.ui.list:this.ui.inputBox).onKeyDown(e=>{switch(e.keyCode){case 18:this.ui.list.focus(fs.Next),this.canSelectMany&&this.ui.list.domFocus(),G.b.stop(e,!0);break;case 16:this.ui.list.getFocusedElements().length?this.ui.list.focus(fs.Previous):this.ui.list.focus(fs.Last),this.canSelectMany&&this.ui.list.domFocus(),G.b.stop(e,!0);break;case 12:this.ui.list.focus(fs.NextPage),this.canSelectMany&&this.ui.list.domFocus(),G.b.stop(e,!0);break;case 11:this.ui.list.focus(fs.PreviousPage),this.canSelectMany&&this.ui.list.domFocus(),G.b.stop(e,!0);break;case 17:if(!this._canAcceptInBackground)return;if(!this.ui.inputBox.isSelectionAtEnd())return;this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.onDidAcceptEmitter.fire({inBackground:!0}));break;case 14:!e.ctrlKey&&!e.metaKey||e.shiftKey||e.altKey||(this.ui.list.focus(fs.First),G.b.stop(e,!0));break;case 13:!e.ctrlKey&&!e.metaKey||e.shiftKey||e.altKey||(this.ui.list.focus(fs.Last),G.b.stop(e,!0))}})),this.visibleDisposables.add(this.ui.onDidAccept(()=>{!this.canSelectMany&&this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems)),this.onDidAcceptEmitter.fire({inBackground:!1})})),this.visibleDisposables.add(this.ui.onDidCustom(()=>{this.onDidCustomEmitter.fire()})),this.visibleDisposables.add(this.ui.list.onDidChangeFocus(e=>{this.activeItemsUpdated||this.activeItemsToConfirm!==this._activeItems&&Object(Ee.g)(e,this._activeItems,(e,t)=>e===t)||(this._activeItems=e,this.onDidChangeActiveEmitter.fire(e))})),this.visibleDisposables.add(this.ui.list.onDidChangeSelection(({items:e,event:t})=>{this.canSelectMany?e.length&&this.ui.list.setSelectedElements([]):this.selectedItemsToConfirm!==this._selectedItems&&Object(Ee.g)(e,this._selectedItems,(e,t)=>e===t)||(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e),e.length&&this.onDidAcceptEmitter.fire({inBackground:t instanceof MouseEvent&&1===t.button}))})),this.visibleDisposables.add(this.ui.list.onChangedCheckedElements(e=>{this.canSelectMany&&(this.selectedItemsToConfirm!==this._selectedItems&&Object(Ee.g)(e,this._selectedItems,(e,t)=>e===t)||(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e)))})),this.visibleDisposables.add(this.ui.list.onButtonTriggered(e=>this.onDidTriggerItemButtonEmitter.fire(e))),this.visibleDisposables.add(this.registerQuickNavigation()),this.valueSelectionUpdated=!0),super.show()}registerQuickNavigation(){return G.i(this.ui.container,G.c.KEY_UP,e=>{if(this.canSelectMany||!this._quickNavigate)return;const t=new Gt.a(e),n=t.keyCode;this._quickNavigate.keybindings.some(e=>{const[i,r]=e.getParts();return!r&&(i.shiftKey&&4===n?!(t.ctrlKey||t.altKey||t.metaKey):!(!i.altKey||6!==n)||(!(!i.ctrlKey||5!==n)||!(!i.metaKey||57!==n)))})&&(this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.onDidAcceptEmitter.fire({inBackground:!1})),this._quickNavigate=void 0)})}update(){if(!this.visible)return;let e=!1,t=!1;this._hideInput&&this._items.length>0&&(this.ui.isScreenReaderOptimized()?t=!0:e=!0),G.ab(this.ui.container,"hidden-input",e);const n={title:!!this.title||!!this.step||!!this.buttons.length,description:!!this.description,checkAll:this.canSelectMany,inputBox:!e,progressBar:!e,visibleCount:!0,count:this.canSelectMany,ok:"default"===this.ok?this.canSelectMany:this.ok,list:!0,message:!!this.validationMessage,customButton:this.customButton};if(this.ui.setVisibilities(n),super.update(),this.ui.inputBox.value!==this.value&&(this.ui.inputBox.value=this.value),this.valueSelectionUpdated&&(this.valueSelectionUpdated=!1,this.ui.inputBox.select(this._valueSelection&&{start:this._valueSelection[0],end:this._valueSelection[1]})),this.ui.inputBox.placeholder!==(this.placeholder||"")&&(this.ui.inputBox.placeholder=this.placeholder||""),t)this.ui.inputBox.ariaLabel="";else{const e=this.ariaLabel||this.placeholder||Rs.DEFAULT_ARIA_LABEL;this.ui.inputBox.ariaLabel!==e&&(this.ui.inputBox.ariaLabel=e)}if(this.ui.list.matchOnDescription=this.matchOnDescription,this.ui.list.matchOnDetail=this.matchOnDetail,this.ui.list.matchOnLabel=this.matchOnLabel,this.ui.list.sortByLabel=this.sortByLabel,this.itemsUpdated)switch(this.itemsUpdated=!1,this.ui.list.setElements(this.items),this.ui.list.filter(this.filterValue(this.ui.inputBox.value)),this.ui.checkAll.checked=this.ui.list.getAllVisibleChecked(),this.ui.visibleCount.setCount(this.ui.list.getVisibleCount()),this.ui.count.setCount(this.ui.list.getCheckedCount()),this._itemActivation){case Go.a.NONE:this._itemActivation=Go.a.FIRST;break;case Go.a.SECOND:this.ui.list.focus(fs.Second),this._itemActivation=Go.a.FIRST;break;case Go.a.LAST:this.ui.list.focus(fs.Last),this._itemActivation=Go.a.FIRST;break;default:this.trySelectFirst()}this.ui.container.classList.contains("show-checkboxes")!==!!this.canSelectMany&&(this.canSelectMany?this.ui.list.clearFocus():this.trySelectFirst()),this.activeItemsUpdated&&(this.activeItemsUpdated=!1,this.activeItemsToConfirm=this._activeItems,this.ui.list.setFocusedElements(this.activeItems),this.activeItemsToConfirm===this._activeItems&&(this.activeItemsToConfirm=null)),this.selectedItemsUpdated&&(this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=this._selectedItems,this.canSelectMany?this.ui.list.setCheckedElements(this.selectedItems):this.ui.list.setSelectedElements(this.selectedItems),this.selectedItemsToConfirm===this._selectedItems&&(this.selectedItemsToConfirm=null)),this.validationMessage?(this.ui.message.textContent=this.validationMessage,this.showMessageDecoration(Zt.a.Error)):(this.ui.message.textContent=null,this.showMessageDecoration(Zt.a.Ignore)),this.ui.customButton.label=this.customLabel||"",this.ui.customButton.element.title=this.customHover||"",this.ui.setComboboxAccessibility(!0),n.inputBox||this.ui.list.domFocus()}}Rs.DEFAULT_ARIA_LABEL=Object(dn.a)("quickInputBox.ariaLabel","Type to narrow down results.");class Ps extends _e.a{constructor(e){super(),this.options=e,this.comboboxAccessibility=!1,this.enabled=!0,this.onDidAcceptEmitter=this._register(new F.a),this.onDidCustomEmitter=this._register(new F.a),this.onDidTriggerButtonEmitter=this._register(new F.a),this.keyMods={ctrlCmd:!1,alt:!1},this.controller=null,this.onShowEmitter=this._register(new F.a),this.onShow=this.onShowEmitter.event,this.onHideEmitter=this._register(new F.a),this.onHide=this.onHideEmitter.event,this.idPrefix=e.idPrefix,this.parentElement=e.container,this.styles=e.styles,this.registerKeyModsListeners()}registerKeyModsListeners(){const e=e=>{this.keyMods.ctrlCmd=e.ctrlKey||e.metaKey,this.keyMods.alt=e.altKey};this._register(G.i(window,G.c.KEY_DOWN,e,!0)),this._register(G.i(window,G.c.KEY_UP,e,!0)),this._register(G.i(window,G.c.MOUSE_DOWN,e,!0))}getUI(){if(this.ui)return this.ui;const e=G.p(this.parentElement,Ns(".quick-input-widget.show-file-icons"));e.tabIndex=-1,e.style.display="none";const t=G.v(e),n=G.p(e,Ns(".quick-input-titlebar")),i=this._register(new Lr.a(n));i.domNode.classList.add("quick-input-left-action-bar");const r=G.p(n,Ns(".quick-input-title")),o=this._register(new Lr.a(n));o.domNode.classList.add("quick-input-right-action-bar");const s=G.p(e,Ns(".quick-input-description")),a=G.p(e,Ns(".quick-input-header")),l=G.p(a,Ns("input.quick-input-check-all"));l.type="checkbox",this._register(G.n(l,G.c.CHANGE,e=>{const t=l.checked;C.setAllVisibleChecked(t)})),this._register(G.i(l,G.c.CLICK,e=>{(e.x||e.y)&&u.setFocus()}));const c=G.p(a,Ns(".quick-input-and-message")),d=G.p(c,Ns(".quick-input-filter")),u=this._register(new bs(d));u.setAttribute("aria-describedby",`${this.idPrefix}message`);const h=G.p(d,Ns(".quick-input-visible-count"));h.setAttribute("aria-live","polite"),h.setAttribute("aria-atomic","true");const f=new vs.a(h,{countFormat:Object(dn.a)({key:"quickInput.visibleCount",comment:["This tells the user how many items are shown in a list of items to select from. The items can be anything. Currently not visible, but read by screen readers."]},"{0} Results")}),g=G.p(d,Ns(".quick-input-count"));g.setAttribute("aria-live","polite");const p=new vs.a(g,{countFormat:Object(dn.a)({key:"quickInput.countSelected",comment:["This tells the user how many items are selected in a list of items to select from. The items can be anything."]},"{0} Selected")}),m=G.p(a,Ns(".quick-input-action")),_=new Ts(m);_.label=Object(dn.a)("ok","OK"),this._register(_.onDidClick(e=>{this.onDidAcceptEmitter.fire()}));const b=G.p(a,Ns(".quick-input-action")),v=new Ts(b);v.label=Object(dn.a)("custom","Custom"),this._register(v.onDidClick(e=>{this.onDidCustomEmitter.fire()}));const y=G.p(c,Ns(`#${this.idPrefix}message.quick-input-message`)),w=new Ms(e);G.e(w.getContainer(),"quick-input-progress");const C=this._register(new gs(e,this.idPrefix+"list",this.options));this._register(C.onChangedAllVisibleChecked(e=>{l.checked=e})),this._register(C.onChangedVisibleCount(e=>{f.setCount(e)})),this._register(C.onChangedCheckedCount(e=>{p.setCount(e)})),this._register(C.onLeave(()=>{setTimeout(()=>{u.setFocus(),this.controller instanceof Rs&&this.controller.canSelectMany&&C.clearFocus()},0)})),this._register(C.onDidChangeFocus(()=>{this.comboboxAccessibility&&this.getUI().inputBox.setAttribute("aria-activedescendant",this.getUI().list.getActiveDescendant()||"")}));const S=G.bb(e);return this._register(S),this._register(G.i(e,G.c.FOCUS,e=>{this.previousFocusElement=e.relatedTarget instanceof HTMLElement?e.relatedTarget:void 0},!0)),this._register(S.onDidBlur(()=>{this.getUI().ignoreFocusOut||this.options.ignoreFocusOut()||this.hide(),this.previousFocusElement=void 0})),this._register(G.i(e,G.c.FOCUS,e=>{u.setFocus()})),this._register(G.i(e,G.c.KEY_DOWN,t=>{const n=new Gt.a(t);switch(n.keyCode){case 3:G.b.stop(t,!0),this.onDidAcceptEmitter.fire();break;case 9:G.b.stop(t,!0),this.hide();break;case 2:if(!n.altKey&&!n.ctrlKey&&!n.metaKey){const i=[".action-label.codicon"];e.classList.contains("show-checkboxes")?i.push("input"):i.push("input[type=text]"),this.getUI().list.isDisplayed()&&i.push(".monaco-list");const r=e.querySelectorAll(i.join(", "));n.shiftKey&&n.target===r[0]?(G.b.stop(t,!0),r[r.length-1].focus()):n.shiftKey||n.target!==r[r.length-1]||(G.b.stop(t,!0),r[0].focus())}}})),this.ui={container:e,styleSheet:t,leftActionBar:i,titleBar:n,title:r,description:s,rightActionBar:o,checkAll:l,filterContainer:d,inputBox:u,visibleCountContainer:h,visibleCount:f,countContainer:g,count:p,okContainer:m,ok:_,message:y,customButtonContainer:b,customButton:v,progressBar:w,list:C,onDidAccept:this.onDidAcceptEmitter.event,onDidCustom:this.onDidCustomEmitter.event,onDidTriggerButton:this.onDidTriggerButtonEmitter.event,ignoreFocusOut:!1,keyMods:this.keyMods,isScreenReaderOptimized:()=>this.options.isScreenReaderOptimized(),show:e=>this.show(e),hide:()=>this.hide(),setVisibilities:e=>this.setVisibilities(e),setComboboxAccessibility:e=>this.setComboboxAccessibility(e),setEnabled:e=>this.setEnabled(e),setContextKey:e=>this.options.setContextKey(e)},this.updateStyles(),this.ui}pick(e,t={},n=j.a.None){return new Promise((i,r)=>{let o=e=>{o=i,t.onKeyMods&&t.onKeyMods(s.keyMods),i(e)};if(n.isCancellationRequested)return void o(void 0);const s=this.createQuickPick();let a;const l=[s,s.onDidAccept(()=>{if(s.canSelectMany)o(s.selectedItems.slice()),s.hide();else{const e=s.activeItems[0];e&&(o(e),s.hide())}}),s.onDidChangeActive(e=>{const n=e[0];n&&t.onDidFocus&&t.onDidFocus(n)}),s.onDidChangeSelection(e=>{if(!s.canSelectMany){const t=e[0];t&&(o(t),s.hide())}}),s.onDidTriggerItemButton(e=>t.onDidTriggerItemButton&&t.onDidTriggerItemButton(Object.assign(Object.assign({},e),{removeItem:()=>{const t=s.items.indexOf(e.item);if(-1!==t){const e=s.items.slice();e.splice(t,1),s.items=e}}}))),s.onDidChangeValue(e=>{!a||e||1===s.activeItems.length&&s.activeItems[0]===a||(s.activeItems=[a])}),n.onCancellationRequested(()=>{s.hide()}),s.onDidHide(()=>{Object(_e.f)(l),o(void 0)})];s.canSelectMany=!!t.canPickMany,s.placeholder=t.placeHolder,s.ignoreFocusOut=!!t.ignoreFocusLost,s.matchOnDescription=!!t.matchOnDescription,s.matchOnDetail=!!t.matchOnDetail,s.matchOnLabel=void 0===t.matchOnLabel||t.matchOnLabel,s.autoFocusOnList=void 0===t.autoFocusOnList||t.autoFocusOnList,s.quickNavigate=t.quickNavigate,s.contextKey=t.contextKey,s.busy=!0,Promise.all([e,t.activeItem]).then(([e,t])=>{a=t,s.busy=!1,s.items=e,s.canSelectMany&&(s.selectedItems=e.filter(e=>"separator"!==e.type&&e.picked)),a&&(s.activeItems=[a])}),s.show(),Promise.resolve(e).then(void 0,e=>{r(e),s.hide()})})}createQuickPick(){const e=this.getUI();return new Rs(e)}show(e){const t=this.getUI();this.onShowEmitter.fire();const n=this.controller;this.controller=e,n&&n.didHide(),this.setEnabled(!0),t.leftActionBar.clear(),t.title.textContent="",t.description.textContent="",t.rightActionBar.clear(),t.checkAll.checked=!1,t.inputBox.placeholder="",t.inputBox.password=!1,t.inputBox.showDecoration(Zt.a.Ignore),t.visibleCount.setCount(0),t.count.setCount(0),t.message.textContent="",t.progressBar.stop(),t.list.setElements([]),t.list.matchOnDescription=!1,t.list.matchOnDetail=!1,t.list.matchOnLabel=!0,t.list.sortByLabel=!0,t.ignoreFocusOut=!1,this.setComboboxAccessibility(!1),t.inputBox.ariaLabel="";const i=this.options.backKeybindingLabel();Is.tooltip=i?Object(dn.a)("quickInput.backWithKeybinding","Back ({0})",i):Object(dn.a)("quickInput.back","Back"),t.container.style.display="",this.updateLayout(),t.inputBox.setFocus()}setVisibilities(e){const t=this.getUI();t.title.style.display=e.title?"":"none",t.description.style.display=e.description?"":"none",t.checkAll.style.display=e.checkAll?"":"none",t.filterContainer.style.display=e.inputBox?"":"none",t.visibleCountContainer.style.display=e.visibleCount?"":"none",t.countContainer.style.display=e.count?"":"none",t.okContainer.style.display=e.ok?"":"none",t.customButtonContainer.style.display=e.customButton?"":"none",t.message.style.display=e.message?"":"none",t.progressBar.getContainer().style.display=e.progressBar?"":"none",t.list.display(!!e.list),t.container.classList[e.checkAll?"add":"remove"]("show-checkboxes"),this.updateLayout()}setComboboxAccessibility(e){if(e!==this.comboboxAccessibility){const t=this.getUI();this.comboboxAccessibility=e,this.comboboxAccessibility?(t.inputBox.setAttribute("role","combobox"),t.inputBox.setAttribute("aria-haspopup","true"),t.inputBox.setAttribute("aria-autocomplete","list"),t.inputBox.setAttribute("aria-activedescendant",t.list.getActiveDescendant()||"")):(t.inputBox.removeAttribute("role"),t.inputBox.removeAttribute("aria-haspopup"),t.inputBox.removeAttribute("aria-autocomplete"),t.inputBox.removeAttribute("aria-activedescendant"))}}setEnabled(e){if(e!==this.enabled){this.enabled=e;for(const t of this.getUI().leftActionBar.viewItems)t.getAction().enabled=e;for(const t of this.getUI().rightActionBar.viewItems)t.getAction().enabled=e;this.getUI().checkAll.disabled=!e,this.getUI().ok.enabled=e,this.getUI().list.enabled=e}}hide(){var e;const t=this.controller;if(t){const n=!(null===(e=this.ui)||void 0===e?void 0:e.container.contains(document.activeElement));this.controller=null,this.onHideEmitter.fire(),this.getUI().container.style.display="none",n||(this.previousFocusElement&&this.previousFocusElement.offsetParent?(this.previousFocusElement.focus(),this.previousFocusElement=void 0):this.options.returnFocus()),t.didHide()}}layout(e,t){this.dimension=e,this.titleBarOffset=t,this.updateLayout()}updateLayout(){if(this.ui){this.ui.container.style.top=`${this.titleBarOffset}px`;const e=this.ui.container.style,t=Math.min(.62*this.dimension.width,Ps.MAX_WIDTH);e.width=t+"px",e.marginLeft="-"+t/2+"px",this.ui.inputBox.layout(),this.ui.list.layout(this.dimension&&.4*this.dimension.height)}}applyStyles(e){this.styles=e,this.updateStyles()}updateStyles(){if(this.ui){const{quickInputTitleBackground:e,quickInputBackground:t,quickInputForeground:n,contrastBorder:i,widgetShadow:r}=this.styles.widget;this.ui.titleBar.style.backgroundColor=e?e.toString():"",this.ui.container.style.backgroundColor=t?t.toString():"",this.ui.container.style.color=n?n.toString():"",this.ui.container.style.border=i?`1px solid ${i}`:"",this.ui.container.style.boxShadow=r?`0 5px 8px ${r}`:"",this.ui.inputBox.style(this.styles.inputBox),this.ui.count.style(this.styles.countBadge),this.ui.ok.style(this.styles.button),this.ui.customButton.style(this.styles.button),this.ui.progressBar.style(this.styles.progressBar),this.ui.list.style(this.styles.list);const o=[];this.styles.list.listInactiveFocusForeground&&(o.push(`.monaco-list .monaco-list-row.focused { color: ${this.styles.list.listInactiveFocusForeground}; }`),o.push(`.monaco-list .monaco-list-row.focused:hover { color: ${this.styles.list.listInactiveFocusForeground}; }`)),this.styles.list.pickerGroupBorder&&o.push(`.quick-input-list .quick-input-list-entry { border-top-color: ${this.styles.list.pickerGroupBorder}; }`),this.styles.list.pickerGroupForeground&&o.push(`.quick-input-list .quick-input-list-separator { color: ${this.styles.list.pickerGroupForeground}; }`);const s=o.join("\n");s!==this.ui.styleSheet.innerHTML&&(this.ui.styleSheet.innerHTML=s)}}}Ps.MAX_WIDTH=600;var js=n(97),Fs=n(127),Bs=n(126),Ws=function(e,t){return function(n,i){t(n,i,e)}};let Hs=class extends _e.a{constructor(e,t){super(),this.quickInputService=e,this.instantiationService=t,this.registry=Li.a.as(Fs.b.Quickaccess),this.mapProviderToDescriptor=new Map,this.lastAcceptedPickerValues=new Map,this.visibleQuickAccess=void 0}show(e="",t){var n;const[i,r]=this.getOrInstantiateProvider(e),o=this.visibleQuickAccess,s=null==o?void 0:o.descriptor;if(o&&r&&s===r)return e===r.prefix||(null==t?void 0:t.preserveValue)||(o.picker.value=e),void this.adjustValueSelection(o.picker,r,t);if(r&&!(null==t?void 0:t.preserveValue)){let t=void 0;if(o&&s&&s!==r){const e=o.value.substr(s.prefix.length);e&&(t=`${r.prefix}${e}`)}if(!t){const e=null==i?void 0:i.defaultFilterValue;e===Fs.a.LAST?t=this.lastAcceptedPickerValues.get(r):"string"==typeof e&&(t=`${r.prefix}${e}`)}"string"==typeof t&&(e=t)}const a=new _e.b,l=a.add(this.quickInputService.createQuickPick());l.value=e,this.adjustValueSelection(l,r,t),l.placeholder=null==r?void 0:r.placeholder,l.quickNavigate=null==t?void 0:t.quickNavigateConfiguration,l.hideInput=!!l.quickNavigate&&!o,("number"==typeof(null==t?void 0:t.itemActivation)||(null==t?void 0:t.quickNavigateConfiguration))&&(l.itemActivation=null!==(n=null==t?void 0:t.itemActivation)&&void 0!==n?n:js.b.SECOND),l.contextKey=null==r?void 0:r.contextKey,l.filterValue=e=>e.substring(r?r.prefix.length:0),(null==r?void 0:r.placeholder)&&(l.ariaLabel=null==r?void 0:r.placeholder);const c=this.registerPickerListeners(l,i,r,e,a);i&&a.add(i.provide(l,c)),l.show()}adjustValueSelection(e,t,n){var i;let r;r=(null==n?void 0:n.preserveValue)?[e.value.length,e.value.length]:[null!==(i=null==t?void 0:t.prefix.length)&&void 0!==i?i:0,e.value.length],e.valueSelection=r}registerPickerListeners(e,t,n,i,r){const o=this.visibleQuickAccess={picker:e,descriptor:n,value:i};r.add(Object(_e.h)(()=>{o===this.visibleQuickAccess&&(this.visibleQuickAccess=void 0)})),r.add(e.onDidChangeValue(e=>{const[n]=this.getOrInstantiateProvider(e);n!==t?this.show(e,{preserveValue:!0}):o.value=e})),n&&r.add(e.onDidAccept(()=>{this.lastAcceptedPickerValues.set(n,e.value)}));const s=r.add(new j.b);return Object(Bs.a)(e.onDidHide)(()=>{0===e.selectedItems.length&&s.cancel(),r.dispose()}),s.token}getOrInstantiateProvider(e){const t=this.registry.getQuickAccessProvider(e);if(!t)return[void 0,void 0];let n=this.mapProviderToDescriptor.get(t);return n||(n=this.instantiationService.createInstance(t.ctor),this.mapProviderToDescriptor.set(t,n)),[n,t]}};Hs=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}([Ws(0,js.a),Ws(1,ei.a)],Hs);var Ys=function(e,t){return function(n,i){t(n,i,e)}};let Vs=class extends ni.d{constructor(e,t,n,i,r){super(n),this.instantiationService=e,this.contextKeyService=t,this.accessibilityService=i,this.layoutService=r,this.contexts=new Map}get controller(){return this._controller||(this._controller=this._register(this.createController())),this._controller}get quickAccess(){return this._quickAccess||(this._quickAccess=this._register(this.instantiationService.createInstance(Hs))),this._quickAccess}createController(e=this.layoutService,t){var n,i;const r={idPrefix:"quickInput_",container:e.container,ignoreFocusOut:()=>!1,isScreenReaderOptimized:()=>this.accessibilityService.isScreenReaderOptimized(),backKeybindingLabel:()=>void 0,setContextKey:e=>this.setContextKey(e),returnFocus:()=>e.focus(),createList:(e,t,n,i,r)=>this.instantiationService.createInstance(ho.d,e,t,n,i,r),styles:this.computeStyles()},o=this._register(new Ps(Object.assign(Object.assign({},r),t)));return o.layout(e.dimension,null!==(i=null===(n=e.offset)||void 0===n?void 0:n.top)&&void 0!==i?i:0),this._register(e.onLayout(t=>{var n,i;return o.layout(t,null!==(i=null===(n=e.offset)||void 0===n?void 0:n.top)&&void 0!==i?i:0)})),this._register(o.onShow(()=>this.resetContextKeys())),this._register(o.onHide(()=>this.resetContextKeys())),o}setContextKey(e){let t;e&&((t=this.contexts.get(e))||(t=new Xn.c(e,!1).bindTo(this.contextKeyService),this.contexts.set(e,t))),t&&t.get()||(this.resetContextKeys(),t&&t.set(!0))}resetContextKeys(){this.contexts.forEach(e=>{e.get()&&e.reset()})}pick(e,t={},n=j.a.None){return this.controller.pick(e,t,n)}createQuickPick(){return this.controller.createQuickPick()}updateStyles(){this.controller.applyStyles(this.computeStyles())}computeStyles(){return{widget:Object.assign({},Object(qr.d)(this.theme,{quickInputBackground:Ji.dc,quickInputForeground:Ji.ec,quickInputTitleBackground:Ji.fc,contrastBorder:Ji.h,widgetShadow:Ji.uc})),inputBox:Object(qr.d)(this.theme,{inputForeground:Ji.hb,inputBackground:Ji.fb,inputBorder:Ji.gb,inputValidationInfoBackground:Ji.lb,inputValidationInfoForeground:Ji.nb,inputValidationInfoBorder:Ji.mb,inputValidationWarningBackground:Ji.ob,inputValidationWarningForeground:Ji.qb,inputValidationWarningBorder:Ji.pb,inputValidationErrorBackground:Ji.ib,inputValidationErrorForeground:Ji.kb,inputValidationErrorBorder:Ji.jb}),countBadge:Object(qr.d)(this.theme,{badgeBackground:Ji.c,badgeForeground:Ji.d,badgeBorder:Ji.h}),button:Object(qr.d)(this.theme,{buttonForeground:Ji.f,buttonBackground:Ji.e,buttonHoverBackground:Ji.g,buttonBorder:Ji.h}),progressBar:Object(qr.d)(this.theme,{progressBarBackground:Ji.cc}),list:Object(qr.d)(this.theme,{listBackground:Ji.dc,listInactiveFocusForeground:Ji.yb,listInactiveFocusBackground:Ji.xb,listFocusOutline:Ji.b,listInactiveFocusOutline:Ji.b,pickerGroupBorder:Ji.Xb,pickerGroupForeground:Ji.Yb})}}};Vs=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}([Ys(0,ei.a),Ys(1,Xn.b),Ys(2,ni.c),Ys(3,ii.b),Ys(4,Qr)],Vs);var zs=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Us=function(e,t){return function(n,i){t(n,i,e)}};let $s=class extends Vs{constructor(e,t,n,i,r,o){super(t,n,i,r,o),this.host=void 0;const s=Ks.get(e);this.host={_serviceBrand:void 0,get container(){return s.widget.getDomNode()},get dimension(){return e.getLayoutInfo()},get onLayout(){return e.onDidLayoutChange},focus:()=>e.focus()}}createController(){return super.createController(this.host)}};$s=zs([Us(1,ei.a),Us(2,Xn.b),Us(3,ni.c),Us(4,ii.b),Us(5,Qr)],$s);let qs=class{constructor(e,t){this.instantiationService=e,this.codeEditorService=t,this.mapEditorToService=new Map}get activeService(){const e=this.codeEditorService.getFocusedCodeEditor();if(!e)throw new Error("Quick input service needs a focused editor to work.");let t=this.mapEditorToService.get(e);if(!t){const n=t=this.instantiationService.createInstance($s,e);this.mapEditorToService.set(e,t),Object(Bs.a)(e.onDidDispose)(()=>{n.dispose(),this.mapEditorToService.delete(e)})}return t}get quickAccess(){return this.activeService.quickAccess}pick(e,t={},n=j.a.None){return this.activeService.pick(e,t,n)}createQuickPick(){return this.activeService.createQuickPick()}};qs=zs([Us(0,ei.a),Us(1,K.a)],qs);class Ks{constructor(e){this.editor=e,this.widget=new Gs(this.editor)}static get(e){return e.getContribution(Ks.ID)}dispose(){this.widget.dispose()}}Ks.ID="editor.controller.quickInput";class Gs{constructor(e){this.codeEditor=e,this.domNode=document.createElement("div"),this.codeEditor.addOverlayWidget(this)}getId(){return Gs.ID}getDomNode(){return this.domNode}getPosition(){return{preference:2}}dispose(){this.codeEditor.removeOverlayWidget(this)}}Gs.ID="editor.contrib.quickInputWidget",Object(Ko.m)(Ks.ID,Ks);var Zs,Js=n(186);!function(e){const t=new oo.a;class n{constructor(e,t){this._serviceId=e,this._factory=t,this._value=null}get id(){return this._serviceId}get(e){if(!this._value){if(e&&(this._value=e[this._serviceId.toString()]),this._value||(this._value=this._factory(e)),!this._value)throw new Error("Service "+this._serviceId+" is missing!");t.set(this._serviceId,this._value)}return this._value}}e.LazyStaticService=n;let i=[];function r(e,t){let r=new n(e,t);return i.push(r),r}e.init=function(e){let t=new oo.a;for(const[e,n]of Object(Do.a)())t.set(e,n);for(let n in e)e.hasOwnProperty(n)&&t.set(Object(ei.c)(n),e[n]);i.forEach(n=>t.set(n.id,n.get(e)));let n=new lo(t,!0);return t.set(ei.a,n),[t,n]},e.instantiationService=r(ei.a,()=>new lo(t,!0));const o=new jn;e.configurationService=r(tn.a,()=>o),e.resourceConfigurationService=r(ct.a,()=>new Fn(o)),e.resourcePropertiesService=r(ct.b,()=>new Bn(o)),e.contextService=r(kn.a,()=>new Hn),e.labelService=r(uo.a,()=>new zn),e.telemetryService=r(Zr.a,()=>new Wn),e.dialogService=r(to.a,()=>new Nn),e.notificationService=r(Sn.a,()=>new In),e.markerService=r(fo.b,()=>new _o),e.modeService=r(fi.a,e=>new Ti),e.standaloneThemeService=r(Zn.a,()=>new ur),e.logService=r(dt.b,()=>new dt.a),e.undoRedoService=r(Io.a,t=>new $o(e.dialogService.get(t),e.notificationService.get(t))),e.modelService=r(lt.a,t=>new Oi.a(e.configurationService.get(t),e.resourcePropertiesService.get(t),e.standaloneThemeService.get(t),e.logService.get(t),e.undoRedoService.get(t))),e.markerDecorationsService=r(So.a,t=>new Mo(e.modelService.get(t),e.markerService.get(t))),e.codeEditorService=r(K.a,t=>new Hi(e.standaloneThemeService.get(t))),e.editorProgressService=r(oi.a,()=>new On),e.storageService=r(bo.a,()=>new bo.b),e.storageSyncService=r(Js.a,()=>new Js.b),e.editorWorkerService=r(ge.a,t=>new _t(e.modelService.get(t),e.resourceConfigurationService.get(t),e.logService.get(t)))}(Zs||(Zs={}));class Xs extends _e.a{constructor(e,t){super();const[n,i]=Zs.init(t);this._serviceCollection=n,this._instantiationService=i;const r=this.get(tn.a),o=this.get(Sn.a),s=this.get(Zr.a),a=this.get(ni.c),l=this.get(dt.b);let c=(e,n)=>{let i=null;return t&&(i=t[e.toString()]),i||(i=n()),this._serviceCollection.set(e,i),i},d=c(Xn.b,()=>this._register(new Sr(r)));c(ii.b,()=>new To(d,r)),c(ho.a,()=>new ho.b(a));let u=c(ee.b,()=>new An(this._instantiationService)),h=c(ti.a,()=>this._register(new Rn(d,u,s,o,l,e))),f=c(Qr,()=>new Un(Zs.codeEditorService.get(K.a),e));c(js.a,()=>new qs(i,Zs.codeEditorService.get(K.a)));let g=c(Qn.b,()=>this._register(new eo(f)));c(ri.a,()=>new No),c(Qn.a,()=>{const e=new Xr(s,o,g,h,a);return e.configure({blockMouse:!1}),this._register(e)}),c(Jn.a,()=>new wo(u)),c(Xt.a,()=>new Vn(Zs.modelService.get(lt.a)))}get(e){let t=this._serviceCollection.get(e);if(!t)throw new Error("Missing service "+e);return t}set(e,t){this._serviceCollection.set(e,t)}has(e){return this._serviceCollection.has(e)}}var Qs=n(77);function ea(e,t,n){let i=new Xs(e,t),r=null;i.has(pe.a)||(r=new Tn(Zs.modelService.get()),i.set(pe.a,r)),i.has(te.a)||i.set(te.a,new ae(i.get(K.a),i.get(ee.b)));let o=n(i);return r&&r.setEditor(o),o}function ta(e,t,n){return ea(e,n||{},n=>new ui(e,t,n,n.get(ei.a),n.get(K.a),n.get(ee.b),n.get(Xn.b),n.get(ti.a),n.get(Qn.b),n.get(Zn.a),n.get(Sn.a),n.get(tn.a),n.get(ii.b)))}function na(e){return Zs.codeEditorService.get().onCodeEditorAdd(t=>{e(t)})}function ia(e,t,n){return ea(e,n||{},n=>new hi(e,t,n,n.get(ei.a),n.get(Xn.b),n.get(ti.a),n.get(Qn.b),n.get(ge.a),n.get(K.a),n.get(Zn.a),n.get(Sn.a),n.get(tn.a),n.get(Qn.a),n.get(oi.a),n.get(ri.a)))}function ra(e,t){return new le.a(e,t)}function oa(e,t,n){return Zs.modelService.get().createModel(e,t,n)}function sa(e,t,n){if(e=e||"",!t){let t=e.indexOf("\n"),i=e;return-1!==t&&(i=e.substring(0,t)),oa(e,Zs.modeService.get().createByFilepathOrFirstLine(n||null,i),n)}return oa(e,Zs.modeService.get().create(t),n)}function aa(e,t){Zs.modelService.get().setMode(e,Zs.modeService.get().create(t))}function la(e,t,n){e&&Zs.markerService.get().changeOne(t,e.uri,n)}function ca(e){return Zs.markerService.get().read(e)}function da(e){return Zs.modelService.get().getModel(e)}function ua(){return Zs.modelService.get().getModels()}function ha(e){return Zs.modelService.get().onModelAdded(e)}function fa(e){return Zs.modelService.get().onModelRemoved(e)}function ga(e){return Zs.modelService.get().onModelModeChanged(t=>{e({model:t.model,oldLanguage:t.oldModeId})})}function pa(e){return function(e,t){return new kt(e,t)}(Zs.modelService.get(),e)}function ma(e,t){const n=Zs.standaloneThemeService.get();return n.registerEditorContainer(e),$t.colorizeElement(n,Zs.modeService.get(),e,t)}function _a(e,t,n){return Zs.standaloneThemeService.get().registerEditorContainer(document.body),$t.colorize(Zs.modeService.get(),e,t,n)}function ba(e,t,n=4){return Zs.standaloneThemeService.get().registerEditorContainer(document.body),$t.colorizeModelLine(e,t,n)}function va(e,t){Zs.modeService.get().triggerMode(t);let n=function(e){let t=he.C.get(e);return t||{getInitialState:()=>fe.c,tokenize:(t,n,i)=>Object(fe.d)(e,t,n,i)}}(t),i=e.split(/\r\n|\r|\n/),r=[],o=n.getInitialState();for(let e=0,t=i.length;e<t;e++){let t=i[e],s=n.tokenize(t,o,0);r[e]=s.tokens,o=s.endState}return r}function ya(e,t){Zs.standaloneThemeService.get().defineTheme(e,t)}function wa(e){Zs.standaloneThemeService.get().setTheme(e)}function Ca(){Object(Qs.b)()}function Sa(e,t){return"boolean"==typeof e?e:t}function ka(e,t){return"string"==typeof e?e:t}function xa(e,t=!1){t&&(e=e.map((function(e){return e.toLowerCase()})));const n=function(e){const t={};for(const n of e)t[n]=!0;return t}(e);return t?function(e){return void 0!==n[e.toLowerCase()]&&n.hasOwnProperty(e.toLowerCase())}:function(e){return void 0!==n[e]&&n.hasOwnProperty(e)}}function La(e,t){let n=0;for(;t.indexOf("@")>=0&&n<5;)n++,t=t.replace(/@(\w+)/g,(function(n,i){let r="";if("string"==typeof e[i])r=e[i];else{if(!(e[i]&&e[i]instanceof RegExp))throw void 0===e[i]?At(e,"language definition does not contain attribute '"+i+"', used at: "+t):At(e,"attribute reference '"+i+"' must be a string, used at: "+t);r=e[i].source}return Ot(r)?"":"(?:"+r+")"}));let i=(e.ignoreCase?"i":"")+(e.unicode?"u":"");return new RegExp(t,i)}function Ma(e,t,n,i){let r=-1,o=n,s=n.match(/^\$(([sS]?)(\d\d?)|#)(.*)$/);s&&(s[3]&&(r=parseInt(s[3]),s[2]&&(r+=100)),o=s[4]);let a,l="~",c=o;if(o&&0!==o.length?/^\w*$/.test(c)?l="==":(s=o.match(/^(@|!@|~|!~|==|!=)(.*)$/))&&(l=s[1],c=s[2]):(l="!=",c=""),"~"!==l&&"!~"!==l||!/^(\w|\|)*$/.test(c))if("@"===l||"!@"===l){let n=e[c];if(!n)throw At(e,"the @ match target '"+c+"' is not defined, in rule: "+t);if(!function(e,t){if(!t)return!1;if(!Array.isArray(t))return!1;for(const n of t)if(!e(n))return!1;return!0}((function(e){return"string"==typeof e}),n))throw At(e,"the @ match target '"+c+"' must be an array of strings, in rule: "+t);let i=xa(n,e.ignoreCase);a=function(e){return"@"===l?i(e):!i(e)}}else if("~"===l||"!~"===l)if(c.indexOf("$")<0){let t=La(e,"^"+c+"$");a=function(e){return"~"===l?t.test(e):!t.test(e)}}else a=function(t,n,i,r){return La(e,"^"+Rt(e,c,n,i,r)+"$").test(t)};else if(c.indexOf("$")<0){let t=Nt(e,c);a=function(e){return"=="===l?e===t:e!==t}}else{let t=Nt(e,c);a=function(n,i,r,o,s){let a=Rt(e,t,i,r,o);return"=="===l?n===a:n!==a}}else{let t=xa(c.split("|"),e.ignoreCase);a=function(e){return"~"===l?t(e):!t(e)}}return-1===r?{name:n,value:i,test:function(e,t,n,i){return a(e,e,t,n,i)}}:{name:n,value:i,test:function(e,t,n,i){let o=function(e,t,n,i){if(i<0)return e;if(i<t.length)return t[i];if(i>=100){i-=100;let e=n.split(".");if(e.unshift(n),i<e.length)return e[i]}return null}(e,t,n,r);return a(o||"",e,t,n,i)}}}class Da{constructor(e){this.regex=new RegExp(""),this.action={token:""},this.matchOnlyAtLineStart=!1,this.name="",this.name=e}setRegex(e,t){let n;if("string"==typeof t)n=t;else{if(!(t instanceof RegExp))throw At(e,"rules must start with a match string or regular expression: "+this.name);n=t.source}this.matchOnlyAtLineStart=n.length>0&&"^"===n[0],this.name=this.name+": "+n,this.regex=La(e,"^(?:"+(this.matchOnlyAtLineStart?n.substr(1):n)+")")}setAction(e,t){this.action=function e(t,n,i){if(i){if("string"==typeof i)return i;if(i.token||""===i.token){if("string"!=typeof i.token)throw At(t,"a 'token' attribute must be of type string, in rule: "+n);{let e={token:i.token};if(i.token.indexOf("$")>=0&&(e.tokenSubst=!0),"string"==typeof i.bracket)if("@open"===i.bracket)e.bracket=1;else{if("@close"!==i.bracket)throw At(t,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+n);e.bracket=-1}if(i.next){if("string"!=typeof i.next)throw At(t,"the next state must be a string value in rule: "+n);{let r=i.next;if(!/^(@pop|@push|@popall)$/.test(r)&&("@"===r[0]&&(r=r.substr(1)),r.indexOf("$")<0&&!function(e,t){let n=t;for(;n&&n.length>0;){if(e.stateNames[n])return!0;const t=n.lastIndexOf(".");n=t<0?null:n.substr(0,t)}return!1}(t,Rt(t,r,"",[],""))))throw At(t,"the next state '"+i.next+"' is not defined in rule: "+n);e.next=r}}return"number"==typeof i.goBack&&(e.goBack=i.goBack),"string"==typeof i.switchTo&&(e.switchTo=i.switchTo),"string"==typeof i.log&&(e.log=i.log),"string"==typeof i.nextEmbedded&&(e.nextEmbedded=i.nextEmbedded,t.usesEmbedded=!0),e}}if(Array.isArray(i)){let r=[];for(let o=0,s=i.length;o<s;o++)r[o]=e(t,n,i[o]);return{group:r}}if(i.cases){let r=[];for(let o in i.cases)if(i.cases.hasOwnProperty(o)){const s=e(t,n,i.cases[o]);"@default"===o||"@"===o||""===o?r.push({test:void 0,value:s,name:o}):"@eos"===o?r.push({test:function(e,t,n,i){return i},value:s,name:o}):r.push(Ma(t,n,o,s))}const o=t.defaultToken;return{test:function(e,t,n,i){for(const o of r){if(!o.test||o.test(e,t,n,i))return o.value}return o}}}throw At(t,"an action must be a string, an object with a 'token' or 'cases' attribute, or an array of actions; in rule: "+n)}return{token:""}}(e,this.name,t)}}function Ea(e){xi.a.registerLanguage(e)}function Ta(){let e=[];return e=e.concat(xi.a.getLanguages())}function Oa(e){let t=Zs.modeService.get().getLanguageIdentifier(e);return t?t.id:0}function Na(e,t){let n=Zs.modeService.get().onDidCreateMode(i=>{i.getId()===e&&(n.dispose(),t())});return n}function Ia(e,t){let n=Zs.modeService.get().getLanguageIdentifier(e);if(!n)throw new Error(`Cannot set configuration for unknown language ${e}`);return De.a.register(n,t)}class Aa{constructor(e){this._actual=e}getInitialState(){return this._actual.getInitialState()}tokenize(e,t,n){throw new Error("Not supported!")}tokenize2(e,t){let n=this._actual.tokenizeEncoded(e,t);return new z.c(n.tokens,n.endState)}}class Ra{constructor(e,t,n){this._standaloneThemeService=e,this._languageIdentifier=t,this._actual=n}getInitialState(){return this._actual.getInitialState()}_toClassicTokens(e,t,n){let i=[],r=0;for(let o=0,s=e.length;o<s;o++){const s=e[o];let a=s.startIndex;0===o?a=0:a<r&&(a=r),i[o]=new z.a(a+n,s.scopes,t),r=a}return i}tokenize(e,t,n){let i,r=this._actual.tokenize(e,t),o=this._toClassicTokens(r.tokens,this._languageIdentifier.language,n);return i=r.endState.equals(t)?t:r.endState,new z.b(o,i)}_toBinaryTokens(e,t){const n=this._languageIdentifier.id,i=this._standaloneThemeService.getColorTheme().tokenTheme;let r=[],o=0,s=0;for(let a=0,l=e.length;a<l;a++){const l=e[a],c=i.match(n,l.scopes);if(o>0&&r[o-1]===c)continue;let d=l.startIndex;0===a?d=0:d<s&&(d=s),r[o++]=d+t,r[o++]=c,s=d}let a=new Uint32Array(o);for(let e=0;e<o;e++)a[e]=r[e];return a}tokenize2(e,t,n){let i,r=this._actual.tokenize(e,t),o=this._toBinaryTokens(r.tokens,n);return i=r.endState.equals(t)?t:r.endState,new z.c(o,i)}}function Pa(e){return e&&"function"==typeof e.then}function ja(e,t){let n=Zs.modeService.get().getLanguageIdentifier(e);if(!n)throw new Error(`Cannot set tokens provider for unknown language ${e}`);const i=e=>(function(e){return"tokenizeEncoded"in e})(e)?new Aa(e):new Ra(Zs.standaloneThemeService.get(),n,e);return Pa(t)?he.C.registerPromise(e,t.then(e=>i(e))):he.C.register(e,i(t))}function Fa(e,t){const n=t=>(function(e,t,n,i){return new zt(e,t,n,i)})(Zs.modeService.get(),Zs.standaloneThemeService.get(),e,function(e,t){if(!t||"object"!=typeof t)throw new Error("Monarch: expecting a language definition object");let n={};n.languageId=e,n.noThrow=!1,n.maxStack=100,n.start="string"==typeof t.start?t.start:null,n.ignoreCase=Sa(t.ignoreCase,!1),n.unicode=Sa(t.unicode,!1),n.tokenPostfix=ka(t.tokenPostfix,"."+n.languageId),n.defaultToken=ka(t.defaultToken,"source"),n.usesEmbedded=!1;let i=t;function r(e,o,s){for(const a of s){let s=a.include;if(s){if("string"!=typeof s)throw At(n,"an 'include' attribute must be a string at: "+e);if("@"===s[0]&&(s=s.substr(1)),!t.tokenizer[s])throw At(n,"include target '"+s+"' is not defined at: "+e);r(e+"."+s,o,t.tokenizer[s])}else{const t=new Da(e);if(Array.isArray(a)&&a.length>=1&&a.length<=3)if(t.setRegex(i,a[0]),a.length>=3)if("string"==typeof a[1])t.setAction(i,{token:a[1],next:a[2]});else{if("object"!=typeof a[1])throw At(n,"a next state as the last element of a rule can only be given if the action is either an object or a string, at: "+e);{const e=a[1];e.next=a[2],t.setAction(i,e)}}else t.setAction(i,a[1]);else{if(!a.regex)throw At(n,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+e);a.name&&"string"==typeof a.name&&(t.name=a.name),a.matchOnlyAtStart&&(t.matchOnlyAtLineStart=Sa(a.matchOnlyAtLineStart,!1)),t.setRegex(i,a.regex),t.setAction(i,a.action)}o.push(t)}}}if(i.languageId=e,i.ignoreCase=n.ignoreCase,i.unicode=n.unicode,i.noThrow=n.noThrow,i.usesEmbedded=n.usesEmbedded,i.stateNames=t.tokenizer,i.defaultToken=n.defaultToken,!t.tokenizer||"object"!=typeof t.tokenizer)throw At(n,"a language definition must define the 'tokenizer' attribute as an object");n.tokenizer=[];for(let e in t.tokenizer)if(t.tokenizer.hasOwnProperty(e)){n.start||(n.start=e);const i=t.tokenizer[e];n.tokenizer[e]=new Array,r("tokenizer."+e,n.tokenizer[e],i)}if(n.usesEmbedded=i.usesEmbedded,t.brackets){if(!Array.isArray(t.brackets))throw At(n,"the 'brackets' attribute must be defined as an array")}else t.brackets=[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}];let o=[];for(let e of t.brackets){let t=e;if(t&&Array.isArray(t)&&3===t.length&&(t={token:t[2],open:t[0],close:t[1]}),t.open===t.close)throw At(n,"open and close brackets in a 'brackets' attribute must be different: "+t.open+"\n hint: use the 'bracket' attribute if matching on equal brackets is required.");if("string"!=typeof t.open||"string"!=typeof t.token||"string"!=typeof t.close)throw At(n,"every element in the 'brackets' array must be a '{open,close,token}' object or array");o.push({token:t.token+n.tokenPostfix,open:Nt(n,t.open),close:Nt(n,t.close)})}return n.brackets=o,n.noThrow=!0,n}(e,t));return Pa(t)?he.C.registerPromise(e,t.then(e=>n(e))):he.C.register(e,n(t))}function Ba(e,t){return he.v.register(e,t)}function Wa(e,t){return he.w.register(e,t)}function Ha(e,t){return he.y.register(e,t)}function Ya(e,t){return he.p.register(e,{provideHover:(e,n,i)=>{let r=e.getWordAtPosition(n);return Promise.resolve(t.provideHover(e,n,i)).then(e=>{if(e)return!e.range&&r&&(e.range=new Y.a(n.lineNumber,r.startColumn,n.lineNumber,r.endColumn)),e.range||(e.range=new Y.a(n.lineNumber,n.column,n.lineNumber,n.column)),e})}})}function Va(e,t){return he.m.register(e,t)}function za(e,t){return he.i.register(e,t)}function Ua(e,t){return he.u.register(e,t)}function $a(e,t){return he.f.register(e,t)}function qa(e,t){return he.q.register(e,t)}function Ka(e,t){return he.D.register(e,t)}function Ga(e,t){return he.b.register(e,t)}function Za(e,t){return he.a.register(e,{provideCodeActions:(e,n,i,r)=>{let o=Zs.markerService.get().read({resource:e.uri}).filter(e=>Y.a.areIntersectingOrTouching(e,n));return t.provideCodeActions(e,n,{markers:o,only:i.only},r)}})}function Ja(e,t){return he.g.register(e,t)}function Xa(e,t){return he.j.register(e,t)}function Qa(e,t){return he.t.register(e,t)}function el(e,t){return he.s.register(e,t)}function tl(e,t){return he.d.register(e,t)}function nl(e,t){return he.c.register(e,t)}function il(e,t){return he.o.register(e,t)}function rl(e,t){return he.e.register(e,t)}function ol(e,t){return he.x.register(e,t)}function sl(e,t){return he.l.register(e,t)}function al(e,t){return he.k.register(e,t)}n.d(t,"CancellationTokenSource",(function(){return dl})),n.d(t,"Emitter",(function(){return ul})),n.d(t,"KeyCode",(function(){return hl})),n.d(t,"KeyMod",(function(){return fl})),n.d(t,"Position",(function(){return gl})),n.d(t,"Range",(function(){return pl})),n.d(t,"Selection",(function(){return ml})),n.d(t,"SelectionDirection",(function(){return _l})),n.d(t,"MarkerSeverity",(function(){return bl})),n.d(t,"MarkerTag",(function(){return vl})),n.d(t,"Uri",(function(){return yl})),n.d(t,"Token",(function(){return wl})),n.d(t,"editor",(function(){return Cl})),n.d(t,"languages",(function(){return Sl}));const ll=self;P.g.wrappingIndent.defaultValue=0,P.g.glyphMargin.defaultValue=!1,P.g.autoIndent.defaultValue=3,P.g.overviewRulerLanes.defaultValue=2;const cl=$();cl.editor={create:ta,onDidCreateEditor:na,createDiffEditor:ia,createDiffNavigator:ra,createModel:sa,setModelLanguage:aa,setModelMarkers:la,getModelMarkers:ca,getModels:ua,getModel:da,onDidCreateModel:ha,onWillDisposeModel:fa,onDidChangeModelLanguage:ga,createWebWorker:pa,colorizeElement:ma,colorize:_a,colorizeModelLine:ba,tokenize:va,defineTheme:ya,setTheme:wa,remeasureFonts:Ca,AccessibilitySupport:i,ContentWidgetPositionPreference:l,CursorChangeReason:c,DefaultEndOfLine:d,EditorAutoIndentStrategy:h,EditorOption:f,EndOfLinePreference:g,EndOfLineSequence:p,MinimapPosition:y,MouseTargetType:w,OverlayWidgetPositionPreference:C,OverviewRulerLane:S,RenderLineNumbersType:k,RenderMinimap:x,ScrollbarVisibility:M,ScrollType:L,TextEditorCursorBlinkingStyle:N,TextEditorCursorStyle:I,TrackedRangeStickiness:A,WrappingIndent:R,ConfigurationChangedEvent:P.b,BareFontInfo:ce.a,FontInfo:ce.b,TextModelResolvedOptions:ue.e,FindMatch:ue.b,EditorType:de.a,EditorOptions:P.g},cl.languages={register:Ea,getLanguages:Ta,onLanguage:Na,getEncodedLanguageId:Oa,setLanguageConfiguration:Ia,setTokensProvider:ja,setMonarchTokensProvider:Fa,registerReferenceProvider:Ba,registerRenameProvider:Wa,registerCompletionItemProvider:tl,registerSignatureHelpProvider:Ha,registerHoverProvider:Ya,registerDocumentSymbolProvider:Va,registerDocumentHighlightProvider:za,registerOnTypeRenameProvider:Ua,registerDefinitionProvider:$a,registerImplementationProvider:qa,registerTypeDefinitionProvider:Ka,registerCodeLensProvider:Ga,registerCodeActionProvider:Za,registerDocumentFormattingEditProvider:Ja,registerDocumentRangeFormattingEditProvider:Xa,registerOnTypeFormattingEditProvider:Qa,registerLinkProvider:el,registerColorProvider:nl,registerFoldingRangeProvider:il,registerDeclarationProvider:rl,registerSelectionRangeProvider:ol,registerDocumentSemanticTokensProvider:sl,registerDocumentRangeSemanticTokensProvider:al,DocumentHighlightKind:u,CompletionItemKind:o,CompletionItemTag:s,CompletionItemInsertTextRule:r,SymbolKind:T,SymbolTag:O,IndentAction:m,CompletionTriggerKind:a,SignatureHelpTriggerKind:E,FoldingRangeKind:he.n};const dl=cl.CancellationTokenSource,ul=cl.Emitter,hl=cl.KeyCode,fl=cl.KeyMod,gl=cl.Position,pl=cl.Range,ml=cl.Selection,_l=cl.SelectionDirection,bl=cl.MarkerSeverity,vl=cl.MarkerTag,yl=cl.Uri,wl=cl.Token,Cl=cl.editor,Sl=cl.languages;ll.monaco=cl,void 0!==ll.require&&"function"==typeof ll.require.config&&ll.require.config({ignoreDuplicateModules:["vscode-languageserver-types","vscode-languageserver-types/main","vscode-languageserver-textdocument","vscode-languageserver-textdocument/main","vscode-nls","vscode-nls/vscode-nls","jsonc-parser","jsonc-parser/main","vscode-uri","vscode-uri/index","vs/basic-languages/typescript/typescript"]})},function(e,t,n){"use strict";n(87);var i=n(212),r={},o={},s=function(){function e(e){var t=this;this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((function(e,n){t._lazyLoadPromiseResolve=e,t._lazyLoadPromiseReject=n}))}return e.getOrCreate=function(t){return o[t]||(o[t]=new e(t)),o[t]},e.prototype.whenLoaded=function(){return this._lazyLoadPromise},e.prototype.load=function(){var e=this;return this._loadingTriggered||(this._loadingTriggered=!0,r[this._languageId].loader().then((function(t){return e._lazyLoadPromiseResolve(t)}),(function(t){return e._lazyLoadPromiseReject(t)}))),this._lazyLoadPromise},e}();function a(e){var t=e.id;r[t]=e,i.languages.register(e);var n=s.getOrCreate(t);i.languages.setMonarchTokensProvider(t,n.whenLoaded().then((function(e){return e.language}))),i.languages.onLanguage(t,(function(){n.load().then((function(e){i.languages.setLanguageConfiguration(t,e.conf)}))}))}a({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:function(){return n.e(7).then(n.bind(null,911))}}),a({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:function(){return n.e(8).then(n.bind(null,912))}}),a({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:function(){return n.e(9).then(n.bind(null,913))}}),a({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:function(){return n.e(10).then(n.bind(null,914))}}),a({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:function(){return n.e(11).then(n.bind(null,915))}}),a({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:function(){return n.e(12).then(n.bind(null,916))}}),a({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:function(){return n.e(13).then(n.bind(null,917))}}),a({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:function(){return n.e(0).then(n.bind(null,918))}}),a({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:function(){return n.e(0).then(n.bind(null,918))}}),a({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:function(){return n.e(14).then(n.bind(null,919))}}),a({id:"csp",extensions:[],aliases:["CSP","csp"],loader:function(){return n.e(15).then(n.bind(null,920))}}),a({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:function(){return n.e(16).then(n.bind(null,921))}}),a({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:function(){return n.e(17).then(n.bind(null,922))}}),a({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:function(){return n.e(18).then(n.bind(null,923))}}),a({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:function(){return n.e(19).then(n.bind(null,924))}}),a({id:"go",extensions:[".go"],aliases:["Go"],loader:function(){return n.e(20).then(n.bind(null,925))}}),a({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:function(){return n.e(21).then(n.bind(null,926))}}),a({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars"],mimetypes:["text/x-handlebars-template"],loader:function(){return n.e(22).then(n.bind(null,927))}}),a({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:function(){return n.e(23).then(n.bind(null,928))}}),a({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:function(){return n.e(24).then(n.bind(null,929))}}),a({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:function(){return n.e(25).then(n.bind(null,930))}}),a({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:function(){return n.e(26).then(n.bind(null,931))}}),a({id:"javascript",extensions:[".js",".es6",".jsx",".mjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:function(){return n.e(3).then(n.bind(null,932))}}),a({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:function(){return n.e(27).then(n.bind(null,933))}}),a({id:"kotlin",extensions:[".kt"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:function(){return n.e(28).then(n.bind(null,934))}}),a({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:function(){return n.e(29).then(n.bind(null,935))}}),a({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:function(){return n.e(30).then(n.bind(null,936))}}),a({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:function(){return n.e(31).then(n.bind(null,937))}}),a({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:function(){return n.e(32).then(n.bind(null,938))}}),a({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:function(){return n.e(33).then(n.bind(null,939))}}),a({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:function(){return n.e(34).then(n.bind(null,940))}}),a({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:function(){return n.e(35).then(n.bind(null,941))}}),a({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:function(){return n.e(36).then(n.bind(null,942))}}),a({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:function(){return n.e(37).then(n.bind(null,943))}}),a({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:function(){return n.e(38).then(n.bind(null,944))}}),a({id:"perl",extensions:[".pl"],aliases:["Perl","pl"],loader:function(){return n.e(39).then(n.bind(null,945))}}),a({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:function(){return n.e(40).then(n.bind(null,946))}}),a({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:function(){return n.e(41).then(n.bind(null,947))}}),a({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:function(){return n.e(42).then(n.bind(null,948))}}),a({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:function(){return n.e(43).then(n.bind(null,949))}}),a({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:function(){return n.e(44).then(n.bind(null,950))}}),a({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:function(){return n.e(45).then(n.bind(null,951))}}),a({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:function(){return n.e(46).then(n.bind(null,952))}}),a({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:function(){return n.e(47).then(n.bind(null,953))}}),a({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:function(){return n.e(48).then(n.bind(null,954))}}),a({id:"redis",extensions:[".redis"],aliases:["redis"],loader:function(){return n.e(49).then(n.bind(null,955))}}),a({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:function(){return n.e(50).then(n.bind(null,956))}}),a({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:function(){return n.e(51).then(n.bind(null,957))}}),a({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:function(){return n.e(52).then(n.bind(null,958))}}),a({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:function(){return n.e(53).then(n.bind(null,959))}}),a({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:function(){return n.e(54).then(n.bind(null,960))}}),a({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:function(){return n.e(55).then(n.bind(null,961))}}),a({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:function(){return n.e(56).then(n.bind(null,962))}}),a({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:function(){return n.e(57).then(n.bind(null,963))}}),a({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:function(){return n.e(58).then(n.bind(null,964))}}),a({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:function(){return n.e(59).then(n.bind(null,965))}}),a({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:function(){return n.e(60).then(n.bind(null,966))}}),a({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:function(){return n.e(61).then(n.bind(null,967))}}),a({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib"],aliases:["StructuredText","scl","stl"],loader:function(){return n.e(62).then(n.bind(null,968))}}),a({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:function(){return n.e(63).then(n.bind(null,969))}}),a({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:function(){return n.e(1).then(n.bind(null,970))}}),a({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:function(){return n.e(1).then(n.bind(null,970))}}),a({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:function(){return n.e(64).then(n.bind(null,971))}}),a({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:function(){return n.e(65).then(n.bind(null,972))}}),a({id:"typescript",extensions:[".ts",".tsx"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:function(){return n.e(66).then(n.bind(null,908))}}),a({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:function(){return n.e(67).then(n.bind(null,973))}}),a({id:"xml",extensions:[".xml",".dtd",".ascx",".csproj",".config",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xsl"],firstLine:"(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)",aliases:["XML","xml"],mimetypes:["text/xml","application/xml","application/xaml+xml","application/xml-dtd"],loader:function(){return n.e(68).then(n.bind(null,974))}}),a({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml"],loader:function(){return n.e(69).then(n.bind(null,975))}})},function(e,t,n){"use strict";function i(){}n.r(t);function r(e){return e()}function o(){return Object.create(null)}function s(e){e.forEach(r)}function a(e){return"function"==typeof e}function l(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function c(e,t){const n=e.subscribe(t);return n.unsubscribe?()=>n.unsubscribe():n}function d(e){let t;return c(e,e=>t=e)(),t}function u(e,t,n,i){if(e){const r=h(e,t,n,i);return e[0](r)}}function h(e,t,n,i){return e[1]&&i?function(e,t){for(const n in t)e[n]=t[n];return e}(n.ctx.slice(),e[1](i(t))):n.ctx}function f(e,t,n,i){return e[2]&&i?t.dirty|e[2](i(n)):t.dirty}function g(e){return null==e?"":e}new Set;function p(e,t){e.appendChild(t)}function m(e,t,n){e.insertBefore(t,n||null)}function _(e){e.parentNode.removeChild(e)}function b(e){return document.createElement(e)}function v(e){return document.createTextNode(e)}function y(){return v(" ")}function w(){return v("")}function C(e,t,n,i){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)}function S(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function k(e){return""===e?void 0:+e}function x(e,t){t=""+t,e.data!==t&&(e.data=t)}function L(e,t){(null!=t||e.value)&&(e.value=t)}function M(e,t){const n=document.createEvent("CustomEvent");return n.initCustomEvent(e,!1,!1,t),n}let D;function E(e){D=e}function T(){if(!D)throw new Error("Function called outside component initialization");return D}function O(e){T().$$.on_mount.push(e)}const N=[],I=[],A=[],R=[],P=Promise.resolve();let j=!1;function F(){j||(j=!0,P.then(W))}function B(e){A.push(e)}function W(){const e=new Set;do{for(;N.length;){const e=N.shift();E(e),H(e.$$)}for(;I.length;)I.pop()();for(let t=0;t<A.length;t+=1){const n=A[t];e.has(n)||(n(),e.add(n))}A.length=0}while(N.length);for(;R.length;)R.pop()();j=!1}function H(e){null!==e.fragment&&(e.update(),s(e.before_update),e.fragment&&e.fragment.p(e.ctx,e.dirty),e.dirty=[-1],e.after_update.forEach(B))}const Y=new Set;let V;function z(){V={r:0,c:[],p:V}}function U(){V.r||s(V.c),V=V.p}function $(e,t){e&&e.i&&(Y.delete(e),e.i(t))}function q(e,t,n,i){if(e&&e.o){if(Y.has(e))return;Y.add(e),V.c.push(()=>{Y.delete(e),i&&(n&&e.d(1),i())}),e.o(t)}}"undefined"!=typeof window?window:global;new Set(["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"]);let K;function G(e){e&&e.c()}function Z(e,t,n){const{fragment:i,on_mount:o,on_destroy:l,after_update:c}=e.$$;i&&i.m(t,n),B(()=>{const t=o.map(r).filter(a);l?l.push(...t):s(t),e.$$.on_mount=[]}),c.forEach(B)}function J(e,t){const n=e.$$;null!==n.fragment&&(s(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function X(e,t,n,r,a,l,c=[-1]){const d=D;E(e);const u=t.props||{},h=e.$$={fragment:null,ctx:null,props:l,update:i,not_equal:a,bound:o(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(d?d.$$.context:[]),callbacks:o(),dirty:c};let f=!1;var g;h.ctx=n?n(e,u,(t,n,i=n)=>(h.ctx&&a(h.ctx[t],h.ctx[t]=i)&&(h.bound[t]&&h.bound[t](i),f&&function(e,t){-1===e.$$.dirty[0]&&(N.push(e),F(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}(e,t)),n)):[],h.update(),f=!0,s(h.before_update),h.fragment=!!r&&r(h.ctx),t.target&&(t.hydrate?h.fragment&&h.fragment.l((g=t.target,Array.from(g.childNodes))):h.fragment&&h.fragment.c(),t.intro&&$(e.$$.fragment),Z(e,t.target,t.anchor),W()),E(d)}"function"==typeof HTMLElement&&(K=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}$destroy(){J(this,1),this.$destroy=i}$on(e,t){const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(){}});class Q{$destroy(){J(this,1),this.$destroy=i}$on(e,t){const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(){}}const ee=[];function te(e,t){return{subscribe:ne(e,t).subscribe}}function ne(e,t=i){let n;const r=[];function o(t){if(l(e,t)&&(e=t,n)){const t=!ee.length;for(let t=0;t<r.length;t+=1){const n=r[t];n[1](),ee.push(n,e)}if(t){for(let e=0;e<ee.length;e+=2)ee[e][0](ee[e+1]);ee.length=0}}}return{set:o,update:function(t){o(t(e))},subscribe:function(s,a=i){const l=[s,a];return r.push(l),1===r.length&&(n=t(o)||i),s(e),()=>{const e=r.indexOf(l);-1!==e&&r.splice(e,1),0===r.length&&(n(),n=null)}}}}function ie(e,t,n){const r=!Array.isArray(e),o=r?[e]:e,l=t.length<2;return te(n,e=>{let n=!1;const c=[];let d=0,u=i;const h=()=>{if(d)return;u();const n=t(r?c[0]:c,e);l?e(n):u=a(n)?n:i},f=o.map((e,t)=>e.subscribe(e=>{c[t]=e,d&=~(1<<t),n&&h()},()=>{d|=1<<t}));return n=!0,h(),function(){s(f),u()}})}var re=function(e,t){if(e instanceof RegExp)return{keys:!1,pattern:e};var n,i,r,o,s=[],a="",l=e.split("/");for(l[0]||l.shift();r=l.shift();)"*"===(n=r[0])?(s.push("wild"),a+="/(.*)"):":"===n?(i=r.indexOf("?",1),o=r.indexOf(".",1),s.push(r.substring(1,~i?i:~o?o:r.length)),a+=~i&&!~o?"(?:/([^/]+?))?":"/([^/]+?)",~o&&(a+=(~i?"?":"")+"\\"+r.substring(o))):a+="/"+r;return{keys:s,pattern:new RegExp("^"+a+(t?"(?=$|/)":"/?$"),"i")}};function oe(e){let t,n;var i=e[0];function r(e){return{props:{params:e[1]}}}if(i)var o=new i(r(e));return{c(){o&&G(o.$$.fragment),t=w()},m(e,i){o&&Z(o,e,i),m(e,t,i),n=!0},p(e,[n]){const s={};if(2&n&&(s.params=e[1]),i!==(i=e[0])){if(o){z();const e=o;q(e.$$.fragment,1,0,()=>{J(e,1)}),U()}i?(G((o=new i(r(e))).$$.fragment),$(o.$$.fragment,1),Z(o,t.parentNode,t)):o=null}else i&&o.$set(s)},i(e){n||(o&&$(o.$$.fragment,e),n=!0)},o(e){o&&q(o.$$.fragment,e),n=!1},d(e){e&&_(t),o&&J(o,e)}}}function se(){const e=window.location.href.indexOf("#/");let t=e>-1?window.location.href.substr(e+1):"/";const n=t.indexOf("?");let i="";return n>-1&&(i=t.substr(n+1),t=t.substr(0,n)),{location:t,querystring:i}}const ae=te(se(),(function(e){const t=()=>{e(se())};return window.addEventListener("hashchange",t,!1),function(){window.removeEventListener("hashchange",t,!1)}}));ie(ae,e=>e.location),ie(ae,e=>e.querystring);function le(e){if(!e||e.length<1||"/"!=e.charAt(0)&&0!==e.indexOf("#/"))throw Error("Invalid parameter location");setTimeout(()=>{const t=("#"==e.charAt(0)?"":"#")+e;history.replaceState(void 0,void 0,t),window.dispatchEvent(new Event("hashchange"))},0)}function ce(e){if(!e||!e.tagName||"a"!=e.tagName.toLowerCase())throw Error('Action "link" can only be used with <a> tags');const t=e.getAttribute("href");if(!t||t.length<1||"/"!=t.charAt(0))throw Error('Invalid value for "href" attribute');e.setAttribute("href","#"+t)}function de(e,t,n){let r,o=i;!function(e,t,n){e.$$.on_destroy.push(c(t,n))}(e,ae,e=>n(3,r=e)),e.$$.on_destroy.push(()=>o());let{routes:s={}}=t;class a{constructor(e,t){if(!t||"function"!=typeof t&&("object"!=typeof t||!0!==t._sveltesparouter))throw Error("Invalid component object");if(!e||"string"==typeof e&&(e.length<1||"/"!=e.charAt(0)&&"*"!=e.charAt(0))||"object"==typeof e&&!(e instanceof RegExp))throw Error('Invalid value for "path" argument');const{pattern:n,keys:i}=re(e);this.path=e,"object"==typeof t&&!0===t._sveltesparouter?(this.component=t.route,this.conditions=t.conditions||[]):(this.component=t,this.conditions=[]),this._pattern=n,this._keys=i}match(e){const t=this._pattern.exec(e);if(null===t)return null;if(!1===this._keys)return t;const n={};let i=0;for(;i<this._keys.length;)n[this._keys[i]]=t[++i]||null;return n}checkConditions(e,t){for(let n=0;n<this.conditions.length;n++)if(!this.conditions[n](e,t))return!1;return!0}}const l=s instanceof Map?s:Object.entries(s),d=[];for(const[e,t]of l)d.push(new a(e,t));let u=null,h={};const f=function(){const e=T();return(t,n)=>{const i=e.$$.callbacks[t];if(i){const r=M(t,n);i.slice().forEach(t=>{t.call(e,r)})}}}(),g=(e,t)=>{setTimeout(()=>{f(e,t)},0)};return e.$set=e=>{"routes"in e&&n(2,s=e.routes)},e.$$.update=()=>{if(9&e.$$.dirty){n(0,u=null);let e=0;for(;!u&&e<d.length;){const t=d[e].match(r.location);if(t){const i={component:d[e].component.name,location:r.location,querystring:r.querystring};if(!d[e].checkConditions(r.location,r.querystring)){g("conditionsFailed",i);break}n(0,u=d[e].component),n(1,h=t),g("routeLoaded",i)}e++}}},[u,h,s]}var ue=class extends Q{constructor(e){super(),X(this,e,de,oe,l,{routes:2})}},he=n(146);const fe={code:"graph TD\nA[Christmas] --\x3e|Get money| B(Go shopping)\nB --\x3e C{Let me think}\nC --\x3e|One| D[Laptop]\nC --\x3e|Two| E[iPhone]\nC --\x3e|Three| F[fa:fa-car Car]\n ",mermaid:{theme:window.matchMedia("(prefers-color-scheme: dark)").matches&&!1?"dark":"default"}},ge=ne(fe),pe=e=>{let t;try{const n=he.Base64.decode(e);console.log("state from url",n),t=JSON.parse(n)}catch(e){console.error("Init error",e),t=fe}ge.set(t)},me=e=>{ge.set(e),le("/edit/"+he.Base64.encodeURI(JSON.stringify(e)))},_e=(e,t)=>{const n=d(ge);n.code=e,n.updateEditor=t,ge.set(n)},be=e=>{const t=d(ge);t.mermaid=e,ge.set(t)},ve=(ge.subscribe(e=>{le("/edit/"+he.Base64.encodeURI(JSON.stringify(e)))}),ne(void 0));var ye=n(188),we=n.n(ye);n(568);function Ce(e){let t,n,r;return{c(){t=b("div"),n=v(e[1]),S(t,"id","error"),S(t,"class",r=g(e[0])+" svelte-1af9dx4")},m(e,i){m(e,t,i),p(t,n)},p(e,[i]){2&i&&x(n,e[1]),1&i&&r!==(r=g(e[0])+" svelte-1af9dx4")&&S(t,"class",r)},i:i,o:i,d(e){e&&_(t)}}}function Se(e,t,n){O(async()=>{});let{classes:i=""}=t,{errorText:r=""}=t;return e.$set=e=>{"classes"in e&&n(0,i=e.classes),"errorText"in e&&n(1,r=e.errorText)},[i,r]}var ke=class extends Q{constructor(e){super(),X(this,e,Se,Ce,l,{classes:0,errorText:1})}};const xe=e=>{e.languages.register({id:"mermaid"}),e.languages.setMonarchTokensProvider("mermaid",{typeKeywords:["graph","stateDiagram","sequenceDiagram","classDiagram","pie","flowchart","gantt"],keywords:["patricipant","as"],arrows:["---","===","--\x3e","==>"],tokenizer:{root:[[/[{}]/,"delimiter.bracket"],[/[a-z_$][\w$]*/,{cases:{"@typeKeywords":"keyword","@keywords":"keyword"}}],[/[-=>ox]+/,{cases:{"@arrows":"transition"}}],[/[\[\{\(}]+.+?[\)\]\}]+/,"string"],[/\".*\"/,"string"]]},whitespace:[[/[ \t\r\n]+/,"white"],[/\%\%.*$/,"comment"]]}),e.editor.defineTheme("myCoolTheme",{base:"vs",inherit:!1,rules:[{token:"keyword",foreground:"880000",fontStyle:"bold"},{token:"custom-error",foreground:"ff0000",fontStyle:"bold"},{token:"string",foreground:"AA8500"},{token:"transition",foreground:"008800",fontStyle:"bold"},{token:"delimiter.bracket",foreground:"000000",fontStyle:"bold"}]}),e.languages.registerCompletionItemProvider("mermaid",{provideCompletionItems:()=>{return{suggestions:[{label:"simpleText",kind:e.languages.CompletionItemKind.Text,insertText:"simpleText"},{label:"testing",kind:e.languages.CompletionItemKind.Keyword,insertText:"testing(${1:condition})",insertTextRules:e.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"ifelse",kind:e.languages.CompletionItemKind.Snippet,insertText:["if (${1:condition}) {","\t$0","} else {","\t","}"].join("\n"),insertTextRules:e.languages.CompletionItemInsertTextRule.InsertAsSnippet,documentation:"If-Else Statement"}]}}})},Le=e=>t=>e&&e.layout();var Me=n(274),De=n(565),Ee=n.n(De)()({strategy:"scroll"});function Te(e,t){Ee.listenTo(e,t);var n=t;return{update:function(t){Ee.removeListener(e,n),Ee.listenTo(e,t),n=t},destroy:function(){Ee.removeListener(e,n)}}}n(890);function Oe(e){let t;const n=new ke({props:{errorText:"Syntax Error"}});return{c(){G(n.$$.fragment)},m(e,i){Z(n,e,i),t=!0},i(e){t||($(n.$$.fragment,e),t=!0)},o(e){q(n.$$.fragment,e),t=!1},d(e){J(n,e)}}}function Ne(e){let t,n,i,r,o,s=e[0]&&Oe();return{c(){t=b("div"),n=b("div"),r=y(),s&&s.c(),S(n,"id","editor"),S(n,"class","svelte-129q4vv"),S(t,"id","editor-container")},m(a,l){m(a,t,l),p(t,n),i=Te.call(null,n,e[1])||{},p(t,r),s&&s.m(t,null),o=!0},p(e,[n]){a(i.update)&&2&n&&i.update.call(null,e[1]),e[0]?s?$(s,1):((s=Oe()).c(),$(s,1),s.m(t,null)):s&&(z(),q(s,1,1,()=>{s=null}),U())},i(e){o||($(s),o=!0)},o(e){q(s),o=!1},d(e){e&&_(t),i&&a(i.destroy)&&i.destroy(),s&&s.d()}}}function Ie(e,t,n){let{code:i=""}=t;const r=window.matchMedia("(prefers-color-scheme: dark)").matches&&!1;let o,{conf:s={theme:r?"dark":"default"}}=t,{error:a=!1}=t;const l=[];let c=null,d=()=>{};const u=e=>{try{we.a.parse(e),me({code:e,mermaid:s,updateEditor:!1}),l.forEach(e=>{o.deltaDecorations(e,[])}),ve.set(void 0);o.getModel()}catch(t){if(t){ve.set(t),console.log("Error in parsed",t.hash);const n=JSON.stringify({code:e,mermaid:s});le("/edit/"+he.Base64.encodeURI(n));t.hash.line;l.push(o.deltaDecorations([],[{range:new Me.Range(t.hash.loc.first_line,t.hash.loc.last_line,t.hash.loc.first_column,t.hash.loc.last_column),options:{inlineClassName:"myInlineDecoration"}}]))}}};return O(async()=>{ge.subscribe(e=>{if(console.log("Code change"),null===c&&(c=document.getElementById("editor")),!i&&e&&n(2,i=e.code),e&&n(3,s=e.mermaid),!o&&i&&null!==c){o=Me.editor.create(c,{value:[i].join("\n"),theme:"myCoolTheme",language:"mermaid"}),n(1,d=Le(o));o.onDidChangeModelContent((function(e){const t=o.getValue();u(t)})),u(i)}e&&e.updateEditor&&o&&i&&null!==c&&(o.setValue(e.code),u(e.code))}),ve.subscribe(e=>{n(0,a=!!e)});xe(Me)}),e.$set=e=>{"code"in e&&n(2,i=e.code),"conf"in e&&n(3,s=e.conf),"error"in e&&n(0,a=e.error)},[a,d,i,s]}var Ae=class extends Q{constructor(e){super(),X(this,e,Ie,Ne,l,{code:2,conf:3,error:0})}};const Re=ne(void 0);n(85),n(168);var Pe=n(87);n(891);function je(e){let t;const n=new ke({props:{errorText:e[0]}});return{c(){G(n.$$.fragment)},m(e,i){Z(n,e,i),t=!0},p(e,t){const i={};1&t&&(i.errorText=e[0]),n.$set(i)},i(e){t||($(n.$$.fragment,e),t=!0)},o(e){q(n.$$.fragment,e),t=!1},d(e){J(n,e)}}}function Fe(e){let t,n,i,r,o,s=e[0]&&je(e);return{c(){t=b("div"),n=b("div"),r=y(),s&&s.c(),S(n,"id","editor-conf"),S(n,"class","svelte-e1y9ss"),S(t,"id","editor-container")},m(a,l){m(a,t,l),p(t,n),i=Te.call(null,n,e[1])||{},p(t,r),s&&s.m(t,null),o=!0},p(e,[n]){a(i.update)&&2&n&&i.update.call(null,e[1]),e[0]?s?(s.p(e,n),$(s,1)):((s=je(e)).c(),$(s,1),s.m(t,null)):s&&(z(),q(s,1,1,()=>{s=null}),U())},i(e){o||($(s),o=!0)},o(e){q(s),o=!1},d(e){e&&_(t),i&&a(i.destroy)&&i.destroy(),s&&s.d()}}}function Be(e,t,n){let i,{conf:r=""}=t,{code:o=""}=t,{error:s=!1}=t,a=null;let l=()=>{},c={};const d=e=>{try{console.log(e),JSON.parse(e),be(JSON.parse(e)),Re.set(void 0)}catch(e){console.log("Error in parsed",e),Re.set(e);const t=JSON.stringify({code:o,mermaid:c});le("/edit/"+he.Base64.encodeURI(t))}};Re.subscribe(e=>{n(0,s=!!e&&e.toString())});return O(async()=>{console.log("Mounting config");ge.subscribe(e=>{null===a&&(console.log("Starting stuff",document.getElementById("editor-conf")),a=document.getElementById("editor-conf")),!r&&e&&n(2,r=JSON.stringify(e.mermaid,null,2)),e&&n(3,o=e.code),!i&&r&&null!==a&&(i=Pe.editor.create(a,{value:[r].join("\n"),theme:"myCoolTheme",language:"json"}),n(1,l=Le(i)),i.onDidChangeModelContent((function(e){const t=i.getValue();d(t)})),d(r))});xe(Pe)}),e.$set=e=>{"conf"in e&&n(2,r=e.conf),"code"in e&&n(3,o=e.code),"error"in e&&n(0,s=e.error)},[s,l,r,o]}var We=class extends Q{constructor(e){super(),X(this,e,Be,Fe,l,{conf:2,code:3,error:0})}};n(892);function He(e){let t,n,r;return{c(){t=b("div"),S(n=b("div"),"id","container"),S(n,"class","svelte-adxv1m"),S(t,"id","view"),S(t,"class",r=e[1]+" "+e[0]+" svelte-adxv1m")},m(i,r){m(i,t,r),p(t,n),e[9](n)},p(e,[n]){3&n&&r!==(r=e[1]+" "+e[0]+" svelte-adxv1m")&&S(t,"class",r)},i:i,o:i,d(n){n&&_(t),e[9](null)}}}function Ye(e,t,n){const i=e=>(e=e.replace(/^\s*%%.*\n/g,"\n"),console.debug("Detecting diagram type based on the text "+e),e.match(/^\s*sequenceDiagram/)?"sequence":e.match(/^\s*gantt/)?"gantt":e.match(/^\s*classDiagram/)?"class":e.match(/^\s*stateDiagram/)?"state":e.match(/^\s*gitGraph/)?"git":e.match(/^\s*flowchart/)?"flowchart":e.match(/^\s*info/)?"info":e.match(/^\s*pie/)?"pie":"flowchart");let r;const o=e=>{clearTimeout(r),r=setTimeout((function(){console.log("ga:","send","event","render",e,e),ga("send","event",e,"render","render")}),5e3)};let s,a;O(async()=>{s=document.querySelector("graph-div");ge.subscribe(e=>{try{if(a&&e){n(3,c=e.code);let t=c;t=(t=t.replace(/</g,"<")).replace(/>/g,">"),n(2,a.innerHTML=t,a),o(i(c)),delete a.dataset.processed,we.a.initialize(Object.assign({},e.mermaid)),we.a.init(void 0,a),c&&we.a.render("graph-div",c,l)}}catch(e){console.log("view fail",e)}}),ve.subscribe(e=>{void 0===e?n(1,u=""):(n(1,u="error"),console.log("code error: ",e))}),Re.subscribe(e=>{void 0===e?n(0,d=""):(n(0,d="error"),console.log("conf error: ",e))})});let l=function(e,t){},{code:c=""}=t,{configClasses:d=""}=t,{codeClasses:u=""}=t;return e.$set=e=>{"code"in e&&n(3,c=e.code),"configClasses"in e&&n(0,d=e.configClasses),"codeClasses"in e&&n(1,u=e.codeClasses)},[d,u,a,c,r,s,i,o,l,function(e){I[e?"unshift":"push"](()=>{n(2,a=e)})}]}var Ve=class extends Q{constructor(e){super(),X(this,e,Ye,He,l,{code:3,configClasses:0,codeClasses:1})}};n(893);function ze(e){let t,n,i,r,o,s,a;const l=e[4].default,c=u(l,e,e[3],null);return{c(){t=b("div"),n=b("div"),i=v(e[0]),r=y(),o=b("div"),c&&c.c(),S(n,"id","title"),S(n,"class","padding svelte-m2i2uf"),S(o,"id","content"),S(o,"class",s=g(e[1])+" svelte-m2i2uf"),S(t,"id","card"),S(t,"class","svelte-m2i2uf")},m(e,s){m(e,t,s),p(t,n),p(n,i),p(t,r),p(t,o),c&&c.m(o,null),a=!0},p(e,[t]){(!a||1&t)&&x(i,e[0]),c&&c.p&&8&t&&c.p(h(l,e,e[3],null),f(l,e[3],t,null)),(!a||2&t&&s!==(s=g(e[1])+" svelte-m2i2uf"))&&S(o,"class",s)},i(e){a||($(c,e),a=!0)},o(e){q(c,e),a=!1},d(e){e&&_(t),c&&c.d(e)}}}function Ue(e,t,n){let{title:i=""}=t,{noPadding:r=!1}=t,o="padding";r&&n(1,o="");let{$$slots:s={},$$scope:a}=t;return e.$set=e=>{"title"in e&&n(0,i=e.title),"noPadding"in e&&n(2,r=e.noPadding),"$$scope"in e&&n(3,a=e.$$scope)},[i,o,r,a,s]}var $e=class extends Q{constructor(e){super(),X(this,e,Ue,ze,l,{title:0,noPadding:2})}};n(894);function qe(e){let t,n;const i=e[3].default,r=u(i,e,e[2],null);return{c(){t=b("div"),r&&r.c(),S(t,"id","tag"),S(t,"class","svelte-1m053ch")},m(e,i){m(e,t,i),r&&r.m(t,null),n=!0},p(e,[t]){r&&r.p&&4&t&&r.p(h(i,e,e[2],null),f(i,e[2],t,null))},i(e){n||($(r,e),n=!0)},o(e){q(r,e),n=!1},d(e){e&&_(t),r&&r.d(e)}}}function Ke(e,t,n){let{noPadding:i=!1}=t,r="padding";i&&(r="");let{$$slots:o={},$$scope:s}=t;return e.$set=e=>{"noPadding"in e&&n(0,i=e.noPadding),"$$scope"in e&&n(2,s=e.$$scope)},[i,r,s,o]}var Ge=class extends Q{constructor(e){super(),X(this,e,Ke,qe,l,{noPadding:0})}},Ze=n(21),Je=n.n(Ze);n(896);function Xe(e){let t,n,r,o,l,c,d,u,h,f,g,w,k,x,M,D,E,T,O,N,I,A,R,P,j,F,B,W,H,Y,V,z,U,$,q,K,G,Z,J,X,Q,ee,te,ne,ie,re,oe,se,ae,le,de,ue,he,fe,ge,pe,me=!1,_e=!1;function be(){me=!0,e[20].call(re)}function ve(){_e=!0,e[22].call(he)}return{c(){t=b("div"),n=b("button"),r=b("a"),o=v("Copy Image"),l=y(),c=b("button"),d=b("a"),u=v("Download PNG"),h=y(),f=b("button"),g=b("a"),w=v("Link to view"),x=y(),M=b("button"),D=b("a"),E=v("Download SVG"),T=y(),O=b("button"),N=b("a"),I=v("Link to Image"),A=y(),R=b("button"),P=b("a"),j=v("Link to SVG"),F=v("\n (markdown is base64 encoded for these urls)"),B=y(),W=b("div"),(H=b("label")).textContent="Copy Markdown",Y=y(),V=b("br"),z=y(),U=b("input"),$=y(),q=b("p"),(K=b("label")).textContent="PNG size:",G=y(),Z=b("input"),J=y(),(X=b("label")).textContent="auto",Q=y(),ee=b("input"),te=y(),(ne=b("label")).textContent="width",ie=y(),re=b("input"),se=y(),ae=b("input"),le=y(),(de=b("label")).textContent="height",ue=y(),he=b("input"),ge=b("br"),S(r,"class","link-style svelte-187ys3m"),S(r,"href",e[0]),S(r,"download",""),S(n,"class","button-style svelte-187ys3m"),S(d,"class","link-style svelte-187ys3m"),S(d,"href",e[0]),S(d,"download",""),S(c,"class","button-style svelte-187ys3m"),S(g,"class","link-style svelte-187ys3m"),S(g,"href",e[0]),S(f,"class","button-style svelte-187ys3m"),S(D,"class","link-style svelte-187ys3m"),S(D,"href",e[0]),S(D,"download",""),S(M,"class","button-style svelte-187ys3m"),S(N,"class","link-style svelte-187ys3m"),S(N,"href",e[1]),S(O,"class","button-style svelte-187ys3m"),S(P,"class","link-style svelte-187ys3m"),S(P,"href",e[2]),S(R,"class","button-style svelte-187ys3m"),S(t,"id","links"),S(t,"class","svelte-187ys3m"),S(H,"for","markdown"),S(H,"class","button-style svelte-187ys3m"),S(U,"id","markdown"),S(U,"type","text"),U.value=e[3],S(U,"class","svelte-187ys3m"),S(W,"id","copy-section"),S(W,"class","svelte-187ys3m"),S(Z,"type","radio"),Z.__value="auto",Z.value=Z.__value,S(Z,"id","autosize"),e[18][0].push(Z),S(X,"for","autosize"),S(ee,"type","radio"),ee.__value="width",ee.value=ee.__value,S(ee,"id","width-active"),e[18][0].push(ee),S(ne,"for","width"),S(re,"id","width"),S(re,"type","number"),S(re,"min","3"),S(re,"max","10000"),re.disabled=oe="width"!==e[4],S(ae,"type","radio"),ae.__value="height",ae.value=ae.__value,S(ae,"id","height-active"),e[18][0].push(ae),S(de,"for","height"),S(he,"id","height"),S(he,"type","number"),S(he,"min","3"),S(he,"max","10000"),he.disabled=fe="height"!==e[4],pe=[C(r,"click",e[7]),C(d,"click",e[8]),C(D,"click",e[9]),C(U,"click",e[10]),C(Z,"change",e[17]),C(ee,"change",e[19]),C(re,"input",be),C(ae,"change",e[21]),C(he,"input",ve)]},m(i,s){m(i,t,s),p(t,n),p(n,r),p(r,o),p(t,l),p(t,c),p(c,d),p(d,u),p(t,h),p(t,f),p(f,g),p(g,w),k=ce.call(null,g)||{},p(t,x),p(t,M),p(M,D),p(D,E),p(t,T),p(t,O),p(O,N),p(N,I),p(t,A),p(t,R),p(R,P),p(P,j),p(t,F),m(i,B,s),m(i,W,s),p(W,H),p(W,Y),p(W,V),p(W,z),p(W,U),m(i,$,s),m(i,q,s),p(q,K),p(q,G),p(q,Z),Z.checked=Z.__value===e[4],p(q,J),p(q,X),p(q,Q),p(q,ee),ee.checked=ee.__value===e[4],p(q,te),p(q,ne),p(q,ie),p(q,re),L(re,e[5]),p(q,se),p(q,ae),ae.checked=ae.__value===e[4],p(q,le),p(q,de),p(q,ue),p(q,he),L(he,e[6]),p(q,ge)},p(e,[t]){1&t&&S(r,"href",e[0]),1&t&&S(d,"href",e[0]),1&t&&S(g,"href",e[0]),1&t&&S(D,"href",e[0]),2&t&&S(N,"href",e[1]),4&t&&S(P,"href",e[2]),8&t&&(U.value=e[3]),16&t&&(Z.checked=Z.__value===e[4]),16&t&&(ee.checked=ee.__value===e[4]),16&t&&oe!==(oe="width"!==e[4])&&(re.disabled=oe),!me&&32&t&&L(re,e[5]),me=!1,16&t&&(ae.checked=ae.__value===e[4]),16&t&&fe!==(fe="height"!==e[4])&&(he.disabled=fe),!_e&&64&t&&L(he,e[6]),_e=!1},i:i,o:i,d(n){n&&_(t),k&&a(k.destroy)&&k.destroy(),n&&_(B),n&&_(W),n&&_($),n&&_(q),e[18][0].splice(e[18][0].indexOf(Z),1),e[18][0].splice(e[18][0].indexOf(ee),1),e[18][0].splice(e[18][0].indexOf(ae),1),s(pe)}}}function Qe(e,t,n){const i=()=>{const e=document.getElementById("container").innerHTML.replaceAll("<br>","<br/>");return he.Base64.encode(e)},r=(e,t)=>{const n=document.createElement("canvas"),r=document.querySelector("#container svg").getBoundingClientRect();if(n.width=r.width,n.height=r.height,"width"===h){const e=r.height/r.width;n.width=f,n.height=f*e}else if("height"===h){const e=r.width/r.height;n.width=g*e,n.height=g}const o=n.getContext("2d");o.fillStyle="white",o.fillRect(0,0,n.width,n.height);const s=new Image;s.onload=t(n,o,s),console.log("SVG",i()),s.src=`data:image/svg+xml;base64,${i()}`,e.stopPropagation(),e.preventDefault()},o=(e,t,n)=>()=>{t.drawImage(n,0,0,e.width,e.height);const i=document.createElement("a");i.download=`mermaid-diagram-${Je()().format("YYYYMMDDHHmmss")}.png`,i.href=e.toDataURL("image/png").replace("image/png","image/octet-stream"),i.click()},s=(e,t,n)=>()=>{t.drawImage(n,0,0,e.width,e.height),e.toBlob(e=>{try{navigator.clipboard.write([new ClipboardItem({[e.type]:e})])}catch(e){console.error(e)}})};let a,l,c,d,u="/mermaid-live-editor/#/view",h="auto",f=1920,g=1080;const p=ge.subscribe(e=>{a=he.Base64.encodeURI(JSON.stringify(e)),n(0,u=`/mermaid-live-editor/#/view/${a}`),n(1,l=`https://mermaid.ink/img/${a}`),n(2,c=`https://mermaid.ink/svg/${a}`),n(3,d=`[![](${l})](${window.location.protocol}//${window.location.host}${window.location.pathname}#/edit/${a})`)});return[u,l,c,d,h,f,g,e=>{r(e,s)},e=>{r(e,o)},e=>{console.log("event",e.target),e.target.href=`data:image/svg+xml;base64,${i()}`,e.target.download=`mermaid-diagram-${Je()().format("YYYYMMDDHHmmss")}.svg`,console.log("event",e)},e=>{e.target.select(),document.execCommand("Copy")},a,i,r,o,s,p,function(){h=this.__value,n(4,h)},[[]],function(){h=this.__value,n(4,h)},function(){f=k(this.value),n(5,f)},function(){h=this.__value,n(4,h)},function(){g=k(this.value),n(6,g)}]}var et=class extends Q{constructor(e){super(),X(this,e,Qe,Xe,l,{})}},tt=n(566);n(897);function nt(e,t,n){const i=e.slice();return i[4]=t[n],i[6]=n,i}function it(e){let t;const n=new Ae({props:{data:e[1].data}});return{c(){G(n.$$.fragment)},m(e,i){Z(n,e,i),t=!0},p(e,t){const i={};2&t&&(i.data=e[1].data),n.$set(i)},i(e){t||($(n.$$.fragment,e),t=!0)},o(e){q(n.$$.fragment,e),t=!1},d(e){J(n,e)}}}function rt(e){let t;const n=new We({});return{c(){G(n.$$.fragment)},m(e,i){Z(n,e,i),t=!0},i(e){t||($(n.$$.fragment,e),t=!0)},o(e){q(n.$$.fragment,e),t=!1},d(e){J(n,e)}}}function ot(e){let t;const n=new Ve({});return{c(){G(n.$$.fragment)},m(e,i){Z(n,e,i),t=!0},i(e){t||($(n.$$.fragment,e),t=!0)},o(e){q(n.$$.fragment,e),t=!1},d(e){J(n,e)}}}function st(e){let t;return{c(){t=v("No records.")},m(e,n){m(e,t,n)},p:i,d(e){e&&_(t)}}}function at(e){let t,n=e[2],i=[];for(let t=0;t<n.length;t+=1)i[t]=lt(nt(e,n,t));return{c(){for(let e=0;e<i.length;e+=1)i[e].c();t=w()},m(e,n){for(let t=0;t<i.length;t+=1)i[t].m(e,n);m(e,t,n)},p(e,r){if(4&r){let o;for(n=e[2],o=0;o<n.length;o+=1){const s=nt(e,n,o);i[o]?i[o].p(s,r):(i[o]=lt(s),i[o].c(),i[o].m(t.parentNode,t))}for(;o<i.length;o+=1)i[o].d(1);i.length=n.length}},d(e){!function(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}(i,e),e&&_(t)}}}function lt(e){let t,n,i,r,o=St(e[4].time)+"";function s(...t){return e[3](e[4],...t)}return{c(){t=b("button"),n=v(o),i=y(),S(t,"class","button-style svelte-mx8k4g"),r=C(t,"click",(function(){s.apply(this,arguments)}))},m(e,r){m(e,t,r),p(t,n),p(t,i)},p(t,i){e=t,4&i&&o!==(o=St(e[4].time)+"")&&x(n,o)},d(e){e&&_(t),r()}}}function ct(e){let t,n,i,r,o;function s(e,t){return e[2].length>0?at:st}let a=s(e),l=a(e);return{c(){(t=b("span")).textContent="Automatically saves once every\n minute, up to 10 records.",n=y(),i=b("br"),r=y(),o=b("div"),l.c(),S(t,"id","historyLoaderSubTitle"),S(t,"class","svelte-mx8k4g"),S(o,"id","historyList"),S(o,"class","button-container svelte-mx8k4g")},m(e,s){m(e,t,s),m(e,n,s),m(e,i,s),m(e,r,s),m(e,o,s),l.m(o,null)},p(e,t){a===(a=s(e))&&l?l.p(e,t):(l.d(1),(l=a(e))&&(l.c(),l.m(o,null)))},d(e){e&&_(t),e&&_(n),e&&_(i),e&&_(r),e&&_(o),l.d()}}}function dt(e){let t;return{c(){(t=b("div")).innerHTML='<button class="button-style svelte-mx8k4g"><a href="https://mermaid-js.github.io/mermaid" target="_blank" class="link-style svelte-mx8k4g">\n Mermaid Documentation\n </a></button> \n <button class="button-style svelte-mx8k4g"><a href="https://github.com/mermaid-js/mermaid" target="_blank" class="link-style svelte-mx8k4g">\n Mermaid on GitHub\n </a></button> \n <button class="button-style svelte-mx8k4g"><a href="https://github.com/mermaid-js/mermaid-live-editor" target="_blank" class="link-style svelte-mx8k4g">\n Live Editor on GitHub\n </a></button> \n <button class="button-style svelte-mx8k4g"><a href="https://github.com/mermaid-js/mermaid-cli" target="_blank" class="link-style svelte-mx8k4g">\n Mermaid CLI\n </a></button>',S(t,"class","button-container svelte-mx8k4g")},m(e,n){m(e,t,n)},d(e){e&&_(t)}}}function ut(e){let t;const n=new et({});return{c(){G(n.$$.fragment)},m(e,i){Z(n,e,i),t=!0},i(e){t||($(n.$$.fragment,e),t=!0)},o(e){q(n.$$.fragment,e),t=!1},d(e){J(n,e)}}}function ht(e){let t;return{c(){t=v(e[0])},m(e,n){m(e,t,n)},p(e,n){1&n&&x(t,e[0])},d(e){e&&_(t)}}}function ft(e){let t,n,i,r,o,a,l,c,d,u,h,f,g,w,k,x,L,M,D,E,T,O,N,I,A,R,P,j,F,B,W,H,Y,V,z,U,K;const X=new $e({props:{title:"Code",noPadding:"true",$$slots:{default:[it]},$$scope:{ctx:e}}}),Q=new $e({props:{title:"Mermaid Configuration",$$slots:{default:[rt]},$$scope:{ctx:e}}}),ee=new $e({props:{title:"Preview",$$slots:{default:[ot]},$$scope:{ctx:e}}}),te=new $e({props:{title:"Editing history",$$slots:{default:[ct]},$$scope:{ctx:e}}}),ne=new $e({props:{title:"Links",$$slots:{default:[dt]},$$scope:{ctx:e}}}),ie=new $e({props:{title:"Actions",$$slots:{default:[ut]},$$scope:{ctx:e}}}),re=new Ge({props:{color:"green",$$slots:{default:[ht]},$$scope:{ctx:e}}});return{c(){t=b("div"),(n=b("div")).innerHTML='<h1 id="app-title" class="svelte-mx8k4g">Mermaid Live Editor</h1>',i=y(),r=b("div"),o=b("div"),(a=b("span")).innerHTML="<strong>Diagram presets:</strong>",l=y(),(c=b("button")).textContent="Flow Chart",d=y(),(u=b("button")).textContent="Sequence Diagram",h=y(),(f=b("button")).textContent="Class Diagram",g=y(),(w=b("button")).textContent="State Diagram",k=y(),(x=b("button")).textContent="Gantt Chart",L=y(),(M=b("button")).textContent="Pie Chart",D=y(),(E=b("button")).textContent="ER Diagram",T=y(),O=b("div"),N=b("div"),G(X.$$.fragment),I=y(),G(Q.$$.fragment),A=y(),R=b("div"),G(ee.$$.fragment),P=y(),j=b("div"),F=b("div"),G(te.$$.fragment),B=y(),G(ne.$$.fragment),W=y(),H=b("div"),G(ie.$$.fragment),Y=y(),V=b("div"),z=v("Powered by mermaid\n "),G(re.$$.fragment),S(n,"id","title-container"),S(n,"class","svelte-mx8k4g"),S(a,"id","sampleLoaderTitle"),S(c,"class","button-style svelte-mx8k4g"),S(u,"class","button-style svelte-mx8k4g"),S(f,"class","button-style svelte-mx8k4g"),S(w,"class","button-style svelte-mx8k4g"),S(x,"class","button-style svelte-mx8k4g"),S(M,"class","button-style svelte-mx8k4g"),S(E,"class","button-style svelte-mx8k4g"),S(o,"class","button-container svelte-mx8k4g"),S(r,"id","sampleLoader"),S(r,"class","svelte-mx8k4g"),S(N,"id","col1"),S(N,"class","svelte-mx8k4g"),S(F,"id","link-col1"),S(F,"class","svelte-mx8k4g"),S(H,"id","link-col2"),S(H,"class","svelte-mx8k4g"),S(j,"id","link-root"),S(j,"class","svelte-mx8k4g"),S(R,"id","col2"),S(R,"class","svelte-mx8k4g"),S(O,"id","editor-root"),S(O,"class","svelte-mx8k4g"),S(V,"id","power"),S(V,"class","svelte-mx8k4g"),S(t,"id","body"),S(t,"class","svelte-mx8k4g"),K=[C(c,"click",gt),C(u,"click",pt),C(f,"click",mt),C(w,"click",_t),C(x,"click",bt),C(M,"click",vt),C(E,"click",yt)]},m(e,s){m(e,t,s),p(t,n),p(t,i),p(t,r),p(r,o),p(o,a),p(o,l),p(o,c),p(o,d),p(o,u),p(o,h),p(o,f),p(o,g),p(o,w),p(o,k),p(o,x),p(o,L),p(o,M),p(o,D),p(o,E),p(t,T),p(t,O),p(O,N),Z(X,N,null),p(N,I),Z(Q,N,null),p(O,A),p(O,R),Z(ee,R,null),p(R,P),p(R,j),p(j,F),Z(te,F,null),p(F,B),Z(ne,F,null),p(j,W),p(j,H),Z(ie,H,null),p(t,Y),p(t,V),p(V,z),Z(re,V,null),U=!0},p(e,[t]){const n={};130&t&&(n.$$scope={dirty:t,ctx:e}),X.$set(n);const i={};128&t&&(i.$$scope={dirty:t,ctx:e}),Q.$set(i);const r={};128&t&&(r.$$scope={dirty:t,ctx:e}),ee.$set(r);const o={};132&t&&(o.$$scope={dirty:t,ctx:e}),te.$set(o);const s={};128&t&&(s.$$scope={dirty:t,ctx:e}),ne.$set(s);const a={};128&t&&(a.$$scope={dirty:t,ctx:e}),ie.$set(a);const l={};129&t&&(l.$$scope={dirty:t,ctx:e}),re.$set(l)},i(e){U||($(X.$$.fragment,e),$(Q.$$.fragment,e),$(ee.$$.fragment,e),$(te.$$.fragment,e),$(ne.$$.fragment,e),$(ie.$$.fragment,e),$(re.$$.fragment,e),U=!0)},o(e){q(X.$$.fragment,e),q(Q.$$.fragment,e),q(ee.$$.fragment,e),q(te.$$.fragment,e),q(ne.$$.fragment,e),q(ie.$$.fragment,e),q(re.$$.fragment,e),U=!1},d(e){e&&_(t),J(X),J(Q),J(ee),J(te),J(ne),J(ie),J(re),s(K)}}}function gt(){wt("FlowChart")}function pt(){wt("SequenceDiagram")}function mt(){wt("ClassDiagram")}function _t(){wt("StateDiagram")}function bt(){wt("GanttChart")}function vt(){wt("PieChart")}function yt(){wt("ERDiagram")}function wt(e){let t="";switch(e){case"FlowChart":t="graph TD\n A[Christmas] --\x3e|Get money| B(Go shopping)\n B --\x3e C{Let me think}\n C --\x3e|One| D[Laptop]\n C --\x3e|Two| E[iPhone]\n C --\x3e|Three| F[fa:fa-car Car]\n ";break;case"SequenceDiagram":t="sequenceDiagram\n Alice->>+John: Hello John, how are you?\n Alice->>+John: John, can you hear me?\n John--\x3e>-Alice: Hi Alice, I can hear you!\n John--\x3e>-Alice: I feel great!\n ";break;case"ClassDiagram":t="classDiagram\n Animal <|-- Duck\n Animal <|-- Fish\n Animal <|-- Zebra\n Animal : +int age\n Animal : +String gender\n Animal: +isMammal()\n Animal: +mate()\n class Duck{\n +String beakColor\n +swim()\n +quack()\n }\n class Fish{\n -int sizeInFeet\n -canEat()\n }\n class Zebra{\n +bool is_wild\n +run()\n }\n ";break;case"StateDiagram":t="stateDiagram-v2\n [*] --\x3e Still\n Still --\x3e [*]\n Still --\x3e Moving\n Moving --\x3e Still\n Moving --\x3e Crash\n Crash --\x3e [*]\n ";break;case"GanttChart":t="gantt\n title A Gantt Diagram\n dateFormat YYYY-MM-DD\n section Section\n A task :a1, 2014-01-01, 30d\n Another task :after a1 , 20d\n section Another\n Task in sec :2014-01-12 , 12d\n another task : 24d\n ";break;case"PieChart":t='pie title Pets adopted by volunteers\n "Dogs" : 386\n "Cats" : 85\n "Rats" : 15\n ';break;case"ERDiagram":t='erDiagram\n CUSTOMER }|..|{ DELIVERY-ADDRESS : has\n CUSTOMER ||--o{ ORDER : places\n CUSTOMER ||--o{ INVOICE : "liable for"\n DELIVERY-ADDRESS ||--o{ ORDER : receives\n INVOICE ||--|{ ORDER : covers\n ORDER ||--|{ ORDER-ITEM : includes\n PRODUCT-CATEGORY ||--|{ PRODUCT : contains\n PRODUCT ||--o{ ORDER-ITEM : "ordered in"\n '}Ct(t)}function Ct(e){e&&_e(e,!0)}function St(e){return`${Je()(e).fromNow()} (${new Date(e).toLocaleString()})`}function kt(e,t,n){let{mermaidVersion:i=tt.version}=t,r=[];O(async()=>{ga("send","pageview"),ga("send","event","version",i,i);n(2,r=JSON.parse(localStorage.getItem("_mermaid_history_")||"[]"));let e=r.length>0?r[r.length-1]:null;o.data?pe(o.data):e&&me({code:e.code,mermaid:{},updateEditor:!0});let t=null;ge.subscribe(e=>{t=e&&e.code||t}),setInterval(()=>{t!=e&&(r.unshift({time:(new Date).toISOString(),code:e=t}),r.length>10&&r.pop(),localStorage.setItem("_mermaid_history_",JSON.stringify(r))),n(2,r)},6e4)});let{params:o={}}=t;return e.$set=e=>{"mermaidVersion"in e&&n(0,i=e.mermaidVersion),"params"in e&&n(1,o=e.params)},[i,o,r,(e,t)=>Ct(e.code)]}var xt=class extends Q{constructor(e){super(),X(this,e,kt,ft,l,{mermaidVersion:0,params:1})}};n(898);function Lt(e){let t,n;const r=new Ve({});return{c(){t=b("div"),G(r.$$.fragment),S(t,"id","view-page"),S(t,"class","svelte-clxwlp")},m(e,i){m(e,t,i),Z(r,t,null),n=!0},p:i,i(e){n||($(r.$$.fragment,e),n=!0)},o(e){q(r.$$.fragment,e),n=!1},d(e){e&&_(t),J(r)}}}function Mt(e){return O(async()=>{ga("send","pageview")}),[]}var Dt=class extends Q{constructor(e){super(),X(this,e,Mt,Lt,l,{})}};function Et(e){let t,n,r;const o=new ue({props:{routes:e[0]}});return{c(){t=b("link"),n=y(),G(o.$$.fragment),S(t,"href","https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap"),S(t,"rel","stylesheet")},m(e,i){p(document.head,t),m(e,n,i),Z(o,e,i),r=!0},p:i,i(e){r||($(o.$$.fragment,e),r=!0)},o(e){q(o.$$.fragment,e),r=!1},d(e){_(t),e&&_(n),J(o,e)}}}function Tt(e){return[{"/":xt,"/edit/:data":xt,"/view/:data":Dt,"*":xt}]}const Ot=new class extends Q{constructor(e){super(),X(this,e,Tt,Et,l,{})}}({target:document.body,props:{name:"world"}});window.app=Ot;t.default=Ot},function(e,t,n){"use strict";n(85),n(184),n(341),n(340),n(276),n(277),n(332),n(289),n(278),n(279),n(327),n(222),n(330),n(280),n(281),n(333),n(168),n(324),n(282),n(328);var i=n(24),r=n(3),o=n(54),s=n(26),a=n(110),l=n(210),c=n(28),d=n(20),u=n(38),h=function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};function f(e,t,n){return h(this,void 0,void 0,(function*(){const i=yield l.b.create(e,n),r=[];for(const e of i.children.values())e instanceof l.a?r.push(e.symbol):r.push(...u.a.map(e.children.values(),e=>e.symbol));let o=[];return n.isCancellationRequested?o:(t?function e(t,n,i){for(let r of n)t.push({kind:r.kind,tags:r.tags,name:r.name,detail:r.detail,containerName:r.containerName||i,range:r.range,selectionRange:r.selectionRange,children:void 0}),r.children&&e(t,r.children,r.name)}(o,r,""):o=r,o.sort(g))}))}function g(e,t){return r.a.compareRangesUsingStarts(e.range,t.range)}c.a.registerCommand("_executeDocumentSymbolProvider",(function(e,...t){return h(this,void 0,void 0,(function*(){const[n]=t;Object(d.b)(i.a.isUri(n));const r=e.get(o.a).getModel(n);if(r)return f(r,!1,s.a.None);const l=yield e.get(a.a).createModelReference(n);try{return yield f(l.object.textEditorModel,!1,s.a.None)}finally{l.dispose()}}))}));n(225),n(223),n(202),n(323),n(284),n(335),n(325),n(336),n(286),n(329),n(287),n(338),n(339),n(151),n(322);var p=n(0),m=n(4),_=n(169);class b extends m.b{constructor(){super({id:"editor.action.forceRetokenize",label:p.a("forceRetokenize","Developer: Force Retokenize"),alias:"Developer: Force Retokenize",precondition:void 0})}run(e,t){if(!t.hasModel())return;const n=t.getModel();n.resetTokenization();const i=new _.a(!0);n.forceTokenization(n.getLineCount()),i.stop(),console.log(`tokenization took ${i.elapsed()}`)}}Object(m.k)(b);n(198),n(290),n(291),n(292),n(172),n(293),n(44),n(163)},function(e,t,n){"use strict";n(87);var i,r,o,s,a,l=n(199);!function(e){e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ESNext=99]="ESNext"}(i||(i={})),function(e){e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative"}(r||(r={})),function(e){e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed"}(o||(o={})),function(e){e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest"}(s||(s={})),function(e){e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs"}(a||(a={}));var c=function(){function e(e,t,n){this._onDidChange=new l.Emitter,this._onDidExtraLibsChange=new l.Emitter,this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(e),this.setDiagnosticsOptions(t),this.setWorkerOptions(n),this._onDidExtraLibsChangeTimeout=-1}return Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onDidExtraLibsChange",{get:function(){return this._onDidExtraLibsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"workerOptions",{get:function(){return this._workerOptions},enumerable:!1,configurable:!0}),e.prototype.getExtraLibs=function(){return this._extraLibs},e.prototype.addExtraLib=function(e,t){var n,i=this;if(n=void 0===t?"ts:extralib-"+Math.random().toString(36).substring(2,15):t,this._extraLibs[n]&&this._extraLibs[n].content===e)return{dispose:function(){}};var r=1;return this._removedExtraLibs[n]&&(r=this._removedExtraLibs[n]+1),this._extraLibs[n]&&(r=this._extraLibs[n].version+1),this._extraLibs[n]={content:e,version:r},this._fireOnDidExtraLibsChangeSoon(),{dispose:function(){var e=i._extraLibs[n];e&&e.version===r&&(delete i._extraLibs[n],i._removedExtraLibs[n]=r,i._fireOnDidExtraLibsChangeSoon())}}},e.prototype.setExtraLibs=function(e){for(var t in this._extraLibs)this._removedExtraLibs[t]=this._extraLibs[t].version;if(this._extraLibs=Object.create(null),e&&e.length>0)for(var n=0,i=e;n<i.length;n++){var r=i[n],o=(t=r.filePath||"ts:extralib-"+Math.random().toString(36).substring(2,15),r.content),s=1;this._removedExtraLibs[t]&&(s=this._removedExtraLibs[t]+1),this._extraLibs[t]={content:o,version:s}}this._fireOnDidExtraLibsChangeSoon()},e.prototype._fireOnDidExtraLibsChangeSoon=function(){var e=this;-1===this._onDidExtraLibsChangeTimeout&&(this._onDidExtraLibsChangeTimeout=setTimeout((function(){e._onDidExtraLibsChangeTimeout=-1,e._onDidExtraLibsChange.fire(void 0)}),0))},e.prototype.getCompilerOptions=function(){return this._compilerOptions},e.prototype.setCompilerOptions=function(e){this._compilerOptions=e||Object.create(null),this._onDidChange.fire(void 0)},e.prototype.getDiagnosticsOptions=function(){return this._diagnosticsOptions},e.prototype.setDiagnosticsOptions=function(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(void 0)},e.prototype.setWorkerOptions=function(e){this._workerOptions=e||Object.create(null),this._onDidChange.fire(void 0)},e.prototype.setMaximumWorkerIdleTime=function(e){},e.prototype.setEagerModelSync=function(e){this._eagerModelSync=e},e.prototype.getEagerModelSync=function(){return this._eagerModelSync},e}(),d=new c({allowNonTsExtensions:!0,target:s.Latest},{noSemanticValidation:!1,noSyntaxValidation:!1},{}),u=new c({allowNonTsExtensions:!0,allowJs:!0,target:s.Latest},{noSemanticValidation:!0,noSyntaxValidation:!1},{});function h(){return n.e(70).then(n.bind(null,976))}l.languages.typescript={ModuleKind:i,JsxEmit:r,NewLineKind:o,ScriptTarget:s,ModuleResolutionKind:a,typescriptVersion:"4.0.3",typescriptDefaults:d,javascriptDefaults:u,getTypeScriptWorker:function(){return h().then((function(e){return e.getTypeScriptWorker()}))},getJavaScriptWorker:function(){return h().then((function(e){return e.getJavaScriptWorker()}))}},l.languages.onLanguage("typescript",(function(){return h().then((function(e){return e.setupTypeScript(d)}))})),l.languages.onLanguage("javascript",(function(){return h().then((function(e){return e.setupJavaScript(u)}))}))}]); \ No newline at end of file diff --git a/docs/codicon.ttf b/docs/codicon.ttf new file mode 100644 index 00000000..82acc899 Binary files /dev/null and b/docs/codicon.ttf differ diff --git a/docs/editor.worker.js b/docs/editor.worker.js new file mode 100644 index 00000000..2d88f1ad --- /dev/null +++ b/docs/editor.worker.js @@ -0,0 +1 @@ +!function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=4)}([function(e,t,n){"use strict";(function(e,i){n.d(t,"d",(function(){return _})),n.d(t,"b",(function(){return p})),n.d(t,"c",(function(){return C})),n.d(t,"a",(function(){return b})),n.d(t,"e",(function(){return L}));let r=!1,s=!1,o=!1,a=!1,l=!1,u=!1,h=void 0,c="en",d=void 0,f=void 0;const m=void 0!==e&&void 0!==e.versions&&void 0!==e.versions.electron&&"renderer"===e.type;if("object"!=typeof navigator||m){if("object"==typeof e){r="win32"===e.platform,s="darwin"===e.platform,o="linux"===e.platform,h="en",c="en";const t=e.env.VSCODE_NLS_CONFIG;if(t)try{const e=JSON.parse(t),n=e.availableLanguages["*"];h=e.locale,c=n||"en",d=e._translationsConfigFile}catch(e){}a=!0}}else r=(f=navigator.userAgent).indexOf("Windows")>=0,s=f.indexOf("Macintosh")>=0,u=(f.indexOf("Macintosh")>=0||f.indexOf("iPad")>=0||f.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,o=f.indexOf("Linux")>=0,l=!0,c=h=navigator.language;let g=0;s?g=1:r?g=3:o&&(g=2);const _=r,p=s,C=l,b="object"==typeof self?self:"object"==typeof i?i:{},L=function(){if(b.setImmediate)return b.setImmediate.bind(b);if("function"==typeof b.postMessage&&!b.importScripts){let e=[];b.addEventListener("message",t=>{if(t.data&&t.data.vscodeSetImmediateId)for(let n=0,i=e.length;n<i;n++){const i=e[n];if(i.id===t.data.vscodeSetImmediateId)return e.splice(n,1),void i.callback()}});let t=0;return n=>{const i=++t;e.push({id:i,callback:n}),b.postMessage({vscodeSetImmediateId:i},"*")}}if(void 0!==e&&"function"==typeof e.nextTick)return e.nextTick.bind(e);const t=Promise.resolve();return e=>t.then(e)}()}).call(this,n(2),n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a}));var i=n(0);const r=void 0===e?{cwd:()=>"/",env:Object.create(null),get platform(){return i.d?"win32":i.b?"darwin":"linux"},nextTick:e=>Object(i.e)(e)}:e,s=r.cwd,o=r.env,a=r.platform}).call(this,n(2))},function(e,t){var n,i,r=e.exports={};function s(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===s||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:s}catch(e){n=s}try{i="function"==typeof clearTimeout?clearTimeout:o}catch(e){i=o}}();var l,u=[],h=!1,c=-1;function d(){h&&l&&(h=!1,l.length?u=l.concat(u):c=-1,u.length&&f())}function f(){if(!h){var e=a(d);h=!0;for(var t=u.length;t;){for(l=u,u=[];++c<t;)l&&l[c].run();c=-1,t=u.length}l=null,h=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===o||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function g(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new m(e,t)),1!==u.length||h||a(f)},m.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=g,r.addListener=g,r.once=g,r.off=g,r.removeListener=g,r.removeAllListeners=g,r.emit=g,r.prependListener=g,r.prependOnceListener=g,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";n.r(t);const i=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{if(e.stack)throw new Error(e.message+"\n\n"+e.stack);throw e},0)}}emit(e){this.listeners.forEach(t=>{t(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function r(e){a(e)||i.onUnexpectedError(e)}function s(e){if(e instanceof Error){let{name:t,message:n}=e;return{$isError:!0,name:t,message:n,stack:e.stacktrace||e.stack}}return e}const o="Canceled";function a(e){return e instanceof Error&&e.name===o&&e.message===o}var l;!function(e){e.is=function(e){return e&&"object"==typeof e&&"function"==typeof e[Symbol.iterator]};const t=Object.freeze([]);e.empty=function(){return t},e.single=function*(e){yield e},e.from=function(e){return e||t},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,t){for(const n of e)if(t(n))return!0;return!1},e.filter=function*(e,t){for(const n of e)t(n)&&(yield n)},e.map=function*(e,t){for(const n of e)yield t(n)},e.concat=function*(...e){for(const t of e)for(const e of t)yield e},e.consume=function(t,n=Number.POSITIVE_INFINITY){const i=[];if(0===n)return[i,t];const r=t[Symbol.iterator]();for(let t=0;t<n;t++){const t=r.next();if(t.done)return[i,e.empty()];i.push(t.value)}return[i,{[Symbol.iterator]:()=>r}]}}(l||(l={}));const u=!1,h="__is_disposable_tracked__";function c(e){if(u&&e&&e!==_.None)try{e[h]=!0}catch(e){}}function d(e){if(!u)return e;const t=new Error("Potentially leaked disposable").stack;return setTimeout(()=>{e[h]||console.log(t)},3e3),e}class f extends Error{constructor(e){super(`Encounter errors while disposing of store. Errors: [${e.join(", ")}]`),this.errors=e}}function m(e){if(l.is(e)){let t=[];for(const n of e)if(n){c(n);try{n.dispose()}catch(e){t.push(e)}}if(1===t.length)throw t[0];if(t.length>1)throw new f(t);return Array.isArray(e)?[]:e}if(e)return c(e),e.dispose(),e}class g{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(c(this),this._isDisposed=!0,this.clear())}clear(){try{m(this._toDispose.values())}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return c(e),this._isDisposed?g.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}}g.DISABLE_DISPOSED_WARNING=!1;class _{constructor(){this._store=new g,d(this)}dispose(){c(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}_.None=Object.freeze({dispose(){}});var p=n(0);function C(e){const t=[];for(const n of function(e){let t=[],n=Object.getPrototypeOf(e);for(;Object.prototype!==n;)t=t.concat(Object.getOwnPropertyNames(n)),n=Object.getPrototypeOf(n);return t}(e))"function"==typeof e[n]&&t.push(n);return t}function b(e,t){const n=e=>(function(){const n=Array.prototype.slice.call(arguments,0);return t(e,n)});let i={};for(const t of e)i[t]=n(t);return i}const L="$initialize";class S{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null)}setWorkerId(e){this._workerId=e}sendMessage(e,t){let n=String(++this._lastSentReq);return new Promise((i,r)=>{this._pendingReplies[n]={resolve:i,reject:r},this._send({vsWorker:this._workerId,req:n,method:e,args:t})})}handleMessage(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))}_handleMessage(e){if(e.seq){let t=e;if(!this._pendingReplies[t.seq])return void console.warn("Got reply to unknown seq");let n=this._pendingReplies[t.seq];if(delete this._pendingReplies[t.seq],t.err){let e=t.err;return t.err.$isError&&((e=new Error).name=t.err.name,e.message=t.err.message,e.stack=t.err.stack),void n.reject(e)}return void n.resolve(t.res)}let t=e,n=t.req;this._handler.handleMessage(t.method,t.args).then(e=>{this._send({vsWorker:this._workerId,seq:n,res:e,err:void 0})},e=>{e.detail instanceof Error&&(e.detail=s(e.detail)),this._send({vsWorker:this._workerId,seq:n,res:void 0,err:s(e)})})}_send(e){let t=[];if(e.req){const n=e;for(let e=0;e<n.args.length;e++)n.args[e]instanceof ArrayBuffer&&t.push(n.args[e])}else{const n=e;n.res instanceof ArrayBuffer&&t.push(n.res)}this._handler.sendMessage(e,t)}}class N{constructor(e,t){this._requestHandlerFactory=t,this._requestHandler=null,this._protocol=new S({sendMessage:(t,n)=>{e(t,n)},handleMessage:(e,t)=>this._handleMessage(e,t)})}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,t){if(e===L)return this.initialize(t[0],t[1],t[2],t[3]);if(!this._requestHandler||"function"!=typeof this._requestHandler[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._requestHandler[e].apply(this._requestHandler,t))}catch(e){return Promise.reject(e)}}initialize(e,t,n,i){this._protocol.setWorkerId(e);const r=b(i,(e,t)=>this._protocol.sendMessage(e,t));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(r),Promise.resolve(C(this._requestHandler))):(t&&(void 0!==t.baseUrl&&delete t.baseUrl,void 0!==t.paths&&void 0!==t.paths.vs&&delete t.paths.vs,t.catchError=!0,self.require.config(t)),new Promise((e,t)=>{self.require([n],n=>{this._requestHandler=n.create(r),this._requestHandler?e(C(this._requestHandler)):t(new Error("No RequestHandler!"))},t)}))}}function E(e,t){return function e(t,n,i,r,s){if(r<=i)return;const o=i+(r-i)/2|0;if(e(t,n,i,o,s),e(t,n,o+1,r,s),n(t[o],t[o+1])<=0)return;!function(e,t,n,i,r,s){let o=n,a=i+1;for(let t=n;t<=r;t++)s[t]=e[t];for(let l=n;l<=r;l++)o>i?e[l]=s[a++]:a>r?e[l]=s[o++]:t(s[a],s[o])<0?e[l]=s[a++]:e[l]=s[o++]}(t,n,i,o,r,s)}(e,t,0,e.length-1,[]),e}class A{constructor(e,t,n,i){this.originalStart=e,this.originalLength=t,this.modifiedStart=n,this.modifiedLength=i}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function y(e){return 55296<=e&&e<=56319}function w(e){return 56320<=e&&e<=57343}function v(e,t){return t-56320+(e-55296<<10)+65536}String.fromCharCode(65279);class T{constructor(){this._data=JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}static getInstance(){return T._INSTANCE||(T._INSTANCE=new T),T._INSTANCE}getGraphemeBreakType(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;const t=this._data,n=t.length/3;let i=1;for(;i<=n;)if(e<t[3*i])i*=2;else{if(!(e>t[3*i+1]))return t[3*i+2];i=2*i+1}return 0}}function O(e,t){return(t<<5)-t+e|0}function M(e,t){t=O(149417,t);for(let n=0,i=e.length;n<i;n++)t=O(e.charCodeAt(n),t);return t}function x(e,t,n=32){const i=n-t;return(e<<t|(~((1<<i)-1)&e)>>>i)>>>0}function I(e,t=0,n=e.byteLength,i=0){for(let r=0;r<n;r++)e[t+r]=i}function P(e,t=32){return function(e,t,n="0"){for(;e.length<t;)e=n+e;return e}((e>>>0).toString(16),t/4)}T._INSTANCE=null;class R{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const t=e.length;if(0===t)return;const n=this._buff;let i,r,s=this._buffLen,o=this._leftoverHighSurrogate;for(0!==o?(i=o,r=-1,o=0):(i=e.charCodeAt(0),r=0);;){let a=i;if(y(i)){if(!(r+1<t)){o=i;break}{const t=e.charCodeAt(r+1);w(t)?(r++,a=v(i,t)):a=65533}}else w(i)&&(a=65533);if(s=this._push(n,s,a),!(++r<t))break;i=e.charCodeAt(r)}this._buffLen=s,this._leftoverHighSurrogate=o}_push(e,t,n){return n<128?e[t++]=n:n<2048?(e[t++]=192|(1984&n)>>>6,e[t++]=128|(63&n)>>>0):n<65536?(e[t++]=224|(61440&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>0):(e[t++]=240|(1835008&n)>>>18,e[t++]=128|(258048&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),t}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),P(this._h0)+P(this._h1)+P(this._h2)+P(this._h3)+P(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,I(this._buff,this._buffLen),this._buffLen>56&&(this._step(),I(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=R._bigBlock32,t=this._buffDV;for(let n=0;n<64;n+=4)e.setUint32(n,t.getUint32(n,!1),!1);for(let t=64;t<320;t+=4)e.setUint32(t,x(e.getUint32(t-12,!1)^e.getUint32(t-32,!1)^e.getUint32(t-56,!1)^e.getUint32(t-64,!1),1),!1);let n,i,r,s=this._h0,o=this._h1,a=this._h2,l=this._h3,u=this._h4;for(let t=0;t<80;t++)t<20?(n=o&a|~o&l,i=1518500249):t<40?(n=o^a^l,i=1859775393):t<60?(n=o&a|o&l|a&l,i=2400959708):(n=o^a^l,i=3395469782),r=x(s,5)+n+u+i+e.getUint32(4*t,!1)&4294967295,u=l,l=a,a=x(o,30),o=s,s=r;this._h0=this._h0+s&4294967295,this._h1=this._h1+o&4294967295,this._h2=this._h2+a&4294967295,this._h3=this._h3+l&4294967295,this._h4=this._h4+u&4294967295}}R._bigBlock32=new DataView(new ArrayBuffer(320));class k{constructor(e){this.source=e}getElements(){const e=this.source,t=new Int32Array(e.length);for(let n=0,i=e.length;n<i;n++)t[n]=e.charCodeAt(n);return t}}function U(e,t,n){return new B(new k(e),new k(t)).ComputeDiff(n).changes}class D{static Assert(e,t){if(!e)throw new Error(t)}}class F{static Copy(e,t,n,i,r){for(let s=0;s<r;s++)n[i+s]=e[t+s]}static Copy2(e,t,n,i,r){for(let s=0;s<r;s++)n[i+s]=e[t+s]}}class K{constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new A(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class B{constructor(e,t,n=null){this.ContinueProcessingPredicate=n;const[i,r,s]=B._getElements(e),[o,a,l]=B._getElements(t);this._hasStrings=s&&l,this._originalStringElements=i,this._originalElementsOrHash=r,this._modifiedStringElements=o,this._modifiedElementsOrHash=a,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&"string"==typeof e[0]}static _getElements(e){const t=e.getElements();if(B._isStringArray(t)){const e=new Int32Array(t.length);for(let n=0,i=t.length;n<i;n++)e[n]=M(t[n],0);return[t,e,!0]}return t instanceof Int32Array?[[],t,!1]:[[],new Int32Array(t),!1]}ElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._modifiedStringElements[t])}OriginalElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._originalElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._originalStringElements[t])}ModifiedElementsAreEqual(e,t){return this._modifiedElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._modifiedStringElements[e]===this._modifiedStringElements[t])}ComputeDiff(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)}_ComputeDiff(e,t,n,i,r){const s=[!1];let o=this.ComputeDiffRecursive(e,t,n,i,s);return r&&(o=this.PrettifyChanges(o)),{quitEarly:s[0],changes:o}}ComputeDiffRecursive(e,t,n,i,r){for(r[0]=!1;e<=t&&n<=i&&this.ElementsAreEqual(e,n);)e++,n++;for(;t>=e&&i>=n&&this.ElementsAreEqual(t,i);)t--,i--;if(e>t||n>i){let r;return n<=i?(D.Assert(e===t+1,"originalStart should only be one more than originalEnd"),r=[new A(e,0,n,i-n+1)]):e<=t?(D.Assert(n===i+1,"modifiedStart should only be one more than modifiedEnd"),r=[new A(e,t-e+1,n,0)]):(D.Assert(e===t+1,"originalStart should only be one more than originalEnd"),D.Assert(n===i+1,"modifiedStart should only be one more than modifiedEnd"),r=[]),r}const s=[0],o=[0],a=this.ComputeRecursionPoint(e,t,n,i,s,o,r),l=s[0],u=o[0];if(null!==a)return a;if(!r[0]){const s=this.ComputeDiffRecursive(e,l,n,u,r);let o=[];return o=r[0]?[new A(l+1,t-(l+1)+1,u+1,i-(u+1)+1)]:this.ComputeDiffRecursive(l+1,t,u+1,i,r),this.ConcatenateChanges(s,o)}return[new A(e,t-e+1,n,i-n+1)]}WALKTRACE(e,t,n,i,r,s,o,a,l,u,h,c,d,f,m,g,_,p){let C=null,b=null,L=new K,S=t,N=n,E=d[0]-g[0]-i,y=-1073741824,w=this.m_forwardHistory.length-1;do{const t=E+e;t===S||t<N&&l[t-1]<l[t+1]?(f=(h=l[t+1])-E-i,h<y&&L.MarkNextChange(),y=h,L.AddModifiedElement(h+1,f),E=t+1-e):(f=(h=l[t-1]+1)-E-i,h<y&&L.MarkNextChange(),y=h-1,L.AddOriginalElement(h,f+1),E=t-1-e),w>=0&&(e=(l=this.m_forwardHistory[w])[0],S=1,N=l.length-1)}while(--w>=-1);if(C=L.getReverseChanges(),p[0]){let e=d[0]+1,t=g[0]+1;if(null!==C&&C.length>0){const n=C[C.length-1];e=Math.max(e,n.getOriginalEnd()),t=Math.max(t,n.getModifiedEnd())}b=[new A(e,c-e+1,t,m-t+1)]}else{L=new K,S=s,N=o,E=d[0]-g[0]-a,y=1073741824,w=_?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const e=E+r;e===S||e<N&&u[e-1]>=u[e+1]?(f=(h=u[e+1]-1)-E-a,h>y&&L.MarkNextChange(),y=h+1,L.AddOriginalElement(h+1,f+1),E=e+1-r):(f=(h=u[e-1])-E-a,h>y&&L.MarkNextChange(),y=h,L.AddModifiedElement(h+1,f+1),E=e-1-r),w>=0&&(r=(u=this.m_reverseHistory[w])[0],S=1,N=u.length-1)}while(--w>=-1);b=L.getChanges()}return this.ConcatenateChanges(C,b)}ComputeRecursionPoint(e,t,n,i,r,s,o){let a=0,l=0,u=0,h=0,c=0,d=0;e--,n--,r[0]=0,s[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const f=t-e+(i-n),m=f+1,g=new Int32Array(m),_=new Int32Array(m),p=i-n,C=t-e,b=e-n,L=t-i,S=(C-p)%2==0;g[p]=e,_[C]=t,o[0]=!1;for(let N=1;N<=f/2+1;N++){let f=0,E=0;u=this.ClipDiagonalBound(p-N,N,p,m),h=this.ClipDiagonalBound(p+N,N,p,m);for(let e=u;e<=h;e+=2){l=(a=e===u||e<h&&g[e-1]<g[e+1]?g[e+1]:g[e-1]+1)-(e-p)-b;const n=a;for(;a<t&&l<i&&this.ElementsAreEqual(a+1,l+1);)a++,l++;if(g[e]=a,a+l>f+E&&(f=a,E=l),!S&&Math.abs(e-C)<=N-1&&a>=_[e])return r[0]=a,s[0]=l,n<=_[e]&&N<=1448?this.WALKTRACE(p,u,h,b,C,c,d,L,g,_,a,t,r,l,i,s,S,o):null}const y=(f-e+(E-n)-N)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(f,y))return o[0]=!0,r[0]=f,s[0]=E,y>0&&N<=1448?this.WALKTRACE(p,u,h,b,C,c,d,L,g,_,a,t,r,l,i,s,S,o):(e++,n++,[new A(e,t-e+1,n,i-n+1)]);c=this.ClipDiagonalBound(C-N,N,C,m),d=this.ClipDiagonalBound(C+N,N,C,m);for(let f=c;f<=d;f+=2){l=(a=f===c||f<d&&_[f-1]>=_[f+1]?_[f+1]-1:_[f-1])-(f-C)-L;const m=a;for(;a>e&&l>n&&this.ElementsAreEqual(a,l);)a--,l--;if(_[f]=a,S&&Math.abs(f-p)<=N&&a<=g[f])return r[0]=a,s[0]=l,m>=g[f]&&N<=1448?this.WALKTRACE(p,u,h,b,C,c,d,L,g,_,a,t,r,l,i,s,S,o):null}if(N<=1447){let e=new Int32Array(h-u+2);e[0]=p-u+1,F.Copy2(g,u,e,1,h-u+1),this.m_forwardHistory.push(e),(e=new Int32Array(d-c+2))[0]=C-c+1,F.Copy2(_,c,e,1,d-c+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(p,u,h,b,C,c,d,L,g,_,a,t,r,l,i,s,S,o)}PrettifyChanges(e){for(let t=0;t<e.length;t++){const n=e[t],i=t<e.length-1?e[t+1].originalStart:this._originalElementsOrHash.length,r=t<e.length-1?e[t+1].modifiedStart:this._modifiedElementsOrHash.length,s=n.originalLength>0,o=n.modifiedLength>0;for(;n.originalStart+n.originalLength<i&&n.modifiedStart+n.modifiedLength<r&&(!s||this.OriginalElementsAreEqual(n.originalStart,n.originalStart+n.originalLength))&&(!o||this.ModifiedElementsAreEqual(n.modifiedStart,n.modifiedStart+n.modifiedLength));)n.originalStart++,n.modifiedStart++;let a=[null];t<e.length-1&&this.ChangesOverlap(e[t],e[t+1],a)&&(e[t]=a[0],e.splice(t+1,1),t--)}for(let t=e.length-1;t>=0;t--){const n=e[t];let i=0,r=0;if(t>0){const n=e[t-1];n.originalLength>0&&(i=n.originalStart+n.originalLength),n.modifiedLength>0&&(r=n.modifiedStart+n.modifiedLength)}const s=n.originalLength>0,o=n.modifiedLength>0;let a=0,l=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength);for(let e=1;;e++){const t=n.originalStart-e,u=n.modifiedStart-e;if(t<i||u<r)break;if(s&&!this.OriginalElementsAreEqual(t,t+n.originalLength))break;if(o&&!this.ModifiedElementsAreEqual(u,u+n.modifiedLength))break;const h=this._boundaryScore(t,n.originalLength,u,n.modifiedLength);h>l&&(l=h,a=e)}n.originalStart-=a,n.modifiedStart-=a}return e}_OriginalIsBoundary(e){return e<=0||e>=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1}_boundaryScore(e,t,n,i){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(n,i)?1:0)}ConcatenateChanges(e,t){let n=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){const i=new Array(e.length+t.length-1);return F.Copy(e,0,i,0,e.length-1),i[e.length-1]=n[0],F.Copy(t,1,i,e.length,t.length-1),i}{const n=new Array(e.length+t.length);return F.Copy(e,0,n,0,e.length),F.Copy(t,0,n,e.length,t.length),n}}ChangesOverlap(e,t,n){if(D.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),D.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){const i=e.originalStart;let r=e.originalLength;const s=e.modifiedStart;let o=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(r=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(o=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new A(i,r,s,o),!0}return n[0]=null,!1}ClipDiagonalBound(e,t,n,i){if(e>=0&&e<i)return e;const r=t%2==0;if(e<0){return r===(n%2==0)?0:1}return r===((i-n-1)%2==0)?i-1:i-2}}var W=n(1);const q=65,H=97,V=90,Y=122,$=46,j=47,G=92;class z extends Error{constructor(e,t,n){let i;"string"==typeof t&&0===t.indexOf("not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";const r=-1!==e.indexOf(".")?"property":"argument";let s=`The "${e}" ${r} ${i} of type ${t}`;super(s+=`. Received type ${typeof n}`),this.code="ERR_INVALID_ARG_TYPE"}}function Q(e,t){if("string"!=typeof e)throw new z(t,"string",e)}function X(e){return e===j||e===G}function Z(e){return e===j}function J(e){return e>=q&&e<=V||e>=H&&e<=Y}function ee(e,t,n,i){let r="",s=0,o=-1,a=0,l=0;for(let u=0;u<=e.length;++u){if(u<e.length)l=e.charCodeAt(u);else{if(i(l))break;l=j}if(i(l)){if(o===u-1||1===a);else if(2===a){if(r.length<2||2!==s||r.charCodeAt(r.length-1)!==$||r.charCodeAt(r.length-2)!==$){if(r.length>2){const e=r.lastIndexOf(n);-1===e?(r="",s=0):s=(r=r.slice(0,e)).length-1-r.lastIndexOf(n),o=u,a=0;continue}if(0!==r.length){r="",s=0,o=u,a=0;continue}}t&&(r+=r.length>0?`${n}..`:"..",s=2)}else r.length>0?r+=`${n}${e.slice(o+1,u)}`:r=e.slice(o+1,u),s=u-o-1;o=u,a=0}else l===$&&-1!==a?++a:a=-1}return r}function te(e,t){if(null===t||"object"!=typeof t)throw new z("pathObject","Object",t);const n=t.dir||t.root,i=t.base||`${t.name||""}${t.ext||""}`;return n?n===t.root?`${n}${i}`:`${n}${e}${i}`:i}const ne={resolve(...e){let t="",n="",i=!1;for(let r=e.length-1;r>=-1;r--){let s;if(r>=0){if(Q(s=e[r],"path"),0===s.length)continue}else 0===t.length?s=W.a():(void 0===(s=W.b[`=${t}`]||W.a())||s.slice(0,2).toLowerCase()!==t.toLowerCase()&&s.charCodeAt(2)===G)&&(s=`${t}\\`);const o=s.length;let a=0,l="",u=!1;const h=s.charCodeAt(0);if(1===o)X(h)&&(a=1,u=!0);else if(X(h))if(u=!0,X(s.charCodeAt(1))){let e=2,t=e;for(;e<o&&!X(s.charCodeAt(e));)e++;if(e<o&&e!==t){const n=s.slice(t,e);for(t=e;e<o&&X(s.charCodeAt(e));)e++;if(e<o&&e!==t){for(t=e;e<o&&!X(s.charCodeAt(e));)e++;e!==o&&e===t||(l=`\\\\${n}\\${s.slice(t,e)}`,a=e)}}}else a=1;else J(h)&&58===s.charCodeAt(1)&&(l=s.slice(0,2),a=2,o>2&&X(s.charCodeAt(2))&&(u=!0,a=3));if(l.length>0)if(t.length>0){if(l.toLowerCase()!==t.toLowerCase())continue}else t=l;if(i){if(t.length>0)break}else if(n=`${s.slice(a)}\\${n}`,i=u,u&&t.length>0)break}return n=ee(n,!i,"\\",X),i?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){Q(e,"path");const t=e.length;if(0===t)return".";let n,i=0,r=!1;const s=e.charCodeAt(0);if(1===t)return Z(s)?"\\":e;if(X(s))if(r=!0,X(e.charCodeAt(1))){let r=2,s=r;for(;r<t&&!X(e.charCodeAt(r));)r++;if(r<t&&r!==s){const o=e.slice(s,r);for(s=r;r<t&&X(e.charCodeAt(r));)r++;if(r<t&&r!==s){for(s=r;r<t&&!X(e.charCodeAt(r));)r++;if(r===t)return`\\\\${o}\\${e.slice(s)}\\`;r!==s&&(n=`\\\\${o}\\${e.slice(s,r)}`,i=r)}}}else i=1;else J(s)&&58===e.charCodeAt(1)&&(n=e.slice(0,2),i=2,t>2&&X(e.charCodeAt(2))&&(r=!0,i=3));let o=i<t?ee(e.slice(i),!r,"\\",X):"";return 0!==o.length||r||(o="."),o.length>0&&X(e.charCodeAt(t-1))&&(o+="\\"),void 0===n?r?`\\${o}`:o:r?`${n}\\${o}`:`${n}${o}`},isAbsolute(e){Q(e,"path");const t=e.length;if(0===t)return!1;const n=e.charCodeAt(0);return X(n)||t>2&&J(n)&&58===e.charCodeAt(1)&&X(e.charCodeAt(2))},join(...e){if(0===e.length)return".";let t,n;for(let i=0;i<e.length;++i){const r=e[i];Q(r,"path"),r.length>0&&(void 0===t?t=n=r:t+=`\\${r}`)}if(void 0===t)return".";let i=!0,r=0;if("string"==typeof n&&X(n.charCodeAt(0))){++r;const e=n.length;e>1&&X(n.charCodeAt(1))&&(++r,e>2&&(X(n.charCodeAt(2))?++r:i=!1))}if(i){for(;r<t.length&&X(t.charCodeAt(r));)r++;r>=2&&(t=`\\${t.slice(r)}`)}return ne.normalize(t)},relative(e,t){if(Q(e,"from"),Q(t,"to"),e===t)return"";const n=ne.resolve(e),i=ne.resolve(t);if(n===i)return"";if((e=n.toLowerCase())===(t=i.toLowerCase()))return"";let r=0;for(;r<e.length&&e.charCodeAt(r)===G;)r++;let s=e.length;for(;s-1>r&&e.charCodeAt(s-1)===G;)s--;const o=s-r;let a=0;for(;a<t.length&&t.charCodeAt(a)===G;)a++;let l=t.length;for(;l-1>a&&t.charCodeAt(l-1)===G;)l--;const u=l-a,h=o<u?o:u;let c=-1,d=0;for(;d<h;d++){const n=e.charCodeAt(r+d);if(n!==t.charCodeAt(a+d))break;n===G&&(c=d)}if(d!==h){if(-1===c)return i}else{if(u>h){if(t.charCodeAt(a+d)===G)return i.slice(a+d+1);if(2===d)return i.slice(a+d)}o>h&&(e.charCodeAt(r+d)===G?c=d:2===d&&(c=3)),-1===c&&(c=0)}let f="";for(d=r+c+1;d<=s;++d)d!==s&&e.charCodeAt(d)!==G||(f+=0===f.length?"..":"\\..");return a+=c,f.length>0?`${f}${i.slice(a,l)}`:(i.charCodeAt(a)===G&&++a,i.slice(a,l))},toNamespacedPath(e){if("string"!=typeof e)return e;if(0===e.length)return"";const t=ne.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===G){if(t.charCodeAt(1)===G){const e=t.charCodeAt(2);if(63!==e&&e!==$)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(J(t.charCodeAt(0))&&58===t.charCodeAt(1)&&t.charCodeAt(2)===G)return`\\\\?\\${t}`;return e},dirname(e){Q(e,"path");const t=e.length;if(0===t)return".";let n=-1,i=0;const r=e.charCodeAt(0);if(1===t)return X(r)?e:".";if(X(r)){if(n=i=1,X(e.charCodeAt(1))){let r=2,s=r;for(;r<t&&!X(e.charCodeAt(r));)r++;if(r<t&&r!==s){for(s=r;r<t&&X(e.charCodeAt(r));)r++;if(r<t&&r!==s){for(s=r;r<t&&!X(e.charCodeAt(r));)r++;if(r===t)return e;r!==s&&(n=i=r+1)}}}}else J(r)&&58===e.charCodeAt(1)&&(i=n=t>2&&X(e.charCodeAt(2))?3:2);let s=-1,o=!0;for(let n=t-1;n>=i;--n)if(X(e.charCodeAt(n))){if(!o){s=n;break}}else o=!1;if(-1===s){if(-1===n)return".";s=n}return e.slice(0,s)},basename(e,t){void 0!==t&&Q(t,"ext"),Q(e,"path");let n,i=0,r=-1,s=!0;if(e.length>=2&&J(e.charCodeAt(0))&&58===e.charCodeAt(1)&&(i=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(n=e.length-1;n>=i;--n){const l=e.charCodeAt(n);if(X(l)){if(!s){i=n+1;break}}else-1===a&&(s=!1,a=n+1),o>=0&&(l===t.charCodeAt(o)?-1==--o&&(r=n):(o=-1,r=a))}return i===r?r=a:-1===r&&(r=e.length),e.slice(i,r)}for(n=e.length-1;n>=i;--n)if(X(e.charCodeAt(n))){if(!s){i=n+1;break}}else-1===r&&(s=!1,r=n+1);return-1===r?"":e.slice(i,r)},extname(e){Q(e,"path");let t=0,n=-1,i=0,r=-1,s=!0,o=0;e.length>=2&&58===e.charCodeAt(1)&&J(e.charCodeAt(0))&&(t=i=2);for(let a=e.length-1;a>=t;--a){const t=e.charCodeAt(a);if(X(t)){if(!s){i=a+1;break}}else-1===r&&(s=!1,r=a+1),t===$?-1===n?n=a:1!==o&&(o=1):-1!==n&&(o=-1)}return-1===n||-1===r||0===o||1===o&&n===r-1&&n===i+1?"":e.slice(n,r)},format:te.bind(null,"\\"),parse(e){Q(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.length;let i=0,r=e.charCodeAt(0);if(1===n)return X(r)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(X(r)){if(i=1,X(e.charCodeAt(1))){let t=2,r=t;for(;t<n&&!X(e.charCodeAt(t));)t++;if(t<n&&t!==r){for(r=t;t<n&&X(e.charCodeAt(t));)t++;if(t<n&&t!==r){for(r=t;t<n&&!X(e.charCodeAt(t));)t++;t===n?i=t:t!==r&&(i=t+1)}}}}else if(J(r)&&58===e.charCodeAt(1)){if(n<=2)return t.root=t.dir=e,t;if(i=2,X(e.charCodeAt(2))){if(3===n)return t.root=t.dir=e,t;i=3}}i>0&&(t.root=e.slice(0,i));let s=-1,o=i,a=-1,l=!0,u=e.length-1,h=0;for(;u>=i;--u)if(X(r=e.charCodeAt(u))){if(!l){o=u+1;break}}else-1===a&&(l=!1,a=u+1),r===$?-1===s?s=u:1!==h&&(h=1):-1!==s&&(h=-1);return-1!==a&&(-1===s||0===h||1===h&&s===a-1&&s===o+1?t.base=t.name=e.slice(o,a):(t.name=e.slice(o,s),t.base=e.slice(o,a),t.ext=e.slice(s,a))),t.dir=o>0&&o!==i?e.slice(0,o-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},ie={resolve(...e){let t="",n=!1;for(let i=e.length-1;i>=-1&&!n;i--){const r=i>=0?e[i]:W.a();Q(r,"path"),0!==r.length&&(t=`${r}/${t}`,n=r.charCodeAt(0)===j)}return t=ee(t,!n,"/",Z),n?`/${t}`:t.length>0?t:"."},normalize(e){if(Q(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===j,n=e.charCodeAt(e.length-1)===j;return 0===(e=ee(e,!t,"/",Z)).length?t?"/":n?"./":".":(n&&(e+="/"),t?`/${e}`:e)},isAbsolute:e=>(Q(e,"path"),e.length>0&&e.charCodeAt(0)===j),join(...e){if(0===e.length)return".";let t;for(let n=0;n<e.length;++n){const i=e[n];Q(i,"path"),i.length>0&&(void 0===t?t=i:t+=`/${i}`)}return void 0===t?".":ie.normalize(t)},relative(e,t){if(Q(e,"from"),Q(t,"to"),e===t)return"";if((e=ie.resolve(e))===(t=ie.resolve(t)))return"";const n=e.length,i=n-1,r=t.length-1,s=i<r?i:r;let o=-1,a=0;for(;a<s;a++){const n=e.charCodeAt(1+a);if(n!==t.charCodeAt(1+a))break;n===j&&(o=a)}if(a===s)if(r>s){if(t.charCodeAt(1+a)===j)return t.slice(1+a+1);if(0===a)return t.slice(1+a)}else i>s&&(e.charCodeAt(1+a)===j?o=a:0===a&&(o=0));let l="";for(a=1+o+1;a<=n;++a)a!==n&&e.charCodeAt(a)!==j||(l+=0===l.length?"..":"/..");return`${l}${t.slice(1+o)}`},toNamespacedPath:e=>e,dirname(e){if(Q(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===j;let n=-1,i=!0;for(let t=e.length-1;t>=1;--t)if(e.charCodeAt(t)===j){if(!i){n=t;break}}else i=!1;return-1===n?t?"/":".":t&&1===n?"//":e.slice(0,n)},basename(e,t){void 0!==t&&Q(t,"ext"),Q(e,"path");let n,i=0,r=-1,s=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(n=e.length-1;n>=0;--n){const l=e.charCodeAt(n);if(l===j){if(!s){i=n+1;break}}else-1===a&&(s=!1,a=n+1),o>=0&&(l===t.charCodeAt(o)?-1==--o&&(r=n):(o=-1,r=a))}return i===r?r=a:-1===r&&(r=e.length),e.slice(i,r)}for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===j){if(!s){i=n+1;break}}else-1===r&&(s=!1,r=n+1);return-1===r?"":e.slice(i,r)},extname(e){Q(e,"path");let t=-1,n=0,i=-1,r=!0,s=0;for(let o=e.length-1;o>=0;--o){const a=e.charCodeAt(o);if(a!==j)-1===i&&(r=!1,i=o+1),a===$?-1===t?t=o:1!==s&&(s=1):-1!==t&&(s=-1);else if(!r){n=o+1;break}}return-1===t||-1===i||0===s||1===s&&t===i-1&&t===n+1?"":e.slice(t,i)},format:te.bind(null,"/"),parse(e){Q(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.charCodeAt(0)===j;let i;n?(t.root="/",i=1):i=0;let r=-1,s=0,o=-1,a=!0,l=e.length-1,u=0;for(;l>=i;--l){const t=e.charCodeAt(l);if(t!==j)-1===o&&(a=!1,o=l+1),t===$?-1===r?r=l:1!==u&&(u=1):-1!==r&&(u=-1);else if(!a){s=l+1;break}}if(-1!==o){const i=0===s&&n?1:s;-1===r||0===u||1===u&&r===o-1&&r===s+1?t.base=t.name=e.slice(i,o):(t.name=e.slice(i,r),t.base=e.slice(i,o),t.ext=e.slice(r,o))}return s>0?t.dir=e.slice(0,s-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};ie.win32=ne.win32=ne,ie.posix=ne.posix=ie;"win32"===W.c?ne.normalize:ie.normalize,"win32"===W.c?ne.resolve:ie.resolve,"win32"===W.c?ne.relative:ie.relative,"win32"===W.c?ne.dirname:ie.dirname,"win32"===W.c?ne.basename:ie.basename,"win32"===W.c?ne.extname:ie.extname,"win32"===W.c?ne.sep:ie.sep;const re=/^\w[\w\d+.-]*$/,se=/^\//,oe=/^\/\//;const ae="",le="/",ue=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class he{constructor(e,t,n,i,r,s=!1){"object"==typeof e?(this.scheme=e.scheme||ae,this.authority=e.authority||ae,this.path=e.path||ae,this.query=e.query||ae,this.fragment=e.fragment||ae):(this.scheme=function(e,t){return e||t?e:"file"}(e,s),this.authority=t||ae,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==le&&(t=le+t):t=le}return t}(this.scheme,n||ae),this.query=i||ae,this.fragment=r||ae,function(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!re.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!se.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(oe.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,s))}static isUri(e){return e instanceof he||!!e&&("string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"function"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString)}get fsPath(){return _e(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:i,query:r,fragment:s}=e;return void 0===t?t=this.scheme:null===t&&(t=ae),void 0===n?n=this.authority:null===n&&(n=ae),void 0===i?i=this.path:null===i&&(i=ae),void 0===r?r=this.query:null===r&&(r=ae),void 0===s?s=this.fragment:null===s&&(s=ae),t===this.scheme&&n===this.authority&&i===this.path&&r===this.query&&s===this.fragment?this:new de(t,n,i,r,s)}static parse(e,t=!1){const n=ue.exec(e);return n?new de(n[2]||ae,be(n[4]||ae),be(n[5]||ae),be(n[7]||ae),be(n[9]||ae),t):new de(ae,ae,ae,ae,ae)}static file(e){let t=ae;if(p.d&&(e=e.replace(/\\/g,le)),e[0]===le&&e[1]===le){const n=e.indexOf(le,2);-1===n?(t=e.substring(2),e=le):(t=e.substring(2,n),e=e.substring(n)||le)}return new de("file",t,e,ae,ae)}static from(e){return new de(e.scheme,e.authority,e.path,e.query,e.fragment)}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPaths on URI without path");let n;return n=p.d&&"file"===e.scheme?he.file(ne.join(_e(e,!0),...t)).path:ie.join(e.path,...t),e.with({path:n})}toString(e=!1){return pe(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof he)return e;{const t=new de(e);return t._formatted=e.external,t._fsPath=e._sep===ce?e.fsPath:null,t}}return e}}const ce=p.d?1:void 0;class de extends he{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=_e(this,!1)),this._fsPath}toString(e=!1){return e?pe(this,!0):(this._formatted||(this._formatted=pe(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=ce),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const fe={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function me(e,t){let n=void 0,i=-1;for(let r=0;r<e.length;r++){const s=e.charCodeAt(r);if(s>=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57||45===s||46===s||95===s||126===s||t&&47===s)-1!==i&&(n+=encodeURIComponent(e.substring(i,r)),i=-1),void 0!==n&&(n+=e.charAt(r));else{void 0===n&&(n=e.substr(0,r));const t=fe[s];void 0!==t?(-1!==i&&(n+=encodeURIComponent(e.substring(i,r)),i=-1),n+=t):-1===i&&(i=r)}}return-1!==i&&(n+=encodeURIComponent(e.substring(i))),void 0!==n?n:e}function ge(e){let t=void 0;for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);35===i||63===i?(void 0===t&&(t=e.substr(0,n)),t+=fe[i]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function _e(e,t){let n;return n=e.authority&&e.path.length>1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,p.d&&(n=n.replace(/\//g,"\\")),n}function pe(e,t){const n=t?ge:me;let i="",{scheme:r,authority:s,path:o,query:a,fragment:l}=e;if(r&&(i+=r,i+=":"),(s||"file"===r)&&(i+=le,i+=le),s){let e=s.indexOf("@");if(-1!==e){const t=s.substr(0,e);s=s.substr(e+1),-1===(e=t.indexOf(":"))?i+=n(t,!1):(i+=n(t.substr(0,e),!1),i+=":",i+=n(t.substr(e+1),!1)),i+="@"}-1===(e=(s=s.toLowerCase()).indexOf(":"))?i+=n(s,!1):(i+=n(s.substr(0,e),!1),i+=s.substr(e))}if(o){if(o.length>=3&&47===o.charCodeAt(0)&&58===o.charCodeAt(2)){const e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&58===o.charCodeAt(1)){const e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}i+=n(o,!0)}return a&&(i+="?",i+=n(a,!1)),l&&(i+="#",i+=t?l:me(l,!1)),i}const Ce=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function be(e){return e.match(Ce)?e.replace(Ce,e=>(function e(t){try{return decodeURIComponent(t)}catch(n){return t.length>3?t.substr(0,3)+e(t.substr(3)):t}})(e)):e}class Le{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new Le(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return Le.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return Le.isBefore(this,e)}static isBefore(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<t.column}isBeforeOrEqual(e){return Le.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<=t.column}static compare(e,t){let n=0|e.lineNumber,i=0|t.lineNumber;if(n===i){return(0|e.column)-(0|t.column)}return n-i}clone(){return new Le(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(e){return new Le(e.lineNumber,e.column)}static isIPosition(e){return e&&"number"==typeof e.lineNumber&&"number"==typeof e.column}}class Se{constructor(e,t,n,i){e>n||e===n&&t>i?(this.startLineNumber=n,this.startColumn=i,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=i)}isEmpty(){return Se.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return Se.containsPosition(this,e)}static containsPosition(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber)&&(!(t.lineNumber===e.startLineNumber&&t.column<e.startColumn)&&!(t.lineNumber===e.endLineNumber&&t.column>e.endColumn))}containsRange(e){return Se.containsRange(this,e)}static containsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber)&&(!(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumn<e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>e.endColumn)))}strictContainsRange(e){return Se.strictContainsRange(this,e)}static strictContainsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber)&&(!(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)))}plusRange(e){return Se.plusRange(this,e)}static plusRange(e,t){let n,i,r,s;return t.startLineNumber<e.startLineNumber?(n=t.startLineNumber,i=t.startColumn):t.startLineNumber===e.startLineNumber?(n=t.startLineNumber,i=Math.min(t.startColumn,e.startColumn)):(n=e.startLineNumber,i=e.startColumn),t.endLineNumber>e.endLineNumber?(r=t.endLineNumber,s=t.endColumn):t.endLineNumber===e.endLineNumber?(r=t.endLineNumber,s=Math.max(t.endColumn,e.endColumn)):(r=e.endLineNumber,s=e.endColumn),new Se(n,i,r,s)}intersectRanges(e){return Se.intersectRanges(this,e)}static intersectRanges(e,t){let n=e.startLineNumber,i=e.startColumn,r=e.endLineNumber,s=e.endColumn,o=t.startLineNumber,a=t.startColumn,l=t.endLineNumber,u=t.endColumn;return n<o?(n=o,i=a):n===o&&(i=Math.max(i,a)),r>l?(r=l,s=u):r===l&&(s=Math.min(s,u)),n>r?null:n===r&&i>s?null:new Se(n,i,r,s)}equalsRange(e){return Se.equalsRange(this,e)}static equalsRange(e,t){return!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return Se.getEndPosition(this)}static getEndPosition(e){return new Le(e.endLineNumber,e.endColumn)}getStartPosition(){return Se.getStartPosition(this)}static getStartPosition(e){return new Le(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new Se(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new Se(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return Se.collapseToStart(this)}static collapseToStart(e){return new Se(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}static fromPositions(e,t=e){return new Se(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new Se(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"==typeof e.startLineNumber&&"number"==typeof e.startColumn&&"number"==typeof e.endLineNumber&&"number"==typeof e.endColumn}static areIntersectingOrTouching(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<t.startColumn)&&!(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<e.startColumn)}static areIntersecting(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<=t.startColumn)&&!(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<=e.startColumn)}static compareRangesUsingStarts(e,t){if(e&&t){const n=0|e.startLineNumber,i=0|t.startLineNumber;if(n===i){const n=0|e.startColumn,i=0|t.startColumn;if(n===i){const n=0|e.endLineNumber,i=0|t.endLineNumber;if(n===i){return(0|e.endColumn)-(0|t.endColumn)}return n-i}return n-i}return n-i}return(e?1:0)-(t?1:0)}static compareRangesUsingEnds(e,t){return e.endLineNumber===t.endLineNumber?e.endColumn===t.endColumn?e.startLineNumber===t.startLineNumber?e.startColumn-t.startColumn:e.startLineNumber-t.startLineNumber:e.endColumn-t.endColumn:e.endLineNumber-t.endLineNumber}static spansMultipleLines(e){return e.endLineNumber>e.startLineNumber}}const Ne=3;function Ee(e,t,n,i){return new B(e,t,n).ComputeDiff(i)}class Ae{constructor(e){const t=[],n=[];for(let i=0,r=e.length;i<r;i++)t[i]=Oe(e[i],1),n[i]=Me(e[i],1);this.lines=e,this._startColumns=t,this._endColumns=n}getElements(){const e=[];for(let t=0,n=this.lines.length;t<n;t++)e[t]=this.lines[t].substring(this._startColumns[t]-1,this._endColumns[t]-1);return e}getStartLineNumber(e){return e+1}getEndLineNumber(e){return e+1}createCharSequence(e,t,n){const i=[],r=[],s=[];let o=0;for(let a=t;a<=n;a++){const t=this.lines[a],n=e?this._startColumns[a]:1,l=e?this._endColumns[a]:t.length+1;for(let e=n;e<l;e++)i[o]=t.charCodeAt(e-1),r[o]=a+1,s[o]=e,o++}return new ye(i,r,s)}}class ye{constructor(e,t,n){this._charCodes=e,this._lineNumbers=t,this._columns=n}getElements(){return this._charCodes}getStartLineNumber(e){return this._lineNumbers[e]}getStartColumn(e){return this._columns[e]}getEndLineNumber(e){return this._lineNumbers[e]}getEndColumn(e){return this._columns[e]+1}}class we{constructor(e,t,n,i,r,s,o,a){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=n,this.originalEndColumn=i,this.modifiedStartLineNumber=r,this.modifiedStartColumn=s,this.modifiedEndLineNumber=o,this.modifiedEndColumn=a}static createFromDiffChange(e,t,n){let i,r,s,o,a,l,u,h;return 0===e.originalLength?(i=0,r=0,s=0,o=0):(i=t.getStartLineNumber(e.originalStart),r=t.getStartColumn(e.originalStart),s=t.getEndLineNumber(e.originalStart+e.originalLength-1),o=t.getEndColumn(e.originalStart+e.originalLength-1)),0===e.modifiedLength?(a=0,l=0,u=0,h=0):(a=n.getStartLineNumber(e.modifiedStart),l=n.getStartColumn(e.modifiedStart),u=n.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),h=n.getEndColumn(e.modifiedStart+e.modifiedLength-1)),new we(i,r,s,o,a,l,u,h)}}class ve{constructor(e,t,n,i,r){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=n,this.modifiedEndLineNumber=i,this.charChanges=r}static createFromDiffResult(e,t,n,i,r,s,o){let a,l,u,h,c=void 0;if(0===t.originalLength?(a=n.getStartLineNumber(t.originalStart)-1,l=0):(a=n.getStartLineNumber(t.originalStart),l=n.getEndLineNumber(t.originalStart+t.originalLength-1)),0===t.modifiedLength?(u=i.getStartLineNumber(t.modifiedStart)-1,h=0):(u=i.getStartLineNumber(t.modifiedStart),h=i.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),s&&t.originalLength>0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&r()){const s=n.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),a=i.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);let l=Ee(s,a,r,!0).changes;o&&(l=function(e){if(e.length<=1)return e;const t=[e[0]];let n=t[0];for(let i=1,r=e.length;i<r;i++){const r=e[i],s=r.originalStart-(n.originalStart+n.originalLength),o=r.modifiedStart-(n.modifiedStart+n.modifiedLength);Math.min(s,o)<Ne?(n.originalLength=r.originalStart+r.originalLength-n.originalStart,n.modifiedLength=r.modifiedStart+r.modifiedLength-n.modifiedStart):(t.push(r),n=r)}return t}(l)),c=[];for(let e=0,t=l.length;e<t;e++)c.push(we.createFromDiffChange(l[e],s,a))}return new ve(a,l,u,h,c)}}class Te{constructor(e,t,n){this.shouldComputeCharChanges=n.shouldComputeCharChanges,this.shouldPostProcessCharChanges=n.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=n.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=n.shouldMakePrettyDiff,this.originalLines=e,this.modifiedLines=t,this.original=new Ae(e),this.modified=new Ae(t),this.continueLineDiff=xe(n.maxComputationTime),this.continueCharDiff=xe(0===n.maxComputationTime?0:Math.min(n.maxComputationTime,5e3))}computeDiff(){if(1===this.original.lines.length&&0===this.original.lines[0].length)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}]};if(1===this.modified.lines.length&&0===this.modified.lines[0].length)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}]};const e=Ee(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),t=e.changes,n=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){const e=[];for(let n=0,i=t.length;n<i;n++)e.push(ve.createFromDiffResult(this.shouldIgnoreTrimWhitespace,t[n],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:n,changes:e}}const i=[];let r=0,s=0;for(let e=-1,n=t.length;e<n;e++){const o=e+1<n?t[e+1]:null,a=o?o.originalStart:this.originalLines.length,l=o?o.modifiedStart:this.modifiedLines.length;for(;r<a&&s<l;){const e=this.originalLines[r],t=this.modifiedLines[s];if(e!==t){{let n=Oe(e,1),o=Oe(t,1);for(;n>1&&o>1;){if(e.charCodeAt(n-2)!==t.charCodeAt(o-2))break;n--,o--}(n>1||o>1)&&this._pushTrimWhitespaceCharChange(i,r+1,1,n,s+1,1,o)}{let n=Me(e,1),o=Me(t,1);const a=e.length+1,l=t.length+1;for(;n<a&&o<l;){if(e.charCodeAt(n-1)!==e.charCodeAt(o-1))break;n++,o++}(n<a||o<l)&&this._pushTrimWhitespaceCharChange(i,r+1,n,a,s+1,o,l)}}r++,s++}o&&(i.push(ve.createFromDiffResult(this.shouldIgnoreTrimWhitespace,o,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),r+=o.originalLength,s+=o.modifiedLength)}return{quitEarly:n,changes:i}}_pushTrimWhitespaceCharChange(e,t,n,i,r,s,o){if(this._mergeTrimWhitespaceCharChange(e,t,n,i,r,s,o))return;let a=void 0;this.shouldComputeCharChanges&&(a=[new we(t,n,t,i,r,s,r,o)]),e.push(new ve(t,t,r,r,a))}_mergeTrimWhitespaceCharChange(e,t,n,i,r,s,o){const a=e.length;if(0===a)return!1;const l=e[a-1];return 0!==l.originalEndLineNumber&&0!==l.modifiedEndLineNumber&&(l.originalEndLineNumber+1===t&&l.modifiedEndLineNumber+1===r&&(l.originalEndLineNumber=t,l.modifiedEndLineNumber=r,this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new we(t,n,t,i,r,s,r,o)),!0))}}function Oe(e,t){const n=function(e){for(let t=0,n=e.length;t<n;t++){const n=e.charCodeAt(t);if(32!==n&&9!==n)return t}return-1}(e);return-1===n?t:n+1}function Me(e,t){const n=function(e,t=e.length-1){for(let n=t;n>=0;n--){const t=e.charCodeAt(n);if(32!==t&&9!==t)return n}return-1}(e);return-1===n?t:n+2}function xe(e){if(0===e)return()=>!0;const t=Date.now();return()=>Date.now()-t<e}function Ie(e){return e<0?0:e>255?255:0|e}function Pe(e){return e<0?0:e>4294967295?4294967295:0|e}class Re{constructor(e,t){this.index=e,this.remainder=t}}class ke{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=Pe(e);const n=this.values,i=this.prefixSum,r=t.length;return 0!==r&&(this.values=new Uint32Array(n.length+r),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e),e+r),this.values.set(t,e),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}changeValue(e,t){return e=Pe(e),t=Pe(t),this.values[e]!==t&&(this.values[e]=t,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)}removeValues(e,t){e=Pe(e),t=Pe(t);const n=this.values,i=this.prefixSum;if(e>=n.length)return!1;let r=n.length-e;return t>=r&&(t=r),0!==t&&(this.values=new Uint32Array(n.length-t),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalValue(){return 0===this.values.length?0:this._getAccumulatedValue(this.values.length-1)}getAccumulatedValue(e){return e<0?0:(e=Pe(e),this._getAccumulatedValue(e))}_getAccumulatedValue(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let n=t;n<=e;n++)this.prefixSum[n]=this.prefixSum[n-1]+this.values[n];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalValue();let t=0,n=this.values.length-1,i=0,r=0,s=0;for(;t<=n;)if(i=t+(n-t)/2|0,e<(s=(r=this.prefixSum[i])-this.values[i]))n=i-1;else{if(!(e>=r))break;t=i+1}return new Re(i,e-s)}}class Ue{constructor(e,t,n,i){this._uri=e,this._lines=t,this._eol=n,this._versionId=i,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}getText(){return null===this._cachedTextValue&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const t=e.changes;for(const e of t)this._acceptDeleteRange(e.range),this._acceptInsertText(new Le(e.range.startLineNumber,e.range.startColumn),e.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,t=this._lines.length,n=new Uint32Array(t);for(let i=0;i<t;i++)n[i]=this._lines[i].length+e;this._lineStarts=new ke(n)}}_setLineText(e,t){this._lines[e]=t,this._lineStarts&&this._lineStarts.changeValue(e,this._lines[e].length+this._eol.length)}_acceptDeleteRange(e){if(e.startLineNumber!==e.endLineNumber)this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.endLineNumber-1].substring(e.endColumn-1)),this._lines.splice(e.startLineNumber,e.endLineNumber-e.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(e.startLineNumber,e.endLineNumber-e.startLineNumber);else{if(e.startColumn===e.endColumn)return;this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.startLineNumber-1].substring(e.endColumn-1))}}_acceptInsertText(e,t){if(0===t.length)return;let n=t.split(/\r\n|\r|\n/);if(1===n.length)return void this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]+this._lines[e.lineNumber-1].substring(e.column-1));n[n.length-1]+=this._lines[e.lineNumber-1].substring(e.column-1),this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]);let i=new Uint32Array(n.length-1);for(let t=1;t<n.length;t++)this._lines.splice(e.lineNumber+t-1,0,n[t]),i[t-1]=n[t].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,i)}}const De="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";const Fe=function(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const n of De)e.indexOf(n)>=0||(t+="\\"+n);return t+="\\s]+)",new RegExp(t,"g")}();const Ke={maxLen:1e3,windowSize:15,timeBudget:150};function Be(e,t,n,i){let r;for(;r=e.exec(t);){const t=r.index||0;if(t<=n&&e.lastIndex>=n)return r;if(i>0&&t>i)return null}return null}class We{constructor(e){let t=Ie(e);this._defaultValue=t,this._asciiMap=We._createAsciiMap(t),this._map=new Map}static _createAsciiMap(e){let t=new Uint8Array(256);for(let n=0;n<256;n++)t[n]=e;return t}set(e,t){let n=Ie(t);e>=0&&e<256?this._asciiMap[e]=n:this._map.set(e,n)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}}class qe{constructor(e,t,n){const i=new Uint8Array(e*t);for(let r=0,s=e*t;r<s;r++)i[r]=n;this._data=i,this.rows=e,this.cols=t}get(e,t){return this._data[e*this.cols+t]}set(e,t,n){this._data[e*this.cols+t]=n}}class He{constructor(e){let t=0,n=0;for(let i=0,r=e.length;i<r;i++){let[r,s,o]=e[i];s>t&&(t=s),r>n&&(n=r),o>n&&(n=o)}t++,n++;let i=new qe(n,t,0);for(let t=0,n=e.length;t<n;t++){let[n,r,s]=e[t];i.set(n,r,s)}this._states=i,this._maxCharCode=t}nextState(e,t){return t<0||t>=this._maxCharCode?0:this._states.get(e,t)}}let Ve=null;let Ye=null;class $e{static _createLink(e,t,n,i,r){let s=r-1;do{const n=t.charCodeAt(s);if(2!==e.get(n))break;s--}while(s>i);if(i>0){const e=t.charCodeAt(i-1),n=t.charCodeAt(s);(40===e&&41===n||91===e&&93===n||123===e&&125===n)&&s--}return{range:{startLineNumber:n,startColumn:i+1,endLineNumber:n,endColumn:s+2},url:t.substring(i,s+1)}}static computeLinks(e,t=(null===Ve&&(Ve=new He([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),Ve)){const n=function(){if(null===Ye){Ye=new We(0);const e=" \t<>'\"、。。、,.:;‘“〈《「『【〔([{「」}])〕】』」》〉”’`~…";for(let t=0;t<e.length;t++)Ye.set(e.charCodeAt(t),1);const t=".,;";for(let e=0;e<t.length;e++)Ye.set(t.charCodeAt(e),2)}return Ye}();let i=[];for(let r=1,s=e.getLineCount();r<=s;r++){const s=e.getLineContent(r),o=s.length;let a=0,l=0,u=0,h=1,c=!1,d=!1,f=!1,m=!1;for(;a<o;){let e=!1;const o=s.charCodeAt(a);if(13===h){let t;switch(o){case 40:c=!0,t=0;break;case 41:t=c?0:1;break;case 91:f=!0,d=!0,t=0;break;case 93:f=!1,t=d?0:1;break;case 123:m=!0,t=0;break;case 125:t=m?0:1;break;case 39:t=34===u||96===u?0:1;break;case 34:t=39===u||96===u?0:1;break;case 96:t=39===u||34===u?0:1;break;case 42:t=42===u?1:0;break;case 124:t=124===u?1:0;break;case 32:t=f?0:1;break;default:t=n.get(o)}1===t&&(i.push($e._createLink(n,s,r,l,a)),e=!0)}else if(12===h){let t;91===o?(d=!0,t=0):t=n.get(o),1===t?e=!0:h=13}else 0===(h=t.nextState(h,o))&&(e=!0);e&&(h=1,c=!1,d=!1,m=!1,l=a+1,u=o),a++}13===h&&i.push($e._createLink(n,s,r,l,o))}return i}}class je{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(e,t,n,i,r){if(e&&t){let n=this.doNavigateValueSet(t,r);if(n)return{range:e,value:n}}if(n&&i){let e=this.doNavigateValueSet(i,r);if(e)return{range:n,value:e}}return null}doNavigateValueSet(e,t){let n=this.numberReplace(e,t);return null!==n?n:this.textReplace(e,t)}numberReplace(e,t){let n=Math.pow(10,e.length-(e.lastIndexOf(".")+1)),i=Number(e),r=parseFloat(e);return isNaN(i)||isNaN(r)||i!==r?null:0!==i||t?(i=Math.floor(i*n),i+=t?n:-n,String(i/n)):null}textReplace(e,t){return this.valueSetsReplace(this._defaultValueSet,e,t)}valueSetsReplace(e,t,n){let i=null;for(let r=0,s=e.length;null===i&&r<s;r++)i=this.valueSetReplace(e[r],t,n);return i}valueSetReplace(e,t,n){let i=e.indexOf(t);return i>=0?((i+=n?1:-1)<0?i=e.length-1:i%=e.length,e[i]):null}}je.INSTANCE=new je;class Ge{constructor(e){this.element=e,this.next=Ge.Undefined,this.prev=Ge.Undefined}}Ge.Undefined=new Ge(void 0);class ze{constructor(){this._first=Ge.Undefined,this._last=Ge.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Ge.Undefined}clear(){this._first=Ge.Undefined,this._last=Ge.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new Ge(e);if(this._first===Ge.Undefined)this._first=n,this._last=n;else if(t){const e=this._last;this._last=n,n.prev=e,e.next=n}else{const e=this._first;this._first=n,n.next=e,e.prev=n}this._size+=1;let i=!1;return()=>{i||(i=!0,this._remove(n))}}shift(){if(this._first!==Ge.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==Ge.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==Ge.Undefined&&e.next!==Ge.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===Ge.Undefined&&e.next===Ge.Undefined?(this._first=Ge.Undefined,this._last=Ge.Undefined):e.next===Ge.Undefined?(this._last=this._last.prev,this._last.next=Ge.Undefined):e.prev===Ge.Undefined&&(this._first=this._first.next,this._first.prev=Ge.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==Ge.Undefined;)yield e.element,e=e.next}toArray(){const e=[];for(let t=this._first;t!==Ge.Undefined;t=t.next)e.push(t.element);return e}}var Qe;!function(e){function t(e){return(t,n=null,i)=>{let r,s=!1;return r=e(e=>{if(!s)return r?r.dispose():s=!0,t.call(n,e)},null,i),s&&r.dispose(),r}}function n(e,t){return o((n,i=null,r)=>e(e=>n.call(i,t(e)),null,r))}function i(e,t){return o((n,i=null,r)=>e(e=>{t(e),n.call(i,e)},null,r))}function r(e,t){return o((n,i=null,r)=>e(e=>t(e)&&n.call(i,e),null,r))}function s(e,t,i){let r=i;return n(e,e=>r=t(r,e))}function o(e){let t;const n=new Je({onFirstListenerAdd(){t=e(n.fire,n)},onLastListenerRemove(){t.dispose()}});return n.event}function a(e,t,n=100,i=!1,r){let s,o=void 0,a=void 0,l=0;const u=new Je({leakWarningThreshold:r,onFirstListenerAdd(){s=e(e=>{l++,o=t(o,e),i&&!a&&(u.fire(o),o=void 0),clearTimeout(a),a=setTimeout(()=>{const e=o;o=void 0,a=void 0,(!i||l>1)&&u.fire(e),l=0},n)})},onLastListenerRemove(){s.dispose()}});return u.event}function l(e){let t,n=!0;return r(e,e=>{const i=n||e!==t;return n=!1,t=e,i})}e.None=()=>_.None,e.once=t,e.map=n,e.forEach=i,e.filter=r,e.signal=function(e){return e},e.any=function(...e){return(t,n=null,i)=>(function(...e){return e.forEach(c),d({dispose:()=>m(e)})})(...e.map(e=>e(e=>t.call(n,e),null,i)))},e.reduce=s,e.snapshot=o,e.debounce=a,e.stopwatch=function(e){const i=(new Date).getTime();return n(t(e),e=>(new Date).getTime()-i)},e.latch=l,e.buffer=function(e,t=!1,n=[]){let i=n.slice(),r=e(e=>{i?i.push(e):o.fire(e)});const s=()=>{i&&i.forEach(e=>o.fire(e)),i=null},o=new Je({onFirstListenerAdd(){r||(r=e(e=>o.fire(e)))},onFirstListenerDidAdd(){i&&(t?setTimeout(s):s())},onLastListenerRemove(){r&&r.dispose(),r=null}});return o.event};class u{constructor(e){this.event=e}map(e){return new u(n(this.event,e))}forEach(e){return new u(i(this.event,e))}filter(e){return new u(r(this.event,e))}reduce(e,t){return new u(s(this.event,e,t))}latch(){return new u(l(this.event))}debounce(e,t=100,n=!1,i){return new u(a(this.event,e,t,n,i))}on(e,t,n){return this.event(e,t,n)}once(e,n,i){return t(this.event)(e,n,i)}}e.chain=function(e){return new u(e)},e.fromNodeEventEmitter=function(e,t,n=(e=>e)){const i=(...e)=>r.fire(n(...e)),r=new Je({onFirstListenerAdd:()=>e.on(t,i),onLastListenerRemove:()=>e.removeListener(t,i)});return r.event},e.fromDOMEventEmitter=function(e,t,n=(e=>e)){const i=(...e)=>r.fire(n(...e)),r=new Je({onFirstListenerAdd:()=>e.addEventListener(t,i),onLastListenerRemove:()=>e.removeEventListener(t,i)});return r.event},e.fromPromise=function(e){const t=new Je;let n=!1;return e.then(void 0,()=>null).then(()=>{n?t.fire(void 0):setTimeout(()=>t.fire(void 0),0)}),n=!0,t.event},e.toPromise=function(e){return new Promise(n=>t(e)(n))}}(Qe||(Qe={}));let Xe=-1;class Ze{constructor(e,t=Math.random().toString(18).slice(2,5)){this.customThreshold=e,this.name=t,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(e){let t=Xe;if("number"==typeof this.customThreshold&&(t=this.customThreshold),t<=0||e<t)return;this._stacks||(this._stacks=new Map);const n=(new Error).stack.split("\n").slice(3).join("\n"),i=this._stacks.get(n)||0;if(this._stacks.set(n,i+1),this._warnCountdown-=1,this._warnCountdown<=0){let n;this._warnCountdown=.5*t;let i=0;for(const[e,t]of this._stacks)(!n||i<t)&&(n=e,i=t);console.warn(`[${this.name}] potential listener LEAK detected, having ${e} listeners already. MOST frequent listener (${i}):`),console.warn(n)}return()=>{const e=this._stacks.get(n)||0;this._stacks.set(n,e-1)}}}class Je{constructor(e){this._disposed=!1,this._options=e,this._leakageMon=Xe>0?new Ze(this._options&&this._options.leakWarningThreshold):void 0}get event(){return this._event||(this._event=(e,t,n)=>{this._listeners||(this._listeners=new ze);const i=this._listeners.isEmpty();i&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const r=this._listeners.push(t?[e,t]:e);let s,o;return i&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,e,t),this._leakageMon&&(s=this._leakageMon.check(this._listeners.size)),o={dispose:()=>{if(s&&s(),o.dispose=Je._noop,!this._disposed&&(r(),this._options&&this._options.onLastListenerRemove)){this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)}}},n instanceof g?n.add(o):Array.isArray(n)&&n.push(o),o}),this._event}fire(e){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new ze);for(let t of this._listeners)this._deliveryQueue.push([t,e]);for(;this._deliveryQueue.size>0;){const[e,t]=this._deliveryQueue.shift();try{"function"==typeof e?e.call(void 0,t):e[0].call(e[1],t)}catch(e){r(e)}}}}dispose(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0}}Je._noop=function(){};const et=Object.freeze((function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}}));var tt,nt;(nt=tt||(tt={})).isCancellationToken=function(e){return e===nt.None||e===nt.Cancelled||e instanceof it||!(!e||"object"!=typeof e)&&"boolean"==typeof e.isCancellationRequested&&"function"==typeof e.onCancellationRequested},nt.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Qe.None}),nt.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:et});class it{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?et:(this._emitter||(this._emitter=new Je),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class rt{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new it),this._token}cancel(){this._token?this._token instanceof it&&this._token.cancel():this._token=tt.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof it&&this._token.dispose():this._token=tt.None}}class st{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const ot=new st,at=new st,lt=new st;var ut,ht,ct,dt,ft,mt,gt,_t,pt,Ct,bt,Lt,St,Nt,Et,At,yt,wt,vt,Tt,Ot,Mt,xt,It,Pt,Rt,kt,Ut,Dt,Ft,Kt,Bt,Wt,qt;!function(){function e(e,t,n=t,i=n){ot.define(e,t),at.define(e,n),lt.define(e,i)}e(0,"unknown"),e(1,"Backspace"),e(2,"Tab"),e(3,"Enter"),e(4,"Shift"),e(5,"Ctrl"),e(6,"Alt"),e(7,"PauseBreak"),e(8,"CapsLock"),e(9,"Escape"),e(10,"Space"),e(11,"PageUp"),e(12,"PageDown"),e(13,"End"),e(14,"Home"),e(15,"LeftArrow","Left"),e(16,"UpArrow","Up"),e(17,"RightArrow","Right"),e(18,"DownArrow","Down"),e(19,"Insert"),e(20,"Delete"),e(21,"0"),e(22,"1"),e(23,"2"),e(24,"3"),e(25,"4"),e(26,"5"),e(27,"6"),e(28,"7"),e(29,"8"),e(30,"9"),e(31,"A"),e(32,"B"),e(33,"C"),e(34,"D"),e(35,"E"),e(36,"F"),e(37,"G"),e(38,"H"),e(39,"I"),e(40,"J"),e(41,"K"),e(42,"L"),e(43,"M"),e(44,"N"),e(45,"O"),e(46,"P"),e(47,"Q"),e(48,"R"),e(49,"S"),e(50,"T"),e(51,"U"),e(52,"V"),e(53,"W"),e(54,"X"),e(55,"Y"),e(56,"Z"),e(57,"Meta"),e(58,"ContextMenu"),e(59,"F1"),e(60,"F2"),e(61,"F3"),e(62,"F4"),e(63,"F5"),e(64,"F6"),e(65,"F7"),e(66,"F8"),e(67,"F9"),e(68,"F10"),e(69,"F11"),e(70,"F12"),e(71,"F13"),e(72,"F14"),e(73,"F15"),e(74,"F16"),e(75,"F17"),e(76,"F18"),e(77,"F19"),e(78,"NumLock"),e(79,"ScrollLock"),e(80,";",";","OEM_1"),e(81,"=","=","OEM_PLUS"),e(82,",",",","OEM_COMMA"),e(83,"-","-","OEM_MINUS"),e(84,".",".","OEM_PERIOD"),e(85,"/","/","OEM_2"),e(86,"`","`","OEM_3"),e(110,"ABNT_C1"),e(111,"ABNT_C2"),e(87,"[","[","OEM_4"),e(88,"\\","\\","OEM_5"),e(89,"]","]","OEM_6"),e(90,"'","'","OEM_7"),e(91,"OEM_8"),e(92,"OEM_102"),e(93,"NumPad0"),e(94,"NumPad1"),e(95,"NumPad2"),e(96,"NumPad3"),e(97,"NumPad4"),e(98,"NumPad5"),e(99,"NumPad6"),e(100,"NumPad7"),e(101,"NumPad8"),e(102,"NumPad9"),e(103,"NumPad_Multiply"),e(104,"NumPad_Add"),e(105,"NumPad_Separator"),e(106,"NumPad_Subtract"),e(107,"NumPad_Decimal"),e(108,"NumPad_Divide")}(),function(e){e.toString=function(e){return ot.keyCodeToStr(e)},e.fromString=function(e){return ot.strToKeyCode(e)},e.toUserSettingsUS=function(e){return at.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return lt.keyCodeToStr(e)},e.fromUserSettings=function(e){return at.strToKeyCode(e)||lt.strToKeyCode(e)}}(ut||(ut={}));class Ht extends Se{constructor(e,t,n,i){super(e,t,n,i),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=n,this.positionColumn=i}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return Ht.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return 0===this.getDirection()?new Ht(this.startLineNumber,this.startColumn,e,t):new Ht(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new Le(this.positionLineNumber,this.positionColumn)}setStartPosition(e,t){return 0===this.getDirection()?new Ht(e,t,this.endLineNumber,this.endColumn):new Ht(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new Ht(e.lineNumber,e.column,t.lineNumber,t.column)}static liftSelection(e){return new Ht(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let n=0,i=e.length;n<i;n++)if(!this.selectionsEqual(e[n],t[n]))return!1;return!0}static isISelection(e){return e&&"number"==typeof e.selectionStartLineNumber&&"number"==typeof e.selectionStartColumn&&"number"==typeof e.positionLineNumber&&"number"==typeof e.positionColumn}static createWithDirection(e,t,n,i,r){return 0===r?new Ht(e,t,n,i):new Ht(n,i,e,t)}}class Vt{constructor(e,t,n){this.offset=0|e,this.type=t,this.language=n}toString(){return"("+this.offset+", "+this.type+")"}}!function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"}(ht||(ht={})),function(e){e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"}(ct||(ct={})),function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"}(dt||(dt={})),function(e){e[e.Deprecated=1]="Deprecated"}(ft||(ft={})),function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(mt||(mt={})),function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"}(gt||(gt={})),function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"}(_t||(_t={})),function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(pt||(pt={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(Ct||(Ct={})),function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"}(bt||(bt={})),function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.autoClosingBrackets=5]="autoClosingBrackets",e[e.autoClosingOvertype=6]="autoClosingOvertype",e[e.autoClosingQuotes=7]="autoClosingQuotes",e[e.autoIndent=8]="autoIndent",e[e.automaticLayout=9]="automaticLayout",e[e.autoSurround=10]="autoSurround",e[e.codeLens=11]="codeLens",e[e.colorDecorators=12]="colorDecorators",e[e.columnSelection=13]="columnSelection",e[e.comments=14]="comments",e[e.contextmenu=15]="contextmenu",e[e.copyWithSyntaxHighlighting=16]="copyWithSyntaxHighlighting",e[e.cursorBlinking=17]="cursorBlinking",e[e.cursorSmoothCaretAnimation=18]="cursorSmoothCaretAnimation",e[e.cursorStyle=19]="cursorStyle",e[e.cursorSurroundingLines=20]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=21]="cursorSurroundingLinesStyle",e[e.cursorWidth=22]="cursorWidth",e[e.disableLayerHinting=23]="disableLayerHinting",e[e.disableMonospaceOptimizations=24]="disableMonospaceOptimizations",e[e.dragAndDrop=25]="dragAndDrop",e[e.emptySelectionClipboard=26]="emptySelectionClipboard",e[e.extraEditorClassName=27]="extraEditorClassName",e[e.fastScrollSensitivity=28]="fastScrollSensitivity",e[e.find=29]="find",e[e.fixedOverflowWidgets=30]="fixedOverflowWidgets",e[e.folding=31]="folding",e[e.foldingStrategy=32]="foldingStrategy",e[e.foldingHighlight=33]="foldingHighlight",e[e.unfoldOnClickAfterEndOfLine=34]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=35]="fontFamily",e[e.fontInfo=36]="fontInfo",e[e.fontLigatures=37]="fontLigatures",e[e.fontSize=38]="fontSize",e[e.fontWeight=39]="fontWeight",e[e.formatOnPaste=40]="formatOnPaste",e[e.formatOnType=41]="formatOnType",e[e.glyphMargin=42]="glyphMargin",e[e.gotoLocation=43]="gotoLocation",e[e.hideCursorInOverviewRuler=44]="hideCursorInOverviewRuler",e[e.highlightActiveIndentGuide=45]="highlightActiveIndentGuide",e[e.hover=46]="hover",e[e.inDiffEditor=47]="inDiffEditor",e[e.letterSpacing=48]="letterSpacing",e[e.lightbulb=49]="lightbulb",e[e.lineDecorationsWidth=50]="lineDecorationsWidth",e[e.lineHeight=51]="lineHeight",e[e.lineNumbers=52]="lineNumbers",e[e.lineNumbersMinChars=53]="lineNumbersMinChars",e[e.links=54]="links",e[e.matchBrackets=55]="matchBrackets",e[e.minimap=56]="minimap",e[e.mouseStyle=57]="mouseStyle",e[e.mouseWheelScrollSensitivity=58]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=59]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=60]="multiCursorMergeOverlapping",e[e.multiCursorModifier=61]="multiCursorModifier",e[e.multiCursorPaste=62]="multiCursorPaste",e[e.occurrencesHighlight=63]="occurrencesHighlight",e[e.overviewRulerBorder=64]="overviewRulerBorder",e[e.overviewRulerLanes=65]="overviewRulerLanes",e[e.padding=66]="padding",e[e.parameterHints=67]="parameterHints",e[e.peekWidgetDefaultFocus=68]="peekWidgetDefaultFocus",e[e.definitionLinkOpensInPeek=69]="definitionLinkOpensInPeek",e[e.quickSuggestions=70]="quickSuggestions",e[e.quickSuggestionsDelay=71]="quickSuggestionsDelay",e[e.readOnly=72]="readOnly",e[e.renameOnType=73]="renameOnType",e[e.renderControlCharacters=74]="renderControlCharacters",e[e.renderIndentGuides=75]="renderIndentGuides",e[e.renderFinalNewline=76]="renderFinalNewline",e[e.renderLineHighlight=77]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=78]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=79]="renderValidationDecorations",e[e.renderWhitespace=80]="renderWhitespace",e[e.revealHorizontalRightPadding=81]="revealHorizontalRightPadding",e[e.roundedSelection=82]="roundedSelection",e[e.rulers=83]="rulers",e[e.scrollbar=84]="scrollbar",e[e.scrollBeyondLastColumn=85]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=86]="scrollBeyondLastLine",e[e.scrollPredominantAxis=87]="scrollPredominantAxis",e[e.selectionClipboard=88]="selectionClipboard",e[e.selectionHighlight=89]="selectionHighlight",e[e.selectOnLineNumbers=90]="selectOnLineNumbers",e[e.showFoldingControls=91]="showFoldingControls",e[e.showUnused=92]="showUnused",e[e.snippetSuggestions=93]="snippetSuggestions",e[e.smoothScrolling=94]="smoothScrolling",e[e.stopRenderingLineAfter=95]="stopRenderingLineAfter",e[e.suggest=96]="suggest",e[e.suggestFontSize=97]="suggestFontSize",e[e.suggestLineHeight=98]="suggestLineHeight",e[e.suggestOnTriggerCharacters=99]="suggestOnTriggerCharacters",e[e.suggestSelection=100]="suggestSelection",e[e.tabCompletion=101]="tabCompletion",e[e.tabIndex=102]="tabIndex",e[e.unusualLineTerminators=103]="unusualLineTerminators",e[e.useTabStops=104]="useTabStops",e[e.wordSeparators=105]="wordSeparators",e[e.wordWrap=106]="wordWrap",e[e.wordWrapBreakAfterCharacters=107]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=108]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=109]="wordWrapColumn",e[e.wordWrapMinified=110]="wordWrapMinified",e[e.wrappingIndent=111]="wrappingIndent",e[e.wrappingStrategy=112]="wrappingStrategy",e[e.showDeprecated=113]="showDeprecated",e[e.editorClassName=114]="editorClassName",e[e.pixelRatio=115]="pixelRatio",e[e.tabFocusMode=116]="tabFocusMode",e[e.layoutInfo=117]="layoutInfo",e[e.wrappingInfo=118]="wrappingInfo"}(Lt||(Lt={})),function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(St||(St={})),function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"}(Nt||(Nt={})),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(Et||(Et={})),function(e){e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.KEY_0=21]="KEY_0",e[e.KEY_1=22]="KEY_1",e[e.KEY_2=23]="KEY_2",e[e.KEY_3=24]="KEY_3",e[e.KEY_4=25]="KEY_4",e[e.KEY_5=26]="KEY_5",e[e.KEY_6=27]="KEY_6",e[e.KEY_7=28]="KEY_7",e[e.KEY_8=29]="KEY_8",e[e.KEY_9=30]="KEY_9",e[e.KEY_A=31]="KEY_A",e[e.KEY_B=32]="KEY_B",e[e.KEY_C=33]="KEY_C",e[e.KEY_D=34]="KEY_D",e[e.KEY_E=35]="KEY_E",e[e.KEY_F=36]="KEY_F",e[e.KEY_G=37]="KEY_G",e[e.KEY_H=38]="KEY_H",e[e.KEY_I=39]="KEY_I",e[e.KEY_J=40]="KEY_J",e[e.KEY_K=41]="KEY_K",e[e.KEY_L=42]="KEY_L",e[e.KEY_M=43]="KEY_M",e[e.KEY_N=44]="KEY_N",e[e.KEY_O=45]="KEY_O",e[e.KEY_P=46]="KEY_P",e[e.KEY_Q=47]="KEY_Q",e[e.KEY_R=48]="KEY_R",e[e.KEY_S=49]="KEY_S",e[e.KEY_T=50]="KEY_T",e[e.KEY_U=51]="KEY_U",e[e.KEY_V=52]="KEY_V",e[e.KEY_W=53]="KEY_W",e[e.KEY_X=54]="KEY_X",e[e.KEY_Y=55]="KEY_Y",e[e.KEY_Z=56]="KEY_Z",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.NumLock=78]="NumLock",e[e.ScrollLock=79]="ScrollLock",e[e.US_SEMICOLON=80]="US_SEMICOLON",e[e.US_EQUAL=81]="US_EQUAL",e[e.US_COMMA=82]="US_COMMA",e[e.US_MINUS=83]="US_MINUS",e[e.US_DOT=84]="US_DOT",e[e.US_SLASH=85]="US_SLASH",e[e.US_BACKTICK=86]="US_BACKTICK",e[e.US_OPEN_SQUARE_BRACKET=87]="US_OPEN_SQUARE_BRACKET",e[e.US_BACKSLASH=88]="US_BACKSLASH",e[e.US_CLOSE_SQUARE_BRACKET=89]="US_CLOSE_SQUARE_BRACKET",e[e.US_QUOTE=90]="US_QUOTE",e[e.OEM_8=91]="OEM_8",e[e.OEM_102=92]="OEM_102",e[e.NUMPAD_0=93]="NUMPAD_0",e[e.NUMPAD_1=94]="NUMPAD_1",e[e.NUMPAD_2=95]="NUMPAD_2",e[e.NUMPAD_3=96]="NUMPAD_3",e[e.NUMPAD_4=97]="NUMPAD_4",e[e.NUMPAD_5=98]="NUMPAD_5",e[e.NUMPAD_6=99]="NUMPAD_6",e[e.NUMPAD_7=100]="NUMPAD_7",e[e.NUMPAD_8=101]="NUMPAD_8",e[e.NUMPAD_9=102]="NUMPAD_9",e[e.NUMPAD_MULTIPLY=103]="NUMPAD_MULTIPLY",e[e.NUMPAD_ADD=104]="NUMPAD_ADD",e[e.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",e[e.NUMPAD_SUBTRACT=106]="NUMPAD_SUBTRACT",e[e.NUMPAD_DECIMAL=107]="NUMPAD_DECIMAL",e[e.NUMPAD_DIVIDE=108]="NUMPAD_DIVIDE",e[e.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",e[e.ABNT_C1=110]="ABNT_C1",e[e.ABNT_C2=111]="ABNT_C2",e[e.MAX_VALUE=112]="MAX_VALUE"}(At||(At={})),function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(yt||(yt={})),function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"}(wt||(wt={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(vt||(vt={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"}(Tt||(Tt={})),function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"}(Ot||(Ot={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(Mt||(Mt={})),function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"}(xt||(xt={})),function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"}(It||(It={})),function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"}(Pt||(Pt={})),function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"}(Rt||(Rt={})),function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(kt||(kt={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(Ut||(Ut={})),function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"}(Dt||(Dt={})),function(e){e[e.Deprecated=1]="Deprecated"}(Ft||(Ft={})),function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"}(Kt||(Kt={})),function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"}(Bt||(Bt={})),function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"}(Wt||(Wt={})),function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"}(qt||(qt={}));class Yt{static chord(e,t){return function(e,t){return(e|(65535&t)<<16>>>0)>>>0}(e,t)}}Yt.CtrlCmd=2048,Yt.Shift=1024,Yt.Alt=512,Yt.WinCtrl=256;var $t=function(e,t,n,i){return new(n||(n=Promise))((function(r,s){function o(e){try{l(i.next(e))}catch(e){s(e)}}function a(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,a)}l((i=i.apply(e,t||[])).next())}))};class jt extends Ue{get uri(){return this._uri}get version(){return this._versionId}get eol(){return this._eol}getValue(){return this.getText()}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(e){return this._lines[e-1]}getWordAtPosition(e,t){let n=function e(t,n,i,r,s=Ke){if(i.length>s.maxLen){let o=t-s.maxLen/2;return o<0?(r+=t,o=0):r+=o,e(t,n,i=i.substring(o,t+s.maxLen/2),r,s)}Date.now();const o=t-1-r;let a=-1,l=null;for(let e=1;;e++){Date.now(),s.timeBudget;const t=o-s.windowSize*e;n.lastIndex=Math.max(0,t);const r=Be(n,i,o,a);if(!r&&l)break;if(l=r,t<=0)break;a=t}if(l){let e={word:l[0],startColumn:r+1+l.index,endColumn:r+1+l.index+l[0].length};return n.lastIndex=0,e}return null}(e.column,function(e){let t=Fe;if(e&&e instanceof RegExp)if(e.global)t=e;else{let n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}(t),this._lines[e.lineNumber-1],0);return n?new Se(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn):null}words(e){const t=this._lines,n=this._wordenize.bind(this);let i=0,r="",s=0,o=[];return{*[Symbol.iterator](){for(;;)if(s<o.length){const e=r.substring(o[s].start,o[s].end);s+=1,yield e}else{if(!(i<t.length))break;r=t[i],o=n(r,e),s=0,i+=1}}}}getLineWords(e,t){let n=this._lines[e-1],i=this._wordenize(n,t),r=[];for(const e of i)r.push({word:n.substring(e.start,e.end),startColumn:e.start+1,endColumn:e.end+1});return r}_wordenize(e,t){const n=[];let i;for(t.lastIndex=0;(i=t.exec(e))&&0!==i[0].length;)n.push({start:i.index,end:i.index+i[0].length});return n}getValueInRange(e){if((e=this._validateRange(e)).startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);let t=this._eol,n=e.startLineNumber-1,i=e.endLineNumber-1,r=[];r.push(this._lines[n].substring(e.startColumn-1));for(let e=n+1;e<i;e++)r.push(this._lines[e]);return r.push(this._lines[i].substring(0,e.endColumn-1)),r.join(t)}offsetAt(e){return e=this._validatePosition(e),this._ensureLineStarts(),this._lineStarts.getAccumulatedValue(e.lineNumber-2)+(e.column-1)}positionAt(e){e=Math.floor(e),e=Math.max(0,e),this._ensureLineStarts();let t=this._lineStarts.getIndexOf(e),n=this._lines[t.index].length;return{lineNumber:1+t.index,column:1+Math.min(t.remainder,n)}}_validateRange(e){const t=this._validatePosition({lineNumber:e.startLineNumber,column:e.startColumn}),n=this._validatePosition({lineNumber:e.endLineNumber,column:e.endColumn});return t.lineNumber!==e.startLineNumber||t.column!==e.startColumn||n.lineNumber!==e.endLineNumber||n.column!==e.endColumn?{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:n.lineNumber,endColumn:n.column}:e}_validatePosition(e){if(!Le.isIPosition(e))throw new Error("bad position");let{lineNumber:t,column:n}=e,i=!1;if(t<1)t=1,n=1,i=!0;else if(t>this._lines.length)t=this._lines.length,n=this._lines[t-1].length+1,i=!0;else{let e=this._lines[t-1].length+1;n<1?(n=1,i=!0):n>e&&(n=e,i=!0)}return i?{lineNumber:t,column:n}:e}}class Gt{constructor(e,t){this._host=e,this._models=Object.create(null),this._foreignModuleFactory=t,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(e){return this._models[e]}_getModels(){let e=[];return Object.keys(this._models).forEach(t=>e.push(this._models[t])),e}acceptNewModel(e){this._models[e.url]=new jt(he.parse(e.url),e.lines,e.EOL,e.versionId)}acceptModelChanged(e,t){if(!this._models[e])return;this._models[e].onEvents(t)}acceptRemovedModel(e){this._models[e]&&delete this._models[e]}computeDiff(e,t,n,i){return $t(this,void 0,void 0,(function*(){const r=this._getModel(e),s=this._getModel(t);if(!r||!s)return null;const o=r.getLinesContent(),a=s.getLinesContent(),l=new Te(o,a,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:n,shouldMakePrettyDiff:!0,maxComputationTime:i}).computeDiff(),u=!(l.changes.length>0)&&this._modelsAreIdentical(r,s);return{quitEarly:l.quitEarly,identical:u,changes:l.changes}}))}_modelsAreIdentical(e,t){const n=e.getLineCount();if(n!==t.getLineCount())return!1;for(let i=1;i<=n;i++){if(e.getLineContent(i)!==t.getLineContent(i))return!1}return!0}computeMoreMinimalEdits(e,t){return $t(this,void 0,void 0,(function*(){const n=this._getModel(e);if(!n)return t;const i=[];let r=void 0;t=E(t,(e,t)=>{if(e.range&&t.range)return Se.compareRangesUsingStarts(e.range,t.range);return(e.range?0:1)-(t.range?0:1)});for(let{range:e,text:s,eol:o}of t){if("number"==typeof o&&(r=o),Se.isEmpty(e)&&!s)continue;const t=n.getValueInRange(e);if(t===(s=s.replace(/\r\n|\n|\r/g,n.eol)))continue;if(Math.max(s.length,t.length)>Gt._diffLimit){i.push({range:e,text:s});continue}const a=U(t,s,!1),l=n.offsetAt(Se.lift(e).getStartPosition());for(const e of a){const t=n.positionAt(l+e.originalStart),r=n.positionAt(l+e.originalStart+e.originalLength),o={text:s.substr(e.modifiedStart,e.modifiedLength),range:{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:r.lineNumber,endColumn:r.column}};n.getValueInRange(o.range)!==o.text&&i.push(o)}}return"number"==typeof r&&i.push({eol:r,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),i}))}computeLinks(e){return $t(this,void 0,void 0,(function*(){let t=this._getModel(e);return t?function(e){return e&&"function"==typeof e.getLineCount&&"function"==typeof e.getLineContent?$e.computeLinks(e):[]}(t):null}))}textualSuggest(e,t,n,i){return $t(this,void 0,void 0,(function*(){const r=this._getModel(e);if(!r)return null;const s=[],o=new Set,a=new RegExp(n,i),l=r.getWordAtPosition(t,a);l&&o.add(r.getValueInRange(l));for(let e of r.words(a))if(!o.has(e)&&(o.add(e),isNaN(Number(e))&&(s.push(e),o.size>Gt._suggestionsLimit)))break;return s}))}computeWordRanges(e,t,n,i){return $t(this,void 0,void 0,(function*(){let r=this._getModel(e);if(!r)return Object.create(null);const s=new RegExp(n,i),o=Object.create(null);for(let e=t.startLineNumber;e<t.endLineNumber;e++){let t=r.getLineWords(e,s);for(const n of t){if(!isNaN(Number(n.word)))continue;let t=o[n.word];t||(t=[],o[n.word]=t),t.push({startLineNumber:e,startColumn:n.startColumn,endLineNumber:e,endColumn:n.endColumn})}}return o}))}navigateValueSet(e,t,n,i,r){return $t(this,void 0,void 0,(function*(){let s=this._getModel(e);if(!s)return null;let o=new RegExp(i,r);t.startColumn===t.endColumn&&(t={startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn+1});let a=s.getValueInRange(t),l=s.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn},o);if(!l)return null;let u=s.getValueInRange(l);return je.INSTANCE.navigateValueSet(t,a,l,u,n)}))}loadForeignModule(e,t,n){let i={host:b(n,(e,t)=>this._host.fhr(e,t)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(i,t),Promise.resolve(C(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(e,t){if(!this._foreignModule||"function"!=typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(e){return Promise.reject(e)}}}Gt._diffLimit=1e5,Gt._suggestionsLimit=1e4,"function"==typeof importScripts&&(p.a.monaco={editor:void 0,languages:void 0,CancellationTokenSource:rt,Emitter:Je,KeyCode:At,KeyMod:Yt,Position:Le,Range:Se,Selection:Ht,SelectionDirection:kt,MarkerSeverity:yt,MarkerTag:wt,Uri:he,Token:Vt}),n.d(t,"initialize",(function(){return Qt}));let zt=!1;function Qt(e){if(zt)return;zt=!0;const t=new N(e=>{self.postMessage(e)},t=>new Gt(t,e));self.onmessage=e=>{t.onmessage(e.data)}}self.onmessage=e=>{zt||Qt(null)}}]); \ No newline at end of file diff --git a/docs/json.worker.js b/docs/json.worker.js new file mode 100644 index 00000000..b1d05912 --- /dev/null +++ b/docs/json.worker.js @@ -0,0 +1 @@ +!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=5)}([function(e,t,n){"use strict";(function(e,r){n.d(t,"d",(function(){return p})),n.d(t,"b",(function(){return v})),n.d(t,"c",(function(){return y})),n.d(t,"a",(function(){return b})),n.d(t,"e",(function(){return C}));let i=!1,o=!1,s=!1,a=!1,u=!1,l=!1,c=void 0,h="en",f=void 0,d=void 0;const m=void 0!==e&&void 0!==e.versions&&void 0!==e.versions.electron&&"renderer"===e.type;if("object"!=typeof navigator||m){if("object"==typeof e){i="win32"===e.platform,o="darwin"===e.platform,s="linux"===e.platform,c="en",h="en";const t=e.env.VSCODE_NLS_CONFIG;if(t)try{const e=JSON.parse(t),n=e.availableLanguages["*"];c=e.locale,h=n||"en",f=e._translationsConfigFile}catch(e){}a=!0}}else i=(d=navigator.userAgent).indexOf("Windows")>=0,o=d.indexOf("Macintosh")>=0,l=(d.indexOf("Macintosh")>=0||d.indexOf("iPad")>=0||d.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,s=d.indexOf("Linux")>=0,u=!0,h=c=navigator.language;let g=0;o?g=1:i?g=3:s&&(g=2);const p=i,v=o,y=u,b="object"==typeof self?self:"object"==typeof r?r:{},C=function(){if(b.setImmediate)return b.setImmediate.bind(b);if("function"==typeof b.postMessage&&!b.importScripts){let e=[];b.addEventListener("message",t=>{if(t.data&&t.data.vscodeSetImmediateId)for(let n=0,r=e.length;n<r;n++){const r=e[n];if(r.id===t.data.vscodeSetImmediateId)return e.splice(n,1),void r.callback()}});let t=0;return n=>{const r=++t;e.push({id:r,callback:n}),b.postMessage({vscodeSetImmediateId:r},"*")}}if(void 0!==e&&"function"==typeof e.nextTick)return e.nextTick.bind(e);const t=Promise.resolve();return e=>t.then(e)}()}).call(this,n(3),n(4))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return a}));var r=n(0);const i=void 0===e?{cwd:()=>"/",env:Object.create(null),get platform(){return r.d?"win32":r.b?"darwin":"linux"},nextTick:e=>Object(r.e)(e)}:e,o=i.cwd,s=i.env,a=i.platform}).call(this,n(3))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return m}));var r,i,o,s=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});if("object"==typeof e)o="win32"===e.platform;else if("object"==typeof navigator){var a=navigator.userAgent;o=a.indexOf("Windows")>=0}var u=/^\w[\w\d+.-]*$/,l=/^\//,c=/^\/\//;var h="",f="/",d=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,m=function(){function e(e,t,n,r,i,o){void 0===o&&(o=!1),"object"==typeof e?(this.scheme=e.scheme||h,this.authority=e.authority||h,this.path=e.path||h,this.query=e.query||h,this.fragment=e.fragment||h):(this.scheme=function(e,t){return e||t?e:"file"}(e,o),this.authority=t||h,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==f&&(t=f+t):t=f}return t}(this.scheme,n||h),this.query=r||h,this.fragment=i||h,function(e,t){if(!e.scheme&&t)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+e.authority+'", path: "'+e.path+'", query: "'+e.query+'", fragment: "'+e.fragment+'"}');if(e.scheme&&!u.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!l.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(c.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,o))}return e.isUri=function(t){return t instanceof e||!!t&&("string"==typeof t.authority&&"string"==typeof t.fragment&&"string"==typeof t.path&&"string"==typeof t.query&&"string"==typeof t.scheme&&"function"==typeof t.fsPath&&"function"==typeof t.with&&"function"==typeof t.toString)},Object.defineProperty(e.prototype,"fsPath",{get:function(){return C(this,!1)},enumerable:!0,configurable:!0}),e.prototype.with=function(e){if(!e)return this;var t=e.scheme,n=e.authority,r=e.path,i=e.query,o=e.fragment;return void 0===t?t=this.scheme:null===t&&(t=h),void 0===n?n=this.authority:null===n&&(n=h),void 0===r?r=this.path:null===r&&(r=h),void 0===i?i=this.query:null===i&&(i=h),void 0===o?o=this.fragment:null===o&&(o=h),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&o===this.fragment?this:new p(t,n,r,i,o)},e.parse=function(e,t){void 0===t&&(t=!1);var n=d.exec(e);return n?new p(n[2]||h,E(n[4]||h),E(n[5]||h),E(n[7]||h),E(n[9]||h),t):new p(h,h,h,h,h)},e.file=function(e){var t=h;if(o&&(e=e.replace(/\\/g,f)),e[0]===f&&e[1]===f){var n=e.indexOf(f,2);-1===n?(t=e.substring(2),e=f):(t=e.substring(2,n),e=e.substring(n)||f)}return new p("file",t,e,h,h)},e.from=function(e){return new p(e.scheme,e.authority,e.path,e.query,e.fragment)},e.prototype.toString=function(e){return void 0===e&&(e=!1),_(this,e)},e.prototype.toJSON=function(){return this},e.revive=function(t){if(t){if(t instanceof e)return t;var n=new p(t);return n._formatted=t.external,n._fsPath=t._sep===g?t.fsPath:null,n}return t},e}(),g=o?1:void 0,p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._formatted=null,t._fsPath=null,t}return s(t,e),Object.defineProperty(t.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=C(this,!1)),this._fsPath},enumerable:!0,configurable:!0}),t.prototype.toString=function(e){return void 0===e&&(e=!1),e?_(this,!0):(this._formatted||(this._formatted=_(this,!1)),this._formatted)},t.prototype.toJSON=function(){var e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=g),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e},t}(m),v=((i={})[58]="%3A",i[47]="%2F",i[63]="%3F",i[35]="%23",i[91]="%5B",i[93]="%5D",i[64]="%40",i[33]="%21",i[36]="%24",i[38]="%26",i[39]="%27",i[40]="%28",i[41]="%29",i[42]="%2A",i[43]="%2B",i[44]="%2C",i[59]="%3B",i[61]="%3D",i[32]="%20",i);function y(e,t){for(var n=void 0,r=-1,i=0;i<e.length;i++){var o=e.charCodeAt(i);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o)-1!==r&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),void 0!==n&&(n+=e.charAt(i));else{void 0===n&&(n=e.substr(0,i));var s=v[o];void 0!==s?(-1!==r&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),n+=s):-1===r&&(r=i)}}return-1!==r&&(n+=encodeURIComponent(e.substring(r))),void 0!==n?n:e}function b(e){for(var t=void 0,n=0;n<e.length;n++){var r=e.charCodeAt(n);35===r||63===r?(void 0===t&&(t=e.substr(0,n)),t+=v[r]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function C(e,t){var n;return n=e.authority&&e.path.length>1&&"file"===e.scheme?"//"+e.authority+e.path:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,o&&(n=n.replace(/\//g,"\\")),n}function _(e,t){var n=t?b:y,r="",i=e.scheme,o=e.authority,s=e.path,a=e.query,u=e.fragment;if(i&&(r+=i,r+=":"),(o||"file"===i)&&(r+=f,r+=f),o){var l=o.indexOf("@");if(-1!==l){var c=o.substr(0,l);o=o.substr(l+1),-1===(l=c.indexOf(":"))?r+=n(c,!1):(r+=n(c.substr(0,l),!1),r+=":",r+=n(c.substr(l+1),!1)),r+="@"}-1===(l=(o=o.toLowerCase()).indexOf(":"))?r+=n(o,!1):(r+=n(o.substr(0,l),!1),r+=o.substr(l))}if(s){if(s.length>=3&&47===s.charCodeAt(0)&&58===s.charCodeAt(2))(h=s.charCodeAt(1))>=65&&h<=90&&(s="/"+String.fromCharCode(h+32)+":"+s.substr(3));else if(s.length>=2&&58===s.charCodeAt(1)){var h;(h=s.charCodeAt(0))>=65&&h<=90&&(s=String.fromCharCode(h+32)+":"+s.substr(2))}r+=n(s,!0)}return a&&(r+="?",r+=n(a,!1)),u&&(r+="#",r+=t?u:y(u,!1)),r}var S=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function E(e){return e.match(S)?e.replace(S,(function(e){return function e(t){try{return decodeURIComponent(t)}catch(n){return t.length>3?t.substr(0,3)+e(t.substr(3)):t}}(e)})):e}}).call(this,n(3))},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(e){r=s}}();var u,l=[],c=!1,h=-1;function f(){c&&u&&(c=!1,u.length?l=u.concat(l):h=-1,l.length&&d())}function d(){if(!c){var e=a(f);c=!0;for(var t=l.length;t;){for(u=l,l=[];++h<t;)u&&u[h].run();h=-1,t=l.length}u=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function g(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new m(e,t)),1!==l.length||c||a(d)},m.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";n.r(t);const r=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{if(e.stack)throw new Error(e.message+"\n\n"+e.stack);throw e},0)}}emit(e){this.listeners.forEach(t=>{t(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function i(e){a(e)||r.onUnexpectedError(e)}function o(e){if(e instanceof Error){let{name:t,message:n}=e;return{$isError:!0,name:t,message:n,stack:e.stacktrace||e.stack}}return e}const s="Canceled";function a(e){return e instanceof Error&&e.name===s&&e.message===s}var u;!function(e){e.is=function(e){return e&&"object"==typeof e&&"function"==typeof e[Symbol.iterator]};const t=Object.freeze([]);e.empty=function(){return t},e.single=function*(e){yield e},e.from=function(e){return e||t},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,t){for(const n of e)if(t(n))return!0;return!1},e.filter=function*(e,t){for(const n of e)t(n)&&(yield n)},e.map=function*(e,t){for(const n of e)yield t(n)},e.concat=function*(...e){for(const t of e)for(const e of t)yield e},e.consume=function(t,n=Number.POSITIVE_INFINITY){const r=[];if(0===n)return[r,t];const i=t[Symbol.iterator]();for(let t=0;t<n;t++){const t=i.next();if(t.done)return[r,e.empty()];r.push(t.value)}return[r,{[Symbol.iterator]:()=>i}]}}(u||(u={}));const l=!1,c="__is_disposable_tracked__";function h(e){if(l&&e&&e!==p.None)try{e[c]=!0}catch(e){}}function f(e){if(!l)return e;const t=new Error("Potentially leaked disposable").stack;return setTimeout(()=>{e[c]||console.log(t)},3e3),e}class d extends Error{constructor(e){super(`Encounter errors while disposing of store. Errors: [${e.join(", ")}]`),this.errors=e}}function m(e){if(u.is(e)){let t=[];for(const n of e)if(n){h(n);try{n.dispose()}catch(e){t.push(e)}}if(1===t.length)throw t[0];if(t.length>1)throw new d(t);return Array.isArray(e)?[]:e}if(e)return h(e),e.dispose(),e}class g{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(h(this),this._isDisposed=!0,this.clear())}clear(){try{m(this._toDispose.values())}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return h(e),this._isDisposed?g.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}}g.DISABLE_DISPOSED_WARNING=!1;class p{constructor(){this._store=new g,f(this)}dispose(){h(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}p.None=Object.freeze({dispose(){}});var v=n(0);function y(e){const t=[];for(const n of function(e){let t=[],n=Object.getPrototypeOf(e);for(;Object.prototype!==n;)t=t.concat(Object.getOwnPropertyNames(n)),n=Object.getPrototypeOf(n);return t}(e))"function"==typeof e[n]&&t.push(n);return t}function b(e,t){const n=e=>(function(){const n=Array.prototype.slice.call(arguments,0);return t(e,n)});let r={};for(const t of e)r[t]=n(t);return r}const C="$initialize";class _{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null)}setWorkerId(e){this._workerId=e}sendMessage(e,t){let n=String(++this._lastSentReq);return new Promise((r,i)=>{this._pendingReplies[n]={resolve:r,reject:i},this._send({vsWorker:this._workerId,req:n,method:e,args:t})})}handleMessage(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))}_handleMessage(e){if(e.seq){let t=e;if(!this._pendingReplies[t.seq])return void console.warn("Got reply to unknown seq");let n=this._pendingReplies[t.seq];if(delete this._pendingReplies[t.seq],t.err){let e=t.err;return t.err.$isError&&((e=new Error).name=t.err.name,e.message=t.err.message,e.stack=t.err.stack),void n.reject(e)}return void n.resolve(t.res)}let t=e,n=t.req;this._handler.handleMessage(t.method,t.args).then(e=>{this._send({vsWorker:this._workerId,seq:n,res:e,err:void 0})},e=>{e.detail instanceof Error&&(e.detail=o(e.detail)),this._send({vsWorker:this._workerId,seq:n,res:void 0,err:o(e)})})}_send(e){let t=[];if(e.req){const n=e;for(let e=0;e<n.args.length;e++)n.args[e]instanceof ArrayBuffer&&t.push(n.args[e])}else{const n=e;n.res instanceof ArrayBuffer&&t.push(n.res)}this._handler.sendMessage(e,t)}}class S{constructor(e,t){this._requestHandlerFactory=t,this._requestHandler=null,this._protocol=new _({sendMessage:(t,n)=>{e(t,n)},handleMessage:(e,t)=>this._handleMessage(e,t)})}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,t){if(e===C)return this.initialize(t[0],t[1],t[2],t[3]);if(!this._requestHandler||"function"!=typeof this._requestHandler[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._requestHandler[e].apply(this._requestHandler,t))}catch(e){return Promise.reject(e)}}initialize(e,t,n,r){this._protocol.setWorkerId(e);const i=b(r,(e,t)=>this._protocol.sendMessage(e,t));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(i),Promise.resolve(y(this._requestHandler))):(t&&(void 0!==t.baseUrl&&delete t.baseUrl,void 0!==t.paths&&void 0!==t.paths.vs&&delete t.paths.vs,t.catchError=!0,self.require.config(t)),new Promise((e,t)=>{self.require([n],n=>{this._requestHandler=n.create(i),this._requestHandler?e(y(this._requestHandler)):t(new Error("No RequestHandler!"))},t)}))}}function E(e,t){return function e(t,n,r,i,o){if(i<=r)return;const s=r+(i-r)/2|0;if(e(t,n,r,s,o),e(t,n,s+1,i,o),n(t[s],t[s+1])<=0)return;!function(e,t,n,r,i,o){let s=n,a=r+1;for(let t=n;t<=i;t++)o[t]=e[t];for(let u=n;u<=i;u++)s>r?e[u]=o[a++]:a>i?e[u]=o[s++]:t(o[a],o[s])<0?e[u]=o[a++]:e[u]=o[s++]}(t,n,r,s,i,o)}(e,t,0,e.length-1,[]),e}class A{constructor(e,t,n,r){this.originalStart=e,this.originalLength=t,this.modifiedStart=n,this.modifiedLength=r}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function x(e){return 55296<=e&&e<=56319}function N(e){return 56320<=e&&e<=57343}function w(e,t){return t-56320+(e-55296<<10)+65536}String.fromCharCode(65279);class L{constructor(){this._data=JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}static getInstance(){return L._INSTANCE||(L._INSTANCE=new L),L._INSTANCE}getGraphemeBreakType(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;const t=this._data,n=t.length/3;let r=1;for(;r<=n;)if(e<t[3*r])r*=2;else{if(!(e>t[3*r+1]))return t[3*r+2];r=2*r+1}return 0}}function T(e,t){return(t<<5)-t+e|0}function k(e,t){t=T(149417,t);for(let n=0,r=e.length;n<r;n++)t=T(e.charCodeAt(n),t);return t}function O(e,t,n=32){const r=n-t;return(e<<t|(~((1<<r)-1)&e)>>>r)>>>0}function I(e,t=0,n=e.byteLength,r=0){for(let i=0;i<n;i++)e[t+i]=r}function M(e,t=32){return function(e,t,n="0"){for(;e.length<t;)e=n+e;return e}((e>>>0).toString(16),t/4)}L._INSTANCE=null;class P{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const t=e.length;if(0===t)return;const n=this._buff;let r,i,o=this._buffLen,s=this._leftoverHighSurrogate;for(0!==s?(r=s,i=-1,s=0):(r=e.charCodeAt(0),i=0);;){let a=r;if(x(r)){if(!(i+1<t)){s=r;break}{const t=e.charCodeAt(i+1);N(t)?(i++,a=w(r,t)):a=65533}}else N(r)&&(a=65533);if(o=this._push(n,o,a),!(++i<t))break;r=e.charCodeAt(i)}this._buffLen=o,this._leftoverHighSurrogate=s}_push(e,t,n){return n<128?e[t++]=n:n<2048?(e[t++]=192|(1984&n)>>>6,e[t++]=128|(63&n)>>>0):n<65536?(e[t++]=224|(61440&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>0):(e[t++]=240|(1835008&n)>>>18,e[t++]=128|(258048&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),t}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),M(this._h0)+M(this._h1)+M(this._h2)+M(this._h3)+M(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,I(this._buff,this._buffLen),this._buffLen>56&&(this._step(),I(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=P._bigBlock32,t=this._buffDV;for(let n=0;n<64;n+=4)e.setUint32(n,t.getUint32(n,!1),!1);for(let t=64;t<320;t+=4)e.setUint32(t,O(e.getUint32(t-12,!1)^e.getUint32(t-32,!1)^e.getUint32(t-56,!1)^e.getUint32(t-64,!1),1),!1);let n,r,i,o=this._h0,s=this._h1,a=this._h2,u=this._h3,l=this._h4;for(let t=0;t<80;t++)t<20?(n=s&a|~s&u,r=1518500249):t<40?(n=s^a^u,r=1859775393):t<60?(n=s&a|s&u|a&u,r=2400959708):(n=s^a^u,r=3395469782),i=O(o,5)+n+l+r+e.getUint32(4*t,!1)&4294967295,l=u,u=a,a=O(s,30),s=o,o=i;this._h0=this._h0+o&4294967295,this._h1=this._h1+s&4294967295,this._h2=this._h2+a&4294967295,this._h3=this._h3+u&4294967295,this._h4=this._h4+l&4294967295}}P._bigBlock32=new DataView(new ArrayBuffer(320));class R{constructor(e){this.source=e}getElements(){const e=this.source,t=new Int32Array(e.length);for(let n=0,r=e.length;n<r;n++)t[n]=e.charCodeAt(n);return t}}function D(e,t,n){return new V(new R(e),new R(t)).ComputeDiff(n).changes}class F{static Assert(e,t){if(!e)throw new Error(t)}}class j{static Copy(e,t,n,r,i){for(let o=0;o<i;o++)n[r+o]=e[t+o]}static Copy2(e,t,n,r,i){for(let o=0;o<i;o++)n[r+o]=e[t+o]}}class U{constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new A(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class V{constructor(e,t,n=null){this.ContinueProcessingPredicate=n;const[r,i,o]=V._getElements(e),[s,a,u]=V._getElements(t);this._hasStrings=o&&u,this._originalStringElements=r,this._originalElementsOrHash=i,this._modifiedStringElements=s,this._modifiedElementsOrHash=a,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&"string"==typeof e[0]}static _getElements(e){const t=e.getElements();if(V._isStringArray(t)){const e=new Int32Array(t.length);for(let n=0,r=t.length;n<r;n++)e[n]=k(t[n],0);return[t,e,!0]}return t instanceof Int32Array?[[],t,!1]:[[],new Int32Array(t),!1]}ElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._modifiedStringElements[t])}OriginalElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._originalElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._originalStringElements[t])}ModifiedElementsAreEqual(e,t){return this._modifiedElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._modifiedStringElements[e]===this._modifiedStringElements[t])}ComputeDiff(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)}_ComputeDiff(e,t,n,r,i){const o=[!1];let s=this.ComputeDiffRecursive(e,t,n,r,o);return i&&(s=this.PrettifyChanges(s)),{quitEarly:o[0],changes:s}}ComputeDiffRecursive(e,t,n,r,i){for(i[0]=!1;e<=t&&n<=r&&this.ElementsAreEqual(e,n);)e++,n++;for(;t>=e&&r>=n&&this.ElementsAreEqual(t,r);)t--,r--;if(e>t||n>r){let i;return n<=r?(F.Assert(e===t+1,"originalStart should only be one more than originalEnd"),i=[new A(e,0,n,r-n+1)]):e<=t?(F.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),i=[new A(e,t-e+1,n,0)]):(F.Assert(e===t+1,"originalStart should only be one more than originalEnd"),F.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),i=[]),i}const o=[0],s=[0],a=this.ComputeRecursionPoint(e,t,n,r,o,s,i),u=o[0],l=s[0];if(null!==a)return a;if(!i[0]){const o=this.ComputeDiffRecursive(e,u,n,l,i);let s=[];return s=i[0]?[new A(u+1,t-(u+1)+1,l+1,r-(l+1)+1)]:this.ComputeDiffRecursive(u+1,t,l+1,r,i),this.ConcatenateChanges(o,s)}return[new A(e,t-e+1,n,r-n+1)]}WALKTRACE(e,t,n,r,i,o,s,a,u,l,c,h,f,d,m,g,p,v){let y=null,b=null,C=new U,_=t,S=n,E=f[0]-g[0]-r,x=-1073741824,N=this.m_forwardHistory.length-1;do{const t=E+e;t===_||t<S&&u[t-1]<u[t+1]?(d=(c=u[t+1])-E-r,c<x&&C.MarkNextChange(),x=c,C.AddModifiedElement(c+1,d),E=t+1-e):(d=(c=u[t-1]+1)-E-r,c<x&&C.MarkNextChange(),x=c-1,C.AddOriginalElement(c,d+1),E=t-1-e),N>=0&&(e=(u=this.m_forwardHistory[N])[0],_=1,S=u.length-1)}while(--N>=-1);if(y=C.getReverseChanges(),v[0]){let e=f[0]+1,t=g[0]+1;if(null!==y&&y.length>0){const n=y[y.length-1];e=Math.max(e,n.getOriginalEnd()),t=Math.max(t,n.getModifiedEnd())}b=[new A(e,h-e+1,t,m-t+1)]}else{C=new U,_=o,S=s,E=f[0]-g[0]-a,x=1073741824,N=p?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const e=E+i;e===_||e<S&&l[e-1]>=l[e+1]?(d=(c=l[e+1]-1)-E-a,c>x&&C.MarkNextChange(),x=c+1,C.AddOriginalElement(c+1,d+1),E=e+1-i):(d=(c=l[e-1])-E-a,c>x&&C.MarkNextChange(),x=c,C.AddModifiedElement(c+1,d+1),E=e-1-i),N>=0&&(i=(l=this.m_reverseHistory[N])[0],_=1,S=l.length-1)}while(--N>=-1);b=C.getChanges()}return this.ConcatenateChanges(y,b)}ComputeRecursionPoint(e,t,n,r,i,o,s){let a=0,u=0,l=0,c=0,h=0,f=0;e--,n--,i[0]=0,o[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const d=t-e+(r-n),m=d+1,g=new Int32Array(m),p=new Int32Array(m),v=r-n,y=t-e,b=e-n,C=t-r,_=(y-v)%2==0;g[v]=e,p[y]=t,s[0]=!1;for(let S=1;S<=d/2+1;S++){let d=0,E=0;l=this.ClipDiagonalBound(v-S,S,v,m),c=this.ClipDiagonalBound(v+S,S,v,m);for(let e=l;e<=c;e+=2){u=(a=e===l||e<c&&g[e-1]<g[e+1]?g[e+1]:g[e-1]+1)-(e-v)-b;const n=a;for(;a<t&&u<r&&this.ElementsAreEqual(a+1,u+1);)a++,u++;if(g[e]=a,a+u>d+E&&(d=a,E=u),!_&&Math.abs(e-y)<=S-1&&a>=p[e])return i[0]=a,o[0]=u,n<=p[e]&&S<=1448?this.WALKTRACE(v,l,c,b,y,h,f,C,g,p,a,t,i,u,r,o,_,s):null}const x=(d-e+(E-n)-S)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(d,x))return s[0]=!0,i[0]=d,o[0]=E,x>0&&S<=1448?this.WALKTRACE(v,l,c,b,y,h,f,C,g,p,a,t,i,u,r,o,_,s):(e++,n++,[new A(e,t-e+1,n,r-n+1)]);h=this.ClipDiagonalBound(y-S,S,y,m),f=this.ClipDiagonalBound(y+S,S,y,m);for(let d=h;d<=f;d+=2){u=(a=d===h||d<f&&p[d-1]>=p[d+1]?p[d+1]-1:p[d-1])-(d-y)-C;const m=a;for(;a>e&&u>n&&this.ElementsAreEqual(a,u);)a--,u--;if(p[d]=a,_&&Math.abs(d-v)<=S&&a<=g[d])return i[0]=a,o[0]=u,m>=g[d]&&S<=1448?this.WALKTRACE(v,l,c,b,y,h,f,C,g,p,a,t,i,u,r,o,_,s):null}if(S<=1447){let e=new Int32Array(c-l+2);e[0]=v-l+1,j.Copy2(g,l,e,1,c-l+1),this.m_forwardHistory.push(e),(e=new Int32Array(f-h+2))[0]=y-h+1,j.Copy2(p,h,e,1,f-h+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(v,l,c,b,y,h,f,C,g,p,a,t,i,u,r,o,_,s)}PrettifyChanges(e){for(let t=0;t<e.length;t++){const n=e[t],r=t<e.length-1?e[t+1].originalStart:this._originalElementsOrHash.length,i=t<e.length-1?e[t+1].modifiedStart:this._modifiedElementsOrHash.length,o=n.originalLength>0,s=n.modifiedLength>0;for(;n.originalStart+n.originalLength<r&&n.modifiedStart+n.modifiedLength<i&&(!o||this.OriginalElementsAreEqual(n.originalStart,n.originalStart+n.originalLength))&&(!s||this.ModifiedElementsAreEqual(n.modifiedStart,n.modifiedStart+n.modifiedLength));)n.originalStart++,n.modifiedStart++;let a=[null];t<e.length-1&&this.ChangesOverlap(e[t],e[t+1],a)&&(e[t]=a[0],e.splice(t+1,1),t--)}for(let t=e.length-1;t>=0;t--){const n=e[t];let r=0,i=0;if(t>0){const n=e[t-1];n.originalLength>0&&(r=n.originalStart+n.originalLength),n.modifiedLength>0&&(i=n.modifiedStart+n.modifiedLength)}const o=n.originalLength>0,s=n.modifiedLength>0;let a=0,u=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength);for(let e=1;;e++){const t=n.originalStart-e,l=n.modifiedStart-e;if(t<r||l<i)break;if(o&&!this.OriginalElementsAreEqual(t,t+n.originalLength))break;if(s&&!this.ModifiedElementsAreEqual(l,l+n.modifiedLength))break;const c=this._boundaryScore(t,n.originalLength,l,n.modifiedLength);c>u&&(u=c,a=e)}n.originalStart-=a,n.modifiedStart-=a}return e}_OriginalIsBoundary(e){return e<=0||e>=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1}_boundaryScore(e,t,n,r){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(n,r)?1:0)}ConcatenateChanges(e,t){let n=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){const r=new Array(e.length+t.length-1);return j.Copy(e,0,r,0,e.length-1),r[e.length-1]=n[0],j.Copy(t,1,r,e.length,t.length-1),r}{const n=new Array(e.length+t.length);return j.Copy(e,0,n,0,e.length),j.Copy(t,0,n,e.length,t.length),n}}ChangesOverlap(e,t,n){if(F.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),F.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){const r=e.originalStart;let i=e.originalLength;const o=e.modifiedStart;let s=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(i=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(s=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new A(r,i,o,s),!0}return n[0]=null,!1}ClipDiagonalBound(e,t,n,r){if(e>=0&&e<r)return e;const i=t%2==0;if(e<0){return i===(n%2==0)?0:1}return i===((r-n-1)%2==0)?r-1:r-2}}var $=n(1);const W=65,q=97,K=90,B=122,H=46,Y=47,G=92;class z extends Error{constructor(e,t,n){let r;"string"==typeof t&&0===t.indexOf("not ")?(r="must not be",t=t.replace(/^not /,"")):r="must be";const i=-1!==e.indexOf(".")?"property":"argument";let o=`The "${e}" ${i} ${r} of type ${t}`;super(o+=`. Received type ${typeof n}`),this.code="ERR_INVALID_ARG_TYPE"}}function J(e,t){if("string"!=typeof e)throw new z(t,"string",e)}function Q(e){return e===Y||e===G}function Z(e){return e===Y}function X(e){return e>=W&&e<=K||e>=q&&e<=B}function ee(e,t,n,r){let i="",o=0,s=-1,a=0,u=0;for(let l=0;l<=e.length;++l){if(l<e.length)u=e.charCodeAt(l);else{if(r(u))break;u=Y}if(r(u)){if(s===l-1||1===a);else if(2===a){if(i.length<2||2!==o||i.charCodeAt(i.length-1)!==H||i.charCodeAt(i.length-2)!==H){if(i.length>2){const e=i.lastIndexOf(n);-1===e?(i="",o=0):o=(i=i.slice(0,e)).length-1-i.lastIndexOf(n),s=l,a=0;continue}if(0!==i.length){i="",o=0,s=l,a=0;continue}}t&&(i+=i.length>0?`${n}..`:"..",o=2)}else i.length>0?i+=`${n}${e.slice(s+1,l)}`:i=e.slice(s+1,l),o=l-s-1;s=l,a=0}else u===H&&-1!==a?++a:a=-1}return i}function te(e,t){if(null===t||"object"!=typeof t)throw new z("pathObject","Object",t);const n=t.dir||t.root,r=t.base||`${t.name||""}${t.ext||""}`;return n?n===t.root?`${n}${r}`:`${n}${e}${r}`:r}const ne={resolve(...e){let t="",n="",r=!1;for(let i=e.length-1;i>=-1;i--){let o;if(i>=0){if(J(o=e[i],"path"),0===o.length)continue}else 0===t.length?o=$.a():(void 0===(o=$.b[`=${t}`]||$.a())||o.slice(0,2).toLowerCase()!==t.toLowerCase()&&o.charCodeAt(2)===G)&&(o=`${t}\\`);const s=o.length;let a=0,u="",l=!1;const c=o.charCodeAt(0);if(1===s)Q(c)&&(a=1,l=!0);else if(Q(c))if(l=!0,Q(o.charCodeAt(1))){let e=2,t=e;for(;e<s&&!Q(o.charCodeAt(e));)e++;if(e<s&&e!==t){const n=o.slice(t,e);for(t=e;e<s&&Q(o.charCodeAt(e));)e++;if(e<s&&e!==t){for(t=e;e<s&&!Q(o.charCodeAt(e));)e++;e!==s&&e===t||(u=`\\\\${n}\\${o.slice(t,e)}`,a=e)}}}else a=1;else X(c)&&58===o.charCodeAt(1)&&(u=o.slice(0,2),a=2,s>2&&Q(o.charCodeAt(2))&&(l=!0,a=3));if(u.length>0)if(t.length>0){if(u.toLowerCase()!==t.toLowerCase())continue}else t=u;if(r){if(t.length>0)break}else if(n=`${o.slice(a)}\\${n}`,r=l,l&&t.length>0)break}return n=ee(n,!r,"\\",Q),r?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){J(e,"path");const t=e.length;if(0===t)return".";let n,r=0,i=!1;const o=e.charCodeAt(0);if(1===t)return Z(o)?"\\":e;if(Q(o))if(i=!0,Q(e.charCodeAt(1))){let i=2,o=i;for(;i<t&&!Q(e.charCodeAt(i));)i++;if(i<t&&i!==o){const s=e.slice(o,i);for(o=i;i<t&&Q(e.charCodeAt(i));)i++;if(i<t&&i!==o){for(o=i;i<t&&!Q(e.charCodeAt(i));)i++;if(i===t)return`\\\\${s}\\${e.slice(o)}\\`;i!==o&&(n=`\\\\${s}\\${e.slice(o,i)}`,r=i)}}}else r=1;else X(o)&&58===e.charCodeAt(1)&&(n=e.slice(0,2),r=2,t>2&&Q(e.charCodeAt(2))&&(i=!0,r=3));let s=r<t?ee(e.slice(r),!i,"\\",Q):"";return 0!==s.length||i||(s="."),s.length>0&&Q(e.charCodeAt(t-1))&&(s+="\\"),void 0===n?i?`\\${s}`:s:i?`${n}\\${s}`:`${n}${s}`},isAbsolute(e){J(e,"path");const t=e.length;if(0===t)return!1;const n=e.charCodeAt(0);return Q(n)||t>2&&X(n)&&58===e.charCodeAt(1)&&Q(e.charCodeAt(2))},join(...e){if(0===e.length)return".";let t,n;for(let r=0;r<e.length;++r){const i=e[r];J(i,"path"),i.length>0&&(void 0===t?t=n=i:t+=`\\${i}`)}if(void 0===t)return".";let r=!0,i=0;if("string"==typeof n&&Q(n.charCodeAt(0))){++i;const e=n.length;e>1&&Q(n.charCodeAt(1))&&(++i,e>2&&(Q(n.charCodeAt(2))?++i:r=!1))}if(r){for(;i<t.length&&Q(t.charCodeAt(i));)i++;i>=2&&(t=`\\${t.slice(i)}`)}return ne.normalize(t)},relative(e,t){if(J(e,"from"),J(t,"to"),e===t)return"";const n=ne.resolve(e),r=ne.resolve(t);if(n===r)return"";if((e=n.toLowerCase())===(t=r.toLowerCase()))return"";let i=0;for(;i<e.length&&e.charCodeAt(i)===G;)i++;let o=e.length;for(;o-1>i&&e.charCodeAt(o-1)===G;)o--;const s=o-i;let a=0;for(;a<t.length&&t.charCodeAt(a)===G;)a++;let u=t.length;for(;u-1>a&&t.charCodeAt(u-1)===G;)u--;const l=u-a,c=s<l?s:l;let h=-1,f=0;for(;f<c;f++){const n=e.charCodeAt(i+f);if(n!==t.charCodeAt(a+f))break;n===G&&(h=f)}if(f!==c){if(-1===h)return r}else{if(l>c){if(t.charCodeAt(a+f)===G)return r.slice(a+f+1);if(2===f)return r.slice(a+f)}s>c&&(e.charCodeAt(i+f)===G?h=f:2===f&&(h=3)),-1===h&&(h=0)}let d="";for(f=i+h+1;f<=o;++f)f!==o&&e.charCodeAt(f)!==G||(d+=0===d.length?"..":"\\..");return a+=h,d.length>0?`${d}${r.slice(a,u)}`:(r.charCodeAt(a)===G&&++a,r.slice(a,u))},toNamespacedPath(e){if("string"!=typeof e)return e;if(0===e.length)return"";const t=ne.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===G){if(t.charCodeAt(1)===G){const e=t.charCodeAt(2);if(63!==e&&e!==H)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(X(t.charCodeAt(0))&&58===t.charCodeAt(1)&&t.charCodeAt(2)===G)return`\\\\?\\${t}`;return e},dirname(e){J(e,"path");const t=e.length;if(0===t)return".";let n=-1,r=0;const i=e.charCodeAt(0);if(1===t)return Q(i)?e:".";if(Q(i)){if(n=r=1,Q(e.charCodeAt(1))){let i=2,o=i;for(;i<t&&!Q(e.charCodeAt(i));)i++;if(i<t&&i!==o){for(o=i;i<t&&Q(e.charCodeAt(i));)i++;if(i<t&&i!==o){for(o=i;i<t&&!Q(e.charCodeAt(i));)i++;if(i===t)return e;i!==o&&(n=r=i+1)}}}}else X(i)&&58===e.charCodeAt(1)&&(r=n=t>2&&Q(e.charCodeAt(2))?3:2);let o=-1,s=!0;for(let n=t-1;n>=r;--n)if(Q(e.charCodeAt(n))){if(!s){o=n;break}}else s=!1;if(-1===o){if(-1===n)return".";o=n}return e.slice(0,o)},basename(e,t){void 0!==t&&J(t,"ext"),J(e,"path");let n,r=0,i=-1,o=!0;if(e.length>=2&&X(e.charCodeAt(0))&&58===e.charCodeAt(1)&&(r=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let s=t.length-1,a=-1;for(n=e.length-1;n>=r;--n){const u=e.charCodeAt(n);if(Q(u)){if(!o){r=n+1;break}}else-1===a&&(o=!1,a=n+1),s>=0&&(u===t.charCodeAt(s)?-1==--s&&(i=n):(s=-1,i=a))}return r===i?i=a:-1===i&&(i=e.length),e.slice(r,i)}for(n=e.length-1;n>=r;--n)if(Q(e.charCodeAt(n))){if(!o){r=n+1;break}}else-1===i&&(o=!1,i=n+1);return-1===i?"":e.slice(r,i)},extname(e){J(e,"path");let t=0,n=-1,r=0,i=-1,o=!0,s=0;e.length>=2&&58===e.charCodeAt(1)&&X(e.charCodeAt(0))&&(t=r=2);for(let a=e.length-1;a>=t;--a){const t=e.charCodeAt(a);if(Q(t)){if(!o){r=a+1;break}}else-1===i&&(o=!1,i=a+1),t===H?-1===n?n=a:1!==s&&(s=1):-1!==n&&(s=-1)}return-1===n||-1===i||0===s||1===s&&n===i-1&&n===r+1?"":e.slice(n,i)},format:te.bind(null,"\\"),parse(e){J(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.length;let r=0,i=e.charCodeAt(0);if(1===n)return Q(i)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(Q(i)){if(r=1,Q(e.charCodeAt(1))){let t=2,i=t;for(;t<n&&!Q(e.charCodeAt(t));)t++;if(t<n&&t!==i){for(i=t;t<n&&Q(e.charCodeAt(t));)t++;if(t<n&&t!==i){for(i=t;t<n&&!Q(e.charCodeAt(t));)t++;t===n?r=t:t!==i&&(r=t+1)}}}}else if(X(i)&&58===e.charCodeAt(1)){if(n<=2)return t.root=t.dir=e,t;if(r=2,Q(e.charCodeAt(2))){if(3===n)return t.root=t.dir=e,t;r=3}}r>0&&(t.root=e.slice(0,r));let o=-1,s=r,a=-1,u=!0,l=e.length-1,c=0;for(;l>=r;--l)if(Q(i=e.charCodeAt(l))){if(!u){s=l+1;break}}else-1===a&&(u=!1,a=l+1),i===H?-1===o?o=l:1!==c&&(c=1):-1!==o&&(c=-1);return-1!==a&&(-1===o||0===c||1===c&&o===a-1&&o===s+1?t.base=t.name=e.slice(s,a):(t.name=e.slice(s,o),t.base=e.slice(s,a),t.ext=e.slice(o,a))),t.dir=s>0&&s!==r?e.slice(0,s-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},re={resolve(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const i=r>=0?e[r]:$.a();J(i,"path"),0!==i.length&&(t=`${i}/${t}`,n=i.charCodeAt(0)===Y)}return t=ee(t,!n,"/",Z),n?`/${t}`:t.length>0?t:"."},normalize(e){if(J(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===Y,n=e.charCodeAt(e.length-1)===Y;return 0===(e=ee(e,!t,"/",Z)).length?t?"/":n?"./":".":(n&&(e+="/"),t?`/${e}`:e)},isAbsolute:e=>(J(e,"path"),e.length>0&&e.charCodeAt(0)===Y),join(...e){if(0===e.length)return".";let t;for(let n=0;n<e.length;++n){const r=e[n];J(r,"path"),r.length>0&&(void 0===t?t=r:t+=`/${r}`)}return void 0===t?".":re.normalize(t)},relative(e,t){if(J(e,"from"),J(t,"to"),e===t)return"";if((e=re.resolve(e))===(t=re.resolve(t)))return"";const n=e.length,r=n-1,i=t.length-1,o=r<i?r:i;let s=-1,a=0;for(;a<o;a++){const n=e.charCodeAt(1+a);if(n!==t.charCodeAt(1+a))break;n===Y&&(s=a)}if(a===o)if(i>o){if(t.charCodeAt(1+a)===Y)return t.slice(1+a+1);if(0===a)return t.slice(1+a)}else r>o&&(e.charCodeAt(1+a)===Y?s=a:0===a&&(s=0));let u="";for(a=1+s+1;a<=n;++a)a!==n&&e.charCodeAt(a)!==Y||(u+=0===u.length?"..":"/..");return`${u}${t.slice(1+s)}`},toNamespacedPath:e=>e,dirname(e){if(J(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===Y;let n=-1,r=!0;for(let t=e.length-1;t>=1;--t)if(e.charCodeAt(t)===Y){if(!r){n=t;break}}else r=!1;return-1===n?t?"/":".":t&&1===n?"//":e.slice(0,n)},basename(e,t){void 0!==t&&J(t,"ext"),J(e,"path");let n,r=0,i=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let s=t.length-1,a=-1;for(n=e.length-1;n>=0;--n){const u=e.charCodeAt(n);if(u===Y){if(!o){r=n+1;break}}else-1===a&&(o=!1,a=n+1),s>=0&&(u===t.charCodeAt(s)?-1==--s&&(i=n):(s=-1,i=a))}return r===i?i=a:-1===i&&(i=e.length),e.slice(r,i)}for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===Y){if(!o){r=n+1;break}}else-1===i&&(o=!1,i=n+1);return-1===i?"":e.slice(r,i)},extname(e){J(e,"path");let t=-1,n=0,r=-1,i=!0,o=0;for(let s=e.length-1;s>=0;--s){const a=e.charCodeAt(s);if(a!==Y)-1===r&&(i=!1,r=s+1),a===H?-1===t?t=s:1!==o&&(o=1):-1!==t&&(o=-1);else if(!i){n=s+1;break}}return-1===t||-1===r||0===o||1===o&&t===r-1&&t===n+1?"":e.slice(t,r)},format:te.bind(null,"/"),parse(e){J(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.charCodeAt(0)===Y;let r;n?(t.root="/",r=1):r=0;let i=-1,o=0,s=-1,a=!0,u=e.length-1,l=0;for(;u>=r;--u){const t=e.charCodeAt(u);if(t!==Y)-1===s&&(a=!1,s=u+1),t===H?-1===i?i=u:1!==l&&(l=1):-1!==i&&(l=-1);else if(!a){o=u+1;break}}if(-1!==s){const r=0===o&&n?1:o;-1===i||0===l||1===l&&i===s-1&&i===o+1?t.base=t.name=e.slice(r,s):(t.name=e.slice(r,i),t.base=e.slice(r,s),t.ext=e.slice(i,s))}return o>0?t.dir=e.slice(0,o-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};re.win32=ne.win32=ne,re.posix=ne.posix=re;"win32"===$.c?ne.normalize:re.normalize,"win32"===$.c?ne.resolve:re.resolve,"win32"===$.c?ne.relative:re.relative,"win32"===$.c?ne.dirname:re.dirname,"win32"===$.c?ne.basename:re.basename,"win32"===$.c?ne.extname:re.extname,"win32"===$.c?ne.sep:re.sep;const ie=/^\w[\w\d+.-]*$/,oe=/^\//,se=/^\/\//;const ae="",ue="/",le=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class ce{constructor(e,t,n,r,i,o=!1){"object"==typeof e?(this.scheme=e.scheme||ae,this.authority=e.authority||ae,this.path=e.path||ae,this.query=e.query||ae,this.fragment=e.fragment||ae):(this.scheme=function(e,t){return e||t?e:"file"}(e,o),this.authority=t||ae,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==ue&&(t=ue+t):t=ue}return t}(this.scheme,n||ae),this.query=r||ae,this.fragment=i||ae,function(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!ie.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!oe.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(se.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,o))}static isUri(e){return e instanceof ce||!!e&&("string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"function"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString)}get fsPath(){return pe(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:r,query:i,fragment:o}=e;return void 0===t?t=this.scheme:null===t&&(t=ae),void 0===n?n=this.authority:null===n&&(n=ae),void 0===r?r=this.path:null===r&&(r=ae),void 0===i?i=this.query:null===i&&(i=ae),void 0===o?o=this.fragment:null===o&&(o=ae),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&o===this.fragment?this:new fe(t,n,r,i,o)}static parse(e,t=!1){const n=le.exec(e);return n?new fe(n[2]||ae,be(n[4]||ae),be(n[5]||ae),be(n[7]||ae),be(n[9]||ae),t):new fe(ae,ae,ae,ae,ae)}static file(e){let t=ae;if(v.d&&(e=e.replace(/\\/g,ue)),e[0]===ue&&e[1]===ue){const n=e.indexOf(ue,2);-1===n?(t=e.substring(2),e=ue):(t=e.substring(2,n),e=e.substring(n)||ue)}return new fe("file",t,e,ae,ae)}static from(e){return new fe(e.scheme,e.authority,e.path,e.query,e.fragment)}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPaths on URI without path");let n;return n=v.d&&"file"===e.scheme?ce.file(ne.join(pe(e,!0),...t)).path:re.join(e.path,...t),e.with({path:n})}toString(e=!1){return ve(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof ce)return e;{const t=new fe(e);return t._formatted=e.external,t._fsPath=e._sep===he?e.fsPath:null,t}}return e}}const he=v.d?1:void 0;class fe extends ce{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=pe(this,!1)),this._fsPath}toString(e=!1){return e?ve(this,!0):(this._formatted||(this._formatted=ve(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=he),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const de={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function me(e,t){let n=void 0,r=-1;for(let i=0;i<e.length;i++){const o=e.charCodeAt(i);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o)-1!==r&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),void 0!==n&&(n+=e.charAt(i));else{void 0===n&&(n=e.substr(0,i));const t=de[o];void 0!==t?(-1!==r&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),n+=t):-1===r&&(r=i)}}return-1!==r&&(n+=encodeURIComponent(e.substring(r))),void 0!==n?n:e}function ge(e){let t=void 0;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);35===r||63===r?(void 0===t&&(t=e.substr(0,n)),t+=de[r]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function pe(e,t){let n;return n=e.authority&&e.path.length>1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,v.d&&(n=n.replace(/\//g,"\\")),n}function ve(e,t){const n=t?ge:me;let r="",{scheme:i,authority:o,path:s,query:a,fragment:u}=e;if(i&&(r+=i,r+=":"),(o||"file"===i)&&(r+=ue,r+=ue),o){let e=o.indexOf("@");if(-1!==e){const t=o.substr(0,e);o=o.substr(e+1),-1===(e=t.indexOf(":"))?r+=n(t,!1):(r+=n(t.substr(0,e),!1),r+=":",r+=n(t.substr(e+1),!1)),r+="@"}-1===(e=(o=o.toLowerCase()).indexOf(":"))?r+=n(o,!1):(r+=n(o.substr(0,e),!1),r+=o.substr(e))}if(s){if(s.length>=3&&47===s.charCodeAt(0)&&58===s.charCodeAt(2)){const e=s.charCodeAt(1);e>=65&&e<=90&&(s=`/${String.fromCharCode(e+32)}:${s.substr(3)}`)}else if(s.length>=2&&58===s.charCodeAt(1)){const e=s.charCodeAt(0);e>=65&&e<=90&&(s=`${String.fromCharCode(e+32)}:${s.substr(2)}`)}r+=n(s,!0)}return a&&(r+="?",r+=n(a,!1)),u&&(r+="#",r+=t?u:me(u,!1)),r}const ye=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function be(e){return e.match(ye)?e.replace(ye,e=>(function e(t){try{return decodeURIComponent(t)}catch(n){return t.length>3?t.substr(0,3)+e(t.substr(3)):t}})(e)):e}class Ce{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new Ce(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return Ce.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return Ce.isBefore(this,e)}static isBefore(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<t.column}isBeforeOrEqual(e){return Ce.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<=t.column}static compare(e,t){let n=0|e.lineNumber,r=0|t.lineNumber;if(n===r){return(0|e.column)-(0|t.column)}return n-r}clone(){return new Ce(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(e){return new Ce(e.lineNumber,e.column)}static isIPosition(e){return e&&"number"==typeof e.lineNumber&&"number"==typeof e.column}}class _e{constructor(e,t,n,r){e>n||e===n&&t>r?(this.startLineNumber=n,this.startColumn=r,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=r)}isEmpty(){return _e.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return _e.containsPosition(this,e)}static containsPosition(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber)&&(!(t.lineNumber===e.startLineNumber&&t.column<e.startColumn)&&!(t.lineNumber===e.endLineNumber&&t.column>e.endColumn))}containsRange(e){return _e.containsRange(this,e)}static containsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber)&&(!(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumn<e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>e.endColumn)))}strictContainsRange(e){return _e.strictContainsRange(this,e)}static strictContainsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber)&&(!(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)))}plusRange(e){return _e.plusRange(this,e)}static plusRange(e,t){let n,r,i,o;return t.startLineNumber<e.startLineNumber?(n=t.startLineNumber,r=t.startColumn):t.startLineNumber===e.startLineNumber?(n=t.startLineNumber,r=Math.min(t.startColumn,e.startColumn)):(n=e.startLineNumber,r=e.startColumn),t.endLineNumber>e.endLineNumber?(i=t.endLineNumber,o=t.endColumn):t.endLineNumber===e.endLineNumber?(i=t.endLineNumber,o=Math.max(t.endColumn,e.endColumn)):(i=e.endLineNumber,o=e.endColumn),new _e(n,r,i,o)}intersectRanges(e){return _e.intersectRanges(this,e)}static intersectRanges(e,t){let n=e.startLineNumber,r=e.startColumn,i=e.endLineNumber,o=e.endColumn,s=t.startLineNumber,a=t.startColumn,u=t.endLineNumber,l=t.endColumn;return n<s?(n=s,r=a):n===s&&(r=Math.max(r,a)),i>u?(i=u,o=l):i===u&&(o=Math.min(o,l)),n>i?null:n===i&&r>o?null:new _e(n,r,i,o)}equalsRange(e){return _e.equalsRange(this,e)}static equalsRange(e,t){return!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return _e.getEndPosition(this)}static getEndPosition(e){return new Ce(e.endLineNumber,e.endColumn)}getStartPosition(){return _e.getStartPosition(this)}static getStartPosition(e){return new Ce(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new _e(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new _e(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return _e.collapseToStart(this)}static collapseToStart(e){return new _e(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}static fromPositions(e,t=e){return new _e(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new _e(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"==typeof e.startLineNumber&&"number"==typeof e.startColumn&&"number"==typeof e.endLineNumber&&"number"==typeof e.endColumn}static areIntersectingOrTouching(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<t.startColumn)&&!(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<e.startColumn)}static areIntersecting(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<=t.startColumn)&&!(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<=e.startColumn)}static compareRangesUsingStarts(e,t){if(e&&t){const n=0|e.startLineNumber,r=0|t.startLineNumber;if(n===r){const n=0|e.startColumn,r=0|t.startColumn;if(n===r){const n=0|e.endLineNumber,r=0|t.endLineNumber;if(n===r){return(0|e.endColumn)-(0|t.endColumn)}return n-r}return n-r}return n-r}return(e?1:0)-(t?1:0)}static compareRangesUsingEnds(e,t){return e.endLineNumber===t.endLineNumber?e.endColumn===t.endColumn?e.startLineNumber===t.startLineNumber?e.startColumn-t.startColumn:e.startLineNumber-t.startLineNumber:e.endColumn-t.endColumn:e.endLineNumber-t.endLineNumber}static spansMultipleLines(e){return e.endLineNumber>e.startLineNumber}}const Se=3;function Ee(e,t,n,r){return new V(e,t,n).ComputeDiff(r)}class Ae{constructor(e){const t=[],n=[];for(let r=0,i=e.length;r<i;r++)t[r]=Te(e[r],1),n[r]=ke(e[r],1);this.lines=e,this._startColumns=t,this._endColumns=n}getElements(){const e=[];for(let t=0,n=this.lines.length;t<n;t++)e[t]=this.lines[t].substring(this._startColumns[t]-1,this._endColumns[t]-1);return e}getStartLineNumber(e){return e+1}getEndLineNumber(e){return e+1}createCharSequence(e,t,n){const r=[],i=[],o=[];let s=0;for(let a=t;a<=n;a++){const t=this.lines[a],n=e?this._startColumns[a]:1,u=e?this._endColumns[a]:t.length+1;for(let e=n;e<u;e++)r[s]=t.charCodeAt(e-1),i[s]=a+1,o[s]=e,s++}return new xe(r,i,o)}}class xe{constructor(e,t,n){this._charCodes=e,this._lineNumbers=t,this._columns=n}getElements(){return this._charCodes}getStartLineNumber(e){return this._lineNumbers[e]}getStartColumn(e){return this._columns[e]}getEndLineNumber(e){return this._lineNumbers[e]}getEndColumn(e){return this._columns[e]+1}}class Ne{constructor(e,t,n,r,i,o,s,a){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=n,this.originalEndColumn=r,this.modifiedStartLineNumber=i,this.modifiedStartColumn=o,this.modifiedEndLineNumber=s,this.modifiedEndColumn=a}static createFromDiffChange(e,t,n){let r,i,o,s,a,u,l,c;return 0===e.originalLength?(r=0,i=0,o=0,s=0):(r=t.getStartLineNumber(e.originalStart),i=t.getStartColumn(e.originalStart),o=t.getEndLineNumber(e.originalStart+e.originalLength-1),s=t.getEndColumn(e.originalStart+e.originalLength-1)),0===e.modifiedLength?(a=0,u=0,l=0,c=0):(a=n.getStartLineNumber(e.modifiedStart),u=n.getStartColumn(e.modifiedStart),l=n.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),c=n.getEndColumn(e.modifiedStart+e.modifiedLength-1)),new Ne(r,i,o,s,a,u,l,c)}}class we{constructor(e,t,n,r,i){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=n,this.modifiedEndLineNumber=r,this.charChanges=i}static createFromDiffResult(e,t,n,r,i,o,s){let a,u,l,c,h=void 0;if(0===t.originalLength?(a=n.getStartLineNumber(t.originalStart)-1,u=0):(a=n.getStartLineNumber(t.originalStart),u=n.getEndLineNumber(t.originalStart+t.originalLength-1)),0===t.modifiedLength?(l=r.getStartLineNumber(t.modifiedStart)-1,c=0):(l=r.getStartLineNumber(t.modifiedStart),c=r.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),o&&t.originalLength>0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&i()){const o=n.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),a=r.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);let u=Ee(o,a,i,!0).changes;s&&(u=function(e){if(e.length<=1)return e;const t=[e[0]];let n=t[0];for(let r=1,i=e.length;r<i;r++){const i=e[r],o=i.originalStart-(n.originalStart+n.originalLength),s=i.modifiedStart-(n.modifiedStart+n.modifiedLength);Math.min(o,s)<Se?(n.originalLength=i.originalStart+i.originalLength-n.originalStart,n.modifiedLength=i.modifiedStart+i.modifiedLength-n.modifiedStart):(t.push(i),n=i)}return t}(u)),h=[];for(let e=0,t=u.length;e<t;e++)h.push(Ne.createFromDiffChange(u[e],o,a))}return new we(a,u,l,c,h)}}class Le{constructor(e,t,n){this.shouldComputeCharChanges=n.shouldComputeCharChanges,this.shouldPostProcessCharChanges=n.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=n.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=n.shouldMakePrettyDiff,this.originalLines=e,this.modifiedLines=t,this.original=new Ae(e),this.modified=new Ae(t),this.continueLineDiff=Oe(n.maxComputationTime),this.continueCharDiff=Oe(0===n.maxComputationTime?0:Math.min(n.maxComputationTime,5e3))}computeDiff(){if(1===this.original.lines.length&&0===this.original.lines[0].length)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}]};if(1===this.modified.lines.length&&0===this.modified.lines[0].length)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}]};const e=Ee(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),t=e.changes,n=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){const e=[];for(let n=0,r=t.length;n<r;n++)e.push(we.createFromDiffResult(this.shouldIgnoreTrimWhitespace,t[n],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:n,changes:e}}const r=[];let i=0,o=0;for(let e=-1,n=t.length;e<n;e++){const s=e+1<n?t[e+1]:null,a=s?s.originalStart:this.originalLines.length,u=s?s.modifiedStart:this.modifiedLines.length;for(;i<a&&o<u;){const e=this.originalLines[i],t=this.modifiedLines[o];if(e!==t){{let n=Te(e,1),s=Te(t,1);for(;n>1&&s>1;){if(e.charCodeAt(n-2)!==t.charCodeAt(s-2))break;n--,s--}(n>1||s>1)&&this._pushTrimWhitespaceCharChange(r,i+1,1,n,o+1,1,s)}{let n=ke(e,1),s=ke(t,1);const a=e.length+1,u=t.length+1;for(;n<a&&s<u;){if(e.charCodeAt(n-1)!==e.charCodeAt(s-1))break;n++,s++}(n<a||s<u)&&this._pushTrimWhitespaceCharChange(r,i+1,n,a,o+1,s,u)}}i++,o++}s&&(r.push(we.createFromDiffResult(this.shouldIgnoreTrimWhitespace,s,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),i+=s.originalLength,o+=s.modifiedLength)}return{quitEarly:n,changes:r}}_pushTrimWhitespaceCharChange(e,t,n,r,i,o,s){if(this._mergeTrimWhitespaceCharChange(e,t,n,r,i,o,s))return;let a=void 0;this.shouldComputeCharChanges&&(a=[new Ne(t,n,t,r,i,o,i,s)]),e.push(new we(t,t,i,i,a))}_mergeTrimWhitespaceCharChange(e,t,n,r,i,o,s){const a=e.length;if(0===a)return!1;const u=e[a-1];return 0!==u.originalEndLineNumber&&0!==u.modifiedEndLineNumber&&(u.originalEndLineNumber+1===t&&u.modifiedEndLineNumber+1===i&&(u.originalEndLineNumber=t,u.modifiedEndLineNumber=i,this.shouldComputeCharChanges&&u.charChanges&&u.charChanges.push(new Ne(t,n,t,r,i,o,i,s)),!0))}}function Te(e,t){const n=function(e){for(let t=0,n=e.length;t<n;t++){const n=e.charCodeAt(t);if(32!==n&&9!==n)return t}return-1}(e);return-1===n?t:n+1}function ke(e,t){const n=function(e,t=e.length-1){for(let n=t;n>=0;n--){const t=e.charCodeAt(n);if(32!==t&&9!==t)return n}return-1}(e);return-1===n?t:n+2}function Oe(e){if(0===e)return()=>!0;const t=Date.now();return()=>Date.now()-t<e}function Ie(e){return e<0?0:e>255?255:0|e}function Me(e){return e<0?0:e>4294967295?4294967295:0|e}class Pe{constructor(e,t){this.index=e,this.remainder=t}}class Re{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=Me(e);const n=this.values,r=this.prefixSum,i=t.length;return 0!==i&&(this.values=new Uint32Array(n.length+i),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e),e+i),this.values.set(t,e),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}changeValue(e,t){return e=Me(e),t=Me(t),this.values[e]!==t&&(this.values[e]=t,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)}removeValues(e,t){e=Me(e),t=Me(t);const n=this.values,r=this.prefixSum;if(e>=n.length)return!1;let i=n.length-e;return t>=i&&(t=i),0!==t&&(this.values=new Uint32Array(n.length-t),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalValue(){return 0===this.values.length?0:this._getAccumulatedValue(this.values.length-1)}getAccumulatedValue(e){return e<0?0:(e=Me(e),this._getAccumulatedValue(e))}_getAccumulatedValue(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let n=t;n<=e;n++)this.prefixSum[n]=this.prefixSum[n-1]+this.values[n];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalValue();let t=0,n=this.values.length-1,r=0,i=0,o=0;for(;t<=n;)if(r=t+(n-t)/2|0,e<(o=(i=this.prefixSum[r])-this.values[r]))n=r-1;else{if(!(e>=i))break;t=r+1}return new Pe(r,e-o)}}class De{constructor(e,t,n,r){this._uri=e,this._lines=t,this._eol=n,this._versionId=r,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}getText(){return null===this._cachedTextValue&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const t=e.changes;for(const e of t)this._acceptDeleteRange(e.range),this._acceptInsertText(new Ce(e.range.startLineNumber,e.range.startColumn),e.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,t=this._lines.length,n=new Uint32Array(t);for(let r=0;r<t;r++)n[r]=this._lines[r].length+e;this._lineStarts=new Re(n)}}_setLineText(e,t){this._lines[e]=t,this._lineStarts&&this._lineStarts.changeValue(e,this._lines[e].length+this._eol.length)}_acceptDeleteRange(e){if(e.startLineNumber!==e.endLineNumber)this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.endLineNumber-1].substring(e.endColumn-1)),this._lines.splice(e.startLineNumber,e.endLineNumber-e.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(e.startLineNumber,e.endLineNumber-e.startLineNumber);else{if(e.startColumn===e.endColumn)return;this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.startLineNumber-1].substring(e.endColumn-1))}}_acceptInsertText(e,t){if(0===t.length)return;let n=t.split(/\r\n|\r|\n/);if(1===n.length)return void this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]+this._lines[e.lineNumber-1].substring(e.column-1));n[n.length-1]+=this._lines[e.lineNumber-1].substring(e.column-1),this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]);let r=new Uint32Array(n.length-1);for(let t=1;t<n.length;t++)this._lines.splice(e.lineNumber+t-1,0,n[t]),r[t-1]=n[t].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,r)}}const Fe="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";const je=function(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const n of Fe)e.indexOf(n)>=0||(t+="\\"+n);return t+="\\s]+)",new RegExp(t,"g")}();const Ue={maxLen:1e3,windowSize:15,timeBudget:150};function Ve(e,t,n,r){let i;for(;i=e.exec(t);){const t=i.index||0;if(t<=n&&e.lastIndex>=n)return i;if(r>0&&t>r)return null}return null}class $e{constructor(e){let t=Ie(e);this._defaultValue=t,this._asciiMap=$e._createAsciiMap(t),this._map=new Map}static _createAsciiMap(e){let t=new Uint8Array(256);for(let n=0;n<256;n++)t[n]=e;return t}set(e,t){let n=Ie(t);e>=0&&e<256?this._asciiMap[e]=n:this._map.set(e,n)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}}class We{constructor(e,t,n){const r=new Uint8Array(e*t);for(let i=0,o=e*t;i<o;i++)r[i]=n;this._data=r,this.rows=e,this.cols=t}get(e,t){return this._data[e*this.cols+t]}set(e,t,n){this._data[e*this.cols+t]=n}}class qe{constructor(e){let t=0,n=0;for(let r=0,i=e.length;r<i;r++){let[i,o,s]=e[r];o>t&&(t=o),i>n&&(n=i),s>n&&(n=s)}t++,n++;let r=new We(n,t,0);for(let t=0,n=e.length;t<n;t++){let[n,i,o]=e[t];r.set(n,i,o)}this._states=r,this._maxCharCode=t}nextState(e,t){return t<0||t>=this._maxCharCode?0:this._states.get(e,t)}}let Ke=null;let Be=null;class He{static _createLink(e,t,n,r,i){let o=i-1;do{const n=t.charCodeAt(o);if(2!==e.get(n))break;o--}while(o>r);if(r>0){const e=t.charCodeAt(r-1),n=t.charCodeAt(o);(40===e&&41===n||91===e&&93===n||123===e&&125===n)&&o--}return{range:{startLineNumber:n,startColumn:r+1,endLineNumber:n,endColumn:o+2},url:t.substring(r,o+1)}}static computeLinks(e,t=(null===Ke&&(Ke=new qe([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),Ke)){const n=function(){if(null===Be){Be=new $e(0);const e=" \t<>'\"、。。、,.:;‘“〈《「『【〔([{「」}])〕】』」》〉”’`~…";for(let t=0;t<e.length;t++)Be.set(e.charCodeAt(t),1);const t=".,;";for(let e=0;e<t.length;e++)Be.set(t.charCodeAt(e),2)}return Be}();let r=[];for(let i=1,o=e.getLineCount();i<=o;i++){const o=e.getLineContent(i),s=o.length;let a=0,u=0,l=0,c=1,h=!1,f=!1,d=!1,m=!1;for(;a<s;){let e=!1;const s=o.charCodeAt(a);if(13===c){let t;switch(s){case 40:h=!0,t=0;break;case 41:t=h?0:1;break;case 91:d=!0,f=!0,t=0;break;case 93:d=!1,t=f?0:1;break;case 123:m=!0,t=0;break;case 125:t=m?0:1;break;case 39:t=34===l||96===l?0:1;break;case 34:t=39===l||96===l?0:1;break;case 96:t=39===l||34===l?0:1;break;case 42:t=42===l?1:0;break;case 124:t=124===l?1:0;break;case 32:t=d?0:1;break;default:t=n.get(s)}1===t&&(r.push(He._createLink(n,o,i,u,a)),e=!0)}else if(12===c){let t;91===s?(f=!0,t=0):t=n.get(s),1===t?e=!0:c=13}else 0===(c=t.nextState(c,s))&&(e=!0);e&&(c=1,h=!1,f=!1,m=!1,u=a+1,l=s),a++}13===c&&r.push(He._createLink(n,o,i,u,s))}return r}}class Ye{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(e,t,n,r,i){if(e&&t){let n=this.doNavigateValueSet(t,i);if(n)return{range:e,value:n}}if(n&&r){let e=this.doNavigateValueSet(r,i);if(e)return{range:n,value:e}}return null}doNavigateValueSet(e,t){let n=this.numberReplace(e,t);return null!==n?n:this.textReplace(e,t)}numberReplace(e,t){let n=Math.pow(10,e.length-(e.lastIndexOf(".")+1)),r=Number(e),i=parseFloat(e);return isNaN(r)||isNaN(i)||r!==i?null:0!==r||t?(r=Math.floor(r*n),r+=t?n:-n,String(r/n)):null}textReplace(e,t){return this.valueSetsReplace(this._defaultValueSet,e,t)}valueSetsReplace(e,t,n){let r=null;for(let i=0,o=e.length;null===r&&i<o;i++)r=this.valueSetReplace(e[i],t,n);return r}valueSetReplace(e,t,n){let r=e.indexOf(t);return r>=0?((r+=n?1:-1)<0?r=e.length-1:r%=e.length,e[r]):null}}Ye.INSTANCE=new Ye;class Ge{constructor(e){this.element=e,this.next=Ge.Undefined,this.prev=Ge.Undefined}}Ge.Undefined=new Ge(void 0);class ze{constructor(){this._first=Ge.Undefined,this._last=Ge.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Ge.Undefined}clear(){this._first=Ge.Undefined,this._last=Ge.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new Ge(e);if(this._first===Ge.Undefined)this._first=n,this._last=n;else if(t){const e=this._last;this._last=n,n.prev=e,e.next=n}else{const e=this._first;this._first=n,n.next=e,e.prev=n}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(n))}}shift(){if(this._first!==Ge.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==Ge.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==Ge.Undefined&&e.next!==Ge.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===Ge.Undefined&&e.next===Ge.Undefined?(this._first=Ge.Undefined,this._last=Ge.Undefined):e.next===Ge.Undefined?(this._last=this._last.prev,this._last.next=Ge.Undefined):e.prev===Ge.Undefined&&(this._first=this._first.next,this._first.prev=Ge.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==Ge.Undefined;)yield e.element,e=e.next}toArray(){const e=[];for(let t=this._first;t!==Ge.Undefined;t=t.next)e.push(t.element);return e}}var Je;!function(e){function t(e){return(t,n=null,r)=>{let i,o=!1;return i=e(e=>{if(!o)return i?i.dispose():o=!0,t.call(n,e)},null,r),o&&i.dispose(),i}}function n(e,t){return s((n,r=null,i)=>e(e=>n.call(r,t(e)),null,i))}function r(e,t){return s((n,r=null,i)=>e(e=>{t(e),n.call(r,e)},null,i))}function i(e,t){return s((n,r=null,i)=>e(e=>t(e)&&n.call(r,e),null,i))}function o(e,t,r){let i=r;return n(e,e=>i=t(i,e))}function s(e){let t;const n=new Xe({onFirstListenerAdd(){t=e(n.fire,n)},onLastListenerRemove(){t.dispose()}});return n.event}function a(e,t,n=100,r=!1,i){let o,s=void 0,a=void 0,u=0;const l=new Xe({leakWarningThreshold:i,onFirstListenerAdd(){o=e(e=>{u++,s=t(s,e),r&&!a&&(l.fire(s),s=void 0),clearTimeout(a),a=setTimeout(()=>{const e=s;s=void 0,a=void 0,(!r||u>1)&&l.fire(e),u=0},n)})},onLastListenerRemove(){o.dispose()}});return l.event}function u(e){let t,n=!0;return i(e,e=>{const r=n||e!==t;return n=!1,t=e,r})}e.None=()=>p.None,e.once=t,e.map=n,e.forEach=r,e.filter=i,e.signal=function(e){return e},e.any=function(...e){return(t,n=null,r)=>(function(...e){return e.forEach(h),f({dispose:()=>m(e)})})(...e.map(e=>e(e=>t.call(n,e),null,r)))},e.reduce=o,e.snapshot=s,e.debounce=a,e.stopwatch=function(e){const r=(new Date).getTime();return n(t(e),e=>(new Date).getTime()-r)},e.latch=u,e.buffer=function(e,t=!1,n=[]){let r=n.slice(),i=e(e=>{r?r.push(e):s.fire(e)});const o=()=>{r&&r.forEach(e=>s.fire(e)),r=null},s=new Xe({onFirstListenerAdd(){i||(i=e(e=>s.fire(e)))},onFirstListenerDidAdd(){r&&(t?setTimeout(o):o())},onLastListenerRemove(){i&&i.dispose(),i=null}});return s.event};class l{constructor(e){this.event=e}map(e){return new l(n(this.event,e))}forEach(e){return new l(r(this.event,e))}filter(e){return new l(i(this.event,e))}reduce(e,t){return new l(o(this.event,e,t))}latch(){return new l(u(this.event))}debounce(e,t=100,n=!1,r){return new l(a(this.event,e,t,n,r))}on(e,t,n){return this.event(e,t,n)}once(e,n,r){return t(this.event)(e,n,r)}}e.chain=function(e){return new l(e)},e.fromNodeEventEmitter=function(e,t,n=(e=>e)){const r=(...e)=>i.fire(n(...e)),i=new Xe({onFirstListenerAdd:()=>e.on(t,r),onLastListenerRemove:()=>e.removeListener(t,r)});return i.event},e.fromDOMEventEmitter=function(e,t,n=(e=>e)){const r=(...e)=>i.fire(n(...e)),i=new Xe({onFirstListenerAdd:()=>e.addEventListener(t,r),onLastListenerRemove:()=>e.removeEventListener(t,r)});return i.event},e.fromPromise=function(e){const t=new Xe;let n=!1;return e.then(void 0,()=>null).then(()=>{n?t.fire(void 0):setTimeout(()=>t.fire(void 0),0)}),n=!0,t.event},e.toPromise=function(e){return new Promise(n=>t(e)(n))}}(Je||(Je={}));let Qe=-1;class Ze{constructor(e,t=Math.random().toString(18).slice(2,5)){this.customThreshold=e,this.name=t,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(e){let t=Qe;if("number"==typeof this.customThreshold&&(t=this.customThreshold),t<=0||e<t)return;this._stacks||(this._stacks=new Map);const n=(new Error).stack.split("\n").slice(3).join("\n"),r=this._stacks.get(n)||0;if(this._stacks.set(n,r+1),this._warnCountdown-=1,this._warnCountdown<=0){let n;this._warnCountdown=.5*t;let r=0;for(const[e,t]of this._stacks)(!n||r<t)&&(n=e,r=t);console.warn(`[${this.name}] potential listener LEAK detected, having ${e} listeners already. MOST frequent listener (${r}):`),console.warn(n)}return()=>{const e=this._stacks.get(n)||0;this._stacks.set(n,e-1)}}}class Xe{constructor(e){this._disposed=!1,this._options=e,this._leakageMon=Qe>0?new Ze(this._options&&this._options.leakWarningThreshold):void 0}get event(){return this._event||(this._event=(e,t,n)=>{this._listeners||(this._listeners=new ze);const r=this._listeners.isEmpty();r&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const i=this._listeners.push(t?[e,t]:e);let o,s;return r&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,e,t),this._leakageMon&&(o=this._leakageMon.check(this._listeners.size)),s={dispose:()=>{if(o&&o(),s.dispose=Xe._noop,!this._disposed&&(i(),this._options&&this._options.onLastListenerRemove)){this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)}}},n instanceof g?n.add(s):Array.isArray(n)&&n.push(s),s}),this._event}fire(e){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new ze);for(let t of this._listeners)this._deliveryQueue.push([t,e]);for(;this._deliveryQueue.size>0;){const[e,t]=this._deliveryQueue.shift();try{"function"==typeof e?e.call(void 0,t):e[0].call(e[1],t)}catch(e){i(e)}}}}dispose(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0}}Xe._noop=function(){};const et=Object.freeze((function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}}));var tt,nt;(nt=tt||(tt={})).isCancellationToken=function(e){return e===nt.None||e===nt.Cancelled||e instanceof rt||!(!e||"object"!=typeof e)&&"boolean"==typeof e.isCancellationRequested&&"function"==typeof e.onCancellationRequested},nt.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Je.None}),nt.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:et});class rt{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?et:(this._emitter||(this._emitter=new Xe),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class it{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new rt),this._token}cancel(){this._token?this._token instanceof rt&&this._token.cancel():this._token=tt.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof rt&&this._token.dispose():this._token=tt.None}}class ot{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const st=new ot,at=new ot,ut=new ot;var lt,ct,ht,ft,dt,mt,gt,pt,vt,yt,bt,Ct,_t,St,Et,At,xt,Nt,wt,Lt,Tt,kt,Ot,It,Mt,Pt,Rt,Dt,Ft,jt,Ut,Vt,$t,Wt;!function(){function e(e,t,n=t,r=n){st.define(e,t),at.define(e,n),ut.define(e,r)}e(0,"unknown"),e(1,"Backspace"),e(2,"Tab"),e(3,"Enter"),e(4,"Shift"),e(5,"Ctrl"),e(6,"Alt"),e(7,"PauseBreak"),e(8,"CapsLock"),e(9,"Escape"),e(10,"Space"),e(11,"PageUp"),e(12,"PageDown"),e(13,"End"),e(14,"Home"),e(15,"LeftArrow","Left"),e(16,"UpArrow","Up"),e(17,"RightArrow","Right"),e(18,"DownArrow","Down"),e(19,"Insert"),e(20,"Delete"),e(21,"0"),e(22,"1"),e(23,"2"),e(24,"3"),e(25,"4"),e(26,"5"),e(27,"6"),e(28,"7"),e(29,"8"),e(30,"9"),e(31,"A"),e(32,"B"),e(33,"C"),e(34,"D"),e(35,"E"),e(36,"F"),e(37,"G"),e(38,"H"),e(39,"I"),e(40,"J"),e(41,"K"),e(42,"L"),e(43,"M"),e(44,"N"),e(45,"O"),e(46,"P"),e(47,"Q"),e(48,"R"),e(49,"S"),e(50,"T"),e(51,"U"),e(52,"V"),e(53,"W"),e(54,"X"),e(55,"Y"),e(56,"Z"),e(57,"Meta"),e(58,"ContextMenu"),e(59,"F1"),e(60,"F2"),e(61,"F3"),e(62,"F4"),e(63,"F5"),e(64,"F6"),e(65,"F7"),e(66,"F8"),e(67,"F9"),e(68,"F10"),e(69,"F11"),e(70,"F12"),e(71,"F13"),e(72,"F14"),e(73,"F15"),e(74,"F16"),e(75,"F17"),e(76,"F18"),e(77,"F19"),e(78,"NumLock"),e(79,"ScrollLock"),e(80,";",";","OEM_1"),e(81,"=","=","OEM_PLUS"),e(82,",",",","OEM_COMMA"),e(83,"-","-","OEM_MINUS"),e(84,".",".","OEM_PERIOD"),e(85,"/","/","OEM_2"),e(86,"`","`","OEM_3"),e(110,"ABNT_C1"),e(111,"ABNT_C2"),e(87,"[","[","OEM_4"),e(88,"\\","\\","OEM_5"),e(89,"]","]","OEM_6"),e(90,"'","'","OEM_7"),e(91,"OEM_8"),e(92,"OEM_102"),e(93,"NumPad0"),e(94,"NumPad1"),e(95,"NumPad2"),e(96,"NumPad3"),e(97,"NumPad4"),e(98,"NumPad5"),e(99,"NumPad6"),e(100,"NumPad7"),e(101,"NumPad8"),e(102,"NumPad9"),e(103,"NumPad_Multiply"),e(104,"NumPad_Add"),e(105,"NumPad_Separator"),e(106,"NumPad_Subtract"),e(107,"NumPad_Decimal"),e(108,"NumPad_Divide")}(),function(e){e.toString=function(e){return st.keyCodeToStr(e)},e.fromString=function(e){return st.strToKeyCode(e)},e.toUserSettingsUS=function(e){return at.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return ut.keyCodeToStr(e)},e.fromUserSettings=function(e){return at.strToKeyCode(e)||ut.strToKeyCode(e)}}(lt||(lt={}));class qt extends _e{constructor(e,t,n,r){super(e,t,n,r),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=n,this.positionColumn=r}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return qt.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return 0===this.getDirection()?new qt(this.startLineNumber,this.startColumn,e,t):new qt(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new Ce(this.positionLineNumber,this.positionColumn)}setStartPosition(e,t){return 0===this.getDirection()?new qt(e,t,this.endLineNumber,this.endColumn):new qt(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new qt(e.lineNumber,e.column,t.lineNumber,t.column)}static liftSelection(e){return new qt(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n++)if(!this.selectionsEqual(e[n],t[n]))return!1;return!0}static isISelection(e){return e&&"number"==typeof e.selectionStartLineNumber&&"number"==typeof e.selectionStartColumn&&"number"==typeof e.positionLineNumber&&"number"==typeof e.positionColumn}static createWithDirection(e,t,n,r,i){return 0===i?new qt(e,t,n,r):new qt(n,r,e,t)}}class Kt{constructor(e,t,n){this.offset=0|e,this.type=t,this.language=n}toString(){return"("+this.offset+", "+this.type+")"}}!function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"}(ct||(ct={})),function(e){e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"}(ht||(ht={})),function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"}(ft||(ft={})),function(e){e[e.Deprecated=1]="Deprecated"}(dt||(dt={})),function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(mt||(mt={})),function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"}(gt||(gt={})),function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"}(pt||(pt={})),function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(vt||(vt={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(yt||(yt={})),function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"}(bt||(bt={})),function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.autoClosingBrackets=5]="autoClosingBrackets",e[e.autoClosingOvertype=6]="autoClosingOvertype",e[e.autoClosingQuotes=7]="autoClosingQuotes",e[e.autoIndent=8]="autoIndent",e[e.automaticLayout=9]="automaticLayout",e[e.autoSurround=10]="autoSurround",e[e.codeLens=11]="codeLens",e[e.colorDecorators=12]="colorDecorators",e[e.columnSelection=13]="columnSelection",e[e.comments=14]="comments",e[e.contextmenu=15]="contextmenu",e[e.copyWithSyntaxHighlighting=16]="copyWithSyntaxHighlighting",e[e.cursorBlinking=17]="cursorBlinking",e[e.cursorSmoothCaretAnimation=18]="cursorSmoothCaretAnimation",e[e.cursorStyle=19]="cursorStyle",e[e.cursorSurroundingLines=20]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=21]="cursorSurroundingLinesStyle",e[e.cursorWidth=22]="cursorWidth",e[e.disableLayerHinting=23]="disableLayerHinting",e[e.disableMonospaceOptimizations=24]="disableMonospaceOptimizations",e[e.dragAndDrop=25]="dragAndDrop",e[e.emptySelectionClipboard=26]="emptySelectionClipboard",e[e.extraEditorClassName=27]="extraEditorClassName",e[e.fastScrollSensitivity=28]="fastScrollSensitivity",e[e.find=29]="find",e[e.fixedOverflowWidgets=30]="fixedOverflowWidgets",e[e.folding=31]="folding",e[e.foldingStrategy=32]="foldingStrategy",e[e.foldingHighlight=33]="foldingHighlight",e[e.unfoldOnClickAfterEndOfLine=34]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=35]="fontFamily",e[e.fontInfo=36]="fontInfo",e[e.fontLigatures=37]="fontLigatures",e[e.fontSize=38]="fontSize",e[e.fontWeight=39]="fontWeight",e[e.formatOnPaste=40]="formatOnPaste",e[e.formatOnType=41]="formatOnType",e[e.glyphMargin=42]="glyphMargin",e[e.gotoLocation=43]="gotoLocation",e[e.hideCursorInOverviewRuler=44]="hideCursorInOverviewRuler",e[e.highlightActiveIndentGuide=45]="highlightActiveIndentGuide",e[e.hover=46]="hover",e[e.inDiffEditor=47]="inDiffEditor",e[e.letterSpacing=48]="letterSpacing",e[e.lightbulb=49]="lightbulb",e[e.lineDecorationsWidth=50]="lineDecorationsWidth",e[e.lineHeight=51]="lineHeight",e[e.lineNumbers=52]="lineNumbers",e[e.lineNumbersMinChars=53]="lineNumbersMinChars",e[e.links=54]="links",e[e.matchBrackets=55]="matchBrackets",e[e.minimap=56]="minimap",e[e.mouseStyle=57]="mouseStyle",e[e.mouseWheelScrollSensitivity=58]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=59]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=60]="multiCursorMergeOverlapping",e[e.multiCursorModifier=61]="multiCursorModifier",e[e.multiCursorPaste=62]="multiCursorPaste",e[e.occurrencesHighlight=63]="occurrencesHighlight",e[e.overviewRulerBorder=64]="overviewRulerBorder",e[e.overviewRulerLanes=65]="overviewRulerLanes",e[e.padding=66]="padding",e[e.parameterHints=67]="parameterHints",e[e.peekWidgetDefaultFocus=68]="peekWidgetDefaultFocus",e[e.definitionLinkOpensInPeek=69]="definitionLinkOpensInPeek",e[e.quickSuggestions=70]="quickSuggestions",e[e.quickSuggestionsDelay=71]="quickSuggestionsDelay",e[e.readOnly=72]="readOnly",e[e.renameOnType=73]="renameOnType",e[e.renderControlCharacters=74]="renderControlCharacters",e[e.renderIndentGuides=75]="renderIndentGuides",e[e.renderFinalNewline=76]="renderFinalNewline",e[e.renderLineHighlight=77]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=78]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=79]="renderValidationDecorations",e[e.renderWhitespace=80]="renderWhitespace",e[e.revealHorizontalRightPadding=81]="revealHorizontalRightPadding",e[e.roundedSelection=82]="roundedSelection",e[e.rulers=83]="rulers",e[e.scrollbar=84]="scrollbar",e[e.scrollBeyondLastColumn=85]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=86]="scrollBeyondLastLine",e[e.scrollPredominantAxis=87]="scrollPredominantAxis",e[e.selectionClipboard=88]="selectionClipboard",e[e.selectionHighlight=89]="selectionHighlight",e[e.selectOnLineNumbers=90]="selectOnLineNumbers",e[e.showFoldingControls=91]="showFoldingControls",e[e.showUnused=92]="showUnused",e[e.snippetSuggestions=93]="snippetSuggestions",e[e.smoothScrolling=94]="smoothScrolling",e[e.stopRenderingLineAfter=95]="stopRenderingLineAfter",e[e.suggest=96]="suggest",e[e.suggestFontSize=97]="suggestFontSize",e[e.suggestLineHeight=98]="suggestLineHeight",e[e.suggestOnTriggerCharacters=99]="suggestOnTriggerCharacters",e[e.suggestSelection=100]="suggestSelection",e[e.tabCompletion=101]="tabCompletion",e[e.tabIndex=102]="tabIndex",e[e.unusualLineTerminators=103]="unusualLineTerminators",e[e.useTabStops=104]="useTabStops",e[e.wordSeparators=105]="wordSeparators",e[e.wordWrap=106]="wordWrap",e[e.wordWrapBreakAfterCharacters=107]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=108]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=109]="wordWrapColumn",e[e.wordWrapMinified=110]="wordWrapMinified",e[e.wrappingIndent=111]="wrappingIndent",e[e.wrappingStrategy=112]="wrappingStrategy",e[e.showDeprecated=113]="showDeprecated",e[e.editorClassName=114]="editorClassName",e[e.pixelRatio=115]="pixelRatio",e[e.tabFocusMode=116]="tabFocusMode",e[e.layoutInfo=117]="layoutInfo",e[e.wrappingInfo=118]="wrappingInfo"}(Ct||(Ct={})),function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(_t||(_t={})),function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"}(St||(St={})),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(Et||(Et={})),function(e){e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.KEY_0=21]="KEY_0",e[e.KEY_1=22]="KEY_1",e[e.KEY_2=23]="KEY_2",e[e.KEY_3=24]="KEY_3",e[e.KEY_4=25]="KEY_4",e[e.KEY_5=26]="KEY_5",e[e.KEY_6=27]="KEY_6",e[e.KEY_7=28]="KEY_7",e[e.KEY_8=29]="KEY_8",e[e.KEY_9=30]="KEY_9",e[e.KEY_A=31]="KEY_A",e[e.KEY_B=32]="KEY_B",e[e.KEY_C=33]="KEY_C",e[e.KEY_D=34]="KEY_D",e[e.KEY_E=35]="KEY_E",e[e.KEY_F=36]="KEY_F",e[e.KEY_G=37]="KEY_G",e[e.KEY_H=38]="KEY_H",e[e.KEY_I=39]="KEY_I",e[e.KEY_J=40]="KEY_J",e[e.KEY_K=41]="KEY_K",e[e.KEY_L=42]="KEY_L",e[e.KEY_M=43]="KEY_M",e[e.KEY_N=44]="KEY_N",e[e.KEY_O=45]="KEY_O",e[e.KEY_P=46]="KEY_P",e[e.KEY_Q=47]="KEY_Q",e[e.KEY_R=48]="KEY_R",e[e.KEY_S=49]="KEY_S",e[e.KEY_T=50]="KEY_T",e[e.KEY_U=51]="KEY_U",e[e.KEY_V=52]="KEY_V",e[e.KEY_W=53]="KEY_W",e[e.KEY_X=54]="KEY_X",e[e.KEY_Y=55]="KEY_Y",e[e.KEY_Z=56]="KEY_Z",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.NumLock=78]="NumLock",e[e.ScrollLock=79]="ScrollLock",e[e.US_SEMICOLON=80]="US_SEMICOLON",e[e.US_EQUAL=81]="US_EQUAL",e[e.US_COMMA=82]="US_COMMA",e[e.US_MINUS=83]="US_MINUS",e[e.US_DOT=84]="US_DOT",e[e.US_SLASH=85]="US_SLASH",e[e.US_BACKTICK=86]="US_BACKTICK",e[e.US_OPEN_SQUARE_BRACKET=87]="US_OPEN_SQUARE_BRACKET",e[e.US_BACKSLASH=88]="US_BACKSLASH",e[e.US_CLOSE_SQUARE_BRACKET=89]="US_CLOSE_SQUARE_BRACKET",e[e.US_QUOTE=90]="US_QUOTE",e[e.OEM_8=91]="OEM_8",e[e.OEM_102=92]="OEM_102",e[e.NUMPAD_0=93]="NUMPAD_0",e[e.NUMPAD_1=94]="NUMPAD_1",e[e.NUMPAD_2=95]="NUMPAD_2",e[e.NUMPAD_3=96]="NUMPAD_3",e[e.NUMPAD_4=97]="NUMPAD_4",e[e.NUMPAD_5=98]="NUMPAD_5",e[e.NUMPAD_6=99]="NUMPAD_6",e[e.NUMPAD_7=100]="NUMPAD_7",e[e.NUMPAD_8=101]="NUMPAD_8",e[e.NUMPAD_9=102]="NUMPAD_9",e[e.NUMPAD_MULTIPLY=103]="NUMPAD_MULTIPLY",e[e.NUMPAD_ADD=104]="NUMPAD_ADD",e[e.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",e[e.NUMPAD_SUBTRACT=106]="NUMPAD_SUBTRACT",e[e.NUMPAD_DECIMAL=107]="NUMPAD_DECIMAL",e[e.NUMPAD_DIVIDE=108]="NUMPAD_DIVIDE",e[e.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",e[e.ABNT_C1=110]="ABNT_C1",e[e.ABNT_C2=111]="ABNT_C2",e[e.MAX_VALUE=112]="MAX_VALUE"}(At||(At={})),function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(xt||(xt={})),function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"}(Nt||(Nt={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(wt||(wt={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"}(Lt||(Lt={})),function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"}(Tt||(Tt={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(kt||(kt={})),function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"}(Ot||(Ot={})),function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"}(It||(It={})),function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"}(Mt||(Mt={})),function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"}(Pt||(Pt={})),function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(Rt||(Rt={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(Dt||(Dt={})),function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"}(Ft||(Ft={})),function(e){e[e.Deprecated=1]="Deprecated"}(jt||(jt={})),function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"}(Ut||(Ut={})),function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"}(Vt||(Vt={})),function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"}($t||($t={})),function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"}(Wt||(Wt={}));class Bt{static chord(e,t){return function(e,t){return(e|(65535&t)<<16>>>0)>>>0}(e,t)}}Bt.CtrlCmd=2048,Bt.Shift=1024,Bt.Alt=512,Bt.WinCtrl=256;var Ht=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};class Yt extends De{get uri(){return this._uri}get version(){return this._versionId}get eol(){return this._eol}getValue(){return this.getText()}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(e){return this._lines[e-1]}getWordAtPosition(e,t){let n=function e(t,n,r,i,o=Ue){if(r.length>o.maxLen){let s=t-o.maxLen/2;return s<0?(i+=t,s=0):i+=s,e(t,n,r=r.substring(s,t+o.maxLen/2),i,o)}Date.now();const s=t-1-i;let a=-1,u=null;for(let e=1;;e++){Date.now(),o.timeBudget;const t=s-o.windowSize*e;n.lastIndex=Math.max(0,t);const i=Ve(n,r,s,a);if(!i&&u)break;if(u=i,t<=0)break;a=t}if(u){let e={word:u[0],startColumn:i+1+u.index,endColumn:i+1+u.index+u[0].length};return n.lastIndex=0,e}return null}(e.column,function(e){let t=je;if(e&&e instanceof RegExp)if(e.global)t=e;else{let n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}(t),this._lines[e.lineNumber-1],0);return n?new _e(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn):null}words(e){const t=this._lines,n=this._wordenize.bind(this);let r=0,i="",o=0,s=[];return{*[Symbol.iterator](){for(;;)if(o<s.length){const e=i.substring(s[o].start,s[o].end);o+=1,yield e}else{if(!(r<t.length))break;i=t[r],s=n(i,e),o=0,r+=1}}}}getLineWords(e,t){let n=this._lines[e-1],r=this._wordenize(n,t),i=[];for(const e of r)i.push({word:n.substring(e.start,e.end),startColumn:e.start+1,endColumn:e.end+1});return i}_wordenize(e,t){const n=[];let r;for(t.lastIndex=0;(r=t.exec(e))&&0!==r[0].length;)n.push({start:r.index,end:r.index+r[0].length});return n}getValueInRange(e){if((e=this._validateRange(e)).startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);let t=this._eol,n=e.startLineNumber-1,r=e.endLineNumber-1,i=[];i.push(this._lines[n].substring(e.startColumn-1));for(let e=n+1;e<r;e++)i.push(this._lines[e]);return i.push(this._lines[r].substring(0,e.endColumn-1)),i.join(t)}offsetAt(e){return e=this._validatePosition(e),this._ensureLineStarts(),this._lineStarts.getAccumulatedValue(e.lineNumber-2)+(e.column-1)}positionAt(e){e=Math.floor(e),e=Math.max(0,e),this._ensureLineStarts();let t=this._lineStarts.getIndexOf(e),n=this._lines[t.index].length;return{lineNumber:1+t.index,column:1+Math.min(t.remainder,n)}}_validateRange(e){const t=this._validatePosition({lineNumber:e.startLineNumber,column:e.startColumn}),n=this._validatePosition({lineNumber:e.endLineNumber,column:e.endColumn});return t.lineNumber!==e.startLineNumber||t.column!==e.startColumn||n.lineNumber!==e.endLineNumber||n.column!==e.endColumn?{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:n.lineNumber,endColumn:n.column}:e}_validatePosition(e){if(!Ce.isIPosition(e))throw new Error("bad position");let{lineNumber:t,column:n}=e,r=!1;if(t<1)t=1,n=1,r=!0;else if(t>this._lines.length)t=this._lines.length,n=this._lines[t-1].length+1,r=!0;else{let e=this._lines[t-1].length+1;n<1?(n=1,r=!0):n>e&&(n=e,r=!0)}return r?{lineNumber:t,column:n}:e}}class Gt{constructor(e,t){this._host=e,this._models=Object.create(null),this._foreignModuleFactory=t,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(e){return this._models[e]}_getModels(){let e=[];return Object.keys(this._models).forEach(t=>e.push(this._models[t])),e}acceptNewModel(e){this._models[e.url]=new Yt(ce.parse(e.url),e.lines,e.EOL,e.versionId)}acceptModelChanged(e,t){if(!this._models[e])return;this._models[e].onEvents(t)}acceptRemovedModel(e){this._models[e]&&delete this._models[e]}computeDiff(e,t,n,r){return Ht(this,void 0,void 0,(function*(){const i=this._getModel(e),o=this._getModel(t);if(!i||!o)return null;const s=i.getLinesContent(),a=o.getLinesContent(),u=new Le(s,a,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:n,shouldMakePrettyDiff:!0,maxComputationTime:r}).computeDiff(),l=!(u.changes.length>0)&&this._modelsAreIdentical(i,o);return{quitEarly:u.quitEarly,identical:l,changes:u.changes}}))}_modelsAreIdentical(e,t){const n=e.getLineCount();if(n!==t.getLineCount())return!1;for(let r=1;r<=n;r++){if(e.getLineContent(r)!==t.getLineContent(r))return!1}return!0}computeMoreMinimalEdits(e,t){return Ht(this,void 0,void 0,(function*(){const n=this._getModel(e);if(!n)return t;const r=[];let i=void 0;t=E(t,(e,t)=>{if(e.range&&t.range)return _e.compareRangesUsingStarts(e.range,t.range);return(e.range?0:1)-(t.range?0:1)});for(let{range:e,text:o,eol:s}of t){if("number"==typeof s&&(i=s),_e.isEmpty(e)&&!o)continue;const t=n.getValueInRange(e);if(t===(o=o.replace(/\r\n|\n|\r/g,n.eol)))continue;if(Math.max(o.length,t.length)>Gt._diffLimit){r.push({range:e,text:o});continue}const a=D(t,o,!1),u=n.offsetAt(_e.lift(e).getStartPosition());for(const e of a){const t=n.positionAt(u+e.originalStart),i=n.positionAt(u+e.originalStart+e.originalLength),s={text:o.substr(e.modifiedStart,e.modifiedLength),range:{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:i.lineNumber,endColumn:i.column}};n.getValueInRange(s.range)!==s.text&&r.push(s)}}return"number"==typeof i&&r.push({eol:i,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),r}))}computeLinks(e){return Ht(this,void 0,void 0,(function*(){let t=this._getModel(e);return t?function(e){return e&&"function"==typeof e.getLineCount&&"function"==typeof e.getLineContent?He.computeLinks(e):[]}(t):null}))}textualSuggest(e,t,n,r){return Ht(this,void 0,void 0,(function*(){const i=this._getModel(e);if(!i)return null;const o=[],s=new Set,a=new RegExp(n,r),u=i.getWordAtPosition(t,a);u&&s.add(i.getValueInRange(u));for(let e of i.words(a))if(!s.has(e)&&(s.add(e),isNaN(Number(e))&&(o.push(e),s.size>Gt._suggestionsLimit)))break;return o}))}computeWordRanges(e,t,n,r){return Ht(this,void 0,void 0,(function*(){let i=this._getModel(e);if(!i)return Object.create(null);const o=new RegExp(n,r),s=Object.create(null);for(let e=t.startLineNumber;e<t.endLineNumber;e++){let t=i.getLineWords(e,o);for(const n of t){if(!isNaN(Number(n.word)))continue;let t=s[n.word];t||(t=[],s[n.word]=t),t.push({startLineNumber:e,startColumn:n.startColumn,endLineNumber:e,endColumn:n.endColumn})}}return s}))}navigateValueSet(e,t,n,r,i){return Ht(this,void 0,void 0,(function*(){let o=this._getModel(e);if(!o)return null;let s=new RegExp(r,i);t.startColumn===t.endColumn&&(t={startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn+1});let a=o.getValueInRange(t),u=o.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn},s);if(!u)return null;let l=o.getValueInRange(u);return Ye.INSTANCE.navigateValueSet(t,a,u,l,n)}))}loadForeignModule(e,t,n){let r={host:b(n,(e,t)=>this._host.fhr(e,t)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(r,t),Promise.resolve(y(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(e,t){if(!this._foreignModule||"function"!=typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(e){return Promise.reject(e)}}}Gt._diffLimit=1e5,Gt._suggestionsLimit=1e4,"function"==typeof importScripts&&(v.a.monaco={editor:void 0,languages:void 0,CancellationTokenSource:it,Emitter:Xe,KeyCode:At,KeyMod:Bt,Position:Ce,Range:_e,Selection:qt,SelectionDirection:Rt,MarkerSeverity:xt,MarkerTag:Nt,Uri:ce,Token:Kt});let zt=!1;function Jt(e){if(zt)return;zt=!0;const t=new S(e=>{self.postMessage(e)},t=>new Gt(t,e));self.onmessage=e=>{t.onmessage(e.data)}}function Qt(e,t){void 0===t&&(t=!1);var n=e.length,r=0,i="",o=0,s=16,a=0,u=0,l=0,c=0,h=0;function f(t,n){for(var i=0,o=0;i<t||!n;){var s=e.charCodeAt(r);if(s>=48&&s<=57)o=16*o+s-48;else if(s>=65&&s<=70)o=16*o+s-65+10;else{if(!(s>=97&&s<=102))break;o=16*o+s-97+10}r++,i++}return i<t&&(o=-1),o}function d(){if(i="",h=0,o=r,u=a,c=l,r>=n)return o=n,s=17;var t=e.charCodeAt(r);if(Zt(t)){do{r++,i+=String.fromCharCode(t),t=e.charCodeAt(r)}while(Zt(t));return s=15}if(Xt(t))return r++,i+=String.fromCharCode(t),13===t&&10===e.charCodeAt(r)&&(r++,i+="\n"),a++,l=r,s=14;switch(t){case 123:return r++,s=1;case 125:return r++,s=2;case 91:return r++,s=3;case 93:return r++,s=4;case 58:return r++,s=6;case 44:return r++,s=5;case 34:return r++,i=function(){for(var t="",i=r;;){if(r>=n){t+=e.substring(i,r),h=2;break}var o=e.charCodeAt(r);if(34===o){t+=e.substring(i,r),r++;break}if(92!==o){if(o>=0&&o<=31){if(Xt(o)){t+=e.substring(i,r),h=2;break}h=6}r++}else{if(t+=e.substring(i,r),++r>=n){h=2;break}switch(e.charCodeAt(r++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:var s=f(4,!0);s>=0?t+=String.fromCharCode(s):h=4;break;default:h=5}i=r}}return t}(),s=10;case 47:var d=r-1;if(47===e.charCodeAt(r+1)){for(r+=2;r<n&&!Xt(e.charCodeAt(r));)r++;return i=e.substring(d,r),s=12}if(42===e.charCodeAt(r+1)){r+=2;for(var g=n-1,p=!1;r<g;){var v=e.charCodeAt(r);if(42===v&&47===e.charCodeAt(r+1)){r+=2,p=!0;break}r++,Xt(v)&&(13===v&&10===e.charCodeAt(r)&&r++,a++,l=r)}return p||(r++,h=1),i=e.substring(d,r),s=13}return i+=String.fromCharCode(t),r++,s=16;case 45:if(i+=String.fromCharCode(t),++r===n||!en(e.charCodeAt(r)))return s=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return i+=function(){var t=r;if(48===e.charCodeAt(r))r++;else for(r++;r<e.length&&en(e.charCodeAt(r));)r++;if(r<e.length&&46===e.charCodeAt(r)){if(!(++r<e.length&&en(e.charCodeAt(r))))return h=3,e.substring(t,r);for(r++;r<e.length&&en(e.charCodeAt(r));)r++}var n=r;if(r<e.length&&(69===e.charCodeAt(r)||101===e.charCodeAt(r)))if((++r<e.length&&43===e.charCodeAt(r)||45===e.charCodeAt(r))&&r++,r<e.length&&en(e.charCodeAt(r))){for(r++;r<e.length&&en(e.charCodeAt(r));)r++;n=r}else h=3;return e.substring(t,n)}(),s=11;default:for(;r<n&&m(t);)r++,t=e.charCodeAt(r);if(o!==r){switch(i=e.substring(o,r)){case"true":return s=8;case"false":return s=9;case"null":return s=7}return s=16}return i+=String.fromCharCode(t),r++,s=16}}function m(e){if(Zt(e)||Xt(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){r=e,i="",o=0,s=16,h=0},getPosition:function(){return r},scan:t?function(){var e;do{e=d()}while(e>=12&&e<=15);return e}:d,getToken:function(){return s},getTokenValue:function(){return i},getTokenOffset:function(){return o},getTokenLength:function(){return r-o},getTokenStartLine:function(){return u},getTokenStartCharacter:function(){return o-c},getTokenError:function(){return h}}}function Zt(e){return 32===e||9===e||11===e||12===e||160===e||5760===e||e>=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function Xt(e){return 10===e||13===e||8232===e||8233===e}function en(e){return e>=48&&e<=57}function tn(e,t,n){var r,i,o,s,a;if(t){for(s=t.offset,a=s+t.length,o=s;o>0&&!rn(e,o-1);)o--;for(var u=a;u<e.length&&!rn(e,u);)u++;i=e.substring(o,u),r=function(e,t){var n=0,r=0,i=t.tabSize||4;for(;n<e.length;){var o=e.charAt(n);if(" "===o)r++;else{if("\t"!==o)break;r+=i}n++}return Math.floor(r/i)}(i,n)}else i=e,r=0,o=0,s=0,a=e.length;var l,c=function(e,t){for(var n=0;n<t.length;n++){var r=t.charAt(n);if("\r"===r)return n+1<t.length&&"\n"===t.charAt(n+1)?"\r\n":"\r";if("\n"===r)return"\n"}return e&&e.eol||"\n"}(n,e),h=!1,f=0;l=n.insertSpaces?nn(" ",n.tabSize||4):"\t";var d=Qt(i,!1),m=!1;function g(){return c+nn(l,r+f)}function p(){var e=d.scan();for(h=!1;15===e||14===e;)h=h||14===e,e=d.scan();return m=16===e||0!==d.getTokenError(),e}var v=[];function y(t,n,r){!m&&n<a&&r>s&&e.substring(n,r)!==t&&v.push({offset:n,length:r-n,content:t})}var b=p();if(17!==b){var C=d.getTokenOffset()+o;y(nn(l,r),o,C)}for(;17!==b;){for(var _=d.getTokenOffset()+d.getTokenLength()+o,S=p(),E="";!h&&(12===S||13===S);){y(" ",_,d.getTokenOffset()+o),_=d.getTokenOffset()+d.getTokenLength()+o,E=12===S?g():"",S=p()}if(2===S)1!==b&&(f--,E=g());else if(4===S)3!==b&&(f--,E=g());else{switch(b){case 3:case 1:f++,E=g();break;case 5:case 12:E=g();break;case 13:E=h?g():" ";break;case 6:E=" ";break;case 10:if(6===S){E="";break}case 7:case 8:case 9:case 11:case 2:case 4:12===S||13===S?E=" ":5!==S&&17!==S&&(m=!0);break;case 16:m=!0}!h||12!==S&&13!==S||(E=g())}y(E,_,d.getTokenOffset()+o),b=S}return v}function nn(e,t){for(var n="",r=0;r<t;r++)n+=e;return n}function rn(e,t){return-1!=="\r\n".indexOf(e.charAt(t))}var on;function sn(e,t,n){void 0===n&&(n=on.DEFAULT);var r=Qt(e,!1);function i(e){return e?function(){return e(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter())}:function(){return!0}}function o(e){return e?function(t){return e(t,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter())}:function(){return!0}}var s=i(t.onObjectBegin),a=o(t.onObjectProperty),u=i(t.onObjectEnd),l=i(t.onArrayBegin),c=i(t.onArrayEnd),h=o(t.onLiteralValue),f=o(t.onSeparator),d=i(t.onComment),m=o(t.onError),g=n&&n.disallowComments,p=n&&n.allowTrailingComma;function v(){for(;;){var e=r.scan();switch(r.getTokenError()){case 4:y(14);break;case 5:y(15);break;case 3:y(13);break;case 1:g||y(11);break;case 2:y(12);break;case 6:y(16)}switch(e){case 12:case 13:g?y(10):d();break;case 16:y(1);break;case 15:case 14:break;default:return e}}}function y(e,t,n){if(void 0===t&&(t=[]),void 0===n&&(n=[]),m(e),t.length+n.length>0)for(var i=r.getToken();17!==i;){if(-1!==t.indexOf(i)){v();break}if(-1!==n.indexOf(i))break;i=v()}}function b(e){var t=r.getTokenValue();return e?h(t):a(t),v(),!0}function C(){switch(r.getToken()){case 3:return function(){l(),v();for(var e=!1;4!==r.getToken()&&17!==r.getToken();){if(5===r.getToken()){if(e||y(4,[],[]),f(","),v(),4===r.getToken()&&p)break}else e&&y(6,[],[]);C()||y(4,[],[4,5]),e=!0}return c(),4!==r.getToken()?y(8,[4],[]):v(),!0}();case 1:return function(){s(),v();for(var e=!1;2!==r.getToken()&&17!==r.getToken();){if(5===r.getToken()){if(e||y(4,[],[]),f(","),v(),2===r.getToken()&&p)break}else e&&y(6,[],[]);(10!==r.getToken()?(y(3,[],[2,5]),0):(b(!1),6===r.getToken()?(f(":"),v(),C()||y(4,[],[2,5])):y(5,[],[2,5]),1))||y(4,[],[2,5]),e=!0}return u(),2!==r.getToken()?y(7,[2],[]):v(),!0}();case 10:return b(!0);default:return function(){switch(r.getToken()){case 11:var e=0;try{"number"!=typeof(e=JSON.parse(r.getTokenValue()))&&(y(2),e=0)}catch(e){y(2)}h(e);break;case 7:h(null);break;case 8:h(!0);break;case 9:h(!1);break;default:return!1}return v(),!0}()}}return v(),17===r.getToken()?!!n.allowEmptyContent||(y(4,[],[]),!1):C()?(17!==r.getToken()&&y(9,[],[]),!0):(y(4,[],[]),!1)}self.onmessage=e=>{zt||Jt(null)},function(e){e.DEFAULT={allowTrailingComma:!1}}(on||(on={}));var an,un,ln,cn,hn,fn,dn,mn,gn,pn,vn,yn,bn,Cn,_n,Sn,En,An,xn,Nn,wn,Ln=Qt,Tn=function(e,t,n){void 0===t&&(t=[]),void 0===n&&(n=on.DEFAULT);var r=null,i=[],o=[];function s(e){Array.isArray(i)?i.push(e):null!==r&&(i[r]=e)}return sn(e,{onObjectBegin:function(){var e={};s(e),o.push(i),i=e,r=null},onObjectProperty:function(e){r=e},onObjectEnd:function(){i=o.pop()},onArrayBegin:function(){var e=[];s(e),o.push(i),i=e,r=null},onArrayEnd:function(){i=o.pop()},onLiteralValue:s,onError:function(e,n,r){t.push({error:e,offset:n,length:r})}},n),i[0]},kn=function e(t,n,r){if(void 0===r&&(r=!1),function(e,t,n){return void 0===n&&(n=!1),t>=e.offset&&t<e.offset+e.length||n&&t===e.offset+e.length}(t,n,r)){var i=t.children;if(Array.isArray(i))for(var o=0;o<i.length&&i[o].offset<=n;o++){var s=e(i[o],n,r);if(s)return s}return t}},On=function e(t){if(!t.parent||!t.parent.children)return[];var n=e(t.parent);if("property"===t.parent.type){var r=t.parent.children[0].value;n.push(r)}else if("array"===t.parent.type){var i=t.parent.children.indexOf(t);-1!==i&&n.push(i)}return n},In=function e(t){switch(t.type){case"array":return t.children.map(e);case"object":for(var n=Object.create(null),r=0,i=t.children;r<i.length;r++){var o=i[r],s=o.children[1];s&&(n[o.children[0].value]=e(s))}return n;case"null":case"string":case"number":case"boolean":return t.value;default:return}};function Mn(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(typeof e!=typeof t)return!1;if("object"!=typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;var n,r;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(!Mn(e[n],t[n]))return!1}else{var i=[];for(r in e)i.push(r);i.sort();var o=[];for(r in t)o.push(r);if(o.sort(),!Mn(i,o))return!1;for(n=0;n<i.length;n++)if(!Mn(e[i[n]],t[i[n]]))return!1}return!0}function Pn(e){return"number"==typeof e}function Rn(e){return void 0!==e}function Dn(e){return"boolean"==typeof e}!function(e){e.create=function(e,t){return{line:e,character:t}},e.is=function(e){var t=e;return fr.objectLiteral(t)&&fr.number(t.line)&&fr.number(t.character)}}(an||(an={})),(ln=un||(un={})).create=function(e,t,n,r){if(fr.number(e)&&fr.number(t)&&fr.number(n)&&fr.number(r))return{start:an.create(e,t),end:an.create(n,r)};if(an.is(e)&&an.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments["+e+", "+t+", "+n+", "+r+"]")},ln.is=function(e){var t=e;return fr.objectLiteral(t)&&an.is(t.start)&&an.is(t.end)},function(e){e.create=function(e,t){return{uri:e,range:t}},e.is=function(e){var t=e;return fr.defined(t)&&un.is(t.range)&&(fr.string(t.uri)||fr.undefined(t.uri))}}(cn||(cn={})),function(e){e.create=function(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}},e.is=function(e){var t=e;return fr.defined(t)&&un.is(t.targetRange)&&fr.string(t.targetUri)&&(un.is(t.targetSelectionRange)||fr.undefined(t.targetSelectionRange))&&(un.is(t.originSelectionRange)||fr.undefined(t.originSelectionRange))}}(hn||(hn={})),function(e){e.create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},e.is=function(e){var t=e;return fr.number(t.red)&&fr.number(t.green)&&fr.number(t.blue)&&fr.number(t.alpha)}}(fn||(fn={})),function(e){e.create=function(e,t){return{range:e,color:t}},e.is=function(e){var t=e;return un.is(t.range)&&fn.is(t.color)}}(dn||(dn={})),function(e){e.create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},e.is=function(e){var t=e;return fr.string(t.label)&&(fr.undefined(t.textEdit)||Sn.is(t))&&(fr.undefined(t.additionalTextEdits)||fr.typedArray(t.additionalTextEdits,Sn.is))}}(mn||(mn={})),function(e){e.Comment="comment",e.Imports="imports",e.Region="region"}(gn||(gn={})),function(e){e.create=function(e,t,n,r,i){var o={startLine:e,endLine:t};return fr.defined(n)&&(o.startCharacter=n),fr.defined(r)&&(o.endCharacter=r),fr.defined(i)&&(o.kind=i),o},e.is=function(e){var t=e;return fr.number(t.startLine)&&fr.number(t.startLine)&&(fr.undefined(t.startCharacter)||fr.number(t.startCharacter))&&(fr.undefined(t.endCharacter)||fr.number(t.endCharacter))&&(fr.undefined(t.kind)||fr.string(t.kind))}}(pn||(pn={})),function(e){e.create=function(e,t){return{location:e,message:t}},e.is=function(e){var t=e;return fr.defined(t)&&cn.is(t.location)&&fr.string(t.message)}}(vn||(vn={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4}(yn||(yn={})),function(e){e.Unnecessary=1,e.Deprecated=2}(bn||(bn={})),function(e){e.create=function(e,t,n,r,i,o){var s={range:e,message:t};return fr.defined(n)&&(s.severity=n),fr.defined(r)&&(s.code=r),fr.defined(i)&&(s.source=i),fr.defined(o)&&(s.relatedInformation=o),s},e.is=function(e){var t=e;return fr.defined(t)&&un.is(t.range)&&fr.string(t.message)&&(fr.number(t.severity)||fr.undefined(t.severity))&&(fr.number(t.code)||fr.string(t.code)||fr.undefined(t.code))&&(fr.string(t.source)||fr.undefined(t.source))&&(fr.undefined(t.relatedInformation)||fr.typedArray(t.relatedInformation,vn.is))}}(Cn||(Cn={})),function(e){e.create=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i={title:e,command:t};return fr.defined(n)&&n.length>0&&(i.arguments=n),i},e.is=function(e){var t=e;return fr.defined(t)&&fr.string(t.title)&&fr.string(t.command)}}(_n||(_n={})),function(e){e.replace=function(e,t){return{range:e,newText:t}},e.insert=function(e,t){return{range:{start:e,end:e},newText:t}},e.del=function(e){return{range:e,newText:""}},e.is=function(e){var t=e;return fr.objectLiteral(t)&&fr.string(t.newText)&&un.is(t.range)}}(Sn||(Sn={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){var t=e;return fr.defined(t)&&jn.is(t.textDocument)&&Array.isArray(t.edits)}}(En||(En={})),function(e){e.create=function(e,t){var n={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(n.options=t),n},e.is=function(e){var t=e;return t&&"create"===t.kind&&fr.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||fr.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||fr.boolean(t.options.ignoreIfExists)))}}(An||(An={})),function(e){e.create=function(e,t,n){var r={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(r.options=n),r},e.is=function(e){var t=e;return t&&"rename"===t.kind&&fr.string(t.oldUri)&&fr.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||fr.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||fr.boolean(t.options.ignoreIfExists)))}}(xn||(xn={})),function(e){e.create=function(e,t){var n={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(n.options=t),n},e.is=function(e){var t=e;return t&&"delete"===t.kind&&fr.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||fr.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||fr.boolean(t.options.ignoreIfNotExists)))}}(Nn||(Nn={})),function(e){e.is=function(e){var t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((function(e){return fr.string(e.kind)?An.is(e)||xn.is(e)||Nn.is(e):En.is(e)})))}}(wn||(wn={}));var Fn,jn,Un,Vn,$n,Wn,qn,Kn,Bn,Hn,Yn,Gn,zn,Jn,Qn,Zn,Xn,er,tr,nr,rr,ir,or,sr,ar,ur,lr,cr=function(){function e(e){this.edits=e}return e.prototype.insert=function(e,t){this.edits.push(Sn.insert(e,t))},e.prototype.replace=function(e,t){this.edits.push(Sn.replace(e,t))},e.prototype.delete=function(e){this.edits.push(Sn.del(e))},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e}();!function(){function e(e){var t=this;this._textEditChanges=Object.create(null),e&&(this._workspaceEdit=e,e.documentChanges?e.documentChanges.forEach((function(e){if(En.is(e)){var n=new cr(e.edits);t._textEditChanges[e.textDocument.uri]=n}})):e.changes&&Object.keys(e.changes).forEach((function(n){var r=new cr(e.changes[n]);t._textEditChanges[n]=r})))}Object.defineProperty(e.prototype,"edit",{get:function(){return this._workspaceEdit},enumerable:!0,configurable:!0}),e.prototype.getTextEditChange=function(e){if(jn.is(e)){if(this._workspaceEdit||(this._workspaceEdit={documentChanges:[]}),!this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var t=e;if(!(r=this._textEditChanges[t.uri])){var n={textDocument:t,edits:i=[]};this._workspaceEdit.documentChanges.push(n),r=new cr(i),this._textEditChanges[t.uri]=r}return r}if(this._workspaceEdit||(this._workspaceEdit={changes:Object.create(null)}),!this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var r;if(!(r=this._textEditChanges[e])){var i=[];this._workspaceEdit.changes[e]=i,r=new cr(i),this._textEditChanges[e]=r}return r},e.prototype.createFile=function(e,t){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(An.create(e,t))},e.prototype.renameFile=function(e,t,n){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(xn.create(e,t,n))},e.prototype.deleteFile=function(e,t){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(Nn.create(e,t))},e.prototype.checkDocumentChanges=function(){if(!this._workspaceEdit||!this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.")}}();!function(e){e.create=function(e){return{uri:e}},e.is=function(e){var t=e;return fr.defined(t)&&fr.string(t.uri)}}(Fn||(Fn={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return fr.defined(t)&&fr.string(t.uri)&&(null===t.version||fr.number(t.version))}}(jn||(jn={})),function(e){e.create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},e.is=function(e){var t=e;return fr.defined(t)&&fr.string(t.uri)&&fr.string(t.languageId)&&fr.number(t.version)&&fr.string(t.text)}}(Un||(Un={})),function(e){e.PlainText="plaintext",e.Markdown="markdown"}(Vn||(Vn={})),function(e){e.is=function(t){var n=t;return n===e.PlainText||n===e.Markdown}}(Vn||(Vn={})),function(e){e.is=function(e){var t=e;return fr.objectLiteral(e)&&Vn.is(t.kind)&&fr.string(t.value)}}($n||($n={})),function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25}(Wn||(Wn={})),function(e){e.PlainText=1,e.Snippet=2}(qn||(qn={})),function(e){e.Deprecated=1}(Kn||(Kn={})),function(e){e.create=function(e){return{label:e}}}(Bn||(Bn={})),function(e){e.create=function(e,t){return{items:e||[],isIncomplete:!!t}}}(Hn||(Hn={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},e.is=function(e){var t=e;return fr.string(t)||fr.objectLiteral(t)&&fr.string(t.language)&&fr.string(t.value)}}(Yn||(Yn={})),function(e){e.is=function(e){var t=e;return!!t&&fr.objectLiteral(t)&&($n.is(t.contents)||Yn.is(t.contents)||fr.typedArray(t.contents,Yn.is))&&(void 0===e.range||un.is(e.range))}}(Gn||(Gn={})),function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e}}}(zn||(zn={})),function(e){e.create=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i={label:e};return fr.defined(t)&&(i.documentation=t),fr.defined(n)?i.parameters=n:i.parameters=[],i}}(Jn||(Jn={})),function(e){e.Text=1,e.Read=2,e.Write=3}(Qn||(Qn={})),function(e){e.create=function(e,t){var n={range:e};return fr.number(t)&&(n.kind=t),n}}(Zn||(Zn={})),function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26}(Xn||(Xn={})),function(e){e.Deprecated=1}(er||(er={})),function(e){e.create=function(e,t,n,r,i){var o={name:e,kind:t,location:{uri:r,range:n}};return i&&(o.containerName=i),o}}(tr||(tr={})),function(e){e.create=function(e,t,n,r,i,o){var s={name:e,detail:t,kind:n,range:r,selectionRange:i};return void 0!==o&&(s.children=o),s},e.is=function(e){var t=e;return t&&fr.string(t.name)&&fr.number(t.kind)&&un.is(t.range)&&un.is(t.selectionRange)&&(void 0===t.detail||fr.string(t.detail))&&(void 0===t.deprecated||fr.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))}}(nr||(nr={})),function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"}(rr||(rr={})),function(e){e.create=function(e,t){var n={diagnostics:e};return null!=t&&(n.only=t),n},e.is=function(e){var t=e;return fr.defined(t)&&fr.typedArray(t.diagnostics,Cn.is)&&(void 0===t.only||fr.typedArray(t.only,fr.string))}}(ir||(ir={})),function(e){e.create=function(e,t,n){var r={title:e};return _n.is(t)?r.command=t:r.edit=t,void 0!==n&&(r.kind=n),r},e.is=function(e){var t=e;return t&&fr.string(t.title)&&(void 0===t.diagnostics||fr.typedArray(t.diagnostics,Cn.is))&&(void 0===t.kind||fr.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||_n.is(t.command))&&(void 0===t.isPreferred||fr.boolean(t.isPreferred))&&(void 0===t.edit||wn.is(t.edit))}}(or||(or={})),function(e){e.create=function(e,t){var n={range:e};return fr.defined(t)&&(n.data=t),n},e.is=function(e){var t=e;return fr.defined(t)&&un.is(t.range)&&(fr.undefined(t.command)||_n.is(t.command))}}(sr||(sr={})),function(e){e.create=function(e,t){return{tabSize:e,insertSpaces:t}},e.is=function(e){var t=e;return fr.defined(t)&&fr.number(t.tabSize)&&fr.boolean(t.insertSpaces)}}(ar||(ar={})),function(e){e.create=function(e,t,n){return{range:e,target:t,data:n}},e.is=function(e){var t=e;return fr.defined(t)&&un.is(t.range)&&(fr.undefined(t.target)||fr.string(t.target))}}(ur||(ur={})),function(e){e.create=function(e,t){return{range:e,parent:t}},e.is=function(t){var n=t;return void 0!==n&&un.is(n.range)&&(void 0===n.parent||e.is(n.parent))}}(lr||(lr={}));var hr;!function(e){e.create=function(e,t,n,r){return new dr(e,t,n,r)},e.is=function(e){var t=e;return!!(fr.defined(t)&&fr.string(t.uri)&&(fr.undefined(t.languageId)||fr.string(t.languageId))&&fr.number(t.lineCount)&&fr.func(t.getText)&&fr.func(t.positionAt)&&fr.func(t.offsetAt))},e.applyEdits=function(e,t){for(var n=e.getText(),r=function e(t,n){if(t.length<=1)return t;var r=t.length/2|0,i=t.slice(0,r),o=t.slice(r);e(i,n),e(o,n);var s=0,a=0,u=0;for(;s<i.length&&a<o.length;){var l=n(i[s],o[a]);t[u++]=l<=0?i[s++]:o[a++]}for(;s<i.length;)t[u++]=i[s++];for(;a<o.length;)t[u++]=o[a++];return t}(t,(function(e,t){var n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),i=n.length,o=r.length-1;o>=0;o--){var s=r[o],a=e.offsetAt(s.range.start),u=e.offsetAt(s.range.end);if(!(u<=i))throw new Error("Overlapping edit");n=n.substring(0,a)+s.newText+n.substring(u,n.length),i=a}return n}}(hr||(hr={}));var fr,dr=function(){function e(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!0,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,n=!0,r=0;r<t.length;r++){n&&(e.push(r),n=!1);var i=t.charAt(r);n="\r"===i||"\n"===i,"\r"===i&&r+1<t.length&&"\n"===t.charAt(r+1)&&r++}n&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return an.create(0,e);for(;n<r;){var i=Math.floor((n+r)/2);t[i]>e?r=i:n=i+1}var o=n-1;return an.create(o,e-t[o])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],r=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,r),n)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!0,configurable:!0}),e}();!function(e){var t=Object.prototype.toString;e.defined=function(e){return void 0!==e},e.undefined=function(e){return void 0===e},e.boolean=function(e){return!0===e||!1===e},e.string=function(e){return"[object String]"===t.call(e)},e.number=function(e){return"[object Number]"===t.call(e)},e.func=function(e){return"[object Function]"===t.call(e)},e.objectLiteral=function(e){return null!==e&&"object"==typeof e},e.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)}}(fr||(fr={}));var mr,gr,pr,vr=function(){function e(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!0,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content},e.prototype.update=function(t,n){for(var r=0,i=t;r<i.length;r++){var o=i[r];if(e.isIncremental(o)){var s=br(o.range),a=this.offsetAt(s.start),u=this.offsetAt(s.end);this._content=this._content.substring(0,a)+o.text+this._content.substring(u,this._content.length);var l=Math.max(s.start.line,0),c=Math.max(s.end.line,0),h=this._lineOffsets,f=yr(o.text,!1,a);if(c-l===f.length)for(var d=0,m=f.length;d<m;d++)h[d+l+1]=f[d];else f.length<1e4?h.splice.apply(h,[l+1,c-l].concat(f)):this._lineOffsets=h=h.slice(0,l+1).concat(f,h.slice(c+1));var g=o.text.length-(u-a);if(0!==g)for(d=l+1+f.length,m=h.length;d<m;d++)h[d]=h[d]+g}else{if(!e.isFull(o))throw new Error("Unknown change event received");this._content=o.text,this._lineOffsets=void 0}}this._version=n},e.prototype.getLineOffsets=function(){return void 0===this._lineOffsets&&(this._lineOffsets=yr(this._content,!0)),this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return{line:0,character:e};for(;n<r;){var i=Math.floor((n+r)/2);t[i]>e?r=i:n=i+1}var o=n-1;return{line:o,character:e-t[o]}},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],r=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,r),n)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!0,configurable:!0}),e.isIncremental=function(e){var t=e;return null!=t&&"string"==typeof t.text&&void 0!==t.range&&(void 0===t.rangeLength||"number"==typeof t.rangeLength)},e.isFull=function(e){var t=e;return null!=t&&"string"==typeof t.text&&void 0===t.range&&void 0===t.rangeLength},e}();function yr(e,t,n){void 0===n&&(n=0);for(var r=t?[n]:[],i=0;i<e.length;i++){var o=e.charCodeAt(i);13!==o&&10!==o||(13===o&&i+1<e.length&&10===e.charCodeAt(i+1)&&i++,r.push(n+i+1))}return r}function br(e){var t=e.start,n=e.end;return t.line>n.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function Cr(e){var t=br(e.range);return t!==e.range?{newText:e.newText,range:t}:e}function _r(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(e,t){return 0===t.length?e:e.replace(/\{(\d+)\}/g,(function(e,n){var r=n[0];return void 0!==t[r]?t[r]:e}))}(t,n)}function Sr(e){return _r}!function(e){e.create=function(e,t,n,r){return new vr(e,t,n,r)},e.update=function(e,t,n){if(e instanceof vr)return e.update(t,n),e;throw new Error("TextDocument.update: document must be created by TextDocument.create")},e.applyEdits=function(e,t){for(var n=e.getText(),r=0,i=[],o=0,s=function e(t,n){if(t.length<=1)return t;var r=t.length/2|0,i=t.slice(0,r),o=t.slice(r);e(i,n),e(o,n);var s=0,a=0,u=0;for(;s<i.length&&a<o.length;){var l=n(i[s],o[a]);t[u++]=l<=0?i[s++]:o[a++]}for(;s<i.length;)t[u++]=i[s++];for(;a<o.length;)t[u++]=o[a++];return t}(t.map(Cr),(function(e,t){var n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n}));o<s.length;o++){var a=s[o],u=e.offsetAt(a.range.start);if(u<r)throw new Error("Overlapping edit");u>r&&i.push(n.substring(r,u)),a.newText.length&&i.push(a.newText),r=e.offsetAt(a.range.end)}return i.push(n.substr(r)),i.join("")}}(mr||(mr={})),function(e){e[e.Undefined=0]="Undefined",e[e.EnumValueMismatch=1]="EnumValueMismatch",e[e.UnexpectedEndOfComment=257]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=258]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=259]="UnexpectedEndOfNumber",e[e.InvalidUnicode=260]="InvalidUnicode",e[e.InvalidEscapeCharacter=261]="InvalidEscapeCharacter",e[e.InvalidCharacter=262]="InvalidCharacter",e[e.PropertyExpected=513]="PropertyExpected",e[e.CommaExpected=514]="CommaExpected",e[e.ColonExpected=515]="ColonExpected",e[e.ValueExpected=516]="ValueExpected",e[e.CommaOrCloseBacketExpected=517]="CommaOrCloseBacketExpected",e[e.CommaOrCloseBraceExpected=518]="CommaOrCloseBraceExpected",e[e.TrailingComma=519]="TrailingComma",e[e.DuplicateKey=520]="DuplicateKey",e[e.CommentNotPermitted=521]="CommentNotPermitted",e[e.SchemaResolveError=768]="SchemaResolveError"}(gr||(gr={})),(pr||(pr={})).LATEST={textDocument:{completion:{completionItem:{documentationFormat:[Vn.Markdown,Vn.PlainText],commitCharactersSupport:!0}}}};var Er,Ar,xr=(Er=function(e,t){return(Er=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}Er(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Nr=Sr(),wr={"color-hex":{errorMessage:Nr("colorHexFormatWarning","Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA."),pattern:/^#([0-9A-Fa-f]{3,4}|([0-9A-Fa-f]{2}){3,4})$/},"date-time":{errorMessage:Nr("dateTimeFormatWarning","String is not a RFC3339 date-time."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},date:{errorMessage:Nr("dateFormatWarning","String is not a RFC3339 date."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/i},time:{errorMessage:Nr("timeFormatWarning","String is not a RFC3339 time."),pattern:/^([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},email:{errorMessage:Nr("emailFormatWarning","String is not an e-mail address."),pattern:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/}},Lr=function(){function e(e,t,n){void 0===n&&(n=0),this.offset=t,this.length=n,this.parent=e}return Object.defineProperty(e.prototype,"children",{get:function(){return[]},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")},e}(),Tr=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.type="null",r.value=null,r}return xr(t,e),t}(Lr),kr=function(e){function t(t,n,r){var i=e.call(this,t,r)||this;return i.type="boolean",i.value=n,i}return xr(t,e),t}(Lr),Or=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.type="array",r.items=[],r}return xr(t,e),Object.defineProperty(t.prototype,"children",{get:function(){return this.items},enumerable:!1,configurable:!0}),t}(Lr),Ir=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.type="number",r.isInteger=!0,r.value=Number.NaN,r}return xr(t,e),t}(Lr),Mr=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.type="string",i.value="",i}return xr(t,e),t}(Lr),Pr=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i.type="property",i.colonOffset=-1,i.keyNode=r,i}return xr(t,e),Object.defineProperty(t.prototype,"children",{get:function(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]},enumerable:!1,configurable:!0}),t}(Lr),Rr=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.type="object",r.properties=[],r}return xr(t,e),Object.defineProperty(t.prototype,"children",{get:function(){return this.properties},enumerable:!1,configurable:!0}),t}(Lr);function Dr(e){return Dn(e)?e?{}:{not:{}}:e}!function(e){e[e.Key=0]="Key",e[e.Enum=1]="Enum"}(Ar||(Ar={}));var Fr=function(){function e(e,t){void 0===e&&(e=-1),this.focusOffset=e,this.exclude=t,this.schemas=[]}return e.prototype.add=function(e){this.schemas.push(e)},e.prototype.merge=function(e){Array.prototype.push.apply(this.schemas,e.schemas)},e.prototype.include=function(e){return(-1===this.focusOffset||Wr(e,this.focusOffset))&&e!==this.exclude},e.prototype.newSub=function(){return new e(-1,this.exclude)},e}(),jr=function(){function e(){}return Object.defineProperty(e.prototype,"schemas",{get:function(){return[]},enumerable:!1,configurable:!0}),e.prototype.add=function(e){},e.prototype.merge=function(e){},e.prototype.include=function(e){return!0},e.prototype.newSub=function(){return this},e.instance=new e,e}(),Ur=function(){function e(){this.problems=[],this.propertiesMatches=0,this.propertiesValueMatches=0,this.primaryValueMatches=0,this.enumValueMatch=!1,this.enumValues=void 0}return e.prototype.hasProblems=function(){return!!this.problems.length},e.prototype.mergeAll=function(e){for(var t=0,n=e;t<n.length;t++){var r=n[t];this.merge(r)}},e.prototype.merge=function(e){this.problems=this.problems.concat(e.problems)},e.prototype.mergeEnumValues=function(e){if(!this.enumValueMatch&&!e.enumValueMatch&&this.enumValues&&e.enumValues){this.enumValues=this.enumValues.concat(e.enumValues);for(var t=0,n=this.problems;t<n.length;t++){var r=n[t];r.code===gr.EnumValueMismatch&&(r.message=Nr("enumWarning","Value is not accepted. Valid values: {0}.",this.enumValues.map((function(e){return JSON.stringify(e)})).join(", ")))}}},e.prototype.mergePropertyMatch=function(e){this.merge(e),this.propertiesMatches++,(e.enumValueMatch||!e.hasProblems()&&e.propertiesMatches)&&this.propertiesValueMatches++,e.enumValueMatch&&e.enumValues&&1===e.enumValues.length&&this.primaryValueMatches++},e.prototype.compare=function(e){var t=this.hasProblems();return t!==e.hasProblems()?t?-1:1:this.enumValueMatch!==e.enumValueMatch?e.enumValueMatch?-1:1:this.primaryValueMatches!==e.primaryValueMatches?this.primaryValueMatches-e.primaryValueMatches:this.propertiesValueMatches!==e.propertiesValueMatches?this.propertiesValueMatches-e.propertiesValueMatches:this.propertiesMatches-e.propertiesMatches},e}();function Vr(e){return In(e)}function $r(e){return On(e)}function Wr(e,t,n){return void 0===n&&(n=!1),t>=e.offset&&t<e.offset+e.length||n&&t===e.offset+e.length}var qr=function(){function e(e,t,n){void 0===t&&(t=[]),void 0===n&&(n=[]),this.root=e,this.syntaxErrors=t,this.comments=n}return e.prototype.getNodeFromOffset=function(e,t){if(void 0===t&&(t=!1),this.root)return kn(this.root,e,t)},e.prototype.visit=function(e){if(this.root){var t=function(n){var r=e(n),i=n.children;if(Array.isArray(i))for(var o=0;o<i.length&&r;o++)r=t(i[o]);return r};t(this.root)}},e.prototype.validate=function(e,t){if(this.root&&t){var n=new Ur;return Kr(this.root,t,n,jr.instance),n.problems.map((function(t){var n=un.create(e.positionAt(t.location.offset),e.positionAt(t.location.offset+t.location.length));return Cn.create(n,t.message,t.severity,t.code)}))}},e.prototype.getMatchingSchemas=function(e,t,n){void 0===t&&(t=-1);var r=new Fr(t,n);return this.root&&e&&Kr(this.root,e,new Ur,r),r.schemas},e}();function Kr(e,t,n,r){if(e&&r.include(e)){var i=e;switch(i.type){case"object":!function(e,t,n,r){for(var i=Object.create(null),o=[],s=0,a=e.properties;s<a.length;s++){var u=(y=a[s]).keyNode.value;i[u]=y.valueNode,o.push(u)}if(Array.isArray(t.required))for(var l=0,c=t.required;l<c.length;l++){var h=c[l];if(!i[h]){var f=e.parent&&"property"===e.parent.type&&e.parent.keyNode,d=f?{offset:f.offset,length:f.length}:{offset:e.offset,length:1};n.problems.push({location:d,severity:yn.Warning,message:Nr("MissingRequiredPropWarning",'Missing property "{0}".',h)})}}var m=function(e){for(var t=o.indexOf(e);t>=0;)o.splice(t,1),t=o.indexOf(e)};if(t.properties)for(var g=0,p=Object.keys(t.properties);g<p.length;g++){h=p[g];m(h);var v=t.properties[h];if(k=i[h])if(Dn(v))if(v)n.propertiesMatches++,n.propertiesValueMatches++;else{var y=k.parent;n.problems.push({location:{offset:y.keyNode.offset,length:y.keyNode.length},severity:yn.Warning,message:t.errorMessage||Nr("DisallowedExtraPropWarning","Property {0} is not allowed.",h)})}else{var b=new Ur;Kr(k,v,b,r),n.mergePropertyMatch(b)}}if(t.patternProperties)for(var C=0,_=Object.keys(t.patternProperties);C<_.length;C++)for(var S=_[C],E=new RegExp(S),A=0,x=o.slice(0);A<x.length;A++){h=x[A];if(E.test(h))if(m(h),k=i[h])if(Dn(v=t.patternProperties[S]))if(v)n.propertiesMatches++,n.propertiesValueMatches++;else{y=k.parent;n.problems.push({location:{offset:y.keyNode.offset,length:y.keyNode.length},severity:yn.Warning,message:t.errorMessage||Nr("DisallowedExtraPropWarning","Property {0} is not allowed.",h)})}else{b=new Ur;Kr(k,v,b,r),n.mergePropertyMatch(b)}}if("object"==typeof t.additionalProperties)for(var N=0,w=o;N<w.length;N++){h=w[N];if(k=i[h]){b=new Ur;Kr(k,t.additionalProperties,b,r),n.mergePropertyMatch(b)}}else if(!1===t.additionalProperties&&o.length>0)for(var L=0,T=o;L<T.length;L++){var k;h=T[L];if(k=i[h]){y=k.parent;n.problems.push({location:{offset:y.keyNode.offset,length:y.keyNode.length},severity:yn.Warning,message:t.errorMessage||Nr("DisallowedExtraPropWarning","Property {0} is not allowed.",h)})}}Pn(t.maxProperties)&&e.properties.length>t.maxProperties&&n.problems.push({location:{offset:e.offset,length:e.length},severity:yn.Warning,message:Nr("MaxPropWarning","Object has more properties than limit of {0}.",t.maxProperties)});Pn(t.minProperties)&&e.properties.length<t.minProperties&&n.problems.push({location:{offset:e.offset,length:e.length},severity:yn.Warning,message:Nr("MinPropWarning","Object has fewer properties than the required number of {0}",t.minProperties)});if(t.dependencies)for(var O=0,I=Object.keys(t.dependencies);O<I.length;O++){u=I[O];if(i[u]){var M=t.dependencies[u];if(Array.isArray(M))for(var P=0,R=M;P<R.length;P++){var D=R[P];i[D]?n.propertiesValueMatches++:n.problems.push({location:{offset:e.offset,length:e.length},severity:yn.Warning,message:Nr("RequiredDependentPropWarning","Object is missing property {0} required by property {1}.",D,u)})}else if(v=Dr(M)){b=new Ur;Kr(e,v,b,r),n.mergePropertyMatch(b)}}}var F=Dr(t.propertyNames);if(F)for(var j=0,U=e.properties;j<U.length;j++){var V=U[j];(u=V.keyNode)&&Kr(u,F,n,jr.instance)}}(i,t,n,r);break;case"array":!function(e,t,n,r){if(Array.isArray(t.items)){for(var i=t.items,o=0;o<i.length;o++){var s=Dr(i[o]),a=new Ur;(f=e.items[o])?(Kr(f,s,a,r),n.mergePropertyMatch(a)):e.items.length>=i.length&&n.propertiesValueMatches++}if(e.items.length>i.length)if("object"==typeof t.additionalItems)for(var u=i.length;u<e.items.length;u++){a=new Ur;Kr(e.items[u],t.additionalItems,a,r),n.mergePropertyMatch(a)}else!1===t.additionalItems&&n.problems.push({location:{offset:e.offset,length:e.length},severity:yn.Warning,message:Nr("additionalItemsWarning","Array has too many items according to schema. Expected {0} or fewer.",i.length)})}else{var l=Dr(t.items);if(l)for(var c=0,h=e.items;c<h.length;c++){var f=h[c];a=new Ur;Kr(f,l,a,r),n.mergePropertyMatch(a)}}var d=Dr(t.contains);if(d){e.items.some((function(e){var t=new Ur;return Kr(e,d,t,jr.instance),!t.hasProblems()}))||n.problems.push({location:{offset:e.offset,length:e.length},severity:yn.Warning,message:t.errorMessage||Nr("requiredItemMissingWarning","Array does not contain required item.")})}Pn(t.minItems)&&e.items.length<t.minItems&&n.problems.push({location:{offset:e.offset,length:e.length},severity:yn.Warning,message:Nr("minItemsWarning","Array has too few items. Expected {0} or more.",t.minItems)});Pn(t.maxItems)&&e.items.length>t.maxItems&&n.problems.push({location:{offset:e.offset,length:e.length},severity:yn.Warning,message:Nr("maxItemsWarning","Array has too many items. Expected {0} or fewer.",t.maxItems)});if(!0===t.uniqueItems){var m=Vr(e);m.some((function(e,t){return t!==m.lastIndexOf(e)}))&&n.problems.push({location:{offset:e.offset,length:e.length},severity:yn.Warning,message:Nr("uniqueItemsWarning","Array has duplicate items.")})}}(i,t,n,r);break;case"string":!function(e,t,n,r){Pn(t.minLength)&&e.value.length<t.minLength&&n.problems.push({location:{offset:e.offset,length:e.length},severity:yn.Warning,message:Nr("minLengthWarning","String is shorter than the minimum length of {0}.",t.minLength)});Pn(t.maxLength)&&e.value.length>t.maxLength&&n.problems.push({location:{offset:e.offset,length:e.length},severity:yn.Warning,message:Nr("maxLengthWarning","String is longer than the maximum length of {0}.",t.maxLength)});if(i=t.pattern,"string"==typeof i){new RegExp(t.pattern).test(e.value)||n.problems.push({location:{offset:e.offset,length:e.length},severity:yn.Warning,message:t.patternErrorMessage||t.errorMessage||Nr("patternWarning",'String does not match the pattern of "{0}".',t.pattern)})}var i;if(t.format)switch(t.format){case"uri":case"uri-reference":var o=void 0;if(e.value){var s=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(e.value);s?s[2]||"uri"!==t.format||(o=Nr("uriSchemeMissing","URI with a scheme is expected.")):o=Nr("uriMissing","URI is expected.")}else o=Nr("uriEmpty","URI expected.");o&&n.problems.push({location:{offset:e.offset,length:e.length},severity:yn.Warning,message:t.patternErrorMessage||t.errorMessage||Nr("uriFormatWarning","String is not a URI: {0}",o)});break;case"color-hex":case"date-time":case"date":case"time":case"email":var a=wr[t.format];e.value&&a.pattern.exec(e.value)||n.problems.push({location:{offset:e.offset,length:e.length},severity:yn.Warning,message:t.patternErrorMessage||t.errorMessage||a.errorMessage})}}(i,t,n);break;case"number":!function(e,t,n,r){var i=e.value;function o(e){var t,n=/^(-?\d+)(?:\.(\d+))?(?:e([-+]\d+))?$/.exec(e.toString());return n&&{value:Number(n[1]+(n[2]||"")),multiplier:((null===(t=n[2])||void 0===t?void 0:t.length)||0)-(parseInt(n[3])||0)}}if(Pn(t.multipleOf)){var s=-1;if(Number.isInteger(t.multipleOf))s=i%t.multipleOf;else{var a=o(t.multipleOf),u=o(i);if(a&&u){var l=Math.pow(10,Math.abs(u.multiplier-a.multiplier));u.multiplier<a.multiplier?u.value*=l:a.value*=l,s=u.value%a.value}}0!==s&&n.problems.push({location:{offset:e.offset,length:e.length},severity:yn.Warning,message:Nr("multipleOfWarning","Value is not divisible by {0}.",t.multipleOf)})}function c(e,t){return Pn(t)?t:Dn(t)&&t?e:void 0}function h(e,t){if(!Dn(t)||!t)return e}var f=c(t.minimum,t.exclusiveMinimum);Pn(f)&&i<=f&&n.problems.push({location:{offset:e.offset,length:e.length},severity:yn.Warning,message:Nr("exclusiveMinimumWarning","Value is below the exclusive minimum of {0}.",f)});var d=c(t.maximum,t.exclusiveMaximum);Pn(d)&&i>=d&&n.problems.push({location:{offset:e.offset,length:e.length},severity:yn.Warning,message:Nr("exclusiveMaximumWarning","Value is above the exclusive maximum of {0}.",d)});var m=h(t.minimum,t.exclusiveMinimum);Pn(m)&&i<m&&n.problems.push({location:{offset:e.offset,length:e.length},severity:yn.Warning,message:Nr("minimumWarning","Value is below the minimum of {0}.",m)});var g=h(t.maximum,t.exclusiveMaximum);Pn(g)&&i>g&&n.problems.push({location:{offset:e.offset,length:e.length},severity:yn.Warning,message:Nr("maximumWarning","Value is above the maximum of {0}.",g)})}(i,t,n);break;case"property":return Kr(i.valueNode,t,n,r)}!function(){function e(e){return i.type===e||"integer"===e&&"number"===i.type&&i.isInteger}Array.isArray(t.type)?t.type.some(e)||n.problems.push({location:{offset:i.offset,length:i.length},severity:yn.Warning,message:t.errorMessage||Nr("typeArrayMismatchWarning","Incorrect type. Expected one of {0}.",t.type.join(", "))}):t.type&&(e(t.type)||n.problems.push({location:{offset:i.offset,length:i.length},severity:yn.Warning,message:t.errorMessage||Nr("typeMismatchWarning",'Incorrect type. Expected "{0}".',t.type)}));if(Array.isArray(t.allOf))for(var o=0,s=t.allOf;o<s.length;o++){var a=s[o];Kr(i,Dr(a),n,r)}var u=Dr(t.not);if(u){var l=new Ur,c=r.newSub();Kr(i,u,l,c),l.hasProblems()||n.problems.push({location:{offset:i.offset,length:i.length},severity:yn.Warning,message:Nr("notSchemaWarning","Matches a schema that is not allowed.")});for(var h=0,f=c.schemas;h<f.length;h++){var d=f[h];d.inverted=!d.inverted,r.add(d)}}var m=function(e,t){for(var o=[],s=void 0,a=0,u=e;a<u.length;a++){var l=Dr(u[a]),c=new Ur,h=r.newSub();if(Kr(i,l,c,h),c.hasProblems()||o.push(l),s)if(t||c.hasProblems()||s.validationResult.hasProblems()){var f=c.compare(s.validationResult);f>0?s={schema:l,validationResult:c,matchingSchemas:h}:0===f&&(s.matchingSchemas.merge(h),s.validationResult.mergeEnumValues(c))}else s.matchingSchemas.merge(h),s.validationResult.propertiesMatches+=c.propertiesMatches,s.validationResult.propertiesValueMatches+=c.propertiesValueMatches;else s={schema:l,validationResult:c,matchingSchemas:h}}return o.length>1&&t&&n.problems.push({location:{offset:i.offset,length:1},severity:yn.Warning,message:Nr("oneOfWarning","Matches multiple schemas when only one must validate.")}),s&&(n.merge(s.validationResult),n.propertiesMatches+=s.validationResult.propertiesMatches,n.propertiesValueMatches+=s.validationResult.propertiesValueMatches,r.merge(s.matchingSchemas)),o.length};Array.isArray(t.anyOf)&&m(t.anyOf,!1);Array.isArray(t.oneOf)&&m(t.oneOf,!0);var g=function(e){var t=new Ur,o=r.newSub();Kr(i,Dr(e),t,o),n.merge(t),n.propertiesMatches+=t.propertiesMatches,n.propertiesValueMatches+=t.propertiesValueMatches,r.merge(o)},p=Dr(t.if);p&&function(e,t,n){var o=Dr(e),s=new Ur,a=r.newSub();Kr(i,o,s,a),r.merge(a),s.hasProblems()?n&&g(n):t&&g(t)}(p,Dr(t.then),Dr(t.else));if(Array.isArray(t.enum)){for(var v=Vr(i),y=!1,b=0,C=t.enum;b<C.length;b++){var _=C[b];if(Mn(v,_)){y=!0;break}}n.enumValues=t.enum,n.enumValueMatch=y,y||n.problems.push({location:{offset:i.offset,length:i.length},severity:yn.Warning,code:gr.EnumValueMismatch,message:t.errorMessage||Nr("enumWarning","Value is not accepted. Valid values: {0}.",t.enum.map((function(e){return JSON.stringify(e)})).join(", "))})}if(Rn(t.const)){Mn(v=Vr(i),t.const)?n.enumValueMatch=!0:(n.problems.push({location:{offset:i.offset,length:i.length},severity:yn.Warning,code:gr.EnumValueMismatch,message:t.errorMessage||Nr("constWarning","Value must be {0}.",JSON.stringify(t.const))}),n.enumValueMatch=!1),n.enumValues=[t.const]}t.deprecationMessage&&i.parent&&n.problems.push({location:{offset:i.parent.offset,length:i.parent.length},severity:yn.Warning,message:t.deprecationMessage})}(),r.add({node:i,schema:t})}}function Br(e,t){var n=[],r=-1,i=e.getText(),o=Ln(i,!1),s=t&&t.collectComments?[]:void 0;function a(){for(;;){var t=o.scan();switch(c(),t){case 12:case 13:Array.isArray(s)&&s.push(un.create(e.positionAt(o.getTokenOffset()),e.positionAt(o.getTokenOffset()+o.getTokenLength())));break;case 15:case 14:break;default:return t}}}function u(t,i,o,s,a){if(void 0===a&&(a=yn.Error),0===n.length||o!==r){var u=un.create(e.positionAt(o),e.positionAt(s));n.push(Cn.create(u,t,a,i,e.languageId)),r=o}}function l(e,t,n,r,s){void 0===n&&(n=void 0),void 0===r&&(r=[]),void 0===s&&(s=[]);var l=o.getTokenOffset(),c=o.getTokenOffset()+o.getTokenLength();if(l===c&&l>0){for(l--;l>0&&/\s/.test(i.charAt(l));)l--;c=l+1}if(u(e,t,l,c),n&&h(n,!1),r.length+s.length>0)for(var f=o.getToken();17!==f;){if(-1!==r.indexOf(f)){a();break}if(-1!==s.indexOf(f))break;f=a()}return n}function c(){switch(o.getTokenError()){case 4:return l(Nr("InvalidUnicode","Invalid unicode sequence in string."),gr.InvalidUnicode),!0;case 5:return l(Nr("InvalidEscapeCharacter","Invalid escape character in string."),gr.InvalidEscapeCharacter),!0;case 3:return l(Nr("UnexpectedEndOfNumber","Unexpected end of number."),gr.UnexpectedEndOfNumber),!0;case 1:return l(Nr("UnexpectedEndOfComment","Unexpected end of comment."),gr.UnexpectedEndOfComment),!0;case 2:return l(Nr("UnexpectedEndOfString","Unexpected end of string."),gr.UnexpectedEndOfString),!0;case 6:return l(Nr("InvalidCharacter","Invalid characters in string. Control characters must be escaped."),gr.InvalidCharacter),!0}return!1}function h(e,t){return e.length=o.getTokenOffset()+o.getTokenLength()-e.offset,t&&a(),e}var f=new Mr(void 0,0,0);function d(t,n){var r=new Pr(t,o.getTokenOffset(),f),i=m(r);if(!i){if(16!==o.getToken())return;l(Nr("DoubleQuotesExpected","Property keys must be doublequoted"),gr.Undefined);var s=new Mr(r,o.getTokenOffset(),o.getTokenLength());s.value=o.getTokenValue(),i=s,a()}r.keyNode=i;var c=n[i.value];if(c?(u(Nr("DuplicateKeyWarning","Duplicate object key"),gr.DuplicateKey,r.keyNode.offset,r.keyNode.offset+r.keyNode.length,yn.Warning),"object"==typeof c&&u(Nr("DuplicateKeyWarning","Duplicate object key"),gr.DuplicateKey,c.keyNode.offset,c.keyNode.offset+c.keyNode.length,yn.Warning),n[i.value]=!0):n[i.value]=r,6===o.getToken())r.colonOffset=o.getTokenOffset(),a();else if(l(Nr("ColonExpected","Colon expected"),gr.ColonExpected),10===o.getToken()&&e.positionAt(i.offset+i.length).line<e.positionAt(o.getTokenOffset()).line)return r.length=i.length,r;var h=g(r);return h?(r.valueNode=h,r.length=h.offset+h.length-r.offset,r):l(Nr("ValueExpected","Value expected"),gr.ValueExpected,r,[],[2,5])}function m(e){if(10===o.getToken()){var t=new Mr(e,o.getTokenOffset());return t.value=o.getTokenValue(),h(t,!0)}}function g(e){return function(e){if(3===o.getToken()){var t=new Or(e,o.getTokenOffset());a();for(var n=!1;4!==o.getToken()&&17!==o.getToken();){if(5===o.getToken()){n||l(Nr("ValueExpected","Value expected"),gr.ValueExpected);var r=o.getTokenOffset();if(a(),4===o.getToken()){n&&u(Nr("TrailingComma","Trailing comma"),gr.TrailingComma,r,r+1);continue}}else n&&l(Nr("ExpectedComma","Expected comma"),gr.CommaExpected);var i=g(t);i?t.items.push(i):l(Nr("PropertyExpected","Value expected"),gr.ValueExpected,void 0,[],[4,5]),n=!0}return 4!==o.getToken()?l(Nr("ExpectedCloseBracket","Expected comma or closing bracket"),gr.CommaOrCloseBacketExpected,t):h(t,!0)}}(e)||function(e){if(1===o.getToken()){var t=new Rr(e,o.getTokenOffset()),n=Object.create(null);a();for(var r=!1;2!==o.getToken()&&17!==o.getToken();){if(5===o.getToken()){r||l(Nr("PropertyExpected","Property expected"),gr.PropertyExpected);var i=o.getTokenOffset();if(a(),2===o.getToken()){r&&u(Nr("TrailingComma","Trailing comma"),gr.TrailingComma,i,i+1);continue}}else r&&l(Nr("ExpectedComma","Expected comma"),gr.CommaExpected);var s=d(t,n);s?t.properties.push(s):l(Nr("PropertyExpected","Property expected"),gr.PropertyExpected,void 0,[],[2,5]),r=!0}return 2!==o.getToken()?l(Nr("ExpectedCloseBrace","Expected comma or closing brace"),gr.CommaOrCloseBraceExpected,t):h(t,!0)}}(e)||m(e)||function(e){if(11===o.getToken()){var t=new Ir(e,o.getTokenOffset());if(0===o.getTokenError()){var n=o.getTokenValue();try{var r=JSON.parse(n);if(!Pn(r))return l(Nr("InvalidNumberFormat","Invalid number format."),gr.Undefined,t);t.value=r}catch(e){return l(Nr("InvalidNumberFormat","Invalid number format."),gr.Undefined,t)}t.isInteger=-1===n.indexOf(".")}return h(t,!0)}}(e)||function(e){switch(o.getToken()){case 7:return h(new Tr(e,o.getTokenOffset()),!0);case 8:return h(new kr(e,!0,o.getTokenOffset()),!0);case 9:return h(new kr(e,!1,o.getTokenOffset()),!0);default:return}}(e)}var p=void 0;return 17!==a()&&((p=g(p))?17!==o.getToken()&&l(Nr("End of file expected","End of file expected."),gr.Undefined):l(Nr("Invalid symbol","Expected a JSON object, array or literal."),gr.Undefined)),new qr(p,n,s)}function Hr(e,t){var n=e.length-t.length;return n>0?e.lastIndexOf(t)===n:0===n&&e===t}function Yr(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}var Gr=Sr(),zr=function(){function e(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=Promise),void 0===r&&(r={}),this.schemaService=e,this.contributions=t,this.promiseConstructor=n,this.clientCapabilities=r}return e.prototype.doResolve=function(e){for(var t=this.contributions.length-1;t>=0;t--){var n=this.contributions[t].resolveCompletion;if(n){var r=n(e);if(r)return r}}return this.promiseConstructor.resolve(e)},e.prototype.doComplete=function(e,t,n){var r=this,i={items:[],isIncomplete:!1},o=e.getText(),s=e.offsetAt(t),a=n.getNodeFromOffset(s,!0);if(this.isInComment(e,a?a.offset:0,s))return Promise.resolve(i);if(a&&s===a.offset+a.length&&s>0){var u=o[s-1];("object"===a.type&&"}"===u||"array"===a.type&&"]"===u)&&(a=a.parent)}var l,c=this.getCurrentWord(e,s);if(!a||"string"!==a.type&&"number"!==a.type&&"boolean"!==a.type&&"null"!==a.type){var h=s-c.length;h>0&&'"'===o[h-1]&&h--,l=un.create(e.positionAt(h),t)}else l=un.create(e.positionAt(a.offset),e.positionAt(a.offset+a.length));var f={},d={add:function(e){var t=e.label,n=f[t];if(n)n.documentation||(n.documentation=e.documentation);else{if((t=t.replace(/[\n]/g,"↵")).length>60){var r=t.substr(0,57).trim()+"...";f[r]||(t=r)}l&&void 0!==e.insertText&&(e.textEdit=Sn.replace(l,e.insertText)),e.label=t,f[t]=e,i.items.push(e)}},setAsIncomplete:function(){i.isIncomplete=!0},error:function(e){console.error(e)},log:function(e){console.log(e)},getNumberOfProposals:function(){return i.items.length}};return this.schemaService.getSchemaForResource(e.uri,n).then((function(t){var u=[],h=!0,m="",g=void 0;if(a&&"string"===a.type){var p=a.parent;p&&"property"===p.type&&p.keyNode===a&&(h=!p.valueNode,g=p,m=o.substr(a.offset+1,a.length-2),p&&(a=p.parent))}if(a&&"object"===a.type){if(a.offset===s)return i;a.properties.forEach((function(e){g&&g===e||(f[e.keyNode.value]=Bn.create("__"))}));var v="";h&&(v=r.evaluateSeparatorAfter(e,e.offsetAt(l.end))),t?r.getPropertyCompletions(t,n,a,h,v,d):r.getSchemaLessPropertyCompletions(n,a,m,d);var y=$r(a);r.contributions.forEach((function(t){var n=t.collectPropertyCompletions(e.uri,y,c,h,""===v,d);n&&u.push(n)})),!t&&c.length>0&&'"'!==o.charAt(s-c.length-1)&&(d.add({kind:Wn.Property,label:r.getLabelForValue(c),insertText:r.getInsertTextForProperty(c,void 0,!1,v),insertTextFormat:qn.Snippet,documentation:""}),d.setAsIncomplete())}var b={};return t?r.getValueCompletions(t,n,a,s,e,d,b):r.getSchemaLessValueCompletions(n,a,s,e,d),r.contributions.length>0&&r.getContributedValueCompletions(n,a,s,e,d,u),r.promiseConstructor.all(u).then((function(){if(0===d.getNumberOfProposals()){var t=s;!a||"string"!==a.type&&"number"!==a.type&&"boolean"!==a.type&&"null"!==a.type||(t=a.offset+a.length);var n=r.evaluateSeparatorAfter(e,t);r.addFillerValueCompletions(b,n,d)}return i}))}))},e.prototype.getPropertyCompletions=function(e,t,n,r,i,o){var s=this;t.getMatchingSchemas(e.schema,n.offset).forEach((function(e){if(e.node===n&&!e.inverted){var t=e.schema.properties;t&&Object.keys(t).forEach((function(e){var n=t[e];if("object"==typeof n&&!n.deprecationMessage&&!n.doNotSuggest){var a={kind:Wn.Property,label:e,insertText:s.getInsertTextForProperty(e,n,r,i),insertTextFormat:qn.Snippet,filterText:s.getFilterTextForValue(e),documentation:s.fromMarkup(n.markdownDescription)||n.description||""};void 0!==n.suggestSortText&&(a.sortText=n.suggestSortText),a.insertText&&Hr(a.insertText,"$1"+i)&&(a.command={title:"Suggest",command:"editor.action.triggerSuggest"}),o.add(a)}}));var a=e.schema.propertyNames;if("object"==typeof a&&!a.deprecationMessage&&!a.doNotSuggest){var u=function(e,t){void 0===t&&(t=void 0);var n={kind:Wn.Property,label:e,insertText:s.getInsertTextForProperty(e,void 0,r,i),insertTextFormat:qn.Snippet,filterText:s.getFilterTextForValue(e),documentation:t||s.fromMarkup(a.markdownDescription)||a.description||""};void 0!==a.suggestSortText&&(n.sortText=a.suggestSortText),n.insertText&&Hr(n.insertText,"$1"+i)&&(n.command={title:"Suggest",command:"editor.action.triggerSuggest"}),o.add(n)};if(a.enum)for(var l=0;l<a.enum.length;l++){var c=void 0;a.markdownEnumDescriptions&&l<a.markdownEnumDescriptions.length?c=s.fromMarkup(a.markdownEnumDescriptions[l]):a.enumDescriptions&&l<a.enumDescriptions.length&&(c=a.enumDescriptions[l]),u(a.enum[l],c)}a.const&&u(a.const)}}}))},e.prototype.getSchemaLessPropertyCompletions=function(e,t,n,r){var i=this,o=function(e){e.properties.forEach((function(e){var t=e.keyNode.value;r.add({kind:Wn.Property,label:t,insertText:i.getInsertTextForValue(t,""),insertTextFormat:qn.Snippet,filterText:i.getFilterTextForValue(t),documentation:""})}))};if(t.parent)if("property"===t.parent.type){var s=t.parent.keyNode.value;e.visit((function(e){return"property"===e.type&&e!==t.parent&&e.keyNode.value===s&&e.valueNode&&"object"===e.valueNode.type&&o(e.valueNode),!0}))}else"array"===t.parent.type&&t.parent.items.forEach((function(e){"object"===e.type&&e!==t&&o(e)}));else"object"===t.type&&r.add({kind:Wn.Property,label:"$schema",insertText:this.getInsertTextForProperty("$schema",void 0,!0,""),insertTextFormat:qn.Snippet,documentation:"",filterText:this.getFilterTextForValue("$schema")})},e.prototype.getSchemaLessValueCompletions=function(e,t,n,r,i){var o=this,s=n;if(!t||"string"!==t.type&&"number"!==t.type&&"boolean"!==t.type&&"null"!==t.type||(s=t.offset+t.length,t=t.parent),!t)return i.add({kind:this.getSuggestionKind("object"),label:"Empty object",insertText:this.getInsertTextForValue({},""),insertTextFormat:qn.Snippet,documentation:""}),void i.add({kind:this.getSuggestionKind("array"),label:"Empty array",insertText:this.getInsertTextForValue([],""),insertTextFormat:qn.Snippet,documentation:""});var a=this.evaluateSeparatorAfter(r,s),u=function(e){e.parent&&!Wr(e.parent,n,!0)&&i.add({kind:o.getSuggestionKind(e.type),label:o.getLabelTextForMatchingNode(e,r),insertText:o.getInsertTextForMatchingNode(e,r,a),insertTextFormat:qn.Snippet,documentation:""}),"boolean"===e.type&&o.addBooleanValueCompletion(!e.value,a,i)};if("property"===t.type&&n>(t.colonOffset||0)){var l=t.valueNode;if(l&&(n>l.offset+l.length||"object"===l.type||"array"===l.type))return;var c=t.keyNode.value;e.visit((function(e){return"property"===e.type&&e.keyNode.value===c&&e.valueNode&&u(e.valueNode),!0})),"$schema"===c&&t.parent&&!t.parent.parent&&this.addDollarSchemaCompletions(a,i)}if("array"===t.type)if(t.parent&&"property"===t.parent.type){var h=t.parent.keyNode.value;e.visit((function(e){return"property"===e.type&&e.keyNode.value===h&&e.valueNode&&"array"===e.valueNode.type&&e.valueNode.items.forEach(u),!0}))}else t.items.forEach(u)},e.prototype.getValueCompletions=function(e,t,n,r,i,o,s){var a=r,u=void 0,l=void 0;if(!n||"string"!==n.type&&"number"!==n.type&&"boolean"!==n.type&&"null"!==n.type||(a=n.offset+n.length,l=n,n=n.parent),n){if("property"===n.type&&r>(n.colonOffset||0)){var c=n.valueNode;if(c&&r>c.offset+c.length)return;u=n.keyNode.value,n=n.parent}if(n&&(void 0!==u||"array"===n.type)){for(var h=this.evaluateSeparatorAfter(i,a),f=0,d=t.getMatchingSchemas(e.schema,n.offset,l);f<d.length;f++){var m=d[f];if(m.node===n&&!m.inverted&&m.schema){if("array"===n.type&&m.schema.items)if(Array.isArray(m.schema.items)){var g=this.findItemAtOffset(n,i,r);g<m.schema.items.length&&this.addSchemaValueCompletions(m.schema.items[g],h,o,s)}else this.addSchemaValueCompletions(m.schema.items,h,o,s);if(void 0!==u){var p=!1;if(m.schema.properties)(C=m.schema.properties[u])&&(p=!0,this.addSchemaValueCompletions(C,h,o,s));if(m.schema.patternProperties&&!p)for(var v=0,y=Object.keys(m.schema.patternProperties);v<y.length;v++){var b=y[v];if(new RegExp(b).test(u)){p=!0;var C=m.schema.patternProperties[b];this.addSchemaValueCompletions(C,h,o,s)}}if(m.schema.additionalProperties&&!p){C=m.schema.additionalProperties;this.addSchemaValueCompletions(C,h,o,s)}}}}"$schema"!==u||n.parent||this.addDollarSchemaCompletions(h,o),s.boolean&&(this.addBooleanValueCompletion(!0,h,o),this.addBooleanValueCompletion(!1,h,o)),s.null&&this.addNullValueCompletion(h,o)}}else this.addSchemaValueCompletions(e.schema,"",o,s)},e.prototype.getContributedValueCompletions=function(e,t,n,r,i,o){if(t){if("string"!==t.type&&"number"!==t.type&&"boolean"!==t.type&&"null"!==t.type||(t=t.parent),t&&"property"===t.type&&n>(t.colonOffset||0)){var s=t.keyNode.value,a=t.valueNode;if((!a||n<=a.offset+a.length)&&t.parent){var u=$r(t.parent);this.contributions.forEach((function(e){var t=e.collectValueCompletions(r.uri,u,s,i);t&&o.push(t)}))}}}else this.contributions.forEach((function(e){var t=e.collectDefaultCompletions(r.uri,i);t&&o.push(t)}))},e.prototype.addSchemaValueCompletions=function(e,t,n,r){var i=this;"object"==typeof e&&(this.addEnumValueCompletions(e,t,n),this.addDefaultValueCompletions(e,t,n),this.collectTypes(e,r),Array.isArray(e.allOf)&&e.allOf.forEach((function(e){return i.addSchemaValueCompletions(e,t,n,r)})),Array.isArray(e.anyOf)&&e.anyOf.forEach((function(e){return i.addSchemaValueCompletions(e,t,n,r)})),Array.isArray(e.oneOf)&&e.oneOf.forEach((function(e){return i.addSchemaValueCompletions(e,t,n,r)})))},e.prototype.addDefaultValueCompletions=function(e,t,n,r){var i=this;void 0===r&&(r=0);var o=!1;if(Rn(e.default)){for(var s=e.type,a=e.default,u=r;u>0;u--)a=[a],s="array";n.add({kind:this.getSuggestionKind(s),label:this.getLabelForValue(a),insertText:this.getInsertTextForValue(a,t),insertTextFormat:qn.Snippet,detail:Gr("json.suggest.default","Default value")}),o=!0}Array.isArray(e.examples)&&e.examples.forEach((function(s){for(var a=e.type,u=s,l=r;l>0;l--)u=[u],a="array";n.add({kind:i.getSuggestionKind(a),label:i.getLabelForValue(u),insertText:i.getInsertTextForValue(u,t),insertTextFormat:qn.Snippet}),o=!0})),Array.isArray(e.defaultSnippets)&&e.defaultSnippets.forEach((function(s){var a,u,l=e.type,c=s.body,h=s.label;if(Rn(c)){e.type;for(var f=r;f>0;f--)c=[c],"array";a=i.getInsertTextForSnippetValue(c,t),u=i.getFilterTextForSnippetValue(c),h=h||i.getLabelForSnippetValue(c)}else{if("string"!=typeof s.bodyText)return;var d="",m="",g="";for(f=r;f>0;f--)d=d+g+"[\n",m=m+"\n"+g+"]",g+="\t",l="array";a=d+g+s.bodyText.split("\n").join("\n"+g)+m+t,h=h||a,u=a.replace(/[\n]/g,"")}n.add({kind:i.getSuggestionKind(l),label:h,documentation:i.fromMarkup(s.markdownDescription)||s.description,insertText:a,insertTextFormat:qn.Snippet,filterText:u}),o=!0})),!o&&"object"==typeof e.items&&!Array.isArray(e.items)&&r<5&&this.addDefaultValueCompletions(e.items,t,n,r+1)},e.prototype.addEnumValueCompletions=function(e,t,n){if(Rn(e.const)&&n.add({kind:this.getSuggestionKind(e.type),label:this.getLabelForValue(e.const),insertText:this.getInsertTextForValue(e.const,t),insertTextFormat:qn.Snippet,documentation:this.fromMarkup(e.markdownDescription)||e.description}),Array.isArray(e.enum))for(var r=0,i=e.enum.length;r<i;r++){var o=e.enum[r],s=this.fromMarkup(e.markdownDescription)||e.description;e.markdownEnumDescriptions&&r<e.markdownEnumDescriptions.length&&this.doesSupportMarkdown()?s=this.fromMarkup(e.markdownEnumDescriptions[r]):e.enumDescriptions&&r<e.enumDescriptions.length&&(s=e.enumDescriptions[r]),n.add({kind:this.getSuggestionKind(e.type),label:this.getLabelForValue(o),insertText:this.getInsertTextForValue(o,t),insertTextFormat:qn.Snippet,documentation:s})}},e.prototype.collectTypes=function(e,t){if(!Array.isArray(e.enum)&&!Rn(e.const)){var n=e.type;Array.isArray(n)?n.forEach((function(e){return t[e]=!0})):n&&(t[n]=!0)}},e.prototype.addFillerValueCompletions=function(e,t,n){e.object&&n.add({kind:this.getSuggestionKind("object"),label:"{}",insertText:this.getInsertTextForGuessedValue({},t),insertTextFormat:qn.Snippet,detail:Gr("defaults.object","New object"),documentation:""}),e.array&&n.add({kind:this.getSuggestionKind("array"),label:"[]",insertText:this.getInsertTextForGuessedValue([],t),insertTextFormat:qn.Snippet,detail:Gr("defaults.array","New array"),documentation:""})},e.prototype.addBooleanValueCompletion=function(e,t,n){n.add({kind:this.getSuggestionKind("boolean"),label:e?"true":"false",insertText:this.getInsertTextForValue(e,t),insertTextFormat:qn.Snippet,documentation:""})},e.prototype.addNullValueCompletion=function(e,t){t.add({kind:this.getSuggestionKind("null"),label:"null",insertText:"null"+e,insertTextFormat:qn.Snippet,documentation:""})},e.prototype.addDollarSchemaCompletions=function(e,t){var n=this;this.schemaService.getRegisteredSchemaIds((function(e){return"http"===e||"https"===e})).forEach((function(r){return t.add({kind:Wn.Module,label:n.getLabelForValue(r),filterText:n.getFilterTextForValue(r),insertText:n.getInsertTextForValue(r,e),insertTextFormat:qn.Snippet,documentation:""})}))},e.prototype.getLabelForValue=function(e){return JSON.stringify(e)},e.prototype.getFilterTextForValue=function(e){return JSON.stringify(e)},e.prototype.getFilterTextForSnippetValue=function(e){return JSON.stringify(e).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")},e.prototype.getLabelForSnippetValue=function(e){return JSON.stringify(e).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")},e.prototype.getInsertTextForPlainText=function(e){return e.replace(/[\\\$\}]/g,"\\$&")},e.prototype.getInsertTextForValue=function(e,t){var n=JSON.stringify(e,null,"\t");return"{}"===n?"{$1}"+t:"[]"===n?"[$1]"+t:this.getInsertTextForPlainText(n+t)},e.prototype.getInsertTextForSnippetValue=function(e,t){return function e(t,n,r){if(null!==t&&"object"==typeof t){var i=n+"\t";if(Array.isArray(t)){if(0===t.length)return"[]";for(var o="[\n",s=0;s<t.length;s++)o+=i+e(t[s],i,r),s<t.length-1&&(o+=","),o+="\n";return o+=n+"]"}var a=Object.keys(t);if(0===a.length)return"{}";for(o="{\n",s=0;s<a.length;s++){var u=a[s];o+=i+JSON.stringify(u)+": "+e(t[u],i,r),s<a.length-1&&(o+=","),o+="\n"}return o+=n+"}"}return r(t)}(e,"",(function(e){return"string"==typeof e&&"^"===e[0]?e.substr(1):JSON.stringify(e)}))+t},e.prototype.getInsertTextForGuessedValue=function(e,t){switch(typeof e){case"object":return null===e?"${1:null}"+t:this.getInsertTextForValue(e,t);case"string":var n=JSON.stringify(e);return n=n.substr(1,n.length-2),'"${1:'+(n=this.getInsertTextForPlainText(n))+'}"'+t;case"number":case"boolean":return"${1:"+JSON.stringify(e)+"}"+t}return this.getInsertTextForValue(e,t)},e.prototype.getSuggestionKind=function(e){if(Array.isArray(e)){var t=e;e=t.length>0?t[0]:void 0}if(!e)return Wn.Value;switch(e){case"string":return Wn.Value;case"object":return Wn.Module;case"property":return Wn.Property;default:return Wn.Value}},e.prototype.getLabelTextForMatchingNode=function(e,t){switch(e.type){case"array":return"[]";case"object":return"{}";default:return t.getText().substr(e.offset,e.length)}},e.prototype.getInsertTextForMatchingNode=function(e,t,n){switch(e.type){case"array":return this.getInsertTextForValue([],n);case"object":return this.getInsertTextForValue({},n);default:var r=t.getText().substr(e.offset,e.length)+n;return this.getInsertTextForPlainText(r)}},e.prototype.getInsertTextForProperty=function(e,t,n,r){var i=this.getInsertTextForValue(e,"");if(!n)return i;var o,s=i+": ",a=0;if(t){if(Array.isArray(t.defaultSnippets)){if(1===t.defaultSnippets.length){var u=t.defaultSnippets[0].body;Rn(u)&&(o=this.getInsertTextForSnippetValue(u,""))}a+=t.defaultSnippets.length}if(t.enum&&(o||1!==t.enum.length||(o=this.getInsertTextForGuessedValue(t.enum[0],"")),a+=t.enum.length),Rn(t.default)&&(o||(o=this.getInsertTextForGuessedValue(t.default,"")),a++),Array.isArray(t.examples)&&t.examples.length&&(o||(o=this.getInsertTextForGuessedValue(t.examples[0],"")),a+=t.examples.length),0===a){var l=Array.isArray(t.type)?t.type[0]:t.type;switch(l||(t.properties?l="object":t.items&&(l="array")),l){case"boolean":o="$1";break;case"string":o='"$1"';break;case"object":o="{$1}";break;case"array":o="[$1]";break;case"number":case"integer":o="${1:0}";break;case"null":o="${1:null}";break;default:return i}}}return(!o||a>1)&&(o="$1"),s+o+r},e.prototype.getCurrentWord=function(e,t){for(var n=t-1,r=e.getText();n>=0&&-1===' \t\n\r\v":{[,]}'.indexOf(r.charAt(n));)n--;return r.substring(n+1,t)},e.prototype.evaluateSeparatorAfter=function(e,t){var n=Ln(e.getText(),!0);switch(n.setPosition(t),n.scan()){case 5:case 2:case 4:case 17:return"";default:return","}},e.prototype.findItemAtOffset=function(e,t,n){for(var r=Ln(t.getText(),!0),i=e.items,o=i.length-1;o>=0;o--){var s=i[o];if(n>s.offset+s.length)return r.setPosition(s.offset+s.length),5===r.scan()&&n>=r.getTokenOffset()+r.getTokenLength()?o+1:o;if(n>=s.offset)return o}return 0},e.prototype.isInComment=function(e,t,n){var r=Ln(e.getText(),!1);r.setPosition(t);for(var i=r.scan();17!==i&&r.getTokenOffset()+r.getTokenLength()<n;)i=r.scan();return(12===i||13===i)&&r.getTokenOffset()<=n},e.prototype.fromMarkup=function(e){if(e&&this.doesSupportMarkdown())return{kind:Vn.Markdown,value:e}},e.prototype.doesSupportMarkdown=function(){if(!Rn(this.supportsMarkdown)){var e=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsMarkdown=e&&e.completionItem&&Array.isArray(e.completionItem.documentationFormat)&&-1!==e.completionItem.documentationFormat.indexOf(Vn.Markdown)}return this.supportsMarkdown},e.prototype.doesSupportsCommitCharacters=function(){if(!Rn(this.supportsCommitCharacters)){var e=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsCommitCharacters=e&&e.completionItem&&!!e.completionItem.commitCharactersSupport}return this.supportsCommitCharacters},e}(),Jr=function(){function e(e,t,n){void 0===t&&(t=[]),this.schemaService=e,this.contributions=t,this.promise=n||Promise}return e.prototype.doHover=function(e,t,n){var r=e.offsetAt(t),i=n.getNodeFromOffset(r);if(!i||("object"===i.type||"array"===i.type)&&r>i.offset+1&&r<i.offset+i.length-1)return this.promise.resolve(null);var o=i;if("string"===i.type){var s=i.parent;if(s&&"property"===s.type&&s.keyNode===i&&!(i=s.valueNode))return this.promise.resolve(null)}for(var a=un.create(e.positionAt(o.offset),e.positionAt(o.offset+o.length)),u=function(e){return{contents:e,range:a}},l=$r(i),c=this.contributions.length-1;c>=0;c--){var h=this.contributions[c].getInfoContribution(e.uri,l);if(h)return h.then((function(e){return u(e)}))}return this.schemaService.getSchemaForResource(e.uri,n).then((function(e){if(e&&i){var t=n.getMatchingSchemas(e.schema,i.offset),r=void 0,o=void 0,s=void 0,a=void 0;t.every((function(e){if(e.node===i&&!e.inverted&&e.schema&&(r=r||e.schema.title,o=o||e.schema.markdownDescription||Qr(e.schema.description),e.schema.enum)){var t=e.schema.enum.indexOf(Vr(i));e.schema.markdownEnumDescriptions?s=e.schema.markdownEnumDescriptions[t]:e.schema.enumDescriptions&&(s=Qr(e.schema.enumDescriptions[t])),s&&"string"!=typeof(a=e.schema.enum[t])&&(a=JSON.stringify(a))}return!0}));var l="";return r&&(l=Qr(r)),o&&(l.length>0&&(l+="\n\n"),l+=o),s&&(l.length>0&&(l+="\n\n"),l+="`"+function(e){if(-1!==e.indexOf("`"))return"`` "+e+" ``";return e}(a)+"`: "+s),u([l])}return null}))},e}();function Qr(e){if(e)return e.replace(/([^\n\r])(\r?\n)([^\n\r])/gm,"$1\n\n$3").replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}var Zr=n(2),Xr=Sr(),ei=function(){function e(e,t){this.patternRegExps=[],this.isInclude=[];try{for(var n=0,r=e;n<r.length;n++){var i=r[n],o="!"!==i[0];o||(i=i.substring(1)),this.patternRegExps.push(new RegExp(Yr(i)+"$")),this.isInclude.push(o)}this.uris=t}catch(e){this.patternRegExps.length=0,this.isInclude.length=0,this.uris=[]}}return e.prototype.matchesPattern=function(e){for(var t=!1,n=0;n<this.patternRegExps.length;n++){this.patternRegExps[n].test(e)&&(t=this.isInclude[n])}return t},e.prototype.getURIs=function(){return this.uris},e}(),ti=function(){function e(e,t,n){this.service=e,this.url=t,this.dependencies={},n&&(this.unresolvedSchema=this.service.promise.resolve(new ni(n)))}return e.prototype.getUnresolvedSchema=function(){return this.unresolvedSchema||(this.unresolvedSchema=this.service.loadSchema(this.url)),this.unresolvedSchema},e.prototype.getResolvedSchema=function(){var e=this;return this.resolvedSchema||(this.resolvedSchema=this.getUnresolvedSchema().then((function(t){return e.service.resolveSchemaContent(t,e.url,e.dependencies)}))),this.resolvedSchema},e.prototype.clearSchema=function(){this.resolvedSchema=void 0,this.unresolvedSchema=void 0,this.dependencies={}},e}(),ni=function(e,t){void 0===t&&(t=[]),this.schema=e,this.errors=t},ri=function(){function e(e,t){void 0===t&&(t=[]),this.schema=e,this.errors=t}return e.prototype.getSection=function(e){var t=this.getSectionRecursive(e,this.schema);if(t)return Dr(t)},e.prototype.getSectionRecursive=function(e,t){if(!t||"boolean"==typeof t||0===e.length)return t;var n=e.shift();if(t.properties&&(t.properties[n],1))return this.getSectionRecursive(e,t.properties[n]);if(t.patternProperties)for(var r=0,i=Object.keys(t.patternProperties);r<i.length;r++){var o=i[r];if(new RegExp(o).test(n))return this.getSectionRecursive(e,t.patternProperties[o])}else{if("object"==typeof t.additionalProperties)return this.getSectionRecursive(e,t.additionalProperties);if(n.match("[0-9]+"))if(Array.isArray(t.items)){var s=parseInt(n,10);if(!isNaN(s)&&t.items[s])return this.getSectionRecursive(e,t.items[s])}else if(t.items)return this.getSectionRecursive(e,t.items)}},e}(),ii=function(){function e(e,t,n){this.contextService=t,this.requestService=e,this.promiseConstructor=n||Promise,this.callOnDispose=[],this.contributionSchemas={},this.contributionAssociations=[],this.schemasById={},this.filePatternAssociations=[],this.registeredSchemasIds={}}return e.prototype.getRegisteredSchemaIds=function(e){return Object.keys(this.registeredSchemasIds).filter((function(t){var n=Zr.a.parse(t).scheme;return"schemaservice"!==n&&(!e||e(n))}))},Object.defineProperty(e.prototype,"promise",{get:function(){return this.promiseConstructor},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){for(;this.callOnDispose.length>0;)this.callOnDispose.pop()()},e.prototype.onResourceChange=function(e){for(var t=this,n=!1,r=[e=si(e)],i=Object.keys(this.schemasById).map((function(e){return t.schemasById[e]}));r.length;)for(var o=r.pop(),s=0;s<i.length;s++){var a=i[s];a&&(a.url===o||a.dependencies[o])&&(a.url!==o&&r.push(a.url),a.clearSchema(),i[s]=void 0,n=!0)}return n},e.prototype.setSchemaContributions=function(e){if(e.schemas){var t=e.schemas;for(var n in t){var r=si(n);this.contributionSchemas[r]=this.addSchemaHandle(r,t[n])}}if(Array.isArray(e.schemaAssociations))for(var i=0,o=e.schemaAssociations;i<o.length;i++){var s=o[i],a=s.uris.map(si),u=this.addFilePatternAssociation(s.pattern,a);this.contributionAssociations.push(u)}},e.prototype.addSchemaHandle=function(e,t){var n=new ti(this,e,t);return this.schemasById[e]=n,n},e.prototype.getOrAddSchemaHandle=function(e,t){return this.schemasById[e]||this.addSchemaHandle(e,t)},e.prototype.addFilePatternAssociation=function(e,t){var n=new ei(e,t);return this.filePatternAssociations.push(n),n},e.prototype.registerExternalSchema=function(e,t,n){var r=si(e);return this.registeredSchemasIds[r]=!0,this.cachedSchemaForResource=void 0,t&&this.addFilePatternAssociation(t,[e]),n?this.addSchemaHandle(r,n):this.getOrAddSchemaHandle(r)},e.prototype.clearExternalSchemas=function(){for(var e in this.schemasById={},this.filePatternAssociations=[],this.registeredSchemasIds={},this.cachedSchemaForResource=void 0,this.contributionSchemas)this.schemasById[e]=this.contributionSchemas[e],this.registeredSchemasIds[e]=!0;for(var t=0,n=this.contributionAssociations;t<n.length;t++){var r=n[t];this.filePatternAssociations.push(r)}},e.prototype.getResolvedSchema=function(e){var t=si(e),n=this.schemasById[t];return n?n.getResolvedSchema():this.promise.resolve(void 0)},e.prototype.loadSchema=function(e){if(!this.requestService){var t=Xr("json.schema.norequestservice","Unable to load schema from '{0}'. No schema request service available",ai(e));return this.promise.resolve(new ni({},[t]))}return this.requestService(e).then((function(t){if(!t){var n=Xr("json.schema.nocontent","Unable to load schema from '{0}': No content.",ai(e));return new ni({},[n])}var r,i=[];r=Tn(t,i);var o=i.length?[Xr("json.schema.invalidFormat","Unable to parse content from '{0}': Parse error at offset {1}.",ai(e),i[0].offset)]:[];return new ni(r,o)}),(function(t){var n=t.toString(),r=t.toString().split("Error: ");return r.length>1&&(n=r[1]),Hr(n,".")&&(n=n.substr(0,n.length-1)),new ni({},[Xr("json.schema.nocontent","Unable to load schema from '{0}': {1}.",ai(e),n)])}))},e.prototype.resolveSchemaContent=function(e,t,n){var r=this,i=e.errors.slice(0),o=e.schema;if(o.$schema){var s=si(o.$schema);if("http://json-schema.org/draft-03/schema"===s)return this.promise.resolve(new ri({},[Xr("json.schema.draft03.notsupported","Draft-03 schemas are not supported.")]));"https://json-schema.org/draft/2019-09/schema"===s&&i.push(Xr("json.schema.draft201909.notsupported","Draft 2019-09 schemas are not yet fully supported."))}var a=this.contextService,u=function(e,t,n,r){var o=r?decodeURIComponent(r):void 0,s=function(e,t){if(!t)return e;var n=e;return"/"===t[0]&&(t=t.substr(1)),t.split("/").some((function(e){return!(n=n[e])})),n}(t,o);if(s)for(var a in s)s.hasOwnProperty(a)&&!e.hasOwnProperty(a)&&(e[a]=s[a]);else i.push(Xr("json.schema.invalidref","$ref '{0}' in '{1}' can not be resolved.",o,n))},l=function(e,t,n,o,s){a&&!/^\w+:\/\/.*/.test(t)&&(t=a.resolveRelativePath(t,o)),t=si(t);var l=r.getOrAddSchemaHandle(t);return l.getUnresolvedSchema().then((function(r){if(s[t]=!0,r.errors.length){var o=n?t+"#"+n:t;i.push(Xr("json.schema.problemloadingref","Problems loading reference '{0}': {1}",o,r.errors[0]))}return u(e,r.schema,t,n),c(e,r.schema,t,l.dependencies)}))},c=function(e,t,n,i){if(!e||"object"!=typeof e)return Promise.resolve(null);for(var o=[e],s=[],a=[],c=function(e){for(var r=[];e.$ref;){var s=e.$ref,c=s.split("#",2);if(delete e.$ref,c[0].length>0)return void a.push(l(e,c[0],c[1],n,i));-1===r.indexOf(s)&&(u(e,t,n,c[1]),r.push(s))}!function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e;n<r.length;n++){var i=r[n];"object"==typeof i&&o.push(i)}}(e.items,e.additionalItems,e.additionalProperties,e.not,e.contains,e.propertyNames,e.if,e.then,e.else),function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e;n<r.length;n++){var i=r[n];if("object"==typeof i)for(var s in i){var a=s,u=i[a];"object"==typeof u&&o.push(u)}}}(e.definitions,e.properties,e.patternProperties,e.dependencies),function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e;n<r.length;n++){var i=r[n];if(Array.isArray(i))for(var s=0,a=i;s<a.length;s++){var u=a[s];"object"==typeof u&&o.push(u)}}}(e.anyOf,e.allOf,e.oneOf,e.items)};o.length;){var h=o.pop();s.indexOf(h)>=0||(s.push(h),c(h))}return r.promise.all(a)};return c(o,o,t,n).then((function(e){return new ri(o,i)}))},e.prototype.getSchemaForResource=function(e,t){if(t&&t.root&&"object"===t.root.type){var n=t.root.properties.filter((function(e){return"$schema"===e.keyNode.value&&e.valueNode&&"string"===e.valueNode.type}));if(n.length>0){var r=n[0].valueNode;if(r&&"string"===r.type){var i=Vr(r);if(i&&function(e,t){if(e.length<t.length)return!1;for(var n=0;n<t.length;n++)if(e[n]!==t[n])return!1;return!0}(i,".")&&this.contextService&&(i=this.contextService.resolveRelativePath(i,e)),i){var o=si(i);return this.getOrAddSchemaHandle(o).getResolvedSchema()}}}}if(this.cachedSchemaForResource&&this.cachedSchemaForResource.resource===e)return this.cachedSchemaForResource.resolvedSchema;for(var s=Object.create(null),a=[],u=0,l=this.filePatternAssociations;u<l.length;u++){var c=l[u];if(c.matchesPattern(e))for(var h=0,f=c.getURIs();h<f.length;h++){var d=f[h];s[d]||(a.push(d),s[d]=!0)}}var m=a.length>0?this.createCombinedSchema(e,a).getResolvedSchema():this.promise.resolve(void 0);return this.cachedSchemaForResource={resource:e,resolvedSchema:m},m},e.prototype.createCombinedSchema=function(e,t){if(1===t.length)return this.getOrAddSchemaHandle(t[0]);var n="schemaservice://combinedSchema/"+encodeURIComponent(e),r={allOf:t.map((function(e){return{$ref:e}}))};return this.addSchemaHandle(n,r)},e.prototype.getMatchingSchemas=function(e,t,n){if(n){var r=n.id||"schemaservice://untitled/matchingSchemas/"+oi++;return this.resolveSchemaContent(new ni(n),r,{}).then((function(e){return t.getMatchingSchemas(e.schema).filter((function(e){return!e.inverted}))}))}return this.getSchemaForResource(e.uri,t).then((function(e){return e?t.getMatchingSchemas(e.schema).filter((function(e){return!e.inverted})):[]}))},e}(),oi=0;function si(e){try{return Zr.a.parse(e).toString()}catch(t){return e}}function ai(e){try{var t=Zr.a.parse(e);if("file"===t.scheme)return t.fsPath}catch(e){}return e}var ui=Sr(),li=function(){function e(e,t){this.jsonSchemaService=e,this.promise=t,this.validationEnabled=!0}return e.prototype.configure=function(e){e&&(this.validationEnabled=e.validate,this.commentSeverity=e.allowComments?void 0:yn.Error)},e.prototype.doValidation=function(e,t,n,r){var i=this;if(!this.validationEnabled)return this.promise.resolve([]);var o=[],s={},a=function(e){var t=e.range.start.line+" "+e.range.start.character+" "+e.message;s[t]||(s[t]=!0,o.push(e))},u=function(r){var s=n?hi(n.trailingCommas):yn.Error,u=n?hi(n.comments):i.commentSeverity;if(r){if(r.errors.length&&t.root){var l=t.root,c="object"===l.type?l.properties[0]:void 0;if(c&&"$schema"===c.keyNode.value){var h=c.valueNode||c,f=un.create(e.positionAt(h.offset),e.positionAt(h.offset+h.length));a(Cn.create(f,r.errors[0],yn.Warning,gr.SchemaResolveError))}else{f=un.create(e.positionAt(l.offset),e.positionAt(l.offset+1));a(Cn.create(f,r.errors[0],yn.Warning,gr.SchemaResolveError))}}else{var d=t.validate(e,r.schema);d&&d.forEach(a)}(function e(t){if(t&&"object"==typeof t){if(Dn(t.allowComments))return t.allowComments;if(t.allOf)for(var n=0,r=t.allOf;n<r.length;n++){var i=r[n],o=e(i);if(Dn(o))return o}}return})(r.schema)&&(u=void 0),function e(t){if(t&&"object"==typeof t){if(Dn(t.allowTrailingCommas))return t.allowTrailingCommas;var n=t;if(Dn(n.allowsTrailingCommas))return n.allowsTrailingCommas;if(t.allOf)for(var r=0,i=t.allOf;r<i.length;r++){var o=i[r],s=e(o);if(Dn(s))return s}}return}(r.schema)&&(s=void 0)}for(var m=0,g=t.syntaxErrors;m<g.length;m++){var p=g[m];if(p.code===gr.TrailingComma){if("number"!=typeof s)continue;p.severity=s}a(p)}if("number"==typeof u){var v=ui("InvalidCommentToken","Comments are not permitted in JSON.");t.comments.forEach((function(e){a(Cn.create(e,v,u,gr.CommentNotPermitted))}))}return o};if(r){var l=r.id||"schemaservice://untitled/"+ci++;return this.jsonSchemaService.resolveSchemaContent(new ni(r),l,{}).then((function(e){return u(e)}))}return this.jsonSchemaService.getSchemaForResource(e.uri,t).then((function(e){return u(e)}))},e}(),ci=0;function hi(e){switch(e){case"error":return yn.Error;case"warning":return yn.Warning;case"ignore":return}}var fi=48,di=57,mi=65,gi=97,pi=102;function vi(e){return e<fi?0:e<=di?e-fi:(e<gi&&(e+=gi-mi),e>=gi&&e<=pi?e-gi+10:0)}function yi(e){if("#"===e[0])switch(e.length){case 4:return{red:17*vi(e.charCodeAt(1))/255,green:17*vi(e.charCodeAt(2))/255,blue:17*vi(e.charCodeAt(3))/255,alpha:1};case 5:return{red:17*vi(e.charCodeAt(1))/255,green:17*vi(e.charCodeAt(2))/255,blue:17*vi(e.charCodeAt(3))/255,alpha:17*vi(e.charCodeAt(4))/255};case 7:return{red:(16*vi(e.charCodeAt(1))+vi(e.charCodeAt(2)))/255,green:(16*vi(e.charCodeAt(3))+vi(e.charCodeAt(4)))/255,blue:(16*vi(e.charCodeAt(5))+vi(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:(16*vi(e.charCodeAt(1))+vi(e.charCodeAt(2)))/255,green:(16*vi(e.charCodeAt(3))+vi(e.charCodeAt(4)))/255,blue:(16*vi(e.charCodeAt(5))+vi(e.charCodeAt(6)))/255,alpha:(16*vi(e.charCodeAt(7))+vi(e.charCodeAt(8)))/255}}}var bi=function(){function e(e){this.schemaService=e}return e.prototype.findDocumentSymbols=function(e,t,n){var r=this;void 0===n&&(n={resultLimit:Number.MAX_VALUE});var i=t.root;if(!i)return[];var o=n.resultLimit||Number.MAX_VALUE,s=e.uri;if(("vscode://defaultsettings/keybindings.json"===s||Hr(s.toLowerCase(),"/user/keybindings.json"))&&"array"===i.type){for(var a=[],u=0,l=i.items;u<l.length;u++){var c=l[u];if("object"===c.type)for(var h=0,f=c.properties;h<f.length;h++){var d=f[h];if("key"===d.keyNode.value&&d.valueNode){var m=cn.create(e.uri,Ci(e,c));if(a.push({name:Vr(d.valueNode),kind:Xn.Function,location:m}),--o<=0)return n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(s),a}}}return a}for(var g=[{node:i,containerName:""}],p=0,v=!1,y=[],b=function(t,n){"array"===t.type?t.items.forEach((function(e){e&&g.push({node:e,containerName:n})})):"object"===t.type&&t.properties.forEach((function(t){var i=t.valueNode;if(i)if(o>0){o--;var s=cn.create(e.uri,Ci(e,t)),a=n?n+"."+t.keyNode.value:t.keyNode.value;y.push({name:r.getKeyLabel(t),kind:r.getSymbolKind(i.type),location:s,containerName:n}),g.push({node:i,containerName:a})}else v=!0}))};p<g.length;){var C=g[p++];b(C.node,C.containerName)}return v&&n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(s),y},e.prototype.findDocumentSymbols2=function(e,t,n){var r=this;void 0===n&&(n={resultLimit:Number.MAX_VALUE});var i=t.root;if(!i)return[];var o=n.resultLimit||Number.MAX_VALUE,s=e.uri;if(("vscode://defaultsettings/keybindings.json"===s||Hr(s.toLowerCase(),"/user/keybindings.json"))&&"array"===i.type){for(var a=[],u=0,l=i.items;u<l.length;u++){var c=l[u];if("object"===c.type)for(var h=0,f=c.properties;h<f.length;h++){var d=f[h];if("key"===d.keyNode.value&&d.valueNode){var m=Ci(e,c),g=Ci(e,d.keyNode);if(a.push({name:Vr(d.valueNode),kind:Xn.Function,range:m,selectionRange:g}),--o<=0)return n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(s),a}}}return a}for(var p=[],v=[{node:i,result:p}],y=0,b=!1,C=function(t,n){"array"===t.type?t.items.forEach((function(t,i){if(t)if(o>0){o--;var s=Ci(e,t),a=s,u={name:String(i),kind:r.getSymbolKind(t.type),range:s,selectionRange:a,children:[]};n.push(u),v.push({result:u.children,node:t})}else b=!0})):"object"===t.type&&t.properties.forEach((function(t){var i=t.valueNode;if(i)if(o>0){o--;var s=Ci(e,t),a=Ci(e,t.keyNode),u={name:r.getKeyLabel(t),kind:r.getSymbolKind(i.type),range:s,selectionRange:a,children:[]};n.push(u),v.push({result:u.children,node:i})}else b=!0}))};y<v.length;){var _=v[y++];C(_.node,_.result)}return b&&n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(s),p},e.prototype.getSymbolKind=function(e){switch(e){case"object":return Xn.Module;case"string":return Xn.String;case"number":return Xn.Number;case"array":return Xn.Array;case"boolean":return Xn.Boolean;default:return Xn.Variable}},e.prototype.getKeyLabel=function(e){var t=e.keyNode.value;return t&&(t=t.replace(/[\n]/g,"↵")),t&&t.trim()?t:'"'+t+'"'},e.prototype.findDocumentColors=function(e,t,n){return this.schemaService.getSchemaForResource(e.uri,t).then((function(r){var i=[];if(r)for(var o=n&&"number"==typeof n.resultLimit?n.resultLimit:Number.MAX_VALUE,s={},a=0,u=t.getMatchingSchemas(r.schema);a<u.length;a++){var l=u[a];if(!l.inverted&&l.schema&&("color"===l.schema.format||"color-hex"===l.schema.format)&&l.node&&"string"===l.node.type){var c=String(l.node.offset);if(!s[c]){var h=yi(Vr(l.node));if(h){var f=Ci(e,l.node);i.push({color:h,range:f})}if(s[c]=!0,--o<=0)return n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(e.uri),i}}}return i}))},e.prototype.getColorPresentations=function(e,t,n,r){var i,o=[],s=Math.round(255*n.red),a=Math.round(255*n.green),u=Math.round(255*n.blue);function l(e){var t=e.toString(16);return 2!==t.length?"0"+t:t}return i=1===n.alpha?"#"+l(s)+l(a)+l(u):"#"+l(s)+l(a)+l(u)+l(Math.round(255*n.alpha)),o.push({label:i,textEdit:Sn.replace(r,JSON.stringify(i))}),o},e}();function Ci(e,t){return un.create(e.positionAt(t.offset),e.positionAt(t.offset+t.length))}var _i=Sr(),Si={schemaAssociations:[],schemas:{"http://json-schema.org/schema#":{$ref:"http://json-schema.org/draft-07/schema#"},"http://json-schema.org/draft-04/schema#":{title:_i("schema.json","Describes a JSON file using a schema. See json-schema.org for more info."),$schema:"http://json-schema.org/draft-04/schema#",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{type:"string",enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},type:"object",properties:{id:{type:"string",format:"uri"},$schema:{type:"string",format:"uri"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minLength:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minItems:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},uniqueItems:{type:"boolean",default:!1},maxProperties:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minProperties:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},required:{allOf:[{$ref:"#/definitions/stringArray"}]},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{anyOf:[{type:"string",enum:["date-time","uri","email","hostname","ipv4","ipv6","regex"]},{type:"string"}]},allOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},anyOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},oneOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},not:{allOf:[{$ref:"#"}]}},dependencies:{exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},default:{}},"http://json-schema.org/draft-07/schema#":{title:_i("schema.json","Describes a JSON file using a schema. See json-schema.org for more info."),definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}}},Ei={id:_i("schema.json.id","A unique identifier for the schema."),$schema:_i("schema.json.$schema","The schema to verify this document against."),title:_i("schema.json.title","A descriptive title of the element."),description:_i("schema.json.description","A long description of the element. Used in hover menus and suggestions."),default:_i("schema.json.default","A default value. Used by suggestions."),multipleOf:_i("schema.json.multipleOf","A number that should cleanly divide the current value (i.e. have no remainder)."),maximum:_i("schema.json.maximum","The maximum numerical value, inclusive by default."),exclusiveMaximum:_i("schema.json.exclusiveMaximum","Makes the maximum property exclusive."),minimum:_i("schema.json.minimum","The minimum numerical value, inclusive by default."),exclusiveMinimum:_i("schema.json.exclusiveMininum","Makes the minimum property exclusive."),maxLength:_i("schema.json.maxLength","The maximum length of a string."),minLength:_i("schema.json.minLength","The minimum length of a string."),pattern:_i("schema.json.pattern","A regular expression to match the string against. It is not implicitly anchored."),additionalItems:_i("schema.json.additionalItems","For arrays, only when items is set as an array. If it is a schema, then this schema validates items after the ones specified by the items array. If it is false, then additional items will cause validation to fail."),items:_i("schema.json.items","For arrays. Can either be a schema to validate every element against or an array of schemas to validate each item against in order (the first schema will validate the first element, the second schema will validate the second element, and so on."),maxItems:_i("schema.json.maxItems","The maximum number of items that can be inside an array. Inclusive."),minItems:_i("schema.json.minItems","The minimum number of items that can be inside an array. Inclusive."),uniqueItems:_i("schema.json.uniqueItems","If all of the items in the array must be unique. Defaults to false."),maxProperties:_i("schema.json.maxProperties","The maximum number of properties an object can have. Inclusive."),minProperties:_i("schema.json.minProperties","The minimum number of properties an object can have. Inclusive."),required:_i("schema.json.required","An array of strings that lists the names of all properties required on this object."),additionalProperties:_i("schema.json.additionalProperties","Either a schema or a boolean. If a schema, then used to validate all properties not matched by 'properties' or 'patternProperties'. If false, then any properties not matched by either will cause this schema to fail."),definitions:_i("schema.json.definitions","Not used for validation. Place subschemas here that you wish to reference inline with $ref."),properties:_i("schema.json.properties","A map of property names to schemas for each property."),patternProperties:_i("schema.json.patternProperties","A map of regular expressions on property names to schemas for matching properties."),dependencies:_i("schema.json.dependencies","A map of property names to either an array of property names or a schema. An array of property names means the property named in the key depends on the properties in the array being present in the object in order to be valid. If the value is a schema, then the schema is only applied to the object if the property in the key exists on the object."),enum:_i("schema.json.enum","The set of literal values that are valid."),type:_i("schema.json.type","Either a string of one of the basic schema types (number, integer, null, array, object, boolean, string) or an array of strings specifying a subset of those types."),format:_i("schema.json.format","Describes the format expected for the value."),allOf:_i("schema.json.allOf","An array of schemas, all of which must match."),anyOf:_i("schema.json.anyOf","An array of schemas, where at least one must match."),oneOf:_i("schema.json.oneOf","An array of schemas, exactly one of which must match."),not:_i("schema.json.not","A schema which must not match."),$id:_i("schema.json.$id","A unique identifier for the schema."),$ref:_i("schema.json.$ref","Reference a definition hosted on any location."),$comment:_i("schema.json.$comment","Comments from schema authors to readers or maintainers of the schema."),readOnly:_i("schema.json.readOnly","Indicates that the value of the instance is managed exclusively by the owning authority."),examples:_i("schema.json.examples","Sample JSON values associated with a particular schema, for the purpose of illustrating usage."),contains:_i("schema.json.contains",'An array instance is valid against "contains" if at least one of its elements is valid against the given schema.'),propertyNames:_i("schema.json.propertyNames","If the instance is an object, this keyword validates if every property name in the instance validates against the provided schema."),const:_i("schema.json.const","An instance validates successfully against this keyword if its value is equal to the value of the keyword."),contentMediaType:_i("schema.json.contentMediaType","Describes the media type of a string property."),contentEncoding:_i("schema.json.contentEncoding","Describes the content encoding of a string property."),if:_i("schema.json.if",'The validation outcome of the "if" subschema controls which of the "then" or "else" keywords are evaluated.'),then:_i("schema.json.then",'The "if" subschema is used for validation when the "if" subschema succeeds.'),else:_i("schema.json.else",'The "else" subschema is used for validation when the "if" subschema fails.')};for(var Ai in Si.schemas){var xi=Si.schemas[Ai];for(var Ni in xi.properties){var wi=xi.properties[Ni];"boolean"==typeof wi&&(wi=xi.properties[Ni]={});var Li=Ei[Ni];Li?wi.description=Li:console.log(Ni+": localize('schema.json."+Ni+'\', "")')}}function Ti(e,t){var n=[],r=[],i=[],o=-1,s=Ln(e.getText(),!1),a=s.scan();function u(e){n.push(e),r.push(i.length)}for(;17!==a;){switch(a){case 1:case 3:var l={startLine:f=e.positionAt(s.getTokenOffset()).line,endLine:f,kind:1===a?"object":"array"};i.push(l);break;case 2:case 4:var c=2===a?"object":"array";if(i.length>0&&i[i.length-1].kind===c){l=i.pop();var h=e.positionAt(s.getTokenOffset()).line;l&&h>l.startLine+1&&o!==l.startLine&&(l.endLine=h-1,u(l),o=l.startLine)}break;case 13:var f=e.positionAt(s.getTokenOffset()).line,d=e.positionAt(s.getTokenOffset()+s.getTokenLength()).line;1===s.getTokenError()&&f+1<e.lineCount?s.setPosition(e.offsetAt(an.create(f+1,0))):f<d&&(u({startLine:f,endLine:d,kind:gn.Comment}),o=f);break;case 12:var m=e.getText().substr(s.getTokenOffset(),s.getTokenLength()).match(/^\/\/\s*#(region\b)|(endregion\b)/);if(m){h=e.positionAt(s.getTokenOffset()).line;if(m[1]){l={startLine:h,endLine:h,kind:gn.Region};i.push(l)}else{for(var g=i.length-1;g>=0&&i[g].kind!==gn.Region;)g--;if(g>=0){l=i[g];i.length=g,h>l.startLine&&o!==l.startLine&&(l.endLine=h,u(l),o=l.startLine)}}}}a=s.scan()}var p=t&&t.rangeLimit;if("number"!=typeof p||n.length<=p)return n;t&&t.onRangeLimitExceeded&&t.onRangeLimitExceeded(e.uri);for(var v=[],y=0,b=r;y<b.length;y++){(A=b[y])<30&&(v[A]=(v[A]||0)+1)}var C=0,_=0;for(g=0;g<v.length;g++){var S=v[g];if(S){if(S+C>p){_=g;break}C+=S}}var E=[];for(g=0;g<n.length;g++){var A;"number"==typeof(A=r[g])&&(A<_||A===_&&C++<p)&&E.push(n[g])}return E}function ki(e,t,n){function r(t,n){return un.create(e.positionAt(t),e.positionAt(n))}var i=Ln(e.getText(),!0);function o(e,t){return i.setPosition(e),i.scan()===t?i.getTokenOffset()+i.getTokenLength():-1}return t.map((function(t){for(var i=e.offsetAt(t),s=n.getNodeFromOffset(i,!0),a=[];s;){switch(s.type){case"string":case"object":case"array":var u=s.offset+1,l=s.offset+s.length-1;u<l&&i>=u&&i<=l&&a.push(r(u,l)),a.push(r(s.offset,s.offset+s.length));break;case"number":case"boolean":case"null":case"property":a.push(r(s.offset,s.offset+s.length))}if("property"===s.type||s.parent&&"array"===s.parent.type){var c=o(s.offset+s.length,5);-1!==c&&a.push(r(s.offset,c))}s=s.parent}for(var h=void 0,f=a.length-1;f>=0;f--)h=lr.create(a[f],h);return h||(h=lr.create(un.create(t,t))),h}))}function Oi(e,t,n){var r=e.offsetAt(t),i=n.getNodeFromOffset(r,!0);if(!i||!function(e){return"string"===e.type&&e.parent&&"property"===e.parent.type&&e.parent.valueNode===e&&"$ref"===e.parent.keyNode.value||!1}(i))return Promise.resolve([]);var o=i.parent.valueNode,s=function(e,t){var n=function(e){if("#"===e)return[];if("#"!==e[0]||"/"!==e[1])return null;return e.substring(2).split(/\//).map(Mi)}(t);if(!n)return null;return function e(t,n){if(!n)return null;if(0===t.length)return n;var r=t.shift();if(n&&"object"===n.type){var i=n.properties.find((function(e){return e.keyNode.value===r}));return i?e(t,i.valueNode):null}if(n&&"array"===n.type&&r.match(/^(0|[1-9][0-9]*)$/)){var o=Number.parseInt(r),s=n.items[o];return s?e(t,s):null}return null}(n,e.root)}(n,o.value);if(!s)return Promise.resolve([]);var a={targetUri:e.uri,originSelectionRange:Ii(e,o),targetRange:Ii(e,s),targetSelectionRange:Ii(e,s)};return Promise.resolve([a])}function Ii(e,t){return un.create(e.positionAt(t.offset),e.positionAt(t.offset+t.length))}function Mi(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function Pi(e){var t=e.promiseConstructor||Promise,n=new ii(e.schemaRequestService,e.workspaceContext,t);n.setSchemaContributions(Si);var r=new zr(n,e.contributions,t,e.clientCapabilities),i=new Jr(n,e.contributions,t),o=new bi(n),s=new li(n,t);return{configure:function(e){n.clearExternalSchemas(),e.schemas&&e.schemas.forEach((function(e){n.registerExternalSchema(e.uri,e.fileMatch,e.schema)})),s.configure(e)},resetSchema:function(e){return n.onResourceChange(e)},doValidation:s.doValidation.bind(s),parseJSONDocument:function(e){return Br(e,{collectComments:!0})},newJSONDocument:function(e,t){return function(e,t){return void 0===t&&(t=[]),new qr(e,t,[])}(e,t)},getMatchingSchemas:n.getMatchingSchemas.bind(n),doResolve:r.doResolve.bind(r),doComplete:r.doComplete.bind(r),findDocumentSymbols:o.findDocumentSymbols.bind(o),findDocumentSymbols2:o.findDocumentSymbols2.bind(o),findColorSymbols:function(e,t){return o.findDocumentColors(e,t).then((function(e){return e.map((function(e){return e.range}))}))},findDocumentColors:o.findDocumentColors.bind(o),getColorPresentations:o.getColorPresentations.bind(o),doHover:i.doHover.bind(i),getFoldingRanges:Ti,getSelectionRanges:ki,findDefinition:Oi,format:function(e,t,n){var r=void 0;if(t){var i=e.offsetAt(t.start);r={offset:i,length:e.offsetAt(t.end)-i}}var o={tabSize:n?n.tabSize:4,insertSpaces:!n||n.insertSpaces,eol:"\n"};return function(e,t,n){return tn(e,t,n)}(e.getText(),r,o).map((function(t){return Sn.replace(un.create(e.positionAt(t.offset),e.positionAt(t.offset+t.length)),t.content)}))}}}var Ri,Di=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},Fi=function(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};"undefined"!=typeof fetch&&(Ri=function(e){return fetch(e).then((function(e){return e.text()}))});var ji=function(){function e(e,t){this._ctx=e,this._languageSettings=t.languageSettings,this._languageId=t.languageId,this._languageService=Pi({workspaceContext:{resolveRelativePath:function(e,t){return function(e,t){if(function(e){return e.charCodeAt(0)===Ui}(t)){var n=Zr.a.parse(e),r=t.split("/");return n.with({path:$i(r)}).toString()}return function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=Zr.a.parse(e),i=r.path.split("/"),o=0,s=t;o<s.length;o++){var a=s[o];i.push.apply(i,a.split("/"))}return r.with({path:$i(i)}).toString()}(e,t)}(t.substr(0,t.lastIndexOf("/")+1),e)}},schemaRequestService:t.enableSchemaRequest&&Ri}),this._languageService.configure(this._languageSettings)}return e.prototype.doValidation=function(e){return Di(this,void 0,void 0,(function(){var t,n;return Fi(this,(function(r){return(t=this._getTextDocument(e))?(n=this._languageService.parseJSONDocument(t),[2,this._languageService.doValidation(t,n)]):[2,Promise.resolve([])]}))}))},e.prototype.doComplete=function(e,t){return Di(this,void 0,void 0,(function(){var n,r;return Fi(this,(function(i){return n=this._getTextDocument(e),r=this._languageService.parseJSONDocument(n),[2,this._languageService.doComplete(n,t,r)]}))}))},e.prototype.doResolve=function(e){return Di(this,void 0,void 0,(function(){return Fi(this,(function(t){return[2,this._languageService.doResolve(e)]}))}))},e.prototype.doHover=function(e,t){return Di(this,void 0,void 0,(function(){var n,r;return Fi(this,(function(i){return n=this._getTextDocument(e),r=this._languageService.parseJSONDocument(n),[2,this._languageService.doHover(n,t,r)]}))}))},e.prototype.format=function(e,t,n){return Di(this,void 0,void 0,(function(){var r,i;return Fi(this,(function(o){return r=this._getTextDocument(e),i=this._languageService.format(r,t,n),[2,Promise.resolve(i)]}))}))},e.prototype.resetSchema=function(e){return Di(this,void 0,void 0,(function(){return Fi(this,(function(t){return[2,Promise.resolve(this._languageService.resetSchema(e))]}))}))},e.prototype.findDocumentSymbols=function(e){return Di(this,void 0,void 0,(function(){var t,n,r;return Fi(this,(function(i){return t=this._getTextDocument(e),n=this._languageService.parseJSONDocument(t),r=this._languageService.findDocumentSymbols(t,n),[2,Promise.resolve(r)]}))}))},e.prototype.findDocumentColors=function(e){return Di(this,void 0,void 0,(function(){var t,n,r;return Fi(this,(function(i){return t=this._getTextDocument(e),n=this._languageService.parseJSONDocument(t),r=this._languageService.findDocumentColors(t,n),[2,Promise.resolve(r)]}))}))},e.prototype.getColorPresentations=function(e,t,n){return Di(this,void 0,void 0,(function(){var r,i,o;return Fi(this,(function(s){return r=this._getTextDocument(e),i=this._languageService.parseJSONDocument(r),o=this._languageService.getColorPresentations(r,i,t,n),[2,Promise.resolve(o)]}))}))},e.prototype.getFoldingRanges=function(e,t){return Di(this,void 0,void 0,(function(){var n,r;return Fi(this,(function(i){return n=this._getTextDocument(e),r=this._languageService.getFoldingRanges(n,t),[2,Promise.resolve(r)]}))}))},e.prototype.getSelectionRanges=function(e,t){return Di(this,void 0,void 0,(function(){var n,r,i;return Fi(this,(function(o){return n=this._getTextDocument(e),r=this._languageService.parseJSONDocument(n),i=this._languageService.getSelectionRanges(n,t,r),[2,Promise.resolve(i)]}))}))},e.prototype._getTextDocument=function(e){for(var t=0,n=this._ctx.getMirrorModels();t<n.length;t++){var r=n[t];if(r.uri.toString()===e)return mr.create(e,this._languageId,r.version,r.getValue())}return null},e}(),Ui="/".charCodeAt(0),Vi=".".charCodeAt(0);function $i(e){for(var t=[],n=0,r=e;n<r.length;n++){var i=r[n];0===i.length||1===i.length&&i.charCodeAt(0)===Vi||(2===i.length&&i.charCodeAt(0)===Vi&&i.charCodeAt(1)===Vi?t.pop():t.push(i))}e.length>1&&0===e[e.length-1].length&&t.push("");var o=t.join("/");return 0===e[0].length&&(o="/"+o),o}self.onmessage=function(){Jt((function(e,t){return new ji(e,t)}))}}]); \ No newline at end of file